]> git.ipfire.org Git - thirdparty/glibc.git/blob - ChangeLog
math: Replace const attribute with pure in totalorder* functions
[thirdparty/glibc.git] / ChangeLog
1 2019-09-05 Gabriel F. T. Gomes <gabrielftg@linux.ibm.com>
2
3 * math/bits/mathcalls.h (totalorder, totalordermag): Replace
4 const attribute with pure attribute.
5
6 2019-09-04 Lukasz Majewski <lukma@denx.de>
7
8 * sysdeps/unix/sysv/linux/kernel-features.h
9 (__ASSUME_TIME64_SYSCALLS): New macro.
10
11 2019-09-04 Zack Weinberg <zackw@panix.com>
12
13 [BZ #24959]
14 * rt/clock_getcpuclockid.c: Move to time/clock_getcpuclockid.c.
15 * rt/clock_getres.c: Move to time/clock_getres.c.
16 * rt/clock_gettime.c: Move to time/clock_gettime.c.
17 * rt/clock_nanosleep.c: Move to time/clock_nanosleep.c.
18 * rt/clock_settime.c: Move to time/clock_settime.c.
19 * rt/tst-clock.c: Move to time/tst-clock.c.
20 * rt/tst-clock2.c: Move to time/tst-clock2.c.
21 * rt/tst-clock_nanosleep.c: Move to time/tst-clock_nanosleep.c.
22 * rt/tst-cpuclock1.c: Move to time/tst-cpuclock1.c.
23 * rt/clock-compat.c: Delete file.
24
25 * time/clock_getcpuclockid.c
26 * time/clock_getres.c
27 * time/clock_gettime.c
28 * time/clock_nanosleep.c
29 * time/clock_settime.c
30 * sysdeps/posix/clock_getres.c
31 * sysdeps/unix/clock_gettime.c
32 * sysdeps/unix/clock_nanosleep.c
33 * sysdeps/unix/clock_settime.c
34 * sysdeps/unix/sysv/linux/clock_getcpuclockid.c
35 * sysdeps/unix/sysv/linux/clock_getres.c
36 * sysdeps/unix/sysv/linux/clock_gettime.c
37 * sysdeps/unix/sysv/linux/clock_nanosleep.c
38 * sysdeps/unix/sysv/linux/clock_settime.c: Define the function
39 defined by this file with default symbol version GLIBC_2_17,
40 and optionally a compatibility alias at symbol version GLIBC_2_2.
41 * include/time.h: Remove internal prototypes for clock_getres,
42 clock_nanosleep, and clock_getcpuclockid.
43
44 * sysdeps/unix/sysv/linux/clock_gettime.c: Prune includes.
45 Remove unused function realtime_gettime.
46
47 * rt/Makefile (clock-routines, routines): Remove variable.
48 (librt-routines): Remove clock-compat.
49 (tests): Remove tst-clock, tst-clock2, tst-clock_nanosleep,
50 and tst-cpuclock1.
51 * time/Makefile (routines): Add clock_getres, clock_gettime,
52 clock_settime, clock_getcpuclockid, and clock_nanosleep.
53 (tests): Add tst-clock, tst-clock2, tst-clock_nanosleep,
54 and tst-cpuclock1.
55
56 * rt/Versions (libc): Remove entire stanza.
57 (librt GLIBC_2.2): Remove all clock_* functions.
58 * time/Versions (libc GLIBC_2.2, libc GLIBC_2.17):
59 Add clock_getres, clock_gettime, clock_settime,
60 clock_getcpuclockid, and clock_nanosleep.
61 (libc GLIBC_PRIVATE): Add __clock_gettime.
62
63 * sysdeps/mach/hurd/i386/librt.abilist
64 * sysdeps/unix/sysv/linux/alpha/librt.abilist
65 * sysdeps/unix/sysv/linux/arm/be/librt.abilist
66 * sysdeps/unix/sysv/linux/arm/le/librt.abilist
67 * sysdeps/unix/sysv/linux/hppa/librt.abilist
68 * sysdeps/unix/sysv/linux/i386/librt.abilist
69 * sysdeps/unix/sysv/linux/ia64/librt.abilist
70 * sysdeps/unix/sysv/linux/m68k/coldfire/librt.abilist
71 * sysdeps/unix/sysv/linux/m68k/m680x0/librt.abilist
72 * sysdeps/unix/sysv/linux/microblaze/be/librt.abilist
73 * sysdeps/unix/sysv/linux/microblaze/le/librt.abilist
74 * sysdeps/unix/sysv/linux/mips/mips32/librt.abilist
75 * sysdeps/unix/sysv/linux/mips/mips64/librt.abilist
76 * sysdeps/unix/sysv/linux/powerpc/powerpc32/librt.abilist
77 * sysdeps/unix/sysv/linux/powerpc/powerpc64/be/librt.abilist
78 * sysdeps/unix/sysv/linux/s390/s390-32/librt.abilist
79 * sysdeps/unix/sysv/linux/s390/s390-64/librt.abilist
80 * sysdeps/unix/sysv/linux/sh/librt.abilist
81 * sysdeps/unix/sysv/linux/sparc/sparc32/librt.abilist
82 * sysdeps/unix/sysv/linux/sparc/sparc64/librt.abilist
83 * sysdeps/unix/sysv/linux/x86_64/64/librt.abilist
84 * sysdeps/unix/sysv/linux/x86_64/x32/librt.abilist:
85 Remove entries for clock_getres, clock_gettime, clock_settime,
86 clock_getcpuclockid, and clock_nanosleep.
87
88 * sysdeps/mach/hurd/i386/libc.abilist
89 * sysdeps/unix/sysv/linux/alpha/libc.abilist
90 * sysdeps/unix/sysv/linux/arm/libc.abilist
91 * sysdeps/unix/sysv/linux/hppa/libc.abilist
92 * sysdeps/unix/sysv/linux/i386/libc.abilist
93 * sysdeps/unix/sysv/linux/ia64/libc.abilist
94 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist
95 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist
96 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist
97 * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist
98 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist
99 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist
100 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist
101 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist
102 * sysdeps/unix/sysv/linux/powerpc/powerpc64/be/libc.abilist
103 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist
104 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist
105 * sysdeps/unix/sysv/linux/sh/be/libc.abilist
106 * sysdeps/unix/sysv/linux/sh/le/libc.abilist
107 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist
108 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist
109 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist
110 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist:
111 Add another set of entries for clock_getres, clock_gettime,
112 clock_settime, clock_getcpuclockid, and clock_nanosleep at
113 whatever version GLIBC_2.2 maps to.
114
115 2019-09-03 Aurelien Jarno <aurelien@aurel32.net>
116
117 * sysdeps/alpha/fpu/libm-test-ulps: Regenerated using GCC 9.2.
118
119 2019-09-03 Florian Weimer <fweimer@redhat.com>
120
121 [BZ #24950]
122 * locale/programs/charmap.h (struct charseq): Turn bytes into a
123 flexible array member.
124 * locale/programs/ld-ctype.c (ctype_finish): Use initializer for
125 replace.
126
127 2019-09-02 Florian Weimer <fweimer@redhat.com>
128
129 * misc/tst-mntent-autofs.c: New file.
130 * misc/Makefile (tests): Add misc/tst-mntent-autofs.
131
132 2019-09-02 Ian Kent <ikent@redhat.com>
133
134 Use autofs "ignore" mount hint in getmntent_r/getmntent.
135 * misc/mntent_r.c (get_mnt_entry): New function, extracted from
136 getmntent_r.
137 (__getmntent_r): Call it. Filter out autofs entries with an
138 "ignore" mount option.
139
140 2019-08-30 Wilco Dijkstra <wdijkstr@arm.com>
141
142 * benchtests/bench-memcpy.c (simple_memcpy): Remove.
143 (generic_memcpy): Include generic C memcpy.
144 * benchtests/bench-memmove.c (simple_memmove): Remove.
145 (generic_memmove): Include generic C memmove.
146 * benchtests/bench-memset.c (simple_memset): Remove.
147 (generic_memset): Include generic C memset.
148 * benchtests/bench-memset-large.c (simple_memset): Remove.
149 (generic_memset): Include generic C memset.
150 * benchtests/bench-memset-walk.c (simple_memset): Remove.
151 (generic_memset): Include generic C memset.
152 * string/memcpy.c (MEMCPY): Add defines to enable redirection.
153 * string/memset.c (MEMSET): Likewise.
154 * sysdeps/x86_64/memcopy.h: Remove empty file.
155
156 2019-08-30 Florian Weimer <fweimer@redhat.com>
157
158 nptl: Move pthread_attr_getinheritsched implementation into libc.
159 * nptl/Makefile (routines): Add pthread_attr_getinheritsched.
160 (libpthread-routines): Remove pthread_attr_getinheritsched.
161 * nptl/Versions (libpthread GLIBC_2.0): Remove
162 pthread_attr_getinheritsched.
163 * nptl/forward.c (pthread_attr_getinheritsched): Remove definition.
164 * nptl/nptl-init.c (pthread_functions): Remove initializer for
165 ptr_pthread_attr_getinheritsched.
166 * sysdeps/nptl/pthread-functions.h (struct pthread_functions):
167 Remove ptr_pthread_attr_getinheritsched member.
168 * sysdeps/unix/sysv/linux/aarch64/libpthread.abilist (GLIBC_2.17):
169 Remove pthread_attr_getinheritsched.
170 * sysdeps/unix/sysv/linux/alpha/libpthread.abilist (GLIBC_2.0):
171 Likewise.
172 * sysdeps/unix/sysv/linux/arm/be/libpthread.abilist (GLIBC_2.4):
173 Likewise.
174 * sysdeps/unix/sysv/linux/arm/le/libpthread.abilist (GLIBC_2.4):
175 Likewise.
176 * sysdeps/unix/sysv/linux/csky/libpthread.abilist (GLIBC_2.29):
177 Likewise.
178 * sysdeps/unix/sysv/linux/hppa/libpthread.abilist (GLIBC_2.2):
179 Likewise.
180 * sysdeps/unix/sysv/linux/i386/libpthread.abilist (GLIBC_2.0):
181 Likewise.
182 * sysdeps/unix/sysv/linux/ia64/libpthread.abilist (GLIBC_2.2):
183 Likewise.
184 * sysdeps/unix/sysv/linux/m68k/coldfire/libpthread.abilist
185 (GLIBC_2.4): Likewise.
186 * sysdeps/unix/sysv/linux/m68k/m680x0/libpthread.abilist
187 (GLIBC_2.0): Likewise.
188 * sysdeps/unix/sysv/linux/microblaze/be/libpthread.abilist
189 (GLIBC_2.18): Likewise.
190 * sysdeps/unix/sysv/linux/microblaze/le/libpthread.abilist
191 (GLIBC_2.18): Likewise.
192 * sysdeps/unix/sysv/linux/mips/mips32/libpthread.abilist
193 (GLIBC_2.0): Likewise.
194 * sysdeps/unix/sysv/linux/mips/mips64/libpthread.abilist
195 (GLIBC_2.0): Likewise.
196 * sysdeps/unix/sysv/linux/nios2/libpthread.abilist (GLIBC_2.21):
197 Likewise.
198 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libpthread.abilist
199 (GLIBC_2.0): Likewise.
200 * sysdeps/unix/sysv/linux/powerpc/powerpc64/be/libpthread.abilist
201 (GLIBC_2.3): Likewise.
202 * sysdeps/unix/sysv/linux/powerpc/powerpc64/le/libpthread.abilist
203 (GLIBC_2.17): Likewise.
204 * sysdeps/unix/sysv/linux/riscv/rv64/libpthread.abilist
205 (GLIBC_2.27): Likewise.
206 * sysdeps/unix/sysv/linux/s390/s390-32/libpthread.abilist
207 (GLIBC_2.0): Likewise.
208 * sysdeps/unix/sysv/linux/s390/s390-64/libpthread.abilist
209 (GLIBC_2.2): Likewise.
210 * sysdeps/unix/sysv/linux/sh/be/libpthread.abilist (GLIBC_2.2):
211 Likewise.
212 * sysdeps/unix/sysv/linux/sh/le/libpthread.abilist (GLIBC_2.2):
213 Likewise.
214 * sysdeps/unix/sysv/linux/sparc/sparc32/libpthread.abilist
215 (GLIBC_2.0): Likewise.
216 * sysdeps/unix/sysv/linux/sparc/sparc64/libpthread.abilist
217 (GLIBC_2.2): Likewise.
218 * sysdeps/unix/sysv/linux/x86_64/64/libpthread.abilist
219 (GLIBC_2.2.5): Likewise.
220 * sysdeps/unix/sysv/linux/x86_64/x32/libpthread.abilist
221 (GLIBC_2.16): Likewise.
222
223 2019-08-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
224
225 * sysdeps/mach/hurd/getcwd.c
226 (_hurd_canonicalize_directory_name_internal): Do not remove the heading
227 slash if we got an unknown root directory. (__getcwd): Do not fail with
228 EGRATUITOUS if we got an unknown root directory.
229 * hurd/hurdselect.c (SELECT_ERROR): New macro.
230 (_hurd_select):
231 - Add `error' field to `d' structures array.
232 - If a poll descriptor is bogus, set EBADF, but continue with a zero
233 timeout.
234 - Go through the whole fd_set, not only until _hurd_dtablesize. Return
235 EBADF there is any bit set above _hurd_dtablesize.
236 - Do not request io_select on bogus descriptors (SELECT_ERROR).
237 - On io_select request error, record the error.
238 - On io_select bogus reply, use EIO error code.
239 - On io_select bogus or error reply, record the error.
240 - Do not destroy reply port for bogus FDs.
241 - On error, make poll set POLLHUP in the EPIPE case, POLLNVAL in the
242 EBADF case, or else POLLERR.
243 - On error, make select simulated readiness.
244
245 [BZ #19903]
246 * sysdeps/mach/hurd/mmap.c (__mmap): Remove optimizing anonymous maps
247 as __vm_allocate.
248
249 * sysdeps/mach/hurd/i386/sigreturn.c (__sigreturn2): New function,
250 unlocks SS and returns to the saved PC.
251 (__sigreturn): Do not unlock SS, and "return" into __sigreturn2 on the
252 thread stack instead of the saved PC.
253
254 2019-08-30 Richard Braun <rbraun@sceen.net>
255
256 * hurd/hurdselect.c (_hurd_select): Always call __io_select with no
257 timeout.
258 * sysdeps/mach/hurd/setitimer.c (setitimer_locked): Fix preemptor setup.
259 * hurd/Makefile (user-interfaces): Add io_reply and io_request.
260 * hurd/hurdselect.c: Include <sys/time.h>, <hurd/io_request.h> and
261 <limits.h>.
262 (_hurd_select): Replace the call to __io_select with either
263 __io_select_request or __io_select_timeout_request, depending on the
264 timeout. Count the number of ready descriptors (replies for which at
265 least one type bit is set). Implement the timeout locally when there is
266 no file descriptor.
267
268 2019-08-29 Mihailo Stojanovic <mihailo.stojanovic@rt-rk.com>
269
270 * elf/dl-addr.c (determine_info): Calculate the symbol index
271 using the newly defined ELF_MACHINE_HASH_SYMIDX macro.
272 * elf/dl-lookup.c (do_lookup_x): Ditto.
273 (_dl_setup_hash): Initialize MIPS xhash translation table.
274 * elf/elf.h (SHT_MIPS_XHASH): New define.
275 (DT_MIPS_XHASH): New define.
276 * sysdeps/generic/ldsodefs.h (ELF_MACHINE_GNU_HASH_ADDRIDX): New
277 define.
278 (ELF_MACHINE_HASH_SYMIDX): Ditto.
279 (ELF_MACHINE_XHASH_SETUP): Ditto.
280 * sysdeps/mips/ldsodefs.h (ELF_MACHINE_GNU_HASH_ADDRIDX): New
281 define.
282 (ELF_MACHINE_HASH_SYMIDX): Ditto.
283 (ELF_MACHINE_XHASH_SETUP): Ditto.
284 * sysdeps/mips/linkmap.h (struct link_map_machine): New member.
285 * sysdeps/unix/sysv/linux/mips/ldsodefs.h: Increment valid ABI
286 version.
287 * sysdeps/unix/sysv/linux/mips/libc-abis: New ABI version.
288
289 2019-08-29 Adhemerval Zanella <adhemerval.zanella@linaro.org>
290
291 * sysdeps/sh/preconfigure.ac: New file.
292 * sysdeps/sh/preconfigure: Regenerate.
293 * sysdeps/sh/be/sh3/Implies: New file.
294 * sysdeps/sh/be/sh4/Implies: Likewise.
295 * sysdeps/sh/le/sh3/Implies: Likewise.
296 * sysdeps/sh/le/sh4/Implies: Likewise.
297 * sysdeps/unix/sysv/linux/sh/le/sh3/Implies: Likewise.
298 * sysdeps/unix/sysv/linux/sh/le/sh4/Implies: Likewise.
299 * sysdeps/unix/sysv/linux/sh/*.abilist: Move to
300 sysdeps/unix/sysv/linux/sh/le/*.abilist.
301 * sysdeps/unix/sysv/linux/sh/be/*.abilist: New files.
302
303 * sysdeps/microblaze/preconfigure.ac: New file.
304 * sysdeps/microblaze/preconfigure: Regenerate.
305 * sysdeps/microblaze/be/implies: New file.
306 * sysdeps/microblaze/le/implies: Likewise.
307 * sysdeps/unix/sysv/linux/microblaze/be/implies: Likewise.
308 * sysdeps/unix/sysv/linux/microblaze/le/implies: Likewise.
309 * sysdeps/unix/sysv/linux/microblaze/*.abilist. Move to
310 sysdeps/unix/sysv/linux/microblaze/be/*.abilist.
311 * sysdeps/unix/sysv/linux/microblaze/le/*.abilist: New files.
312
313 * sysdeps/arm/preconfigure.ac: Set machine based on endianness.
314 * sysdeps/arm/preconfigure: Regenerate.
315 * sysdeps/arm/be/Implies: New file.
316 * sysdeps/arm/be/armv6/Implies: Likewise.
317 * sysdeps/arm/be/armv6t2/Implies: Likewise.
318 * sysdeps/arm/be/armv7/Implies: Likewise.
319 * sysdeps/arm/le/Implies: Likewise.
320 * sysdeps/unix/sysv/linux/arm/be/Implies: Likewise.
321 * sysdeps/unix/sysv/linux/arm/le/Implies: Likewise.
322 * sysdeps/unix/sysv/linux/arm/*.abilist: Move to
323 sysdeps/unix/sysv/linux/arm/le/*.abilist.
324 * sysdeps/unix/sysv/linux/arm/be/l*.abilist: New files.
325
326 2019-08-27 Paul Eggert <eggert@cs.ucla.edu>
327
328 Fix posix/tst-regex by using UTF-8 and own test input
329 Problem reported by Stefan Liebler in:
330 https://sourceware.org/ml/libc-alpha/2019-08/msg00658.html
331 * posix/tst-regex.c: Convert this file from Latin-1 to UTF-8.
332 (do_test, test_expr): Adjust to the fact that this source file,
333 and the test data in ChangeLog.8, is now UTF-8 instead of Latin-1.
334 * posix/tst-regex.input: Copy from ChangeLog.old/ChangeLog.8,
335 so that it is now UTF-8.
336
337 2019-08-28 Paul A. Clarke <pc@us.ibm.com>
338
339 * sysdeps/powerpc/fpu/fenv_libc.h (fegetenv_status_ISA300): Delete.
340 (fegetenv_status): Generate 'mffsl' unconditionally.
341
342 2019-08-28 Paul A. Clarke <pc@us.ibm.com>
343
344 * sysdeps/powerpc/fpu/fesetenv.c (__fesetenv): Utilize lightweight
345 FPSCR read.
346 (_FPU_MASK_ALL): Delete.
347
348 2019-08-28 Paul A. Clarke <pc@us.ibm.com>
349
350 * sysdeps/powerpc/fpu/fenv_private.h (libc_feholdsetround_ppc_ctx):
351 Utilize lightweight FPSCR read if possible, set fewer FPSCR bits
352 if possible.
353 (libc_feresetround_ppc): Replace call to __libc_femergeenv_ppc
354 with simpler required steps, set fewer FPSCR bits if possible.
355
356 2019-08-28 Paul A. Clarke <pc@us.ibm.com>
357
358 * sysdeps/powerpc/fpu/fenv_libc.h (fesetenv_mode): New.
359 (FPSCR_FPRF_MASK): New. (FPSCR_STATUS_MASK): New.
360 * sysdeps/powerpc/fpu/feenablxcpt.c (feenableexcept): Use lighter-
361 weight access to FPSCR; remove unnecessary second FPSCR read and
362 validate.
363 * sysdeps/powerpc/fpu/fedisblxcpt.c (fedisableexcept): Likewise.
364 * sysdeps/powerpc/fpu/fesetmode.c (fesetmode): Use lighter-weight
365 access to FPSCR; Use macros in fenv_libc.h in favor of local.
366
367 2019-08-28 Paul A. Clarke <pc@us.ibm.com>
368
369 * sysdeps/powerpc/fpu/fenv_libc.h: Define FPSCR bitmasks.
370 (fenv_reg_to_exceptions): Replace bitwise operations with mask-shift.
371 (fenv_exceptions_to_reg): New.
372 * sysdeps/powerpc/fpu/fedisblxcpt.c (fedisableexcept): Replace bitwise
373 operation with call to fenv_exceptions_to_reg().
374 * sysdeps/powerpc/fpu/feenablxcpt.c (feenableexcept): Likewise.
375
376 2019-08-28 Florian Weimer <fweimer@redhat.com>
377
378 * misc/mntent.c (struct mntent_buffer): Define.
379 (mntent_buffer): Adjust type to void *.
380 (allocate): Adjust for allocate_once.
381 (deallocate): New function.
382 (getmntent): Call allocate_once.
383
384 2019-08-28 Florian Weimer <fweimer@redhat.com>
385
386 nptl: Move pthread_attr_setdetachstate implementation into libc.
387 * nptl/Makefile (routines): Add pthread_attr_setdetachstate.
388 (libpthread-routines): Remove pthread_attr_setdetachstate.
389 * nptl/Versions (libpthread GLIBC_2.0): Remove
390 pthread_attr_setdetachstate.
391 * nptl/forward.c (pthread_attr_setdetachstate): Remove definition.
392 * nptl/nptl-init.c (pthread_functions): Remove initializer for
393 ptr_pthread_attr_setdetachstate.
394 * sysdeps/nptl/pthread-functions.h (struct pthread_functions):
395 Remove ptr_pthread_attr_setdetachstate member.
396 * sysdeps/unix/sysv/linux/aarch64/libpthread.abilist (GLIBC_2.17):
397 Remove pthread_attr_setdetachstate.
398 * sysdeps/unix/sysv/linux/alpha/libpthread.abilist (GLIBC_2.0):
399 Likewise.
400 * sysdeps/unix/sysv/linux/arm/libpthread.abilist (GLIBC_2.4):
401 Likewise.
402 * sysdeps/unix/sysv/linux/csky/libpthread.abilist (GLIBC_2.29):
403 Likewise.
404 * sysdeps/unix/sysv/linux/hppa/libpthread.abilist (GLIBC_2.2):
405 Likewise.
406 * sysdeps/unix/sysv/linux/i386/libpthread.abilist (GLIBC_2.0):
407 Likewise.
408 * sysdeps/unix/sysv/linux/ia64/libpthread.abilist (GLIBC_2.2):
409 Likewise.
410 * sysdeps/unix/sysv/linux/m68k/coldfire/libpthread.abilist
411 (GLIBC_2.4): Likewise.
412 * sysdeps/unix/sysv/linux/m68k/m680x0/libpthread.abilist
413 (GLIBC_2.0): Likewise.
414 * sysdeps/unix/sysv/linux/microblaze/libpthread.abilist
415 (GLIBC_2.18): Likewise.
416 * sysdeps/unix/sysv/linux/mips/mips32/libpthread.abilist
417 (GLIBC_2.0): Likewise.
418 * sysdeps/unix/sysv/linux/mips/mips64/libpthread.abilist
419 (GLIBC_2.0): Likewise.
420 * sysdeps/unix/sysv/linux/nios2/libpthread.abilist (GLIBC_2.21):
421 Likewise.
422 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libpthread.abilist
423 (GLIBC_2.0): Likewise.
424 * sysdeps/unix/sysv/linux/powerpc/powerpc64/be/libpthread.abilist
425 (GLIBC_2.3): Likewise.
426 * sysdeps/unix/sysv/linux/powerpc/powerpc64/le/libpthread.abilist
427 (GLIBC_2.17): Likewise.
428 * sysdeps/unix/sysv/linux/riscv/rv64/libpthread.abilist
429 (GLIBC_2.27): Likewise.
430 * sysdeps/unix/sysv/linux/s390/s390-32/libpthread.abilist
431 (GLIBC_2.0): Likewise.
432 * sysdeps/unix/sysv/linux/s390/s390-64/libpthread.abilist
433 (GLIBC_2.2): Likewise.
434 * sysdeps/unix/sysv/linux/sh/libpthread.abilist (GLIBC_2.2):
435 Likewise.
436 * sysdeps/unix/sysv/linux/sparc/sparc32/libpthread.abilist
437 (GLIBC_2.0): Likewise.
438 * sysdeps/unix/sysv/linux/sparc/sparc64/libpthread.abilist
439 (GLIBC_2.2): Likewise.
440 * sysdeps/unix/sysv/linux/x86_64/64/libpthread.abilist
441 (GLIBC_2.2.5): Likewise.
442 * sysdeps/unix/sysv/linux/x86_64/x32/libpthread.abilist
443 (GLIBC_2.16): Likewise.
444
445 2019-08-28 Florian Weimer <fweimer@redhat.com>
446
447 [BZ #24902]
448 * login/Makefile (tests): Add tst-pututxline-lockfail.
449 (tst-pututxline-lockfail): Link with -lpthread.
450 * login/utmp_file.c (internal_getut_r): Remove buffer argument.
451 (__libc_getutid_r): Adjust.
452 (__libc_pututline): Likewise. Check for file_offset == -1.
453 * login/tst-pututxline-lockfail.c: New file.
454
455 2019-08-28 Stefan Liebler <stli@linux.ibm.com>
456
457 * posix/tst-regex.c (do_test): Use tst-regex.input as input file.
458 * posix/tst-regex.input: New file.
459
460 2019-08-23 Mihailo Stojanovic <mihailo.stojanovic@rt-rk.com>
461
462 [BZ #24916]
463 * sysdeps/mips/Makefile [$(subdir) = elf] (tests): Add
464 tst-undefined-weak.
465 [$(subdir) = elf] (modules-names): Add tst-undefined-weak-lib.
466 [$(subdir) = elf] ($(objpfx)tst-undefined-weak): Add dependency.
467 * sysdeps/mips/tst-undefined-weak-lib.S: New file.
468 * sysdeps/mips/tst-undefined-weak.c: Likewise.
469 * sysdeps/unix/sysv/linux/mips/ldsodefs.h (VALID_ELF_ABIVERSION):
470 Increment highest valid ABIVERSION value.
471
472 2019-08-23 Dragan Mladjenovic <dmladjenovic@wavecomp.com>
473
474 * sysdeps/unix/sysv/linux/mips/Makefile
475 (test-xfail-check-execstack):
476 Move under mips-has-gnustack != yes.
477 (CFLAGS-.o*, ASFLAGS-.o*): New rules.
478 Apply -Wa,-execstack if mips-force-execstack == yes.
479 * sysdeps/unix/sysv/linux/mips/configure: Regenerated.
480 * sysdeps/unix/sysv/linux/mips/configure.ac
481 (mips-force-execstack): New var.
482 Set to yes for hard-float builds with minimum_kernel < 4.8.0
483 or minimum_kernel not set at all.
484 (mips-has-gnustack): New var.
485 Use value of libc_cv_as_noexecstack
486 if mips-force-execstack != yes, otherwise set to no.
487
488 2019-08-23 Adhemerval Zanella <adhemerval.zanella@linaro.org>
489 Florian Weimer <fweimer@redhat.com>
490
491 * gmon/Versions (libc) [GLIBC_2.31]: New entry.
492 * sysdeps/unix/sysv/linux/arm/profil-counter.h (profil_counter):
493 Make a compat_symbol.
494 * sysdeps/unix/sysv/linux/sparc/profil-counter.h
495 (__profil_counter_global): Likewise.
496
497 * debug/segfault.c (install_handler): Use SA_SIGINFO if defined.
498 * sysdeps/generic/profil-counter.h (__profil_counter): Cast to
499 uintptr_t.
500 * sysdeps/generic/sigcontextinfo.h (GET_PC): Rename to
501 sigcontext_get_pc and return aligned cast to uintptr_t.
502 * sysdeps/mach/hurd/i386/sigcontextinfo.h (GET_PC): Likewise.
503 * sysdeps/posix/profil.c (profil_count): Change PC argument to
504 uintptr_t.
505 (__profil): Use SA_SIGINFO.
506 * sysdeps/posix/sprofil.c (profil_count): Change PCP argument to
507 uintptr_t.
508 (__sprofil): Use SA_SIGINFO.
509 * sysdeps/unix/sysv/linux/profil-counter.h: New file.
510 * sysdeps/unix/sysv/linux/aarch64/profil-counter.h: Remove file.
511 * sysdeps/unix/sysv/linux/csky/profil-counter.h: Likewise.
512 * sysdeps/unix/sysv/linux/hppa/profil-counter.h: Likewise.
513 * sysdeps/unix/sysv/linux/i386/profil-counter.h: Likewise.
514 * sysdeps/unix/sysv/linux/ia64/profil-counter.h: Likewise.
515 * sysdeps/unix/sysv/linux/microblaze/profil-counter.h: Likewise.
516 * sysdeps/unix/sysv/linux/mips/profil-counter.h: Likewise.
517 * sysdeps/unix/sysv/linux/nios2/profil-counter.h: Likewise.
518 * sysdeps/unix/sysv/linux/powerpc/profil-counter.h: Likewise.
519 * sysdeps/unix/sysv/linux/x86_64/profil-counter.h: Likewise.
520 * sysdeps/unix/sysv/linux/riscv/profil-counter.h: Likewise.
521 * sysdeps/sysv/linux/s390/s390-32/profil-counter.h: Likewise.
522 * sysdeps/sysv/linux/s390/s390-64/profil-counter.h: Likewise.
523 * sysdeps/unix/sysv/linux/sh/profil-counter.h: Likewise.
524 * sysdeps/unix/sysv/linux/arm/profil-counter.h (__profil_counter):
525 Assume SA_SIGINFO and use sigcontext_get_pc instead of GET_PC.
526 * sysdeps/unix/sysv/linux/sparc/profil-counter.h: New file.
527 * sysdeps/unix/sysv/linux/sparc/sparc64/profil-counter.h: Remove file.
528 * sysdeps/unix/sysv/linux/sparc/sparc32/profil-counter.h: Likewise.
529 * sysdpes/unix/sysv/linux/aarch64/sigcontextinfo.h (SIGCONTEXT,
530 GET_PC, __sigaction, sigaction): Remove defines.
531 (sigcontext_get_pc): New function.
532 * sysdeps/unix/sysv/linux/alpha/sigcontextinfo.h: Likewise.
533 * sysdeps/unix/sysv/linux/arm/sigcontextinfo.h: Likewise.
534 * sysdeps/unix/sysv/linux/csky/sigcontextinfo.h: Likewise.
535 * sysdeps/unix/sysv/linux/hppa/sigcontextinfo.h: Likewise.
536 * sysdeps/unix/sysv/linux/i386/sigcontextinfo.h: Likewise.
537 * sysdeps/unix/sysv/linux/ia64/sigcontextinfo.h: Likewise.
538 * sysdeps/unix/sysv/linux/m68k/sigcontextinfo.h: Likewise.
539 * sysdeps/unix/sysv/linux/mips/sigcontextinfo.h: Likewise.
540 * sysdeps/unix/sysv/linux/nios2/sigcontextinfo.h: Likewise.
541 * sysdeps/unix/sysv/linux/s390/sigcontextinfo.h: Likewise.
542 * sysdeps/unix/sysv/linux/microblaze/sigcontextinfo.h: Likewise.
543 * sysdeps/unix/sysv/linux/powerpc/sigcontextinfo.h: Likewise.
544 * sysdeps/unix/sysv/linux/riscv/sigcontextinfo.h: Likewise.
545 * sysdeps/unix/sysv/linux/sh/sigcontextinfo.h: Likewise.
546 * sysdeps/sysv/linux/sparc/sparc32/sigcontextinfo.h: Likewise.
547 * sysdeps/sysv/linux/sparc/sparc64/sigcontextinfo.h: Likewise.
548 * sysdeps/unix/sysv/linux/x86_64/sigcontextinfo.h: Likewise.
549 * sysdeps/unix/sysv/linux/alpha/register-dump.h (register_dump):
550 Handle CTX argument as ucontext_t.
551 * sysdeps/unix/sysv/linux/i386/register-dump.h: Likewise.
552 Likewise.
553 * sysdeps/unix/sysv/linux/m68k/register-dump.h: Likewise.
554 * sysdeps/sysv/linux/s390/s390-32/register-dump.h: Likewise.
555 * sysdeps/sysv/linux/s390/s390-64/register-dump.h: Likewise.
556 * sysdeps/unix/sysv/linux/sh/register-dump.h: New file.
557 * sysdeps/unix/sysv/linux/sh/sh4/register-dump.h: Remove File.
558 * sysdeps/unix/sysv/linux/sh/sh3/register-dump.h: Likewise.
559 * sysdeps/unix/sysv/linux/sparc/sparc32/register-dump.h: Likewise.
560 * sysdeps/unix/sysv/linux/sparc/sparc64/register-dump.h: Likewise.
561 * sysdeps/unix/sysv/linux/Makefile (tests-internal): Add
562 tst-sigcontextinfo-get_pc.
563 * sysdeps/unix/sysv/linux/tst-sigcontextinfo-get_pc.c: New file.
564 (CFLAGS-tst-sigcontextinfo-get_pc.c): New rule.
565
566 2019-08-23 Adhemerval Zanella <adhemerval.zanella@linaro.org>
567
568 * sysdeps/generic/single-thread.h (RTLD_SINGLE_THREAD_P): Add
569 definition.
570
571 2019-08-23 Rafał Lużyński <digitalfreak@lingonborough.com>
572
573 [BZ #24682]
574 * localedata/locales/bo_CN (first_weekday): Add, set to 2 (Monday).
575 * localedata/locales/ug_CN (first_weekday): Likewise.
576 * localedata/locales/zh_CN (first_weekday): Likewise.
577
578 2019-08-22 Gustavo Romero <gromero@linux.vnet.ibm.com>
579
580 * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h: Fix typos and
581 field name in mcontext_t struct.
582
583 2019-08-22 Joseph Myers <joseph@codesourcery.com>
584
585 * resolv/tst-resolv-ai_idn-latin1.c (do_test): Mark test
586 unsupported with libidn2 before 2.0.5.
587 * resolv/tst-resolv-ai_idn.c (do_test): Likewise.
588
589 * manual/time.texi (strftime): Document %Ob and %OB as C2X
590 features.
591
592 2019-08-21 Paul Eggert <eggert@cs.ucla.edu>
593
594 Remove dead regex code
595 * posix/regex_internal.c (re_node_set_insert):
596 Remove unnecessary assignment. Reported by Tim Rühsen in:
597 https://lists.gnu.org/r/bug-gnulib/2019-08/msg00026.html
598
599 Fix bad pointer / leak in regex code
600 This was found by Coverity (CID 1484201). [BZ#24844]
601 * posix/regex_internal.c (create_cd_newstate): Fix use of bad
602 pointer and/or memory leak when storage is exhausted.
603
604 2019-08-21 Zack Weinberg <zackw@panix.com>
605
606 * misc/syslog.c (__vsyslog_internal)
607 * time/getdate.c (__getdate_r)
608 * time/tst_wcsftime.c (main):
609 Use return value of time, not its argument.
610
611 * string/strfry.c (strfry)
612 * sysdeps/mach/sleep.c (__sleep):
613 Remove unnecessary casts of NULL in calls to time.
614
615 2019-08-21 Joseph Myers <joseph@codesourcery.com>
616
617 * math/tgmath.h [__HAVE_FLOAT128X]: Give error.
618 [(__HAVE_FLOAT64X && !__HAVE_FLOAT128)
619 || (__HAVE_FLOAT128 && !__HAVE_FLOAT64X)]: Likewise.
620 (__TGMATH_2_NARROW_F): Likewise.
621 (__TGMATH_2_NARROW_D): New macro.
622 (__TGMATH_2_NARROW_F16): Likewise.
623 (__TGMATH_2_NARROW_F32): Likewise.
624 (__TGMATH_2_NARROW_F64): Likewise.
625 (__TGMATH_2_NARROW_F32X): Likewise.
626 (__TGMATH_2_NARROW_F64X): Likewise.
627 [__HAVE_BUILTIN_TGMATH] (__TGMATH_NARROW_FUNCS_F): Likewise.
628 [__HAVE_BUILTIN_TGMATH] (__TGMATH_NARROW_FUNCS_F16): Likewise.
629 [__HAVE_BUILTIN_TGMATH] (__TGMATH_NARROW_FUNCS_F32): Likewise.
630 [__HAVE_BUILTIN_TGMATH] (__TGMATH_NARROW_FUNCS_F64): Likewise.
631 [__HAVE_BUILTIN_TGMATH] (__TGMATH_NARROW_FUNCS_F32X): Likewise.
632 [__GLIBC_USE (IEC_60559_BFP_EXT_C2X)] (fadd): Likewise.
633 [__GLIBC_USE (IEC_60559_BFP_EXT_C2X)] (dadd): Likewise.
634 [__GLIBC_USE (IEC_60559_BFP_EXT_C2X)] (fdiv): Likewise.
635 [__GLIBC_USE (IEC_60559_BFP_EXT_C2X)] (ddiv): Likewise.
636 [__GLIBC_USE (IEC_60559_BFP_EXT_C2X)] (fmul): Likewise.
637 [__GLIBC_USE (IEC_60559_BFP_EXT_C2X)] (dmul): Likewise.
638 [__GLIBC_USE (IEC_60559_BFP_EXT_C2X)] (fsub): Likewise.
639 [__GLIBC_USE (IEC_60559_BFP_EXT_C2X)] (dsub): Likewise.
640 [__GLIBC_USE (IEC_60559_TYPES_EXT) && __HAVE_FLOAT16] (f16add):
641 Likewise.
642 [__GLIBC_USE (IEC_60559_TYPES_EXT) && __HAVE_FLOAT16] (f16div):
643 Likewise.
644 [__GLIBC_USE (IEC_60559_TYPES_EXT) && __HAVE_FLOAT16] (f16mul):
645 Likewise.
646 [__GLIBC_USE (IEC_60559_TYPES_EXT) && __HAVE_FLOAT16] (f16sub):
647 Likewise.
648 [__GLIBC_USE (IEC_60559_TYPES_EXT) && __HAVE_FLOAT32] (f32add):
649 Likewise.
650 [__GLIBC_USE (IEC_60559_TYPES_EXT) && __HAVE_FLOAT32] (f32div):
651 Likewise.
652 [__GLIBC_USE (IEC_60559_TYPES_EXT) && __HAVE_FLOAT32] (f32mul):
653 Likewise.
654 [__GLIBC_USE (IEC_60559_TYPES_EXT) && __HAVE_FLOAT32] (f32sub):
655 Likewise.
656 [__GLIBC_USE (IEC_60559_TYPES_EXT) && __HAVE_FLOAT64
657 && (__HAVE_FLOAT64X || __HAVE_FLOAT128)] (f64add): Likewise.
658 [__GLIBC_USE (IEC_60559_TYPES_EXT) && __HAVE_FLOAT64
659 && (__HAVE_FLOAT64X || __HAVE_FLOAT128)] (f64div): Likewise.
660 [__GLIBC_USE (IEC_60559_TYPES_EXT) && __HAVE_FLOAT64
661 && (__HAVE_FLOAT64X || __HAVE_FLOAT128)] (f64mul): Likewise.
662 [__GLIBC_USE (IEC_60559_TYPES_EXT) && __HAVE_FLOAT64
663 && (__HAVE_FLOAT64X || __HAVE_FLOAT128)] (f64sub): Likewise.
664 [__GLIBC_USE (IEC_60559_TYPES_EXT) && __HAVE_FLOAT32X] (f32xadd):
665 Likewise.
666 [__GLIBC_USE (IEC_60559_TYPES_EXT) && __HAVE_FLOAT32X] (f32xdiv):
667 Likewise.
668 [__GLIBC_USE (IEC_60559_TYPES_EXT) && __HAVE_FLOAT32X] (f32xmul):
669 Likewise.
670 [__GLIBC_USE (IEC_60559_TYPES_EXT) && __HAVE_FLOAT32X] (f32xsub):
671 Likewise.
672 [__GLIBC_USE (IEC_60559_TYPES_EXT) && __HAVE_FLOAT64X
673 && (__HAVE_FLOAT128X || __HAVE_FLOAT128)] (f64xadd): Likewise.
674 [__GLIBC_USE (IEC_60559_TYPES_EXT) && __HAVE_FLOAT64X
675 && (__HAVE_FLOAT128X || __HAVE_FLOAT128)] (f64xdiv): Likewise.
676 [__GLIBC_USE (IEC_60559_TYPES_EXT) && __HAVE_FLOAT64X
677 && (__HAVE_FLOAT128X || __HAVE_FLOAT128)] (f64xmul): Likewise.
678 [__GLIBC_USE (IEC_60559_TYPES_EXT) && __HAVE_FLOAT64X
679 && (__HAVE_FLOAT128X || __HAVE_FLOAT128)] (f64xsub): Likewise.
680 * math/gen-tgmath-tests.py (Type): Add members
681 non_standard_real_argument_types_list, long_double_type,
682 complex_float64_type and float32x_ext_type.
683 (Type.__init__): Set the new members.
684 (Type.floating_type): Add new argument floatn.
685 (Type.real_floating_type): Likewise.
686 (Type.can_combine_types): Likewise.
687 (Type.combine_types): Likewise.
688 (Type.init_types): Create internal Float32x_ext type.
689 (Tests.__init__): Define Float32x_ext in generated C code.
690 (Tests.add_tests): Handle narrowing functions.
691 (Tests.add_all_tests): Likewise.
692 (Tests.tests_text): Allow variation in mant_dig for narrowing
693 functions with compilers before GCC 8.
694 * math/Makefile (tgmath3-narrow-types): New variable.
695 (tgmath3-narrow-macros): Likewise.
696 (tgmath3-macros): Add $(tgmath3-narrow-macros).
697
698 2019-08-20 Andreas Schwab <schwab@suse.de>
699
700 * sysdeps/i386/fpu/libm-test-ulps: Update.
701
702 2019-08-19 Carlos O'Donell <carlos@redhat.com>
703
704 * nscd/nscd.conf: Add warning and comment about shared option.
705
706 2019-08-19 Carlos O'Donell <carlos@redhat.com>
707
708 * nss/nsswitch.conf: Expand comments, and simplify defaults.
709 * manual/nss.texi (NSS Basics): List all known databases.
710 (Services in the NSS configuration): Mention automount.
711
712 2019-08-19 Florian Weimer <fweimer@redhat.com>
713
714 Do not print backtraces on fatal errors.
715 * debug/fortify_fail.c (__libc_argv): Remove declaration.
716 (__fortify_fail_abort): Remove definition.
717 (__fortify_fail): Call __libc_message directly.
718 * debug/stack_chk_fail.c (__libc_argv): Remove declaration.
719 (__stack_chk_fail): Call __fortify_fail instead of
720 __fortify_fail_abort.
721 * include/stdio.h (__fortify_fail_abort): Remove declaration.
722 * sysdeps/posix/libc_fatal.c (BEFORE_ABORT, before_abort): Remove
723 definitions.
724 (__libc_message): Do not handle do_backtrace. Do not call
725 BEFORE_ABORT.
726 (__libc_fatal): Do not pass do_backtrace to __libc_message.
727 * sysdeps/unix/sysv/linux/libc_fatal.c (BEFORE_ABORT)
728 (before_abort): Remove definitions.
729
730 2019-08-16 Florian Weimer <fweimer@redhat.com>
731
732 nptl: Move pthread_attr_getdetachstate implementation into libc.
733 * nptl/Makefile (routines): Add pthread_attr_getdetachstate.
734 (libpthread-routines): Remove pthread_attr_getdetachstate.
735 * nptl/Versions (libpthread GLIBC_2.0): Remove
736 pthread_attr_getdetachstate.
737 * nptl/forward.c (pthread_attr_getdetachstate): Remove definition.
738 * nptl/nptl-init.c (pthread_functions): Remove initializer for
739 ptr_pthread_attr_getdetachstate.
740 * sysdeps/nptl/pthread-functions.h (struct pthread_functions):
741 Remove ptr_pthread_attr_getdetachstate member.
742 * sysdeps/unix/sysv/linux/aarch64/libpthread.abilist (GLIBC_2.17):
743 Remove pthread_attr_getdetachstate.
744 * sysdeps/unix/sysv/linux/alpha/libpthread.abilist (GLIBC_2.0):
745 Likewise.
746 * sysdeps/unix/sysv/linux/arm/libpthread.abilist (GLIBC_2.4):
747 Likewise.
748 * sysdeps/unix/sysv/linux/csky/libpthread.abilist (GLIBC_2.29):
749 Likewise.
750 * sysdeps/unix/sysv/linux/hppa/libpthread.abilist (GLIBC_2.2):
751 Likewise.
752 * sysdeps/unix/sysv/linux/i386/libpthread.abilist (GLIBC_2.0):
753 Likewise.
754 * sysdeps/unix/sysv/linux/ia64/libpthread.abilist (GLIBC_2.2):
755 Likewise.
756 * sysdeps/unix/sysv/linux/m68k/coldfire/libpthread.abilist
757 (GLIBC_2.4): Likewise.
758 * sysdeps/unix/sysv/linux/m68k/m680x0/libpthread.abilist
759 (GLIBC_2.0): Likewise.
760 * sysdeps/unix/sysv/linux/microblaze/libpthread.abilist
761 (GLIBC_2.18): Likewise.
762 * sysdeps/unix/sysv/linux/mips/mips32/libpthread.abilist
763 (GLIBC_2.0): Likewise.
764 * sysdeps/unix/sysv/linux/mips/mips64/libpthread.abilist
765 (GLIBC_2.0): Likewise.
766 * sysdeps/unix/sysv/linux/nios2/libpthread.abilist (GLIBC_2.21):
767 Likewise.
768 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libpthread.abilist
769 (GLIBC_2.0): Likewise.
770 * sysdeps/unix/sysv/linux/powerpc/powerpc64/be/libpthread.abilist
771 (GLIBC_2.3): Likewise.
772 * sysdeps/unix/sysv/linux/powerpc/powerpc64/le/libpthread.abilist
773 (GLIBC_2.17): Likewise.
774 * sysdeps/unix/sysv/linux/riscv/rv64/libpthread.abilist
775 (GLIBC_2.27): Likewise.
776 * sysdeps/unix/sysv/linux/s390/s390-32/libpthread.abilist
777 (GLIBC_2.0): Likewise.
778 * sysdeps/unix/sysv/linux/s390/s390-64/libpthread.abilist
779 (GLIBC_2.2): Likewise.
780 * sysdeps/unix/sysv/linux/sh/libpthread.abilist (GLIBC_2.2):
781 Likewise.
782 * sysdeps/unix/sysv/linux/sparc/sparc32/libpthread.abilist
783 (GLIBC_2.0): Likewise.
784 * sysdeps/unix/sysv/linux/sparc/sparc64/libpthread.abilist
785 (GLIBC_2.2): Likewise.
786 * sysdeps/unix/sysv/linux/x86_64/64/libpthread.abilist
787 (GLIBC_2.2.5): Likewise.
788 * sysdeps/unix/sysv/linux/x86_64/x32/libpthread.abilist
789 (GLIBC_2.16): Likewise.
790
791 2019-08-16 Joseph Myers <joseph@codesourcery.com>
792
793 * math/libm-test-compat_totalorder.inc (do_test)
794 [TEST_COMPAT (libm, GLIBC_2_25, GLIBC_2_31)]: Change condition to
795 [TEST_COMPAT (libm, COMPAT_VER, GLIBC_2_31)].
796 * math/libm-test-compat_totalordermag.inc (do_test)
797 [TEST_COMPAT (libm, GLIBC_2_25, GLIBC_2_31)]: Likewise.
798
799 2019-08-15 Florian Weimer <fweimer@redhat.com>
800
801 nptl: Move pthread_attr_init implementation into libc.
802 * nptl/Makefile (routines): Add pthread_attr_init.
803 (libpthread-routines): Remove pthread_attr_init.
804 * nptl/Versions (libpthread GLIBC_2.0): Remove pthread_attr_init.
805 (libpthread GLIBC_2.0): Likewise.
806 * nptl/pthread_attr_init.c: Check for libc compat version instead
807 of libpthread compat version.
808 * nptl/forward.c (__pthread_attr_init_2_0)
809 (__pthread_attr_init_2_1): Remove definitions.
810 * nptl/nptl-init.c (pthread_functions): Remove initializers for
811 ptr___pthread_attr_init_2_0, ptr___pthread_attr_init_2_1.
812 * sysdeps/nptl/pthread-functions.h (struct pthread_functions):
813 Remove members ptr___pthread_attr_init_2_0,
814 ptr___pthread_attr_init_2_1.
815 * sysdeps/unix/sysv/linux/aarch64/libpthread.abilist (GLIBC_2.17):
816 Remove pthread_attr_init.
817 * sysdeps/unix/sysv/linux/alpha/libpthread.abilist (GLIBC_2.0):
818 Likewise.
819 (GLIBC_2.1): Likewise.
820 * sysdeps/unix/sysv/linux/arm/libpthread.abilist (GLIBC_2.4):
821 Likewise.
822 * sysdeps/unix/sysv/linux/csky/libpthread.abilist (GLIBC_2.29):
823 Likewise.
824 * sysdeps/unix/sysv/linux/hppa/libpthread.abilist (GLIBC_2.2):
825 Likewise.
826 * sysdeps/unix/sysv/linux/i386/libpthread.abilist (GLIBC_2.0):
827 Likewise.
828 (GLIBC_2.1): Likewise.
829 * sysdeps/unix/sysv/linux/ia64/libpthread.abilist (GLIBC_2.2):
830 Likewise.
831 * sysdeps/unix/sysv/linux/m68k/coldfire/libpthread.abilist
832 (GLIBC_2.4): Likewise.
833 * sysdeps/unix/sysv/linux/m68k/m680x0/libpthread.abilist
834 (GLIBC_2.0): Likewise.
835 (GLIBC_2.1): Likewise.
836 * sysdeps/unix/sysv/linux/microblaze/libpthread.abilist
837 (GLIBC_2.18): Likewise.
838 * sysdeps/unix/sysv/linux/mips/mips32/libpthread.abilist
839 (GLIBC_2.0): Likewise.
840 (GLIBC_2.1): Likewise.
841 * sysdeps/unix/sysv/linux/mips/mips64/libpthread.abilist
842 (GLIBC_2.0): Likewise.
843 (GLIBC_2.1): Likewise.
844 * sysdeps/unix/sysv/linux/nios2/libpthread.abilist (GLIBC_2.21):
845 Likewise.
846 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libpthread.abilist
847 (GLIBC_2.0): Likewise.
848 (GLIBC_2.1): Likewise.
849 * sysdeps/unix/sysv/linux/powerpc/powerpc64/be/libpthread.abilist
850 (GLIBC_2.3): Likewise.
851 * sysdeps/unix/sysv/linux/powerpc/powerpc64/le/libpthread.abilist
852 (GLIBC_2.17): Likewise.
853 * sysdeps/unix/sysv/linux/riscv/rv64/libpthread.abilist
854 (GLIBC_2.27): Likewise.
855 * sysdeps/unix/sysv/linux/s390/s390-32/libpthread.abilist
856 (GLIBC_2.0): Likewise.
857 (GLIBC_2.1): Likewise.
858 * sysdeps/unix/sysv/linux/s390/s390-64/libpthread.abilist
859 (GLIBC_2.2): Likewise.
860 * sysdeps/unix/sysv/linux/sh/libpthread.abilist (GLIBC_2.2):
861 Likewise.
862 * sysdeps/unix/sysv/linux/sparc/sparc32/libpthread.abilist
863 (GLIBC_2.0): Likewise.
864 (GLIBC_2.1): Likewise.
865 * sysdeps/unix/sysv/linux/sparc/sparc64/libpthread.abilist
866 (GLIBC_2.2): Likewise.
867 * sysdeps/unix/sysv/linux/x86_64/64/libpthread.abilist
868 (GLIBC_2.2.5): Likewise.
869 * sysdeps/unix/sysv/linux/x86_64/x32/libpthread.abilist
870 (GLIBC_2.16): Likewise.
871
872 2019-08-15 Florian Weimer <fweimer@redhat.com>
873
874 [BZ #24900]
875 * elf/dl-object.c (_dl_new_object): Do not store pathnames in the
876 new object in __RTLD_OPENEXEC mode (except for the origin).
877 * elf/tst-dlopen-aout.c (check_dlopen_failure): New function with
878 check for the error message.
879 (do_test): Call it. Add check using relative path.
880 * elf/Makefile (tests-container): Add tst-dlopen-aout-container.
881 (tst-dlopen-aout-container): Link with libpthread.
882 (LDFLAGS-tst-dlopen-aout-container): Set RPATH to $ORIGIN.
883
884 2019-08-15 Joseph Myers <joseph@codesourcery.com>
885
886 * math/bits/mathcalls.h
887 [__GLIBC_USE (IEC_60559_BFP_EXT) || __MATH_DECLARING_FLOATN]
888 (totalorder): Take pointer arguments.
889 [__GLIBC_USE (IEC_60559_BFP_EXT) || __MATH_DECLARING_FLOATN]
890 (totalordermag): Likewise.
891 * manual/arith.texi (totalorder): Likewise.
892 (totalorderf): Likewise.
893 (totalorderl): Likewise.
894 (totalorderfN): Likewise.
895 (totalorderfNx): Likewise.
896 (totalordermag): Likewise.
897 (totalordermagf): Likewise.
898 (totalordermagl): Likewise.
899 (totalordermagfN): Likewise.
900 (totalordermagfNx): Likewise.
901 * math/tgmath.h (__TGMATH_BINARY_REAL_RET_ONLY): Remove macro.
902 [__GLIBC_USE (IEC_60559_BFP_EXT)] (totalorder): Likewise.
903 [__GLIBC_USE (IEC_60559_BFP_EXT)] (totalordermag): Likewise.
904 * math/Versions (GLIBC_2.31): Add totalorder, totalorderf,
905 totalorderl, totalordermag, totalordermagf, totalordermagl,
906 totalorderf32, totalorderf64, totalorderf32x, totalordermagf32,
907 totalordermagf64, totalordermagf32x, totalorderf64x,
908 totalordermagf64x, totalorderf128 and totalordermagf128.
909 * math/Makefile (libm-test-funcs-noauto): Add compat_totalorder
910 and compat_totalordermag.
911 (libm-test-funcs-compat): New variable.
912 (libm-tests-compat): Likewise.
913 (tests): Do not include compat tests.
914 (tests-internal): Add compat tests.
915 ($(foreach t,$(libm-tests-base),
916 $(objpfx)$(t)-compat_totalorder.o)): Depend
917 on $(objpfx)libm-test-totalorder.c.
918 ($(foreach t,$(libm-tests-base),
919 $(objpfx)$(t)-compat_totalordermag.o): Depend on
920 $(objpfx)libm-test-totalordermag.c.
921 (tgmath3-macros): Remove totalorder and totalordermag.
922 * math/libm-test-compat_totalorder.inc: New file.
923 * math/libm-test-compat_totalordermag.inc: Likewise.
924 * math/libm-test-driver.c (struct test_ff_i_data): Update comment.
925 (RUN_TEST_fpfp_b): New macro.
926 (RUN_TEST_LOOP_fpfp_b): Likewise.
927 * math/libm-test-totalorder.inc (totalorder_test_data): Use
928 TEST_fpfp_b.
929 (totalorder_test): Condition on [!COMPAT_TEST].
930 (do_test): Likewise.
931 * math/libm-test-totalordermag.inc (totalordermag_test_data): Use
932 TEST_fpfp_b.
933 (totalordermag_test): Condition on [!COMPAT_TEST].
934 (do_test): Likewise.
935 * math/gen-tgmath-tests.py (Tests.add_all_tests): Remove
936 totalorder and totalordermag.
937 * math/test-tgmath.c (NCALLS): Change to 132.
938 (F(compile_test)): Do not call totalorder or totalordermag.
939 (F(totalorder)): Remove.
940 (F(totalordermag)): Likewise.
941 * include/float.h (__STDC_WANT_IEC_60559_TYPES_EXT__): Do not
942 define if [__STDC_WANT_IEC_60559_TYPES_EXT__].
943 * include/setjmp.h [!_ISOMAC] (STR_HELPER): Rename to
944 SJSTR_HELPER.
945 [!_ISOMAC] (STR): Rename to SJSTR. Update call to STR_HELPER.
946 [!_ISOMAC] (TEST_SIZE): Update call to STR.
947 [!_ISOMAC] (TEST_ALIGN): Likewise.
948 [!_ISOMAC] (TEST_OFFSET): Likewise.
949 * sysdeps/ieee754/dbl-64/s_totalorder.c: Include <shlib-compat.h>
950 and <first-versions.h>.
951 (__totalorder): Take pointer arguments. Add symbol versions and
952 compat symbols.
953 * sysdeps/ieee754/dbl-64/s_totalordermag.c: Include
954 <shlib-compat.h> and <first-versions.h>.
955 (__totalordermag): Take pointer arguments. Add symbol versions
956 and compat symbols.
957 * sysdeps/ieee754/dbl-64/wordsize-64/s_totalorder.c: Include
958 <shlib-compat.h> and <first-versions.h>.
959 (__totalorder): Take pointer arguments. Add symbol versions and
960 compat symbols.
961 * sysdeps/ieee754/dbl-64/wordsize-64/s_totalordermag.c: Include
962 <shlib-compat.h> and <first-versions.h>.
963 (__totalordermag): Take pointer arguments. Add symbol versions
964 and compat symbols.
965 * sysdeps/ieee754/float128/float128_private.h
966 (__totalorder_compatl): New macro.
967 (__totalordermag_compatl): Likewise.
968 * sysdeps/ieee754/flt-32/s_totalorderf.c: Include <shlib-compat.h>
969 and <first-versions.h>.
970 (__totalorderf): Take pointer arguments. Add symbol versions and
971 compat symbols.
972 * sysdeps/ieee754/flt-32/s_totalordermagf.c: Include
973 <shlib-compat.h> and <first-versions.h>.
974 (__totalordermagf): Take pointer arguments. Add symbol versions
975 and compat symbols.
976 * sysdeps/ieee754/ldbl-128/s_totalorderl.c: Include
977 <shlib-compat.h> and <first-versions.h>.
978 (__totalorderl): Take pointer arguments. Add symbol versions and
979 compat symbols.
980 * sysdeps/ieee754/ldbl-128/s_totalordermagl.c: Include
981 <shlib-compat.h> and <first-versions.h>.
982 (__totalordermagl): Take pointer arguments. Add symbol versions
983 and compat symbols.
984 * sysdeps/ieee754/ldbl-128ibm/s_totalorderl.c: Include
985 <shlib-compat.h>.
986 (__totalorderl): Take pointer arguments. Add symbol versions and
987 compat symbols.
988 * sysdeps/ieee754/ldbl-128ibm/s_totalordermagl.c: Include
989 <shlib-compat.h>.
990 (__totalordermagl): Take pointer arguments. Add symbol versions
991 and compat symbols.
992 * sysdeps/ieee754/ldbl-96/s_totalorderl.c: Include
993 <shlib-compat.h> and <first-versions.h>.
994 (__totalorderl): Take pointer arguments. Add symbol versions and
995 compat symbols.
996 * sysdeps/ieee754/ldbl-96/s_totalordermagl.c: Include
997 <shlib-compat.h> and <first-versions.h>.
998 (__totalordermagl): Take pointer arguments. Add symbol versions
999 and compat symbols.
1000 * sysdeps/ieee754/ldbl-opt/nldbl-totalorder.c (totalorderl): Take
1001 pointer arguments.
1002 * sysdeps/ieee754/ldbl-opt/nldbl-totalordermag.c (totalordermagl):
1003 Likewise.
1004 * sysdeps/ieee754/ldbl-128ibm/test-totalorderl-ldbl-128ibm.c
1005 (do_test): Update calls to totalorderl and totalordermagl.
1006 * sysdeps/ieee754/ldbl-96/test-totalorderl-ldbl-96.c (do_test):
1007 Update calls to totalorderl and totalordermagl.
1008 * sysdeps/mach/hurd/i386/libm.abilist: Update.
1009 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
1010 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
1011 * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
1012 * sysdeps/unix/sysv/linux/csky/libm.abilist: Likewise.
1013 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
1014 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
1015 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
1016 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
1017 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
1018 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
1019 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
1020 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
1021 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
1022 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist:
1023 Likewise.
1024 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
1025 Likewise.
1026 * sysdeps/unix/sysv/linux/powerpc/powerpc64/be/libm.abilist:
1027 Likewise.
1028 * sysdeps/unix/sysv/linux/powerpc/powerpc64/le/libm.abilist:
1029 Likewise.
1030 * sysdeps/unix/sysv/linux/riscv/rv64/libm.abilist: Likewise.
1031 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
1032 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
1033 * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
1034 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
1035 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
1036 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
1037 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
1038
1039 2019-08-15 Florian Weimer <fweimer@redhat.com>
1040
1041 [BZ #24899]
1042 * sysdeps/gnu/bits/utmpx.h (struct utmpx): Add
1043 __attribute_nonstring__ to ut_line, ut_id, ut_user, ut_host.
1044 * sysdeps/unix/sysv/linux/s390/bits/utmpx.h (struct utmpx):
1045 Likewise.
1046 * sysdeps/gnu/bits/utmp.h (struct utmp): Add
1047 __attribute_nonstring__ to ut_id.
1048 * sysdeps/unix/sysv/linux/s390/bits/utmpx.h (struct utmp):
1049 Likewise.
1050
1051 2019-08-15 Florian Weimer <fweimer@redhat.com>
1052
1053 [BZ #24880]
1054 * login/utmp_file.c (file_locking_failed): Use struct flock64.
1055 (file_locking_unlock): Likewise.
1056
1057 2019-08-15 Florian Weimer <fweimer@redhat.com>
1058
1059 [BZ #24879]
1060 login: Disarm timer after utmp lock acquisition.
1061 * login/utmp_file.c (struct file_locking): Remove.
1062 (try_file_lock): Adjust.
1063 (file_lock_restore): Remove function.
1064 (__libc_getutent_r): .
1065 (internal_getut_r): Likewise.
1066 (__libc_getutline_r): Likewise.
1067 (__libc_pututline): Likewise.
1068 (__libc_updwtmp): Likewise.
1069
1070 2019-08-15 Florian Weimer <fweimer@redhat.com>
1071
1072 nptl: Remove pthread_self compatibility symbol from libpthread.
1073 * nptl/Versions (libpthread GLIBC_2.0): Remove pthread_self,
1074 pthread_equal.
1075 * nptl/Makefile (libpthread-routines): Remove compat-pthread_self.
1076 * nptl/compat-pthread_self.c: Remove file.
1077 * sysdeps/unix/sysv/linux/aarch64/libpthread.abilist (GLIBC_2.17):
1078 Remove pthread_self.
1079 * sysdeps/unix/sysv/linux/alpha/libpthread.abilist (GLIBC_2.0):
1080 Likewise.
1081 * sysdeps/unix/sysv/linux/arm/libpthread.abilist (GLIBC_2.4):
1082 Likewise.
1083 * sysdeps/unix/sysv/linux/hppa/libpthread.abilist (GLIBC_2.2):
1084 Likewise.
1085 * sysdeps/unix/sysv/linux/i386/libpthread.abilist (GLIBC_2.0):
1086 Likewise.
1087 * sysdeps/unix/sysv/linux/ia64/libpthread.abilist (GLIBC_2.2):
1088 Likewise.
1089 * sysdeps/unix/sysv/linux/m68k/coldfire/libpthread.abilist
1090 (GLIBC_2.4): Likewise.
1091 * sysdeps/unix/sysv/linux/m68k/m680x0/libpthread.abilist
1092 (GLIBC_2.0): Likewise.
1093 * sysdeps/unix/sysv/linux/microblaze/libpthread.abilist
1094 (GLIBC_2.18): Likewise.
1095 * sysdeps/unix/sysv/linux/mips/mips32/libpthread.abilist
1096 (GLIBC_2.0): Likewise.
1097 * sysdeps/unix/sysv/linux/mips/mips64/libpthread.abilist
1098 (GLIBC_2.0): Likewise.
1099 * sysdeps/unix/sysv/linux/nios2/libpthread.abilist (GLIBC_2.21):
1100 Likewise.
1101 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libpthread.abilist
1102 (GLIBC_2.0): Likewise.
1103 * sysdeps/unix/sysv/linux/powerpc/powerpc64/be/libpthread.abilist
1104 (GLIBC_2.3): Likewise.
1105 * sysdeps/unix/sysv/linux/powerpc/powerpc64/le/libpthread.abilist
1106 (GLIBC_2.17): Likewise.
1107 * sysdeps/unix/sysv/linux/s390/s390-32/libpthread.abilist
1108 (GLIBC_2.0): Likewise.
1109 * sysdeps/unix/sysv/linux/s390/s390-64/libpthread.abilist
1110 (GLIBC_2.2): Likewise.
1111 * sysdeps/unix/sysv/linux/sh/libpthread.abilist (GLIBC_2.2):
1112 Likewise.
1113 * sysdeps/unix/sysv/linux/sparc/sparc32/libpthread.abilist
1114 (GLIBC_2.0): Likewise.
1115 * sysdeps/unix/sysv/linux/sparc/sparc64/libpthread.abilist
1116 (GLIBC_2.2): Likewise.
1117 * sysdeps/unix/sysv/linux/x86_64/64/libpthread.abilist
1118 (GLIBC_2.2.5): Likewise.
1119 * sysdeps/unix/sysv/linux/x86_64/x32/libpthread.abilist
1120 (GLIBC_2.16): Likewise.
1121
1122 2019-08-15 Florian Weimer <fweimer@redhat.com>
1123
1124 nptl: Move pthread_attr_destroy implementation into libc.
1125 * nptl/Makefile (routines): Add pthread_attr_destroy.
1126 (libpthread-routines): Remove pthread_attr_destroy.
1127 * nptl/Versions (libpthread GLIBC_2.0): Remove
1128 pthread_attr_destroy.
1129 * nptl/pthread_attr_destroy.c (__pthread_attr_destroy): Check for
1130 libc compat version instead of libpthread compat version.
1131 * nptl/forward.c (pthread_attr_destroy): Remove definition.
1132 * nptl/nptl-init.c (pthread_functions): Remove initializer for
1133 ptr_pthread_attr_destroy.
1134 * sysdeps/nptl/pthread-functions.h (struct pthread_functions):
1135 Remove ptr_pthread_attr_destroy member.
1136 * sysdeps/unix/sysv/linux/aarch64/libpthread.abilist (GLIBC_2.17):
1137 Remove pthread_attr_destroy.
1138 * sysdeps/unix/sysv/linux/alpha/libpthread.abilist (GLIBC_2.0):
1139 Likewise.
1140 * sysdeps/unix/sysv/linux/arm/libpthread.abilist (GLIBC_2.4):
1141 Likewise.
1142 * sysdeps/unix/sysv/linux/csky/libpthread.abilist (GLIBC_2.29):
1143 Likewise.
1144 * sysdeps/unix/sysv/linux/hppa/libpthread.abilist (GLIBC_2.2):
1145 Likewise.
1146 * sysdeps/unix/sysv/linux/i386/libpthread.abilist (GLIBC_2.0):
1147 Likewise.
1148 * sysdeps/unix/sysv/linux/ia64/libpthread.abilist (GLIBC_2.2):
1149 Likewise.
1150 * sysdeps/unix/sysv/linux/m68k/coldfire/libpthread.abilist
1151 (GLIBC_2.4): Likewise.
1152 * sysdeps/unix/sysv/linux/m68k/m680x0/libpthread.abilist
1153 (GLIBC_2.0): Likewise.
1154 * sysdeps/unix/sysv/linux/microblaze/libpthread.abilist
1155 (GLIBC_2.18): Likewise.
1156 * sysdeps/unix/sysv/linux/mips/mips32/libpthread.abilist
1157 (GLIBC_2.0): Likewise.
1158 * sysdeps/unix/sysv/linux/mips/mips64/libpthread.abilist
1159 (GLIBC_2.0): Likewise.
1160 * sysdeps/unix/sysv/linux/nios2/libpthread.abilist (GLIBC_2.21):
1161 Likewise.
1162 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libpthread.abilist
1163 (GLIBC_2.0): Likewise.
1164 * sysdeps/unix/sysv/linux/powerpc/powerpc64/be/libpthread.abilist
1165 (GLIBC_2.3): Likewise.
1166 * sysdeps/unix/sysv/linux/powerpc/powerpc64/le/libpthread.abilist
1167 (GLIBC_2.17): Likewise.
1168 * sysdeps/unix/sysv/linux/riscv/rv64/libpthread.abilist
1169 (GLIBC_2.27): Likewise.
1170 * sysdeps/unix/sysv/linux/s390/s390-32/libpthread.abilist
1171 (GLIBC_2.0): Likewise.
1172 * sysdeps/unix/sysv/linux/s390/s390-64/libpthread.abilist
1173 (GLIBC_2.2): Likewise.
1174 * sysdeps/unix/sysv/linux/sh/libpthread.abilist (GLIBC_2.2):
1175 Likewise.
1176 * sysdeps/unix/sysv/linux/sparc/sparc32/libpthread.abilist
1177 (GLIBC_2.0): Likewise.
1178 * sysdeps/unix/sysv/linux/sparc/sparc64/libpthread.abilist
1179 (GLIBC_2.2): Likewise.
1180 * sysdeps/unix/sysv/linux/x86_64/64/libpthread.abilist
1181 (GLIBC_2.2.5): Likewise.
1182 * sysdeps/unix/sysv/linux/x86_64/x32/libpthread.abilist
1183 (GLIBC_2.16): Likewise.
1184
1185 2019-08-15 Andreas Schwab <schwab@suse.de>
1186
1187 * sysdeps/i386/fpu/libm-test-ulps: Update.
1188
1189 2019-08-15 Florian Weimer <fweimer@redhat.com>
1190
1191 * malloc/Makefile (tests): Only add tst-mxfast for
1192 $(have-tunables).
1193 * malloc/tst-mxfast.c: Fix copyright year.
1194 (do_test): Fix GNU style issues. Use TEST_COMPARE instead of
1195 assert for checks.
1196
1197 2019-08-15 Florian Weimer <fweimer@redhat.com>
1198
1199 * login/utmp_file.c (__libc_updwtmp): Unlock the right file
1200 descriptor.
1201 * login/Makefile (tests): Add tst-updwtmpx.
1202 * login/tst-updwtmpx.c: New file.
1203
1204 2019-08-15 Florian Weimer <fweimer@redhat.com>
1205
1206 nptl: Move pthread_equal implementation into libc.
1207 * nptl/Makefile (routines): Add pthread_equal.
1208 * nptl/forward.c (pthread_equal): Remove definition.
1209 * nptl/nptl-init.c (pthread_functions): Remove initializer for
1210 ptr_pthread_equal.
1211 * sysdeps/nptl/pthread-functions.h (struct pthread_functions):
1212 Remove ptr_pthread_equal member.
1213 * sysdeps/unix/sysv/linux/aarch64/libpthread.abilist (GLIBC_2.17):
1214 Remove pthread_equal.
1215 * sysdeps/unix/sysv/linux/alpha/libpthread.abilist (GLIBC_2.0):
1216 Likewise.
1217 * sysdeps/unix/sysv/linux/arm/libpthread.abilist (GLIBC_2.4):
1218 Likewise.
1219 * sysdeps/unix/sysv/linux/csky/libpthread.abilist (GLIBC_2.29):
1220 Likewise.
1221 * sysdeps/unix/sysv/linux/hppa/libpthread.abilist (GLIBC_2.2):
1222 Likewise.
1223 * sysdeps/unix/sysv/linux/i386/libpthread.abilist (GLIBC_2.0):
1224 Likewise.
1225 * sysdeps/unix/sysv/linux/ia64/libpthread.abilist (GLIBC_2.2):
1226 Likewise.
1227 * sysdeps/unix/sysv/linux/m68k/coldfire/libpthread.abilist
1228 (GLIBC_2.4): Likewise.
1229 * sysdeps/unix/sysv/linux/m68k/m680x0/libpthread.abilist
1230 (GLIBC_2.0): Likewise.
1231 * sysdeps/unix/sysv/linux/microblaze/libpthread.abilist
1232 (GLIBC_2.18): Likewise.
1233 * sysdeps/unix/sysv/linux/mips/mips32/libpthread.abilist
1234 (GLIBC_2.0): Likewise.
1235 * sysdeps/unix/sysv/linux/mips/mips64/libpthread.abilist
1236 (GLIBC_2.0): Likewise.
1237 * sysdeps/unix/sysv/linux/nios2/libpthread.abilist (GLIBC_2.21):
1238 Likewise.
1239 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libpthread.abilist
1240 (GLIBC_2.0): Likewise.
1241 * sysdeps/unix/sysv/linux/powerpc/powerpc64/be/libpthread.abilist
1242 (GLIBC_2.3): Likewise.
1243 * sysdeps/unix/sysv/linux/powerpc/powerpc64/le/libpthread.abilist
1244 (GLIBC_2.17): Likewise.
1245 * sysdeps/unix/sysv/linux/riscv/rv64/libpthread.abilist
1246 (GLIBC_2.27): Likewise.
1247 * sysdeps/unix/sysv/linux/s390/s390-32/libpthread.abilist
1248 (GLIBC_2.0): Likewise.
1249 * sysdeps/unix/sysv/linux/s390/s390-64/libpthread.abilist
1250 (GLIBC_2.2): Likewise.
1251 * sysdeps/unix/sysv/linux/sh/libpthread.abilist (GLIBC_2.2):
1252 Likewise.
1253 * sysdeps/unix/sysv/linux/sparc/sparc32/libpthread.abilist
1254 (GLIBC_2.0): Likewise.
1255 * sysdeps/unix/sysv/linux/sparc/sparc64/libpthread.abilist
1256 (GLIBC_2.2): Likewise.
1257 * sysdeps/unix/sysv/linux/x86_64/64/libpthread.abilist
1258 (GLIBC_2.2.5): Likewise.
1259 * sysdeps/unix/sysv/linux/x86_64/x32/libpthread.abilist
1260 (GLIBC_2.16): Likewise.
1261
1262 2019-08-14 Florian Weimer <fweimer@redhat.com>
1263
1264 * support/support_descriptors.c: Include <support/descriptors.h>.
1265
1266 2019-08-14 Feng Xue <fxue@os.amperecomputing.com>
1267
1268 * sysdeps/aarch64/multiarch/memset_base64.S (DC_ZVA_THRESHOLD):
1269 Disable DC ZVA code if this macro is defined as zero.
1270 * sysdeps/aarch64/multiarch/memset_emag.S (DC_ZVA_THRESHOLD):
1271 Change to zero to disable using DC ZVA.
1272
1273 2019-08-13 Joseph Myers <joseph@codesourcery.com>
1274
1275 * bits/libc-header-start.h (__GLIBC_USE_IEC_60559_FUNCS_EXT):
1276 Update comment.
1277 (__GLIBC_USE_IEC_60559_FUNCS_EXT_C2X): New macro.
1278 * bits/math-finite.h [__GLIBC_USE (IEC_60559_FUNCS_EXT)]: Change
1279 to [__GLIBC_USE (IEC_60559_FUNCS_EXT_C2X)].
1280 * math/bits/mathcalls.h [__GLIBC_USE (IEC_60559_FUNCS_EXT)]:
1281 Likewise.
1282
1283 2019-08-13 Florian Weimer <fweimer@redhat.com>
1284
1285 * login/utmp_file.c (LOCK_FILE, LOCKING_FAILED, UNLOCK_FILE):
1286 Remove macros.
1287 (struct file_locking): New.
1288 (try_file_lock, file_unlock, file_lock_restore): New functions.
1289 (__libc_getutent_r): Use the new functions.
1290 (internal_getut_r): Likewise.
1291 (__libc_getutline_r): Likewise.
1292 (__libc_pututline): Likewise.
1293 (__libc_updwtmp): Likewise.
1294
1295 2019-08-13 Joseph Myers <joseph@codesourcery.com>
1296
1297 * bits/libc-header-start.h (__GLIBC_USE_IEC_60559_BFP_EXT): Update
1298 comment.
1299 (__GLIBC_USE_IEC_60559_BFP_EXT_C2X): New macro.
1300 * bits/fenv.h [__GLIBC_USE (IEC_60559_BFP_EXT)]: Change to
1301 [__GLIBC_USE (IEC_60559_BFP_EXT_C2X)].
1302 * include/limits.h [__GLIBC_USE (IEC_60559_BFP_EXT)]: Likewise.
1303 * math/fenv.h [__GLIBC_USE (IEC_60559_BFP_EXT)]: Likewise.
1304 * math/math.h [__GLIBC_USE (IEC_60559_BFP_EXT)]: Likewise.
1305 * stdlib/bits/stdlib-ldbl.h [__GLIBC_USE (IEC_60559_BFP_EXT)]:
1306 Likewise.
1307 * stdlib/stdint.h [__GLIBC_USE (IEC_60559_BFP_EXT)]: Likewise.
1308 * stdlib/stdlib.h [__GLIBC_USE (IEC_60559_BFP_EXT)]: Likewise.
1309 * sysdeps/aarch64/bits/fenv.h [__GLIBC_USE (IEC_60559_BFP_EXT)]:
1310 Likewise.
1311 * sysdeps/alpha/fpu/bits/fenv.h [__GLIBC_USE (IEC_60559_BFP_EXT)]:
1312 Likewise.
1313 * sysdeps/arm/bits/fenv.h [__GLIBC_USE (IEC_60559_BFP_EXT)]:
1314 Likewise.
1315 * sysdeps/csky/bits/fenv.h [__GLIBC_USE (IEC_60559_BFP_EXT)]:
1316 Likewise.
1317 * sysdeps/hppa/fpu/bits/fenv.h [__GLIBC_USE (IEC_60559_BFP_EXT)]:
1318 Likewise.
1319 * sysdeps/ia64/bits/fenv.h [__GLIBC_USE (IEC_60559_BFP_EXT)]:
1320 Likewise.
1321 * sysdeps/m68k/bits/fenv.h [__GLIBC_USE (IEC_60559_BFP_EXT)]:
1322 Likewise.
1323 * sysdeps/microblaze/bits/fenv.h [__GLIBC_USE
1324 (IEC_60559_BFP_EXT)]: Likewise.
1325 * sysdeps/mips/bits/fenv.h [__GLIBC_USE (IEC_60559_BFP_EXT)]:
1326 Likewise.
1327 * sysdeps/nios2/bits/fenv.h [__GLIBC_USE (IEC_60559_BFP_EXT)]:
1328 Likewise.
1329 * sysdeps/powerpc/bits/fenv.h [__GLIBC_USE (IEC_60559_BFP_EXT)]:
1330 Likewise.
1331 * sysdeps/riscv/bits/fenv.h [__GLIBC_USE (IEC_60559_BFP_EXT)]:
1332 Likewise.
1333 * sysdeps/s390/fpu/bits/fenv.h [__GLIBC_USE (IEC_60559_BFP_EXT)]:
1334 Likewise.
1335 * sysdeps/sh/bits/fenv.h [__GLIBC_USE (IEC_60559_BFP_EXT)]:
1336 Likewise.
1337 * sysdeps/sparc/fpu/bits/fenv.h [__GLIBC_USE (IEC_60559_BFP_EXT)]:
1338 Likewise.
1339 * sysdeps/x86/fpu/bits/fenv.h [__GLIBC_USE (IEC_60559_BFP_EXT)]:
1340 Likewise.
1341 * math/bits/mathcalls.h [__GLIBC_USE (IEC_60559_BFP_EXT)]:
1342 Likewise, except for totalorder, totalordermag, getpayload,
1343 setpayload and setpayloadsig.
1344 * math/tgmath.h [__GLIBC_USE (IEC_60559_BFP_EXT)]: Likewise,
1345 except for totalorder and totalordermag.
1346
1347 * string/string.h (memccpy): Also declare if [__GLIBC_USE (ISOC2X)].
1348 (strdup): Likewise.
1349 (strndup): Likewise.
1350
1351 * include/features.h (_ISOC2X_SOURCE): New feature test macro.
1352 Undefine and define to 1 if [_GNU_SOURCE].
1353 (__GLIBC_USE_ISOC2X): New macro. Undefine and redefine depending
1354 on [_ISOC2X_SOURCE] and [__STDC_VERSION__ > 201710L].
1355 (__USE_ISOC11): Also define to 1 if [_ISOC2X_SOURCE].
1356 (__USE_ISOC99): Likewise.
1357 (__USE_ISOC95): Likewise.
1358 * manual/creature.texi (_ISOC2X_SOURCE): Document.
1359
1360 2019-08-13 Florian Weimer <fweimer@redhat.com>
1361
1362 * login/getutid_r.c (__getutid_r): _HAVE_UT_ID and _HAVE_UT_TYPE
1363 are always true.
1364 * login/getutmp.c (getutmp): _HAVE_UT_TYPE, _HAVE_UT_PID,
1365 _HAVE_UT_ID, _HAVE_UT_HOST, _HAVE_UT_TV are always true.
1366 * login/getutmpx.c (getutmpx): Likewise.
1367 * login/login.c (login): _HAVE_UT_TYPE, _HAVE_UT_PID are always
1368 true.
1369 * login/logout.c (logout): _HAVE_UT_TYPE, _HAVE_UT_HOST,
1370 _HAVE_UT_TV are always true.
1371 * login/logwtmp.c (logwtmp): _HAVE_UT_PID, _HAVE_UT_TYPE,
1372 _HAVE_UT_HOST, _HAVE_UT_TV are always true.
1373 * login/tst-utmp.c: _HAVE_UT_TYPE, _HAVE_UT_TV are always true.
1374 * login/utmp_file.c (__libc_setutent): _HAVE_UT_TYPE, _HAVE_UT_ID
1375 are always true.
1376 (internal_getut_r): _HAVE_UT_TYPE is always true.
1377 (__libc_pututline): Likewise.
1378 * login/programs/utmpdump.c (print_entry): Assume that
1379 _HAVE_UT_TYPE, _HAVE_UT_PID, _HAVE_UT_ID, _HAVE_UT_HOST,
1380 _HAVE_UT_TV are always true.
1381 * sysdeps/generic/utmp-equal.h (__utmp_equal): _HAVE_UT_TYPE,
1382 _HAVE_UT_ID are always true.
1383 * sysdeps/gnu/bits/utmp.h: Move to ...
1384 * bits/utmp.h: ... here, replacing the old file.
1385
1386 2019-08-12 Florian Weimer <fweimer@redhat.com>
1387
1388 * elf/Makefile (tests): Unconditionally add tst-dlopen-aout.
1389 [$(build-hardcoded-path-in-tests)] (tst-dlopen-aout-no-pie): Do
1390 not set.
1391 * elf/tst-dlopen-aout.c: Do not included <assert.h>.
1392 (do_test): Open the executable using an absolute path. Print
1393 error message to standard output.
1394
1395 2019-08-09 DJ Delorie <dj@redhat.com>
1396
1397 * elf/dl-tunables.list: Add glibc.malloc.mxfast.
1398 * manual/tunables.texi: Document it.
1399 * malloc/malloc.c (do_set_mxfast): New.
1400 (__libc_mallopt): Call it.
1401 * malloc/arena.c: Add mxfast tunable.
1402 * malloc/tst-mxfast.c: New.
1403 * malloc/Makefile: Add it.
1404
1405 2019-08-08 Niklas Hambüchen <mail@nh2.me>
1406 Carlos O'Donell <carlos@redhat.com>
1407
1408 [BZ #24026]
1409 * malloc/malloc.c (__malloc_info): Account for top chunk.
1410
1411 2019-08-07 Joseph Myers <joseph@codesourcery.com>
1412
1413 * sysdeps/unix/sysv/linux/bits/fcntl-linux.h [__USE_GNU]
1414 (SYNC_FILE_RANGE_WRITE_AND_WAIT): New macro.
1415
1416 2019-08-06 Joseph Myers <joseph@codesourcery.com>
1417
1418 * io/fcntl.h [__USE_GNU] (AT_RECURSIVE): New macro.
1419
1420 2019-07-02 Stefan Liebler <stli@linux.ibm.com>
1421
1422 * sysdeps/unix/sysv/linux/s390/init-first.c (VDSO_SETUP): New define.
1423
1424 2019-08-05 Joseph Myers <joseph@codesourcery.com>
1425
1426 * sysdeps/unix/sysv/linux/bits/sched.h [__USE_GNU] (CLONE_PIDFD):
1427 New macro.
1428
1429 2019-08-05 Adhemerval Zanella <adhemerval.zanella@linaro.org>
1430
1431 [BZ #19767]
1432 * sysdeps/unix/sysv/linux/aarch64/sysdep.h (ALWAYS_USE_VSYSCALL):
1433 Remove definition.
1434 * sysdeps/unix/sysv/linux/arm/sysdep.h (ALWAYS_USE_VSYSCALL):
1435 Likewise.
1436 * sysdeps/unix/sysv/linux/i386/sysdep.h (ALWAYS_USE_VSYSCALL):
1437 Likewise.
1438 * sysdeps/unix/sysv/linux/mips/mips32/sysdep.h (ALWAYS_USE_VSYSCALL):
1439 Likewise.
1440 * sysdeps/unix/sysv/linux/mips/mips64/n32/sysdep.h
1441 (ALWAYS_USE_VSYSCALL): Likewise.
1442 * sysdeps/unix/sysv/linux/mips/mips64/n64/sysdep.h
1443 (ALWAYS_USE_VSYSCALL): Likewise.
1444 * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h
1445 (ALWAYS_USE_VSYSCALL): Likewise.
1446 * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h
1447 (ALWAYS_USE_VSYSCALL): Likewise.
1448 * sysdeps/unix/sysv/linux/riscv/sysdep.h (ALWAYS_USE_VSYSCALL):
1449 Likewise.
1450 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h
1451 (ALWAYS_USE_VSYSCALL): Likewise.
1452 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h
1453 (ALWAYS_USE_VSYSCALL): Likewise.
1454 * sysdeps/unix/sysv/linux/sparc/sysdep.h (ALWAYS_USE_VSYSCALL):
1455 Likewise.
1456 * sysdeps/unix/sysv/linux/x86_64/sysdep.h (ALWAYS_USE_VSYSCALL):
1457 Likewise.
1458 * sysdeps/unix/sysv/linux/x86/libc-vdso.h: Remove #if USE_VSYSCALL.
1459 * sysdeps/unix/sysv/linux/sysdep-vdso.h: Likewise.
1460 * sysdeps/unix/sysv/linux/sysdep.h (ALWAYS_USE_VSYSCALL,
1461 USE_VSYSCALL): Remove defitions.
1462
1463 [BZ #19767]
1464 * sysdeps/unix/sysv/linux/sparc/init-first.c: Remove #ifdef SHARED.
1465 * sysdeps/unix/sysv/linux/sparc/libc-vdso.h: Likewise.
1466 * sysdeps/unix/sysv/linux/sparc/sysdep.h (ALWAYS_USE_VSYSCALL):
1467 Define.
1468
1469 [BZ #19767]
1470 * sysdeps/unix/sysv/linux/s390/init-first.c: Remove #ifdef SHARED.
1471 * sysdeps/unix/sysv/linux/s390/libc-vdso.h: Likewise.
1472 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h
1473 (ALWAYS_USE_VSYSCALL): Define.
1474 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h
1475 (ALWAYS_USE_VSYSCALL): Likewise.
1476
1477 [BZ #19767]
1478 * sysdeps/unix/sysv/linux/riscv/init-first.c: Remove #ifdef SHARED.
1479 * sysdeps/unix/sysv/linux/riscv/libc-vdso.h: Likewise.
1480 * sysdeps/unix/sysv/linux/riscv/sysdep.h (ALWAYS_USE_VSYSCALL):
1481 Define.
1482
1483 * sysdeps/sh/libm-test-ulps: Update.
1484
1485 2019-08-05 Florian Weimer <fweimer@redhat.com>
1486
1487 [BZ #23518]
1488 * login/uptmp-private.h (struct ufuncs): Remove definition.
1489 (__libc_utmp_file_functions, __libc_utmp_unknown_functions)
1490 (__libc_utmp_jump_table): Remove declarations.
1491 (__libc_setutent, __libc_getutent_r, __libc_getutid_r)
1492 (__libc_getutline_r, __libc_pututline, __libc_endutent)
1493 (__libc_updwtmp): Declare.
1494 * login/getutent_r.c (__libc_utmp_unknown_functions)
1495 (__libc_utmp_jump_table, setutent_unknown, getutent_r_unknown)
1496 (getutid_r_unknown, getutline_r_unknown, pututline_unknown)
1497 (endutent_unknown): Remove definitions.
1498 (__setutent): Call __libc_setutent.
1499 (__getutent_r): Call __libc_getutent_r.
1500 (__pututline): Call __libc_pututline.
1501 (__endutent): Call __libc_endutent.
1502 * login/getutid_r.c (__getutid_r): Call __libc_getutid_r.
1503 * login/getutline_r.c (__getutline_r): Call __libc_getutline_r.
1504 * login/updwtmp.c (__updwtmp): Call __libc_updwtmp.
1505 * login/utmp_file.c (__libc_utmp_file_functions): Remove definition
1506 (__libc_setutent): Rename from stetutent_file. Drop static.
1507 (maybe_setutent): New function.
1508 (__libc_getutent_r): Rename from getutent_r_file. Drop static.
1509 Check for initialization.
1510 (__libc_getutid_r): Rename from getutid_r_file. Drop static.
1511 Check for initialization.
1512 (__libc_getutline_r): Rename from getutline_r_file. Drop static.
1513 Check for initialization.
1514 (__libc_pututline): Rename from pututline_file. Drop static.
1515 Check for initialization.
1516 (__libc_endutent): Rename from endutent_file. Drop static. Check
1517 for initialization.
1518 (__libc_updwtmp): Rename from updwtmp_file. Drop static.
1519 * login/utmpname.c (__utmpname): Call __libc_endutent.
1520 * sysdeps/unix/getlogin_r (__getlogin_r): Call __libc_setutent,
1521 __libc_getutlien_r, __libc_endutent.
1522 * manual/users.texi (Who Logged In, Manipulating the Database):
1523 Adjust.
1524
1525 2019-08-05 Alexandra Hájková <ahajkova@redhat.com>
1526
1527 * elf/tst-ldconfig-bad-aux-cache.c: Use support_capture_subprocess.
1528
1529 2019-08-02 Joseph Myers <joseph@codesourcery.com>
1530
1531 * sysdeps/unix/sysv/linux/syscall-names.list: Update comment.
1532
1533 * sysdeps/unix/sysv/linux/tst-mman-consts.py (main): Update Linux
1534 kernel version number to 5.2.
1535
1536 2019-08-01 Raoni Fassina Firmino <raoni@linux.ibm.com>
1537
1538 * sysdeps/powerpc/powerpc64/power8/memchr.S: Update power8
1539 mnemonics and set .machine power8.
1540 * sysdeps/powerpc/powerpc64/power8/memcmp.S: Likewise.
1541 * sysdeps/powerpc/powerpc64/power8/memrchr.S: Likewise.
1542 * sysdeps/powerpc/powerpc64/power8/memset.S: Likewise.
1543 * sysdeps/powerpc/powerpc64/power8/strchr.S: Likewise.
1544 * sysdeps/powerpc/powerpc64/power8/strlen.S: Likewise.
1545 * sysdeps/powerpc/powerpc64/power8/strncmp.S: Likewise.
1546 * sysdeps/powerpc/powerpc64/power8/strncpy.S: Likewise.
1547 * sysdeps/powerpc/powerpc64/power8/strnlen.S: Likewise.
1548 * sysdeps/powerpc/powerpc64/power8/strrchr.S: Likewise.
1549 * sysdeps/powerpc/powerpc64/power8/strspn.S: Likewise.
1550
1551 2019-08-01 Adhemerval Zanella <adhemerval.zanella@linaro.org>
1552
1553 * sysdeps/hppa/fpu/libm-test-ulps: Update.
1554
1555 2019-08-01 Florian Weimer <fweimer@redhat.com>
1556
1557 [BZ #24867]
1558 * malloc/malloc.c (__malloc_info): Remove unwanted leading
1559 whitespace.
1560
1561 2019-08-01 Adhemerval Zanella <adhemerval.zanella@linaro.org>
1562
1563 [BZ #15813]
1564 sysdeps/posix/tempname.c (__gen_tempname): get entropy on each
1565 attempt.
1566
1567 2019-08-01 Carlos O'Donell <carlos@redhat.com>
1568
1569 * version.h (RELEASE): Set to "stable".
1570 (VERSION): Set to "2.30".
1571 * include/features.h (__GLIBC_MINOR__): Set to 2.30.
1572
1573 * manual/install.texi: Update component versions.
1574 * INSTALL: Regenerate.
1575 * NEWS: Update.
1576
1577 2019-07-31 Carlos O'Donell <carlos@redhat.com>
1578
1579 * po/be.po: Update translations.
1580 * po/bg.po: Likewise.
1581 * po/ca.po: Likewise.
1582 * po/cs.po: Likewise.
1583 * po/da.po: Likewise.
1584 * po/de.po: Likewise.
1585 * po/el.po: Likewise.
1586 * po/eo.po: Likewise.
1587 * po/es.po: Likewise.
1588 * po/fi.po: Likewise.
1589 * po/fr.po: Likewise.
1590 * po/gl.po: Likewise.
1591 * po/hr.po: Likewise.
1592 * po/hu.po: Likewise.
1593 * po/ia.po: Likewise.
1594 * po/id.po: Likewise.
1595 * po/it.po: Likewise.
1596 * po/ja.po: Likewise.
1597 * po/ko.po: Likewise.
1598 * po/lt.po: Likewise.
1599 * po/nb.po: Likewise.
1600 * po/nl.po: Likewise.
1601 * po/pl.po: Likewise.
1602 * po/pt_BR.po: Likewise.
1603 * po/ru.po: Likewise.
1604 * po/rw.po: Likewise.
1605 * po/sk.po: Likewise.
1606 * po/sl.po: Likewise.
1607 * po/sv.po: Likewise.
1608 * po/tr.po: Likewise.
1609 * po/uk.po: Likewise.
1610 * po/vi.po: Likewise.
1611 * po/zh_CN.po: Likewise.
1612 * po/zh_TW.po: Likewise.
1613
1614 2019-07-31 Florian Weimer <fweimer@redhat.com>
1615
1616 [BZ #24583]
1617 [BZ #24677]
1618 iconv, libio: Revert reference counting changes.
1619 * iconv/gconv_cache.c (__gconv_release_cache): Unconditionally
1620 free the steps array.
1621 * libio/Makefile (tests): Remove tst-wfile-gconv.
1622 (tests-container): Do not add tst-wfile-ascii.
1623 (tst-wfile-gconv-ENV): Do not set.
1624 (generated): Do not add tst-wfile-gconv.mtrace,
1625 tst-wfile-gconv.check.
1626 [($run-built-tests)] (tests-special): Do not add
1627 tst-wfile-gconv-mem.out.
1628 (tst-wfile-gconv.out, tst-wfile-gconv-mem.out): Remove targets.
1629 * libio/iofclose.c (_IO_new_fclose): Call __gconv_release_step
1630 instead of __wcsmbs_clone_conv.
1631 * wcsmbs/wcsmbsload.c (__wcsmbs_clone_conv): Remove definition.
1632 * wcsmbs/wcsmbsload.h (__wcsmbs_clone_conv): Remove declaration.
1633
1634 2019-07-30 Joseph Myers <joseph@codesourcery.com>
1635
1636 * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S
1637 (__CONTEXT_FUNC_NAME): Restore setting of r31.
1638
1639 2019-07-30 Florian Weimer <fweimer@redhat.com>
1640
1641 * nptl/tst-pthread-getattr.c (allocate_and_test): Change return
1642 type to uintptr_t. Update comment.
1643 (check_stack_top): Adjust.
1644
1645 2019-07-29 Florian Weimer <fweimer@redhat.com>
1646
1647 Linux: Move declaration of getdents64 to <dirent.h>.
1648 * bits/dirent_ext.h: New file.
1649 * dirent/Makefile (headers): Add bits/dirent_ext.h.
1650 * dirent/dirent.h: Include <bits/dirent_ext.h>.
1651 * sysdeps/unix/sysv/linux/bits/dirent_ext.h: New file.
1652 * sysdeps/unix/sysv/linux/bits/unistd_ext.h (getdents64): Remove
1653 declaration.
1654 * manual/filesys.texi (Low-level Directory Access): Update header
1655 to dirent.h.
1656
1657 2019-07-29 DJ Delorie <dj@redhat.com>
1658 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
1659
1660 [BZ #24794]
1661 * Makeconfig (all-subdirs): Improved source comments.
1662 * Makefile (testroot.pristine/install.stamp): Pass
1663 subdirs='$(sorted-subdirs)' to make install.
1664
1665 2019-07-25 Florian Weimer <fweimer@redhat.com>
1666
1667 [BZ #24677]
1668 * iconv/gconv_cache.c (__gconv_release_cache): Check reference
1669 counter before freeing array.
1670
1671 2019-07-24 H.J. Lu <hongjiu.lu@intel.com>
1672
1673 [BZ #24603]
1674 * sysdeps/x86_64/configure.ac: Check if -mprefer-vector-width=128
1675 works.
1676 * sysdeps/x86_64/configure: Regenerated.
1677 * sysdeps/x86_64/fpu/Makefile (CFLAGS-branred.c): New. Set
1678 to -mprefer-vector-width=128 if supported.
1679
1680 2019-07-24 Florian Weimer <fweimer@redhat.com>
1681
1682 * scripts/build-many-glibcs.py (Context.checkout): Default to
1683 Linux 5.2.
1684
1685 2019-07-24 Florian Weimer <fweimer@redhat.com>
1686
1687 [BZ #24532]
1688 Linux: Use in-tree copy of SO_ constants for !__USE_MISC.
1689 * sysdeps/unix/sysv/linux/Makefile [$(subdir) == socket]
1690 (sysdep_headers): Add bits/socket-constants.h.
1691 (tests-special): Add tst-socket-consts.out.
1692 (tst-socket-consts.out): New target.
1693 * sysdeps/unix/sysv/linux/bits/socket.h: Remove macro tracking
1694 around <asm/unistd.h>.
1695 [__USE_MISC]: Include <bits/types/time_t.h> before <asm/socket.h>.
1696 [!__USE_MISC]: Include <sys/socket-constants.h> instead of
1697 <asm/socket.h>.
1698 * sysdeps/unix/sysv/linux/bits/tst-socket-consts.py: New file.
1699 * sysdeps/unix/sysv/linux/bits/socket-constants.h: Likewise.
1700 * sysdeps/unix/sysv/linux/alpha/bits/socket-constants.h: Likewise.
1701 * sysdeps/unix/sysv/linux/hppa/bits/socket-constants.h: Likewise.
1702 * sysdeps/unix/sysv/linux/mips/bits/socket-constants.h: Likewise.
1703 * sysdeps/unix/sysv/linux/powerpc/bits/socket-constants.h:
1704 Likewise.
1705 * sysdeps/unix/sysv/linux/sparc/bits/socket-constants.h: Likewise.
1706
1707 2019-07-23 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
1708
1709 [BZ #24794]
1710 * Makefile (testroot.pristine/install.stamp): Pass
1711 subdirs='$(all-subdirs)' to make install.
1712
1713 * Makefile (testroot.pristine/install.stamp): Execute ld.so with
1714 the same arguments used in all tests.
1715
1716 2019-07-22 Szabolcs Nagy <szabolcs.nagy@arm.com>
1717
1718 * NEWS: Mention the AArch64 IFUNC resolver ABI change.
1719
1720 2019-07-20 Egor Kobylkin <egor@kobylkin.com>
1721
1722 [BZ #2872]
1723 * locale/C-translit.h.in: Add Cyrillic transliteration.
1724
1725 2019-07-19 Florian Weimer <fweimer@redhat.com>
1726
1727 * sysdeps/unix/sysv/linux/syscall-names.list: Add system calls
1728 from Linux 5.2.
1729 (fsconfig): Add system call name.
1730 (fsmount): Likewise.
1731 (fsopen): Likewise.
1732 (fspick): Likewise.
1733 (move_mount): Likewise.
1734 (open_tree): Likewise.
1735
1736 2019-07-18 Carlos O'Donell <carlos@redhat.com>
1737
1738 * po/libc.pot: Regenerate.
1739
1740 2019-07-18 Mike Crowe <mac@mcrowe.com>
1741
1742 * sysdeps/unix/sysv/linux/hppa/pthread.h: Add declarations of
1743 functions recently added to sysdeps/nptl/pthread.h:
1744 pthread_mutex_clocklock, pthread_rwlock_clockrdlock,
1745 pthread_rwlock_clockwrlock and pthread_cond_clockwait.
1746
1747 * nptl/forward.c: Remove unnecessary __pthread_cond_clockwait and
1748 pthread_cond_clockwait forwarding functions. There are no internal
1749 users, so it is unnecessary to expose these functions in libc.so.
1750 * sysdeps/nptl/pthread-functions.h (pthread_functions): Remove
1751 unnecessary ptr___pthread_cond_clockwait member.
1752 * nptl/nptl-init.c (pthread_functions): Remove assignment of
1753 removed member.
1754
1755 2019-07-17 Rafał Lużyński <digitalfreak@lingonborough.com>
1756
1757 [BZ #21897]
1758 * localedata/locales/aa_DJ (abday): Update from CLDR, all words
1759 begin with an uppercase letter now.
1760 (abmon): Likewise.
1761 (mon): Update from CLDR, reword February from "Kudo" to
1762 "Naharsi Kudo", April from "Agda Baxisso" to "Agda Baxis",
1763 and August from "Liiqen" to "Leqeeni".
1764 * localedata/locales/aa_ER (mon): Update from CLDR, reword
1765 April from "Agda Baxisso" to "Agda Baxis" and August from
1766 "Leqeeni" to "Liiqen".
1767 * localedata/locales/aa_ER@saaho (mon): Likewise.
1768 * localedata/locales/aa_ET (abmon): Update from CLDR, reword
1769 abbreviated February from "Kud" to "Nah".
1770 (mon): Update from CLDR, reword February from "Kudo" to
1771 "Naharsi Kudo" and April from "Agda Baxisso" to "Agda Baxis".
1772
1773 2019-07-17 Rafał Lużyński <digitalfreak@lingonborough.com>
1774
1775 [BZ #23996]
1776 * localedata/locales/nl_BE (LC_NAME): Replace with “copy "nl_NL"”.
1777
1778 2019-07-17 PanderMusubi <pander@users.sourceforge.net>
1779
1780 [BZ #23996]
1781 * localedata/locales/nl_BE (LC_NAME): Add name_gen, name_mr,
1782 name_mrs, name_miss, and name_ms.
1783 * localedata/locales/nl_NL (LC_NAME): Likewise.
1784
1785 2019-07-17 Daniil Zhilin <generalfailer@protonmail.com>
1786
1787 [BZ #24200]
1788 * localedata/locales/ga_IE (first_weekday): Add, set to 2 (Monday).
1789 * localedata/locales/en_IE (first_weekday): Likewise.
1790
1791 2019-07-12 Mike Crowe <mac@mcrowe.com>
1792
1793 * nptl/pthread_cond_wait.c: (__pthread_cond_clockwait): Remove code
1794 that is only useful if futex_supports_exact_relative_timeouts ()
1795 returns false.
1796 * nptl/pthread_condattr_setclock.c: (pthread_condattr_setclock):
1797 Likewise.
1798 * sysdeps/nptl/futex-internal.h: Remove comment about relative
1799 timeouts potentially being imprecise since it's no longer true.
1800 Remove declaration of futex_supports_exact_relative_timeouts.
1801 * sysdeps/unix/sysv/linux/futex-internal.h: Remove implementation
1802 of futex_supports_exact_relative_timeouts.
1803
1804 * NEWS: Mention recently-added pthread_cond_clockwait,
1805 pthread_rwlock_clockrdlock, pthread_rwlock_clockwrlock and
1806 sem_clockwait functions.
1807
1808 nptl: Add POSIX-proposed pthread_mutex_clocklock function that
1809 works like pthread_mutex_timedlock but takes a clockid parameter to
1810 measure the abstime parameter against.
1811 * sysdeps/nptl/pthread.h: Add pthread_mutex_clocklock.
1812 * nptl/DESIGN-systemtap-probes.txt: Likewise.
1813 * nptl/pthread_mutex_timedlock.c
1814 (__pthread_mutex_clocklock_common): Rename from
1815 __pthread_mutex_timedlock and add clockid parameter. Pass this
1816 parameter to lll_clocklock and lll_clocklock_elision in place of
1817 CLOCK_REALTIME. (__pthread_mutex_clocklock): New function to add
1818 LIBC_PROBE and validate clockid parameter before calling
1819 __pthread_mutex_clocklock_common. (__pthread_mutex_timedlock): New
1820 implementation to add LIBC_PROBE and calls
1821 __pthread_mutex_clocklock_common passing CLOCK_REALTIME as the
1822 clockid.
1823 * nptl/Makefile: Add tst-mutex11.c.
1824 * nptl/tst-abstime.c (th): Add tests for pthread_mutex_clocklock.
1825 * nptl/tst-mutex11.c: New tests for passing invalid and unsupported
1826 clockid parameters to pthread_mutex_clocklock.
1827 * nptl/tst-mutex5.c (do_test_clock): Rename from do_test and take
1828 clockid parameter to indicate which clock to be used. Call
1829 pthread_mutex_timedlock or pthread_mutex_clocklock as appropriate.
1830 (do_test): Call do_test_clock to separately test
1831 pthread_mutex_timedlock, pthread_mutex_clocklock(CLOCK_REALTIME)
1832 and pthread_mutex_clocklock(CLOCK_MONOTONIC).
1833 * nptl/tst-mutex9.c: Likewise.
1834 * nptl/Versions (GLIBC_2.30): Add pthread_mutex_clocklock.
1835 * sysdeps/unix/sysv/linux/aarch64/libpthread.abilist (GLIBC_2.30):
1836 Likewise.
1837 * sysdeps/unix/sysv/linux/alpha/libpthread.abilist (GLIBC_2.30):
1838 Likewise.
1839 * sysdeps/unix/sysv/linux/arm/libpthread.abilist (GLIBC_2.30):
1840 Likewise.
1841 * sysdeps/unix/sysv/linux/csky/libpthread.abilist (GLIBC_2.30):
1842 Likewise.
1843 * sysdeps/unix/sysv/linux/hppa/libpthread.abilist (GLIBC_2.30):
1844 Likewise.
1845 * sysdeps/unix/sysv/linux/i386/libpthread.abilist (GLIBC_2.30):
1846 Likewise.
1847 * sysdeps/unix/sysv/linux/ia64/libpthread.abilist (GLIBC_2.30):
1848 Likewise.
1849 * sysdeps/unix/sysv/linux/m68k/coldfire/libpthread.abilist
1850 (GLIBC_2.30): Likewise.
1851 * sysdeps/unix/sysv/linux/m68k/m680x0/libpthread.abilist
1852 (GLIBC_2.30): Likewise.
1853 * sysdeps/unix/sysv/linux/microblaze/libpthread.abilist
1854 (GLIBC_2.30): Likewise.
1855 * sysdeps/unix/sysv/linux/mips/mips32/libpthread.abilist
1856 (GLIBC_2.30): Likewise.
1857 * sysdeps/unix/sysv/linux/mips/mips64/libpthread.abilist
1858 (GLIBC_2.30): Likewise.
1859 * sysdeps/unix/sysv/linux/nios2/libpthread.abilist (GLIBC_2.30):
1860 Likewise.
1861 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libpthread.abilist
1862 (GLIBC_2.30): Likewise.
1863 * sysdeps/unix/sysv/linux/powerpc/powerpc64/be/libpthread.abilist
1864 (GLIBC_2.30): Likewise.
1865 * sysdeps/unix/sysv/linux/powerpc/powerpc64/le/libpthread.abilist
1866 (GLIBC_2.30): Likewise.
1867 * sysdeps/unix/sysv/linux/riscv/rv64/libpthread.abilist
1868 (GLIBC_2.30): Likewise.
1869 * sysdeps/unix/sysv/linux/s390/s390-32/libpthread.abilist
1870 (GLIBC_2.30): Likewise.
1871 * sysdeps/unix/sysv/linux/s390/s390-64/libpthread.abilist
1872 (GLIBC_2.30): Likewise.
1873 * sysdeps/unix/sysv/linux/sh/libpthread.abilist (GLIBC_2.30):
1874 Likewise.
1875 * sysdeps/unix/sysv/linux/sparc/sparc32/libpthread.abilist
1876 (GLIBC_2.30): Likewise.
1877 * sysdeps/unix/sysv/linux/sparc/sparc64/libpthread.abilist
1878 (GLIBC_2.30): Likewise.
1879 * sysdeps/unix/sysv/linux/x86_64/64/libpthread.abilist
1880 (GLIBC_2.30): Likewise.
1881 * sysdeps/unix/sysv/linux/x86_64/x32/libpthread.abilist
1882 (GLIBC_2.30): Likewise.
1883
1884 nptl: Rename lll_timedlock to lll_clocklock and add clockid
1885 parameter to indicate the clock that the abstime parameter should
1886 be measured against in preparation for adding
1887 pthread_mutex_clocklock.
1888 * sysdeps/nptl/lowlevellock.h (lll_clocklock): Rename from
1889 lll_timedlock and add clockid parameter. (__lll_clocklock): Rename
1890 from __lll_timedlock and add clockid parameter.
1891 * sysdeps/unix/sysv/linux/sparc/lowlevellock.h (lll_clocklock):
1892 Likewise.
1893 * nptl/lll_timedlock_wait.c (__lll_clocklock_wait): Rename from
1894 __lll_timedlock_wait and add clockid parameter. Use __clock_gettime
1895 rather than __gettimeofday so that clockid can be used. This means
1896 that conversion from struct timeval is no longer required.
1897 * sysdeps/sparc/sparc32/lowlevellock.c (lll_clocklock_wait):
1898 Likewise.
1899 * sysdeps/sparc/sparc32/lll_timedlock_wait.c: Update comment to
1900 refer to __lll_clocklock_wait rather than __lll_timedlock_wait.
1901 * nptl/pthread_mutex_timedlock.c (lll_clocklock_elision): Rename
1902 from lll_timedlock_elision, add clockid parameter and use
1903 meaningful names for other parameters. (__pthread_mutex_timedlock):
1904 Pass CLOCK_REALTIME where necessary to lll_clocklock and
1905 lll_clocklock_elision.
1906 * sysdeps/unix/sysv/linux/powerpc/lowlevellock.h
1907 (lll_clocklock_elision): Rename from lll_timedlock_elision and add
1908 clockid parameter. (__lll_clocklock_elision): Rename from
1909 __lll_timedlock_elision and add clockid parameter.
1910 * sysdeps/unix/sysv/linux/s390/lowlevellock.h: Likewise.
1911 * sysdeps/unix/sysv/linux/x86/lowlevellock.h: Likewise.
1912 * sysdeps/unix/sysv/linux/powerpc/elision-timed.c
1913 (__lll_lock_elision): Call __lll_clocklock_elision rather than
1914 __lll_timedlock_elision. (EXTRAARG): Add clockid parameter.
1915 (LLL_LOCK): Likewise.
1916 * sysdeps/unix/sysv/linux/s390/elision-timed.c: Likewise.
1917 * sysdeps/unix/sysv/linux/x86/elision-timed.c: Likewise.
1918
1919 nptl: Add POSIX-proposed pthread_rwlock_clockrdlock &
1920 pthread_rwlock_clockwrlock which behave like
1921 pthread_rwlock_timedrdlock and pthread_rwlock_timedwrlock
1922 respectively, except they always measure abstime against the
1923 supplied clockid. The functions currently support CLOCK_REALTIME
1924 and CLOCK_MONOTONIC and return EINVAL if any other clock is
1925 specified.
1926 * sysdeps/nptl/pthread.h: Add pthread_rwlock_clockrdlock and
1927 pthread_wrlock_clockwrlock.
1928 * nptl/Makefile: Build pthread_rwlock_clockrdlock.c and
1929 pthread_rwlock_clockwrlock.c.
1930 * nptl/pthread_rwlock_clockrdlock.c: Implement
1931 pthread_rwlock_clockrdlock.
1932 * nptl/pthread_rwlock_clockwrlock.c: Implement
1933 pthread_rwlock_clockwrlock.
1934 * nptl/pthread_rwlock_common.c (__pthread_rwlock_rdlock_full): Add
1935 clockid parameter and verify that it indicates a supported clock on
1936 entry so that we fail even if it doesn't end up being used. Pass
1937 that clock on to futex_abstimed_wait when necessary.
1938 (__pthread_rwlock_wrlock_full): Likewise.
1939 * nptl/pthread_rwlock_rdlock.c: (__pthread_rwlock_rdlock): Pass
1940 CLOCK_REALTIME to __pthread_rwlock_rdlock_full even though it won't
1941 be used because there's no timeout.
1942 * nptl/pthread_rwlock_wrlock.c (__pthread_rwlock_wrlock): Pass
1943 CLOCK_REALTIME to __pthread_rwlock_wrlock_full even though it won't
1944 be used because there is no timeout.
1945 * nptl/pthread_rwlock_timedrdlock.c (pthread_rwlock_timedrdlock):
1946 Pass CLOCK_REALTIME to __pthread_rwlock_rdlock_full since abstime
1947 uses that clock.
1948 * nptl/pthread_rwlock_timedwrlock.c (pthread_rwlock_timedwrlock):
1949 Pass CLOCK_REALTIME to __pthread_rwlock_wrlock_full since abstime
1950 uses that clock.
1951 * sysdeps/unix/sysv/linux/aarch64/libpthread.abilist (GLIBC_2.30): Likewise.
1952 * sysdeps/unix/sysv/linux/alpha/libpthread.abilist (GLIBC_2.30): Likewise.
1953 * sysdeps/unix/sysv/linux/arm/libpthread.abilist (GLIBC_2.30): Likewise.
1954 * sysdeps/unix/sysv/linux/csky/libpthread.abilist (GLIBC_2.30): Likewise.
1955 * sysdeps/unix/sysv/linux/hppa/libpthread.abilist (GLIBC_2.30): Likewise.
1956 * sysdeps/unix/sysv/linux/i386/libpthread.abilist (GLIBC_2.30): Likewise.
1957 * sysdeps/unix/sysv/linux/ia64/libpthread.abilist (GLIBC_2.30): Likewise.
1958 * sysdeps/unix/sysv/linux/m68k/coldfire/libpthread.abilist
1959 (GLIBC_2.30): Likewise.
1960 * sysdeps/unix/sysv/linux/m68k/m680x0/libpthread.abilist
1961 (GLIBC_2.30): Likewise.
1962 * sysdeps/unix/sysv/linux/microblaze/libpthread.abilist
1963 (GLIBC_2.30): Likewise.
1964 * sysdeps/unix/sysv/linux/mips/mips32/libpthread.abilist
1965 (GLIBC_2.30): Likewise.
1966 * sysdeps/unix/sysv/linux/mips/mips64/libpthread.abilist
1967 (GLIBC_2.30): Likewise.
1968 * sysdeps/unix/sysv/linux/nios2/libpthread.abilist (GLIBC_2.30): 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): Likewise.
1982 * sysdeps/unix/sysv/linux/sparc/sparc32/libpthread.abilist
1983 (GLIBC_2.30): Likewise.
1984 * sysdeps/unix/sysv/linux/sparc/sparc64/libpthread.abilist
1985 (GLIBC_2.30): Likewise.
1986 * sysdeps/unix/sysv/linux/x86_64/64/libpthread.abilist
1987 (GLIBC_2.30): Likewise.
1988 * sysdeps/unix/sysv/linux/x86_64/x32/libpthread.abilist
1989 (GLIBC_2.30): Likewise.
1990 * nptl/tst-abstime.c (th): Add pthread_rwlock_clockrdlock and
1991 pthread_rwlock_clockwrlock timeout tests to match the existing
1992 pthread_rwlock_timedrdloock and pthread_rwlock_timedwrlock tests.
1993 * nptl/tst-rwlock14.c (do_test): Likewise.
1994 * nptl/tst-rwlock6.c Invent verbose_printf macro, and use for
1995 ancillary output throughout. (tf): Accept thread_args structure so
1996 that rwlock, a clockid and function name can be passed to the
1997 thread. (do_test_clock): Rename from do_test. Accept clockid
1998 parameter to specify test clock. Use the magic clockid value of
1999 CLOCK_USE_TIMEDLOCK to indicate that pthread_rwlock_timedrdlock and
2000 pthread_rwlock_timedwrlock should be tested, otherwise pass the
2001 specified clockid to pthread_rwlock_clockrdlock and
2002 pthread_rwlock_clockwrlock. Use xpthread_create and xpthread_join.
2003 (do_test): Call do_test_clock to test each clockid in turn.
2004 * nptl/tst-rwlock7.c: Likewise.
2005 * nptl/tst-rwlock9.c (writer_thread, reader_thread): Accept
2006 thread_args structure so that the (now int) thread number, the
2007 clockid and the function name can be passed to the thread.
2008 (do_test_clock): Renamed from do_test. Pass the necessary
2009 thread_args when creating the reader and writer threads. Use
2010 xpthread_create and xpthread_join.
2011 (do_test): Call do_test_clock to test each clockid in turn.
2012 * manual/threads.texi: Add documentation for
2013 pthread_rwlock_clockrdlock and pthread_rwlock_clockwrclock.
2014
2015 nptl: pthread_rwlock: Move timeout validation into _full functions
2016 * nptl/pthread_rwlock_common.c (__pthread_rwlock_rdlock_full):
2017 Check validity of abstime parameter.
2018 (__pthread_rwlock_rwlock_full): Likewise.
2019 * nptl/pthread_rwlock_timedrdlock.c (pthread_rwlock_timedrdlock):
2020 Remove check for validity of abstime parameter.
2021 * nptl/pthread_rwlock_timedwrlock.c (pthread_rwlock_timedwrlock):
2022 Likewise.
2023
2024 nptl: Add POSIX-proposed pthread_cond_clockwait which behaves just
2025 like pthread_cond_timedwait except it always measures abstime
2026 against the supplied clockid.
2027 * nptl/Makefile: Add tst-cond26 and tst-cond27
2028 * nptl/Versions (GLIBC_2.30): Add pthread_cond_clockwait
2029 * sysdeps/nptl/pthread.h: Likewise
2030 * nptl/forward.c: Add __pthread_cond_clockwait
2031 * nptl/forward.c: Likewise
2032 * nptl/pthreadP.h: Likewise
2033 * sysdeps/nptl/pthread-functions.h: Likewise
2034 * nptl/pthread_cond_wait.c (__pthread_cond_wait_common): Add
2035 clockid parameter and comment describing why we don't need to check
2036 its value. Use that value when calling
2037 futex_abstimed_wait_cancelable rather than reading the clock from
2038 the flags. (__pthread_cond_wait): Pass unused clockid parameter.
2039 (__pthread_cond_timedwait): Read clock from flags and pass it to
2040 __pthread_cond_wait_common. (__pthread_cond_clockwait): Add new
2041 function with weak alias from pthread_cond_clockwait.
2042 * sysdeps/unix/sysv/linux/aarch64/libpthread.abilist (GLIBC_2.30): Likewise.
2043 * sysdeps/unix/sysv/linux/alpha/libpthread.abilist (GLIBC_2.30): Likewise.
2044 * sysdeps/unix/sysv/linux/arm/libpthread.abilist (GLIBC_2.30): Likewise.
2045 * sysdeps/unix/sysv/linux/csky/libpthread.abilist (GLIBC_2.30): Likewise.
2046 * sysdeps/unix/sysv/linux/hppa/libpthread.abilist (GLIBC_2.30): Likewise.
2047 * sysdeps/unix/sysv/linux/i386/libpthread.abilist (GLIBC_2.30): Likewise.
2048 * sysdeps/unix/sysv/linux/ia64/libpthread.abilist (GLIBC_2.30): Likewise.
2049 * sysdeps/unix/sysv/linux/m68k/coldfire/libpthread.abilist
2050 (GLIBC_2.30): Likewise.
2051 * sysdeps/unix/sysv/linux/m68k/m680x0/libpthread.abilist
2052 (GLIBC_2.30): Likewise.
2053 * sysdeps/unix/sysv/linux/microblaze/libpthread.abilist
2054 (GLIBC_2.30): Likewise.
2055 * sysdeps/unix/sysv/linux/mips/mips32/libpthread.abilist
2056 (GLIBC_2.30): Likewise.
2057 * sysdeps/unix/sysv/linux/mips/mips64/libpthread.abilist
2058 (GLIBC_2.30): Likewise.
2059 * sysdeps/unix/sysv/linux/nios2/libpthread.abilist (GLIBC_2.30): Likewise.
2060 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libpthread.abilist
2061 (GLIBC_2.30): Likewise.
2062 * sysdeps/unix/sysv/linux/powerpc/powerpc64/be/libpthread.abilist
2063 (GLIBC_2.30): Likewise.
2064 * sysdeps/unix/sysv/linux/powerpc/powerpc64/le/libpthread.abilist
2065 (GLIBC_2.30): Likewise.
2066 * sysdeps/unix/sysv/linux/riscv/rv64/libpthread.abilist
2067 (GLIBC_2.30): Likewise.
2068 * sysdeps/unix/sysv/linux/s390/s390-32/libpthread.abilist
2069 (GLIBC_2.30): Likewise.
2070 * sysdeps/unix/sysv/linux/s390/s390-64/libpthread.abilist
2071 (GLIBC_2.30): Likewise.
2072 * sysdeps/unix/sysv/linux/sh/libpthread.abilist (GLIBC_2.30): Likewise.
2073 * sysdeps/unix/sysv/linux/sparc/sparc32/libpthread.abilist
2074 (GLIBC_2.30): Likewise.
2075 * sysdeps/unix/sysv/linux/sparc/sparc64/libpthread.abilist
2076 (GLIBC_2.30): Likewise.
2077 * sysdeps/unix/sysv/linux/x86_64/64/libpthread.abilist
2078 (GLIBC_2.30): Likewise.
2079 * sysdeps/unix/sysv/linux/x86_64/x32/libpthread.abilist
2080 (GLIBC_2.30): Likewise.
2081 * nptl/tst-cond11.c (run_test): Support testing
2082 pthread_cond_clockwait too by using a special magic
2083 CLOCK_USE_ATTR_CLOCK value to determine whether to call
2084 pthread_cond_timedwait or pthread_cond_clockwait. (do_test): Pass
2085 CLOCK_USE_ATTR_CLOCK for existing tests, and add new tests using
2086 all combinations of CLOCK_MONOTONIC and CLOCK_REALTIME.
2087 * ntpl/tst-cond26.c: New test for passing unsupported and invalid
2088 clocks to pthread_cond_clockwait.
2089 * nptl/tst-cond27.c: Add test similar to tst-cond5.c, but using
2090 struct timespec and pthread_cond_clockwait.
2091 * manual/threads.texi: Document pthread_cond_clockwait.
2092
2093 nptl: Add POSIX-proposed sem_clockwait which behaves just like
2094 sem_timedwait, but measures abstime against the specified clock.
2095 * nptl/sem_waitcommon.c (do_futex_wait, __new_sem_wait_slow): Add
2096 clockid parameters to indicate the clock which abstime should be
2097 measured against.
2098 * nptl/sem_timedwait.c (sem_timedwait), nptl/sem_wait.c
2099 (__new_sem_wait): Pass CLOCK_REALTIME as clockid to
2100 __new_sem_wait_slow.
2101 * nptl/sem_clockwait.c: New file to implement sem_clockwait based
2102 on sem_timedwait.c.
2103 * nptl/Makefile: Add sem_clockwait.c source file. Add CFLAGS for
2104 sem_clockwait.c to match those used for sem_timedwait.c.
2105 * sysdeps/pthread/semaphore.h: Add sem_clockwait.
2106 * nptl/Versions (GLIBC_2.30): Likewise.
2107 * sysdeps/unix/sysv/linux/aarch64/libpthread.abilist (GLIBC_2.30): Likewise.
2108 * sysdeps/unix/sysv/linux/alpha/libpthread.abilist (GLIBC_2.30): Likewise.
2109 * sysdeps/unix/sysv/linux/arm/libpthread.abilist (GLIBC_2.30): Likewise.
2110 * sysdeps/unix/sysv/linux/csky/libpthread.abilist (GLIBC_2.30): Likewise.
2111 * sysdeps/unix/sysv/linux/hppa/libpthread.abilist (GLIBC_2.30): Likewise.
2112 * sysdeps/unix/sysv/linux/i386/libpthread.abilist (GLIBC_2.30): Likewise.
2113 * sysdeps/unix/sysv/linux/ia64/libpthread.abilist (GLIBC_2.30): Likewise.
2114 * sysdeps/unix/sysv/linux/m68k/coldfire/libpthread.abilist
2115 (GLIBC_2.30): Likewise.
2116 * sysdeps/unix/sysv/linux/m68k/m680x0/libpthread.abilist
2117 (GLIBC_2.30): Likewise.
2118 * sysdeps/unix/sysv/linux/microblaze/libpthread.abilist
2119 (GLIBC_2.30): Likewise.
2120 * sysdeps/unix/sysv/linux/mips/mips32/libpthread.abilist
2121 (GLIBC_2.30): Likewise.
2122 * sysdeps/unix/sysv/linux/mips/mips64/libpthread.abilist
2123 (GLIBC_2.30): Likewise.
2124 * sysdeps/unix/sysv/linux/nios2/libpthread.abilist (GLIBC_2.30): Likewise.
2125 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libpthread.abilist
2126 (GLIBC_2.30): Likewise.
2127 * sysdeps/unix/sysv/linux/powerpc/powerpc64/be/libpthread.abilist
2128 (GLIBC_2.30): Likewise.
2129 * sysdeps/unix/sysv/linux/powerpc/powerpc64/le/libpthread.abilist
2130 (GLIBC_2.30): Likewise.
2131 * sysdeps/unix/sysv/linux/riscv/rv64/libpthread.abilist
2132 (GLIBC_2.30): Likewise.
2133 * sysdeps/unix/sysv/linux/s390/s390-32/libpthread.abilist
2134 (GLIBC_2.30): Likewise.
2135 * sysdeps/unix/sysv/linux/s390/s390-64/libpthread.abilist
2136 (GLIBC_2.30): Likewise.
2137 * sysdeps/unix/sysv/linux/sh/libpthread.abilist (GLIBC_2.30): Likewise.
2138 * sysdeps/unix/sysv/linux/sparc/sparc32/libpthread.abilist
2139 (GLIBC_2.30): Likewise.
2140 * sysdeps/unix/sysv/linux/sparc/sparc64/libpthread.abilist
2141 (GLIBC_2.30): Likewise.
2142 * sysdeps/unix/sysv/linux/x86_64/64/libpthread.abilist
2143 (GLIBC_2.30): Likewise.
2144 * sysdeps/unix/sysv/linux/x86_64/x32/libpthread.abilist
2145 (GLIBC_2.30): Likewise.
2146 * nptl/tst-sem17.c: Add new test for passing invalid clock to
2147 sem_clockwait.
2148 * nptl/tst-sem13.c, nptl/tst-sem5.c: Modify existing sem_timedwait
2149 tests to also test sem_clockwait.
2150 * manual/threads.texi: Document sem_clockwait.
2151
2152 nptl: Add clockid parameter to futex timed wait calls
2153 * sysdeps/nptl/lowlevellock-futex.h,
2154 sysdeps/unix/sysv/linux/lowlevellock-futex.h: Replace
2155 lll_futex_timed_wait_bitset with lll_futex_clock_wait_bitset that
2156 takes a clockid rather than a special clockbit.
2157 * sysdeps/nptl/lowlevellock-futex.h: Add
2158 lll_futex_supported_clockid so that client functions can check
2159 whether their clockid parameter is valid even if they don't
2160 ultimately end up calling lll_futex_clock_wait_bitset.
2161 * sysdeps/nptl/futex-internal.h,
2162 sysdeps/unix/sysv/linux/futex-internal.h
2163 (futex_abstimed_wait, futex_abstimed_wait_cancelable): Add
2164 clockid_t parameter to indicate which clock the absolute time
2165 passed should be measured against. Pass that clockid onto
2166 lll_futex_clock_wait_bitset. Add invalid clock as reason for
2167 returning -EINVAL.
2168 * sysdeps/nptl/futex-internal.h,
2169 sysdeps/unix/sysv/linux/futex-internal.h: Introduce
2170 futex_abstimed_supported_clockid so that client functions can check
2171 whether their clockid parameter is valid even if they don't
2172 ultimately end up calling futex_abstimed_wait.
2173 * nptl/pthread_cond_wait.c (__pthread_cond_wait_common): Remove
2174 code to calculate relative timeout for
2175 __PTHREAD_COND_CLOCK_MONOTONIC_MASK and just pass CLOCK_MONOTONIC
2176 or CLOCK_REALTIME as required to futex_abstimed_wait_cancelable.
2177 * nptl/pthread_rwlock_common (__pthread_rwlock_rdlock_full)
2178 (__pthread_wrlock_full), nptl/sem_waitcommon (do_futex_wait): Pass
2179 additional CLOCK_REALTIME to futex_abstimed_wait_cancelable.
2180 * nptl/pthread_mutex_timedlock.c (__pthread_mutex_timedlock):
2181 Switch to lll_futex_clock_wait_bitset and pass CLOCK_REALTIME
2182
2183 2019-07-10 Adhemerval Zanella <adhemerval.zanella@linaro.org>
2184
2185 [BZ #24699]
2186 * posix/tst-mmap-offset.c: Mention BZ #24699.
2187 (do_test_bz21270): Rename to do_test_large_offset and use
2188 mmap64_maximum_offset to check for maximum expected offset value.
2189 * sysdeps/generic/mmap_info.h: New file.
2190 * sysdeps/unix/sysv/linux/mips/mmap_info.h: Likewise.
2191 * sysdeps/unix/sysv/linux/mmap64.c (MMAP_OFF_HIGH_MASK): Define iff
2192 __NR_mmap2 is used.
2193
2194 2019-07-10 DJ Delorie <dj@redhat.com>
2195 Sergei Trofimovich <slyfox@inbox.ru>
2196
2197 [BZ #24696]
2198 [BZ #24695]
2199 * nss/nss_db/db-open.c (internal_endent): Protect against NULL
2200 mappings.
2201 * nss/tst-nss-db-endgrent.c: New.
2202 * nss/tst-nss-db-endgrent.root: New.
2203 * nss/tst-nss-db-endpwent.c: New.
2204 * nss/tst-nss-db-endpwent.root: New.
2205 * nss/Makefile: Add new tests.
2206 * support/links-dso-program-c.c: Add selinux dependency.
2207 * support/links-dso-program.cc: Add selinux dependency.
2208 * support/Makefile: Build those with -lselinux if enabled.
2209
2210 2019-07-10 Szabolcs Nagy <szabolcs.nagy@arm.com>
2211
2212 * sysdeps/aarch64/dl-machine.h (elf_machine_runtime_setup): Remove the
2213 DT_AARCH64_VARIANT_PCS check.
2214 (elf_machine_lazy_rel): Use l_info[DT_AARCH64 (VARIANT_PCS)].
2215 * sysdeps/aarch64/linkmap.h (struct link_map_machine): Remove
2216 variant_pcs.
2217
2218 2019-07-10 Andreas Schwab <schwab@suse.de>
2219
2220 [BZ #23352]
2221 * malloc/malloc.h (__malloc_check_init): Don't declare.
2222 * include/malloc.h (__malloc_check_init): Likewise.
2223 * malloc/malloc-internal.h (__malloc_check_init): Declare it here.
2224 * manual/memory.texi (__malloc_check_init): Don't mention it.
2225
2226 2019-07-10 Mao Han <han_mao@c-sky.com>
2227
2228 * locale/Makefile: Fix tst-locale-locpath arguments passing.
2229
2230 2019-07-09 Paul A. Clarke <pc@us.ibm.com>
2231
2232 * sysdeps/powerpc/fpu/fenv_libc.h (_FPU_GET_RC): Protect use of
2233 __builtin_cpu_supports with __BUILTIN_CPU_SUPPORTS__.
2234
2235 2019-07-08 DJ Delorie <dj@redhat.com>
2236
2237 [BZ #23501]
2238 * io/ftw.c (process_entry): Fill in statbuf for dangling links.
2239 * io/tst-ftw-lnk.c: New test.
2240 * io/Makefile: Run it.
2241
2242 2019-07-08 Adhemerval Zanella <adhemerval.zanella@linaro.org>
2243
2244 * sysdeps/powerpc/power7/fpu/s_logb.c: Move to ...
2245 * sysdeps/powerpc/fpu/s_logb.c: ... here. Use inline FP constants.
2246 * sysdeps/powerpc/power7/fpu/s_logbf.c: Move to ...
2247 * sysdeps/powerpc/fpu/s_logbf.c: ... here. Use inline FP constants.
2248 * sysdeps/powerpc/power7/fpu/s_logbl.c: Move to ...
2249 * sysdeps/powerpc/fpu/s_logbl.c: ... here. Use inline FP constants.
2250 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logb-power7.c:
2251 Adjust implementation path.
2252 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logbf-power7.c:
2253 Adjust implementation path.
2254 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logbl-power7.c:
2255 Adjust implementation path.
2256 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/Makefile
2257 (libm-sysdep_routines): Add s_log* objects.
2258 (CFLAGS-s_logbf-power7.c, CFLAGS-s_logbl-power7.c,
2259 CFLAGS-s_logb-power7.c): New fule.
2260 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logb-power7.c: Move
2261 to ...
2262 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_logb-power7.c:
2263 ... here.
2264 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logb-ppc64.c: Move
2265 to ...
2266 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_logb-ppc64.c:
2267 ... here.
2268 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logb.c: Move to ...
2269 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_logb.c: ... here.
2270 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logbf-power7.c: Move
2271 to ...
2272 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_logbf-power7.c:
2273 ... here.
2274 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logbf-ppc64.c: Move
2275 to ...
2276 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_logbf-ppc64.c:
2277 ... here.
2278 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logbf.c: Move to ...
2279 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_logbf.c: ... here.
2280 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logbl-power7.c: Move
2281 to ...
2282 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_logbl-power7.c:
2283 ... here.
2284 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logbl-ppc64.c: Move
2285 to ...
2286 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_logbl-ppc64.c:
2287 ... here.
2288 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logbl.c: Move to ...
2289 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_logbl.c: ... here.
2290 * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Remove file.
2291 * sysdeps/powerpc/powerpc64/power7/fpu/s_logb.c: Remove file.
2292 * sysdeps/powerpc/powerpc64/power7/fpu/s_logbf.c: Likewise.
2293 * sysdeps/powerpc/powerpc64/power7/fpu/s_logbl.c: Likewise.
2294
2295 * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c: Move to ...
2296 * sysdeps/ieee754/dbl-64/s_logb.c: ... here. Add work around for
2297 powerpc32 integer 0 converting to -0.
2298
2299 * benchtests/Makefile (bench-math): Add logb.
2300 * benchtests/logb-inputs: New file.
2301 * benchtests/logbf-inputs: New file.
2302
2303 * sysdeps/powerpc/power5+/fpu/s_modf.c: Move to ...
2304 * sysdeps/powerpc/fpu/s_modf.c: ... here. Add ISA 2.07 optimization.
2305 * sysdeps/powerpc/power5+/fpu/s_modff.c: Move to ...
2306 * sysdeps/powerpc/fpu/s_modff.c: ... here. Add ISA 2.07 optimization.
2307 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_modf-power5+.c:
2308 Adjust include.
2309 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_modff-power5+.c:
2310 Likewise.
2311 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/Makefile (sysdep_calls,
2312 sysdep_routines): Add s_modf* objects.
2313 (CFLAGS-s_modf-power5+.c, CFLAGS-s_modff-power5+.c,
2314 CFLAGS-s_modf-ppc64.c, CFLAGS-s_modff-ppc64.c): New rule.
2315 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modf-power5+.c: Move
2316 to ...
2317 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_modf-power5+.c:
2318 ... here.
2319 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modf-power5+.c: Movo
2320 to ...
2321 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_modf-power5+.c: Move
2322 ... here.
2323 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modf.c: Move to ...
2324 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_modf.c: ... here.
2325 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modff-power5+.c: Move
2326 to ...
2327 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_modff-power5+.c:
2328 ... here.
2329 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modff-ppc64.c: Move to ...
2330 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_modff-ppc64.c:
2331 ... here.
2332 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modff.c: Move to ...
2333 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_modff.c: ... here.
2334
2335 * sysdeps/powerpc/fpu/e_hypot.c (two60, two500, two600, two1022,
2336 twoM500, twoM600, two60factor, pdnum): Remove.
2337 (TEST_INFO_NAN, GET_TW0_HIGH_WORD): Remove macro.
2338 (__ieee754_hypot): Replace static variables with inline definition,
2339 remove ununsed branches.
2340 * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile
2341 (libm-sysdep_routines): Remove e_hypot-* objects.
2342 (CFLAGS-e_hypot-power7.c, CFLAGS-e_hypotf-power7.c): Remove rule.
2343 * sysdeps/powerpc/powerpc64/fpu/multiarch/e_hypot-power7.c: Remove
2344 file.
2345 * sysdeps/powerpc/powerpc64/fpu/multiarch/e_hypot-ppc64.c: Likewise.
2346 * sysdeps/powerpc/powerpc64/fpu/multiarch/e_hypot.c: Likewise.
2347 * sysdeps/powerpc/powerpc64/fpu/multiarch/e_hypotf-power7.c: Likewise.
2348 * sysdeps/powerpc/powerpc64/fpu/multiarch/e_hypotf-ppc64.c: Likewise.
2349 * sysdeps/powerpc/powerpc64/fpu/multiarch/e_hypotf.c: Likewise.
2350
2351 * benchtests/Makefile (bench-math): Add hypot.
2352 * benchtests/hypot-inputs: New file.
2353
2354 2019-07-08 Vincent Chen <vincentc@andestech.com>
2355
2356 * sysdeps/unix/sysv/linux/dl-vdso.h
2357 (VDSO_NAME_LINUX_4, VDSO_HASH_LINUX_4): New defines.
2358
2359 2019-07-04 Andreas Schwab <schwab@suse.de>
2360
2361 [BZ #24484]
2362 * sysdeps/riscv/ldsodefs.h (DL_RO_DYN_SECTION): Define.
2363
2364 2019-07-04 Szabolcs Nagy <szabolcs.nagy@arm.com>
2365
2366 * sysdeps/aarch64/Makefile: Install sys/ifunc.h and add tests.
2367 * sysdeps/aarch64/dl-irel.h (elf_ifunc_invoke): Update to new ABI.
2368 * sysdeps/aarch64/sys/ifunc.h: New file.
2369 * sysdeps/aarch64/tst-ifunc-arg-1.c: New file.
2370 * sysdeps/aarch64/tst-ifunc-arg-2.c: New file.
2371
2372 2019-07-01 Florian Weimer <fweimer@redhat.com>
2373
2374 [BZ #20188]
2375 * nptl/Versions (libpthread): Remove __fork from GLIBC_2.0.
2376 Replace __vfork with __libpthread_version_placeholder for
2377 GLIBC_2.1.2.
2378 (libc): Remove __libc_vfork from GLIBC_PRIVATE.
2379 * nptl/Makefile (libpthread-routines): Remove pt-vfork. Add
2380 libpthread-compat.
2381 * nptl/pt-vfork.c: Remove file.
2382 * sysdeps/unix/sysv/linux/aarch64/pt-vfork.c: Likewise.
2383 * sysdeps/unix/sysv/linux/alpha/pt-vfork.S: Likewise.
2384 * sysdeps/unix/sysv/linux/csky/pt-vfork.S: Likewise.
2385 * sysdeps/unix/sysv/linux/hppa/pt-vfork.S: Likewise.
2386 * sysdeps/unix/sysv/linux/ia64/pt-vfork.S: Likewise.
2387 * sysdeps/unix/sysv/linux/m68k/pt-vfork.c: Likewise.
2388 * sysdeps/unix/sysv/linux/microblaze/pt-vfork.S: Likewise.
2389 * sysdeps/unix/sysv/linux/mips/pt-vfork.S: Likewise.
2390 * sysdeps/unix/sysv/linux/nios2/pt-vfork.S: Likewise.
2391 * sysdeps/unix/sysv/linux/riscv/pt-vfork.S: Likewise.
2392 * sysdeps/unix/sysv/linux/s390/pt-vfork.S: Likewise.
2393 * sysdeps/unix/sysv/linux/sh/pt-vfork.S: Likewise.
2394 * sysdeps/unix/sysv/linux/sparc/pt-vfork.S: Likewise.
2395 * sysdeps/unix/sysv/linux/aarch64/libpthread.abilist (GLIBC_2.17):
2396 Remove vfork, __vfork.
2397 * sysdeps/unix/sysv/linux/alpha/libpthread.abilist (GLIBC_2.0):
2398 Remove vfork.
2399 (GLIBC_2.1.2): Replace __vfork with
2400 __libpthread_version_placeholder.
2401 * sysdeps/unix/sysv/linux/arm/libpthread.abilist (GLIBC_2.4):
2402 Remove vfork, __vfork.
2403 * sysdeps/unix/sysv/linux/hppa/libpthread.abilist (GLIBC_2.2):
2404 Likewise.
2405 * sysdeps/unix/sysv/linux/i386/libpthread.abilist (GLIBC_2.0):
2406 Remove vfork.
2407 (GLIBC_2.1.2): Replace __vfork with
2408 __libpthread_version_placeholder.
2409 * sysdeps/unix/sysv/linux/ia64/libpthread.abilist (GLIBC_2.2):
2410 Remove vfork.
2411 * sysdeps/unix/sysv/linux/m68k/coldfire/libpthread.abilist
2412 (GLIBC_2.4): Remove vfork, __vfork.
2413 * sysdeps/unix/sysv/linux/m68k/m680x0/libpthread.abilist
2414 (GLIBC_2.0): Remove vfork.
2415 (GLIBC_2.1.2): Replace __vfork with
2416 __libpthread_version_placeholder.
2417 * sysdeps/unix/sysv/linux/microblaze/libpthread.abilist
2418 (GLIBC_2.18): Remove vfork, __vfork.
2419 * sysdeps/unix/sysv/linux/mips/mips32/libpthread.abilist
2420 (GLIBC_2.0): Remove vfork.
2421 (GLIBC_2.2): Remove __vfork.
2422 * sysdeps/unix/sysv/linux/mips/mips64/libpthread.abilist:
2423 (GLIBC_2.2): Remove vfork, __vfork.
2424 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libpthread.abilist:
2425 (GLIBC_2.0): Remove vfork.
2426 (GLIBC_2.1.2): Replace __vfork with
2427 __libpthread_version_placeholder.
2428 * sysdeps/unix/sysv/linux/powerpc/powerpc64/be/libpthread.abilist
2429 (GLIBC_2.3): Remove vfork, __vfork.
2430 * sysdeps/unix/sysv/linux/powerpc/powerpc64/le/libpthread.abilist
2431 (GLIBC_2.17): Likewise.
2432 * sysdeps/unix/sysv/linux/s390/s390-32/libpthread.abilist
2433 (GLIBC_2.0): Remove vfork.
2434 (GLIBC_2.1.2): Replace __vfork with
2435 __libpthread_version_placeholder.
2436 * sysdeps/unix/sysv/linux/s390/s390-64/libpthread.abilist
2437 (GLIBC_2.2): Remove vfork, __vfork.
2438 * sysdeps/unix/sysv/linux/sh/libpthread.abilist (GLIBC_2.2):
2439 Likewise.
2440 * sysdeps/unix/sysv/linux/sparc/sparc32/libpthread.abilist
2441 (GLIBC_2.0): Remove vfork.
2442 (GLIBC_2.1.2): Replace __vfork with
2443 __libpthread_version_placeholder.
2444 * sysdeps/unix/sysv/linux/sparc/sparc64/libpthread.abilist
2445 (GLIBC_2.2): Remove vfork, __vfork.
2446 * sysdeps/unix/sysv/linux/x86_64/64/libpthread.abilist
2447 (GLIBC_2.2.5): Likewise.
2448 * sysdeps/unix/sysv/linux/x86_64/x32/libpthread.abilist
2449 (GLIBC_2.16): Likewise.
2450 * sysdeps/unix/sysv/linux/hppa/localplt.data (libpthread.so):
2451 Remove __errno_location.
2452
2453 2019-07-02 Florian Weimer <fweimer@redhat.com>
2454
2455 [BZ #24757]
2456 * malloc/Depend: Add nptl and htl, due to potential indirect
2457 libpthread dependency of memusagestat.
2458
2459 2019-07-02 Stefan Liebler <stli@linux.ibm.com>
2460
2461 * resolv/res_send.c (__res_context_send): Disable maybe-uninitialized
2462 warning.
2463
2464 2019-07-01 Florian Weimer <fweimer@redhat.com>
2465
2466 * scripts/build-many-glibcs.py (Context.add_all_configs): Add v4t
2467 variant for arm-linux-gnueabi.
2468
2469 2019-07-01 H.J. Lu <hongjiu.lu@intel.com>
2470
2471 [BZ #24259]
2472 * elf/dl-open.c (dl_open_worker): Call _dl_open_check after
2473 relocation.
2474 * sysdeps/x86/Makefile (tests): Add tst-cet-legacy-5a,
2475 tst-cet-legacy-5b, tst-cet-legacy-6a and tst-cet-legacy-6b.
2476 (modules-names): Add tst-cet-legacy-mod-5a, tst-cet-legacy-mod-5b,
2477 tst-cet-legacy-mod-5c, tst-cet-legacy-mod-6a, tst-cet-legacy-mod-6b
2478 and tst-cet-legacy-mod-6c.
2479 (CFLAGS-tst-cet-legacy-5a.c): New.
2480 (CFLAGS-tst-cet-legacy-5b.c): Likewise.
2481 (CFLAGS-tst-cet-legacy-mod-5a.c): Likewise.
2482 (CFLAGS-tst-cet-legacy-mod-5b.c): Likewise.
2483 (CFLAGS-tst-cet-legacy-mod-5c.c): Likewise.
2484 (CFLAGS-tst-cet-legacy-6a.c): Likewise.
2485 (CFLAGS-tst-cet-legacy-6b.c): Likewise.
2486 (CFLAGS-tst-cet-legacy-mod-6a.c): Likewise.
2487 (CFLAGS-tst-cet-legacy-mod-6b.c): Likewise.
2488 (CFLAGS-tst-cet-legacy-mod-6c.c): Likewise.
2489 ($(objpfx)tst-cet-legacy-5a): Likewise.
2490 ($(objpfx)tst-cet-legacy-5a.out): Likewise.
2491 ($(objpfx)tst-cet-legacy-mod-5a.so): Likewise.
2492 ($(objpfx)tst-cet-legacy-mod-5b.so): Likewise.
2493 ($(objpfx)tst-cet-legacy-5b): Likewise.
2494 ($(objpfx)tst-cet-legacy-5b.out): Likewise.
2495 (tst-cet-legacy-5b-ENV): Likewise.
2496 ($(objpfx)tst-cet-legacy-6a): Likewise.
2497 ($(objpfx)tst-cet-legacy-6a.out): Likewise.
2498 ($(objpfx)tst-cet-legacy-mod-6a.so): Likewise.
2499 ($(objpfx)tst-cet-legacy-mod-6b.so): Likewise.
2500 ($(objpfx)tst-cet-legacy-6b): Likewise.
2501 ($(objpfx)tst-cet-legacy-6b.out): Likewise.
2502 (tst-cet-legacy-6b-ENV): Likewise.
2503 * sysdeps/x86/tst-cet-legacy-5.c: New file.
2504 * sysdeps/x86/tst-cet-legacy-5a.c: Likewise.
2505 * sysdeps/x86/tst-cet-legacy-5b.c: Likewise.
2506 * sysdeps/x86/tst-cet-legacy-6.c: Likewise.
2507 * sysdeps/x86/tst-cet-legacy-6a.c: Likewise.
2508 * sysdeps/x86/tst-cet-legacy-6b.c: Likewise.
2509 * sysdeps/x86/tst-cet-legacy-mod-5.c: Likewise.
2510 * sysdeps/x86/tst-cet-legacy-mod-5a.c: Likewise.
2511 * sysdeps/x86/tst-cet-legacy-mod-5b.c: Likewise.
2512 * sysdeps/x86/tst-cet-legacy-mod-5c.c: Likewise.
2513 * sysdeps/x86/tst-cet-legacy-mod-6.c: Likewise.
2514 * sysdeps/x86/tst-cet-legacy-mod-6a.c: Likewise.
2515 * sysdeps/x86/tst-cet-legacy-mod-6b.c: Likewise.
2516 * sysdeps/x86/tst-cet-legacy-mod-6c.c: Likewise.
2517
2518 2019-06-30 Paul A. Clarke <pc@us.ibm.com>
2519
2520 * sysdeps/powerpc/bits/fenvinline.h (__fegetround): Use
2521 __fegetround_ISA300() or __fegetround_ISA2() as appropriate.
2522 (__fegetround_ISA300) New.
2523 (__fegetround_ISA2) New.
2524 * sysdeps/powerpc/fpu_control.h (IS_ISA300): New.
2525 (_FPU_MFFS): Move implementation...
2526 (_FPU_GETCW): Here.
2527 (_FPU_MFFSL): Move implementation....
2528 (_FPU_GET_RC_ISA300): Here. New.
2529 (_FPU_GET_RC): Use _FPU_GET_RC_ISA300() or _FPU_GETCW() as appropriate.
2530 * sysdeps/powerpc/fpu/fenv_libc.h (fegetenv_status_ISA300): New.
2531 (fegetenv_status): New.
2532 * sysdeps/powerpc/fpu/fegetmode.c (fegetmode): Use fegetenv_status()
2533 instead of fegetenv_register().
2534 * sysdeps/powerpc/fpu/fegetexcept.c (__fegetexcept): Likewise.
2535
2536 2019-06-28 Wilco Dijkstra <wdijkstr@arm.com>
2537
2538 * benchtests/bench-math-inlines.c: Increase iterations.
2539 * benchtests/bench-memcmp.c: Likewise.
2540 * benchtests/bench-rawmemchr.c: Likewise.
2541 * benchtests/bench-strcmp.c: Likewise.
2542 * benchtests/bench-strcpy_chk.c: Likewise.
2543 * benchtests/bench-string.h (INNER_LOOP_ITERS8): Add define.
2544 (INNER_LOOP_ITERS_MEDIUM): Increase iterations.
2545 (INNER_LOOP_ITERS_SMALL): Likewise.
2546 * benchtests/bench-strncat.c: Increase iterations.
2547 * benchtests/bench-strncmp.c: Increase iterations.
2548 * benchtests/bench-strncpy.c: Reduce iterations for wide strings.
2549 * benchtests/bench-strrchr.c: Increase iterations.
2550 * benchtests/bench-strstr.c: Keep iterations unchanged.
2551 * benchtests/bench-strtod.c: Increase iterations.
2552
2553 2019-06-28 Anton Youdkevitch <anton.youdkevitch@bell-sw.com>
2554
2555 * benchtests/bench-memccpy.c: Replace INNER_LOOP_ITERS
2556 with INNER_LOOP_ITERS_LARGE.
2557 * benchtests/bench-memchr.c: Likewise.
2558 * benchtests/bench-rawmemchr.c: Likewise.
2559 * benchtests/bench-strcat.c: Likewise.
2560 * benchtests/bench-strchr.c: Likewise.
2561 * benchtests/bench-string.h: Likewise.
2562 * benchtests/bench-strlen.c: Likewise.
2563 * benchtests/bench-strncpy.c: Likewise.
2564 * benchtests/bench-strnlen.c: Likewise.
2565
2566 2019-06-28 Florian Weimer <fweimer@redhat.com>
2567
2568 * sysdeps/unix/sysv/linux/tst-getdents64.c (large_buffer_checks):
2569 Use mmap instead of malloc. malloc with M_PERTURB writes to the
2570 entire allocated memory range.
2571
2572 2019-06-28 Tobias Klauser <tklauser@distanz.ch>
2573
2574 * sysdeps/unix/sysv/linux/dl-vdso.h (PREPARE_VERSION): Remove macro.
2575 (prepare_version_base): New helper inline function.
2576 (prepare_version): New macro replacing PREPARE_VERSION.
2577 (PREPARE_VERSION_KNOWN): Use prepare_version instead of PREPARE_VERSION.
2578
2579 2019-06-28 Florian Weimer <fweimer@redhat.com>
2580
2581 [BZ #24741]
2582 * elf/dl-lookup.c (do_lookup_x): Do not fail if there is a soname
2583 mismatch in a versioned symbol reference.
2584 (_dl_lookup_symbol_x): Do not report soname mismatch failures.
2585 * elf/Makefile [$(build-shared)] (tests): Add tst-sonamemove-link,
2586 tst-sonamemove-dlopen.
2587 (module-names): Add tst-sonamemove-linkmod1,
2588 tst-sonamemove-runmod1, tst-sonamemove-runmod2.
2589 (LDFLAGS-tst-sonamemove-linkmod1.so): Set.
2590 (LDFLAGS-tst-sonamemove-runmod1.so): Likewise.
2591 (LDFLAGS-tst-sonamemove-runmod2.so): Likewise.
2592 (tst-sonamemove-runmod1.so): Link against
2593 tst-sonamemove-runmod2.so.
2594 (tst-sonamemove-link): Link against tst-sonamemove-linkmod1.so.
2595 (tst-sonamemove-link.out): Depend on tst-sonamemove-runmod1.so,
2596 tst-sonamemove-runmod2.so.
2597 (tst-sonamemove-dlopen): Link with -ldl.
2598 (tst-sonamemove-dlopen.out): Likewise.
2599 * elf/tst-sonamemove-link.c: New file.
2600 * elf/tst-sonamemove-dlopen.c: Likewise.
2601 * elf/tst-sonamemove-linkmod1.c: Likewise.
2602 * elf/tst-sonamemove-linkmod1.map: Likewise.
2603 * elf/tst-sonamemove-runmod1.c: Likewise.
2604 * elf/tst-sonamemove-runmod1.map: Likewise.
2605 * elf/tst-sonamemove-runmod2.c: Likewise.
2606 * elf/tst-sonamemove-runmod2.map: Likewise.
2607
2608 2019-06-28 Florian Weimer <fweimer@redhat.com>
2609
2610 * support/xdlfcn.h (xdlvsym): Declare function.
2611 * support/xdlfcn.c (xdlvsym): Define funciton.
2612
2613 2019-06-28 Florian Weimer <fweimer@redhat.com>
2614
2615 [BZ #24744]
2616 io: Remove the copy_file_range emulation.
2617 * sysdeps/unix/sysv/linux/copy_file_range.c (copy_file_range): Do
2618 not define and call copy_file_range_compat.
2619 * io/Makefile (tests-static, tests-internal): Do not add
2620 tst-copy_file_range-compat.
2621 * io/copy_file_range-compat.c: Remove file.
2622 * io/copy_file_range.c (copy_file_range): Define as stub.
2623 * io/tst-copy_file_range-compat.c: Remove file.
2624 * io/tst-copy_file_range.c (xdevfile): Remove variable.
2625 (typical_sizes): Update comment. Remove 16K sizes.
2626 (maximum_offset, maximum_offset_errno, maximum_offset_hard_limit):
2627 Remove variables.
2628 (find_maximum_offset, pipe_as_source, pipe_as_destination)
2629 (delayed_write_failure_beginning, delayed_write_failure_end)
2630 (cross_device_failure, enospc_failure_1, enospc_failure)
2631 (oappend_failure): Remove functions.
2632 (tests): Adjust test case list.
2633 (do_test): Remove file system search code. Check for ENOSYS from
2634 copy_file_range. Do not free xdevfile.
2635 * manual/llio.texi (Copying File Data): Document ENOSYS error from
2636 copy_file_range. Do not document the EXDEV error, which future
2637 kernels may not report. Update the wording to reflect that
2638 further errors are possible.
2639 * sysdeps/unix/sysv/linux/alpha/kernel-features.h
2640 [__LINUX_KERNEL_VERSION < 0x040D00] (__ASSUME_COPY_FILE_RANGE): Do
2641 not undefine.
2642 * sysdeps/unix/sysv/linux/arm/kernel-features.h
2643 [__LINUX_KERNEL_VERSION < 0x040700] (__ASSUME_COPY_FILE_RANGE):
2644 Likewise.
2645 * sysdeps/unix/sysv/linux/kernel-features.h
2646 [__LINUX_KERNEL_VERSION >= 0x040500] (__ASSUME_COPY_FILE_RANGE):
2647 Remove definition.
2648 * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
2649 [__LINUX_KERNEL_VERSION < 0x040A00] (__ASSUME_COPY_FILE_RANGE): Do
2650 not undefine.
2651 * sysdeps/unix/sysv/linux/sh/kernel-features.h
2652 [__LINUX_KERNEL_VERSION < 0x040800] (__ASSUME_COPY_FILE_RANGE):
2653 Likewise.
2654
2655 2019-06-27 Gabriel F. T. Gomes <gabrielftg@linux.ibm.com>
2656
2657 * libio/libioP.h (PRINTF_LDBL_USES_FLOAT128): New macro to be
2658 used as a mask for the mode argument of __vfprintf_internal.
2659 * stdio-common/printf-parse.h (printf_arg): New union member:
2660 pa_float128.
2661 * stdio-common/vfprintf-internal.c
2662 (PARSE_FLOAT_VA_ARG_EXTENDED): New macro.
2663 (PARSE_FLOAT_VA_ARG): Likewise.
2664 (SETUP_FLOAT128_INFO): Likewise.
2665 (process_arg): Use PARSE_FLOAT_VA_ARG_EXTENDED and
2666 SETUP_FLOAT128_INFO.
2667 [__HAVE_FLOAT128_UNLIKE_LDBL] (printf_positional): Write
2668 floating-point value to the new union member, pa_float128.
2669 (printf_positional): Zero-initialize args_value[cnt] with memset.
2670
2671 2019-06-27 Florian Weimer <fweimer@redhat.com>
2672
2673 [BZ #24740]
2674 * sysdeps/unix/sysv/linux/getdents64.c (__getdents64): Adjust
2675 buffer size if necessary.
2676 * sysdeps/unix/sysv/linux/mips/mips64/getdents64.c (__getdents64):
2677 Likewise.
2678 * sysdeps/unix/sysv/linux/tst-getdents64.c (large_buffer_check):
2679 New function.
2680 (large_buffer_checks): Likewise.
2681 (do_test): Call large_buffer_checks.
2682
2683 2019-06-26 H.J. Lu <hongjiu.lu@intel.com>
2684
2685 * sysdeps/i386/dl-lookupcfg.h: Moved to ...
2686 * sysdeps/x86/dl-lookupcfg.h: Here.
2687 * sysdeps/x86_64/dl-lookupcfg.h: Removed.
2688
2689 2019-06-26 Adhemerval Zanella <adhemerval.zanella@linaro.org>
2690
2691 * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile
2692 (libm-sysdep_routines): Remove e_expf-power8 and expf-ppc64.
2693 * sysdeps/powerpc/powerpc64/fpu/multiarch/e_expf-power8.S: Remove
2694 file.
2695 * sysdeps/powerpc/powerpc64/fpu/multiarch/e_expf-ppc64.c: Likewise.
2696 * sysdeps/powerpc/powerpc64/fpu/multiarch/e_expf.c: Likewise.
2697 * sysdeps/powerpc/powerpc64/fpu/multiarch/w_expf.c: Likewise.
2698 * sysdeps/powerpc/powerpc64/power8/fpu/e_expf.S: Likewise.
2699 * sysdeps/powerpc/powerpc64/power8/fpu/w_expf.c: Likewise.
2700
2701 * sysdeps/powerpc/powerpc32/fpu/Makefile
2702 [$(subdir) == math] (CFLAGS-s_lround.c): New rule.
2703 * sysdeps/powerpc/powerpc32/fpu/s_llround.c (__llround): Add power5+
2704 and fctidz optimization.
2705 * sysdeps/powerpc/powerpc32/fpu/s_lround.S: Remove file.
2706 * sysdeps/powerpc/powerpc32/fpu/s_lround.c: New file.
2707 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile
2708 (CFLAGS-s_llround-power6.c, CFLAGS-s_llround-power5+.c,
2709 CFLAGS-s_llround-ppc32.c, CFLAGS-s_lround-ppc32.c,
2710 CFLAGS-s_lround-power5+.c): New rule.
2711 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llround-power5+.c:
2712 New file.
2713 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llround-power6.c:
2714 Likewise.
2715 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llround-ppc32.c:
2716 Likewise.
2717 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lround-power5+.c:
2718 Likewise.
2719 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lround-ppc32.c:
2720 Likewise.
2721 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llround-power5+.S:
2722 Remove file.
2723 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llround-power6.S:
2724 Likewise.
2725 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llround-ppc32.S:
2726 Likewise.
2727 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lround-power5+.S:
2728 Likewise.
2729 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lround-ppc32.S:
2730 Likewise.
2731 * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S: Likewise.
2732 * sysdeps/powerpc/powerpc32/power4/fpu/s_llroundf.S: Likewise.
2733 * sysdeps/powerpc/powerpc32/power5+/fpu/s_llround.S: Likewise.
2734 * sysdeps/powerpc/powerpc32/power5+/fpu/s_llroundf.S: Likewise.
2735 * sysdeps/powerpc/powerpc32/power5+/fpu/s_lround.S: Likewise.
2736 * sysdeps/powerpc/powerpc32/power6/fpu/s_llround.S: Likewise.
2737 * sysdeps/powerpc/powerpc32/power6/fpu/s_llroundf.S: Likewise.
2738
2739 2019-06-26 Vincent Chen <vincentc@andestech.com>
2740
2741 * sysdeps/unix/sysv/linux/syscall-names.list: Add nds32
2742 specific system calls, fp_udfiex_crtl and udftrap.
2743
2744 2019-06-26 Stefan Liebler <stli@linux.ibm.com>
2745
2746 * nptl/tst-eintr1.c (tf1): Add return statement.
2747 (do_test): Remove unused th variable.
2748
2749 2019-06-26 Stefan Liebler <stli@linux.ibm.com>
2750
2751 * locale/programs/ld-ctype.c (charclass_symbolic_ellipsis):
2752 Return error if get_character fails.
2753
2754 2019-06-25 Stefan Liebler <stli@linux.ibm.com>
2755
2756 * sysdeps/s390/fpu/libm-test-ulps: Regenerated.
2757
2758 2019-06-24 Rafał Lużyński <digitalfreak@lingonborough.com>
2759
2760 [BZ #24652]
2761 * localedata/locales/szl_PL (day): Use the correct Unicode
2762 sequences instead of non-ASCII characters.
2763
2764 2019-06-24 Grzegorz Kulik <gregorykkulik@gmail.com>
2765
2766 [BZ #24652]
2767 * localedata/locales/szl_PL (abday): Spelling corrections.
2768 (day): Likewise.
2769 (abmon): Likewise.
2770 (mon): Rename to...
2771 (alt_mon): This, then apply spelling corrections.
2772 (mon): New entry, month names in the genitive case.
2773
2774 2019-06-21 Rafał Lużyński <digitalfreak@lingonborough.com>
2775
2776 [BZ #23831]
2777 * localedata/locales/nl_AW (mon_thousands_sep): Set to ".".
2778 * localedata/locales/nl_NL (mon_thousands_sep): Likewise.
2779 (thousands_sep): Likewise.
2780 (grouping): Set to 3;3.
2781
2782 2019-06-21 Tobias Klauser <tklauser@distanz.ch>
2783
2784 * sysdeps/unix/sysv/linux/aarch64/gettimeofday.c (INIT_ARCH): Use
2785 PREPARE_VERSION_KNOWN.
2786 * sysdeps/unix/sysv/linux/aarch64/init-first.c: Likewise.
2787 * sysdeps/unix/sysv/linux/dl-vdso.h (VDSO_NAME_LINUX_2_6_39): New
2788 define.
2789 (VDSO_HASH_LINUX_2_6_39): Likewise.
2790 (VDSO_NAME_LINUX_4_9): Likewise.
2791 (VDSO_HASH_LINUX_4_9): Likewise.
2792 * sysdeps/unix/sysv/linux/powerpc/gettimeofday.c (INIT_ARCH): Likewise.
2793 * sysdeps/unix/sysv/linux/powerpc/init-first.c
2794 (_libc_vdso_platform_setup): Likewise.
2795 * sysdeps/unix/sysv/linux/powerpc/time.c (INIT_ARCH): Likewise.
2796 * sysdeps/unix/sysv/linux/s390/init-first.c (_libc_vdso_platform_setup):
2797 Likewise.
2798 * sysdeps/unix/sysv/linux/x86_64/init-first.c (__vdso_platform_setup):
2799 Likewise.
2800
2801 2019-06-20 Mike Crowe <mac@mcrowe.com>
2802
2803 * nptl/eintr.c: Use libsupport.
2804 * nptl/tst-eintr1.c: Likewise.
2805 * nptl/tst-eintr2.c: Likewise.
2806 * nptl/tst-eintr3.c: Likewise.
2807 * nptl/tst-eintr4.c: Likewise.
2808 * nptl/tst-eintr5.c: Likewise.
2809 * nptl/tst-mutex-errorcheck.c: Likewise.
2810 * nptl/tst-mutex5.c: Likewise.
2811
2812 * support/test-driver.h: Add verbose_printf macro.
2813
2814 * support/xtime.h: Add xclock_now() helper function.
2815
2816 2019-06-20 Dmitry V. Levin <ldv@altlinux.org>
2817 Florian Weimer <fweimer@redhat.com>
2818
2819 [BZ #24228]
2820 * libio/genops.c (_IO_unbuffer_all)
2821 [SHLIB_COMPAT (libc, GLIBC_2_0, GLIBC_2_1)]: Do not attempt to free wide
2822 buffers and access _IO_FILE_complete members of legacy libio streams.
2823 * libio/tst-bz24228.c: New file.
2824 * libio/tst-bz24228.map: Likewise.
2825 * libio/Makefile [build-shared] (tests): Add tst-bz24228.
2826 [build-shared] (generated): Add tst-bz24228.mtrace and
2827 tst-bz24228.check.
2828 [run-built-tests && build-shared] (tests-special): Add
2829 $(objpfx)tst-bz24228-mem.out.
2830 (LDFLAGS-tst-bz24228, tst-bz24228-ENV): New variables.
2831 ($(objpfx)tst-bz24228-mem.out): New rule.
2832
2833 2019-06-19 Paul A. Clarke <pc@us.ibm.com>
2834
2835 * sysdeps/powerpc/fpu/fenv_libc.h (relax_fenv_state): Add 'volatile'.
2836 * sysdeps/powerpc/fpu/fpu_control.h (__FPU_MFFS): Likewise.
2837 (__FPU_MFFSL): Likewise.
2838 (_FPU_SETCW): Likewise.
2839
2840 2019-06-19 Stan Shebs <stanshebs@google.com>
2841 Raoni Fassina Firmino <raoni@linux.ibm.com>
2842
2843 [BZ #24640]
2844 * sysdeps/unix/sysv/linux/powerpc/get_timebase_freq.c
2845 [!SHARED] (__get_timebase_freq): Fix sense of a test in the
2846 static-linking version.
2847 * sysdeps/unix/sysv/linux/powerpc/Makefile
2848 (tests-static): Add test-gettimebasefreq-static.
2849 (tests): Likewise.
2850 * sysdeps/unix/sysv/linux/powerpc/test-gettimebasefreq-static.c:
2851 New file.
2852
2853 2019-06-19 Rafał Lużyński <digitalfreak@lingonborough.com>
2854
2855 [BZ #24614]
2856 * localedata/locales/nl_AW (n_sep_by_space): Set to 2 (a space
2857 between the currency symbol and the minus sign).
2858 (n_sign_posn): Set to 4 (the minus sign after the currency symbol).
2859
2860 2019-06-19 Stefan Liebler <stli@linux.ibm.com>
2861
2862 [BZ #24556]
2863 * string/test-strcasestr.c (check_result): Add NULL check.
2864 * nss/tst-field.c (check_rewrite): Likewise.
2865 * benchtests/bench-strstr.c (do_one_test): Likewise.
2866 * string/test-strstr.c (check_result): Likewise.
2867 * argp/argp-test.c (popt): Increase size of buf to 12.
2868 * benchtests/bench-malloc-simple.c (bench):
2869 Do not initialize tests array out of bounds.
2870
2871 2019-06-19 Florian Weimer <fweimer@redhat.com>
2872
2873 [BZ #24166]
2874 * dlfcn/dlfcn.h (Dl_serinfo): Do not use array of length 1 for
2875 dls_serpath field.
2876
2877 2019-06-18 Florian Weimer <fweimer@redhat.com>
2878
2879 [BZ #24323]
2880 * include/elf.h (DT_1_SUPPORTED_MASK): Include DF_1_PIE.
2881 * elf/dl-load.c (_dl_map_object_from_fd): Check for DF_1_PIE and
2882 fail when called from dlopen.
2883 * elf/Makefile [have-fpie && build-shared] (tests): Add
2884 tst-dlopen-pie.
2885 (tst-dlopen-pie): Link with -ldl.
2886 (tst-dlopen-pie.out): Add run-time dependency on tst-pie1.
2887 * elf/tst-dlopen-pie.c (do_test): New file.
2888
2889 2019-06-17 Rafał Lużyński <digitalfreak@lingonborough.com>
2890
2891 [BZ #24614]
2892 * localedata/Makefile (LOCALES): Add nl_NL.UTF-8.
2893 * localedata/locales/nl_NL (n_sep_by_space): Set to 2 (a space
2894 between the currency symbol and the minus sign).
2895 (n_sign_posn): Set to 4 (the minus sign after the currency symbol).
2896 * localedata/tst-strfmon1.c (tests): Add test data for nl_NL.UTF-8.
2897
2898 2019-06-17 Adhemerval Zanella <adhemerval.zanella@linaro.org>
2899
2900 * sysdeps/unix/sysv/linux/m68k/Makefile (sysdep_routines,
2901 sysdep-rtld-routines): Remove rules.
2902 * sysdeps/unix/sysv/linux/m68k/Versions (libc) [GLIBC_PRIVATE]:
2903 Remove __vdso_atomic_cmpxchg_32 and __vdso_atomic_barrier.
2904 (ld) [GLIBC_PRIVATE]: __rtld___vdso_read_tp,
2905 __rtld___vdso_atomic_cmpxchg_32, and __rtld___vdso_atomic_barrier.
2906 * sysdeps/unix/sysv/linux/m68k/coldfire/atomic-machine.h
2907 (atomic_compare_and_exchange_val_acq, atomic_full_barrier): Remove
2908 vDSO path for SHARED.
2909 * sysdeps/unix/sysv/linux/m68k/init-first.c: Remove file.
2910 * sysdeps/unix/sysv/linux/m68k/libc-m68k-vdso.c: Likewise.
2911 * sysdeps/unix/sysv/linux/m68k/m68k-helpers.S: Likewise.
2912 * sysdeps/unix/sysv/linux/m68k/m68k-vdso.c: Likewise.
2913 * sysdeps/unix/sysv/linux/m68k/m68k-vdso.h: Likewise.
2914 * sysdeps/unix/sysv/linux/m68k/m68k-helpers.c: New file.
2915
2916 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/Makefile
2917 (libm-sysdep_routines): Add s_llround-power8, s_llround-power6x,
2918 s_llround-power5+, s_llround-ppc64, and s_llroundf-ppc64.
2919 (CFLAGS-s_llround-power8.c, CFLAGS-s_llround-power6x.c,
2920 CFLAGS-s_llround-power5+.c): New rule.
2921 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_llround-power5+.c:
2922 New file.
2923 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_llround-power6x.c:
2924 Likewise.
2925 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_llround-power8.c:
2926 Likewise.
2927 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_llround-ppc64.c:
2928 Likewise.
2929 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_llroundf-ppc64.c:
2930 Likewise.
2931 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround.c: Move to ...
2932 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_llround.c: ... here.
2933 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llroundf.c: Move to ...
2934 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_llroundf.c: ... here.
2935 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_lround.c: Move to ...
2936 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_lround.c: ... here.
2937 * sysdeps/powerpc/powerpc64/fpu/Makefile
2938 [$(subdir) == math] (CFLAGS-s_llround.c): New rule.
2939 * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile
2940 (libm-sysdep_routines): Remove s_llround-* objects.
2941 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround-power5+.S: Remove
2942 file.
2943 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround-power6x.S:
2944 Likewise.
2945 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround-power8.S:
2946 Likewise.
2947 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround-ppc64.S:
2948 Likewise.
2949 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llroundf-ppc64.S:
2950 Likewise.
2951 * sysdeps/powerpc/powerpc64/fpu/s_llround.S: Likewise.
2952 * sysdeps/powerpc/powerpc64/fpu/s_llroundf.S: Likewise.
2953 * sysdeps/powerpc/powerpc64/fpu/s_lround.S: Likewise.
2954 * sysdeps/powerpc/powerpc64/fpu/s_lroundf.S: Likewise.
2955 * sysdeps/powerpc/powerpc64/fpu/s_llround.c: New file.
2956 * sysdeps/powerpc/powerpc64/fpu/s_llroundf.c: Likewise.
2957 * sysdeps/powerpc/powerpc64/fpu/s_lround.c: Likewise.
2958 * sysdeps/powerpc/powerpc64/fpu/s_lroundf.c: Likewise.
2959 * sysdeps/powerpc/powerpc64/power5+/fpu/s_llround.S: Likewise.
2960 * sysdeps/powerpc/powerpc64/power5+/fpu/s_llroundf.S: Likewise.
2961 * sysdeps/powerpc/powerpc64/power6x/fpu/s_llround.S: Likewise.
2962 * sysdeps/powerpc/powerpc64/power6x/fpu/s_llroundf.S: Likewise.
2963 * sysdeps/powerpc/powerpc64/power8/fpu/s_llround.S: Likewise.
2964 * sysdeps/powerpc/powerpc64/power8/fpu/s_llroundf.S: Likewise.
2965
2966 * sysdeps/powerpc/fpu/s_lrintf.S: Remove file.
2967 * sysdeps/powerpc/powerpc64/fpu/s_lrintf.c: Move to ...
2968 * sysdeps/powerpc/fpu/s_lrintf.c: ... here.
2969 * sysdeps/powerpc/powerpc32/fpu/Makefile
2970 [$(subdir) == math] (CFLAGS-s_lrint.c): New rule.
2971 * sysdeps/powerpc/powerpc32/fpu/s_llrint.c (__llrint): Add power4
2972 optimization.
2973 * sysdeps/powerpc/powerpc32/fpu/s_llrintf.c (__llrintf): Likewise.
2974 * sysdeps/powerpc/powerpc32/fpu/s_lrint.S: Remove file.
2975 * sysdeps/powerpc/powerpc32/fpu/s_lrint.c: New file.
2976 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile
2977 (CFLAGS-s_llrintf-power6.c, CFLAGS-s_llrintf-ppc32.c,
2978 CFLAGS-s_llrint-power6.c, CFLAGS-s_llrint-ppc32.c,
2979 CFLAGS-s_lrint-ppc32.c): New rule.
2980 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llrint-power6.S:
2981 Remove file.
2982 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llrint-ppc32.S:
2983 Likewise.
2984 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llrintf-power6.S:
2985 Likewise.
2986 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llrintf-ppc32.S:
2987 Likewise.
2988 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lrint-ppc32.S:
2989 Likewise.
2990 * sysdeps/powerpc/powerpc32/power4/fpu/s_llrint.S: Likewise.
2991 * sysdeps/powerpc/powerpc32/power4/fpu/s_llrintf.S: Likewise.
2992 * sysdeps/powerpc/powerpc32/power6/fpu/s_llrint.S: Likewise.
2993 * sysdeps/powerpc/powerpc32/power6/fpu/s_llrintf.S: Likewise.
2994 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llrint-power6.c:
2995 New file.
2996 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llrint-ppc32.c:
2997 Likewise.
2998 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llrintf-power6.c:
2999 Likewise.
3000 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llrintf-ppc32.c:
3001 Likewise.
3002 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lrint-ppc32.c:
3003 Likewise.
3004
3005 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/Makefile
3006 (libm-sysdep_routines): Add s_llrint-power8, s_llrint-power6x, and
3007 s_llrint-ppc64.
3008 (CFLAGS-s_llrint-power8.c, CFLAGS-s_llrint-power6x.c): New rule.
3009 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_llrint-power6x.c: New
3010 file.
3011 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_llrint-power8.c:
3012 Likewise.
3013 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_llrint-ppc64.c:
3014 Likewise.
3015 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_lrint.c: Move to ...
3016 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_lrint.c: ... here.
3017 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint.c: Move to ...
3018 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_llrint.c: ... here.
3019 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrintf.c: Move to ...
3020 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_llrintf.c: ... here.
3021 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_lrint.c: New file.
3022 * sysdeps/powerpc/powerpc64/fpu/Makefile: Likewise.
3023 * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile
3024 (libm-sysdep_routines): Remove s_llrint-* objects.
3025 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint-power6x.S: Remove
3026 file.
3027 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint-power8.S:
3028 Likewise.
3029 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint-ppc64.S: Likewise.
3030 * sysdeps/powerpc/powerpc64/fpu/s_llrint.c: New file.
3031 * sysdeps/powerpc/powerpc64/fpu/s_llrintf.c: Likewise.
3032 * sysdeps/powerpc/powerpc64/fpu/s_lrint.c: Likewise.
3033 * sysdeps/powerpc/powerpc64/fpu/s_lrintf.c: Likewise.
3034 * sysdeps/powerpc/powerpc64/fpu/s_llrint.S: Remove file.
3035 * sysdeps/powerpc/powerpc64/fpu/s_llrintf.S: Likewise.
3036 * sysdeps/powerpc/powerpc64/fpu/s_lrint.S: Likewise.
3037 * sysdeps/powerpc/powerpc64/power6x/fpu/s_llrint.S: Likewise.
3038 * sysdeps/powerpc/powerpc64/power8/fpu/s_llrint.S: Likewise.
3039
3040 2019-06-14 Florian Weimer <fweimer@redhat.com>
3041
3042 * sysdeps/unix/sysv/linux/bits/statx.h: Use string literal in
3043 argument to __glibc_has_include to inhibit macro expansion.
3044
3045 2019-06-14 Florian Weimer <fweimer@redhat.com>
3046
3047 * misc/sys/cdefs.h (__glibc_has_include): Do not use a
3048 function-like macro, so that __has_include can inhibit expansion
3049 of its argument.
3050
3051 2019-06-13 Joseph Myers <joseph@codesourcery.com>
3052
3053 * sysdeps/unix/sysv/linux/bits/in.h (IPV6_ROUTER_ALERT_ISOLATE):
3054 New macro.
3055
3056 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/localplt.data:
3057 Allow memset in libc.so.
3058
3059 2019-06-13 Szabolcs Nagy <szabolcs.nagy@arm.com>
3060
3061 * sysdeps/aarch64/dl-dtprocnum.h: New file.
3062 * sysdeps/aarch64/dl-machine.h (DT_AARCH64): Define.
3063 (elf_machine_runtime_setup): Handle DT_AARCH64_VARIANT_PCS.
3064 (elf_machine_lazy_rel): Check STO_AARCH64_VARIANT_PCS and bind such
3065 symbols at load time.
3066 * sysdeps/aarch64/linkmap.h (struct link_map_machine): Add variant_pcs.
3067
3068 2019-06-13 Szabolcs Nagy <szabolcs.nagy@arm.com>
3069
3070 * elf/elf.h (STO_AARCH64_VARIANT_PCS): Define.
3071 (DT_AARCH64_VARIANT_PCS): Define.
3072
3073 2019-06-12 Adhemerval Zanella <adhemerval.zanella@linaro.org>
3074
3075 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile
3076 (sysdeps_routines, libm-sysdep_routines): Remove s_finite*
3077 objects.
3078 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_finite-power7.S:
3079 Remove file.
3080 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_finite-ppc32.c:
3081 Likewise.
3082 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_finite.c: Likewise.
3083 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_finitef-ppc32.c:
3084 Likewise.
3085 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_finitef.c: Likewise.
3086 * sysdeps/powerpc/powerpc32/power7/fpu/s_finite.S: Likewise.
3087 * sysdeps/powerpc/powerpc32/power7/fpu/s_finitef.S: Likewise.
3088 * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile (sysdep_call):
3089 Remove s_finite* objects.
3090 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finite-power7.S: Remove file.
3091 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finite-power8.S: Likewise.
3092 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finite-ppc64.c: Likewise.
3093 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finite.c: Likewise.
3094 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finitef-ppc64.c: Likewise.
3095 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finitef.c: Likewise.
3096 * sysdeps/powerpc/powerpc64/power7/fpu/s_finite.S: Likewise.
3097 * sysdeps/powerpc/powerpc64/power7/fpu/s_finitef.S: Likewise.
3098 * sysdeps/powerpc/powerpc64/power8/fpu/s_finite.S: Likewise.
3099 * sysdeps/powerpc/powerpc64/power8/fpu/s_finitef.S: Likewise.
3100
3101 * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: Move to ...
3102 * sysdeps/ieee754/dbl-64/s_finite.c: ... here and format code.
3103
3104 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile
3105 (sysdeps_routines, libm-sysdep_routines): Remove s_isinf* and s_isinf*
3106 objects.
3107 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isinf-power7.S:
3108 Remove file.
3109 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isinf-ppc32.c:
3110 Likewise.
3111 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isinf.c: Likewise.
3112 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isinff-ppc32.c:
3113 Likewise.
3114 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isinff.c: Likewise.
3115 * sysdeps/powerpc/powerpc32/power7/fpu/s_isinf.S: Likewise.
3116 * sysdeps/powerpc/powerpc32/power7/fpu/s_isinff.S: Likewise.
3117 * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile (sysdep_call):
3118 Remove s_isinf* and s_isinf* objects.
3119 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinf-power7.S: Likewise.
3120 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinf-power8.S: Likewise.
3121 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinf-ppc64.c: Likewise.
3122 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinf.c: Likewise.
3123 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinff-ppc64.c: Likewise.
3124 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinff.c: Likewise.
3125 * sysdeps/powerpc/powerpc64/power7/fpu/s_isinf.S: Likewise.
3126 * sysdeps/powerpc/powerpc64/power7/fpu/s_isinff.S: Likewise.
3127 * sysdeps/powerpc/powerpc64/power8/fpu/s_isinf.S: Likewise.
3128 * sysdeps/powerpc/powerpc64/power8/fpu/s_isinff.S: Likewise.
3129
3130 * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf.c: Move to ...
3131 * sysdeps/ieee754/dbl-64/s_isinf.c: ... here and format code.
3132
3133 * sysdeps/powerpc/fpu/s_isnan.c: Remove file.
3134 * sysdeps/powerpc/fpu/s_isnanf.S: Likewise.
3135 * sysdeps/powerpc/powerpc32/fpu/s_isnan.S: Likewise.
3136 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile
3137 (sysdeps_routines, libm-sysdep_routines): Remove s_isnan-* and
3138 s_isnanf-* objects.
3139 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isnan-power5.S:
3140 Remove file
3141 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isnan-power6.S:
3142 Likewise.
3143 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isnan-power7.S:
3144 Likewise.
3145 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isnan-ppc32.S:
3146 Likewise.
3147 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isnan.c: Likewise.
3148 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isnanf-power5.S:
3149 Likewise.
3150 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isnanf-power6.S:
3151 Likewise.
3152 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isnanf.c: Likewise.
3153 * sysdeps/powerpc/powerpc32/power5/fpu/s_isnan.S: Likewise.
3154 * sysdeps/powerpc/powerpc32/power5/fpu/s_isnanf.S: Likewise.
3155 * sysdeps/powerpc/powerpc32/power6/fpu/s_isnan.S: Likewise.
3156 * sysdeps/powerpc/powerpc32/power6/fpu/s_isnanf.S: Likewise.
3157 * sysdeps/powerpc/powerpc32/power7/fpu/s_isnan.S: Likewise.
3158 * sysdeps/powerpc/powerpc32/power7/fpu/s_isnanf.S: Likewise.
3159 * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile (sysdep_calls):
3160 Remove s_isnan-* and s_isnanf-* objects.
3161 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power5.S: Likewise.
3162 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power6.S: Likewise.
3163 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power6x.S:
3164 Likewise.
3165 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power7.S: Likewise.
3166 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power8.S: Likewise.
3167 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-ppc64.S: Likewise.
3168 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan.c: Likewise.
3169 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnanf.c: Likewise.
3170 * sysdeps/powerpc/powerpc64/fpu/s_isnan.S: Likewise.
3171 * sysdeps/powerpc/powerpc64/power5/fpu/s_isnan.S: Likewise.
3172 * sysdeps/powerpc/powerpc64/power6/fpu/s_isnan.S: Likewise.
3173 * sysdeps/powerpc/powerpc64/power6x/fpu/s_isnan.S: Likewise.
3174 * sysdeps/powerpc/powerpc64/power7/fpu/s_isnan.S: Likewise.
3175 * sysdeps/powerpc/powerpc64/power7/fpu/s_isnanf.S: Likewise.
3176 * sysdeps/powerpc/powerpc64/power8/fpu/s_isnan.S: Likewise.
3177 * sysdeps/powerpc/powerpc64/power8/fpu/s_isnanf.S: Likewise.
3178
3179 * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Move to ...
3180 * sysdeps/ieee754/dbl-64/s_isnan.c: ... here and format code.
3181
3182 * benchtests/Makefile (bench-math): Add isnan, isinf, and isfinite.
3183 (CFLAGS-bench-isnan.c, CFLAGS-bench-isinf.c,
3184 CFLAGS-bench-isfinite.c): New rule.
3185 * benchtests/isnan-input: New file.
3186 * benchtests/isinf-input: New file.
3187 * benchtests/isfinite-input: New file.
3188
3189 * sysdeps/powerpc/fpu/s_copysign.c: New file.
3190 * sysdeps/powerpc/fpu/s_copysignf.c: Likewise.
3191 * sysdeps/powerpc/powerpc32/fpu/s_copysign.S: Remove file.
3192 * sysdeps/powerpc/powerpc32/fpu/s_copysignf.S: Likewise.
3193 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile
3194 (sysdep_routines, libm-sysdep_routines): Remove s_copysign-power6 and
3195 s_copysign-ppc32.
3196 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_copysign-power6.S:
3197 Remove file.
3198 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_copysign-ppc32.S:
3199 Likewise.
3200 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_copysign.c:
3201 Likewise.
3202 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_copysignf.c:
3203 Likewise.
3204 * sysdeps/powerpc/powerpc32/power6/fpu/s_copysign.S: Likewise.
3205 * sysdeps/powerpc/powerpc32/power6/fpu/s_copysignf.S: Likewise.
3206 * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile (sysdeps_calls):
3207 Remove s_copysign-power6 s_copysign-ppc64.
3208 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysign-power6.S:
3209 Remove file.
3210 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysign-ppc64.S:
3211 Likewise.
3212 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysign.c: Likewise.
3213 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysignf.c: Likewise.
3214 * sysdeps/powerpc/powerpc64/fpu/s_copysign.S: Likewise.
3215 * sysdeps/powerpc/powerpc64/fpu/s_copysignf.S: Likewise.
3216 * sysdeps/powerpc/powerpc64/power6/fpu/s_copysign.S: Likewise.
3217 * sysdeps/powerpc/powerpc64/power6/fpu/s_copysignf.S: Likewise.
3218
3219 * sysdeps/powerpc/fpu/round_to_integer.h (set_fenv_mode,
3220 round_to_integer_float, round_mode): Add RINT handling.
3221 (reset_fenv_mode): New symbol.
3222 * sysdeps/powerpc/fpu/s_rint.c (__rint): Use generic implementation.
3223 * sysdeps/powerpc/fpu/s_rintf.c (__rintf): Likewise.
3224 * sysdeps/powerpc/powerpc32/fpu/s_rint.S: Remove file.
3225 * sysdeps/powerpc/powerpc32/fpu/s_rintf.S: Likewise.
3226 * sysdeps/powerpc/powerpc64/fpu/s_rint.S: Likewise.
3227 * sysdeps/powerpc/powerpc64/fpu/s_rintf.S: Likewise.
3228
3229 2019-06-12 Florian Weimer <fweimer@redhat.com>
3230
3231 [BZ #24632]
3232 * libio/libioP.h (_IO_JUMPS_FUNC_UPDATE): New macro.
3233 * libio/freopen.c (freopen): Use it.
3234
3235 2019-06-12 Florian Weimer <fweimer@redhat.com>
3236
3237 Linux: Deprecate sysctl.
3238 * include/sysctl.h (__sysctl): Remove declaration.
3239 * scripts/check-installed-headers.sh (sys/sysctl.h): Disable
3240 check.
3241 * sysdeps/unix/sysv/linux/sys/sysctl.h: Add deprecation warning.
3242 (sysctl): Add deprecation attribute.
3243 * sysdeps/unix/sysv/linux/sysctl.c: Include <linux/sysctl.h>
3244 directly, to avoid the deprecation warning. Do not include
3245 <string.h>.
3246 (__sysctl): Remove hidden alias.
3247
3248 2019-06-12 Florian Weimer <fweimer@redhat.com>
3249
3250 Linux: Use kernel headers for statx definitions if available.
3251 * include/bits/statx-generic.h: New file.
3252 * include/bits/types/struct_statx.h: Likewise.
3253 * include/bits/types/struct_statx_timestamp.h: Likewise.
3254 * io/Makefile (headers): Add bits/statx-generic.h.
3255 * io/bits/statx-generic.h: New file. Partly copied from
3256 io/bits/statx.h.
3257 * io/statx_generic.c: Include <bits/types/struct_statx.h> to
3258 define original_statx.
3259 * io/bits/types/struct_statx.h: Likewise.
3260 * io/bits/types/struct_statx_timestamp.h: Likewise.
3261 (statx_generic): Use original_statx.
3262 * io/bits/statx.h: Rewrite to include <bits/statx-generic.h>.
3263 * sysdeps/unix/sysv/linux/bits/statx.h: New file.
3264
3265 2019-06-12 Florian Weimer <fweimer@redhat.com>
3266
3267 * misc/sys/cdefs.h (__glibc_has_include): Define.
3268
3269 2019-06-12 Wilco Dijkstra <wdijkstr@arm.com>
3270
3271 * string/memmem.c (__memmem): Rewrite to improve performance.
3272
3273 2019-06-12 Wilco Dijkstra <wdijkstr@arm.com>
3274
3275 * string/str-two-way.h (two_way_short_needle): Add inline to avoid
3276 warning.
3277 (two_way_long_needle): Block inlining.
3278 * string/strstr.c (strstr2): Add new function.
3279 (strstr3): Likewise.
3280 (STRSTR): Completely rewrite strstr to improve performance.
3281
3282 2019-06-11 Wilco Dijkstra <wdijkstr@arm.com>
3283
3284 * benchtests/bench-strstr.c (test_hard_needle): New function.
3285
3286 2019-06-10 Joseph Myers <joseph@codesourcery.com>
3287
3288 * malloc/tst-calloc.c: Include <libc-diag.h>.
3289 (null_test): Ignore -Wunused-result around calls to calloc.
3290 * malloc/tst-mallocfork.c: Include <libc-diag.h>.
3291 (do_test): Ignore -Wunused-result around call to malloc.
3292
3293 2019-06-07 Florian Weimer <fweimer@redhat.com>
3294
3295 Linux: Add getdents64 system call.
3296 * include/dirnent.h (getdents): Add comment and change buffer
3297 argument type to void *.
3298 (getdents64): Likewise. Add hidden prototype.
3299 * sysdeps/unix/sysv/linux/bits/Versions (GLIBC_2.30): Export
3300 getdents64.
3301 * sysdeps/unix/sysv/linux/Makefile [$(subdir) == dirent] (tests):
3302 Add tst-getdents64.
3303 * sysdeps/unix/sysv/linux/bits/unistd_ext.h (getdents64): Declare.
3304 * sysdeps/unix/sysv/linux/getdents.c (__getdents): Change buffer
3305 argument type to void *.
3306 * sysdeps/unix/sysv/linux/getdents64.c (__getdents64): Likewise.
3307 Add hidden definition and getdents64 alias.
3308 * sysdeps/unix/sysv/linux/mips/mips64/getdents64.c (__getdents64):
3309 Likewise.
3310 * sysdeps/unix/sysv/linux/tst-getdents64.c: New file.
3311 * manual/filesys.texi (Accessing Directories): Add Low-level
3312 Directory Access node reference.
3313 (Opening a Directory): Cross-reference it.
3314 (Low-level Directory Access): New node.
3315 * sysdeps/unix/sysv/linux/aarch64/libc.abilist (GLIBC_2.30): Add
3316 getdents64.
3317 * sysdeps/unix/sysv/linux/alpha/libc.abilist (GLIBC_2.30):
3318 Likewise.
3319 * sysdeps/unix/sysv/linux/arm/libc.abilist (GLIBC_2.30): Likewise.
3320 * sysdeps/unix/sysv/linux/csky/libc.abilist (GLIBC_2.30):
3321 Likewise.
3322 * sysdeps/unix/sysv/linux/hppa/libc.abilist (GLIBC_2.30):
3323 Likewise.
3324 * sysdeps/unix/sysv/linux/i386/libc.abilist (GLIBC_2.30):
3325 Likewise.
3326 * sysdeps/unix/sysv/linux/ia64/libc.abilist (GLIBC_2.30):
3327 Likewise.
3328 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist (GLIBC_2.30):
3329 Likewise.
3330 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist (GLIBC_2.30):
3331 Likewise.
3332 * sysdeps/unix/sysv/linux/microblaze/libc.abilist (GLIBC_2.30):
3333 Likewise.
3334 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist
3335 (GLIBC_2.30): Likewise.
3336 * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist
3337 (GLIBC_2.30): Likewise.
3338 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist
3339 (GLIBC_2.30): Likewise.
3340 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist
3341 (GLIBC_2.30): Likewise.
3342 * sysdeps/unix/sysv/linux/nios2/libc.abilist (GLIBC_2.30):
3343 Likewise.
3344 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist
3345 (GLIBC_2.30): Likewise.
3346 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist
3347 (GLIBC_2.30): Likewise.
3348 * sysdeps/unix/sysv/linux/powerpc/powerpc64/be/libc.abilist
3349 (GLIBC_2.30): Likewise.
3350 * sysdeps/unix/sysv/linux/powerpc/powerpc64/le/libc.abilist
3351 (GLIBC_2.30): Likewise.
3352 * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist (GLIBC_2.30):
3353 Likewise.
3354 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist (GLIBC_2.30):
3355 Likewise.
3356 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist (GLIBC_2.30):
3357 Likewise.
3358 * sysdeps/unix/sysv/linux/sh/libc.abilist (GLIBC_2.30): Likewise.
3359 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist (GLIBC_2.30):
3360 Likewise.
3361 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist (GLIBC_2.30):
3362 Likewise.
3363 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist (GLIBC_2.30):
3364 Likewise.
3365 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist (GLIBC_2.30):
3366 Likewise.
3367
3368 2019-06-06 Paul A. Clarke <pc@us.ibm.com>
3369
3370 * sysdeps/powerpc/fpu_control.h (_FPU_MASK_RC): New.
3371 (__FPU_MFFS): New.
3372 (__FPU_MFFSL): New.
3373 (_FPU_GET_RC): New.
3374 (_FPU_GETCW): Use __FPU_MFFS().
3375 * sysdeps/powerpc/fpu/get-rounding-mode.h: New file.
3376
3377 2019-06-06 Florian Weimer <fweimer@redhat.com>
3378
3379 * sysdeps/unix/sysv/linux/riscv/flush-icache.c: Do not use
3380 internal GCC preprocessor identifier __has_include__.
3381
3382 2019-06-05 Paul A. Clarke <pc@us.ibm.com>
3383
3384 * sysdeps/powerpc/fpu/fegetexcept.c (__fegetexcept): Replace code
3385 with call to equivalent function.
3386
3387 2019-06-04 Florian Weimer <fweimer@redhat.com>
3388
3389 * iconv/gconv_dl.c (release_handle): Remove file-level definition.
3390 (do_release_shlib): Adjust for __twalk_r.
3391 (__gconv_release_shlib): Call __twalk_r.
3392
3393 2019-06-04 Andreas Schwab <schwab@suse.de>
3394
3395 [BZ #18830]
3396 * iconv/skeleton.c (FUNCTION_NAME): Use RESET_INPUT_BUFFER only if
3397 no irreversible characters occurred.
3398 * iconv/gconv_simple.c (internal_ucs4_loop)
3399 (internal_ucs4_loop_unaligned, internal_ucs4_loop_single)
3400 (ucs4_internal_loop, ucs4_internal_loop_unaligned)
3401 (ucs4_internal_loop_single, internal_ucs4le_loop)
3402 (internal_ucs4le_loop_unaligned, internal_ucs4le_loop_single)
3403 (ucs4le_internal_loop, ucs4le_internal_loop_unaligned)
3404 (ucs4le_internal_loop_single): Add const to outend.
3405 * sysdeps/s390/multiarch/gconv_simple.c (internal_ucs4le_loop)
3406 (ucs4_internal_loop, ucs4le_internal_loop): Likewise.
3407 * iconv/Makefile (tests): Add tst-iconv7.
3408 * iconv/tst-iconv7.c: New file.
3409
3410 2019-06-03 Joseph Myers <joseph@codesourcery.com>
3411
3412 * inet/netinet/in.h (INADDR_ALLSNOOPERS_GROUP): New macro.
3413
3414 2019-06-01 Florian Weimer <fweimer@redhat.com>
3415
3416 arm: Remove ioperm/iopl/inb/inw/inl/outb/outw/outl support.
3417 * sysdeps/unix/sysv/linux/arm/Makefile
3418 [$(subdir) == misc] (sysdep_headers): Remove sys/io.h.
3419 * sysdeps/unix/sysv/linux/arm/sys/io.h: Remove file.
3420 * sysdeps/unix/sysv/linux/arm/ioperm.c: Rewrite file.
3421 (ioperm, iopl, inb, inw, inl, outb, outw, outl): Turn into
3422 compatibility symbols.
3423
3424 2019-05-31 Florian Weimer <fweimer@redhat.com>
3425
3426 * sysdeps/unix/sysv/linux/syscall-names.list: Add oddly named
3427 system calls for the arm architecture: breakpoint, get_tls,
3428 set_tls, usr26, usr32.
3429
3430 2019-05-30 Gabriel F. T. Gomes <gabrielftg@linux.ibm.com>
3431
3432 * sysdeps/powerpc/Makefile
3433 [$(subdir) == misc] (CFLAGS-tst-set_ppr.c): New variable.
3434 * sysdeps/powerpc/powerpc64/power4/memcmp.S [__LITTLE_ENDIAN__]:
3435 Declare '.machine power7' to get support for ldbrx.
3436 * sysdeps/powerpc/powerpc64/power7/strncmp.S: Declare '.machine'
3437 directive based on the directory of the file.
3438 * sysdeps/powerpc/powerpc64/power8/fpu/s_llround.S: Likewise.
3439 * sysdeps/powerpc/powerpc64/power8/strcmp.S: Likewise.
3440 * sysdeps/powerpc/powerpc64/power8/strcasecmp.S: Update
3441 '.machine' directive.
3442 (VCLZD_V8_v7, MFVRD_R3_V1, VSUBUDM_V9_V8, VPOPCNTD_V8_V8)
3443 (VADDUQM_V7_V8): Remove.
3444 (__STRCASECMP): Replace macros with actual instructions.
3445 * sysdeps/powerpc/powerpc64/power8/strcasestr.S: Update
3446 '.machine' directive.
3447 (VCLZD_V8_v7): Remove.
3448 (STRCASESTR): Replace VCLZD_V8_v7 with actual instruction.
3449
3450 2019-05-29 Adhemerval Zanella <adhemerval.zanella@linaro.org>
3451
3452 * sysdeps/unix/sysv/linux/sparc/sparc32/sparcv9/get_clockfreq.c:
3453 Remove file.
3454 * sysdeps/unix/sysv/linux/x86_64/get_clockfreq.c: Likewise.
3455
3456 2019-05-28 Adhemerval Zanella <adhemerval.zanella@linaro.org>
3457
3458 * sysdeps/powerpc/fpu/round_to_integer.h (set_fenv_mode): Add
3459 NEARBYINT handling.
3460 * sysdeps/powerpc/fpu/s_nearbyint.c: New file.
3461 * sysdeps/powerpc/fpu/s_nearbyintf.c: Likewise.
3462 * sysdeps/powerpc/powerpc32/fpu/s_nearbyint.S: Remove file.
3463 * sysdeps/powerpc/powerpc32/fpu/s_nearbyintf.S: Likewise.
3464 * sysdeps/powerpc/powerpc64/fpu/s_nearbyint.S: Likewise.
3465 * sysdeps/powerpc/powerpc64/fpu/s_nearbyintf.S: Likewise.
3466
3467 2019-05-28 mansayk <6688000@gmail.com>
3468
3469 [BZ #24370]
3470 * localedata/locales/tt_RU (lang_name): Add from CLDR-35.1.
3471
3472 2019-05-28 mansayk <6688000@gmail.com>
3473
3474 [BZ #24369]
3475 * localedata/locales/tt_RU (mon): Update from CLDR-35.1, fix errors.
3476 (abmon): Likewise, but remove the trailing dots.
3477
3478 2019-05-28 Joseph Myers <joseph@codesourcery.com>
3479
3480 * inet/netinet/igmp.h (IGMP_MRDISC_ADV): New macro.
3481
3482 2019-05-27 Florian Weimer <fweimer@redhat.com>
3483
3484 * nptl/nptl-init.c: Add comment.
3485
3486 2019-05-24 Florian Weimer <fweimer@redhat.com>
3487
3488 * resolv/nss_dns/dns-host.c (getanswer_r): Be more explicit about
3489 struct in_addr/struct in6_addr alignment.
3490
3491 2019-05-23 Joseph Myers <joseph@codesourcery.com>
3492
3493 * sysdeps/unix/sysv/linux/bits/fcntl-linux.h [__USE_GNU]
3494 (F_SEAL_FUTURE_WRITE): New macro.
3495
3496 2019-05-23 Alexandra Hájková <ahajkova@redhat.com>
3497
3498 * elf/Makefile (test-container): Add tst-ldconfig-bad-aux-cache.
3499 * elf/tst-ldconfig-bad-aux-cache.c: New file.
3500 * elf/tst-ldconfig_aux-cache.root: New directory.
3501 * elf/tst-ldconfig-bad-aux-cache.root/postclean.req: New file.
3502 * elf/tst-ldconfig-bad-aux-cache.root/etc: New directory.
3503 * elf/tst-ldconfig-bad-aux-cache.root/etc/ld.so.conf: New file.
3504
3505 2019-05-22 Zack Weinberg <zackw@panix.com>
3506
3507 * sysdeps/powerpc/preconfigure: Error out on powerpc-*-*gnuspe*
3508 host type.
3509 * scripts/build-many-glibcs.py: Remove powerpc-*-linux-gnuspe
3510 and powerpc-*-linux-gnuspe-e500v1 from list of build configurations.
3511
3512 * sysdeps/powerpc/powerpc32/e500: Recursively delete.
3513 * sysdeps/unix/sysv/linux/powerpc/powerpc32/e500: Recursively delete.
3514 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/context-e500.h:
3515 Delete.
3516
3517 * sysdeps/powerpc/fpu_control.h: Remove SPE variant.
3518 Issue an #error if used with a compiler in SPE-float mode.
3519 * sysdeps/powerpc/powerpc32/__longjmp_common.S
3520 * sysdeps/powerpc/powerpc32/setjmp_common.S
3521 * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext-common.S
3522 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/getcontext.S
3523 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/setcontext.S
3524 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/swapcontext.S
3525 * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext-common.S
3526 * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S:
3527 Remove code to preserve SPE register state.
3528
3529 * sysdeps/unix/sysv/linux/powerpc/elision-lock.c
3530 * sysdeps/unix/sysv/linux/powerpc/elision-trylock.c
3531 * sysdeps/unix/sysv/linux/powerpc/elision-unlock.c:
3532 Remove __SPE__ ifndefs.
3533
3534 2019-05-21 Wilco Dijkstra <wdijkstr@arm.com>
3535
3536 * benchtests/bench-memcpy-random.c (do_one_test): Use medium iterations.
3537 * benchtests/bench-memcpy-walk.c (test_main): Reduce alignment tests.
3538 * benchtests/bench-memmem.c (do_one_test): Use small iterations.
3539 * benchtests/bench-memmove-walk.c (test_main): Reduce alignment tests.
3540 * benchtests/bench-memset-walk.c (test_main): Reduce alignment tests.
3541 * benchtests/bench-strcasestr.c (do_one_test): Use small iterations.
3542 * benchtests/bench-string.h (INNER_LOOP_ITERS): Increase iterations.
3543 (INNER_LOOP_ITERS_MEDIUM): New define.
3544 (INNER_LOOP_ITERS_SMALL): New define.
3545 * benchtests/bench-strpbrk.c (do_one_test): Use medium iterations.
3546 * benchtests/bench-strsep.c (do_one_test): Use small iterations.
3547 * benchtests/bench-strspn.c (do_one_test): Use medium iterations.
3548 * benchtests/bench-strstr.c (do_one_test): Use small iterations.
3549 * benchtests/bench-strtok.c (do_one_test): Use small iterations.
3550
3551 2019-05-21 Adhemerval Zanella <adhemerval.zanella@linaro.org>
3552
3553 * sysdeps/unix/sysv/linux/powerpc/ipc_priv.h (SEMTIMEDOP_IPC_ARGS):
3554 New define.
3555 * sysdeps/unix/sysv/linux/sparc/sparc64/ipc_priv.h
3556 (SEMTIMEDOP_IPC_ARGS): Likewise.
3557
3558 2019-05-21 Florian Weimer <fweimer@redhat.com>
3559
3560 [BZ #24584]
3561 * wcsmbs/wcsmbsload.c (__wcsmbs_clone_conv): Acquire __gconv_lock
3562 before updating __counter field and release it afterwards. Add
3563 overflow check.
3564 * iconv/gconv.h (struct __gconv_step): Mention synchronization
3565 requirement for __counter member.
3566
3567 2019-05-21 Florian Weimer <fweimer@redhat.com>
3568
3569 [BZ #24583]
3570 * wcsmbs/wcsmbsload.h (__wcsmbs_close_conv): Declare.
3571 * wcsmbs/wcsmbsload.c (__wcsmbs_close_conv): Define.
3572 * libio/iofclose.c (_IO_new_fclose): Call __wcsmbs_close_conv
3573 instead of __gconv_release_step.
3574 * libio/Makefile (tests): Add tst-wfile-gconv.
3575 (tests-container): Add tst-wfile-ascii.
3576 (tst-wfile-gconv-ENV): Enable mtrace.
3577 (generated): Add tst-wfile-gconv.mtrace, tst-wfile-gconv.check.
3578 (tests-special): Add tst-wfile-gconv-mem.out.
3579 (tst-wfile-gconv.out): Depend on locales.
3580 (tst-wfile-gconv-mem.out): Add mtrace rule.
3581 * libio/tst-wfile-ascii.c: New file.
3582 * libio/tst-wfile-gconv.c: Likewise.
3583
3584 2019-05-20 Florian Weimer <fweimer@redhat.com>
3585
3586 [BZ #24588]
3587 libio: Remove codecvt vtable.
3588 * libio/fileops.c ( _IO_new_file_fopen): Do not copy
3589 __libio_codecvt.
3590 * libio/iofgetpos.c (_IO_new_fgetpos): Call
3591 __libio_codecvt_encoding.
3592 * libio/iofgetpos64.c (_IO_new_fgetpos): Likewise.
3593 * libio/iofsetpos.c (_IO_new_fsetpos): Likewise.
3594 * libio/iofsetpos64.c (_IO_new_fsetpos): Likewise.
3595 * libio/iofwide.c (__libio_codecvt): Remove variable.
3596 (_IO_fwide): Do not copy __libio_codecvt.
3597 (__libio_codecvt_out): Rename from do_out and export.
3598 (do_unshift): Remove function.
3599 (__libio_codecvt_in): Rename from do_in and export.
3600 (__libio_codecvt_encoding): Rename from do_encoding and export.
3601 (do_always_noconv): Remove function.
3602 (__libio_codecvt_length): Rename from do_length and export.
3603 (do_max_length): Remove function.
3604 * libio/libio.h (enum __codecvt_result): Remove definition; moved
3605 to libioP.h.
3606 (struct _IO_codecvt): Remove fields __codecvt_destr,
3607 __codecvt_do_out, __codecvt_do_unshift, __codecvt_do_in,
3608 __codecvt_do_encoding, __codecvt_do_always_noconv,
3609 __codecvt_do_length, __codecvt_do_max_length.
3610 * libio/libioP.h (enum __codecvt_result): Define; moved from
3611 libio.h.
3612 (__libio_codecvt_out, __libio_codecvt_in)
3613 (__libio_codecvt_encoding, __libio_codecvt_length): Declare
3614 functions.
3615 * libio/wfileops.c (_IO_wdo_write): Call __libio_codecvt_out.
3616 (_IO_wfile_underflow): Call __libio_codecvt_in.
3617 (_IO_wfile_underflow): Likewise.
3618 (_IO_wfile_underflow_mmap): Likewise.
3619 (_IO_wfile_sync): Call __libio_codecvt_encoding,
3620 __libio_codecvt_length.
3621 (adjust_wide_data): Call __libio_codecvt_encoding,
3622 __libio_codecvt_in.
3623 (do_ftell_wide): Call __libio_codecvt_length, __libio_codecvt_out.
3624 (_IO_wfile_seekoff): Call __libio_codecvt_encoding,
3625 __libio_codecvt_length.
3626
3627 2019-05-20 Florian Weimer <fweimer@redhat.com>
3628
3629 * support/support.h (support_sbindir_prefix): Declare.
3630 (support_install_rootsbindir): Update comment.
3631 * support/Makefile (CFLAGS-support_paths.c): Define SBINDIR_PATH.
3632 * support/support_paths.c (support_sbindir_prefix): Define.
3633
3634 2019-05-20 Mike Crowe <mac@mcrowe.com>
3635
3636 * support/timespec.c: Add backslash to correct newline in failure
3637 message.
3638
3639 * support/timespec.h: Correct confusing comment.
3640
3641 2019-05-20 Adhemerval Zanella <adhemerval.zanella@linaro.org>
3642
3643 * sysdeps/unix/sysv/linux/ipc_priv.h (SEMTIMEDOP_IPC_ARGS): New
3644 define.
3645 * sysdpes/unix/sysv/linux/s390/ipc_priv.h: New file.
3646 * sysdeps/unix/sysv/linux/s390/semtimedop.c: Remove file.
3647 * sysdeps/unix/sysv/linux/semtimedop.c (semtimedop): Use
3648 SEMTIMEDOP_IPC_ARGS for calls with __NR_ipc.
3649
3650 [BZ #24570]
3651 * sysdeps/unix/sysv/linux/msgctl.c (__old_msgctl): Remove __IPC_64
3652 usage.
3653
3654 2019-05-20 Joseph Myers <joseph@codesourcery.com>
3655
3656 * elf/elf.h (NT_ARM_PACA_KEYS): New macro.
3657 (NT_ARM_PACG_KEYS): Likewise.
3658
3659 2019-05-17 Wilco Dijkstra <wdijkstr@arm.com>
3660
3661 * malloc/malloc.c (MAX_TCACHE_COUNT): Increase to UINT16_MAX.
3662 (tcache_put): Remove redundant assert.
3663 (tcache_get): Remove redundant asserts.
3664 (__libc_malloc): Check tcache count is not zero.
3665 * manual/tunables.texi (glibc.malloc.tcache_count): Update maximum.
3666
3667 2019-05-17 Florian Weimer <fweimer@redhat.com>
3668
3669 * manual/llio.texi (Open-time Flags): Document O_DIRECTORY.
3670
3671 2019-05-16 Joseph Myers <joseph@codesourcery.com>
3672
3673 * sysdeps/unix/sysv/linux/alpha/kernel-features.h
3674 (__ASSUME_STATFS64): Only undefine if [__LINUX_KERNEL_VERSION <
3675 0x050100].
3676 * sysdeps/unix/sysv/linux/ia64/kernel-features.h (__ASSUME_STATX):
3677 Likewise.
3678 * sysdeps/unix/sysv/linux/sh/kernel-features.h
3679 (__ASSUME_STATX): Likewise.
3680
3681 2019-05-16 Florian Weimer <fweimer@redhat.com>
3682
3683 * nis/nss_nis/nis-hosts.c (EXTRA_ARGS, EXTRA_ARGS_DECL): Remove
3684 flags argument.
3685 (LINE_PARSER): Do not map IPv4 addresses.
3686 (internal_nis_gethostent_r): Remove flags argument. Adjust call
3687 to parse_line.
3688 (_nss_nis_gethostent_r): Always pass AF_INET to
3689 internal_nis_gethostent_r.
3690 (internal_gethostbyname2_r): Remove flags argument. Adjust call
3691 to parse_line.
3692 (_nss_nis_gethostbyname2_r): Adjust call to
3693 internal_nis_gethostent_r.
3694 (_nss_nis_gethostbyname_r): Do not attempt IPv6 query. Adjust
3695 call to internal_nis_gethostent_r.
3696 (_nss_nis_gethostbyaddr_r): Do not request IPv4 address mapping
3697 from parse_line.
3698 (_nss_nis_gethostbyname4_r):Adjust call to parse_line.
3699 * nis/nss_nisplus/nisplus-hosts.c (_nss_nisplus_parse_hostent):
3700 Remove flags argument. Do not map IPv4 addresses.
3701 (internal_nisplus_gethostent_r): Adjust call to
3702 _nss_nisplus_parse_hostent.
3703 (internal_gethostbyname2_r): Remove flags argument. Adjust call
3704 to _nss_nisplus_parse_hostent.
3705 (_nss_nisplus_gethostbyname2_r): Adjust call to
3706 internal_gethostbyname2_r.
3707 (_nss_nisplus_gethostbyname_r): Do not perform IPv6 lookup.
3708 Adjust call to internal_gethostbyname2_r.
3709 (_nss_nisplus_gethostbyaddr_r): Adjust call to
3710 _nss_nisplus_parse_hostent.
3711 (_nss_nisplus_gethostbyname4_r): Adjust call to
3712 internal_gethostbyname2_r.
3713
3714 2019-05-16 Florian Weimer <fweimer@redhat.com>
3715
3716 * nss/nss_files/files-hosts.c (EXTRA_ARGS, EXTRA_ARGS_DECL):
3717 Remove flags.
3718 (LINE_PARSER): Remove address mapping.
3719 (EXTRA_ARGS_VALUE): Remove flags argument.
3720 (gethostbyname3_multi): Likewise. Adjust call to internal_getent.
3721 (_nss_files_gethostbyname3_r): Adjust calls to internal_getent and
3722 gethostbyname3_multi.
3723 (_nss_files_gethostbyname_r): Always use AF_INET. Adjust call to
3724 _nss_files_gethostbyname3_r.
3725 (_nss_files_gethostbyname4_r): Adjust call to internal_getent.
3726
3727 2019-05-16 Florian Weimer <fweimer@redhat.com>
3728
3729 * support/support_test_compare_blob.c (report_blob): Report
3730 incorrect NULL blobs.
3731
3732 2019-05-15 Mark Wielaard <mark@klomp.org>
3733
3734 [BZ# 24476]
3735 * dlfcn/dlerror.c (__dlerror_main_freeres): Guard using
3736 __libc_once_get (once) and static_buf == NULL.
3737 (__dlerror): Check we have a valid key, set result to static_buf
3738 otherwise.
3739
3740 2019-05-15 Andreas Schwab <schwab@suse.de>
3741
3742 [BZ #20568]
3743 * libio/wfileops.c (_IO_wfile_sync): Correct last argument to
3744 __codecvt_do_length.
3745 * libio/Makefile (tests): Add tst-wfile-sync.
3746 ($(objpfx)tst-wfile-sync.out): Depend on $(gen-locales).
3747 * libio/tst-wfile-sync.c: New file.
3748 * libio/tst-wfile-sync.input: New file.
3749
3750 2019-05-15 Florian Weimer <fweimer@redhat.com>
3751
3752 nss: Turn __nss_database_lookup into a compatibility symbol.
3753 * nss/nsswitch.h (__nss_database_lookup2): Renamed from
3754 __nss_database_lookup.
3755 * nss/nsswitch.c (__nss_database_lookup2): Likewise.
3756 (nss_load_all_libraries): Call __nss_database_lookup2 instead of
3757 __nss_database_lookup.
3758 (__nss_next): Move to …
3759 * nss/compat-lookup.c (nss_next): … here. Change it to fail
3760 unconditionally.
3761 (__nss_database_lookup): New function.
3762 * nss/Versions (GLIBC_2.0): Update comment.
3763 (GLIBC_PRIVATE): Export __nss_database_lookup2.
3764 * grp/initgroups.c (internal_getgrouplist): Call
3765 __nss_database_lookup2 instead of __nss_database_lookup.
3766 * nscd/aicache.c (addhstaiX): Likewise.
3767 * nscd/initgrcache.c (addinitgroupsX): Likewise.
3768 * nscd/netgroupcache.c (addgetnetgrentX): Likewise.
3769 * nss/XXX-lookup.c (DB_LOOKUP_FCT): Likewise.
3770 * nss/nss_compat/compat-grp.c (init_nss_interface): Likewise.
3771 * nss/nss_compat/compat-initgroups.c (init_nss_interface):
3772 Likewise.
3773 * nss/nss_compat/compat-pwd.c (init_nss_interface): Likewise.
3774 * nss/nss_compat/compat-spwd.c (init_nss_interface): Likewise.
3775 * sysdeps/posix/getaddrinfo.c (gaih_inet): Likewise.
3776
3777 2019-05-15 Alexandra Hájková <ahajkova@redhat.com>
3778
3779 * support/support.h (support_install_rootsbindir): New variable.
3780 * support/support_paths.c: Likewise.
3781 * support/Makefile (CFLAGS-support_paths.c): Add -DROOTSBINDIR_PATH.
3782
3783 2019-05-15 Florian Weimer <fweimer@redhat.com>
3784
3785 * iconv/gconv.h (__gconv_transliterate): Move declaration …
3786 * iconv/gconv_int.h (__gconv_transliterate): … here.
3787 * iconv/loop.c: Include <iconv/gconv_int.h> instead of <gconv.h>.
3788 * iconv/skeleton.c: Likewise.
3789
3790 2019-05-14 Florian Weimer <fweimer@redhat.com>
3791
3792 Linux: Add the tgkill function.
3793 * bits/signal_ext.h: New file.
3794 * manual/signal.texi (Signaling Another Process): Document tgkill.
3795 * signal/Makefile (headers): Add bits/signal_ext.h.
3796 * signal/signal.h: Include <bits/signal_ext.h>.
3797 * sysdeps/unix/sysv/linux/Makefile (tests): Add tst-tgkill.
3798 (tst-tgkill): Link with libpthread.
3799 * sysdeps/unix/sysv/linux/Versions (GLIBC_2.30): Export tgkill.
3800 * sysdeps/unix/sysv/linux/bits/signal_ext.h: New file.
3801 * sysdeps/unix/sysv/linux/bits/tst-tgkill.c: Likewise.
3802 * sysdeps/unix/sysv/linux/aarch64/libc.abilist (GLIBC_2.30): Add
3803 tgkill.
3804 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
3805 * sysdeps/unix/sysv/linux/arm/libc.abilist: Likewise.
3806 * sysdeps/unix/sysv/linux/csky/libc.abilist: Likewise.
3807 * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
3808 * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
3809 * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
3810 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
3811 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
3812 * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
3813 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
3814 * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist:
3815 Likewise.
3816 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
3817 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
3818 * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise.
3819 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
3820 Likewise.
3821 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
3822 Likewise.
3823 * sysdeps/unix/sysv/linux/powerpc/powerpc64/be/libc.abilist:
3824 Likewise.
3825 * sysdeps/unix/sysv/linux/powerpc/powerpc64/le/libc.abilist:
3826 Likewise.
3827 * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist: Likewise.
3828 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
3829 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
3830 * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
3831 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
3832 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
3833 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
3834 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
3835
3836 2019-05-14 Carlos O'Donell <carlos@redhat.com>
3837
3838 * manual/search.texi (Tree Search Function): Adjust twalk_r
3839 documentation.
3840
3841 2019-05-14 Adhemerval Zanella <adhemerval.zanella@linaro.org>
3842
3843 [BZ #24544]
3844 * elf/tst-pldd.c (do_test): Use support_bindir_prefix instead of
3845 pre-defined value.
3846
3847 * support/Makefile (CFLAGS-support_paths.c): Add -DBINDIR_PATH.
3848 * support/support.h (support_bindir_prefix): New variable.
3849 * support/support_paths.c [BINDIR_PATH] (support_bindir_prefix):
3850
3851 * config.make.in (bindir): New variable.
3852
3853 * sysdeps/nptl/lowlevellock.h (__lll_trylock): New macro.
3854 (lll_trylock): Call __lll_trylock.
3855 * sysdeps/unix/sysv/linux/i386/libc-lowlevellock.S: Remove file.
3856 * sysdeps/unix/sysv/linux/i386/lll_timedlock_wait.c: Likewise.
3857 * sysdeps/unix/sysv/linux/i386/lowlevellock.S: Likewise.
3858 * sysdeps/unix/sysv/linux/i386/lowlevellock.h: Likewise.
3859 * sysdeps/unix/sysv/linux/x86_64/libc-lowlevellock.S: Likewise.
3860 * sysdeps/unix/sysv/linux/x86_64/lll_timedlock_wait.c: Likewise.
3861 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.S: Likewise.
3862 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h: Likewise.
3863 * sysdeps/unix/sysv/linux/x86/lowlevellock.h: New file.
3864 * sysdeps/unix/sysv/linux/x86_64/cancellation.S: Include
3865 lowlevellock-futex.h.
3866
3867 * nptl/nptl-init.c (__pthread_initialize_minimal_internal): Remove
3868 initialization for LLL_LOCK_INITIALIZER different than 0.
3869 * nptl/old_pthread_cond_broadcast.c (__pthread_cond_broadcast_2_0):
3870 Assume LLL_LOCK_INITIALIZER being 0.
3871 * nptl/old_pthread_cond_signal.c (__pthread_cond_signal_2_0): Likewise.
3872 * nptl/old_pthread_cond_timedwait.c (__pthread_cond_timedwait_2_0):
3873 Likewise.
3874 * nptl/old_pthread_cond_wait.c (__pthread_cond_wait_2_0): Likewise.
3875 * sysdeps/nptl/libc-lockP.h (__libc_lock_define_initialized): Likewise.
3876
3877 * nptl/lowlevellock.c (__lll_lock_wait, __lll_lock_wait_private):
3878 Optimize futex call and add systemtap probe.
3879
3880 * nptl/pthreadP.h (CANCEL_ASYNC, CANCEL_RESET, LIBC_CANCEL_ASYNC,
3881 LIBC_CANCEL_RESET, __libc_enable_asynccancel,
3882 __libc_disable_asynccancel, __librt_enable_asynccancel,
3883 __libc_disable_asynccancel, __librt_enable_asynccancel,
3884 __librt_disable_asynccancel): Move to ...
3885 * sysdeps/unix/sysv/linux/sysdep-cancel.h: ... here.
3886 (SINGLE_THREAD_P, RTLD_SINGLE_THREAD_P): Move to ...
3887 * sysdeps/unix/sysv/linux/single-thread.h: ... here.
3888 * sysdeps/generic/single-thread.h: New file.
3889 * sysdeps/unix/sysdep.h: Include single-thread.h.
3890 * sysdeps/unix/sysv/linux/futex-internal.h: Include sysdep-cancel.h.
3891 * sysdeps/unix/sysv/linux/lowlevellock-futex.h: Likewise.
3892
3893 2019-05-08 Mike FABIAN <mfabian@redhat.com>
3894
3895 [BZ #24535]
3896 * localedata/unicode-gen/Makefile (UNICODE_VERSION): Set to 12.1.0.
3897 * localedata/unicode-gen/DerivedCoreProperties.txt: Update to
3898 Unicode 12.1.0.
3899 * localedata/unicode-gen/EastAsianWidth.txt: Likewise.
3900 * localedata/unicode-gen/PropList.txt: Likewise.
3901 * localedata/unicode-gen/UnicodeData.txt: Likewise.
3902 * localedata/charmaps/UTF-8: Regenerate.
3903 * localedata/locales/i18n_ctype: Likewise.
3904 * localedata/locales/tr_TR: Likewise.
3905 * localedata/locales/translit_circle: Likewise.
3906 * localedata/locales/translit_cjk_compat: Likewise.
3907 * localedata/locales/translit_combining: Likewise.
3908 * localedata/locales/translit_compat: Likewise.
3909 * localedata/locales/translit_font: Likewise.
3910 * localedata/locales/translit_fraction: Likewise.
3911
3912 2019-05-10 Wilco Dijkstra <wdijkstr@arm.com>
3913
3914 [BZ #24531]
3915 * malloc/malloc.c (MAX_TCACHE_COUNT): New define.
3916 (do_set_tcache_count): Only update if count is small enough.
3917 * manual/tunables.texi (glibc.malloc.tcache_count): Document max value.
3918
3919 2019-05-10 Florian Weimer <fweimer@redhat.com>
3920
3921 * nptl/sem_close.c (struct walk_closure): Define.
3922 (walker): Adjust for __twalk_r.
3923 (sem_close): Call __twalk_r.
3924
3925 2019-05-09 Adhemerval Zanella <adhemerval.zanella@linaro.org>
3926
3927 * support/timespec.c (test_timespec_before_impl,
3928 test_timespec_equal_or_after_impl): print timespec member as intmax_t
3929 insted of long int.
3930
3931 2019-05-09 Mike Crowe <mac@mcrowe.com>
3932
3933 * nptl/tst-abstime.c: Use libsupport.
3934
3935 * nptl/tst-rwlock6.c: Use libsupport. This also happens to fix a
3936 small bug where only tv.tv_usec was checked which could cause an
3937 erroneous pass if pthread_rwlock_timedrdlock incorrectly took more
3938 than a second.
3939
3940 * nptl/tst-rwlock7.c, nptl/tst-rwlock9.c, nptl/tst-rwlock14.c: Use
3941 libsupport.
3942
3943 * nptl/tst-sem5.c (do_test): Use xclock_gettime, timespec_add and
3944 TEST_TIMESPEC_NOW_OR_AFTER from libsupport.
3945
3946 * nptl/tst-cond11.c: Use libsupport.
3947
3948 * support/timespec.h: New file. Provide timespec helper functions
3949 along with macros in the style of those in check.h.
3950 * support/timespec.c: New file. Implement check functions declared
3951 in support/timespec.h.
3952 * support/timespec-add.c: New file from gnulib containing
3953 timespec_add implementation that handles overflow.
3954 * support/timespec-sub.c: New file from gnulib containing
3955 timespec_sub implementation that handles overflow.
3956 * support/README: Mention timespec.h.
3957
3958 2019-05-09 Szabolcs Nagy <szabolcs.nagy@arm.com>
3959
3960 [BZ #24537]
3961 * nptl/Makefile: Move tst-eintr1 to xtests.
3962
3963 2019-05-09 Adhemerval Zanella <adhemerval.zanella@linaro.org>
3964
3965 * sysdeps/powerpc/fpu/trunc_to_integer.h (set_fenv_mode): Add
3966 TRUNC handling.
3967 (round_mode): Add definition for TRUNC.
3968 * sysdeps/powerpc/fpu/s_trunc.c: New file.
3969 * sysdeps/powerpc/fpu/s_truncf.c: New file.
3970 * sysdeps/powerpc/powerpc32/fpu/s_trunc.S: Remove file.
3971 * sysdeps/powerpc/powerpc32/fpu/s_truncf.S: Likewise.
3972 * sysdep/powerpc/powepc32/power4/fpu/multiarch/s_trunc-power5+.S:
3973 Likewise.
3974 * sysdep/powerpc/powepc32/power4/fpu/multiarch/s_trunc-ppc32.S:
3975 Likewise.
3976 * sysdep/powerpc/powepc32/power4/fpu/multiarch/s_truncf-power5+.S:
3977 Likewise.
3978 * sysdep/powerpc/powepc32/power4/fpu/multiarch/s_truncf-ppc32.S:
3979 Likewise.
3980 * sysdep/powerpc/powepc32/power4/fpu/multiarch/s_trunc-power5+.c: New
3981 file.
3982 * sysdep/powerpc/powepc32/power4/fpu/multiarch/s_trunc-ppc32.c:
3983 Likewise.
3984 * sysdep/powerpc/powepc32/power4/fpu/multiarch/s_truncf-power5+.c:
3985 Likewise.
3986 * sysdep/powerpc/powepc32/power4/fpu/multiarch/s_truncf-ppc32.c:
3987 Likewise.
3988 * sysdep/powerpc/powerpc32/power5+/fpu/s_trunc.S: Remove file.
3989 * sysdep/powerpc/powerpc32/power5+/fpu/s_truncf.S: Likewise.
3990 * sysdep/powerpc/powerpc64/be/fpu/multiarch/Makefile
3991 (libm-sysdep_routines): Add s_trunc-power5+, s_trunc-ppc64,
3992 s_truncf-power5+, and s_truncf-ppc64.
3993 (CFLAGS-s_trunc-power5+.c, CFLAGS-s_truncf-power5+.c): New rule.
3994 * sysdep/powerpc/powercp64/be/fpu/multiarch/s_trunc-power5+.c: New
3995 file.
3996 * sysdep/powerpc/powercp64/be/fpu/multiarch/s_trunc-ppc64.c: Likewise.
3997 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_trunc.c: Move to ...
3998 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_trunc.c: ... here.
3999 * sysdep/powerpc/powercp64/be/fpu/multiarch/s_truncf-power5+.c: New
4000 file.
4001 * sysdep/powerpc/powercp64/be/fpu/multiarch/s_truncf-ppc64.c:
4002 Likewise.
4003 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_truncf.c: Move to ...
4004 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_truncf.c: ... here.
4005 * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile
4006 (libm-sysdep_routines): Remove s_trunc-power5+, s_trunc-ppc64,
4007 s_truncf-power5+, and s_truncf-ppc64.
4008 * sysdep/powerpc/powerpc64/fpu/multiarch/s_trunc-power5+.S: Remove
4009 file.
4010 * sysdep/powerpc/powerpc64/fpu/multiarch/s_trunc-ppc64.S: Likewise.
4011 * sysdep/powerpc/powerpc64/fpu/multiarch/s_truncf-power5+.S:
4012 Likewise.
4013 * sysdep/powerpc/powerpc64/fpu/multiarch/s_truncf-ppc64.S: Likewise.
4014 * sysdeps/powerpc/powerpc64/fpu/s_trunc.S: Likewise.
4015 * sysdeps/powerpc/powerpc64/fpu/s_truncf.S: Likewise.
4016 * sysdep/powerpc/powerpc64/power5+/fpu/s_trunc.S: Likewise.
4017 * sysdep/powerpc/powerpc64/power5+/fpu/s_truncf.S: Likewise.
4018
4019 * sysdeps/powerpc/fpu/round_to_integer.h (set_fenv_mode): Add
4020 ROUND handling.
4021 (round_mode): Add definition for ROUND.
4022 (round_to_integer_float): Likewise.
4023 * sysdeps/powerpc/fpu/s_round.c: New file.
4024 * sysdeps/powerpc/fpu/s_roundf.c: New file.
4025 * sysdeps/powerpc/powerpc32/fpu/s_round.S: Remove file.
4026 * sysdeps/powerpc/powerpc32/fpu/s_roundf.S: Likewise.
4027 * sysdep/powerpc/powepc32/power4/fpu/multiarch/s_round-power5+.S:
4028 Likewise.
4029 * sysdep/powerpc/powepc32/power4/fpu/multiarch/s_round-ppc32.S:
4030 Likewise.
4031 * sysdep/powerpc/powepc32/power4/fpu/multiarch/s_roundf-power5+.S:
4032 Likewise.
4033 * sysdep/powerpc/powepc32/power4/fpu/multiarch/s_roundf-ppc32.S:
4034 Likewise.
4035 * sysdep/powerpc/powepc32/power4/fpu/multiarch/s_round-power5+.c: New
4036 file.
4037 * sysdep/powerpc/powepc32/power4/fpu/multiarch/s_round-ppc32.c:
4038 Likewise.
4039 * sysdep/powerpc/powepc32/power4/fpu/multiarch/s_roundf-power5+.c:
4040 Likewise.
4041 * sysdep/powerpc/powepc32/power4/fpu/multiarch/s_roundf-ppc32.c:
4042 Likewise.
4043 * sysdep/powerpc/powerpc32/power5+/fpu/s_round.S: Remove file.
4044 * sysdep/powerpc/powerpc32/power5+/fpu/s_roundf.S: Likewise.
4045 * sysdep/powerpc/powerpc64/be/fpu/multiarch/Makefile
4046 (libm-sysdep_routines): Add s_round-power5+, s_round-ppc64,
4047 s_roundf-power5+, and s_roundf-ppc64.
4048 (CFLAGS-s_round-power5+.c, CFLAGS-s_roundf-power5+.c): New rule.
4049 * sysdep/powerpc/powercp64/be/fpu/multiarch/s_round-power5+.c: New
4050 file.
4051 * sysdep/powerpc/powercp64/be/fpu/multiarch/s_round-ppc64.c: Likewise.
4052 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_round.c: Move to ...
4053 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_round.c: ... here.
4054 * sysdep/powerpc/powercp64/be/fpu/multiarch/s_roundf-power5+.c: New
4055 file.
4056 * sysdep/powerpc/powercp64/be/fpu/multiarch/s_roundf-ppc64.c:
4057 Likewise.
4058 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_roundf.c: Move to ...
4059 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_roundf.c: ... here.
4060 * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile
4061 (libm-sysdep_routines): Remove s_round-power5+, s_round-ppc64,
4062 s_roundf-power5+, and s_roundf-ppc64.
4063 * sysdep/powerpc/powerpc64/fpu/multiarch/s_round-power5+.S: Remove
4064 file.
4065 * sysdep/powerpc/powerpc64/fpu/multiarch/s_round-ppc64.S: Likewise.
4066 * sysdep/powerpc/powerpc64/fpu/multiarch/s_roundf-power5+.S:
4067 Likewise.
4068 * sysdep/powerpc/powerpc64/fpu/multiarch/s_roundf-ppc64.S: Likewise.
4069 * sysdeps/powerpc/powerpc64/fpu/s_round.S: Likewise.
4070 * sysdeps/powerpc/powerpc64/fpu/s_roundf.S: Likewise.
4071 * sysdep/powerpc/powerpc64/power5+/fpu/s_round.S: Likewise.
4072 * sysdep/powerpc/powerpc64/power5+/fpu/s_roundf.S: Likewise.
4073
4074 * sysdeps/powerpc/fpu/round_to_integer.h (set_fenv_mode):
4075 Add FLOOR option.
4076 (round_mode): Add definition for FLOOR.
4077 * sysdeps/powerpc/fpu/s_floor.c: New file.
4078 * sysdeps/powerpc/fpu/s_floorf.c: Likewise.
4079 * sysdeps/powerpc/powerpc32/fpu/s_floor.S: Remove file.
4080 * sysdeps/powerpc/powerpc32/fpu/s_floorf.S: Likewise.
4081 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floor-power5+.S:
4082 Remove file.
4083 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floor-ppc32.S:
4084 Likewise
4085 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floorf-power5+.S:
4086 Likewise.
4087 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floorf-ppc32.S:
4088 Likewise.
4089 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floor-power5+.c:
4090 New file.
4091 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floor-ppc32.c:
4092 Likewise.
4093 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floorf-power5+.c:
4094 Likewise.
4095 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floorf-ppc32.c:
4096 Likewise.
4097 * sysdeps/powerpc/powerpc32/power5+/fpu/s_floor.S: Remove file.
4098 * sysdeps/powerpc/powerpc32/power5+/fpu/s_floorf.S: Remove file.
4099 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/Makefile
4100 (libm-sysdep_routines): Add s_floor-power5+, s_floor-ppc64,
4101 s_floorf-power5+, and s_floorf-ppc64.
4102 (CFLAGS-s_floor-power5+.c, CFLAGS-s_floorf-power5+.c): New rule.
4103 * sysdep/powerpc/powerpc64/be/fpu/multiarch/s_floor-power5+.c: New
4104 file.
4105 * sysdep/powerpc/powerpc64/be/fpu/multiarch/s_floor-ppc64.c: Likewise.
4106 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floor.c: Move to ...
4107 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_floor.c: ... here.
4108 * sysdep/powerpc/powerpc64/be/fpu/multiarch/s_floorf-power5+.c: New
4109 file.
4110 * sysdep/powerpc/powerpc64/be/fpu/multiarch/s_floorf-ppc64.c:
4111 Likewise.
4112 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floorf.c: Move to ...
4113 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_floorf.c: ... here.
4114 * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile
4115 (libm-sysdep_routines): Remove s_floor-power5+, s_floor-ppc64,
4116 s_floorf-power5+, and s_floorf-ppc64.
4117 * sysdep/powerpc/powerpc64/fpu/multiarch/s_floor-power5+.S: Remove
4118 file.
4119 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floor-ppc64.S: Remove
4120 file.
4121 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floorf-power5+.S:
4122 Likewise.
4123 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floorf-ppc64.S:
4124 Likewise.
4125 * sysdeps/powerpc/powerpc64/fpu/s_floor.S: Likewise.
4126 * sysdeps/powerpc/powerpc64/fpu/s_floorf.S: Likewise.
4127 * sysdeps/powerpc/powerpc64/power5+/fpu/s_floor.S: Likewise.
4128 * sysdeps/powerpc/powerpc64/power5+/fpu/s_floorf.S: Likewise.
4129
4130 2019-05-08 Mike Crowe <mac@mcrowe.com>
4131
4132 * support/xclock_gettime.c (xclock_gettime): New file. Provide
4133 clock_gettime wrapper for use in tests that fails the test rather
4134 than returning failure.
4135
4136 * support/xtime.h: New file to declare xclock_gettime.
4137
4138 * support/Makefile: Add xclock_gettime.c.
4139
4140 * support/README: Mention xtime.h.
4141
4142 2019-05-08 Florian Weimer <fweimer@redhat.com>
4143
4144 malloc/tst-mallocfork2: Use process-shared barriers.
4145 * malloc/tst-mallocfork2.c: Switch to <support/test-driver.c>.
4146 (signal_count, sigusr1_sender_pid): Remove.
4147 (iterations): Define constant.
4148 (shared): New variable.
4149 (sigusr1_received): Update comment.
4150 (sigusr1_handler): Do not send SIGSTOP to the sender process.
4151 (signal_sender): Optional use barriers to avoid sending signals
4152 during irrelevant times.
4153 (do_it): Initialize variable shared. Use xfork for error
4154 checking. Launch multiple SIGUSR1-sending subprocesses. Limit
4155 the iteration count, independent of signal delivery. Check for
4156 deadlocks in fork. Introduce barriers for reducing signal
4157 traffic. Do not send SIGCONT to the SIGUSR1-sending processes;
4158 replaced by the barriers. Count signals during fork/free/malloc
4159 and report them.
4160 * malloc/Makefile (tst-mallocfork): Link with libpthread.
4161
4162 2019-05-07 Joseph Myers <joseph@codesourcery.com>
4163
4164 * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
4165 version to 5.1.
4166 (clock_adjtime64) New syscall.
4167 (clock_getres_time64) Likewise.
4168 (clock_gettime64) Likewise.
4169 (clock_nanosleep_time64) Likewise.
4170 (clock_settime64) Likewise.
4171 (futex_time64) Likewise.
4172 (io_pgetevents_time64) Likewise.
4173 (io_uring_enter) Likewise.
4174 (io_uring_register) Likewise.
4175 (io_uring_setup) Likewise.
4176 (mq_timedreceive_time64) Likewise.
4177 (mq_timedsend_time64) Likewise.
4178 (pidfd_send_signal) Likewise.
4179 (ppoll_time64) Likewise.
4180 (pselect6_time64) Likewise.
4181 (recvmmsg_time64) Likewise.
4182 (rt_sigtimedwait_time64) Likewise.
4183 (sched_rr_get_interval_time64) Likewise.
4184 (semtimedop_time64) Likewise.
4185 (timer_gettime64) Likewise.
4186 (timer_settime64) Likewise.
4187 (timerfd_gettime64) Likewise.
4188 (timerfd_settime64) Likewise.
4189 (utimensat_time64) Likewise.
4190
4191 * scripts/build-many-glibcs.py (Context.checkout): Default GCC
4192 version to 9 branch.
4193
4194 2019-05-03 Anton Youdkevitch <anton.youdkevitch@bell-sw.com>
4195
4196 * sysdeps/aarch64/multiarch/ifunc-impl-list.c: Added
4197 __memmove_thunderx2 to the list of implementations
4198 * sysdeps/aarch64/multiarch/memmove.c: Likewise
4199 * sysdeps/aarch64/multiarch/memcpy_thunderx2.S:
4200 (__memmove_thunderx2): Rewritten using SIMD ld/st
4201 (__memcpy_thunderx2): Fixed handling overlapping cases.
4202 Used ldp/stp instead of ldr/str if possible. Made loops
4203 tails branchless.
4204
4205 2019-05-03 Florian Weimer <fweimer@redhat.com>
4206
4207 * misc/tst-tsearch.c (walk_tree): Add more error checking.
4208
4209 2019-05-02 Adhemerval Zanella <adhemerval.zanella@linaro.org>
4210
4211 [BZ #24506]
4212 * elf/tst-pldd.c (in_str_list): New function.
4213 (do_test): Add default names for ld and libc as one option.
4214
4215 2019-05-02 Florian Weimer <fweimer@redhat.com>
4216
4217 misc: Add twalk_r function.
4218 * include/search.h (__twalk_r): Declare.
4219 * manual/examples/twalk.c: New file.
4220 * manual/search.texi (Tree Search Function): Document twalk_r.
4221 * misc/Versions (2.30): Export twalk_r.
4222 (GLIBC_PRIVATE): Export __twalk_r.
4223 * misc/search.h [__USE_GNU] (twalk_r): Declare.
4224 * misc/tsearch.c (trecurse_r, __twalk_r): New functions.
4225 (twalk_r): Add weak alias.
4226 * misc/tst-tsearch.c (struct walk_trace_element): Define.
4227 (walk_trace): New variable.
4228 (struct twalk_with_twalk_r_closure): Define.
4229 (twalk_with_twalk_r_action): New function.
4230 (twalk_with_twalk_r): Likewise.
4231 (walk_action): Call walk_trace_add.
4232 (walk_tree_with): Rename from walk_tree. Add walk argument.
4233 (walk_tree): New function.
4234 * sysdeps/mach/hurd/i386/libc.abilist (GLIBC_2.30): Add twalk_r.
4235 * sysdeps/unix/sysv/linux/aarch64/libc.abilist (GLIBC_2.30):
4236 Likewise.
4237 * sysdeps/unix/sysv/linux/alpha/libc.abilist (GLIBC_2.30):
4238 Likewise.
4239 * sysdeps/unix/sysv/linux/arm/libc.abilist (GLIBC_2.30): Likewise.
4240 * sysdeps/unix/sysv/linux/csky/libc.abilist (GLIBC_2.30): Likewise.
4241 * sysdeps/unix/sysv/linux/hppa/libc.abilist (GLIBC_2.30): Likewise.
4242 * sysdeps/unix/sysv/linux/i386/libc.abilist (GLIBC_2.30): Likewise.
4243 * sysdeps/unix/sysv/linux/ia64/libc.abilist (GLIBC_2.30): Likewise.
4244 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist (GLIBC_2.30):
4245 Likewise.
4246 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist (GLIBC_2.30):
4247 Likewise.
4248 * sysdeps/unix/sysv/linux/microblaze/libc.abilist (GLIBC_2.30):
4249 Likewise.
4250 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist
4251 (GLIBC_2.30): Likewise.
4252 * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist
4253 (GLIBC_2.30): Likewise.
4254 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist
4255 (GLIBC_2.30): Likewise.
4256 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist
4257 (GLIBC_2.30): Likewise.
4258 * sysdeps/unix/sysv/linux/nios2/libc.abilist (GLIBC_2.30):
4259 Likewise.
4260 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist
4261 (GLIBC_2.30): Likewise.
4262 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist
4263 (GLIBC_2.30): Likewise.
4264 * sysdeps/unix/sysv/linux/powerpc/powerpc64/be/libc.abilist
4265 (GLIBC_2.30): Likewise.
4266 * sysdeps/unix/sysv/linux/powerpc/powerpc64/le/libc.abilist
4267 (GLIBC_2.30): Likewise.
4268 * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist (GLIBC_2.30):
4269 Likewise.
4270 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist (GLIBC_2.30):
4271 Likewise.
4272 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist (GLIBC_2.30):
4273 Likewise.
4274 * sysdeps/unix/sysv/linux/sh/libc.abilist (GLIBC_2.30): Likewise.
4275 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist (GLIBC_2.30):
4276 Likewise.
4277 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist (GLIBC_2.30):
4278 Likewise.
4279 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist (GLIBC_2.30):
4280 Likewise.
4281 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist (GLIBC_2.30):
4282 Likewise.
4283
4284 2019-04-30 Paul Eggert <eggert@cs.ucla.edu>
4285
4286 Make mktime etc. compatible with __time64_t
4287 Keep these functions compatible with Gnulib while adding
4288 __time64_t support. The basic idea is to move private API
4289 declarations from include/time.h to time/mktime-internal.h, since
4290 the former file cannot easily be shared with Gnulib whereas the
4291 latter can.
4292 Also, do some other minor cleanup while in the neighborhood.
4293 * include/time.h: Include stdbool.h, time/mktime-internal.h.
4294 (__mktime_internal): Move this prototype to time/mktime-internal.h,
4295 since Gnulib needs it.
4296 (__localtime64_r, __gmtime64_r) [__TIMESIZE == 64]:
4297 Move these macros to time/mktime-internal.h, since Gnulib needs them.
4298 (__mktime64, __timegm64) [__TIMESIZE != 64]: New prototypes.
4299 (in_time_t_range): New static function.
4300 * posix/bits/types.h (__time64_t): Move to time/mktime-internal.h,
4301 so that glibc users are not tempted to use __time64_t.
4302 * time/mktime-internal.h: Rewrite so that it does both glibc
4303 and Gnulib work. Include time.h if not _LIBC.
4304 (mktime_offset_t) [!_LIBC]: Define for gnulib.
4305 (__time64_t): New type or macro, moved here from
4306 posix/bits/types.h.
4307 (__gmtime64_r, __localtime64_r, __mktime64, __timegm64)
4308 [!_LIBC || __TIMESIZE == 64): New macros, mostly moved here
4309 from include/time.h.
4310 (__gmtime_r, __localtime_r, __mktime_internal) [!_LIBC]:
4311 New macros, taken from GNulib.
4312 (__mktime_internal): New prototype, moved here from include/time.h.
4313 * time/mktime.c (mktime_min, mktime_max, convert_time)
4314 (ranged_convert, __mktime_internal, __mktime64):
4315 * time/timegm.c (__timegm64):
4316 Use __time64_t, not time_t.
4317 * time/mktime.c: Stop worrying about whether time_t is floating-point.
4318 (__mktime64) [! (_LIBC && __TIMESIZE != 64)]:
4319 Rename from mktime.
4320 (mktime) [_LIBC && __TIMESIZE != 64]: New function.
4321 * time/timegm.c [!_LIBC]: Include libc-config.h, not config.h,
4322 for libc_hidden_def.
4323 Include errno.h.
4324 (__timegm64) [! (_LIBC && __TIMESIZE != 64)]:
4325 Rename from timegm.
4326 (timegm) [_LIBC && __TIMESIZE != 64]: New function.
4327
4328 2019-04-30 Maciej W. Rozycki <macro@wdc.com>
4329
4330 [BZ #19444]
4331 * sysdeps/ieee754/soft-fp/s_ddivl.c (__ddivl): Ignore errors
4332 from `-Wmaybe-uninitialized'.
4333 * sysdeps/ieee754/soft-fp/s_fdivl.c (__fdivl): Likewise.
4334
4335 2019-04-29 Adhemerval Zanella <adhemerval.zanella@linaro.org>
4336
4337 * sysdeps/powerpc/fpu/fenv_libc.h (__fesetround_inline_nocheck): New
4338 function.
4339 * sysdeps/powerpc/fpu/round_to_integer.h: New file.
4340 * sysdeps/powerpc/fpu/s_ceil.c: Likewise.
4341 * sysdeps/powerpc/fpu/s_ceilf.c: Likewise.
4342 * sysdeps/powerpc/powerpc32/fpu/s_ceil.S: Remove file.
4343 * sysdeps/powerpc/powerpc32/fpu/s_ceilf.S: Likewise.
4344 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile
4345 (CFLAGS-s_ceil-power5+.c, CFLAGS-s_ceilf-power5+.c): New rule.
4346 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceil-power5+.S:
4347 Remove file.
4348 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceil-ppc32.S:
4349 Likewise.
4350 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceilf-power5+.S:
4351 Likewise.
4352 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceilf-ppc32.S:
4353 Likewise.
4354 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceil-power5+.c:
4355 New file.
4356 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceil-ppc32.c:
4357 Likewise.
4358 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceilf-power5+.c:
4359 Likewise.
4360 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceilf-ppc32.c:
4361 Likewise.
4362 * sysdeps/powerpc/powerpc32/power5+/fpu/s_ceil.S: Remove file.
4363 * sysdeps/powerpc/powerpc32/power5+/fpu/s_ceilf.S: Likewise.
4364 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/Makefile: New file.
4365 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_ceil-power5+.c:
4366 Likewise.
4367 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_ceil-ppc64.c:
4368 Likewise.
4369 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceil.c: Move to ...
4370 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_ceil.c: ... here.
4371 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_ceilf-power5+.c: New
4372 file.
4373 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_ceilf-ppc64.c:
4374 Likewise.
4375 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceilf.c: Move to ...
4376 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_ceilf.c: ...
4377 * here.
4378 * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile
4379 (libm-sysdep_routines): Remove s_ceil-power5+, s_ceil-ppc64,
4380 s_ceilf-power5+, and s_ceilf-ppc64.
4381 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceil-power5+.S: Remove
4382 file.
4383 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceil-ppc64.S: Likewise.
4384 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceilf-power5+.S: Likewise.
4385 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceilf-ppc64.S: Likewise.
4386 * sysdeps/powerpc/powerpc64/fpu/s_ceil.S: Likewise.
4387 * sysdeps/powerpc/powerpc64/fpu/s_ceilf.S: Likewise.
4388 * sysdeps/powerpc/powerpc64/power5+/fpu/s_ceil.S: Likewise.
4389 * sysdeps/powerpc/powerpc64/power5+/fpu/s_ceilf.S: Likewise.
4390
4391 * sysdeps/powerpc/power4/fpu/Makefile: Remove file.
4392 * sysdeps/powerpc/power4/fpu/mpa-arch.h: Likewise.
4393 * sysdeps/powerpc/power4/fpu/mpa.c: Likewise.
4394
4395 2019-04-29 Yann Droneaud <ydroneaud@opteya.com>
4396
4397 * sysdeps/pthread/semaphore.h (sem_init): Add __nonnull attribute.
4398 (sem_destroy, sem_open, sem_close, sem_unlink): Likewise.
4399 (sem_wait, sem_timedwait, sem_trywait, sem_post): Likewise.
4400 (sem_getvalue): Likewise.
4401
4402 2019-04-26 Florian Weimer <fweimer@redhat.com>
4403
4404 elf: Link sotruss-lib.so with BIND_NOW for --enable-bind-now.
4405 * elf/Makefile (LDFLAGS-sotruss-lib.so): Set.
4406
4407 2019-04-26 Florian Weimer <fweimer@redhat.com>
4408
4409 Makeconfig: Move -Wl,-rpath-link options before library references.
4410 * Makeconfig (+link-pie, +link): Add $(link-libc-rpath-link).
4411 (link-libc): Remove $(link-libc-rpath-link).
4412
4413 2019-04-25 Florian Weimer <fweimer@redhat.com>
4414
4415 * Makeconfig (+link-pie-before-libc): Remove $(CC).
4416 (+link-pie, +link-pie-tests, +link-pie-printers-tests): Add $(CC).
4417 (+link-static-before-libc): Remove $(CC).
4418 (+link-static, +link-static-tests): Add $(CC).
4419 (+link-before-libc): Remove $(CC).
4420 (+link, +link-pie, +link-pie-printers): Add $(CC).
4421
4422 2019-04-26 Florian Weimer <fweimer@redhat.com>
4423
4424 * Makeconfig (+link-pie-before-libc): Remove $(CC).
4425 (+link-pie, +link-pie-tests, +link-pie-printers-tests): Add $(CC).
4426 (+link-static-before-libc): Remove $(CC).
4427 (+link-static, +link-static-tests): Add $(CC).
4428 (+link-before-libc): Remove $(CC).
4429 (+link, +link-pie, +link-pie-printers): Add $(CC).
4430
4431 2019-04-25 David Abdurachmanov <david.abdurachmanov@gmail.com>
4432
4433 [BZ#24484]
4434 * sysdeps/riscv/ldsodefs.h (DL_RO_DYN_SECTION): Remove.
4435
4436 2019-04-25 Florian Weimer <fweimer@redhat.com>
4437
4438 benchtests: Enable BIND_NOW if configured with --enable-bind-now.
4439 * benchtests/Makefile [$(bind-now)] (link-bench-bind-now): Set.
4440 (bench-link-targets): New variable.
4441 ($(binaries-bench) …): Use it. Set LDFLAGS accordingly.
4442
4443 2019-04-25 Florian Weimer <fweimer@redhat.com>
4444
4445 Also enable BIND_NOW for programs if --enable-bind-now.
4446 * Makeconfig [$(bind-now)] (link-extra-flags): Add -Wl,-z,now.
4447 (+link-pie): Use $(link-extra-flags).
4448 (+link-static): Likewise.
4449 [! $(build-pie-default)] (+link): Likewise.
4450 * manual/install.texi (Configuring and compiling): Update
4451 --enable-bind-now description.
4452 * INSTALL: Regenerated.
4453
4454 2019-04-24 Wilco Dijkstra <wdijkstr@arm.com>
4455
4456 * benchtests/Makefile (BENCH_DURATION): Set to 1 second.
4457 * benchtests/bench-malloc-thread.c (BENCH_DURATION): Set to 10 seconds.
4458
4459 2019-04-24 Mike Frysinger <vapier@gentoo.org>
4460
4461 [BZ #18465]
4462 * malloc/Makefile (others): Add memusagestat.
4463 ($(objpfx)memusagestat): Delete rule.
4464 (LDLIBS-memusagestat): New variable.
4465
4466 2019-04-24 Florian Weimer <fweimer@redhat.com>
4467
4468 * locale/Makefile (tests-special): Guard setting by
4469 $(run-built-tests) == yes, otherwise tst-locale-locpath attempts
4470 to run while cross-compiling.
4471
4472 2019-04-23 Adhemerval Zanella <adhemerval.zanella@linaro.org>
4473
4474 [BZ #18035]
4475 * elf/Makefile (tests-container): Add tst-pldd.
4476 * elf/pldd-xx.c: Use _Static_assert in of pldd_assert.
4477 (E(find_maps)): Avoid use alloca, use default read file operations
4478 instead of explicit LFS names, and fix infinite loop.
4479 * elf/pldd.c: Explicit set _FILE_OFFSET_BITS, cleanup headers.
4480 (get_process_info): Use _Static_assert instead of assert, use default
4481 directory operations instead of explicit LFS names, and free some
4482 leadek pointers.
4483 * elf/tst-pldd.c: New file.
4484
4485 2019-04-23 H.J. Lu <hongjiu.lu@intel.com>
4486
4487 * malloc/arena.c (do_set_mallopt_check): Removed.
4488
4489 2019-04-23 Florian Weimer <fweimer@redhat.com>
4490
4491 locale: Add LOCPATH diagnostics to the locale program.
4492 * locale/programs/locale.c (setlocale_failed): New variable.
4493 (try_setlocale): New function.
4494 (quote_string): Likewise.
4495 (setlocale_diagnostics): Likewise.
4496 (main): Call try_setlocale instead of setlocale. Call
4497 setlocale_diagnostics.
4498 * locale/Makefile (tests-special): Add tst-locale-locpath.out.
4499 (tst-locale-locpath.out): New target.
4500 * locale/tst-locale-locpath.sh: New file.
4501
4502 2019-04-21 Adhemerval Zanella <adhemerval.zanella@linaro.org>
4503
4504 * NEWS: Move memory allocation changes of BZ#23741 from 2.29
4505 to 2.30 notes.
4506
4507 2019-04-18 Adhemerval Zanella <adhemerval.zanella@linaro.org>
4508
4509 [BZ #23741]
4510 * malloc/hooks.c (malloc_check, realloc_check): Use
4511 __builtin_add_overflow on overflow check and adapt to
4512 checked_request2size change.
4513 * malloc/malloc.c (__libc_malloc, __libc_realloc, _mid_memalign,
4514 __libc_pvalloc, __libc_calloc, _int_memalign): Limit maximum
4515 allocation size to PTRDIFF_MAX.
4516 (REQUEST_OUT_OF_RANGE): Remove macro.
4517 (checked_request2size): Change to inline function and limit maximum
4518 requested size to PTRDIFF_MAX.
4519 (__libc_malloc, __libc_realloc, _int_malloc, _int_memalign): Limit
4520 maximum allocation size to PTRDIFF_MAX.
4521 (_mid_memalign): Use _int_memalign call for overflow check.
4522 (__libc_pvalloc): Use __builtin_add_overflow on overflow check.
4523 (__libc_calloc): Use __builtin_mul_overflow for overflow check and
4524 limit maximum requested size to PTRDIFF_MAX.
4525 * malloc/malloc.h (malloc, calloc, realloc, reallocarray, memalign,
4526 valloc, pvalloc): Add __attribute_alloc_size__.
4527 * stdlib/stdlib.h (malloc, realloc, reallocarray, valloc): Likewise.
4528 * malloc/tst-malloc-too-large.c (do_test): Add check for allocation
4529 larger than PTRDIFF_MAX.
4530 * malloc/tst-memalign.c (do_test): Disable -Walloc-size-larger-than=
4531 around tests of malloc with negative sizes.
4532 * malloc/tst-posix_memalign.c (do_test): Likewise.
4533 * malloc/tst-pvalloc.c (do_test): Likewise.
4534 * malloc/tst-valloc.c (do_test): Likewise.
4535 * malloc/tst-reallocarray.c (do_test): Replace call to reallocarray
4536 with resulting size allocation larger than PTRDIFF_MAX with
4537 reallocarray_nowarn.
4538 (reallocarray_nowarn): New function.
4539 * NEWS: Mention the malloc function semantic change.
4540
4541 2019-04-17 Adhemerval Zanella <adhemerval.zanella@linaro.org>
4542
4543 * sysdeps/powerpc/fpu/s_fma.c: Fix format.
4544 * sysdeps/powerpc/fpu/s_fmaf.c: Likewise.
4545
4546 * sysdeps/powerpc/fpu/s_fma.S: Remove file.
4547 * sysdeps/powerpc/fpu/s_fmaf.S: Likewise.
4548 * sysdeps/powerpc/fpu/s_fma.c: New file.
4549 * sysdeps/powerpc/fpu/s_fmaf.c: Likewise.
4550
4551 * sysdeps/powerpc/fpu/s_fabs.S: Remove file.
4552 * sysdeps/powerpc/fpu/s_fabsf.S: Likewise.
4553
4554 * sysdeps/unix/sysv/linux/mips/getcontext.S (__getcontext): Remove
4555 the magic flag store.
4556 * sysdeps/unix/sysv/linux/mips/makecontext.S (__makecontext):
4557 Likewise.
4558 * sysdeps/unix/sysv/linux/mips/swapcontext.S (__swapcontext):
4559 Likewise.
4560 * sysdeps/unix/sysv/linux/mips/setcontext.S (__setcontext):
4561 Remove rt_sigreturn call.
4562
4563 * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext-common.S:
4564 Remove rt_sigreturn call.
4565 * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S:
4566 Likewise.
4567 * sysdeps/unix/sysv/linux/powerpc/powerpc64/setcontext.S: Likewie.
4568 * sysdeps/unix/sysv/linux/powerpc/powerpc64/swapcontext.S: Likewise.
4569
4570 * support/Makefile (libsupport-routines): Add support_subprocess,
4571 xposix_spawn, xposix_spawn_file_actions_addclose, and
4572 xposix_spawn_file_actions_adddup2.
4573 (tst-support_capture_subprocess-ARGS): New rule.
4574 * support/capture_subprocess.h (support_capture_subprogram): New
4575 prototype.
4576 * support/support_capture_subprocess.c (support_capture_subprocess):
4577 Refactor to use support_subprocess and support_capture_poll.
4578 (support_capture_subprogram): New function.
4579 * support/tst-support_capture_subprocess.c (write_mode_to_str,
4580 str_to_write_mode, test_common, parse_int, handle_restart,
4581 do_subprocess, do_subprogram, do_multiple_tests): New functions.
4582 (do_test): Add support_capture_subprogram tests.
4583 * support/subprocess.h: New file.
4584 * support/support_subprocess.c: Likewise.
4585 * support/xposix_spawn.c: Likewise.
4586 * support/xposix_spawn_file_actions_addclose.c: Likewise.
4587 * support/xposix_spawn_file_actions_adddup2.c: Likewise.
4588 * support/xspawn.h: Likewise.
4589
4590 2019-04-17 Mike Gerow <gerow@google.com>
4591
4592 * stdlib/tst-secure-getenv.c (choose_gid): Remove 64 supplemental
4593 groups limit.
4594
4595 2019-04-11 Florian Weimer <fweimer@redhat.com>
4596
4597 * resolv/nss_dns/dns-network.c (getanswer_r): Do not replace root
4598 domain with empty string.
4599 * resolv/nss_dns/dns-host.c (getanswer_r): Likewise.
4600
4601 2019-04-11 Florian Weimer <fweimer@redhat.com>
4602
4603 * include/alloc_buffer.h (alloc_buffer_alloc_bytes): Update
4604 comment.
4605 (alloc_buffer_next): Change return type to non-const. Update
4606 comment.
4607
4608 2019-04-10 TAMUKI Shoichi <tamuki@linet.gr.jp>
4609
4610 * manual/time.texi (Formatting Calendar Time): Add missing percent
4611 sign to conversion specifier.
4612
4613 2019-04-09 Carlos O'Donell <carlos@redhat.com>
4614 Kwok Cheung Yeung <kcy@codesourcery.com>
4615
4616 [BZ #16573]
4617 * malloc/mtrace.c: Define prototypes for all hooks.
4618 (set_default_hooks): New function.
4619 (set_trace_hooks): Likewise.
4620 (save_default_hooks): Likewise.
4621 (tr_freehook): Use new s*_hooks functions.
4622 (tr_mallochook): Likewise.
4623 (tr_reallochook): Likewise.
4624 (tr_memalignhook): Likewise.
4625 (mtrace): Likewise.
4626 (muntrace): Likewise.
4627
4628 2019-04-09 Wilco Dijkstra <wdijkstr@arm.com>
4629
4630 * benchtests/bench-stpcpy.c (SIMPLE_STPCPY): Remove function.
4631 (generic_stpcpy): New function.
4632 * benchtests/bench-stpncpy.c (SIMPLE_STPNCPY): Remove function.
4633 (generic_stpncpy): New function.
4634 * benchtests/bench-strcat.c (SIMPLE_STRCAT): Remove function.
4635 (generic_strcat): New function.
4636 * benchtests/bench-strcpy.c (SIMPLE_STRCPY): Remove function.
4637 (generic_strcpy): New function.
4638 * benchtests/bench-strncat.c (SIMPLE_STRNCAT): Remove function.
4639 (STUPID_STRNCAT): Remove function.
4640 (generic_strncat): New function.
4641 * benchtests/bench-strncpy.c (SIMPLE_STRNCPY): Remove function.
4642 (STUPID_STRNCPY): Remove function.
4643 (generic_strncpy): New function.
4644 * benchtests/bench-strnlen.c (SIMPLE_STRNLEN): Remove function.
4645 (generic_strnlen): New function.
4646 (memchr_strnlen): New function.
4647 * benchtests/bench-strlen.c (generic_strlen): Define for WIDE.
4648 (memchr_strlen): Likewise.
4649
4650 2019-04-09 Wilco Dijkstra <wdijkstr@arm.com>
4651
4652 * benchtests/bench-strstr.c (input): Add realistic input text.
4653 (stupid_strstr): Remove function.
4654 (basic_strstr): Add function.
4655 (twoway_strstr): Add function.
4656 (do_one_test): Add result checking.
4657 (do_test): Use new input text. Remove accidental early matches.
4658 (test_main): Improve range of tests, reduce unaligned cases.
4659
4660 2019-04-09 Wilco Dijkstra <wdijkstr@arm.com>
4661
4662 * benchtests/bench-memmem.c (simple_memmem): Remove function.
4663 (basic_memmem): Add function.
4664 (twoway_memmem): Add function.
4665
4666 2019-04-09 Wilco Dijkstra <wdijkstr@arm.com>
4667
4668 * benchtests/bench-malloc-simple.c: Remove TIMING_INIT.
4669 * benchtests/bench-malloc-thread.c: Likewise.
4670 * benchtests/bench-skeleton.c: Likewise.
4671 * benchtests/bench-strtod.c: Likewise.
4672 * benchtests/bench-timing.h: Likewise.
4673
4674 2019-04-08 Florian Weimer <fweimer@redhat.com>
4675
4676 * resolv/resolv.h (RES_INSECURE1, RES_INSECURE2): Remove
4677 definitions.
4678 * resolv/res_send.c (send_dg): Always perform RES_INSECURE1 and
4679 RES_INSECURE2 security checks.
4680 * resolv/res_debug.c (p_option): Remove RES_INSECURE1 and
4681 RES_INSECURE2 handling.
4682
4683 2019-04-08 Florian Weimer <fweimer@redhat.com>
4684
4685 resolv: Remove support for RES_USE_INET6 and the inet6 option.
4686 * nscd/aicache.c (addhstaiX): Do not disable RES_USE_INET6.
4687 * nscd/nscd_gehst_r.c (__nscd_gethostbyname_r): Always use
4688 GETHOSTBYNAME.
4689 * resolv/Makefile (tests): Remove tst-res_use_inet6.
4690 (tests-internal): Update justification for tst-resolv-res_init,
4691 tst-resolv-res_init-thread.
4692 (tst-res_use_inet6): Remove target.
4693 (CFLAGS-tst-res_use_inet6.c): Do not set variable.
4694 * resolv/res_debug.c (p_option): Remove "inet6" support.
4695 * resolv/res_init.c (res_setoptions): Likewise.
4696 * resolv/res_use_inet6.h: Remove file.
4697 * resolv/resolv-internal.h (DEPRECATED_RES_USE_INET6): Remove
4698 definition.
4699 (res_use_inet6): Always return false.
4700 * resolv/resolv.h (RES_USE_INET6): Remove definition.
4701 * resolv/resolv_context.h: Adjust file comment.
4702 (struct resolv_context): Update comment on __next field.
4703 (__resolv_context_put): Update comment.
4704 * resolv/tst-res_use_inet6.c: Remove file.
4705 * resolv/tst-resolv-res_init-skeleton.c (print_resp): Remove
4706 "inet6" support.
4707 (test_cases): Adjust test case.
4708 * resolv/tst-resolv-threads.c (byname_inet6) Remove function.
4709 (thread_byname2_af_inet6): Use old byname_inet6 code.
4710 (thread_byname_inet6, thread_byname2_af_inet6): Remove functions.
4711 (gai): Remove do_inet6 argument.
4712 (thread_gai_inet, thread_gai_inet6, thread_gai_unspec): Adjust.
4713 (thread_gai_inet_inet6, thread_gai_inet6_inet6)
4714 (thread_gai_unspec_inet6): Remove functions.
4715 (do_test): Adjust thread_funcs.
4716 * sysdeps/posix/getaddrinfo.c (gethosts): Do not restore
4717 RES_USE_INET6 flag.
4718 (gaih_inet): Do not disable RES_USE_INET6 flag.
4719
4720 2019-04-05 Anton Youdkevitch <anton.youdkevitch@bell-sw.com>
4721
4722 * sysdeps/aarch64/multiarch/memcpy_thunderx2.S: Cleanup branching
4723 and remove redundant code.
4724
4725 2019-04-04 Adhemerval Zanella <adhemerval.zanella@linaro.org>
4726
4727 * sysdeps/powerpc/Makefile [$(subdir) == wcsmbs] (CFLAGS-wcsrchr.c):
4728 New rule.
4729 * sysdeps/powerpc/power6/wcsrchr.c: Remove file.
4730 * sysdeps/powerpc/powerpc32/power4/multiarch/wcsrchr-power6.c:
4731 Likewise.
4732 * sysdeps/powerpc/powerpc32/power4/multiarch/wcsrchr-power7.c:
4733 Likewise.
4734 * sysdeps/powerpc/powerpc32/power4/multiarch/wcsrchr-ppc32.c:
4735 Likewise.
4736 * sysdeps/powerpc/powerpc32/power4/multiarch/wcsrchr.c: Likewise.
4737 * sysdeps/powerpc/powerpc64/multiarch/wcsrchr-power6.c: Likewise.
4738 * sysdeps/powerpc/powerpc64/multiarch/wcsrchr-power7.c: Likewise.
4739 * sysdeps/powerpc/powerpc64/multiarch/wcsrchr-ppc64.c: Likewise.
4740 * sysdeps/powerpc/powerpc64/multiarch/wcsrchr.c: Likewise.
4741 * sysdeps/powerpc/powerpc64/power6/wcsrchr.c: Likewise.
4742 * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile
4743 [$(subdir) == wcsmbs] (sysdeps_routines): Remove wcsrchr-power6 and
4744 wcsrchr-power7.
4745 (CFLAGS-wcsrchr-power7.c, CFLAGS-wcsrchr-power6.c): Remove rule.
4746 * sysdeps/powerpc/powerpc64/multiarch/Makefile: Likewise.
4747 * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list.c:
4748 Remove wcsrchr optimizations.
4749 * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c: Likewise.
4750
4751 * wcsmbs/wcsrchr.c (WCSRCHR): Use loop_unroll.h to parametrize
4752 the loop unroll.
4753
4754 * sysdeps/powerpc/Makefile [$(subdir) == wcsmbs] (CFLAGS-wcschr.c):
4755 New rule.
4756 * sysdeps/powerpc/power6/wcschr.c: Remove file.
4757 * sysdeps/powerpc/powerpc32/power4/multiarch/wcschr-power6.c:
4758 Likewise.
4759 * sysdeps/powerpc/powerpc32/power4/multiarch/wcschr-power7.c:
4760 Likewise.
4761 * sysdeps/powerpc/powerpc32/power4/multiarch/wcschr-ppc32.c:
4762 Likewise.
4763 * sysdeps/powerpc/powerpc32/power4/multiarch/wcschr.c: Likewise.
4764 * sysdeps/powerpc/powerpc64/multiarch/wcschr-power6.c: Likewise.
4765 * sysdeps/powerpc/powerpc64/multiarch/wcschr-power7.c: Likewise.
4766 * sysdeps/powerpc/powerpc64/multiarch/wcschr-ppc64.c: Likewise.
4767 * sysdeps/powerpc/powerpc64/multiarch/wcschr.c: Likewise.
4768 * sysdeps/powerpc/powerpc64/power6/wcschr.c: Likewise.
4769 * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile
4770 [$(subdir) == wcsmbs] (sysdeps_routines): Remove wcschr-power6 and
4771 wcschr-power7.
4772 (CFLAGS-wcschr-power7.c, CFLAGS-wcschr-power6.c): Remove rule.
4773 * sysdeps/powerpc/powerpc64/multiarch/Makefile: Likewise.
4774 * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list.c:
4775 Remove wcschr optimizations.
4776 * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c: Likewise.
4777
4778 * wcsmbs/wcschr.c (WCSCHR): Use loop_unroll.h to parametrize
4779 the loop unroll.
4780
4781 * sysdeps/powerpc/Makefile [$(subdir) == wcsmbs] (CFLAGS-wcscpy.c):
4782 New rule.
4783 * sysdeps/powerpc/power6/wcscpy.c: Remove file.
4784 * sysdeps/powerpc/powerpc32/power4/multiarch/wcscpy-power6.c:
4785 Likewise.
4786 * sysdeps/powerpc/powerpc32/power4/multiarch/wcscpy-power7.c:
4787 Likewise.
4788 * sysdeps/powerpc/powerpc32/power4/multiarch/wcscpy-ppc32.c:
4789 Likewise.
4790 * sysdeps/powerpc/powerpc32/power4/multiarch/wcscpy.c: Likewise.
4791 * sysdeps/powerpc/powerpc64/multiarch/wcscpy-power6.c: Likewise.
4792 * sysdeps/powerpc/powerpc64/multiarch/wcscpy-power7.c: Likewise.
4793 * sysdeps/powerpc/powerpc64/multiarch/wcscpy-ppc64.c: Likewise.
4794 * sysdeps/powerpc/powerpc64/multiarch/wcscpy.c: Likewise.
4795 * sysdeps/powerpc/powerpc64/power6/wcscpy.c: Likewise.
4796 * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile
4797 [$(subdir) == wcsmbs] (sysdeps_routines): Remove wcscpy-power6 and
4798 wcscpy-power7.
4799 (CFLAGS-wcscpy-power7.c, CFLAGS-wcscpy-power6.c): Remove rule.
4800 * sysdeps/powerpc/powerpc64/multiarch/Makefile: Likewise.
4801 * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list.c:
4802 Remove wcscpy optimizations.
4803 * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c: Likewise.
4804
4805 * include/loop_unroll.h: New file.
4806 * wcsmbs/wcscpy (__wcscpy): Add option to use loop unrolling
4807 besides generic implementation.
4808
4809 2019-04-03 DJ Delorie <dj@redhat.com>
4810
4811 * time/tst-strftime3.c (tm_to_printed): Disable warning about
4812 snprintf truncating output.
4813
4814 2019-04-02 DJ Delorie <dj@redhat.com>
4815
4816 * time/tst-strftime3.c: Add new Japanese era tests. Fix printf
4817 warning.
4818
4819 2019-04-02 TAMUKI Shoichi <tamuki@linet.gr.jp>
4820
4821 [BZ #22964]
4822 * localedata/locales/ja_JP (LC_TIME): Add entry for the new Japanese
4823 era.
4824 * time/tst-strftime2.c (dates): Add 2019-04-30 and 2019-05-01.
4825 (mkreftable): Add rules for the new Japanese era and the new dates.
4826
4827 2019-04-02 TAMUKI Shoichi <tamuki@linet.gr.jp>
4828 Rafał Lużyński <digitalfreak@lingonborough.com>
4829
4830 * time/tst-strftime2.c (date_t): Explicitly define the type.
4831 (dates): Use natural month and year numbers to express a date.
4832 (is_before): New function to compare dates.
4833 (mkreftable): Minor improvements to simplify maintenance.
4834 (do_test): Reflect the changes in dates array.
4835
4836 [BZ #24293]
4837 * time/Makefile (LOCALES): Add zh_TW.UTF-8, cmn_TW.UTF-8,
4838 hak_TW.UTF-8, nan_TW.UTF-8, and lzh_TW.UTF-8.
4839 * time/tst-strftime2.c (locales): Likewise.
4840 (dates): Add 1910-04-01, 1911-12-31, 1912-01-01, 1913-04-01,
4841 2010-04-01, and 2011-04-01.
4842 (mkreftable): Add rules for the new locales and the new dates.
4843
4844 2019-04-01 Carlos O'Donell <carlos@redhat.com>
4845
4846 * localedata/locales/ja_JP: Add comments to era entries.
4847
4848 2019-04-01 DJ Delorie <dj@redhat.com>
4849
4850 [BZ #24394]
4851 * time/strptime_l.c (%Ey): Fix fencepost error.
4852 * time/tst-strftime3.c: New.
4853 * time/Makefile (tests): Add tst-strftime3.
4854
4855 2019-04-01 Uroš Bizjak <ubizjak@gmail.com>
4856
4857 * sysdeps/alpha/divqu.S (__divqu): Move save of $f0 and excb after
4858 conditional branch to DIVBYZERO. Fix unwind info.
4859 * sysdeps/alpha/remqu.S (__remqu): Move saves of $f0, $f1, $f2 and
4860 excb after conditional branch to $powerof2. Add missing unop
4861 instructions and .align directives and reorder instructions to
4862 match __divqu.
4863
4864 2019-04-01 Richard Henderson <rth@twiddle.net>
4865
4866 * sysdeps/unix/sysv/linux/alpha/kernel-features.h (__NR_shmat):
4867 Do not redefine.
4868 * sysdeps/unix/sysv/linux/alpha/sysdep.h (__NR_osf_shmat):
4869 Do not redefine.
4870
4871 2019-03-30 Maciej W. Rozycki <macro@wdc.com>
4872
4873 * sysdeps/unix/sysv/linux/riscv/configure.ac: Quote
4874 $libc_cv_riscv_float_abi in `test' invocation.
4875 * sysdeps/unix/sysv/linux/riscv/configure: Regenerate.
4876
4877 2019-03-29 Paul A. Clarke <pc@us.ibm.com>
4878
4879 * sysdeps/powerpc/fpu/fenv_libc.h (fegetenv_register): Replace inline
4880 asm with builtin.
4881 * sysdeps/powerpc/powerpc64/le/fpu/sfp-machine.h (FP_INIT_ROUNDMODE):
4882 Likewise.
4883 * sysdeps/powerpc/fpu/tst-setcontext-fpscr.c (_GET_DI_FPSCR): Likewise.
4884 (_GET_SI_FPSCR): Likewise.
4885 (_SET_SI_FPSCR): Likewise.
4886
4887 2019-03-26 Adhemerval Zanella <adhemerval.zanella@linaro.org>
4888
4889 * math/math.h (fpclassify, isfinite, isnormal, isnan): Use builtin for
4890 clang 2.8.
4891 (signbit): Use builtin for clang 3.3.
4892 (isinf): Use builtin for clang 3.7.
4893
4894 2019-03-25 Adhemerval Zanella <adhemerval.zanella@linaro.org>
4895
4896 * sysdeps/powerpc/fpu/s_float_bitwise.h: Remove file.
4897
4898 2019-03-25 Andreas K. Hüttel <dilfridge@gentoo.org>
4899
4900 * nss/tst-nss-files-alias-leak.c (do_test): add missing opening
4901 quote in printf.
4902
4903 2019-03-25 Mike Crowe <mac@mcrowe.com>
4904
4905 * nptl/tst-rwlock14.c (do_test): Replace duplicate calls to
4906 pthread_rwlock_timedrdlock with calls to
4907 pthread_rwlock_timedwrlock to ensure that the latter is tested
4908 too. Use new function name in diagnostic messages too.
4909
4910 * nptl/tst-sem5.c: Remove unused headers. Add <support/check.h>.
4911 (do_test) Use libsupport test macros rather than hand-coded
4912 conditionals and error messages. Ensure that sem_init returns zero
4913 rather than not -1. Use <support/test-driver.c> rather than
4914 test-skeleton.c.
4915
4916 * nptl/tst-sem13.c: Add <support/check.h>. (do_test) Use libsupport
4917 test macros rather than hand-coded conditionals and error messages.
4918 Use <support/test-driver.c> rather than test-skeleton.c.
4919
4920 2019-03-25 Joseph Myers <joseph@codesourcery.com>
4921
4922 * sysdeps/gnu/netinet/udp.h (UDP_GRO): New macro.
4923
4924 * elf/elf.h (NT_ARM_PAC_MASK): New macro.
4925 (NT_MIPS_MSA): Likewise.
4926
4927 2019-03-22 Adhemerval Zanella <adhemerval.zanella@linaro.org>
4928
4929 * benchtests/Makefile (USE_CLOCK_GETTIME) Remove.
4930 * benchtests/README: Update description.
4931 * benchtests/bench-timing.h: Default to hp-timing.
4932 * sysdeps/generic/hp-timing.h (HP_TIMING_DIFF, HP_TIMING_ACCUM_NT,
4933 HP_TIMING_PRINT): Remove.
4934 (HP_TIMING_NOW): Add generic implementation.
4935 (hp_timing_t): Change to uint64_t.
4936
4937 * benchtests/bench-timing.h: Replace HP_TIMING_AVAIL with
4938 HP_TIMING_INLINE.
4939 * nptl/descr.h: Likewise.
4940 * elf/rtld.c (RLTD_TIMING_DECLARE, RTLD_TIMING_NOW, RTLD_TIMING_DIFF,
4941 RTLD_TIMING_ACCUM_NT, RTLD_TIMING_SET): Define.
4942 (dl_start_final_info, _dl_start_final, dl_main, print_statistics):
4943 Abstract hp-timing usage with RTLD_* macros.
4944 * sysdeps/alpha/hp-timing.h (HP_TIMING_INLINE): Define iff IS_IN(rtld).
4945 (HP_TIMING_AVAIL, HP_SMALL_TIMING_AVAIL): Remove.
4946 * sysdeps/generic/hp-timing.h (HP_TIMING_AVAIL, HP_SMALL_TIMING_AVAIL,
4947 HP_TIMING_NONAVAIL): Likewise.
4948 * sysdeps/ia64/hp-timing.h (HP_TIMING_AVAIL, HP_SMALL_TIMING_AVAIL):
4949 Likewise.
4950 * sysdeps/powerpc/powerpc32/power4/hp-timing.h (HP_TIMING_AVAIL,
4951 HP_SMALL_TIMING_AVAIL): Likewise.
4952 * sysdeps/powerpc/powerpc64/hp-timing.h (HP_TIMING_AVAIL,
4953 HP_SMALL_TIMING_AVAIL): Likewise.
4954 * sysdeps/sparc/sparc32/sparcv9/hp-timing.h (HP_TIMING_AVAIL,
4955 HP_SMALL_TIMING_AVAIL): Likewise.
4956 * sysdeps/sparc/sparc64/hp-timing.h (HP_TIMING_AVAIL,
4957 HP_SMALL_TIMING_AVAIL): Likewise.
4958 * sysdeps/x86/hp-timing.h (HP_TIMING_AVAIL, HP_SMALL_TIMING_AVAIL):
4959 Likewise.
4960 * sysdeps/generic/hp-timing-common.h: Update comment with
4961 HP_TIMING_AVAIL removal.
4962
4963 * include/random-bits.h: New file.
4964 * resolv/res_mkquery.c [HP_TIMING_AVAIL] (RANDOM_BITS,
4965 (__res_context_mkquery): Remove usage hp-timing usage and replace with
4966 random_bits.
4967 * resolv/res_send.c [HP_TIMING_AVAIL] (nameserver_offset): Likewise.
4968 * sysdeps/posix/tempname.c [HP_TIMING_AVAIL] (__gen_tempname):
4969 Likewise.
4970
4971 * include/libc-internal.h (__get_clockfreq): Remove prototype.
4972 * rt/Makefile (clock-routines): Remove get_clockfreq.
4973 * rt/get_clockfreq.c: Remove file.
4974 * sysdeps/unix/sysv/linux/i386/get_clockfreq.c: Likewise.
4975 * sysdeps/unix/sysv/linux/ia64/get_clockfreq.c: Likewise.
4976 * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c: Likewise.
4977 * sysdeps/unix/sysv/linux/powerpc/get_clockfreq.c: Move code to ...
4978 * sysdeps/unix/sysv/linux/powerpc/get_timebase_freq.c: ... here.
4979
4980 * sysdeps/unix/sysv/linux/ia64/has_cpuclock.c: Remove file.
4981 * sysdeps/unix/sysv/linux/ia64/sysconf.c: Likewise.
4982 * sysdeps/unix/sysv/linux/sysconf.c (has_cpuclock): Remove function.
4983 (__sysconf): Assume kernel support for _SC_MONOTONIC_CLOCK,
4984 _SC_CPUTIME, and _SC_THREAD_CPUTIME.
4985
4986 * nptl/Makefile (libpthread-routines): Remove pthread_clock_gettime and
4987 pthread_clock_settime.
4988 * nptl/pthreadP.h (__find_thread_by_id): Remove prototype.
4989 * elf/dl-support.c [!HP_TIMING_NOAVAIL] (_dl_cpuclock_offset): Remove.
4990 (_dl_non_dynamic_init): Remove _dl_cpuclock_offset setting.
4991 * elf/rtld.c (_dl_start_final): Likewise.
4992 * nptl/allocatestack.c (__find_thread_by_id): Remove function.
4993 * sysdeps/generic/ldsodefs.h [!HP_TIMING_NOAVAIL] (_dl_cpuclock_offset):
4994 Remove.
4995 * sysdeps/mach/hurd/dl-sysdep.c [!HP_TIMING_NOAVAIL]
4996 (_dl_cpuclock_offset): Remove.
4997 * nptl/descr.h (struct pthread): Rename cpuclock_offset to
4998 cpuclock_offset_ununsed.
4999 * nptl/nptl-init.c (__pthread_initialize_minimal_internal): Remove
5000 cpuclock_offset set.
5001 * nptl/pthread_create.c (START_THREAD_DEFN): Likewise.
5002 * sysdeps/nptl/fork.c (__libc_fork): Likewise.
5003 * nptl/pthread_clock_gettime.c: Remove file.
5004 * nptl/pthread_clock_settime.c: Likewise.
5005 * sysdeps/unix/clock_gettime.c (hp_timing_gettime): Remove function.
5006 [HP_TIMING_AVAIL] (realtime_gettime): Remove CLOCK_THREAD_CPUTIME_ID
5007 and CLOCK_PROCESS_CPUTIME_ID support.
5008 * sysdeps/unix/clock_settime.c (hp_timing_gettime): Likewise.
5009 [HP_TIMING_AVAIL] (realtime_gettime): Likewise.
5010 * sysdeps/posix/clock_getres.c (hp_timing_getres): Likewise.
5011 [HP_TIMING_AVAIL] (__clock_getres): Likewise.
5012 * sysdeps/unix/clock_nanosleep.c (CPUCLOCK_P, INVALID_CLOCK_P):
5013 Likewise.
5014 (__clock_nanosleep): Remove CPUCLOCK_P and INVALID_CLOCK_P usage.
5015
5016 2019-03-22 Stefan Liebler <stli@linux.ibm.com>
5017
5018 * sysdeps/s390/Makefile (sysdep_routines): Add memmem-arch13.
5019 * sysdeps/s390/ifunc-memmem.h (HAVE_MEMMEM_ARCH13, MEMMEM_ARCH13,
5020 MEMMEM_Z13_ONLY_USED_AS_FALLBACK, HAVE_MEMMEM_IFUNC_AND_ARCH13_SUPPORT):
5021 New defines.
5022 * sysdeps/s390/memmem-arch13.S: New file.
5023 * sysdeps/s390/memmem-vx.c: Omit GI symbol for z13 memmem ifunc variant
5024 if it is only used as fallback.
5025 * sysdeps/s390/memmem.c (memmem): Add arch13 variant in ifunc selector.
5026 * sysdeps/s390/multiarch/ifunc-impl-list.c
5027 (__libc_ifunc_impl_list): Add ifunc variant for arch13 memmem.
5028
5029 2019-03-22 Stefan Liebler <stli@linux.ibm.com>
5030
5031 * sysdeps/s390/Makefile (sysdep_routines): Add strstr-arch13.
5032 * sysdeps/s390/ifunc-strstr.h (HAVE_STRSTR_ARCH13, STRSTR_ARCH13,
5033 STRSTR_Z13_ONLY_USED_AS_FALLBACK, HAVE_STRSTR_IFUNC_AND_ARCH13_SUPPORT):
5034 New defines.
5035 * sysdeps/s390/multiarch/ifunc-impl-list.c
5036 (__libc_ifunc_impl_list): Add ifunc variant for arch13 strstr.
5037 * sysdeps/s390/strstr-arch13.S: New file.
5038 * sysdeps/s390/strstr-vx.c: Omit GI symbol for z13 strstr ifunc variant
5039 if it is only used as fallback.
5040 * sysdeps/s390/strstr.c (strstr): Add arch13 variant in ifunc selector.
5041
5042 2019-03-22 Stefan Liebler <stli@linux.ibm.com>
5043
5044 * sysdeps/s390/ifunc-memcpy.h (HAVE_MEMMOVE_ARCH13, MEMMOVE_ARCH13
5045 HAVE_MEMMOVE_IFUNC_AND_ARCH13_SUPPORT): New defines.
5046 * sysdeps/s390/memcpy-z900.S: Add arch13 memmove implementation.
5047 * sysdeps/s390/memmove.c (memmove): Add arch13 variant in
5048 ifunc selector.
5049 * sysdeps/s390/multiarch/ifunc-impl-list.c
5050 (__libc_ifunc_impl_list): Add ifunc variant for arch13 memmove.
5051 * sysdeps/s390/multiarch/ifunc-resolve.h (S390_STFLE_BITS_ARCH13_MIE3,
5052 S390_IS_ARCH13_MIE3): New defines.
5053
5054 2019-03-22 Stefan Liebler <stli@linux.ibm.com>
5055
5056 * config.h.in (HAVE_S390_MIN_ARCH13_ZARCH_ASM_SUPPORT,
5057 HAVE_S390_ARCH13_ASM_SUPPORT): New undefine.
5058 * sysdeps/s390/configure.ac: Add checks for arch13 support.
5059 * sysdeps/s390/configure: Regenerated.
5060
5061 2019-03-22 Stefan Liebler <stli@linux.ibm.com>
5062
5063 * sysdeps/s390/dl-procinfo.c (_dl_s390_cap_flags):
5064 Add vxe2, vxp, dflt, sort flags.
5065 * sysdeps/s390/dl-procinfo.h: Add HWCAP_S390_VXRS_EXT2,
5066 HWCAP_S390_VXRS_PDE, HWCAP_S390_SORT, HWCAP_S390_DFLT
5067 capabilities.
5068 (HWCAP_IMPORTANT): Add HWCAP_S390_VXRS_EXT2.
5069 * sysdeps/unix/sysv/linux/s390/bits/hwcap.h
5070 (HWCAP_S390_VXRS_EXT2, HWCAP_S390_VXRS_PDE, HWCAP_S390_SORT,
5071 HWCAP_S390_DFLT): Define.
5072
5073 2019-03-21 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
5074
5075 [BZ #24372]
5076 * iconv/iconvconfig.c (write_output): Add parentheses to get rid
5077 of compiler warning.
5078 * locale/programs/ld-collate.c (collate_output): Likewise.
5079
5080 2019-03-21 DJ Delorie <dj@redhat.com>
5081
5082 [BZ #24372]
5083 * iconv/iconvconfig.c (write_output): Replace floating point math
5084 with integer math to avoid imprecise results.
5085 * locale/programs/ld-collate.c (collate_output): Likewise.
5086
5087 2019-03-21 Stefan Liebler <stli@linux.ibm.com>
5088
5089 * sysdeps/s390/dl-procinfo.h (HWCAP_IMPORTANT):
5090 Add HWCAP_S390_VX and HWCAP_S390_VXE.
5091
5092 2019-03-20 mansayk <6688000@gmail.com>
5093
5094 [BZ #24296]
5095 * localedata/locales/tt_RU (day): Update from CLDR-34, fix errors.
5096 (abday): Likewise, but remove the trailing dots.
5097
5098 2019-03-19 Joseph Myers <joseph@codesourcery.com>
5099
5100 * sysdeps/unix/sysv/linux/aarch64/bits/hwcap.h (HWCAP_SB): New
5101 macro.
5102 (HWCAP_PACA): Likewise.
5103 (HWCAP_PACG): Likewise.
5104 * sysdeps/unix/sysv/linux/aarch64/dl-procinfo.c (_DL_HWCAP_COUNT):
5105 Increase to 32.
5106 (_dl_aarch64_cap_flags): Add new entries for new HWCAPs.
5107
5108 2019-03-16 Samuel Thibault <samuel.thibault@ens-lyon.org>
5109
5110 * hurd/hurd/signal.h (_hurd_critical_section_lock): Document how EINTR
5111 should be handled.
5112
5113 2019-03-15 Joseph Myers <joseph@codesourcery.com>
5114
5115 * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
5116 version to 5.0.
5117 (old_getpagesize): New syscall.
5118
5119 2019-03-15 Felix Yan <felixonmars@archlinux.org>
5120
5121 [BZ #24293]
5122 * localedata/locales/zh_TW (era): Add, support Minguo calendar.
5123 * localedata/locales/cmn_TW (era): Likewise.
5124 * localedata/locales/hak_TW (era): Likewise.
5125 * localedata/locales/lzh_TW (era): Likewise.
5126 * localedata/locales/nan_TW (era): Likewise.
5127
5128 2019-03-14 Adam Maris <amaris@redhat.com>
5129
5130 * malloc/malloc.c (_int_malloc): Check for large bin list
5131 corruption when inserting unsorted chunk.
5132
5133 2019-03-14 Florian Weimer <fweimer@redhat.com>
5134
5135 Remove obsolete, never-implemented XSI STREAMS declarations.
5136 * manual/terminal.texi (Allocation): Remove portability note and
5137 adjust example.
5138 * sysdeps/posix/sysconf.c (__sysconf): Always return -1 for
5139 _SC_STREAMS.
5140 * sysdeps/unix/sysv/linux/syscalls.list (getpmsg, putpmsg): Remove.
5141 * sysdeps/unix/inet/Subdirs (streams): Remove.
5142 * conform/Makefile (conformtest-headers-XPG42): Remove stropts.h.
5143 (conformtest-headers-UNIX98): Likewise.
5144 (conformtest-headers-XOPEN2K): Likewise.
5145 (conformtest-headers-POSIX2008): Likewise.
5146 * posix/compat-streams.c: New file.
5147 * posix/Makefile (routines): Add it.
5148 * posix/Versions (GLIBC_2.1): Add fattach, fdetach, getmsg,
5149 getpmsg, isastream, putmsg, putpmsg.
5150 (GLIBC_2.30): New section.
5151 * bits/stropts.h: Remove file.
5152 * bits/xtitypes.h: Likewise.
5153 * conform/data/stropts.h-data: Likewise.
5154 * include/stropts.h: Likewise.
5155 * include/sys/stropts.h: Likewise.
5156 * include/xtitypes.h: Likewise.
5157 * streams/Makefile: Likewise.
5158 * streams/fattach.c: Likewise.
5159 * streams/fdetach.c: Likewise.
5160 * streams/getmsg.c: Likewise.
5161 * streams/getpmsg.c: Likewise.
5162 * streams/isastream.c: Likewise.
5163 * streams/putmsg.c: Likewise.
5164 * streams/putpmsg.c: Likewise.
5165 * streams/stropts.h: Likewise.
5166 * streams/sys/stropts.h: Likewise.
5167 * sysdeps/ia64/bits/xtitypes.h: Likewise.
5168 * sysdeps/s390/bits/xtitypes.h: Likewise.
5169 * sysdeps/unix/sysv/linux/i386/getmsg.c: Likewise.
5170 * sysdeps/unix/sysv/linux/i386/putmsg.c: Likewise.
5171 * sysdeps/unix/sysv/linux/m68k/getmsg.c: Likewise.
5172 * sysdeps/unix/sysv/linux/m68k/putmsg.c: Likewise.
5173 * sysdeps/unix/sysv/linux/mips/getmsg.c: Likewise.
5174 * sysdeps/unix/sysv/linux/mips/putmsg.c: Likewise.
5175 * sysdeps/unix/sysv/linux/powerpc/getmsg.c: Likewise.
5176 * sysdeps/unix/sysv/linux/powerpc/putmsg.c: Likewise.
5177 * sysdeps/x86/bits/xtitypes.h: Likewise.
5178
5179 2019-03-14 Florian Weimer <fweimer@redhat.com>
5180
5181 * nss/tst-nss-files-alias-truncated.c (do_test): Load
5182 libnss_files.
5183 * nss/Makefile (tst-nss-files-alias-truncated): Link with -ldl,
5184 but not with libnss_files.
5185 (tst-nss-files-alias-truncated.out): Depend on libnss_files.
5186
5187 2019-03-14 Zack Weinberg <zackw@panix.com>
5188
5189 * scripts/check-obsolete-constructs.py (HeaderChecker.check):
5190 Specify encoding="utf-8" when opening headers to check.
5191
5192 2019-03-13 Joseph Myers <joseph@codesourcery.com>
5193
5194 * scripts/build-many-glibcs.py (Context.checkout): Default Linux
5195 version to 5.0.
5196 (Context.checkout_tar): Handle variable major version for Linux
5197 kernel.
5198
5199 2019-03-13 Florian Weimer <fweimer@redhat.com>
5200
5201 [BZ #24047]
5202 * sysdeps/mach/hurd/res_enable_icmp.c: New file.
5203
5204 2019-03-13 Zack Weinberg <zackw@panix.com>
5205
5206 * sysdeps/generic/inttypes.h, sysdeps/generic/stdint.h:
5207 Move to stdlib.
5208 * include/inttypes.h: Adjust to match.
5209 * include/stdint.h: New wrapper.
5210
5211 2019-03-13 Zack Weinberg <zackw@panix.com>
5212
5213 * scripts/check-obsolete-constructs.py: New test script.
5214 * scripts/check-installed-headers.sh: Remove tests for
5215 obsolete typedefs, superseded by check-obsolete-constructs.py.
5216 * Rules: Run scripts/check-obsolete-constructs.py over $(headers)
5217 as a special test. Update commentary.
5218 * posix/bits/types.h (__SQUAD_TYPE, __S64_TYPE): Define as __int64_t.
5219 (__UQUAD_TYPE, __U64_TYPE): Define as __uint64_t.
5220 Update commentary.
5221 * posix/sys/types.h (__u_intN_t): Remove.
5222 (u_int8_t): Typedef using __uint8_t.
5223 (u_int16_t): Typedef using __uint16_t.
5224 (u_int32_t): Typedef using __uint32_t.
5225 (u_int64_t): Typedef using __uint64_t.
5226
5227 2019-03-13 Stefan Liebler <stli@linux.ibm.com>
5228
5229 * elf/dl-sysdep.c (_dl_show_auxv): Remove condition and always
5230 call _dl_procinfo.
5231 * sysdeps/unix/sysv/linux/s390/dl-procinfo.h (_dl_procinfo):
5232 Ignore types other than AT_HWCAP.
5233 * sysdeps/sparc/dl-procinfo.h (_dl_procinfo): Likewise.
5234 * sysdeps/unix/sysv/linux/i386/dl-procinfo.h (_dl_procinfo):
5235 Likewise.
5236 * sysdeps/powerpc/dl-procinfo.h (_dl_procinfo): Adjust comment
5237 in the case of falling back to generic output mechanism.
5238 * sysdeps/unix/sysv/linux/arm/dl-procinfo.h (_dl_procinfo):
5239 Likewise.
5240
5241 2019-03-12 Florian Weimer <fweimer@redhat.com>
5242
5243 * elf/elf.h (DF_1_KMOD, DF_1_WEAKFILTER, DF_1_NOCOMMON): Define.
5244
5245 2019-03-12 Florian Weimer <fweimer@redhat.com>
5246
5247 [BZ #24047]
5248 resolv: Enable full ICMP errors for UDP DNS sockets
5249 * resolv/res_enable_icmp.c: New file.
5250 * resolv/Makefile (libresolv-routines): Add res_enable_icmp.
5251 * resolv/resolv-internal.h (__res_enable_icmp): Declare.
5252 * resolv/res_send.c (reopen): Call __res_enable_icmp on new
5253 socket.
5254
5255 2019-03-11 Mao Han <han_mao@c-sky.com>
5256
5257 * elf/elf.h (EF_CSKY_ABIMASK, EF_CSKY_OTHER, EF_CSKY_PROCESSOR)
5258 (EF_CSKY_ABIV1, EF_CSKY_ABIV2, SHT_CSKY_ATTRIBUTES): New defines.
5259
5260 2019-03-11 Mao Han <han_mao@c-sky.com>
5261
5262 * sysdeps/csky/abiv2/start.S: Mark lr as undefined.
5263 * sysdeps/unix/sysv/linux/csky/abiv2/clone.S: Likewise.
5264 * sysdeps/unix/sysv/linux/csky/abiv2/setcontext.S: Likewise.
5265
5266 2019-03-11 Mao Han <han_mao@c-sky.com>
5267
5268 * sysdeps/unix/sysv/linux/csky/sys/procfs.h: Use linux definition
5269 directly.
5270 * sysdeps/unix/sysv/linux/csky/sys/user.h: Remove user_regs
5271 definition.
5272
5273 2019-03-11 Mao Han <han_mao@c-sky.com>
5274
5275 * sysdeps/unix/sysv/linux/csky/register-dump.h: Adjust offset change.
5276 * sysdeps/unix/sysv/linux/csky/sys/ucontext.h: Remove __mask field
5277 in mcontext_t
5278
5279 2019-03-08 Mike FABIAN <mfabian@redhat.com>
5280
5281 [BZ #24307]
5282 * localedata/unicode-gen/Makefile (UNICODE_VERSION): Set to 12.0.0.
5283 * localedata/unicode-gen/DerivedCoreProperties.txt: Update to
5284 Unicode 12.0.0.
5285 * localedata/unicode-gen/EastAsianWidth.txt: Likewise.
5286 * localedata/unicode-gen/PropList.txt: Likewise.
5287 * localedata/unicode-gen/UnicodeData.txt: Likewise.
5288 * localedata/unicode-gen/ctype_compatibility_test_cases.py: U+108D
5289 became "Alphabetic" in Unicode 12.0.0. Adapt test case.
5290 * localedata/charmaps/UTF-8: Regenerate.
5291 * localedata/locales/i18n_ctype: Likewise.
5292 * localedata/locales/tr_TR: Likewise.
5293 * localedata/locales/translit_circle: Likewise.
5294 * localedata/locales/translit_cjk_compat: Likewise.
5295 * localedata/locales/translit_combining: Likewise.
5296 * localedata/locales/translit_compat: Likewise.
5297 * localedata/locales/translit_font: Likewise.
5298 * localedata/locales/translit_fraction: Likewise.
5299
5300 2019-03-07 Joseph Myers <joseph@codesourcery.com>
5301
5302 * stdio-common/vfscanf-internal.c (ARG): Break lines before rather
5303 than after operators.
5304 * sysdeps/mach/hurd/setitimer.c (timer_thread): Likewise.
5305 (setitimer_locked): Likewise.
5306 * sysdeps/mach/hurd/sigaction.c (__sigaction): Likewise.
5307 * sysdeps/mach/hurd/sigaltstack.c (__sigaltstack): Likewise.
5308 * sysdeps/mach/pagecopy.h (PAGE_COPY_FWD): Likewise.
5309 * sysdeps/mach/thread_state.h (machine_get_basic_state): Likewise.
5310 * sysdeps/powerpc/powerpc64/tst-ucontext-ppc64-vscr.c
5311 (PPC_CPU_SUPPORTED): Likewise.
5312 * sysdeps/unix/sysv/linux/alpha/a.out.h (N_TXTOFF): Likewise.
5313 * sysdeps/unix/sysv/linux/generic/wordsize-32/overflow.h
5314 (stat_overflow): Likewise.
5315 (statfs_overflow): Likewise.
5316 * sysdeps/unix/sysv/linux/tst-personality.c (do_test): Likewise.
5317 * sysdeps/unix/sysv/linux/tst-ttyname.c (eq_ttyname): Likewise.
5318 (eq_ttyname_r): Likewise.
5319 (run_chroot_tests): Likewise.
5320
5321 2019-03-07 Florian Weimer <fweimer@redhat.com>
5322
5323 * scripts/check-wrapper-headers.py (check_headers): Adjust Fortran
5324 header check.
5325
5326 2019-03-07 Martin Liska <mliska@suse.cz>
5327
5328 * math/Makefile: Change location where math-vector-fortran.h is
5329 installed.
5330 * math/finclude/math-vector-fortran.h: Move from bits/math-vector-fortran.h.
5331 * sysdeps/x86/fpu/finclude/math-vector-fortran.h: Move
5332 from sysdeps/x86/fpu/bits/math-vector-fortran.h.
5333 * scripts/check-installed-headers.sh: Skip Fortran header files.
5334 * scripts/check-wrapper-headers.py: Likewise.
5335
5336 2019-03-05 Adhemerval Zanella <adhemerval.zanella@linaro.org>
5337
5338 * nptl/nptl-init.c (__have_futex_clock_realtime,
5339 __have_futex_clock_realtime): Remove definition.
5340 (__pthread_initialize_minimal_internal): Remove FUTEX_CLOCK_REALTIME
5341 check test for !__ASSUME_FUTEX_CLOCK_REALTIME.
5342 * nptl/pthread_mutex_timedlock.c (__pthread_mutex_timedlock): Assume
5343 __ASSUME_FUTEX_CLOCK_REALTIME support.
5344 * sysdeps/unix/sysv/linux/i386/lowlevellock.S: Likewise.
5345 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.S: Likewise.
5346 * sysdeps/unix/sysv/linux/kernel-features.h
5347 (__ASSUME_FUTEX_CLOCK_REALTIME): Remove.
5348 * sysdeps/nptl/lowlevellock-futex.h (lll_futex_timed_wait_bitset):
5349 Adjust comment.
5350
5351 2019-03-05 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
5352
5353 * sysdeps/powerpc/powerpc64/power6/wcscpy.c (WCSCPY): Define to
5354 __wcscpy, then use libc_hidden_def and weak_alias to bind it to
5355 __GI___wcscpy and wcscpy.
5356
5357 2019-03-04 Florian Weimer <fweimer@redhat.com>
5358
5359 * sysdeps/generic/ldsodefs.h (_dl_sysdep_open_zero_fill): Remove
5360 declaration.
5361 * elf/dl-load.c (_dl_map_object_from_fd): Assume MAP_ANON is
5362 defined.
5363
5364 2019-03-04 Stefan Liebler <stli@linux.ibm.com>
5365
5366 * sysdeps/s390/s390-64/sysdep.h (ENTRY): Use alignment of 16byte.
5367 * sysdeps/s390/s390-32/sysdep.h: Likewise.
5368
5369 2019-03-02 TAMUKI Shoichi <tamuki@linet.gr.jp>
5370
5371 [BZ #24162]
5372 * localedata/locales/ja_JP (LC_TIME): Change the offset for Taisho
5373 gan-nen from 2 to 1. Problem reported by Morimitsu, Junji.
5374
5375 2019-03-01 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
5376
5377 * misc/tst-ldbl-error.c (do_one_test): Adapt for reuse by nldbl
5378 tests.
5379 (do_test): Likewise.
5380 * misc/tst-ldbl-warn.c (do_one_test): Likewise.
5381 (do_test_call_varg): Likewise.
5382 (do_test_call_rarg): Likewise.
5383 * sysdeps/ieee754/ldbl-opt/Makefile
5384 [subdir == misc] (tests-internal): Add tst-nldbl-warn,
5385 tst-nldbl-error.
5386 ($(objpfx)tst-nldbl-warn.c): New rule.
5387 ($(objpfx)tst-nldbl-error.c): Likewise.
5388 (CFLAGS-tst-nldbl-warn.c, CFLAGS-tst-nldbl-error.c):
5389 New variables.
5390
5391 2019-03-01 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
5392
5393 [BZ #23984]
5394 * include/bits/error-ldbl.h: New file.
5395 * include/error.h: Include stdarg.h. Declare internal functions
5396 __error_internal and __error_at_line_internal.
5397 * misc/Makefile (headers): Add bits/error-ldbl.h.
5398 * misc/bits/error-ldbl.h: New file.
5399 * misc/error.h [__LDBL_COMPAT]: Include bits/error-ldbl.h and
5400 avoid the inclusion of bits/error.h.
5401 * sysdeps/ieee754/ldbl-opt/Versions (libc): Add __nldbl_error,
5402 and __nldbl_error_at_line.
5403 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c: Include error.h.
5404 (__nldbl_error, __ndlbl_error_at_line): New functions.
5405 * sysdeps/ieee754/ldbl-opt/nldbl-compat.h: Include error.h.
5406 Redirect error and error_at_line.
5407 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Update.
5408 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
5409 Likewise.
5410 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
5411 Likewise.
5412 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist:
5413 Likewise.
5414 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist:
5415 Likewise.
5416 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
5417 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
5418 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
5419
5420 2019-03-01 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
5421
5422 [BZ #23984]
5423 * include/bits/err-ldbl.h: New file.
5424 * include/err.h: Add prototypes for the internal functions:
5425 __vwarnx_internal and __vwarn_internal.
5426 * misc/Makefile (headers): Add bits/err-ldbl.h.
5427 * misc/bits/err-ldbl.h: New file.
5428 * misc/err.h: Include bits/err-ldbl.h when __LDBL_COMPAT is
5429 defined, i.e.: when -mlong-double-64 is in use.
5430 * sysdeps/ieee754/ldbl-opt/Versions (libc): Add __nldbl_warn,
5431 __nldbl_vwarn, __nldbl_warnx, __nldbl_vwarnx, __nldbl_err,
5432 __nldbl_verr, __nldbl_errx, and __nldbl_verrx.
5433 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c: Include err.h.
5434 (VA_CALL): New macro.
5435 (__nldbl_vwarn, __nldbl_vwarnx, __nldbl_warn, __nldbl_warnx)
5436 (__nldbl_verr, __nldbl_verrx, __nldbl_err, __nldbl_errx): New
5437 functions.
5438 * sysdeps/ieee754/ldbl-opt/nldbl-compat.h: Include err.h and
5439 declare prototypes for the new functions.
5440 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Update.
5441 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
5442 Likewise.
5443 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
5444 Likewise.
5445 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist:
5446 Likewise.
5447 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist:
5448 Likewise.
5449 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
5450 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
5451 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
5452
5453 2019-03-01 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
5454
5455 * sysdeps/ieee754/ldbl-opt/Makefile
5456 [subdir == argp] (tests-internal): Add tst-nldbl-argp.
5457 [subdir == argp] ($(objpfx)tst-nldbl-argp.c): New rule.
5458 [subdir == argp] (CFLAGS-tst-nldbl-argp.c): New variable.
5459
5460 2019-03-01 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
5461
5462 [BZ #23983]
5463 * argp/Makefile (headers): Add bits/argp-ldbl.h.
5464 * argp/argp.h [defined __LDBL_COMPAT]: Include bits/argp-ldbl.h.
5465 * argp/bits/argp-ldbl.h: New file.
5466 * include/argp.h: Include stdarg.h. Add prototypes for internal
5467 functions: __argp_error_internal and __argp_failure_internal.
5468 * include/bits/argp-ldbl.h: New file.
5469 * sysdeps/ieee754/ldbl-opt/Versions (libc): Add
5470 __nldbl_argp_error and __nldbl_argp_failure.
5471 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c: Include argp.h.
5472 (__nldbl_argp_error, __nldbl_argp_failure): New functions.
5473 * sysdeps/ieee754/ldbl-opt/nldbl-compat.h: Include argp.h.
5474 Redirect argp_error and argp_failure calls.
5475 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Update.
5476 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
5477 Likewise.
5478 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
5479 Likewise.
5480 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist:
5481 Likewise.
5482 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist:
5483 Likewise.
5484 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
5485 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
5486 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
5487
5488 2019-03-01 Florian Weimer <fweimer@redhat.com>
5489
5490 [BZ #20419]
5491 * elf/tst-big-note-lib.S: Create a syntactically valid note.
5492 * elf/Makefile (tst-big-note-lib.so): Do not link with startup
5493 code, to avoid creating an ABI tag note.
5494 (modules-names-nobuild): Add tst-big-note-lib.
5495
5496 2019-03-01 Stefan Liebler <stli@linux.ibm.com>
5497
5498 * sysdeps/s390/wcscpy-vx.S: Add strong aliases to
5499 __wcscpy, __GI___wcscpy and weak alias to wcscpy.
5500
5501 2019-03-01 Florian Weimer <fweimer@redhat.com>
5502
5503 [BZ #20271]
5504 * sysdeps/unix/sysv/linux/netlink_assert_response.c
5505 (__netlink_assert_response): Add additional missing newlines.
5506
5507 2019-02-28 Joseph Myers <joseph@codesourcery.com>
5508
5509 * sysdeps/powerpc/powerpc32/dl-machine.c
5510 (__elf_machine_fixup_plt): Use space before '('.
5511 (__process_machine_rela): Likewise.
5512 * sysdeps/powerpc/powerpc32/register-dump.h (register_dump):
5513 Likewise.
5514 * sysdeps/powerpc/powerpc64/le/fpu/sfp-machine.h (TI_BITS):
5515 Likewise.
5516 * sysdeps/powerpc/powerpc64/register-dump.h (register_dump):
5517 Likewise.
5518 * sysdeps/powerpc/test-arith.c (union_t): Likewise.
5519 (pattern): Likewise.
5520 (delta): Likewise.
5521 (check_result): Likewise.
5522 (check_excepts): Likewise.
5523 (check_op): Likewise.
5524 (fail_xr): Likewise.
5525 * sysdeps/unix/alpha/sysdep.h (syscall_promote): Likewise.
5526 * sysdeps/unix/sysv/linux/alpha/a.out.h (AOUTHSZ): Likewise.
5527 (SCNHSZ): Likewise.
5528 * sysdeps/unix/sysv/linux/hppa/makecontext.c (FRAME_SIZE_BYTES):
5529 Likewise.
5530 (ARGS): Likewise.
5531 (__makecontext): Likewise.
5532 * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h (ucontext_t):
5533 Likewise.
5534
5535 2019-02-28 Florian Weimer <fweimer@redhat.com>
5536
5537 [BZ #23937]
5538 elf: Add test with a local IFUNC resolver.
5539 * elf/ifuncmain9.c: New file.
5540 * elf/ifuncmain9pic.c: Likewise.
5541 * elf/ifuncmain9picstatic.c: Likewise.
5542 * elf/ifuncmain9pie.c: Likewise.
5543 * elf/ifuncmain9static.c: Likewise.
5544 * elf/Makefile [multi-arch] (tests-ifuncstatic): Add
5545 ifuncmain9static, ifuncmain9picstatic.
5546 * elf/Makefile [multi-arch && build-shared] (tests-internal):
5547 Add ifuncmain9, ifuncmain9pic.
5548 * elf/Makefile [multi-arch && build-shared && have-fpie]
5549 (ifunc-pie-tests): Add ifuncmain9pie.
5550 (CFLAGS-ifuncmain9pic.c): Add $(pic-ccflag).
5551 (CFLAGS-ifuncmain9picstatic.c): Likewise.
5552 (CFLAGS-ifuncmain9pie.c): Add $(pie-ccflag).
5553
5554 2019-02-27 H.J. Lu <hongjiu.lu@intel.com>
5555
5556 * configure.ac (have-ifunc): New LIBC_CONFIG_VAR.
5557 * configure: Regenerated.
5558 * elf/Makefile: Run IFUNC tests if binutils supports IFUNC.
5559
5560 2019-02-27 Adhemerval Zanella <adhemerval.zanella@linaro.org>
5561
5562 * sysdeps/powerpc/powerpc32/power4/multiarch/wcscpy.c: Define ifunc
5563 symbol as __wcspcy instead of wcscpy.
5564
5565 2019-02-27 Samuel Thibault <samuel.thibault@ens-lyon.org>
5566
5567 * include/stdio.h (__renameat2): New hidden prototype.
5568 * stdio-common/renameat2.c (__renameat2): Add hidden definition.
5569 * sysdeps/mach/hurd/renameat.c (__renameat): Move implementation to...
5570 * sysdeps/mach/hurd/renameat2.c (__renameat2): ... new function.
5571 * sysdeps/unix/sysv/linux/renameat2.c (__renameat2): Add hidden definition.
5572
5573 2019-02-27 Joseph Myers <joseph@codesourcery.com>
5574
5575 * hurd/hurdinit.c (_hurd_init): Use braces around empty body of an
5576 if statement.
5577
5578 * benchtests/bench-strcpy.c (do_test): Use space before '('.
5579 * benchtests/bench-string.h (cmdline_process_function): Likewise.
5580 * benchtests/bench-strlen.c (do_test): Likewise.
5581 (test_main): Likewise.
5582 * catgets/gencat.c (read_old): Likewise.
5583 * elf/cache.c (load_aux_cache): Likewise.
5584 * iconvdata/bug-iconv8.c (do_test): Likewise.
5585 * math/test-tgmath-ret.c (do_test): Likewise.
5586 * nis/nis_call.c (rec_dirsearch): Likewise.
5587 * nis/nis_findserv.c (__nis_findfastest_with_timeout): Likewise.
5588 * nptl/tst-audit-threads.c (do_test): Likewise.
5589 * nptl/tst-cancel4-common.h (set_socket_buffer): Likewise.
5590 * nss/nss_test1.c (init): Likewise.
5591 * nss/test-netdb.c (test_hosts): Likewise.
5592 * posix/execvpe.c (maybe_script_execute): Likewise.
5593 * stdio-common/tst-fmemopen4.c (do_test): Likewise.
5594 * stdio-common/tst-printf.c (do_test): Likewise.
5595 * stdio-common/vfscanf-internal.c (__vfscanf_internal): Likewise.
5596 * stdlib/fmtmsg.c (NKEYWORDS): Likewise.
5597 * stdlib/qsort.c (STACK_SIZE): Likewise.
5598 * stdlib/test-canon.c (do_test): Likewise.
5599 * stdlib/tst-swapcontext1.c (do_test): Likewise.
5600 * string/memcmp.c (OPSIZ): Likewise.
5601 * string/test-strcpy.c (do_test): Likewise.
5602 (do_random_tests): Likewise.
5603 * string/test-strlen.c (do_test): Likewise.
5604 (test_main): Likewise.
5605 * string/test-strrchr.c (do_test): Likewise.
5606 (do_random_tests): Likewise.
5607 * string/tester.c (test_memrchr): Likewise.
5608 (test_memchr): Likewise.
5609 * sysdeps/generic/memcopy.h (OPSIZ): Likewise.
5610 * sysdeps/generic/unwind-dw2.c (execute_stack_op): Likewise.
5611 * sysdeps/generic/unwind-pe.h (read_sleb128): Likewise.
5612 (read_encoded_value_with_base): Likewise.
5613 * sysdeps/hppa/dl-machine.h (elf_machine_runtime_setup): Likewise.
5614 * sysdeps/hppa/fpu/feupdateenv.c (__feupdateenv): Likewise.
5615 * sysdeps/ia64/fpu/sfp-machine.h (TI_BITS): Likewise.
5616 * sysdeps/mach/hurd/spawni.c (__spawni): Likewise.
5617 * sysdeps/posix/spawni.c (maybe_script_execute): Likewise.
5618 * sysdeps/powerpc/fpu/tst-setcontext-fpscr.c (query_auxv):
5619 Likewise.
5620 * sysdeps/unix/sysv/linux/aarch64/bits/procfs.h (ELF_NGREG):
5621 Likewise.
5622 * sysdeps/unix/sysv/linux/arm/bits/procfs.h (ELF_NGREG): Likewise.
5623 * sysdeps/unix/sysv/linux/arm/ioperm.c (init_iosys): Likewise.
5624 * sysdeps/unix/sysv/linux/csky/bits/procfs.h (ELF_NGREG):
5625 Likewise.
5626 * sysdeps/unix/sysv/linux/m68k/bits/procfs.h (ELF_NGREG):
5627 Likewise.
5628 * sysdeps/unix/sysv/linux/nios2/bits/procfs.h (ELF_NGREG):
5629 Likewise.
5630 * sysdeps/unix/sysv/linux/spawni.c (maybe_script_execute):
5631 Likewise.
5632 * sysdeps/unix/sysv/linux/x86/bits/procfs.h (ELF_NGREG): Likewise.
5633 * sysdeps/unix/sysv/linux/x86/bits/sigcontext.h
5634 (FP_XSTATE_MAGIC2_SIZE): Likewise.
5635 * sysdeps/x86/fpu/sfp-machine.h (TI_BITS): Likewise.
5636 * time/test_time.c (main): Likewise.
5637
5638 2019-02-27 Adhemerval Zanella <adhemerval.zanella@linaro.org>
5639
5640 * wcsmbs/wcsnlen.c (__wcsnlen): Rewrite using wmemchr.
5641
5642 * wcsmbs/wcsncpy.c (__wcsncpy): Rewrite using wcsnlen, wmemset, and
5643 wmemcpy.
5644
5645 * wcsmbs/wcsncat.c (wcsncat): Rewrite using wcslen, wcsnlen, and
5646 wmemcpy.
5647
5648 * wcsmbs/wcscpy.c (__wcpcpy): Rewrite using wcslen and wmemcpy.
5649
5650 * include/wchar.h (__wcscpy): New prototype.
5651 * sysdeps/powerpc/powerpc32/power4/multiarch/wcscpy-ppc32.c
5652 (__wcscpy): Route internal symbol to generic implementation.
5653 * sysdeps/powerpc/powerpc32/power4/multiarch/wcscpy.c (wcscpy):
5654 Add internal __wcscpy alias.
5655 * sysdeps/powerpc/powerpc64/multiarch/wcscpy.c (wcscpy): Likewise.
5656 * sysdeps/s390/wcscpy.c (wcscpy): Likewise.
5657 * sysdeps/x86_64/multiarch/wcscpy.c (wcscpy): Likewise.
5658 * wcsmbs/wcscpy.c (wcscpy): Add
5659 * sysdeps/x86_64/multiarch/wcscpy-c.c (WCSCPY): Adjust macro to
5660 use generic implementation.
5661 * wcsmbs/wcscat.c (wcscat): Rewrite using wcslen and wcscpy.
5662
5663 * wcsmbs/wcpncpy.c (__wcpcpy): Rewrite using wcslen, wmemcpy, and
5664 wmemset.
5665
5666 * sysdeps/m68k/wcpcpy.c: Remove file.
5667 * wcsmbs/wcpcpy.c (__wcpcpy): Rewrite using wcslen and wmemcpy.
5668
5669 2019-02-26 Joseph Myers <joseph@codesourcery.com>
5670
5671 * sysdeps/arm/sysdep.h (#if condition): Break lines before rather
5672 than after operators.
5673 * sysdeps/mach/hurd/fork.c (__fork): Likewise.
5674 * sysdeps/mach/hurd/getcwd.c
5675 (__hurd_canonicalize_directory_name_internal): Likewise.
5676 * sysdeps/mach/hurd/htl/pt-mutex-consistent.c
5677 (pthread_mutex_consistent): Likewise.
5678 * sysdeps/mach/hurd/htl/pt-mutex-init.c (_pthread_mutex_init):
5679 Likewise.
5680 * sysdeps/mach/hurd/htl/pt-mutex-transfer-np.c
5681 (__pthread_mutex_transfer_np): Likewise.
5682 * sysdeps/mach/hurd/htl/pt-mutex-unlock.c
5683 (__pthread_mutex_unlock): Likewise.
5684 * sysdeps/mach/hurd/htl/pt-mutex.h (ROBUST_LOCK): Likewise.
5685 (mtx_owned_p): Likewise.
5686 * sysdeps/mach/hurd/htl/pt-mutexattr-getrobust.c
5687 (pthread_mutexattr_getrobust): Likewise.
5688 * sysdeps/mach/hurd/i386/init-first.c (init1): Likewise.
5689 * sysdeps/mach/hurd/i386/trampoline.c (_hurd_setup_sighandler):
5690 Likewise.
5691 * sysdeps/mach/hurd/ioctl.c (__ioctl): Likewise.
5692 * sysdeps/mach/hurd/jmp-unwind.c (_longjmp_unwind): Likewise.
5693 * sysdeps/mach/hurd/kill.c (__kill): Likewise.
5694 * sysdeps/mach/hurd/mig-reply.c (__mig_get_reply_port): Likewise.
5695 * sysdeps/mach/hurd/ptrace.c (ptrace): Likewise.
5696 * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Likewise.
5697 * sysdeps/unix/sysv/linux/aarch64/sysdep.h (#if condition):
5698 Likewise.
5699 * sysdeps/unix/sysv/linux/alpha/ioperm.c (process_cpuinfo):
5700 Likewise.
5701 * sysdeps/unix/sysv/linux/bits/timex.h (STA_RONLY): Likewise.
5702 * sysdeps/unix/sysv/linux/csky/sysdep.h (#if condition): Likewise.
5703 * sysdeps/unix/sysv/linux/generic/____longjmp_chk.c
5704 (____longjmp_chk): Likewise.
5705 * sysdeps/unix/sysv/linux/generic/futimesat.c (futimesat):
5706 Likewise.
5707 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h
5708 (INTERNAL_SYSCALL): Likewise.
5709 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h
5710 (INTERNAL_SYSCALL): Likewise.
5711 * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
5712 (__get_clockfreq_via_cpuinfo): Likewise.
5713
5714 * sysdeps/i386/dl-machine.h (elf_machine_rela): Add fall-through
5715 comments.
5716 * sysdeps/m68k/m680x0/fpu/s_cexp_template.c (s(__cexp)): Likewise.
5717 * sysdeps/m68k/memcopy.h (WORD_COPY_FWD): Likewise.
5718 (WORD_COPY_BWD): Likewise.
5719 * sysdeps/mach/hurd/ioctl.c (__ioctl): Likewise.
5720 * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
5721 Likewise.
5722 * sysdeps/s390/iso-8859-1_cp037_z900.c (TR_LOOP): Likewise.
5723 * sysdeps/mips/dl-machine.h (elf_machine_reloc): Move fall-through
5724 comment.
5725 * sysdeps/mips/dl-trampoline.c (__dl_runtime_resolve): Likewise.
5726
5727 2019-02-25 Joseph Myers <joseph@codesourcery.com>
5728
5729 * dirent/dirent.h [!_DIRENT_HAVE_D_NAMLEN
5730 && _DIRENT_HAVE_D_RECLEN] (_D_ALLOC_NAMLEN): Break lines before
5731 rather than after operators.
5732 * elf/cache.c (print_cache): Likewise.
5733 * gshadow/fgetsgent_r.c (__fgetsgent_r): Likewise.
5734 * htl/pt-getattr.c (__pthread_getattr_np): Likewise.
5735 * hurd/hurdinit.c (_hurd_setproc): Likewise.
5736 * hurd/hurdkill.c (_hurd_sig_post): Likewise.
5737 * hurd/hurdlookup.c (__file_name_lookup_under): Likewise.
5738 * hurd/hurdsig.c (_hurd_internal_post_signal): Likewise.
5739 (reauth_proc): Likewise.
5740 * hurd/lookup-at.c (__file_name_lookup_at): Likewise.
5741 (__file_name_split_at): Likewise.
5742 (__directory_name_split_at): Likewise.
5743 * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Likewise.
5744 * hurd/port2fd.c (_hurd_port2fd): Likewise.
5745 * iconv/gconv_dl.c (do_print): Likewise.
5746 * inet/netinet/in.h (struct sockaddr_in): Likewise.
5747 * libio/wstrops.c (_IO_wstr_seekoff): Likewise.
5748 * locale/setlocale.c (new_composite_name): Likewise.
5749 * malloc/memusagestat.c (main): Likewise.
5750 * misc/fstab.c (fstab_convert): Likewise.
5751 * nptl/pthread_mutex_unlock.c (__pthread_mutex_unlock_usercnt):
5752 Likewise.
5753 * nss/nss_compat/compat-grp.c (getgrent_next_nss): Likewise.
5754 (getgrent_next_file): Likewise.
5755 (internal_getgrnam_r): Likewise.
5756 (internal_getgrgid_r): Likewise.
5757 * nss/nss_compat/compat-initgroups.c (getgrent_next_nss):
5758 Likewise.
5759 (internal_getgrent_r): Likewise.
5760 * nss/nss_compat/compat-pwd.c (getpwent_next_nss_netgr): Likewise.
5761 (getpwent_next_nss): Likewise.
5762 (getpwent_next_file): Likewise.
5763 (internal_getpwnam_r): Likewise.
5764 (internal_getpwuid_r): Likewise.
5765 * nss/nss_compat/compat-spwd.c (getspent_next_nss_netgr):
5766 Likewise.
5767 (getspent_next_nss): Likewise.
5768 (internal_getspnam_r): Likewise.
5769 * pwd/fgetpwent_r.c (__fgetpwent_r): Likewise.
5770 * shadow/fgetspent_r.c (__fgetspent_r): Likewise.
5771 * string/strchr.c (STRCHR): Likewise.
5772 * string/strchrnul.c (STRCHRNUL): Likewise.
5773 * sysdeps/aarch64/fpu/fpu_control.h (_FPU_FPCR_IEEE): Likewise.
5774 * sysdeps/aarch64/sfp-machine.h (_FP_CHOOSENAN): Likewise.
5775 * sysdeps/csky/dl-machine.h (elf_machine_rela): Likewise.
5776 * sysdeps/generic/memcopy.h (PAGE_COPY_FWD_MAYBE): Likewise.
5777 * sysdeps/generic/symbol-hacks.h (__stack_chk_fail_local):
5778 Likewise.
5779 * sysdeps/gnu/netinet/ip_icmp.h (ICMP_INFOTYPE): Likewise.
5780 * sysdeps/gnu/updwtmp.c (TRANSFORM_UTMP_FILE_NAME): Likewise.
5781 * sysdeps/gnu/utmp_file.c (TRANSFORM_UTMP_FILE_NAME): Likewise.
5782 * sysdeps/hppa/jmpbuf-unwind.h (_JMPBUF_UNWINDS): Likewise.
5783 * sysdeps/mach/hurd/bits/stat.h (S_ISPARE): Likewise.
5784 * sysdeps/mach/hurd/dl-sysdep.c (_dl_sysdep_start): Likewise.
5785 (open_file): Likewise.
5786 * sysdeps/mach/hurd/htl/pt-mutexattr-setprotocol.c
5787 (pthread_mutexattr_setprotocol): Likewise.
5788 * sysdeps/mach/hurd/ioctl.c (__ioctl): Likewise.
5789 * sysdeps/mach/hurd/mmap.c (__mmap): Likewise.
5790 * sysdeps/mach/hurd/ptrace.c (ptrace): Likewise.
5791 * sysdeps/mach/hurd/spawni.c (__spawni): Likewise.
5792 * sysdeps/microblaze/dl-machine.h (elf_machine_type_class):
5793 Likewise.
5794 (elf_machine_rela): Likewise.
5795 * sysdeps/mips/mips32/sfp-machine.h (_FP_CHOOSENAN): Likewise.
5796 * sysdeps/mips/mips64/sfp-machine.h (_FP_CHOOSENAN): Likewise.
5797 * sysdeps/mips/sys/asm.h (multiple #if conditionals): Likewise.
5798 * sysdeps/posix/rename.c (rename): Likewise.
5799 * sysdeps/powerpc/novmx-sigjmp.c (__novmx__sigjmp_save): Likewise.
5800 * sysdeps/powerpc/sigjmp.c (__vmx__sigjmp_save): Likewise.
5801 * sysdeps/s390/fpu/fenv_libc.h (FPC_VALID_MASK): Likewise.
5802 * sysdeps/s390/utf8-utf16-z9.c (gconv_end): Likewise.
5803 * sysdeps/unix/grantpt.c (grantpt): Likewise.
5804 * sysdeps/unix/sysv/linux/a.out.h (N_TXTOFF): Likewise.
5805 * sysdeps/unix/sysv/linux/updwtmp.c (TRANSFORM_UTMP_FILE_NAME):
5806 Likewise.
5807 * sysdeps/unix/sysv/linux/utmp_file.c (TRANSFORM_UTMP_FILE_NAME):
5808 Likewise.
5809 * sysdeps/x86/cpu-features.c (get_common_indices): Likewise.
5810 * time/tzfile.c (__tzfile_compute): Likewise.
5811
5812 2019-02-22 Joseph Myers <joseph@codesourcery.com>
5813
5814 * benchtests/bench-memmem.c (simple_memmem): Break lines before
5815 rather than after operators.
5816 * benchtests/bench-skeleton.c (TIMESPEC_AFTER): Likewise.
5817 * crypt/md5.c (md5_finish_ctx): Likewise.
5818 * crypt/sha256.c (__sha256_finish_ctx): Likewise.
5819 * crypt/sha512.c (__sha512_finish_ctx): Likewise.
5820 * elf/cache.c (load_aux_cache): Likewise.
5821 * elf/dl-load.c (open_verify): Likewise.
5822 * elf/get-dynamic-info.h (elf_get_dynamic_info): Likewise.
5823 * elf/readelflib.c (process_elf_file): Likewise.
5824 * elf/rtld.c (dl_main): Likewise.
5825 * elf/sprof.c (generate_call_graph): Likewise.
5826 * hurd/ctty-input.c (_hurd_ctty_input): Likewise.
5827 * hurd/ctty-output.c (_hurd_ctty_output): Likewise.
5828 * hurd/dtable.c (reauth_dtable): Likewise.
5829 * hurd/getdport.c (__getdport): Likewise.
5830 * hurd/hurd/signal.h (_hurd_interrupted_rpc_timeout): Likewise.
5831 * hurd/hurd/sigpreempt.h (HURD_PREEMPT_SIGNAL_P): Likewise.
5832 * hurd/hurdfault.c (_hurdsig_fault_catch_exception_raise):
5833 Likewise.
5834 * hurd/hurdioctl.c (fioctl): Likewise.
5835 * hurd/hurdselect.c (_hurd_select): Likewise.
5836 * hurd/hurdsig.c (_hurdsig_abort_rpcs): Likewise.
5837 (STOPSIGS): Likewise.
5838 * hurd/hurdstartup.c (_hurd_startup): Likewise.
5839 * hurd/intr-msg.c (_hurd_intr_rpc_mach_msg): Likewise.
5840 * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Likewise.
5841 * hurd/msgportdemux.c (msgport_server): Likewise.
5842 * hurd/setauth.c (_hurd_setauth): Likewise.
5843 * include/features.h (__GLIBC_USE_DEPRECATED_SCANF): Likewise.
5844 * libio/libioP.h [IO_DEBUG] (CHECK_FILE): Likewise.
5845 * locale/programs/ld-ctype.c (set_class_defaults): Likewise.
5846 * localedata/tests-mbwc/tst_swscanf.c (tst_swscanf): Likewise.
5847 * login/tst-utmp.c (do_check): Likewise.
5848 (simulate_login): Likewise.
5849 * mach/lowlevellock.h (lll_lock): Likewise.
5850 (lll_trylock): Likewise.
5851 * math/test-fenv.c (ALL_EXC): Likewise.
5852 * math/test-fenvinline.c (ALL_EXC): Likewise.
5853 * misc/sys/cdefs.h (__attribute_deprecated_msg__): Likewise.
5854 * nis/nis_call.c (__do_niscall3): Likewise.
5855 * nis/nis_callback.c (cb_prog_1): Likewise.
5856 * nis/nis_defaults.c (searchaccess): Likewise.
5857 * nis/nis_findserv.c (__nis_findfastest_with_timeout): Likewise.
5858 * nis/nis_ismember.c (internal_ismember): Likewise.
5859 * nis/nis_local_names.c (nis_local_principal): Likewise.
5860 * nis/nss_nis/nis-rpc.c (_nss_nis_getrpcbyname_r): Likewise.
5861 * nis/nss_nisplus/nisplus-netgrp.c (_nss_nisplus_getnetgrent_r):
5862 Likewise.
5863 * nis/ypclnt.c (yp_match): Likewise.
5864 (yp_first): Likewise.
5865 (yp_next): Likewise.
5866 (yp_master): Likewise.
5867 (yp_order): Likewise.
5868 * nscd/hstcache.c (cache_addhst): Likewise.
5869 * nscd/initgrcache.c (addinitgroupsX): Likewise.
5870 * nss/nss_compat/compat-pwd.c (copy_pwd_changes): Likewise.
5871 (internal_getpwuid_r): Likewise.
5872 * nss/nss_compat/compat-spwd.c (copy_spwd_changes): Likewise.
5873 * posix/glob.h (__GLOB_FLAGS): Likewise.
5874 * posix/regcomp.c (peek_token): Likewise.
5875 (peek_token_bracket): Likewise.
5876 (parse_expression): Likewise.
5877 * posix/regexec.c (sift_states_iter_mb): Likewise.
5878 (check_node_accept_bytes): Likewise.
5879 * posix/tst-spawn3.c (do_test): Likewise.
5880 * posix/wordexp-test.c (testit): Likewise.
5881 * posix/wordexp.c (parse_tilde): Likewise.
5882 (exec_comm): Likewise.
5883 * posix/wordexp.h (__WRDE_FLAGS): Likewise.
5884 * resource/vtimes.c (TIMEVAL_TO_VTIMES): Likewise.
5885 * setjmp/sigjmp.c (__sigjmp_save): Likewise.
5886 * stdio-common/printf_fp.c (__printf_fp_l): Likewise.
5887 * stdio-common/tst-fileno.c (do_test): Likewise.
5888 * stdio-common/vfprintf-internal.c (vfprintf): Likewise.
5889 * stdlib/strfmon_l.c (__vstrfmon_l_internal): Likewise.
5890 * stdlib/strtod_l.c (round_and_return): Likewise.
5891 (____STRTOF_INTERNAL): Likewise.
5892 * stdlib/tst-strfrom.h (TEST_STRFROM): Likewise.
5893 * string/strcspn.c (STRCSPN): Likewise.
5894 * string/test-memmem.c (simple_memmem): Likewise.
5895 * termios/tcsetattr.c (tcsetattr): Likewise.
5896 * time/alt_digit.c (_nl_parse_alt_digit): Likewise.
5897 * time/asctime.c (asctime_internal): Likewise.
5898 * time/strptime_l.c (__strptime_internal): Likewise.
5899 * time/sys/time.h (timercmp): Likewise.
5900 * time/tzfile.c (__tzfile_compute): Likewise.
5901
5902 2019-02-21 Patsy Griffin Franklin <pfrankli@redhat.com>
5903
5904 [BZ #21915]
5905 * nss/tst-nss-files-hosts-long.root/etc/host.conf: New file.
5906
5907 2019-02-21 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
5908
5909 * argp/argp-help.c (__argp_error_internal): New function,
5910 renamed from __argp_error, but that takes a 'mode_flags'
5911 parameter to control the format of long double parameters.
5912 (__argp_error): Converted into a call __argp_error_internal.
5913 (__argp_failure_internal): New function, renamed from
5914 __argp_failure, but that takes a 'mode_flags' parameter.
5915 (__argp_failure): Converted into a call __argp_failure_internal.
5916 * misc/err.c (__vwarnx_internal): New function, renamed from
5917 vwarnx, but that takes a 'mode_flags' parameter.
5918 (vwarnx): Converted into a call to __vwarnx_internal.
5919 (__vwarn_internal): New function, renamed from vwarn, but that
5920 takes a 'mode_flags' parameter.
5921 (vwarn): Converted into a call to __vwarn_internal.
5922 * misc/error.c (error_tail): Add 'mode_flags' parameter. Update
5923 call to __vfxprintf with 'mode_flags'.
5924 (__error_internal): New function, renamed from error, but that
5925 takes a 'mode_flags' parameter.
5926 (error): Converted into a call to __error_internal.
5927 (__error_at_line_internal): New function, renamed from
5928 error_at_line, but that takes a 'mode_flags' parameter.
5929 (error_at_line): Converted into a call to
5930 __error_at_line_internal.
5931 * include/stdio.h (__vfxprintf): Add mode_flags parameter.
5932 * stdio-common/fxprintf.c (locked_vfxprintf, __vfxprintf):
5933 Likewise.
5934
5935 2019-02-20 Martin Liska <mliska@suse.cz>
5936
5937 * math/Makefile: Install math-vector-fortran.h.
5938 * bits/math-vector-fortran.h: New file.
5939 * sysdeps/x86/fpu/bits/math-vector-fortran.h: New file.
5940
5941 2019-02-20 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
5942
5943 * sysdeps/powerpc/powerpc64/le/configure.ac: Remove test.
5944 * sysdeps/powerpc/powerpc64/le/configure: Regenerate.
5945
5946 2019-02-19 Wolfram Sang <wsa@the-dreams.de>
5947
5948 * nptl/pthread_mutex_trylock.c: Fix comment.
5949
5950 2019-02-19 Carlos O'Donell <carlos@redhat.com>
5951
5952 * nptl/pthread_tryjoin.c: Fix comment.
5953
5954 2019-02-18 Joseph Myers <joseph@codesourcery.com>
5955
5956 [BZ #24231]
5957 * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Add break
5958 after R_SPARC_H34 case.
5959
5960 2019-02-18 Florian Weimer <fweimer@redhat.com>
5961
5962 * resolv/compat-gethnamaddr.c (Dprintf): Remove definition.
5963 (getanswer): Do not call Dprintf.
5964 (res_gethostbyname2_context): Likewise.
5965 (res_gethostbyaddr_context): Likewise.
5966
5967 2019-02-18 Florian Weimer <fweimer@redhat.com>
5968
5969 * libio/libio.h (_IO_stdin, _IO_stdout, _IO_stderr): Remove
5970 declaration.
5971 * libio/stdio.c (AL, AL2, _IO_stdin, _IO_stdout, _IO_stderr):
5972 Remove definitions.
5973 * libio/stdfiles.c: Update comment.
5974 * libio/oldstdfiles.c (_IO_check_libio): Update comment. Do not
5975 set _IO_stdin, _IO_stdout, _IO_stderr.
5976 * libio/libioP.h (_IO_fake_stdiobuf): Remove unused declaration.
5977 [SHLIB_COMPAT (libc, GLIBC_2_0, GLIBC_2_1)] (_IO_legacy_file): New
5978 inline function.
5979 (_IO_deallocate_file): New inline function.
5980 * libio/iolibio.h (_IO_vprintf): Remove definition.
5981 * libio/iofclose.c (_IO_new_fclose): Use _IO_deallocate_file.
5982 * libio/oldiofclose.c (_IO_old_fclose): Likewise.
5983 * libio/iofwide.c (_IO_fwide): Use __glibc_unlikely and
5984 _IO_legacy_file.
5985 * libio/oldfileops.c (_IO_old_file_init_internal): Remove
5986 __builtin_expect. Use _IO_legacy_file.
5987
5988 2019-02-18 Stefan Liebler <stli@linux.ibm.com>
5989
5990 * sysdeps/unix/sysv/linux/tst-clone3.c (do_test):
5991 Initialize ctid with a known value and remove update of ctid
5992 after clone.
5993 (wait_tid): Adjust arguments and call futex_wait with ctid_val
5994 as assumed current value of ctid_ptr.
5995
5996 2019-02-16 Florian Weimer <fweimer@redhat.com>
5997
5998 Check that non-sysdeps headers have wrapper headers.
5999 * scripts/check-wrapper-headers.py: New file.
6000 * Makefile (tests-special): Add check-wrapper-headers.out.
6001 (check-wrapper-headers.out): New target.
6002 * Rules (tests-special): Add check-wrapper-headers.out.
6003 (check-wrapper-headers.out): New target.
6004
6005 2019-02-16 Florian Weimer <fweimer@redhat.com>
6006
6007 Add missing header wrappers under include/.
6008 * include/ar.h: New file.
6009 * include/bits/mqueue2.h: Likewise.
6010 * include/bits/stdio.h: Likewise.
6011 * include/bits/stdio2.h: Likewise.
6012 * include/fstab.h: Likewise.
6013 * include/fts.h: Likewise.
6014 * include/lastlog.h: Likewise.
6015 * include/netinet/icmp6.h: Likewise.
6016 * include/netinet/igmp.h: Likewise.
6017 * include/netinet/ip6.h: Likewise.
6018 * include/re_comp.h: Likewise.
6019 * include/regexp.h: Likewise.
6020 * include/rpcsvc/bootparam.h: Likewise.
6021 * include/rpcsvc/yp_prot.h: Likewise.
6022 * include/sys/random.h: Likewise.
6023 * include/sys/stropts.h: Likewise.
6024 * include/sys/ttychars.h: Likewise.
6025 * include/sys/vfs.h: Likewise.
6026 * include/wait.h: Likewise.
6027
6028 2019-02-16 Florian Weimer <fweimer@redhat.com>
6029
6030 * nptl_db/proc_service.h: Move to ...
6031 * sysdeps/nptl/proc_service.h: ... here.
6032 * nptl_db/thread_db.h: Move to ...
6033 * sysdeps/nptl/thread_db.h: ... here.
6034 * nptl/descr.h: Include <thread_db.h>.
6035
6036 2019-02-15 Adhemerval Zanella <adhemerval.zanella@linaro.org>
6037
6038 * io/Makefile (tests): Add tst-lockf.
6039 * io/lockf.c (lockf): Use __fcntl and only define for
6040 !__OFF_T_MATCHES_OFF64_T.
6041 * io/lockf64.c (__lockf64): Call __fcntl64 and alias to lockf for
6042 __OFF_T_MATCHES_OFF64_T case.
6043 * io/tst-lockf.c: New file.
6044 * sysdeps/unix/sysv/linux/i386/lockf64.c: Remove file.
6045 * sysdeps/unix/sysv/linux/arm/lockf64.c: Likewise.
6046 * sysdeps/unix/sysv/linux/m68k/lockf64.c: Likewise.
6047 * sysdeps/unix/sysv/linux/mips/mips32/lockf64.c: Likewise.
6048 * sysdeps/unix/sysv/linux/mips/mips64/n32/lockf64.c: Likewise.
6049 * sysdeps/unix/sysv/linux/powerpc/powerpc32/lockf64.c: Likewise.
6050 * sysdeps/unix/sysv/linux/s390/s390-32/lockf64.c: Likewise.
6051 * sysdeps/unix/sysv/linux/sh/lockf64.c: Likewise.
6052 * sysdeps/unix/sysv/linux/sparc/sparc32/lockf64.c: Likewise.
6053
6054 2019-02-15 Florian Weimer <fweimer@redhat.com>
6055
6056 [BZ #24211]
6057 * nptl/pthread_join_common.c (__pthread_timedjoin_ex): Do not read
6058 pd->result after the thread descriptor has been freed.
6059
6060 2019-02-15 Joseph Myers <joseph@codesourcery.com>
6061
6062 * sunrpc/tst-svc_register.c (rpcbind_address): Remove qualifier
6063 from function return type.
6064
6065 * setjmp/tst-setjmp.c (jump): Use __attribute__ ((__noreturn__)).
6066
6067 2019-02-14 Jan Kratochvil <jan.kratochvil@redhat.com>
6068
6069 * scripts/test_printers_common.py: Set TERM to a known harmless
6070 value.
6071
6072 2019-02-14 Joseph Myers <joseph@codesourcery.com>
6073
6074 * sunrpc/xdr.c (xdr_int): Add fall-through comment.
6075 (xdr_u_int): Likewise.
6076 (xdr_enum): Likewise.
6077 (xdr_bytes): Reword fall-through comment.
6078 (xdr_string): Likewise.
6079
6080 2019-02-14 Adhemerval Zanella <adhemerval.zanella@linaro.org>
6081
6082 [BZ #2421]
6083 * nptl/Makefile (lpthread-routines): Remove lll_timedwait_tid.
6084 (tests): Add tst-join8 tst-join9.
6085 * nptl/lll_timedwait_tid.c: Remove file.
6086 * sysdeps/sparc/sparc32/lll_timedwait_tid.c: Likewise.
6087 * sysdeps/unix/sysv/linux/i386/lll_timedwait_tid.c: Likewise.
6088 * sysdeps/sysv/linux/x86_64/lll_timedwait_tid.c: Likewise.
6089 * nptl/pthread_join_common.c (timedwait_tid): New function.
6090 (__pthread_timedjoin_ex): Act as cancellation entrypoint is block
6091 is set.
6092 * nptl/tst-join5.c (thread_join): New function.
6093 (tf1, tf2, do_test): Use libsupport and add pthread_timedjoin_np
6094 check.
6095 * nptl/tst-join8.c: New file.
6096 * nptl/tst-join9.c: Likewise.
6097 * sysdeps/nptl/lowlevellock-futex.h (lll_futex_wait_cancel,
6098 lll_futex_timed_wait_cancel): Add generic macros.
6099 * sysdeps/nptl/lowlevellock.h (__lll_timedwait_tid, lll_wait_tid):
6100 Remove definitions.
6101 * sysdeps/unix/sysv/linux/i386/lowlevellock.h: Likewise.
6102 * sysdeps/unix/sysv/linux/sparc/lowlevellock.h: Likewise.
6103 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h: Likewise.
6104 * sysdeps/sparc/sparc32/lowlevellock.c (__lll_timedwait_tid):
6105 Remove function.
6106 * sysdeps/unix/sysv/linux/i386/lowlevellock.S (__lll_timedwait_tid):
6107 Likewise.
6108 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.S: Likewise.
6109 * sysdeps/unix/sysv/linux/lowlevellock-futex.h
6110 (lll_futex_timed_wait_cancel): New macro.
6111
6112 2019-02-14 Wilco Dijkstra <wdijkstr@arm.com>
6113
6114 * benchtests/Makefile: Add malloc-simple benchmark.
6115 * benchtests/bench-malloc-simple.c: New benchmark.
6116
6117 2019-02-14 Siddhesh Poyarekar <siddhesh@sourceware.org>
6118
6119 * benchtests/bench-memmove.c (do_one_test): Remove unused
6120 ORIG_SRC.
6121 (do_test): Adjust.
6122 * benchtests/bench-memmove-large.c (do_one_test): Remove unused
6123 ORIG_SRC.
6124 (do_test): Adjust.
6125
6126 2019-01-13 Jim Wilson <jimw@sifive.com>
6127
6128 [BZ #24040]
6129 * elf/Makefile (CFLAGS-tst-unwind-main.c): Add -DUSE_PTHREADS=0.
6130 * elf/tst-unwind-main.c: If USE_PTHEADS, include pthread.h and error.h
6131 (func): New.
6132 (main): If USE_PTHREADS, call pthread_create to run func. Otherwise
6133 call func directly.
6134 * nptl/Makefile (tests): Add tst-unwind-thread.
6135 (CFLAGS-tst-unwind-thread.c): Define.
6136 * nptl/tst-unwind-thread.c: New file.
6137 * sysdeps/unix/sysv/linux/riscv/clone.S (__thread_start): Mark ra
6138 as undefined.
6139
6140 2019-02-13 Joseph Myers <joseph@codesourcery.com>
6141
6142 * iconvdata/cns11643.h (ucs4_to_cns11643): Adjust fall-through
6143 comment wording.
6144 * nis/nis_call.c (__do_niscall3): Likewise.
6145
6146 * catgets/gencat.c (normalize_line): Use braces around empty
6147 'else' body.
6148 * include/stap-probe.h [!USE_STAP_PROBE && !__ASSEMBLER__]
6149 (STAP_PROBE0): Use do {} while (0) for do-nothing definition.
6150 [!USE_STAP_PROBE && !__ASSEMBLER__] (STAP_PROBE1): Likewise.
6151 [!USE_STAP_PROBE && !__ASSEMBLER__] (STAP_PROBE2): Likewise.
6152 [!USE_STAP_PROBE && !__ASSEMBLER__] (STAP_PROBE3): Likewise.
6153 [!USE_STAP_PROBE && !__ASSEMBLER__] (STAP_PROBE4): Likewise.
6154 * libio/libio.h (_IO_funlockfile): Use ((void) 0) for do-nothing
6155 definition.
6156
6157 * support/test-container.c (recursive_remove): Use FAIL_EXIT1 if
6158 execlp returns.
6159
6160 2019-02-12 Wilco Dijkstra <wdijkstr@arm.com>
6161
6162 * benchtests/bench-strcasecmp.c (stupid_strcasecmp): Remove.
6163 * benchtests/bench-strcasestr.c (stupid_strcasestr): Remove.
6164 * benchtests/bench-strchr.c (stupid_strchr): Remove.
6165 * benchtests/bench-strcmp.c (stupid_strcmp): Remove.
6166 * benchtests/bench-strcspn.c (stupid_strcspn): Remove.
6167 * benchtests/bench-strlen.c (builtin_strlen): Remove.
6168 * benchtests/bench-strncasecmp.c (stupid_strncasecmp): Remove.
6169 * benchtests/bench-strncmp.c (stupid_strncmp): Remove.
6170 * benchtests/bench-strpbrk.c (stupid_strpbrk): Remove.
6171 * benchtests/bench-strspn.c (stupid_strspn): Remove.
6172 * benchtests/Makefile: Remove bench-bcopy.c and bench-bzero.c.
6173 * benchtests/bench-bcopy.c: Delete file.
6174 * benchtests/bench-bzero.c: Likewise.
6175 * benchtests/bench-memccpy.c (stupid_memccpy): Remove.
6176 (simple_memccpy): Remove.
6177 (generic_memccpy): Add function.
6178 * benchtests/bench-memcpy.c: (builtin_memcpy): Remove.
6179 * benchtests/bench-memmove.c (simple_bcopy): Remove.
6180 * benchtests/bench-mempcpy.c (simple_mempcpy): Remove.
6181 (generic_mempcpy): Add new function.
6182 * benchtests/bench-memset.c (simple_bzero): Remove.
6183 (builtin_bzero): Remove.
6184 (builtin_memset): Remove.
6185 * benchtests/bench-rawmemchr.c (simple_rawmemchr): Remove.
6186 (generic_rawmemchr): Add new function.
6187
6188 2019-02-12 Florian Weimer <fweimer@redhat.com>
6189
6190 * nss/getent.c (ahosts_keys_int): Include IPv6 scope ID in output.
6191
6192 2019-02-12 Adhemerval Zanella <adhemerval.zanella@linaro.org>
6193
6194 [BZ #24122]
6195 * elf/Makefile (tests): Add tst-audit13.
6196 (modules-names): Add tst-audit13mod1.
6197 (tst-audit13.out, LDFLAGS-tst-audit13mod1.so, tst-audit13-ENV): New
6198 rule.
6199 * elf/tst-audit13.c: New file.
6200 * elf/tst-audit13mod1.c: Likewise.
6201
6202 2019-02-12 Florian Weimer <fweimer@redhat.com>
6203
6204 [BZ #24122]
6205 * elf/rtld.c (unload_audit_module): New function.
6206 (report_audit_module_load_error): Likewise.
6207 (load_audit_module): Likewise. Extracted from dl_main. Call
6208 _dl_close if the laversion symbol cannot be found. Use early
6209 returns for error handling. Add malloc error check. Check for a
6210 zero return value from la_version. Remove spurious comment about
6211 static TLS initialization. Remove useless casts.
6212 (notify_audit_modules_of_loaded_object): New function. Extracted
6213 from dl_main.
6214 (load_audit_module): Likewise.
6215 (dl_main): Call load_audit_modules.
6216
6217 2019-02-12 Joseph Myers <joseph@codesourcery.com>
6218
6219 * elf/dl-exception.c (_dl_exception_create_format): Add
6220 fall-through comments.
6221 * elf/ldconfig.c (parse_conf_include): Likewise.
6222 * elf/rtld.c (print_statistics): Likewise.
6223 * locale/programs/charmap.c (parse_charmap): Likewise.
6224 * misc/mntent_r.c (__getmntent_r): Likewise.
6225 * posix/wordexp.c (parse_arith): Likewise.
6226 (parse_backtick): Likewise.
6227 * resolv/ns_ttl.c (ns_parse_ttl): Likewise.
6228 * sysdeps/x86/cpu-features.c (init_cpu_features): Likewise.
6229 * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Likewise.
6230
6231 2019-02-11 Paul A. Clarke <pc@us.ibm.com>
6232
6233 * sysdeps/powerpc/fpu/e_sqrt.c (__slow_ieee754_sqrtf):
6234 Use float instead of double.
6235
6236 2019-02-11 TAMUKI Shoichi <tamuki@linet.gr.jp>
6237
6238 * time/strftime_l.c: Fix a few whitespace arrangement inconsistencies.
6239
6240 2019-02-08 Joseph Myers <joseph@codesourcery.com>
6241
6242 * sysdeps/powerpc/bits/mathinline.h: Remove.
6243
6244 2019-02-08 Florian Weimer <fweimer@redhat.com>
6245
6246 math: Enable <bits/math-finite.h> sysdeps override, as used on ia64.
6247 * math/bits/math-finite.h: Move to ...
6248 * bits/math-finite.h: ... here.
6249
6250 2019-02-08 Florian Weimer <fweimer@redhat.com>
6251
6252 * sysdeps/generic/bits/unistd_ext.h: Move to ...
6253 * bits/unistd_ext.h: here.
6254
6255 2019-02-08 Patsy Griffin Franklin <pfrankli@redhat.com>
6256
6257 [BZ #21915]
6258 * nss/Makefile (test-container): Add tst-nss-files-hosts-long.
6259 * nss/tst-nss-files-hosts-long.c: New file.
6260 * nss/tst-nss-files-hosts-long.root: New directory.
6261 * nss/tst-nss-files-hosts-long.root/etc: Likewise.
6262 * nss/tst-nss-files-hosts-long.root/etc/hosts: New file.
6263
6264 2019-02-08 Florian Weimer <fweimer@redhat.com>
6265
6266 * include/bits/unistd_ext.h: Remove file.
6267 * posix/bits/unistd_ext.h: Move to ...
6268 * sysdeps/generic/bits/unistd_ext.h: ... here.
6269
6270 2019-02-08 Florian Weimer <fweimer@redhat.com>
6271
6272 * include/bits/unistd_ext.h: New file.
6273
6274 2019-02-08 TAMUKI Shoichi <tamuki@linet.gr.jp>
6275
6276 * time/tst-strftime2.c: Use array_length macros instead of magic
6277 numbers.
6278
6279 2019-02-08 Florian Weimer <fweimer@redhat.com>
6280
6281 [BZ #24161]
6282 * sysdeps/nptl/fork.h (__run_fork_handlers): Add multiple_threads
6283 argument.
6284 * nptl/register-atfork.c (__run_fork_handlers): Only perform
6285 locking if the new do_locking argument is true.
6286 * sysdeps/nptl/fork.c (__libc_fork): Pass multiple_threads to
6287 __run_fork_handlers.
6288
6289 2019-02-08 Florian Weimer <fweimer@redhat.com>
6290
6291 [BZ #6399]
6292 Linux: Add gettid system call wrapper.
6293 * posix/Makefile (headers): Add bits/unistd_ext.h.
6294 * posix/bits/unistd_ext.h: New file.
6295 * posix/unistd.h: Include it.
6296 * manual/process.texi (Process Identification): Document gettid.
6297 * sysdeps/unix/sysv/linux/Makefile [subdir == misc] (tests): Add
6298 tst-gettid, tst-gettid-kill.
6299 (tst-gettid): Link with $(shared-thread-library).
6300 * sysdeps/unix/sysv/linux/Version (GLIBC_2.30): Export gettid.
6301 * sysdeps/unix/sysv/linux/bits/unistd_ext.h: New file.
6302 * sysdeps/unix/sysv/linux/bits/syscalls.list (gettid): Add.
6303 * sysdeps/unix/sysv/linux/bits/tst-gettid.c: New file.
6304 * sysdeps/unix/sysv/linux/bits/tst-gettid-kill.c: Likewise.
6305 * sysdeps/unix/sysv/linux/aarch64/libc.abilist (GLIBC_2.30):
6306 Add gettid.
6307 * sysdeps/unix/sysv/linux/alpha/libc.abilist (GLIBC_2.30):
6308 Likewise.
6309 * sysdeps/unix/sysv/linux/arm/libc.abilist (GLIBC_2.30): Likewise.
6310 * sysdeps/unix/sysv/linux/csky/libc.abilist (GLIBC_2.30):
6311 Likewise.
6312 * sysdeps/unix/sysv/linux/hppa/libc.abilist (GLIBC_2.30):
6313 Likewise.
6314 * sysdeps/unix/sysv/linux/i386/libc.abilist (GLIBC_2.30):
6315 Likewise.
6316 * sysdeps/unix/sysv/linux/ia64/libc.abilist (GLIBC_2.30):
6317 Likewise.
6318 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist (GLIBC_2.30):
6319 Likewise.
6320 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist (GLIBC_2.30):
6321 Likewise.
6322 * sysdeps/unix/sysv/linux/microblaze/libc.abilist (GLIBC_2.30):
6323 Likewise.
6324 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist
6325 (GLIBC_2.30): Likewise.
6326 * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist
6327 (GLIBC_2.30): Likewise.
6328 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist
6329 (GLIBC_2.30): Likewise.
6330 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist
6331 (GLIBC_2.30): Likewise.
6332 * sysdeps/unix/sysv/linux/nios2/libc.abilist (GLIBC_2.30):
6333 Likewise.
6334 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist
6335 (GLIBC_2.30): Likewise.
6336 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist
6337 (GLIBC_2.30): Likewise.
6338 * sysdeps/unix/sysv/linux/powerpc/powerpc64/be/libc.abilist
6339 (GLIBC_2.30): Likewise.
6340 * sysdeps/unix/sysv/linux/powerpc/powerpc64/le/libc.abilist
6341 (GLIBC_2.30): Likewise.
6342 * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist (GLIBC_2.30):
6343 Likewise.
6344 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist (GLIBC_2.30):
6345 Likewise.
6346 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist (GLIBC_2.30):
6347 Likewise.
6348 * sysdeps/unix/sysv/linux/sh/libc.abilist (GLIBC_2.30): Likewise.
6349 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist (GLIBC_2.30):
6350 Likewise.
6351 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist (GLIBC_2.30):
6352 Likewise.
6353 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist (GLIBC_2.30):
6354 Likewise.
6355 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist (GLIBC_2.30):
6356 Likewise.
6357 * sysdeps/unix/sysv/linux/tst-setgetname.c (gettid): Remove.
6358
6359 2019-02-08 Florian Weimer <fweimer@redhat.com>
6360
6361 * rt/clock-compat.c (COMPAT_REDIRECT): Turn librt forwarders into
6362 compatibility symbols.
6363
6364 2019-02-07 Stefan Liebler <stli@linux.ibm.com>
6365
6366 [BZ #24180]
6367 * nptl/pthread_mutex_trylock.c (__pthread_mutex_trylock):
6368 Add compiler barriers and comments.
6369
6370 2019-02-07 Florian Weimer <fweimer@redhat.com>
6371
6372 * include/array_length.h (array_length): Do not use a statement
6373 expression and _Static_assert, so that array_length can be used at
6374 file scope and as a constant expression.
6375
6376 2019-02-07 Florian Weimer <fweimer@redhat.com>
6377
6378 * support/xdlfcn.h (xdlmopen): Declare.
6379 * support/xdlmopen.c: New file.
6380 * support/Makefile (libsupport-routines): Add xdlmopen.
6381
6382 2019-02-06 Joseph Myers <joseph@codesourcery.com>
6383
6384 * elf/dl-load.h (_dl_postprocess_loadcmd): Use __always_inline
6385 before return type, without separate inline.
6386 * elf/dl-tunables.c (maybe_enable_malloc_check): Likewise.
6387 * elf/dl-tunables.h (tunable_is_name): Likewise.
6388 * malloc/malloc.c (do_set_trim_threshold): Likewise.
6389 (do_set_top_pad): Likewise.
6390 (do_set_mmap_threshold): Likewise.
6391 (do_set_mmaps_max): Likewise.
6392 (do_set_mallopt_check): Likewise.
6393 (do_set_perturb_byte): Likewise.
6394 (do_set_arena_test): Likewise.
6395 (do_set_arena_max): Likewise.
6396 (do_set_tcache_max): Likewise.
6397 (do_set_tcache_count): Likewise.
6398 (do_set_tcache_unsorted_limit): Likewise.
6399 * nis/nis_subr.c (count_dots): Likewise.
6400 * nptl/allocatestack.c (advise_stack_range): Likewise.
6401 * sysdeps/ieee754/dbl-64/s_sin.c (do_cos): Likewise.
6402 (do_sin): Likewise.
6403 (reduce_sincos): Likewise.
6404 (do_sincos): Likewise.
6405 * sysdeps/unix/sysv/linux/x86/elision-conf.c
6406 (do_set_elision_enable): Likewise.
6407 (TUNABLE_CALLBACK_FNDECL): Likewise.
6408
6409 2019-02-06 Florian Weimer <fweimer@redhat.com>
6410
6411 * support/xdlfcn.c (xdlopen, xdlclose): Do not call dlerror.
6412 (xdlsym): Use dlerror to detect a NULL symbol.
6413
6414 2019-02-06 Florian Weimer <fweimer@redhat.com>
6415
6416 * sysdeps/unix/sysv/linux/i386/lowlevellock.h: Do not include
6417 <stap-probe.h>.
6418 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h: Likewise.
6419
6420 2019-02-06 Stefan Liebler <stli@linux.ibm.com>
6421
6422 * libio/tst-bz24153.c (wide): Use wide char format specifier.
6423
6424 2019-02-06 Stefan Liebler <stli@linux.ibm.com>
6425
6426 * sysdeps/s390/wmemcmp-vx.S: Add strong alias to
6427 __wmemcmp and weak alias to wmemcmp.
6428
6429 2019-02-06 Stefan Liebler <stli@linux.ibm.com>
6430
6431 [BZ #23403]
6432 * nptl/allocatestack.c (allocate_stack): Align pointer pd for
6433 TLS_TCB_AT_TP tls variant.
6434 * nptl/tst-tls1.c: Migrate to support/test-driver.c.
6435 Add alignment checks.
6436 * support/Makefile (libsupport-routines): Add xposix_memalign and
6437 xpthread_setstack.
6438 * support/support.h: Add xposix_memalign.
6439 * support/xthread.h: Add xpthread_attr_setstack.
6440 * support/xposix_memalign.c: New File.
6441 * support/xpthread_attr_setstack.c: Likewise.
6442
6443 2019-02-05 Florian Weimer <fweimer@redhat.com>
6444
6445 [BZ #24164]
6446 arm: Use "nr" constraint for Systemtap probes, to avoid the
6447 compiler using memory operands for constants, due to the "o"
6448 alternative in the default "nor" constraint.
6449 * include/stap-probe.h [USE_STAP_PROBE]: Include
6450 <stap-probe-machine.h>
6451 * sysdeps/generic/stap-probe-machine.h: New file.
6452 * sysdeps/arm/stap-probe-machine.h: Likewise.
6453
6454 2019-02-04 Joseph Myers <joseph@codesourcery.com>
6455
6456 * malloc/malloc.c (tcache_get): Compare tcache->counts[tc_idx]
6457 with 0, not tcache->entries[tc_idx].
6458
6459 * nscd/connections.c (reqinfo): Initialize SHUTDOWN element only
6460 once.
6461
6462 2019-02-04 Andreas Schwab <schwab@suse.de>
6463
6464 [BZ #16976]
6465 [BZ #17396]
6466 * posix/fnmatch_loop.c (internal_fnmatch, internal_fnwmatch): When
6467 looking up collating elements match against (wide) character
6468 sequence instead of name. Correct alignment adjustment.
6469 * posix/fnmatch.c: Don't include "../locale/elem-hash.h".
6470 (WMEMCMP) [HANDLE_MULTIBYTE]: Define.
6471 * posix/Makefile (tests): Add tst-fnmatch4 and tst-fnmatch5.
6472 (LOCALES): Add cs_CZ.ISO-8859-2.
6473 * posix/tst-fnmatch4.c: New file.
6474 * posix/tst-fnmatch5.c: New file.
6475 * include/wchar.h (__wmemcmp): Declare.
6476 * wcsmbs/wmemcmp.c: Define __wmemcmp and add wmemcmp as weak alias.
6477 * sysdeps/i386/i686/multiarch/wmemcmp.c: Likewise.
6478 * sysdeps/x86_64/multiarch/wmemcmp.c: Likewise.
6479 * sysdeps/s390/wmemcmp.c: Likewise.
6480
6481 2019-02-04 H.J. Lu <hongjiu.lu@intel.com>
6482
6483 [BZ #24155]
6484 CVE-2019-7309
6485 * NEWS: Updated for CVE-2019-7309.
6486 * sysdeps/x86_64/memcmp.S: Use RDX_LP for size. Clear the
6487 upper 32 bits of RDX register for x32. Use unsigned Jcc
6488 instructions, instead of signed.
6489 * sysdeps/x86_64/x32/Makefile (tests): Add tst-size_t-memcmp-2.
6490 * sysdeps/x86_64/x32/tst-size_t-memcmp-2.c: New test.
6491
6492 2019-02-04 Florian Weimer <fweimer@redhat.com>
6493
6494 * posix/spawn.h (posix_spawn, posix_spawnp): Add __nonnull attribute.
6495 (posix_spawnattr_init, posix_spawnattr_destroy): Likewise.
6496 (posix_spawnattr_getsigdefault, posix_spawnattr_setsigdefault):
6497 Likewise.
6498 (posix_spawnattr_getsigmask, posix_spawnattr_setsigmask): Likewise.
6499 (posix_spawnattr_getflags, posix_spawnattr_setflags): Likewise.
6500 (posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Likewise.
6501 (posix_spawnattr_getschedpolicy, posix_spawnattr_setschedpolicy):
6502 Likewise.
6503 (posix_spawnattr_getschedparam, posix_spawnattr_setschedparam):
6504 Likewise.
6505 (posix_spawn_file_actions_init, posix_spawn_file_actions_destroy):
6506 Likewise.
6507 (posix_spawn_file_actions_addopen): Likewise.
6508 (posix_spawn_file_actions_addclose): Likewise.
6509 (posix_spawn_file_actions_adddup2): Likewise.
6510 (posix_spawn_file_actions_addchdir_np): Likewise. Add __restrict
6511 qualifiers.
6512 (posix_spawn_file_actions_addfchdir_np): Likewise.
6513
6514 2019-02-04 David Newall <glibc@davidnewall.com>
6515
6516 elf: Implement --preload option for the dynamic linker.
6517 * elf/rtld.c (preloadarg): New variable.
6518 (handle_preload_list): Pass through “where” argument to
6519 do_preload.
6520 (dl_main): Handle "--preload" and add second call to
6521 handle_preload_list.
6522 * elf/Makefile (tests-special): Add tst-rtld-preload.out.
6523 (tst-rtld-preload-OBJS): Set variable.
6524 (tst-rtld-preload.out): New target.
6525 * elf/tst-rtld-preload.sh: New file.
6526
6527 2019-02-04 Matthew Malcomson <matthew.malcomson@arm.com>
6528
6529 * Makefile (testrun.sh): Exit in case of incorrect argument.
6530
6531 2019-02-04 Florian Weimer <fweimer@redhat.com>
6532
6533 * time/tzfile.c (__tzfile_read): Reorder suballocations to avoid
6534 alignment gaps.
6535
6536 2019-02-03 Florian Weimer <fweimer@redhat.com>
6537
6538 * time/tzfile.c (__tzfile_read): Use struct alloc_buffer and its
6539 implicit overflow checks.
6540
6541 2019-02-03 Aurelien Jarno <aurelien@aurel32.net>
6542
6543 * stdlib/isomac.c: Include <unistd.h>.
6544
6545 2019-02-03 Florian Weimer <fweimer@redhat.com>
6546
6547 * include/time.h (__tzfile_default): Use int, not long int, for
6548 the GMT offsets.
6549 * time/tzfile.c (struct ttinfo): Change type of the offset member
6550 to int.
6551 (__tzfile_read): Remove useless cast.
6552 (__tzfile_default): Adjust prototype.
6553 * time/tzset.c (tz_rule): Change type of the offset member to int.
6554 (parse_offset): Change the type of the sign variable to int.
6555
6556 2019-02-03 Florian Weimer <fweimer@redhat.com>
6557
6558 [BZ #24153]
6559 * debug/gets_chk.c (__gets_chk): Use stdin instead of _IO_stdin.
6560 * libio/getchar.c (getchar): Likewise.
6561 * libio/getchar_u.c (getchar_unlocked): Likewise.
6562 * libio/getwchar.c (getwchar): Likewise.
6563 * libio/getwchar_u.c (getwchar_unlocked): Likewise.
6564 * libio/iogets.c (_IO_gets): Likewise.
6565 * libio/vscanf.c (_IO_vscanf): Likewise.
6566 * libio/vwscanf.c (__vwscanf): Likewise.
6567 * libio/tst-bz24153.c: New file.
6568 * libio/Makefile (tests): Add it.
6569
6570 2019-02-02 Florian Weimer <fweimer@redhat.com>
6571
6572 [BZ #14829]
6573 * manual/resource.texi (Basic Scheduling Functions): Add
6574 portability note. Change process to task throughout the section.
6575 Remove incorrect comment about sched_yield as it affects
6576 tasks/threads, not entire processes.
6577 * sysdeps/unix/sysv/linux/bits/posix_opt.h
6578 (_POSIX_PRIORITY_SCHEDULING): Update comment.
6579
6580 2019-02-01 Joseph Myers <joseph@codesourcery.com>
6581
6582 * configure.ac (libc_cv_compiler_ok): Require GCC 6.2 or later.
6583 * configure: Regenerated.
6584 * manual/install.texi (Tools for Compilation): Update minimum GCC
6585 version.
6586 * INSTALL: Regenerated.
6587
6588 2019-02-01 Florian Weimer <fweimer@redhat.com>
6589
6590 * support/support_test_compare_string.c
6591 (support_test_compare_string): Use "string" in error message.
6592 * support/tst-test_compare_string.c (do_test): Adjust.
6593
6594 2019-02-01 Florian Weimer <fweimer@redhat.com>
6595
6596 * support/support_format_address_family.c
6597 (support_format_address_family): Handle AF_LOCAL, AF_UNSPEC.
6598
6599 2019-02-01 Florian Weimer <fweimer@redhat.com>
6600
6601 * manual/socket.texi (Internet Address Formats): Clarify the byte
6602 order of struct sockaddr_in, struct sockaddr_in6. Document
6603 sin6_flowinfo and sin6_scope_id.
6604
6605 2019-02-01 Wilco Dijkstra <wdijkstr@arm.com>
6606
6607 * sysdeps/posix/clock_getres.c (__clock_getres): Cleanup.
6608 * sysdeps/unix/clock_gettime.c (__clock_gettime): Cleanup.
6609 * sysdeps/unix/clock_settime.c (__clock_settime): Cleanup.
6610 * sysdeps/unix/sysv/linux/clock_getres.c (__clock_getres): Cleanup.
6611 * sysdeps/unix/sysv/linux/clock_gettime.c (__clock_gettime): Cleanup.
6612 * sysdeps/unix/sysv/linux/clock_settime.c (__clock_settime): Cleanup.
6613
6614 2019-02-01 Feng Xue <fxue@os.amperecomputing.com>
6615
6616 * sysdeps/aarch64/memchr.S (__memchr): Rename to MEMCHR.
6617 [!MEMCHR](MEMCHR): Set to __memchr.
6618 * sysdeps/aarch64/multiarch/Makefile (sysdep_routines):
6619 Add memchr_generic and memchr_nosimd.
6620 * sysdeps/aarch64/multiarch/ifunc-impl-list.c
6621 (__libc_ifunc_impl_list): Add memchr ifuncs.
6622 * sysdeps/aarch64/multiarch/memchr.c: New file.
6623 * sysdeps/aarch64/multiarch/memchr_generic.S: Likewise.
6624 * sysdeps/aarch64/multiarch/memchr_nosimd.S: Likewise.
6625
6626 2019-02-01 Feng Xue <fxue@os.amperecomputing.com>
6627
6628 * sysdeps/aarch64/multiarch/Makefile (sysdep_routines):
6629 Add memset_emag.
6630 * sysdeps/aarch64/multiarch/ifunc-impl-list.c
6631 (__libc_ifunc_impl_list): Add __memset_emag to memset ifunc.
6632 * sysdeps/aarch64/multiarch/memset.c (libc_ifunc):
6633 Add IS_EMAG check for ifunc dispatch.
6634 * sysdeps/aarch64/multiarch/memset_base64.S: New file.
6635 * sysdeps/aarch64/multiarch/memset_emag.S: New file.
6636
6637 2019-02-01 Feng Xue <fxue@os.amperecomputing.com>
6638
6639 * manual/tunables.texi (Tunable glibc.cpu.name): Add emag.
6640 * sysdeps/unix/sysv/linux/aarch64/cpu-features.c (cpu_list):
6641 Add emag.
6642 * sysdeps/unix/sysv/linux/aarch64/cpu-features.h (IS_EMAG):
6643 New macro.
6644
6645 2019-02-01 Stefan Liebler <stli@linux.ibm.com>
6646
6647 * posix/tst-spawn do_test(): Move waitpid before posix_spawn.
6648
6649 2019-01-31 Vineet Gupta <vgupta@synopsys.com>
6650
6651 * sysdeps/unix/make-syscalls.sh: Fix comment referencing
6652 syscall-template file.
6653
6654 2019-01-31 Carlos O'Donell <carlos@redhat.com>
6655 Torvald Riegel <triegel@redhat.com>
6656 Rik Prohaska <prohaska7@gmail.com>
6657
6658 [BZ# 23844]
6659 * nptl/Makefile (tests): Add tst-rwlock-tryrdlock-stall, and
6660 tst-rwlock-trywrlock-stall.
6661 * nptl/pthread_rwlock_tryrdlock.c (__pthread_rwlock_tryrdlock):
6662 Wake waiters if PTHREAD_RWLOCK_FUTEX_USED is set.
6663 * nptl/pthread_rwlock_trywrlock.c (__pthread_rwlock_trywrlock):
6664 Set __wrphase_fute to 1 only if we started the write phase.
6665 * nptl/tst-rwlock-tryrdlock-stall.c: New file.
6666 * nptl/tst-rwlock-trywrlock-stall.c: New file.
6667 * support/Makefile (libsupport-routines): Add xpthread_rwlock_destroy.
6668 * support/xpthread_rwlock_destroy.c: New file.
6669 * support/xthread.h: Declare xpthread_rwlock_destroy.
6670
6671 2019-02-01 Joseph Myers <joseph@codesourcery.com>
6672
6673 * scripts/build-many-glibcs.py (Context.checkout): Default MPFR
6674 version to 4.0.2.
6675
6676 2019-01-31 Paul Pluzhnikov <ppluzhnikov@google.com>
6677
6678 [BZ #24051]
6679 * libio/ioputs.c (_IO_puts): Use stdout instead of _IO_stdout.
6680 * libio/fileops.c (_IO_new_file_underflow): Likewise
6681 * libio/wfileops.c (_IO_wfile_underflow): Likewise
6682 * libio/putchar.c (putchar): Likewise.
6683 * libio/putchar_u.c (putchar_unlocked): Likewise.
6684 * libio/putwchar.c (putchar): Likewise.
6685 * libio/putwchar_u.c (putwchar_unlocked): Likewise.
6686 * libio/tst-bz24051.c: New test.
6687 * libio/Makefile (tests): Add tst-bz24051
6688
6689 2019-01-31 Paul Eggert <eggert@cs.ucla.edu>
6690
6691 CVE-2019-9169
6692 regex: fix read overrun [BZ #24114]
6693 Problem found by AddressSanitizer, reported by Hongxu Chen in:
6694 https://debbugs.gnu.org/34140
6695 * posix/regexec.c (proceed_next_node):
6696 Do not read past end of input buffer.
6697
6698 2019-01-31 Florian Weimer <fweimer@redhat.com>
6699
6700 [BZ #24059]
6701 * nss/nss_files/files-alias.c (get_next_alias): Handle
6702 continuation line without newline at the end.
6703 * nss/tst-nss-files-alias-truncated.c: New file.
6704 * nss/Makefile [$(build-shared)] (tests): Add
6705 tst-nss-files-alias-truncated.
6706 (tst-nss-files-alias-truncated): Link with libnss_files.so.
6707 * support/namespace.h (struct support_chroot_configuration): Add
6708 aliases member.
6709 (struct support_chroot): Add path_aliases member.
6710 * support/support_chroot.c (support_chroot_create): Handle
6711 aliases.
6712 (support_chroot_free): Free path_aliases.
6713
6714 2019-01-31 Siddhesh Poyarekar <siddhesh@sourceware.org>
6715
6716 * version.h (RELEASE): Set to "development".
6717 (VERSION): Set to "2.29.9000".
6718 * NEWS: Add section for 2.30.
6719
6720 * version.h (RELEASE): Set to "stable".
6721 (VERSION): Set to "2.29".
6722 * include/features.h (__GLIBC_MINOR__): Set to 2.29.
6723
6724 * NEWS: Add the list of bugs fixed in 2.29.
6725 * manual/contrib.texi: Update contributors list with some more
6726 names.
6727 * manual/install.texi: Update latest versions of packages
6728 tested.
6729 * INSTALL: Regenerated.
6730
6731 2019-01-25 Siddhesh Poyarekar <siddhesh@sourceware.org>
6732
6733 * po/be.po: Update translations.
6734 * po/bg.po: Likewise.
6735 * po/ca.po: Likewise.
6736 * po/cs.po: Likewise.
6737 * po/da.po: Likewise.
6738 * po/de.po: Likewise.
6739 * po/el.po: Likewise.
6740 * po/eo.po: Likewise.
6741 * po/es.po: Likewise.
6742 * po/fi.po: Likewise.
6743 * po/fr.po: Likewise.
6744 * po/gl.po: Likewise.
6745 * po/hr.po: Likewise.
6746 * po/hu.po: Likewise.
6747 * po/ia.po: Likewise.
6748 * po/id.po: Likewise.
6749 * po/it.po: Likewise.
6750 * po/ja.po: Likewise.
6751 * po/ko.po: Likewise.
6752 * po/lt.po: Likewise.
6753 * po/nb.po: Likewise.
6754 * po/nl.po: Likewise.
6755 * po/pl.po: Likewise.
6756 * po/pt_BR.po: Likewise.
6757 * po/ru.po: Likewise.
6758 * po/rw.po: Likewise.
6759 * po/sk.po: Likewise.
6760 * po/sl.po: Likewise.
6761 * po/sv.po: Likewise.
6762 * po/tr.po: Likewise.
6763 * po/uk.po: Likewise.
6764 * po/vi.po: Likewise.
6765 * po/zh_CN.po: Likewise.
6766 * po/zh_TW.po: Likewise.
6767
6768 2019-01-24 Uroš Bizjak <ubizjak@gmail.com>
6769
6770 [BZ #24130]
6771 * sysdeps/alpha/remqu.S (__remqu): Add missing restore
6772 of $f3 register on $y_is_neg path.
6773
6774 2019-01-24 Samuel Thibault <samuel.thibault@ens-lyon.org>
6775
6776 [BZ #24110]
6777 * hurd/hurdsig.c (_hurd_thread_sigstate): Set SS_DISABLE in
6778 sigaltstack.ss_flags.
6779
6780 2019-01-24 TAMUKI Shoichi <tamuki@linet.gr.jp>
6781
6782 [BZ #23758]
6783 * manual/time.texi (strftime): Document "%Ey".
6784 * time/strftime_l.c (__strftime_internal): Set the default width
6785 padding with zero of "%Ey" to 2.
6786
6787 [BZ #24096]
6788 * manual/time.texi (strftime): Document "%EC" and "%EY".
6789 * time/Makefile (tests): Add tst-strftime2.
6790 (LOCALES): Add ja_JP.UTF-8, lo_LA.UTF-8, and th_TH.UTF-8.
6791 * time/strftime_l.c (__strftime_internal): Add argument yr_spec to
6792 override padding for "%Ey".
6793 If an optional flag ('_' or '-') is specified to "%EY", interpret the
6794 "%Ey" in the subformat as if decorated with that flag.
6795 * time/tst-strftime2.c: New file.
6796
6797 2019-01-24 Adhemerval Zanella <adhemerval.zanella@linaro.org>
6798
6799 * support/xsigstack.c (MAP_NORESERVE, MAP_STACK): Define if they
6800 are not defined.
6801
6802 [BZ #24122]
6803 * elf/Makefile (tests): Add tst-audit13.
6804 (modules-names): Add tst-audit13mod1.
6805 (tst-audit13.out, LDFLAGS-tst-audit13mod1.so, tst-audit13-ENV): New
6806 rule.
6807 * elf/rtld.c (dl_main): Handle invalid audit module version.
6808 * elf/tst-audit13.c: New file.
6809 * elf/tst-audit13mod1.c: Likewise.
6810
6811 2019-01-22 Samuel Thibault <samuel.thibault@ens-lyon.org>
6812
6813 * sysdeps/mach/hurd/faccessat.c (__faccessat_common): Check for errors
6814 returned by __hurd_at_flags.
6815 * hurd/lookup-at.c (__file_name_lookup_at): When at_flags contains
6816 AT_EMPTY_PATH, call __dir_lookup and __hurd_file_name_lookup_retry
6817 directly instead of __hurd_file_name_lookup.
6818
6819 2019-01-21 Joseph Myers <joseph@codesourcery.com>
6820
6821 * scripts/build-many-glibcs.py (Context.checkout): Default
6822 binutils version to 2.32 branch.
6823
6824 2019-01-21 Florian Weimer <fweimer@redhat.com>
6825
6826 [BZ #20018]
6827 CVE-2016-10739
6828 resolv: Reject trailing characters in host names
6829 * include/arpa/inet.h (__inet_aton_exact): Declare.
6830 (inet_aton): Remove hidden prototype. No longer used internally.
6831 * nscd/gai.c (__inet_aton): Do not define.
6832 * nscd/gethstbynm3_r.c (__inet_aton): Likewise.
6833 * nss/digits_dots.c (__inet_aton): Likewise.
6834 (__nss_hostname_digits_dots_context): Call __inet_aton_exact.
6835 * resolv/Makefile (tests-internal): Add tst-inet_aton_exact.
6836 (tests): Add tst-resolv-nondecimal, tst-resolv-trailing.
6837 (tst-resolv-nondecimal): Link with libresolv.so and libpthread.
6838 (tst-resolv-trailing): Likewise.
6839 * resolv/Versions (GLIBC_PRIVATE): Export __inet_aton_exact from
6840 libc.
6841 * resolv/inet_addr.c (inet_aton_end): Remame from __inet_aton.
6842 Make static. Add endp parameter.
6843 (__inet_aton_exact): New function.
6844 (__inet_aton_ignore_trailing): New function, aliased to inet_aton.
6845 (__inet_addr): Call inet_aton_end.
6846 * resolv/res_init.c (res_vinit_1): Truncate nameserver for IPv4,
6847 not just IPv6. Call __inet_aton_exact.
6848 * resolv/tst-aton.c: Switch to <support/test-driver.c>.
6849 (tests): Make const. Add additional test cases with trailing
6850 characters.
6851 (do_test): Use array_length.
6852 * resolv/tst-inet_aton_exact.c: New file.
6853 * resolv/tst-resolv-trailing.c: Likewise.
6854 * resolv/tst-resolv-nondecimal.c: Likewise.
6855 * sysdeps/posix/getaddrinfo.c (gaih_inet): Call __inet_aton_exact.
6856
6857 2019-01-21 H.J. Lu <hongjiu.lu@intel.com>
6858
6859 [BZ# 24097]
6860 CVE-2019-6488
6861 * sysdeps/x86_64/multiarch/strlen-avx2.S: Use RSI_LP for length.
6862 Clear the upper 32 bits of RSI register.
6863 * sysdeps/x86_64/strlen.S: Use RSI_LP for length.
6864 * sysdeps/x86_64/x32/Makefile (tests): Add tst-size_t-strnlen
6865 and tst-size_t-wcsnlen.
6866 * sysdeps/x86_64/x32/tst-size_t-strnlen.c: New file.
6867 * sysdeps/x86_64/x32/tst-size_t-wcsnlen.c: Likewise.
6868
6869 2019-01-21 H.J. Lu <hongjiu.lu@intel.com>
6870
6871 [BZ# 24097]
6872 CVE-2019-6488
6873 * sysdeps/x86_64/multiarch/strcpy-avx2.S: Use RDX_LP for length.
6874 * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: Likewise.
6875 * sysdeps/x86_64/multiarch/strcpy-ssse3.S: Likewise.
6876 * sysdeps/x86_64/x32/Makefile (tests): Add tst-size_t-strncpy.
6877 * sysdeps/x86_64/x32/tst-size_t-strncpy.c: New file.
6878
6879 2019-01-21 H.J. Lu <hongjiu.lu@intel.com>
6880
6881 [BZ# 24097]
6882 CVE-2019-6488
6883 * sysdeps/x86_64/multiarch/strcmp-avx2.S: Use RDX_LP for length.
6884 * sysdeps/x86_64/multiarch/strcmp-sse42.S: Likewise.
6885 * sysdeps/x86_64/strcmp.S: Likewise.
6886 * sysdeps/x86_64/x32/Makefile (tests): Add tst-size_t-strncasecmp,
6887 tst-size_t-strncmp and tst-size_t-wcsncmp.
6888 * sysdeps/x86_64/x32/tst-size_t-strncasecmp.c: New file.
6889 * sysdeps/x86_64/x32/tst-size_t-strncmp.c: Likewise.
6890 * sysdeps/x86_64/x32/tst-size_t-wcsncmp.c: Likewise.
6891
6892 2019-01-21 H.J. Lu <hongjiu.lu@intel.com>
6893
6894 [BZ# 24097]
6895 CVE-2019-6488
6896 * sysdeps/x86_64/multiarch/memset-avx512-no-vzeroupper.S: Use
6897 RDX_LP for length. Clear the upper 32 bits of RDX register.
6898 * sysdeps/x86_64/multiarch/memset-vec-unaligned-erms.S: Likewise.
6899 * sysdeps/x86_64/x32/Makefile (tests): Add tst-size_t-wmemset.
6900 * sysdeps/x86_64/x32/tst-size_t-memset.c: New file.
6901 * sysdeps/x86_64/x32/tst-size_t-wmemset.c: Likewise.
6902
6903 2019-01-21 H.J. Lu <hongjiu.lu@intel.com>
6904
6905 [BZ# 24097]
6906 CVE-2019-6488
6907 * sysdeps/x86_64/memrchr.S: Use RDX_LP for length.
6908 * sysdeps/x86_64/multiarch/memrchr-avx2.S: Likewise.
6909 * sysdeps/x86_64/x32/Makefile (tests): Add tst-size_t-memrchr.
6910 * sysdeps/x86_64/x32/tst-size_t-memrchr.c: New file.
6911
6912 2019-01-21 H.J. Lu <hongjiu.lu@intel.com>
6913
6914 [BZ# 24097]
6915 CVE-2019-6488
6916 * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Use RDX_LP for
6917 length. Clear the upper 32 bits of RDX register.
6918 * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Likewise.
6919 * sysdeps/x86_64/multiarch/memmove-avx512-no-vzeroupper.S:
6920 Likewise.
6921 * sysdeps/x86_64/multiarch/memmove-vec-unaligned-erms.S:
6922 Likewise.
6923 * sysdeps/x86_64/x32/Makefile (tests): Add tst-size_t-memcpy.
6924 tst-size_t-wmemchr.
6925 * sysdeps/x86_64/x32/tst-size_t-memcpy.c: New file.
6926
6927 2019-01-21 H.J. Lu <hongjiu.lu@intel.com>
6928
6929 [BZ# 24097]
6930 CVE-2019-6488
6931 * sysdeps/x86_64/multiarch/memcmp-avx2-movbe.S: Use RDX_LP for
6932 length. Clear the upper 32 bits of RDX register.
6933 * sysdeps/x86_64/multiarch/memcmp-sse4.S: Likewise.
6934 * sysdeps/x86_64/multiarch/memcmp-ssse3.S: Likewise.
6935 * sysdeps/x86_64/x32/Makefile (tests): Add tst-size_t-memcmp and
6936 tst-size_t-wmemcmp.
6937 * sysdeps/x86_64/x32/tst-size_t-memcmp.c: New file.
6938 * sysdeps/x86_64/x32/tst-size_t-wmemcmp.c: Likewise.
6939
6940 2019-01-21 H.J. Lu <hongjiu.lu@intel.com>
6941
6942 [BZ# 24097]
6943 CVE-2019-6488
6944 * sysdeps/x86_64/memchr.S: Use RDX_LP for length. Clear the
6945 upper 32 bits of RDX register.
6946 * sysdeps/x86_64/multiarch/memchr-avx2.S: Likewise.
6947 * sysdeps/x86_64/x32/Makefile (tests): Add tst-size_t-memchr and
6948 tst-size_t-wmemchr.
6949 * sysdeps/x86_64/x32/test-size_t.h: New file.
6950 * sysdeps/x86_64/x32/tst-size_t-memchr.c: Likewise.
6951 * sysdeps/x86_64/x32/tst-size_t-wmemchr.c: Likewise.
6952
6953 2019-01-18 Florian Weimer <fweimer@redhat.com>
6954
6955 [BZ #24112]
6956 resolv: Do not send queries for non-host-names in nss_dns.
6957 * resolv/nss_dns/dns-host.c (check_name): New function.
6958 (_nss_dns_gethostbyname2_r): Use it.
6959 (_nss_dns_gethostbyname_r): Likewise.
6960 (_nss_dns_gethostbyname4_r): Likewise.
6961
6962 2019-01-21 Florian Weimer <fweimer@redhat.com>
6963
6964 * resolv/inet_addr.c: Reformat to GNU style.
6965 (__inet_addr, __inet_aton): Update comment.
6966
6967 2019-01-18 Florian Weimer <fweimer@redhat.com>
6968
6969 malloc: Revert commit 6923f6db1e688dedcf3a6556da76e0bf24a41872
6970 ("malloc: Use current (C11-style) atomics for fastbin access").
6971 This commit introduces a substantial performance regression on
6972 POWER and Aarch64.
6973 * malloc/malloc.c (fastbin_push_entry, fastbin_pop_entry): Remove.
6974 (REMOVE_FB): Define.
6975 (_int_malloc): Use it and reindent.
6976 (_int_free): Use CAS loop with
6977 catomic_compare_and_exchange_val_rel.
6978 (malloc_consolidate): Use atomic_exchange_acq.
6979
6980
6981 2019-01-18 H.J. Lu <hongjiu.lu@intel.com>
6982
6983 * signal/Makefile (LDFLAGS-tst-minsigstksz-1): New. Set to
6984 -Wl,-z,now.
6985 (LDFLAGS-tst-minsigstksz-2): Likewise.
6986 (LDFLAGS-tst-minsigstksz-3): Likewise.
6987 (LDFLAGS-tst-minsigstksz-3a): Likewise.
6988 (LDFLAGS-tst-minsigstksz-4): Likewise.
6989
6990 2019-01-18 TAMUKI Shoichi <tamuki@linet.gr.jp>
6991
6992 * manual/time.texi (strftime): Fix the wording to "alternative" rather
6993 than "alternate".
6994
6995 2019-01-16 Paul A. Clarke <pc@us.ibm.com>
6996
6997 * sysdeps/powerpc/powerpc64/multiarch/strncmp.c: Fix #ifdef.
6998
6999 2019-01-16 Zack Weinberg <zackw@panix.com>
7000
7001 * support/xsignal.h (xalloc_sigstack, xfree_sigstack)
7002 (xget_sigstack_location): New test support functions.
7003 * support/xsigstack.c: New file, implementing them.
7004 * support/tst-xsigstack.c: New test for them.
7005 * support/Makefile: Update.
7006
7007 * signal/tst-minsigstksz-1.c
7008 * signal/tst-minsigstksz-2.c
7009 * signal/tst-minsigstksz-3.c
7010 * signal/tst-minsigstksz-3a.c
7011 * signal/tst-minsigstksz-4.c: New tests.
7012 * signal/Makefile: Run them.
7013
7014 2019-01-16 Siddhesh Poyarekar <siddhesh@sourceware.org>
7015
7016 * po/libc.pot: Regenerate.
7017
7018 2019-01-15 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
7019
7020 * math/libm-test-fma.inc (fma_test_data): Set
7021 XFAIL_ROUNDING_IBM128_LIBGCC to more tests.
7022
7023 2019-01-15 Rogerio A. Cardoso <rcardoso@linux.ibm.com>
7024
7025 * sysdeps/powerpc/powerpc64/tst-ucontext-ppc64-vscr.c:
7026 (do_test): Changed __vector __int128_t to __vector unsigned int.
7027
7028 2019-01-14 Leonardo Sandoval <leonardo.sandoval.gonzalez@intel.com>
7029
7030 * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
7031 strcat-avx2, strncat-avx2, strcpy-avx2, strncpy-avx2,
7032 stpcpy-avx2 and stpncpy-avx2.
7033 * sysdeps/x86_64/multiarch/ifunc-impl-list.c:
7034 (__libc_ifunc_impl_list): Add tests for __strcat_avx2,
7035 __strncat_avx2, __strcpy_avx2, __strncpy_avx2, __stpcpy_avx2
7036 and __stpncpy_avx2.
7037 * sysdeps/x86_64/multiarch/{ifunc-unaligned-ssse3.h =>
7038 ifunc-strcpy.h}: rename header for a more generic name.
7039 * sysdeps/x86_64/multiarch/ifunc-strcpy.h:
7040 (IFUNC_SELECTOR): Return OPTIMIZE (avx2) on AVX 2 machines if
7041 AVX unaligned load is fast and vzeroupper is preferred.
7042 * sysdeps/x86_64/multiarch/stpcpy-avx2.S: New file.
7043 * sysdeps/x86_64/multiarch/stpncpy-avx2.S: Likewise.
7044 * sysdeps/x86_64/multiarch/strcat-avx2.S: Likewise.
7045 * sysdeps/x86_64/multiarch/strcpy-avx2.S: Likewise.
7046 * sysdeps/x86_64/multiarch/strncat-avx2.S: Likewise.
7047 * sysdeps/x86_64/multiarch/strncpy-avx2.S: Likewise.
7048
7049 2019-01-12 Dmitry V. Levin <ldv@altlinux.org>
7050
7051 * argp/argp-help.c: Fix typo in comment.
7052 * misc/sys/cdefs.h: Likewise.
7053 * posix/regexec.c (sift_states_iter_mb): Likewise.
7054 * socket/sockatmark.c: Likewise.
7055 * socket/sys/socket.h: Likewise.
7056 * sysdeps/ia64/fpu/libm_sincos_large.S: Likewise.
7057 * sysdeps/ia64/fpu/libm_sincosl.S: Likewise.
7058 * sysdeps/ia64/fpu/s_cosl.S: Likewise.
7059 * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Likewise.
7060 * sysdeps/unix/sockatmark.c: Likewise.
7061 * time/strptime_l.c: Likewise.
7062
7063 2019-01-11 TAMUKI Shoichi <tamuki@linet.gr.jp>
7064
7065 * time/strftime_l.c (__strftime_internal): Use "L_" macros, also add a
7066 missing space after the cast of "_NL_CURRENT".
7067
7068 2019-01-11 Rogerio A. Cardoso <rcardoso@linux.ibm.com>
7069
7070 * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h (vscr_t): Added
7071 ifdef to fix read of VSCR.
7072 * sysdeps/powerpc/powerpc64/Makefile [$subdir == stdlib]: Add
7073 tst-ucontext-ppc64-vscr.c to test list.
7074 * sysdeps/powerpc/powerpc64/tst-ucontext-ppc64-vscr.c: New test file.
7075
7076 2019-01-10 Andreas K. Hüttel <dilfridge@gentoo.org>
7077
7078 * resolv/tst-resolv-ai_idn-common.c (response): Avoid switch
7079 fall-through.
7080
7081 2019-01-09 Jim Wilson <jimw@sifive.com>
7082
7083 * sysdeps/riscv/rv64/rvd/libm-test-ulps: Update.
7084
7085 2019-01-09 Wilco Dijkstra <wdijkstr@arm.com>
7086
7087 * manual/tunables.texi (glibc.cpu.name): Add ares tunable.
7088 * sysdeps/aarch64/multiarch/memcpy.c (__libc_memcpy): Use
7089 __memcpy_falkor for ares.
7090 * sysdeps/unix/sysv/linux/aarch64/cpu-features.h (IS_ARES):
7091 Add new define.
7092 * sysdeps/unix/sysv/linux/aarch64/cpu-features.c (cpu_list):
7093 Add ares cpu.
7094
7095 2019-01-07 H.J. Lu <hongjiu.lu@intel.com>
7096
7097 [BZ #24066]
7098 * soft-fp/extenddftf2.c: Use "_FP_W_TYPE_SIZE < 64" to check if
7099 4_FP_W_TYPEs are used for IEEE quad precision.
7100 * soft-fp/extendhftf2.c: Likewise.
7101 * soft-fp/extendsftf2.c: Likewise.
7102 * soft-fp/extendxftf2.c: Likewise.
7103 * soft-fp/trunctfdf2.c: Likewise.
7104 * soft-fp/trunctfhf2.c: Likewise.
7105 * soft-fp/trunctfsf2.c: Likewise.
7106 * soft-fp/trunctfxf2.c: Likewise.
7107 * sysdeps/alpha/ots_cvttx.c: Likewise.
7108 * sysdeps/alpha/ots_cvtxt.c: Likewise.
7109 * sysdeps/ieee754/soft-fp/s_daddl.c: Likewise.
7110 * sysdeps/ieee754/soft-fp/s_ddivl.c: Likewise.
7111 * sysdeps/ieee754/soft-fp/s_dmull.c: Likewise.
7112 * sysdeps/ieee754/soft-fp/s_dsubl.c: Likewise.
7113 * sysdeps/ieee754/soft-fp/s_faddl.c: Likewise.
7114 * sysdeps/ieee754/soft-fp/s_fdivl.c: Likewise.
7115 * sysdeps/ieee754/soft-fp/s_fmull.c: Likewise.
7116 * sysdeps/ieee754/soft-fp/s_fsubl.c: Likewise.
7117 * sysdeps/sparc/sparc32/q_dtoq.c: Likewise.
7118 * sysdeps/sparc/sparc32/q_qtod.c: Likewise.
7119 * sysdeps/sparc/sparc32/q_qtos.c: Likewise.
7120 * sysdeps/sparc/sparc32/q_stoq.c: Likewise.
7121 * sysdeps/sparc/sparc64/qp_dtoq.c: Likewise.
7122 * sysdeps/sparc/sparc64/qp_qtod.c: Likewise.
7123 * sysdeps/sparc/sparc64/qp_qtos.c: Likewise.
7124 * sysdeps/sparc/sparc64/qp_stoq.c: Likewise.
7125
7126 2019-01-07 Aurelien Jarno <aurelien@aurel32.net>
7127
7128 [BZ #24024]
7129 * Makeconfig: Build libm with -fno-math-errno but build the remaining
7130 code with -fmath-errno.
7131 * string/Makefile [$(build-shared)] (tests): Add test-strerror-errno.
7132 [$(build-shared)] (LDLIBS-test-strerror-errno): New variable.
7133 * string/test-strerror-errno.c: New file.
7134
7135 2019-01-07 Aurelien Jarno <aurelien@aurel32.net>
7136
7137 [BZ #24046]
7138 * localedata/locales/en_US (date_fmt): Add, set to
7139 "%a %d %b %Y %r %Z".
7140
7141 2019-01-07 Florian Weimer <fweimer@redhat.com>
7142
7143 [BZ #24063]
7144 * manual/arith.texi (Math Error Reporting): Use @code{errno}
7145 instead of @var{errno}.
7146 (Parsing of Integers): Likewise.
7147 (Parsing of Floats): Likewise.
7148 * manual/filesys.texi (Working with Directory Trees): Likewise.
7149 (Temporary Files): Likewise.
7150 * manual/job.texi (Terminal Access Functions): Likewise.
7151 * manual/llio.texi (Synchronizing I/O): Likewise.
7152 * manual/math.texi (SVID Random): Likewise.
7153 * manual/message.texi (The catgets Functions): Likewise.
7154 (Translation with gettext): Likewise.
7155 (Locating gettext catalog): Likewise.
7156 (Charset conversion in gettext): Likewise.
7157 * manual/nss.texi (NSS Module Function Internals): Likewise.
7158 * manual/search.texi (Hash Search Function): Likewise.
7159 * manual/setjmp.texi (System V contexts): Likewise.
7160 * manual/time.texi (Sleeping): Likewise.
7161 * manual/users.texi (Lookup User): Likewise.
7162 (Lookup Group): Likewise.
7163
7164 2019-01-05 Adhemerval Zanella <adhemerval.zanella@linaro.org>
7165
7166 * posix/tst-spawn.c (do_test): Extend spargv to new required size and
7167 fix typo.
7168
7169 2019-01-04 Martin Jansa <Martin.Jansa@gmail.com>
7170
7171 [BZ #19444]
7172 * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_jn): Use
7173 __builtin_unreachable for default case in switch.
7174 (__ieee754_yn): Likewise.
7175 * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_jnl): Likewise.
7176 (__ieee754_ynl): Likewise.
7177 * sysdeps/ieee754/ldbl-128/e_jnl.c (__ieee754_jnl): Likewise.
7178 (__ieee754_ynl): Likewise.
7179 * sysdeps/ieee754/ldbl-128ibm/e_jnl.c (__ieee754_jnl): Likewise.
7180 (__ieee754_ynl): Likewise.
7181
7182 2019-01-04 Szabolcs Nagy <szabolcs.nagy@arm.com>
7183
7184 * manual/maint.texi: Use @{ and @}.
7185
7186 2019-01-04 Florian Weimer <fweimer@redhat.com>
7187
7188 * sysdeps/unix/sysv/linux/tst-ttyname.c (adjust_file_limit): New
7189 function.
7190 (do_in_chroot_1): Call it.
7191 (run_chroot_tests):
7192 Improve error reporting in case it is not possible to create a
7193 collision for the PTY name required by the test.
7194
7195 2019-01-03 Adhemerval Zanella <adhemerval.zanella@linaro.org>
7196
7197 * nptl/pthread_join_common.c (__pthread_timedjoin_ex): Use
7198 lll_wait_tid with timeout.
7199 * nptl/sem_wait.c (__old_sem_wait): Use lll_futex_wait_cancel.
7200 * sysdeps/nptl/aio_misc.h (AIO_MISC_WAIT): Use
7201 futex_reltimed_wait_cancelable for cancelabla mode.
7202 * sysdeps/nptl/gai_misc.h (GAI_MISC_WAIT): Likewise.
7203 * sysdeps/posix/open64.c (__libc_open64): Do not call cancelation
7204 macros.
7205 * sysdeps/posix/sigwait.c (__sigwait): Likewise.
7206 * sysdeps/posix/waitid.c (__sigwait): Likewise.
7207 * sysdeps/unix/sysdep.h (__SYSCALL_CANCEL_CALL,
7208 SYSCALL_CANCEL_NCS): New macro.
7209 * sysdeps/nptl/lowlevellock.h (lll_wait_tid): Add timeout argument.
7210 (lll_timedwait_tid): Remove macro.
7211 * sysdeps/unix/sysv/linux/i386/lowlevellock.h (lll_wait_tid):
7212 Likewise.
7213 (lll_timedwait_tid): Likewise.
7214 * sysdeps/unix/sysv/linux/sparc/lowlevellock.h (lll_wait_tid):
7215 Likewise.
7216 (lll_timedwait_tid): Likewise.
7217 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h (lll_wait_tid):
7218 Likewise.
7219 (lll_timedwait_tid): Likewise.
7220 * sysdeps/unix/sysv/linux/clock_nanosleep.c (__clock_nanosleep):
7221 Use INTERNAL_SYSCALL_CANCEL.
7222 * sysdeps/unix/sysv/linux/futex-internal.h
7223 (futex_reltimed_wait_cancelable): Use LIBC_CANCEL_{ASYNC,RESET}
7224 instead of __pthread_{enable,disable}_asynccancel.
7225 * sysdeps/unix/sysv/linux/lowlevellock-futex.h
7226 (lll_futex_wait_cancel): New macro.
7227
7228 * sysdeps/i386/nptl/tls.h (THREAD_ATOMIC_CMPXCHG_VAL,
7229 THREAD_ATOMIC_AND, THREAD_ATOMIC_BIT_SET): Remove macros.
7230
7231 * sysdeps/x86_64/nptl/tls.h (THREAD_ATOMIC_CMPXCHG_VAL,
7232 THREAD_ATOMIC_AND, THREAD_ATOMIC_BIT_SET): Remove macros.
7233
7234 * debug/tst-backtrace5.c (handle_signal): Avoid cancellable wrappers
7235 in backtrace analysis.
7236 * nptl/tst-cancel4.c (tf_write): Handle cancelled syscall with
7237 side-effects.
7238 (tf_send): Likewise.
7239
7240 * io/creat.c (LIBC_CANCEL_HANDLED): Remove macro.
7241 * io/ppoll.c (LIBC_CANCEL_HANDLED): Likewise.
7242 * misc/pselect.c (LIBC_CANCEL_HANDLED): Likewise.
7243 * nptl/pthreadP.h (LIBC_CANCEL_HANDLED): Likewise.
7244 * sysdeps/generic/sysdep-cancel.h (LIBC_CANCEL_HANDLED): Likewise.
7245 * sysdeps/mach/hurd/sysdep-cancel.h (LIBC_CANCEL_HANDLED): Likewise.
7246 * sysdeps/posix/pause.c (LIBC_CANCEL_HANDLED): Likewise.
7247 * sysdeps/posix/sigpause.c (LIBC_CANCEL_HANDLED): Likewise.
7248 * sysdeps/unix/sysv/linux/creat.c (LIBC_CANCEL_HANDLED): Likewise.
7249 * sysdeps/unix/sysv/linux/creat64.c (LIBC_CANCEL_HANDLED): Likewise.
7250 * sysdeps/unix/sysv/linux/sigwait.c (LIBC_CANCEL_HANDLED): Likewise.
7251 * sysdeps/unix/sysv/linux/sigwaitinfo.c (LIBC_CANCEL_HANDLED):
7252 Likewise.
7253 * nptl/Makefile [$(run-built-tests) = yes] (tests-special): Remove
7254 tst-cancel-wrappers.sh.
7255 (generated): Remove tst-cancel-wrappers.out.
7256 (tst-cancel-wrappers.out): Remove rule.
7257 * nptl/tst-cancel-wrappers.sh: Remove file.
7258
7259 2019-01-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
7260
7261 * sysdeps/unix/sysv/linux/aarch64/bits/hwcap.h: Add comment.
7262 * sysdeps/unix/sysv/linux/aarch64/dl-procinfo.c (_DL_HWCAP_COUNT):
7263 Update.
7264
7265 2019-01-03 Adhemerval Zanella <adhemerval.zanella@linaro.org>
7266
7267 [BZ #23640]
7268 * posix/tst-spawn.c (do_prepare, handle_restart, do_test): Add
7269 posix_spawn_file_actions_adddup2 test to check O_CLOCEXEC reset.
7270 * sysdeps/unix/sysv/linux/spawni.c (__spawni_child): Add
7271 close-on-exec reset for adddup2 file action.
7272 * sysdeps/posix/spawni.c (__spawni_child): Likewise.
7273
7274 2019-01-03 Zack Weinberg <zackw@panix.com>
7275
7276 * include/features.h (__GLIBC_USE_DEPRECATED_SCANF): New __GLIBC_USE
7277 parameter. Only use deprecated scanf when __USE_GNU is defined
7278 and __STDC_VERSION__ is less than 199901L or __cplusplus is less
7279 than 201103L, whichever is relevant for the language being compiled.
7280
7281 * libio/stdio.h, libio/bits/stdio-ldbl.h: Decide whether to redirect
7282 scanf, fscanf, sscanf, vscanf, vfscanf, and vsscanf to their
7283 __isoc99_ variants based only on __GLIBC_USE (DEPRECATED_SCANF).
7284 * wcsmbs/wchar.h: wcsmbs/bits/wchar-ldbl.h: Likewise for
7285 wscanf, fwscanf, swscanf, vwscanf, vfwscanf, and vswscanf.
7286
7287 * libio/iovsscanf.c
7288 * libio/fwscanf.c
7289 * libio/iovswscanf.c
7290 * libio/swscanf.c
7291 * libio/vscanf.c
7292 * libio/vwscanf.c
7293 * libio/wscanf.c
7294 * stdio-common/fscanf.c
7295 * stdio-common/scanf.c
7296 * stdio-common/vfscanf.c
7297 * stdio-common/vfwscanf.c
7298 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c
7299 * sysdeps/ieee754/ldbl-opt/nldbl-fscanf.c
7300 * sysdeps/ieee754/ldbl-opt/nldbl-fwscanf.c
7301 * sysdeps/ieee754/ldbl-opt/nldbl-iovfscanf.c
7302 * sysdeps/ieee754/ldbl-opt/nldbl-scanf.c
7303 * sysdeps/ieee754/ldbl-opt/nldbl-sscanf.c
7304 * sysdeps/ieee754/ldbl-opt/nldbl-swscanf.c
7305 * sysdeps/ieee754/ldbl-opt/nldbl-vfscanf.c
7306 * sysdeps/ieee754/ldbl-opt/nldbl-vfwscanf.c
7307 * sysdeps/ieee754/ldbl-opt/nldbl-vscanf.c
7308 * sysdeps/ieee754/ldbl-opt/nldbl-vsscanf.c
7309 * sysdeps/ieee754/ldbl-opt/nldbl-vswscanf.c
7310 * sysdeps/ieee754/ldbl-opt/nldbl-vwscanf.c
7311 * sysdeps/ieee754/ldbl-opt/nldbl-wscanf.c:
7312 Override __GLIBC_USE_DEPRECATED_SCANF to 1.
7313
7314 * stdio-common/sscanf.c: Likewise. Remove ldbl_hidden_def for __sscanf.
7315 * stdio-common/isoc99_sscanf.c: Add libc_hidden_def for __isoc99_sscanf.
7316 * include/stdio.h: Provide libc_hidden_proto for __isoc99_sscanf,
7317 not sscanf.
7318 [!__GLIBC_USE (DEPRECATED_SCANF)]: Define sscanf as __isoc99_scanf
7319 with a preprocessor macro.
7320
7321 * stdio-common/bug21.c, stdio-common/scanf14.c:
7322 Use %ms instead of %as, %mS instead of %aS, %m[] instead of %a[];
7323 remove DIAG_IGNORE_NEEDS_COMMENT for -Wformat.
7324 * stdio-common/scanf16.c: Likewise. Add __attribute__ ((format (scanf)))
7325 to xscanf, xfscanf, xsscanf.
7326
7327 * stdio-common/scanf14a.c: New copy of scanf14.c which still uses
7328 %as, %aS, %a[]. Remove DIAG_IGNORE_NEEDS_COMMENT for -Wformat.
7329 * stdio-common/scanf16a.c: New copy of scanf16.c which still uses
7330 %as, %aS, %a[]. Add __attribute__ ((format (scanf))) to xscanf,
7331 xfscanf, xsscanf.
7332 * stdio-common/scanf15.c, stdio-common/scanf17.c: No need to
7333 override feature selection macros or provide definitions of u_char etc.
7334 * stdio-common/Makefile (tests): Add scanf14a and scanf16a.
7335 (CFLAGS-scanf15.c, CFLAGS-scanf17.c): Remove.
7336 (CFLAGS-scanf14a.c, CFLAGS-scanf16a.c): New. Compile these files
7337 with -std=gnu89.
7338
7339 2019-01-03 Adhemerval Zanella <adhemerval.zanella@linaro.org>
7340
7341 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
7342 bits/termios-misc.h.
7343 * sysdeps/unix/sysv/linux/alpha/bits/termios.h: Remove file.
7344 * sysdeps/unix/sysv/linux/mips/bits/termios.h: Likewise.
7345 * sysdeps/unix/sysv/linux/sparc/bits/termios.h: Likewise.
7346 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
7347 * sysdeps/unix/sysv/linux/bits/termios-misc.h: New file.
7348 * sysdeps/unix/sysv/linux/bits/termios.h: Include termios-misc.h.
7349
7350 * sysdeps/unix/sysv/linux/powerpc/bits/termios-misc.h: New file.
7351 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h [__USE_MISC]
7352 (struct sgtty, struct tchars, struct ltchars, TIOCPKT_DATA,
7353 TIOCPKT_FLUSHREAD, TIOCPKT_FLUSHWRITE, TIOCPKT_STOP, TIOCPKT_START,
7354 TIOCPKT_NOSTOP, TIOCPKT_DOSTOP, _VINTR, _VQUIT, _VERASE, _VKILL,
7355 _VEOF, _VMIN, _VEOL, _VTIME, _VEOL2, _VSWTC): Move to
7356 termios-misc.h.
7357 * sysdeps/unix/sysv/linux/powerpc/Makefile [$subdir == misc]
7358 (sysdep_headers): Add termios-misc.h.
7359
7360 * sysdeps/unix/sysv/linux/bits/termios.h (_IOT_termios): Remove.
7361 * sysdeps/unix/sysv/linux/alpha/bits/termios.h: Likewise.
7362 * sysdeps/unix/sysv/linux/mips/bits/termios.h: Likewise.
7363
7364 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
7365 termios-tcflow.h.
7366 * sysdeps/unix/sysv/linux/bits/termios-tcflow.h: New file.
7367 * sysdeps/unix/sysv/linux/mips/bits/termios-tcflow.h: Likewise.
7368 * sysdeps/unix/sysv/linux/bits/termios.h (TCSANOW, TCSADRAIN,
7369 TCSAFLUSH): Move to termios-tcflow.h.
7370 * sysdeps/unix/sysv/linux/alpha/bits/termios.h: Likewise.
7371 * sysdeps/unix/sysv/linux/mips/bits/termios.h: Likewise.
7372 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
7373 * sysdeps/unix/sysv/linux/sparc/bits/termios.h: Likewise.
7374
7375 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
7376 termios-c_lflag.h.
7377 * sysdeps/unix/sysv/linux/bits/termios-c_lflag.h: New file.
7378 * sysdeps/unix/sysv/linux/alpha/bits/termios-c_lflag.h: Likewise.
7379 * sysdeps/unix/sysv/linux/mips/bits/termios-c_lflag.h: Likewise.
7380 * sysdeps/unix/sysv/linux/powerpc/bits/termios-c_lflag.h: Likewise.
7381 * sysdeps/unix/sysv/linux/bits/termios.h (ISIG, ISCANON, ECHO, ECHOE,
7382 ECHOK, ECHONL, NOFLSH, TOSTOP, IEXTEN): Move to termios-c_lflag.h.
7383 [__USE_MISC || (__USE_XOPEN && !__USE_XOPEN2K)] (XCASE): Likewise.
7384 [__USE_MISC] (ECHOCTL, ECHOPRT, ECHOKE, FLUSHO, PENDIN, EXTPROC):
7385 Likewise.
7386 * sysdeps/unix/sysv/linux/alpha/bits/termios.h: Likewise.
7387 * sysdeps/unix/sysv/linux/mips/bits/termios.h: Likewise.
7388 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
7389 * sysdeps/unix/sysv/linux/sparc/bits/termios.h: Likewise.
7390
7391 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
7392 termios-c_cflag.h.
7393 * sysdeps/unix/sysv/linux/bits/termios-c_cflag.h: New file.
7394 * sysdeps/unix/sysv/linux/alpha/bits/termios-c_cflag.h: Likewise.
7395 * sysdeps/unix/sysv/linux/powerpc/bits/termios-c_cflag.h: Likewise.
7396 * sysdeps/unix/sysv/linux/bits/termios.h (CSIZE, CS5, CS6, CS7, CS8,
7397 CSTOPB, CREAD, PARENB, PARODD, HUPCL, CLOCAL): Move to
7398 termios-c_cflag.h.
7399 * sysdeps/unix/sysv/linux/alpha/bits/termios.h: Likewise.
7400 * sysdeps/unix/sysv/linux/mips/bits/termios.h: Likewise.
7401 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
7402 * sysdeps/unix/sysv/linux/sparc/bits/termios.h: Likewise.
7403
7404 [BZ #23783]
7405 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
7406 termios-baud.h.
7407 * sysdeps/unix/sysv/linux/bits/termios-baud.h: New file.
7408 * sysdeps/unix/sysv/linux/alpha/bits/termios-baud.h: Likewise.
7409 * sysdeps/unix/sysv/linux/powerpc/bits/termios-baud.h: Likewise.
7410 * sysdeps/unix/sysv/linux/sparc/bits/termios-baud.h: Likewise.
7411 * sysdeps/unix/sysv/linux/alpha/bits/termios.h (B57600, B115200,
7412 B230400, B460800, B500000, B576000, B921600, B1000000, B1152000,
7413 B1500000, B2000000, B2500000, B3000000, B3500000, B4000000,
7414 __MAX_BAUD): Move to termios-baud.h.
7415 [__USE_MISC] (CBAUD, CBAUDEX): Likewise.
7416 * sysdeps/unix/sysv/linux/bits/termios.h: Likewise.
7417 * sysdeps/unix/sysv/linux/mips/bits/termios.h: Likewise.
7418 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
7419 * sysdeps/unix/sysv/linux/sparc/bits/termios.h: Likewise.
7420
7421 * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Add
7422 termios-c_oflag.h.
7423 * sysdeps/unix/sysv/linux/bits/termios-c_oflag.h: New file.
7424 * sysdeps/unix/sysv/linux/alpha/bits/termios-c_oflag.h: Likewise.
7425 * sysdeps/unix/sysv/linux/powerpc/bits/termios-c_oflag.h: Likewise.
7426 * sysdeps/unix/sysv/linux/sparc/bits/termios-c_oflag.h: Likewise.
7427 * sysdeps/unix/sysv/linux/bits/termios.h (OPOST, OLCUC, ONLCR, OCRNL,
7428 ONOCR, ONLRET, OFILL, OFDEL, VTDLY, VT0, VT1): Move to
7429 termios-c_oflag.h.
7430 [__USE_MISC || __USE_XOPEN] (NLDLY, NL0, NL1, CRDLY, CR0, CR1, CR2,
7431 CR3, TABDLY, TAB0, TAB1, TAB2, TAB3, BSDLY, BS0, BS1, FFDLY, FF0,
7432 FFR1): Likewise.
7433 [USE_MISC] (XTABS): Likewise.
7434 * sysdeps/unix/sysv/linux/alpha/bits/termios.h: Likewise.
7435 * sysdeps/unix/sysv/linux/mips/bits/termios.h: Likewise.
7436 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
7437 * sysdeps/unix/sysv/linux/sparc/bits/termios.h Likewise.
7438
7439 * sysdeps/unix/sysv/linux/Makefile (sysdeps_headers): Add
7440 termios-c_iflag.h.
7441 * sysdeps/unix/sysv/linux/bits/termios-c_iflag.h: New file.
7442 * sysdeps/unix/sysv/linux/alpha/bits/termios-c_iflag.h: Likewise.
7443 * sysdeps/unix/sysv/linux/powerpc/bits/termios-c_iflag.h: Likewise.
7444 * sysdeps/unix/sysv/linux/bits/termios.h (IGNBRK, BRKINT, IGNPAR, PARMRK,
7445 INPCK, ISTRIP, INLCR, IGNCR, ICRNL, IXON, IXOFF, IXANY, IUCLC, IMAXBEL,
7446 IUTF8): Move to termios-c_iflag.h.
7447 * sysdeps/unix/sysv/linux/alpha/bits/termios.h: Likewise.
7448 * sysdeps/unix/sysv/linux/mips/bits/termios.h: Likewise.
7449 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
7450 * sysdeps/unix/sysv/linux/sparc/bits/termios.h: Likewise.
7451
7452 * sysdeps/unix/sysv/linux/Makefile (sysdeps_headers): Add
7453 termios-cc.h.
7454 * sysdeps/unix/sysv/linux/bits/termios-c_cc.h: Likewise.
7455 * sysdeps/unix/sysv/linux/alpha/bits/termios-c_cc.h: New file.
7456 * sysdeps/unix/sysv/linux/mips/bits/termios-c_cc.h: Likewise.
7457 * sysdeps/unix/sysv/linux/powerpc/bits/termios-c_cc.h: Likewise.
7458 * sysdeps/unix/sysv/linux/sparc/bits/termios-c_cc.h: Likewise.
7459 * sysdeps/unix/sysv/linux/bits/termios.h (VINTR, VQUIT, VERASE,
7460 VKILL, VEOF, VTIME, VMIN, VSWTC, VSTART, VSTOP, VSUSP, VEOL,
7461 VREPRINT, VDISCARD, VWERASE, VLNEXT, VEOLF2): Move to termios-cc.h.
7462 * sysdeps/unix/sysv/linux/alpha/bits/termios.h: Likewise.
7463 * sysdeps/unix/sysv/linux/mips/bits/termios.h: Likewise.
7464 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
7465 * sysdeps/unix/sysv/linux/sparc/bits/termios.h: Likewise.
7466
7467 * sysdeps/unix/sysv/linux/alpha/bits/termios-struct.h: New file.
7468 * sysdeps/unix/sysv/linux/bits/termios-struct.h: Likewise.
7469 * sysdeps/unix/sysv/linux/mips/bits/termios-struct.h: Likewise.
7470 * sysdeps/unix/sysv/linux/sparc/bits/termios-struct.h: Likewise.
7471 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
7472 termios-struct.h.
7473 * sysdeps/unix/sysv/linux/bits/termios.h (struct termios): Move to
7474 termios-struct.h.
7475 * sysdeps/unix/sysv/linux/alpha/bits/termios.h (struct termios):
7476 Likewise.
7477 * sysdeps/unix/sysv/linux/mips/bits/termios.h (struct termios):
7478 Likewise.
7479 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h (struct termios):
7480 Likewise.
7481 * sysdeps/unix/sysv/linux/sparc/bits/termios.h (struct termios):
7482 Likewise.
7483 * sysdeps/unix/sysv/linux/kernel_termios.h (_HAVE_C_ISPEED,
7484 _HAVE_C_OSPEED): Define.
7485 * sysdeps/unix/sysv/linux/mips/kernel_termios.h (_HAVE_C_ISPEED,
7486 _HAVE_C_OSPEED): Likewise.
7487 * sysdeps/unix/sysv/linux/sparc/kernel_termios.h (_HAVE_C_ISPEED,
7488 _HAVE_C_OSPEED): Likewise.
7489 * sysdeps/unix/sysv/linux/speed.c [_HAVE_STRUCT_TERMIOS_C_OSPEED]
7490 (cfsetospeed): Check for define value instead of existence.
7491 [_HAVE_STRUCT_TERMIOS_C_ISPEED] (cfsetispeed): Likewise.
7492 * sysdeps/unix/sysv/linux/tcgetattr.c [_HAVE_STRUCT_TERMIOS_C_ISPEED
7493 && _HAVE_C_ISPEED] (__tcgetattr): Likewise.
7494 * sysdeps/unix/sysv/linux/tcsetattr.c [_HAVE_STRUCT_TERMIOS_C_ISPEED
7495 && _HAVE_C_ISPEED] (__tcsetattr): Likewise.
7496
7497 [BZ #17783]
7498 * sysdeps/unix/sysv/linux/bits/termios.h [__USE_MISC] (TIOCSER_TEMT):
7499 Define.
7500 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h [__USE_MISC]
7501 (TIOCSER_TEMT): Likewise.
7502 * sysdeps/unix/sysv/linux/sparc/bits/termios.h [__USE_MISC]
7503 (TEOCSER_TEMT): Likewise.
7504
7505 2019-01-02 PanderMusubi <pander@users.sourceforge.net>
7506
7507 [BZ #24011]
7508 * localedata/locales/bs_BA (LC_TELEPHONE): Fix a typo in comment.
7509
7510 2019-01-02 Joseph Myers <joseph@codesourcery.com>
7511
7512 * sysdeps/powerpc/nofpu/libm-test-ulps: Update.
7513
7514 2019-01-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
7515
7516 * sysdeps/htl/pt-barrierattr-setpshared.c
7517 (pthread_barrierattr_setpshared): Add stub warning.
7518 * sysdeps/htl/pt-condattr-setpshared.c
7519 (pthread_condattr_setpshared): Likewise.
7520 * sysdeps/htl/pt-mutexattr-setpshared.c
7521 (pthread_mutexattr_setpshared): Likewise.
7522 * sysdeps/htl/pt-rwlockattr-setpshared.c
7523 (pthread_rwlockattr_setpshared): Likewise.
7524 * sysdeps/mach/hurd/htl/pt-mutexattr-setpshared.c
7525 (pthread_mutexattr_setpshared): Likewise.
7526
7527 2019-01-02 Joseph Myers <joseph@codesourcery.com>
7528
7529 * sysdeps/unix/sysv/linux/tst-mman-consts.py (main): Expect
7530 constants to match with Linux 4.20.
7531
7532 * sysdeps/mips/mips32/libm-test-ulps: Update.
7533 * sysdeps/mips/mips64/libm-test-ulps: Likewise.
7534
7535 2019-01-02 Aurelien Jarno <aurelien@aurel32.net>
7536
7537 [BZ #24034]
7538 * sysdeps/unix/sysv/linux/arm/atomic-machine.h
7539 (__arm_assisted_compare_and_exchange_val_32_acq): Use uint32_t rather
7540 than __typeof (...) for the a_ptr variable.
7541
7542 2019-01-02 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
7543
7544 * debug/sprintf_chk.c (___sprintf_chk): Use PRINTF_CHK.
7545 * debug/vsprintf_chk.c (___vsprintf_chk): Likewise.
7546 * libio/Makefile (tests): Add tst-sprintf-ub and
7547 tst-sprintf-chk-ub.
7548 (CFLAGS-tst-sprintf-ub.c): New variable.
7549 (CFLAGS-tst-sprintf-chk-ub.c): Likewise.
7550 * libio/iovsprintf.c (__vsprintf_internal): Only erase the
7551 destination buffer and check for overflows in fortified mode.
7552 * libio/libioP.h (PRINTF_CHK): New macro.
7553 * libio/tst-sprintf-chk-ub.c: New file.
7554 * libio/tst-sprintf-ub.c: Likewise.
7555
7556 2019-01-02 Florian Weimer <fweimer@redhat.com>
7557
7558 [BZ #24018]
7559 * intl/dcigettext.c (DCIGETTEXT): Do not return NULL on asprintf
7560 failure.
7561
7562 2019-01-02 Florian Weimer <fweimer@redhat.com>
7563
7564 * nptl/tst-audit-threads.c: Switch to <support/test-driver.c>.
7565
7566 2019-01-01 Joseph Myers <joseph@codesourcery.com>
7567
7568 * sysdeps/unix/sysv/linux/bits/in.h (IPV6_MULTICAST_ALL): New
7569 macro.
7570
7571 * sysdeps/unix/sysv/linux/netpacket/packet.h
7572 (PACKET_IGNORE_OUTGOING): New macro.
7573
7574 * sysdeps/unix/sysv/linux/aarch64/bits/hwcap.h (HWCAP_SSBS): New
7575 macro.
7576
7577 * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
7578 version to 4.20.
7579 (riscv_flush_icache): New syscall.
7580
7581 * manual/texinfo.tex: Update to version 2018-12-28.17 with
7582 trailing whitespace removed.
7583 * scripts/config.guess: Update to version 2019-01-01.
7584 * scripts/config.sub: Update to version 2019-01-01.
7585 * scripts/move-if-change: Update from gnulib.
7586
7587 * NEWS: Update copyright dates.
7588 * catgets/gencat.c (print_version): Likewise.
7589 * csu/version.c (banner): Likewise.
7590 * debug/catchsegv.sh: Likewise.
7591 * debug/pcprofiledump.c (print_version): Likewise.
7592 * debug/xtrace.sh (do_version): Likewise.
7593 * elf/ldconfig.c (print_version): Likewise.
7594 * elf/ldd.bash.in: Likewise.
7595 * elf/pldd.c (print_version): Likewise.
7596 * elf/sotruss.sh: Likewise.
7597 * elf/sprof.c (print_version): Likewise.
7598 * iconv/iconv_prog.c (print_version): Likewise.
7599 * iconv/iconvconfig.c (print_version): Likewise.
7600 * locale/programs/locale.c (print_version): Likewise.
7601 * locale/programs/localedef.c (print_version): Likewise.
7602 * login/programs/pt_chown.c (print_version): Likewise.
7603 * malloc/memusage.sh (do_version): Likewise.
7604 * malloc/memusagestat.c (print_version): Likewise.
7605 * malloc/mtrace.pl: Likewise.
7606 * manual/libc.texinfo: Likewise.
7607 * nptl/version.c (banner): Likewise.
7608 * nscd/nscd.c (print_version): Likewise.
7609 * nss/getent.c (print_version): Likewise.
7610 * nss/makedb.c (print_version): Likewise.
7611 * posix/getconf.c (main): Likewise.
7612 * scripts/test-installation.pl: Likewise.
7613 * sysdeps/unix/sysv/linux/lddlibc4.c (main): Likewise.
7614
7615 * All files with FSF copyright notices: Update copyright dates
7616 using scripts/update-copyrights.
7617 * locale/programs/charmap-kw.h: Regenerated.
7618 * locale/programs/locfile-kw.h: Likewise.
7619
7620 2018-12-31 Joseph Myers <joseph@codesourcery.com>
7621
7622 * timezone/zdump.c: Update from tzcode 2018i.
7623 * timezone/zic.c: Likewise.
7624
7625 2018-12-31 Paul Eggert <eggert@cs.ucla.edu>
7626
7627 regex: improve Gnulib port to AIX
7628 From the glibc point of view, this removes duplicate macro
7629 definitions and is obviously safe.
7630 From the Gnulib point of view, this pacifies xlc 12.01 on AIX 7.1.
7631 * posix/regex_internal.h:
7632 (__attribute__, __attribute_warn_unused_result__):
7633 Remove; already defined elsewhere.
7634
7635 2018-12-31 Florian Weimer <fw@deneb.enyo.de>
7636
7637 [BZ #24027]
7638 * malloc/malloc.c (_int_realloc): Always call memcpy for the
7639 copying operation. (ncopies had the wrong type, resulting in an
7640 integer wraparound and too few elements being copied.)
7641
7642 2018-12-31 H.J. Lu <hongjiu.lu@intel.com>
7643
7644 [BZ #24022]
7645 * sysdeps/unix/sysv/linux/riscv/flush-icache.c: Check if
7646 <asm/syscalls.h> exists with __has_include__ before including it.
7647
7648 2018-12-31 Joseph Myers <joseph@codesourcery.com>
7649
7650 * scripts/build-many-glibcs.py (Context.checkout): Default Linux
7651 version to 4.20.
7652
7653 2018-12-28 Justus Winter <4winter@informatik.uni-hamburg.de>
7654
7655 * hurd/lookup-retry: Include <unistd.h>.
7656 (__hurd_file_name_lookup_retry): Keep a ref on last result in `lastdir'.
7657 Release it on return. Handle "pid" magical lookup retry.
7658
7659 2018-12-28 Rafał Lużyński <digitalfreak@lingonborough.com>
7660
7661 [BZ #10496]
7662 * localedata/locales/aa_DJ (t_fmt): Set to "%l:%M:%S %p".
7663 (t_fmt_ampm): Likewise.
7664 * localedata/locales/aa_ER (t_fmt): Likewise.
7665 (t_fmt_ampm): Likewise.
7666 * localedata/locales/aa_ER@saaho (t_fmt): Likewise.
7667 (t_fmt_ampm): Likewise.
7668 * localedata/locales/aa_ET (t_fmt): Likewise.
7669 (t_fmt_ampm): Likewise.
7670 * localedata/locales/am_ET (t_fmt): Likewise.
7671 (t_fmt_ampm): Likewise.
7672 * localedata/locales/byn_ER (t_fmt): Likewise.
7673 (t_fmt_ampm): Likewise.
7674 * localedata/locales/om_ET (t_fmt): Likewise.
7675 (t_fmt_ampm): Likewise.
7676 * localedata/locales/sid_ET (t_fmt): Likewise.
7677 (t_fmt_ampm): Likewise.
7678 * localedata/locales/so_DJ (t_fmt): Likewise.
7679 (t_fmt_ampm): Likewise.
7680 * localedata/locales/so_ET (t_fmt): Likewise.
7681 (t_fmt_ampm): Likewise.
7682 * localedata/locales/so_SO (t_fmt): Likewise.
7683 (t_fmt_ampm): Likewise.
7684 * localedata/locales/ti_ER (t_fmt): Likewise.
7685 (t_fmt_ampm): Likewise.
7686 * localedata/locales/ti_ET (t_fmt): Likewise.
7687 (t_fmt_ampm): Likewise.
7688 * localedata/locales/tig_ER (t_fmt): Likewise.
7689 (t_fmt_ampm): Likewise.
7690 * localedata/locales/wal_ET (t_fmt): Likewise.
7691 (t_fmt_ampm): Likewise.
7692
7693 * localedata/locales/anp_IN (t_fmt): Set to "%I:%M:%S %p %Z".
7694 * localedata/locales/ar_IN (t_fmt): Likewise.
7695 * localedata/locales/bhb_IN (t_fmt): Likewise.
7696 * localedata/locales/bho_IN (t_fmt): Likewise.
7697 * localedata/locales/bi_VU (t_fmt): Likewise.
7698 * localedata/locales/bn_BD (t_fmt): Likewise.
7699 * localedata/locales/bn_IN (t_fmt): Likewise.
7700 * localedata/locales/brx_IN (t_fmt): Likewise.
7701 * localedata/locales/doi_IN (t_fmt): Likewise.
7702 * localedata/locales/en_HK (t_fmt): Likewise.
7703 (t_fmt_ampm): Likewise.
7704 * localedata/locales/en_IN (t_fmt): Likewise.
7705 * localedata/locales/en_PH (t_fmt): Likewise.
7706 * localedata/locales/gu_IN (t_fmt): Likewise.
7707 * localedata/locales/hi_IN (t_fmt): Likewise.
7708 * localedata/locales/hif_FJ (t_fmt): Likewise.
7709 * localedata/locales/hne_IN (t_fmt): Likewise.
7710 * localedata/locales/kn_IN (t_fmt): Likewise.
7711 * localedata/locales/kok_IN (t_fmt): Likewise.
7712 * localedata/locales/ks_IN (t_fmt): Likewise.
7713 * localedata/locales/ks_IN@devanagari (t_fmt): Likewise.
7714 * localedata/locales/mag_IN (t_fmt): Likewise.
7715 * localedata/locales/mai_IN (t_fmt): Likewise.
7716 * localedata/locales/mjw_IN (t_fmt): Likewise.
7717 * localedata/locales/ml_IN (t_fmt): Likewise.
7718 * localedata/locales/mni_IN (t_fmt): Likewise.
7719 * localedata/locales/mr_IN (t_fmt): Likewise.
7720 * localedata/locales/ms_MY (t_fmt): Likewise.
7721 * localedata/locales/pa_IN (t_fmt): Likewise.
7722 * localedata/locales/raj_IN (t_fmt): Likewise.
7723 * localedata/locales/sa_IN (t_fmt): Likewise.
7724 * localedata/locales/sat_IN (t_fmt): Likewise.
7725 * localedata/locales/sd_IN (t_fmt): Likewise.
7726 * localedata/locales/sd_IN@devanagari (t_fmt): Likewise.
7727 * localedata/locales/tcy_IN (t_fmt): Likewise.
7728 * localedata/locales/the_NP (t_fmt): Likewise.
7729 * localedata/locales/to_TO (t_fmt): Likewise.
7730 * localedata/locales/ur_IN (t_fmt): Likewise.
7731
7732 * localedata/locales/hif_FJ (d_t_fmt): Set to
7733 "%A %d %b %Y %I:%M:%S %p".
7734 (date_fmt): Add, set to "%A %d %b %Y %I:%M:%S %p %Z".
7735
7736 * localedata/locales/ar_AE (t_fmt): Set to "%Z %I:%M:%S %p".
7737 * localedata/locales/ar_BH (t_fmt): Likewise.
7738 * localedata/locales/ar_DZ (t_fmt): Likewise.
7739 * localedata/locales/ar_EG (t_fmt): Likewise.
7740 * localedata/locales/ar_IQ (t_fmt): Likewise.
7741 * localedata/locales/ar_JO (t_fmt): Likewise.
7742 * localedata/locales/ar_KW (t_fmt): Likewise.
7743 * localedata/locales/ar_LB (t_fmt): Likewise.
7744 * localedata/locales/ar_LY (t_fmt): Likewise.
7745 * localedata/locales/ar_OM (t_fmt): Likewise.
7746 * localedata/locales/ar_QA (t_fmt): Likewise.
7747 * localedata/locales/ar_SD (t_fmt): Likewise.
7748 * localedata/locales/ar_SS (t_fmt): Likewise.
7749 * localedata/locales/ar_SY (t_fmt): Likewise.
7750 * localedata/locales/ar_TN (t_fmt): Likewise.
7751 * localedata/locales/ar_YE (t_fmt): Likewise.
7752
7753 * localedata/locales/gez_ER (t_fmt): Set to "%l:%M:%S<U1361>%p".
7754 (t_fmt_ampm): Likewise.
7755 * localedata/locales/gez_ET (t_fmt): Likewise.
7756 (t_fmt_ampm): Likewise.
7757
7758 * localedata/locales/ta_IN (t_fmt): Set to "%p %I:%M:%S %Z".
7759 (t_fmt_ampm): Likewise.
7760 (d_t_fmt): Set to "%A %d %B %Y %p %I:%M:%S %Z".
7761
7762 * localedata/locales/zh_HK (t_fmt):
7763 Set to "%p %I<U6642>%M<U5206>%S<U79D2> %Z".
7764
7765 * localedata/locales/ar_MA (t_fmt_ampm): Set to "" (empty string)
7766 because this locale does not use the 12-hour clock.
7767 (t_fmt): Set to "%Z %H:%M:%S".
7768 (d_t_fmt): Set to "%d %b, %Y %Z %H:%M:%S".
7769
7770 * localedata/locales/mt_MT (t_fmt_ampm): Set to "" (empty string)
7771 because this locale does not use the 12-hour clock.
7772 (t_fmt): Set to "%H:%M:%S %Z".
7773 (d_t_fmt): Set to "%A, %d ta %b, %Y %H:%M:%S %Z".
7774
7775 * localedata/locales/so_KE (t_fmt_ampm): Set to "" (empty string)
7776 because this locale does not use the 12-hour clock.
7777 (t_fmt): Set to "%T".
7778 (d_t_fmt): Set to "%A, %B %e, %Y %X %Z".
7779 (date_fmt): Set to "%A, %B %e, %X %Z %Y".
7780
7781 * localedata/locales/ta_LK (t_fmt_ampm): Set to "" (empty string)
7782 because this locale does not use the 12-hour clock.
7783 (t_fmt): Set to "%H:%M:%S %Z".
7784 (d_t_fmt): Set to "%A %d %B %Y %H:%M:%S %Z".
7785
7786 * localedata/locales/bg_BG (t_fmt_ampm): Set to "" (empty string)
7787 because this locale does not use the 12-hour clock.
7788 * localedata/locales/cs_CZ (t_fmt_ampm): Likewise.
7789 * localedata/locales/sk_SK (t_fmt_ampm): Likewise.
7790
7791 2018-12-28 Rafał Lużyński <digitalfreak@lingonborough.com>
7792
7793 [BZ #10496]
7794 [BZ #23724]
7795 * localedata/locales/sq_AL (t_fmt): Set to "%I:%M:%S.%p %Z".
7796 (t_fmt_ampm): Likewise.
7797 (d_t_fmt): Set to "%a %-d %b %Y %I:%M:%S.%p".
7798 (date_fmt): Add, set to "%a %-d %b %Y %I:%M:%S.%p %Z".
7799 (d_fmt): Set to "%-d.%-m.%y".
7800
7801 2018-12-28 Adhemerval Zanella <adhemerval.zanella@linaro.org>
7802
7803 * malloc/alloc_buffer_alloc_array.c (__libc_alloc_buffer_alloc_array):
7804 Use __builtin_mul_overflow in place of check_mul_overflow_size_t.
7805 * malloc/dynarray_emplace_enlarge.c (__libc_dynarray_emplace_enlarge):
7806 Likewise.
7807 * malloc/dynarray_resize.c (__libc_dynarray_resize): Likewise.
7808 * malloc/reallocarray.c (__libc_reallocarray): Likewise.
7809 * malloc/malloc-internal.h (check_mul_overflow_size_t): Remove
7810 function.
7811 * support/blob_repeat.c (check_mul_overflow_size_t,
7812 (minimum_stride_size, support_blob_repeat_allocate): Likewise.
7813
7814 2018-12-28 Aurelien Jarno <aurelien@aurel32.net>
7815
7816 * sysdeps/alpha/fpu/libm-test-ulps: Regenerated.
7817
7818 2018-12-27 Paul Eggert <eggert@cs.ucla.edu>
7819
7820 regex: simplify Gnulib port
7821 This simplifies the code, by removing stuff intended for porting
7822 to Gnulib but no longer needed there.
7823 * posix/regcomp.c [!_LIBC]: No need to put #ifdef _LIBC around
7824 uses of libc_hidden_def, weak_alias.
7825 * posix/regcomp.c, posix/regexec.c: Use __restrict rather than
7826 _Restrict_ except for public-facing headers.
7827 * posix/regex_internal.h (attribute_hidden) [!_LIBC]:
7828 Remove; already defined elsewhere.
7829 * posix/regex.c, posix/regex_internal.h:
7830 Use __GNUC_PREREQ instead of rolling our own.
7831 * posix/regex_internal.h (__GNUC_PREREQ): Remove duplicate defn.
7832
7833 2018-12-27 Wilco Dijkstra <wdijkstr@arm.com>
7834
7835 * benchtests/bench-strlen.c (generic_strlen): New function.
7836 (memchr_strlen): New function.
7837
7838 2018-12-26 H.J. Lu <hongjiu.lu@intel.com>
7839
7840 * sysdeps/x86_64/fpu/s_sincosf.S: Removed.
7841 * sysdeps/x86_64/fpu/multiarch/s_sincosf-sse2.S: Likewise.
7842 * sysdeps/x86_64/fpu/multiarch/s_sincosf-sse2.c: New file.
7843
7844 2018-12-26 H.J. Lu <hongjiu.lu@intel.com>
7845
7846 * sysdeps/x86_64/fpu/libm-test-ulps: Regenerated.
7847
7848 2018-12-26 H.J. Lu <hongjiu.lu@intel.com>
7849
7850 * sysdeps/ieee754/flt-32/s_sincosf.h: Include <sincosf_poly.h>.
7851 (sincos_t, sincosf_poly, sinf_poly): Moved to ...
7852 * sysdeps/ieee754/flt-32/sincosf_poly.h: Here. New file.
7853 * sysdeps/x86/fpu/s_sincosf_data.c: New file.
7854 * sysdeps/x86/fpu/sincosf_poly.h: Likewise.
7855 * sysdeps/x86_64/fpu/multiarch/s_sincosf-fma.c: Just include
7856 <sysdeps/ieee754/flt-32/s_sincosf.c>.
7857
7858 2018-12-21 Joseph Myers <joseph@codesourcery.com>
7859
7860 [BZ #24023]
7861 * sysdeps/unix/sysv/linux/nios2/localplt.data: Allow __floatundidf
7862 PLT reference in libc.so.
7863 * sysdeps/unix/sysv/linux/sparc/sparc32/localplt.data: Allow
7864 _Q_lltoq and _Q_qtod PLT references in libc.so.
7865
7866 2018-12-21 Wilco Dijkstra <wdijkstr@arm.com>
7867
7868 * benchtests/bench-memchr.c: Cleanup defines.
7869 * benchtests/bench-memcmp.c: Likewise.
7870 * benchtests/bench-memset.c: Likewise.
7871 * benchtests/bench-memset-large.c: Likewise.
7872 * benchtests/bench-memset-walk.c: Likewise.
7873 * benchtests/bench-stpcpy.c: Likewise.
7874 * benchtests/bench-stpncpy.c: Likewise.
7875 * benchtests/bench-strcat.c: Likewise.
7876 * benchtests/bench-strchr.c: Likewise.
7877 * benchtests/bench-strcmp.c: Likewise.
7878 * benchtests/bench-strcpy.c: Likewise.
7879 * benchtests/bench-strcspn.c: Likewise.
7880 * benchtests/bench-string.h: Likewise.
7881 * benchtests/bench-strlen.c: Likewise.
7882 * benchtests/bench-strncat.c: Likewise.
7883 * benchtests/bench-strncmp.c: Likewise.
7884 * benchtests/bench-strncpy.c: Likewise.
7885 * benchtests/bench-strnlen.c: Likewise.
7886 * benchtests/bench-strpbrk.c: Likewise.
7887 * benchtests/bench-strrchr.c: Likewise.
7888 * benchtests/bench-strspn.c: Likewise.
7889
7890 2018-12-21 Joseph Myers <joseph@codesourcery.com>
7891
7892 * stdlib/longlong.h: Update from GCC.
7893
7894 [BZ #23993]
7895 * configure.ac (libc_cv_compiler_ok): Require GCC 5 or later.
7896 * configure: Regenerated.
7897 * manual/install.texi (Tools for Compilation): Update minimum GCC
7898 version.
7899 * INSTALL: Regenerated.
7900
7901 2018-12-21 Istvan Kurucsai <pistukem@gmail.com>
7902
7903 * malloc/malloc.c (munmap_chunk): Verify chunk alignment.
7904
7905 2018-12-20 Istvan Kurucsai <pistukem@gmail.com>
7906
7907 * malloc/malloc.c (mremap_chunk): Additional checks.
7908
7909 2018-12-21 Mao Han <han_mao@c-sky.com>
7910
7911 * config.h.in (CSKYABI, CSKY_HARD_FLOAT): New Define.
7912 * scripts/build-many-glibcs.py: Add C-SKY targets.
7913 * sysdeps/csky/Implies: New file.
7914 * sysdeps/csky/Makefile: Likewise.
7915 * sysdeps/csky/abiv2/__longjmp.S: Likewise.
7916 * sysdeps/csky/abiv2/csky-mcount.S: Likewise.
7917 * sysdeps/csky/abiv2/dl-trampoline.S: Likewise.
7918 * sysdeps/csky/abiv2/memcmp.S: Likewise.
7919 * sysdeps/csky/abiv2/memcpy.S: Likewise.
7920 * sysdeps/csky/abiv2/memmove.S: Likewise.
7921 * sysdeps/csky/abiv2/memset.S: Likewise.
7922 * sysdeps/csky/abiv2/setjmp.S: Likewise.
7923 * sysdeps/csky/abiv2/start.S: Likewise.
7924 * sysdeps/csky/abiv2/strcmp.S: Likewise.
7925 * sysdeps/csky/abiv2/strcpy.S: Likewise.
7926 * sysdeps/csky/abiv2/strlen.S: Likewise.
7927 * sysdeps/csky/abiv2/tls-macros.h: Likewise.
7928 * sysdeps/csky/abort-instr.h: Likewise.
7929 * sysdeps/csky/atomic-machine.h: Likewise.
7930 * sysdeps/csky/bits/endian.h: Likewise.
7931 * sysdeps/csky/bits/fenv.h: Likewise.
7932 * sysdeps/csky/bits/link.h: Likewise.
7933 * sysdeps/csky/bits/setjmp.h: Likewise.
7934 * sysdeps/csky/bsd-_setjmp.S: Likewise.
7935 * sysdeps/csky/bsd-setjmp.S: Likewise.
7936 * sysdeps/csky/configure: Likewise.
7937 * sysdeps/csky/configure.ac: Likewise.
7938 * sysdeps/csky/dl-machine.h: Likewise.
7939 * sysdeps/csky/dl-procinfo.c: Likewise.
7940 * sysdeps/csky/dl-procinfo.h: Likewise.
7941 * sysdeps/csky/dl-sysdep.h: Likewise.
7942 * sysdeps/csky/dl-tls.h: Likewise.
7943 * sysdeps/csky/fpu/fclrexcpt.c: Likewise.
7944 * sysdeps/csky/fpu/fedisblxcpt.c: Likewise.
7945 * sysdeps/csky/fpu/feenablxcpt.c: Likewise.
7946 * sysdeps/csky/fpu/fegetenv.c: Likewise.
7947 * sysdeps/csky/fpu/fegetexcept.c: Likewise.
7948 * sysdeps/csky/fpu/fegetmode.c: Likewise.
7949 * sysdeps/csky/fpu/fegetround.c: Likewise.
7950 * sysdeps/csky/fpu/feholdexcpt.c: Likewise.
7951 * sysdeps/csky/fpu/fenv_libc.h: Likewise.
7952 * sysdeps/csky/fpu/fenv_private.h: Likewise.
7953 * sysdeps/csky/fpu/fesetenv.c: Likewise.
7954 * sysdeps/csky/fpu/fesetexcept.c: Likewise.
7955 * sysdeps/csky/fpu/fesetmode.c: Likewise.
7956 * sysdeps/csky/fpu/fesetround.c: Likewise.
7957 * sysdeps/csky/fpu/feupdateenv.c: Likewise.
7958 * sysdeps/csky/fpu/fgetexcptflg.c: Likewise.
7959 * sysdeps/csky/fpu/fix-fp-int-convert-overflow.h: Likewise.
7960 * sysdeps/csky/fpu/fraiseexcpt.c: Likewise.
7961 * sysdeps/csky/fpu/fsetexcptflg.c: Likewise.
7962 * sysdeps/csky/fpu/ftestexcept.c: Likewise.
7963 * sysdeps/csky/fpu/libm-test-ulps: Likewise.
7964 * sysdeps/csky/fpu/libm-test-ulps-name: Likewise.
7965 * sysdeps/csky/fpu_control.h: Likewise.
7966 * sysdeps/csky/gccframe.h: Likewise.
7967 * sysdeps/csky/jmpbuf-unwind.h: Likewise.
7968 * sysdeps/csky/ldsodefs.h: Likewise.
7969 * sysdeps/csky/libc-tls.c: Likewise.
7970 * sysdeps/csky/linkmap.h: Likewise.
7971 * sysdeps/csky/machine-gmon.h: Likewise.
7972 * sysdeps/csky/memusage.h: Likewise.
7973 * sysdeps/csky/nofpu/Implies: Likewise.
7974 * sysdeps/csky/nofpu/libm-test-ulps: Likewise.
7975 * sysdeps/csky/nofpu/libm-test-ulps-name: Likewise.
7976 * sysdeps/csky/nptl/Makefile: Likewise.
7977 * sysdeps/csky/nptl/bits/pthreadtypes-arch.h: Likewise.
7978 * sysdeps/csky/nptl/bits/semaphore.h: Likewise.
7979 * sysdeps/csky/nptl/pthread-offsets.h: Likewise.
7980 * sysdeps/csky/nptl/pthreaddef.h: Likewise.
7981 * sysdeps/csky/nptl/tcb-offsets.sym: Likewise.
7982 * sysdeps/csky/nptl/tls.h: Likewise.
7983 * sysdeps/csky/preconfigure: Likewise.
7984 * sysdeps/csky/sfp-machine.h: Likewise.
7985 * sysdeps/csky/sotruss-lib.c: Likewise.
7986 * sysdeps/csky/stackinfo.h: Likewise.
7987 * sysdeps/csky/sysdep.h: Likewise.
7988 * sysdeps/csky/tininess.h: Likewise.
7989 * sysdeps/csky/tst-audit.h: Likewise.
7990 * sysdeps/unix/sysv/linux/csky/Implies: Likewise.
7991 * sysdeps/unix/sysv/linux/csky/Makefile: Likewise.
7992 * sysdeps/unix/sysv/linux/csky/Versions: Likewise.
7993 * sysdeps/unix/sysv/linux/csky/abiv2/____longjmp_chk.S: Likewise.
7994 * sysdeps/unix/sysv/linux/csky/abiv2/clone.S: Likewise.
7995 * sysdeps/unix/sysv/linux/csky/abiv2/getcontext.S: Likewise.
7996 * sysdeps/unix/sysv/linux/csky/abiv2/setcontext.S: Likewise.
7997 * sysdeps/unix/sysv/linux/csky/abiv2/swapcontext.S: Likewise.
7998 * sysdeps/unix/sysv/linux/csky/abiv2/syscall.S: Likewise.
7999 * sysdeps/unix/sysv/linux/csky/abiv2/sysdep.S: Likewise.
8000 * sysdeps/unix/sysv/linux/csky/abiv2/ucontext_i.sym: Likewise.
8001 * sysdeps/unix/sysv/linux/csky/bits/procfs.h: Likewise.
8002 * sysdeps/unix/sysv/linux/csky/bits/shmlba.h: Likewise.
8003 * sysdeps/unix/sysv/linux/csky/c++-types.data: Likewise.
8004 * sysdeps/unix/sysv/linux/csky/configure: Likewise.
8005 * sysdeps/unix/sysv/linux/csky/configure.ac: Likewise.
8006 * sysdeps/unix/sysv/linux/csky/ipc_priv.h: Likewise.
8007 * sysdeps/unix/sysv/linux/csky/jmp_buf-macros.h: Likewise.
8008 * sysdeps/unix/sysv/linux/csky/kernel-features.h: Likewise.
8009 * sysdeps/unix/sysv/linux/csky/ld.abilist: Likewise.
8010 * sysdeps/unix/sysv/linux/csky/ldconfig.h: Likewise.
8011 * sysdeps/unix/sysv/linux/csky/libBrokenLocale.abilist: Likewise.
8012 * sysdeps/unix/sysv/linux/csky/libanl.abilist: Likewise.
8013 * sysdeps/unix/sysv/linux/csky/libc.abilist: Likewise.
8014 * sysdeps/unix/sysv/linux/csky/libcrypt.abilist: Likewise.
8015 * sysdeps/unix/sysv/linux/csky/libdl.abilist: Likewise.
8016 * sysdeps/unix/sysv/linux/csky/libm.abilist: Likewise.
8017 * sysdeps/unix/sysv/linux/csky/libpthread.abilist: Likewise.
8018 * sysdeps/unix/sysv/linux/csky/libresolv.abilist: Likewise.
8019 * sysdeps/unix/sysv/linux/csky/librt.abilist: Likewise.
8020 * sysdeps/unix/sysv/linux/csky/libthread_db.abilist: Likewise.
8021 * sysdeps/unix/sysv/linux/csky/libutil.abilist: Likewise.
8022 * sysdeps/unix/sysv/linux/csky/localplt.data: Likewise.
8023 * sysdeps/unix/sysv/linux/csky/makecontext.c: Likewise.
8024 * sysdeps/unix/sysv/linux/csky/profil-counter.h: Likewise.
8025 * sysdeps/unix/sysv/linux/csky/pt-vfork.S: Likewise.
8026 * sysdeps/unix/sysv/linux/csky/register-dump.h: Likewise.
8027 * sysdeps/unix/sysv/linux/csky/shlib-versions: Likewise.
8028 * sysdeps/unix/sysv/linux/csky/sigcontextinfo.h: Likewise.
8029 * sysdeps/unix/sysv/linux/csky/sys/cachectl.h: Likewise.
8030 * sysdeps/unix/sysv/linux/csky/sys/ucontext.h: Likewise.
8031 * sysdeps/unix/sysv/linux/csky/sys/user.h: Likewise.
8032 * sysdeps/unix/sysv/linux/csky/syscalls.list: Likewise.
8033 * sysdeps/unix/sysv/linux/csky/sysdep.h: Likewise.
8034
8035 2018-12-18 Albert ARIBAUD <albert.aribaud@3adev.fr>
8036
8037 * include/time.h (__difftime64): Add.
8038 * time/difftime.c (subtract): convert to 64-bit time.
8039 * time/difftime.c (__difftime64): Add.
8040 * time/difftime.c (__difftime): Wrap around __difftime64.
8041
8042 2018-12-20 H.J. Lu <hongjiu.lu@intel.com>
8043
8044 * manual/examples/add.c: Remove redundant "if not".
8045 * manual/examples/argp-ex1.c: Likewise.
8046 * manual/examples/argp-ex2.c: Likewise.
8047 * manual/examples/argp-ex3.c: Likewise.
8048 * manual/examples/argp-ex4.c: Likewise.
8049 * manual/examples/atexit.c: Likewise.
8050 * manual/examples/db.c: Likewise.
8051 * manual/examples/dir.c: Likewise.
8052 * manual/examples/dir2.c: Likewise.
8053 * manual/examples/execinfo.c: Likewise.
8054 * manual/examples/filecli.c: Likewise.
8055 * manual/examples/filesrv.c: Likewise.
8056 * manual/examples/fmtmsgexpl.c: Likewise.
8057 * manual/examples/genpass.c: Likewise.
8058 * manual/examples/inetcli.c: Likewise.
8059 * manual/examples/inetsrv.c: Likewise.
8060 * manual/examples/isockad.c: Likewise.
8061 * manual/examples/longopt.c: Likewise.
8062 * manual/examples/memopen.c: Likewise.
8063 * manual/examples/memstrm.c: Likewise.
8064 * manual/examples/mkdirent.c: Likewise.
8065 * manual/examples/mkfsock.c: Likewise.
8066 * manual/examples/mkisock.c: Likewise.
8067 * manual/examples/mygetpass.c: Likewise.
8068 * manual/examples/pipe.c: Likewise.
8069 * manual/examples/popen.c: Likewise.
8070 * manual/examples/rprintf.c: Likewise.
8071 * manual/examples/search.c: Likewise.
8072 * manual/examples/select.c: Likewise.
8073 * manual/examples/setjmp.c: Likewise.
8074 * manual/examples/sigh1.c: Likewise.
8075 * manual/examples/sigusr.c: Likewise.
8076 * manual/examples/stpcpy.c: Likewise.
8077 * manual/examples/strdupa.c: Likewise.
8078 * manual/examples/strftim.c: Likewise.
8079 * manual/examples/subopt.c: Likewise.
8080 * manual/examples/swapcontext.c: Likewise.
8081 * manual/examples/termios.c: Likewise.
8082 * manual/examples/testopt.c: Likewise.
8083 * manual/examples/testpass.c: Likewise.
8084 * manual/examples/timeval_subtract.c: Likewise.
8085
8086 2018-12-19 Joseph Myers <joseph@codesourcery.com>
8087
8088 * sysdeps/x86/fpu/math_private.h: New file.
8089 * sysdeps/x86/fpu/bits/mathinline.h: Remove.
8090
8091 * sysdeps/x86/fpu/bits/mathinline.h (sinh): Remove inline
8092 definition.
8093 (cosh): Likewise.
8094 (tanh): Likewise.
8095
8096 2018-12-19 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
8097
8098 * elf/dl-sysdep.c (auxvars): Add AT_L1I_CACHESIZE,
8099 AT_L1I_CACHEGEOMETRY, AT_L1D_CACHESIZE, AT_L1D_CACHEGEOMETRY,
8100 AT_L2_CACHESIZE, AT_L2_CACHEGEOMETRY, AT_L3_CACHESIZE and
8101 AT_L3_CACHEGEOMETRY. Fix indentation when printing the other
8102 fields.
8103 (_dl_show_auxv): Give a special treatment to
8104 AT_L1I_CACHEGEOMETRY, AT_L1D_CACHEGEOMETRY, AT_L2_CACHEGEOMETRY
8105 and AT_L3_CACHEGEOMETRY.
8106 * sysdeps/powerpc/dl-procinfo.h (cache_geometry): New function.
8107 (_dl_procinfo): Fix indentation when printing AT_HWCAP and
8108 AT_HWCAP2. Add support for AT_L1I_CACHEGEOMETRY,
8109 AT_L1D_CACHEGEOMETRY, AT_L2_CACHEGEOMETRY and AT_L3_CACHEGEOMETRY.
8110
8111 2018-12-19 Andreas Schwab <schwab@suse.de>
8112
8113 * nscd/connections.c (check_use): Don't abort on invalid len.
8114
8115 2018-12-18 Samuel Thibault <samuel.thibault@ens-lyon.org>
8116
8117 * sysdeps/mach/hurd/fcntl.c (__libc_fcntl): Test against 64bit `cmd'
8118 values in the 64bit value cases.
8119
8120 2018-12-18 Albert ARIBAUD <albert.aribaud@3adev.fr>
8121
8122 * include/time.h
8123 (__ctime64_r): Add.
8124 * time/ctime_r.c
8125 (__ctime64_r): Add.
8126 [__TIMESIZE != 64] (__ctime_r): Turn into a wrapper.
8127
8128 * include/time.h
8129 (__ctime64): Add.
8130 * time/gmtime.c
8131 (__ctime64): Add.
8132 [__TIMESIZE != 64] (ctime): Turn into a wrapper.
8133
8134 * include/time.h
8135 (__gmtime64_r): Add.
8136 * time/gmtime.c
8137 (__gmtime64_r): Add.
8138 [__TIMESIZE != 64] (__gmtime): Turn into a wrapper.
8139
8140 * include/time.h
8141 (__gmtime64): Add.
8142 * time/gmtime.c
8143 (__gmtime64): Add.
8144 [__TIMESIZE != 64] (__gmtime): Turn into a wrapper.
8145
8146 * include/time.h
8147 (__localtime64_r): Add.
8148 * time/localtime.c
8149 (__localtime64_r): Add.
8150 [__TIMESIZE != 64] (__localtime_r): Turn into a wrapper.
8151
8152 2018-12-18 Adhemerval Zanella <adhemerval.zanella@linaro.org>
8153
8154 * sysdeps/unix/sysv/linux/s390/kernel_sigaction.h: Use Linux generic
8155 kernel_sigction definition.
8156
8157 * sysdeps/unix/sysv/linux/ia64/kernel_sigaction.h: Remove file.
8158
8159 * sysdeps/unix/sysv/linux/hppa/kernel_sigaction.h: Remove file.
8160
8161 * sysdeps/unix/sysv/linux/alpha/Makefile: Update comment about
8162 __syscall_rt_sigaction.
8163 * sysdeps/unix/sysv/linux/alpha/kernel_sigaction.h
8164 (kernel_sigaction): Use Linux generic defintion.
8165 (STUB): Define.
8166 (__syscall_rt_sigreturn, __syscall_sigreturn): Add prototype.
8167 * sysdeps/unix/sysv/linux/alpha/rt_sigaction.S
8168 (__syscall_rt_sigaction): Remove implementation.
8169 (__syscall_sigreturn, __syscall_rt_sigreturn): Define as global and
8170 hidden.
8171 * sysdeps/unix/sysv/linux/alpha/sigaction.c: Remove file.
8172 * sysdeps/unix/sysv/linux/alpha/sysdep.h (INLINE_SYSCALL,
8173 INTERNAL_SYSCALL): Remove definitions.
8174 * sysdeps/unix/sysv/linux/sigaction.c: Define STUB to accept both the
8175 action and signal set size.
8176 * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c (STUB): Redefine.
8177 * sysdeps/unix/sysv/linux/sparc/sparc64/sigaction.c (STUB): Likewise.
8178
8179 2018-12-18 Adhemerval Zanella <adhemerval.zanella@linaro.org>
8180 James Clarke <jrtc27@jrtc27.com>
8181
8182 [BZ #23967]
8183 * sysdeps/unix/sysv/linux/kernel_sigaction.h (HAS_SA_RESTORER):
8184 Define if SA_RESTORER is defined.
8185 (kernel_sigaction): Define sa_restorer if HAS_SA_RESTORER is defined.
8186 (SET_SA_RESTORER, RESET_SA_RESTORER): Define iff the macro are not
8187 already defined.
8188 * sysdeps/unix/sysv/linux/m68k/kernel_sigaction.h (SA_RESTORER,
8189 kernel_sigaction, SET_SA_RESTORER, RESET_SA_RESTORER): Remove
8190 definitions.
8191 (HAS_SA_RESTORER): Define.
8192 * sysdeps/unix/sysv/linux/sparc/kernel_sigaction.h (SA_RESTORER,
8193 SET_SA_RESTORER, RESET_SA_RESTORER): Remove definition.
8194 (HAS_SA_RESTORER): Define.
8195 * sysdeps/unix/sysv/linux/nios2/kernel_sigaction.h: Include generic
8196 kernel_sigaction after define SET_SA_RESTORER and RESET_SA_RESTORER.
8197 * sysdeps/unix/sysv/linux/powerpc/kernel_sigaction.h: Likewise.
8198 * sysdeps/unix/sysv/linux/s390/kernel_sigaction.h: Likewise.
8199 * sysdeps/unix/sysv/linux/x86_64/sigaction.c: Likewise.
8200
8201 2018-12-18 Joseph Myers <joseph@codesourcery.com>
8202
8203 * sysdeps/unix/sysv/linux/kernel-features.h
8204 (__ASSUME_ST_INO_64_BIT): Remove macro definition.
8205 * sysdeps/unix/sysv/linux/alpha/kernel-features.h
8206 (__ASSUME_ST_INO_64_BIT): Do not undefine and define.
8207 * sysdeps/unix/sysv/linux/sh/kernel-features.h
8208 (__ASSUME_ST_INO_64_BIT): Likewise.
8209 * sysdeps/unix/sysv/linux/fxstat64.c: Do not include
8210 <kernel-features.h>.
8211 (___fxstat64) [_HAVE_STAT64___ST_INO && !__ASSUME_ST_INO_64_BIT]:
8212 Remove conditional code.
8213 * sysdeps/unix/sysv/linux/lxstat64.c: Do not include
8214 <kernel-features.h>.
8215 (___lxstat64) [_HAVE_STAT64___ST_INO && !__ASSUME_ST_INO_64_BIT]:
8216 Remove conditional code.
8217 * sysdeps/unix/sysv/linux/xstat64.c: Do not include
8218 <kernel-features.h>.
8219 (___xstat64) [_HAVE_STAT64___ST_INO && !__ASSUME_ST_INO_64_BIT]:
8220 Remove conditional code.
8221 * sysdeps/unix/sysv/linux/xstatconv.c: Do not include
8222 <kernel-features.h>.
8223 (__xstat32_conv) [_HAVE_STAT64___ST_INO]: Remove conditional code.
8224 [!_HAVE_STAT64___ST_INO]: Make code unconditional.
8225
8226 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
8227
8228 * sysdeps/s390/multiarch/ifunc-resolve.h
8229 (s390_vx_libc_ifunc, s390_vx_libc_ifunc_redirected,
8230 s390_vx_libc_ifunc2, s390_vx_libc_ifunc_init,
8231 s390_vx_libc_ifunc2_redirected, s390_libc_ifunc):
8232 Delete macro definition.
8233 (s390_libc_ifunc_init): Rename to
8234 s390_libc_ifunc_expr_stfle_init.
8235 * sysdeps/s390/bzero: Use
8236 s390_libc_ifunc_expr_stfle_init instead of
8237 s390_libc_ifunc_init.
8238 * sysdeps/s390/memcmp.c: Likewise.
8239 * sysdeps/s390/memcpy.c: Likewise.
8240 * sysdeps/s390/mempcpy.c: Likewise.
8241 * sysdeps/s390/memset.c: Likewise.
8242
8243 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
8244
8245 * sysdeps/s390/multiarch/gconv_simple.c (ICONV_VX_IFUNC):
8246 Define macro dependent on HAVE_S390_MIN_Z13_ZARCH_ASM_SUPPORT.
8247
8248 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
8249
8250 * sysdeps/s390/multiarch/Makefile
8251 (sysdep_routines): Remove wmemcmp variants.
8252 * sysdeps/s390/Makefile (sysdep_routines): Add wmemcmp variants.
8253 * sysdeps/s390/multiarch/ifunc-impl-list.c
8254 (__libc_ifunc_impl_list): Refactor ifunc handling for wmemcmp.
8255 * sysdeps/s390/multiarch/wmemcmp-c.c: Move to ...
8256 * sysdeps/s390/wmemcmp-c.c: ... here and adjust ifunc handling.
8257 * sysdeps/s390/multiarch/wmemcmp-vx.S: Move to ...
8258 * sysdeps/s390/wmemcmp-vx.S: ... here and adjust ifunc handling.
8259 * sysdeps/s390/multiarch/wmemcmp.c: Move to ...
8260 * sysdeps/s390/wmemcmp.c: ... here and adjust ifunc handling.
8261 * sysdeps/s390/ifunc-wmemcmp.h: New file.
8262
8263 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
8264
8265 * sysdeps/s390/multiarch/Makefile
8266 (sysdep_routines): Remove wmemset variants.
8267 * sysdeps/s390/Makefile (sysdep_routines): Add wmemset variants.
8268 * sysdeps/s390/multiarch/ifunc-impl-list.c
8269 (__libc_ifunc_impl_list): Refactor ifunc handling for wmemset.
8270 * sysdeps/s390/multiarch/wmemset-c.c: Move to ...
8271 * sysdeps/s390/wmemset-c.c: ... here and adjust ifunc handling.
8272 * sysdeps/s390/multiarch/wmemset-vx.S: Move to ...
8273 * sysdeps/s390/wmemset-vx.S: ... here and adjust ifunc handling.
8274 * sysdeps/s390/multiarch/wmemset.c: Move to ...
8275 * sysdeps/s390/wmemset.c: ... here and adjust ifunc handling.
8276 * sysdeps/s390/ifunc-wmemset.h: New file.
8277
8278 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
8279
8280 * sysdeps/s390/multiarch/Makefile
8281 (sysdep_routines): Remove wmemchr variants.
8282 * sysdeps/s390/Makefile (sysdep_routines): Add wmemchr variants.
8283 * sysdeps/s390/multiarch/ifunc-impl-list.c
8284 (__libc_ifunc_impl_list): Refactor ifunc handling for wmemchr.
8285 * sysdeps/s390/multiarch/wmemchr-c.c: Move to ...
8286 * sysdeps/s390/wmemchr-c.c: ... here and adjust ifunc handling.
8287 * sysdeps/s390/multiarch/wmemchr-vx.S: Move to ...
8288 * sysdeps/s390/wmemchr-vx.S: ... here and adjust ifunc handling.
8289 * sysdeps/s390/multiarch/wmemchr.c: Move to ...
8290 * sysdeps/s390/wmemchr.c: ... here and adjust ifunc handling.
8291 * sysdeps/s390/ifunc-wmemchr.h: New file.
8292
8293 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
8294
8295 * sysdeps/s390/multiarch/Makefile
8296 (sysdep_routines): Remove wcscspn variants.
8297 * sysdeps/s390/Makefile (sysdep_routines): Add wcscspn variants.
8298 * sysdeps/s390/multiarch/ifunc-impl-list.c
8299 (__libc_ifunc_impl_list): Refactor ifunc handling for wcscspn.
8300 * sysdeps/s390/multiarch/wcscspn-c.c: Move to ...
8301 * sysdeps/s390/wcscspn-c.c: ... here and adjust ifunc handling.
8302 * sysdeps/s390/multiarch/wcscspn-vx.S: Move to ...
8303 * sysdeps/s390/wcscspn-vx.S: ... here and adjust ifunc handling.
8304 * sysdeps/s390/multiarch/wcscspn.c: Move to ...
8305 * sysdeps/s390/wcscspn.c: ... here and adjust ifunc handling.
8306 * sysdeps/s390/ifunc-wcscspn.h: New file.
8307
8308 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
8309
8310 * sysdeps/s390/multiarch/Makefile
8311 (sysdep_routines): Remove wcspbrk variants.
8312 * sysdeps/s390/Makefile (sysdep_routines): Add wcspbrk variants.
8313 * sysdeps/s390/multiarch/ifunc-impl-list.c
8314 (__libc_ifunc_impl_list): Refactor ifunc handling for wcspbrk.
8315 * sysdeps/s390/multiarch/wcspbrk-c.c: Move to ...
8316 * sysdeps/s390/wcspbrk-c.c: ... here and adjust ifunc handling.
8317 * sysdeps/s390/multiarch/wcspbrk-vx.S: Move to ...
8318 * sysdeps/s390/wcspbrk-vx.S: ... here and adjust ifunc handling.
8319 * sysdeps/s390/multiarch/wcspbrk.c: Move to ...
8320 * sysdeps/s390/wcspbrk.c: ... here and adjust ifunc handling.
8321 * sysdeps/s390/ifunc-wcspbrk.h: New file.
8322
8323 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
8324
8325 * sysdeps/s390/multiarch/Makefile
8326 (sysdep_routines): Remove wcsspn variants.
8327 * sysdeps/s390/Makefile (sysdep_routines): Add wcsspn variants.
8328 * sysdeps/s390/multiarch/ifunc-impl-list.c
8329 (__libc_ifunc_impl_list): Refactor ifunc handling for wcsspn.
8330 * sysdeps/s390/multiarch/wcsspn-c.c: Move to ...
8331 * sysdeps/s390/wcsspn-c.c: ... here and adjust ifunc handling.
8332 * sysdeps/s390/multiarch/wcsspn-vx.S: Move to ...
8333 * sysdeps/s390/wcsspn-vx.S: ... here and adjust ifunc handling.
8334 * sysdeps/s390/multiarch/wcsspn.c: Move to ...
8335 * sysdeps/s390/wcsspn.c: ... here and adjust ifunc handling.
8336 * sysdeps/s390/ifunc-wcsspn.h: New file.
8337
8338 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
8339
8340 * sysdeps/s390/multiarch/Makefile
8341 (sysdep_routines): Remove wcsrchr variants.
8342 * sysdeps/s390/Makefile (sysdep_routines): Add wcsrchr variants.
8343 * sysdeps/s390/multiarch/ifunc-impl-list.c
8344 (__libc_ifunc_impl_list): Refactor ifunc handling for wcsrchr.
8345 * sysdeps/s390/multiarch/wcsrchr-c.c: Move to ...
8346 * sysdeps/s390/wcsrchr-c.c: ... here and adjust ifunc handling.
8347 * sysdeps/s390/multiarch/wcsrchr-vx.S: Move to ...
8348 * sysdeps/s390/wcsrchr-vx.S: ... here and adjust ifunc handling.
8349 * sysdeps/s390/multiarch/wcsrchr.c: Move to ...
8350 * sysdeps/s390/wcsrchr.c: ... here and adjust ifunc handling.
8351 * sysdeps/s390/ifunc-wcsrchr.h: New file.
8352
8353 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
8354
8355 * sysdeps/s390/multiarch/Makefile
8356 (sysdep_routines): Remove wcschrnul variants.
8357 * sysdeps/s390/Makefile (sysdep_routines): Add wcschrnul variants.
8358 * sysdeps/s390/multiarch/ifunc-impl-list.c
8359 (__libc_ifunc_impl_list): Refactor ifunc handling for wcschrnul.
8360 * sysdeps/s390/multiarch/wcschrnul-c.c: Move to ...
8361 * sysdeps/s390/wcschrnul-c.c: ... here and adjust ifunc handling.
8362 * sysdeps/s390/multiarch/wcschrnul-vx.S: Move to ...
8363 * sysdeps/s390/wcschrnul-vx.S: ... here and adjust ifunc handling.
8364 * sysdeps/s390/multiarch/wcschrnul.c: Move to ...
8365 * sysdeps/s390/wcschrnul.c: ... here and adjust ifunc handling.
8366 * sysdeps/s390/ifunc-wcschrnul.h: New file.
8367
8368 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
8369
8370 * sysdeps/s390/multiarch/Makefile
8371 (sysdep_routines): Remove wcschr variants.
8372 * sysdeps/s390/Makefile (sysdep_routines): Add wcschr variants.
8373 * sysdeps/s390/multiarch/ifunc-impl-list.c
8374 (__libc_ifunc_impl_list): Refactor ifunc handling for wcschr.
8375 * sysdeps/s390/multiarch/wcschr-c.c: Move to ...
8376 * sysdeps/s390/wcschr-c.c: ... here and adjust ifunc handling.
8377 * sysdeps/s390/multiarch/wcschr-vx.S: Move to ...
8378 * sysdeps/s390/wcschr-vx.S: ... here and adjust ifunc handling.
8379 * sysdeps/s390/multiarch/wcschr.c: Move to ...
8380 * sysdeps/s390/wcschr.c: ... here and adjust ifunc handling.
8381 * sysdeps/s390/ifunc-wcschr.h: New file.
8382
8383 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
8384
8385 * sysdeps/s390/multiarch/Makefile
8386 (sysdep_routines): Remove wcsncmp variants.
8387 * sysdeps/s390/Makefile (sysdep_routines): Add wcsncmp variants.
8388 * sysdeps/s390/multiarch/ifunc-impl-list.c
8389 (__libc_ifunc_impl_list): Refactor ifunc handling for wcsncmp.
8390 * sysdeps/s390/multiarch/wcsncmp-c.c: Move to ...
8391 * sysdeps/s390/wcsncmp-c.c: ... here and adjust ifunc handling.
8392 * sysdeps/s390/multiarch/wcsncmp-vx.S: Move to ...
8393 * sysdeps/s390/wcsncmp-vx.S: ... here and adjust ifunc handling.
8394 * sysdeps/s390/multiarch/wcsncmp.c: Move to ...
8395 * sysdeps/s390/wcsncmp.c: ... here and adjust ifunc handling.
8396 * sysdeps/s390/ifunc-wcsncmp.h: New file.
8397
8398 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
8399
8400 * sysdeps/s390/multiarch/Makefile
8401 (sysdep_routines): Remove wcscmp variants.
8402 * sysdeps/s390/Makefile (sysdep_routines): Add wcscmp variants.
8403 * sysdeps/s390/multiarch/ifunc-impl-list.c
8404 (__libc_ifunc_impl_list): Refactor ifunc handling for wcscmp.
8405 * sysdeps/s390/multiarch/wcscmp-c.c: Move to ...
8406 * sysdeps/s390/wcscmp-c.c: ... here and adjust ifunc handling.
8407 * sysdeps/s390/multiarch/wcscmp-vx.S: Move to ...
8408 * sysdeps/s390/wcscmp-vx.S: ... here and adjust ifunc handling.
8409 * sysdeps/s390/multiarch/wcscmp.c: Move to ...
8410 * sysdeps/s390/wcscmp.c: ... here and adjust ifunc handling.
8411 * sysdeps/s390/ifunc-wcscmp.h: New file.
8412
8413 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
8414
8415 * sysdeps/s390/multiarch/Makefile
8416 (sysdep_routines): Remove wcsncat variants.
8417 * sysdeps/s390/Makefile (sysdep_routines): Add wcsncat variants.
8418 * sysdeps/s390/multiarch/ifunc-impl-list.c
8419 (__libc_ifunc_impl_list): Refactor ifunc handling for wcsncat.
8420 * sysdeps/s390/multiarch/wcsncat-c.c: Move to ...
8421 * sysdeps/s390/wcsncat-c.c: ... here and adjust ifunc handling.
8422 * sysdeps/s390/multiarch/wcsncat-vx.S: Move to ...
8423 * sysdeps/s390/wcsncat-vx.S: ... here and adjust ifunc handling.
8424 * sysdeps/s390/multiarch/wcsncat.c: Move to ...
8425 * sysdeps/s390/wcsncat.c: ... here and adjust ifunc handling.
8426 * sysdeps/s390/ifunc-wcsncat.h: New file.
8427
8428 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
8429
8430 * sysdeps/s390/multiarch/Makefile
8431 (sysdep_routines): Remove wcscat variants.
8432 * sysdeps/s390/Makefile (sysdep_routines): Add wcscat variants.
8433 * sysdeps/s390/multiarch/ifunc-impl-list.c
8434 (__libc_ifunc_impl_list): Refactor ifunc handling for wcscat.
8435 * sysdeps/s390/multiarch/wcscat-c.c: Move to ...
8436 * sysdeps/s390/wcscat-c.c: ... here and adjust ifunc handling.
8437 * sysdeps/s390/multiarch/wcscat-vx.S: Move to ...
8438 * sysdeps/s390/wcscat-vx.S: ... here and adjust ifunc handling.
8439 * sysdeps/s390/multiarch/wcscat.c: Move to ...
8440 * sysdeps/s390/wcscat.c: ... here and adjust ifunc handling.
8441 * sysdeps/s390/ifunc-wcscat.h: New file.
8442
8443 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
8444
8445 * sysdeps/s390/multiarch/Makefile
8446 (sysdep_routines): Remove wcpncpy variants.
8447 * sysdeps/s390/Makefile (sysdep_routines): Add wcpncpy variants.
8448 * sysdeps/s390/multiarch/ifunc-impl-list.c
8449 (__libc_ifunc_impl_list): Refactor ifunc handling for wcpncpy.
8450 * sysdeps/s390/multiarch/wcpncpy-c.c: Move to ...
8451 * sysdeps/s390/wcpncpy-c.c: ... here and adjust ifunc handling.
8452 * sysdeps/s390/multiarch/wcpncpy-vx.S: Move to ...
8453 * sysdeps/s390/wcpncpy-vx.S: ... here and adjust ifunc handling.
8454 * sysdeps/s390/multiarch/wcpncpy.c: Move to ...
8455 * sysdeps/s390/wcpncpy.c: ... here and adjust ifunc handling.
8456 * sysdeps/s390/ifunc-wcpncpy.h: New file.
8457
8458 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
8459
8460 * sysdeps/s390/multiarch/Makefile
8461 (sysdep_routines): Remove wcsncpy variants.
8462 * sysdeps/s390/Makefile (sysdep_routines): Add wcsncpy variants.
8463 * sysdeps/s390/multiarch/ifunc-impl-list.c
8464 (__libc_ifunc_impl_list): Refactor ifunc handling for wcsncpy.
8465 * sysdeps/s390/multiarch/wcsncpy-c.c: Move to ...
8466 * sysdeps/s390/wcsncpy-c.c: ... here and adjust ifunc handling.
8467 * sysdeps/s390/multiarch/wcsncpy-vx.S: Move to ...
8468 * sysdeps/s390/wcsncpy-vx.S: ... here and adjust ifunc handling.
8469 * sysdeps/s390/multiarch/wcsncpy.c: Move to ...
8470 * sysdeps/s390/wcsncpy.c: ... here and adjust ifunc handling.
8471 * sysdeps/s390/ifunc-wcsncpy.h: New file.
8472
8473 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
8474
8475 * sysdeps/s390/multiarch/Makefile
8476 (sysdep_routines): Remove wcpcpy variants.
8477 * sysdeps/s390/Makefile (sysdep_routines): Add wcpcpy variants.
8478 * sysdeps/s390/multiarch/ifunc-impl-list.c
8479 (__libc_ifunc_impl_list): Refactor ifunc handling for wcpcpy.
8480 * sysdeps/s390/multiarch/wcpcpy-c.c: Move to ...
8481 * sysdeps/s390/wcpcpy-c.c: ... here and adjust ifunc handling.
8482 * sysdeps/s390/multiarch/wcpcpy-vx.S: Move to ...
8483 * sysdeps/s390/wcpcpy-vx.S: ... here and adjust ifunc handling.
8484 * sysdeps/s390/multiarch/wcpcpy.c: Move to ...
8485 * sysdeps/s390/wcpcpy.c: ... here and adjust ifunc handling.
8486 * sysdeps/s390/ifunc-wcpcpy.h: New file.
8487
8488 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
8489
8490 * sysdeps/s390/multiarch/Makefile
8491 (sysdep_routines): Remove wcscpy variants.
8492 * sysdeps/s390/Makefile (sysdep_routines): Add wcscpy variants.
8493 * sysdeps/s390/multiarch/ifunc-impl-list.c
8494 (__libc_ifunc_impl_list): Refactor ifunc handling for wcscpy.
8495 * sysdeps/s390/multiarch/wcscpy-c.c: Move to ...
8496 * sysdeps/s390/wcscpy-c.c: ... here and adjust ifunc handling.
8497 * sysdeps/s390/multiarch/wcscpy-vx.S: Move to ...
8498 * sysdeps/s390/wcscpy-vx.S: ... here and adjust ifunc handling.
8499 * sysdeps/s390/multiarch/wcscpy.c: Move to ...
8500 * sysdeps/s390/wcscpy.c: ... here and adjust ifunc handling.
8501 * sysdeps/s390/ifunc-wcscpy.h: New file.
8502
8503 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
8504
8505 * sysdeps/s390/multiarch/Makefile
8506 (sysdep_routines): Remove wcsnlen variants.
8507 * sysdeps/s390/Makefile (sysdep_routines): Add wcsnlen variants.
8508 * sysdeps/s390/multiarch/ifunc-impl-list.c
8509 (__libc_ifunc_impl_list): Refactor ifunc handling for wcsnlen.
8510 * sysdeps/s390/multiarch/wcsnlen-c.c: Move to ...
8511 * sysdeps/s390/wcsnlen-c.c: ... here and adjust ifunc handling.
8512 * sysdeps/s390/multiarch/wcsnlen-vx.S: Move to ...
8513 * sysdeps/s390/wcsnlen-vx.S: ... here and adjust ifunc handling.
8514 * sysdeps/s390/multiarch/wcsnlen.c: Move to ...
8515 * sysdeps/s390/wcsnlen.c: ... here and adjust ifunc handling.
8516 * sysdeps/s390/ifunc-wcsnlen.h: New file.
8517
8518 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
8519
8520 * sysdeps/s390/multiarch/Makefile
8521 (sysdep_routines): Remove wcslen variants.
8522 * sysdeps/s390/Makefile (sysdep_routines): Add wcslen variants.
8523 * sysdeps/s390/multiarch/ifunc-impl-list.c
8524 (__libc_ifunc_impl_list): Refactor ifunc handling for wcslen.
8525 * sysdeps/s390/multiarch/wcslen-c.c: Move to ...
8526 * sysdeps/s390/wcslen-c.c: ... here and adjust ifunc handling.
8527 * sysdeps/s390/multiarch/wcslen-vx.S: Move to ...
8528 * sysdeps/s390/wcslen-vx.S: ... here and adjust ifunc handling.
8529 * sysdeps/s390/multiarch/wcslen.c: Move to ...
8530 * sysdeps/s390/wcslen.c: ... here and adjust ifunc handling.
8531 * sysdeps/s390/ifunc-wcslen.h: New file.
8532
8533 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
8534
8535 * sysdeps/s390/multiarch/Makefile
8536 (sysdep_routines): Remove memrchr variants.
8537 * sysdeps/s390/Makefile (sysdep_routines): Add memrchr variants.
8538 * sysdeps/s390/multiarch/ifunc-impl-list.c
8539 (__libc_ifunc_impl_list): Refactor ifunc handling for memrchr.
8540 * sysdeps/s390/multiarch/memrchr-c.c: Move to ...
8541 * sysdeps/s390/memrchr-c.c: ... here and adjust ifunc handling.
8542 * sysdeps/s390/multiarch/memrchr-vx.S: Move to ...
8543 * sysdeps/s390/memrchr-vx.S: ... here and adjust ifunc handling.
8544 * sysdeps/s390/multiarch/memrchr.c: Move to ...
8545 * sysdeps/s390/memrchr.c: ... here and adjust ifunc handling.
8546 * sysdeps/s390/ifunc-memrchr.h: New file.
8547
8548 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
8549
8550 * sysdeps/s390/multiarch/Makefile
8551 (sysdep_routines): Remove memccpy variants.
8552 * sysdeps/s390/Makefile (sysdep_routines): Add memccpy variants.
8553 * sysdeps/s390/multiarch/ifunc-impl-list.c
8554 (__libc_ifunc_impl_list): Refactor ifunc handling for memccpy.
8555 * sysdeps/s390/multiarch/memccpy-c.c: Move to ...
8556 * sysdeps/s390/memccpy-c.c: ... here and adjust ifunc handling.
8557 * sysdeps/s390/multiarch/memccpy-vx.S: Move to ...
8558 * sysdeps/s390/memccpy-vx.S: ... here and adjust ifunc handling.
8559 * sysdeps/s390/multiarch/memccpy.c: Move to ...
8560 * sysdeps/s390/memccpy.c: ... here and adjust ifunc handling.
8561 * sysdeps/s390/ifunc-memccpy.h: New file.
8562
8563 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
8564
8565 * sysdeps/s390/multiarch/Makefile
8566 (sysdep_routines): Remove rawmemchr variants.
8567 * sysdeps/s390/Makefile (sysdep_routines): Add rawmemchr variants.
8568 * sysdeps/s390/multiarch/ifunc-impl-list.c
8569 (__libc_ifunc_impl_list): Refactor ifunc handling for rawmemchr.
8570 * sysdeps/s390/multiarch/rawmemchr-c.c: Move to ...
8571 * sysdeps/s390/rawmemchr-c.c: ... here and adjust ifunc handling.
8572 * sysdeps/s390/multiarch/rawmemchr-vx.S: Move to ...
8573 * sysdeps/s390/rawmemchr-vx.S: ... here and adjust ifunc handling.
8574 * sysdeps/s390/multiarch/rawmemchr.c: Move to ...
8575 * sysdeps/s390/rawmemchr.c: ... here and adjust ifunc handling.
8576 * sysdeps/s390/ifunc-rawmemchr.h: New file.
8577
8578 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
8579
8580 * sysdeps/s390/multiarch/Makefile
8581 (sysdep_routines): Remove memchr variants.
8582 * sysdeps/s390/Makefile (sysdep_routines): Add memchr variants.
8583 * sysdeps/s390/multiarch/ifunc-impl-list.c
8584 (__libc_ifunc_impl_list): Refactor ifunc handling for memchr.
8585 * sysdeps/s390/multiarch/memchr-vx.S: Move to ...
8586 * sysdeps/s390/memchr-vx.S: ... here and adjust ifunc handling.
8587 * sysdeps/s390/multiarch/memchr.c: Move to ...
8588 * sysdeps/s390/memchr.c: ... here and adjust ifunc handling.
8589 * sysdeps/s390/ifunc-memchr.h: New file.
8590 * sysdeps/s390/s390-64/memchr.S: Move to ...
8591 * sysdeps/s390/memchr-z900.S: ... here and adjust to be usable
8592 for 31/64bit and ifunc handling.
8593 * sysdeps/s390/s390-32/multiarch/memchr.c: Delete file.
8594 * sysdeps/s390/s390-64/multiarch/memchr.c: Likewise.
8595 * sysdeps/s390/s390-32/memchr.S: Likewise.
8596
8597 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
8598
8599 * sysdeps/s390/multiarch/Makefile
8600 (sysdep_routines): Remove strcspn variants.
8601 * sysdeps/s390/Makefile (sysdep_routines): Add strcspn variants.
8602 * sysdeps/s390/multiarch/ifunc-impl-list.c
8603 (__libc_ifunc_impl_list): Refactor ifunc handling for strcspn.
8604 * sysdeps/s390/multiarch/strcspn-c.c: Move to ...
8605 * sysdeps/s390/strcspn-c.c: ... here and adjust ifunc handling.
8606 * sysdeps/s390/multiarch/strcspn-vx.S: Move to ...
8607 * sysdeps/s390/strcspn-vx.S: ... here and adjust ifunc handling.
8608 * sysdeps/s390/multiarch/strcspn.c: Move to ...
8609 * sysdeps/s390/strcspn.c: ... here and adjust ifunc handling.
8610 * sysdeps/s390/ifunc-strcspn.h: New file.
8611
8612 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
8613
8614 * sysdeps/s390/multiarch/Makefile
8615 (sysdep_routines): Remove strpbrk variants.
8616 * sysdeps/s390/Makefile (sysdep_routines): Add strpbrk variants.
8617 * sysdeps/s390/multiarch/ifunc-impl-list.c
8618 (__libc_ifunc_impl_list): Refactor ifunc handling for strpbrk.
8619 * sysdeps/s390/multiarch/strpbrk-c.c: Move to ...
8620 * sysdeps/s390/strpbrk-c.c: ... here and adjust ifunc handling.
8621 * sysdeps/s390/multiarch/strpbrk-vx.S: Move to ...
8622 * sysdeps/s390/strpbrk-vx.S: ... here and adjust ifunc handling.
8623 * sysdeps/s390/multiarch/strpbrk.c: Move to ...
8624 * sysdeps/s390/strpbrk.c: ... here and adjust ifunc handling.
8625 * sysdeps/s390/ifunc-strpbrk.h: New file.
8626
8627 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
8628
8629 * sysdeps/s390/multiarch/Makefile
8630 (sysdep_routines): Remove strspn variants.
8631 * sysdeps/s390/Makefile (sysdep_routines): Add strspn variants.
8632 * sysdeps/s390/multiarch/ifunc-impl-list.c
8633 (__libc_ifunc_impl_list): Refactor ifunc handling for strspn.
8634 * sysdeps/s390/multiarch/strspn-c.c: Move to ...
8635 * sysdeps/s390/strspn-c.c: ... here and adjust ifunc handling.
8636 * sysdeps/s390/multiarch/strspn-vx.S: Move to ...
8637 * sysdeps/s390/strspn-vx.S: ... here and adjust ifunc handling.
8638 * sysdeps/s390/multiarch/strspn.c: Move to ...
8639 * sysdeps/s390/strspn.c: ... here and adjust ifunc handling.
8640 * sysdeps/s390/ifunc-strspn.h: New file.
8641
8642 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
8643
8644 * sysdeps/s390/multiarch/Makefile
8645 (sysdep_routines): Remove strrchr variants.
8646 * sysdeps/s390/Makefile (sysdep_routines): Add strrchr variants.
8647 * sysdeps/s390/multiarch/ifunc-impl-list.c
8648 (__libc_ifunc_impl_list): Refactor ifunc handling for strrchr.
8649 * sysdeps/s390/multiarch/strrchr-c.c: Move to ...
8650 * sysdeps/s390/strrchr-c.c: ... here and adjust ifunc handling.
8651 * sysdeps/s390/multiarch/strrchr-vx.S: Move to ...
8652 * sysdeps/s390/strrchr-vx.S: ... here and adjust ifunc handling.
8653 * sysdeps/s390/multiarch/strrchr.c: Move to ...
8654 * sysdeps/s390/strrchr.c: ... here and adjust ifunc handling.
8655 * sysdeps/s390/ifunc-strrchr.h: New file.
8656
8657 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
8658
8659 * sysdeps/s390/multiarch/Makefile
8660 (sysdep_routines): Remove strchrnul variants.
8661 * sysdeps/s390/Makefile (sysdep_routines): Add strchrnul variants.
8662 * sysdeps/s390/multiarch/ifunc-impl-list.c
8663 (__libc_ifunc_impl_list): Refactor ifunc handling for strchrnul.
8664 * sysdeps/s390/multiarch/strchrnul-c.c: Move to ...
8665 * sysdeps/s390/strchrnul-c.c: ... here and adjust ifunc handling.
8666 * sysdeps/s390/multiarch/strchrnul-vx.S: Move to ...
8667 * sysdeps/s390/strchrnul-vx.S: ... here and adjust ifunc handling.
8668 * sysdeps/s390/multiarch/strchrnul.c: Move to ...
8669 * sysdeps/s390/strchrnul.c: ... here and adjust ifunc handling.
8670 * sysdeps/s390/ifunc-strchrnul.h: New file.
8671
8672 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
8673
8674 * sysdeps/s390/multiarch/Makefile
8675 (sysdep_routines): Remove strchr variants.
8676 * sysdeps/s390/Makefile (sysdep_routines): Add strchr variants.
8677 * sysdeps/s390/multiarch/ifunc-impl-list.c
8678 (__libc_ifunc_impl_list): Refactor ifunc handling for strchr.
8679 * sysdeps/s390/multiarch/strchr-c.c: Move to ...
8680 * sysdeps/s390/strchr-c.c: ... here and adjust ifunc handling.
8681 * sysdeps/s390/multiarch/strchr-vx.S: Move to ...
8682 * sysdeps/s390/strchr-vx.S: ... here and adjust ifunc handling.
8683 * sysdeps/s390/multiarch/strchr.c: Move to ...
8684 * sysdeps/s390/strchr.c: ... here and adjust ifunc handling.
8685 * sysdeps/s390/ifunc-strchr.h: New file.
8686
8687 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
8688
8689 * sysdeps/s390/multiarch/Makefile
8690 (sysdep_routines): Remove strncmp variants.
8691 * sysdeps/s390/Makefile (sysdep_routines): Add strncmp variants.
8692 * sysdeps/s390/multiarch/ifunc-impl-list.c
8693 (__libc_ifunc_impl_list): Refactor ifunc handling for strncmp.
8694 * sysdeps/s390/multiarch/strncmp-c.c: Move to ...
8695 * sysdeps/s390/strncmp-c.c: ... here and adjust ifunc handling.
8696 * sysdeps/s390/multiarch/strncmp-vx.S: Move to ...
8697 * sysdeps/s390/strncmp-vx.S: ... here and adjust ifunc handling.
8698 * sysdeps/s390/multiarch/strncmp.c: Move to ...
8699 * sysdeps/s390/strncmp.c: ... here and adjust ifunc handling.
8700 * sysdeps/s390/ifunc-strncmp.h: New file.
8701
8702 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
8703
8704 * sysdeps/s390/multiarch/Makefile
8705 (sysdep_routines): Remove strcmp variants.
8706 * sysdeps/s390/Makefile (sysdep_routines): Add strcmp variants.
8707 * sysdeps/s390/multiarch/ifunc-impl-list.c
8708 (__libc_ifunc_impl_list): Refactor ifunc handling for strcmp.
8709 * sysdeps/s390/multiarch/strcmp-vx.S: Move to ...
8710 * sysdeps/s390/strcmp-vx.S: ... here and adjust ifunc handling.
8711 * sysdeps/s390/multiarch/strcmp.c: Move to ...
8712 * sysdeps/s390/strcmp.c: ... here and adjust ifunc handling.
8713 * sysdeps/s390/ifunc-strcmp.h: New file.
8714 * sysdeps/s390/s390-64/strcmp.S: Move to ...
8715 * sysdeps/s390/strcmp-z900.S: ... here and adjust to be usable
8716 for 31/64bit and ifunc handling.
8717 * sysdeps/s390/s390-32/multiarch/strcmp.c: Delete file.
8718 * sysdeps/s390/s390-64/multiarch/strcmp.c: Likewise.
8719 * sysdeps/s390/s390-32/strcmp.S: Likewise.
8720
8721 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
8722
8723 * sysdeps/s390/multiarch/Makefile
8724 (sysdep_routines): Remove strncat variants.
8725 * sysdeps/s390/Makefile (sysdep_routines): Add strncat variants.
8726 * sysdeps/s390/multiarch/ifunc-impl-list.c
8727 (__libc_ifunc_impl_list): Refactor ifunc handling for strncat.
8728 * sysdeps/s390/multiarch/strncat-c.c: Move to ...
8729 * sysdeps/s390/strncat-c.c: ... here and adjust ifunc handling.
8730 * sysdeps/s390/multiarch/strncat-vx.S: Move to ...
8731 * sysdeps/s390/strncat-vx.S: ... here and adjust ifunc handling.
8732 * sysdeps/s390/multiarch/strncat.c: Move to ...
8733 * sysdeps/s390/strncat.c: ... here and adjust ifunc handling.
8734 * sysdeps/s390/ifunc-strncat.h: New file.
8735
8736 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
8737
8738 * sysdeps/s390/multiarch/Makefile
8739 (sysdep_routines): Remove strcat variants.
8740 * sysdeps/s390/Makefile (sysdep_routines): Add strcat variants.
8741 * sysdeps/s390/multiarch/ifunc-impl-list.c
8742 (__libc_ifunc_impl_list): Refactor ifunc handling for strcat.
8743 * sysdeps/s390/multiarch/strcat-c.c: Move to ...
8744 * sysdeps/s390/strcat-c.c: ... here and adjust ifunc handling.
8745 * sysdeps/s390/multiarch/strcat-vx.S: Move to ...
8746 * sysdeps/s390/strcat-vx.S: ... here and adjust ifunc handling.
8747 * sysdeps/s390/multiarch/strcat.c: Move to ...
8748 * sysdeps/s390/strcat.c: ... here and adjust ifunc handling.
8749 * sysdeps/s390/ifunc-strcat.h: New file.
8750
8751 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
8752
8753 * sysdeps/s390/multiarch/Makefile
8754 (sysdep_routines): Remove stpncpy variants.
8755 * sysdeps/s390/Makefile (sysdep_routines): Add stpncpy variants.
8756 * sysdeps/s390/multiarch/ifunc-impl-list.c
8757 (__libc_ifunc_impl_list): Refactor ifunc handling for stpncpy.
8758 * sysdeps/s390/multiarch/stpncpy-c.c: Move to ...
8759 * sysdeps/s390/stpncpy-c.c: ... here and adjust ifunc handling.
8760 * sysdeps/s390/multiarch/stpncpy-vx.S: Move to ...
8761 * sysdeps/s390/stpncpy-vx.S: ... here and adjust ifunc handling.
8762 * sysdeps/s390/multiarch/stpncpy.c: Move to ...
8763 * sysdeps/s390/stpncpy.c: ... here and adjust ifunc handling.
8764 * sysdeps/s390/ifunc-stpncpy.h: New file.
8765
8766 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
8767
8768 * sysdeps/s390/multiarch/Makefile
8769 (sysdep_routines): Remove strncpy variants.
8770 * sysdeps/s390/Makefile (sysdep_routines): Add strncpy variants.
8771 * sysdeps/s390/multiarch/ifunc-impl-list.c
8772 (__libc_ifunc_impl_list): Refactor ifunc handling for strncpy.
8773 * sysdeps/s390/multiarch/strncpy-vx.S: Move to ...
8774 * sysdeps/s390/strncpy-vx.S: ... here and adjust ifunc handling.
8775 * sysdeps/s390/multiarch/strncpy.c: Move to ...
8776 * sysdeps/s390/strncpy.c: ... here and adjust ifunc handling.
8777 * sysdeps/s390/ifunc-strncpy.h: New file.
8778 * sysdeps/s390/s390-64/strncpy.S: Move to ...
8779 * sysdeps/s390/s390-64/strncpy-z900.S: ... here
8780 and adjust ifunc handling.
8781 * sysdeps/s390/s390-32/strncpy.S: Move to ...
8782 * sysdeps/s390/s390-32/strncpy-z900.S: ... here
8783 and adjust ifunc handling.
8784 * sysdeps/s390/s390-32/multiarch/strncpy.c: Delete file.
8785 * sysdeps/s390/s390-64/multiarch/strncpy.c: Likewise.
8786
8787 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
8788
8789 * sysdeps/s390/multiarch/Makefile
8790 (sysdep_routines): Remove stpcpy variants.
8791 * sysdeps/s390/Makefile (sysdep_routines): Add stpcpy variants.
8792 * sysdeps/s390/multiarch/ifunc-impl-list.c
8793 (__libc_ifunc_impl_list): Refactor ifunc handling for stpcpy.
8794 * sysdeps/s390/multiarch/stpcpy-c.c: Move to ...
8795 * sysdeps/s390/stpcpy-c.c: ... here and adjust ifunc handling.
8796 * sysdeps/s390/multiarch/stpcpy-vx.S: Move to ...
8797 * sysdeps/s390/stpcpy-vx.S: ... here and adjust ifunc handling.
8798 * sysdeps/s390/multiarch/stpcpy.c: Move to ...
8799 * sysdeps/s390/stpcpy.c: ... here and adjust ifunc handling.
8800 * sysdeps/s390/ifunc-stpcpy.h: New file.
8801
8802 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
8803
8804 * sysdeps/s390/multiarch/Makefile
8805 (sysdep_routines): Remove strcpy variants.
8806 * sysdeps/s390/Makefile (sysdep_routines): Add strcpy variants.
8807 * sysdeps/s390/multiarch/ifunc-impl-list.c
8808 (__libc_ifunc_impl_list): Refactor ifunc handling for strcpy.
8809 * sysdeps/s390/multiarch/strcpy-vx.S: Move to ...
8810 * sysdeps/s390/strcpy-vx.S: ... here and adjust ifunc handling.
8811 * sysdeps/s390/multiarch/strcpy.c: Move to ...
8812 * sysdeps/s390/strcpy.c: ... here and adjust ifunc handling.
8813 * sysdeps/s390/ifunc-strcpy.h: New file.
8814 * sysdeps/s390/s390-64/strcpy.S: Move to ...
8815 * sysdeps/s390/strcpy-z900.S: ... here and adjust to be usable
8816 for 31/64bit and ifunc handling.
8817 * sysdeps/s390/s390-32/multiarch/strcpy.c: Delete file.
8818 * sysdeps/s390/s390-64/multiarch/strcpy.c: Likewise.
8819 * sysdeps/s390/s390-32/strcpy.S: Likewise.
8820
8821 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
8822
8823 * sysdeps/s390/multiarch/Makefile
8824 (sysdep_routines): Remove strnlen variants.
8825 * sysdeps/s390/Makefile (sysdep_routines): Add strnlen variants.
8826 * sysdeps/s390/multiarch/ifunc-impl-list.c
8827 (__libc_ifunc_impl_list): Refactor ifunc handling for strnlen.
8828 * sysdeps/s390/multiarch/strnlen-c.c: Move to ...
8829 * sysdeps/s390/strnlen-c.c: ... here and adjust ifunc handling.
8830 * sysdeps/s390/multiarch/strnlen-vx.S: Move to ...
8831 * sysdeps/s390/strnlen-vx.S: ... here and adjust ifunc handling.
8832 * sysdeps/s390/multiarch/strnlen.c: Move to ...
8833 * sysdeps/s390/strnlen.c: ... here and adjust ifunc handling.
8834 * sysdeps/s390/ifunc-strnlen.h: New file.
8835
8836 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
8837
8838 * sysdeps/s390/multiarch/Makefile
8839 (sysdep_routines): Remove strlen variants.
8840 * sysdeps/s390/Makefile (sysdep_routines): Add strlen variants.
8841 * sysdeps/s390/multiarch/ifunc-impl-list.c
8842 (__libc_ifunc_impl_list): Refactor ifunc handling for strlen.
8843 * sysdeps/s390/multiarch/strlen-c.c: Move to ...
8844 * sysdeps/s390/strlen-c.c: ... here and adjust ifunc handling.
8845 * sysdeps/s390/multiarch/strlen-vx.S: Move to ...
8846 * sysdeps/s390/strlen-vx.S: ... here and adjust ifunc handling.
8847 * sysdeps/s390/multiarch/strlen.c: Move to ...
8848 * sysdeps/s390/strlen.c: ... here and adjust ifunc handling.
8849 * sysdeps/s390/ifunc-strlen.h: New file.
8850
8851 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
8852
8853 * sysdeps/s390/Makefile (sysdep_routines): Add memmem variants.
8854 * sysdeps/s390/multiarch/ifunc-impl-list.c
8855 (__libc_ifunc_impl_list): Add ifunc variants for memmem.
8856 * sysdeps/s390/ifunc-memmem.h: New file.
8857 * sysdeps/s390/memmem.c: Likewise.
8858 * sysdeps/s390/memmem-c.c: Likewise.
8859 * sysdeps/s390/memmem-vx.c: Likewise.
8860
8861 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
8862
8863 * sysdeps/s390/Makefile (sysdep_routines): Add strstr variants.
8864 * sysdeps/s390/multiarch/ifunc-impl-list.c
8865 (__libc_ifunc_impl_list): Add ifunc variants for strstr.
8866 * sysdeps/s390/ifunc-strstr.h: New file.
8867 * sysdeps/s390/strstr.c: Likewise.
8868 * sysdeps/s390/strstr-c.c: Likewise.
8869 * sysdeps/s390/strstr-vx.c: Likewise.
8870
8871 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
8872
8873 * sysdeps/s390/Makefile (sysdep_routines): Add memmove-c.
8874 * sysdeps/s390/ifunc-memcpy.h (HAVE_MEMMOVE_IFUNC,
8875 HAVE_MEMMOVE_IFUNC_AND_VX_SUPPORT, MEMMOVE_DEFAULT,
8876 HAVE_MEMMOVE_C, MEMMOVE_C, HAVE_MEMMOVE_Z13, MEMMOVE_Z13):
8877 New defines.
8878 * sysdeps/s390/memcpy-z900.S: Add z13 memmove implementation.
8879 * sysdeps/s390/memmove-c.c: New file.
8880 * sysdeps/s390/memmove.c: Likewise.
8881 * sysdeps/s390/multiarch/ifunc-impl-list.c
8882 (__libc_ifunc_impl_list): Add ifunc variants for memmove.
8883
8884 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
8885
8886 * config.h.in (HAVE_S390_MIN_Z13_ZARCH_ASM_SUPPORT): New undefine.
8887 * sysdeps/s390/configure.ac: Add check for z13 support.
8888 * sysdeps/s390/configure: Regenerated.
8889
8890 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
8891
8892 * sysdeps/s390/memcopy.h: New file.
8893
8894 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
8895
8896 * sysdeps/s390/s390-32/bcopy.S: Remove.
8897 * sysdeps/s390/s390-64/bcopy.S: Likewise.
8898
8899 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
8900
8901 * sysdeps/s390/ifunc-memcpy.h: New File.
8902 * sysdeps/s390/memcpy.S: Move to ...
8903 * sysdeps/s390/memcpy-z900.S ... here.
8904 Move implementations from memcpy-s390x.s to here.
8905 * sysdeps/s390/multiarch/memcpy-s390x.S: Delete File.
8906 * sysdeps/s390/multiarch/Makefile (sysdep_routines):
8907 Remove memcpy/mempcpy variants.
8908 * sysdeps/s390/Makefile (sysdep_routines):
8909 Add memcpy/mempcpy variants.
8910 * sysdeps/s390/multiarch/ifunc-impl-list.c
8911 (__libc_ifunc_impl_list): Adjust ifunc variants for
8912 memcpy and mempcpy.
8913 * sysdeps/s390/multiarch/memcpy.c: Move ifunc resolver
8914 to ...
8915 * sysdeps/s390/memcpy.c: ... here.
8916 Adjust ifunc variants for memcpy.
8917 * sysdeps/s390/multiarch/mempcpy.c: Move to ...
8918 * sysdeps/s390/mempcpy.c: ... here.
8919 Adjust ifunc variants for mempcpy.
8920 * sysdeps/s390/mempcpy.S: Delete file.
8921
8922 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
8923
8924 * sysdeps/s390/s390-64/memcpy.S: Move to ...
8925 * sysdeps/s390/memcpy.S: ... here.
8926 Adjust to be usable for 31/64bit.
8927 * sysdeps/s390/s390-32/memcpy.S: Delete File.
8928 * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add memcpy.
8929 * sysdeps/s390/s390-32/multiarch/Makefile: Delete file.
8930 * sysdeps/s390/s390-64/multiarch/Makefile: Likewise.
8931 * sysdeps/s390/s390-64/multiarch/memcpy-s390x.S: Move to ...
8932 * sysdeps/s390/multiarch/memcpy-s390x.S: ... here.
8933 Adjust to be usable for 31/64bit.
8934 * sysdeps/s390/s390-32/multiarch/memcpy-s390.S: Delete File.
8935 * sysdeps/s390/s390-64/multiarch/memcpy.c: Move to ...
8936 * sysdeps/s390/multiarch/memcpy.c: ... here.
8937 * sysdeps/s390/s390-32/multiarch/memcpy.c: Delete File.
8938
8939 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
8940
8941 * sysdeps/s390/ifunc-memcmp.h: New File.
8942 * sysdeps/s390/memcmp.S: Move to ...
8943 * sysdeps/s390/memcmp-z900.S ... here.
8944 Move implementations from memcmp-s390x.s to here.
8945 * sysdeps/s390/multiarch/memcmp-s390x.S: Delete File.
8946 * sysdeps/s390/multiarch/Makefile (sysdep_routines):
8947 Remove memcmp variants.
8948 * sysdeps/s390/Makefile (sysdep_routines):
8949 Add memcmp variants.
8950 * sysdeps/s390/multiarch/ifunc-impl-list.c
8951 (__libc_ifunc_impl_list): Adjust ifunc variants for
8952 memcmp.
8953 * sysdeps/s390/multiarch/memcmp.c: Move ifunc resolver
8954 to ...
8955 * sysdeps/s390/memcmp.c: ... here.
8956 Adjust ifunc variants for memcmp.
8957
8958 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
8959
8960 * sysdeps/s390/s390-64/memcmp.S: Move to ...
8961 * sysdeps/s390/memcmp.S: ... here.
8962 Adjust to be usable for 31/64bit.
8963 * sysdeps/s390/s390-32/memcmp.S: Delete File.
8964 * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add memcmp.
8965 * sysdeps/s390/s390-32/multiarch/Makefile (sysdep_routines):
8966 Remove memcmp.
8967 * sysdeps/s390/s390-64/multiarch/Makefile: Likewise.
8968 * sysdeps/s390/s390-64/multiarch/memcmp-s390x.S: Move to ...
8969 * sysdeps/s390/multiarch/memcmp-s390x.S: ... here.
8970 Adjust to be usable for 31/64bit.
8971 * sysdeps/s390/s390-32/multiarch/memcmp-s390.S: Delete File.
8972 * sysdeps/s390/s390-64/multiarch/memcmp.c: Move to ...
8973 * sysdeps/s390/multiarch/memcmp.c: ... here.
8974 * sysdeps/s390/s390-32/multiarch/memcmp.c: Delete File.
8975
8976 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
8977
8978 * sysdeps/s390/s390-32/bzero.S: Delete file.
8979 * sysdeps/s390/s390-64/bzero.S: Likewise.
8980 * sysdeps/s390/Makefile (sysdep_routines): Add bzero.
8981 * sysdeps/s390/bzero.c: New file.
8982 * sysdeps/s390/memset-z900.S: Add bzero entry points.
8983 * sysdeps/s390/ifunc-memset.h: Add bzero function macros.
8984 * sysdeps/s390/multiarch/ifunc-impl-list.c
8985 (__libc_ifunc_impl_list): Add bzero ifunc variants.
8986
8987 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
8988
8989 * sysdeps/s390/ifunc-memset.h: New File.
8990 * sysdeps/s390/memset.S: Move to ...
8991 * sysdeps/s390/memset-z900.S ... here.
8992 Move implementations from memset-s390x.s to here.
8993 * sysdeps/s390/multiarch/memset-s390x.S: Delete File.
8994 * sysdeps/s390/multiarch/Makefile (sysdep_routines):
8995 Remove memset variants.
8996 * sysdeps/s390/Makefile (sysdep_routines):
8997 Add memset variants.
8998 * sysdeps/s390/multiarch/ifunc-impl-list.c
8999 (__libc_ifunc_impl_list): Adjust ifunc variants for
9000 memset.
9001 * sysdeps/s390/multiarch/memset.c: Move ifunc resolver
9002 to ...
9003 * sysdeps/s390/memset.c: ... here.
9004 Adjust ifunc variants for memset.
9005
9006 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
9007
9008 * sysdeps/s390/s390-64/memset.S: Move to ...
9009 * sysdeps/s390/memset.S: ... here.
9010 Adjust to be usable for 31/64bit.
9011 * sysdeps/s390/s390-32/memset.S: Delete File.
9012 * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add memset.
9013 * sysdeps/s390/s390-32/multiarch/Makefile (sysdep_routines):
9014 Remove memset.
9015 * sysdeps/s390/s390-64/multiarch/Makefile: Likewise.
9016 * sysdeps/s390/s390-64/multiarch/memset-s390x.S: Move to ...
9017 * sysdeps/s390/multiarch/memset-s390x.S: ... here.
9018 Adjust to be usable for 31/64bit.
9019 * sysdeps/s390/s390-32/multiarch/memset-s390.S: Delete File.
9020 * sysdeps/s390/s390-64/multiarch/memset.c: Move to ...
9021 * sysdeps/s390/multiarch/memset.c: ... here.
9022 * sysdeps/s390/s390-32/multiarch/memset.c: Delete File.
9023
9024 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
9025
9026 * sysdeps/s390/multiarch/ifunc-resolve.h
9027 (s390_libc_ifunc_init, s390_libc_ifunc,
9028 s390_vx_libc_ifunc2_redirected): Use hwcap instead of dl_hwcap.
9029
9030 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
9031
9032 * config.h.in (HAVE_S390_MIN_Z10_ZARCH_ASM_SUPPORT): New undefine.
9033 * sysdeps/s390/configure.ac: Add check for z10 support.
9034 * sysdeps/s390/configure: Regenerated.
9035
9036 2018-12-18 H.J. Lu <hongjiu.lu@intel.com>
9037
9038 * sysdeps/i386/atomic-machine.h: Merged with ...
9039 * sysdeps/x86_64/atomic-machine.h: To ...
9040 * sysdeps/x86/atomic-machine.h: This. New file.
9041
9042 2018-12-18 Florian Weimer <fweimer@redhat.com>
9043
9044 Rewrite locale/gen-translit.pl in Python.
9045 * locale/Makefile (generated): Add C-translit.h.
9046 (before-compile): Add $(objpfx)C-translit.h.
9047 (C-translit.h): Move to $(objpfx). Create target directory.
9048 Build using Python script.
9049 * locale/gen-translit.py: New file.
9050 * locale/gen-translit.pl: Remove file.
9051 * locale/C-translit.h.in: Change comment character to '#' for
9052 easier parsing without a C preprocessor.
9053 * locale/C-translit.h: Remove generated file.
9054 * manual/install.texi (Tools for Compilation): Do not mention
9055 C-translit.h.
9056 * scripts/build-many-glibcs.py (Context.fix_glibc_timestamps):
9057 Remove locale/C-translit.h.
9058 * scripts/update-copyrights: Likewise.
9059 * INSTALL: Regenerate.
9060
9061 2018-12-18 Florian Weimer <fweimer@redhat.com>
9062
9063 [BZ #23995]
9064 * localedata/locales/bi_VU: Remove executable bit from file.
9065
9066 2018-12-17 Albert ARIBAUD <albert.aribaud@3adev.fr>
9067
9068 * include/time.h
9069 (__localtime64): Add.
9070 * manual/maint.texi: Document Y2038 symbol handling.
9071 * time/localtime.c
9072 (__localtime64): Add.
9073 [__TIMESIZE != 64] (__localtime): Turn into a wrapper.
9074
9075 2018-12-17 Joseph Myers <joseph@codesourcery.com>
9076
9077 * sysdeps/unix/sysv/linux/ia64/sysdep.h (ASM_CLOBBERS_6_COMMON):
9078 Do not clobber r12.
9079
9080 * scripts/glibcextract.py (compare_macro_consts): Take parameters
9081 to allow extra macros from first or second sources.
9082 * sysdeps/unix/sysv/linux/tst-mman-consts.py: New file.
9083 * sysdeps/unix/sysv/linux/Makefile [$(subdir) = misc]
9084 (tests-special): Add $(objpfx)tst-mman-consts.out.
9085 ($(objpfx)tst-mman-consts.out): New makefile target.
9086
9087 2018-12-17 Mao Han <han_mao@c-sky.com>
9088
9089 * sysdeps/unix/sysv/linux/Makefile: Add statx_cp.c.
9090 * sysdeps/unix/sysv/linux/fxstat64.c: Add conditionals for kernel
9091 without stat64 system call support.
9092 * sysdeps/unix/sysv/linux/fxstatat64.c: Likewise.
9093 * sysdeps/unix/sysv/linux/generic/wordsize-32/fxstat.c: Likewise.
9094 * sysdeps/unix/sysv/linux/generic/wordsize-32/fxstatat.c: Likewise.
9095 * sysdeps/unix/sysv/linux/generic/wordsize-32/lxstat.c: Likewise.
9096 * sysdeps/unix/sysv/linux/generic/wordsize-32/lxstat64.c: Likewise.
9097 * sysdeps/unix/sysv/linux/generic/wordsize-32/xstat.c: Likewise.
9098 * sysdeps/unix/sysv/linux/generic/wordsize-32/xstat64.c: Likewise.
9099 * sysdeps/unix/sysv/linux/mips/mips64/statx_cp.c: New file.
9100 * sysdeps/unix/sysv/linux/statx_cp.c: Likewise.
9101 * sysdeps/unix/sysv/linux/statx_cp.h: Likewise.
9102 * sysdeps/unix/sysv/linux/wordsize-64/statx_cp.c: Likewise.
9103
9104 2018-12-15 Paul Eggert <eggert@cs.ucla.edu>
9105
9106 regex: fix storage-exhaustion error
9107 [BZ #18040]
9108 * posix/regexec.c (get_subexp):
9109 Do not continue if storage is exhausted.
9110
9111 2018-12-15 Assaf Gordon <assafgordon@gmail.com>
9112
9113 regex: fix heap-use-after-free error
9114 [BZ #18040]
9115 Problem reported by Saito Takaaki <tails.saito@gmail.com> in
9116 https://debbugs.gnu.org/32592
9117 Call stack get_subexp->get_subexp_sub->clean_state_log_if_needed may
9118 call extend_buffers which reallocates the re_string_t internal buffer.
9119 Local variable 'buf' was not updated in such case, resulting in
9120 use-after-free.
9121 * posix/regexec.c (get_subexp): Update 'buf' after call to
9122 get_subexp_sub.
9123
9124 2018-12-15 Florian Weimer <fweimer@redhat.com>
9125
9126 * support/blob_repeat.c (check_mul_overflow_size_t): New function.
9127 (minimum_stride_size): Use it.
9128 (support_blob_repeat_allocate): Likewise.
9129
9130 2018-12-14 Joseph Myers <joseph@codesourcery.com>
9131
9132 * sysdeps/x86/fpu/bits/mathinline.h (asinh): Remove inline
9133 definition.
9134 (acosh): Likewise.
9135 (atanh): Likewise.
9136
9137 2018-12-14 Florian Weimer <fweimer@redhat.com>
9138
9139 * manual/process.texi (Process Creation Concepts): Remove
9140 documentation of process (ID) lifetime. List more process
9141 creation functions. Reference Process Identification section.
9142 (Process Identification): Add information about process ID
9143 lifetime. Describe Linux thread/task IDs.
9144 * manual/signal.texi (Signaling Another Process): Mention that the
9145 signal is always sent to the process.
9146
9147 2018-12-14 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
9148
9149 * misc/Makefile (tests): Remove tst-efgcvt. Add tst-dbl-efgcvt
9150 and tst-ldbl-efgcvt.
9151 * misc/tst-efgcvt.c: Renamed to misc/tst-efgcvt-template.c.
9152 * misc/tst-efgcvt-template.c: Renamed from misc/tst-efgcvt.c.
9153 (struct testcase, efcvt_func, efcvt_r_func, ecvt_tests)
9154 (fcvt_tests, output_error, output_r_error, do_test): Use the
9155 macros defined in tst-dbl-efgcvt.c and tst-ldbl-efgcvt.c to:
9156 select the type of floating-point variables and arguments; to
9157 produce extra tests for double and conversion specifiers for
9158 printf; and to set the names of called functions.
9159 * misc/tst-dbl-efgcvt.c: New file that defines the macros used
9160 in tst-efgcvt-template.c.
9161 * misc/tst-ldbl-efgcvt.c: Likewise.
9162
9163 2018-12-14 Stefan Liebler <stli@linux.ibm.com>
9164
9165 * nss/Makefile (tst-nss-test3.out): New rule.
9166
9167 2018-12-13 Joseph Myers <joseph@codesourcery.com>
9168
9169 * sysdeps/mach/hurd/i386/init-first.c (_hurd_stack_setup): Do not
9170 clobber sp.
9171
9172 2018-12-13 fanjinke <fanjinke@hygon.cn>
9173
9174 * sysdeps/x86/cpu-features.c (init_cpu_features): Check for
9175 "HygonGenuine".
9176
9177 2018-12-13 Andreas Schwab <schwab@suse.de>
9178
9179 [BZ #23861]
9180 * nptl/pthread_rwlock_common.c: Reindent. Fix typos.
9181 (__pthread_rwlock_rdlock_full): Update expected value for
9182 __readers while waiting on PTHREAD_RWLOCK_RWAITING.
9183 * nptl/tst-rwlock-pwn.c: New file.
9184 * nptl/Makefile (tests): Add tst-rwlock-pwn.
9185
9186 2018-12-12 Joseph Myers <joseph@codesourcery.com>
9187
9188 * sysdeps/x86/fpu/bits/mathinline.h (hypot): Remove inline
9189 definition.
9190
9191 2018-12-12 Leonardo Sandoval <leonardo.sandoval.gonzalez@intel.com>
9192
9193 * benchtests/scripts/compare_bench.py (do_compare): write to
9194 stderr in casestat is not present.
9195 * benchtests/scripts/compare_bench.py (plot_graphs): write to
9196 stderr in case timings field is not present. Also string showing
9197 the output filename goes into the stderr.
9198
9199 2018-12-12 Leonardo Sandoval <leonardo.sandoval.gonzalez@intel.com>
9200
9201 * benchtests/scripts/compare_bench.py (do_compare): Catch KeyError
9202 and ZeroDivisorError exceptions.
9203 * benchtests/scripts/compare_bench.py (compare_runs): Use stats
9204 argument to loop through user provided statistics.
9205 * benchtests/scripts/compare_bench.py (main): Include the --stats
9206 argument.
9207
9208 2018-12-12 Leonardo Sandoval <leonardo.sandoval.gonzalez@intel.com>
9209
9210 * benchtests/scripts/compare_bench.py (compare_runs): Continue
9211 instead of return.
9212
9213 2018-12-12 Florian Weimer <fweimer@redhat.com>
9214
9215 * sysdeps/posix/timespec_get.c: Add missing “any later version”
9216 clause to copyright header.
9217
9218 2018-12-12 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
9219
9220 [BZ #23614]
9221 * sysdeps/powerpc/powerpc64/addmul_1.S (FUNC): Add CFI offset for
9222 registers saved in the stack frame.
9223 * sysdeps/powerpc/powerpc64/lshift.S (__mpn_lshift): Likewise.
9224 * sysdeps/powerpc/powerpc64/mul_1.S (__mpn_mul_1): Likewise.
9225
9226 2018-12-11 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
9227
9228 * include/bits/monetary-ldbl.h: New file.
9229 * include/bits/printf-ldbl.h: Likewise.
9230 * include/bits/stdio-ldbl.h: Likewise.
9231 * include/bits/stdlib-ldbl.h: Likewise.
9232 * include/bits/syslog-ldbl.h: Likewise.
9233 * include/bits/wchar-ldbl.h: Likewise.
9234
9235 2018-12-11 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
9236
9237 * libio/libio.h: Remove redirection for _IO_vfprintf.
9238
9239 2018-12-11 Andreas Schwab <schwab@suse.de>
9240
9241 * Makerules: Remove all references to abilist-pattern.
9242 (update-all-abi): Simplify find expression.
9243
9244 2018-12-11 Szabolcs Nagy <szabolcs.nagy@arm.com>
9245
9246 [BZ #23961]
9247 * math/auto-libm-test-in: Add new test case.
9248 * math/auto-libm-test-out-pow: Regenerated.
9249 * sysdeps/ieee754/flt-32/e_powf.c (__powf): Fix overflow check.
9250
9251 2018-12-10 DJ Delorie <dj@redhat.com>
9252
9253 [BZ #23948]
9254 * support/test-container.c: Move postclean step to before we
9255 change namespaces.
9256
9257 2018-12-10 Joseph Myers <joseph@codesourcery.com>
9258
9259 * scripts/gen-as-const.py (main): Handle --python option.
9260 * scripts/gen-py-const.awk: Remove.
9261 * Makerules (py-const-script): Use gen-as-const.py.
9262 ($(py-const)): Likewise.
9263 * nptl/nptl-printers.py (MutexPrinter.read_status_no_robust): Mask
9264 with 0xffffffff together with ~(PTHREAD_MUTEX_PRIO_CEILING_MASK).
9265 (MutexAttributesPrinter.read_values): Mask with 0xffffffff
9266 together with ~PTHREAD_MUTEXATTR_FLAG_BITS and
9267 ~PTHREAD_MUTEX_NO_ELISION_NP.
9268 * manual/README.pretty-printers: Update reference to
9269 gen-py-const.awk.
9270
9271 * scripts/glibcextract.py: New file.
9272 * scripts/gen-as-const.py: Do not import os.path, re, subprocess
9273 or tempfile. Import glibcexctract.
9274 (compute_c_consts): Remove. Moved to glibcextract.py.
9275 (gen_test): Update reference to compute_c_consts.
9276 (main): Likewise.
9277 * sysdeps/unix/sysv/linux/tst-signal-numbers.py: New file.
9278 * sysdeps/unix/sysv/linux/tst-signal-numbers.sh: Remove.
9279 * sysdeps/unix/sysv/linux/Makefile
9280 ($(objpfx)tst-signal-numbers.out): Use tst-signal-numbers.py.
9281 Redirect stderr as well as stdout.
9282
9283 2018-12-10 Rafael Ávila de Espíndola <rafael@espindo.la>
9284
9285 [BZ #19767]
9286 * sysdeps/unix/sysv/linux/mips/init-first.c: Remove #ifdef SHARED.
9287 * sysdeps/unix/sysv/linux/mips/libc-vdso.h: Remove #ifdef SHARED.
9288 * sysdeps/unix/sysv/linux/mips/mips32/sysdep.h: Define
9289 ALWAYS_USE_VSYSCALL.
9290 * sysdeps/unix/sysv/linux/mips/mips64/n32/sysdep.h: Define
9291 ALWAYS_USE_VSYSCALL.
9292 * sysdeps/unix/sysv/linux/mips/mips64/n64/sysdep.h: Define
9293 ALWAYS_USE_VSYSCALL.
9294
9295 2018-12-10 Florian Weimer <fweimer@redhat.com>
9296
9297 [BZ #23972]
9298 * sysdeps/unix/sysv/linux/getdents64.c (handle_overflow): Check
9299 offset instead of count for clarity. Fix typo in comment.
9300 (__old_getdents64): Keep track of previous offset. Use it to call
9301 handle_overflow.
9302 * sysdeps/unix/sysv/linux/tst-readdir64-compat.c (do_test): Check
9303 that d_off is never zero.
9304
9305 2018-12-10 Andreas Schwab <schwab@suse.de>
9306
9307 * sysdeps/unix/sysv/linux/powerpc/powerpc64/*-le.abilist: Move to
9308 sysdeps/unix/sysv/linux/powerpc/powerpc64/le/*.abilist.
9309 * sysdeps/unix/sysv/linux/powerpc/powerpc64/*.abilist: Move to
9310 sysdeps/unix/sysv/linux/powerpc/powerpc64/be/*.abilist.
9311 * sysdeps/powerpc/Makefile (abilist-pattern): Don't define.
9312
9313 2018-12-10 Joseph Myers <joseph@codesourcery.com>
9314
9315 * timezone/private.h: Update from tzcode 2018g.
9316 * timezone/tzfile.h: Likewise.
9317 * timezone/tzselect.ksh: Likewise.
9318 * timezone/zdump.c: Likewise.
9319 * timezone/zic.c: Likewise.
9320
9321 2018-12-08 Paul Pluzhnikov <ppluzhnikov@google.com>
9322
9323 [BZ #23490]
9324 * sysdeps/unix/sysv/linux/x86/tst-cet-property-2.c
9325 (do_test): Adjust buffer size and fix format.
9326
9327 2018-12-07 DJ Delorie <dj@redhat.com>
9328
9329 [BZ #23907]
9330 * malloc/tst-tcfree3.c: New.
9331 * malloc/Makefile: Add it.
9332
9333 2018-12-07 H.J. Lu <hongjiu.lu@intel.com>
9334
9335 * include/sched.h (__getcpu): Don't use __typeof__ (getcpu).
9336
9337 2018-12-07 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
9338
9339 * libio/libioP.h (SCANF_LDBL_USES_FLOAT128): New macro to be
9340 used as a mask for the mode argument of __vfscanf_internal and
9341 __vfwscanf_internal.
9342 * stdio-common/vfscanf-internal.c
9343 [defined COMPILE_WSCANF && __HAVE_FLOAT128_UNLIKE_LDBL]
9344 (__strtof128_internal): Define to __wcstof128_internal.
9345 [__HAVE_FLOAT128_UNLIKE_LDBL] (__vfscanf_internal): Call
9346 __strtof128_internal or __wcstof128_internal when the format of
9347 long double is the same as _Float128.
9348
9349 2018-12-05 Samuel Thibault <samuel.thibault@ens-lyon.org>
9350
9351 * include/unistd.h (__confstr): Add prototype and hidden prototype.
9352 * posix/confstr.c (confstr): Rename to __confstr.
9353 (__confstr): Add hidden def.
9354 (confstr): Add weak alias for __confstr.
9355 * sysdeps/mach/hurd/spawni.c (__spawni): Call __confstr instead of
9356 confstr.
9357
9358 2018-12-07 H.J. Lu <hongjiu.lu@intel.com>
9359
9360 * NEWS: Mention getcpu.
9361 * include/sched.h (__getcpu): New libc_hidden_proto.
9362 * manual/resource.texi: Document getcpu.
9363 * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Add getcpu.
9364 * sysdeps/unix/sysv/linux/Versions (GLIBC_2.29): Add getcpu.
9365 * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Add getcpu.
9366 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
9367 * sysdeps/unix/sysv/linux/arm/libc.abilist: Likewise.
9368 * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
9369 * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
9370 * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
9371 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
9372 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
9373 * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
9374 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
9375 * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist:
9376 Likewise.
9377 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
9378 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
9379 * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise.
9380 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
9381 Likewise.
9382 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
9383 Likewise.
9384 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist:
9385 Likewise.
9386 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist:
9387 Likewise.
9388 * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist: Likewise.
9389 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
9390 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
9391 * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
9392 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
9393 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
9394 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
9395 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
9396 * sysdeps/unix/sysv/linux/bits/sched.h (getcpu): New prototype.
9397 * sysdeps/unix/sysv/linux/getcpu.c: New file.
9398 * sysdeps/unix/sysv/linux/tst-skeleton-affinity.c (test_size):
9399 Also check getcpu.
9400
9401 2018-12-07 Samuel Thibault <samuel.thibault@ens-lyon.org>
9402
9403 * sysdeps/mach/hurd/spawni.c (child_lookup_under, child_fchdir): New
9404 functions.
9405 (__spawni): Handle spawn_do_fchdir by calling child_fchdir.
9406
9407 2018-12-07 Florian Weimer <fweimer@redhat.com>
9408
9409 [BZ #17405]
9410 * posix/Makefile (routines): Add spawn_faction_addfchdir.
9411 * posix/Versions (GLIBC_2.29): Export
9412 posix_spawn_file_actions_addfchdir_np.
9413 * posix/spawn.h (posix_spawn_file_actions_addfchdir_np): Declare.
9414 * posix/spawn_faction_destroy.c
9415 (__posix_spawn_file_actions_destroy): Handle spawn_do_fchdir.
9416 * posix/spawn_int.h (struct __spawn_action): Add spawn_do_fchdir
9417 and the field action.fchdir_action.
9418 * posix/tst-spawn-chdir.c (add_chdir): New function.
9419 (do_test): Add do_fchdir loop. Call add_chdir.
9420 * sysdeps/posix/spawni.c (__spawni_child): Handle spawn_do_fchdir.
9421 * sysdeps/unix/sysv/linux/spawni.c (__spawni_child): Likewise.
9422 * sysdeps/mach/hurd/i386/libc.abilist (GLIBC_2.29): Add
9423 posix_spawn_file_actions_addfchdir_np.
9424 * sysdeps/unix/sysv/linux/aarch64/libc.abilist (GLIBC_2.29):
9425 Likewise.
9426 * sysdeps/unix/sysv/linux/alpha/libc.abilist (GLIBC_2.29):
9427 Likewise.
9428 * sysdeps/unix/sysv/linux/arm/libc.abilist (GLIBC_2.29): Likewise.
9429 * sysdeps/unix/sysv/linux/hppa/libc.abilist (GLIBC_2.29):
9430 Likewise.
9431 * sysdeps/unix/sysv/linux/i386/libc.abilist (GLIBC_2.29):
9432 Likewise.
9433 * sysdeps/unix/sysv/linux/ia64/libc.abilist (GLIBC_2.29):
9434 Likewise.
9435 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist (GLIBC_2.29):
9436 Likewise.
9437 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist (GLIBC_2.29):
9438 Likewise.
9439 * sysdeps/unix/sysv/linux/microblaze/libc.abilist (GLIBC_2.29):
9440 Likewise.
9441 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist
9442 (GLIBC_2.29): Likewise.
9443 * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist
9444 (GLIBC_2.29): Likewise.
9445 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist
9446 (GLIBC_2.29): Likewise.
9447 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist
9448 (GLIBC_2.29): Likewise.
9449 * sysdeps/unix/sysv/linux/nios2/libc.abilist (GLIBC_2.29):
9450 Likewise.
9451 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist
9452 (GLIBC_2.29): Likewise.
9453 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist
9454 (GLIBC_2.29): Likewise.
9455 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist
9456 (GLIBC_2.29): Likewise.
9457 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist
9458 (GLIBC_2.29): Likewise.
9459 * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist (GLIBC_2.29):
9460 Likewise.
9461 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist (GLIBC_2.29):
9462 Likewise.
9463 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist (GLIBC_2.29):
9464 Likewise.
9465 * sysdeps/unix/sysv/linux/sh/libc.abilist (GLIBC_2.29): Likewise.
9466 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist (GLIBC_2.29):
9467 Likewise.
9468 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist (GLIBC_2.29):
9469 Likewise.
9470 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist (GLIBC_2.29):
9471 Likewise.
9472 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist (GLIBC_2.29):
9473 Likewise.
9474
9475 2018-12-06 Joseph Myers <joseph@codesourcery.com>
9476
9477 * manual/texinfo.tex: Update to version 2018-09-21.20 with
9478 trailing whitespace removed.
9479 * scripts/config.guess: Update to version 2018-11-28.
9480 * scripts/config.sub: Update to version 2018-11-28.
9481 * scripts/install-sh: Update to version 2018-03-11.20.
9482 * scripts/mkinstalldirs: Update to version 2018-03-07.03.
9483 * scripts/move-if-change: Update to version 2018-03-07 03:47.
9484
9485 2018-12-07 Florian Weimer <fweimer@redhat.com>
9486
9487 [BZ #23927]
9488 CVE-2018-19591
9489 * inet/tst-if_index-long.c: New file.
9490 * inet/Makefile (tests): Add tst-if_index-long.
9491
9492 2018-12-07 Florian Weimer <fweimer@redhat.com>
9493
9494 * support/check.h (support_record_failure_is_failed): Declare.
9495 * support/descriptors.h: New file.
9496 * support/support_descriptors.c: Likewise.
9497 * support/tst-support_descriptors.c: Likewise.
9498 * support/support_record_failure.c
9499 (support_record_failure_is_failed): New function.
9500 * support/Makefile (libsupport-routines): Add support_descriptors.
9501 (tests): Add tst-support_descriptors.
9502
9503 2018-12-05 Zack Weinberg <zackw@panix.com>
9504 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
9505
9506 * stdio-common/vfprintf-internal.c
9507 (__vfprintf_internal, __vfwprintf_internal): Don't use __ldbl_is_dbl.
9508 * sysdeps/generic/math_ldbl_opt.h: Remove __ldbl_is_dbl.
9509 * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Remove __ldbl_is_dbl
9510 and __no_long_double.
9511 * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.c: Remove file.
9512 * sysdeps/ieee754/ldbl-opt/Makefile (routines): Remove math_ldbl_opt.
9513 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c: Remove
9514 libc_hidden_proto and libc_hidden_def from all __nldbl_*printf*
9515 and __nldbl_*syslog* functions.
9516 (__nldbl_cleanup, set_no_long_double, clear_no_long_double): Remove.
9517 (__nldbl___asprintf, __nldbl_dprintf, __nldbl_fprintf)
9518 (__nldbl_fwprintf, __nldbl_printf, __nldbl_sprintf)
9519 (__nldbl_vfprintf, __nldbl___vsprintf, __nldbl_obstack_vprintf)
9520 (__ndlbl_obstack_printf, __nldbl_snprintf, __nldbl_swprintf)
9521 (__nldbl_vasprintf, __nldbl_vdprintf, __nldbl_vfwprintf)
9522 (__nldbl_vprintf, __nldbl_vsnprintf, __ndlbl_vswprintf)
9523 (__nldbl_vwprintf, __nldbl_wprintf):
9524 Directly call the appropriate __v*printf_internal routine, passing
9525 PRINTF_LDBL_IS_DBL. Do not mess with __no_long_double. Normalize
9526 variable names.
9527 (__nldbl___fprintf_chk, __nldbl___fwprintf_chk)
9528 (__nldbl___printf_chk, __nldbl___snprintf_chk)
9529 (__nldbl___sprintf_chk, __nldbl___swprintf_chk)
9530 (__nldbl___vfprintf_chk, __nldbl___vfwprintf_chk)
9531 (__nldbl___vprintf_chk, __nldbl___vsnprintf_chk)
9532 (__nldbl___vsprintf_chk, __nldbl___vswprintf_chk)
9533 (__nldbl___vwprintf_chk, __nldbl___wprintf_chk)
9534 (__nldbl___vasprintf_chk, __nldbl___asprintf_chk)
9535 (__nldbl___vdprintf_chk, __nldbl___dprintf_chk)
9536 (__nldbl___obstack_vprintf_chk, __nldbl___obstack_printf_chk):
9537 Likewise, and also pass PRINTF_FORTIFY when appropriate.
9538 (__nldbl_syslog, __nldbl_vsyslog):
9539 Directly call __vsyslog_internal, passing PRINTF_LDBL_IS_DBL.
9540 (__nldbl_syslog_chk): Likewise, and also pass PRINTF_FORTIFY when
9541 appropriate.
9542 (__nldbl_vsyslog_chk): Likewise, and also pass PRINTF_FORTIFY when
9543 appropriate.
9544
9545 2018-12-05 Zack Weinberg <zackw@panix.com>
9546 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
9547
9548 [BZ #11319]
9549 * libio/iovsprintf.c (_IO_str_chk_overflow, libio_vtable):
9550 Moved here from debug/vsprintf_chk.c.
9551 (__vsprintf_internal): Add 'maxlen' argument. Change the setup
9552 and completion logic for the strfile to match exactly what
9553 __vsprintf_chk used to do, except, when maxlen is -1, pass -1 to
9554 _IO_str_init_static_internal instead of maxlen-1.
9555 (__vsprintf): Pass -1 as maxlen to __vsprintf_internal.
9556 * stdio-common/sprintf.c (__sprintf): Pass -1 as maxlen to
9557 __vsprintf_internal.
9558
9559 * debug/vsprintf_chk.c (__vsprintf_chk)
9560 * debug/sprintf_chk.c (__sprintf_chk):
9561 Directly call __vsprintf_internal, passing PRINTF_FORTIFY if
9562 'flags' argument is positive, and slen as maxlen. No need to lock
9563 the FILE and/or construct a temporary FILE. Minimize and normalize
9564 header inclusions and variable names. Do not libc_hidden_def anything.
9565
9566 * debug/asprintf_chk.c (__asprintf_chk)
9567 * debug/dprintf_chk.c (__dprintf_chk)
9568 * debug/fprintf_chk.c (__fprintf_chk)
9569 * debug/fwprintf_chk.c (__fwprintf_chk)
9570 * debug/printf_chk.c (__printf_chk)
9571 * debug/snprintf_chk.c (__snprintf_chk)
9572 * debug/swprintf_chk.c (__swprintf_chk)
9573 * debug/vasprintf_chk.c (__vasprintf_chk)
9574 * debug/vdprintf_chk.c (__vdprintf_chk)
9575 * debug/vfprintf_chk.c (__vfprintf_chk)
9576 * debug/vfwprintf_chk.c (__vfwprintf_chk)
9577 * debug/vprintf_chk.c (__vprintf_chk)
9578 * debug/vsnprintf_chk.c (__vsnprintf_chk)
9579 * debug/vswprintf_chk.c (__vswprintf_chk)
9580 * debug/vwprintf_chk.c (__vwprintf_chk)
9581 * debug/wprintf_chk.c (__wprintf_chk):
9582 Directly call the corresponding vxxprintf_internal function, passing
9583 PRINTF_FORTIFY if 'flag' argument is positive. No need to lock
9584 the FILE and/or construct a temporary FILE. Minimize and normalize
9585 header inclusions and variable names. Do not libc_hidden_def anything.
9586
9587 * debug/obprintf_chk.c (__obstack_printf_chk): Directly call
9588 __obstack_vprintf_internal.
9589 (__obstack_vprintf_chk): Convert into a wrapper that calls
9590 __obstack_vprintf_internal (these two functions already had the
9591 same code) and move to new file...
9592 * debug/vobprintf_chk.c (__obstack_vprintf_chk): ... here. New
9593 file.
9594 * debug/obprintf.c (__obstack_vprintf_internal): Remove the checking of
9595 the flags argument and the setting of _IO_FLAGS2_FORTIFY.
9596 * debug/Makefile (routines): Add vobprintf_chk.
9597
9598 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c
9599 (__nldbl___vsprintf): Pass -1 as maxlen to __vsprintf_internal.
9600 (__nldbl___vfprintf_chk, __nldbl___vsnprintf_chk)
9601 (__nldbl___vsprintf_chk, __nldbl___vswprintf_chk)
9602 (__nldbl___vasprintf_chk, __nldbl___vdprintf_chk)
9603 (__nldbl___obstack_vfprintf_chk):
9604 Directly call the corresponding vxxprintf_internal function,
9605 passing PRINTF_FORTIFY if 'flag' argument is positive. If necessary,
9606 duplicate comparison of slen with 0 or maxlen from the corresponding
9607 non-__nldbl function.
9608
9609 * include/stdio.h (__vsnprintf_chk, __vfprintf_chk, __vasprintf_chk)
9610 (__vdprintf_chk, __obstack_vfprintf_chk): Remove libc_hidden_proto.
9611 * include/wchar.h (__vfwprintf_chk, __vswprintf_chk):
9612 Remove libc_hidden_proto.
9613
9614 * stdio-common/vfprintf-internal.c
9615 (__vfprintf_internal, __vfwprintf_internal):
9616 Do not check _IO_FLAGS2_FORTIFY.
9617 * libio/libio.h (_IO_FLAGS2_FORTIFY): Remove.
9618 * libio/libioP.h: Update prototype of __vsprintf_internal and add
9619 a comment explaining why it has the maxlen argument.
9620 (_IO_acquire_lock_clear_flags2_fct): Remove.
9621 (_IO_acquire_lock_clear_flags2): Remove.
9622 (_IO_release_lock): Remove conditional statement which will
9623 now never execute.
9624 (_IO_acquire_lock): Remove variable which is now unused.
9625 * sysdeps/generic/stdio-lock.h (_IO_acquire_lock_clear_flags2): Remove.
9626 * sysdeps/nptl/stdio-lock.h (_IO_acquire_lock_clear_flags2): Remove.
9627
9628 * stdio-common/Makefile (tests): Add tst-bz11319 and
9629 tst-bz11319-fortify2.
9630 (CFLAGS-tst-bz11319-fortify2.c): New macro.
9631 * stdio-common/tst-bz11319-fortify2.c: New file.
9632 * stdio-common/tst-bz11319.c: Likewise.
9633
9634 2018-12-05 Zack Weinberg <zackw@panix.com>
9635 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
9636
9637 * misc/syslog.c: Include libioP.h, not iolibio.h.
9638 (__vsyslog_internal): New function with the former body of
9639 __vsyslog_chk; takes mode_flags argument same as
9640 __v*printf_internal. Call __vfprintf_internal directly.
9641
9642 (__vsyslog_chk): Now a wrapper around __vsyslog_internal.
9643 Remove libc_hidden_def.
9644 (__syslog, __syslog_chk): Use __vsyslog_internal.
9645 (__vsyslog): Move to just below __syslog. Use __vsyslog_internal.
9646
9647 * include/sys/syslog.h: Add multiple inclusion guard.
9648 Add prototype for __vsyslog_internal.
9649 Remove declaration and libc_hidden_proto for __vsyslog_chk.
9650
9651 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c (__nldbl___vsyslog_chk):
9652 Use __vsyslog_internal.
9653
9654 2018-12-05 Zack Weinberg <zackw@panix.com>
9655 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
9656
9657 * libio/libioP.h (__vfprintf_internal, __vfwprintf_internal)
9658 (__vasprintf_internal, __vdprintf_internal, __obstack_vprintf_internal)
9659 (__vsprintf_internal, __vsnprintf_internal, __vswprintf_internal):
9660 New functions.
9661 (PRINTF_LDBL_IS_DBL, PRINTF_FORTIFY): New constants.
9662 (_IO_vasprintf, _IO_vdprintf, _IO_vsnprintf): Remove prototypes.
9663
9664 * stdio-common/vfprintf-internal.c: Rename from vfprintf.c.
9665 Include wctype.h here if COMPILE_WPRINTF is defined.
9666 Define __vfprintf_internal or __vfwprintf_internal, depending
9667 on COMPILE_WPRINTF.
9668 Temporarily, on entry to this function, update mode_flags
9669 according to the environmental settings corresponding to
9670 PRINTF_LDBL_IS_DBL and PRINTF_FORTIFY.
9671 Throughout, check mode_flags instead of __ldbl_is_dbl and
9672 _IO_FLAGS2_FORTIFY on the destination FILE.
9673 * stdio-common/vfwprintf-internal.c: Rename from vfwprintf.c.
9674 Include vfprintf-internal.c. Don't include wctype.h.
9675 * stdio-common/vfprintf.c: New file. Just define __vfprintf
9676 as a wrapper around __vfprintf_internal, with aliases _IO_vfprintf
9677 and vfprintf.
9678 * stdio-common/vfwprintf.c: New file. Just define __vfwprintf
9679 as a wrapper around __vfwprintf_internal, with aliases _IO_vfwprintf
9680 and vfwprintf.
9681 * stdio-common/Makefile: Add vfprintf-internal and vfwprintf-internal.
9682
9683 * libio/iovdprintf.c (_IO_vdprintf): Rename to __vdprintf_internal
9684 and add mode_flags argument; use __vfprintf_internal.
9685 (__vdprintf): New function. Alias vdprintf to this.
9686 * libio/iovsprintf.c (_IO_vsprintf, __vsprintf): Similarly.
9687 * libio/vasprintf.c (_IO_vasprintf, __vasprintf): Similarly.
9688 * libio/obprintf.c (_IO_obstack_vprintf, __obstack_vprintf): Similarly.
9689 (__obstack_printf): Use __obstack_printf_internal.
9690 * libio/vsnprintf.c (_IO_vsnprintf, ___vsnprintf): Similarly, with
9691 public aliases __vsnprintf and vsnprintf.
9692 Remove use of ldbl_hidden_def, since __vsnprintf is no longer
9693 called internally.
9694 * libio/vswprintf (_IO_vswprintf, __vswprintf): Similarly, with
9695 public aliases _IO_vsprintf and vsprintf.
9696 * libio/swprintf.c (__swprintf): Use __vswprintf_internal.
9697 * stdio-common/asprintf.c (__asprintf): Use __vasprintf_internal.
9698 * stdio-common/dprintf.c (__dprintf): Use __vdprintf_internal.
9699 * stdio-common/snprintf.c (__snprintf): Use __vsprintf_internal.
9700 * stdio-common/sprintf.c (__sprintf): Use __vsprintf_internal.
9701
9702 * debug/obprintf_chk.c, debug/vasprintf_chk.c, debug/vdprintf_chk.c
9703 * debug/vsnprintf_chk.c, debug/vsprintf_chk.c, hurd/vpprintf.c
9704 * stdio-common/fprintf.c, stdio-common/fxprintf.c
9705 * stdio-common/printf.c: Use __vfprintf_internal.
9706
9707 * debug/fwprintf_chk.c, debug/vfwprintf_chk.c, debug/vswprintf_chk.c
9708 * debug/vwprintf_chk.c, debug/wprintf_chk.c, libio/fwprintf.c
9709 * libio/vwprintf.c, libio/wprintf.c: Use __vfwprintf_internal.
9710
9711 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c: Use __vsprintf_internal,
9712 __obstack_vprintf_internal, __vasprintf_internal, __vdprintf_internal,
9713 __vsnprintf_internal, __vswprintf_internal, __vfprintf_internal, and
9714 __vfwprintf_internal.
9715
9716 * libio/libio.h: Remove libc_hidden_proto and declaration for
9717 _IO_vfprintf.
9718 Remove declaration of _IO_vfwprintf.
9719 * libio/iolibio.h: Remove libc_hidden_proto and declaration for
9720 _IO_vsprintf.
9721 Remove declarations of _IO_vswprintf, _IO_obstack_printf, and
9722 _IO_obstack_printf.
9723 * include/stdio.h: Add prototype for __vasprintf.
9724 (__vsnprintf): Remove declaration, because there are no more
9725 internal calls.
9726 * include/wchar.h (__vfwprintf, __vswprintf): Remove
9727 declaration, because there are no more internal calls.
9728
9729 * argp/argp-fmtstream.c (__argp_fmtstream_printf): Use
9730 __vsnprintf_internal, instead of _IO_vsnprintf.
9731 * argp/argp-help.c (__argp_error, __argp_failure): Use
9732 __vasprintf_internal, instead of _IO_vasprintf.
9733 * argp/argp-namefrob.h (__vsnprintf): Do not undefined then
9734 redefine, because there are no more internal calls.
9735
9736 2018-12-05 Zack Weinberg <zackw@panix.com>
9737 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
9738
9739 * stdio-common/vfscanf-internal.c: Don't look at __ldbl_is_dbl.
9740 * sysdeps/ieee754/ldbl-opt/ndlbl-compat.c:
9741 Include libio/strfile.h instead of libioP.h.
9742 (__nldbl_IO_vfscanf, __ndlbl___vfscanf, __nldbl_sscanf)
9743 (__nldbl___vsscanf, __nldbl_vscanf, __nldbl_fscanf)
9744 (__nldbl_scanf, __nldbl_vfwscanf, __nldbl_swscanf)
9745 (__nldbl_vswscanf, __nldbl_vwscanf, __nldbl_fwscanf)
9746 (__nldbl_wscanf): Call __vfscanf_internal / __vfwscanf_internal
9747 directly, passing SCANF_LDBL_IS_DBL. Set up a strfile if
9748 necessary. Do not set __no_long_double. Normalize variable names.
9749 (__nldbl___isoc99_vfscanf, __nldbl___isoc99_sscanf)
9750 (__nldbl___isoc99_vsscanf, __nldbl___isoc99_vscanf)
9751 (__nldbl___isoc99_fscanf, __nldbl___isoc99_scanf)
9752 (__nldbl___isoc99_vfwscanf, __nldbl___isoc99_swscanf)
9753 (__nldbl___isoc99_vswscanf, __nldbl___isoc99_vwscanf)
9754 (__nldbl___isoc99_fwscanf, __nldbl___isoc99_wscanf):
9755 Call __vfscanf_internal / __vfwscanf_internal directly, passing
9756 SCANF_LDBL_IS_DBL | SCANF_ISOC99_A. Set up a strfile if necessary.
9757 Do not set __no_long_double. Normalize variable names.
9758
9759 2018-12-05 Zack Weinberg <zackw@panix.com>
9760 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
9761
9762 * stdio-common/isoc99_scanf.c
9763 * stdio-common/isoc99_fscanf.c
9764 * stdio-common/isoc99_sscanf.c
9765 * stdio-common/isoc99_vscanf.c
9766 * stdio-common/isoc99_vfscanf.c
9767 * stdio-common/isoc99_vsscanf.c
9768 * wcsmbs/isoc99_wscanf.c
9769 * wcsmbs/isoc99_fwscanf.c
9770 * wcsmbs/isoc99_swscanf.c
9771 * wcsmbs/isoc99_vwscanf.c
9772 * wcsmbs/isoc99_vfwscanf.c
9773 * wcsmbs/isoc99_vswscanf.c:
9774 Pass SCANF_ISOC99_A to __vfscanf_internal and/or __vfwscanf_internal.
9775 Do not set _IO_FLAGS2_SCANF_STD on the FILE passed to that function.
9776 No need to lock and unlock the FILE passed to that function.
9777
9778 * stdio-common/vfscanf-internal.c
9779 (__vfscanf_internal, __vfwscanf_internal):
9780 Don't look at _IO_FLAGS2_SCANF_STD.
9781 * libio/libioP.h (_IO_acquire_lock_clear_flags2_fct)
9782 (_IO_release_lock): Don't clear _IO_FLAGS2_SCANF_STD.
9783 * libio/libio.h (_IO_FLAGS2_SCANF_STD): Delete.
9784
9785 2018-12-05 Zack Weinberg <zackw@panix.com>
9786 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
9787
9788 * libio/libioP.h (SCANF_LDBL_IS_DBL, SCANF_ISOC99_A): New constants.
9789 (__vfscanf_internal, __vfwscanf_internal): New function prototypes.
9790 * libio/libio.h: Remove libc_hidden_proto for _IO_vfscanf.
9791 * libio/strfile.h: Add multiple inclusion guard.
9792 (_IO_strfile_read, _IO_strfile_readw): New inline functions.
9793
9794 * sysdeps/generic/math_ldbl_opt.h: Include shlib-compat.h, for
9795 consistency with the other version of this file.
9796 (ldbl_compat_symbol): New macro.
9797 * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h (ldbl_compat_symbol):
9798 New macro.
9799
9800 * stdio-common/vfscanf-internal.c: Rename from vfscanf.c.
9801 Define __vfscanf_internal or __vfwscanf_internal, depending on
9802 COMPILE_WSCANF; don't define any other public symbols.
9803 Remove errval and code to set errp.
9804 Temporarily check __ldbl_is_dbl and _IO_FLAGS2_SCANF_STD as well
9805 as the mode_flags argument.
9806 (encode_error, conv_error, input_error): Don't set errval.
9807 * stdio-common/vfwscanf-internal.c: Rename from vfwscanf.c.
9808 Include vfscanf-internal.c.
9809 * stdio-common/vfscanf.c: New file defining the public entry
9810 point vfscanf, which calls __vfscanf_internal.
9811 * stdio-common/vfwscanf.c: New file defining the public entry
9812 point vfwscanf, which calls __vfwscanf_internal.
9813
9814 * stdio-common/iovfscanf.c: New file.
9815 * stdio-common/iovfwscanf.c: Likewise.
9816
9817 * stdio-common/Makefile (routines): Add vfscanf-internal,
9818 vfwscanf-internal, iovfscanf, iovfwscanf.
9819 * stdio-common/Versions: Mention GLIBC_2.29, so that
9820 it can be used in SHLIB_COMPAT expressions.
9821 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c (__nldbl__IO_vfscanf):
9822 Wrap definition and compat_symbol line in #if SHLIB_COMPAT.
9823 Call __vfscanf_internal, instead of _IO_vfscanf.
9824 (__nldbl___vfscanf): Call __vfscanf_internal, instead of
9825 _IO_vfscanf.
9826 (__nldbl_vfwscanf): Call __vfwscanf_internal, instead of
9827 _IO_vfwscanf.
9828
9829 * libio/iovsscanf.c: Clean up includes, when possible. Use
9830 _IO_strfile_read or _IO_strfile_readw, when needed. Call
9831 __vfscanf_internal or __vfwscanf_internal directly.
9832 * libio/iovswscanf.c: Likewise.
9833 * libio/swscanf.c: Likewise.
9834 * libio/vscanf.c: Likewise.
9835 * libio/vwscanf.c: Likewise.
9836 * libio/wscanf.c: Likewise.
9837 * stdio-common/isoc99_fscanf.c: Likewise.
9838 * stdio-common/isoc99_scanf.c: Likewise.
9839 * stdio-common/isoc99_sscanf.c: Likewise.
9840 * stdio-common/isoc99_vfscanf.c: Likewise.
9841 * stdio-common/isoc99_vscanf.c: Likewise.
9842 * stdio-common/isoc99_vsscanf.c: Likewise.
9843 * stdio-common/scanf.c: Likewise.
9844 * stdio-common/sscanf.c: Likewise.
9845 * wcsmbs/isoc99_fwscanf.c: Likewise.
9846 * wcsmbs/isoc99_swscanf.c: Likewise.
9847 * wcsmbs/isoc99_vfwscanf.c: Likewise.
9848 * wcsmbs/isoc99_vswscanf.c: Likewise.
9849 * wcsmbs/isoc99_vwscanf.c: Likewise.
9850 * wcsmbs/isoc99_wscanf.c: Likewise.
9851
9852 2018-12-05 Albert ARIBAUD <albert.aribaud@3adev.fr>
9853
9854 * include/time.h
9855 (__tz_compute): Replace time_t with __time64_t.
9856 (__tz_convert): Replace time_t* with __time64_t.
9857 (__offtime): Replace time_t* with __time64_t.
9858 * time/gmtime.c
9859 (__gmtime_r): Adjust call to __tz_convert.
9860 (gmtime): Likewise.
9861 * time/localtime.c
9862 (__localtime_r): Likewise.
9863 (localtime): Likewise.
9864 * time/offtime.c: Replace time_t with __time64_t.
9865 * time/tzset.c: Likewise.
9866
9867 2018-12-04 Joseph Myers <joseph@codesourcery.com>
9868
9869 * Makefile ($(objpfx)testroot.pristine/install.stamp): Do not run
9870 dynamic linker unless [$(run-built-tests) = yes].
9871
9872 2018-12-03 DJ Delorie <dj@delorie.com>
9873
9874 * support/test-container.c (check_for_unshare_hints): New.
9875 (main): Call it if unshare fails. Add support for "su" scriptlet
9876 command.
9877
9878 2018-12-03 Joseph Myers <joseph@codesourcery.com>
9879
9880 * scripts/gen-as-const.py (compute_c_consts): Take an argument
9881 'START' to indicate that start text should be output.
9882 (gen_test): Likewise.
9883 (main): Generate 'START' for first symbol or '--' line, or at end
9884 of input if not previously generated.
9885
9886 2018-12-03 Rafael Ávila de Espíndola <rafael@espindo.la>
9887
9888 [BZ #19767]
9889 * sysdeps/unix/sysv/linux/arm/init-first.c: Remove #ifdef SHARED.
9890 * sysdeps/unix/sysv/linux/arm/libc-vdso.h: Remove #ifdef SHARED.
9891 * sysdeps/unix/sysv/linux/arm/sysdep.h: Define
9892 ALWAYS_USE_VSYSCALL.
9893
9894 2018-12-03 Adhemerval Zanella <adhemerval.zanella@linaro.org>
9895
9896 [BZ #23913]
9897 * sysdeps/posix/spawni.c (maybe_script_execute): Increment size of
9898 new_argv by one.
9899
9900 2018-12-03 Carlos O'Donell <carlos@redhat.com>
9901
9902 [BZ #23923]
9903 * locale/programs/localedef.c: Declare boolean hard_links default true.
9904 (options): Add --no-hard-links option.
9905 (parse_opt): Add OPT_NO_HARD_LINKS case and set hard_links to false.
9906 * locale/programs/localedef.h: Declare prototype for hard_links.
9907 * locale/programs/locfile.c (write_locale_data): Don't use hard
9908 links if hard_links is false.
9909
9910 2018-12-03 H.J. Lu <hongjiu.lu@intel.com>
9911
9912 * sysdeps/x86/cacheinfo.c (intel_check_word): Updated for
9913 cpu_features_basic.
9914 (__cache_sysconf): Likewise.
9915 (init_cacheinfo): Likewise.
9916 * sysdeps/x86/cpu-features.c (get_extended_indeces): Also
9917 populate COMMON_CPUID_INDEX_80000007 and
9918 COMMON_CPUID_INDEX_80000008.
9919 (get_common_indices): Also populate COMMON_CPUID_INDEX_D_ECX_1.
9920 Use CPU_FEATURES_CPU_P (cpu_features, XSAVEC) to check if
9921 XSAVEC is available. Set the bit_arch_XXX_Usable bits.
9922 (init_cpu_features): Use _Static_assert on
9923 index_arch_Fast_Unaligned_Load.
9924 __get_cpuid_registers and __get_arch_feature. Updated for
9925 cpu_features_basic. Set stepping in cpu_features.
9926 * sysdeps/x86/cpu-features.h: (FEATURE_INDEX_1): Changed to enum.
9927 (FEATURE_INDEX_2): New.
9928 (FEATURE_INDEX_MAX): Changed to enum.
9929 (COMMON_CPUID_INDEX_D_ECX_1): New.
9930 (COMMON_CPUID_INDEX_80000007): Likewise.
9931 (COMMON_CPUID_INDEX_80000008): Likewise.
9932 (cpuid_registers): Likewise.
9933 (cpu_features_basic): Likewise.
9934 (CPU_FEATURE_USABLE): Likewise.
9935 (bit_arch_XXX_Usable): Likewise.
9936 (cpu_features): Use cpuid_registers and cpu_features_basic.
9937 (bit_arch_XXX): Reweritten.
9938 (bit_cpu_XXX): Likewise.
9939 (index_cpu_XXX): Likewise.
9940 (reg_XXX): Likewise.
9941 * sysdeps/x86/tst-get-cpu-features.c: Include <stdio.h> and
9942 <support/check.h>.
9943 (CHECK_CPU_FEATURE): New.
9944 (CHECK_CPU_FEATURE_USABLE): Likewise.
9945 (cpu_kinds): Likewise.
9946 (do_test): Print vendor, family, model and stepping. Check
9947 HAS_CPU_FEATURE and CPU_FEATURE_USABLE.
9948 (TEST_FUNCTION): Removed.
9949 Include <support/test-driver.c> instead of
9950 "../../test-skeleton.c".
9951 * sysdeps/x86_64/multiarch/sched_cpucount.c (__sched_cpucount):
9952 Check POPCNT instead of POPCOUNT.
9953 * sysdeps/x86_64/multiarch/test-multiarch.c (do_test): Likewise.
9954
9955 2018-12-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
9956
9957 * scripts/gen-as-const.py (main): Avoid emitting empty line when
9958 there is no element in `consts'.
9959
9960 2018-12-01 Florian Weimer <fweimer@redhat.com>
9961
9962 * support/support_capture_subprocess.c
9963 (support_capture_subprocess): Check that pipe descriptors have
9964 expected values. Close original pipe descriptors in subprocess.
9965
9966 2018-12-01 Samuel Thibault <samuel.thibault@ens-lyon.org>
9967
9968 [BZ #23032]
9969 * sysdeps/htl/pt-barrier-init.c (pthread_barrier_init): Fix comparing
9970 attr with __pthread_default_barrierattr.
9971 * sysdeps/htl/pt-cond-init.c (__pthread_cond_init): Fix comparing
9972 attr with __pthread_default_condattr.
9973 * sysdeps/htl/pt-mutex-init.c (_pthread_mutex_init): Fix comparing
9974 attr with __pthread_default_mutexattr.
9975 * sysdeps/htl/pt-rwlock-init.c (_pthread_rwlock_init): Fix comparing
9976 attr with __pthread_default_rwlockattr.
9977
9978 2018-12-01 Kemi Wang <kemi.wang@intel.com>
9979
9980 * manual/tunables.texi (POSIX Thread Tunables): New node.
9981 * nptl/Makefile (libpthread-routines): Add pthread_mutex_conf.
9982 * nptl/nptl-init.c: Include pthread_mutex_conf.h
9983 (__pthread_initialize_minimal_internal) [HAVE_TUNABLES]: Call
9984 __pthread_tunables_init.
9985 * nptl/pthreadP.h (MAX_ADAPTIVE_COUNT): Remove.
9986 (max_adaptive_count): Define.
9987 * nptl/pthread_mutex_conf.c: New file.
9988 * nptl/pthread_mutex_conf.h: New file.
9989 * sysdeps/generic/adaptive_spin_count.h: New file.
9990 * sysdeps/nptl/dl-tunables.list: New file.
9991 * nptl/pthread_mutex_lock.c (__pthread_mutex_lock): Use
9992 max_adaptive_count () not MAX_ADAPTIVE_COUNT.
9993 * nptl/pthread_mutex_timedlock.c (__pthrad_mutex_timedlock):
9994 Likewise.
9995
9996 2018-12-01 Paul Pluzhnikov <ppluzhnikov@google.com>
9997
9998 [BZ #20544]
9999 * stdlib/cxa_atexit.c (__internal_atexit): assert func != NULL.
10000 * stdlib/on_exit.c (__on_exit): Likewise.
10001 * stdlib/Makefile (tests): Add tst-bz20544.
10002 * stdlib/tst-bz20544.c: New test.
10003
10004 2018-11-30 Rafael Ávila de Espíndola <rafael@espindo.la>
10005
10006 [BZ #19767]
10007 * sysdeps/unix/sysv/linux/i386/init-first.c: Don't check SHARED.
10008 * sysdeps/unix/sysv/linux/i386/sysdep.h (ALWAYS_USE_VSYSCALL):
10009 New.
10010
10011 2018-11-30 Florian Weimer <fweimer@redhat.com>
10012
10013 * scripts/abilist.awk: Print "0x0" for size 0. Handle "g"/"D".
10014 Extend error logging.
10015 * sysdeps/mach/hurd/i386/libc.abilist (GLIBC_2.2.6): Adjust _end
10016 symbol.
10017
10018 2018-11-30 Adhemerval Zanella <adhemerval.zanella@linaro.org>
10019
10020 * sysdeps/unix/sysv/linux/spawni.c (__spawni_child): Use
10021 __sigismember instead of sigismember.
10022 * sysdeps/posix/system.c [SIGCANCEL] (cancel_handler_args,
10023 cancel_handler): New definitions.
10024 (do_system): Use posix_spawn instead of fork and execl and remove
10025 reentracy code.
10026 * sysdeps/generic/not-errno.h (__kill_noerrno): New prototype.
10027 * sysdeps/unix/sysv/linux/not-errno.h (__kill_noerrno): Likewise.
10028 * sysdeps/unix/sysv/linux/ia64/system.c: Remove file.
10029 * sysdeps/unix/sysv/linux/s390/system.c: Likewise.
10030 * sysdeps/unix/sysv/linux/sparc/system.c: Likewise.
10031 * sysdeps/unix/sysv/linux/system.c: Likewise.
10032
10033 [BZ #22834]
10034 [BZ #17490]
10035 * NEWS: Add new semantic for atfork with popen and system.
10036 * libio/iopopen.c (_IO_new_proc_open): use posix_spawn instead of
10037 fork and execl.
10038
10039 2018-11-30 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
10040
10041 [BZ #23690]
10042 * elf/dl-runtime.c (_dl_profile_fixup): Guarantee memory
10043 modification order when accessing reloc_result->addr.
10044 * include/link.h (reloc_result): Add field init.
10045 * nptl/Makefile (tests): Add tst-audit-threads.
10046 (modules-names): Add tst-audit-threads-mod1 and
10047 tst-audit-threads-mod2.
10048 Add rules to build tst-audit-threads.
10049 * nptl/tst-audit-threads-mod1.c: New file.
10050 * nptl/tst-audit-threads-mod2.c: Likewise.
10051 * nptl/tst-audit-threads.c: Likewise.
10052 * nptl/tst-audit-threads.h: Likewise.
10053
10054 2018-11-30 Joseph Myers <joseph@codesourcery.com>
10055
10056 * scripts/gen-as-const.py: New file.
10057 * scripts/gen-as-const.awk: Remove.
10058 * Makerules ($(common-objpfx)%.h $(common-objpfx)%.h.d): Use
10059 gen-as-const.py.
10060 ($(objpfx)test-as-const-%.c): Likewise.
10061
10062 2018-11-29 H.J. Lu <hongjiu.lu@intel.com>
10063
10064 * elf/dl-exception.c: Include <_itoa.h>.
10065
10066 2018-11-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
10067
10068 * sysdeps/mach/hurd/fcntl.c (__libc_fcntl): Directly return value
10069 returned by __f_setlk.
10070
10071 2018-11-29 H.J. Lu <hongjiu.lu@intel.com>
10072 Adhemerval Zanella <adhemerval.zanella@linaro.org>
10073
10074 * elf/Makefile (tests-internal): Add tst-create_format1.
10075 * elf/dl-exception.c (_dl_exception_create_format): Support
10076 %x, %lx and %zx.
10077 * elf/tst-create_format1.c: New file.
10078
10079 2018-11-29 Charles-Antoine Couret <charles-antoine.couret@essensium.com>
10080
10081 * argp/argp-fmtstream.c (__argp_fmtstream_update): Use [_LIBC]
10082 conditional on calls to _IO_fwide and putwc_unlocked. (Merge from
10083 gnulib.)
10084 * argp/argp-help.c (__argp_failure): Likewise.
10085
10086 2018-11-29 Mao Han <han_mao@c-sky.com>
10087
10088 * elf/elf.h (EM_CSKY, R_CKCORE_NONE, R_CKCORE_ADDR32)
10089 (R_CKCORE_PCRELIMM8BY4, R_CKCORE_PCRELIMM11BY2, R_CKCORE_PCREL32)
10090 (R_CKCORE_PCRELJSR_IMM11BY2, R_CKCORE_RELATIVE, R_CKCORE_COPY)
10091 (R_CKCORE_GLOB_DAT, R_CKCORE_JUMP_SLOT, R_CKCORE_GOTOFF)
10092 (R_CKCORE_GOTPC, R_CKCORE_GOT32, R_CKCORE_PLT32, R_CKCORE_ADDRGOT)
10093 (R_CKCORE_ADDRPLT, R_CKCORE_PCREL_IMM26BY2, R_CKCORE_PCREL_IMM16BY2)
10094 (R_CKCORE_PCREL_IMM16BY4, R_CKCORE_PCREL_IMM10BY2)
10095 (R_CKCORE_PCREL_IMM10BY4, R_CKCORE_ADDR_HI16, R_CKCORE_ADDR_LO16)
10096 (R_CKCORE_GOTPC_HI16, R_CKCORE_GOTPC_LO16, R_CKCORE_GOTOFF_HI16)
10097 (R_CKCORE_GOTOFF_LO16, R_CKCORE_GOT12, R_CKCORE_GOT_HI16)
10098 (R_CKCORE_GOT_LO16, R_CKCORE_PLT12, R_CKCORE_PLT_HI16)
10099 (R_CKCORE_PLT_LO16, R_CKCORE_ADDRGOT_HI16, R_CKCORE_ADDRGOT_LO16)
10100 (R_CKCORE_ADDRPLT_HI16, R_CKCORE_ADDRPLT_LO16)
10101 (R_CKCORE_PCREL_JSR_IMM26BY2, R_CKCORE_TOFFSET_LO16)
10102 (R_CKCORE_DOFFSET_LO16, R_CKCORE_PCREL_IMM18BY2)
10103 (R_CKCORE_DOFFSET_IMM18, R_CKCORE_DOFFSET_IMM18BY2)
10104 (R_CKCORE_DOFFSET_IMM18BY4, R_CKCORE_GOT_IMM18BY4)
10105 (R_CKCORE_PLT_IMM18BY4, R_CKCORE_PCREL_IMM7BY4, R_CKCORE_TLS_LE32)
10106 (R_CKCORE_TLS_IE32, R_CKCORE_TLS_GD32, R_CKCORE_TLS_LDM32)
10107 (R_CKCORE_TLS_LDO32, R_CKCORE_TLS_DTPMOD32, R_CKCORE_TLS_DTPOFF32)
10108 (R_CKCORE_TLS_TPOFF32): New defines.
10109
10110 2018-11-29 Florian Weimer <fweimer@redhat.com>
10111
10112 * posix/Makefile (before-compile): Remove testcases.h and
10113 ptestcases.h.
10114 (generated): Add testcases.h and ptestcases.h.
10115 (testcases.h, ptestcases.h): Move to $(objpfx).
10116 (runtests.o): Add dependency on testcases.h.
10117 (runptests.o): Add dependency on ptestcases.h.
10118 * posix/testcases.h, posix/ptestcases.h: Remove files.
10119 * scripts/build-many-glibcs.py (Context.fix_glibc_timestamps): Do
10120 not touch posix/testcases.h and posix/ptestcases.h.
10121
10122 2018-11-28 Florian Weimer <fweimer@redhat.com>
10123
10124 support: Add signal support to support_capture_subprocess_check.
10125 * support/capture_subprocess.h (support_capture_subprocess_check):
10126 Adjust comment and rename parameter.
10127 * support/support_capture_subprocess_check.c
10128 (print_actual_status): New function.
10129 (support_capture_subprocess_check): Support negative
10130 status_or_signal. Call print_actual_status.
10131 * support/tst-support_capture_subprocess.c (do_test): Call
10132 support_capture_subprocess_check.
10133 * libio/tst-vtables-common.c (termination_status)
10134 (init_termination_status): Remove.
10135 (check_for_termination): Adjust support_capture_subprocess_check
10136 call.
10137 (do_test): Remove call to init_termination_status.
10138
10139 2018-11-28 Joseph Myers <joseph@codesourcery.com>
10140
10141 * scripts/build-many-glibcs.py (Glibc.build_glibc): Use original
10142 source directory instead of a copy.
10143 (CommandList.create_copy_dir): Remove.
10144
10145 2018-11-28 Stefan Liebler <stli@linux.ibm.com>
10146
10147 * sysdeps/s390/fpu/libm-test-ulps: Regenerated.
10148
10149 2018-11-28 Florian Weimer <fweimer@redhat.com>
10150
10151 * support/support.h (support_quote_string): Do not use str
10152 parameter name.
10153
10154 2018-11-27 Joseph Myers <joseph@codesourcery.com>
10155
10156 * sysdeps/mach/hurd/Makefile ($(common-objpfx)stamp-errnos): Use
10157 $(hurd-objpfx)bits/errno.h-tmp, not $(hurd)/bits/errno.h-tmp.
10158
10159 2018-11-27 Florian Weimer <fweimer@redhat.com>
10160
10161 * support/support.h (support_quote_string): Declare.
10162 * support/support_quote_string.c: New file.
10163 * support/tst-support_quote_string.c: Likewise.
10164 * support/Makefile (libsupport-routines): Add
10165 support_quote_string.
10166 (tests): Add tst-support_quote_string.
10167
10168 2018-11-27 Florian Weimer <fweimer@redhat.com>
10169
10170 [BZ #23927]
10171 CVE-2018-19591
10172 * sysdeps/unix/sysv/linux/if_index.c (__if_nametoindex): Avoid
10173 descriptor leak in case of ENODEV error.
10174
10175 2018-11-27 Rafael Ávila de Espíndola <rafael@espindo.la>
10176
10177 [BZ #19767]
10178 * sysdeps/unix/sysv/linux/aarch64/init-first.c: Remove #ifdef SHARED.
10179 * sysdeps/unix/sysv/linux/aarch64/libc-vdso.h: Remove #ifdef SHARED.
10180 * sysdeps/unix/sysv/linux/aarch64/sysdep.h: Define ALWAYS_USE_VSYSCALL.
10181
10182 2018-11-26 Carlos O'Donell <carlos@redhat.com>
10183
10184 * scripts/abilist.awk: Handle .tdata. Error for unknown combinations.
10185 Error for unknown lines.
10186
10187 2018-11-26 Joseph Myers <joseph@codesourcery.com>
10188
10189 * scripts/build-many-glibcs.py (Context.fix_glibc_timestamps):
10190 Touch additional files.
10191
10192 2018-11-26 Florian Weimer <fweimer@redhat.com>
10193
10194 [BZ #23907]
10195 * malloc/malloc.c (_int_free): Validate tc_idx before checking for
10196 double-frees.
10197
10198 2018-11-26 Rafael Ávila de Espíndola <rafael@espindo.la>
10199
10200 [BZ #19767]
10201 * sysdeps/unix/sysv/linux/powerpc/init-first.c: Remove #ifdef SHARED.
10202 * sysdeps/unix/sysv/linux/powerpc/libc-vdso.h: Remove #ifdef
10203 SHARED. Include sysdep.h.
10204 * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h: Define
10205 ALWAYS_USE_VSYSCALL.
10206 * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h: Define
10207 ALWAYS_USE_VSYSCALL.
10208
10209 2018-11-23 Rafael Ávila de Espíndola <rafael@espindo.la>
10210
10211 [BZ #19767]
10212 * nptl/Makefile (tests-static): Add tst-cond11-static.
10213 (tests): Likewise.
10214 * nptl/tst-cond11-static.c: New File.
10215 * sysdeps/unix/sysv/linux/Makefile (tests-static): Add
10216 tst-affinity-static.
10217 (tests): Likewise.
10218 * sysdeps/unix/sysv/linux/sysdep-vdso.h: Check USE_VSYSCALL
10219 instead of SHARED.
10220 * sysdeps/unix/sysv/linux/sysdep.h (ALWAYS_USE_VSYSCALL): New.
10221 (USE_VSYSCALL): Likewise.
10222 * sysdeps/unix/sysv/linux/tst-affinity-static.c: New file.
10223 * sysdeps/unix/sysv/linux/x86/libc-vdso.h: Check USE_VSYSCALL
10224 instead of SHARED.
10225 * sysdeps/unix/sysv/linux/x86_64/init-first.c: Don't check
10226 SHARED.
10227 * sysdeps/unix/sysv/linux/x86_64/sysdep.h (ALWAYS_USE_VSYSCALL):
10228 New.
10229
10230 2018-11-23 Joseph Myers <joseph@codesourcery.com>
10231
10232 [BZ #23915]
10233 * sysdeps/unix/sysv/linux/arm/kernel-features.h
10234 [__LINUX_KERNEL_VERSION < 0x040700] (__ASSUME_COPY_FILE_RANGE):
10235 Undefine.
10236
10237 2018-11-23 H.J. Lu <hongjiu.lu@intel.com>
10238
10239 * sysdeps/x86/Makefile (tests): Add tst-cet-legacy-1a.
10240 (tst-cet-legacy-1a-ARGS): New.
10241 ($(objpfx)tst-cet-legacy-1a): New target.
10242 * sysdeps/x86/tst-cet-legacy-1a.c: New file.
10243
10244 2018-11-22 Joseph Myers <joseph@codesourcery.com>
10245
10246 * conform/conformtest.py (CompileSubTest.__init__): Set
10247 self.run_early to False.
10248 (ExecuteSubTest.__init__): Likewise.
10249 (HeaderTests.run): Try running all non-optional, non-XFAILed
10250 compilation tests in a single execution of the compiler.
10251
10252 * conform/conformtest.py (CompileSubTest): New class.
10253 (ExecuteSubTest): Likewise.
10254 (ElementTest.run): Rename to gen_subtests. Append tests to
10255 self.subtests instead of running them.
10256 (ConstantTest.run): Likewise.
10257 (SymbolTest.run): Likewise.
10258 (TypeTest.run): Likewise.
10259 (TagTest.run): Likewise.
10260 (FunctionTest.run): Likewise.
10261 (VariableTest.run): Likewise.
10262 (MacroFunctionTest.run): Likewise.
10263 (MacroStrTest.run): Likewise.
10264 (HeaderTests.handle_test_line): Generate subtests for tests.
10265 (HeaderTests.run): Run subtests for tests.
10266
10267 2018-11-21 Szabolcs Nagy <szabolcs.nagy@arm.com>
10268
10269 * math/Versions (GLIBC_2.29): Add pow.
10270 * math/w_pow_compat.c (__pow_compat): Change to versioned compat
10271 symbol.
10272 * math/w_pow.c: New file.
10273 * sysdeps/i386/fpu/w_pow.c: New file.
10274 * sysdeps/ia64/fpu/e_pow.S: Add versioned symbols.
10275 * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Rename to __pow
10276 and add necessary aliases.
10277 * sysdeps/ieee754/dbl-64/w_pow.c: New file.
10278 * sysdeps/m68k/m680x0/fpu/w_pow.c: New file.
10279 * sysdeps/mach/hurd/i386/libm.abilist: Update.
10280 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Update.
10281 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Update.
10282 * sysdeps/unix/sysv/linux/arm/libm.abilist: Update.
10283 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Update.
10284 * sysdeps/unix/sysv/linux/i386/libm.abilist: Update.
10285 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Update.
10286 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Update.
10287 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Update.
10288 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Update.
10289 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Update.
10290 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Update.
10291 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Update.
10292 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Update.
10293 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist: Update.
10294 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Update.
10295 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Update.
10296 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Update.
10297 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Update.
10298 * sysdeps/unix/sysv/linux/sh/libm.abilist: Update.
10299 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Update.
10300 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Update.
10301 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Update.
10302 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Update.
10303 * sysdeps/x86_64/fpu/multiarch/e_pow-fma.c (__ieee754_pow): Rename to
10304 __pow.
10305 * sysdeps/x86_64/fpu/multiarch/e_pow-fma4.c (__ieee754_pow): Likewise.
10306 * sysdeps/x86_64/fpu/multiarch/e_pow.c (__ieee754_pow): Likewise.
10307 * sysdeps/x86_64/fpu/multiarch/w_pow.c: New file.
10308
10309 2018-11-21 Szabolcs Nagy <szabolcs.nagy@arm.com>
10310
10311 * math/Versions (GLIBC_2.29): Add log2.
10312 * math/w_log2_compat.c (__log2_compat): Change to versioned compat
10313 symbol.
10314 * math/w_log2.c: New file.
10315 * sysdeps/i386/fpu/w_log2.c: New file.
10316 * sysdeps/ia64/fpu/e_log2.S: Add versioned symbols.
10317 * sysdeps/ieee754/dbl-64/e_log2.c (__ieee754_log2): Rename to __log2
10318 and add necessary aliases.
10319 * sysdeps/ieee754/dbl-64/w_log2.c: New file.
10320 * sysdeps/m68k/m680x0/fpu/w_log2.c: New file.
10321 * sysdeps/mach/hurd/i386/libm.abilist: Update.
10322 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Update.
10323 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Update.
10324 * sysdeps/unix/sysv/linux/arm/libm.abilist: Update.
10325 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Update.
10326 * sysdeps/unix/sysv/linux/i386/libm.abilist: Update.
10327 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Update.
10328 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Update.
10329 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Update.
10330 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Update.
10331 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Update.
10332 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Update.
10333 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Update.
10334 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Update.
10335 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist: Update.
10336 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Update.
10337 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Update.
10338 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Update.
10339 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Update.
10340 * sysdeps/unix/sysv/linux/sh/libm.abilist: Update.
10341 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Update.
10342 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Update.
10343 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Update.
10344 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Update.
10345
10346 2018-11-21 Szabolcs Nagy <szabolcs.nagy@arm.com>
10347
10348 * math/Versions (GLIBC_2.29): Add log.
10349 * math/w_log_compat.c (__log_compat): Change to versioned compat
10350 symbol.
10351 * math/w_log.c: New file.
10352 * sysdeps/i386/fpu/w_log.c: New file.
10353 * sysdeps/ia64/fpu/e_log.S: Update.
10354 * sysdeps/ieee754/dbl-64/e_log.c (__ieee754_log): Rename to __log
10355 and add necessary aliases.
10356 * sysdeps/ieee754/dbl-64/w_log.c: New file.
10357 * sysdeps/m68k/m680x0/fpu/w_log.c: New file.
10358 * sysdeps/mach/hurd/i386/libm.abilist: Update.
10359 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Update.
10360 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Update.
10361 * sysdeps/unix/sysv/linux/arm/libm.abilist: Update.
10362 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Update.
10363 * sysdeps/unix/sysv/linux/i386/libm.abilist: Update.
10364 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Update.
10365 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Update.
10366 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Update.
10367 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Update.
10368 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Update.
10369 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Update.
10370 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Update.
10371 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Update.
10372 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist: Update.
10373 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Update.
10374 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Update.
10375 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Update.
10376 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Update.
10377 * sysdeps/unix/sysv/linux/sh/libm.abilist: Update.
10378 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Update.
10379 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Update.
10380 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Update.
10381 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Update.
10382 * sysdeps/x86_64/fpu/multiarch/e_log-avx.c (__ieee754_log): Rename to
10383 __log.
10384 * sysdeps/x86_64/fpu/multiarch/e_log-fma.c (__ieee754_log): Likewise.
10385 * sysdeps/x86_64/fpu/multiarch/e_log-fma4.c (__ieee754_log): Likewise.
10386 * sysdeps/x86_64/fpu/multiarch/e_log.c (__ieee754_log): Likewise.
10387 * sysdeps/x86_64/fpu/multiarch/w_log.c: New file.
10388
10389 2018-11-21 Szabolcs Nagy <szabolcs.nagy@arm.com>
10390
10391 * math/Versions (GLIBC_2.29): Add exp and exp2.
10392 * math/w_exp2_compat.c (__exp2_compat): Change to versioned compat
10393 symbol, handle NO_LONG_DOUBLE and LONG_DOUBLE_COMPAT explicitly.
10394 * math/w_exp_compat.c (__exp_compat): Likewise.
10395 * math/w_exp.c: New file.
10396 * math/w_exp2.c: New file.
10397 * sysdeps/i386/fpu/w_exp.c: New file.
10398 * sysdeps/i386/fpu/w_exp2.c: New file.
10399 * sysdeps/ia64/fpu/e_exp.S: Add versioned symbols.
10400 * sysdeps/ia64/fpu/e_exp2.S: Likewise.
10401 * sysdeps/ieee754/dbl-64/e_exp.c (__ieee754_exp): Rename to __exp
10402 and add necessary aliases.
10403 * sysdeps/ieee754/dbl-64/e_exp2.c (__ieee754_exp2): Rename to __exp2
10404 and add necessary aliases.
10405 * sysdeps/ieee754/dbl-64/w_exp.c: New file.
10406 * sysdeps/ieee754/dbl-64/w_exp2.c: New file.
10407 * sysdeps/m68k/m680x0/fpu/w_exp.c: New file.
10408 * sysdeps/m68k/m680x0/fpu/w_exp2.c: New file.
10409 * sysdeps/mach/hurd/i386/libm.abilist: Update.
10410 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Update.
10411 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Update.
10412 * sysdeps/unix/sysv/linux/arm/libm.abilist: Update.
10413 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Update.
10414 * sysdeps/unix/sysv/linux/i386/libm.abilist: Update.
10415 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Update.
10416 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Update.
10417 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Update.
10418 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Update.
10419 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Update.
10420 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Update.
10421 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Update.
10422 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Update.
10423 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist: Update.
10424 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Update.
10425 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Update.
10426 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Update.
10427 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Update.
10428 * sysdeps/unix/sysv/linux/sh/libm.abilist: Update.
10429 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Update.
10430 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Update.
10431 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Update.
10432 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Update.
10433 * sysdeps/x86_64/fpu/multiarch/e_exp-avx.c (__exp1): Remove.
10434 (__ieee754_exp): Rename to __exp.
10435 * sysdeps/x86_64/fpu/multiarch/e_exp-fma.c (__exp1): Remove.
10436 (__ieee754_exp): Rename to __exp.
10437 * sysdeps/x86_64/fpu/multiarch/e_exp-fma4.c (__exp1): Remove.
10438 (__ieee754_exp): Rename to __exp.
10439 * sysdeps/x86_64/fpu/multiarch/e_exp.c (__ieee754_exp): Rename to
10440 __exp.
10441 * sysdeps/x86_64/fpu/multiarch/w_exp.c: New file.
10442
10443 2018-11-20 DJ Delorie <dj@redhat.com>
10444
10445 * malloc/malloc.c (tcache_entry): Add key field.
10446 (tcache_put): Set it.
10447 (tcache_get): Likewise.
10448 (_int_free): Check for double free in tcache.
10449 * malloc/tst-tcfree1.c: New.
10450 * malloc/tst-tcfree2.c: New.
10451 * malloc/Makefile: Run the new tests.
10452 * manual/probes.texi: Document memory_tcache_double_free probe.
10453
10454 * dlfcn/dlerror.c (check_free): Prevent double frees.
10455
10456 2018-11-20 Wilco Dijkstra <wdijkstr@arm.com>
10457
10458 * sysdeps/aarch64/memset.S (MEMSET): Improve non-zero memset loop.
10459
10460 2018-11-20 Joseph Myers <joseph@codesourcery.com>
10461
10462 * conform/conformtest.py (ElementTest.run): Use unique identifiers
10463 in tests. Use names for format arguments.
10464 (ConstantTest.run): Likewise.
10465 (SymbolTest.run): Likewise.
10466 (TypeTest.run): Likewise.
10467 (TagTest.run): Likewise.
10468 (FunctionTest.run): Likewise.
10469 (VariableTest.run): Likewise.
10470 (MacroFunctionTest.run): Likewise.
10471 (MacroStrTest.run): Likewise.
10472 (HeaderTests.__init__): Set self.num_tests.
10473 (HeaderTests.handle_test_line): Set test.num. Increment
10474 self.num_tests.
10475
10476 2018-11-19 Samuel Thibault <samuel.thibault@ens-lyon.org>
10477
10478 * sysdeps/mach/hurd/f_setlk.c: Include <unistd.h>.
10479 (__f_setlk): When whence is SEEK_CUR, use __lseek64 to convert it to
10480 SEEK_SET.
10481
10482 2018-11-19 Mao Han <han_mao@c-sky.com>
10483
10484 * scripts/config.guess: Update to version 2018-08-29.
10485 * scripts/config.sub: Update to version 2018-08-29.
10486
10487 2018-11-19 Florian Weimer <fweimer@redhat.com>
10488
10489 support: Print timestamps in timeout handler.
10490 * support/support_test_main.c (print_timestamp): New function.
10491 (signal_handler): Use it to print the termination time and the
10492 time of the last write to standard output.
10493
10494 2018-11-16 Zack Weinberg <zackw@panix.com>
10495 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
10496
10497 * include/monetary.h (STRFMON_LDBL_IS_DBL): New constant.
10498 (__vstrfmon_l): Rename to __vstrfmon_l_internal and add flags
10499 argument.
10500 * stdlib/strfmon_l.c (__vstrfmon_l): Rename to __vstrfmon_l_internal
10501 and add flags argument. Check flags instead of __ldbl_is_dbl when
10502 deciding whether to set is_long_double.
10503 (__strfmon_l): Call __vstrfmon_l_internal instead of __vstrfmon_l,
10504 passing zero for flags argument.
10505 * stdlib/strfmon.c (strfmon): Same change as made to __strfmon_l.
10506
10507 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c
10508 (__nldbl___vstrfmon, __nldbl___vstrfmon_l)
10509 (__nldbl_strfmon, __nldbl___strfmon_l): Call __vstrfmon_l_internal
10510 directly, passing STRFMON_LDBL_IS_DBL for flags argument. Normalize
10511 variable names. Remove libc_hidden_def/libc_hidden_proto from
10512 __nldbl___vstrfmon and __nldbl___vstrfmon_l, because they are no
10513 longer called from within the library.
10514 * sysdeps/ieee754/ldbl-opt/nldbl-compat.h: Don't use NLDBL_DECL
10515 for __nldbl___vstrfmon_l, declare it explicitly.
10516
10517 * manual/locale.texi: Update a reference to vstrfmon_l in comments.
10518
10519 2018-11-15 Samuel Thibault <samuel.thibault@ens-lyon.org>
10520
10521 * sysdeps/mach/hurd/bits/fcntl.h (F_GETLK64, F_SETLK64, F_SETLKW64): New
10522 macros
10523 [__USE_FILE_OFFSET64] (F_GETLK, F_SETLK, F_SETLKW): Define to F_GETLK64,
10524 F_SETLK64, F_SETLKW64, respectively.
10525 * sysdeps/mach/hurd/f_setlk.c: New file.
10526 * sysdeps/mach/hurd/f_setlk.h: New file.
10527 * sysdeps/mach/hurd/Makefile [$(subdir) = io] (sysdeps_routines): Add
10528 f_setlk.
10529 * sysdeps/mach/hurd/fcntl.c: Include "f_setlk.h".h".
10530 (__libc_fcntl): Move non-flock operations to...
10531 * sysdeps/mach/hurd/vfcntl.c (__libc_vfcntl): ... New file.
10532 * sysdeps/mach/hurd/fcntl.c (fcntl64): Add missing alias.
10533
10534 2018-11-15 Paul Eggert <eggert@cs.ucla.edu>
10535
10536 mktime: DEBUG_MKTIME cleanup
10537 The DEBUG_MKTIME code no longer works in glibc or in Gnulib.
10538 And it’s no longer needed now that glibc and Gnulib both have
10539 their own testing mechanisms for mktime.
10540 * time/mktime.c (DEBUG_MKTIME): Remove. All uses removed.
10541
10542 mktime: fix non-EOVERFLOW errno handling
10543 [BZ#23789]
10544 mktime was not properly reporting failures when the underlying
10545 localtime_r fails with errno != EOVERFLOW; it incorrectly treated
10546 them like EOVERFLOW failures, and set errno to EOVERFLOW.
10547 The problem could happen on non-glibc platforms, with Gnulib.
10548 * time/mktime.c (guess_time_tm): Remove, replacing with ...
10549 (tm_diff): ... this simpler function, which does not change errno.
10550 All callers changed to deal with errno themselves.
10551 (ranged_convert, __mktime_internal): Return failure immediately if
10552 the underlying function reports any failure other than EOVERFLOW.
10553 (__mktime_internal): Set errno to EOVERFLOW if the spring-forward
10554 gap code fails.
10555
10556 mktime: fix bug with Y2038 DST transition
10557 [BZ#23789]
10558 * time/mktime.c (ranged_convert): On 32-bit platforms, don’t
10559 mishandle a DST transition that jumps over the Y2038 boundary.
10560 No such DST transitions are known so this is only a theoretical
10561 bug, but we might as well do things right.
10562
10563 mktime: make more room for overflow
10564 [BZ#23789]
10565 * time/mktime.c (long_int): Now 4⨯ int, not just 3⨯.
10566 This is so that we can add tm_diff results to a previous guess,
10567 which will be useful in a later patch.
10568
10569 mktime: simplify offset guess
10570 [BZ#23789]
10571 * time/mktime.c (__mktime_internal): Omit excess precision.
10572
10573 mktime: new test for mktime failure
10574 [BZ#23789]
10575 Based on a test suggested by Albert Aribaud in:
10576 https://www.sourceware.org/ml/libc-alpha/2018-10/msg00662.html
10577 * time/Makefile (tests): Add bug-mktime4.
10578 * time/bug-mktime4.c: New file.
10579
10580 mktime: fix EOVERFLOW bug
10581 [BZ#23789]
10582 * time/mktime.c [!_LIBC && !DEBUG_MKTIME]:
10583 Include libc-config.h, not config.h, for __set_errno.
10584 (guess_time_tm, __mktime_internal): Set errno to EOVERFLOW on overflow.
10585
10586 2018-11-14 Samuel Thibault <samuel.thibault@ens-lyon.org>
10587
10588 * sysdeps/mach/hurd/dl-sysdep.c (check_no_hidden): Use
10589 __attribute_copy__ to copy attributes from name. Drop static qualifier
10590 to avoid warnings about leaf attribute not having effect on static
10591 functions.
10592
10593 2018-11-13 Florian Weimer <fweimer@redhat.com>
10594
10595 * malloc/malloc.c (fastbin_push_entry): New function.
10596 (fastbin_pop_entry): Likewise. Replaces REMOVE_FB.
10597 (REMOVE_FB): Remove macro.
10598 (_int_malloc): Use fastbin_pop_entry and reindent.
10599 (_int_free): Use fastbin_push_entry.
10600 (malloc_consolidate): Use atomic_exchange_acquire.
10601
10602 2018-11-13 Joseph Myers <joseph@codesourcery.com>
10603
10604 * sysdeps/mips/__longjmp.c (__longjmp): Define alias manually with
10605 alias attribute, not with strong_alias.
10606
10607 * include/libc-symbols.h [SHARED && !NO_HIDDEN && !__ASSEMBLER__]
10608 (__hidden_ver2): New macro. Use old definition of __hidden_ver1
10609 with additional parameter thread.
10610 [SHARED && !NO_HIDDEN && !__ASSEMBLER__] (__hidden_ver1): Define
10611 in terms of __hidden_ver2.
10612 (hidden_tls_def): New macro.
10613 (libc_hidden_tls_def): Likewise.
10614 (rtld_hidden_tls_def): Likewise.
10615 (libm_hidden_tls_def): Likewise.
10616 (libmvec_hidden_tls_def): Likewise.
10617 (libresolv_hidden_tls_def): Likewise.
10618 (librt_hidden_tls_def): Likewise.
10619 (libdl_hidden_tls_def): Likewise.
10620 (libnss_files_hidden_tls_def): Likewise.
10621 (libnsl_hidden_tls_def): Likewise.
10622 (libnss_nisplus_hidden_tls_def): Likewise.
10623 (libutil_hidden_tls_def): Likewise.
10624 (libutil_hidden_tls_def): Likweise.
10625 * sysdeps/powerpc/nofpu/sim-full.c (__sim_exceptions_thread): Use
10626 libc_hidden_tls_def.
10627 (__sim_disabled_exceptions_thread): Likewise.
10628 (__sim_round_mode_thread): Likewise.
10629
10630 * sysdeps/sparc/sparc-ifunc.h [SHARED]
10631 (sparc_ifunc_redirected_hidden_def): Use __attribute_copy__ to
10632 copy attributes from name.
10633
10634 2018-11-12 Joseph Myers <joseph@codesourcery.com>
10635
10636 * sysdeps/arm/arm-ifunc.h [SHARED] (arm_libc_ifunc_hidden_def):
10637 Use __attribute_copy__ to copy attributes from name.
10638
10639 * sysdeps/i386/i686/fpu/multiarch/e_expf.c [SHARED]: Use __THROW
10640 with __hidden_ver1 call.
10641 * sysdeps/i386/i686/fpu/multiarch/e_log2f.c [SHARED]: Likewise.
10642 * sysdeps/i386/i686/fpu/multiarch/e_logf.c [SHARED]: Likewise.
10643 * sysdeps/i386/i686/fpu/multiarch/s_cosf.c: Include <math.h>.
10644 (__cosf): Do not declare here.
10645 * sysdeps/i386/i686/fpu/multiarch/s_sincosf.c: Include <math.h>.
10646 (__sincosf): Do not declare here.
10647 * sysdeps/i386/i686/fpu/multiarch/s_sinf.c: Include <math.h>.
10648 (__sinf): Do not declare here.
10649
10650 * sysdeps/ia64/fpu/sfp-machine.h (__LITTLE_ENDIAN): Remove.
10651 (__BIG_ENDIAN): Likewise.
10652 (__BYTE_ORDER): Likewise.
10653 (strong_alias): Likewise.
10654 (_strong_alias): Likewise.
10655
10656 2018-11-12 Florian Weimer <fweimer@redhat.com>
10657
10658 * malloc/malloc.c (unlink_chunk): Turn the unlink macro into this
10659 function. Move after the definition of in_smallbin_range. Do not
10660 use __builtin_expect for paths that lead to a noreturn function.
10661 Drop remaining __builtin_expect (p->fd_nextsize != NULL, 0)
10662 because it is unclear whether this is in fact an unlikely
10663 condition.
10664 (_int_malloc, _int_free): Adjust.
10665 (malloc_consolidate, _int_realloc): Adjust. Remove bck, fwd
10666 variables.
10667 * malloc/arena.c (heap_trim): Likewise.
10668
10669 2018-11-10 Samuel Thibault <samuel.thibault@ens-lyon.org>
10670
10671 * sysdeps/mach/hurd/spawni.c (__spawni): Add ccwdir port. Test and use
10672 it, free it if needed.
10673 (reauthenticate): Test and use ccwdir.
10674 (child_init_port): In non-resetids case, test and use ccwdir.
10675 (child_chdir): New nested function to set ccwdir.
10676 * hurd/hurd/userlink.h (_hurd_userlink_move): New function.
10677 * hurd/hurd/port.h (_hurd_port_move): New function.
10678 * sysdeps/mach/hurd/spawni.c (NEW_ULINK_TABLE): New macro.
10679 (EXPAND_DTABLE): Use NEW_ULINK_TABLE macro for ulink_dtable.
10680 * hurd/Versions (_hurd_port_move): Export function.
10681 * sysdeps/mach/hurd/i386/libc.abilist (_hurd_port_move): Expect
10682 symbol.
10683 * sysdeps/mach/hurd/spawni.c (__spawni): Use orig_dtablesize instead
10684 of dtablesize for allocating dtable_cloexec.
10685
10686 2018-11-09 Martin Sebor <msebor@redhat.com>
10687
10688 * include/libc-symbols.h (__attribute_copy__): Define macro unless
10689 it's already defined.
10690 (_strong_alias): Use __attribute_copy__.
10691 (_weak_alias, __hidden_ver1, __hidden_nolink2): Same.
10692 * misc/sys/cdefs.h (__attribute_copy__): New macro.
10693 * sysdeps/x86_64/multiarch/memchr.c (memchr): Use __attribute_copy__.
10694 * sysdeps/x86_64/multiarch/memcmp.c (memcmp): Same.
10695 * sysdeps/x86_64/multiarch/mempcpy.c (mempcpy): Same.
10696 * sysdeps/x86_64/multiarch/memset.c (memset): Same.
10697 * sysdeps/x86_64/multiarch/stpcpy.c (stpcpy): Same.
10698 * sysdeps/x86_64/multiarch/strcat.c (strcat): Same.
10699 * sysdeps/x86_64/multiarch/strchr.c (strchr): Same.
10700 * sysdeps/x86_64/multiarch/strcmp.c (strcmp): Same.
10701 * sysdeps/x86_64/multiarch/strcpy.c (strcpy): Same.
10702 * sysdeps/x86_64/multiarch/strcspn.c (strcspn): Same.
10703 * sysdeps/x86_64/multiarch/strlen.c (strlen): Same.
10704 * sysdeps/x86_64/multiarch/strncmp.c (strncmp): Same.
10705 * sysdeps/x86_64/multiarch/strncpy.c (strncpy): Same.
10706 * sysdeps/x86_64/multiarch/strnlen.c (strnlen): Same.
10707 * sysdeps/x86_64/multiarch/strpbrk.c (strpbrk): Same.
10708 * sysdeps/x86_64/multiarch/strrchr.c (strrchr): Same.
10709 * sysdeps/x86_64/multiarch/strspn.c (strspn): Same.
10710
10711 2018-11-09 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
10712
10713 * misc/tst-efgcvt.c: Include support/check.h and
10714 support/test-driver.c. Do not include test-skeleton.c.
10715 (error_count): Remove.
10716 (output_error): Replace increments to error_count with calls to
10717 support_record_failure.
10718 (output_r_error): Likewise.
10719 (special): Likewise.
10720 (do_test): Unconditionally return zero.
10721 (TEST_FUNCTION): Remove.
10722
10723 2018-11-09 Joseph Myers <joseph@codesourcery.com>
10724
10725 * conform/Makefile ($(conformtest-header-tests)): Create $(@D),
10726 not $(@D)/scratch.
10727 ($(linknamespace-header-tests)): Likewise.
10728
10729 * conform/conformtest.py: New file.
10730 * conform/conformtest.pl: Remove.
10731 * conform/GlibcConform.pm: Likewise.
10732 * conform/glibcconform.py (KEYWORDS_C90): New constant.
10733 (KEYWORDS_C99): Likewise.
10734 (KEYWORDS): Likewise.
10735 * conform/Makefile ($(conformtest-header-tests)): Use
10736 conformtest.py instead of conformtest.pl. Do not pass --tmpdir
10737 option. Use --header instead of --headers.
10738 * conform/data/arpa/inet.h-data: Remove trailing semicolons on
10739 function entries.
10740 * conform/data/spawn.h-data: Likewise.
10741 * conform/data/fcntl.h-data (openat): Add space after function
10742 name.
10743 * conform/data/wchar.h-data (wcscasecmp): Likewise.
10744 (wcscasecmp_l): Likewise.
10745 * conform/data/termios.h-data (c_cc): Add space after element
10746 name.
10747
10748 2018-11-08 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
10749
10750 * argp/tst-ldbl-argp.c (do_one_test): Use TEST_COMPARE_STRING,
10751 instead of manually comparing and reporting mismatching strings.
10752 * misc/tst-ldbl-error.c (do_one_test): Likewise.
10753 * misc/tst-ldbl-warn.c (do_one_test): Likewise.
10754
10755 2018-11-08 Joseph Myers <joseph@codesourcery.com>
10756
10757 * sysdeps/unix/sysv/linux/kernel-features.h: Remove comment about
10758 __ASSUME_SOCKETCALL.
10759 * sysdeps/unix/sysv/linux/i386/kernel-features.h
10760 (__ASSUME_SOCKETCALL): Remove.
10761 * sysdeps/unix/sysv/linux/m68k/kernel-features.h
10762 (__ASSUME_SOCKETCALL): Likewise.
10763 * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
10764 (__ASSUME_SOCKETCALL): Likewise.
10765 * sysdeps/unix/sysv/linux/powerpc/kernel-features.h
10766 (__ASSUME_SOCKETCALL): Likewise.
10767 * sysdeps/unix/sysv/linux/s390/kernel-features.h
10768 (__ASSUME_SOCKETCALL): Likewise.
10769 * sysdeps/unix/sysv/linux/sh/kernel-features.h
10770 (__ASSUME_SOCKETCALL): Likewise.
10771 * sysdeps/unix/sysv/linux/sparc/kernel-features.h
10772 (__ASSUME_SOCKETCALL): Likewise.
10773
10774 2018-11-08 H.J. Lu <hongjiu.lu@intel.com>
10775
10776 [BZ #23509]
10777 * sysdeps/x86/dl-prop.h (_dl_process_cet_property_note): Skip
10778 note parsing if a NT_GNU_PROPERTY_TYPE_0 note has been processed.
10779 Update the l_cet field when processing NT_GNU_PROPERTY_TYPE_0 note.
10780 Check multiple NT_GNU_PROPERTY_TYPE_0 notes.
10781 * sysdeps/x86/link_map.h (l_cet): Expand to 3 bits, Add
10782 lc_unknown.
10783
10784 2018-11-08 Alexandra Hájková <ahajkova@redhat.com>
10785
10786 [BZ #17630]
10787 * resolv/tst-resolv-network.c: Add test for getnetbyname.
10788
10789 2018-11-07 Joseph Myers <joseph@codesourcery.com>
10790
10791 [BZ #23867]
10792 * sysdeps/unix/sysv/linux/arm/kernel-features.h
10793 [__LINUX_KERNEL_VERSION < 0x040700] (__ASSUME_MLOCK2): Undefine.
10794 * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
10795 [__LINUX_KERNEL_VERSION < 0x040700] (__ASSUME_MLOCK2): Undefine.
10796
10797 2018-11-07 Adhemerval Zanella <adhemerval.zanella@linaro.org>
10798
10799 * support/support_test_compare_string.c
10800 (support_test_compare_string): Fix printf format.
10801
10802 2018-11-07 Florian Weimer <fweimer@redhat.com>
10803
10804 Implement TEST_COMPARE_STRING.
10805 * support/check.h (TEST_COMPARE_STRING): Define.
10806 (support_test_compare_string): Declare.
10807 * support/Makefile (libsupport-routines): Add
10808 support_test_compare_string.
10809 (tests): Add tst-test_compare_string.
10810 * support/support_test_compare_string.c: New file.
10811 * support/tst-test_compare_string.c: Likewise.
10812
10813 2018-11-07 Andreas Schwab <schwab@suse.de>
10814
10815 [BZ #23864]
10816 * sysdeps/unix/sysv/linux/riscv/kernel-features.h
10817 (__ASSUME_SET_ROBUST_LIST) [__LINUX_KERNEL_VERSION < 0x041400]:
10818 Undef.
10819
10820 2018-11-06 Joseph Myers <joseph@codesourcery.com>
10821
10822 [BZ #23862]
10823 * sysdeps/unix/sysv/linux/sh/kernel-features.h
10824 [__LINUX_KERNEL_VERSION < 0x040800] (__ASSUME_EXECVEAT): Undefine.
10825 [__LINUX_KERNEL_VERSION < 0x040800] (__ASSUME_MLOCK2): Likewise.
10826 [__LINUX_KERNEL_VERSION < 0x040800] (__ASSUME_COPY_FILE_RANGE):
10827 Likewise.
10828
10829 2018-11-06 Florian Weimer <fweimer@redhat.com>
10830
10831 [BZ #17405]
10832 * posix/Makefile (routines): Add spawn_faction_addchdir.
10833 (tests): Add tst-spawn-chdir.
10834 * posix/Versions (GLIBC_2.29): Add
10835 posix_spawn_file_actions_addchdir_np.
10836 * posix/spawn_faction_addchdir.c: New file.
10837 * posix/spawn_faction_destroy.c
10838 (__posix_spawn_file_actions_destroy): Handle spawn_do_chdir.
10839 * posix/spawn.h (posix_spawn_file_actions_addchdir_np): Declare.
10840 * posix/spawn_int.h (struct __spawn_action): Add spawn_do_chdir,
10841 chdir_action.
10842 * posix/tst-spawn-chdir.c: New file.
10843 * sysdeps/posix/spawni.c (__spawni_child): Handle spawn_do_chdir.
10844 * sysdeps/unix/sysv/linux/spawni.c (__spawni_child): Likewise.
10845 * sysdeps/mach/hurd/i386/libc.abilist (GLIBC_2.29): Add
10846 posix_spawn_file_actions_addchdir_np.
10847 * sysdeps/unix/sysv/linux/aarch64/libc.abilist (GLIBC_2.29):
10848 Likewise.
10849 * sysdeps/unix/sysv/linux/alpha/libc.abilist (GLIBC_2.29):
10850 Likewise.
10851 * sysdeps/unix/sysv/linux/arm/libc.abilist (GLIBC_2.29): Likewise.
10852 * sysdeps/unix/sysv/linux/hppa/libc.abilist (GLIBC_2.29):
10853 Likewise.
10854 * sysdeps/unix/sysv/linux/i386/libc.abilist (GLIBC_2.29):
10855 Likewise.
10856 * sysdeps/unix/sysv/linux/ia64/libc.abilist (GLIBC_2.29):
10857 Likewise.
10858 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist (GLIBC_2.29):
10859 Likewise.
10860 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist (GLIBC_2.29):
10861 Likewise.
10862 * sysdeps/unix/sysv/linux/microblaze/libc.abilist (GLIBC_2.29):
10863 Likewise.
10864 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist
10865 (GLIBC_2.29): Likewise.
10866 * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist
10867 (GLIBC_2.29): Likewise.
10868 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist
10869 (GLIBC_2.29): Likewise.
10870 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist
10871 (GLIBC_2.29): Likewise.
10872 * sysdeps/unix/sysv/linux/nios2/libc.abilist (GLIBC_2.29):
10873 Likewise.
10874 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist
10875 (GLIBC_2.29): Likewise.
10876 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist
10877 (GLIBC_2.29): Likewise.
10878 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist
10879 (GLIBC_2.29): Likewise.
10880 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist
10881 (GLIBC_2.29): Likewise.
10882 * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist (GLIBC_2.29):
10883 Likewise.
10884 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist (GLIBC_2.29):
10885 Likewise.
10886 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist (GLIBC_2.29):
10887 Likewise.
10888 * sysdeps/unix/sysv/linux/sh/libc.abilist (GLIBC_2.29): Likewise.
10889 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist (GLIBC_2.29):
10890 Likewise.
10891 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist (GLIBC_2.29):
10892 Likewise.
10893 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist (GLIBC_2.29):
10894 Likewise.
10895 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist (GLIBC_2.29):
10896 Likewise.
10897
10898 2018-11-06 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
10899
10900 * misc/Makefile (tests): Add tst-ldbl-error.
10901 * misc/tst-ldbl-error.c: New file.
10902
10903 2018-11-06 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
10904
10905 * misc/Makefile (tests): Add tst-ldbl-warn.
10906 * misc/tst-ldbl-warn.c: New file.
10907
10908 2018-11-06 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
10909
10910 * argp/Makefile (tests): Add tst-ldbl-argp.
10911 * argp/tst-ldbl-argp.c: New file.
10912
10913 2018-11-05 Arjun Shankar <arjun@redhat.com>
10914
10915 * iconv/gconv_conf.c (__gconv_read_conf): Remove NULL check for
10916 __gconv_path_elem and call __gconv_get_path unconditionally.
10917
10918 2018-11-05 Andreas Schwab <schwab@suse.de>
10919
10920 [BZ #22927]
10921 * resolv/gai_misc.c (__gai_enqueue_request): Don't crash if
10922 creating the first helper thread failed.
10923
10924 2018-11-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
10925
10926 * sysdeps/mach/hurd/msync.c: New file.
10927
10928 2018-11-02 Florian Weimer <fweimer@redhat.com>
10929
10930 * support/shell-container.c (copy_func): Call
10931 support_copy_file_range instead of copy_file_range to support
10932 cross-device copies.
10933
10934 2018-11-02 Florian Weimer <fweimer@redhat.com>
10935
10936 * support/test-container.c: Include <libc-pointer-arith.h> for
10937 ALIGN_UP.
10938
10939 2018-11-01 Zong Li <zong@andestech.com>
10940
10941 * soft-fp/op-8.h (_FP_FRAC_SET_8, _FP_FRAC_ADD_8, _FP_FRAC_SUB_8)
10942 (_FP_FRAC_CLZ_8, _FP_MINFRAC_8, _FP_FRAC_NEGP_8, _FP_FRAC_ZEROP_8)
10943 (_FP_FRAC_HIGHBIT_DW_8, _FP_FRAC_COPY_4_8, _FP_FRAC_COPY_8_4)
10944 (__FP_FRAC_SET_8): Add implementation for RV32 use.
10945
10946 * soft-fp/op-4.h (_FP_FRAC_SUB_3, _FP_FRAC_SUB_4): Use temporary
10947 variable to avoid overlap arguments.
10948
10949 2018-11-01 Joseph Myers <joseph@codesourcery.com>
10950
10951 * posix/bug-regex22.c (main): Use puts with distinct error
10952 messages for unexpected success of re_compile_pattern, not printf
10953 with NULL argument to %s.
10954
10955 * stdio-common/bug22.c: Include <libc-diag.h>.
10956 (do_test): Disable -Wformat-overflow= warnings around fprintf
10957 calls outputting more than INT_MAX characters.
10958 * stdio-common/tst-printf.c: Disable -Wformat-overflow= warnings
10959 around printf call with NULL %s argument.
10960
10961 [BZ #23848]
10962 * sysdeps/unix/sysv/linux/sparc/kernel-features.h [!__arch64__ &&
10963 __LINUX_KERNEL_VERSION < 0x040400] (__ASSUME_SENDMSG_SYSCALL):
10964 Undefine.
10965 [!__arch64__ && __LINUX_KERNEL_VERSION < 0x040400]
10966 (__ASSUME_RECVMSG_SYSCALL): Likewise.
10967 [!__arch64__ && __LINUX_KERNEL_VERSION < 0x040400]
10968 (__ASSUME_SENDTO_SYSCALL): Likewise.
10969 [!__arch64__ && __LINUX_KERNEL_VERSION < 0x040400]
10970 (__ASSUME_ACCEPT_SYSCALL): Undefine under this condition, not just
10971 [!__arch64__].
10972 [!__arch64__ && __LINUX_KERNEL_VERSION < 0x040400]
10973 (__ASSUME_CONNECT_SYSCALL): Likewise.
10974 [!__arch64__ && __LINUX_KERNEL_VERSION < 0x040400]
10975 (__ASSUME_RECVFROM_SYSCALL): Likewise.
10976 [__LINUX_KERNEL_VERSION >= 0x040400] (__ASSUME_BIND_SYSCALL):
10977 Define.
10978 [__LINUX_KERNEL_VERSION >= 0x040400] (__ASSUME_LISTEN_SYSCALL):
10979 Likewise.
10980 [__LINUX_KERNEL_VERSION >= 0x040400]
10981 (__ASSUME_SETSOCKOPT_SYSCALL): Likewise.
10982 * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list (bind):
10983 Remove.
10984 (listen): Likewise.
10985 (setsockopt): Likewise.
10986
10987 2018-11-01 Fredrik Noring <noring@nocrew.org>
10988
10989 * sysdeps/mips/sys/tas.h (_test_and_set): Handle the R5900 CPU
10990 with the ISA override.
10991
10992 2018-10-31 Rafael Ávila de Espíndola <rafael@espindo.la>
10993
10994 * sysdeps/unix/sysv/linux/sysdep-vdso.h: Simplify an #if #else
10995 #endif.
10996
10997 2018-10-31 Samuel Thibault <samuel.thibault@ens-lyon.org>
10998
10999 * manual/errno.texi (EIEIO): Document how translators should
11000 translate the error message.
11001 * sysdeps/mach/hurd/errnos.awk: Avoid printing errnos.d. Avoid
11002 printing trailing whitespaces refused by git.
11003 * sysdeps/gnu/errlist.c (EIEIO): Regenerate.
11004 * sysdeps/mach/hurd/bits/errno.h: Regenerate.
11005 * hurd/Makefile (user-interfaces): Add pci.
11006
11007 2018-10-30 Joseph Myers <joseph@codesourcery.com>
11008
11009 * conform/linknamespace.py: New file.
11010 * conform/linknamespace.pl: Remove file.
11011 * conform/Makefile ($(linknamespace-header-tests)): Use
11012 linknamespace.py instead of linknamespace.pl. Do not use --tmpdir
11013 option.
11014
11015 2018-10-30 Florian Weimer <fweimer@redhat.com>
11016
11017 * stdlib/test-bz22786.c (do_test): Additional free calls to avoid
11018 memory leaks.
11019
11020 2018-10-30 Florian Weimer <fweimer@redhat.com>
11021
11022 * support/blob_repeat.c (allocate_big): Call mkstemp directly.
11023
11024 2018-10-30 Florian Weimer <fweimer@redhat.com>
11025
11026 * stdlib/tst-strtod-overflow.c (do_test): Switch to
11027 support_blob_repeat.
11028
11029 2018-10-30 Florian Weimer <fweimer@redhat.com>
11030
11031 Avoid spurious test failures in stdlib/test-bz22786.
11032 * support/Makefile (libsupport-routines): Add blob_repeat.
11033 (tests): Add tst-support_blob_repeat.
11034 * support/blob_repeat.h: New file.
11035 * support/blob_repeat.c: Likewise.
11036 * support/tst-support_blob_repeat.c: Likewise.
11037 * stdlib/test-bz22786.c (do_test): Replace malloc and memset with
11038 support_blob_repeat_allocate.
11039
11040 2018-10-30 Andreas Schwab <schwab@suse.de>
11041
11042 [BZ #23125]
11043 * sysdeps/riscv/start.S (ENTRY_POINT): Mark ra as undefined.
11044 Don't use tail call.
11045 * elf/tst-unwind-main.c: New file.
11046 * elf/Makefile (tests): Add tst-unwind-main.
11047 (CFLAGS-tst-unwind-main.c): Define.
11048
11049 2018-10-29 Sergi Almacellas Abellana <sergi@koolpi.com>
11050
11051 [BZ #23791]
11052 * localedata/locales/ca_ES (LC_MONETARY): set p_cs_precedes and
11053 n_cs_precedes to 0.
11054 * localedata/locales/ca_ES (LC_MONETARY): set grouping to 3;3
11055
11056 2018-10-29 Joseph Myers <joseph@codesourcery.com>
11057
11058 * conform/glibcconform.py: Do not import shutil.
11059 (list_exported_functions): Use tempfile.TemporaryDirectory instead
11060 of mkdtemp.
11061
11062 * configure.ac (PYTHON_PROG): Use AC_CHECK_PROG_VER. Set
11063 critic_missing for versions before 3.4.
11064 * configure: Regenerated.
11065 * manual/install.texi (Tools for Compilation): Document
11066 requirement for Python to build glibc.
11067 * INSTALL: Regenerated.
11068 * Rules [PYTHON]: Make code unconditional.
11069 * benchtests/Makefile [PYTHON]: Likewise.
11070 * conform/Makefile [PYTHON]: Likewise.
11071 * manual/Makefile [PYTHON]: Likewise.
11072 * math/Makefile [PYTHON]: Likewise.
11073
11074 2018-10-28 Samuel Thibault <samuel.thibault@ens-lyon.org>
11075
11076 * hurd/hurdsig.c (_hurd_interrupted_rpc_timeout): Set to 60000.
11077 * hurd/intr-msg.c (_hurd_intr_rpc_mach_msg): When the server does not
11078 answer to interrupt_operation, return EIEIO instead of EINTR.
11079 * sysdeps/mach/hurd/i386/intr-msg.h (INTR_MSG_TRAP): Make
11080 _hurd_intr_rpc_msg_about_to global point to start of controlled
11081 assembly snippet. Make it check canceled flag.
11082 * hurd/hurdsig.c (_hurdsig_abort_rpcs): Only mutate thread if it passed
11083 the _hurd_intr_rpc_msg_about_to point.
11084 * hurd/intr-msg.c (_hurd_intr_rpc_mach_msg): Remove comment on mutation
11085 issue, remove cancel flag check.
11086
11087 2018-10-26 Joseph Myers <joseph@codesourcery.com>
11088
11089 * scripts/build-many-glibcs.py: Remove compatibility for missing
11090 os.cpu_count and re.fullmatch.
11091
11092 2018-10-26 Szabolcs Nagy <szabolcs.nagy@arm.com>
11093
11094 [BZ #23822]
11095 * sysdeps/ia64/fpu/e_exp2f.S (exp2f): Use WEAK_LIBM_ENTRY.
11096 * sysdeps/ia64/fpu/e_log2f.S (log2f): Likewise.
11097 * sysdeps/ia64/fpu/e_exp2f.S (powf): Likewise.
11098
11099 2018-10-25 Joseph Myers <joseph@codesourcery.com>
11100
11101 * sysdeps/unix/sysv/linux/sys/inotify.h (IN_MASK_CREATE): New
11102 macro.
11103
11104 2018-10-25 Florian Weimer <fweimer@redhat.com>
11105
11106 [BZ #23562]
11107 [BZ #23821]
11108 XFAIL siginfo_t si_band conform test on sparc64.
11109 * sysdeps/unix/sysv/linux/sparc/bits/siginfo-arch.h
11110 (__SI_BAND_TYPE): Only override long int default type on sparc64.
11111 * sysdeps/unix/sysv/linux/sparc/sparc64/Makefile
11112 (conformtest-xfail-conds): Add sparc64-linux.
11113 * conform/data/signal.h-data (siginfo_t): XFAIL si_band test on
11114 sparc64.
11115 * conform/data/sys/wait.h-data (siginfo_t): Likewise.
11116
11117 2018-10-25 Joseph Myers <joseph@codesourcery.com>
11118
11119 * elf/elf.h (NT_MIPS_DSP): New macro.
11120 (NT_MIPS_FP_MODE): Likewise.
11121
11122 2018-10-25 Zong Li <zong@andestech.com>
11123
11124 * elf/Makefile (LDFLAGS-tst-execstack-mod.so): Change variable
11125 name by adding the file extension (.so).
11126
11127 2018-10-25 Samuel Thibault <samuel.thibault@ens-lyon.org>
11128
11129 * sysdeps/mach/hurd/i386/Makefile [$(subdir) = conform]
11130 (test-xfail-ISO11/threads.h/linknamespace,
11131 test-xfail-ISO11/threads.h/conform): Add.
11132
11133 2018-10-24 Joseph Myers <joseph@codesourcery.com>
11134
11135 * math/gen-libm-test.py: Import os.
11136 (ALL_FLOATS_MANUAL): New constant.
11137 (ALL_FLOATS_SUFFIX): Likewise.
11138 (Ulps.all_functions): New function.
11139 (real_all_ulps): Likewise.
11140 (generate_err_table_sub): Likewise.
11141 (generate_err_table): Likewise.
11142 (main): Handle -s and -m options.
11143 * manual/libm-err-tab.pl: Remove.
11144 * manual/Makefile ($(objpfx)stamp-libm-err): Use gen-libm-test.py
11145 instead of libm-err-tab.pl.
11146 [$(PERL) != no]: Change condition to [$(if $(PYTHON),$(PERL),no)
11147 != no].
11148 * manual/install.texi (Tools for Compilation): Document
11149 requirement for Python to build manual.
11150 * INSTALL: Regenerated.
11151
11152 2018-10-24 Albert ARIBAUD <albert.aribaud@3adev.fr>
11153
11154 * bits/time64.h: New file.
11155 * include/time.h: Replace internal_time_t with __time64_t.
11156 * posix/bits/types (__time64_t): Add.
11157 * stdlib/Makefile: Add bits/time64.h to includes.
11158 * time/tzfile.c: Replace internal_time_t with __time64_t.
11159
11160 2018-10-24 Adhemerval Zanella <adhemerval.zanella@linaro.org>
11161
11162 * include/spawn.h (__posix_spawn, posix_spawn_file_actions_addclose,
11163 __posix_spawn_file_actions_adddup2, __posix_spawn_file_actions_destroy,
11164 __posix_spawn_file_actions_init, __posix_spawnattr_init,
11165 __posix_spawnattr_destroy, __posix_spawnattr_setflags,
11166 __posix_spawnattr_setsigdefault, __posix_spawnattr_setsigmask): New
11167 prototype.
11168 * posix/spawn.c (__posix_spawn): Add libc_hidden_def.
11169 * posix/spawn_faction_addclose.c
11170 (__posix_spawn_file_actions_addclose): Add hidden definition.
11171 * posix/spawn_faction_adddup2.c
11172 (__posix_spawn_file_actions_adddup2): Likewise.
11173 * posix/spawn_faction_destroy.c
11174 (__posix_spawn_file_actions_destroy): Likewise.
11175 * posix/spawn_faction_init.c (__posix_spawn_file_actions_init):
11176 Likewise.
11177 * posix/spawnattr_destroy.c (__posix_spawnattr_destroy): Likewise.
11178 * posix/spawnattr_init.c (__posix_spawnattr_init): Likewise.
11179 * posix/spawnattr_setdefault.c (__posix_spawnattr_setsigdefault):
11180 Likewise.
11181 * posix/spawnattr_setflags.c (__posix_spawnattr_setflags): Likewise.
11182 * posix/spawnattr_setsigmask.c (__posix_spawnattr_setsigmask):
11183 Likewise.
11184
11185 2018-10-24 Andreas Schwab <schwab@suse.de>
11186
11187 [BZ #18093]
11188 * elf/dl-cache.c (_dl_load_cache_lookup): Check for truncated old
11189 format cache.
11190 * elf/cache.c (print_cache): Likewise.
11191
11192 2018-10-24 Albert ARIBAUD <albert.aribaud@3adev.fr>
11193
11194 * bits/timesize.h: New file.
11195 * stdlib/Makefile (headers): Add bits/timesize.h.
11196 * sysdeps/unix/sysv/linux/bits/msq-pad.h
11197 (__MSQ_PAD_AFTER_TIME): Use __TIMESIZE instead of __WORDSIZE.
11198 * sysdeps/unix/sysv/linux/bits/sem-pad.h
11199 (__SEM_PAD_AFTER_TIME): Likewise.
11200 * sysdeps/unix/sysv/linux/bits/shm-pad.h
11201 (__SHM_PAD_AFTER_TIME): Likewise.
11202 * sysdeps/unix/sysv/linux/hppa/bits/msq-pad.h
11203 (__MSQ_PAD_BEFORE_TIME): Likewise.
11204 * sysdeps/unix/sysv/linux/hppa/bits/sem-pad.h
11205 (__SEM_PAD_BEFORE_TIME): Likewise.
11206 * sysdeps/unix/sysv/linux/hppa/bits/shm-pad.h
11207 (__SHM_PAD_BEFORE_TIME, __SHM_PAD_BETWEEN_TIME_AND_SEGSZ): Likewise.
11208 * sysdeps/unix/sysv/linux/mips/bits/msq-pad.h
11209 (__MSQ_PAD_AFTER_TIME, __MSQ_PAD_BEFORE_TIME): Likewise.
11210 * sysdeps/unix/sysv/linux/powerpc/bits/msq-pad.h
11211 (__MSQ_PAD_BEFORE_TIME): Likewise.
11212 * sysdeps/unix/sysv/linux/powerpc/bits/sem-pad.h
11213 (__SEM_PAD_BEFORE_TIME): Likewise.
11214 * sysdeps/unix/sysv/linux/powerpc/bits/shm-pad.h
11215 (__SHM_PAD_BEFORE_TIME, __SHM_PAD_BETWEEN_TIME_AND_SEGSZ): Likewise.
11216 * sysdeps/unix/sysv/linux/sparc/bits/msq-pad.h
11217 (__MSQ_PAD_BEFORE_TIME): Likewise.
11218 * sysdeps/unix/sysv/linux/sparc/bits/sem-pad.h
11219 (__SEM_PAD_BEFORE_TIME): Likewise.
11220 * sysdeps/unix/sysv/linux/sparc/bits/shm-pad.h
11221 (__SHM_PAD_BEFORE_TIME): Likewise.
11222 * sysdeps/unix/sysv/linux/x86/bits/msq-pad.h: Delete file.
11223 * sysdeps/unix/sysv/linux/x86/bits/shm-pad.h: Likewise.
11224 * sysdeps/unix/sysv/linux/x86/bits/timesize.h: New file.
11225
11226 2018-10-24 H.J. Lu <hongjiu.lu@intel.com>
11227
11228 * benchtests/Makefile (CPPFLAGS-nonlib): Add -DUSE_RDTSCP if
11229 USE_RDTSCP is defined.
11230 * sysdeps/x86/hp-timing.h (HP_TIMING_NOW): Use RDTSCP if
11231 USE_RDTSCP is defined.
11232
11233 2018-10-23 Adhemerval Zanella <adhemerval.zanella@linaro.org>
11234
11235 * misc/tst-preadvwritev2-common.c (IOV_MAX): Define if not
11236 defined.
11237
11238 [BZ #23709]
11239 * sysdeps/x86/cpu-features.c (init_cpu_features): Set TSX bits
11240 independently of other flags.
11241
11242 2018-10-23 Florian Weimer <fweimer@redhat.com>
11243
11244 * time/tst-mktime2.c (N_STRINGS): Remove.
11245 (set_timezone): New function.
11246 (spring_forward_gap): Call it. Use FAIL_EXIT1.
11247 (mktime_test1): Report localtime failure and check errno value.
11248 Use TEST_COMPARE.
11249 (irix_6_4_bug, bigtime_test): Use TEST_COMPARE.
11250 (do_test): Remove alarm call. Use set_timezone and array_length.
11251
11252 2018-10-23 Andreas Schwab <schwab@suse.de>
11253
11254 * sysdeps/unix/sysv/linux/riscv/setcontext.S (__setcontext)
11255 (__start_context): Use END instead of PSEUDO_END.
11256
11257 2018-10-22 Joseph Myers <joseph@codesourcery.com>
11258
11259 * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
11260 version to 4.19.
11261
11262 * scripts/build-many-glibcs.py (Context.checkout): Default Linux
11263 version to 4.19.
11264
11265 [BZ #23793]
11266 * wcsmbs/c32rtomb.c: New file.
11267 * wcsmbs/mbrtoc32.c: Likewise.
11268 * wcsmbs/tst-c32-state.c: Likewise.
11269 * wcsmbs/mbrtowc.c (mbrtoc32): Do not define as alias.
11270 * wcsmbs/wcrtomb.c (c32rtomb): Likewise.
11271 * wcsmbs/Makefile (routines): Add mbrtoc32 and c32rtomb.
11272 (tests): Add tst-c32-state.
11273 [$(run-built-tests) = yes] ($(objpfx)tst-c32-state.out): Depend on
11274 $(gen-locales).
11275
11276 2018-10-21 H.J. Lu <hongjiu.lu@intel.com>
11277
11278 * sysdeps/x86/hp-timing.h: Don't include <x86intrin.h>.
11279 (HP_TIMING_NOW): Replace _rdtsc with __builtin_ia32_rdtsc.
11280
11281 2018-10-19 Joseph Myers <joseph@codesourcery.com>
11282
11283 [BZ #23794]
11284 * wcsmbs/c16rtomb.c (c16rtomb): Save first character of surrogate
11285 pair and return 0 in that case, and use saved character to
11286 interpret following character.
11287 * wcsmbs/tst-c16-surrogate.c: New file.
11288 * wcsmbs/Makefile (tests): Add tst-c16-surrogate.c.
11289 [$(run-built-tests) = yes] ($(objpfx)tst-c16-surrogate.out):
11290 Depend on $(gen-locales)
11291
11292 2018-10-19 Ilya Yu. Malakhov <malakhov@mcst.ru>
11293
11294 [BZ #23562]
11295 * sysdeps/unix/sysv/linux/bits/types/siginfo_t.h
11296 (struct siginfo_t): Use correct type for si_band.
11297
11298 2018-10-19 Florian Weimer <fweimer@redhat.com>
11299
11300 [BZ #23689]
11301 * resource/bits/types/struct_rusage.h (struct rusage): Update
11302 comment on struct. Remove extraneous field comment.
11303
11304 2018-10-18 David S. Miller <davem@davemloft.net>
11305
11306 * sysdeps/unix/sysv/linux/sparc/init-first.c: New file.
11307 * sysdeps/unix/sysv/linux/sparc/libc-vdso.h: New file.
11308 * sysdeps/unix/sysv/linux/sparc/Makefile: Add dl-vdso to
11309 sysdep_routines in subdir elf.
11310 * sysdeps/unix/sysv/linux/sparc/Versions: Add GLIBC_PRIVATE
11311 version for __vdso_clock_gettime.
11312 * sysdeps/unix/sysv/linux/sparc/sysdep.h (INTERNAL_VSYSCALL_CALL):
11313 Define.
11314 (HAVE_CLOCK_GETTIME_VSYSCALL): Define.
11315 (HAVE_GETTIMEOFDAY_VSYSCALL): Define.
11316
11317 * sysdeps/sparc/fpu/libm-test-ulps: Regenerated.
11318
11319 2018-10-17 H.J. Lu <hongjiu.lu@intel.com>
11320
11321 * sysdeps/i386/init-arch.h: Removed.
11322 * sysdeps/i386/i586/init-arch.h: Likewise.
11323 * sysdeps/i386/i686/init-arch.h: Likewise.
11324 * sysdeps/i386/i686/hp-timing.h: Likewise.
11325 * sysdeps/x86_64/hp-timing.h: Likewise.
11326 * sysdeps/i386/isa.h: New file.
11327 * sysdeps/i386/i586/isa.h: Likewise.
11328 * sysdeps/i386/i686/isa.h: Likewise.
11329 * sysdeps/x86_64/isa.h: Likewise.
11330 * sysdeps/x86/hp-timing.h: New file.
11331 * sysdeps/x86/init-arch.h: Include <isa.h>.
11332
11333 2018-10-17 Joseph Myers <joseph@codesourcery.com>
11334
11335 * math/libm-test-pow.inc (pow_test_data): Do not allow
11336 divide-by-zero exception for pow(+/- 0, -Inf).
11337
11338 2018-10-17 Zack Weinberg <zackw@panix.com>
11339
11340 * manual/job.texi (Job Control is Optional): Remove node, as
11341 job control has not been optional in quite some time.
11342 (Job Control): Mention briefly that systems older than
11343 POSIX.1-2001 might not support job control.
11344 * manual/conf.texi (_POSIX_JOB_CONTROL): Will always be
11345 defined on systems conforming to POSIX.1-2001.
11346
11347 2018-10-17 Arjun Shankar <arjun@redhat.com>
11348
11349 [BZ #22062]
11350 * iconv/gconv_conf.c (__gconv_get_path): Remove locking and fix
11351 indentation.
11352 * (__gconv_read_conf): Mark function static.
11353 * (once): New static variable.
11354 * (__gconv_load_conf): New function.
11355 * iconv/gconv_int.h (__gconv_load_conf): Likewise.
11356 * iconv/gconv_db.c (once): Remove static variable.
11357 * (__gconv_compare_alias): Use __gconv_load_conf instead of
11358 __gconv_read_conf.
11359 * (__gconv_find_transform): Likewise.
11360 * iconv/tst-iconv-mt.c: New test.
11361 * iconv/Makefile: Add tst-iconv_mt.
11362
11363 2018-10-17 Joseph Myers <joseph@codesourcery.com>
11364
11365 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
11366 bits/shm-pad.h.
11367 * sysdeps/unix/sysv/linux/bits/shm.h: Include <bits/shm-pad.h>.
11368 (shmatt_t): Define as __syscall_ulong_t.
11369 (__SHM_PAD_TIME): New macro, depending on [__SHM_PAD_BEFORE_TIME]
11370 and [__SHM_PAD_AFTER_TIME].
11371 (struct shmid_ds): Define time fields using __SHM_PAD_TIME.
11372 Define shm_segsz and associated padding based on
11373 [__SHM_SEGSZ_AFTER_TIME] and [__SHM_PAD_BETWEEN_TIME_AND_SEGSZ].
11374 Use __syscall_ulong_t instead of unsigned long int.
11375 [__USE_MISC] (struct shminfo): Use __syscall_ulong_t instead of
11376 unsigned long int.
11377 [__USE_MISC] (struct shm_info): Likewise.
11378 * sysdeps/unix/sysv/linux/bits/shm-pad.h: New file.
11379 * sysdeps/unix/sysv/linux/hppa/bits/shm-pad.h: Likewise.
11380 * sysdeps/unix/sysv/linux/mips/bits/shm-pad.h: Likewise.
11381 * sysdeps/unix/sysv/linux/powerpc/bits/shm-pad.h: Likewise.
11382 * sysdeps/unix/sysv/linux/sparc/bits/shm-pad.h: Likewise.
11383 * sysdeps/unix/sysv/linux/x86/bits/shm-pad.h: Likewise.
11384 * sysdeps/unix/sysv/linux/hppa/bits/shm.h: Remove.
11385 * sysdeps/unix/sysv/linux/mips/bits/shm.h: Likewise.
11386 * sysdeps/unix/sysv/linux/powerpc/bits/shm.h: Likewise.
11387 * sysdeps/unix/sysv/linux/sparc/bits/shm.h: Likewise.
11388 * sysdeps/unix/sysv/linux/x86/bits/shm.h: Likewise.
11389
11390 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
11391 bits/shmlba.h.
11392 * sysdeps/unix/sysv/linux/bits/shm.h: Include <bits/shmlba.h>.
11393 (SHMLBA): Remove macro.
11394 (__getpagesize): Remove function declaration.
11395 * sysdeps/unix/sysv/linux/hppa/bits/shm.h: Include
11396 <bits/shmlba.h>.
11397 (SHMLBA): Remove macro.
11398 * sysdeps/unix/sysv/linux/mips/bits/shm.h: Include
11399 <bits/shmlba.h>.
11400 (SHMLBA): Remove macro.
11401 * sysdeps/unix/sysv/linux/powerpc/bits/shm.h: Include
11402 <bits/shmlba.h>.
11403 (SHMLBA): Remove macro.
11404 (__getpagesize): Remove function declaration.
11405 * sysdeps/unix/sysv/linux/sparc/bits/shm.h: Include
11406 <bits/shmlba.h>.
11407 (SHMLBA): Remove macro.
11408 (__getshmlba): Remove function declaration.
11409 * sysdeps/unix/sysv/linux/x86/bits/shm.h: Include <bits/shmlba.h>.
11410 (SHMLBA): Remove macro.
11411 (__getpagesize): Remove function declaration.
11412 * sysdeps/unix/sysv/linux/arm/bits/shm.h: Remove file.
11413 * sysdeps/unix/sysv/linux/ia64/bits/shm.h: Likewise.
11414 * sysdeps/unix/sysv/linux/sh/bits/shm.h: Likewise.
11415 * sysdeps/unix/sysv/linux/bits/shmlba.h: New file.
11416 * sysdeps/unix/sysv/linux/arm/bits/shmlba.h: Likewise.
11417 * sysdeps/unix/sysv/linux/hppa/bits/shmlba.h: Likewise.
11418 * sysdeps/unix/sysv/linux/ia64/bits/shmlba.h: Likewise.
11419 * sysdeps/unix/sysv/linux/mips/bits/shmlba.h: Likewise.
11420 * sysdeps/unix/sysv/linux/sh/bits/shmlba.h: Likewise.
11421 * sysdeps/unix/sysv/linux/sparc/bits/shmlba.h: Likewise.
11422
11423 2018-10-17 Stefan Liebler <stli@linux.ibm.com>
11424
11425 [BZ #23275]
11426 * nptl/tst-mutex10.c: New File.
11427 * nptl/Makefile (tests): Add tst-mutex10.
11428 (tst-mutex10-ENV): New variable.
11429 * sysdeps/unix/sysv/linux/s390/force-elision.h: (FORCE_ELISION):
11430 Ensure that elision path is used if elision is available.
11431 * sysdeps/unix/sysv/linux/powerpc/force-elision.h (FORCE_ELISION):
11432 Likewise.
11433 * sysdeps/unix/sysv/linux/x86/force-elision.h: (FORCE_ELISION):
11434 Likewise.
11435 * nptl/pthreadP.h (PTHREAD_MUTEX_TYPE, PTHREAD_MUTEX_TYPE_ELISION)
11436 (PTHREAD_MUTEX_PSHARED): Use atomic_load_relaxed.
11437 * nptl/pthread_mutex_consistent.c (pthread_mutex_consistent): Likewise.
11438 * nptl/pthread_mutex_getprioceiling.c (pthread_mutex_getprioceiling):
11439 Likewise.
11440 * nptl/pthread_mutex_lock.c (__pthread_mutex_lock_full)
11441 (__pthread_mutex_cond_lock_adjust): Likewise.
11442 * nptl/pthread_mutex_setprioceiling.c (pthread_mutex_setprioceiling):
11443 Likewise.
11444 * nptl/pthread_mutex_timedlock.c (__pthread_mutex_timedlock): Likewise.
11445 * nptl/pthread_mutex_trylock.c (__pthread_mutex_trylock): Likewise.
11446 * nptl/pthread_mutex_unlock.c (__pthread_mutex_unlock_full): Likewise.
11447 * sysdeps/nptl/bits/thread-shared-types.h (struct __pthread_mutex_s):
11448 Add comments.
11449 * nptl/pthread_mutex_destroy.c (__pthread_mutex_destroy):
11450 Use atomic_load_relaxed and atomic_store_relaxed.
11451 * nptl/pthread_mutex_init.c (__pthread_mutex_init):
11452 Use atomic_store_relaxed.
11453
11454 2018-10-17 Andreas Schwab <schwab@suse.de>
11455
11456 * benchtests/bench-strtod.c (TIMEOUT): Don't define.
11457 * crypt/badsalttest.c (TIMEOUT): Likewise.
11458 * crypt/sha256c-test.c (TIMEOUT): Likewise.
11459 * dirent/tst-fdopendir.c (TIMEOUT): Likewise.
11460 * io/test-lfs.c (TIMEOUT): Likewise.
11461 * libio/tst-atime.c (TIMEOUT): Likewise.
11462 * localedata/tst-leaks.c (TIMEOUT): Likewise.
11463 * nptl/tst-cancel19.c (TIMEOUT): Likewise.
11464 * nptl/tst-cancel22.c (TIMEOUT): Likewise.
11465 * nptl/tst-cancel25.c (TIMEOUT): Likewise.
11466 * nptl/tst-cancel7.c (TIMEOUT): Likewise.
11467 * nptl/tst-cond-except.c (TIMEOUT): Likewise.
11468 * nptl/tst-cond11.c (TIMEOUT): Likewise.
11469 * nptl/tst-cond14.c (TIMEOUT): Likewise.
11470 * nptl/tst-cond15.c (TIMEOUT): Likewise.
11471 * nptl/tst-cond24.c (TIMEOUT): Likewise.
11472 * nptl/tst-cond25.c (TIMEOUT): Likewise.
11473 * nptl/tst-kill2.c (TIMEOUT): Likewise.
11474 * nptl/tst-kill3.c (TIMEOUT): Likewise.
11475 * nptl/tst-mutex4.c (TIMEOUT): Likewise.
11476 * nptl/tst-mutex5.c (TIMEOUT): Likewise.
11477 * nptl/tst-mutex9.c (TIMEOUT): Likewise.
11478 * nptl/tst-once2.c (TIMEOUT): Likewise.
11479 * nptl/tst-once3.c (TIMEOUT): Likewise.
11480 * nptl/tst-once4.c (TIMEOUT): Likewise.
11481 * nptl/tst-robust8.c (TIMEOUT): Likewise.
11482 * nptl/tst-robust9.c (TIMEOUT): Likewise.
11483 * nptl/tst-rwlock16.c (TIMEOUT): Likewise.
11484 * nptl/tst-sem14.c (TIMEOUT): Likewise.
11485 * nptl/tst-sem6.c (TIMEOUT): Likewise.
11486 * nptl/tst-signal3.c (TIMEOUT): Likewise.
11487 * nptl/tst-spin4.c (TIMEOUT): Likewise.
11488 * nptl/tst-tls3.c (TIMEOUT): Likewise.
11489 * nptl/tst-tls4.c (TIMEOUT): Likewise.
11490 * posix/tst-chmod.c (TIMEOUT): Likewise.
11491 * posix/tst-getaddrinfo4.c (TIMEOUT): Likewise.
11492 * posix/tst-getaddrinfo5.c (TIMEOUT): Likewise.
11493 * posix/tst-preadwrite-common.c (TIMEOUT): Likewise.
11494 * posix/tst-regex2.c (TIMEOUT): Likewise.
11495 * posix/tst-waitid.c (TIMEOUT): Likewise.
11496 * rt/tst-aio.c (TIMEOUT): Likewise.
11497 * rt/tst-aio10.c (TIMEOUT): Likewise.
11498 * rt/tst-aio4.c (TIMEOUT): Likewise.
11499 * rt/tst-aio5.c (TIMEOUT): Likewise.
11500 * rt/tst-aio6.c (TIMEOUT): Likewise.
11501 * rt/tst-aio64.c (TIMEOUT): Likewise.
11502 * rt/tst-aio7.c (TIMEOUT): Likewise.
11503 * rt/tst-aio9.c (TIMEOUT): Likewise.
11504 * rt/tst-clock.c (TIMEOUT): Likewise.
11505 * rt/tst-cpuclock1.c (TIMEOUT): Likewise.
11506 * rt/tst-cpuclock2.c (TIMEOUT): Likewise.
11507 * rt/tst-mqueue2.c (TIMEOUT): Likewise.
11508 * rt/tst-mqueue4.c (TIMEOUT): Likewise.
11509 * rt/tst-mqueue5.c (TIMEOUT): Likewise.
11510 * rt/tst-timer4.c (TIMEOUT): Likewise.
11511 * stdio-common/tst-fseek.c (TIMEOUT): Likewise.
11512 * stdio-common/tst-rndseek.c (TIMEOUT): Likewise.
11513 * stdlib/tst-empty-env.c (TIMEOUT): Likewise.
11514 * sysdeps/wordsize-64/tst-writev.c (TIMEOUT): Likewise.
11515 * time/tst-ftime.c (TIMEOUT): Likewise.
11516 * timezone/tst-tzset.c (TIMEOUT): Likewise.
11517
11518 2018-10-16 Anton Youdkevitch <anton.youdkevitch@bell-sw.com>
11519
11520 * sysdeps/aarch64/multiarch/memcpy_thunderx.S: Remove thunderx2 code.
11521 * sysdeps/aarch64/multiarch/memcpy_thunderx2.S: New implementation
11522 for thunderX2.
11523
11524 2018-10-15 Joseph Myers <joseph@codesourcery.com>
11525
11526 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
11527 bits/sem-pad.h.
11528 * sysdeps/unix/sysv/linux/bits/sem.h: Include <bits/sem-pad.h>
11529 instead of <bits/wordsize.h>.
11530 (__SEM_PAD_TIME): New macro, depending on [__SEM_PAD_BEFORE_TIME]
11531 and [__SEM_PAD_AFTER_TIME].
11532 (struct semid_ds): Define time fields using __SEM_PAD_TIME. Use
11533 __syscall_ulong_t instead of unsigned long int.
11534 * sysdeps/unix/sysv/linux/bits/sem-pad.h: New file.
11535 * sysdeps/unix/sysv/linux/hppa/bits/sem-pad.h: Likewise.
11536 * sysdeps/unix/sysv/linux/mips/bits/sem-pad.h: Likewise.
11537 * sysdeps/unix/sysv/linux/powerpc/bits/sem-pad.h: Likewise.
11538 * sysdeps/unix/sysv/linux/sparc/bits/sem-pad.h: Likewise.
11539 * sysdeps/unix/sysv/linux/x86/bits/sem-pad.h: Likewise.
11540 * sysdeps/unix/sysv/linux/hppa/bits/sem.h: Remove.
11541 * sysdeps/unix/sysv/linux/mips/bits/sem.h: Likewise.
11542 * sysdeps/unix/sysv/linux/powerpc/bits/sem.h: Likewise.
11543 * sysdeps/unix/sysv/linux/sparc/bits/sem.h: Likewise.
11544 * sysdeps/unix/sysv/linux/x86/bits/sem.h: Likewise.
11545
11546 2018-10-14 Paul Eggert <eggert@cs.ucla.edu>
11547
11548 regex: simplify by using intprops.h
11549 [BZ#23744]
11550 * posix/regex_internal.h [_LIBC]: Include intprops.h.
11551 (TYPE_SIGNED, INT_ADD_WRAPV) [_LIBC]: Remove.
11552 intprops.h defines them.
11553
11554 regex: __builtin_expect → __glibc_unlikely
11555 [BZ#23744]
11556 This refactoring was prompted by a problem when the regex code is
11557 used as part of Gnulib and when the builder’s compiler does not grok
11558 __builtin_expect. Problem reported for Gawk by Nelson H.F. Beebe in:
11559 https://lists.gnu.org/r/bug-gnulib/2018-09/msg00137.html
11560 Although this refactoring does not fix the problem directly,
11561 we might as well have Gawk use the now-preferred glibc style for when
11562 __builtin_expect is unavailable.
11563 * posix/regex_internal.h (BE): Remove.
11564 All uses replaced by __glibc_unlikely or __glibc_likely.
11565
11566 2018-10-11 Joseph Myers <joseph@codesourcery.com>
11567
11568 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
11569 bits/msq-pad.h.
11570 * sysdeps/unix/sysv/linux/bits/msq.h: Include <bits/msq-pad.h>
11571 instead of <bits/wordsize.h>.
11572 (msgqnum_t): Define as __syscall_ulong_t.
11573 (msglen_t): Likewise.
11574 (__MSQ_PAD_TIME): New macro, depending on [__MSQ_PAD_BEFORE_TIME]
11575 and [__MSQ_PAD_AFTER_TIME].
11576 (struct msqid_ds): Define time fields using __MSQ_PAD_TIME. Use
11577 __syscall_ulong_t instead of unsigned long int.
11578 * sysdeps/unix/sysv/linux/bits/msq-pad.h: New file.
11579 * sysdeps/unix/sysv/linux/hppa/bits/msq-pad.h: Likewise.
11580 * sysdeps/unix/sysv/linux/mips/bits/msq-pad.h: Likewise.
11581 * sysdeps/unix/sysv/linux/powerpc/bits/msq-pad.h: Likewise.
11582 * sysdeps/unix/sysv/linux/sparc/bits/msq-pad.h: Likewise.
11583 * sysdeps/unix/sysv/linux/x86/bits/msq-pad.h: Likewise.
11584 * sysdeps/unix/sysv/linux/hppa/bits/msq.h: Remove.
11585 * sysdeps/unix/sysv/linux/mips/bits/msq.h: Likewise.
11586 * sysdeps/unix/sysv/linux/powerpc/bits/msq.h: Likewise.
11587 * sysdeps/unix/sysv/linux/sparc/bits/msq.h: Likewise.
11588 * sysdeps/unix/sysv/linux/x86/bits/msq.h: Likewise.
11589
11590 2018-10-10 Joseph Myers <joseph@codesourcery.com>
11591
11592 * sysdeps/unix/sysv/linux/bits/shm.h: Include <bits/wordsize.h>.
11593 (struct shmid_ds): Condition padding after time fields on
11594 [__WORDSIZE == 32].
11595 * sysdeps/unix/sysv/linux/alpha/bits/shm.h: Remove file.
11596 * sysdeps/unix/sysv/linux/generic/bits/shm.h: Likewise.
11597 * sysdeps/unix/sysv/linux/s390/bits/shm.h: Likewise.
11598
11599 * sysdeps/unix/sysv/linux/bits/sem.h: Include <bits/wordsize.h>.
11600 (struct semid_ds): Condition padding after time fields on
11601 [__WORDSIZE == 32].
11602 * sysdeps/unix/sysv/linux/alpha/bits/sem.h: Remove file.
11603 * sysdeps/unix/sysv/linux/generic/bits/sem.h: Likewise.
11604 * sysdeps/unix/sysv/linux/ia64/bits/sem.h: Likewise.
11605 * sysdeps/unix/sysv/linux/s390/bits/sem.h: Likewise.
11606
11607 * sysdeps/unix/sysv/linux/bits/msq.h: Include <bits/wordsize.h>.
11608 (struct msqid_ds): Condition padding after time fields on
11609 [__WORDSIZE == 32].
11610 * sysdeps/unix/sysv/linux/alpha/bits/msq.h: Remove file.
11611 * sysdeps/unix/sysv/linux/generic/bits/msq.h: Likewise.
11612 * sysdeps/unix/sysv/linux/ia64/bits/msq.h: Likewise.
11613 * sysdeps/unix/sysv/linux/s390/bits/msq.h: Likewise.
11614
11615 2018-10-09 Szabolcs Nagy <szabolcs.nagy@arm.com>
11616
11617 * nss/tst-nss-files-hosts-multi.c (TIMEOUT): Define.
11618
11619 2018-10-09 Szabolcs Nagy <szabolcs.nagy@arm.com>
11620
11621 * libio/tst-readline.c (TIMEOUT): Define.
11622
11623 2018-10-08 Paul Eggert <eggert@cs.ucla.edu>
11624
11625 mktime fix for Gnulib + coreutils
11626 [BZ#23745]
11627 This fix affects only Gnulib. Problem discovered when
11628 mktime.c was used as part of Gnulib in bleeding-edge Coreutils.
11629 * time/mktime.c:
11630 (my_tzset) [!_LIBC && !NEED_MKTIME_WORKING && !NEED_MKTIME_WINDOWS]:
11631 Do not define since it is not used. Defining an unused static
11632 function prompts a warning from GCC when Coreutils is configured
11633 with --enable-gcc-warnings.
11634
11635 2018-10-08 Leonardo Sandoval <leonardo.sandoval.gonzalez@intel.com>
11636
11637 * benchtests/scripts/compare_bench.py (main): set float type on
11638 threshold argument.
11639
11640 2018-10-08 Rafał Lużyński <digitalfreak@lingonborough.com>
11641
11642 [BZ #23740]
11643 * localedata/locales/kl_GL (mon): Update, the relative case.
11644 (alt_mon): Add, fill with month names in the nominative case.
11645 (d_t_fmt): Set to "%a %b %d %Y %T %Z".
11646 (d_fmt): Set to "%b %d %Y".
11647
11648 2018-10-04 Joseph Myers <joseph@codesourcery.com>
11649
11650 * sysdeps/unix/sysv/linux/hppa/bits/mman.h: Include
11651 <bits/mman-linux.h>.
11652 (PROT_READ): Don't define here.
11653 (PROT_WRITE): Likewise.
11654 (PROT_EXEC): Likewise.
11655 (PROT_NONE): Likewise.
11656 (PROT_GROWSDOWN): Likewise.
11657 (PROT_GROWSUP): Likewise.
11658 (MAP_SHARED): Likewise.
11659 (MAP_PRIVATE): Likewise.
11660 [__USE_MISC] (MAP_SHARED_VALIDATE): Likewise.
11661 [__USE_MISC] (MAP_FILE): Likewise.
11662 [__USE_MISC] (MAP_ANONYMOUS): Likewise.
11663 [__USE_MISC] (MAP_ANON): Likewise.
11664 [__USE_MISC] (MAP_HUGE_SHIFT): Likewise.
11665 [__USE_MISC] (MAP_HUGE_MASK): Likewise.
11666 (MCL_CURRENT): Likewise.
11667 (MCL_FUTURE): Likewise.
11668 (MCL_ONFAULT): Likewise.
11669 [__USE_MISC] (MADV_NORMAL): Likewise.
11670 [__USE_MISC] (MADV_RANDOM): Likewise.
11671 [__USE_MISC] (MADV_SEQUENTIAL): Likewise.
11672 [__USE_MISC] (MADV_WILLNEED): Likewise.
11673 [__USE_MISC] (MADV_DONTNEED): Likewise.
11674 [__USE_MISC] (MADV_FREE): Likewise.
11675 [__USE_MISC] (MADV_REMOVE): Likewise.
11676 [__USE_MISC] (MADV_DONTFORK): Likewise.
11677 [__USE_MISC] (MADV_DOFORK): Likewise.
11678 [__USE_MISC] (MADV_HWPOISON): Likewise.
11679 [__USE_XOPEN2K] (POSIX_MADV_NORMAL): Likewise.
11680 [__USE_XOPEN2K] (POSIX_MADV_RANDOM): Likewise.
11681 [__USE_XOPEN2K] (POSIX_MADV_SEQUENTIAL): Likewise.
11682 [__USE_XOPEN2K] (POSIX_MADV_WILLNEED): Likewise.
11683 [__USE_XOPEN2K] (POSIX_MADV_DONTNEED): Likewise.
11684 (__MAP_ANONYMOUS): New macro.
11685 [__USE_MISC] (MAP_TYPE): Undefine and redefine after
11686 <bits/mman-linux.h> inclusion.
11687 (MAP_FIXED): Likewise.
11688 (MS_SYNC): Likewise.
11689 (MS_ASYNC): Likewise.
11690 (MS_INVALIDATE): Likewise.
11691 [__USE_MISC] (MADV_MERGEABLE): Likewise.
11692 [__USE_MISC] (MADV_UNMERGEABLE): Likewise.
11693 [__USE_MISC] (MADV_HUGEPAGE): Likewise.
11694 [__USE_MISC] (MADV_NOHUGEPAGE): Likewise.
11695 [__USE_MISC] (MADV_DONTDUMP): Likewise.
11696 [__USE_MISC] (MADV_DODUMP): Likewise.
11697 [__USE_MISC] (MADV_WIPEONFORK): Likewise.
11698 [__USE_MISC] (MADV_KEEPONFORK): Likewise.
11699
11700 [BZ #23735]
11701 * sysdeps/ieee754/ldbl-opt/nldbl-compat.h (NO_MATH_REDIRECT):
11702 Define.
11703 * sysdeps/ieee754/ldbl-opt/test-nldbl-redirect.c: New file.
11704 * sysdeps/ieee754/ldbl-opt/Makefile [$(subdir) = math] (tests):
11705 Add test-nldbl-redirect.
11706 [$(subdir) = math] (CFLAGS-test-nldbl-redirect.c): New variable.
11707 [$(subdir) = math] ($(objpfx)test-nldbl-redirect): Depend on
11708 $(objpfx)libnldbl_nonshared.a.
11709
11710 2018-10-04 Stefan Liebler <stli@linux.ibm.com>
11711
11712 * support/support.h (support_objdir_elf_ldso): New variable.
11713 * support/support_paths.c (support_objdir_elf_ldso): Likewise.
11714 * support/Makefile (CFLAGS-support_paths.c): Add definition
11715 for OBJDIR_ELF_LDSO_PATH.
11716 * support/test-container.c (main): Search for the ld.so
11717 which is also used by the testsuite.
11718
11719 2018-10-02 Rafał Lużyński <digitalfreak@lingonborough.com>
11720
11721 [BZ #20209]
11722 * localedata/locales/kl_GL: (abday): Fix spelling of Sun (Sunday),
11723 should be "sap" rather than "sab".
11724 (day): Fix spelling of Sunday, should be "sapaat" rather than
11725 "sabaat".
11726
11727 2018-10-02 Joseph Myers <joseph@codesourcery.com>
11728
11729 * math/libm-test-fma.inc (fma_test_data): Add more tests.
11730
11731 2018-10-02 Martin Jansa <Martin.Jansa@gmail.com>
11732
11733 [BZ #19444]
11734 * sysdeps/ieee754/soft-fp/s_fdiv.c: Include <libc-diag.h> and use
11735 DIAG_PUSH_NEEDS_COMMENT, DIAG_IGNORE_NEEDS_COMMENT and
11736 DIAG_POP_NEEDS_COMMENT to disable -Wmaybe-uninitialized.
11737
11738 2018-10-02 Adhemerval Zanella <adhemerval.zanella@linaro.org>
11739
11740 * sysdeps/unix/sysv/linux/fd_to_filename.h: Add missing includes.
11741
11742 2018-10-02 H.J. Lu <hongjiu.lu@intel.com>
11743
11744 * sysdeps/unix/sysv/linux/x86/Makefile (CFLAGS-elision-lock.c):
11745 Add -mrtm.
11746 (CFLAGS-elision-unlock.c): Likewise.
11747 (CFLAGS-elision-timed.c): Likewise.
11748 (CFLAGS-elision-trylock.c): Likewise.
11749 * sysdeps/unix/sysv/linux/x86/hle.h: Rewritten.
11750
11751 2018-10-02 Adhemerval Zanella <adhemerval.zanella@linaro.org>
11752
11753 [BZ #21037]
11754 * libio/Makefile (tests): Add tst-memstream4 and tst-wmemstream4.
11755 * libio/freopen.c (freopen): Sync stream before reopen and adjust to
11756 new fd_to_filename interface.
11757 * libio/freopen64.c (freopen64): Likewise.
11758 * libio/tst-memstream.h: New file.
11759 * libio/tst-memstream4.c: Likewise.
11760 * libio/tst-wmemstream4.c: Likewise.
11761 * sysdeps/generic/fd_to_filename.h (fd_to_filename): Change signature.
11762 * sysdeps/unix/sysv/linux/fd_to_filename.h (fd_to_filename): Likewise
11763 and remove internal dynamic allocation.
11764
11765 2018-10-01 Joseph Myers <joseph@codesourcery.com>
11766
11767 * sysdeps/unix/sysv/linux/bits/mman-linux.h [__USE_GNU]
11768 (MREMAP_MAYMOVE): Do not define here.
11769 [__USE_GNU] (MREMAP_FIXED): Likewise.
11770 * sysdeps/unix/sysv/linux/bits/mman-shared.h [__USE_GNU]
11771 (MREMAP_MAYMOVE): Define here instead.
11772 [__USE_GNU] (MREMAP_FIXED): Likewise.
11773 * sysdeps/unix/sysv/linux/hppa/bits/mman.h [__USE_GNU]
11774 (MREMAP_MAYMOVE): Remove.
11775 [__USE_GNU] (MREMAP_FIXED): Likewise.
11776
11777 2018-09-28 Joseph Myers <joseph@codesourcery.com>
11778
11779 * math/fromfp.h: Do not include <math_private.h>.
11780 * math/s_cacosh_template.c: Likewise.
11781 * math/s_casin_template.c: Likewise.
11782 * math/s_casinh_template.c: Likewise.
11783 * math/s_ccos_template.c: Likewise.
11784 * math/s_cproj_template.c: Likewise.
11785 * math/s_fdim_template.c: Likewise.
11786 * math/s_fmaxmag_template.c: Likewise.
11787 * math/s_fminmag_template.c: Likewise.
11788 * math/s_iseqsig_template.c: Likewise.
11789 * math/s_ldexp_template.c: Likewise.
11790 * math/s_nextdown_template.c: Likewise.
11791 * math/w_log1p_template.c: Likewise.
11792 * math/w_scalbln_template.c: Likewise.
11793 * sysdeps/aarch64/fpu/feholdexcpt.c: Likewise.
11794 * sysdeps/aarch64/fpu/fesetround.c: Likewise.
11795 * sysdeps/aarch64/fpu/fgetexcptflg.c: Likewise.
11796 * sysdeps/aarch64/fpu/ftestexcept.c: Likewise.
11797 * sysdeps/aarch64/fpu/s_llrint.c: Likewise.
11798 * sysdeps/aarch64/fpu/s_llrintf.c: Likewise.
11799 * sysdeps/aarch64/fpu/s_lrint.c: Likewise.
11800 * sysdeps/aarch64/fpu/s_lrintf.c: Likewise.
11801 * sysdeps/i386/fpu/s_atanl.c: Likewise.
11802 * sysdeps/i386/fpu/s_f32xaddf64.c: Likewise.
11803 * sysdeps/i386/fpu/s_f32xsubf64.c: Likewise.
11804 * sysdeps/i386/fpu/s_fdim.c: Likewise.
11805 * sysdeps/i386/fpu/s_logbl.c: Likewise.
11806 * sysdeps/i386/fpu/s_rintl.c: Likewise.
11807 * sysdeps/i386/fpu/s_significandl.c: Likewise.
11808 * sysdeps/ia64/fpu/s_matherrf.c: Likewise.
11809 * sysdeps/ia64/fpu/s_matherrl.c: Likewise.
11810 * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
11811 * sysdeps/ieee754/dbl-64/s_cbrt.c: Likewise.
11812 * sysdeps/ieee754/dbl-64/s_fma.c: Likewise.
11813 * sysdeps/ieee754/dbl-64/s_fmaf.c: Likewise.
11814 * sysdeps/ieee754/flt-32/s_cbrtf.c: Likewise.
11815 * sysdeps/ieee754/k_standardf.c: Likewise.
11816 * sysdeps/ieee754/k_standardl.c: Likewise.
11817 * sysdeps/ieee754/ldbl-128ibm/s_copysignl.c: Likewise.
11818 * sysdeps/ieee754/ldbl-64-128/s_finitel.c: Likewise.
11819 * sysdeps/ieee754/ldbl-64-128/s_fpclassifyl.c: Likewise.
11820 * sysdeps/ieee754/ldbl-64-128/s_isinfl.c: Likewise.
11821 * sysdeps/ieee754/ldbl-64-128/s_isnanl.c: Likewise.
11822 * sysdeps/ieee754/ldbl-64-128/s_signbitl.c: Likewise.
11823 * sysdeps/ieee754/ldbl-96/s_cbrtl.c: Likewise.
11824 * sysdeps/ieee754/ldbl-96/s_fma.c: Likewise.
11825 * sysdeps/ieee754/ldbl-96/s_fmal.c: Likewise.
11826 * sysdeps/ieee754/s_signgam.c: Likewise.
11827 * sysdeps/powerpc/power5+/fpu/s_modf.c: Likewise.
11828 * sysdeps/powerpc/power5+/fpu/s_modff.c: Likewise.
11829 * sysdeps/powerpc/power7/fpu/s_logbf.c: Likewise.
11830 * sysdeps/riscv/rv64/rvd/s_ceil.c: Likewise.
11831 * sysdeps/riscv/rv64/rvd/s_floor.c: Likewise.
11832 * sysdeps/riscv/rv64/rvd/s_nearbyint.c: Likewise.
11833 * sysdeps/riscv/rv64/rvd/s_round.c: Likewise.
11834 * sysdeps/riscv/rv64/rvd/s_roundeven.c: Likewise.
11835 * sysdeps/riscv/rv64/rvd/s_trunc.c: Likewise.
11836 * sysdeps/riscv/rvd/s_finite.c: Likewise.
11837 * sysdeps/riscv/rvd/s_fmax.c: Likewise.
11838 * sysdeps/riscv/rvd/s_fmin.c: Likewise.
11839 * sysdeps/riscv/rvd/s_fpclassify.c: Likewise.
11840 * sysdeps/riscv/rvd/s_isinf.c: Likewise.
11841 * sysdeps/riscv/rvd/s_isnan.c: Likewise.
11842 * sysdeps/riscv/rvd/s_issignaling.c: Likewise.
11843 * sysdeps/riscv/rvf/fegetround.c: Likewise.
11844 * sysdeps/riscv/rvf/feholdexcpt.c: Likewise.
11845 * sysdeps/riscv/rvf/fesetenv.c: Likewise.
11846 * sysdeps/riscv/rvf/fesetround.c: Likewise.
11847 * sysdeps/riscv/rvf/feupdateenv.c: Likewise.
11848 * sysdeps/riscv/rvf/fgetexcptflg.c: Likewise.
11849 * sysdeps/riscv/rvf/ftestexcept.c: Likewise.
11850 * sysdeps/riscv/rvf/s_ceilf.c: Likewise.
11851 * sysdeps/riscv/rvf/s_finitef.c: Likewise.
11852 * sysdeps/riscv/rvf/s_floorf.c: Likewise.
11853 * sysdeps/riscv/rvf/s_fmaxf.c: Likewise.
11854 * sysdeps/riscv/rvf/s_fminf.c: Likewise.
11855 * sysdeps/riscv/rvf/s_fpclassifyf.c: Likewise.
11856 * sysdeps/riscv/rvf/s_isinff.c: Likewise.
11857 * sysdeps/riscv/rvf/s_isnanf.c: Likewise.
11858 * sysdeps/riscv/rvf/s_issignalingf.c: Likewise.
11859 * sysdeps/riscv/rvf/s_nearbyintf.c: Likewise.
11860 * sysdeps/riscv/rvf/s_roundevenf.c: Likewise.
11861 * sysdeps/riscv/rvf/s_roundf.c: Likewise.
11862 * sysdeps/riscv/rvf/s_truncf.c: Likewise.
11863 * sysdeps/riscv/rv64/rvd/s_rint.c: Include <stdbool.h> instead of
11864 <math_private.h>.
11865 * sysdeps/riscv/rvf/s_rintf.c: Likewise.
11866
11867 2018-09-28 H.J. Lu <hongjiu.lu@intel.com>
11868
11869 [BZ #23716]
11870 * sysdeps/i386/dl-cet.c: Removed.
11871 * sysdeps/i386/dl-machine.h (_dl_runtime_resolve_shstk): New
11872 prototype.
11873 (_dl_runtime_profile_shstk): Likewise.
11874 (elf_machine_runtime_setup): Use _dl_runtime_profile_shstk or
11875 _dl_runtime_resolve_shstk if SHSTK is enabled by kernel.
11876
11877 2018-09-28 Adhemerval Zanella <adhemerval.zanella@linaro.org>
11878
11879 [BZ #23579]
11880 * misc/tst-preadvwritev2-common.c (do_test_with_invalid_fd,
11881 do_test_with_invalid_iov): New tests.
11882 * misc/tst-preadvwritev2.c, misc/tst-preadvwritev64v2.c (do_test):
11883 Call do_test_with_invalid_fd and do_test_with_invalid_iov.
11884 * sysdeps/unix/sysv/linux/preadv2.c (preadv2): Use fallback code iff
11885 errno is ENOSYS.
11886 * sysdeps/unix/sysv/linux/preadv64v2.c (preadv64v2): Likewise.
11887 * sysdeps/unix/sysv/linux/pwritev2.c (pwritev2): Likewise.
11888 * sysdeps/unix/sysv/linux/pwritev64v2.c (pwritev64v2): Likewise.
11889
11890 2018-09-27 Joseph Myers <joseph@codesourcery.com>
11891
11892 * include/math.h [!_ISOMAC && !(__FINITE_MATH_ONLY__ &&
11893 __FINITE_MATH_ONLY__ > 0) && !NO_MATH_REDIRECT]
11894 (MATH_REDIRECT_BINARY_ARGS): New macro.
11895 [!_ISOMAC && !(__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0)
11896 && !NO_MATH_REDIRECT] (copysign): Redirect using MATH_REDIRECT.
11897 * sysdeps/alpha/fpu/s_copysign.c: Define NO_MATH_REDIRECT before
11898 header inclusion.
11899 * sysdeps/alpha/fpu/s_copysignf.c: Likewise.
11900 * sysdeps/ieee754/dbl-64/s_copysign.c: Likewise.
11901 * sysdeps/ieee754/float128/s_copysignf128.c: Likewise.
11902 * sysdeps/ieee754/flt-32/s_copysignf.c: Likewise.
11903 * sysdeps/ieee754/ldbl-128/s_copysignl.c: Likewise.
11904 * sysdeps/ieee754/ldbl-128ibm/s_copysignl.c: Likewise.
11905 * sysdeps/ieee754/ldbl-96/s_copysignl.c: Likewise.
11906 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_copysign.c:
11907 Likewise.
11908 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_copysignf.c:
11909 Likewise.
11910 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysign.c: Likewise.
11911 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysignf.c: Likewise.
11912 * sysdeps/riscv/rvd/s_copysign.c: Likewise.
11913 * sysdeps/riscv/rvf/s_copysignf.c: Likewise.
11914 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.c:
11915 Likewise.
11916 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf.c:
11917 Likewise.
11918 * sysdeps/generic/math_private_calls.h
11919 [!__MATH_DECLARING_LONG_DOUBLE || !NO_LONG_DOUBLE] (__copysign):
11920 Do not declare and define as an inline function.
11921 * math/divtc3.c (__divtc3): Use copysign functions instead of
11922 __copysign variants.
11923 * math/multc3.c (__multc3): Likewise.
11924 * sysdeps/generic/math-type-macros.h (M_COPYSIGN): Likewise.
11925 * sysdeps/ieee754/dbl-64/e_atan2.c (signArctan2): Likewise.
11926 * sysdeps/ieee754/dbl-64/e_atanh.c (__ieee754_atanh): Likewise.
11927 * sysdeps/ieee754/dbl-64/e_gamma_r.c (__ieee754_gamma_r):
11928 Likewise.
11929 * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_jn): Likewise.
11930 (__ieee754_yn): Likewise.
11931 * sysdeps/ieee754/dbl-64/s_asinh.c (__asinh): Likewise.
11932 * sysdeps/ieee754/dbl-64/s_atan.c (__signArctan): Likewise.
11933 * sysdeps/ieee754/dbl-64/s_scalbln.c (__scalbln): Likewise.
11934 * sysdeps/ieee754/dbl-64/s_scalbn.c (__scalbn): Likewise.
11935 * sysdeps/ieee754/dbl-64/s_sin.c (do_sin): Likewise.
11936 (__sin): Likewise.
11937 * sysdeps/ieee754/dbl-64/s_sincos.c (__sincos): Likewise.
11938 * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c (__nearbyint):
11939 Likewise.
11940 * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbln.c (__scalbln):
11941 Likewise.
11942 * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbn.c (__scalbn):
11943 Likewise.
11944 * sysdeps/ieee754/flt-32/e_atanhf.c (__ieee754_atanhf): Likewise.
11945 * sysdeps/ieee754/flt-32/e_gammaf_r.c (__ieee754_gammaf_r):
11946 Likewise.
11947 * sysdeps/ieee754/flt-32/e_jnf.c (__ieee754_jnf): Likewise.
11948 (__ieee754_ynf): Likewise.
11949 * sysdeps/ieee754/flt-32/s_asinhf.c (__asinhf): Likewise.
11950 * sysdeps/ieee754/flt-32/s_scalbnf.c (__scalbnf): Likewise.
11951 * sysdeps/ieee754/k_standard.c (__kernel_standard): Likewise.
11952 * sysdeps/ieee754/ldbl-128/e_gammal_r.c (__ieee754_gammal_r):
11953 Likewise.
11954 * sysdeps/ieee754/ldbl-128/e_jnl.c (__ieee754_jnl): Likewise.
11955 (__ieee754_ynl): Likewise.
11956 * sysdeps/ieee754/ldbl-128/s_scalblnl.c (__scalblnl): Likewise.
11957 * sysdeps/ieee754/ldbl-128/s_scalbnl.c (__scalbnl): Likewise.
11958 * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (__ieee754_gammal_r):
11959 Likewise.
11960 * sysdeps/ieee754/ldbl-128ibm/e_jnl.c (__ieee754_jnl): Likewise.
11961 (__ieee754_ynl): Likewise.
11962 * sysdeps/ieee754/ldbl-128ibm/s_fmal.c (__fmal): Likewise.
11963 * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c (__scalblnl): Likewise.
11964 * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c (__scalbnl): Likewise.
11965 * sysdeps/ieee754/ldbl-96/e_gammal_r.c (__ieee754_gammal_r):
11966 Likewise.
11967 * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_jnl): Likewise.
11968 (__ieee754_ynl)
11969 * sysdeps/ieee754/ldbl-96/s_asinhl.c (__asinhl): Likewise.
11970 * sysdeps/ieee754/ldbl-96/s_scalblnl.c (__scalblnl): Likewise.
11971 * sysdeps/ieee754/ldbl-opt/nldbl-copysign.c (copysignl): Likewise.
11972 * sysdeps/powerpc/power5+/fpu/s_modf.c (__modf): Likewise.
11973 * sysdeps/powerpc/power5+/fpu/s_modff.c (__modff): Likewise.
11974
11975 * include/math.h [!_ISOMAC && !(__FINITE_MATH_ONLY__ &&
11976 __FINITE_MATH_ONLY__ > 0) && !NO_MATH_REDIRECT] (round): Redirect
11977 using MATH_REDIRECT.
11978 * sysdeps/aarch64/fpu/s_round.c: Define NO_MATH_REDIRECT before
11979 header inclusion.
11980 * sysdeps/aarch64/fpu/s_roundf.c: Likewise.
11981 * sysdeps/ieee754/dbl-64/s_round.c: Likewise.
11982 * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c: Likewise.
11983 * sysdeps/ieee754/float128/s_roundf128.c: Likewise.
11984 * sysdeps/ieee754/flt-32/s_roundf.c: Likewise.
11985 * sysdeps/ieee754/ldbl-128/s_roundl.c: Likewise.
11986 * sysdeps/ieee754/ldbl-96/s_roundl.c: Likewise.
11987 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_round.c: Likewise.
11988 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_roundf.c: Likewise.
11989 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_round.c: Likewise.
11990 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_roundf.c: Likewise.
11991 * sysdeps/riscv/rv64/rvd/s_round.c: Likewise.
11992 * sysdeps/riscv/rvf/s_roundf.c: Likewise.
11993 * sysdeps/ieee754/ldbl-128ibm/s_roundl.c: Likewise.
11994 (round): Redirect to __round.
11995 (__roundl): Call round instead of __round.
11996 * sysdeps/powerpc/fpu/math_private.h [_ARCH_PWR5X] (__round):
11997 Remove macro.
11998 [_ARCH_PWR5X] (__roundf): Likewise.
11999 * sysdeps/ieee754/dbl-64/e_gamma_r.c (gamma_positive): Use round
12000 functions instead of __round variants.
12001 * sysdeps/ieee754/flt-32/e_gammaf_r.c (gammaf_positive): Likewise.
12002 * sysdeps/ieee754/ldbl-128/e_gammal_r.c (gammal_positive):
12003 Likewise.
12004 * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (gammal_positive):
12005 Likewise.
12006 * sysdeps/ieee754/ldbl-96/e_gammal_r.c (gammal_positive):
12007 Likewise.
12008 * sysdeps/x86/fpu/powl_helper.c (__powl_helper): Likewise.
12009 * sysdeps/ieee754/ldbl-128ibm/e_expl.c (lroundl): Redirect to
12010 __lroundl.
12011 (__ieee754_expl): Call roundl instead of __roundl.
12012
12013 2018-09-27 Andreas Schwab <schwab@suse.de>
12014
12015 [BZ #23717]
12016 * stdlib/tst-setcontext9.c (f1a): Make st2 static.
12017 (do_test): Make st1 static.
12018
12019 2018-09-26 Andreas Schwab <schwab@suse.de>
12020
12021 [BZ #23707]
12022 * sysdeps/powerpc/powerpc32/dl-start.S: Add unwind information.
12023 * elf/Makefile (tests): Add tst-unwind-ctor.
12024 (modules-names): Add tst-unwind-ctor-lib.
12025 ($(objpfx)tst-unwind-ctor): Depend on
12026 $(objpfx)tst-unwind-ctor-lib.so.
12027
12028 2018-09-26 Joseph Myers <joseph@codesourcery.com>
12029
12030 * sysdeps/unix/sysv/linux/bits/mman-map-flags-generic.h: New
12031 file. Most contents moved from ....
12032 * sysdeps/unix/sysv/linux/bits/mman.h: ... here. Move contents to
12033 and include <bits/mman-map-flags-generic.h>.
12034 * sysdeps/unix/sysv/linux/Makefile [$(subdir) = misc]
12035 (sysdep_headers): Add bits/mman-map-flags-generic.h.
12036 * sysdeps/unix/sysv/linux/ia64/bits/mman.h: Include
12037 <bits/mman-map-flags-generic.h>.
12038 [__USE_MISC] (MAP_GROWSUP): Only define this macro, not other
12039 macros defined in <bits/mman-map-flags-generic.h>.
12040 * sysdeps/unix/sysv/linux/x86/bits/mman.h: Include
12041 <bits/mman-map-flags-generic.h>.
12042 [__USE_MISC] (MAP_32BIT): Only define this macro, not other macros
12043 defined in <bits/mman-map-flags-generic.h>.
12044
12045 2018-09-26 Andreas Schwab <schwab@suse.de>
12046
12047 * Makefile ($(common-objpfx)testrun.sh): Remove leading space from
12048 output.
12049
12050 2018-09-25 Adam J. Richte <adam_richter2004@yahoo.com>
12051 Adhemerval Zanella <adhemerval.zanella@linaro.org>
12052 Fangrui Song <maskray@google.com>
12053
12054 [BZ #20480]
12055 * config.make.in (have-textrel_ifunc): New define.
12056 * configure.ac: Add check if linker supports textrel relocation with
12057 ifunc.
12058 * elf/Makefile [have-textrel_ifunc == yes] (ifunc-pie-tests): Add
12059 tst-ifunc-textrel.
12060 (CFLAGS-tst-ifunc-textrel.c): New rule.
12061 * elf/dl-reloc.c (_dl_relocate_object): Use all required flags on
12062 DT_TEXTREL segments, not only PROT_READ and PROT_WRITE.
12063 * elf/tst-ifunc-textrel.c: New file.
12064
12065 2018-09-25 Joseph Myers <joseph@codesourcery.com>
12066
12067 * sysdeps/unix/sysv/linux/sys/procfs.h: Include
12068 <bits/procfs-prregset.h>.
12069 (prgregset_t): Define using __prgregset_t.
12070 (prfpregset_t): Define using __prfpregset_t.
12071 * sysdeps/unix/sysv/linux/Makefile [$(subdir) = misc]
12072 (sysdep_headers): Add bits/procfs-prregset.h.
12073 * sysdeps/unix/sysv/linux/bits/procfs-prregset.h: New file.
12074 * sysdeps/unix/sysv/linux/alpha/bits/procfs-prregset.h: Likewise.
12075 * sysdeps/unix/sysv/linux/alpha/bits/procfs.h: Likewise.
12076 * sysdeps/unix/sysv/linux/alpha/sys/procfs.h: Remove file.
12077
12078 * sysdeps/unix/sysv/linux/sys/procfs.h: Include
12079 <bits/procfs-id.h> and <bits/procfs-extra.h>.
12080 (struct elf_prpsinfo): Use __pr_uid_t and __pr_gid_t as types of
12081 pr_uid and pr_gid.
12082 * sysdeps/unix/sysv/linux/Makefile [$(subdir) = misc]
12083 (sysdep_headers): Add bits/procfs-id.h and bits/procfs-extra.h.
12084 * sysdeps/unix/sysv/linux/bits/procfs-extra.h: New file.
12085 * sysdeps/unix/sysv/linux/bits/procfs-id.h: Likewise.
12086 * sysdeps/unix/sysv/linux/arm/bits/procfs-id.h: Likewise.
12087 * sysdeps/unix/sysv/linux/arm/bits/procfs.h: Likewise.
12088 * sysdeps/unix/sysv/linux/m68k/bits/procfs-id.h: Likewise.
12089 * sysdeps/unix/sysv/linux/m68k/bits/procfs.h: Likewise.
12090 * sysdeps/unix/sysv/linux/s390/bits/procfs-extra.h: Likewise.
12091 * sysdeps/unix/sysv/linux/s390/bits/procfs-id.h: Likewise.
12092 * sysdeps/unix/sysv/linux/s390/bits/procfs.h: Likewise.
12093 * sysdeps/unix/sysv/linux/sh/bits/procfs-id.h: Likewise.
12094 * sysdeps/unix/sysv/linux/sh/bits/procfs.h: Likewise.
12095 * sysdeps/unix/sysv/linux/sparc/bits/procfs-extra.h: Likewise.
12096 * sysdeps/unix/sysv/linux/sparc/bits/procfs-id.h: Likewise.
12097 * sysdeps/unix/sysv/linux/sparc/bits/procfs.h: Likewise.
12098 * sysdeps/unix/sysv/linux/x86/bits/procfs-id.h: Likewise.
12099 * sysdeps/unix/sysv/linux/x86/bits/procfs.h: Likewise.
12100 * sysdeps/unix/sysv/linux/arm/sys/procfs.h: Remove file.
12101 * sysdeps/unix/sysv/linux/m68k/sys/procfs.h: Likewise.
12102 * sysdeps/unix/sysv/linux/s390/sys/procfs.h: Likewise.
12103 * sysdeps/unix/sysv/linux/sh/sys/procfs.h: Likewise.
12104 * sysdeps/unix/sysv/linux/sparc/sys/procfs.h: Likewise.
12105 * sysdeps/unix/sysv/linux/x86/sys/procfs.h: Likewise.
12106
12107 * sysdeps/unix/sysv/linux/sys/procfs.h: Replace with file based on
12108 AArch64 version. Include <bits/procfs.h>.
12109 * sysdeps/unix/sysv/linux/Makefile [$(subdir) = misc]
12110 (sysdep_headers): Add bits/procfs.h.
12111 * sysdeps/unix/sysv/linux/bits/procfs.h: New file.
12112 * sysdeps/unix/sysv/linux/aarch64/bits/procfs.h: Likewise.
12113 * sysdeps/unix/sysv/linux/hppa/bits/procfs.h: Likewise.
12114 * sysdeps/unix/sysv/linux/ia64/bits/procfs.h: Likewise.
12115 * sysdeps/unix/sysv/linux/microblaze/bits/procfs.h: Likewise.
12116 * sysdeps/unix/sysv/linux/mips/bits/procfs.h: Likewise.
12117 * sysdeps/unix/sysv/linux/nios2/bits/procfs.h: Likewise.
12118 * sysdeps/unix/sysv/linux/powerpc/bits/procfs.h: Likewise.
12119 * sysdeps/unix/sysv/linux/riscv/bits/procfs.h: Likewise.
12120 * sysdeps/unix/sysv/linux/aarch64/sys/procfs.h: Remove file.
12121 * sysdeps/unix/sysv/linux/hppa/sys/procfs.h: Likewise.
12122 * sysdeps/unix/sysv/linux/ia64/sys/procfs.h: Likewise.
12123 * sysdeps/unix/sysv/linux/microblaze/sys/procfs.h: Likewise.
12124 * sysdeps/unix/sysv/linux/mips/sys/procfs.h: Likewise.
12125 * sysdeps/unix/sysv/linux/nios2/sys/procfs.h: Likewise.
12126 * sysdeps/unix/sysv/linux/powerpc/sys/procfs.h: Likewise.
12127 * sysdeps/unix/sysv/linux/riscv/sys/procfs.h: Likewise.
12128
12129 2018-09-25 Adhemerval Zanella <adhemerval.zanella@linaro.org>
12130
12131 * posix/tst-spawn.c (do_prepare, handle_restart, do_test):
12132 Use libsupport.
12133
12134 2018-09-25 Arjun Shankar <arjun@redhat.com>
12135
12136 * iconv/gconv_int.h (__gconv_path_elem): Remove.
12137 (__gconv_max_path_elem_len): Likewise.
12138 (__gconv_nmodules): Likewise.
12139 (__gconv_get_path): Likewise.
12140 (path_elem): Move to ...
12141 * iconv/gconv_conf.c: ... here.
12142 (__gconv_get_path): Mark function static.
12143 * iconv/gconv_int.h (GCONV_NCHAR_GOAL): Move to ...
12144 * iconv/gconv_open.c: ... here.
12145
12146 2018-09-24 Andreas Schwab <schwab@suse.de>
12147
12148 * scripts/haveversions.awk: New file.
12149 * Makerules ($(common-objpfx)Versions.def)
12150 ($(common-objpfx)Versions.all, $(common-objpfx)Versions.v.i)
12151 ($(common-objpfx)sysd-versions, $(common-objpfx)versions.stmp):
12152 Move rules ...
12153 * Makeconfig ($(common-objpfx)Versions.def)
12154 ($(common-objpfx)Versions.all, $(common-objpfx)Versions.v.i)
12155 ($(common-objpfx)sysd-versions, $(common-objpfx)versions.stmp):
12156 ... here.
12157 ($(common-objpfx)Versions.mk): New rule. Include it.
12158 * nis/Makefile [!have-GLIBC_2.28]: Don't build any targets.
12159 Emit error if build-obsolete-nsl = yes.
12160 * manual/install.texi (Configuring and compiling): Describe
12161 --enable-obsolete-nsl as unavaiable after version 2.28.
12162 * INSTALL: Regenerate.
12163
12164 2018-09-21 Adhemerval Zanella <adhemerval.zanella@linaro.org>
12165
12166 * NEWS: Add note about new TLE support on powerpc64le.
12167 * sysdeps/powerpc/nptl/tcb-offsets.sym (TM_CAPABLE): Remove.
12168 * sysdeps/powerpc/nptl/tls.h (tcbhead_t): Rename tm_capable to
12169 __ununsed1.
12170 (TLS_INIT_TP, TLS_DEFINE_INIT_TP): Remove tm_capable setup.
12171 (THREAD_GET_TM_CAPABLE, THREAD_SET_TM_CAPABLE): Remove macros.
12172 * sysdeps/powerpc/powerpc32/sysdep.h,
12173 sysdeps/powerpc/powerpc64/sysdep.h (ABORT_TRANSACTION_IMPL,
12174 ABORT_TRANSACTION): Remove macros.
12175 * sysdeps/powerpc/sysdep.h (ABORT_TRANSACTION): Likewise.
12176 * sysdeps/unix/sysv/linux/powerpc/elision-conf.c (elision_init): Set
12177 __pthread_force_elision iff PPC_FEATURE2_HTM_NOSC is set.
12178 * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h,
12179 sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h
12180 sysdeps/unix/sysv/linux/powerpc/syscall.S (ABORT_TRANSACTION): Remove
12181 usage.
12182 * sysdeps/unix/sysv/linux/powerpc/not-errno.h: Remove file.
12183
12184 2018-09-21 Rafał Lużyński <digitalfreak@lingonborough.com>
12185
12186 [BZ #10425]
12187 * localedata/locales/it_IT (d_t_fmt): Use "%a %-d %b %Y, %T".
12188 (date_fmt): Use "%a %-d %b %Y, %T, %Z".
12189 * localedata/locales/it_CH (d_t_fmt): Use "%a %-d %b %Y, %T"
12190 which is the same as in it_IT.
12191 (d_fmt): Use "%d.%m.%Y" which is the same as in de_CH.
12192 (date_fmt): Use "%a %-d %b %Y, %T, %Z" which is the same as in it_IT.
12193
12194 2018-09-20 Joseph Myers <joseph@codesourcery.com>
12195
12196 * include/math.h [!_ISOMAC && !(__FINITE_MATH_ONLY__ &&
12197 __FINITE_MATH_ONLY__ > 0) && !NO_MATH_REDIRECT] (trunc): Redirect
12198 using MATH_REDIRECT.
12199 * sysdeps/aarch64/fpu/s_trunc.c: Define NO_MATH_REDIRECT before
12200 header inclusion.
12201 * sysdeps/aarch64/fpu/s_truncf.c: Likewise.
12202 * sysdeps/ieee754/dbl-64/wordsize-64/s_trunc.c: Likewise.
12203 * sysdeps/ieee754/float128/s_truncf128.c: Likewise.
12204 * sysdeps/ieee754/dbl-64/s_trunc.c: Likewise.
12205 * sysdeps/ieee754/flt-32/s_truncf.c: Likewise.
12206 * sysdeps/ieee754/ldbl-128/s_truncl.c: Likewise.
12207 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_trunc.c: Likewise.
12208 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_truncf.c: Likewise.
12209 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_trunc.c: Likewise.
12210 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_truncf.c: Likewise.
12211 * sysdeps/riscv/rv64/rvd/s_trunc.c: Likewise.
12212 * sysdeps/riscv/rvf/s_truncf.c: Likewise.
12213 * sysdeps/sparc/sparc64/fpu/multiarch/s_trunc.c: Likewise.
12214 * sysdeps/sparc/sparc64/fpu/multiarch/s_truncf.c: Likewise.
12215 * sysdeps/x86_64/fpu/multiarch/s_trunc.c: Likewise.
12216 * sysdeps/x86_64/fpu/multiarch/s_truncf.c: Likewise.
12217 * sysdeps/m68k/m680x0/fpu/s_trunc_template.c: Likewise.
12218 * sysdeps/ieee754/ldbl-128ibm/s_truncl.c: Likewise.
12219 (ceil): Redirect to __ceil.
12220 (floor): Redirect to __floor.
12221 (trunc): Redirect to __trunc.
12222 (__truncl): Call trunc instead of __trunc.
12223 * sysdeps/powerpc/fpu/math_private.h [_ARCH_PWR5X] (__trunc):
12224 Remove macro.
12225 [_ARCH_PWR5X] (__truncf): Likewise.
12226 * sysdeps/ieee754/dbl-64/e_gamma_r.c (__ieee754_gamma_r): Use
12227 trunc functions instead of __trunc variants.
12228 * sysdeps/ieee754/flt-32/e_gammaf_r.c (__ieee754_gammaf_r):
12229 Likewise.
12230 * sysdeps/ieee754/ldbl-128/e_gammal_r.c (__ieee754_gammal_r):
12231 Likewise.
12232 * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (__ieee754_gammal_r):
12233 Likewise.
12234 * sysdeps/ieee754/ldbl-96/e_gammal_r.c (__ieee754_gammal_r):
12235 Likewise.
12236
12237 * sysdeps/x86/cpu-features.h [__geode__ || __k6__]: Handle like
12238 [__i586__ || __pentium__].
12239 [__i486__]: Handle explicitly.
12240 (HAS_CPUID): Define to 1 if above macros are undefined.
12241 (HAS_I586): Likewise.
12242 (HAS_I686): Likewise.
12243
12244 2018-09-20 Florian Weimer <fweimer@redhat.com>
12245
12246 * misc/tst-gethostid.c: New file.
12247 * misc/Makefile [$(build-shared)] (tests): Add tst-gethostid.
12248 (tst-gethostid): Link with -ldl.
12249
12250 2018-09-20 Mingli Yu <Mingli.Yu@windriver.com>
12251
12252 * sysdeps/unix/sysv/linux/gethostid.c (gethostid): Check for NULL
12253 value from gethostbyname_r.
12254
12255 2018-09-19 Carlos O'Donell <carlos@redhat.com>
12256
12257 * stdlib/tst-setcontext9.c (f1): Rename to...
12258 (f1a): ... this.
12259 (f1b): New function implementing lower half of f1 in alternate stack.
12260
12261 2018-09-19 Paul Eggert <eggert@cs.ucla.edu>
12262
12263 Fix mktime localtime offset confusion
12264 [BZ #23603]
12265 * include/time.h (__mktime_internal): The localtime offset is now
12266 of type long int instead of time_t. This is the longstanding type
12267 in glibc, and it is more than enough to represent difference
12268 between localtime and gmtime even if it is 32 bits and time_t is
12269 64. Changing it now will let us avoid an unnecessary change when
12270 time_t is widened to 64 bits on 32-bit platforms.
12271 * time/mktime-internal.h (mktime_offset_t): Now long int.
12272
12273 Merge mktime, timegm from upstream Gnulib
12274 [BZ #23603][BZ #16346]
12275 This fixes some obscure problems with integer overflow.
12276 Although it looks scary, it is almost all a byte-for-byte copy
12277 from Gnulib, and the Gnulib code has been tested reasonably well.
12278 * include/intprops.h: New file, copied from Gnulib.
12279 * include/verify.h, time/mktime-internal.h:
12280 New tiny files, simplified from Gnulib.
12281 * time/mktime.c: Copy from Gnulib. This has the following changes:
12282 Do not include config.h if DEBUG_MKTIME is nonzero.
12283 Include stdbool.h, intprops.h, verify.h.
12284 Include string.h only if needed.
12285 Include stdlib.h on MS-Windows.
12286 Include mktime-internal.h.
12287 (DEBUG_MKTIME): Default to 0, and simplify later uses.
12288 (NEED_MKTIME_INTERNAL, NEED_MKTIME_WINDOWS)
12289 (NEED_MKTIME_WORKING): Give default values to pacify -Wundef,
12290 which glibc uses. Default NEED_MKTIME_WORKING to DEBUG_MKTIME, to
12291 simplify later conditionals; default the others to zero. Use
12292 these conditionals to express only the code needed on the current
12293 platform. In uses of these conditionals, explicitly spell out how
12294 _LIBC affects things, so it’s easier to review from a glibc
12295 viewpoint.
12296 (WRAPV): Remove; no longer needed now that we have
12297 systematic overflow checking.
12298 (my_tzset, __tzset) [!_LIBC]: New function and macro, to better
12299 compartmentalize tzset issues. Move system-dependent tzsettish
12300 code here from mktime.
12301 (verify): Remove; now done by verify.h. All uses changed.
12302 (long_int): Use a more-conservative definition, to avoid
12303 integer overflow.
12304 (SHR): Remove, replacing with ...
12305 (shr): New function, which means we needn’t worry about side
12306 effects in args, and conversion analysis is simpler.
12307 (TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT, TYPE_SIGNED, TYPE_MINIMUM)
12308 (TYPE_MAXIMUM, TIME_T_MIN, TIME_T_MAX, TIME_T_MIDPOINT)
12309 (time_t_avg, time_t_add_ok): Remove.
12310 (mktime_min, mktime_max): New constants.
12311 (leapyear, isdst_differ): Use bool for booleans.
12312 (ydhms_diff, guess_time_tm, ranged_convert, __mktime_internal):
12313 Use long_int, not time_t, for mktime differences.
12314 (long_int_avg): New function, replacing time_t_avg.
12315 INT_ADD_WRAPV replaces time_t_add_ok.
12316 (guess_time_tm): 6th arg is now long_int, not time_t const *.
12317 All uses changed.
12318 (convert_time): New function.
12319 (ranged_convert): Use it.
12320 (__mktime_internal): Last arg now points to mktime_offset_t, not
12321 time_t. All uses changed. This is a no-op on glibc, where
12322 mktime_offset_t is always time_t. Use int, not time_t, for UTC
12323 offset guess. Directly check for integer overflow instead of
12324 using a heuristic that works only 99.9...% of the time.
12325 Access *OFFSET only once, to avoid an unlikely race if the
12326 compiler delays a load and if this cascades into a signed integer
12327 overflow.
12328 (mktime): Move tzsettish code to my_tzset, and move
12329 localtime_offset to within mktime so that it doesn’t
12330 need a separate ifdef.
12331 (main) [DEBUG_MKTIME]: Speed up by using localtime_r
12332 instead of localtime.
12333 * time/timegm.c: Copy from Gnulib. This has the following changes:
12334 Include mktime-internal.h.
12335 [!_LIBC]: Include config.h and time.h. Do not include
12336 timegm.h or time_r.h. Make __mktime_internal a macro,
12337 and include mktime-internal.h to get its declaration.
12338 (timegm): Temporary is now mktime_offset_t, not time_t.
12339 This affects only Gnulib.
12340
12341 2018-09-19 Wilco Dijkstra <wdijkstr@arm.com>
12342
12343 [BZ #23637]
12344 * string/test-strstr.c (pr23637): New function.
12345 (test_main): Add tests with longer needles.
12346 * string/strcasestr.c (AVAILABLE): Fix readahead distance.
12347 * string/strstr.c (AVAILABLE): Likewise.
12348
12349 2018-09-19 Szabolcs Nagy <szabolcs.nagy@arm.com>
12350
12351 * sysdeps/ieee754/flt-32/e_powf.c (checkint): Fix documentation.
12352
12353 2018-09-19 Szabolcs Nagy <szabolcs.nagy@arm.com>
12354
12355 * NEWS: Mention pow improvements.
12356 * math/Makefile (type-double-routines): Add e_pow_log_data.
12357 * sysdeps/generic/math_private.h (__exp1): Remove.
12358 * sysdeps/i386/fpu/e_pow_log_data.c: New file.
12359 * sysdeps/ia64/fpu/e_pow_log_data.c: New file.
12360 * sysdeps/ieee754/dbl-64/Makefile (CFLAGS-e_pow.c): Allow fma
12361 contraction.
12362 * sysdeps/ieee754/dbl-64/e_exp.c (__exp1): Remove.
12363 (exp_inline): Remove.
12364 (__ieee754_exp): Only single double input is handled.
12365 * sysdeps/ieee754/dbl-64/e_pow.c: Rewrite.
12366 * sysdeps/ieee754/dbl-64/e_pow_log_data.c: New file.
12367 * sysdeps/ieee754/dbl-64/math_config.h (issignaling_inline): Define.
12368 (__pow_log_data): Define.
12369 * sysdeps/ieee754/dbl-64/upow.h: Remove.
12370 * sysdeps/ieee754/dbl-64/upow.tbl: Remove.
12371 * sysdeps/m68k/m680x0/fpu/e_pow_log_data.c: New file.
12372 * sysdeps/x86_64/fpu/multiarch/Makefile (CFLAGS-e_pow-fma.c): Allow fma
12373 contraction.
12374 (CFLAGS-e_pow-fma4.c): Likewise.
12375
12376 2018-09-18 Paul Eggert <eggert@cs.ucla.edu>
12377
12378 Simplify tzfile fstat failure code
12379 [BZ #21716]
12380 * time/tzfile.c (__tzfile_read): Simplify slightly.
12381
12382 Fix tzfile low-memory assertion failure
12383 [BZ #21716]
12384 * time/tzfile.c (__tzfile_read): Check for memory exhaustion
12385 when registering time zone abbreviations.
12386
12387 2018-09-18 Joseph Myers <joseph@codesourcery.com>
12388
12389 * sysdeps/unix/sysv/linux/bits/mman.h: New file.
12390 * sysdeps/unix/sysv/linux/aarch64/bits/mman.h: Remove.
12391 * sysdeps/unix/sysv/linux/arm/bits/mman.h: Likewise.
12392 * sysdeps/unix/sysv/linux/m68k/bits/mman.h: Likewise.
12393 * sysdeps/unix/sysv/linux/microblaze/bits/mman.h: Likewise.
12394 * sysdeps/unix/sysv/linux/nios2/bits/mman.h: Likewise.
12395 * sysdeps/unix/sysv/linux/riscv/bits/mman.h: Likewise.
12396 * sysdeps/unix/sysv/linux/s390/bits/mman.h: Likewise.
12397 * sysdeps/unix/sysv/linux/sh/bits/mman.h: Likewise.
12398
12399 * sysdeps/ieee754/ldbl-128ibm/s_ceill.c (ceil): Redirect to
12400 __ceil.
12401 (__ceill): Call ceil instead of __ceil.
12402 * sysdeps/ieee754/ldbl-128ibm/s_floorl.c (floor): Redirect to
12403 __floor.
12404 (__floorl): Call floor instead of __floor.
12405
12406 2018-09-17 Joseph Myers <joseph@codesourcery.com>
12407
12408 * include/math.h [!_ISOMAC && !(__FINITE_MATH_ONLY__ &&
12409 __FINITE_MATH_ONLY__ > 0) && !NO_MATH_REDIRECT] (ceil): Redirect
12410 using MATH_REDIRECT.
12411 * sysdeps/aarch64/fpu/s_ceil.c: Define NO_MATH_REDIRECT before
12412 header inclusion.
12413 * sysdeps/aarch64/fpu/s_ceilf.c: Likewise.
12414 * sysdeps/ieee754/dbl-64/s_ceil.c: Likewise.
12415 * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Likewise.
12416 * sysdeps/ieee754/float128/s_ceilf128.c: Likewise.
12417 * sysdeps/ieee754/flt-32/s_ceilf.c: Likewise.
12418 * sysdeps/ieee754/ldbl-128/s_ceill.c: Likewise.
12419 * sysdeps/ieee754/ldbl-128ibm/s_ceill.c: Likewise.
12420 * sysdeps/m68k/m680x0/fpu/s_ceil_template.c: Likewise.
12421 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceil.c: Likewise.
12422 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceilf.c: Likewise.
12423 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceil.c: Likewise.
12424 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceilf.c: Likewise.
12425 * sysdeps/riscv/rv64/rvd/s_ceil.c: Likewise.
12426 * sysdeps/riscv/rvf/s_ceilf.c: Likewise.
12427 * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.c: Likewise.
12428 * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.c: Likewise.
12429 * sysdeps/x86_64/fpu/multiarch/s_ceil.c: Likewise.
12430 * sysdeps/x86_64/fpu/multiarch/s_ceilf.c: Likewise.
12431 * sysdeps/powerpc/fpu/math_private.h [_ARCH_PWR5X] (__ceil):
12432 Remove macro.
12433 * sysdeps/ieee754/dbl-64/e_gamma_r.c (gamma_positive): Use ceil
12434 functions instead of __ceil variants.
12435 * sysdeps/ieee754/flt-32/e_gammaf_r.c (gammaf_positive): Likewise.
12436 * sysdeps/ieee754/ldbl-128/e_gammal_r.c (gammal_positive):
12437 Likewise.
12438 * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (gammal_positive):
12439 Likewise.
12440 * sysdeps/ieee754/ldbl-128ibm/s_truncl.c (__truncl): Likewise.
12441 * sysdeps/ieee754/ldbl-96/e_gammal_r.c (gammal_positive):
12442 Likewise.
12443 * sysdeps/powerpc/power5+/fpu/s_modf.c (__modf): Likewise.
12444 * sysdeps/powerpc/power5+/fpu/s_modff.c (__modff): Likewise.
12445
12446 [BZ #21286]
12447 * sysdeps/unix/sysv/linux/bits/siginfo-consts.h (SI_DETHREAD): New
12448 constant.
12449 [__USE_XOPEN_EXTENDED || __USE_XOPEN2K8] (ILL_BADIADDR): Likewise.
12450 [__USE_XOPEN_EXTENDED || __USE_XOPEN2K8] (FPE_FLTUNK): Likewise.
12451 [__USE_XOPEN_EXTENDED || __USE_XOPEN2K8] (FPE_CONDTRAP): Likewise.
12452 [__USE_XOPEN_EXTENDED || __USE_XOPEN2K8] (SEGV_ACCADI): Likewise.
12453 [__USE_XOPEN_EXTENDED || __USE_XOPEN2K8] (SEGV_ADIDERR): Likewise.
12454 [__USE_XOPEN_EXTENDED || __USE_XOPEN2K8] (SEGV_ADIPERR): Likewise.
12455 [__USE_XOPEN_EXTENDED] (TRAP_BRANCH): Likewise.
12456 [__USE_XOPEN_EXTENDED] (TRAP_HWBKPT): Likewise.
12457 [__USE_XOPEN_EXTENDED] (TRAP_UNK): Likweise.
12458 * sysdeps/unix/sysv/linux/ia64/bits/siginfo-consts-arch.h
12459 (ILL_BADIADDR): Remove constant.
12460 (TRAP_BRANCH): Likewise.
12461 (TRAP_HWBKPT): Likewise.
12462
12463 2018-09-14 Joseph Myers <joseph@codesourcery.com>
12464
12465 [BZ #23656]
12466 * sysdeps/unix/sysv/linux/mips/sys/procfs.h (struct elf_prstatus):
12467 Remove [_MIPS_SIM = _ABIN32] conditional case.
12468 (struct elf_prpsinfo): Likewise.
12469
12470 [BZ #23649]
12471 * sysdeps/unix/sysv/linux/microblaze/sys/procfs.h (struct
12472 elf_prpsinfo): Use unsigned int for pr_uid and pr_gid.
12473 * sysdeps/unix/sysv/linux/mips/sys/procfs.h (struct elf_prpsinfo):
12474 Likewise.
12475 * sysdeps/unix/sysv/linux/nios2/sys/procfs.h (struct
12476 elf_prpsinfo): Likewise.
12477 * sysdeps/unix/sysv/linux/riscv/sys/procfs.h (struct
12478 elf_prpsinfo): Likewise.
12479 * sysdeps/unix/sysv/linux/sys/procfs.h (struct elf_prpsinfo):
12480 Likewise.
12481
12482 * include/math.h [!_ISOMAC && !(__FINITE_MATH_ONLY__ &&
12483 __FINITE_MATH_ONLY__ > 0) && !NO_MATH_REDIRECT] (rint): Redirect
12484 using MATH_REDIRECT.
12485 * sysdeps/aarch64/fpu/s_rint.c: Define NO_MATH_REDIRECT before
12486 header inclusion.
12487 * sysdeps/aarch64/fpu/s_rintf.c: Likewise.
12488 * sysdeps/alpha/fpu/s_rint.c: Likewise.
12489 * sysdeps/alpha/fpu/s_rintf.c: Likewise.
12490 * sysdeps/i386/fpu/s_rintl.c: Likewise.
12491 * sysdeps/ieee754/dbl-64/s_rint.c: Likewise.
12492 * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c: Likewise.
12493 * sysdeps/ieee754/float128/s_rintf128.c: Likewise.
12494 * sysdeps/ieee754/flt-32/s_rintf.c: Likewise.
12495 * sysdeps/ieee754/ldbl-128/s_rintl.c: Likewise.
12496 * sysdeps/ieee754/ldbl-128ibm/s_rintl.c: Likewise.
12497 * sysdeps/m68k/coldfire/fpu/s_rint.c: Likewise.
12498 * sysdeps/m68k/coldfire/fpu/s_rintf.c: Likewise.
12499 * sysdeps/m68k/m680x0/fpu/s_rint.c: Likewise.
12500 * sysdeps/m68k/m680x0/fpu/s_rintf.c: Likewise.
12501 * sysdeps/m68k/m680x0/fpu/s_rintl.c: Likewise.
12502 * sysdeps/powerpc/fpu/s_rint.c: Likewise.
12503 * sysdeps/powerpc/fpu/s_rintf.c: Likewise.
12504 * sysdeps/riscv/rv64/rvd/s_rint.c: Likewise.
12505 * sysdeps/riscv/rvf/s_rintf.c: Likewise.
12506 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.c: Likewise.
12507 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf.c: Likewise.
12508 * sysdeps/sparc/sparc64/fpu/multiarch/s_rint.c: Likewise.
12509 * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf.c: Likewise.
12510 * sysdeps/x86_64/fpu/multiarch/s_rint.c: Likewise.
12511 * sysdeps/x86_64/fpu/multiarch/s_rintf.c: Likewise.
12512 * sysdeps/x86_64/fpu/math_private.h: Remove file.
12513 * math/e_scalb.c (invalid_fn): Use rint functions instead of
12514 __rint variants.
12515 * math/e_scalbf.c (invalid_fn): Likewise.
12516 * math/e_scalbl.c (invalid_fn): Likewise.
12517 * sysdeps/ieee754/dbl-64/e_gamma_r.c (__ieee754_gamma_r):
12518 Likewise.
12519 * sysdeps/ieee754/flt-32/e_gammaf_r.c (__ieee754_gammaf_r):
12520 Likewise.
12521 * sysdeps/ieee754/k_standard.c (__kernel_standard): Likewise.
12522 * sysdeps/ieee754/k_standardl.c (__kernel_standard_l): Likewise.
12523 * sysdeps/ieee754/ldbl-128/e_gammal_r.c (__ieee754_gammal_r):
12524 Likewise.
12525 * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (__ieee754_gammal_r):
12526 Likewise.
12527 * sysdeps/ieee754/ldbl-96/e_gammal_r.c (__ieee754_gammal_r):
12528 Likewise.
12529 * sysdeps/powerpc/powerpc32/fpu/s_llrint.c (__llrint): Likewise.
12530 * sysdeps/powerpc/powerpc32/fpu/s_llrintf.c (__llrintf): Likewise.
12531
12532 * include/math.h [!_ISOMAC && !(__FINITE_MATH_ONLY__ &&
12533 __FINITE_MATH_ONLY__ > 0) && !NO_MATH_REDIRECT] (MATH_REDIRECT):
12534 New macro.
12535 [!_ISOMAC && !(__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0)
12536 && !NO_MATH_REDIRECT] (MATH_REDIRECT_LDBL): Likewise.
12537 [!_ISOMAC && !(__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0)
12538 && !NO_MATH_REDIRECT] (MATH_REDIRECT_F128): Likewise.
12539 [!_ISOMAC && !(__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0)
12540 && !NO_MATH_REDIRECT] (MATH_REDIRECT_UNARY_ARGS): Likewise.
12541 [!_ISOMAC && !(__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0)
12542 && !NO_MATH_REDIRECT] (sqrt): Redirect using MATH_REDIRECT.
12543 [!_ISOMAC && !(__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0)
12544 && !NO_MATH_REDIRECT] (floor): Likewise.
12545 * sysdeps/aarch64/fpu/s_floor.c: Define NO_MATH_REDIRECT before
12546 header inclusion.
12547 * sysdeps/aarch64/fpu/s_floorf.c: Likewise.
12548 * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
12549 * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Likewise.
12550 * sysdeps/ieee754/float128/s_floorf128.c: Likewise.
12551 * sysdeps/ieee754/flt-32/s_floorf.c: Likewise.
12552 * sysdeps/ieee754/ldbl-128/s_floorl.c: Likewise.
12553 * sysdeps/ieee754/ldbl-128ibm/s_floorl.c: Likewise.
12554 * sysdeps/m68k/m680x0/fpu/s_floor_template.c: Likewise.
12555 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floor.c: Likewise.
12556 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floorf.c: Likewise.
12557 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floor.c: Likewise.
12558 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floorf.c: Likewise.
12559 * sysdeps/riscv/rv64/rvd/s_floor.c: Likewise.
12560 * sysdeps/riscv/rvf/s_floorf.c: Likewise.
12561 * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.c: Likewise.
12562 * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.c: Likewise.
12563 * sysdeps/x86_64/fpu/multiarch/s_floor.c: Likewise.
12564 * sysdeps/x86_64/fpu/multiarch/s_floorf.c: Likewise.
12565 * sysdeps/powerpc/fpu/math_private.h [_ARCH_PWR5X] (__floor):
12566 Remove macro.
12567 [_ARCH_PWR5X] (__floorf): Likewise.
12568 * sysdeps/x86_64/fpu/math_private.h [__SSE4_1__] (__floor): Remove
12569 inline function.
12570 [__SSE4_1__] (__floorf): Likewise.
12571 * math/w_lgamma_main.c (LGFUNC (__lgamma)): Use floor functions
12572 instead of __floor variants.
12573 * math/w_lgamma_r_compat.c (__lgamma_r): Likewise.
12574 * math/w_lgammaf_main.c (LGFUNC (__lgammaf)): Likewise.
12575 * math/w_lgammaf_r_compat.c (__lgammaf_r): Likewise.
12576 * math/w_lgammal_main.c (LGFUNC (__lgammal)): Likewise.
12577 * math/w_lgammal_r_compat.c (__lgammal_r): Likewise.
12578 * math/w_tgamma_compat.c (__tgamma): Likewise.
12579 * math/w_tgamma_template.c (M_DECL_FUNC (__tgamma)): Likewise.
12580 * math/w_tgammaf_compat.c (__tgammaf): Likewise.
12581 * math/w_tgammal_compat.c (__tgammal): Likewise.
12582 * sysdeps/ieee754/dbl-64/e_lgamma_r.c (sin_pi): Likewise.
12583 * sysdeps/ieee754/dbl-64/k_rem_pio2.c (__kernel_rem_pio2):
12584 Likewise.
12585 * sysdeps/ieee754/dbl-64/lgamma_neg.c (__lgamma_neg): Likewise.
12586 * sysdeps/ieee754/flt-32/e_lgammaf_r.c (sin_pif): Likewise.
12587 * sysdeps/ieee754/flt-32/lgamma_negf.c (__lgamma_negf): Likewise.
12588 * sysdeps/ieee754/ldbl-128/e_lgammal_r.c (__ieee754_lgammal_r):
12589 Likewise.
12590 * sysdeps/ieee754/ldbl-128/e_powl.c (__ieee754_powl): Likewise.
12591 * sysdeps/ieee754/ldbl-128/lgamma_negl.c (__lgamma_negl):
12592 Likewise.
12593 * sysdeps/ieee754/ldbl-128/s_expm1l.c (__expm1l): Likewise.
12594 * sysdeps/ieee754/ldbl-128ibm/e_lgammal_r.c (__ieee754_lgammal_r):
12595 Likewise.
12596 * sysdeps/ieee754/ldbl-128ibm/e_powl.c (__ieee754_powl): Likewise.
12597 * sysdeps/ieee754/ldbl-128ibm/lgamma_negl.c (__lgamma_negl):
12598 Likewise.
12599 * sysdeps/ieee754/ldbl-128ibm/s_expm1l.c (__expm1l): Likewise.
12600 * sysdeps/ieee754/ldbl-128ibm/s_truncl.c (__truncl): Likewise.
12601 * sysdeps/ieee754/ldbl-96/e_lgammal_r.c (sin_pi): Likewise.
12602 * sysdeps/ieee754/ldbl-96/lgamma_negl.c (__lgamma_negl): Likewise.
12603 * sysdeps/powerpc/power5+/fpu/s_modf.c (__modf): Likewise.
12604 * sysdeps/powerpc/power5+/fpu/s_modff.c (__modff): Likewise.
12605
12606 2018-09-12 Joseph Myers <joseph@codesourcery.com>
12607
12608 * elf/Makefile (modules-names-tests): New variable.
12609
12610 2018-09-12 Szabolcs Nagy <szabolcs.nagy@arm.com>
12611
12612 * NEWS: Mention log2 improvements.
12613 * math/Makefile (type-double-routines): Add e_log2_data.
12614 * sysdeps/i386/fpu/e_log2_data.c: New file.
12615 * sysdeps/ia64/fpu/e_log2_data.c: New file.
12616 * sysdeps/ieee754/dbl-64/e_log2.c: Rewrite.
12617 * sysdeps/ieee754/dbl-64/e_log2_data.c: New file.
12618 * sysdeps/ieee754/dbl-64/math_config.h (__log2_data): Add.
12619 * sysdeps/ieee754/dbl-64/wordsize-64/e_log2.c: Remove.
12620 * sysdeps/m68k/m680x0/fpu/e_log2_data.c: New file.
12621
12622 2018-09-12 Szabolcs Nagy <szabolcs.nagy@arm.com>
12623
12624 * NEWS: Mention log improvement.
12625 * math/Makefile (type-double-routines): Add e_log_data.
12626 * sysdeps/i386/fpu/e_log_data.c: New file.
12627 * sysdeps/ia64/fpu/e_log_data.c: New file.
12628 * sysdeps/ieee754/dbl-64/e_log.c: Rewrite.
12629 * sysdeps/ieee754/dbl-64/e_log_data.c: New file.
12630 * sysdeps/ieee754/dbl-64/math_config.h (__log_data): Add.
12631 * sysdeps/ieee754/dbl-64/ulog.h: Remove.
12632 * sysdeps/ieee754/dbl-64/ulog.tbl: Remove.
12633 * sysdeps/m68k/m680x0/fpu/e_log_data.c: New file.
12634
12635 2018-09-12 H.J. Lu <hongjiu.lu@intel.com>
12636 Xuepeng Guo <xuepeng.guo@intel.com>
12637
12638 [BZ #23606]
12639 * sysdeps/i386/start.S: Include <sysdep.h>
12640 (_start): Use ENTRY/END to insert ENDBR32 at entry when CET is
12641 enabled. Add cfi_undefined (eip).
12642
12643 2018-09-11 Joseph Myers <joseph@codesourcery.com>
12644
12645 * sysdeps/x86_64/fpu/math_private.h (MOVD): Remove macro.
12646 (MOVQ): Likewise.
12647 (EXTRACT_WORDS64): Likewise.
12648 (INSERT_WORDS64): Likewise.
12649 (GET_FLOAT_WORD): Likewise.
12650 (SET_FLOAT_WORD): Likewise.
12651
12652 * scripts/build-many-glibcs.py (Context.__init__): Add full_gcc
12653 argument.
12654 (Config.build_gcc): Use --disable-libsanitizer for first GCC
12655 build, but not for second build if --full-gcc. Use
12656 --enable-languages=all for second build if --full-gcc.
12657 (get_parser): Add --full-gcc option.
12658 (main): Update call to Context.
12659
12660 2018-09-10 Rafał Lużyński <digitalfreak@lingonborough.com>
12661
12662 [BZ #10797]
12663 * localedata/locales/de_CH (mon_thousands_sep): Use "<U2019>" (Right
12664 Single Quotation Mark).
12665 (thousands_sep): Likewise.
12666 * localedata/locales/it_CH (LC_NUMERIC): Use “copy "de_CH"”.
12667 * localedata/locales/it_IT (thousands_sep): Use ".".
12668 (grouping): Use "3;3".
12669
12670 2018-09-10 Joseph Myers <joseph@codesourcery.com>
12671
12672 * scripts/build-many-glibcs.py (Context.add_all_configs): Add
12673 x86_64 and i686 configs using --enable-obsolete-rpc
12674 --enable-obsolete-nsl.
12675
12676 2018-09-06 Stefan Liebler <stli@linux.ibm.com>
12677
12678 * sysdeps/s390/fpu/libm-test-ulps: Regenerated.
12679
12680 2018-09-06 Stefan Liebler <stli@linux.ibm.com>
12681
12682 * sysdeps/unix/sysv/linux/spawni.c (maybe_script_execute):
12683 Increment size of new_argv by one.
12684
12685 2018-09-05 Rafał Lużyński <digitalfreak@lingonborough.com>
12686
12687 [BZ #17426]
12688 * localedata/locales/anp_IN (d_fmt): Use "%-d//%-m//%y".
12689 * localedata/locales/ar_IN (d_fmt): Likewise.
12690 * localedata/locales/bhb_IN (d_fmt): Likewise.
12691 * localedata/locales/bho_IN (d_fmt): Likewise.
12692 * localedata/locales/bn_BD (d_fmt): Likewise.
12693 * localedata/locales/bn_IN (d_fmt): Likewise.
12694 * localedata/locales/doi_IN (d_fmt): Likewise.
12695 * localedata/locales/gu_IN (d_fmt): Likewise.
12696 * localedata/locales/hi_IN (d_fmt): Likewise.
12697 * localedata/locales/hne_IN (d_fmt): Likewise.
12698 * localedata/locales/kn_IN (d_fmt): Likewise.
12699 * localedata/locales/mag_IN (d_fmt): Likewise.
12700 * localedata/locales/mai_IN (d_fmt): Likewise.
12701 * localedata/locales/mjw_IN (d_fmt): Likewise.
12702 * localedata/locales/ml_IN (d_fmt): Likewise.
12703 * localedata/locales/mni_IN (d_fmt): Likewise.
12704 * localedata/locales/mr_IN (d_fmt): Likewise.
12705 * localedata/locales/pa_IN (d_fmt): Likewise.
12706 * localedata/locales/raj_IN (d_fmt): Likewise.
12707 * localedata/locales/sat_IN (d_fmt): Likewise.
12708 * localedata/locales/sd_IN (d_fmt): Likewise.
12709 * localedata/locales/sd_IN@devanagari (d_fmt): Likewise.
12710 * localedata/locales/ta_IN (d_fmt): Likewise.
12711 * localedata/locales/ta_LK (d_fmt): Likewise.
12712 * localedata/locales/tcy_IN (d_fmt): Likewise.
12713 * localedata/locales/ur_IN (d_fmt): Likewise.
12714
12715 * localedata/locales/brx_IN (d_fmt): Use "%-m//%-d//%y".
12716 * localedata/locales/ks_IN (d_fmt): Likewise.
12717 * localedata/locales/ks_IN@devanagari (d_fmt): Likewise.
12718
12719 * localedata/locales/kok_IN (d_fmt): Use "%-d-%-m-%y".
12720 * localedata/locales/ne_NP (d_fmt): Use "%y//%-m//%-d".
12721 * localedata/locales/sa_IN (d_fmt): Use "%-d-%m-%y".
12722 * localedata/locales/te_IN (d_fmt): Use "%d-%m-%y".
12723
12724 2018-09-05 Szabolcs Nagy <szabolcs.nagy@arm.com>
12725
12726 * NEWS: Mention exp and exp2 improvements.
12727 * math/Makefile (libm-support): Remove t_exp.
12728 (type-double-routines): Add math_err and e_exp_data.
12729 * sysdeps/aarch64/libm-test-ulps: Update.
12730 * sysdeps/arm/libm-test-ulps: Update.
12731 * sysdeps/i386/fpu/e_exp_data.c: New file.
12732 * sysdeps/i386/fpu/math_err.c: New file.
12733 * sysdeps/i386/fpu/t_exp.c: Remove.
12734 * sysdeps/ia64/fpu/e_exp_data.c: New file.
12735 * sysdeps/ia64/fpu/math_err.c: New file.
12736 * sysdeps/ia64/fpu/t_exp.c: Remove.
12737 * sysdeps/ieee754/dbl-64/e_exp.c: Rewrite.
12738 * sysdeps/ieee754/dbl-64/e_exp2.c: Rewrite.
12739 * sysdeps/ieee754/dbl-64/e_exp_data.c: New file.
12740 * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Update error bound.
12741 * sysdeps/ieee754/dbl-64/eexp.tbl: Remove.
12742 * sysdeps/ieee754/dbl-64/math_config.h: New file.
12743 * sysdeps/ieee754/dbl-64/math_err.c: New file.
12744 * sysdeps/ieee754/dbl-64/t_exp.c: Remove.
12745 * sysdeps/ieee754/dbl-64/t_exp2.h: Remove.
12746 * sysdeps/ieee754/dbl-64/uexp.h: Remove.
12747 * sysdeps/ieee754/dbl-64/uexp.tbl: Remove.
12748 * sysdeps/m68k/m680x0/fpu/e_exp_data.c: New file.
12749 * sysdeps/m68k/m680x0/fpu/math_err.c: New file.
12750 * sysdeps/m68k/m680x0/fpu/t_exp.c: Remove.
12751 * sysdeps/powerpc/fpu/libm-test-ulps: Update.
12752 * sysdeps/x86_64/fpu/libm-test-ulps: Update.
12753
12754 2018-09-05 Joseph Myers <joseph@codesourcery.com>
12755
12756 * sysdeps/alpha/fpu/math_private.h: Remove.
12757
12758 * sysdeps/generic/math_private.h
12759 [__HAVE_DISTINCT_FLOAT128 && !__GNUC_PREREQ (7, 0)] (__isinff128):
12760 Move this inline function ....
12761 [__HAVE_DISTINCT_FLOAT128] (fabsf128): And this one ....
12762 * include/math.h [!_ISOMAC]: To here....
12763
12764 2018-09-04 Joseph Myers <joseph@codesourcery.com>
12765
12766 * sysdeps/generic/fenv_private.h [FE_ALL_EXCEPT == 0]: Move this
12767 code ....
12768 [!FE_HAVE_ROUNDING_MODES]: And this code ....
12769 * include/fenv.h [!_ISOMAC]: ... to here.
12770 * math/fraiseexcpt.c (__feraiseexcept): Undefine as macro.
12771 (feraiseexcept): Likewise.
12772 * math/fromfp.h: Do not include <fenv_private.h>.
12773 * math/s_cexp_template.c: Likewise.
12774 * math/s_csin_template.c: Likewise.
12775 * math/s_csinh_template.c: Likewise.
12776 * math/s_ctan_template.c: Likewise.
12777 * math/s_ctanh_template.c: Likewise.
12778 * math/s_iseqsig_template.c: Likewise.
12779 * math/w_acos_compat.c: Likewise.
12780 * math/w_acosf_compat.c: Likewise.
12781 * math/w_acosl_compat.c: Likewise.
12782 * math/w_asin_compat.c: Likewise.
12783 * math/w_asinf_compat.c: Likewise.
12784 * math/w_asinl_compat.c: Likewise.
12785 * math/w_j0_compat.c: Likewise.
12786 * math/w_j0f_compat.c: Likewise.
12787 * math/w_j0l_compat.c: Likewise.
12788 * math/w_j1_compat.c: Likewise.
12789 * math/w_j1f_compat.c: Likewise.
12790 * math/w_j1l_compat.c: Likewise.
12791 * math/w_jn_compat.c: Likewise.
12792 * math/w_jnf_compat.c: Likewise.
12793 * math/w_log10_compat.c: Likewise.
12794 * math/w_log10f_compat.c: Likewise.
12795 * math/w_log10l_compat.c: Likewise.
12796 * math/w_log2_compat.c: Likewise.
12797 * math/w_log2f_compat.c: Likewise.
12798 * math/w_log2l_compat.c: Likewise.
12799 * math/w_log_compat.c: Likewise.
12800 * math/w_logf_compat.c: Likewise.
12801 * math/w_logl_compat.c: Likewise.
12802 * sysdeps/ieee754/dbl-64/s_llrint.c: Likewise.
12803 * sysdeps/ieee754/dbl-64/s_llround.c: Likewise.
12804 * sysdeps/ieee754/dbl-64/s_lrint.c: Likewise.
12805 * sysdeps/ieee754/dbl-64/s_lround.c: Likewise.
12806 * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Likewise.
12807 * sysdeps/ieee754/flt-32/s_llrintf.c: Likewise.
12808 * sysdeps/ieee754/flt-32/s_llroundf.c: Likewise.
12809 * sysdeps/ieee754/flt-32/s_lrintf.c: Likewise.
12810 * sysdeps/ieee754/flt-32/s_lroundf.c: Likewise.
12811 * sysdeps/ieee754/k_standardl.c: Likewise.
12812 * sysdeps/ieee754/ldbl-128/e_expl.c: Likewise.
12813 * sysdeps/ieee754/ldbl-128/s_fmal.c: Likewise.
12814 * sysdeps/ieee754/ldbl-128/s_llrintl.c: Likewise.
12815 * sysdeps/ieee754/ldbl-128/s_llroundl.c: Likewise.
12816 * sysdeps/ieee754/ldbl-128/s_lrintl.c: Likewise.
12817 * sysdeps/ieee754/ldbl-128/s_lroundl.c: Likewise.
12818 * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Likewise.
12819 * sysdeps/ieee754/ldbl-128ibm/s_llrintl.c: Likewise.
12820 * sysdeps/ieee754/ldbl-128ibm/s_llroundl.c: Likewise.
12821 * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c: Likewise.
12822 * sysdeps/ieee754/ldbl-128ibm/s_lroundl.c: Likewise.
12823 * sysdeps/ieee754/ldbl-96/s_fma.c: Likewise.
12824 * sysdeps/ieee754/ldbl-96/s_fmal.c: Likewise.
12825 * sysdeps/ieee754/ldbl-96/s_llrintl.c: Likewise.
12826 * sysdeps/ieee754/ldbl-96/s_llroundl.c: Likewise.
12827 * sysdeps/ieee754/ldbl-96/s_lrintl.c: Likewise.
12828 * sysdeps/ieee754/ldbl-96/s_lroundl.c: Likewise.
12829 * math/w_ilogb_template.c: Include <fenv.h> instead of
12830 <fenv_private.h>.
12831 * math/w_llogb_template.c: Likewise.
12832 * sysdeps/powerpc/fpu/e_sqrt.c: Likewise.
12833 * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
12834
12835 2018-09-03 Joseph Myers <joseph@codesourcery.com>
12836
12837 * sysdeps/generic/math_private.h: Do not include <fenv_private.h>.
12838 * math/fromfp.h: Include <fenv_private.h>.
12839 * math/math-narrow.h: Likewise.
12840 * math/s_cexp_template.c: Likewise.
12841 * math/s_csin_template.c: Likewise.
12842 * math/s_csinh_template.c: Likewise.
12843 * math/s_ctan_template.c: Likewise.
12844 * math/s_ctanh_template.c: Likewise.
12845 * math/s_iseqsig_template.c: Likewise.
12846 * math/w_acos_compat.c: Likewise.
12847 * math/w_acosf_compat.c: Likewise.
12848 * math/w_acosl_compat.c: Likewise.
12849 * math/w_asin_compat.c: Likewise.
12850 * math/w_asinf_compat.c: Likewise.
12851 * math/w_asinl_compat.c: Likewise.
12852 * math/w_ilogb_template.c: Likewise.
12853 * math/w_j0_compat.c: Likewise.
12854 * math/w_j0f_compat.c: Likewise.
12855 * math/w_j0l_compat.c: Likewise.
12856 * math/w_j1_compat.c: Likewise.
12857 * math/w_j1f_compat.c: Likewise.
12858 * math/w_j1l_compat.c: Likewise.
12859 * math/w_jn_compat.c: Likewise.
12860 * math/w_jnf_compat.c: Likewise.
12861 * math/w_llogb_template.c: Likewise.
12862 * math/w_log10_compat.c: Likewise.
12863 * math/w_log10f_compat.c: Likewise.
12864 * math/w_log10l_compat.c: Likewise.
12865 * math/w_log2_compat.c: Likewise.
12866 * math/w_log2f_compat.c: Likewise.
12867 * math/w_log2l_compat.c: Likewise.
12868 * math/w_log_compat.c: Likewise.
12869 * math/w_logf_compat.c: Likewise.
12870 * math/w_logl_compat.c: Likewise.
12871 * sysdeps/aarch64/fpu/feholdexcpt.c: Likewise.
12872 * sysdeps/aarch64/fpu/fesetround.c: Likewise.
12873 * sysdeps/aarch64/fpu/fgetexcptflg.c: Likewise.
12874 * sysdeps/aarch64/fpu/ftestexcept.c: Likewise.
12875 * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
12876 * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
12877 * sysdeps/ieee754/dbl-64/e_exp2.c: Likewise.
12878 * sysdeps/ieee754/dbl-64/e_gamma_r.c: Likewise.
12879 * sysdeps/ieee754/dbl-64/e_jn.c: Likewise.
12880 * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
12881 * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
12882 * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
12883 * sysdeps/ieee754/dbl-64/gamma_product.c: Likewise.
12884 * sysdeps/ieee754/dbl-64/lgamma_neg.c: Likewise.
12885 * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
12886 * sysdeps/ieee754/dbl-64/s_fma.c: Likewise.
12887 * sysdeps/ieee754/dbl-64/s_fmaf.c: Likewise.
12888 * sysdeps/ieee754/dbl-64/s_llrint.c: Likewise.
12889 * sysdeps/ieee754/dbl-64/s_llround.c: Likewise.
12890 * sysdeps/ieee754/dbl-64/s_lrint.c: Likewise.
12891 * sysdeps/ieee754/dbl-64/s_lround.c: Likewise.
12892 * sysdeps/ieee754/dbl-64/s_nearbyint.c: Likewise.
12893 * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
12894 * sysdeps/ieee754/dbl-64/s_sincos.c: Likewise.
12895 * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
12896 * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Likewise.
12897 * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c: Likewise.
12898 * sysdeps/ieee754/dbl-64/x2y2m1.c: Likewise.
12899 * sysdeps/ieee754/float128/float128_private.h: Likewise.
12900 * sysdeps/ieee754/flt-32/e_gammaf_r.c: Likewise.
12901 * sysdeps/ieee754/flt-32/e_j1f.c: Likewise.
12902 * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
12903 * sysdeps/ieee754/flt-32/lgamma_negf.c: Likewise.
12904 * sysdeps/ieee754/flt-32/s_llrintf.c: Likewise.
12905 * sysdeps/ieee754/flt-32/s_llroundf.c: Likewise.
12906 * sysdeps/ieee754/flt-32/s_lrintf.c: Likewise.
12907 * sysdeps/ieee754/flt-32/s_lroundf.c: Likewise.
12908 * sysdeps/ieee754/flt-32/s_nearbyintf.c: Likewise.
12909 * sysdeps/ieee754/k_standardl.c: Likewise.
12910 * sysdeps/ieee754/ldbl-128/e_expl.c: Likewise.
12911 * sysdeps/ieee754/ldbl-128/e_gammal_r.c: Likewise.
12912 * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
12913 * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
12914 * sysdeps/ieee754/ldbl-128/gamma_productl.c: Likewise.
12915 * sysdeps/ieee754/ldbl-128/lgamma_negl.c: Likewise.
12916 * sysdeps/ieee754/ldbl-128/s_fmal.c: Likewise.
12917 * sysdeps/ieee754/ldbl-128/s_llrintl.c: Likewise.
12918 * sysdeps/ieee754/ldbl-128/s_llroundl.c: Likewise.
12919 * sysdeps/ieee754/ldbl-128/s_lrintl.c: Likewise.
12920 * sysdeps/ieee754/ldbl-128/s_lroundl.c: Likewise.
12921 * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Likewise.
12922 * sysdeps/ieee754/ldbl-128/x2y2m1l.c: Likewise.
12923 * sysdeps/ieee754/ldbl-128ibm/e_expl.c: Likewise.
12924 * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c: Likewise.
12925 * sysdeps/ieee754/ldbl-128ibm/e_j1l.c: Likewise.
12926 * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
12927 * sysdeps/ieee754/ldbl-128ibm/lgamma_negl.c: Likewise.
12928 * sysdeps/ieee754/ldbl-128ibm/s_fmal.c: Likewise.
12929 * sysdeps/ieee754/ldbl-128ibm/s_llrintl.c: Likewise.
12930 * sysdeps/ieee754/ldbl-128ibm/s_llroundl.c: Likewise.
12931 * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c: Likewise.
12932 * sysdeps/ieee754/ldbl-128ibm/s_lroundl.c: Likewise.
12933 * sysdeps/ieee754/ldbl-128ibm/s_rintl.c: Likewise.
12934 * sysdeps/ieee754/ldbl-128ibm/x2y2m1l.c: Likewise.
12935 * sysdeps/ieee754/ldbl-96/e_gammal_r.c: Likewise.
12936 * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
12937 * sysdeps/ieee754/ldbl-96/gamma_productl.c: Likewise.
12938 * sysdeps/ieee754/ldbl-96/lgamma_negl.c: Likewise.
12939 * sysdeps/ieee754/ldbl-96/s_fma.c: Likewise.
12940 * sysdeps/ieee754/ldbl-96/s_fmal.c: Likewise.
12941 * sysdeps/ieee754/ldbl-96/s_llrintl.c: Likewise.
12942 * sysdeps/ieee754/ldbl-96/s_llroundl.c: Likewise.
12943 * sysdeps/ieee754/ldbl-96/s_lrintl.c: Likewise.
12944 * sysdeps/ieee754/ldbl-96/s_lroundl.c: Likewise.
12945 * sysdeps/ieee754/ldbl-96/x2y2m1l.c: Likewise.
12946 * sysdeps/powerpc/fpu/e_sqrt.c: Likewise.
12947 * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
12948 * sysdeps/riscv/rv64/rvd/s_ceil.c: Likewise.
12949 * sysdeps/riscv/rv64/rvd/s_floor.c: Likewise.
12950 * sysdeps/riscv/rv64/rvd/s_nearbyint.c: Likewise.
12951 * sysdeps/riscv/rv64/rvd/s_round.c: Likewise.
12952 * sysdeps/riscv/rv64/rvd/s_roundeven.c: Likewise.
12953 * sysdeps/riscv/rv64/rvd/s_trunc.c: Likewise.
12954 * sysdeps/riscv/rvd/s_finite.c: Likewise.
12955 * sysdeps/riscv/rvd/s_fmax.c: Likewise.
12956 * sysdeps/riscv/rvd/s_fmin.c: Likewise.
12957 * sysdeps/riscv/rvd/s_fpclassify.c: Likewise.
12958 * sysdeps/riscv/rvd/s_isinf.c: Likewise.
12959 * sysdeps/riscv/rvd/s_isnan.c: Likewise.
12960 * sysdeps/riscv/rvd/s_issignaling.c: Likewise.
12961 * sysdeps/riscv/rvf/fegetround.c: Likewise.
12962 * sysdeps/riscv/rvf/feholdexcpt.c: Likewise.
12963 * sysdeps/riscv/rvf/fesetenv.c: Likewise.
12964 * sysdeps/riscv/rvf/fesetround.c: Likewise.
12965 * sysdeps/riscv/rvf/feupdateenv.c: Likewise.
12966 * sysdeps/riscv/rvf/fgetexcptflg.c: Likewise.
12967 * sysdeps/riscv/rvf/ftestexcept.c: Likewise.
12968 * sysdeps/riscv/rvf/s_ceilf.c: Likewise.
12969 * sysdeps/riscv/rvf/s_finitef.c: Likewise.
12970 * sysdeps/riscv/rvf/s_floorf.c: Likewise.
12971 * sysdeps/riscv/rvf/s_fmaxf.c: Likewise.
12972 * sysdeps/riscv/rvf/s_fminf.c: Likewise.
12973 * sysdeps/riscv/rvf/s_fpclassifyf.c: Likewise.
12974 * sysdeps/riscv/rvf/s_isinff.c: Likewise.
12975 * sysdeps/riscv/rvf/s_isnanf.c: Likewise.
12976 * sysdeps/riscv/rvf/s_issignalingf.c: Likewise.
12977 * sysdeps/riscv/rvf/s_nearbyintf.c: Likewise.
12978 * sysdeps/riscv/rvf/s_roundevenf.c: Likewise.
12979 * sysdeps/riscv/rvf/s_roundf.c: Likewise.
12980 * sysdeps/riscv/rvf/s_truncf.c: Likewise.
12981
12982 2018-08-31 Paul Pluzhnikov <ppluzhnikov@google.com>
12983
12984 [BZ #20271]
12985 * include/stdio.h (__libc_fatal): Mention newline in comment.
12986 * grp/initgroups.c (internal_getgrouplist): Add missing newline.
12987 * nptl/pthread_cond_wait.c (__pthread_cond_wait_common): Likewise.
12988 * nscd/initgrcache.c (addinitgroupsX): Likewise.
12989 * nss/nsswitch.c (__nss_next2): Likewise.
12990 * sysdeps/aarch64/dl-irel.h (elf_irela): Likewise.
12991 * sysdeps/arm/dl-irel.h (elf_irel): Likewise.
12992 * sysdeps/generic/unwind-dw2.c (execute_cfa_program): Likewise.
12993 * sysdeps/i386/dl-irel.h (elf_irel): Likewise.
12994 * sysdeps/powerpc/powerpc32/dl-irel.h (elf_irel): Likewise.
12995 * sysdeps/powerpc/powerpc64/dl-irel.h (elf_irel): Likewise.
12996 * sysdeps/s390/dl-irel.h (elf_irel): Likewise.
12997 * sysdeps/sparc/sparc32/dl-irel.h (elf_irel): Likewise.
12998 * sysdeps/sparc/sparc64/dl-irel.h (elf_irel): Likewise.
12999 * sysdeps/x86_64/dl-irel.h (elf_irel): Likewise.
13000 * sysdeps/nptl/futex-internal.h (futex_wake): Likewise.
13001 * sysdeps/unix/sysv/linux/netlink_assert_response.c
13002 (__netlink_assert_response): Likewise.
13003
13004 2018-08-31 Joseph Myers <joseph@codesourcery.com>
13005
13006 * conform/glibcconform.py: New file.
13007 * conform/list-header-symbols.py: Likewise.
13008 * conform/list-header-symbols.pl: Remove.
13009 * conform/Makefile (tests-special): Only add linknamespace tests
13010 if [PYTHON].
13011 ($(linknamespace-symlists-tests)): Use list-header-symbols.py.
13012
13013 2018-08-31 H.J. Lu <hongjiu.lu@intel.com>
13014
13015 [BZ #23597]
13016 * support/Makefile (libsupport-routines): Add
13017 support_copy_file_range and xcopy_file_range.
13018 * support/support.h: Include <sys/types.h>.
13019 (support_copy_file_range): New prototype.
13020 * support/support_copy_file_range.c: New file. Copied and
13021 modified from io/copy_file_range-compat.c.
13022 * support/test-container.c (copy_one_file): Call xcopy_file_rang
13023 instead of copy_file_range.
13024 * support/xcopy_file_range.c: New file.
13025 * support/xunistd.h (xcopy_file_range): New prototype.
13026
13027 2018-08-30 Carlos O'Donell <carlos@redhat.com>
13028
13029 * elf/tst-dlopen-aout.c: Include support/xthread.h. Use
13030 xpthread_create and xpthread_join.
13031
13032 2018-08-30 Florian Weimer <fweimer@redhat.com>
13033
13034 * stdlib/stdlib.h (reallocarray): Make available under __USE_MISC.
13035
13036 2018-08-30 Stefan Liebler <stli@linux.ibm.com>
13037
13038 * stdlib/test-bz22786.c (do_test): Return EXIT_UNSUPPORTED
13039 if malloc fails.
13040
13041 2018-08-29 Joseph Myers <joseph@codesourcery.com>
13042
13043 * math/gen-libm-test.py (gen_test_args_res): Also treat plus_oflow
13044 and minus_oflow as non-finite.
13045
13046 2018-08-28 Joseph Myers <joseph@codesourcery.com>
13047
13048 * sysdeps/aarch64/fpu/fenv_private.h: New file. Based on ....
13049 * sysdeps/aarch64/fpu/math_private.h: ... this file. All contents
13050 moved to fenv_private.h except for ...
13051 (TOINT_INTRINSICS): Kept in math_private.h.
13052 (roundtoint): Likewise.
13053 (converttoint): Likewise.
13054 * sysdeps/arm/fenv_private.h: Change multiple-include guard to
13055 [ARM_FENV_PRIVATE_H]. Include next <fenv_private.h>.
13056 * sysdeps/arm/math_private.h: Remove.
13057 * sysdeps/generic/fenv_private.h: New file. Contents moved from
13058 ....
13059 * sysdeps/generic/math_private.h: ... this file. Include
13060 <stdbool.h>. Do not include <fenv.h> or <get-rounding-mode.h>.
13061 Include <fenv_private.h>. Remove functions and macros moved to
13062 fenv_private.h.
13063 * sysdeps/i386/fpu/math_private.h: Remove.
13064 * sysdeps/mips/math_private.h: Move to ....
13065 * sysdeps/mips/fpu/fenv_private.h: ... here. Change
13066 multiple-include guard to [MIPS_FENV_PRIVATE_H]. Remove
13067 [__mips_hard_float] conditional. Include next <fenv_private.h>.
13068 * sysdeps/powerpc/fpu/fenv_private.h: Change multiple-include
13069 guard to [POWERPC_FENV_PRIVATE_H]. Include next <fenv_private.h>.
13070 * sysdeps/powerpc/fpu/math_private.h: Do not include
13071 <fenv_private.h>.
13072 * sysdeps/riscv/rvf/math_private.h: Move to ....
13073 * sysdeps/riscv/rvf/fenv_private.h: ... here. Change
13074 multiple-include guard to [RISCV_FENV_PRIVATE_H]. Include next
13075 <fenv_private.h>.
13076 * sysdeps/sparc/fpu/fenv_private.h: Change multiple-include guard
13077 to [SPARC_FENV_PRIVATE_H]. Include next <fenv_private.h>.
13078 * sysdeps/sparc/fpu/math_private.h: Remove.
13079 * sysdeps/i386/fpu/fenv_private.h: Move to ....
13080 * sysdeps/x86/fpu/fenv_private.h: ... here. Change
13081 multiple-include guard to [X86_FENV_PRIVATE_H]. Include next
13082 <fenv_private.h>.
13083 * sysdeps/x86_64/fpu/math_private.h: Do not include
13084 <sysdeps/i386/fpu/fenv_private.h>.
13085
13086 2018-08-28 Florian Weimer <fweimer@redhat.com>
13087
13088 [BZ #23578]
13089 * posix/tst-regcomp-truncated.c: New file.
13090 * posix/Makefile (tests): Add it.
13091 (tst-regcomp-truncated.out): Depend on generated locales.
13092
13093 2018-08-28 Florian Weimer <fweimer@redhat.com>
13094
13095 * support/test-container.c (main): Treat unshare failure with
13096 EPERM as an unsupported test.
13097
13098 2018-08-28 Florian Weimer <fweimer@redhat.com>
13099
13100 [BZ #23520]
13101 nscd: Fix use-after-free in addgetnetgrentX and its callers.
13102 * nscd/netgroupcache.c
13103 (addgetnetgrentX): Add tofreep parameter. Do not free
13104 heap-allocated buffer.
13105 (addinnetgrX): Free buffer allocated bt addgetnetgrentX.
13106 (addgetnetgrentX_ignore): New function.
13107 (addgetnetgrent): Call it.
13108 (readdgetnetgrent): Likewise.
13109
13110 2018-08-28 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
13111
13112 * string/memmem.c: Use memcmp for first match.
13113
13114 2018-08-28 Rafał Lużyński <digitalfreak@lingonborough.com>
13115
13116 [BZ #17426]
13117 * localedata/locales/en_IN (d_fmt): Use "%d/%m/%y".
13118
13119 2018-08-27 DJ Delorie <dj@redhat.com>
13120
13121 * support/Makefile (others): Don't list programs explicitly as a
13122 dependency of "others".
13123
13124 2018-08-27 Joseph Myers <joseph@codesourcery.com>
13125
13126 * sysdeps/generic/math-tests-trap-force.h: New file.
13127 * sysdeps/generic/math-tests.h: Include <math-tests-trap-force.h>.
13128 (EXCEPTION_SET_FORCES_TRAP): Do not define here.
13129 * sysdeps/powerpc/math-tests.h: Remove file.
13130 * sysdeps/powerpc/fpu/math-tests-trap-force.h: New file.
13131
13132 2018-08-27 Martin Kuchta <martin.kuchta@netapp.com>
13133 Torvald Riegel <triegel@redhat.com>
13134
13135 [BZ #23538]
13136 * nptl/pthread_cond_common.c (__condvar_quiesce_and_switch_g1):
13137 Update r to include the set wake-request flag if waiters are
13138 remaining after spinning.
13139
13140 2018-08-27 Joseph Myers <joseph@codesourcery.com>
13141
13142 * sysdeps/gnu/netinet/udp.h (UDP_SEGMENT): New macro.
13143
13144 2018-08-25 Paul Eggert <eggert@cs.ucla.edu>
13145
13146 [BZ #23578]
13147 regex: fix uninitialized memory access
13148 I introduced this bug into gnulib in commit
13149 8335a4d6c7b4448cd0bcb6d0bebf1d456bcfdb17 dated 2006-04-10;
13150 eventually it was merged into glibc. The bug was found by
13151 project-repo <bugs@feusi.co> and reported here:
13152 https://lists.gnu.org/r/sed-devel/2018-08/msg00017.html
13153 Diagnosis and draft fix reported by Assaf Gordon here:
13154 https://lists.gnu.org/r/bug-gnulib/2018-08/msg00071.html
13155 https://lists.gnu.org/r/bug-gnulib/2018-08/msg00142.html
13156 * posix/regex_internal.c (build_wcs_upper_buffer):
13157 Fix bug when mbrtowc returns 0.
13158
13159 2018-08-24 Carlos O'Donell <carlos@redhat.com>
13160
13161 * po/be.po: Update translation.
13162
13163 2018-08-24 DJ Delorie <dj@delorie.com>
13164
13165 * support/Makefile (LDLIBS-links-dso-program): Add -lgcc and
13166 $(libunwind).
13167
13168 2018-08-24 Paul Pluzhnikov <ppluzhnikov@google.com>
13169
13170 [BZ #23400]
13171 * stdlib/test-bz22786.c (do_test): Fix undefined behavior, don't
13172 create temporary files in source tree.
13173
13174 2018-08-24 Joseph Myers <joseph@codesourcery.com>
13175
13176 * sysdeps/generic/math-tests-trap.h: New file.
13177 * sysdeps/generic/math-tests.h: Include <math-tests-trap.h>.
13178 (EXCEPTION_ENABLE_SUPPORTED): Do not define here.
13179 * sysdeps/aarch64/math-tests.h: Remove file.
13180 * sysdeps/arm/math-tests.h: Likewise.
13181 * sysdeps/riscv/math-tests.h: Likewise.
13182 * sysdeps/aarch64/math-tests-trap.h: New file.
13183 * sysdeps/arm/math-tests-trap.h: Likewise.
13184 * sysdeps/riscv/math-tests-trap.h: Likewise.
13185
13186 2018-08-24 Wilco Dijkstra <wdijkstr@arm.com>
13187
13188 * math/Makefile: Remove empty files k_sin(f).c, k_cos(f).c.
13189 Remove unused files e_rem_pio2(f).c, k_rem_pio2f.c.
13190 * sysdeps/i386/fpu/e_rem_pio2.c: Delete file.
13191 * sysdeps/ia64/fpu/e_rem_pio2.c: Likewise.
13192 * sysdeps/ia64/fpu/e_rem_pio2f.c: Likewise.
13193 * sysdeps/ia64/fpu/k_rem_pio2f.c: Likewise.
13194 * sysdeps/ieee754/dbl-64/e_rem_pio2.c: Likewise.
13195 * sysdeps/ieee754/dbl-64/k_cos.c: Likewise.
13196 * sysdeps/ieee754/dbl-64/k_sin.c: Likewise.
13197 * sysdeps/ieee754/flt-32/e_rem_pio2f.c: Likewise.
13198 * sysdeps/ieee754/flt-32/k_cosf.c: Likewise.
13199 * sysdeps/ieee754/flt-32/k_rem_pio2f.c: Likewise.
13200 * sysdeps/ieee754/flt-32/k_sinf.c: Likewise.
13201 * sysdeps/m68k/m680x0/fpu/e_rem_pio2.c: Likewise
13202 * sysdeps/m68k/m680x0/fpu/e_rem_pio2f.c: Likewise
13203 * sysdeps/m68k/m680x0/fpu/k_rem_pio2f.c: Likewise
13204 * sysdeps/powerpc/fpu/e_rem_pio2f.c: Likewise.
13205 * sysdeps/powerpc/fpu/k_rem_pio2f.c: Likewise.
13206
13207 2018-08-23 Joseph Myers <joseph@codesourcery.com>
13208
13209 * sysdeps/generic/math-tests-exceptions.h: New file.
13210 * sysdeps/generic/math-tests.h: Include <math-tests-exceptions.h>.
13211 (EXCEPTION_TESTS_float): Do not define here.
13212 (EXCEPTION_TESTS_double): Likewise.
13213 (EXCEPTION_TESTS_long_double): Likewise.
13214 (EXCEPTION_TESTS_float128): Likewise.
13215 * sysdeps/arm/math-tests.h [__SOFTFP__] (EXCEPTION_TESTS_float):
13216 Likewise.
13217 [__SOFTFP__] (EXCEPTION_TESTS_double): Likewise.
13218 [__SOFTFP__] (EXCEPTION_TESTS_long_double): Likewise.
13219 * sysdeps/arm/nofpu/math-tests-exceptions.h: New file.
13220 * sysdeps/m68k/coldfire/math-tests.h: Remove file.
13221 * sysdeps/mips/math-tests.h: Likewise.
13222 * sysdeps/nios2/math-tests.h: Likewise.
13223 * sysdeps/riscv/math-tests.h [!__riscv_flen]
13224 (EXCEPTION_TESTS_float): Do not define here.
13225 [!__riscv_flen] (EXCEPTION_TESTS_double): Likewise.
13226 [!__riscv_flen] (EXCEPTION_TESTS_long_double): Likewise.
13227 * sysdeps/riscv/nofpu/math-tests-exceptions.h: New file.
13228
13229 2018-08-23 Wilco Dijkstra <wdijkstr@arm.com>
13230
13231 * NEWS: Move optimized sinf entry to 2.29.
13232
13233 2018-08-23 Wilco Dijkstra <wdijkstr@arm.com>
13234
13235 * sysdeps/ieee754/flt-32/s_tanf.c (__tanf): Use fast range reduction.
13236
13237 2018-08-22 DJ Delorie <dj@redhat.com>
13238
13239 * Makefile (testroot.pristine): New rules to initialize the
13240 test-in-container "testroot".
13241 * Makerules (all-testsuite): Add tests-container.
13242 * Rules (tests-expected): Add tests-container.
13243 (binaries-all-tests): Likewise.
13244 (tests-container): New, run these tests in the testroot container.
13245 * support/Makefile (others): Add *-container, support_paths.c,
13246 xmkdirp, and links-dso-program.
13247 * support/links-dso-program-c.c: New.
13248 * support/links-dso-program.cc: New.
13249 * support/test-container.c: New.
13250 * support/shell-container.c: New.
13251 * support/echo-container.c: New.
13252 * support/true-container.c: New.
13253 * support/xmkdirp.c: New.
13254 * support/xsymlink.c: New.
13255 * support/support_paths.c: New.
13256 * support/support.h: Add support paths prototypes.
13257 * support/xunistd.h: Add xmkdirp () and xsymlink ().
13258
13259 * nss/tst-nss-test3.c: Convert to test-in-container.
13260 * nss/tst-nss-test3.root/: New.
13261
13262 2018-08-22 Paul Eggert <eggert@cs.ucla.edu>
13263
13264 regex: port Gnulib code to z/OS POSIX environment
13265 Problem reported by Arnold Robbins in:
13266 https://lists.gnu.org/r/bug-gnulib/2018-08/msg00129.html
13267 * posix/regex_internal.h (__iswalnum, __towlower, __towupper) [!_LIBC]:
13268 Undef.
13269
13270 2018-08-22 Joseph Myers <joseph@codesourcery.com>
13271
13272 * math/test-double-vlen2.h: Don't include <math-tests-rounding.h>.
13273 (ROUNDING_TESTS_double): Remove.
13274 * math/test-double-vlen4.h: Don't include <math-tests-rounding.h>.
13275 (ROUNDING_TESTS_double): Remove.
13276 * math/test-double-vlen8.h: Don't include <math-tests-rounding.h>.
13277 (ROUNDING_TESTS_double): Remove.
13278 * math/test-float-vlen16.h: Don't include <math-tests-rounding.h>.
13279 (ROUNDING_TESTS_float): Remove.
13280 * math/test-float-vlen4.h: Don't include <math-tests-rounding.h>.
13281 (ROUNDING_TESTS_float): Remove.
13282 * math/test-float-vlen8.h: Don't include <math-tests-rounding.h>.
13283 (ROUNDING_TESTS_float): Remove.
13284 * math/libm-test-driver.c (IF_ROUND_INIT_FE_DOWNWARD): Check
13285 !TEST_MATHVEC here.
13286 (IF_ROUND_INIT_FE_TOWARDZERO): Likewise.
13287 (IF_ROUND_INIT_FE_UPWARD): Likewise.
13288
13289 * sysdeps/generic/math-tests-rounding.h: New file.
13290 * sysdeps/generic/math-tests.h: Include <math-tests-rounding.h>.
13291 (ROUNDING_TESTS_float): Do not define here.
13292 (ROUNDING_TESTS_double): Likewise.
13293 (ROUNDING_TESTS_long_double): Likewise.
13294 (ROUNDING_TESTS_float128): Likewise.
13295 * math/test-double-vlen2.h: Include <math-tests-rounding.h>.
13296 (ROUNDING_TESTS_double): Undefine before defining.
13297 * math/test-double-vlen4.h: Include <math-tests-rounding.h>.
13298 (ROUNDING_TESTS_double): Undefine before defining.
13299 * math/test-double-vlen8.h: Include <math-tests-rounding.h>.
13300 (ROUNDING_TESTS_double): Undefine before defining.
13301 * math/test-float-vlen16.h: Include <math-tests-rounding.h>.
13302 (ROUNDING_TESTS_float): Undefine before defining.
13303 * math/test-float-vlen4.h: Include <math-tests-rounding.h>.
13304 (ROUNDING_TESTS_float): Undefine before defining.
13305 * math/test-float-vlen8.h: Include <math-tests-rounding.h>.
13306 (ROUNDING_TESTS_float): Undefine before defining.
13307 * sysdeps/arm/nofpu/math-tests-rounding.h: New file.
13308 * sysdeps/arm/math-tests.h [__SOFTFP__] (ROUNDING_TESTS_float): Do
13309 not define here.
13310 [__SOFTFP__] (ROUNDING_TESTS_double): Likewise.
13311 [__SOFTFP__] (ROUNDING_TESTS_long_double): Likewise.
13312 * sysdeps/riscv/nofpu/math-tests-rounding.h: New file.
13313 * sysdeps/riscv/math-tests.h [!__riscv_flen]
13314 (ROUNDING_TESTS_float): Do not define here.
13315 [!__riscv_flen] (ROUNDING_TESTS_double): Likewise.
13316 [!__risv_flen] (ROUNDING_TESTS_long_double): Likewise.
13317 * sysdeps/m68k/coldfire/math-tests.h [!__mcffpu__]
13318 (ROUNDING_TESTS_float): Likewise.
13319 [!__mcffpu__] (ROUNDING_TESTS_double): Likewise.
13320 [!__mcffpu__] (ROUNDING_TESTS_long_double): Likewise.
13321 * sysdeps/mips/math-tests.h [__mips_soft_float]
13322 (ROUNDING_TESTS_float): Likewise.
13323 [__mips_soft_float] (ROUNDING_TESTS_double): Likewise.
13324 [__mips_soft_float] (ROUNDING_TESTS_long_double): Likewise.
13325 * sysdeps/nios2/math-tests.h (ROUNDING_TESTS_float): Likewise.
13326 (ROUNDING_TESTS_double): Likewise.
13327 (ROUNDING_TESTS_long_double): Likewise.
13328
13329 2018-08-21 Tobias Klauser <tklauser@distanz.ch>
13330
13331 * sysdeps/unix/sysv/linux/bits/socket.h (PF_MAX): Set to 45.
13332 (PF_XDP): New macro.
13333 (AF_XDP): New macro.
13334 (SOL_XDP): New macro.
13335
13336 2018-08-21 Joseph Myers <joseph@codesourcery.com>
13337
13338 * sysdeps/gnu/netinet/tcp.h (TCP_ZEROCOPY_RECEIVE): New macro.
13339 (TCP_INQ): Likewise.
13340 (TCP_CM_INQ): Likewise.
13341 (TCP_REPAIR_ON): Likewise.
13342 (TCP_REPAIR_OFF): Likewise.
13343 (TCP_REPAIR_OFF_NO_WP): Likewise.
13344 (struct tcp_zerocopy_receive): New type.
13345
13346 2018-08-21 Florian Weimer <fweimer@redhat.com>
13347
13348 * support/support.h (support_descriptor_supports_holes): Declare.
13349 * support/Makefile (libsupport-routines): Add
13350 support_descriptor_supports_holes.
13351 * support/support_descriptor_supports_holes.c: New file.
13352 * io/tst-copy_file_range.c: Call support_descriptor_supports_holes
13353 and stop testing if holes are not supported.
13354 * io/test-lfs.c (do_prepare): Likewise.
13355 * sysdeps/unix/sysv/linux/tst-fallocate-common.c (do_prepare):
13356 Likewise.
13357 * timezone/tst-tzset.c (create_tz_file): Likewise.
13358 * misc/tst-preadvwritev-common.c (temp_fd_supports_holes) New
13359 variable.
13360 (do_prepare): Set it.
13361 * misc/tst-preadvwritev64.c (do_test): Use temp_fd_supports_holes.
13362
13363 2018-08-21 Florian Weimer <fweimer@redhat.com>
13364
13365 [BZ #17248]
13366 * Makeconfig (+cflags): Do not sort (and deduplicate).
13367
13368 2018-08-21 Florian Weimer <fweimer@redhat.com>
13369
13370 * debug/readlink_chk.c (__readlink_chk): Always call __readlink.
13371 * sysdeps/unix/sysv/linux/generic/readlink_chk.c: Remove file.
13372
13373 2018-08-20 Florian Weimer <fweimer@redhat.com>
13374
13375 * sysdeps/unix/sysv/linux/generic/readlink_chk.c: Remove
13376 HAVE_INLINED_SYSCALLS conditionals. Use INLINE_SYSCALL_CALL.
13377
13378 2018-08-20 Joseph Myers <joseph@codesourcery.com>
13379
13380 * sysdeps/unix/sysv/linux/sys/signalfd.h (struct
13381 signalfd_siginfo): Add ssi_addr_lsb, ssi_syscall, ssi_call_addr
13382 and ssi_arch members.
13383
13384 * elf/elf.c (NT_VMCOREDD): New macro.
13385 (AT_MINSIGSTKSZ): Likewise.
13386
13387 2018-08-20 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
13388
13389 * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile
13390 (libm-sysdep_routines): Remove s_sinf-ppc64, s_sinf-power8,
13391 s_cosf-ppc64 and s_cosf-power8.
13392 * sysdeps/powerpc/fpu/s_cosf.c: Remove file.
13393 * sysdeps/powerpc/fpu/s_sinf.c: Likewise.
13394 * sysdeps/powerpc/fpu/k_sinf.c: Likewise.
13395 * sysdeps/powerpc/fpu/k_cosf.c: Likewise.
13396 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_cosf-power8.S: Likewise.
13397 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_cosf-ppc64.c: Likewise.
13398 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_cosf.c: Likewise.
13399 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_sinf-power8.S: Likewise.
13400 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_sinf-ppc64.c: Likewise.
13401 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_sinf.c: Likewise.
13402 * sysdeps/powerpc/powerpc64/power8/fpu/s_cosf.S: Likewise.
13403 * sysdeps/powerpc/powerpc64/power8/fpu/s_sinf.S: Likewise.
13404
13405 2018-08-17 Florian Weimer <fweimer@redhat.com>
13406
13407 * sysdeps/s390/fpu/libm-test-ulps: Regenerate.
13408
13409 2018-08-17 Istvan Kurucsai <pistukem@gmail.com>
13410
13411 * malloc/malloc.c (_int_malloc): Additional binning code checks.
13412
13413 2018-08-16 Florian Weimer <fweimer@redhat.com>
13414
13415 * configure.ac: Add --with-nonshared-cflags option.
13416 * config.make.in (extra-nonshared-cflags): Set variable.
13417 * Makeconfig (CFLAGS-.oS): Use it.
13418 * manual/install.texi (Configuring and compiling): Document
13419 --with-nonshared-cflags.
13420 * configure: Regenerate.
13421 * INSTALL: Likewise.
13422
13423 2018-08-16 Florian Weimer <fweimer@redhat.com>
13424
13425 * Makeconfig (ASFLAGS): Always append required assembler flags.
13426
13427 2018-08-16 Moritz Eckert <m.eckert@cs.ucsb.edu>
13428
13429 * malloc/malloc.c (_int_free): Check for corrupt prev_size vs size.
13430 (malloc_consolidate): Likewise.
13431
13432 2018-08-16 Pochang Chen <johnchen902@gmail.com>
13433
13434 * malloc/malloc.c (_int_malloc.c): Verify size of top chunk.
13435
13436 2018-08-16 Siddhesh Poyarekar <siddhesh@sourceware.org>
13437
13438 * benchtests/bench-strlen.c (do_test): Allocate buffers before
13439 every strlen call.
13440
13441 * benchtests/bench-strlen.c: Print performance numbers in json.
13442
13443 2018-08-16 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
13444
13445 * sysdeps/powerpc/powerpc64/multiarch/Makefile
13446 (sysdep_routines): Build strcmp-power9 and strncmp-power9
13447 only for little endian.
13448 * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
13449 (strncmp): Move __strncmp_power9 inside ifdef __LITTLE_ENDIAN__.
13450 (STRCMP): Move __strcmp_power9 inside ifdef __LITTLE_ENDIAN__.
13451 * sysdeps/powerpc/powerpc64/multiarch/strcmp-power9.S:
13452 Add check for little endian.
13453 * sysdeps/powerpc/powerpc64/multiarch/strcmp.c
13454 (__strcmp_power9): Add check for little endian.
13455 * sysdeps/powerpc/powerpc64/multiarch/strncmp-power9.S:
13456 Add check for little endian.
13457 * sysdeps/powerpc/powerpc64/multiarch/strncmp.c
13458 (__strncmp_power9): Add check for little endian.
13459 * sysdeps/powerpc/powerpc64/power9/strcmp.S: Removed ifdef
13460 __LITTLE_ENDIAN__ and moved to sysdeps/powerpc/powerpc64/le/power9.
13461 * sysdeps/powerpc/powerpc64/power9/strncmp.S: Likewise.
13462 * sysdeps/powerpc/powerpc64/le/power9/strcmp.S: New file.
13463 * sysdeps/powerpc/powerpc64/le/power9/strncmp.S: Likewise.
13464
13465 2018-08-15 Siddhesh Poyarekar <siddhesh@sourceware.org>
13466
13467 * sysdeps/aarch64/strlen.S (__strlen): Rename to STRLEN.
13468 [!STRLEN](STRLEN): Set to __strlen.
13469 * sysdeps/aarch64/multiarch/strlen.c: New file.
13470 * sysdeps/aarch64/multiarch/strlen_generic.S: Likewise.
13471 * sysdeps/aarch64/multiarch/strlen_asimd.S: Likewise.
13472 * sysdeps/aarch64/multiarch/ifunc-impl-list.c
13473 (__libc_ifunc_impl_list): Add strlen.
13474 * sysdeps/aarch64/multiarch/Makefile (sysdep_routines): Add
13475 strlen_generic and strlen_asimd.
13476
13477 2018-08-15 Wilco Dijkstra <wdijkstr@arm.com>
13478
13479 * sysdeps/ieee754/flt-32/e_lgammaf_r.c (sin_pif): Use __sinf/__cosf.
13480 * sysdeps/ieee754/flt-32/k_cosf.c (__kernel_cosf): Remove all code.
13481 * sysdeps/ieee754/flt-32/k_sinf.c (__kernel_sinf): Likewise.
13482
13483 2018-08-15 Wilco Dijkstra <wdijkstr@arm.com>
13484
13485 * sysdeps/x86_64/fpu/libm-test-ulps: Regenerate to fix spaces.
13486
13487 2018-08-14 Florian Weimer <fweimer@redhat.com>
13488
13489 [BZ #23519]
13490 * include/stdio.h (__vfxprintf): Declare.
13491 * stdio-common/fxprintf.c (__vfxprintf): New function.
13492 (__fxprintf): Call it.
13493 * misc/err.c (convert_and_print): Remove function.
13494 (vwarnx, vwarn): Call __fxprintf and __vfxprintf.
13495 * misc/error.c [_LIBC] (error_tail): Call __vfxprintf.
13496 * misc/Makefile (tests): Add tst-warn-wide.
13497 * misc/tst-warn-wide.c: New file.
13498
13499 2018-08-14 Wilco Dijkstra <wdijkstr@arm.com>
13500 Szabolcs Nagy <szabolcs.nagy@arm.com>
13501
13502 * NEWS: Mention sinf, cosf, sincosf.
13503 * sysdeps/aarch64/libm-test-ulps: Update ULP for sinf, cosf, sincosf.
13504 * sysdeps/x86_64/fpu/libm-test-ulps: Update ULP for sinf and cosf.
13505 * sysdeps/x86_64/fpu/multiarch/s_sincosf-fma.c: Add definitions of
13506 constants rather than including generic sincosf.h.
13507 * sysdeps/x86_64/fpu/s_sincosf_data.c: Remove.
13508 * sysdeps/ieee754/flt-32/s_cosf.c (cosf): Rewrite.
13509 * sysdeps/ieee754/flt-32/s_sincosf.h (reduced_sin): Remove.
13510 (reduced_cos): Remove.
13511 (sinf_poly): New function.
13512 * sysdeps/ieee754/flt-32/s_sinf.c (sinf): Rewrite.
13513
13514 2018-08-14 Florian Weimer <fweimer@redhat.com>
13515
13516 [BZ #23521]
13517 [BZ #23522]
13518 * nss/nss_files/files-alias.c (get_next_alias): During :include:
13519 processing, bail out if no room, and close the stream before
13520 returning ERANGE.
13521 * nss/Makefile (tests): Add tst-nss-files-alias-leak.
13522 (tst-nss-files-alias-leak): Link with libdl.
13523 (tst-nss-files-alias-leak.out): Depend on nss_files.
13524
13525 * nss/tst-nss-files-alias-leak.c: New file.
13526
13527 2018-08-14 Florian Weimer <fweimer@redhat.com>
13528
13529 * nscd/nscd_conf.c (nscd_parse_file): Deallocate old storage for
13530 server_user, stat_user.
13531
13532 2018-08-13 Joseph Myers <joseph@codesourcery.com>
13533
13534 * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
13535 version to 4.18.
13536 (io_pgetevents): New syscall.
13537 (rseq): Likewise.
13538
13539 * manual/install.texi (Configuring and compiling): Do not list
13540 tools used for testing pretty printers here.
13541 (Tools for Compilation): List Python, PExpect and GDB here.
13542 Update descriptions of uses of Perl and Python.
13543 * INSTALL: Regenerate.
13544
13545 * scripts/build-many-glibcs.py (Context.checkout): Default Linux
13546 version to 4.18.
13547
13548 2018-08-13 Florian Weimer <fweimer@redhat.com>
13549
13550 * misc/error.c (error): Add missing va_end call.
13551 (error_at_line): Likewise.
13552
13553 2018-08-13 Florian Weimer <fweimer@redhat.com>
13554
13555 * stdlib/mbstowcs.c (mbstowcs): Remove outdated comment.
13556
13557 2018-08-11 Siddhesh Poyarekar <siddhesh@sourceware.org>
13558
13559 * benchtests/scripts/benchout.schema.json (properties): Add
13560 new properties.
13561
13562 * benchtests/bench-skeleton.c (main): Add duration and
13563 iterations attributes.
13564
13565 2018-08-10 Paul Eggert <eggert@cs.ucla.edu>
13566
13567 regex: Gnulib unibyte RRI uses bytes not chars
13568 Adjust the non-glibc code to agree with what Gawk needs for
13569 rational range interpretation (RRI) for regular expression ranges.
13570 In unibyte locales, Gawk wants ranges to use the underlying byte
13571 rather than the character code point. This change does not affect
13572 glibc proper.
13573 * posix/regcomp.c (parse_byte) [!LIBC && RE_ENABLE_I18N]:
13574 In unibyte locales, use the byte value rather than
13575 running it through btowc.
13576
13577 2018-08-10 Joseph Myers <joseph@codesourcery.com>
13578
13579 * sysdeps/generic/math-tests-snan.h: New file.
13580 * sysdeps/generic/math-tests.h: Include <math-tests-snan.h>.
13581 (SNAN_TESTS_float): Do not define here.
13582 (SNAN_TESTS_double): Likewise.
13583 (SNAN_TESTS_long_double): Likewise.
13584 (SNAN_TESTS_float128): Likewise.
13585 * sysdeps/i386/fpu/math-tests-snan.h: New file.
13586 * sysdeps/i386/fpu/math-tests.h: Remove file.
13587 * sysdeps/ia64/math-tests-snan.h: New file.
13588 * sysdeps/ia64/math-tests.h: Remove file.
13589 * sysdeps/x86/math-tests.h: Likewise.
13590 * sysdeps/x86_64/fpu/math-tests-snan.h: New file.
13591
13592 2018-08-10 Wilco Dijkstra <wdijkstr@arm.com>
13593 Szabolcs Nagy <szabolcs.nagy@arm.com>
13594
13595 * math/Makefile: Add s_sincosf_data.c.
13596 * sysdeps/ia64/fpu/s_sincosf_data.c: New file.
13597 * sysdeps/ieee754/flt-32/s_sincosf.h (abstop12): Add new function.
13598 (sincosf_poly): Likewise.
13599 (reduce_small): Likewise.
13600 (reduce_large): Likewise.
13601 * sysdeps/ieee754/flt-32/s_sincosf.c (sincosf): Rewrite.
13602 * sysdeps/ieee754/flt-32/s_sincosf_data.c: New file with sincosf data.
13603 * sysdeps/m68k/m680x0/fpu/s_sincosf_data.c: New file.
13604 * sysdeps/x86_64/fpu/s_sincosf_data.c: New file.
13605
13606 2018-08-10 Wilco Dijkstra <wdijkstr@arm.com>
13607 Szabolcs Nagy <szabolcs.nagy@arm.com>
13608
13609 * sysdeps/aarch64/fpu/math_private.h (roundtoint): Use round.
13610 (converttoint): Use lround.
13611 * sysdeps/ieee754/flt-32/math_config.h (roundtoint): Declare and
13612 document the semantics when TOINT_INTRINSICS is set.
13613 (converttoint): Likewise.
13614 (TOINT_RINT): Remove.
13615 (TOINT_SHIFT): Remove.
13616 * sysdeps/ieee754/flt-32/e_expf.c (__expf): Remove the TOINT_RINT code
13617 path.
13618
13619 2018-08-10 Florian Weimer <fweimer@redhat.com>
13620
13621 [BZ #23497]
13622 * sysdeps/unix/sysv/linux/getdents64.c (handle_overflow): New
13623 function.
13624 (__old_getdents64): Use getdents64. Convert entries without
13625 moving them.
13626 * sysdeps/unix/sysv/linux/tst-readdir64-compat.c: New file.
13627 * sysdeps/unix/sysv/linux/Makefile (tests-internal): Add
13628 tst-readdir64-compat.
13629
13630 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
13631
13632 * sysdeps/s390/s390-32/s390-mcount.S (_mcount):
13633 Fix unwind.
13634
13635 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
13636
13637 * sysdeps/s390/s390-64/Versions (__fentry__): Add.
13638 * sysdeps/s390/s390-64/s390x-mcount.S: Move the common
13639 code to s390x-mcount.h and #include it.
13640 * sysdeps/s390/s390-64/s390x-mcount.h: New file.
13641 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist
13642 (__fentry__): Add.
13643
13644 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
13645
13646 * stdlib/Versions: Remove __fentry__.
13647 * sysdeps/i386/Versions: Add __fentry__.
13648 * sysdeps/x86_64/Versions: Add __fentry__.
13649
13650 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
13651
13652 * sysdeps/s390/Makefile: Register the new tests.
13653 * sysdeps/s390/tst-dl-runtime-mod.S: New file.
13654 * sysdeps/s390/tst-dl-runtime-profile-audit.c: New file.
13655 * sysdeps/s390/tst-dl-runtime-profile-noaudit.c: New file.
13656 * sysdeps/s390/tst-dl-runtime-resolve-audit.c: New file.
13657 * sysdeps/s390/tst-dl-runtime-resolve-noaudit.c: New file.
13658 * sysdeps/s390/tst-dl-runtime.c: New file.
13659
13660 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
13661
13662 * sysdeps/s390/s390-64/dl-trampoline.h (_dl_runtime_profile):
13663 Do not clobber R0.
13664
13665 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
13666
13667 * sysdeps/s390/s390-64/dl-trampoline.h (_dl_runtime_resolve):
13668 Do not clobber R0.
13669
13670 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
13671
13672 * sysdeps/s390/s390-32/dl-trampoline.h (_dl_runtime_profile):
13673 Do not clobber R0.
13674
13675 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
13676
13677 * sysdeps/s390/s390-32/dl-trampoline.h (_dl_runtime_resolve):
13678 Do not clobber R0.
13679
13680 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
13681
13682 * sysdeps/s390/s390-64/dl-trampoline.h (_dl_runtime_profile):
13683 Use symbolic offsets for stack variables.
13684
13685 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
13686
13687 * sysdeps/s390/s390-64/dl-trampoline.h (_dl_runtime_resolve):
13688 Use symbolic offsets for stack variables.
13689
13690 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
13691
13692 * sysdeps/s390/s390-32/dl-trampoline.h (_dl_runtime_profile):
13693 Use symbolic offsets for stack variables.
13694
13695 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
13696
13697 * sysdeps/s390/s390-32/dl-trampoline.h (_dl_runtime_resolve):
13698 Use symbolic offsets for stack variables.
13699
13700 2018-08-09 Joseph Myers <joseph@codesourcery.com>
13701
13702 * math/gen-libm-test.py: New file.
13703 * math/gen-libm-test.pl: Remove.
13704 * math/Makefile [$(PERL) != no]: Change condition to [PYTHON].
13705 ($(objpfx)libm-test-ulps.h): Use gen-libm-test.py instead of
13706 gen-libm-test.pl.
13707 ($(libm-test-c-noauto-obj)): Likewise.
13708 ($(libm-test-c-auto-obj)): Likewise.
13709 ($(libm-test-c-narrow-obj)): Likewise.
13710 (regen-ulps): Likewise.
13711 * math/README.libm-test: Update references to gen-libm-test.pl.
13712 * math/libm-test-driver.c (struct test_fj_f_data): Update comment
13713 referencing gen-libm-test.pl.
13714 * math/libm-test-nexttoward.inc (nexttoward_test_data): Likewise.
13715 * math/libm-test-support.c: Likewise.
13716 * math/libm-test-support.h: Likewise.
13717 * sysdeps/generic/libm-test-ulps: Likewise.
13718
13719 2018-08-08 Siddhesh Poyarekar <siddhesh@sourceware.org>
13720
13721 * sysdeps/aarch64/strlen.S [TEST_PAGE_CROSS](MIN_PAGE_SIZE):
13722 Fix value.
13723
13724 2018-08-08 Joseph Myers <joseph@codesourcery.com>
13725
13726 * math/libm-test-nextdown.inc (do_test): Move comment to ....
13727 * math/libm-test-nexttoward.inc (nexttoward_test_data): ... here.
13728
13729 2018-08-08 Samuel Thibault <samuel.thibault@ens-lyon.org>
13730
13731 * htl/Versions (__pthread_getspecific, __pthread_setspecific): Add
13732 symbols.
13733 * sysdeps/htl/pthreadP.h [IS_IN (libpthread)] (__pthread_getspecific,
13734 __pthread_setspecific): Add hidden proto.
13735 * sysdeps/htl/pt-getspecific.c (__pthread_getspecific): Add hidden def.
13736 * sysdeps/htl/pt-setspecific.c (__pthread_setspecific): Add hidden def.
13737
13738 2018-08-07 Siddhesh Poyarekar <siddhesh@sourceware.org>
13739
13740 * benchtests/bench-string.h (buf1_size, buf2_size): New
13741 variables.
13742 (init_sizes): New function.
13743 (test_init): Use it.
13744 (alloc_buf, exit_error): New functions.
13745 (alloc_bufs): Use ALLOC_BUF.
13746 (realloc_bufs): Remove.
13747 * benchtests/bench-memcmp.c (do_test): Adjust.
13748 * benchtests/bench-memset-large.c (do_test): Likewise.
13749 * benchtests/bench-memset-walk.c (do_test): Likewise.
13750 * benchtests/bench-memset.c (do_test): Likewise.
13751 * benchtests/bench-strncmp.c (do_test): Likewise.
13752
13753 2018-08-06 Andreas Schwab <schwab@suse.de>
13754
13755 * sysdeps/riscv/nptl/tls.h (DB_THREAD_SELF): Use REGISTER instead
13756 of CONST_THREAD_AREA.
13757
13758 2018-08-06 H.J. Lu <hongjiu.lu@intel.com>
13759
13760 * sysdeps/x86/cpu-features.h (STATE_SAVE_OFFSET): Removed.
13761 (STATE_SAVE_MASK): Likewise.
13762 Don't check __ASSEMBLER__ to include <cpu-features-offsets.h>.
13763 * sysdeps/x86/sysdep.h (STATE_SAVE_OFFSET): New.
13764 (STATE_SAVE_MASK): Likewise.
13765 * sysdeps/x86_64/dl-trampoline.S: Include <cpu-features-offsets.h>
13766 instead of <cpu-features.h>.
13767
13768 2018-08-03 DJ Delorie <dj@redhat.com>
13769
13770 * sysdeps/riscv/rvf/math_private.h (libc_feholdexcept_setround_riscv):
13771 Move libc_fesetround_riscv after libc_feholdexcept_riscv.
13772
13773 * sysdeps/riscv/rv64/rvd/libm-test-ulps: Update.
13774
13775 2018-08-03 Joseph Myers <joseph@codesourcery.com>
13776
13777 * math/libm-test-ilogb.inc (ilogb_test_data): Use ',' not ';'
13778 after TEST_* calls.
13779 * math/libm-test-llogb.inc (llogb_test_data): Likewise.
13780 * math/libm-test-logb.inc (logb_test_data): Likewise.
13781
13782 2018-08-03 Wilco Dijkstra <wdijkstr@arm.com>
13783
13784 * string/strcasestr.c (STRCASESTR): Simplify and speedup first match.
13785 * string/strstr.c (AVAILABLE): Likewise.
13786
13787 2018-08-03 H.J. Lu <hongjiu.lu@intel.com>
13788
13789 * sysdeps/i386/i686/multiarch/bzero-ia32.S: Don't include
13790 <init-arch.h>.
13791 * sysdeps/x86_64/fpu/multiarch/svml_d_sin8_core-avx2.S: Likewise.
13792 * sysdeps/x86_64/fpu/multiarch/svml_s_expf16_core-avx2.S: Likewise.
13793 * sysdeps/x86_64/multiarch/memset-sse2-unaligned-erms.S: Likewise.
13794
13795 2018-08-03 Carlos O'Donell <carlos@redhat.com>
13796
13797 * po/be.po: Update translation.
13798
13799 * po/be.po: Update translation.
13800
13801 2018-08-03 H.J. Lu <hongjiu.lu@intel.com>
13802
13803 * sysdeps/x86/cpu-features-offsets.sym
13804 (rtld_global_ro_offsetof): Removed.
13805 (CPU_FEATURES_SIZE): Likewise.
13806 (CPUID_OFFSET): Likewise.
13807 (CPUID_SIZE): Likewise.
13808 (CPUID_EAX_OFFSET): Likewise.
13809 (CPUID_EBX_OFFSET): Likewise.
13810 (CPUID_ECX_OFFSET): Likewise.
13811 (CPUID_EDX_OFFSET): Likewise.
13812 (FAMILY_OFFSET): Likewise.
13813 (MODEL_OFFSET): Likewise.
13814 (FEATURE_OFFSET): Likewise.
13815 (FEATURE_SIZ): Likewise.
13816 (COMMON_CPUID_INDEX_1): Likewise.
13817 (COMMON_CPUID_INDEX_7): Likewise.
13818 (FEATURE_INDEX_1): Likewise.
13819 (RTLD_GLOBAL_RO_DL_X86_CPU_FEATURES_OFFSET): Updated.
13820
13821 2018-08-02 Carlos O'Donell <carlos@redhat.com>
13822
13823 * localedata/Makefile (INSTALL-SUPPORTED-LOCALES): Remove.
13824 (INSTALL-SUPPORTED-LOCALE-ARCHIVE): Define.
13825 (INSTALL-SUPPORTED-LOCALE-FILES): Define.
13826 (install-locales): Depend on install-locale-archive.
13827 (install-locale-archive): Define.
13828 (install-locale-files): Define.
13829 (build-one-locale): Define macro.
13830 * manual/install.texi (Running make install): Document.
13831 * manual/INSTALL: Regenerate.
13832
13833 2018-08-02 Siddhesh Poyarekar <siddhesh@sourceware.org>
13834
13835 * benchtests/scripts/compare_strings.py: Import traceback.
13836 (parse_file): Pretty-print error.
13837
13838 * NEWS: Mention the change.
13839 * elf/dl-tunables.list: Rename tune namespace to cpu.
13840 * sysdeps/powerpc/dl-tunables.list: Likewise.
13841 * sysdeps/x86/dl-tunables.list: Likewise.
13842 * sysdeps/aarch64/dl-tunables.list: Rename tune.cpu to
13843 cpu.name.
13844 * elf/dl-hwcaps.c (_dl_important_hwcaps): Adjust.
13845 * elf/dl-hwcaps.h (GET_HWCAP_MASK): Likewise.
13846 * manual/README.tunables: Likewise.
13847 * manual/tunables.texi: Likewise.
13848 * sysdeps/powerpc/cpu-features.c: Likewise.
13849 * sysdeps/unix/sysv/linux/aarch64/cpu-features.c
13850 (init_cpu_features): Likewise.
13851 * sysdeps/x86/cpu-features.c: Likewise.
13852 * sysdeps/x86/cpu-features.h: Likewise.
13853 * sysdeps/x86/cpu-tunables.c: Likewise.
13854 * sysdeps/x86_64/Makefile: Likewise.
13855 * sysdeps/x86/dl-cet.c: Likewise.
13856
13857 2018-08-02 Joseph Myers <joseph@codesourcery.com>
13858
13859 [BZ #23479]
13860 * sysdeps/mips/bits/fenv.h (FE_INEXACT): Define only if
13861 [__mips_hard_float].
13862 (FE_UNDERFLOW): Likewise.
13863 (FE_OVERFLOW): Likewise.
13864 (FE_DIVBYZERO): Likewise.
13865 (FE_INVALID): Likewise.
13866 (FE_ALL_EXCEPT): Define to 0 if [!__mips_hard_float].
13867 (FE_TOWARDZERO): Define only if [__mips_hard_float].
13868 (FE_UPWARD): Likewise.
13869 (FE_DOWNWARD): Likewise.
13870 (__FE_UNDEFINED): Define if [!__mips_hard_float]
13871 (FE_NOMASK_ENV): Define only if [__mips_hard_float].
13872 * sysdeps/mips/mips64/sfp-machine.h (_FP_DECL_EX): Define only if
13873 [__mips_hard_float].
13874 (FP_ROUNDMODE): Likewise.
13875 (FP_RND_NEAREST): Likewise.
13876 (FP_RND_ZERO): Likewise.
13877 (FP_RND_PINF): Likewise.
13878 (FP_RND_MINF): Likewise.
13879 (FP_EX_INVALID): Likewise.
13880 (FP_EX_OVERFLOW): Likewise.
13881 (FP_EX_UNDERFLOW): Likewise.
13882 (FP_EX_DIVZERO): Likewise.
13883 (FP_EX_INEXACT): Likewise.
13884 (FP_INIT_ROUNDMODE): Likewise.
13885 * sysdeps/mips/nofpu/fesetenv.c: New file.
13886 * sysdeps/mips/nofpu/feupdateenv.c: Likewise.
13887
13888 2018-08-01 Joseph Myers <joseph@codesourcery.com>
13889
13890 * math/test-misc.c (do_test) [LDBL_MANT_DIG > DBL_MANT_DIG]: Make
13891 code using FE_UNDERFLOW conditional on [FE_UNDERFLOW], code using
13892 FE_OVERFLOW conditional on [FE_OVERFLOW] and code using FE_UPWARD
13893 conditional on [FE_UPWARD].
13894
13895 2018-08-01 Paul Eggert <eggert@cs.ucla.edu>
13896
13897 regex: fix memory leak in Gnulib
13898 Problem and fix reported by Assaf Gordon in:
13899 https://lists.gnu.org/r/bug-gnulib/2018-07/txtqLKNwBdefE.txt
13900 * posix/regcomp.c (free_charset) [!_LIBC]: Free range_starts and
13901 range_ends members too, as they are defined in 'struct
13902 re_charset_t' even if not _LIBC. This affects only Gnulib.
13903
13904 2018-08-01 H.J. Lu <hongjiu.lu@intel.com>
13905
13906 * sysdeps/x86/cpu-features.c (get_common_indeces): Renamed to
13907 ...
13908 (get_common_indices): This.
13909 (init_cpu_features): Updated.
13910
13911 2018-08-01 Joseph Myers <joseph@codesourcery.com>
13912
13913 * sysdeps/generic/math-tests-snan-payload.h: New file.
13914 * sysdeps/hppa/math-tests-snan-payload.h: Likewise.
13915 * sysdeps/mips/math-tests-snan-payload.h: Likewise.
13916 * sysdeps/riscv/math-tests-snan-payload.h: Likewise.
13917 * sysdeps/generic/math-tests.h: Include
13918 <math-tests-snan-payload.h>.
13919 (SNAN_TESTS_PRESERVE_PAYLOAD): Do not define macro here.
13920 * sysdeps/hppa/math-tests.h: Remove file.
13921 * sysdeps/mips/math-tests.h [!__mips_nan2008]
13922 (SNAN_TESTS_PRESERVE_PAYLOAD): Do not define macro here.
13923 * sysdeps/riscv/math-tests.h (SNAN_TESTS_PRESERVE_PAYLOAD):
13924 Likewise.
13925
13926 * sysdeps/generic/math-tests-snan-cast.h: New file.
13927 * sysdeps/powerpc/math-tests-snan-cast.h: Likewise.
13928 * sysdeps/generic/math-tests.h: Include <math-tests-snan-cast.h>.
13929 (SNAN_TESTS_TYPE_CAST): Do not define macro here.
13930 * sysdeps/powerpc/math-tests.h (SNAN_TESTS_TYPE_CAST): Likewise.
13931
13932 2018-08-01 Carlos O'Donell <carlos@redhat.com>
13933
13934 * version.h (RELEASE): Set to "development".
13935 (VERSION): Set to "2.28.9000".
13936 * NEWS (2.29): New section.
13937
13938 * version.h (RELEASE): Set to "stable".
13939 (VERSION): Set to "2.28".
13940 * include/features.h (__GLIBC_MINOR__): Set to 2.28.
13941 * NEWS: Add the list of bugs fixed in 2.28.
13942
13943 * po/ca.po: Update to latest version.
13944 * po/cs.po: Likewise
13945 * po/da.po: Likewise
13946 * po/el.po: Likewise
13947 * po/eo.po: Likewise
13948 * po/es.po: Likewise
13949 * po/fi.po: Likewise
13950 * po/fr.po: Likewise
13951 * po/gl.po: Likewise
13952 * po/hu.po: Likewise
13953 * po/ia.po: Likewise
13954 * po/id.po: Likewise
13955 * po/it.po: Likewise
13956 * po/ja.po: Likewise
13957 * po/ko.po: Likewise
13958 * po/lt.po: Likewise
13959 * po/nb.po: Likewise
13960 * po/nl.po: Likewise
13961 * po/pt_BR.po: Likewise
13962 * po/ru.po: Likewise
13963 * po/rw.po: Likewise
13964 * po/sk.po: Likewise
13965 * po/sl.po: Likewise
13966 * po/tr.po: Likewise
13967 * po/zh_CN.po: Likewise
13968 * po/zh_TW.po: Likewise
13969
13970 2018-07-31 Samuel Thibault <samuel.thibault@ens-lyon.org>
13971
13972 * sysdeps/mach/hurd/i386/init-first.c (init1): Move ELF hdr and TLS
13973 initialization...
13974 (init): ... before initializing libpthread.
13975
13976 * mach/mach.h (__mach_setup_tls, mach_setup_tls): Add prototypes.
13977 * mach/setup-thread.c (__mach_setup_thread): Move TLS setup to...
13978 (__mach_setup_tls): ... new function.
13979 (mach_setup_tls): New alias.
13980 * hurd/hurdsig.c (_hurdsig_init): Call __mach_setup_tls after
13981 __mach_setup_thread.
13982 * sysdeps/mach/hurd/profil.c (update_waiter): Likewise.
13983 * sysdeps/mach/hurd/setitimer.c (setitimer_locked): Likewise.
13984 * mach/Versions [libc] (mach_setup_tls): Add symbol.
13985 * sysdeps/mach/hurd/i386/libc.abilist (mach_setup_tls): Likewise.
13986
13987 2018-07-31 Carlos O'Donell <carlos@redhat.com>
13988
13989 * manual/install.texi: Update versions.
13990 * INSTALL: Regenerate.
13991
13992 * manual/contrib.texi (Contributors): Update contributions.
13993
13994 2018-07-31 Carlos O'Donell <carlos@redhat.com>
13995
13996 * po/be.po: Update translations.
13997
13998 2018-07-31 Adhemerval Zanella <adhemerval.zanella@linaro.org>
13999
14000 * sysdeps/sh/libm-test-ulps: Update.
14001
14002 2018-07-30 Carlos O'Donell <carlos@redhat.com>
14003
14004 * po/bg.po: Update translations.
14005 * po/de.po: Likewise.
14006 * po/hr.po: Likewise.
14007 * po/pt_BR.po: Likewise.
14008 * po/sv.po: Likewise.
14009 * po/vi.po: Likewise.
14010
14011 2018-07-30 H.J. Lu <hongjiu.lu@intel.com>
14012
14013 [BZ #23467]
14014 * sysdeps/unix/sysv/linux/x86/Makefile (tests): Add
14015 tst-cet-property-1 and tst-cet-property-2 if CET is enabled.
14016 (CFLAGS-tst-cet-property-1.o): New.
14017 (ASFLAGS-tst-cet-property-dep-2.o): Likewise.
14018 ($(objpfx)tst-cet-property-2): Likewise.
14019 ($(objpfx)tst-cet-property-2.out): Likewise.
14020 * sysdeps/unix/sysv/linux/x86/tst-cet-property-1.c: New file.
14021 * sysdeps/unix/sysv/linux/x86/tst-cet-property-2.c: Likewise.
14022 * sysdeps/unix/sysv/linux/x86/tst-cet-property-dep-2.S: Likewise.
14023 * sysdeps/x86/dl-prop.h (_dl_process_cet_property_note): Parse
14024 each property item until GNU_PROPERTY_X86_FEATURE_1_AND is found.
14025
14026 2018-07-30 H.J. Lu <hongjiu.lu@intel.com>
14027
14028 [BZ #23458]
14029 * sysdeps/x86/Makefile (tests): Add tst-get-cpu-features-static.
14030
14031 2018-07-28 Samuel Thibault <samuel.thibault@ens-lyon.org>
14032
14033 * sysdeps/mach/hurd/dl-unistd.h (__access, __brk, __lseek, __read,
14034 __sbrk): Do not set attribute_hidden.
14035 * sysdeps/mach/hurd/not-errno.h: New file.
14036 * sysdeps/mach/hurd/i386/ld.abilist: Update accordingly.
14037 * sysdeps/mach/hurd/i386/localplt.data: Update accordingly.
14038
14039 2018-07-27 Carlos O'Donell <carlos@redhat.com>
14040
14041 * po/uk.po: Update translations.
14042 * po/cs.po: Likewise.
14043 * po/pl.po: Likewise.
14044
14045 2018-07-27 H.J. Lu <hongjiu.lu@intel.com>
14046
14047 * sysdeps/x86/dl-prop.h (_dl_process_cet_property_note): Don't
14048 parse beyond the note end.
14049
14050 2018-07-27 Adhemerval Zanella <adhemerval.zanella@linaro.org>
14051
14052 * sysdeps/unix/sysv/linux/tst-ofdlocks.c: Return unsupported if
14053 kernel does not support OFD locks.
14054 * sysdeps/unix/sysv/linux/tst-ofdlocks-compat.c: Likewise.
14055
14056 2018-07-27 Samuel Thibault <samuel.thibault@ens-lyon.org>
14057
14058 * sysdeps/mach/hurd/Versions (libc): Make __access and
14059 __access_noerrno external so they can override the ld symbols.
14060 (ld): Make __access, __read, __sbrk, __strtoul_internal, __write,
14061 __writev, __open64, __access_noerrno extern so they can be overrided.
14062 * sysdeps/mach/hurd/i386/libc.abilist: Update accordingly.
14063 * sysdeps/mach/hurd/i386/ld.abilist: Update accordingly.
14064
14065 2018-07-26 Carlos O'Donell <carlos@redhat.com>
14066
14067 * po/libc.pot: Regenerate.
14068
14069 2018-07-26 Joseph Myers <joseph@codesourcery.com>
14070
14071 * sysdeps/powerpc/nofpu/libm-test-ulps: Update.
14072
14073 2018-07-26 H.J. Lu <hongjiu.lu@intel.com>
14074
14075 [BZ #23459]
14076 * sysdeps/x86/cpu-features.c (get_extended_indices): New
14077 function.
14078 (init_cpu_features): Call get_extended_indices for both Intel
14079 and AMD CPUs.
14080 * sysdeps/x86/cpu-features.h (COMMON_CPUID_INDEX_80000001):
14081 Remove "for AMD" comment.
14082
14083 2018-07-26 H.J. Lu <hongjiu.lu@intel.com>
14084
14085 [BZ # 23456]
14086 * sysdeps/x86/cpu-features.h (index_cpu_LZCNT): Set to
14087 COMMON_CPUID_INDEX_80000001.
14088
14089 2018-07-26 Stefan Liebler <stli@linux.ibm.com>
14090
14091 * string/tst-xbzero-opt.c (use_test_buffer): New function.
14092 (prepare_test_buffer): Call use_test_buffer as compiler barrier.
14093
14094 2018-07-26 Florian Weimer <fweimer@redhat.com>
14095
14096 * htl/lockfile.c (flockfile, funlockfile, ftrylockfile): Use weak
14097 aliases for symbols not in the implementation namespace.
14098
14099 2018-07-25 Carlos O'Donell <carlos@redhat.com>
14100
14101 [BZ #23393]
14102 * localedata/locales/iso14651_t1_common: Deinterlace uppercase and
14103 lowercase in LATIN script.
14104 * localedata/Makefile (test-input): Add en_US.UTF-8.
14105 * localedata/en_US.UTF-8.in: New file.
14106 * posix/tst-fnmatch.input: Add comments and new tests for en_US.UTF-8,
14107 and restore old tests.
14108 * posix/tst-regexloc.c (do_test): Add back range expression test.
14109
14110 2018-07-25 H.J. Lu <hongjiu.lu@intel.com>
14111
14112 * sysdeps/unix/sysv/linux/ia64/tst-setcontext4.c: New file.
14113
14114 2018-07-25 Adhemerval Zanella <adhemerval.zanella@linaro.org>
14115
14116 * nptl/threads.h: Move to ...
14117 * sysdeps/nptl/threads.h: ... here.
14118 * sysdeps/hurd/stdc-predef.h: New file.
14119
14120 2018-07-25 H.J. Lu <hongjiu.lu@intel.com>
14121
14122 * sysdeps/unix/sysv/linux/x86/Makefile (tests): Add
14123 tst-cet-setcontext-1 if CET is enabled.
14124 (CFLAGS-tst-cet-setcontext-1.c): Add -mshstk.
14125 * sysdeps/unix/sysv/linux/x86/tst-cet-setcontext-1.c: New file.
14126
14127 2018-07-25 Adhemerval Zanella <adhemerval.zanella@linaro.org>
14128
14129 * include/threads.h: Move to ...
14130 * sysdeps/nptl/threads.h: ... here.
14131 * sysdeps/htl/threads.h: New file.
14132 * conform/Makefile (linknamespace-libs-ISO11): Use
14133 static-thread-library instead of linking libpthread.
14134 (linknamespace-libs-XPG4): Revert wrong libcrypt.a addition.
14135
14136 2018-07-25 Florian Weimer <fweimer@redhat.com>
14137
14138 * nptl/tst-mtx-timedlock.c (do_test): Implement carry from
14139 nanoseconds into seconds.
14140 * nptl/tst-cnd-basic.c (signal_parent): Lock and unlock mutex.
14141 (do_test): Likewise.
14142 * nptl/tst-cnd-timedwait.c (signal_parent): Likewise.
14143 (do_test): Likewise. Avoid nanosecond overflow and spurious
14144 timeouts due to system load.
14145 * nptl/tst-cnd-broadcast.c (waiting_threads): New variable.
14146 (child_wait): Increment it.
14147 (do_test): Wait as long as necessary until all expected threads
14148 have arrived.
14149
14150 2018-07-25 Vedvyas Shanbhogue <vedvyas.shanbhogue@intel.com>
14151 H.J. Lu <hongjiu.lu@intel.com>
14152
14153 * sysdeps/unix/sysv/linux/x86/sys/ucontext.h (ucontext_t): Add
14154 __ssp.
14155 * sysdeps/unix/sysv/linux/x86_64/__start_context.S: Include
14156 <asm/prctl.h> and "ucontext_i.h" when shadow stack is enabled.
14157 (__push___start_context): New.
14158 * sysdeps/unix/sysv/linux/x86_64/getcontext.S: Include
14159 <asm/prctl.h>.
14160 (__getcontext): Record the current shadow stack base. Save the
14161 caller's shadow stack pointer and base.
14162 * sysdeps/unix/sysv/linux/x86_64/makecontext.c: Include
14163 <pthread.h>, <libc-pointer-arith.h> and <sys/prctl.h>.
14164 (__push___start_context): New prototype.
14165 (__makecontext): Call __push___start_context to allocate a new
14166 shadow stack, push __start_context onto the new stack as well
14167 as the new shadow stack.
14168 * sysdeps/unix/sysv/linux/x86_64/setcontext.S: Include
14169 <asm/prctl.h>.
14170 (__setcontext): Restore the target shadow stack.
14171 * sysdeps/unix/sysv/linux/x86_64/swapcontext.S: Include
14172 <asm/prctl.h>.
14173 (__swapcontext): Record the current shadow stack base. Save
14174 the caller's shadow stack pointer and base. Restore the target
14175 shadow stack.
14176 * sysdeps/unix/sysv/linux/x86_64/sysdep.h
14177 (STACK_SIZE_TO_SHADOW_STACK_SIZE_SHIFT): New.
14178 * sysdeps/unix/sysv/linux/x86_64/ucontext_i.sym (oSSP): New.
14179
14180 2018-07-25 H.J. Lu <hongjiu.lu@intel.com>
14181
14182 * stdlib/Makefile ((tests): Add tst-setcontext6, tst-setcontext7,
14183 tst-setcontext8 and tst-setcontext9.
14184 * stdlib/tst-setcontext6.c: New file.
14185 * stdlib/tst-setcontext7.c: Likewise.
14186 * stdlib/tst-setcontext8.c: Likewise.
14187 * stdlib/tst-setcontext9.c: Likewise.
14188
14189 2018-07-25 H.J. Lu <hongjiu.lu@intel.com>
14190
14191 * stdlib/Makefile ((tests): Add tst-setcontext5.
14192 * stdlib/tst-setcontext5.c: New file.
14193
14194 2018-07-25 H.J. Lu <hongjiu.lu@intel.com>
14195
14196 * stdlib/Makefile (tests): Add tst-setcontext4.
14197 * stdlib/tst-setcontext4.c: New file.
14198
14199 2018-07-25 H.J. Lu <hongjiu.lu@intel.com>
14200
14201 * stdlib/Makefile (tests): Add tst-swapcontext1.
14202 * stdlib/tst-swapcontext1.c: New test.
14203
14204 2018-07-25 H.J. Lu <hongjiu.lu@intel.com>
14205
14206 * sysdeps/x86/Makefile (tests): Add tst-cet-legacy-1,
14207 tst-cet-legacy-2, tst-cet-legacy-2a, tst-cet-legacy-3,
14208 tst-cet-legacy-4, tst-cet-legacy-4a, tst-cet-legacy-4b
14209 and tst-cet-legacy-4c.
14210 (modules-names): Add tst-cet-legacy-mod-1, tst-cet-legacy-mod-2
14211 and tst-cet-legacy-mod-4.
14212 (CFLAGS-tst-cet-legacy-2.c): New.
14213 (CFLAGS-tst-cet-legacy-mod-1.c): Likewise.
14214 (CFLAGS-tst-cet-legacy-mod-2.c): Likewise.
14215 (CFLAGS-tst-cet-legacy-3.c): Likewise.
14216 (CFLAGS-tst-cet-legacy-4.c): Likewise.
14217 (CFLAGS-tst-cet-legacy-mod-4.c): Likewise.
14218 ($(objpfx)tst-cet-legacy-1): Likewise.
14219 ($(objpfx)tst-cet-legacy-2): Likewise.
14220 ($(objpfx)tst-cet-legacy-2.out): Likewise.
14221 ($(objpfx)tst-cet-legacy-2a): Likewise.
14222 ($(objpfx)tst-cet-legacy-2a.out): Likewise.
14223 ($(objpfx)tst-cet-legacy-4): Likewise.
14224 ($(objpfx)tst-cet-legacy-4.out): Likewise.
14225 ($(objpfx)tst-cet-legacy-4a): Likewise.
14226 ($(objpfx)tst-cet-legacy-4a.out): Likewise.
14227 (tst-cet-legacy-4a-ENV): Likewise.
14228 ($(objpfx)tst-cet-legacy-4b): Likewise.
14229 ($(objpfx)tst-cet-legacy-4b.out): Likewise.
14230 (tst-cet-legacy-4b-ENV): Likewise.
14231 ($(objpfx)tst-cet-legacy-4c): Likewise.
14232 ($(objpfx)tst-cet-legacy-4c.out): Likewise.
14233 (tst-cet-legacy-4c-ENV): Likewise.
14234 * sysdeps/x86/tst-cet-legacy-1.c: New file.
14235 * sysdeps/x86/tst-cet-legacy-2.c: Likewise.
14236 * sysdeps/x86/tst-cet-legacy-2a.c: Likewise.
14237 * sysdeps/x86/tst-cet-legacy-3.c: Likewise.
14238 * sysdeps/x86/tst-cet-legacy-4.c: Likewise.
14239 * sysdeps/x86/tst-cet-legacy-4a.c: Likewise.
14240 * sysdeps/x86/tst-cet-legacy-4b.c: Likewise.
14241 * sysdeps/x86/tst-cet-legacy-4c.c: Likewise.
14242 * sysdeps/x86/tst-cet-legacy-mod-1.c: Likewise.
14243 * sysdeps/x86/tst-cet-legacy-mod-2.c: Likewise.
14244 * sysdeps/x86/tst-cet-legacy-mod-4.c: Likewise.
14245
14246 2018-07-25 H.J. Lu <hongjiu.lu@intel.com>
14247
14248 * sysdeps/i386/nptl/tcb-offsets.sym (SSP_BASE_OFFSET): New.
14249 * sysdeps/i386/nptl/tls.h (tcbhead_t): Replace __glibc_reserved2
14250 with ssp_base.
14251 * sysdeps/x86_64/nptl/tcb-offsets.sym (SSP_BASE_OFFSET): New.
14252 * sysdeps/x86_64/nptl/tls.h (tcbhead_t): Replace __glibc_reserved2
14253 with ssp_base.
14254
14255 2018-07-25 Andreas Schwab <schwab@suse.de>
14256
14257 [BZ #23442]
14258 * locale/weightwc.h (findidx): Handle the case where usrc is a
14259 prefix of cp but one character too short.
14260
14261 2018-07-24 Adhemerval Zanella <adhemerval.zanella@linaro.org>
14262
14263 * NEWS: Add ISO C threads addition.
14264
14265 2018-07-24 Florian Weimer <fweimer@redhat.com>
14266
14267 * sysdeps/unix/sysv/linux/alpha/kernel-features.h
14268 [__LINUX_KERNEL_VERSION < 0x040D00] (__ASSUME_MLOCK2)
14269 (__ASSUME_COPY_FILE_RANGE): Undefine. Kernel support was added in
14270 4.13.
14271
14272 2018-07-24 H.J. Lu <hongjiu.lu@intel.com>
14273
14274 * sysdeps/unix/sysv/linux/x86/include/asm/prctl.h: New file.
14275 * sysdeps/unix/sysv/linux/x86/cpu-features.c: Include
14276 <sys/prctl.h> and <asm/prctl.h>.
14277 (get_cet_status): Call arch_prctl with ARCH_CET_STATUS.
14278 * sysdeps/unix/sysv/linux/x86/dl-cet.h: Include <sys/prctl.h>
14279 and <asm/prctl.h>.
14280 (dl_cet_allocate_legacy_bitmap): Call arch_prctl with
14281 ARCH_CET_LEGACY_BITMAP.
14282 (dl_cet_disable_cet): Call arch_prctl with ARCH_CET_DISABLE.
14283 (dl_cet_lock_cet): Call arch_prctl with ARCH_CET_LOCK.
14284 * sysdeps/x86/libc-start.c: Include <startup.h>.
14285
14286 2018-07-24 Florian Weimer <fweimer@redhat.com>
14287
14288 * sysdeps/unix/sysv/linux/sh/kernel-features.h (__ASSUME_STATX):
14289 Undefine. Suggested by Romain Naour <romain.naour@gmail.com>.
14290
14291 2018-07-24 Rical Jasan <rj@2c3t.io>
14292 Adhemerval Zanella <adhemerval.zanella@linaro.org>
14293 Juan Manuel Torres Palma <jmtorrespalma@gmail.com>
14294
14295 [BZ #14092]
14296 * manual/debug.texi: Update adjacent chapter name.
14297 * manual/probes.texi: Likewise.
14298 * manual/threads.texi (ISO C Threads): New section.
14299 (POSIX Threads): Convert to a section.
14300
14301 2018-07-24 Adhemerval Zanella <adhemerval.zanella@linaro.org>
14302 Juan Manuel Torres Palma <jmtorrespalma@gmail.com>
14303
14304 [BZ# 14092]
14305 * nptl/Makefile (tests): Add new test files.
14306 * nptl/tst-call-once.c : New file. Tests C11 functions and types.
14307 * nptl/tst-cnd-basic.c: Likewise.
14308 * nptl/tst-cnd-broadcast.c: Likewise.
14309 * nptl/tst-cnd-timedwait.c: Likewise.
14310 * nptl/tst-mtx-basic.c: Likewise.
14311 * nptl/tst-mtx-recursive.c: Likewise.
14312 * nptl/tst-mtx-timedlock.c: Likewise.
14313 * nptl/tst-mtx-trylock.c: Likewise.
14314 * nptl/tst-thrd-basic.c: Likewise.
14315 * nptl/tst-thrd-detach.c: Likewise.
14316 * nptl/tst-thrd-sleep.c: Likewise.
14317 * nptl/tst-tss-basic.c: Likewise.
14318
14319 2018-07-24 Adhemerval Zanella <adhemerval.zanella@linaro.org>
14320
14321 [BZ #14092]
14322 * sysdeps/unix/sysv/linux/aarch64/libc.abilist [GLIBC_2.28]
14323 (thrd_current, thrd_equal, thrd_sleep, thrd_yield): Add C11 thread
14324 symbols.
14325 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
14326 * sysdeps/unix/sysv/linux/arm/libc.abilist: Likewise.
14327 * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
14328 * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
14329 * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
14330 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
14331 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
14332 * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
14333 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
14334 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
14335 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
14336 * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise.
14337 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
14338 Likewise.
14339 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
14340 Likewise.
14341 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist:
14342 Likewise.
14343 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist: Likewise.
14344 * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist: Likewise.
14345 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
14346 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
14347 * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
14348 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
14349 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
14350 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
14351 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
14352 * sysdeps/unix/sysv/linux/aarch64/libpthread.abilist [[GLIBC_2.28]
14353 (call_once, cnd_broadcast, cnd_destroy, cnd_init, cnd_signal,
14354 cnd_timedwait, cnd_wait, mtx_destroy, mtx_init, mtx_lock,
14355 mtx_timedlock, mtx_trylock, mtx_unlokc, thrd_create, thrd_detach,
14356 thrd_exit, thrd_join, tss_create, tss_delete, tss_get, tss_set):
14357 Likewise.
14358 * sysdeps/unix/sysv/linux/aarch64/libpthread.abilist: Likewise.
14359 * sysdeps/unix/sysv/linux/alpha/libpthread.abilist: Likewise.
14360 * sysdeps/unix/sysv/linux/arm/libpthread.abilist: Likewise.
14361 * sysdeps/unix/sysv/linux/hppa/libpthread.abilist: Likewise.
14362 * sysdeps/unix/sysv/linux/i386/libpthread.abilist: Likewise.
14363 * sysdeps/unix/sysv/linux/ia64/libpthread.abilist: Likewise.
14364 * sysdeps/unix/sysv/linux/m68k/coldfire/libpthread.abilist: Likewise.
14365 * sysdeps/unix/sysv/linux/m68k/m680x0/libpthread.abilist: Likewise.
14366 * sysdeps/unix/sysv/linux/microblaze/libpthread.abilist: Likewise.
14367 * sysdeps/unix/sysv/linux/mips/mips32/libpthread.abilist: Likewise.
14368 * sysdeps/unix/sysv/linux/mips/mips64/libpthread.abilist: Likewise.
14369 * sysdeps/unix/sysv/linux/nios2/libpthread.abilist: Likewise.
14370 ikewise.
14371 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libpthread.abilist:
14372 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libpthread-le.abilist:
14373 Likewise.
14374 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libpthread.abilist:
14375 Likewise.
14376 * sysdeps/unix/sysv/linux/riscv/rv64/libpthread.abilist: Likewise.
14377 * sysdeps/unix/sysv/linux/s390/s390-32/libpthread.abilist: Likewise.
14378 * sysdeps/unix/sysv/linux/s390/s390-64/libpthread.abilist: Likewise.
14379 * sysdeps/unix/sysv/linux/sh/libpthread.abilist: Likewise.
14380 * sysdeps/unix/sysv/linux/sparc/sparc32/libpthread.abilist: Likewise.
14381 * sysdeps/unix/sysv/linux/sparc/sparc64/libpthread.abilist: Likewise.
14382 * sysdeps/unix/sysv/linux/x86_64/64/libpthread.abilist: Likewise.
14383 * sysdeps/unix/sysv/linux/x86_64/x32/libpthread.abilist: Likewise.
14384
14385 [BZ #14092]
14386 * conform/data/threads.h-data (thread_local): New macro.
14387 (TSS_DTOR_ITERATIONS): Likewise.
14388 (tss_t): New type.
14389 (tss_dtor_t): Likewise.
14390 (tss_create): New function.
14391 (tss_get): Likewise.
14392 (tss_set): Likewise.
14393 (tss_delete): Likewise.
14394 * nptl/Makefile (libpthread-routines): Add tss_create, tss_delete,
14395 tss_get, and tss_set objects.
14396 * nptl/Versions (libpthread) [GLIBC_2.28]: Likewise.
14397 * nptl/tss_create.c: New file.
14398 * nptl/tss_delete.c: Likewise.
14399 * nptl/tss_get.c: Likewise.
14400 * nptl/tss_set.c: Likewise.
14401 * sysdeps/nptl/threads.h (thread_local): New define.
14402 (TSS_DTOR_ITERATIONS): Likewise.
14403 (tss_t): New typedef.
14404 (tss_dtor_t): Likewise.
14405 (tss_create): New prototype.
14406 (tss_get): Likewise.
14407 (tss_set): Likewise.
14408 (tss_delete): Likewise.
14409
14410 [BZ #14092]
14411 * conform/data/threads.h-data (cnd_t): New type.
14412 (cnd_init): New function.
14413 (cnd_signal): Likewise.
14414 (cnd_broadcast): Likewise.
14415 (cnd_wait): Likewise.
14416 (cnd_timedwait): Likewise.
14417 (cnd_destroy): Likewise.
14418 * nptl/Makefile (libpthread-routines): Add cnd_broadcast,
14419 cnd_destroy, cnd_init, cnd_signal, cnd_timedwait, and cnd_wait
14420 object.
14421 * nptl/Versions (libpthread) [GLIBC_2.28]: Likewise.
14422 * nptl/cnd_broadcast.c: New file.
14423 * nptl/cnd_destroy.c: Likewise.
14424 * nptl/cnd_init.c: Likewise.
14425 * nptl/cnd_signal.c: Likewise.
14426 * nptl/cnd_timedwait.c: Likewise.
14427 * nptl/cnd_wait.c: Likewise.
14428 * sysdeps/nptl/threads.h (cnd_t): New type.
14429 (cnd_init): New prototype.
14430 (cnd_signa): Likewise.
14431 (cnd_broadcast): Likewise.
14432 (cnd_wait): Likewise.
14433 (cnd_timedwait): Likewise.
14434 (cnd_destroy): Likewise.
14435
14436 [BZ #14092]
14437 * conform/data/threads.h-data (ONCE_FLAG_INIT): New macro.
14438 (once_flag): New type.
14439 (call_once): New function.
14440 * nptl/Makefile (libpthread-routines): Add call_once object.
14441 * nptl/Versions (libphread) [GLIBC_2.28]: Add call_once symbol.
14442 * nptl/call_once.c: New file.
14443 * sysdeps/nptl/threads.h (ONCE_FLAG_INIT): New define.
14444 (once_flag): New type.
14445 (call_once): New prototype.
14446
14447 [BZ #14092]
14448 * conform/data/threads.h-data (mtx_plain): New constant.
14449 (mtx_recursive): Likewise.
14450 (mtx_timed): Likewise.
14451 (mtx_t): New type.
14452 (mtx_init): New function.
14453 (mtx_lock): Likewise.
14454 (mtx_timedlock): Likewise.
14455 (mtx_trylock): Likewise.
14456 (mtx_unlock): Likewise.
14457 (mtx_destroy): Likewise.
14458 * nptl/Makefile (libpthread-routines): Add mtx_destroy, mtx_init,
14459 mtx_lock, mtx_timedlock, mtx_trylock, and mtx_unlock object.
14460 * nptl/Versions (libpthread) [GLIBC_2.28]): Add mtx_init, mtx_lock,
14461 mtx_timedlock, mtx_trylock, mtx_unlock, and mtx_destroy.
14462 * nptl/mtx_destroy.c: New file.
14463 * nptl/mtx_init.c: Likewise.
14464 * nptl/mtx_lock.c: Likewise.
14465 * nptl/mtx_timedlock.c: Likewise.
14466 * nptl/mtx_trylock.c: Likewise.
14467 * nptl/mtx_unlock.c: Likewise.
14468 * sysdeps/nptl/threads.h (mtx_plain): New enumeration.
14469 (mtx_recursive): Likewise.
14470 (mtx_timed): Likewise.
14471 (mtx_t): New type.
14472 (mtx_init): New prototype.
14473 (mtx_lock): Likewise.
14474 (mtx_timedlock): Likewise.
14475 (mtx_trylock): Likewise.
14476 (mtx_unlock): Likewise.
14477 (mtx_destroy): Likewise.
14478
14479 [BZ #14092]
14480 * conform/Makefile (conformtest-headers-ISO11): Add threads.h.
14481 (linknamespace-libs-ISO11): Add libpthread.a.
14482 * conform/data/threads.h-data: New file: add C11 thrd_* types and
14483 functions.
14484 * include/stdc-predef.h (__STDC_NO_THREADS__): Remove definition.
14485 * nptl/Makefile (headers): Add threads.h.
14486 (libpthread-routines): Add new C11 thread thrd_create, thrd_current,
14487 thrd_detach, thrd_equal, thrd_exit, thrd_join, thrd_sleep, and
14488 thrd_yield.
14489 * nptl/Versions (libpthread) [GLIBC_2.28]): Add new C11 thread
14490 thrd_create, thrd_current, thrd_detach, thrd_equal, thrd_exit,
14491 thrd_join, thrd_sleep, and thrd_yield symbols.
14492 * nptl/descr.h (struct pthread): Add c11 field.
14493 * nptl/pthreadP.h (ATTR_C11_THREAD): New define.
14494 * nptl/pthread_create.c (START_THREAD_DEFN): Call C11 thread start
14495 routine with expected function prototype.
14496 (__pthread_create_2_1): Add C11 threads check based on attribute
14497 value.
14498 * sysdeps/unix/sysdep.h (INTERNAL_SYSCALL_CANCEL): New macro.
14499 * nptl/thrd_create.c: New file.
14500 * nptl/thrd_current.c: Likewise.
14501 * nptl/thrd_detach.c: Likewise.
14502 * nptl/thrd_equal.c: Likewise.
14503 * nptl/thrd_exit.c: Likewise.
14504 * nptl/thrd_join.c: Likewise.
14505 * nptl/thrd_priv.h: Likewise.
14506 * nptl/thrd_sleep.c: Likewise.
14507 * nptl/thrd_yield.c: Likewise.
14508 * include/threads.h: Likewise.
14509
14510 2018-07-24 H.J. Lu <hongjiu.lu@intel.com>
14511
14512 * bits/indirect-return.h: New file.
14513 * misc/sys/cdefs.h (__glibc_has_attribute): New.
14514 * sysdeps/x86/bits/indirect-return.h: Likewise.
14515 * stdlib/Makefile (headers): Add bits/indirect-return.h.
14516 * stdlib/ucontext.h: Include <bits/indirect-return.h>.
14517 (swapcontext): Add __INDIRECT_RETURN.
14518 * string/tst-xbzero-opt.c (ALWAYS_INLINE): New.
14519 (prepare_test_buffer): Use it.
14520
14521 2018-07-24 Andreas Schwab <schwab@suse.de>
14522
14523 [BZ #23448]
14524 * iconvdata/ibm1364.c (MAX_NEEDED_OUTPUT) [FROM_LOOP]: Define.
14525 (MAX_NEEDED_INPUT) [TO_LOOP]: Define.
14526
14527 2018-07-24 H.J. Lu <hongjiu.lu@intel.com>
14528
14529 * sysdeps/unix/sysv/linux/i386/vfork.S (SYSCALL_ERROR_HANDLER):
14530 Redefine if shadow stack is enabled.
14531 (SYSCALL_ERROR_LABEL): Likewise.
14532 (__vfork): Pop shadow stack and jump back to to caller directly
14533 when shadow stack is in use.
14534 * sysdeps/unix/sysv/linux/x86_64/vfork.S (SYSCALL_ERROR_HANDLER):
14535 Redefine if shadow stack is enabled.
14536 (SYSCALL_ERROR_LABEL): Likewise.
14537 (__vfork): Pop shadow stack and jump back to to caller directly
14538 when shadow stack is in use.
14539
14540 2018-07-24 H.J. Lu <hongjiu.lu@intel.com>
14541
14542 * sysdeps/x86_64/tst-quadmod1.S (func): Add endbr64 if IBT is
14543 enabled.
14544 (foo): Likewise.
14545 * sysdeps/x86_64/tst-quadmod2.S (func) : Likewise.
14546 (foo): Likewise.
14547
14548 2018-07-20 Joseph Myers <joseph@codesourcery.com>
14549
14550 * scripts/build-many-glibcs.py (Context.checkout): Default
14551 binutils version to 2.31 branch.
14552
14553 2018-07-20 Zong Li <zong@andestech.com>
14554
14555 * scripts/build-many-glibcs.py (Context.checkout_tar): Change the
14556 URL of gcc's tarball.
14557
14558 2018-07-20 Florian Weimer <fweimer@redhat.com>
14559
14560 [BZ #23396]
14561 * posix/regcomp.c (build_equiv_class): When comparing weights, do
14562 not compare an extra byte after the end of the weights.
14563
14564 2018-07-20 Samuel Thibault <samuel.thibault@ens-lyon.org>
14565
14566 * sysdeps/mach/hurd/i386/tls.h (_hurd_tls_init): Set multiple_threads
14567 to 1.
14568 * sysdeps/hurd/include/hurd/port.h [!_ISOMAC]: Do not declare libc
14569 hidden prototypes.
14570 * sysdeps/mach/include/mach-shortcuts-hidden.h [!_ISOMAC]: Likewise.
14571 * sysdeps/mach/include/mach/mach_traps.h [!_ISOMAC]: Likewise.
14572 * scripts/check-execstack.awk: Consider `xfail' variable containing a
14573 list of libraries whose stack executability is expected.
14574 * elf/Makefile ($(objpfx)check-execstack.out): Pass
14575 $(check-execstack-xfail) to check-execstack.awk through `xfail'
14576 variable.
14577 * sysdeps/mach/hurd/i386/Makefile (check-execstack-xfail): Set to ld.so
14578 libc.so libpthread.so.
14579
14580 2018-07-20 Thomas Schwinge <tschwinge@gnu.org>
14581
14582 * sysdeps/mach/hurd/socket.c (__socket): Handle SOCK_CLOEXEC and
14583 SOCK_NONBLOCK.
14584 * sysdeps/mach/hurd/socketpair.c (__socketpair): Handle SOCK_CLOEXEC
14585 and SOCK_NONBLOCK.
14586 * sysdeps/mach/hurd/pipe2.c: New file, copy from pipe.c. Evolve it to
14587 implement __pipe2.
14588 * sysdeps/mach/hurd/pipe.c (__pipe): Reimplement using __pipe2.
14589
14590 2018-07-19 Leonardo Sandoval <leonardo.sandoval.gonzalez@intel.com>
14591
14592 * benchtests/scripts/compare_bench.py (__main__): use the argparse
14593 library to improve command line parsing.
14594 (__main__): make schema file as optional parameter (--schema),
14595 defaulting to benchtests/scripts/benchout.schema.json.
14596 (main): move out of the parsing stuff to __main_  and leave it
14597 only as caller of main comparison functions.
14598
14599 2018-07-19 H.J. Lu <hongjiu.lu@intel.com>
14600
14601 * NEWS: Add a note for Intel CET status.
14602 * manual/install.texi: Likewise.
14603 * INSTALL: Regenerated.
14604
14605 2018-07-18 Quentin PAGÈS <provaires@quentino.fr>
14606
14607 [BZ #23140]
14608 * localedata/locales/oc_FR (mon): Rename to...
14609 (alt_mon): This, then update October (typo fix).
14610 (mon): New content (genitive case, month names preceded by
14611 "de" or "d’").
14612
14613 [BZ #23422]
14614 * localedata/locales/oc_FR (abday): Update all items.
14615 (day): Update Wednesday and Saturday (typo fixes).
14616 (abmon): Update all items, except May.
14617 (d_fmt): Update "%d.%m.%Y" -> "%d/%m/%Y".
14618 (LC_IDENTIFICATION): Bump the revision number and date.
14619 Keep the "category" entries in alphabetic order.
14620 (LC_ADDRESS): Remove no longer needed comment.
14621 (LC_COLLATE): Use “copy "ca_ES"”.
14622 (LC_NAME): Set the correct values of "name_fmt", "name_mr", and
14623 "name_mrs".
14624
14625 2018-07-18 Joseph Myers <joseph@codesourcery.com>
14626
14627 * grp/tst_fgetgrent.c: Include <unistd.h>.
14628 (main): Use mkstemp instead of tmpnam.
14629 * io/test-utime.c (main): Likewise.
14630 * posix/annexc.c (macrofile): Change to modifiable array.
14631 (main): Remove macrofile here.
14632 (get_null_defines): Use mkstemp instead of tmpnam. Do not remove
14633 macrofile here.
14634 (check_header): Do not remove macrofile here.
14635 * posix/bug-getopt1.c: Include <stdlib.h>.
14636 (do_test): Use mkstemp instead of tmpnam.
14637 * posix/bug-getopt2.c: Include <stdlib.h>.
14638 (do_test): Use mkstemp instead of tmpnam.
14639 * posix/bug-getopt3.c: Include <stdlib.h>.
14640 (do_test): Use mkstemp instead of tmpnam.
14641 * posix/bug-getopt4.c: Include <stdlib.h>.
14642 (do_test): Use mkstemp instead of tmpnam.
14643 * posix/bug-getopt5.c: Include <stdlib.h>.
14644 (do_test): Use mkstemp instead of tmpnam.
14645 * stdio-common/bug7.c: Include <stdlib.h> and <unistd.h>.
14646 (main): Use mkstemp instead of tmpnam.
14647 * stdio-common/tst-fdopen.c: Include <stdlib.h>.
14648 (main): Use mkstemp instead of tmpnam.
14649 * stdio-common/tst-ungetc.c: Include <stdlib.h>.
14650 (main): use mkstemp instead of tmpnam.
14651 * stdlib/isomac.c (macrofile): Change to modifiable array.
14652 (main): Remove macrofile here.
14653 (get_null_defines): Use mkstemp instead of tmpnam. Do not remove
14654 macrofile here.
14655 (check_header): Do not remove macrofile here.
14656
14657 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
14658
14659 * manual/tunables.texi: Document glibc.tune.x86_ibt and
14660 glibc.tune.x86_shstk.
14661
14662 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
14663
14664 * NEWS: Mention --enable-cet.
14665 * manual/install.texi: Document --enable-cet.
14666 * INSTALL: Regenerated.
14667
14668 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
14669
14670 * sysdeps/x86_64/multiarch/memcmp-sse4.S (BRANCH_TO_JMPTBL_ENTRY):
14671 Add _CET_NOTRACK before indirect jump to jump table.
14672
14673 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
14674
14675 * sysdeps/i386/i686/multiarch/memset-sse2-rep.S
14676 (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
14677 to jump table.
14678
14679 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
14680
14681 * sysdeps/i386/i686/multiarch/strcat-sse2.S
14682 (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
14683 to jump table.
14684
14685 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
14686
14687 * sysdeps/i386/i686/multiarch/strcpy-sse2.S
14688 (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
14689 to jump table.
14690
14691 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
14692
14693 * sysdeps/i386/i686/multiarch/memcpy-ssse3.S
14694 (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
14695 to jump table.
14696
14697 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
14698
14699 * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S
14700 (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
14701 to jump table.
14702 (BRANCH_TO_JMPTBL_ENTRY_TAIL): Likewise.
14703
14704 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
14705
14706 * sysdeps/i386/i686/multiarch/memcmp-sse4.S
14707 (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
14708 to jump table.
14709
14710 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
14711
14712 * sysdeps/i386/i686/multiarch/memset-sse2.S
14713 (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
14714 to jump table.
14715
14716 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
14717
14718 * sysdeps/i386/i686/memcmp.S (memcmp): Add _CET_NOTRACK before
14719 indirect jump to jump table.
14720
14721 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
14722
14723 * sysdeps/x86_64/multiarch/memcpy-ssse3.S
14724 (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
14725 to jump table.
14726 (MEMCPY): Likewise.
14727
14728 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
14729
14730 * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S
14731 (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
14732 to jump table.
14733 (MEMCPY): Likewise.
14734
14735 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
14736
14737 * sysdeps/x86_64/multiarch/strcmp-sse42.S (STRCMP_SSE42): Add
14738 _CET_NOTRACK before indirect jump to jump table.
14739
14740 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
14741
14742 * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S
14743 (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
14744 to jump table.
14745
14746 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
14747
14748 * sysdeps/x86_64/strcmp.S (STRCMP): Add _CET_NOTRACK before
14749 indirect jump to jump table.
14750
14751 2018-07-18 Valery Timiriliyev <timiriliyev@gmail.com>
14752
14753 [BZ #22241]
14754 * localedata/Makefile (test-input): Add sah_RU.UTF-8.
14755 (LOCALES): Likewise.
14756 * localedata/SUPPORTED (sah_RU/UTF-8): New entry.
14757 * localedata/locales/sah_RU: New file.
14758 * localedata/sah_RU.UTF-8.in: New file.
14759
14760 2018-07-17 H.J. Lu <hongjiu.lu@intel.com>
14761
14762 * sysdeps/i386/add_n.S: Include <sysdep.h>, instead of
14763 "sysdep.h".
14764 (__mpn_add_n): Save and restore %ebx if IBT is enabed. Add
14765 _CET_ENDBR to indirect jump targets and adjust jump destination
14766 for _CET_ENDBR.
14767 * sysdeps/i386/i686/add_n.S: Include <sysdep.h>, instead of
14768 "sysdep.h".
14769 (__mpn_add_n): Save and restore %ebx if IBT is enabed. Add
14770 _CET_ENDBR to indirect jump targets and adjust jump destination
14771 for _CET_ENDBR.
14772 * sysdeps/i386/sub_n.S: Include <sysdep.h>, instead of
14773 "sysdep.h".
14774 (__mpn_sub_n): Save and restore %ebx if IBT is enabed. Add
14775 _CET_ENDBR to indirect jump targets and adjust jump destination
14776 for _CET_ENDBR.
14777
14778 2018-07-17 H.J. Lu <hongjiu.lu@intel.com>
14779
14780 * sysdeps/x86_64/multiarch/strcmp-sse42.S (STRCMP_SSE42): Add
14781 _CET_ENDBR.
14782
14783 2018-07-17 H.J. Lu <hongjiu.lu@intel.com>
14784
14785 * sysdeps/i386/dl-tlsdesc.S (_dl_tlsdesc_return): Add
14786 _CET_ENDBR.
14787 (_dl_tlsdesc_undefweak): Likewise.
14788 (_dl_tlsdesc_dynamic): Likewise.
14789 (_dl_tlsdesc_resolve_abs_plus_addend): Likewise.
14790 (_dl_tlsdesc_resolve_rel): Likewise.
14791 (_dl_tlsdesc_resolve_rela): Likewise.
14792 (_dl_tlsdesc_resolve_hold): Likewise.
14793 * sysdeps/x86_64/dl-tlsdesc.S (_dl_tlsdesc_return): Likewise.
14794 (_dl_tlsdesc_undefweak): Likewise.
14795 (_dl_tlsdesc_dynamic): Likewise.
14796 (_dl_tlsdesc_resolve_rela): Likewise.
14797 (_dl_tlsdesc_resolve_hold): Likewise.
14798
14799 2018-07-17 H.J. Lu <hongjiu.lu@intel.com>
14800
14801 * sysdeps/i386/crti.S (_init): Add _CET_ENDBR.
14802 (_fini): Likewise.
14803 * sysdeps/x86_64/crti.S (_init): Likewise.
14804 (_fini): Likewise.
14805
14806 2018-07-17 Rafał Lużyński <digitalfreak@lingonborough.com>
14807
14808 [BZ #23140]
14809 * localedata/locales/os_RU (mon): Rename to...
14810 (alt_mon): This.
14811 (mon): Import from CLDR (genitive case).
14812
14813 2018-07-17 H.J. Lu <hongjiu.lu@intel.com>
14814
14815 * sysdeps/x86/cpu-features.c: Always include <dl-cet.h> and
14816 cet-tunables.h> when CET is enabled.
14817
14818 2018-07-16 H.J. Lu <hongjiu.lu@intel.com>
14819
14820 [BZ #21598]
14821 * configure.ac: Add --enable-cet.
14822 * configure: Regenerated.
14823 * elf/Makefille (all-built-dso): Add a comment.
14824 * elf/dl-load.c (filebuf): Moved before "dynamic-link.h".
14825 Include <dl-prop.h>.
14826 (_dl_map_object_from_fd): Call _dl_process_pt_note on PT_NOTE
14827 segment.
14828 * elf/dl-open.c: Include <dl-prop.h>.
14829 (dl_open_worker): Call _dl_open_check.
14830 * elf/rtld.c: Include <dl-prop.h>.
14831 (dl_main): Call _rtld_process_pt_note on PT_NOTE segment. Call
14832 _rtld_main_check.
14833 * sysdeps/generic/dl-prop.h: New file.
14834 * sysdeps/i386/dl-cet.c: Likewise.
14835 * sysdeps/unix/sysv/linux/x86/cpu-features.c: Likewise.
14836 * sysdeps/unix/sysv/linux/x86/dl-cet.h: Likewise.
14837 * sysdeps/x86/cet-tunables.h: Likewise.
14838 * sysdeps/x86/check-cet.awk: Likewise.
14839 * sysdeps/x86/configure: Likewise.
14840 * sysdeps/x86/configure.ac: Likewise.
14841 * sysdeps/x86/dl-cet.c: Likewise.
14842 * sysdeps/x86/dl-procruntime.c: Likewise.
14843 * sysdeps/x86/dl-prop.h: Likewise.
14844 * sysdeps/x86/libc-start.h: Likewise.
14845 * sysdeps/x86/link_map.h: Likewise.
14846 * sysdeps/i386/dl-trampoline.S (_dl_runtime_resolve): Add
14847 _CET_ENDBR.
14848 (_dl_runtime_profile): Likewise.
14849 (_dl_runtime_resolve_shstk): New.
14850 (_dl_runtime_profile_shstk): Likewise.
14851 * sysdeps/linux/x86/Makefile (sysdep-dl-routines): Add dl-cet
14852 if CET is enabled.
14853 (CFLAGS-.o): Add -fcf-protection if CET is enabled.
14854 (CFLAGS-.os): Likewise.
14855 (CFLAGS-.op): Likewise.
14856 (CFLAGS-.oS): Likewise.
14857 (asm-CPPFLAGS): Add -fcf-protection -include cet.h if CET
14858 is enabled.
14859 (tests-special): Add $(objpfx)check-cet.out.
14860 (cet-built-dso): New.
14861 (+$(cet-built-dso:=.note)): Likewise.
14862 (common-generated): Add $(cet-built-dso:$(common-objpfx)%=%.note).
14863 ($(objpfx)check-cet.out): New.
14864 (generated): Add check-cet.out.
14865 * sysdeps/x86/cpu-features.c: Include <dl-cet.h> and
14866 <cet-tunables.h>.
14867 (TUNABLE_CALLBACK (set_x86_ibt)): New prototype.
14868 (TUNABLE_CALLBACK (set_x86_shstk)): Likewise.
14869 (init_cpu_features): Call get_cet_status to check CET status
14870 and update dl_x86_feature_1 with CET status. Call
14871 TUNABLE_CALLBACK (set_x86_ibt) and TUNABLE_CALLBACK
14872 (set_x86_shstk). Disable and lock CET in libc.a.
14873 * sysdeps/x86/cpu-tunables.c: Include <cet-tunables.h>.
14874 (TUNABLE_CALLBACK (set_x86_ibt)): New function.
14875 (TUNABLE_CALLBACK (set_x86_shstk)): Likewise.
14876 * sysdeps/x86/sysdep.h (_CET_NOTRACK): New.
14877 (_CET_ENDBR): Define if not defined.
14878 (ENTRY): Add _CET_ENDBR.
14879 * sysdeps/x86/dl-tunables.list (glibc.tune): Add x86_ibt and
14880 x86_shstk.
14881 * sysdeps/x86_64/dl-trampoline.h (_dl_runtime_resolve): Add
14882 _CET_ENDBR.
14883 (_dl_runtime_profile): Likewise.
14884
14885 2018-07-16 Rogerio A. Cardoso <rcardoso@linux.vnet.ibm.com>
14886
14887 [BZ #21895]
14888 * sysdeps/powerpc/powerpc64/__longjmp-common.S: Remove condition code for
14889 restore r2 on longjmp.
14890 * sysdeps/powerpc/powerpc64/Makefile: Added tst-setjmp-bug21895-static to
14891 test list.
14892 Added rules to build test tst-setjmp-bug21895-static.
14893 Added module setjmp-bug21895 and rules to build a shared object from it.
14894 * sysdeps/powerpc/powerpc64/setjmp-bug21895.c: New test file.
14895 * sysdeps/powerpc/powerpc64/tst-setjmp-bug21895-static.c: New test file.
14896
14897 2018-07-15 Wilco Dijkstra <wdijkstr@arm.com>
14898
14899 * benchtests/bench-strcasestr.c: Rename __strnlen to strnlen.
14900 * benchtests/bench-strstr.c: Likewise.
14901 * string/memmem.c (FASTSEARCH): Define.
14902 * string/str-two-way.h (two_way_short_needle): Minor cleanups.
14903 Add support for FASTSEARCH.
14904 * string/strcasestr.c (AVAILABLE): Use read-ahead __strnlen.
14905 * string/strstr.c (AVAILABLE): Use read-ahead __strnlen.
14906 (FASTSEARCH): Define.
14907 * string/test-strcasestr.c: Rename __strnlen to strnlen.
14908 * string/test-strstr.c: Likewise.
14909
14910 2018-07-15 H.J. Lu <hongjiu.lu@intel.com>
14911
14912 * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S: Undef
14913 SHADOW_STACK_POINTER_OFFSET after including <jmp_buf-ssp.h>.
14914
14915 2018-07-14 Igor Tsimbalist <igor.v.tsimbalist@intel.com>
14916 H.J. Lu <hongjiu.lu@intel.com>
14917
14918 * sysdeps/i386/__longjmp.S: Include <jmp_buf-ssp.h>.
14919 (__longjmp): Restore shadow stack pointer if shadow stack is
14920 enabled, SHADOW_STACK_POINTER_OFFSET is defined and __longjmp
14921 isn't defined for __longjmp_cancel.
14922 * sysdeps/i386/bsd-_setjmp.S: Include <jmp_buf-ssp.h>.
14923 (_setjmp): Save shadow stack pointer if shadow stack is enabled
14924 and SHADOW_STACK_POINTER_OFFSET is defined.
14925 * sysdeps/i386/bsd-setjmp.S: Include <jmp_buf-ssp.h>.
14926 (setjmp): Save shadow stack pointer if shadow stack is enabled
14927 and SHADOW_STACK_POINTER_OFFSET is defined.
14928 * sysdeps/i386/setjmp.S: Include <jmp_buf-ssp.h>.
14929 (__sigsetjmp): Save shadow stack pointer if shadow stack is
14930 enabled and SHADOW_STACK_POINTER_OFFSET is defined.
14931 * sysdeps/unix/sysv/linux/i386/____longjmp_chk.S: Include
14932 <jmp_buf-ssp.h>.
14933 (____longjmp_chk): Restore shadow stack pointer if shadow stack
14934 is enabled and SHADOW_STACK_POINTER_OFFSET is defined.
14935 * sysdeps/unix/sysv/linux/x86/Makefile (gen-as-const-headers):
14936 Remove jmp_buf-ssp.sym.
14937 * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S: Include
14938 <jmp_buf-ssp.h>.
14939 (____longjmp_chk): Restore shadow stack pointer if shadow stack
14940 is enabled and SHADOW_STACK_POINTER_OFFSET is defined.
14941 * sysdeps/x86/Makefile (gen-as-const-headers): Add
14942 jmp_buf-ssp.sym.
14943 * sysdeps/x86/jmp_buf-ssp.sym: New dummy file.
14944 * sysdeps/x86_64/__longjmp.S: Include <jmp_buf-ssp.h>.
14945 (__longjmp): Restore shadow stack pointer if shadow stack is
14946 enabled, SHADOW_STACK_POINTER_OFFSET is defined and __longjmp
14947 isn't defined for __longjmp_cancel.
14948 * sysdeps/x86_64/setjmp.S: Include <jmp_buf-ssp.h>.
14949 (__sigsetjmp): Save shadow stack pointer if shadow stack is
14950 enabled and SHADOW_STACK_POINTER_OFFSET is defined.
14951
14952 2018-07-14 H.J. Lu <hongjiu.lu@intel.com>
14953
14954 [BZ #22563]
14955 * nptl/pthread_create.c: Include <tls-setup.h>.
14956 (__pthread_create_2_1): Call tls_setup_tcbhead.
14957 * sysdeps/generic/tls-setup.h: New file.
14958 * sysdeps/x86/nptl/tls-setup.h: Likewise.
14959 * sysdeps/i386/nptl/tcb-offsets.sym (FEATURE_1_OFFSET): New.
14960 * sysdeps/x86_64/nptl/tcb-offsets.sym (FEATURE_1_OFFSET):
14961 Likewise.
14962 * sysdeps/i386/nptl/tls.h (tcbhead_t): Rename __glibc_reserved1
14963 to feature_1.
14964 * sysdeps/x86_64/nptl/tls.h (tcbhead_t): Likewise.
14965 * sysdeps/x86/sysdep.h (X86_FEATURE_1_IBT): New.
14966 (X86_FEATURE_1_SHSTK): Likewise.
14967 (CET_ENABLED): Likewise.
14968 (IBT_ENABLED): Likewise.
14969 (SHSTK_ENABLED): Likewise.
14970
14971 2018-07-13 Rafał Lużyński <digitalfreak@lingonborough.com>
14972
14973 [BZ #23208]
14974 * localedata/Makefile (test-input): Add dsb_DE.UTF-8.
14975 (LOCALES): Likewise.
14976 * localedata/dsb_DE.UTF-8.in: New file.
14977 * localedata/locales/dsb_DE (LC_COLLATE): Fix syntax error.
14978
14979 2018-07-12 Florian Weimer <fweimer@redhat.com>
14980
14981 * nptl/allocatestack.c [_STACK_GROWS_UP] (allocate_stack): Call
14982 __mprotect, not mprotect.
14983
14984 2018-07-11 Florian Weimer <fweimer@redhat.com>
14985
14986 * io/Makefile (headers): Add bits/statx.h.
14987
14988 2018-07-10 Mike FABIAN <mfabian@redhat.com>
14989
14990 * localedata/charmaps/UTF-8: Use correct Unicode version 11.0.0 in comment.
14991 * localedata/locales/i18n_ctype: Use correct Unicode version in comments
14992 and headers.
14993 * localedata/unicode-gen/utf8_gen.py: Add option to specify Unicode version
14994 * localedata/unicode-gen/Makefile: Use option to specify Unicode version
14995 for utf8_gen.py
14996
14997 2018-07-10 Florian Weimer <fweimer@redhat.com>
14998
14999 * io/Makefile (routines): Add statx.
15000 (tests-internal): Add tst-statx.
15001 * io/Versions (GLIBC_2.28): Export statx.
15002 * io/bits/statx.h: New file.
15003 * io/sys/stat.h [__USE_GNU]: Include it.
15004 * io/fcntl.h [__USE_GNU] (AT_STATX_SYNC_TYPE)
15005 (AT_STATX_SYNC_AS_STAT, AT_STATX_FORCE_SYNC, AT_STATX_DONT_SYNC):
15006 Define.
15007 * io/statx.c: New file.
15008 * io/statx_generic.: Likewise.
15009 * io/tst-statx.: Likewise.
15010 * include/bits/statx.h: Likewise.
15011 * sysdeps/unix/sysv/linux/kernel-features.h
15012 [__LINUX_KERNEL_VERSION >= 0x040B00] (__ASSUME_STATX): Define.
15013 * sysdeps/unix/sysv/linux/alpha/kernel-features.h
15014 [__LINUX_KERNEL_VERSION < 0x040D00] (__ASSUME_STATX): Undefine.
15015 * sysdeps/unix/sysv/linux/ia64/kernel-features.h (__ASSUME_STATX):
15016 Undefine.
15017 * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
15018 [__LINUX_KERNEL_VERSION < 0x040C00] (__ASSUME_STATX): Undefine.
15019 * sysdeps/unix/sysv/linux/statx.c: New file.
15020 * manual/filesys.texi: Note that statx is undocumented.
15021 * sysdeps/**/libc*.abilist: Update.
15022
15023 2018-07-10 Adhemerval Zanella <adhemerval.zanella@linaro.org>
15024
15025 * sysdeps/unix/sysv/linux/tst-ofdlocks-compat.c: Add a comment about
15026 a kernel issue which lead to test failure in some cases.
15027
15028 2018-07-10 Florian Weimer <fweimer@redhat.com>
15029
15030 [BZ #23036]
15031 * posix/regexec.c (check_node_accept_bytes): When comparing
15032 weights, do not compare an extra byte after the end of the
15033 weights.
15034
15035 2018-07-10 Florian Weimer <fweimer@redhat.com>
15036
15037 * libio/readline.c: Fix copyright year.
15038 * libio/tst-readline.c Likewise.
15039 * nss/tst-nss-files-hosts-getent.c: Likewise.
15040
15041 2018-07-06 Florian Weimer <fweimer@redhat.com>
15042
15043 [BZ #18991]
15044 * nss/nss_files/files-XXX.c (internal_getent): Use
15045 __libc_readline_unlocked. Seek back to the start of the line if
15046 parsing failes with ERANGE.
15047 (get_contents_ret, get_contents): Remove.
15048 * nss/tst-nss-files-hosts-getent.c: New file.
15049 * nss/Makefile (tests): Add tst-nss-files-hosts-getent.
15050 (tst-nss-files-hosts-getent): Link with -ldl.
15051
15052 2018-07-06 Florian Weimer <fweimer@redhat.com>
15053
15054 * include/stdio.h (__libc_readline_unlocked): Declare.
15055 (__ftello64, __fseeko64): Declare aliases.
15056 * libio/readline.c: New file.
15057 * libio/tst-readline.c: Likewise.
15058 (routines): Add readline.
15059 (tests-internal): Add tst-readlime.
15060 * libio/Versions (GLIBC_PRIVATE): Export __fseeko64, __ftello64,
15061 __libc_readline_unlocked.
15062 * libio/fseeko.c (__fseeko): Rename from fseeko.
15063 (fseeko): Add alias.
15064 [__OFF_T_MATCHES_OFF64_T] (fseeko64, __fseeko64): Likewise.
15065 * libio/fseeko64.c (__fseeko64): Rename from fseeko64.
15066 (fseeko64): Add alias.
15067 * libio/ftello.c [__OFF_T_MATCHES_OFF64_T] (__ftello64): Add alias.
15068 * libio/ftello64.c (__ftello64): Rename from ftello64.
15069 (ftello64): Add alias.
15070
15071 2018-07-06 Szabolcs Nagy <szabolcs.nagy@arm.com>
15072
15073 * sysdeps/unix/sysv/linux/aarch64/dl-procinfo.h (HWCAP_IMPORTANT): Add
15074 HWCAP_ATOMICS.
15075
15076 2018-07-06 Szabolcs Nagy <szabolcs.nagy@arm.com>
15077
15078 * sysdeps/unix/sysv/linux/aarch64/cpu-features.c (init_cpu_features):
15079 Use dl_hwcap without masking.
15080 * sysdeps/unix/sysv/linux/aarch64/dl-procinfo.h (HWCAP_IMPORTANT):
15081 Remove HWCAP_CPUID.
15082
15083 2018-07-06 Florian Weimer <fweimer@redhat.com>
15084
15085 * conform/conformtest.pl (checknamespace): Escape literal braces
15086 in regular expressions.
15087
15088 2018-07-06 Amit Pawar <amit.pawar@amd.com>
15089
15090 * sysdeps/x86/cpu-features.c (get_common_indeces):
15091 AVX_Fast_Unaligned_Load is enabled when AVX2 is detected.
15092 * sysdeps/x86/cpu-features.c (init_cpu_features):
15093 AVX_Fast_Unaligned_Load is disabled for Excavator core.
15094
15095 2018-07-05 Florian Weimer <fweimer@redhat.com>
15096
15097 * csu/Makefile (CFLAGS-static-reloc.os): Build with stack
15098 protector.
15099 (CFLAGS-elf-init.oS): Likewise.
15100
15101 2018-07-05 Florian Weimer <fweimer@redhat.com>
15102 Carlos O'Donell <carlos@redhat.com>
15103
15104 * debug/Makefile (CFLAGS-stack_chk_fail_local.c): Remove
15105 $(no-stack-protector). stack_chk_fail_local.c can be compiled
15106 with stack protector enabled because there is no risk of infinite
15107 recursion.
15108
15109 2018-07-05 Maciej W. Rozycki <macro@mips.com>
15110
15111 [BZ #19818]
15112 [BZ #23307]
15113 * libc-abis (ABSOLUTE): New ABI.
15114 * sysdeps/unix/sysv/linux/mips/libc-abis (ABSOLUTE): New ABI.
15115 * NEWS: Mention the new ABI.
15116
15117 2018-07-05 Florian Weimer <fweimer@redhat.com>
15118
15119 [BZ # 17662]
15120 * libio/stdio.h [__USE_GNU] (RENAME_NOREPLACE, RENAME_EXCHANGE)
15121 (RENAME_WHITEOUT): Define.
15122 [__USE_GNU] (renameat2): Declare.
15123 * stdio-common/Makefile (routines): Add renameat2.
15124 (tests): Add tst-renameat2.
15125 * stdio-common/Versions (GLIBC_2_28): Export renameat2.
15126 * stdio-common/renameat2.c: New file.
15127 * stdio-common/tst-renameat2.c: Likewise.
15128 * sysdeps/unix/sysv/linux/renameat2.c: Likewise.
15129 * manual/filesys.texi (Temporary Files): Note that renameat2 is
15130 undocumented.
15131 * sysdeps/unix/sysv/linux/kernel-features.h
15132 [__LINUX_KERNEL_VERSION >= 0x030F00] (__ASSUME_RENAMEAT2): Define.
15133 * sysdeps/unix/sysv/linux/alpha/kernel-features.h
15134 [__LINUX_KERNEL_VERSION < 0x031100] (__ASSUME_RENAMEAT2): Undefine.
15135 * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
15136 [__LINUX_KERNEL_VERSION < 0x031100] (__ASSUME_RENAMEAT2): Undefine.
15137 * sysdeps/unix/sysv/linux/sh/kernel-features.h
15138 [__LINUX_KERNEL_VERSION < 0x040800] (__ASSUME_RENAMEAT2): Undefine.
15139 * sysdeps/unix/sysv/linux/sparc/kernel-features.h
15140 [__LINUX_KERNEL_VERSION < 0x031000] (__ASSUME_RENAMEAT2): Undefine.
15141 * include/stdio.h (__renameat): Add alias for renameat.
15142 * stdio-common/renameat.c (__renameat): Rename from renameat.
15143 Add hidden definition and alias.
15144 * sysdeps/unix/sysv/linux/renameat.c: Likewise.
15145 * sysdeps/mach/hurd/renameat.c: Likewise.
15146 * sysdeps/**/libc*.abilist: Add renameat2.
15147
15148 2018-07-04 Adhemerval Zanella <adhemerval.zanella@linaro.org>
15149
15150 * posix/bug-regex33.c: Fix build after regex sync.
15151
15152 2018-07-04 Carlos O'Donell <carlos@redhat.com>
15153
15154 [BZ #23164]
15155 * localedata/tst-langinfo-setlocale.c: New file.
15156 * localedata/tst-langinfo-setlocale-static.c: New file.
15157 * localedata/tst-langinfo-newlocale.c: New file.
15158 * localedata/tst-langinfo-newlocale-static.c: New file.
15159 * localedata/Makefile (test-srcs): Remove tst-langinfo. Add
15160 tst-langinfo-setlocale, tst-langinfo-setlocale-static,
15161 tst-langinfo-newlocale, tst-langinfo-newlocale-static.
15162 (tests-static): Remove tst-langinfo-static. Add
15163 tst-langinfo-newlocale-static, tst-langinfo-setlocale-static.
15164 (tests-special): Remove $(objpfx)tst-langinfo.out,
15165 $(objpfx)tst-langinfo-static.out. Add
15166 $(objpfx)tst-langinfo-setlocale.out,
15167 $(objpfx)tst-langinfo-newlocale.out,
15168 $(objpfx)tst-langinfo-setlocale-static.out,
15169 $(objpfx)tst-langinfo-newlocale-static.out.
15170 ($(objpfx)tst-langinfo.out): Remove.
15171 ($(objpfx)tst-langinfo-static.out): Remove.
15172 ($(objpfx)tst-langinfo-newlocale.out): New target.
15173 ($(objpfx)tst-langinfo-newlocale-static.out): New target.
15174 (test-xfail-tst-langinfo-newlocale-static): Add.
15175 ($(objpfx)tst-langinfo-setlocale.out): New target.
15176 ($(objpfx)tst-langinfo-setlocale-static.out): New target.
15177 * localedata/tst-langinfo.c: Call test_locale.
15178 * localedata/tst-langinfo.sh: Add LC_MONETARY CURRENCY_SYMBOL test
15179 data.
15180
15181 2018-07-04 Florian Weimer <fweimer@redhat.com>
15182
15183 testrun.sh: Implement --tool=strace, --tool=valgrind
15184 * Makefile (testrun-script): Define variable.
15185 (testrun.sh): Use variable.
15186 * manual/install.texi (Tools for Compilation): make 4.0 or later
15187 is required.
15188 * configure.ac: Check for make 4.0 or later.
15189 * INSTALL: Regenerate.
15190 * configure: Likewise.
15191
15192 2018-07-04 Adhemerval Zanella <adhemerval.zanella@linaro.org>
15193
15194 [BZ #23233]
15195 [BZ #21163]
15196 [BZ #18986]
15197 [BZ #13762]
15198 * posix/Makefile (tests): Add bug-regex37 and bug-regex38.
15199 * posix/PCRE.tests: Remove invalid test.
15200 * posix/bug-regex28.c: Fix expected values for used syntax.
15201 * posix/bug-regex37.c: New file.
15202 * posix/bug-regex38.c: Likewise.
15203 * posix/regcomp.c: Sync with gnulib.
15204 * posix/regex.c: Likewise.
15205 * posix/regex.h: Likewise.
15206 * posix/regex_internal.c: Likewise.
15207 * posix/regex_internal.h: Likewise.
15208 * posix/regexec.c: Likewise.
15209
15210 2018-06-26 Mike FABIAN <mfabian@redhat.com>
15211
15212 [BZ #23308]
15213 * unicode-gen/Makefile (UNICODE_VERSION): Set to 11.0.0.
15214 * localedata/unicode-gen/DerivedCoreProperties.txt: Update to Unicode 11.0.0.
15215 * localedata/unicode-gen/EastAsianWidth.txt: likewise.
15216 * localedata/unicode-gen/PropList.txt: likewise.
15217 * localedata/unicode-gen/UnicodeData.txt: likewise.
15218 * localedata/charmaps/UTF-8: Regenerate.
15219 * localedata/locales/i18n_ctype: likewise.
15220 * localedata/locales/tr_TR: likewise.
15221 * localedata/locales/translit_circle: likewise.
15222 * localedata/locales/translit_cjk_compat: likewise.
15223 * localedata/locales/translit_combining: likewise.
15224 * localedata/locales/translit_compat: likewise.
15225 * localedata/locales/translit_font: likewise.
15226 * localedata/locales/translit_fraction: likewise.
15227
15228 2018-07-03 Florian Weimer <fweimer@redhat.com>
15229
15230 [BZ #23363]
15231 * stdio-common/tst-printf.c (DEC, INT, UNS, fp_test): Remove.
15232 * stdio-common/tst-printf.sh: Adjust expected output.
15233 * LICENSES: Update.
15234
15235 2018-07-03 Adhemerval Zanella <adhemerval.zanella@linaro.org>
15236
15237 * sysdeps/mach/hurd/i386/libc.abilist [GLIBC_2.28] (fcntl): Remove
15238 symbol.
15239
15240 2018-07-02 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
15241
15242 * stdio-common/Makefile (test-srcs): Add tst-printfsz-islongdouble.
15243 (tests-special) Add $(objpfx)tst-printfsz-islongdouble.out.
15244 ($(objpfx)tst-printfsz-islongdouble.out): New build and run rule.
15245 * stdio-common/tst-printfsz-islongdouble.c: New file.
15246 * stdio-common/tst-printfsz-islongdouble.sh: Likewise.
15247 * sysdeps/ieee754/ldbl-128ibm-compat/Makefile:
15248 [subdir == stdio-common] (routines): Add ieee128-printf_size.
15249 [subdir == stdio-common] (tests-internal): Add
15250 test-printf-size-ieee128, and test-printf-size-ibm128.
15251 [subdir == stdio-common] (CFLAGS-test-printf-size-ieee128.c)
15252 (CFLAGS-test-printf-size-ibm128.c): New variables.
15253 [subdir == stdio-common] (tests-special): Add
15254 $(objpfx)test-printf-size-ieee128.out and
15255 $(objpfx)test-printf-size-ibm128.out.
15256 [subdir == stdio-common] ($(objpfx)test-printf-size-ieee128.out)
15257 ($(objpfx)test-printf-size-ibm128.out): New build and run rules.
15258 * sysdeps/ieee754/ldbl-128ibm-compat/Versions (libc): Add
15259 __printf_sizeieee128.
15260 * sysdeps/ieee754/ldbl-128ibm-compat/ieee128-printf_size.c:
15261 New file.
15262 * sysdeps/ieee754/ldbl-128ibm-compat/test-printf-size-ibm128.c:
15263 Likewise.
15264 * sysdeps/ieee754/ldbl-128ibm-compat/test-printf-size-ieee128.c:
15265 Likewise.
15266
15267 2018-07-02 Szabolcs Nagy <szabolcs.nagy@arm.com>
15268
15269 * sysdeps/ieee754/flt-32/e_powf.c (__powf): Use uint32_t.
15270 (exp2f_inline): Likewise.
15271 * sysdeps/ieee754/flt-32/math_config.h (__math_oflowf): Likewise.
15272 (__math_uflowf): Likewise.
15273 (__math_may_uflowf): Likewise.
15274 (__math_divzerof): Likewise.
15275 (__math_invalidf): Likewise.
15276 * sysdeps/ieee754/flt-32/math_errf.c (xflowf): Likewise.
15277 (__math_oflowf): Likewise.
15278 (__math_uflowf): Likewise.
15279 (__math_may_uflowf): Likewise.
15280 (__math_divzerof): Likewise.
15281 (__math_invalidf): Likewise.
15282
15283 2018-06-29 DJ Delorie <dj@redhat.com>
15284 Carlos O'Donell <carlos@redhat.com>
15285
15286 [BZ #23329]
15287 * include/libc-symbols.h: Comment the freeres framework.
15288 * include/set-hooks.h: Include libc-symbols.h. Fix comment.
15289 * dlfcn/Makefile (libdl-routines): Add dlfreeres.
15290 * dlfcn/Versions (GLIBC_PRIVATE): Add __libdl_freeres.
15291 * dlfcn/dlerror.c: Include libc-symbols.h
15292 (__dlerror_main_freeres): New function.
15293 * dlfcn/dlfreeres.c: New file.
15294 * dlfcn/sdlfreeres.c: New file.
15295 * include/dlfcn.h: Declare __dlerror_main_freeres.
15296 * malloc/set-freeres.c: Declare __libdl_freeres, and
15297 __libpthread_freeres.
15298 (__libc_subfreeres): Call __libdl_freeres, and __libpthread_freeres if
15299 the releavant libraries are loaded.
15300 * malloc/thread-freeres.c: Add comments.
15301 * nptl/Makefile (libpthread-routines): Add nptlfreeres.
15302 * nptl/Version (GLIBC_PRIVATE): Add __libpthread_freeres.
15303 * nptl/allocatestack.c (__nptl_free_stacks): New function.
15304 (__free_stacks): Rename to...
15305 (free_stacks): ...this. Mark static.
15306 (queue_stack): Call free_stacks.
15307 * nptl/libc_pthread_init.c [SHARED] (freeres_libpthread): Delete.
15308 * nptl/nptl-init.c: Delete delcaration of nptl_freeres.
15309 * sysdeps/nptl/pthread-functions.h (pthread_functions): Remove
15310 ptr_freeres element from struct.
15311 (pthread_functions): Remove .ptr_freeres from struct initializer.
15312 [SHARED] (nptl_freeres): Remove.
15313 * nptl/nptlfreeres.c: New file.
15314 * nptl/pthreadP.h
15315 [IS_IN (libpthread) && SHARED ] (__unwind_freeres): Rename to...
15316 [IS_IN (libpthread)] (__nptl_unwind_freeres): ...this. Mark
15317 attribute_hidden.
15318 (__free_stacks): Rename to...
15319 (__nptl_stacks_freeres): ...this.
15320 (__shm_directory_freeres): Declare.
15321 * nptl/unwind-forcedunwind.c (__unwind_freeres): Rename to...
15322 (__nptl_unwind_freeres): ...this.
15323 * resolv/res-close.c: Add comment.
15324 * resolv/resolv_conf.c: Include libc-symbols.h.
15325 * string/strerror_l.c: Include libc-symbols.h.
15326 * sunrpc/rpc_thread.c: Include libc-symbols.h.
15327 * sysdeps/mach/strerror_l.c: Inlcude libc-symbols.h
15328 * sysdeps/unix/sysv/linux/shm-directory.c (freeit): Rename to...
15329 [IS_IN (libpthread)] (__shm_directory_freeres): ...this.
15330
15331 2018-06-29 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
15332
15333 * stdlib/tst-strfmon_l.c: Add tests for long double.
15334
15335 2018-06-29 Michael Wolf <milupo@sorbzilla.de>
15336
15337 [BZ #23208]
15338 * localedata/SUPPORTED (dsb_DE/UTF-8): New entry.
15339 * localedata/locales/dsb_DE: New file.
15340
15341 2018-06-29 Rafał Lużyński <digitalfreak@lingonborough.com>
15342
15343 [BZ #23140]
15344 * localedata/locales/hy_AM (mon): Synchronize with CLDR (lowercase,
15345 genitive case).
15346 (alt_mon): New entry, import from CLDR (nominative case).
15347
15348 2018-06-29 Sylvain Lesage <severo@rednegra.net>
15349
15350 [BZ #22996]
15351 * localedata/locales/es_BO (LC_PAPER): Change to “copy "en_US"”.
15352
15353 2018-06-29 Siddhesh Poyarekar <siddhesh@sourceware.org>
15354
15355 * sysdeps/aarch64/multiarch/memcpy_falkor.S (__memcpy_falkor):
15356 Use vector registers.
15357
15358 * sysdeps/aarch64/multiarch/memmove_falkor.S
15359 (__memcpy_falkor): Use vector registers.
15360
15361 2018-06-29 Martin Sebor <msebor@redhat.com>
15362
15363 * manual/stdio.texi (Customizing Printf): Mention interaction
15364 with GCC built-ins.
15365
15366 2018-06-29 Maciej W. Rozycki <macro@mips.com>
15367
15368 [BZ #23307]
15369 * elf/dl-lookup.c (check_match): Do not reject a symbol whose
15370 `st_value' is 0 if `st_shndx' is SHN_ABS.
15371 * elf/tst-absolute-zero.c: New file.
15372 * elf/tst-absolute-zero-lib.c: New file.
15373 * elf/tst-absolute-zero-lib.lds: New file.
15374 * elf/Makefile (tests): Add `tst-absolute-zero'.
15375 (modules-names): Add `tst-absolute-zero-lib'.
15376 (LDLIBS-tst-absolute-zero-lib.so): New variable.
15377 ($(objpfx)tst-absolute-zero-lib.so): New dependency.
15378 ($(objpfx)tst-absolute-zero: New dependency.
15379
15380 2018-06-29 Zack Weinberg <zackw@panix.com>
15381
15382 * configure.ac: New command-line option --disable-crypt.
15383 Force --disable-nss-crypt when --disable-crypt is given, with a
15384 warning if it was explicitly enabled.
15385 * configure: Regenerate.
15386 * config.make.in: New boolean substitution variable $(build-crypt).
15387 * Makeconfig: Only include 'crypt' in all-subdirs and rpath-dirs
15388 when $(build-crypt).
15389 * manual/install.texi: Document --disable-crypt.
15390 * INSTALL: Regenerate.
15391
15392 * crypt/Makefile: Remove code conditional on $(crypt-in-libc),
15393 which is never set.
15394 * conform/Makefile: Only include libcrypt.a in
15395 linknamespace-libs-xsi and linknamespace-libs-XPG4
15396 when $(build-crypt).
15397 * elf/Makefile (CFLAGS-tst-linkall-static.c): Only define
15398 USE_CRYPT to 1 when $(build-crypt).
15399 (tst-linkall-static): Only link libcrypt.a when $(build-crypt).
15400 (localplt-built-dso): Only add libcrypt.so when $(build-crypt).
15401 * elf/tst-linkall-static.c: Only include crypt.h when USE_CRYPT.
15402
15403 2018-06-29 Zack Weinberg <zackw@panix.com>
15404
15405 * crypt/crypt.h, posix/unistd.h: Update comments and
15406 prototypes for crypt and crypt_r.
15407
15408 * manual/crypt.texi (Cryptographic Functions): New initial
15409 exposition.
15410 (crypt): Section renamed to 'Passphrase Storage'. Full rewrite.
15411 (Unpredictable Bytes): Improve initial exposition. Clarify error
15412 behavior of getentropy and getrandom.
15413 * manual/examples/genpass.c: Generate a salt using getentropy
15414 instead of the current time. Use hash $5$ (SHA-2-256).
15415 * manual/examples/testpass.c: Demonstrate validation against
15416 hashes generated with three different one-way functions.
15417
15418 * manual/intro.texi: crypt.texi does not need an overview
15419 anymore.
15420
15421 * manual/nss.texi, manual/memory.texi, manual/socket.texi
15422 * manual/terminal.texi: Consistently refer to "passphrases"
15423 * instead of "passwords", and to the "user database" instead
15424 * of the "password database".
15425 * manual/users.texi: Similarly. Add notes about how actual
15426 passphrase hashes are now stored in the shadow database.
15427 Remove 20-year-old junk todo note.
15428
15429 2018-06-29 Zack Weinberg <zackw@panix.com>
15430
15431 * manual/crypt.texi: Use a normal top-level @node declaration.
15432 Move most of the introductory text to the 'crypt' section.
15433 Move the example programs below the @deftypefun for 'crypt_r'.
15434 Move the 'getpass' section...
15435 * manual/terminal.texi: ...here.
15436
15437 2018-06-29 Zack Weinberg <zackw@panix.com>
15438 Florian Weimer <fweimer@redhat.com>
15439
15440 * posix/unistd.h: Do not declare encrypt.
15441 (_XOPEN_CRYPT): Remove macro definition.
15442 (crypt): Declare only for _USE_MISC.
15443 * stdlib/stdlib.h: Do not declare setkey.
15444 * crypt/crypt.h: Do not declare encrypt, setkey, encrypt_r, setkey_r.
15445 * sunrpc/Makefile: Do not install des_crypt.h nor rpc_des.h.
15446
15447 * crypt/crypt-entry.c: Make fcrypt a compat symbol.
15448 * crypt/crypt_util.c: Make encrypt, encrypt_r, setkey, setkey_r
15449 into compat symbols. Don't define initial_perm if it's not
15450 going to be used.
15451 * crypt/cert.c: Link explicitly with the expected versions for
15452 setkey and encrypt. If they are not available at all, mark
15453 the test as unsupported.
15454
15455 * sunrpc/des_crypt.c: Unconditionally block linkage with
15456 cbc_crypt and ecb_crypt for new binaries.
15457 * sunrpc/des_soft.c: Unconditionally block linkage with
15458 des_setparity for new binaries.
15459
15460 * manual/crypt.texi: Remove the entire "DES Encryption"
15461 section. Also remove the paragraph talking about FIPS 140-2
15462 from the introduction.
15463 * manual/string.texi (strfry, memfrob): Revise. Recommend use
15464 of libgcrypt for "real" encryption, not DES.
15465 * manual/conf.texi (Constants for Sysconf): Mention that
15466 _XOPEN_CRYPT is no longer impelemented.
15467
15468 * conform/data/unistd.h-data: Remove crypt function declaration.
15469
15470 2018-06-29 Florian Weimer <fweimer@redhat.com>
15471
15472 [BZ #23351]
15473 * malloc/hooks.c: Update comments on restoring of dumped heaps.
15474 (disallow_malloc_check): Remove variable.
15475 (__malloc_check_init): Adjust.
15476 (malloc_set_state): Update comment.
15477 * malloc/malloc.c (__malloc_get_state, __malloc_set_state): Remove
15478 declarations.
15479
15480 2018-06-29 Rafał Lużyński <digitalfreak@lingonborough.com>
15481
15482 [BZ #23140]
15483 * localedata/locales/ast_ES (mon): Rename to...
15484 (alt_mon): This.
15485 (mon): Import from CLDR (genitive case).
15486
15487 2018-06-29 Daniel Alvarez <dalvarez@redhat.com>
15488 Jakub Sitnicki <jkbs@redhat.com>
15489
15490 [BZ #21812]
15491 * sysdeps/unix/sysv/linux/ifaddrs.c (getifaddrs_internal): Retry
15492 on NLM_F_DUMP_INTR.
15493
15494 2018-06-28 Szabolcs Nagy <szabolcs.nagy@arm.com>
15495
15496 * manual/llio.texi: Remove spurious space.
15497
15498 2018-06-28 Florian Weimer <fweimer@redhat.com>
15499
15500 [BZ #23349]
15501 * time/bits/types/struct_timespec.h: Change header inclusion guard to
15502 _STRUCT_TIMESPEC.
15503
15504 2018-06-28 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
15505
15506 * sysdeps/ieee754/ldbl-128ibm-compat/Versions: Add __strfromieee128,
15507 __strtoieee128, __strtoieee128_l,__wcstoieee128 and __wcstoieee128_l.
15508 * sysdeps/ieee754/ldbl-128ibm-compat/strfromf128.c: New file.
15509 * sysdeps/ieee754/ldbl-128ibm-compat/strtof128.c: New file.
15510 * sysdeps/ieee754/ldbl-128ibm-compat/strtof128_l.c: New file.
15511 * sysdeps/ieee754/ldbl-128ibm-compat/wcstof128.c: New file.
15512 * sysdeps/ieee754/ldbl-128ibm-compat/wcstof128_l.c: New file.
15513
15514 2018-06-27 Maciej W. Rozycki <macro@mips.com>
15515
15516 [BZ #23266]
15517 * nis/nss_nisplus/nisplus-parser.c (_nss_nisplus_parse_pwent):
15518 Copy and null-terminate entries that are not terminated, in
15519 addition to empty ones.
15520
15521 2018-06-27 Florian Weimer <fweimer@redhat.com>
15522
15523 [BZ #18023]
15524 * include/alloca.h (stackinfo_alloca_round, extend_alloca)
15525 (extend_alloca_account): Remove.
15526 * manual/stdio.texi (Variable Arguments Output): Update comment.
15527
15528 2018-06-27 Joseph Myers <joseph@codesourcery.com>
15529
15530 * nptl/sockperf.c: Remove file.
15531
15532 2018-06-27 Florian Weimer <fweimer@redhat.com>
15533
15534 [BZ #18023]
15535 * elf/dl-deps.c (_dl_map_object_deps): Use struct
15536 scratch_buffer instead of extend_alloca.
15537
15538 2018-06-27 Florian Weimer <fweimer@redhat.com>
15539
15540 [BZ #18023]
15541 * sysdeps/unix/sysv/linux/gethostid.c (gethostid): Use struct
15542 scratch_buffer instead of extend_alloca. Update comments.
15543
15544 2018-06-27 Florian Weimer <fweimer@redhat.com>
15545
15546 [BZ #18023]
15547 * posix/wordexp.c (parse_tilde): Use struct scratch_buffer
15548 instead of extend_alloca.
15549
15550 2018-06-26 Joseph Myers <joseph@codesourcery.com>
15551
15552 [BZ #13888]
15553 * posix/Makefile (CFLAGS-tst-spawn3.c): New variable.
15554 * posix/tst-spawn3.c (do_test): Put tst-spwan3.pid in OBJPFX, not
15555 /tmp.
15556 * scripts/test-installation.pl: Put temporary files in build
15557 directory, not /tmp.
15558 * stdio-common/Makefile (CFLAGS-bug3.c): New variable.
15559 (CFLAGS-bug4.c): Likewise.
15560 (CFLAGS-bug5.c): Likewise.
15561 (CFLAGS-test-fseek.c): Likewise.
15562 (CFLAGS-test-popen.c): Likewise.
15563 (CFLAGS-test_rdwr.c): Likewise.
15564 * stdio-common/bug3.c (main): Put temporary file in OBJPFX, not
15565 /tmp.
15566 * stdio-common/bug4.c (main): Likewise.
15567 * stdio-common/bug5.c (main): Likewise.
15568 * stdio-common/test-fseek.c (TESTFILE): Likewise.
15569 * stdio-common/test-popen.c (do_test): Likewise.
15570 * stdio-common/test_rdwr.c (main): Likewise.
15571
15572 2018-06-26 Patsy Franklin <pfrankli@redhat.com>
15573
15574 * nptl/sem_open.c [!__HAVE_64B_ATOMICS] (sem_open): Don't update pad.
15575 (sem_open): Set sem.newsem.pad to zero for valgrind.
15576
15577 2018-06-26 Adhemerval Zanella <adhemerval.zanella@linaro.org>
15578
15579 [BZ #20251]
15580 * NEWS: Mention fcntl64 addition.
15581 * csu/check_fds.c: Replace __fcntl_nocancel by __fcntl64_nocancel.
15582 * login/utmp_file.c: Likewise.
15583 * sysdeps/posix/fdopendir.c: Likewise.
15584 * sysdeps/posix/opendir.c: Likewise.
15585 * sysdeps/unix/pt-fcntl.c: Likewise.
15586 * include/fcntl.h (__libc_fcntl64, __fcntl64,
15587 __fcntl64_nocancel_adjusted): New prototype.
15588 (__fcntl_nocancel_adjusted): Remove prototype.
15589 * io/Makefile (routines): Add fcntl64.
15590 (CFLAGS-fcntl64.c): New rule.
15591 * io/Versions [GLIBC_2.28] (fcntl64): New symbol.
15592 [GLIBC_PRIVATE] (__libc_fcntl): Rename to __libc_fcntl64.
15593 * io/fcntl.h (fcntl64): Add prototype and redirect if
15594 __USE_FILE_OFFSET64 is defined.
15595 * io/fcntl64.c: New file.
15596 * manual/llio.text: Add a note for which commands fcntl acts a
15597 cancellation point.
15598 * nptl/Makefile (CFLAGS-fcntl64.c): New rule.
15599 * sysdeps/mach/hurd/fcntl.c: Alias fcntl to fcntl64 symbols.
15600 * sysdeps/mach/hurd/i386/libc.abilist [GLIBC_2.28] (fcntl, fcntl64):
15601 New symbols.
15602 * sysdeps/unix/sysv/linux/fcntl.c (__libc_fcntl): Fix F_GETLK64,
15603 F_OFD_GETLK, F_SETLK64, F_SETLKW64, F_OFD_SETLK, and F_OFD_SETLKW for
15604 non-LFS case.
15605 * sysdeps/unix/sysv/linux/fcntl64.c: New file.
15606 * sysdeps/unix/sysv/linux/fcntl_nocancel.c (__fcntl_nocancel): Rename
15607 to __fcntl64_nocancel.
15608 (__fcntl_nocancel_adjusted): Rename to __fcntl64_nocancel_adjusted.
15609 * sysdeps/unix/sysv/linux/not-cancel.h (__fcntl_nocancel): Rename
15610 to __fcntl64_nocancel.
15611 * sysdeps/generic/not-cancel.h: Likewise.
15612 * sysdeps/unix/sysv/linux/tst-ofdlocks.c: New file.
15613 * sysdeps/unix/sysv/linux/Makefile (tests): Add tst-ofdlocks.
15614 * sysdeps/unix/sysv/linux/aarch64/libc.abilist [GLIBC_2.28]
15615 (fcntl64): New symbol.
15616 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
15617 * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
15618 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
15619 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist: Likewise.
15620 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist: Likewise.
15621 * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist: Likewise.
15622 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
15623 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
15624 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
15625 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
15626 * sysdeps/unix/sysv/linux/arm/libc.abilist [GLIBC_2.28] (fcntl,
15627 fcntl64): Likewise.
15628 * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
15629 * sysdeps/unix/sysv/linux/i386/libc.abilis: Likewise.
15630 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
15631 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
15632 * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
15633 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
15634 * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist: Likewise.
15635 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
15636 * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise.
15637 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
15638 Likewise.
15639 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
15640 Likewise.
15641 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
15642 * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
15643 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
15644
15645 2018-06-26 Florian Weimer <fweimer@redhat.com>
15646
15647 Run thread shutdown functions in an explicit order.
15648 * malloc/thread-freeres.c (__libc_thread_subfreeres): Remove hook
15649 definition.
15650 (__libc_thread_freeres): Call thread shutdown functions
15651 explicitly.
15652 * include/rpc/rpc.h (__rpc_thread_destroy): Add hidden attribute.
15653 * include/string.h (__strerror_thread_freeres): Declare.
15654 * malloc/arena.c (__malloc_arena_thread_freeres): Renamed from
15655 arena_thread_freeres. No longer static. Remove thread shutdown
15656 hook registration.
15657 * malloc/malloc-internal.h (__malloc_arena_thread_freeres):
15658 Declare.
15659 * resolv/res-close.c (__res_thread_freeres): Renamed from
15660 res_thread_freeres. No longer static. Remove thread shutdown
15661 hook registration.
15662 * resolv/resolv-internal.h (__res_thread_freeres): Declare.
15663 * resolv/resolv_conf.c (freeres): Remove incorrect section
15664 attribute and use libc_freeres_fn.
15665 * string/strerror_l.c (__strerror_thread_freeres): Renamed from
15666 strerror_thread_freeres. No longer static. Remove thread
15667 shutdown hook registration.
15668 * sysdeps/mach/strerror_l.c (__strerror_thread_freeres): Likewise.
15669 * sunrpc/rpc_thread.c (__rpc_thread_destroy): Remove thread
15670 shutdown hook registration.
15671 * Makerules (shlib.lds): Do not provide section boundary symbols
15672 for __libc_thread_subfreeres.
15673 * manual/memory.texi (Basic Allocation): Update comment.
15674
15675 2018-06-26 Florian Weimer <fweimer@redhat.com>
15676
15677 Remove always-defined _RPC_THREAD_SAFE_ macro.
15678 * sunrpc/Makefile (sunrpc-CPPFLAGS, CPPFLAGS, BUILD_CPPFLAGS):
15679 Do not define _RPC_THREAD_SAFE_.
15680 * include/rpc/rpc.h: Remove _RPC_THREAD_SAFE_ preprocessor
15681 conditional.
15682 * sunrpc/clnt_perr.c: Likewise.
15683 * sunrpc/clnt_raw.c: Likewise.
15684 * sunrpc/clnt_simp.c: Likewise.
15685 * sunrpc/key_call.c: Likewise.
15686 * sunrpc/rpc_common.c: Likewise.
15687 * sunrpc/rpc_main.c: Likewise.
15688 * sunrpc/rpc_thread.c: Likewise.
15689 * sunrpc/svc.c: Likewise.
15690 * sunrpc/svc_raw.c: Likewise.
15691 * sunrpc/svc_simple.c: Likewise.
15692 * sumrpc/svcauth_des.c: Likewise.
15693
15694 2018-06-26 Florian Weimer <fweimer@redhat.com>
15695
15696 * libio/Makefile (tests-internal): Add tst-vtables,
15697 tst-vtables-interposed.
15698 * libio/tst-vtables.c: New file.
15699 * libio/tst-vtables-common.c: Likewise.
15700 * libio/tst-vtables-interposed.c: Likewise.
15701
15702 2018-06-26 Florian Weimer <fweimer@redhat.com>
15703
15704 * support/support_test_main.c (support_test_main): Only call
15705 setvbuf if not disables.
15706 * support/test-driver.c (main): Check TEST_NO_SETVBUF.
15707 * support/test-driver.h (struct test_config): Add no_setvbuf member.
15708
15709 2018-06-26 Florian Weimer <fweimer@redhat.com>
15710
15711 [BZ #23313]
15712 * libio/vtables.c (check_stdfiles_vtables): New ELF constructor.
15713
15714 2018-06-25 Florian Weimer <fweimer@redhat.com>
15715
15716 [BZ #18023]
15717 * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn):
15718 Use struct scratch_buffer instead of extend_alloca.
15719
15720 2018-06-25 Florian Weimer <fweimer@redhat.com>
15721
15722 [BZ #18023]
15723 * nss/getent.c (initgroups_keys): Use dynarray instead of
15724 extend_alloca.
15725
15726 2018-06-25 Florian Weimer <fweimer@redhat.com>
15727
15728 [BZ #18023]
15729 * nis/nss_nis/nis-initgroups.c (get_uid, _nss_nis_initgroups_dyn):
15730 Use struct scratch_buffer instead of extend_alloca.
15731
15732 2018-06-25 Florian Weimer <fweimer@redhat.com>
15733
15734 [BZ #18023]
15735 * nss/nss_compat/compat-initgroups.c (getgrent_next_nss): Fall
15736 back to malloc directly, without stack allocations.
15737
15738 2018-06-25 Florian Weimer <fweimer@redhat.com>
15739
15740 [BZ #18023]
15741 * nscd/aicache.c (addhstaiX): Use struct scratch_buffer instead
15742 of extend_alloca.
15743
15744 2018-06-25 Florian Weimer <fweimer@redhat.com>
15745
15746 [BZ #18023]
15747 * nscd/grpcache.c (addgrbyX): Use struct scratch_buffer instead
15748 of extend_alloca.
15749 * nscd/hstcache.c (addhstbyX): Likewise.
15750 * nscd/pwdcache.c (addpwbyX): Likewise.
15751 * nscd/servicescache.c (addservbyX): Likewise.
15752
15753 2018-06-25 Florian Weimer <fweimer@redhat.com>
15754
15755 [BZ #18023]
15756 * nscd/connections.c (read_cmdline): New function.
15757 (restart): Use it. Update comment.
15758
15759 2018-06-25 Rafał Lużyński <digitalfreak@lingonborough.com>
15760
15761 [BZ #23140]
15762 * localedata/locales/csb_PL (mon): Rename to...
15763 (alt_mon): This.
15764 (abmon): Rename to...
15765 (ab_alt_mon): This.
15766 (mon): Add with proper genitive forms, copy from Wikipedia.
15767 (abmon): Likewise.
15768
15769 2018-06-25 Rafał Lużyński <digitalfreak@lingonborough.com>
15770
15771 [BZ #19485]
15772 * localedata/locales/csb_PL (mon): Fix typos:
15773 "łżëkwiôt" -> "łżëkwiat" (April); "lëpinc" -> "lëpińc" (July).
15774 (yesstr): Add, value is "jo".
15775 (nostr): Add, value is "nié".
15776
15777 2018-06-22 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
15778
15779 * sysdeps/m68k/m680x0/fpu/s_log1p.c: Set as the generic file for
15780 all log1p and significand functions on m680x0.
15781 * sysdeps/m68k/m680x0/fpu/s_log1pf.c: Include s_log1p.c instead
15782 of s_significand.c..
15783 * sysdeps/m68k/m680x0/fpu/s_log1pl.c: Likewise.
15784 * sysdeps/m68k/m680x0/fpu/s_significandf.c: Likewise.
15785 * sysdeps/m68k/m680x0/fpu/s_significandl.c: Likewise.
15786 * sysdeps/m68k/m680x0/fpu/s_significand.c: Move all the code to
15787 s_log1p.c and include it..
15788
15789 2018-06-21 Vincent Chen <vincentc@andestech.com>
15790
15791 * elf/elf.h (R_NDS32_NONE): New define.
15792 (R_NDS32_32_RELA): Likewise.
15793 (R_NDS32_COPY): Likewise.
15794 (R_NDS32_GLOB_DAT): Likewise.
15795 (R_NDS32_JUMP_SLOT): Likewise.
15796 (R_NDS32_RELATIVE): Likewise.
15797 (R_NDS32_TLS_TPOFF): Likewise.
15798 (R_NDS32_TLS_DESC): Likewise.
15799
15800 2018-06-21 Mark Wielaard <mark@klomp.org>
15801
15802 * elf/elf.h (R_BPF_MAP_FD): Removed.
15803 (R_BPF_64_64, R_BPF_64_32): New.
15804
15805 2018-06-21 Florian Weimer <fweimer@redhat.com>
15806
15807 [BZ #23253]
15808 * sysdeps/generic/math_private.h (default_libc_feholdsetround_ctx):
15809 Renamed from libc_feholdsetround_ctx.
15810 (default_libc_feresetround_ctx): Renamed from
15811 libc_feresetround_ctx.
15812 (default_libc_feholdsetround_noex_ctx): Renamed from
15813 libc_feholdsetround_noex_ctx.
15814 (default_libc_feresetround_noex_ctx): Renamed from
15815 libc_feresetround_noex_ctx.
15816 [!HAVE_RM_CTX] (libc_feholdsetround_ctx, libc_feresetround_ctx)
15817 (libc_feholdsetround_noex_ctx, libc_feresetround_noex_ctx): Macros
15818 forwardning to the old implementations under the new names.
15819 * sysdeps/i386/fpu/fenv_private.h [__SSE_MATH__]
15820 (libc_feholdexcept_setround_ctx, libc_fesetenv_ctx)
15821 (libc_feupdateenv_ctx, libc_feholdsetround_ctx)
15822 (libc_feresetround_ctx): Forward to default implements for i386
15823 and MATH_SET_BOTH_ROUNDING_MODES.
15824 * sysdeps/i386/Makefile [$(subdir) == math] (CFLAGS-e_gamma_r.c):
15825 Add -DMATH_SET_BOTH_ROUNDING_MODES.
15826
15827 2018-06-20 Joseph Myers <joseph@codesourcery.com>
15828
15829 * string/tst-cmp.c: Include <libc-diag.h>.
15830 (strncmp_max): Disable -Wstringop-overflow= around call to
15831 strncmp.
15832 (strncasecmp_max): Disable -Wstringop-overflow= around call to
15833 strncasecmp.
15834
15835 * string/bug-strpbrk1.c: Include <libc-diag.h>.
15836 (main): Disable -Wunused-value around call to strpbrk.
15837 * string/bug-strspn1.c: Include <libc-diag.h>.
15838 (main): Disable -Wunused-value around call to strspn.
15839
15840 2018-06-20 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
15841 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
15842
15843 * sysdeps/ieee754/ldbl-128ibm-compat/Versions: New file.
15844 * sysdeps/ieee754/ldbl-128ibm-compat/libm-alias-float128.h: New file.
15845
15846 2018-06-20 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
15847
15848 * math/Makefile (libm-calls): Move s_significandF to...
15849 (gen-libm-calls): ... here.
15850 * math/s_significand_template.c: New file.
15851 * math/s_significand.c: Removed.
15852 * math/s_significandf.c: Removed.
15853 * math/s_significandl.c: Removed.
15854 * sysdeps/ieee754/ldbl-opt/s_significand.c: Removed.
15855 * sysdeps/ieee754/ldbl-opt/s_significandl.c: Removed.
15856
15857 * math/e_exp2_template.c (declare_mgen_finite_alias,
15858 declare_mgen_finite_alias_s, declare_mgen_finite_alias_x): Move to...
15859 * sysdeps/generic/math-type-macros.h (declare_mgen_finite_alias,
15860 declare_mgen_finite_alias_s, declare_mgen_finite_alias_x): ... here.
15861
15862 2018-06-20 Florian Weimer <fweimer@redhat.com>
15863
15864 * libio/libioP.h (IO_validate_vtable): Avoid ptrdiff_t overflow.
15865
15866 2018-06-19 Joseph Myers <joseph@codesourcery.com>
15867
15868 [BZ #23280]
15869 * stdio-common/vfscanf.c (_IO_vfscanf_internal): Pass sign of
15870 floating-point number to strtod functions rather than possibly
15871 negating result of those functions.
15872 * stdio-common/tst-scanf-round.c: New file.
15873 * stdio-common/Makefile (tests): Add tst-scanf-round.
15874 ($(objpfx)tst-scanf-round): Depend on $(libm).
15875
15876 2018-06-18 Samuel Thibault <samuel.thibault@ens-lyon.org>
15877
15878 * sysdeps/mach/hurd/localplt.data: Move to...
15879 * sysdeps/mach/hurd/i386/localplt.data: new file. Add + REL
15880 R_386_GLOB_DAT like on Linux i386.
15881
15882 2018-06-18 Joseph Myers <joseph@codesourcery.com>
15883
15884 * sysdeps/unix/sysv/linux/alpha/bits/shm.h [__USE_MISC]
15885 (SHM_STAT_ANY): New macro.
15886 * sysdeps/unix/sysv/linux/arm/bits/shm.h [__USE_MISC]
15887 (SHM_STAT_ANY): Likewise.
15888 * sysdeps/unix/sysv/linux/bits/shm.h [__USE_MISC]
15889 (SHM_STAT_ANY): Likewise.
15890 * sysdeps/unix/sysv/linux/generic/bits/shm.h [__USE_MISC]
15891 (SHM_STAT_ANY): Likewise.
15892 * sysdeps/unix/sysv/linux/hppa/bits/shm.h [__USE_MISC]
15893 (SHM_STAT_ANY): Likewise.
15894 * sysdeps/unix/sysv/linux/ia64/bits/shm.h [__USE_MISC]
15895 (SHM_STAT_ANY): Likewise.
15896 * sysdeps/unix/sysv/linux/mips/bits/shm.h [__USE_MISC]
15897 (SHM_STAT_ANY): Likewise.
15898 * sysdeps/unix/sysv/linux/powerpc/bits/shm.h [__USE_MISC]
15899 (SHM_STAT_ANY): Likewise.
15900 * sysdeps/unix/sysv/linux/s390/bits/shm.h [__USE_MISC]
15901 (SHM_STAT_ANY): Likewise.
15902 * sysdeps/unix/sysv/linux/sh/bits/shm.h [__USE_MISC]
15903 (SHM_STAT_ANY): Likewise.
15904 * sysdeps/unix/sysv/linux/sparc/bits/shm.h [__USE_MISC]
15905 (SHM_STAT_ANY): Likewise.
15906 * sysdeps/unix/sysv/linux/x86/bits/shm.h [__USE_MISC]
15907 (SHM_STAT_ANY): Likewise.
15908
15909 * sysdeps/unix/sysv/linux/alpha/bits/sem.h [__USE_MISC]
15910 (SEM_STAT_ANY): New macro.
15911 * sysdeps/unix/sysv/linux/bits/sem.h [__USE_MISC]
15912 (SEM_STAT_ANY): Likewise.
15913 * sysdeps/unix/sysv/linux/generic/bits/sem.h [__USE_MISC]
15914 (SEM_STAT_ANY): Likewise.
15915 * sysdeps/unix/sysv/linux/hppa/bits/sem.h [__USE_MISC]
15916 (SEM_STAT_ANY): Likewise.
15917 * sysdeps/unix/sysv/linux/ia64/bits/sem.h [__USE_MISC]
15918 (SEM_STAT_ANY): Likewise.
15919 * sysdeps/unix/sysv/linux/mips/bits/sem.h [__USE_MISC]
15920 (SEM_STAT_ANY): Likewise.
15921 * sysdeps/unix/sysv/linux/powerpc/bits/sem.h [__USE_MISC]
15922 (SEM_STAT_ANY): Likewise.
15923 * sysdeps/unix/sysv/linux/s390/bits/sem.h [__USE_MISC]
15924 (SEM_STAT_ANY): Likewise.
15925 * sysdeps/unix/sysv/linux/sparc/bits/sem.h [__USE_MISC]
15926 (SEM_STAT_ANY): Likewise.
15927 * sysdeps/unix/sysv/linux/x86/bits/sem.h [__USE_MISC]
15928 (SEM_STAT_ANY): Likewise.
15929
15930 * sysdeps/unix/sysv/linux/alpha/bits/msq.h [__USE_MISC]
15931 (MSG_STAT_ANY): New macro.
15932 * sysdeps/unix/sysv/linux/bits/msq.h [__USE_MISC]
15933 (MSG_STAT_ANY): Likewise.
15934 * sysdeps/unix/sysv/linux/generic/bits/msq.h [__USE_MISC]
15935 (MSG_STAT_ANY): Likewise.
15936 * sysdeps/unix/sysv/linux/hppa/bits/msq.h [__USE_MISC]
15937 (MSG_STAT_ANY): Likewise.
15938 * sysdeps/unix/sysv/linux/ia64/bits/msq.h [__USE_MISC]
15939 (MSG_STAT_ANY): Likewise.
15940 * sysdeps/unix/sysv/linux/mips/bits/msq.h [__USE_MISC]
15941 (MSG_STAT_ANY): Likewise.
15942 * sysdeps/unix/sysv/linux/powerpc/bits/msq.h [__USE_MISC]
15943 (MSG_STAT_ANY): Likewise.
15944 * sysdeps/unix/sysv/linux/s390/bits/msq.h [__USE_MISC]
15945 (MSG_STAT_ANY): Likewise.
15946 * sysdeps/unix/sysv/linux/sparc/bits/msq.h [__USE_MISC]
15947 (MSG_STAT_ANY): Likewise.
15948 * sysdeps/unix/sysv/linux/x86/bits/msq.h [__USE_MISC]
15949 (MSG_STAT_ANY): Likewise.
15950
15951 * sysdeps/unix/sysv/linux/hppa/bits/mman.h [__USE_MISC]
15952 (MAP_TYPE): Change value to 0x2b.
15953
15954 2018-06-18 Florian Weimer <fweimer@redhat.com>
15955
15956 [BZ #15722]
15957 * sysdeps/unix/sysv/linux/check_pf.c (__check_pf): Create Netlink
15958 socket with SOCK_CLOEXEC.
15959
15960 2018-06-18 Joseph Myers <joseph@codesourcery.com>
15961
15962 [BZ #23303]
15963 * sysdeps/powerpc/powerpc64/le/Makefile
15964 (CFLAGS-tst-strtod-nan-sign.c): Add -mfloat128.
15965 (CFLAGS-tst-wcstod-nan-sign.c): Likewise.
15966 (gnulib-tests): Also add $(f128-loader-link) for
15967 tst-strtod-nan-sign abd tst-wcstod-nan-sign.
15968
15969 2018-06-15 Samuel Thibault <samuel.thibault@ens-lyon.org>
15970
15971 * include/sys/sendfile.h (__sendfile64): Declare hidden prototype.
15972 * sysdeps/mach/hurd/sendfile.c (sendfile): Call __sendfile64 instead
15973 of sendfile.
15974 * sysdeps/mach/hurd/sendfile64.c (sendfile64): Rename to __sendfile64.
15975 (sendfile64): New strong alias.
15976 * sysdeps/mach/hurd/lseek.c: Include <errno.h>.
15977 * sysdeps/mach/hurd/lseek.c (__libc_lseek): Check that the value
15978 returned by __lseek64 can fit off_t, return EOVERFLOW otherwise.
15979 * sysdeps/htl/pthreadP.h (___pthread_get_cleanup_stack): Add hidden
15980 attribute.
15981 * htl/pt-join.c (__pthread_get_cleanup_stack): Define to
15982 ___pthread_get_cleanup_stack.
15983 * sysdeps/mach/hurd/localplt.data (ld.so): Make ref to __open optional.
15984 * sysdeps/mach/include/mach-shortcuts-hidden.h: New file.
15985 * mach/shortcut.awk: Make syscall stubs include
15986 <mach-shortcuts-hidden.h> and add hidden definition.
15987 * sysdeps/mach/include/mach.h: Include <mach-shortcuts-hidden.h>.
15988 (__mach_msg): Add hidden prototype.
15989 * mach/msg.c: Include <mach.h>.
15990 (__mach_msg): Add hidden definition.
15991 * mach/Makefile ($(mach-syscalls:%=$(objpfx))): Add hidden definition.
15992 * sysdeps/mach/include/mach/mach_traps.h (__mach_reply_port,
15993 __mach_thread_self, __mach_task_self, __mach_host_self, __swtch,
15994 __swtch_pri, __thread_switch, __evc_wait): Add hidden prototypes.
15995 * sysdeps/mach/hurd/localplt.data (siglongjmp, longjmp,
15996 __libc_lseek64, _IO_funlockfile): Whitelist PLT references.
15997 * sysdeps/hurd/include/hurd/signal.h (_hurd_self_sigstate): Add hidden
15998 prototype and definition.
15999 * sysdeps/mach/hurd/i386/____longjmp_chk.S (____longjmp_chk): Use
16000 hidden target for _hurd_self_sigstate.
16001
16002 2018-06-15 Joseph Myers <joseph@codesourcery.com>
16003
16004 [BZ #23007]
16005 * stdlib/tst-strtod-nan-sign-main.c: New file.
16006 * stdlib/tst-strtod-nan-sign.c: Likewise.
16007 * wcsmbs/tst-wcstod-nan-sign.c: Likewise.
16008 * stdlib/Makefile (tests): Add tst-strtod-nan-sign.
16009 ($(objpfx)tst-strtod-nan-sign): Depend on $(libm).
16010 * wcsmbs/Makefile (tests) Add tst-wcstod-nan-sign.
16011 ($(objpfx)tst-wcstod-nan-sign): Depend on $(libm).
16012
16013 2018-06-15 Herman ten Brugge <hermantenbrugge@home.nl>
16014
16015 [BZ #23007]
16016 * stdlib/strtod_l.c (____STRTOF_INTERNAL): Return NaN of
16017 appropriate sign.
16018
16019 2018-06-14 Florian Weimer <fweimer@redhat.com>
16020
16021 [BZ #23290]
16022 * localedata/charmaps/IBM273: Map codepoint 0xbc to U+00AF, so
16023 that the result stays within the ISO-8859-1 range.
16024 * iconvdata/ibm273.c (HAS_HOLES): Define as 0 because all 256
16025 characters are defined in IBM273.
16026
16027 2018-06-14 Samuel Thibault <samuel.thibault@ens-lyon.org>
16028
16029 * sysdeps/mach/include/mach/mach_traps.h (__mach_thread_self,
16030 __mach_task_self): Remove attribute_hidden.
16031
16032 2018-06-14 Joseph Myers <joseph@codesourcery.com>
16033
16034 * string/tester.c (test_strncat) [__GNUC_PREREQ (7, 0)]: Also
16035 ignore -Wrestrict for one test.
16036
16037 2018-06-14 Steve Ellcey <sellcey@caviumnetworks.com>
16038 Szabolcs Nagy <szabolcs.nagy@arm.com>
16039
16040 * sysdeps/unix/sysv/linux/aarch64/gettimeofday.c: New file.
16041
16042 2018-06-14 Florian Weimer <fweimer@redhat.com>
16043
16044 * scripts/update-abilist.sh: Accept empty list of files to patch.
16045
16046 2018-06-13 Samuel Thibault <samuel.thibault@ens-lyon.org>
16047
16048 * sysdeps/mach/hurd/i386/Makefile (test-xfail-check-abi-libhurduser,
16049 test-xfail-check-abi-libmachuser): Add.
16050 * sysdeps/mach/hurd/localplt.data (ld.so): Add __open64, rename
16051 __libc_read and __libc_write to __read and __write.
16052 * sysdeps/hurd/include/hurd/port.h: New file.
16053 * mach/mach/mach_traps.h (__mach_reply_port, __mach_thread_self,
16054 __mach_task_self, __mach_host_self, __swtch, __swtch_pri,
16055 __thread_switch, __evc_wait): Move declarations to...
16056 * sysdeps/mach/include/mach/mach_traps.h: ... new file, and add
16057 attribute_hidden.
16058 * sysdeps/mach/hurd/i386/____longjmp_chk.S (____longjmp_chk): Do not
16059 use PLT to call _hurd_self_sigstate.
16060
16061 2018-06-13 Joseph Myers <joseph@codesourcery.com>
16062
16063 [BZ #23279]
16064 * stdlib/strtod_l.c (round_and_return): Handle an exponent of
16065 MAX_EXP as overflowing.
16066 * stdlib/gen-tst-strtod-round.c (string_to_fp): Clear MPFR
16067 overflow flag.
16068 (round_str): Output also whether result overflows in each rounding
16069 mode.
16070 * stdlib/tst-strtod-round-data: Add more tests.
16071 * stdlib/tst-strtod-round-data.h: Regenerated.
16072 * stdlib/tst-strtod-round-skeleton.c (_XNTRY): Update comment.
16073 (TEST): Handle extra arguments for overflow flags.
16074 (struct test_overflow): New type.
16075 [!FE_OVERFLOW] (FE_OVERFLOW): Define to 0.
16076 (GEN_ONE_TEST): Clear all exceptions. Test overflow flag.
16077 (test_in_one_mode): Take argument with overflow information.
16078 (do_test): Update calls to test_in_one_mode.
16079
16080 2018-06-12 Carlos O'Donell <carlos@redhat.com>
16081
16082 * elf/dl-load (_dl_dst_substitute): Correct comment.
16083 (_dl_dst_count): Likewise.
16084
16085 * nptl/pthread_mutex_timedlock.c (__pthread_mutex_timedlock): Call
16086 lll_futex_timed_wait.
16087
16088 2018-06-12 Joseph Myers <joseph@codesourcery.com>
16089
16090 [BZ #23277]
16091 * math/bits/mathcalls.h [__USE_ISOC99] (nan): Do not use __const__
16092 attribute.
16093 * math/test-nan-const.c: New file.
16094 * math/Makefile (tests): Add test-nan-const.
16095 (CFLAGS-test-nan-const.c): New variable.
16096
16097 2018-06-12 H.J. Lu <hongjiu.lu@intel.com>
16098
16099 * benchtests/scripts/compare_strings.py (process_results): Add
16100 funcs argument. Compare only functions which are selected.
16101 (main): Check if base function is among selected functions.
16102 Pass selected functions to process_results.
16103 (__main__): Add -f/--functions argument.
16104
16105 2018-06-12 Minfeng Kang <minfeng.kang@hxt-semitech.com>
16106 Hongbo Zhang <hongbo.zhang@linaro.org>
16107
16108 * sysdeps/aarch64/multiarch/memcpy.c (libc_ifunc): reuse
16109 __memcpy_falkor for phecda core.
16110 * sysdeps/aarch64/multiarch/memmove.c (libc_ifunc): reuse
16111 __memmove_falkor for phecda core.
16112 * sysdeps/aarch64/multiarch/memset.c (libc_ifunc): reuse
16113 __memset_falkor for phecda core.
16114 * sysdeps/unix/sysv/linux/aarch64/cpu-features.c: add MIDR entry
16115 for phecda core.
16116 * sysdeps/unix/sysv/linux/aarch64/cpu-features.h (IS_PHECDA): add
16117 macro to identify phecda core.
16118
16119 2018-06-12 Carlos O'Donell <carlos@redhat.com>
16120 Andreas Schwab <schwab@suse.de>
16121 Dmitry V. Levin <ldv@altlinux.org>
16122 Florian Weimer <fweimer@redhat.com>
16123
16124 [BZ #23102]
16125 [BZ #21942]
16126 [BZ #18018]
16127 [BZ #23259]
16128 CVE-2011-0536
16129 * elf/dl-dst.h: Remove DL_DST_COUNT.
16130 * elf/dl-deps.c (expand_dst): Call _dl_dst_count.
16131 * elf/dl-load.c (is_trusted_path_normalize): Don't handle colons.
16132 (is_dst): Comment. Support ELF gABI.
16133 (_dl_dst_count): Comment. Simplify and count DSTs.
16134 (_dl_dst_substitute): Comment. Support __libc_enable_secure handling.
16135 (expand_dybamic_string_token): Comment. Call _dl_dst_count. Rename
16136 locals.
16137
16138 2018-06-12 Zack Weinberg <zackw@panix.com>
16139
16140 * elf/dl-load.c, elf/dl-misc.c, elf/dl-profile.c, elf/rtld.c
16141 * sysdeps/unix/sysv/linux/dl-sysdep.c
16142 Include not-cancel.h. Use __close_nocancel instead of __close,
16143 __open64_nocancel instead of __open, __read_nocancel instead of
16144 __libc_read, and __write_nocancel instead of __libc_write.
16145
16146 * csu/check_fds.c (check_one_fd)
16147 * sysdeps/posix/fdopendir.c (__fdopendir)
16148 * sysdeps/posix/opendir.c (__alloc_dir): Use __fcntl_nocancel
16149 instead of __fcntl and/or __libc_fcntl.
16150
16151 * sysdeps/unix/sysv/linux/pthread_setname.c (pthread_setname_np)
16152 * sysdeps/unix/sysv/linux/pthread_getname.c (pthread_getname_np)
16153 * sysdeps/unix/sysv/linux/i386/smp.h (is_smp_system):
16154 Use __open64_nocancel instead of __open_nocancel.
16155
16156 * sysdeps/unix/sysv/linux/not-cancel.h: Move all of the
16157 hidden_proto declarations to the end and issue them if either
16158 IS_IN(libc) or IS_IN(rtld).
16159 * sysdeps/unix/sysv/linux/Makefile [subdir=io] (sysdep_routines):
16160 Add close_nocancel, fcntl_nocancel, nanosleep_nocancel,
16161 open_nocancel, open64_nocancel, openat_nocancel, pause_nocancel,
16162 read_nocancel, waitpid_nocancel, write_nocancel.
16163
16164 * io/Versions [GLIBC_PRIVATE]: Add __libc_fcntl,
16165 __fcntl_nocancel, __open64_nocancel, __write_nocancel.
16166 * posix/Versions: Add __nanosleep_nocancel, __pause_nocancel.
16167
16168 * nptl/pt-fcntl.c: New file.
16169 * nptl/Makefile (pthread-compat-wrappers): Remove fcntl.
16170 (libpthread-routines): Add pt-fcntl.
16171 * include/fcntl.h (__fcntl_nocancel_adjusted): New function.
16172 (__libc_fcntl): Remove attribute_hidden.
16173 * sysdeps/unix/sysv/linux/fcntl.c (__libc_fcntl): Call
16174 __fcntl_nocancel_adjusted, not fcntl_common.
16175 (__fcntl_nocancel): Move to new file fcntl_nocancel.c.
16176 (fcntl_common): Rename to __fcntl_nocancel_adjusted; also move
16177 to fcntl_nocancel.c.
16178 * sysdeps/unix/sysv/linux/fcntl_nocancel.c: New file.
16179 * sysdeps/unix/sysv/linux/powerpc/powerpc64/fcntl.c: Remove file.
16180 * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h:
16181 Define FCNTL_ADJUST_CMD here, as a self-contained macro.
16182
16183 * sysdeps/unix/sysv/linux/close.c: Move __close_nocancel to...
16184 * sysdeps/unix/sysv/linux/close_nocancel.c: ...this new file.
16185 * sysdeps/unix/sysv/linux/nanosleep.c: Move __nanosleep_nocancel to...
16186 * sysdeps/unix/sysv/linux/nanosleep_nocancel.c: ...this new file.
16187 * sysdeps/unix/sysv/linux/open.c: Move __open_nocancel to...
16188 * sysdeps/unix/sysv/linux/open_nocancel.c: ...this new file.
16189 * sysdeps/unix/sysv/linux/open64.c: Move __open64_nocancel to...
16190 * sysdeps/unix/sysv/linux/open64_nocancel.c: ...this new file.
16191 * sysdeps/unix/sysv/linux/openat.c: Move __openat_nocancel to...
16192 * sysdeps/unix/sysv/linux/openat_nocancel.c: ...this new file.
16193 * sysdeps/unix/sysv/linux/openat64.c: Move __openat64_nocancel to...
16194 * sysdeps/unix/sysv/linux/openat64_nocancel.c: ...this new file.
16195 * sysdeps/unix/sysv/linux/pause.c: Move __pause_nocancel to...
16196 * sysdeps/unix/sysv/linux/pause_nocancel.c: ...this new file.
16197 * sysdeps/unix/sysv/linux/read.c: Move __read_nocancel to...
16198 * sysdeps/unix/sysv/linux/read_nocancel.c: ...this new file.
16199 * sysdeps/unix/sysv/linux/waitpid.c: Move __waitpid_nocancel to...
16200 * sysdeps/unix/sysv/linux/waitpid_nocancel.c: ...this new file.
16201 * sysdeps/unix/sysv/linux/write.c: Move __write_nocancel to...
16202 * sysdeps/unix/sysv/linux/write_nocancel.c: ...this new file.
16203
16204 * sysdeps/unix/sysv/linux/nios2/Makefile: Don't override
16205 libpthread-routines.
16206 * sysdeps/unix/sysv/linux/nios2/pt-vfork.S: New file which
16207 defines nothing.
16208
16209 * sysdeps/mach/hurd/dl-sysdep.c: Define __read instead of
16210 __libc_read, and __write instead of __libc_write. Define
16211 __open64 in addition to __open.
16212
16213 2018-06-12 H.J. Lu <hongjiu.lu@intel.com>
16214
16215 [BZ #23250]
16216 [BZ #10686]
16217 * sysdeps/i386/nptl/tls.h (tcbhead_t): Change __private_tm[4]
16218 to _private_tm[3] and add __glibc_reserved2.
16219 Add _Static_assert of offset of __private_ss == 0x30.
16220 * sysdeps/x86_64/nptl/tls.h: Add _Static_assert of offset of
16221 __private_ss == 0x40 for ILP32 and == 0x70 for LP64.
16222
16223 2018-06-12 Florian Weimer <fweimer@redhat.com>
16224
16225 x86: Make strncmp usable from rtld.
16226 * sysdeps/i386/i686/multiarch/strncmp-c.c: Only rename strncmp to
16227 __strncmp_ia32 if in libc (and not in rtld).
16228 * sysdeps/x86_64/multiarch/strncmp-sse2.S: Rename strcmp to
16229 strncmp if not in libc (and not to __strncmp_sse2).
16230
16231 2018-06-12 Rafał Lużyński <digitalfreak@lingonborough.com>
16232
16233 [BZ #23140]
16234 * localedata/locales/gd_GB (mon): Rename to...
16235 (alt_mon): This.
16236 (mon): Import from CLDR (genitive case).
16237 * localedata/locales/hsb_DE (mon): Rename to...
16238 (alt_mon): This.
16239 (mon): Import from CLDR (genitive case).
16240 * localedata/locales/wa_BE (mon): Rename to...
16241 (alt_mon): This.
16242 (mon): Add, fill with the proper genitive forms, but CLDR data
16243 is incomplete; completed according to the comments in this file.
16244 (d_t_fmt): Do not use "di" before the month name, no longer needed.
16245
16246 * localedata/locales/wa_BE (country_name): Reword
16247 "Beljike" -> "Beldjike".
16248
16249 2018-06-11 Joseph Myers <joseph@codesourcery.com>
16250
16251 [BZ #23272]
16252 * sysdeps/ieee754/ldbl-96/s_fma.c (__fma): Start by handling all
16253 cases of non-finite arguments.
16254 * math/libm-test-fma.inc (fma_test_data): Add more tests.
16255
16256 2018-06-10 John David Anglin <danglin@gcc.gnu.org>
16257
16258 [BZ #23174]
16259 * sysdeps/unix/sysv/linux/hppa/Makefile: xfail check-execstack.
16260
16261 2018-06-08 Adhemerval Zanella <adhemerval.zanella@linaro.org>
16262
16263 [BZ #23264]
16264 * include/unistd.h (__execvpex): New prototype.
16265 * posix/Makefile (tests): Add tst-spawn4.
16266 (tests-internal): Add tst-spawn4-compat.
16267 * posix/execvpe.c (__execvpe_common, __execvpex): New functions.
16268 * posix/tst-spawn4-compat.c: New file.
16269 * posix/tst-spawn4.c: Likewise.
16270 * sysdeps/unix/sysv/linux/spawni.c (__spawni): Do not interpret invalid
16271 binaries as shell scripts.
16272 * sysdeps/posix/spawni.c (__spawni): Likewise.
16273
16274 2018-06-08 H.J. Lu <hongjiu.lu@intel.com>
16275
16276 [BZ #23145]
16277 * elf/Makefile (tests-special): Add $(objpfx)check-initfini.out.
16278 ($(all-built-dso:=.dynsym): New target.
16279 (common-generated): Add $(all-built-dso:$(common-objpfx)%=%.dynsym).
16280 ($(objpfx)check-initfini.out): New target.
16281 (generated): Add check-initfini.out.
16282 * scripts/check-initfini.awk: New file.
16283 * sysdeps/aarch64/crti.S (_init): Mark as hidden.
16284 (_fini): Likewise.
16285 * sysdeps/alpha/crti.S (_init): Mark as hidden.
16286 (_fini): Likewise.
16287 * sysdeps/arm/crti.S (_init): Mark as hidden.
16288 (_fini): Likewise.
16289 * sysdeps/hppa/crti.S (_init): Mark as hidden.
16290 (_fini): Likewise.
16291 * sysdeps/i386/crti.S (_init): Mark as hidden.
16292 (_fini): Likewise.
16293 * sysdeps/ia64/crti.S (_init): Mark as hidden.
16294 (_fini): Likewise.
16295 * sysdeps/m68k/crti.S (_init): Mark as hidden.
16296 (_fini): Likewise.
16297 * sysdeps/microblaze/crti.S (_init): Mark as hidden.
16298 (_fini): Likewise.
16299 * sysdeps/mips/mips32/crti.S (_init): Mark as hidden.
16300 (_fini): Likewise.
16301 * sysdeps/mips/mips64/n32/crti.S (_init): Mark as hidden.
16302 (_fini): Likewise.
16303 * sysdeps/mips/mips64/n64/crti.S (_init): Mark as hidden.
16304 (_fini): Likewise.
16305 * sysdeps/nios2/crti.S (_init): Mark as hidden.
16306 (_fini): Likewise.
16307 * sysdeps/powerpc/powerpc32/crti.S (_init): Mark as hidden.
16308 (_fini): Likewise.
16309 * sysdeps/powerpc/powerpc64/crti.S (_init): Mark as hidden.
16310 (_fini): Likewise.
16311 * sysdeps/s390/s390-32/crti.S (_init): Mark as hidden.
16312 (_fini): Likewise.
16313 * sysdeps/s390/s390-64/crti.S (_init): Mark as hidden.
16314 (_fini): Likewise.
16315 * sysdeps/sh/crti.S (_init): Mark as hidden.
16316 (_fini): Likewise.
16317 * sysdeps/sparc/crti.S (_init): Mark as hidden.
16318 (_fini): Likewise.
16319 * sysdeps/x86_64/crti.S (_init): Mark as hidden.
16320 (_fini): Likewise.
16321
16322 2018-06-06 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
16323
16324 * sysdeps/powerpc/powerpc64/le/fpu/e_sqrtf128.c
16325 [__HAVE_FLOAT128_UNLIKE_LDBL] (TFtype, TF): Restrict TFtype
16326 and TF redirection to KFtype and KF only when the default
16327 long double type is not the IEEE 128-bit floating point type.
16328
16329 2018-06-05 Joseph Myers <joseph@codesourcery.com>
16330
16331 * sysdeps/unix/sysv/linux/aarch64/bits/hwcap.h (HWCAP_DIT): New
16332 macro.
16333 (HWCAP_USCAT): Likewise.
16334 (HWCAP_ILRCPC): Likewise.
16335 (HWCAP_FLAGM): Likewise.
16336 * sysdeps/unix/sysv/linux/aarch64/dl-procinfo.c (_DL_HWCAP_COUNT):
16337 Increase to 28.
16338 (_dl_aarch64_cap_flags): Add new flag names.
16339
16340 * sysdeps/unix/sysv/linux/aarch64/bits/mman.h [__USE_MISC]
16341 (MAP_FIXED_NOREPLACE): New macro.
16342 * sysdeps/unix/sysv/linux/alpha/bits/mman.h [__USE_MISC]
16343 (MAP_FIXED_NOREPLACE): Likewise.
16344 * sysdeps/unix/sysv/linux/arm/bits/mman.h [__USE_MISC]
16345 (MAP_FIXED_NOREPLACE): Likewise.
16346 * sysdeps/unix/sysv/linux/hppa/bits/mman.h [__USE_MISC]
16347 (MAP_FIXED_NOREPLACE): Likewise.
16348 * sysdeps/unix/sysv/linux/ia64/bits/mman.h [__USE_MISC]
16349 (MAP_FIXED_NOREPLACE): Likewise.
16350 * sysdeps/unix/sysv/linux/m68k/bits/mman.h [__USE_MISC]
16351 (MAP_FIXED_NOREPLACE): Likewise.
16352 * sysdeps/unix/sysv/linux/microblaze/bits/mman.h [__USE_MISC]
16353 (MAP_FIXED_NOREPLACE): Likewise.
16354 * sysdeps/unix/sysv/linux/mips/bits/mman.h [__USE_MISC]
16355 (MAP_FIXED_NOREPLACE): Likewise.
16356 * sysdeps/unix/sysv/linux/nios2/bits/mman.h [__USE_MISC]
16357 (MAP_FIXED_NOREPLACE): Likewise.
16358 * sysdeps/unix/sysv/linux/powerpc/bits/mman.h [__USE_MISC]
16359 (MAP_FIXED_NOREPLACE): Likewise.
16360 * sysdeps/unix/sysv/linux/riscv/bits/mman.h [__USE_MISC]
16361 (MAP_FIXED_NOREPLACE): Likewise.
16362 * sysdeps/unix/sysv/linux/s390/bits/mman.h [__USE_MISC]
16363 (MAP_FIXED_NOREPLACE): Likewise.
16364 * sysdeps/unix/sysv/linux/sh/bits/mman.h [__USE_MISC]
16365 (MAP_FIXED_NOREPLACE): Likewise.
16366 * sysdeps/unix/sysv/linux/sparc/bits/mman.h [__USE_MISC]
16367 (MAP_FIXED_NOREPLACE): Likewise.
16368 * sysdeps/unix/sysv/linux/x86/bits/mman.h [__USE_MISC]
16369 (MAP_FIXED_NOREPLACE): Likewise.
16370
16371 * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
16372 version to 4.17.
16373
16374 2018-06-04 Joseph Myers <joseph@codesourcery.com>
16375
16376 * scripts/build-many-glibcs.py (Context.checkout): Default Linux
16377 version to 4.17
16378
16379 2018-06-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
16380
16381 * bits/shm.h (struct shmid_ds): Make shm_segsz field size_t instead of
16382 int.
16383 * sysdeps/gnu/bits/shm.h (struct shmid_ds): Likewise.
16384
16385 2018-06-01 Leonardo Sandoval <leonardo.sandoval.gonzalez@intel.com>
16386
16387 * benchtests/scripts/compare_string.py: (process_results) Catch
16388 exception in non-existent base_func and catch exception in
16389 non-existent attribute.
16390 (parse_file) Catch exception if input file does not exist.
16391
16392 2018-06-01 Leonardo Sandoval <leonardo.sandoval.gonzalez@intel.com>
16393
16394 * benchtests/scripts/compare_string.py: Add --no-diff and --no-header
16395 options to avoid diff calculation and omit header, respectively.
16396 (main): process --no-diff and --no-header
16397
16398 2018-06-01 Leonardo Sandoval <leonardo.sandoval.gonzalez@intel.com>
16399 H.J. Lu <hongjiu.lu@intel.com>
16400
16401 * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
16402 strcmp-avx2, strncmp-avx2, wcscmp-avx2, wcscmp-sse2, wcsncmp-avx2 and
16403 wcsncmp-sse2.
16404 * sysdeps/x86_64/multiarch/ifunc-impl-list.c
16405 (__libc_ifunc_impl_list): Add tests for __strcmp_avx2,
16406 __strncmp_avx2, __wcscmp_avx2, __wcsncmp_avx2, __wcscmp_sse2
16407 and __wcsncmp_sse2.
16408 * sysdeps/x86_64/multiarch/strcmp.c (OPTIMIZE (avx2)):
16409 (IFUNC_SELECTOR): Return OPTIMIZE (avx2) on AVX 2 machines if
16410 AVX unaligned load is fast and vzeroupper is preferred.
16411 * sysdeps/x86_64/multiarch/strncmp.c: Likewise.
16412 * sysdeps/x86_64/multiarch/strcmp-avx2.S: New file.
16413 * sysdeps/x86_64/multiarch/strncmp-avx2.S: Likewise.
16414 * sysdeps/x86_64/multiarch/wcscmp-avx2.S: Likewise.
16415 * sysdeps/x86_64/multiarch/wcscmp-sse2.S: Likewise.
16416 * sysdeps/x86_64/multiarch/wcscmp.c: Likewise.
16417 * sysdeps/x86_64/multiarch/wcsncmp-avx2.S: Likewise.
16418 * sysdeps/x86_64/multiarch/wcsncmp-sse2.c: Likewise.
16419 * sysdeps/x86_64/multiarch/wcsncmp.c: Likewise.
16420 * sysdeps/x86_64/wcscmp.S (__wcscmp): Add alias only if __wcscmp
16421 is undefined.
16422
16423 2018-06-01 Florian Weimer <fweimer@redhat.com>
16424
16425 * sysdeps/i386/fpu/libm-test-ulps: Update with results from
16426 configuring with --disable-multi-arch, building with
16427 “-march=x86-64 -mtune=generic -mfpmath=sse” and running on a
16428 Haswell-era CPU.
16429
16430 2018-06-01 Florian Weimer <fweimer@redhat.com>
16431
16432 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Update with
16433 results from building with “-march=x86-64 -mtune=generic
16434 -mfpmath=sse” and running on a Haswell-era CPU.
16435
16436 2018-06-01 Joseph Myers <joseph@codesourcery.com>
16437
16438 [BZ #18473]
16439 * soft-fp/sqrttf2.c: Remove file.
16440 * soft-fp/sqrtdf2.c: Move to ....
16441 * sysdeps/powerpc/nofpu/sqrtdf2.c: ... here. Include
16442 <shlib-compat.h>.
16443 (__sqrtdf2): Make conditional on
16444 [SHLIB_COMPAT (libc, GLIBC_2_3_2, GLIBC_2_28)]. Define as compat
16445 symbol.
16446 * soft-fp/sqrtsf2.c: Move to ....
16447 * sysdeps/powerpc/nofpu/sqrtsf2.c: ... here. Include
16448 <shlib-compat.h>.
16449 (__sqrtsf2): Make conditional on
16450 [SHLIB_COMPAT (libc, GLIBC_2_3_2, GLIBC_2_28)]. Define as compat
16451 symbol.
16452 * soft-fp/Makefile (gcc-single-routines): Remove sqrtsf2.
16453 (gcc-double-routines): Remove sqrtdf2.
16454 (gcc-quad-routines): Remove sqrttf2.
16455 * sysdeps/nios2/Makefile [$(subdir) = soft-fp] (sysdep_routines):
16456 Do not filter out sqrtsf2 and sqrtdf2.
16457 * sysdeps/powerpc/nofpu/Makefile [$(subdir) = soft-fp]
16458 (sysdep_routines): Add sqrtsf2 and sqrtdf2.
16459
16460 2018-06-01 Florian Weimer <fweimer@redhat.com>
16461
16462 * sysdeps/generic/libcidn.abilist: Remove file.
16463
16464 2018-06-01 Florian Weimer <fweimer@redhat.com>
16465
16466 [BZ #23236]
16467 * libio/strfile.h (struct _IO_str_fields): Rename members to
16468 discourage their use and add comment.
16469 (_IO_STR_DYNAMIC): Remove unused macro.
16470 * libio/strops.c (_IO_str_init_static_internal): Do not use
16471 callback pointers. Call malloc and free.
16472 (_IO_str_overflow): Do not use callback pointers. Call malloc
16473 and free.
16474 (enlarge_userbuf): Likewise.
16475 (_IO_str_finish): Call free.
16476 * libio/wstrops.c (_IO_wstr_init_static): Initialize
16477 _allocate_buffer_unused.
16478 (_IO_wstr_overflow): Do not use callback pointers. Call malloc
16479 and free.
16480 (enlarge_userbuf): Likewise.
16481 (_IO_wstr_finish): Call free.
16482 * debug/vasprintf_chk.c (__vasprintf_chk): Initialize
16483 _allocate_buffer_unused, _free_buffer_unused.
16484 * libio/memstream.c (__open_memstream): Likewise.
16485 * libio/vasprintf.c (_IO_vasprintf): Likewise.
16486 * libio/wmemstream.c (open_wmemstream): Likewise.
16487
16488 2018-05-30 Paul Pluzhnikov <ppluzhnikov@google.com>
16489
16490 * sysdeps/x86_64/fpu/libm-test-ulps (log_vlen8_avx2): Update for
16491 AMD Ryzen 7 1800X.
16492
16493 2018-05-30 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
16494
16495 * sysdeps/powerpc/powerpc64/le/fpu/multiarch/Makefile: New file to
16496 add w_sqrtf128-power9 and w_sqrtf128-ppc64le to libm-sysdep_routines.
16497 * sysdeps/powerpc/powerpc64/le/fpu/multiarch/w_sqrtf128-power9.c:
16498 New file.
16499 * sysdeps/powerpc/powerpc64/le/fpu/multiarch/w_sqrtf128-ppc64le.c:
16500 Likewise.
16501 * sysdeps/powerpc/powerpc64/le/fpu/multiarch/w_sqrtf128.c: Likewise.
16502
16503 2018-05-29 Florian Weimer <fweimer@redhat.com>
16504
16505 * support/Makefile (libsupport-routines): Add
16506 xpthread_barrierattr_destroy, xpthread_barrierattr_init,
16507 xpthread_barrierattr_setpshared.
16508 * support/xpthread_barrierattr_destroy.c: New file.
16509 * support/xpthread_barrierattr_init.c: Likewise.
16510 * support/xpthread_barrierattr_setpshared.c: Likewise.
16511
16512 2018-05-29 H.J. Lu <hongjiu.lu@intel.com>
16513
16514 [BZ #23206]
16515 * elf/dl-reloc-static-pie.c (_dl_relocate_static_pie): Initialize
16516 _r_debug and update DT_DEBUG for debugger.
16517
16518 2018-05-29 Florian Weimer <fweimer@redhat.com>
16519
16520 * stdlib/Makefile (tst-strtod1i.out): Depend on generated locales.
16521 (tst-strtod5i.out): Likewise.
16522
16523 2018-05-25 Joseph Myers <joseph@codesourcery.com>
16524
16525 * sysdeps/sparc/sparc64/Implies: Remove sparc/sparc64/soft-fp.
16526 * sysdeps/sparc/sparc64/Makefile [$(subdir) = soft-fp]
16527 (sparc64-quad-routines): New variable. Moved from ....
16528 [$(subdir) = soft-fp] (sysdep_routines): Add
16529 $(sparc64-quad-routines). Moved from ....
16530 [$(subdir) = math] (CPPFLAGS): Add -I../soft-fp/. Moved from ....
16531 * sysdeps/sparc/sparc64/soft-fp/Makefile: ... here. Remove file.
16532 * sysdeps/sparc/sparc64/Versions (libc): Add GLIBC_2.2 symbols
16533 moved from ....
16534 * sysdeps/sparc/sparc64/soft-fp/Versions: ... here. Remove file.
16535 * sysdeps/sparc/sparc64/soft-fp/e_ilogbl.c: Remove file.
16536 * sysdeps/sparc/sparc64/soft-fp/qp_add.c: Move to ....
16537 * sysdeps/sparc/sparc64/qp_add.c: ... here.
16538 * sysdeps/sparc/sparc64/soft-fp/qp_cmp.c: Move to ....
16539 * sysdeps/sparc/sparc64/qp_cmp.c: ... here.
16540 * sysdeps/sparc/sparc64/soft-fp/qp_cmpe.c: Move to ....
16541 * sysdeps/sparc/sparc64/qp_cmpe.c: ... here.
16542 * sysdeps/sparc/sparc64/soft-fp/qp_div.c: Move to ....
16543 * sysdeps/sparc/sparc64/qp_div.c: ... here.
16544 * sysdeps/sparc/sparc64/soft-fp/qp_dtoq.c: Move to ....
16545 * sysdeps/sparc/sparc64/qp_dtoq.c: ... here.
16546 * sysdeps/sparc/sparc64/soft-fp/qp_feq.c: Move to ....
16547 * sysdeps/sparc/sparc64/qp_feq.c: ... here.
16548 * sysdeps/sparc/sparc64/soft-fp/qp_fge.c: Move to ....
16549 * sysdeps/sparc/sparc64/qp_fge.c: ... here.
16550 * sysdeps/sparc/sparc64/soft-fp/qp_fgt.c: Move to ....
16551 * sysdeps/sparc/sparc64/qp_fgt.c: ... here.
16552 * sysdeps/sparc/sparc64/soft-fp/qp_fle.c: Move to ....
16553 * sysdeps/sparc/sparc64/qp_fle.c: ... here.
16554 * sysdeps/sparc/sparc64/soft-fp/qp_flt.c: Move to ....
16555 * sysdeps/sparc/sparc64/qp_flt.c: ... here.
16556 * sysdeps/sparc/sparc64/soft-fp/qp_fne.c: Move to ....
16557 * sysdeps/sparc/sparc64/qp_fne.c: ... here.
16558 * sysdeps/sparc/sparc64/soft-fp/qp_itoq.c: Move to ....
16559 * sysdeps/sparc/sparc64/qp_itoq.c: ... here.
16560 * sysdeps/sparc/sparc64/soft-fp/qp_mul.c: Move to ....
16561 * sysdeps/sparc/sparc64/qp_mul.c: ... here.
16562 * sysdeps/sparc/sparc64/soft-fp/qp_neg.S: Move to ....
16563 * sysdeps/sparc/sparc64/qp_neg.S: ... here.
16564 * sysdeps/sparc/sparc64/soft-fp/qp_qtod.c: Move to ....
16565 * sysdeps/sparc/sparc64/qp_qtod.c: ... here.
16566 * sysdeps/sparc/sparc64/soft-fp/qp_qtoi.c: Move to ....
16567 * sysdeps/sparc/sparc64/qp_qtoi.c: ... here.
16568 * sysdeps/sparc/sparc64/soft-fp/qp_qtos.c: Move to ....
16569 * sysdeps/sparc/sparc64/qp_qtos.c: ... here.
16570 * sysdeps/sparc/sparc64/soft-fp/qp_qtoui.c: Move to ....
16571 * sysdeps/sparc/sparc64/qp_qtoui.c: ... here.
16572 * sysdeps/sparc/sparc64/soft-fp/qp_qtoux.c: Move to ....
16573 * sysdeps/sparc/sparc64/qp_qtoux.c: ... here.
16574 * sysdeps/sparc/sparc64/soft-fp/qp_qtox.c: Move to ....
16575 * sysdeps/sparc/sparc64/qp_qtox.c: ... here.
16576 * sysdeps/sparc/sparc64/soft-fp/qp_sqrt.c: Move to ....
16577 * sysdeps/sparc/sparc64/qp_sqrt.c: ... here.
16578 * sysdeps/sparc/sparc64/soft-fp/qp_stoq.c: Move to ....
16579 * sysdeps/sparc/sparc64/qp_stoq.c: ... here.
16580 * sysdeps/sparc/sparc64/soft-fp/qp_sub.c: Move to ....
16581 * sysdeps/sparc/sparc64/qp_sub.c: ... here.
16582 * sysdeps/sparc/sparc64/soft-fp/qp_uitoq.c: Move to ....
16583 * sysdeps/sparc/sparc64/qp_uitoq.c: ... here.
16584 * sysdeps/sparc/sparc64/soft-fp/qp_util.c: Move to ....
16585 * sysdeps/sparc/sparc64/qp_util.c: ... here.
16586 * sysdeps/sparc/sparc64/soft-fp/qp_uxtoq.c: Move to ....
16587 * sysdeps/sparc/sparc64/qp_uxtoq.c: ... here.
16588 * sysdeps/sparc/sparc64/soft-fp/qp_xtoq.c: Move to ....
16589 * sysdeps/sparc/sparc64/qp_xtoq.c: ... here.
16590 * sysdeps/sparc/sparc64/soft-fp/sfp-machine.h: Move to ....
16591 * sysdeps/sparc/sparc64/sfp-machine.h: ... here.
16592
16593 * sysdeps/sparc/sparc32/Implies: Remove sparc/sparc32/soft-fp.
16594 * sysdeps/sparc/sparc32/Makefile [$(subdir) = soft-fp]
16595 (sparc32-quad-routines): New variable. Moved from ....
16596 [$(subdir) = soft-fp] (sysdep_routines): Add
16597 $(sparc32-quad-routines). Moved from ....
16598 * sysdeps/sparc/sparc32/soft-fp/Makefile: ... here. Remove file.
16599 * sysdeps/sparc/sparc32/Versions (libc): Add GLIBC_2.4 symbols
16600 moved from ....
16601 * sysdeps/sparc/sparc32/soft-fp/Versions: ... here. Remove file.
16602 * sysdeps/sparc/sparc32/soft-fp/q_add.c: Move to ....
16603 * sysdeps/sparc/sparc32/q_add.c: ... here.
16604 * sysdeps/sparc/sparc32/soft-fp/q_cmp.c: Move to ....
16605 * sysdeps/sparc/sparc32/q_cmp.c: ... here.
16606 * sysdeps/sparc/sparc32/soft-fp/q_cmpe.c: Move to ....
16607 * sysdeps/sparc/sparc32/q_cmpe.c: ... here.
16608 * sysdeps/sparc/sparc32/soft-fp/q_div.c: Move to ....
16609 * sysdeps/sparc/sparc32/q_div.c: ... here.
16610 * sysdeps/sparc/sparc32/soft-fp/q_dtoq.c: Move to ....
16611 * sysdeps/sparc/sparc32/q_dtoq.c: ... here.
16612 * sysdeps/sparc/sparc32/soft-fp/q_feq.c: Move to ....
16613 * sysdeps/sparc/sparc32/q_feq.c: ... here.
16614 * sysdeps/sparc/sparc32/soft-fp/q_fge.c: Move to ....
16615 * sysdeps/sparc/sparc32/q_fge.c: ... here.
16616 * sysdeps/sparc/sparc32/soft-fp/q_fgt.c: Move to ....
16617 * sysdeps/sparc/sparc32/q_fgt.c: ... here.
16618 * sysdeps/sparc/sparc32/soft-fp/q_fle.c: Move to ....
16619 * sysdeps/sparc/sparc32/q_fle.c: ... here.
16620 * sysdeps/sparc/sparc32/soft-fp/q_flt.c: Move to ....
16621 * sysdeps/sparc/sparc32/q_flt.c: ... here.
16622 * sysdeps/sparc/sparc32/soft-fp/q_fne.c: Move to ....
16623 * sysdeps/sparc/sparc32/q_fne.c: ... here.
16624 * sysdeps/sparc/sparc32/soft-fp/q_itoq.c: Move to ....
16625 * sysdeps/sparc/sparc32/q_itoq.c: ... here.
16626 * sysdeps/sparc/sparc32/soft-fp/q_lltoq.c: Move to ....
16627 * sysdeps/sparc/sparc32/q_lltoq.c: ... here.
16628 * sysdeps/sparc/sparc32/soft-fp/q_mul.c: Move to ....
16629 * sysdeps/sparc/sparc32/q_mul.c: ... here.
16630 * sysdeps/sparc/sparc32/soft-fp/q_neg.c: Move to ....
16631 * sysdeps/sparc/sparc32/q_neg.c: ... here.
16632 * sysdeps/sparc/sparc32/soft-fp/q_qtod.c: Move to ....
16633 * sysdeps/sparc/sparc32/q_qtod.c: ... here.
16634 * sysdeps/sparc/sparc32/soft-fp/q_qtoi.c: Move to ....
16635 * sysdeps/sparc/sparc32/q_qtoi.c: ... here.
16636 * sysdeps/sparc/sparc32/soft-fp/q_qtoll.c: Move to ....
16637 * sysdeps/sparc/sparc32/q_qtoll.c: ... here.
16638 * sysdeps/sparc/sparc32/soft-fp/q_qtos.c: Move to ....
16639 * sysdeps/sparc/sparc32/q_qtos.c: ... here.
16640 * sysdeps/sparc/sparc32/soft-fp/q_qtou.c: Move to ....
16641 * sysdeps/sparc/sparc32/q_qtou.c: ... here.
16642 * sysdeps/sparc/sparc32/soft-fp/q_qtoull.c: Move to ....
16643 * sysdeps/sparc/sparc32/q_qtoull.c: ... here.
16644 * sysdeps/sparc/sparc32/soft-fp/q_sqrt.c: Move to ....
16645 * sysdeps/sparc/sparc32/q_sqrt.c: ... here.
16646 * sysdeps/sparc/sparc32/soft-fp/q_stoq.c: Move to ....
16647 * sysdeps/sparc/sparc32/q_stoq.c: ... here.
16648 * sysdeps/sparc/sparc32/soft-fp/q_sub.c: Move to ....
16649 * sysdeps/sparc/sparc32/q_sub.c: ... here.
16650 * sysdeps/sparc/sparc32/soft-fp/q_ulltoq.c: Move to ....
16651 * sysdeps/sparc/sparc32/q_ulltoq.c: ... here.
16652 * sysdeps/sparc/sparc32/soft-fp/q_util.c: Move to ....
16653 * sysdeps/sparc/sparc32/q_util.c: ... here.
16654 * sysdeps/sparc/sparc32/soft-fp/q_utoq.c: Move to ....
16655 * sysdeps/sparc/sparc32/q_utoq.c: ... here.
16656 * sysdeps/sparc/sparc32/soft-fp/sfp-machine.h: Move to ....
16657 * sysdeps/sparc/sparc32/sfp-machine.h: ... here.
16658
16659 2018-05-24 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
16660 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
16661
16662 * sysdeps/powerpc/Implies: Removed. Previous contents copied to...
16663 * sysdeps/powerpc/powerpc32/Implies-after: ... here.
16664 * sysdeps/powerpc/powerpc64/be/Implies-after: ... here.
16665 * sysdeps/powerpc/powerpc64/le/Implies-before: ... and here.
16666
16667 2018-05-24 Joseph Myers <joseph@codesourcery.com>
16668
16669 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/Implies: Remove
16670 powerpc/soft-fp.
16671 * sysdeps/unix/sysv/linux/powerpc/powerpc32/e500/nofpu/Implies:
16672 Likewise.
16673 * sysdeps/powerpc/soft-fp/sfp-machine.h: Move to ....
16674 * sysdeps/powerpc/nofpu/sfp-machine.h: ... here.
16675
16676 2018-05-24 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
16677
16678 [BZ #23171]
16679 * math/math.h [C++] (iseqsig): Fix parameter type for the long
16680 double version.
16681
16682 2018-05-23 Joseph Myers <joseph@codesourcery.com>
16683
16684 * sysdeps/sh/Implies: Remove sh/soft-fp.
16685 * sysdeps/sh/soft-fp/sfp-machine.h: Move to ....
16686 * sysdeps/sh/sfp-machine.h: ... here.
16687
16688 2018-05-23 H.J. Lu <hongjiu.lu@intel.com>
16689
16690 * sysdeps/x86_64/multiarch/memmove-vec-unaligned-erms.S
16691 (__mempcpy_erms): Skip zero length.
16692 (__memmove_erms): Likewise.
16693 * sysdeps/x86_64/multiarch/memset-vec-unaligned-erms.S
16694 (__memset_erms): Likewise.
16695
16696 2018-05-23 Joseph Myers <joseph@codesourcery.com>
16697
16698 * sysdeps/alpha/Implies: Remove alpha/soft-fp.
16699 * sysdeps/alpha/Makefile [$(subdir) = soft-fp] (sysdep_routines):
16700 Add functions moved from ....
16701 [$(subdir) = math] (CPPFLAGS): Add -I../soft-fp. Moved from ....
16702 * sysdeps/alpha/soft-fp/Makefile: ... here. Remove file.
16703 * sysdeps/alpha/Versions (libc): Add GLIBC_2.3.4 symbols moved
16704 from ....
16705 * sysdeps/alpha/soft-fp/Versions: ... here. Remove file.
16706 * sysdeps/alpha/soft-fp/e_sqrtl.c: Move to ....
16707 * sysdeps/alpha/e_sqrtl.c: ... here.
16708 * sysdeps/alpha/soft-fp/local-soft-fp.h: Move to ....
16709 * sysdeps/alpha/local-soft-fp.h: ... here.
16710 * sysdeps/alpha/soft-fp/ots_add.c: Move to ....
16711 * sysdeps/alpha/ots_add.c: ... here.
16712 * sysdeps/alpha/soft-fp/ots_cmp.c: Move to ....
16713 * sysdeps/alpha/ots_cmp.c: ... here.
16714 * sysdeps/alpha/soft-fp/ots_cmpe.c: Move to ....
16715 * sysdeps/alpha/ots_cmpe.c: ... here.
16716 * sysdeps/alpha/soft-fp/ots_cvtqux.c: Move to ....
16717 * sysdeps/alpha/ots_cvtqux.c: ... here.
16718 * sysdeps/alpha/soft-fp/ots_cvtqx.c: Move to ....
16719 * sysdeps/alpha/ots_cvtqx.c: ... here.
16720 * sysdeps/alpha/soft-fp/ots_cvttx.c: Move to ....
16721 * sysdeps/alpha/ots_cvttx.c: ... here.
16722 * sysdeps/alpha/soft-fp/ots_cvtxq.c: Move to ....
16723 * sysdeps/alpha/ots_cvtxq.c: ... here.
16724 * sysdeps/alpha/soft-fp/ots_cvtxt.c: Move to ....
16725 * sysdeps/alpha/ots_cvtxt.c: ... here.
16726 * sysdeps/alpha/soft-fp/ots_div.c: Move to ....
16727 * sysdeps/alpha/ots_div.c: ... here.
16728 * sysdeps/alpha/soft-fp/ots_mul.c: Move to ....
16729 * sysdeps/alpha/ots_mul.c: ... here.
16730 * sysdeps/alpha/soft-fp/ots_nintxq.c: Move to ....
16731 * sysdeps/alpha/ots_nintxq.c: ... here.
16732 * sysdeps/alpha/soft-fp/ots_sub.c: Move to ....
16733 * sysdeps/alpha/ots_sub.c: ... here.
16734 * sysdeps/alpha/soft-fp/sfp-machine.h: Move to ....
16735 * sysdeps/alpha/sfp-machine.h: ... here.
16736
16737 2018-05-23 Florian Weimer <fweimer@redhat.com>
16738
16739 [BZ #19728]
16740 [BZ #19729]
16741 [BZ #22247]
16742 CVE-2016-6261
16743 CVE-2016-6263
16744 CVE-2017-14062
16745 Switch to extern IDNA implementation (libidn2).
16746 * libidn: Remove subdirectory.
16747 * LICENSES: Do not mention licensing conditions for the removed
16748 libidn code.
16749 * config.h.in (HAVE_LIBIDN): Remove.
16750 * include/dlfcn.h (__libc_dlopen): Update comment.
16751 * include/idna.h: Remove file.
16752 * inet/Makefile (routines): Add idna.
16753 (tests-static, tests-internal): Add tst-idna_name_classify.
16754 (LOCALES): Generate locales for tests.
16755 (tst-idna_name_classify.out): Depend on generated locales.
16756 * inet/idna_name_classify.c: New file.
16757 * inet/tst-idna_name_classify.c: Likewise.
16758 * inet/net-internal.h (__idna_to_dns_encoding)
16759 (__idna_from_dns_encoding): Declare.
16760 * inet/net-internal.h (enum idna_name_classification): Define.
16761 (__idna_name_classify): Declare.
16762 * inet/Versions (GLIBC_PRIVATE): Add __idna_to_dns_encoding,
16763 __idna_from_dns_encoding.
16764 * inet/getnameinfo.c (DEPRECATED_NI_IDN): Define.
16765 (gni_host_inet_name): Call __idna_from_dns_encoding. Use punycode
16766 name as a fallback in case of encoding errors.
16767 (getnameinfo): Use DEPRECATED_NI_IDN.
16768 * inet/idna.c: New file.
16769 * nscd/gai.c: Do not include <libidn/idn-stub.c>.
16770 * resolv/Makefile (tests): Add tst-resolv-ai_idn,
16771 tst-resolv-ai_idn-latin1, tst-resolv-ai_idn-nolibidn2.
16772 (modules-names): Add tst-no-libidn2.
16773 (extra-test-objs): Add tst-no-libidn2.os.
16774 (LDFLAGS-tst-no-libidn2.so): Set soname.
16775 (LOCALES): Set, and generate locales.
16776 (tst-resolv-ai_idn): Link with -ldl -lresolv -lpthread.
16777 (tst-resolv-ai_idn-latin1): Likewise.
16778 (tst-resolv-ai_idn-nolibidn2): Likewise.
16779 (tst-resolv-ai_idn.out): Depend on locales.
16780 (tst-resolv-ai_idn-latin1.out): Depend on locales.
16781 (tst-resolv-ai_idn-nolibidn2.out): Depend on locales and
16782 tst-no-libidn2.so.
16783 * resolv/netdb.h (AI_IDN_ALLOW_UNASSIGNED)
16784 (AI_IDN_USE_STD3_ASCII_RULES, NI_IDN_ALLOW_UNASSIGNED)
16785 (NI_IDN_USE_STD3_ASCII_RULES): Deprecate.
16786 * resolv/tst-resolv-ai_idn.c: New file.
16787 * resolv/tst-resolv-ai_idn-latin1.c: Likewise.
16788 * resolv/tst-resolv-ai_idn-nolibidn2.c: Likewise.
16789 * resolv/tst-no-libidn2.c: Likewise.
16790 * support/support_format_addrinfo.c (format_ai_flags): Do not
16791 handle AI_IDN_ALLOW_UNASSIGNED, AI_IDN_USE_STD3_ASCII_RULES.
16792 * sysdeps/posix/getaddrinfo.c (DEPRECATED_AI_IDN): Define.
16793 (gaih_inet): Call __idna_to_dns_encoding and
16794 __idna_from_dns_encoding, and use the original (punycode) name if
16795 __idna_from_dns_encoding fails due to an encoding error.
16796 (getaddrinfo): Use DEPRECATED_AI_IDN.
16797 * sysdeps/unix/inet/Subdirs (libidn): Remove.
16798 * sysdeps/unix/inet/configure: Remove file.
16799 * sysdeps/unix/inet/configure.ac: Likewise.
16800
16801 2018-05-23 Florian Weimer <fweimer@redhat.com>
16802
16803 Implement allocate_once.
16804 * include/allocate_once.h: New file.
16805 * misc/allocate_once.c: Likewise.
16806 * misc/tst-allocate_once.c: Likewise.
16807 * misc/Makefile (routines): Add allocate_once.
16808 (tests-internal): Add tst-allocate_once.
16809 (generated): Add tst-allocate_once.mtrace,
16810 tst-allocate_once-mem.out.
16811 (tests-special): Add tst-allocate_once-mem.out.
16812 (tst-allocate_once-ENV): Set MALLOC_TRACE.
16813 (tst-allocate_once-mem.out): Call mtrace.
16814 * misc/Versions (GLIBC_PRIVATE): Add __libc_allocate_once_slow.
16815
16816 2018-05-23 H.J. Lu <hongjiu.lu@intel.com>
16817
16818 [BZ #23196]
16819 * string/test-memcpy.c (do_test1): New function.
16820 (test_main): Call it.
16821
16822 2018-05-23 Andreas Schwab <schwab@suse.de>
16823
16824 [BZ #23196]
16825 CVE-2018-11237
16826 * sysdeps/x86_64/multiarch/memmove-avx512-no-vzeroupper.S
16827 (L(preloop_large)): Save initial destination pointer in %r11 and
16828 use it instead of %rax after the loop.
16829 * string/test-mempcpy.c (MIN_PAGE_SIZE): Define.
16830
16831 2018-05-22 Joseph Myers <joseph@codesourcery.com>
16832
16833 * sysdeps/aarch64/Implies: Remove aarch64/soft-fp.
16834 * sysdeps/aarch64/Makefile [$(subdir) = math] (CPPFLAGS): Add
16835 -I../soft-fp. Moved from ....
16836 * sysdeps/aarch64/soft-fp/Makefile: ... here. Remove file.
16837 * sysdeps/aarch64/soft-fp/e_sqrtl.c: Move to ....
16838 * sysdeps/aarch64/e_sqrtl.c: ... here.
16839 * sysdeps/aarch64/soft-fp/sfp-machine.h: Move to ....
16840 * sysdeps/aarch64/sfp-machine.h: ... here.
16841
16842 * sysdeps/ieee754/dbl-64/k_rem_pio2.c (__kernel_rem_pio2): Ignore
16843 -Wmaybe-uninitialized around access to fq[0].
16844 * sysdeps/ieee754/flt-32/k_rem_pio2f.c (__kernel_rem_pio2f):
16845 Likewise.
16846
16847 [BZ #18471]
16848 * sysdeps/unix/make-syscalls.sh (emit_weak_aliases): Use weak
16849 aliases for non-libc case of versioned symbols.
16850 * sysdeps/unix/sysv/linux/lseek64.c: Include <shlib-compat.h>.
16851 (llseek): Define as compat symbol if
16852 [SHLIB_COMPAT (libc, GLIBC_2_0, GLIBC_2_28)], not as weak alias
16853 with link warning.
16854 * sysdeps/unix/sysv/linux/mips/mips64/n32/syscalls.list (llseek):
16855 Make into a compat symbol, disabled for minimum symbol version
16856 GLIBC_2.28 and later.
16857 * sysdeps/unix/sysv/linux/x86_64/x32/llseek.S: Remove file.
16858
16859 2018-05-22 Florian Weimer <fweimer@redhat.com>
16860
16861 * sysdeps/i386/Makefile [$(subdir) == math] (sysdep-CFLAGS): Do
16862 not add -mpreferred-stack-boundary=4.
16863 [$(subdir) == csu] (sysdep-CFLAGS): Likewise.
16864 (stack-align-test-flags): Likewise.
16865 [$(subdir) == stdlib] (CFLAGS-exit.c, CFLAGS-cxa_finalize.c):
16866 Likewise.
16867 [$(subdir) == elf] (CFLAGS-dl-init.c, CFLAGS-dl-fini.c)
16868 (CFLAGS-dl-open.c, CFLAGS-dl-close.c, CFLAGS-dl-error.c): Likewise.
16869 [$(subdir) == dlfcn] (CFLAGS-dlopen.c, CFLAGS-dlopenold.c)
16870 (CFLAGS-dlclose.c, CFLAGS-dlerror.c): Likewise.
16871 * sysdeps/i386/nptl/Makefile [$(subdir) == nptl]
16872 (CFLAGS-pthread_create.c, CFLAGS-tst-align.c)
16873 (CFLAGS-tst-align2.c): Likewise.
16874
16875 2018-05-21 H.J. Lu <hongjiu.lu@intel.com>
16876
16877 * sysdeps/x86/cpu-features.h (bit_arch_Prefer_FSRM): New.
16878 (index_arch_Prefer_FSRM): Likewise.
16879 * sysdeps/x86/cpu-tunables.c (TUNABLE_CALLBACK (set_hwcaps)):
16880 Also check Prefer_FSRM.
16881 * sysdeps/x86_64/multiarch/ifunc-memmove.h (IFUNC_SELECTOR):
16882 Also return OPTIMIZE (erms) for Prefer_FSRM.
16883
16884 2018-05-21 H.J. Lu <hongjiu.lu@intel.com>
16885
16886 * sysdeps/x86/cpu-features.h (bit_cpu_FSRM): New.
16887 (index_cpu_FSRM): Likewise.
16888 (reg_FSRM): Likewise.
16889
16890 2018-05-18 Joseph Myers <joseph@codesourcery.com>
16891
16892 * math/gen-tgmath-tests.py: Import sys.
16893 (Tests.__init__): Initialize macros_seen.
16894 (Tests.add_tests): Add macro to macros_seen. Only generate tests
16895 if requested to do so for this macro.
16896 (Tests.add_all_tests): Take argument for macro for which to
16897 generate tests.
16898 (Tests.check_macro_list): New function.
16899 (main): Handle check-list argument and argument specifying macro
16900 for which to generate tests.
16901 * math/Makefile [PYTHON] (tgmath3-macros): New variable.
16902 [PYTHON] (tgmath3-macro-tests): Likewise.
16903 [PYTHON] (tests): Add $(tgmath3-macro-tests) not test-tgmath3.
16904 [PYTHON] (generated): Add $(addsuffix .c,$(tgmath3-macro-tests))
16905 not test-tgmath3.c.
16906 [PYTHON] (CFLAGS-test-tgmath3.c): Remove.
16907 [PYTHON] ($(tgmath3-macro-tests:%=$(objpfx)%.o): Add -fno-builtin
16908 to CFLAGS.
16909 [PYTHON] ($(objpfx)test-tgmath3.c): Replace rule by....
16910 [PYTHON] ($(foreach
16911 m,$(tgmath3-macros),$(objpfx)test-tgmath3-$(m).c): ... this. New
16912 rule.
16913 [PYTHON] (tests-special): Add
16914 $(objpfx)test-tgmath3-macro-list.out.
16915 [PYTHON] ($(objpfx)test-tgmath3-macro-list.out): New rule.
16916
16917 * sysdeps/unix/sysv/linux/syscalls.list (nfsservctl): Make into a
16918 compat symbol, disabled for minimum symbol version GLIBC_2.28 and
16919 later.
16920
16921 [BZ #22639]
16922 * time/tzset.c (SECSPERDAY): Cast to time_t.
16923 * time/tst-y2039.c: New file.
16924 * time/Makefile (tests): Add tst-y2039.
16925
16926 2018-05-17 Leonardo Sandoval <leonardo.sandoval.gonzalez@intel.com>
16927
16928 * sysdeps/x86_64/multiarch/memmove-vec-unaligned-erms.S
16929 (PREFETCH_ONE_SET): Remove duplicate line.
16930
16931 2018-05-17 Florian Weimer <fweimer@redhat.com>
16932
16933 * sysdeps/generic/math-type-macros-double.h: Include
16934 <math-nan-payload-double.h> after <libm-alias-double.h>.
16935 * sysdeps/generic/math-type-macros-float.h: Include
16936 <math-nan-payload-float.h> after <libm-alias-float.h>.
16937 * sysdeps/generic/math-type-macros-float128.h: Include
16938 <math-nan-payload-float128.h> after <libm-alias-float128.h>.
16939 * sysdeps/generic/math-type-macros-ldouble.h: Include
16940 <math-nan-payload-ldouble.h> after <libm-alias-ldouble.h>.
16941
16942 2018-05-17 Andreas Schwab <schwab@suse.de>
16943
16944 * resolv/res_send.c (__res_context_send): Don't set errno when
16945 returing error after malloc failure.
16946
16947 2018-05-17 H.J. Lu <hongjiu.lu@intel.com>
16948
16949 * nptl/allocatestack.c (allocate_stack): Remove the
16950 !__ASSUME_PRIVATE_FUTEX paths.
16951 * nptl/descr.h (header): Remove the !__ASSUME_PRIVATE_FUTEX path.
16952 * nptl/nptl-init.c (__pthread_initialize_minimal_internal):
16953 Likewise.
16954 * sysdeps/i386/nptl/tcb-offsets.sym (PRIVATE_FUTEX): Removed.
16955 * sysdeps/powerpc/nptl/tcb-offsets.sym (PRIVATE_FUTEX): Likewise.
16956 * sysdeps/sh/nptl/tcb-offsets.sym (PRIVATE_FUTEX): Likewise.
16957 * sysdeps/x86_64/nptl/tcb-offsets.sym (PRIVATE_FUTEX): Likewise.
16958 * sysdeps/i386/nptl/tls.h: (tcbhead_t): Remve the
16959 !__ASSUME_PRIVATE_FUTEX path.
16960 * sysdeps/s390/nptl/tls.h (tcbhead_t): Likewise.
16961 * sysdeps/sparc/nptl/tls.h (tcbhead_t): Likewise.
16962 * sysdeps/x86_64/nptl/tls.h (tcbhead_t): Likewise.
16963 * sysdeps/unix/sysv/linux/i386/lowlevellock.S: Remove the
16964 !__ASSUME_PRIVATE_FUTEX macros.
16965 * sysdeps/unix/sysv/linux/lowlevellock-futex.h: Likewise.
16966 * sysdeps/unix/sysv/linux/x86_64/cancellation.S: Likewise.
16967 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.S: Likewise.
16968 * sysdeps/unix/sysv/linux/kernel-features.h
16969 (__ASSUME_PRIVATE_FUTEX): Removed.
16970
16971 2018-05-17 Joseph Myers <joseph@codesourcery.com>
16972
16973 * math/Makefile (libm-narrow-fns): Add div.
16974 (libm-test-funcs-narrow): Likewise.
16975 * math/Versions (GLIBC_2.28): Add narrowing divide functions.
16976 * math/bits/mathcalls-narrow.h (div): Use __MATHCALL_NARROW.
16977 * math/gen-auto-libm-tests.c (test_functions): Add div.
16978 * math/math-narrow.h (CHECK_NARROW_DIV): New macro.
16979 (NARROW_DIV_ROUND_TO_ODD): Likewise.
16980 (NARROW_DIV_TRIVIAL): Likewise.
16981 * sysdeps/ieee754/float128/float128_private.h (__fdivl): New
16982 macro.
16983 (__ddivl): Likewise.
16984 * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Add fdiv and
16985 ddiv.
16986 (CFLAGS-nldbl-ddiv.c): New variable.
16987 (CFLAGS-nldbl-fdiv.c): Likewise.
16988 * sysdeps/ieee754/ldbl-opt/Versions (GLIBC_2.28): Add
16989 __nldbl_ddivl.
16990 * sysdeps/ieee754/ldbl-opt/nldbl-compat.h (__nldbl_ddivl): New
16991 prototype.
16992 * manual/arith.texi (Misc FP Arithmetic): Document fdiv, fdivl,
16993 ddivl, fMdivfN, fMdivfNx, fMxdivfN and fMxdivfNx.
16994 * math/auto-libm-test-in: Add tests of div.
16995 * math/auto-libm-test-out-narrow-div: New generated file.
16996 * math/libm-test-narrow-div.inc: New file.
16997 * sysdeps/i386/fpu/s_f32xdivf64.c: Likewise.
16998 * sysdeps/ieee754/dbl-64/s_f32xdivf64.c: Likewise.
16999 * sysdeps/ieee754/dbl-64/s_fdiv.c: Likewise.
17000 * sysdeps/ieee754/float128/s_f32divf128.c: Likewise.
17001 * sysdeps/ieee754/float128/s_f64divf128.c: Likewise.
17002 * sysdeps/ieee754/float128/s_f64xdivf128.c: Likewise.
17003 * sysdeps/ieee754/ldbl-128/s_ddivl.c: Likewise.
17004 * sysdeps/ieee754/ldbl-128/s_f64xdivf128.c: Likewise.
17005 * sysdeps/ieee754/ldbl-128/s_fdivl.c: Likewise.
17006 * sysdeps/ieee754/ldbl-128ibm/s_ddivl.c: Likewise.
17007 * sysdeps/ieee754/ldbl-128ibm/s_fdivl.c: Likewise.
17008 * sysdeps/ieee754/ldbl-96/s_ddivl.c: Likewise.
17009 * sysdeps/ieee754/ldbl-96/s_fdivl.c: Likewise.
17010 * sysdeps/ieee754/ldbl-opt/nldbl-ddiv.c: Likewise.
17011 * sysdeps/ieee754/ldbl-opt/nldbl-fdiv.c: Likewise.
17012 * sysdeps/ieee754/soft-fp/s_ddivl.c: Likewise.
17013 * sysdeps/ieee754/soft-fp/s_fdiv.c: Likewise.
17014 * sysdeps/ieee754/soft-fp/s_fdivl.c: Likewise.
17015 * sysdeps/powerpc/fpu/libm-test-ulps: Update.
17016 * sysdeps/mach/hurd/i386/libm.abilist: Likewise.
17017 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
17018 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
17019 * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
17020 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
17021 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
17022 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
17023 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
17024 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
17025 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
17026 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
17027 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
17028 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
17029 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Likewise.
17030 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist: Likewise.
17031 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Likewise.
17032 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Likewise.
17033 * sysdeps/unix/sysv/linux/riscv/rv64/libm.abilist: Likewise.
17034 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
17035 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
17036 * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
17037 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
17038 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
17039 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
17040 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
17041
17042 2018-05-16 Adhemerval Zanella <adhemerval.zanella@linaro.org>
17043
17044 [BZ #23178]
17045 * nscd/nscd-client.h (sendfileall): Remove prototype.
17046 * nscd/connections.c [HAVE_SENDFILE] (sendfileall): Remove function.
17047 (handle_request): Use writeall instead of sendfileall.
17048 * nscd/aicache.c (addhstaiX): Likewise.
17049 * nscd/grpcache.c (cache_addgr): Likewise.
17050 * nscd/hstcache.c (cache_addhst): Likewise.
17051 * nscd/initgrcache.c (addinitgroupsX): Likewise.
17052 * nscd/netgroupcache.c (addgetnetgrentX, addinnetgrX): Likewise.
17053 * nscd/pwdcache.c (cache_addpw): Likewise.
17054 * nscd/servicescache.c (cache_addserv): Likewise.
17055 * sysdeps/unix/sysv/linux/Makefile [$(subdir) == nscd]
17056 (sysdep-CFLAGS): Remove -DHAVE_SENDFILE.
17057 * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_SENDFILE):
17058 Remove define.
17059
17060 2018-05-16 H.J. Lu <hongjiu.lu@intel.com>
17061
17062 * sysdeps/x86_64/multiarch/strncat-c.c (STRNCAT_PRIMARY): Removed.
17063 Include <string/strncat.c>.
17064 * sysdeps/x86_64/multiarch/strncat.c (__strncat): New strong
17065 alias.
17066 (__GI___strncat): New hidden alias.
17067
17068 2018-05-16 Joseph Myers <joseph@codesourcery.com>
17069
17070 * sysdeps/mips/mips32/libm-test-ulps: Update.
17071 * sysdeps/mips/mips64/libm-test-ulps: Likewise.
17072
17073 2018-05-16 Florian Weimer <fweimer@redhat.com>
17074
17075 * support/Makefile (libsupport-routines): Add support_quote_blob,
17076 support_test_compare_blob.
17077 (tests): Add tst-support_quote_blob, tst-test_compare_blob.
17078 * support/check.h (TEST_COMPARE_BLOB): Define.
17079 (support_test_compare_blob): Declare.
17080 * support/support.h (support_quote_blob): Declare.
17081 * support/support_quote_blob.c: New file.
17082 * support/support_test_compare_blob.c: Likewise.
17083 * support/tst-support_quote_blob.c: Likewise.
17084 * support/tst-test_compare_blob.c: Likewise.
17085
17086 2018-05-16 Florian Weimer <fweimer@redhat.com>
17087
17088 * stdlib/strtod_nan.c: Include <math-type-macros-double.h> instead
17089 of <strtod_nan_double.h>.
17090 * stdlib/strtod_nan_main.c (STRTOD_NAN): Use SET_NAN_PAYLOAD
17091 instead of SET_MANTISSA.
17092 * stdlib/strtof_nan.c: Include <math-type-macros-float.h> instead
17093 of include <strtod_nan_float.h>.
17094 * stdlib/strtold_nan.c: Include <math-type-macros-ldouble.h>
17095 instead of <strtod_nan_ldouble.h>.
17096 * stdlib/strtod_nan_double.h: Move to ...
17097 * sysdeps/generic/math-nan-payload-double.h: ... here.
17098 (FLOAT): Remove definition.
17099 (SET_MANTISSA): Rename to ...
17100 (SET_NAN_PAYLOAD): ... this.
17101 * stdlib/strtod_nan_float.h: Move to ...
17102 * sysdeps/generic/math-nan-payload-float.h: ... here.
17103 (FLOAT): Remove definition.
17104 (SET_MANTISSA): Rename to ...
17105 (SET_NAN_PAYLOAD): ... this.
17106 * sysdeps/generic/math-type-macros-double.h: Include
17107 <math-nan-payload-double.h>. Include <math/math-svid-compat.h>
17108 instead of <math-svid-compat.h>.
17109 * sysdeps/generic/math-type-macros-float.h: Include
17110 <math-nan-payload-float.h>. Include <math/math-svid-compat.h>
17111 instead of <math-svid-compat.h>.
17112 * sysdeps/generic/math-type-macros-float128.h: Include
17113 <math-nan-payload-float128.h>.
17114 * sysdeps/generic/math-type-macros-ldouble.h: Include
17115 <math-nan-payload-ldouble.h>. Include <math/math-svid-compat.h>
17116 instead of <math-svid-compat.h>.
17117 * sysdeps/generic/math-type-macros.h: Document SET_NAN_PAYLOAD and
17118 check for definition.
17119 * sysdeps/ieee754/float128/strtod_nan_float128.h: Move to ...
17120 * sysdeps/ieee754/float128/math-nan-payload-float128.h: ... here.
17121 Include <ieee754_float128.h>.
17122 (FLOAT): Remove definition.
17123 (SET_MANTISSA): Rename to ...
17124 (SET_NAN_PAYLOAD): ... this.
17125 * sysdeps/ieee754/float128/strtof128_nan.c: Include
17126 <math-type-macros-float128.h> instead of <strtod_nan_float128.h>.
17127 Do not include <float128_private.h>.
17128 * sysdeps/ieee754/float128/wcstof128_nan.c: Likewise.
17129 * sysdeps/ieee754/ldbl-128/strtod_nan_ldouble.h: Move to ...
17130 * sysdeps/ieee754/ldbl-128/math-nan-payload-ldouble.h: ... here.
17131 (FLOAT): Remove definition.
17132 (SET_MANTISSA): Rename to ...
17133 (SET_NAN_PAYLOAD): ... this.
17134 * sysdeps/ieee754/ldbl-128ibm/strtod_nan_ldouble.h: Move to ...
17135 * sysdeps/ieee754/ldbl-128ibm/math-nan-payload-ldouble.h: ... here.
17136 (FLOAT): Remove definition.
17137 (SET_MANTISSA): Rename to ...
17138 (SET_NAN_PAYLOAD): ... this.
17139 * sysdeps/ieee754/ldbl-96/strtod_nan_ldouble.h: Move to ...
17140 * sysdeps/ieee754/ldbl-96/math-nan-payload-ldouble.h: ... here.
17141 (FLOAT): Remove definition.
17142 (SET_MANTISSA): Rename to ...
17143 (SET_NAN_PAYLOAD): ... this.
17144 * wcsmbs/wcstod_nan.c: Include <math-type-macros-double.h> instead
17145 of "../stdlib/strtod_nan_double.h".
17146 * wcsmbs/wcstof_nan.c: Include <math-type-macros-float.h> instead
17147 of "../stdlib/strtod_nan_float.h".
17148 * wcsmbs/wcstold_nan.c: Include <math-type-macros-ldouble.h>
17149 instead of "../stdlib/strtod_nan_ldouble.h".
17150 * manual/arith.texi (Parsing of Floats): Adjust comment.
17151
17152 2018-05-16 Joseph Myers <joseph@codesourcery.com>
17153
17154 * math/Makefile (libm-narrow-fns): Add mul.
17155 (libm-test-funcs-narrow): Likewise.
17156 * math/Versions (GLIBC_2.28): Add narrowing multiply functions.
17157 * math/bits/mathcalls-narrow.h (mul): Use __MATHCALL_NARROW.
17158 * math/gen-auto-libm-tests.c (test_functions): Add mul.
17159 * math/math-narrow.h (CHECK_NARROW_MUL): New macro.
17160 (NARROW_MUL_ROUND_TO_ODD): Likewise.
17161 (NARROW_MUL_TRIVIAL): Likewise.
17162 * soft-fp/op-common.h (FP_TRUNC_COOKED): Likewise.
17163 * sysdeps/ieee754/float128/float128_private.h (__fmull): New
17164 macro.
17165 (__dmull): Likewise.
17166 * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Add fmul and
17167 dmul.
17168 (CFLAGS-nldbl-dmul.c): New variable.
17169 (CFLAGS-nldbl-fmul.c): Likewise.
17170 * sysdeps/ieee754/ldbl-opt/Versions (GLIBC_2.28): Add
17171 __nldbl_dmull.
17172 * sysdeps/ieee754/ldbl-opt/nldbl-compat.h (__nldbl_dmull): New
17173 prototype.
17174 * manual/arith.texi (Misc FP Arithmetic): Document fmul, fmull,
17175 dmull, fMmulfN, fMmulfNx, fMxmulfN and fMxmulfNx.
17176 * math/auto-libm-test-in: Add tests of mul.
17177 * math/auto-libm-test-out-narrow-mul: New generated file.
17178 * math/libm-test-narrow-mul.inc: New file.
17179 * sysdeps/i386/fpu/s_f32xmulf64.c: Likewise.
17180 * sysdeps/ieee754/dbl-64/s_f32xmulf64.c: Likewise.
17181 * sysdeps/ieee754/dbl-64/s_fmul.c: Likewise.
17182 * sysdeps/ieee754/float128/s_f32mulf128.c: Likewise.
17183 * sysdeps/ieee754/float128/s_f64mulf128.c: Likewise.
17184 * sysdeps/ieee754/float128/s_f64xmulf128.c: Likewise.
17185 * sysdeps/ieee754/ldbl-128/s_dmull.c: Likewise.
17186 * sysdeps/ieee754/ldbl-128/s_f64xmulf128.c: Likewise.
17187 * sysdeps/ieee754/ldbl-128/s_fmull.c: Likewise.
17188 * sysdeps/ieee754/ldbl-128ibm/s_dmull.c: Likewise.
17189 * sysdeps/ieee754/ldbl-128ibm/s_fmull.c: Likewise.
17190 * sysdeps/ieee754/ldbl-96/s_dmull.c: Likewise.
17191 * sysdeps/ieee754/ldbl-96/s_fmull.c: Likewise.
17192 * sysdeps/ieee754/ldbl-opt/nldbl-dmul.c: Likewise.
17193 * sysdeps/ieee754/ldbl-opt/nldbl-fmul.c: Likewise.
17194 * sysdeps/ieee754/soft-fp/s_dmull.c: Likewise.
17195 * sysdeps/ieee754/soft-fp/s_fmul.c: Likewise.
17196 * sysdeps/ieee754/soft-fp/s_fmull.c: Likewise.
17197 * sysdeps/powerpc/fpu/libm-test-ulps: Update.
17198 * sysdeps/mach/hurd/i386/libm.abilist: Likewise.
17199 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
17200 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
17201 * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
17202 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
17203 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
17204 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
17205 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
17206 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
17207 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
17208 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
17209 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
17210 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
17211 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Likewise.
17212 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist: Likewise.
17213 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Likewise.
17214 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Likewise.
17215 * sysdeps/unix/sysv/linux/riscv/rv64/libm.abilist: Likewise.
17216 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
17217 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
17218 * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
17219 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
17220 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
17221 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
17222 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
17223
17224 2018-05-14 H.J. Lu <hongjiu.lu@intel.com>
17225
17226 * sysdeps/i386/crti.S (_init): Replace PREINIT_FUNCTION@PLT
17227 with *%eax in call.
17228
17229 2018-05-14 H.J. Lu <hongjiu.lu@intel.com>
17230
17231 * sysdeps/i386/ldsodefs.h: Removed.
17232 * sysdeps/x86_64/ldsodefs.h: Moved to ...
17233 * sysdeps/x86/ldsodefs.h: This.
17234 (La_i86_regs): New.
17235 (La_i86_retval): Likewise.
17236 (ARCH_PLTENTER_MEMBERS): Add i86_gnu_pltenter.
17237 (ARCH_PLTEXIT_MEMBERS): i86_gnu_pltexit.
17238
17239 2018-05-14 H.J. Lu <hongjiu.lu@intel.com>
17240
17241 * sysdeps/x86_64/multiarch/strlen-avx2.S (STRLEN): Remove the
17242 unnecessary testl.
17243
17244 2018-05-13 Alan Modra <amodra@gmail.com>
17245
17246 * sysdeps/hppa/dl-machine.h (elf_machine_rela): Add
17247 R_PARISC_TLS_DTPOFF32 reloc addend.
17248
17249 2018-05-11 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
17250
17251 * bits/floatn-common.h: Define __HAVE_FLOAT128_UNLIKE_LDBL.
17252 * math/math.h: Restrict the prototype definition for the functions
17253 issignaling(_Float128) and iszero(_Float128); and template
17254 __iseqsig_type<_Float128>, from __HAVE_DISTINCT_FLOAT128 to
17255 __HAVE_FLOAT128_UNLIKE_LDBL.
17256 * sysdeps/powerpc/bits/floatn.h [__HAVE_FLOAT128
17257 && (!__GNUC_PREREQ (7, 0) || defined __cplusplus)
17258 && __LDBL_MANT_DIG__ == 113]: Use long double suffix for
17259 __f128() constants; define the type _Float128 as long double;
17260 and reuse long double in __CFLOAT128.
17261
17262 2018-05-11 Joseph Myers <joseph@codesourcery.com>
17263
17264 * sysdeps/generic/math_private.h: Do not include
17265 <math-barriers.h>.
17266 * stdlib/strtod_l.c: Include <math-barriers.h> instead of
17267 <math_private.h>.
17268 * math/fromfp.h: Include <math-barriers.h>.
17269 * math/math-narrow.h: Likewise.
17270 * math/s_nextafter.c: Likewise.
17271 * math/s_nexttowardf.c: Likewise.
17272 * sysdeps/aarch64/fpu/s_llrint.c: Likewise.
17273 * sysdeps/aarch64/fpu/s_llrintf.c: Likewise.
17274 * sysdeps/aarch64/fpu/s_lrint.c: Likewise.
17275 * sysdeps/aarch64/fpu/s_lrintf.c: Likewise.
17276 * sysdeps/i386/fpu/s_nextafterl.c: Likewise.
17277 * sysdeps/i386/fpu/s_nexttoward.c: Likewise.
17278 * sysdeps/i386/fpu/s_nexttowardf.c: Likewise.
17279 * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
17280 * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
17281 * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
17282 * sysdeps/ieee754/dbl-64/e_exp2.c: Likewise.
17283 * sysdeps/ieee754/dbl-64/e_j0.c: Likewise.
17284 * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
17285 * sysdeps/ieee754/dbl-64/s_expm1.c: Likewise.
17286 * sysdeps/ieee754/dbl-64/s_fma.c: Likewise.
17287 * sysdeps/ieee754/dbl-64/s_fmaf.c: Likewise.
17288 * sysdeps/ieee754/dbl-64/s_log1p.c: Likewise.
17289 * sysdeps/ieee754/dbl-64/s_nearbyint.c: Likewise.
17290 * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c: Likewise.
17291 * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
17292 * sysdeps/ieee754/flt-32/e_j0f.c: Likewise.
17293 * sysdeps/ieee754/flt-32/s_expm1f.c: Likewise.
17294 * sysdeps/ieee754/flt-32/s_log1pf.c: Likewise.
17295 * sysdeps/ieee754/flt-32/s_nearbyintf.c: Likewise.
17296 * sysdeps/ieee754/flt-32/s_nextafterf.c: Likewise.
17297 * sysdeps/ieee754/k_standardl.c: Likewise.
17298 * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
17299 * sysdeps/ieee754/ldbl-128/e_expl.c: Likewise.
17300 * sysdeps/ieee754/ldbl-128/e_powl.c: Likewise.
17301 * sysdeps/ieee754/ldbl-128/s_fmal.c: Likewise.
17302 * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Likewise.
17303 * sysdeps/ieee754/ldbl-128/s_nextafterl.c: Likewise.
17304 * sysdeps/ieee754/ldbl-128/s_nexttoward.c: Likewise.
17305 * sysdeps/ieee754/ldbl-128/s_nexttowardf.c: Likewise.
17306 * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
17307 * sysdeps/ieee754/ldbl-128ibm/s_fmal.c: Likewise.
17308 * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c: Likewise.
17309 * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Likewise.
17310 * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c: Likewise.
17311 * sysdeps/ieee754/ldbl-128ibm/s_rintl.c: Likewise.
17312 * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
17313 * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
17314 * sysdeps/ieee754/ldbl-96/s_fma.c: Likewise.
17315 * sysdeps/ieee754/ldbl-96/s_fmal.c: Likewise.
17316 * sysdeps/ieee754/ldbl-96/s_nexttoward.c: Likewise.
17317 * sysdeps/ieee754/ldbl-96/s_nexttowardf.c: Likewise.
17318 * sysdeps/ieee754/ldbl-opt/s_nexttowardfd.c: Likewise.
17319 * sysdeps/m68k/m680x0/fpu/s_nextafterl.c: Likewise.
17320
17321 2018-05-11 Florian Weimer <fweimer@redhat.com>
17322
17323 Use 64-bit epoch values in the time zone file parser.
17324 * include/time.h (internal_time_t): Define.
17325 (__tzfile_compute): Use it.
17326 * time/tzfile.c (struct leap): Use internal_time_t for epoch
17327 member.
17328 (transitions): Switch to internal_time_t.
17329 (__tzfile_read): Likewise. Remove code dealing with 4-byte time_t
17330 types.
17331 (__tzfile_compute): Use internal_time_t for timer argument. Check
17332 for truncation before calling __offtime.
17333
17334 2018-05-11 Florian Weimer <fweimer@redhat.com>
17335
17336 [BZ #23166]
17337 * include/rpc/clnt.h (rpc_createerr): Declare hidden alias.
17338 * include/rpc/svc.h (svc_pollfd, svc_max_pollfd, svc_fdset):
17339 Likewise.
17340 * sunrpc/rpc_common.c (svc_fdset, rpc_createerr, svc_pollfd)
17341 (svc_max_pollfd): Add nocommon attribute and hidden alias. Do not
17342 export without --enable-obsolete-rpc.
17343 * sunrpc/svcauth_des.c (svcauthdes_stats): Turn into compatibility
17344 symbol. This should not have been exported, ever.
17345
17346 2018-05-11 Rafał Lużyński <digitalfreak@lingonborough.com>
17347
17348 [BZ #23152]
17349 * localedata/locales/gd_GB (abmon): Fix typo in May:
17350 "Mhàrt" -> "Cèit". Adjust the comment according to the change.
17351
17352 2018-05-11 Siddhesh Poyarekar <siddhesh@sourceware.org>
17353
17354 * sysdeps/aarch64/multiarch/memcpy_falkor.S (__memcpy_falkor):
17355 Use multiple registers to copy data in loop tail.
17356
17357 * sysdeps/aarch64/multiarch/memmove_falkor.S
17358 (__memmove_falkor): Use multiple registers to move data in
17359 loop tail.
17360
17361 2018-05-10 Joseph Myers <joseph@codesourcery.com>
17362
17363 * math/math-underflow.h: New file.
17364 * sysdeps/generic/math_private.h: Do not include <float.h>.
17365 (fabs_tg): Remove macro. Moved to math-underflow.h.
17366 (min_of_type_f): Likewise.
17367 (min_of_type_): Likewise.
17368 (min_of_type_l): Likewise.
17369 (min_of_type_f128): Likewise.
17370 (min_of_type): Likewise.
17371 (math_check_force_underflow): Likewise.
17372 (math_check_force_underflow_nonneg): Likewise.
17373 (math_check_force_underflow_complex): Likewise.
17374 * math/e_exp2_template.c: Include <math-underflow.h>.
17375 * math/k_casinh_template.c: Likewise.
17376 * math/s_catan_template.c: Likewise.
17377 * math/s_catanh_template.c: Likewise.
17378 * math/s_ccosh_template.c: Likewise.
17379 * math/s_cexp_template.c: Likewise.
17380 * math/s_clog10_template.c: Likewise.
17381 * math/s_clog_template.c: Likewise.
17382 * math/s_csin_template.c: Likewise.
17383 * math/s_csinh_template.c: Likewise.
17384 * math/s_csqrt_template.c: Likewise.
17385 * math/s_ctan_template.c: Likewise.
17386 * math/s_ctanh_template.c: Likewise.
17387 * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
17388 * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
17389 * sysdeps/ieee754/dbl-64/e_exp2.c: Likewise.
17390 * sysdeps/ieee754/dbl-64/e_gamma_r.c: Likewise.
17391 * sysdeps/ieee754/dbl-64/e_hypot.c: Likewise.
17392 * sysdeps/ieee754/dbl-64/e_j1.c: Likewise.
17393 * sysdeps/ieee754/dbl-64/e_jn.c: Likewise.
17394 * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
17395 * sysdeps/ieee754/dbl-64/e_sinh.c: Likewise.
17396 * sysdeps/ieee754/dbl-64/s_asinh.c: Likewise.
17397 * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
17398 * sysdeps/ieee754/dbl-64/s_erf.c: Likewise.
17399 * sysdeps/ieee754/dbl-64/s_expm1.c: Likewise.
17400 * sysdeps/ieee754/dbl-64/s_log1p.c: Likewise.
17401 * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
17402 * sysdeps/ieee754/dbl-64/s_sincos.c: Likewise.
17403 * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
17404 * sysdeps/ieee754/dbl-64/s_tanh.c: Likewise.
17405 * sysdeps/ieee754/flt-32/e_asinf.c: Likewise.
17406 * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
17407 * sysdeps/ieee754/flt-32/e_gammaf_r.c: Likewise.
17408 * sysdeps/ieee754/flt-32/e_j1f.c: Likewise.
17409 * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
17410 * sysdeps/ieee754/flt-32/e_sinhf.c: Likewise.
17411 * sysdeps/ieee754/flt-32/k_sinf.c: Likewise.
17412 * sysdeps/ieee754/flt-32/k_tanf.c: Likewise.
17413 * sysdeps/ieee754/flt-32/s_asinhf.c: Likewise.
17414 * sysdeps/ieee754/flt-32/s_atanf.c: Likewise.
17415 * sysdeps/ieee754/flt-32/s_erff.c: Likewise.
17416 * sysdeps/ieee754/flt-32/s_expm1f.c: Likewise.
17417 * sysdeps/ieee754/flt-32/s_log1pf.c: Likewise.
17418 * sysdeps/ieee754/flt-32/s_tanhf.c: Likewise.
17419 * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
17420 * sysdeps/ieee754/ldbl-128/e_atanhl.c: Likewise.
17421 * sysdeps/ieee754/ldbl-128/e_expl.c: Likewise.
17422 * sysdeps/ieee754/ldbl-128/e_gammal_r.c: Likewise.
17423 * sysdeps/ieee754/ldbl-128/e_hypotl.c: Likewise.
17424 * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
17425 * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
17426 * sysdeps/ieee754/ldbl-128/e_sinhl.c: Likewise.
17427 * sysdeps/ieee754/ldbl-128/k_sincosl.c: Likewise.
17428 * sysdeps/ieee754/ldbl-128/k_sinl.c: Likewise.
17429 * sysdeps/ieee754/ldbl-128/k_tanl.c: Likewise.
17430 * sysdeps/ieee754/ldbl-128/s_asinhl.c: Likewise.
17431 * sysdeps/ieee754/ldbl-128/s_atanl.c: Likewise.
17432 * sysdeps/ieee754/ldbl-128/s_erfl.c: Likewise.
17433 * sysdeps/ieee754/ldbl-128/s_expm1l.c: Likewise.
17434 * sysdeps/ieee754/ldbl-128/s_log1pl.c: Likewise.
17435 * sysdeps/ieee754/ldbl-128/s_tanhl.c: Likewise.
17436 * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
17437 * sysdeps/ieee754/ldbl-128ibm/e_atanhl.c: Likewise.
17438 * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c: Likewise.
17439 * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c: Likewise.
17440 * sysdeps/ieee754/ldbl-128ibm/e_j1l.c: Likewise.
17441 * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
17442 * sysdeps/ieee754/ldbl-128ibm/e_powl.c: Likewise.
17443 * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c: Likewise.
17444 * sysdeps/ieee754/ldbl-128ibm/k_sincosl.c: Likewise.
17445 * sysdeps/ieee754/ldbl-128ibm/k_sinl.c: Likewise.
17446 * sysdeps/ieee754/ldbl-128ibm/k_tanl.c: Likewise.
17447 * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c: Likewise.
17448 * sysdeps/ieee754/ldbl-128ibm/s_atanl.c: Likewise.
17449 * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Likewise.
17450 * sysdeps/ieee754/ldbl-128ibm/s_fmal.c: Likewise.
17451 * sysdeps/ieee754/ldbl-128ibm/s_tanhl.c: Likewise.
17452 * sysdeps/ieee754/ldbl-96/e_asinl.c: Likewise.
17453 * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
17454 * sysdeps/ieee754/ldbl-96/e_gammal_r.c: Likewise.
17455 * sysdeps/ieee754/ldbl-96/e_hypotl.c: Likewise.
17456 * sysdeps/ieee754/ldbl-96/e_j1l.c: Likewise.
17457 * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
17458 * sysdeps/ieee754/ldbl-96/e_sinhl.c: Likewise.
17459 * sysdeps/ieee754/ldbl-96/k_sinl.c: Likewise.
17460 * sysdeps/ieee754/ldbl-96/k_tanl.c: Likewise.
17461 * sysdeps/ieee754/ldbl-96/s_asinhl.c: Likewise.
17462 * sysdeps/ieee754/ldbl-96/s_erfl.c: Likewise.
17463 * sysdeps/ieee754/ldbl-96/s_tanhl.c: Likewise.
17464 * sysdeps/powerpc/fpu/e_hypot.c: Likewise.
17465 * sysdeps/x86/fpu/powl_helper.c: Likewise.
17466 * sysdeps/ieee754/dbl-64/s_nextup.c: Include <float.h>.
17467 * sysdeps/ieee754/flt-32/s_nextupf.c: Likewise.
17468 * sysdeps/ieee754/ldbl-128/s_nextupl.c: Likewise.
17469 * sysdeps/ieee754/ldbl-128ibm/s_nextupl.c: Likewise.
17470 * sysdeps/ieee754/ldbl-96/s_nextupl.c: Likewise.
17471
17472 2018-05-09 Joseph Myers <joseph@codesourcery.com>
17473
17474 * sysdeps/generic/math-barriers.h: New file.
17475 * sysdeps/generic/math_private.h [!math_opt_barrier]
17476 (math_opt_barrier): Move to math-barriers.h.
17477 [!math_opt_barrier] (math_force_eval): Likewise.
17478 * sysdeps/aarch64/fpu/math-barriers.h: New file.
17479 * sysdeps/aarch64/fpu/math_private.h (math_opt_barrier): Move to
17480 math-barriers.h.
17481 (math_force_eval): Likewise.
17482 * sysdeps/alpha/fpu/math-barriers.h: New file.
17483 * sysdeps/alpha/fpu/math_private.h (math_opt_barrier): Move to
17484 math-barriers.h.
17485 (math_force_eval): Likewise.
17486 * sysdeps/x86/fpu/math-barriers.h: New file.
17487 * sysdeps/i386/fpu/fenv_private.h (math_opt_barrier): Move to
17488 math-barriers.h.
17489 (math_force_eval): Likewise.
17490 * sysdeps/m68k/m680x0/fpu/math_private.h: Move to....
17491 * sysdeps/m68k/m680x0/fpu/math-barriers.h: ... here. Adjust
17492 multiple-include guard for rename.
17493 * sysdeps/powerpc/fpu/math-barriers.h: New file.
17494 * sysdeps/powerpc/fpu/math_private.h (math_opt_barrier): Move to
17495 math-barriers.h.
17496 (math_force_eval): Likewise.
17497
17498 2018-05-09 Paul Pluzhnikov <ppluzhnikov@google.com>
17499
17500 [BZ #22786]
17501 CVE-2018-11236
17502 * stdlib/canonicalize.c (__realpath): Fix overflow in path length
17503 computation.
17504 * stdlib/Makefile (test-bz22786): New test.
17505 * stdlib/test-bz22786.c: New test.
17506
17507 2018-05-09 Joseph Myers <joseph@codesourcery.com>
17508
17509 * include/math-narrow-eval.h: New file. Contents moved from ....
17510 * sysdeps/generic/math_private.h: ... here.
17511 (math_narrow_eval): Remove macro. Moved to math-narrow-eval.h.
17512 [FLT_EVAL_METHOD != 0] (excess_precision): Likewise.
17513 * math/s_fdim_template.c: Include <math-narrow-eval.h>.
17514 * stdlib/strtod_l.c: Likewise.
17515 * sysdeps/i386/fpu/s_f32xaddf64.c: Likewise.
17516 * sysdeps/i386/fpu/s_f32xsubf64.c: Likewise.
17517 * sysdeps/i386/fpu/s_fdim.c: Likewise.
17518 * sysdeps/ieee754/dbl-64/e_cosh.c: Likewise.
17519 * sysdeps/ieee754/dbl-64/e_gamma_r.c: Likewise.
17520 * sysdeps/ieee754/dbl-64/e_j1.c: Likewise.
17521 * sysdeps/ieee754/dbl-64/e_jn.c: Likewise.
17522 * sysdeps/ieee754/dbl-64/e_lgamma_r.c: Likewise.
17523 * sysdeps/ieee754/dbl-64/e_sinh.c: Likewise.
17524 * sysdeps/ieee754/dbl-64/gamma_productf.c: Likewise.
17525 * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Likewise.
17526 * sysdeps/ieee754/dbl-64/lgamma_neg.c: Likewise.
17527 * sysdeps/ieee754/dbl-64/s_erf.c: Likewise.
17528 * sysdeps/ieee754/dbl-64/s_llrint.c: Likewise.
17529 * sysdeps/ieee754/dbl-64/s_lrint.c: Likewise.
17530 * sysdeps/ieee754/flt-32/e_coshf.c: Likewise.
17531 * sysdeps/ieee754/flt-32/e_exp2f.c: Likewise.
17532 * sysdeps/ieee754/flt-32/e_expf.c: Likewise.
17533 * sysdeps/ieee754/flt-32/e_gammaf_r.c: Likewise.
17534 * sysdeps/ieee754/flt-32/e_j1f.c: Likewise.
17535 * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
17536 * sysdeps/ieee754/flt-32/e_lgammaf_r.c: Likewise.
17537 * sysdeps/ieee754/flt-32/e_sinhf.c: Likewise.
17538 * sysdeps/ieee754/flt-32/k_rem_pio2f.c: Likewise.
17539 * sysdeps/ieee754/flt-32/lgamma_negf.c: Likewise.
17540 * sysdeps/ieee754/flt-32/s_erff.c: Likewise.
17541 * sysdeps/ieee754/flt-32/s_llrintf.c: Likewise.
17542 * sysdeps/ieee754/flt-32/s_lrintf.c: Likewise.
17543 * sysdeps/ieee754/ldbl-96/gamma_product.c: Likewise.
17544
17545 2018-05-08 Andreas Schwab <schwab@suse.de>
17546
17547 * sysdeps/nptl/internaltypes.h: Fix comment.
17548
17549 2018-05-07 H.J. Lu <hongjiu.lu@intel.com>
17550
17551 * sysdeps/x86_64/multiarch/memset-vec-unaligned-erms.S
17552 (MEMSET_SYMBOL (__memset, erms)): Mark the debugger symbol as
17553 hidden.
17554
17555 2018-05-07 Siddhesh Poyarekar <siddhesh@sourceware.org>
17556
17557 * benchtests/bench-memcpy-walk.c (test_main): Move declaration
17558 of I into loop header.
17559 * benchtests/bench-memmove-walk.c
17560 (test_main): Likewise.
17561
17562 2018-05-07 Alexandre Oliva <oliva@gnu.org>
17563
17564 Revert:
17565 2018-04-30 Raymond Nicholson <rain1@airmail.cc>
17566 * manual/startup.texi (Aborting a Program): Remove inappropriate joke.
17567
17568 2018-05-05 Paul Pluzhnikov <ppluzhnikov@google.com>
17569
17570 [BZ #20419]
17571 * elf/dl-load.c (open_verify): Fix stack overflow.
17572 * elf/Makefile (tst-big-note): New test.
17573 * elf/tst-big-note-lib.S: New.
17574 * elf/tst-big-note.c: New.
17575
17576 2018-05-04 Joseph Myers <joseph@codesourcery.com>
17577
17578 * scripts/abilist.awk: Ignore absolute symbols.
17579 * sysdeps/mach/hurd/i386/ld.abilist: Remove absolute symbols.
17580 * sysdeps/mach/hurd/i386/libBrokenLocale.abilist: Likewise.
17581 * sysdeps/mach/hurd/i386/libanl.abilist: Likewise.
17582 * sysdeps/mach/hurd/i386/libc.abilist: Likewise.
17583 * sysdeps/mach/hurd/i386/libcrypt.abilist: Likewise.
17584 * sysdeps/mach/hurd/i386/libdl.abilist: Likewise.
17585 * sysdeps/mach/hurd/i386/libm.abilist: Likewise.
17586 * sysdeps/mach/hurd/i386/libnsl.abilist: Likewise.
17587 * sysdeps/mach/hurd/i386/libpthread.abilist: Likewise.
17588 * sysdeps/mach/hurd/i386/libresolv.abilist: Likewise.
17589 * sysdeps/mach/hurd/i386/librt.abilist: Likewise.
17590 * sysdeps/mach/hurd/i386/libutil.abilist: Likewise.
17591 * sysdeps/unix/sysv/linux/aarch64/ld.abilist: Likewise.
17592 * sysdeps/unix/sysv/linux/aarch64/libBrokenLocale.abilist: Likewise.
17593 * sysdeps/unix/sysv/linux/aarch64/libanl.abilist: Likewise.
17594 * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Likewise.
17595 * sysdeps/unix/sysv/linux/aarch64/libcrypt.abilist: Likewise.
17596 * sysdeps/unix/sysv/linux/aarch64/libdl.abilist: Likewise.
17597 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
17598 * sysdeps/unix/sysv/linux/aarch64/libnsl.abilist: Likewise.
17599 * sysdeps/unix/sysv/linux/aarch64/libpthread.abilist: Likewise.
17600 * sysdeps/unix/sysv/linux/aarch64/libresolv.abilist: Likewise.
17601 * sysdeps/unix/sysv/linux/aarch64/librt.abilist: Likewise.
17602 * sysdeps/unix/sysv/linux/aarch64/libthread_db.abilist: Likewise.
17603 * sysdeps/unix/sysv/linux/aarch64/libutil.abilist: Likewise.
17604 * sysdeps/unix/sysv/linux/alpha/ld.abilist: Likewise.
17605 * sysdeps/unix/sysv/linux/alpha/libBrokenLocale.abilist: Likewise.
17606 * sysdeps/unix/sysv/linux/alpha/libanl.abilist: Likewise.
17607 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
17608 * sysdeps/unix/sysv/linux/alpha/libcrypt.abilist: Likewise.
17609 * sysdeps/unix/sysv/linux/alpha/libdl.abilist: Likewise.
17610 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
17611 * sysdeps/unix/sysv/linux/alpha/libnsl.abilist: Likewise.
17612 * sysdeps/unix/sysv/linux/alpha/libpthread.abilist: Likewise.
17613 * sysdeps/unix/sysv/linux/alpha/libresolv.abilist: Likewise.
17614 * sysdeps/unix/sysv/linux/alpha/librt.abilist: Likewise.
17615 * sysdeps/unix/sysv/linux/alpha/libthread_db.abilist: Likewise.
17616 * sysdeps/unix/sysv/linux/alpha/libutil.abilist: Likewise.
17617 * sysdeps/unix/sysv/linux/arm/ld.abilist: Likewise.
17618 * sysdeps/unix/sysv/linux/arm/libBrokenLocale.abilist: Likewise.
17619 * sysdeps/unix/sysv/linux/arm/libanl.abilist: Likewise.
17620 * sysdeps/unix/sysv/linux/arm/libc.abilist: Likewise.
17621 * sysdeps/unix/sysv/linux/arm/libcrypt.abilist: Likewise.
17622 * sysdeps/unix/sysv/linux/arm/libdl.abilist: Likewise.
17623 * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
17624 * sysdeps/unix/sysv/linux/arm/libnsl.abilist: Likewise.
17625 * sysdeps/unix/sysv/linux/arm/libpthread.abilist: Likewise.
17626 * sysdeps/unix/sysv/linux/arm/libresolv.abilist: Likewise.
17627 * sysdeps/unix/sysv/linux/arm/librt.abilist: Likewise.
17628 * sysdeps/unix/sysv/linux/arm/libthread_db.abilist: Likewise.
17629 * sysdeps/unix/sysv/linux/arm/libutil.abilist: Likewise.
17630 * sysdeps/unix/sysv/linux/hppa/ld.abilist: Likewise.
17631 * sysdeps/unix/sysv/linux/hppa/libBrokenLocale.abilist: Likewise.
17632 * sysdeps/unix/sysv/linux/hppa/libanl.abilist: Likewise.
17633 * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
17634 * sysdeps/unix/sysv/linux/hppa/libcrypt.abilist: Likewise.
17635 * sysdeps/unix/sysv/linux/hppa/libdl.abilist: Likewise.
17636 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
17637 * sysdeps/unix/sysv/linux/hppa/libnsl.abilist: Likewise.
17638 * sysdeps/unix/sysv/linux/hppa/libpthread.abilist: Likewise.
17639 * sysdeps/unix/sysv/linux/hppa/libresolv.abilist: Likewise.
17640 * sysdeps/unix/sysv/linux/hppa/librt.abilist: Likewise.
17641 * sysdeps/unix/sysv/linux/hppa/libthread_db.abilist: Likewise.
17642 * sysdeps/unix/sysv/linux/hppa/libutil.abilist: Likewise.
17643 * sysdeps/unix/sysv/linux/i386/ld.abilist: Likewise.
17644 * sysdeps/unix/sysv/linux/i386/libBrokenLocale.abilist: Likewise.
17645 * sysdeps/unix/sysv/linux/i386/libanl.abilist: Likewise.
17646 * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
17647 * sysdeps/unix/sysv/linux/i386/libcrypt.abilist: Likewise.
17648 * sysdeps/unix/sysv/linux/i386/libdl.abilist: Likewise.
17649 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
17650 * sysdeps/unix/sysv/linux/i386/libnsl.abilist: Likewise.
17651 * sysdeps/unix/sysv/linux/i386/libpthread.abilist: Likewise.
17652 * sysdeps/unix/sysv/linux/i386/libresolv.abilist: Likewise.
17653 * sysdeps/unix/sysv/linux/i386/librt.abilist: Likewise.
17654 * sysdeps/unix/sysv/linux/i386/libthread_db.abilist: Likewise.
17655 * sysdeps/unix/sysv/linux/i386/libutil.abilist: Likewise.
17656 * sysdeps/unix/sysv/linux/ia64/ld.abilist: Likewise.
17657 * sysdeps/unix/sysv/linux/ia64/libBrokenLocale.abilist: Likewise.
17658 * sysdeps/unix/sysv/linux/ia64/libanl.abilist: Likewise.
17659 * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
17660 * sysdeps/unix/sysv/linux/ia64/libcrypt.abilist: Likewise.
17661 * sysdeps/unix/sysv/linux/ia64/libdl.abilist: Likewise.
17662 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
17663 * sysdeps/unix/sysv/linux/ia64/libnsl.abilist: Likewise.
17664 * sysdeps/unix/sysv/linux/ia64/libpthread.abilist: Likewise.
17665 * sysdeps/unix/sysv/linux/ia64/libresolv.abilist: Likewise.
17666 * sysdeps/unix/sysv/linux/ia64/librt.abilist: Likewise.
17667 * sysdeps/unix/sysv/linux/ia64/libthread_db.abilist: Likewise.
17668 * sysdeps/unix/sysv/linux/ia64/libutil.abilist: Likewise.
17669 * sysdeps/unix/sysv/linux/m68k/coldfire/ld.abilist: Likewise.
17670 * sysdeps/unix/sysv/linux/m68k/coldfire/libBrokenLocale.abilist:
17671 Likewise.
17672 * sysdeps/unix/sysv/linux/m68k/coldfire/libanl.abilist: Likewise.
17673 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
17674 * sysdeps/unix/sysv/linux/m68k/coldfire/libcrypt.abilist: Likewise.
17675 * sysdeps/unix/sysv/linux/m68k/coldfire/libdl.abilist: Likewise.
17676 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
17677 * sysdeps/unix/sysv/linux/m68k/coldfire/libnsl.abilist: Likewise.
17678 * sysdeps/unix/sysv/linux/m68k/coldfire/libpthread.abilist: Likewise.
17679 * sysdeps/unix/sysv/linux/m68k/coldfire/libresolv.abilist: Likewise.
17680 * sysdeps/unix/sysv/linux/m68k/coldfire/librt.abilist: Likewise.
17681 * sysdeps/unix/sysv/linux/m68k/coldfire/libthread_db.abilist: Likewise.
17682 * sysdeps/unix/sysv/linux/m68k/coldfire/libutil.abilist: Likewise.
17683 * sysdeps/unix/sysv/linux/m68k/m680x0/ld.abilist: Likewise.
17684 * sysdeps/unix/sysv/linux/m68k/m680x0/libBrokenLocale.abilist:
17685 Likewise.
17686 * sysdeps/unix/sysv/linux/m68k/m680x0/libanl.abilist: Likewise.
17687 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
17688 * sysdeps/unix/sysv/linux/m68k/m680x0/libcrypt.abilist: Likewise.
17689 * sysdeps/unix/sysv/linux/m68k/m680x0/libdl.abilist: Likewise.
17690 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
17691 * sysdeps/unix/sysv/linux/m68k/m680x0/libnsl.abilist: Likewise.
17692 * sysdeps/unix/sysv/linux/m68k/m680x0/libpthread.abilist: Likewise.
17693 * sysdeps/unix/sysv/linux/m68k/m680x0/libresolv.abilist: Likewise.
17694 * sysdeps/unix/sysv/linux/m68k/m680x0/librt.abilist: Likewise.
17695 * sysdeps/unix/sysv/linux/m68k/m680x0/libthread_db.abilist: Likewise.
17696 * sysdeps/unix/sysv/linux/m68k/m680x0/libutil.abilist: Likewise.
17697 * sysdeps/unix/sysv/linux/microblaze/ld.abilist: Likewise.
17698 * sysdeps/unix/sysv/linux/microblaze/libBrokenLocale.abilist: Likewise.
17699 * sysdeps/unix/sysv/linux/microblaze/libanl.abilist: Likewise.
17700 * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
17701 * sysdeps/unix/sysv/linux/microblaze/libcrypt.abilist: Likewise.
17702 * sysdeps/unix/sysv/linux/microblaze/libdl.abilist: Likewise.
17703 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
17704 * sysdeps/unix/sysv/linux/microblaze/libnsl.abilist: Likewise.
17705 * sysdeps/unix/sysv/linux/microblaze/libpthread.abilist: Likewise.
17706 * sysdeps/unix/sysv/linux/microblaze/libresolv.abilist: Likewise.
17707 * sysdeps/unix/sysv/linux/microblaze/librt.abilist: Likewise.
17708 * sysdeps/unix/sysv/linux/microblaze/libthread_db.abilist: Likewise.
17709 * sysdeps/unix/sysv/linux/microblaze/libutil.abilist: Likewise.
17710 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
17711 * sysdeps/unix/sysv/linux/mips/mips32/ld.abilist: Likewise.
17712 * sysdeps/unix/sysv/linux/mips/mips32/libBrokenLocale.abilist:
17713 Likewise.
17714 * sysdeps/unix/sysv/linux/mips/mips32/libanl.abilist: Likewise.
17715 * sysdeps/unix/sysv/linux/mips/mips32/libcidn.abilist: Likewise.
17716 * sysdeps/unix/sysv/linux/mips/mips32/libcrypt.abilist: Likewise.
17717 * sysdeps/unix/sysv/linux/mips/mips32/libdl.abilist: Likewise.
17718 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
17719 * sysdeps/unix/sysv/linux/mips/mips32/libnsl.abilist: Likewise.
17720 * sysdeps/unix/sysv/linux/mips/mips32/libnss_compat.abilist: Likewise.
17721 * sysdeps/unix/sysv/linux/mips/mips32/libnss_db.abilist: Likewise.
17722 * sysdeps/unix/sysv/linux/mips/mips32/libnss_dns.abilist: Likewise.
17723 * sysdeps/unix/sysv/linux/mips/mips32/libnss_files.abilist: Likewise.
17724 * sysdeps/unix/sysv/linux/mips/mips32/libnss_hesiod.abilist: Likewise.
17725 * sysdeps/unix/sysv/linux/mips/mips32/libnss_nis.abilist: Likewise.
17726 * sysdeps/unix/sysv/linux/mips/mips32/libnss_nisplus.abilist: Likewise.
17727 * sysdeps/unix/sysv/linux/mips/mips32/libpthread.abilist: Likewise.
17728 * sysdeps/unix/sysv/linux/mips/mips32/libresolv.abilist: Likewise.
17729 * sysdeps/unix/sysv/linux/mips/mips32/librt.abilist: Likewise.
17730 * sysdeps/unix/sysv/linux/mips/mips32/libthread_db.abilist: Likewise.
17731 * sysdeps/unix/sysv/linux/mips/mips32/libutil.abilist: Likewise.
17732 * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist: Likewise.
17733 * sysdeps/unix/sysv/linux/mips/mips64/libBrokenLocale.abilist:
17734 Likewise.
17735 * sysdeps/unix/sysv/linux/mips/mips64/libanl.abilist: Likewise.
17736 * sysdeps/unix/sysv/linux/mips/mips64/libcrypt.abilist: Likewise.
17737 * sysdeps/unix/sysv/linux/mips/mips64/libdl.abilist: Likewise.
17738 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
17739 * sysdeps/unix/sysv/linux/mips/mips64/libnsl.abilist: Likewise.
17740 * sysdeps/unix/sysv/linux/mips/mips64/libpthread.abilist: Likewise.
17741 * sysdeps/unix/sysv/linux/mips/mips64/librt.abilist: Likewise.
17742 * sysdeps/unix/sysv/linux/mips/mips64/libthread_db.abilist: Likewise.
17743 * sysdeps/unix/sysv/linux/mips/mips64/libutil.abilist: Likewise.
17744 * sysdeps/unix/sysv/linux/mips/mips64/n32/ld.abilist: Likewise.
17745 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
17746 * sysdeps/unix/sysv/linux/mips/mips64/n32/libresolv.abilist: Likewise.
17747 * sysdeps/unix/sysv/linux/mips/mips64/n64/ld.abilist: Likewise.
17748 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
17749 * sysdeps/unix/sysv/linux/mips/mips64/n64/libresolv.abilist: Likewise.
17750 * sysdeps/unix/sysv/linux/nios2/ld.abilist: Likewise.
17751 * sysdeps/unix/sysv/linux/nios2/libBrokenLocale.abilist: Likewise.
17752 * sysdeps/unix/sysv/linux/nios2/libanl.abilist: Likewise.
17753 * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise.
17754 * sysdeps/unix/sysv/linux/nios2/libcrypt.abilist: Likewise.
17755 * sysdeps/unix/sysv/linux/nios2/libdl.abilist: Likewise.
17756 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
17757 * sysdeps/unix/sysv/linux/nios2/libnsl.abilist: Likewise.
17758 * sysdeps/unix/sysv/linux/nios2/libpthread.abilist: Likewise.
17759 * sysdeps/unix/sysv/linux/nios2/libresolv.abilist: Likewise.
17760 * sysdeps/unix/sysv/linux/nios2/librt.abilist: Likewise.
17761 * sysdeps/unix/sysv/linux/nios2/libthread_db.abilist: Likewise.
17762 * sysdeps/unix/sysv/linux/nios2/libutil.abilist: Likewise.
17763 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist: Likewise.
17764 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Likewise.
17765 * sysdeps/unix/sysv/linux/powerpc/powerpc32/ld.abilist: Likewise.
17766 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libBrokenLocale.abilist:
17767 Likewise.
17768 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libanl.abilist: Likewise.
17769 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libcrypt.abilist: Likewise.
17770 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libdl.abilist: Likewise.
17771 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libnsl.abilist: Likewise.
17772 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libpthread.abilist:
17773 Likewise.
17774 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libresolv.abilist:
17775 Likewise.
17776 * sysdeps/unix/sysv/linux/powerpc/powerpc32/librt.abilist: Likewise.
17777 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libthread_db.abilist:
17778 Likewise.
17779 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libutil.abilist: Likewise.
17780 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
17781 Likewise.
17782 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
17783 Likewise.
17784 * sysdeps/unix/sysv/linux/powerpc/powerpc64/ld-le.abilist: Likewise.
17785 * sysdeps/unix/sysv/linux/powerpc/powerpc64/ld.abilist: Likewise.
17786 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libBrokenLocale-le.abilist:
17787 Likewise.
17788 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libBrokenLocale.abilist:
17789 Likewise.
17790 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libanl-le.abilist:
17791 Likewise.
17792 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libanl.abilist: Likewise.
17793 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist: Likewise.
17794 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist: Likewise.
17795 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libcrypt-le.abilist:
17796 Likewise.
17797 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libcrypt.abilist: Likewise.
17798 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libdl-le.abilist: Likewise.
17799 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libdl.abilist: Likewise.
17800 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Likewise.
17801 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Likewise.
17802 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libnsl-le.abilist:
17803 Likewise.
17804 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libnsl.abilist: Likewise.
17805 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libpthread-le.abilist:
17806 Likewise.
17807 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libpthread.abilist:
17808 Likewise.
17809 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libresolv-le.abilist:
17810 Likewise.
17811 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libresolv.abilist:
17812 Likewise.
17813 * sysdeps/unix/sysv/linux/powerpc/powerpc64/librt-le.abilist: Likewise.
17814 * sysdeps/unix/sysv/linux/powerpc/powerpc64/librt.abilist: Likewise.
17815 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libthread_db-le.abilist:
17816 Likewise.
17817 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libthread_db.abilist:
17818 Likewise.
17819 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libutil-le.abilist:
17820 Likewise.
17821 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libutil.abilist: Likewise.
17822 * sysdeps/unix/sysv/linux/riscv/rv64/ld.abilist: Likewise.
17823 * sysdeps/unix/sysv/linux/riscv/rv64/libBrokenLocale.abilist:
17824 Likewise.
17825 * sysdeps/unix/sysv/linux/riscv/rv64/libanl.abilist: Likewise.
17826 * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist: Likewise.
17827 * sysdeps/unix/sysv/linux/riscv/rv64/libcrypt.abilist: Likewise.
17828 * sysdeps/unix/sysv/linux/riscv/rv64/libdl.abilist: Likewise.
17829 * sysdeps/unix/sysv/linux/riscv/rv64/libm.abilist: Likewise.
17830 * sysdeps/unix/sysv/linux/riscv/rv64/libnsl.abilist: Likewise.
17831 * sysdeps/unix/sysv/linux/riscv/rv64/libpthread.abilist: Likewise.
17832 * sysdeps/unix/sysv/linux/riscv/rv64/libresolv.abilist: Likewise.
17833 * sysdeps/unix/sysv/linux/riscv/rv64/librt.abilist: Likewise.
17834 * sysdeps/unix/sysv/linux/riscv/rv64/libthread_db.abilist: Likewise.
17835 * sysdeps/unix/sysv/linux/riscv/rv64/libutil.abilist: Likewise.
17836 * sysdeps/unix/sysv/linux/s390/libanl.abilist: Likewise.
17837 * sysdeps/unix/sysv/linux/s390/s390-32/ld.abilist: Likewise.
17838 * sysdeps/unix/sysv/linux/s390/s390-32/libBrokenLocale.abilist:
17839 Likewise.
17840 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
17841 * sysdeps/unix/sysv/linux/s390/s390-32/libcrypt.abilist: Likewise.
17842 * sysdeps/unix/sysv/linux/s390/s390-32/libdl.abilist: Likewise.
17843 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
17844 * sysdeps/unix/sysv/linux/s390/s390-32/libnsl.abilist: Likewise.
17845 * sysdeps/unix/sysv/linux/s390/s390-32/libpthread.abilist: Likewise.
17846 * sysdeps/unix/sysv/linux/s390/s390-32/libresolv.abilist: Likewise.
17847 * sysdeps/unix/sysv/linux/s390/s390-32/librt.abilist: Likewise.
17848 * sysdeps/unix/sysv/linux/s390/s390-32/libthread_db.abilist: Likewise.
17849 * sysdeps/unix/sysv/linux/s390/s390-32/libutil.abilist: Likewise.
17850 * sysdeps/unix/sysv/linux/s390/s390-64/ld.abilist: Likewise.
17851 * sysdeps/unix/sysv/linux/s390/s390-64/libBrokenLocale.abilist:
17852 Likewise.
17853 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
17854 * sysdeps/unix/sysv/linux/s390/s390-64/libcrypt.abilist: Likewise.
17855 * sysdeps/unix/sysv/linux/s390/s390-64/libdl.abilist: Likewise.
17856 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
17857 * sysdeps/unix/sysv/linux/s390/s390-64/libnsl.abilist: Likewise.
17858 * sysdeps/unix/sysv/linux/s390/s390-64/libpthread.abilist: Likewise.
17859 * sysdeps/unix/sysv/linux/s390/s390-64/libresolv.abilist: Likewise.
17860 * sysdeps/unix/sysv/linux/s390/s390-64/librt.abilist: Likewise.
17861 * sysdeps/unix/sysv/linux/s390/s390-64/libthread_db.abilist: Likewise.
17862 * sysdeps/unix/sysv/linux/s390/s390-64/libutil.abilist: Likewise.
17863 * sysdeps/unix/sysv/linux/sh/ld.abilist: Likewise.
17864 * sysdeps/unix/sysv/linux/sh/libBrokenLocale.abilist: Likewise.
17865 * sysdeps/unix/sysv/linux/sh/libanl.abilist: Likewise.
17866 * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
17867 * sysdeps/unix/sysv/linux/sh/libcrypt.abilist: Likewise.
17868 * sysdeps/unix/sysv/linux/sh/libdl.abilist: Likewise.
17869 * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
17870 * sysdeps/unix/sysv/linux/sh/libnsl.abilist: Likewise.
17871 * sysdeps/unix/sysv/linux/sh/libpthread.abilist: Likewise.
17872 * sysdeps/unix/sysv/linux/sh/libresolv.abilist: Likewise.
17873 * sysdeps/unix/sysv/linux/sh/librt.abilist: Likewise.
17874 * sysdeps/unix/sysv/linux/sh/libthread_db.abilist: Likewise.
17875 * sysdeps/unix/sysv/linux/sh/libutil.abilist: Likewise.
17876 * sysdeps/unix/sysv/linux/sparc/sparc32/ld.abilist: Likewise.
17877 * sysdeps/unix/sysv/linux/sparc/sparc32/libBrokenLocale.abilist:
17878 Likewise.
17879 * sysdeps/unix/sysv/linux/sparc/sparc32/libanl.abilist: Likewise.
17880 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
17881 * sysdeps/unix/sysv/linux/sparc/sparc32/libcrypt.abilist: Likewise.
17882 * sysdeps/unix/sysv/linux/sparc/sparc32/libdl.abilist: Likewise.
17883 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
17884 * sysdeps/unix/sysv/linux/sparc/sparc32/libnsl.abilist: Likewise.
17885 * sysdeps/unix/sysv/linux/sparc/sparc32/libpthread.abilist: Likewise.
17886 * sysdeps/unix/sysv/linux/sparc/sparc32/libresolv.abilist: Likewise.
17887 * sysdeps/unix/sysv/linux/sparc/sparc32/librt.abilist: Likewise.
17888 * sysdeps/unix/sysv/linux/sparc/sparc32/libthread_db.abilist: Likewise.
17889 * sysdeps/unix/sysv/linux/sparc/sparc32/libutil.abilist: Likewise.
17890 * sysdeps/unix/sysv/linux/sparc/sparc64/ld.abilist: Likewise.
17891 * sysdeps/unix/sysv/linux/sparc/sparc64/libBrokenLocale.abilist:
17892 Likewise.
17893 * sysdeps/unix/sysv/linux/sparc/sparc64/libanl.abilist: Likewise.
17894 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
17895 * sysdeps/unix/sysv/linux/sparc/sparc64/libcrypt.abilist: Likewise.
17896 * sysdeps/unix/sysv/linux/sparc/sparc64/libdl.abilist: Likewise.
17897 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
17898 * sysdeps/unix/sysv/linux/sparc/sparc64/libnsl.abilist: Likewise.
17899 * sysdeps/unix/sysv/linux/sparc/sparc64/libpthread.abilist: Likewise.
17900 * sysdeps/unix/sysv/linux/sparc/sparc64/libresolv.abilist: Likewise.
17901 * sysdeps/unix/sysv/linux/sparc/sparc64/librt.abilist: Likewise.
17902 * sysdeps/unix/sysv/linux/sparc/sparc64/libthread_db.abilist: Likewise.
17903 * sysdeps/unix/sysv/linux/sparc/sparc64/libutil.abilist: Likewise.
17904 * sysdeps/unix/sysv/linux/x86_64/64/ld.abilist: Likewise.
17905 * sysdeps/unix/sysv/linux/x86_64/64/libBrokenLocale.abilist: Likewise.
17906 * sysdeps/unix/sysv/linux/x86_64/64/libanl.abilist: Likewise.
17907 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
17908 * sysdeps/unix/sysv/linux/x86_64/64/libcrypt.abilist: Likewise.
17909 * sysdeps/unix/sysv/linux/x86_64/64/libdl.abilist: Likewise.
17910 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
17911 * sysdeps/unix/sysv/linux/x86_64/64/libnsl.abilist: Likewise.
17912 * sysdeps/unix/sysv/linux/x86_64/64/libpthread.abilist: Likewise.
17913 * sysdeps/unix/sysv/linux/x86_64/64/libresolv.abilist: Likewise.
17914 * sysdeps/unix/sysv/linux/x86_64/64/librt.abilist: Likewise.
17915 * sysdeps/unix/sysv/linux/x86_64/64/libthread_db.abilist: Likewise.
17916 * sysdeps/unix/sysv/linux/x86_64/64/libutil.abilist: Likewise.
17917 * sysdeps/unix/sysv/linux/x86_64/libmvec.abilist: Likewise.
17918 * sysdeps/unix/sysv/linux/x86_64/x32/ld.abilist: Likewise.
17919 * sysdeps/unix/sysv/linux/x86_64/x32/libBrokenLocale.abilist: Likewise.
17920 * sysdeps/unix/sysv/linux/x86_64/x32/libanl.abilist: Likewise.
17921 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
17922 * sysdeps/unix/sysv/linux/x86_64/x32/libcrypt.abilist: Likewise.
17923 * sysdeps/unix/sysv/linux/x86_64/x32/libdl.abilist: Likewise.
17924 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
17925 * sysdeps/unix/sysv/linux/x86_64/x32/libnsl.abilist: Likewise.
17926 * sysdeps/unix/sysv/linux/x86_64/x32/libpthread.abilist: Likewise.
17927 * sysdeps/unix/sysv/linux/x86_64/x32/libresolv.abilist: Likewise.
17928 * sysdeps/unix/sysv/linux/x86_64/x32/librt.abilist: Likewise.
17929 * sysdeps/unix/sysv/linux/x86_64/x32/libthread_db.abilist: Likewise.
17930 * sysdeps/unix/sysv/linux/x86_64/x32/libutil.abilist: Likewise.
17931
17932 2018-05-04 Stefan Liebler <stli@linux.vnet.ibm.com>
17933
17934 [BZ #23137]
17935 * sysdeps/nptl/lowlevellock.h (lll_wait_tid):
17936 Use atomic_load_acquire to load __tid.
17937
17938 2018-05-02 H.J. Lu <hongjiu.lu@intel.com>
17939
17940 * sysdeps/unix/sysv/linux/x86_64/swapcontext.S (__swapcontext):
17941 Restore the pointer into %rdx, after syscall and use %rdx,
17942 instead of %rsi, to restore context.
17943
17944 2018-05-02 H.J. Lu <hongjiu.lu@intel.com>
17945
17946 * sysdeps/unix/sysv/linux/x86_64/setcontext.S (__setcontext):
17947 Pop the pointer into %rdx after syscall and use %rdx, instead
17948 of %rsi, to restore context.
17949
17950 2018-05-02 H.J. Lu <hongjiu.lu@intel.com>
17951
17952 * nptl/pthread_create.c (START_THREAD_DEFN): Clear previous
17953 handlers after setjmp.
17954 * setjmp/longjmp.c (__libc_longjmp): Don't define alias if
17955 defined.
17956 * sysdeps/unix/sysv/linux/x86/setjmpP.h: Include
17957 <libc-pointer-arith.h>.
17958 (_JUMP_BUF_SIGSET_BITS_PER_WORD): New.
17959 (_JUMP_BUF_SIGSET_NSIG): Changed to 96.
17960 (_JUMP_BUF_SIGSET_NWORDS): Changed to use ALIGN_UP and
17961 _JUMP_BUF_SIGSET_BITS_PER_WORD.
17962 * sysdeps/x86/Makefile (sysdep_routines): Add __longjmp_cancel.
17963 * sysdeps/x86/__longjmp_cancel.S: New file.
17964 * sysdeps/x86/longjmp.c: Likewise.
17965 * sysdeps/x86/nptl/pt-longjmp.c: Likewise.
17966
17967 2018-05-02 Adhemerval Zanella <adhemerval.zanella@linaro.org>
17968
17969 * NEWS: Add ustat.h deprecation entry.
17970 * bits/ustat.h: Remove file.
17971 * misc/sys/ustat.h: Likewise.
17972 * misc/ustat.h: Likewise.
17973 * sysdeps/unix/sysv/linux/generic/ustat.c: Likewise.
17974 * misc/Makefile (headers): Remove ustat.h and sys/ustat.h.
17975 * misc/ustat.c (__ustat): Rename to __old_ustat and export only in
17976 compatibility mode.
17977 * sysdeps/unix/sysv/linux/ustat.c (__ustat): Likewise.
17978 * sysdeps/unix/sysv/linux/mips/ustat.c: Define DEV_TO_KDEV and use
17979 generic Linux implementation.
17980
17981 2018-04-30 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
17982
17983 * math/w_exp_compat.c: Replace hidden_def with libm_hidden_def..
17984 * math/w_expl_compat.c: Likewise.
17985 * math/w_exp_template.c: Likewise. Remove hidden_def_x.
17986
17987 2018-04-30 Raymond Nicholson <rain1@airmail.cc>
17988
17989 * manual/startup.texi (Aborting a Program): Remove inappropriate joke.
17990
17991 2018-04-27 Adhemerval Zanella <adhemerval.zanella@linaro.org>
17992
17993 * sysdeps/unix/sysv/linux/arm/readahead.c: Remove file.
17994 * sysdeps/unix/sysv/linux/mips/mips32/readahead.c: Likewise.
17995 * sysdeps/unix/sysv/linux/mips/mips64/n32/syscalls.list (readahead):
17996 Remove.
17997 * sysdeps/unix/sysv/linux/mips/mips64/n64/syscalls.list: Likewise.
17998 * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list: Likewise.
17999 * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Likewise.
18000 * sysdeps/unix/sysv/linux/readahead.c (__readahead): Assume
18001 __NR_readahead existence, and use INLINE_SYSCALL_CALL, __ALIGNMENT_ARG,
18002 and SYSCALL_LL64.
18003
18004 2018-04-27 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
18005
18006 * math/e_exp2_template.c: Replace M_SUF (M_LN2) with M_MLIT (M_LN2).
18007
18008 * math/w_acos_template.c: Replace M_SUF (fabs) with M_FABS.
18009 * math/w_asin_template.c: Likewise.
18010 * math/w_atanh_template.c: Likewise.
18011
18012 2018-04-27 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
18013
18014 * sysdeps/powerpc/preconfigure [machine == powerpc64] (machine): Define
18015 to powerpc/powerpc64/be for big-endian.
18016 [machine == powerpc64le]: Define to powerpc/powerpc64/le for
18017 little-endian.
18018
18019 * sysdeps/powerpc/powerpc64/power4/Implies: Move to powerpc64/be.
18020 * sysdeps/powerpc/powerpc64/power4/fpu/Implies: Likewise.
18021 * sysdeps/powerpc/powerpc64/power4/fpu/multiarch/Implies: Likewise.
18022 * sysdeps/powerpc/powerpc64/power4/multiarch/Implies: Likewise.
18023 * sysdeps/powerpc/powerpc64/power5+/Implies: Likewise.
18024 * sysdeps/powerpc/powerpc64/power5+/fpu/Implies: Likewise.
18025 * sysdeps/powerpc/powerpc64/power5+/fpu/multiarch/Implies: Likewise.
18026 * sysdeps/powerpc/powerpc64/power5+/multiarch/Implies: Likewise.
18027 * sysdeps/powerpc/powerpc64/power5/Implies: Likewise.
18028 * sysdeps/powerpc/powerpc64/power5/fpu/Implies: Likewise.
18029 * sysdeps/powerpc/powerpc64/power5/fpu/multiarch/Implies: Likewise.
18030 * sysdeps/powerpc/powerpc64/power5/multiarch/Implies: Likewise.
18031 * sysdeps/powerpc/powerpc64/power6/Implies: Likewise.
18032 * sysdeps/powerpc/powerpc64/power6/fpu/Implies: Likewise.
18033 * sysdeps/powerpc/powerpc64/power6/fpu/multiarch/Implies: Likewise.
18034 * sysdeps/powerpc/powerpc64/power6/multiarch/Implies: Likewise.
18035 * sysdeps/powerpc/powerpc64/power6x/Implies: Likewise.
18036 * sysdeps/powerpc/powerpc64/power6x/fpu/Implies: Likewise.
18037 * sysdeps/powerpc/powerpc64/power6x/fpu/multiarch/Implies: Likewise.
18038 * sysdeps/powerpc/powerpc64/power6x/multiarch/Implies: Likewise.
18039 * sysdeps/powerpc/powerpc64/power7/Implies: Likewise.
18040 * sysdeps/powerpc/powerpc64/power7/fpu/Implies: Likewise.
18041 * sysdeps/powerpc/powerpc64/power7/fpu/multiarch/Implies: Likewise.
18042 * sysdeps/powerpc/powerpc64/power7/multiarch/Implies: Likewise.
18043 * sysdeps/powerpc/powerpc64/power8/Implies: Likewise.
18044 * sysdeps/powerpc/powerpc64/power8/fpu/Implies: Likewise.
18045 * sysdeps/powerpc/powerpc64/power8/fpu/multiarch/Implies: Likewise.
18046 * sysdeps/powerpc/powerpc64/power8/multiarch/Implies: Likewise.
18047 * sysdeps/powerpc/powerpc64/power9/Implies: Likewise.
18048 * sysdeps/powerpc/powerpc64/power9/fpu/Implies: Likewise.
18049 * sysdeps/powerpc/powerpc64/power9/fpu/multiarch/Implies: Likewise.
18050 * sysdeps/powerpc/powerpc64/power9/multiarch/Implies: Likewise.
18051
18052 * sysdeps/powerpc/powerpc64/be/power4/Implies: Move from powerpc64 and
18053 adjusted to imply powerpc64 and older processors on powerpc64/be.
18054 * sysdeps/powerpc/powerpc64/be/power4/fpu/Implies: Likewise.
18055 * sysdeps/powerpc/powerpc64/be/power4/fpu/multiarch/Implies: Likewise.
18056 * sysdeps/powerpc/powerpc64/be/power4/multiarch/Implies: Likewise.
18057 * sysdeps/powerpc/powerpc64/be/power5+/Implies: Likewise.
18058 * sysdeps/powerpc/powerpc64/be/power5+/fpu/Implies: Likewise.
18059 * sysdeps/powerpc/powerpc64/be/power5+/fpu/multiarch/Implies: Likewise.
18060 * sysdeps/powerpc/powerpc64/be/power5+/multiarch/Implies: Likewise.
18061 * sysdeps/powerpc/powerpc64/be/power5/Implies: Likewise.
18062 * sysdeps/powerpc/powerpc64/be/power5/fpu/Implies: Likewise.
18063 * sysdeps/powerpc/powerpc64/be/power5/fpu/multiarch/Implies: Likewise.
18064 * sysdeps/powerpc/powerpc64/be/power5/multiarch/Implies: Likewise.
18065 * sysdeps/powerpc/powerpc64/be/power6/Implies: Likewise.
18066 * sysdeps/powerpc/powerpc64/be/power6/fpu/Implies: Likewise.
18067 * sysdeps/powerpc/powerpc64/be/power6/fpu/multiarch/Implies: Likewise.
18068 * sysdeps/powerpc/powerpc64/be/power6/multiarch/Implies: Likewise.
18069 * sysdeps/powerpc/powerpc64/be/power6x/Implies: Likewise.
18070 * sysdeps/powerpc/powerpc64/be/power6x/fpu/Implies: Likewise.
18071 * sysdeps/powerpc/powerpc64/be/power6x/fpu/multiarch/Implies: Likewise.
18072 * sysdeps/powerpc/powerpc64/be/power6x/multiarch/Implies: Likewise.
18073 * sysdeps/powerpc/powerpc64/be/power7/Implies: Likewise.
18074 * sysdeps/powerpc/powerpc64/be/power7/fpu/Implies: Likewise.
18075 * sysdeps/powerpc/powerpc64/be/power7/fpu/multiarch/Implies: Likewise.
18076 * sysdeps/powerpc/powerpc64/be/power7/multiarch/Implies: Likewise.
18077 * sysdeps/powerpc/powerpc64/be/power8/Implies: Likewise.
18078 * sysdeps/powerpc/powerpc64/be/power8/fpu/Implies: Likewise.
18079 * sysdeps/powerpc/powerpc64/be/power8/fpu/multiarch/Implies: Likewise.
18080 * sysdeps/powerpc/powerpc64/be/power8/multiarch/Implies: Likewise.
18081 * sysdeps/powerpc/powerpc64/be/power9/Implies: Likewise.
18082 * sysdeps/powerpc/powerpc64/be/power9/fpu/Implies: Likewise.
18083 * sysdeps/powerpc/powerpc64/be/power9/fpu/multiarch/Implies: Likewise.
18084 * sysdeps/powerpc/powerpc64/be/power9/multiarch/Implies: Likewise.
18085
18086 * sysdeps/powerpc/powerpc64/970/Implies: Move to powerpc64/be.
18087 * sysdeps/powerpc/powerpc64/be/970/Implies: Move from powerpc64/be.
18088 * sysdeps/powerpc/powerpc64/be/a2/Implies: New file.
18089 * sysdeps/powerpc/powerpc64/be/cell/Implies: Likewise.
18090
18091 * sysdeps/powerpc/powerpc64/be/Implies: New file.
18092 * sysdeps/powerpc/powerpc64/be/fpu/Implies: Likewise.
18093 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/Implies: Likewise.
18094 * sysdeps/powerpc/powerpc64/be/multiarch/Implies: Likewise.
18095
18096 * sysdeps/powerpc/powerpc64le/Implies: Move to powerpc64/le.
18097 * sysdeps/powerpc/powerpc64le/Implies-before: Likewise.
18098 * sysdeps/powerpc/powerpc64le/Makefile: Likewise.
18099 * sysdeps/powerpc/powerpc64le/configure: Likewise.
18100 * sysdeps/powerpc/powerpc64le/configure.ac: Likewise.
18101 * sysdeps/powerpc/powerpc64le/fpu/Implies: Likewise.
18102 * sysdeps/powerpc/powerpc64le/fpu/e_sqrtf128.c: Likewise.
18103 * sysdeps/powerpc/powerpc64le/fpu/multiarch/Implies: Likewise.
18104 * sysdeps/powerpc/powerpc64le/fpu/sfp-machine.h: Likewise.
18105 * sysdeps/powerpc/powerpc64le/multiarch/Implies: Likewise.
18106 * sysdeps/powerpc/powerpc64le/power9/fpu/e_sqrtf128.c: Likewise.
18107
18108 * sysdeps/powerpc/powerpc64/le/Implies: Move from powerpc64le.
18109 * sysdeps/powerpc/powerpc64/le/Implies-before: Likewise.
18110 * sysdeps/powerpc/powerpc64/le/Makefile: Likewise.
18111 * sysdeps/powerpc/powerpc64/le/configure: Likewise.
18112 * sysdeps/powerpc/powerpc64/le/configure.ac: Likewise.
18113 * sysdeps/powerpc/powerpc64/le/fpu/Implies: Likewise.
18114 * sysdeps/powerpc/powerpc64/le/fpu/e_sqrtf128.c: Likewise.
18115 * sysdeps/powerpc/powerpc64/le/fpu/multiarch/Implies: Likewise.
18116 * sysdeps/powerpc/powerpc64/le/fpu/sfp-machine.h: Likewise.
18117 * sysdeps/powerpc/powerpc64/le/multiarch/Implies: Likewise.
18118 * sysdeps/powerpc/powerpc64/le/power9/fpu/e_sqrtf128.c: Likewise.
18119
18120 * sysdeps/powerpc/powerpc64le/power7/Implies: Move to powerpc64/le.
18121 * sysdeps/powerpc/powerpc64le/power7/fpu/Implies: Likewise.
18122 * sysdeps/powerpc/powerpc64le/power7/fpu/multiarch/Implies: Likewise.
18123 * sysdeps/powerpc/powerpc64le/power7/multiarch/Implies: Likewise.
18124 * sysdeps/powerpc/powerpc64le/power8/Implies: Likewise.
18125 * sysdeps/powerpc/powerpc64le/power8/fpu/Implies: Likewise.
18126 * sysdeps/powerpc/powerpc64le/power8/fpu/multiarch/Implies: Likewise.
18127 * sysdeps/powerpc/powerpc64le/power8/multiarch/Implies: Likewise.
18128 * sysdeps/powerpc/powerpc64le/power9/Implies: Likewise.
18129 * sysdeps/powerpc/powerpc64le/power9/fpu/Implies: Likewise.
18130 * sysdeps/powerpc/powerpc64le/power9/fpu/multiarch/Implies: Likewise.
18131 * sysdeps/powerpc/powerpc64le/power9/multiarch/Implies: Likewise.
18132
18133 * sysdeps/powerpc/powerpc64/le/power7/Implies: Move from powerpc64le
18134 and adjusted to imply olders processors.
18135 * sysdeps/powerpc/powerpc64/le/power7/fpu/Implies: Likewise.
18136 * sysdeps/powerpc/powerpc64/le/power7/fpu/multiarch/Implies: Likewise.
18137 * sysdeps/powerpc/powerpc64/le/power7/multiarch/Implies: Likewise.
18138 * sysdeps/powerpc/powerpc64/le/power8/Implies: Likewise.
18139 * sysdeps/powerpc/powerpc64/le/power8/fpu/Implies: Likewise.
18140 * sysdeps/powerpc/powerpc64/le/power8/fpu/multiarch/Implies: Likewise.
18141 * sysdeps/powerpc/powerpc64/le/power8/multiarch/Implies: Likewise.
18142 * sysdeps/powerpc/powerpc64/le/power9/Implies: Likewise.
18143 * sysdeps/powerpc/powerpc64/le/power9/fpu/Implies: Likewise.
18144 * sysdeps/powerpc/powerpc64/le/power9/fpu/multiarch/Implies: Likewise.
18145 * sysdeps/powerpc/powerpc64/le/power9/multiarch/Implies: Likewise.
18146
18147 * sysdeps/unix/sysv/linux/powerpc/powerpc64le/Implies: Move to
18148 powerpc64/le.
18149 * sysdeps/unix/sysv/linux/powerpc/powerpc64le/float128-abi.h: Likewise.
18150 * sysdeps/unix/sysv/linux/powerpc/powerpc64le/fpu/Implies: Likewise.
18151
18152 * sysdeps/unix/sysv/linux/powerpc/powerpc64/le/Implies: Move from
18153 powerpc64le.
18154 * sysdeps/unix/sysv/linux/powerpc/powerpc64/le/float128-abi.h: Likewise.
18155 * sysdeps/unix/sysv/linux/powerpc/powerpc64/le/fpu/Implies: Likewise.
18156
18157 * sysdeps/unix/sysv/linux/powerpc/powerpc64/970/Implies: Move to
18158 powerpc64/be.
18159 * sysdeps/unix/sysv/linux/powerpc/powerpc64/a2/Implies: Likewise.
18160 * sysdeps/unix/sysv/linux/powerpc/powerpc64/cell/Implies: Likewise.
18161 * sysdeps/unix/sysv/linux/powerpc/powerpc64/cell/fpu/Implies: Likewise.
18162
18163 * sysdeps/unix/sysv/linux/powerpc/powerpc64/be/970/Implies: Move from
18164 powerpc64 and adjusted.
18165 * sysdeps/unix/sysv/linux/powerpc/powerpc64/be/a2/Implies: Likewise.
18166 * sysdeps/unix/sysv/linux/powerpc/powerpc64/be/cell/Implies: Likewise.
18167 * sysdeps/unix/sysv/linux/powerpc/powerpc64/be/cell/fpu/Implies:
18168 Likewise.
18169
18170 2018-04-27 Joseph Myers <joseph@codesourcery.com>
18171
18172 * sysdeps/tile: Remove.
18173 * sysdeps/unix/sysv/linux/tile: Likewise.
18174 * README (tilegx-*-linux-gnu): Remove from list of supported
18175 configurations.
18176 * manual/contrib.texi (Contributors): Mention Chris Metcalf's
18177 contribution of support for generic Linux kernel syscall
18178 interface.
18179 * scripts/build-many-glibcs.py (Context.add_all_configs): Remove
18180 tilegx configurations.
18181 (Config.install_linux_headers): Do not handle tile.
18182 * sysdeps/unix/sysv/linux/aarch64/ldsodefs.h: Do not mention Tile
18183 in comment.
18184 * sysdeps/unix/sysv/linux/nios2/Makefile: Likewise.
18185 * sysdeps/unix/sysv/linux/posix_fadvise.c: Likewise.
18186 [__ASSUME_FADVISE64_64_NO_ALIGN] (__ALIGNMENT_ARG): Remove
18187 conditional undefine and redefine.
18188 * sysdeps/unix/sysv/linux/posix_fadvise64.c: Do not mention Tile
18189 in comment.
18190 [__ASSUME_FADVISE64_64_NO_ALIGN] (__ALIGNMENT_ARG): Remove
18191 conditional undefine and redefine.
18192
18193 2018-04-26 Aurelien Jarno <aurelien@aurel32.net>
18194
18195 * signal/tst-sigaction.c: New file to test BZ #23069.
18196 * signal/Makefile (tests): Fix indentation. Add tst-sigaction.
18197
18198 2018-04-26 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
18199
18200 [BZ #22766]
18201 * include/dlfcn.h [__libc_dl_open]: Replace RTLD_LAZY with RTLD_NOW.
18202 * sysdeps/gnu/unwind-resume.c (__lib_gcc_s_init): Replace
18203 __libc_dlopen_mode() using RTLD_NOW with __libc_dlopen.
18204 * sysdeps/nptl/unwind-forcedunwind.c: Likewise.
18205
18206 2018-04-25 Adhemerval Zanella <adhemerval.zanella@linaro.org>
18207
18208 * sysdeps/unix/sysv/linux/getdirentries.c (getdirentries): Build iff
18209 _DIRENT_MATCHES_DIRENT64 is not defined.
18210 * sysdeps/unix/sysv/linux/getdirentries64.c (getdirentries64): Open
18211 implementation and alias to getdirentries if _DIRENT_MATCHES_DIRENT64
18212 is defined.
18213 * sysdeps/unix/sysv/linux/wordsize-64/getdirentries.c: Remove file.
18214 * sysdeps/unix/sysv/linux/wordsize-64/getdirentries64.c: Remove file.
18215
18216 2018-04-25 Joseph Myers <joseph@codesourcery.com>
18217
18218 * scripts/build-many-glibcs.py (Context.checkout): Default GCC
18219 version to GCC 8 branch.
18220
18221 2018-04-24 Joseph Myers <joseph@codesourcery.com>
18222
18223 * sysdeps/mach/hurd/dl-sysdep.c: Include <not-errno.h>.
18224 (check_no_hidden): Use type of original function when declaring
18225 alias.
18226
18227 * sysdeps/unix/sysv/linux/sys/ptrace.h
18228 (PTRACE_SECCOMP_GET_METADATA): New enum value and macro.
18229 * sysdeps/unix/sysv/linux/bits/ptrace-shared.h
18230 (struct __ptrace_seccomp_metadata): New type.
18231 * sysdeps/unix/sysv/linux/aarch64/sys/ptrace.h
18232 (PTRACE_SECCOMP_GET_METADATA): Likewise.
18233 * sysdeps/unix/sysv/linux/arm/sys/ptrace.h
18234 (PTRACE_SECCOMP_GET_METADATA): Likewise.
18235 * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h
18236 (PTRACE_SECCOMP_GET_METADATA): Likewise.
18237 * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h
18238 (PTRACE_SECCOMP_GET_METADATA): Likewise.
18239 * sysdeps/unix/sysv/linux/s390/sys/ptrace.h
18240 (PTRACE_SECCOMP_GET_METADATA): Likewise.
18241 * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h
18242 (PTRACE_SECCOMP_GET_METADATA): Likewise.
18243 * sysdeps/unix/sysv/linux/tile/sys/ptrace.h
18244 (PTRACE_SECCOMP_GET_METADATA): Likewise.
18245 * sysdeps/unix/sysv/linux/x86/sys/ptrace.h
18246 (PTRACE_SECCOMP_GET_METADATA): Likewise.
18247
18248 2018-04-23 Adhemerval Zanella <adhemerval.zanella@linaro.org>
18249
18250 * dirent/alphasort.c (alphasort): Build iff _DIRENT_MATCHES_DIRENT64 is
18251 defined.
18252 * dirent/versionsort.c (versionsort): Likewise.
18253 * dirent/alphasort64.c (alphasort64): Build regardless and alias to
18254 alphasort if _DIRENT_MATCHES_DIRENT64 is defined.
18255 * dirent/versionsort64.c (versionsort64): Likewise.
18256 * sysdeps/unix/sysv/linux/i386/alphasort64.c: Remove file.
18257 * sysdeps/unix/sysv/linux/arm/alphasort64.c: Likewise.
18258 * sysdeps/unix/sysv/linux/arm/versionsort64.c: Likewise.
18259 * sysdeps/unix/sysv/linux/m68k/alphasort64.c: Likewise.
18260 * sysdeps/unix/sysv/linux/m68k/versionsort64.c: Likewise.
18261 * sysdeps/unix/sysv/linux/s390/s390-32/alphasort64.c: Likewise.
18262 * sysdeps/unix/sysv/linux/s390/s390-32/versionsort64.c: Likewise.
18263 * sysdeps/unix/sysv/linux/i386/versionsort64.c: Likewise.
18264 * sysdeps/unix/sysv/linux/alphasort64.c: New file.
18265 * sysdeps/unix/sysv/linux/versionsort64.c: Likewise.
18266 * sysdeps/unix/sysv/linux/powerpc/powerpc32/alphasort64.c: Likewise.
18267 * sysdeps/unix/sysv/linux/powerpc/powerpc32/versionsort64.c: Likewise.
18268 * sysdeps/unix/sysv/linux/sparc/sparc32/alphasort64.c: Likewise.
18269 * sysdeps/unix/sysv/linux/sparc/sparc32/versionsort64.c: Likewise.
18270
18271 2018-04-23 Joseph Myers <joseph@codesourcery.com>
18272
18273 * elf/elf.h (NT_PPC_PKEY): New macro.
18274
18275 2018-04-23 Dragan Stanojevic - Nevidljivi <invisible@hidden-city.net>
18276
18277 [BZ #23094]
18278 * localedata/locales/hr_HR: fix thousands_sep and
18279 mon_thousands_sep
18280
18281 2018-04-20 Joseph Myers <joseph@codesourcery.com>
18282
18283 * sysdeps/unix/sysv/linux/alpha/bits/termios.h [__USE_MISC]
18284 (XTABS): Define to TAB3.
18285
18286 2018-04-20 Adhemerval Zanella <adhemerval.zanella@linaro.org>
18287
18288 * sysdeps/hppa/fpu/libm-test-ulps: Update.
18289
18290 * dirent/scandir-tail-common.c: New file.
18291 * dirent/scandir-tail.c: Use scandir-tail-common.c.
18292 (__scandir_tail): Build iff _DIRENT_MATCHES_DIRENT64 is not defined.
18293 * dirent/scandir.c: Use scandir-tail-common.c.
18294 * dirent/scandirat.c: Likewise.
18295 * dirent/scandir64-tail.c: Use scandir-tail-common.c.
18296 * dirent/scandir64.c (scandir64): Always build and alias to scandir
18297 if _DIRENT_MATCHES_DIRENT64 is defined.
18298 * dirent/scandirat64.c (scandirat64): Likewise.
18299 * include/dirent.h (__scandir_tail): Only define iff
18300 _DIRENT_MATCHES_DIRENT64 is not defined.
18301 (__scandir64_tail): Define regardless.
18302 (__scandirat, scandirat64): Remove libc_hidden_proto.
18303 * sysdeps/unix/sysv/linux/arm/scandir64.c: Remove file.
18304 * sysdeps/unix/sysv/linux/m68k/scandir64.c: Likewise.
18305 * sysdeps/unix/sysv/linux/powerpc/powerpc32/scandir64.c: Likewise.
18306 * sysdeps/unix/sysv/linux/s390/s390-32/scandir64.c: Likewise.
18307 * sysdeps/unix/sysv/linux/i386/scandir64.c: Likewise.
18308 * sysdeps/unix/sysv/linux/sparc/sparc32/scandir64.c: Likewise.
18309 * sysdeps/unix/sysv/linux/scandir64.c: New file.
18310
18311 2018-04-20 Joseph Myers <joseph@codesourcery.com>
18312
18313 * sysdeps/unix/sysv/linux/aarch64/bits/hwcap.h (HWCAP_ASIMDFHM):
18314 New macro.
18315 * sysdeps/unix/sysv/linux/aarch64/dl-procinfo.c (_DL_HWCAP_COUNT):
18316 Increase to 24.
18317 (_dl_aarch64_cap_flags): Add asimdfhm.
18318
18319 2018-04-19 Chung-Lin Tang <cltang@codesourcery.com>
18320
18321 * sysdeps/nios2/libm-test-ulps: Update.
18322
18323 2018-04-19 Adhemerval Zanella <adhemerval.zanella@linaro.org>
18324
18325 * sysdeps/unix/sysv/linux/mips/mips64/getdents64.c (__getdents64):
18326 Only alias to __getdents for _DIRENT_MATCHES_DIRENT64.
18327
18328 * sysdeps/unix/sysv/linux/alpha/getdents.c: Add comments with alpha
18329 requirements.
18330 (_DIRENT_MATCHES_DIRENT64): Undef
18331 * sysdeps/unix/sysv/linux/alpha/getdents64.c: Likewise.
18332 * sysdeps/unix/sysv/linux/arm/getdents64.c: Remove file.
18333 * sysdeps/unix/sysv/linux/generic/getdents.c: Likewise.
18334 * sysdeps/unix/sysv/linux/generic/getdents64.c: Likewise.
18335 * sysdeps/unix/sysv/linux/generic/wordsize-32/getdents.c: Likewise.
18336 * sysdeps/unix/sysv/linux/getdents.c: Simplify implementation by
18337 use getdents64 syscalls as base.
18338 * sysdeps/unix/sysv/linux/getdents64.c: Likewise and add compatibility
18339 symbol if required.
18340 * sysdeps/unix/sysv/linux/hppa/getdents64.c: Likewise.
18341 * sysdeps/unix/sysv/linux/i386/getdents64.c: Likewise.
18342 * sysdeps/unix/sysv/linux/m68k/getdents64.c: Likewise.
18343 * sysdeps/unix/sysv/linux/powerpc/getdents64.c: Likewise.
18344 * sysdeps/unix/sysv/linux/s390/s390-32/getdents64.c: Likewise.
18345 * sysdeps/unix/sysv/linux/sparc/sparc32/getdents64.c: Likewise.
18346 * sysdeps/unix/sysv/linux/wordsize-64/getdents.c: Likewise.
18347 * sysdeps/unix/sysv/linux/wordsize-64/getdents64.c: Likewise.
18348 * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
18349 (__get_clockfreq_via_proc_openprom): Use __getdents64.
18350 * sysdeps/unix/sysv/linux/mips/mips64/getdents64.c: New file.
18351
18352 2018-04-19 Stefan Liebler <stli@linux.vnet.ibm.com>
18353
18354 * scripts/test_printers_common.py (init_test): Disable lock elision.
18355
18356 2018-04-19 Stefan Liebler <stli@linux.vnet.ibm.com>
18357
18358 * math/test-tgmath.c (count_double, count_float,
18359 count_ldouble, count_cdouble, count_cfloat,
18360 count_cldouble): Use volatile int.
18361
18362 2018-04-19 Samuel Thibault <samuel.thibault@ens-lyon.org>
18363
18364 * sysdeps/mach/hurd/i386/Makefile [$(subdir) = conform]
18365 (conformtest-xfail-conds): Add i386-gnu.
18366 * conform/data/fcntl.h-data (flock.l_type, flock.l_whence): XFAIL on
18367 i386-gnu.
18368 * conform/data/sys/ipc.h-data (ipc_perm.uid, ipc_perm.gid,
18369 ipc_perm.cuid, ipc_perm.cgid): Likewise.
18370 * conform/data/sys/msg.h-data (msqid_ds.msg_lspid,
18371 msqid_ds.msg_lrpid): Likewise.
18372 * conform/data/sys/shm.h-data (shmid_ds.shm_lpid, shmid_ds.shm_cpid):
18373 Likewise.
18374 * conform/data/sys/stat.h-data (stat.st_dev): Likewise.
18375 * conform/data/sys/statvfs.h-data (statvfs.f_fsid): Likewise.
18376 * sysdeps/mach/hurd/bits/statvfs.h (struct statvfs): Make f_bsize,
18377 f_namemax, f_frsize, and f_flag fields unsigned long int instead of
18378 unsigned int.
18379 (struct statvfs64): Likewise.
18380 * sysdeps/mach/hurd/bits/statfs.h (struct statfs, struct statfs64):
18381 Likewise.
18382 * bits/in.h [!__USE_MISC]: Do not define struct ip_opts.
18383 * conform/data/netinet/in.h-data: Allow sin_ and sin6_ prefix.
18384 * sysdeps/gnu/bits/msq.h (struct msqid_ds): Use __wait_queue struct
18385 instead of wait_queue.
18386 * sysdeps/gnu/bits/shm.h (struct shmid_ds): Use __vm_area_struct
18387 instead of vm_area_struct.
18388 * bits/sched.h: Include <bits/types/struct_sched_param.h> and move
18389 struct sched_param definition to it.
18390 * sysdeps/unix/sysv/linux/bits/sched.h: Likewise.
18391 * bits/types/struct_sched_param.h: New file.
18392 * sysdeps/htl/bits/types/struct___pthread_attr.h: Include
18393 <bits/types/struct_sched_param.h> instead of <sched.h>.
18394 * posix/Makefile (headers): Add bits/types/struct_sched_param.h.
18395 * sysdeps/pthread/bits/types/sigevent_t.h: New file, based on the
18396 generic version but include <bits/pthreadtypes.h> to make struct
18397 sigevent's sigev_notify_attributes field a pthread_attr_t*.
18398 * bits/types/siginfo_t.h: Remove siginfo struct name, unused and
18399 non-compliant.
18400 * bits/termios.h [__USE_XOPEN || __USE_XOPEN2K8] (IXANY): Define.
18401 [__USE_XOPEN && !__USE_XOPEN2K] (IUCLC, OLCUC): Define.
18402 [__USE_XOPEN] (OFDEL): New macro.
18403 [__USE_XOPEN && !__USE_XOPEN2K] (XCASE): New macro.
18404 * bits/resource.h (RLIM_SAVED_MAX, RLIM_SAVED_CUR): New macros.
18405 * sysdeps/hurd/include/hurd.h [!_ISOMAC]: Do not declare libc hidden
18406 prototypes.
18407 * sysdeps/hurd/include/hurd/fd.h [!_ISOMAC]: Likewise.
18408 * sysdeps/hurd/include/hurd/signal.h [!_ISOMAC]: Likewise.
18409 * sysdeps/arm/sys/ucontext.h: Remove fpregset struct name, unused and
18410 non-compliant.
18411 * sysdeps/i386/sys/ucontext.h: Likewise.
18412 * sysdeps/m68k/sys/ucontext.h: Likewise.
18413 * sysdeps/mips/sys/ucontext.h: Likewise.
18414 * sysdeps/unix/sysv/linux/hppa/sys/ucontext.h: Likewise.
18415 * sysdeps/mach/hurd/i386/Makefile
18416 (test-xfail-POSIX/fcntl.h/conform): Add.
18417 (test-xfail-POSIX/signal.h/conform): Add.
18418 (test-xfail-POSIX/semaphore.h/conform): Add.
18419 (test-xfail-POSIX/regex.h/conform): Add.
18420 (test-xfail-POSIX/aio.h/conform): Add.
18421 (test-xfail-POSIX/mqueue.h/conform): Add.
18422 (test-xfail-POSIX/sys/types.h/conform): Add.
18423 (test-xfail-UNIX98/fcntl.h/conform): Add.
18424 (test-xfail-UNIX98/netdb.h/conform): Add.
18425 (test-xfail-UNIX98/signal.h/conform): Add.
18426 (test-xfail-UNIX98/semaphore.h/conform): Add.
18427 (test-xfail-UNIX98/regex.h/conform): Add.
18428 (test-xfail-UNIX98/aio.h/conform): Add.
18429 (test-xfail-UNIX98/ftw.h/conform): Add.
18430 (test-xfail-UNIX98/mqueue.h/conform): Add.
18431 (test-xfail-UNIX98/netinet/in.h/conform): Add.
18432 (test-xfail-UNIX98/sys/wait.h/conform): Add.
18433 (test-xfail-UNIX98/sys/sem.h/conform): Add.
18434 (test-xfail-UNIX98/sys/uio.h/conform): Add.
18435 (test-xfail-UNIX98/sys/socket.h/conform): Add.
18436 (test-xfail-UNIX98/sys/types.h/conform): Add.
18437 (test-xfail-UNIX98/stdlib.h/conform): Add.
18438 (test-xfail-UNIX98/arpa/inet.h/conform): Add.
18439 (test-xfail-POSIX2008/fcntl.h/conform): Add.
18440 (test-xfail-POSIX2008/netdb.h/conform): Add.
18441 (test-xfail-POSIX2008/signal.h/conform): Add.
18442 (test-xfail-POSIX2008/semaphore.h/conform): Add.
18443 (test-xfail-POSIX2008/regex.h/conform): Add.
18444 (test-xfail-POSIX2008/aio.h/conform): Add.
18445 (test-xfail-POSIX2008/mqueue.h/conform): Add.
18446 (test-xfail-POSIX2008/netinet/in.h/conform): Add.
18447 (test-xfail-POSIX2008/sys/wait.h/conform): Add.
18448 (test-xfail-POSIX2008/sys/socket.h/conform): Add.
18449 (test-xfail-POSIX2008/sys/types.h/conform): Add.
18450 (test-xfail-POSIX2008/arpa/inet.h/conform): Add.
18451 (test-xfail-XOPEN2K/fcntl.h/conform): Add.
18452 (test-xfail-XOPEN2K/netdb.h/conform): Add.
18453 (test-xfail-XOPEN2K/signal.h/conform): Add.
18454 (test-xfail-XOPEN2K/semaphore.h/conform): Add.
18455 (test-xfail-XOPEN2K/regex.h/conform): Add.
18456 (test-xfail-XOPEN2K/aio.h/conform): Add.
18457 (test-xfail-XOPEN2K/ftw.h/conform): Add.
18458 (test-xfail-XOPEN2K/mqueue.h/conform): Add.
18459 (test-xfail-XOPEN2K/netinet/in.h/conform): Add.
18460 (test-xfail-XOPEN2K/sys/wait.h/conform): Add.
18461 (test-xfail-XOPEN2K/sys/sem.h/conform): Add.
18462 (test-xfail-XOPEN2K/sys/uio.h/conform): Add.
18463 (test-xfail-XOPEN2K/sys/socket.h/conform): Add.
18464 (test-xfail-XOPEN2K/sys/types.h/conform): Add.
18465 (test-xfail-XOPEN2K/stdlib.h/conform): Add.
18466 (test-xfail-XOPEN2K/arpa/inet.h/conform): Add.
18467 (test-xfail-XOPEN2K8/fcntl.h/conform): Add.
18468 (test-xfail-XOPEN2K8/netdb.h/conform): Add.
18469 (test-xfail-XOPEN2K8/signal.h/conform): Add.
18470 (test-xfail-XOPEN2K8/semaphore.h/conform): Add.
18471 (test-xfail-XOPEN2K8/regex.h/conform): Add.
18472 (test-xfail-XOPEN2K8/aio.h/conform): Add.
18473 (test-xfail-XOPEN2K8/ftw.h/conform): Add.
18474 (test-xfail-XOPEN2K8/mqueue.h/conform): Add.
18475 (test-xfail-XOPEN2K8/netinet/in.h/conform): Add.
18476 (test-xfail-XOPEN2K8/sys/wait.h/conform): Add.
18477 (test-xfail-XOPEN2K8/sys/sem.h/conform): Add.
18478 (test-xfail-XOPEN2K8/sys/uio.h/conform): Add.
18479 (test-xfail-XOPEN2K8/sys/socket.h/conform): Add.
18480 (test-xfail-XOPEN2K8/sys/types.h/conform): Add.
18481 (test-xfail-XOPEN2K8/stdlib.h/conform): Add.
18482 (test-xfail-XOPEN2K8/arpa/inet.h/conform): Add.
18483 * conform/data/signal.h-data (SA_SIGINFO, SA_NOCLDWAIT): XFAIL on
18484 i386-gnu.
18485 * conform/data/sys/wait.h-data (WIFCONTINUED, WEXITED, WSTOPPED,
18486 WCONTINUED, WNOWAIT): XFAIL on i386-gnu.
18487
18488 2018-04-18 Joseph Myers <joseph@codesourcery.com>
18489
18490 * scripts/build-many-glibcs.py (Context.add_all_configs): Use
18491 --enable-obsolete for powerpc-linux-gnuspe.
18492
18493 2018-04-18 Samuel Thibault <samuel.thibault@ens-lyon.org>
18494
18495 * conform/data/sys/un.h-data: Allow sun_ prefix.
18496 * sysdeps/mach/include/lock-intern.h: Do not declare libc hidden
18497 prototypes.
18498 * sysdeps/mach/include/mach.h: Likewise.
18499 * sysdeps/mach/include/mach/mig_support.h: Likewise.
18500 * sysdeps/mach/include/mach_error.h: Likewise.
18501
18502 2018-04-16 Adhemerval Zanella <adhemerval.zanella@linaro.org>
18503
18504 * sysdeps/arm/armv6t2/memchr.S (memchr): Remove ARM code path.
18505 * sysdeps/arm/armv6t2/strlen.S (memchr): Likewise.
18506 * sysdeps/arm/armv7/multiarch/memchr_neon.S (memchr): Likewise.
18507 * sysdeps/arm/armv7/strcmp.S (strcmp): Likewise.
18508
18509 2018-04-16 Andreas Schwab <schwab@suse.de>
18510
18511 [BZ #19527]
18512 * iconvdata/gconv-modules (ARMSCII8//, ShiftJISX0213//): New aliases.
18513
18514 2018-04-15 Patrick McGehearty <patrick.mcgehearty@oracle.com>
18515
18516 * sysdeps/ieee754/dbl-64/e_exp.c: faster __ieee754_exp()
18517 * sysdeps/ieee754/dbl-64/eexp.tbl: New file for e_exp.c
18518
18519 2018-04-12 DJ Delorie <dj@redhat.com>
18520
18521 * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
18522 version to 4.16.
18523
18524 2018-04-12 Stefan Liebler <stli@linux.vnet.ibm.com>
18525
18526 * sysdeps/unix/sysv/linux/s390/kernel_sigaction.h
18527 (struct kernel_sigaction): Use the same definition on 31bit as is used
18528 on 64bit.
18529
18530 2018-04-09 Florian Weimer <fweimer@redhat.com>
18531
18532 [BZ #23037]
18533 * resolv/res_send.c (send_dg): Use designated initializers instead
18534 of assignment to zero-initialize other fields of struct mmsghdr.
18535
18536 2018-04-06 Adhemerval Zanella <adhemerval.zanella@linaro.org>
18537
18538 * sysdeps/posix/readdir.c (__READDIR, __GETDENTS, DIRENTY_TYPE,
18539 __READDIR_ALIAS): Undefine after usage.
18540 * sysdeps/posix/readdir_r.c (__READDIR_R, __GETDENTS, DIRENT_TYPE,
18541 __READDIR_R_ALIAS): Likewise.
18542 * sysdeps/unix/sysv/linux/arm/readdir64.c: Remove file.
18543 * sysdeps/unix/sysv/linux/arm/readdir64_r.c: Likewise.
18544 * sysdeps/unix/sysv/linux/m68k/readdir64.c: Likewise.
18545 * sysdeps/unix/sysv/linux/m68k/readdir64_r.c: Likewise.
18546 * sysdeps/unix/sysv/linux/powerpc/readdir64.c: Likewise.
18547 * sysdeps/unix/sysv/linux/powerpc/readdir64_r.c: Likewise.
18548 * sysdeps/unix/sysv/linux/i386/readdir64.c: Likewise.
18549 * sysdeps/unix/sysv/linux/i386/readdir64_r.c: Likewise.
18550 * sysdeps/unix/sysv/linux/s390/s390-32/readdir64.c: Likewise.
18551 * sysdeps/unix/sysv/linux/s390/s390-32/readdir64_r.c: Likewise.
18552 * sysdeps/unix/sysv/linux/sparc/sparc32/readdir64.c: Likewise.
18553 * sysdeps/unix/sysv/linux/sparc/sparc32/readdir64_r.c: Likewise.
18554 * sysdeps/unix/sysv/linux/wordsize-64/readdir.c: Likewise.
18555 * sysdeps/unix/sysv/linux/wordsize-64/readdir64.c: Likewise.
18556 * sysdeps/unix/sysv/linux/wordsize-64/readdir64_r.c: Likewise.
18557 * sysdeps/unix/sysv/linux/wordsize-64/readdir_r.c: Likewise.
18558 * sysdeps/unix/sysv/linux/readdir.c: New file.
18559 * sysdeps/unix/sysv/linux/readdir_r.c: Likewise.
18560 * sysdeps/unix/sysv/linux/readdir64.c: Add compat symbol if required.
18561 * sysdeps/unix/sysv/linux/readdir64_r.c: Likewise.
18562
18563 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Update.
18564
18565 2018-04-06 Andreas Schwab <schwab@linux-m68k.org>
18566
18567 * manual/charset.texi (Converting a Character): Fix typo.
18568
18569 2018-04-05 Adhemerval Zanella <adhemerval.zanella@linaro.org>
18570
18571 * sysdeps/sparc/fpu/libm-test-ulps: Update.
18572
18573 * sysdeps/arm/libm-test-ulps: Update.
18574
18575 * sysdeps/unix/sysv/linux/aarch64/sigaction.c: Use default Linux version
18576 as base implementation.
18577 * sysdeps/unix/sysv/linux/arm/sigaction.c: Likewise.
18578 * sysdeps/unix/sysv/linux/i386/sigaction.c: Likewise.
18579 * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c: Likewise.
18580 * sysdeps/unix/sysv/linux/sparc/sparc64/sigaction.c: Likewise.
18581 * sysdeps/unix/sysv/linux/x86_64/sigaction.c: Likewise.
18582 * sysdeps/unix/sysv/linux/alpha/kernel_sigaction.h: Add include guards,
18583 remove unrequired definitions and update comments.
18584 * sysdeps/unix/sysv/linux/kernel_sigaction.h: Likewise.
18585 * sysdeps/unix/sysv/linux/mips/kernel_sigaction.h: Likewise.
18586 * sysdeps/unix/sysv/linux/ia64/kernel_sigaction.h: New file.
18587 * sysdeps/unix/sysv/linux/m68k/kernel_sigaction.h: Likewise.
18588 * sysdeps/unix/sysv/linux/nios2/kernel_sigaction.h: Likewise.
18589 * sysdeps/unix/sysv/linux/powerpc/kernel_sigaction: Likewise.
18590 * sysdeps/unix/sysv/linux/s390/kernel_sigaction.h: Likewise.
18591 * sysdeps/unix/sysv/linux/sh/kernel_sigaction.h: Likewise.
18592 * sysdeps/unix/sysv/linux/sparc/kernel_sigaction.h: Likewise.
18593 * sysdeps/unix/sysv/linux/tile/kernel_sigaction.h: Likewise.
18594 * sysdeps/unix/sysv/linux/ia64/sigaction.c: Remove file.
18595 * sysdeps/unix/sysv/linux/mips/sigaction.c: Likewise.
18596 * sysdeps/unix/sysv/linux/s390/s390-64/sigaction.c: Likewise.
18597 * sysdeps/unix/sysv/linux/sigaction.c: Add STUB, SET_SA_RESTORER,
18598 and RESET_SA_RESTORER hooks.
18599
18600 2018-04-05 Stefan Liebler <stli@linux.vnet.ibm.com>
18601
18602 * sysdeps/s390/fpu/libm-test-ulps: Regenerated.
18603
18604 2018-04-05 Florian Weimer <fweimer@redhat.com>
18605
18606 * manual/examples/mbstouwcs.c (mbstouwcs): Fix loop termination,
18607 integer overflow, memory leak on error, and indeterminate errno
18608 value. Add a null wide character to terminate the result string.
18609 * manual/charset.texi (Converting a Character): Mention embedded
18610 null bytes in the mbrtowc input string. Explain what happens in
18611 the -2 result case. Do not claim that mbrtowc is simple or
18612 obvious to use. Adjust the description of the code example. Use
18613 @code, not @var, for concrete variables.
18614
18615 2018-04-05 Florian Weimer <fweimer@redhat.com>
18616
18617 * manual/examples/mbstouwcs.c: New file.
18618 * manual/charset.texi (Converting a Character): Include it.
18619
18620 2018-04-05 Samuel Thibault <samuel.thibault@ens-lyon.org>
18621
18622 * include/dirent.h (dirfd): Add hidden proto.
18623 * dirent/dirfd.c (dirfd): Add hidden def.
18624 * sysdeps/mach/hurd/dirfd.c (dirfd): Add hidden def.
18625 * sysdeps/posix/dirfd.c (dirfd): Add hidden def.
18626
18627 2018-04-04 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
18628
18629 * sysdeps/powerpc/fpu/libm-test-ulps: Increase double-precision
18630 sin, cos and sincos to 1 ULP.
18631
18632 2018-04-04 Maciej W. Rozycki <macro@mips.com>
18633
18634 [BZ #19818]
18635 * sysdeps/generic/ldsodefs.h (SYMBOL_ADDRESS): Handle SHN_ABS
18636 symbols.
18637 * elf/dl-addr.c (determine_info): Ignore SHN_ABS symbols.
18638 * elf/tst-absolute-sym.c: New file.
18639 * elf/tst-absolute-sym-lib.c: New file.
18640 * elf/tst-absolute-sym-lib.lds: New file.
18641 * elf/Makefile (tests): Add `tst-absolute-sym'.
18642 (modules-names): Add `tst-absolute-sym-lib'.
18643 (LDLIBS-tst-absolute-sym-lib.so): New variable.
18644 ($(objpfx)tst-absolute-sym-lib.so): New dependency.
18645 ($(objpfx)tst-absolute-sym): New dependency.
18646
18647 [BZ #19818]
18648 * sysdeps/generic/ldsodefs.h (LOOKUP_VALUE_ADDRESS): Add `set'
18649 parameter.
18650 (SYMBOL_ADDRESS): New macro.
18651 [!ELF_FUNCTION_PTR_IS_SPECIAL] (DL_SYMBOL_ADDRESS): Use
18652 SYMBOL_ADDRESS for symbol address calculation.
18653 * elf/dl-runtime.c (_dl_fixup): Likewise.
18654 (_dl_profile_fixup): Likewise.
18655 * elf/dl-symaddr.c (_dl_symbol_address): Likewise.
18656 * elf/rtld.c (dl_main): Likewise.
18657 * sysdeps/aarch64/dl-machine.h (elf_machine_rela): Likewise.
18658 * sysdeps/alpha/dl-machine.h (elf_machine_rela): Likewise.
18659 * sysdeps/arm/dl-machine.h (elf_machine_rel): Likewise.
18660 (elf_machine_rela): Likewise.
18661 * sysdeps/hppa/dl-machine.h (elf_machine_rela): Likewise.
18662 * sysdeps/hppa/dl-symaddr.c (_dl_symbol_address): Likewise.
18663 * sysdeps/i386/dl-machine.h (elf_machine_rel): Likewise.
18664 (elf_machine_rela): Likewise.
18665 * sysdeps/ia64/dl-machine.h (elf_machine_rela): Likewise.
18666 * sysdeps/m68k/dl-machine.h (elf_machine_rela): Likewise.
18667 * sysdeps/microblaze/dl-machine.h (elf_machine_rela): Likewise.
18668 * sysdeps/mips/dl-machine.h (ELF_MACHINE_BEFORE_RTLD_RELOC):
18669 Likewise.
18670 (elf_machine_reloc): Likewise.
18671 (elf_machine_got_rel): Likewise.
18672 * sysdeps/mips/dl-trampoline.c (__dl_runtime_resolve): Likewise.
18673 * sysdeps/nios2/dl-machine.h (elf_machine_rela): Likewise.
18674 * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela):
18675 Likewise.
18676 * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
18677 Likewise.
18678 * sysdeps/riscv/dl-machine.h (elf_machine_rela): Likewise.
18679 * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela):
18680 Likewise.
18681 * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela):
18682 Likewise.
18683 * sysdeps/sh/dl-machine.h (elf_machine_rela): Likewise.
18684 * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela):
18685 Likewise.
18686 * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela):
18687 Likewise.
18688 * sysdeps/tile/dl-machine.h (elf_machine_rela): Likewise.
18689 * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Likewise.
18690
18691 2018-04-04 Zack Weinberg <zackw@panix.com>
18692
18693 * sysdeps/generic/internal-signals.h: Include signal.h,
18694 sigsetops.h, and stdbool.h.
18695 (__libc_signal_block_all): Actually block all signals.
18696 (__libc_signal_block_app): Likewise.
18697 (__libc_signal_restore_set): Actually restore the signal mask.
18698
18699 2018-04-04 Florian Weimer <fweimer@redhat.com>
18700
18701 inet: Actually build and run tst-deadline.
18702 * inet/Makefile (tests-internal): Add tst-deadline and do not
18703 overwrite the variable.
18704 (tests-static-internal): Remove variable.
18705
18706 2018-04-03 H.J. Lu <hongjiu.lu@intel.com>
18707
18708 [BZ #22947]
18709 * bits/uio-ext.h (RWF_APPEND): New.
18710 * sysdeps/unix/sysv/linux/bits/uio-ext.h (RWF_APPEND): Likewise.
18711 * manual/llio.texi: Document RWF_APPEND.
18712 * misc/tst-preadvwritev2-common.c (RWF_APPEND): New.
18713 (RWF_SUPPORTED): Add RWF_APPEND.
18714
18715 2018-04-03 Adhemerval Zanella <adhemerval.zanella@linaro.org>
18716
18717 [BZ #22391]
18718 * nptl/sigaction.c (__sigaction): Use __is_internal_signal to
18719 check for internal nptl signals.
18720 * nptl/sigaction.c (__sigaction): Likewise.
18721 * signal/sigaddset.c (sigaddset): Likewise.
18722 * signal/sigdelset.c (sigdelset): Likewise.
18723 * sysdeps/posix/signal.c (__bsd_signal): Likewise.
18724 * sysdeps/posix/sigset.c (sigset): Call and check sigaddset return
18725 value.
18726 * signal/sigfillset.c (sigfillset): User __clear_internal_signals
18727 to filter out internal nptl signals.
18728 * signal/tst-sigset.c (do_test): Check ech signal indidually and
18729 also check realtime signals using standard macros.
18730 * sysdeps/generic/internal-signals.h (__clear_internal_signals,
18731 __is_internal_signal, __libc_signal_block_all,
18732 __libc_signal_block_app, __libc_signal_restore_set): New functions.
18733 * sysdeps/nptl/sigfillset.c: Remove file.
18734 * sysdeps/unix/sysv/linux/internal-signals.h (__is_internal_signal):
18735 Change return to bool.
18736 (__clear_internal_signals): Remove SIGTIMER clean since it is
18737 equal to SIGCANEL on Linux.
18738 * sysdeps/unix/sysv/linux/sigtimedwait.c (__sigtimedwait): Assume
18739 signal set was constructed using standard functions.
18740
18741 2018-04-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
18742
18743 * sysdeps/mach/hurd/if_index.c (__if_nametoindex): Return ENODEV if
18744 ifname is too long.
18745 * hurd/hurdsig.c (interrupted_reply_port_location): Use
18746 DIAG_IGNORE_NEEDS_COMMENT to silence warning with GCC 6 and before.
18747 * sysdeps/mach/hurd/i386/exc2signal.c (_hurd_exception2signal): Add
18748 hidden def.
18749 * mach/spin-lock.c (__mutex_unlock): Add hidden def.
18750 * signal/sigaddset.c: Include <sigsetopts.h>.
18751 * signal/sigdelset.c: Likewise.
18752
18753 2018-04-03 Wilco Dijkstra <wdijkstr@arm.com>
18754
18755 * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Cleanup ifdefs.
18756 (__cos): Likewise.
18757 * sysdeps/ieee754/dbl-64/s_sin.c (__sincos): Refactor using the same
18758 logic as sin and cos.
18759
18760 2018-04-03 Wilco Dijkstra <wdijkstr@arm.com>
18761
18762 * sysdeps/ieee754/dbl-64/s_sin.c (do_sin): Use TAYLOR_SIN for small
18763 inputs. Return correct sign.
18764 (do_sincos): Remove small input check before do_sin, let do_sin set
18765 the sign.
18766 (__sin): Likewise.
18767 (__cos): Likewise.
18768
18769 2018-04-03 Wilco Dijkstra <wdijkstr@arm.com>
18770
18771 * sysdeps/ieee754/dbl-64/s_sin.c (TAYLOR_SLOW): Remove.
18772 (do_cos_slow): Likewise.
18773 (do_sin_slow): Likewise.
18774 (reduce_and_compute): Likewise.
18775 (slow): Likewise.
18776 (slow1): Likewise.
18777 (slow2): Likewise.
18778 (sloww): Likewise.
18779 (sloww1): Likewise.
18780 (sloww2): Likewise.
18781 (bslow): Likewise.
18782 (bslow1): Likewise.
18783 (bslow2): Likewise.
18784 (cslow2): Likewise.
18785
18786 2018-04-03 Wilco Dijkstra <wdijkstr@arm.com>
18787
18788 * sysdeps/ieee754/dbl-64/s_sin.c (TAYLOR_SIN): Remove cor parameter.
18789 (do_cos): Remove corp parameter and calculations.
18790 (do_sin): Likewise.
18791 (do_sincos): Remove cor variable.
18792 (__sin): Use do_sincos for huge inputs.
18793 (__cos): Likewise.
18794 * sysdeps/ieee754/dbl-64/s_sincos.c (__sincos): Likewise.
18795 (reduce_and_compute_sincos): Remove unused function.
18796
18797 2018-04-03 Wilco Dijkstra <wdijkstr@arm.com>
18798
18799 * sysdeps/ieee754/dbl-64/s_sin.c (reduce_sincos_1): Rename to
18800 reduce_sincos, improve accuracy to 136 bits.
18801 (do_sincos_1): Rename to do_sincos, remove fallbacks to slow functions.
18802 (__sin): Use improved reduction and simplified do_sincos calculation.
18803 (__cos): Likewise.
18804 * sysdeps/ieee754/dbl-64/s_sincos.c (__sincos): Likewise.
18805
18806 2018-04-03 Wilco Dijkstra <wdijkstr@arm.com>
18807
18808 * sysdeps/ieee754/dbl-64/s_sin.c (reduce_sincos_2): Remove function.
18809 (do_sincos_2): Likewise.
18810 (__sin): Remove middle range reduction case.
18811 (__cos): Likewise.
18812 * sysdeps/ieee754/dbl-64/s_sincos.c (__sincos): Remove middle range
18813 reduction case.
18814
18815 2018-04-03 Wilco Dijkstra <wdijkstr@arm.com>
18816
18817 * sysdeps/aarch64/libm-test-ulps: Update ULP for sin, cos, sincos.
18818 * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Remove slow paths for small
18819 inputs.
18820 (__cos): Likewise.
18821 * sysdeps/x86_64/fpu/libm-test-ulps: Update ULP for sin, cos, sincos.
18822
18823 2018-04-03 Joseph Myers <joseph@codesourcery.com>
18824
18825 * scripts/build-many-glibcs.py (Context.checkout): Default Linux
18826 version to 4.16
18827
18828 2018-04-03 Adhemerval Zanella <adhemerval.zanella@linaro.org>
18829
18830 * sysdeps/posix/opendir.c (o_directory_works, tryopen_o_directory):
18831 Remove definitions.
18832 (opendir_oflags): Use O_DIRECTORY regardless.
18833 (__opendir, __opendirat): Remove need_isdir_precheck usage.
18834 * sysdeps/unix/sysv/linux/opendir.c: Remove file.
18835
18836 2018-04-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
18837
18838 * sysdeps/mach/hurd/bits/local_lim.h (_POSIX_THREAD_KEYS_MAX,
18839 _POSIX_THREAD_DESTRUCTOR_ITERATIONS, _POSIX_THREAD_THREADS_MAX): Define
18840 macros.
18841 * sysdeps/mach/hurd/bits/posix_opt.h (_POSIX_THREADS,
18842 _POSIX_THREAD_ATTR_STACKSIZE, _POSIX_THREAD_ATTR_STACKADDR,
18843 _POSIX_SEMAPHORES, _POSIX_READER_WRITER_LOCKS, _POSIX_TIMEOUTS,
18844 _POSIX_SPIN_LOCKS, _POSIX_BARRIERS): Define macros to 200809L.
18845 * sysdeps/mach/hurd/net/if_ppp.h: Remove file.
18846 * sysdeps/mach/hurd/Makefile (sysdep_headers): Remove net/if_ppp.h.
18847
18848 * htl/Makefile: Bump licence to LGPL 2.1+.
18849 * htl/alloca_cutoff.c: Likewise.
18850 * htl/cthreads-compat.c: Likewise.
18851 * htl/lockfile.c: Likewise.
18852 * htl/pt-alloc.c: Likewise.
18853 * htl/pt-cancel.c: Likewise.
18854 * htl/pt-cleanup.c: Likewise.
18855 * htl/pt-create.c: Likewise.
18856 * htl/pt-dealloc.c: Likewise.
18857 * htl/pt-detach.c: Likewise.
18858 * htl/pt-exit.c: Likewise.
18859 * htl/pt-getattr.c: Likewise.
18860 * htl/pt-initialize.c: Likewise.
18861 * htl/pt-internal.h: Likewise.
18862 * htl/pt-join.c: Likewise.
18863 * htl/pt-self.c: Likewise.
18864 * htl/pt-setcancelstate.c: Likewise.
18865 * htl/pt-setcanceltype.c: Likewise.
18866 * htl/pt-sigmask.c: Likewise.
18867 * htl/pt-spin-inlines.c: Likewise.
18868 * htl/pt-testcancel.c: Likewise.
18869 * htl/pt-yield.c: Likewise.
18870 * htl/tests/test-1.c: Likewise.
18871 * htl/tests/test-10.c: Likewise.
18872 * htl/tests/test-11.c: Likewise.
18873 * htl/tests/test-12.c: Likewise.
18874 * htl/tests/test-13.c: Likewise.
18875 * htl/tests/test-14.c: Likewise.
18876 * htl/tests/test-15.c: Likewise.
18877 * htl/tests/test-16.c: Likewise.
18878 * htl/tests/test-17.c: Likewise.
18879 * htl/tests/test-2.c: Likewise.
18880 * htl/tests/test-3.c: Likewise.
18881 * htl/tests/test-4.c: Likewise.
18882 * htl/tests/test-5.c: Likewise.
18883 * htl/tests/test-6.c: Likewise.
18884 * htl/tests/test-7.c: Likewise.
18885 * htl/tests/test-8.c: Likewise.
18886 * htl/tests/test-9.c: Likewise.
18887 * htl/tests/test-__pthread_destroy_specific-skip.c: Likewise.
18888 * sysdeps/htl/bits/cancelation.h: Likewise.
18889 * sysdeps/htl/bits/pthread-np.h: Likewise.
18890 * sysdeps/htl/bits/pthread.h: Likewise.
18891 * sysdeps/htl/bits/pthreadtypes.h: Likewise.
18892 * sysdeps/htl/bits/semaphore.h: Likewise.
18893 * sysdeps/htl/bits/types/__pthread_key.h: Likewise.
18894 * sysdeps/htl/bits/types/struct___pthread_attr.h: Likewise.
18895 * sysdeps/htl/bits/types/struct___pthread_barrier.h: Likewise.
18896 * sysdeps/htl/bits/types/struct___pthread_barrierattr.h: Likewise.
18897 * sysdeps/htl/bits/types/struct___pthread_cond.h: Likewise.
18898 * sysdeps/htl/bits/types/struct___pthread_condattr.h: Likewise.
18899 * sysdeps/htl/bits/types/struct___pthread_mutex.h: Likewise.
18900 * sysdeps/htl/bits/types/struct___pthread_mutexattr.h: Likewise.
18901 * sysdeps/htl/bits/types/struct___pthread_once.h: Likewise.
18902 * sysdeps/htl/bits/types/struct___pthread_rwlock.h: Likewise.
18903 * sysdeps/htl/bits/types/struct___pthread_rwlockattr.h: Likewise.
18904 * sysdeps/htl/old_pt-atfork.c: Likewise.
18905 * sysdeps/htl/pt-atfork.c: Likewise.
18906 * sysdeps/htl/pt-attr-destroy.c: Likewise.
18907 * sysdeps/htl/pt-attr-getdetachstate.c: Likewise.
18908 * sysdeps/htl/pt-attr-getguardsize.c: Likewise.
18909 * sysdeps/htl/pt-attr-getinheritsched.c: Likewise.
18910 * sysdeps/htl/pt-attr-getschedparam.c: Likewise.
18911 * sysdeps/htl/pt-attr-getschedpolicy.c: Likewise.
18912 * sysdeps/htl/pt-attr-getscope.c: Likewise.
18913 * sysdeps/htl/pt-attr-getstack.c: Likewise.
18914 * sysdeps/htl/pt-attr-getstackaddr.c: Likewise.
18915 * sysdeps/htl/pt-attr-getstacksize.c: Likewise.
18916 * sysdeps/htl/pt-attr-init.c: Likewise.
18917 * sysdeps/htl/pt-attr-setdetachstate.c: Likewise.
18918 * sysdeps/htl/pt-attr-setguardsize.c: Likewise.
18919 * sysdeps/htl/pt-attr-setinheritsched.c: Likewise.
18920 * sysdeps/htl/pt-attr-setschedparam.c: Likewise.
18921 * sysdeps/htl/pt-attr-setschedpolicy.c: Likewise.
18922 * sysdeps/htl/pt-attr-setscope.c: Likewise.
18923 * sysdeps/htl/pt-attr-setstack.c: Likewise.
18924 * sysdeps/htl/pt-attr-setstackaddr.c: Likewise.
18925 * sysdeps/htl/pt-attr-setstacksize.c: Likewise.
18926 * sysdeps/htl/pt-attr.c: Likewise.
18927 * sysdeps/htl/pt-barrier-destroy.c: Likewise.
18928 * sysdeps/htl/pt-barrier-init.c: Likewise.
18929 * sysdeps/htl/pt-barrier-wait.c: Likewise.
18930 * sysdeps/htl/pt-barrier.c: Likewise.
18931 * sysdeps/htl/pt-barrierattr-destroy.c: Likewise.
18932 * sysdeps/htl/pt-barrierattr-getpshared.c: Likewise.
18933 * sysdeps/htl/pt-barrierattr-init.c: Likewise.
18934 * sysdeps/htl/pt-barrierattr-setpshared.c: Likewise.
18935 * sysdeps/htl/pt-cond-brdcast.c: Likewise.
18936 * sysdeps/htl/pt-cond-destroy.c: Likewise.
18937 * sysdeps/htl/pt-cond-init.c: Likewise.
18938 * sysdeps/htl/pt-cond-signal.c: Likewise.
18939 * sysdeps/htl/pt-cond-timedwait.c: Likewise.
18940 * sysdeps/htl/pt-cond-wait.c: Likewise.
18941 * sysdeps/htl/pt-cond.c: Likewise.
18942 * sysdeps/htl/pt-condattr-destroy.c: Likewise.
18943 * sysdeps/htl/pt-condattr-getclock.c: Likewise.
18944 * sysdeps/htl/pt-condattr-getpshared.c: Likewise.
18945 * sysdeps/htl/pt-condattr-init.c: Likewise.
18946 * sysdeps/htl/pt-condattr-setclock.c: Likewise.
18947 * sysdeps/htl/pt-condattr-setpshared.c: Likewise.
18948 * sysdeps/htl/pt-destroy-specific.c: Likewise.
18949 * sysdeps/htl/pt-equal.c: Likewise.
18950 * sysdeps/htl/pt-getconcurrency.c: Likewise.
18951 * sysdeps/htl/pt-getcpuclockid.c: Likewise.
18952 * sysdeps/htl/pt-getschedparam.c: Likewise.
18953 * sysdeps/htl/pt-getspecific.c: Likewise.
18954 * sysdeps/htl/pt-init-specific.c: Likewise.
18955 * sysdeps/htl/pt-key-create.c: Likewise.
18956 * sysdeps/htl/pt-key-delete.c: Likewise.
18957 * sysdeps/htl/pt-key.h: Likewise.
18958 * sysdeps/htl/pt-mutex-destroy.c: Likewise.
18959 * sysdeps/htl/pt-mutex-getprioceiling.c: Likewise.
18960 * sysdeps/htl/pt-mutex-init.c: Likewise.
18961 * sysdeps/htl/pt-mutex-lock.c: Likewise.
18962 * sysdeps/htl/pt-mutex-setprioceiling.c: Likewise.
18963 * sysdeps/htl/pt-mutex-timedlock.c: Likewise.
18964 * sysdeps/htl/pt-mutex-trylock.c: Likewise.
18965 * sysdeps/htl/pt-mutex-unlock.c: Likewise.
18966 * sysdeps/htl/pt-mutexattr-destroy.c: Likewise.
18967 * sysdeps/htl/pt-mutexattr-getprioceiling.c: Likewise.
18968 * sysdeps/htl/pt-mutexattr-getprotocol.c: Likewise.
18969 * sysdeps/htl/pt-mutexattr-getpshared.c: Likewise.
18970 * sysdeps/htl/pt-mutexattr-gettype.c: Likewise.
18971 * sysdeps/htl/pt-mutexattr-init.c: Likewise.
18972 * sysdeps/htl/pt-mutexattr-setprioceiling.c: Likewise.
18973 * sysdeps/htl/pt-mutexattr-setprotocol.c: Likewise.
18974 * sysdeps/htl/pt-mutexattr-setpshared.c: Likewise.
18975 * sysdeps/htl/pt-mutexattr-settype.c: Likewise.
18976 * sysdeps/htl/pt-mutexattr.c: Likewise.
18977 * sysdeps/htl/pt-once.c: Likewise.
18978 * sysdeps/htl/pt-rwlock-attr.c: Likewise.
18979 * sysdeps/htl/pt-rwlock-destroy.c: Likewise.
18980 * sysdeps/htl/pt-rwlock-init.c: Likewise.
18981 * sysdeps/htl/pt-rwlock-rdlock.c: Likewise.
18982 * sysdeps/htl/pt-rwlock-timedrdlock.c: Likewise.
18983 * sysdeps/htl/pt-rwlock-timedwrlock.c: Likewise.
18984 * sysdeps/htl/pt-rwlock-tryrdlock.c: Likewise.
18985 * sysdeps/htl/pt-rwlock-trywrlock.c: Likewise.
18986 * sysdeps/htl/pt-rwlock-unlock.c: Likewise.
18987 * sysdeps/htl/pt-rwlock-wrlock.c: Likewise.
18988 * sysdeps/htl/pt-rwlockattr-destroy.c: Likewise.
18989 * sysdeps/htl/pt-rwlockattr-getpshared.c: Likewise.
18990 * sysdeps/htl/pt-rwlockattr-init.c: Likewise.
18991 * sysdeps/htl/pt-rwlockattr-setpshared.c: Likewise.
18992 * sysdeps/htl/pt-setconcurrency.c: Likewise.
18993 * sysdeps/htl/pt-setschedparam.c: Likewise.
18994 * sysdeps/htl/pt-setschedprio.c: Likewise.
18995 * sysdeps/htl/pt-setspecific.c: Likewise.
18996 * sysdeps/htl/pt-spin.c: Likewise.
18997 * sysdeps/htl/pt-startup.c: Likewise.
18998 * sysdeps/htl/pthread.h: Likewise.
18999 * sysdeps/htl/sem-close.c: Likewise.
19000 * sysdeps/htl/sem-destroy.c: Likewise.
19001 * sysdeps/htl/sem-getvalue.c: Likewise.
19002 * sysdeps/htl/sem-init.c: Likewise.
19003 * sysdeps/htl/sem-open.c: Likewise.
19004 * sysdeps/htl/sem-post.c: Likewise.
19005 * sysdeps/htl/sem-timedwait.c: Likewise.
19006 * sysdeps/htl/sem-trywait.c: Likewise.
19007 * sysdeps/htl/sem-unlink.c: Likewise.
19008 * sysdeps/htl/sem-wait.c: Likewise.
19009 * sysdeps/hurd/htl/pt-kill.c: Likewise.
19010 * sysdeps/i386/htl/pt-machdep.h: Likewise.
19011 * sysdeps/mach/htl/pt-block.c: Likewise.
19012 * sysdeps/mach/htl/pt-spin.c: Likewise.
19013 * sysdeps/mach/htl/pt-stack-alloc.c: Likewise.
19014 * sysdeps/mach/htl/pt-thread-alloc.c: Likewise.
19015 * sysdeps/mach/htl/pt-thread-start.c: Likewise.
19016 * sysdeps/mach/htl/pt-thread-terminate.c: Likewise.
19017 * sysdeps/mach/htl/pt-timedblock.c: Likewise.
19018 * sysdeps/mach/htl/pt-wakeup.c: Likewise.
19019 * sysdeps/mach/hurd/htl/bits/pthread-np.h: Likewise.
19020 * sysdeps/mach/hurd/htl/bits/types/struct___pthread_mutex.h: Likewise.
19021 * sysdeps/mach/hurd/htl/pt-attr-setstackaddr.c: Likewise.
19022 * sysdeps/mach/hurd/htl/pt-attr-setstacksize.c: Likewise.
19023 * sysdeps/mach/hurd/htl/pt-docancel.c: Likewise.
19024 * sysdeps/mach/hurd/htl/pt-hurd-cond-timedwait.c: Likewise.
19025 * sysdeps/mach/hurd/htl/pt-hurd-cond-wait.c: Likewise.
19026 * sysdeps/mach/hurd/htl/pt-mutex-consistent.c: Likewise.
19027 * sysdeps/mach/hurd/htl/pt-mutex-destroy.c: Likewise.
19028 * sysdeps/mach/hurd/htl/pt-mutex-getprioceiling.c: Likewise.
19029 * sysdeps/mach/hurd/htl/pt-mutex-init.c: Likewise.
19030 * sysdeps/mach/hurd/htl/pt-mutex-lock.c: Likewise.
19031 * sysdeps/mach/hurd/htl/pt-mutex-setprioceiling.c: Likewise.
19032 * sysdeps/mach/hurd/htl/pt-mutex-timedlock.c: Likewise.
19033 * sysdeps/mach/hurd/htl/pt-mutex-transfer-np.c: Likewise.
19034 * sysdeps/mach/hurd/htl/pt-mutex-trylock.c: Likewise.
19035 * sysdeps/mach/hurd/htl/pt-mutex-unlock.c: Likewise.
19036 * sysdeps/mach/hurd/htl/pt-mutex.h: Likewise.
19037 * sysdeps/mach/hurd/htl/pt-mutexattr-destroy.c: Likewise.
19038 * sysdeps/mach/hurd/htl/pt-mutexattr-getprioceiling.c: Likewise.
19039 * sysdeps/mach/hurd/htl/pt-mutexattr-getprotocol.c: Likewise.
19040 * sysdeps/mach/hurd/htl/pt-mutexattr-getpshared.c: Likewise.
19041 * sysdeps/mach/hurd/htl/pt-mutexattr-getrobust.c: Likewise.
19042 * sysdeps/mach/hurd/htl/pt-mutexattr-gettype.c: Likewise.
19043 * sysdeps/mach/hurd/htl/pt-mutexattr-init.c: Likewise.
19044 * sysdeps/mach/hurd/htl/pt-mutexattr-setprioceiling.c: Likewise.
19045 * sysdeps/mach/hurd/htl/pt-mutexattr-setprotocol.c: Likewise.
19046 * sysdeps/mach/hurd/htl/pt-mutexattr-setpshared.c: Likewise.
19047 * sysdeps/mach/hurd/htl/pt-mutexattr-setrobust.c: Likewise.
19048 * sysdeps/mach/hurd/htl/pt-mutexattr-settype.c: Likewise.
19049 * sysdeps/mach/hurd/htl/pt-sigstate-destroy.c: Likewise.
19050 * sysdeps/mach/hurd/htl/pt-sigstate-init.c: Likewise.
19051 * sysdeps/mach/hurd/htl/pt-sigstate.c: Likewise.
19052 * sysdeps/mach/hurd/htl/pt-sysdep.c: Likewise.
19053 * sysdeps/mach/hurd/htl/pt-sysdep.h: Likewise.
19054 * sysdeps/mach/hurd/i386/htl/pt-machdep.c: Likewise.
19055 * sysdeps/mach/hurd/i386/htl/pt-setup.c: Likewise.
19056
19057 * NEWS: Announce that glibc now builds unpatched on GNU/Hurd.
19058 * README: Remove the mention of out-of-tree patches needed for
19059 GNU/Hurd.
19060
19061 * sysdeps/mach/hurd/bits/stat.h [!__USE_MISC && __USE_ATFILE]
19062 (UTIME_NOW, UTIME_OMIT): Define macros.
19063
19064 * htl/cthreads-compat.c (__cthread_detach): Call __pthread_detach
19065 instead of pthread_detach.
19066 (__cthread_fork): Call __pthread_create instead of pthread_create.
19067 (__cthread_keycreate): Call __pthread_key_create instead of
19068 pthread_key_create.
19069 (__cthread_getspecific): Call __pthread_getspecific instead of
19070 pthread_getspecific.
19071 (__cthread_setspecific): Call __pthread_setspecific instead of
19072 pthread_setspecific.
19073 * htl/pt-alloc.c (__pthread_alloc): Call __pthread_mutex_lock and
19074 __pthread_mutex_unlock instead of pthread_mutex_lock and
19075 pthread_mutex_unlock.
19076 * htl/pt-cleanup.c (__pthread_get_cleanup_stack): Rename to
19077 ___pthread_get_cleanup_stack.
19078 (__pthread_get_cleanup_stack): New strong alias.
19079 * htl/pt-create.c: Include <pthreadP.h>.
19080 (entry_point): Call __pthread_exit instead of pthread_exit.
19081 (pthread_create): Rename to __pthread_create.
19082 (pthread_create): New strong alias.
19083 * htl/pt-detach.c (pthread_detach): Rename to __pthread_detach.
19084 (pthread_detach): New strong alias.
19085 (__pthread_detach): Call __pthread_cond_broadcast instead of
19086 pthread_cond_broadcast.
19087 * htl/pt-exit.c: Include <pthreadP.h>.
19088 (__pthread_exit): Call __pthread_setcancelstate and
19089 ___pthread_get_cleanup_stack instead of pthread_setcancelstate and
19090 __pthread_get_cleanup_stack.
19091 * htl/pt-testcancel.c: Include <pthreadP.h>.
19092 (pthread_testcancel): Call __pthread_exit instead of pthread_exit.
19093 * sysdeps/htl/pt-attr-getstack.c: Include <pthreadP.h>
19094 (__pthread_attr_getstack): Call __pthread_attr_getstackaddr and
19095 __pthread_attr_getstacksize instead of pthread_attr_getstackaddr and
19096 pthread_attr_getstacksize.
19097 * sysdeps/htl/pt-attr-getstackaddr.c (pthread_attr_getstackaddr):
19098 Rename to __pthread_attr_getstackaddr.
19099 (pthread_attr_getstackaddr): New strong alias.
19100 * sysdeps/htl/pt-attr-getstacksize.c (pthread_attr_getstacksize):
19101 Rename to __pthread_attr_getstacksize.
19102 (pthread_attr_getstacksize): New strong alias.
19103 * sysdeps/htl/pt-attr-setstack.c: Include <pthreadP.h>.
19104 (pthread_attr_setstack): Rename to __pthread_attr_setstack.
19105 (pthread_attr_setstack): New strong alias.
19106 (__pthread_attr_setstack): Call __pthread_attr_getstacksize,
19107 __pthread_attr_setstacksize and __pthread_attr_setstackaddr instead of
19108 pthread_attr_getstacksize, pthread_attr_setstacksize and
19109 pthread_attr_setstackaddr.
19110 * sysdeps/htl/pt-attr-setstackaddr.c (pthread_attr_setstackaddr):
19111 Rename to __pthread_attr_setstackaddr.
19112 (pthread_attr_setstackaddr): New strong alias.
19113 * sysdeps/htl/pt-attr-setstacksize.c (pthread_attr_setstacksize):
19114 Rename to __pthread_attr_setstacksize.
19115 (pthread_attr_setstacksize): New strong alias.
19116 * sysdeps/htl/pt-cond-timedwait.c: Include <pthreadP.h>.
19117 (__pthread_cond_timedwait_internal): Use __pthread_exit instead of
19118 pthread_exit.
19119 * sysdeps/htl/pt-key-create.c: Include <pthreadP.h>.
19120 (__pthread_key_create): New hidden def.
19121 * sysdeps/htl/pt-key.h: Include <pthreadP.h>.
19122 * sysdeps/htl/pthreadP.h (_pthread_mutex_init,
19123 __pthread_cond_broadcast, __pthread_create, __pthread_detach,
19124 __pthread_exit, __pthread_key_create, __pthread_getspecific,
19125 __pthread_setspecific, __pthread_setcancelstate,
19126 __pthread_attr_getstackaddr, __pthread_attr_setstackaddr,
19127 __pthread_attr_getstacksize, __pthread_attr_setstacksize,
19128 __pthread_attr_setstack, ___pthread_get_cleanup_stack): New
19129 declarations.
19130 (__pthread_key_create, _pthread_mutex_init): New hidden declarations.
19131 * sysdeps/mach/hurd/htl/pt-attr-setstackaddr.c
19132 (pthread_attr_setstackaddr): Rename to __pthread_attr_setstackaddr.
19133 (pthread_attr_setstackaddr): New strong alias.
19134 * sysdeps/mach/hurd/htl/pt-attr-setstacksize.c
19135 (pthread_attr_setstacksize): Rename to __pthread_attr_setstacksize.
19136 (pthread_attr_setstacksize): New strong alias.
19137 * sysdeps/mach/hurd/htl/pt-docancel.c: Include <pthreadP.h>.
19138 (call_exit): Call __pthread_exit instead of pthread_exit.
19139 * sysdeps/mach/hurd/htl/pt-mutex-init.c: Include <pthreadP.h>.
19140 (_pthread_mutex_init): New hidden definition.
19141 * sysdeps/mach/hurd/htl/pt-sysdep.c: Include <pthreadP.h>.
19142 (_init_routine): Call __pthread_attr_init and __pthread_attr_setstack
19143 instead of pthread_attr_init and pthread_attr_setstack.
19144
19145 * hurd/hurdauth.c (_S_msg_add_auth): Call __vm_allocate and
19146 __vm_deallocate instead of vm_allocate and vm_deallocate.
19147 * hurd/hurdmsg.c (_S_msg_set_env_variable): Call __setenv instead of
19148 setenv.
19149 * hurd/hurdprio.c (_hurd_priority_which_map): Call __geteuid instead
19150 of geteuid.
19151 * hurd/path-lookup.c (file_name_path_scan): Call __strdup instead of
19152 strdup.
19153 * hurd/siginfo.c: Include <libioP.h>.
19154 (_hurd_siginfo_handler): Call _IO_puts instead of puts.
19155 * hurd/xattr.c (_hurd_xattr_get, _hurd_xattr_set): Call __munmap instead of
19156 munmap.
19157 * mach/devstream.c: Include <libioP.h>.
19158 (dealloc_ref): Call __mach_port_deallocate instead of
19159 mach_port_deallocate.
19160 (mach_open_devstream): Call _IO_fopencookie instead of fopencookie.
19161 Call __mach_port_deallocate instead of mach_port_deallocate.
19162 * stdlib/canonicalize.c (__realpath): Call __pathconf instead of
19163 pathconf.
19164 * sysdeps/mach/hurd/ifreq.c (__ifreq): Call __munmap instead of
19165 munmap.
19166 * sysdeps/mach/hurd/ifreq.h (__if_freereq): Likewise.
19167 * sysdeps/mach/hurd/ptrace.c (ptrace): Call __kill instead of kill.
19168 * sysdeps/mach/hurd/sendfile64.c (sendfile64): Call __munmap instead
19169 of munmap.
19170 * sysdeps/mach/hurd/socketpair.c (__socketpair): Call __close instead
19171 of close.
19172 * sysdeps/posix/clock_getres.c (realtime_getres): Call __sysconf
19173 instead of sysconf.
19174 * sysdeps/pthread/timer_gettime.c (timer_gettime): Call
19175 __clock_gettime instead of clock_gettime.
19176 * sysdeps/pthread/timer_routines.c (thread_func): Likewise.
19177 * sysdeps/pthread/timer_settime.c (timer_settime): Likewise.
19178 * sysdeps/unix/bsd/gtty.c (gtty): Call __ioctl instead of ioctl.
19179 * sysdeps/unix/bsd/stty.c (stty): Likewise.
19180 * sysdeps/unix/bsd/tcflow.c (tcflow): Call __tcgetattr instead of
19181 tcgetattr.
19182 * sysdeps/unix/clock_nanosleep.c (__clock_nanosleep): Call
19183 __clock_gettime and __nanosleep instead of clock_gettime and
19184 nanosleep.
19185 * hurd/catch-signal.c (hurd_catch_signal): Rename to
19186 __hurd_catch_signal.
19187 (hurd_catch_signal): New strong alias.
19188 (hurd_safe_memset, hurd_safe_copyout, hurd_safe_copyin): Call
19189 __hurd_catch_signal instead of hurd_catch_signal.
19190 * hurd/exc2signal.c (_hurd_exception2signal): Add hidden def.
19191 * hurd/hurdexec.c (_hurd_init): Add hidden def.
19192 * hurd/hurdinit.c (_hurd_init): Add hidden def.
19193 * hurd/hurdsig.c: Include <mach/mig_support.h>.
19194 (_hurd_thread_sigstate): Add hidden def.
19195 (_hurd_internal_post_signal): Use __mutex_unlock instead of
19196 mutex_unlock.
19197 * hurd/intern-fd.c (_hurd_intern_fd): Add hidden def.
19198 * hurd/intr-msg.c (_hurd_intr_rpc_mach_msg): Add hidden def.
19199 * hurd/path-lookup.c (hurd_file_name_path_lookup): Rename to
19200 __hurd_file_name_path_lookup.
19201 (hurd_file_name_path_lookup): New strong alias.
19202 (file_name_path_lookup): Call __hurd_file_name_path_lookup instead of
19203 hurd_file_name_path_lookup.
19204 * mach/errstring.c (mach_error_type): Add hidden def.
19205 * mach/msg-destroy.c (__mach_msg_destroy): Add hidden def.
19206 * mach/mutex-init.c (__mutex_init): Add hidden def.
19207 * mach/spin-lock.c (__spin_lock_locked, __spin_lock, __spin_unlock,
19208 __spin_try_lock, __mutex_lock, __mutex_trylock): Add hidden defs.
19209 * mach/spin-solid.c (__spin_lock_solid): Add hidden def.
19210 * sysdeps/mach/hurd/getcwd.c
19211 (_hurd_canonicalize_directory_name_internal): Rename to
19212 __hurd_canonicalize_directory_name_internal.
19213 (_hurd_canonicalize_directory_name_internal): New strong alias.
19214 (__canonicalize_directory_name_internal, __getcwd): Call
19215 __hurd_canonicalize_directory_name_internal instead of
19216 _hurd_canonicalize_directory_name_internal.
19217 * sysdeps/mach/hurd/mig-reply.c: Include <mach/mig_support.h>.
19218 (__mig_get_reply_port, __mig_dealloc_reply_port, __mig_init): Add
19219 hidden defs.
19220 * sysdeps/hurd/include/hurd.h: New file.
19221 * sysdeps/hurd/include/hurd/fd.h: New file.
19222 * sysdeps/hurd/include/hurd/signal.h: New file.
19223 * sysdeps/mach/include/lock-intern.h: New file.
19224 * sysdeps/mach/include/mach.h: New file.
19225 * sysdeps/mach/include/mach/mig_support.h: New file.
19226 * sysdeps/mach/include/mach_error.h: New file.
19227 * sysdeps/hurd/include/hurd/signal.h (_hurd_raise_signal): Add hidden
19228 prototype.
19229 * hurd/hurd-raise.c (_hurd_raise_signal): Add hidden def.
19230 * hurd/Makefile ($(inlines:%=$(objpfx)%.c): Define
19231 _HEADER_H_HIDDEN_DEF macro.
19232 * sysdeps/hurd/include/hurd/fd.h (_hurd_fd_error,
19233 _hurd_fd_error_signal): Add hidden prototype.
19234 [_HURD_FD_H_HIDDEN_DEF] (_hurd_fd_error, _hurd_fd_error_signal): Add
19235 hidden def.
19236 * libio/iolibio.h (_IO_puts): New hidden prototype.
19237 * libio/ioputs.c (_IO_puts): New hidden def.
19238 * sysdeps/mach/hurd/localplt.data: New file.
19239
19240 2018-04-02 Agustina Arzille <avarzille@riseup.net>
19241 Amos Jeffries <squid3@treenet.co.nz>
19242 David Michael <fedora.dm0@gmail.com>
19243 Marco Gerards <marco@gnu.org>
19244 Marcus Brinkmann <marcus@gnu.org>
19245 Neal H. Walfield <neal@gnu.org>
19246 Pino Toscano <toscano.pino@tiscali.it>
19247 Richard Braun <rbraun@sceen.net>
19248 Roland McGrath <roland@gnu.org>
19249 Samuel Thibault <samuel.thibault@ens-lyon.org>
19250 Thomas DiModica <ricinwich@yahoo.com>
19251 Thomas Schwinge <tschwinge@gnu.org>
19252
19253 * htl: New directory.
19254 * sysdeps/htl: New directory.
19255 * sysdeps/hurd/htl: New directory.
19256 * sysdeps/i386/htl: New directory.
19257 * sysdeps/mach/htl: New directory.
19258 * sysdeps/mach/hurd/htl: New directory.
19259 * sysdeps/mach/hurd/i386/htl: New directory.
19260 * nscd/Depend, resolv/Depend, rt/Depend: Add htl dependency.
19261 * sysdeps/mach/hurd/i386/Implies: Add mach/hurd/i386/htl imply.
19262 * sysdeps/mach/hurd/i386/libpthread.abilist: New file.
19263
19264 2018-04-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
19265
19266 * sysdeps/pthread/timer_routines.c (__timer_thread_start): Block all
19267 signals in thread created for runing timers.
19268
19269 2018-04-01 Florian Weimer <fweimer@redhat.com>
19270
19271 * support/support_format_addrinfo.c (support_format_addrinfo):
19272 Include unknown error number in formatted result.
19273
19274 2018-03-29 Florian Weimer <fweimer@redhat.com>
19275
19276 * sysdeps/unix/sysv/linux/i386/tst-bz21269.c (do_test): Also
19277 capture SIGBUS.
19278
19279 2018-03-27 Adhemerval Zanella <adhemerval.zanella@linaro.org>
19280
19281 * sysdeps/unix/sysv/linux/arch-fork.h [__ASSUME_CLONE_BACKWARDS]
19282 (arch_fork): Issue INLINE_CLONE_SYSCALL if defined.
19283 * sysdeps/unix/sysv/linux/sparc/kernel-features.h
19284 (__ASSUME_CLONE_BACKWARDS): Define.
19285
19286 2018-03-27 Jesse Hathaway <jesse@mbuki-mvuki.org>
19287
19288 [BZ #23024]
19289 * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid): Return
19290 early when linux sentinel value is set.
19291
19292 2018-03-27 Samuel Thibault <samuel.thibault@ens-lyon.org>
19293
19294 * sysdeps/mach/hurd/bits/posix_opt.h (_POSIX_MEMLOCK): Define.
19295
19296 2018-03-27 Andreas Schwab <schwab@suse.de>
19297
19298 [BZ #23005]
19299 * resolv/res_send.c (__res_context_send): Return ENOMEM if
19300 allocation of private copy of nsaddr_list fails.
19301
19302 2018-03-26 Joseph Myers <joseph@codesourcery.com>
19303
19304 [BZ #16552]
19305 * sysdeps/unix/sysv/linux/generic/umount.c: Move to ....
19306 * sysdeps/unix/sysv/linux/umount.c: ... here.
19307 * sysdeps/unix/sysv/linux/arm/umount.c: Remove file.
19308 * sysdeps/unix/sysv/linux/hppa/umount.c: Likewise.
19309 * sysdeps/unix/sysv/linux/ia64/umount.c: Likewise.
19310 * sysdeps/unix/sysv/linux/mips/mips64/umount.c: Likewise.
19311 * sysdeps/unix/sysv/linux/powerpc/powerpc64/umount.c: Likewise.
19312 * sysdeps/unix/sysv/linux/umount.S: Likewise.
19313 * sysdeps/unix/sysv/linux/x86_64/umount.c: Likewise.
19314
19315 2018-03-26 Andreas Schwab <schwab@suse.de>
19316
19317 * elf/elf.h (R_RISCV_BRANCH, R_RISCV_JAL, R_RISCV_CALL)
19318 (R_RISCV_CALL_PLT, R_RISCV_GOT_HI20, R_RISCV_TLS_GOT_HI20)
19319 (R_RISCV_TLS_GD_HI20, R_RISCV_PCREL_HI20, R_RISCV_PCREL_LO12_I)
19320 (R_RISCV_PCREL_LO12_S, R_RISCV_HI20, R_RISCV_LO12_I)
19321 (R_RISCV_LO12_S, R_RISCV_TPREL_HI20, R_RISCV_TPREL_LO12_I)
19322 (R_RISCV_TPREL_LO12_S, R_RISCV_TPREL_ADD, R_RISCV_ADD8)
19323 (R_RISCV_ADD16, R_RISCV_ADD32, R_RISCV_ADD64, R_RISCV_SUB8)
19324 (R_RISCV_SUB16, R_RISCV_SUB32, R_RISCV_SUB64)
19325 (R_RISCV_GNU_VTINHERIT, R_RISCV_GNU_VTENTRY, R_RISCV_ALIGN)
19326 (R_RISCV_RVC_BRANCH, R_RISCV_RVC_JUMP, R_RISCV_RVC_LUI)
19327 (R_RISCV_GPREL_I, R_RISCV_GPREL_S, R_RISCV_TPREL_I)
19328 (R_RISCV_TPREL_S, R_RISCV_RELAX, R_RISCV_SUB6, R_RISCV_SET6)
19329 (R_RISCV_SET8, R_RISCV_SET16, R_RISCV_SET32, R_RISCV_32_PCREL)
19330 (R_RISCV_NUM): Define.
19331
19332 2018-03-25 Samuel Thibault <samuel.thibault@ens-lyon.org>
19333
19334 * include/errno.h [IS_IN(rtld) && !RTLD_PRIVATE_ERRNO]: Do not use the
19335 TLS declaration of errno.
19336 * sysdeps/generic/libc-start.h [!SHARED] (ARCH_SETUP_TLS): Define to
19337 __libc_setup_tls.
19338 * sysdeps/unix/sysv/linux/powerpc/libc-start.h [!SHARED]
19339 (ARCH_SETUP_TLS): Likewise.
19340 * sysdeps/mach/hurd/libc-start.h: New file copied from
19341 sysdeps/generic/libc-start.h, but define ARCH_SETUP_TLS to empty.
19342 * csu/libc-start.c [!SHARED] (LIBC_START_MAIN): Call ARCH_SETUP_TLS
19343 instead of __libc_setup_tls.
19344 * sysdeps/mach/hurd/i386/init-first.c [!SHARED] (init1): Call
19345 __libc_setup_tls before initializing libpthread and running _hurd_init
19346 which starts the signal thread.
19347 * sysdeps/generic/ldsodefs.h [SHARED] (__pthread_initialize_minimal):
19348 Declare function.
19349 * sysdeps/mach/hurd/bits/errno.h: Regenerate.
19350
19351 2018-03-24 H.J. Lu <hongjiu.lu@intel.com>
19352
19353 [BZ #22998]
19354 * elf/Makefile (tests): Add $(tests-execstack-$(have-z-execstack))
19355 after it is defined.
19356
19357 2018-03-23 Andrew Senkevich <andrew.senkevich@intel.com>
19358 Max Horn <max@quendi.de>
19359
19360 [BZ #22644]
19361 CVE-2017-18269
19362 * sysdeps/i386/i686/multiarch/memcpy-sse2-unaligned.S: Fixed
19363 branch conditions.
19364 * string/test-memmove.c (do_test2): New testcase.
19365
19366 2018-03-22 Joseph Myers <joseph@codesourcery.com>
19367
19368 * sysdeps/generic/frame.h: Remove file.
19369 * sysdeps/arm/frame.h: Likewise.
19370 * sysdeps/hppa/frame.h: Likewise.
19371 * sysdeps/generic/sigcontextinfo.h (SIGCONTEXT_EXTRA_ARGS): Remove
19372 macro.
19373 (GET_FRAME): Likewise.
19374 (GET_STACK): Likewise.
19375 (CALL_SIGHANDLER): Likewise.
19376 * sysdeps/mach/hurd/i386/sigcontextinfo.h (SIGCONTEXT_EXTRA_ARGS):
19377 Likewise.
19378 (GET_FRAME): Likewise.
19379 (GET_STACK): Likewise.
19380 (CALL_SIGHANDLER): Likewise.
19381 * sysdeps/unix/sysv/linux/alpha/sigcontextinfo.h
19382 (SIGCONTEXT_EXTRA_ARGS): Likewise.
19383 (GET_FRAME): Likewise.
19384 (GET_STACK): Likewise.
19385 (CALL_SIGHANDLER): Likewise.
19386 * sysdeps/unix/sysv/linux/arm/sigcontextinfo.h
19387 (SIGCONTEXT_EXTRA_ARGS): Likewise.
19388 (GET_FRAME): Likewise.
19389 (GET_STACK): Likewise.
19390 (ADVANCE_STACK_FRAME): Likewise.
19391 (CALL_SIGHANDLER): Likewise.
19392 * sysdeps/unix/sysv/linux/i386/sigcontextinfo.h
19393 (SIGCONTEXT_EXTRA_ARGS): Likewise.
19394 (GET_FRAME): Likewise.
19395 (GET_STACK): Likewise.
19396 (CALL_SIGHANDLER): Likewise.
19397 * sysdeps/unix/sysv/linux/ia64/sigcontextinfo.h
19398 (SIGCONTEXT_EXTRA_ARGS): Likewise.
19399 (GET_FRAME): Likewise.
19400 (GET_STACK): Likewise.
19401 (CALL_SIGHANDLER): Likewise.
19402 * sysdeps/unix/sysv/linux/m68k/sigcontextinfo.h
19403 (SIGCONTEXT_EXTRA_ARGS): Likewise.
19404 (GET_FRAME): Likewise.
19405 (GET_STACK): Likewise.
19406 (CALL_SIGHANDLER): Likewise.
19407 * sysdeps/unix/sysv/linux/microblaze/sigcontextinfo.h
19408 (SIGCONTEXT_EXTRA_ARGS): Likewise.
19409 (GET_FRAME): Likewise.
19410 (GET_STACK): Likewise.
19411 (CALL_SIGHANDLER): Likewise.
19412 * sysdeps/unix/sysv/linux/mips/sigcontextinfo.h
19413 (SIGCONTEXT_EXTRA_ARGS): Likewise.
19414 (GET_FRAME): Likewise.
19415 (GET_STACK): Likewise.
19416 (CALL_SIGHANDLER): Likewise.
19417 * sysdeps/unix/sysv/linux/powerpc/sigcontextinfo.h
19418 (SIGCONTEXT_EXTRA_ARGS): Likewise.
19419 (GET_FRAME): Likewise.
19420 (GET_STACK): Likewise.
19421 (CALL_SIGHANDLER): Likewise.
19422 * sysdeps/unix/sysv/linux/riscv/sigcontextinfo.h
19423 (SIGCONTEXT_EXTRA_ARGS): Likewise.
19424 (GET_FRAME): Likewise.
19425 (GET_STACK): Likewise.
19426 (CALL_SIGHANDLER): Likewise.
19427 * sysdeps/unix/sysv/linux/s390/sigcontextinfo.h
19428 (SIGCONTEXT_EXTRA_ARGS): Likewise.
19429 (GET_FRAME): Likewise.
19430 (GET_STACK): Likewise.
19431 (CALL_SIGHANDLER): Likewise.
19432 * sysdeps/unix/sysv/linux/sh/sigcontextinfo.h
19433 (SIGCONTEXT_EXTRA_ARGS): Likewise.
19434 (GET_FRAME): Likewise.
19435 (GET_STACK): Likewise.
19436 (CALL_SIGHANDLER): Likewise.
19437 * sysdeps/unix/sysv/linux/sparc/sparc32/sigcontextinfo.h
19438 (SIGCONTEXT_EXTRA_ARGS): Likewise.
19439 (FIRST_FRAME_POINTER): Likewise.
19440 (ADVANCE_STACK_FRAME): Likewise.
19441 (GET_STACK): Likewise.
19442 (GET_FRAME): Likewise.
19443 (CALL_SIGHANDLER): Likewise.
19444 * sysdeps/unix/sysv/linux/sparc/sparc64/sigcontextinfo.h
19445 (SIGCONTEXT_EXTRA_ARGS): Likewise.
19446 (ADVANCE_STACK_FRAME): Likewise.
19447 (GET_STACK): Likewise.
19448 (GET_FRAME): Likewise.
19449 (CALL_SIGHANDLER): Likewise.
19450 * sysdeps/unix/sysv/linux/tile/sigcontextinfo.h
19451 (SIGCONTEXT_EXTRA_ARGS): Likewise.
19452 (GET_FRAME): Likewise.
19453 (GET_STACK): Likewise.
19454 (CALL_SIGHANDLER): Likewise.
19455 * sysdeps/unix/sysv/linux/x86_64/sigcontextinfo.h
19456 (SIGCONTEXT_EXTRA_ARGS): Likewise.
19457 (GET_FRAME): Likewise.
19458 (GET_STACK): Likewise.
19459 (CALL_SIGHANDLER): Likewise.
19460
19461 2018-03-21 Joseph Myers <joseph@codesourcery.com>
19462
19463 * sysdeps/x86_64/backtrace.c: Move to ....
19464 * debug/backtrace.c: ... here.
19465 * sysdeps/aarch64/backtrace.c: Remove file.
19466 * sysdeps/alpha/backtrace.c: Likewise.
19467 * sysdeps/hppa/backtrace.c: Likewise.
19468 * sysdeps/ia64/backtrace.c: Likewise.
19469 * sysdeps/mips/backtrace.c: Likewise.
19470 * sysdeps/nios2/backtrace.c: Likewise.
19471 * sysdeps/riscv/backtrace.c: Likewise.
19472 * sysdeps/sh/backtrace.c: Likewise.
19473 * sysdeps/tile/backtrace.c: Likewise.
19474
19475 2018-03-20 Joseph Myers <joseph@codesourcery.com>
19476
19477 [BZ #22987]
19478 * sysdeps/powerpc/bits/mathinline.h (fdim): Remove inline
19479 function.
19480 (fdimf): Likewise.
19481 * sysdeps/sparc/fpu/bits/mathinline.h: Remove file.
19482
19483 [BZ #17343]
19484 * stdlib/random_r.c (__random_r): Use unsigned arithmetic for
19485 possibly overflowing computations.
19486
19487 2018-03-20 Samuel Thibault <samuel.thibault@ens-lyon.org>
19488
19489 * manual/errno.texi (EOWNERDEAD, ENOTRECOVERABLE): Remove errno
19490 values from Linux-specific section now that it is in the GNU section.
19491 * sysdeps/gnu/errlist.c: Regenerate.
19492
19493 2018-03-20 Joseph Myers <joseph@codesourcery.com>
19494
19495 * math/Makefile (libm-narrow-fns): Add sub.
19496 (libm-test-funcs-narrow): Likewise.
19497 * math/Versions (GLIBC_2.28): Add narrowing subtract functions.
19498 * math/bits/mathcalls-narrow.h (sub): Use __MATHCALL_NARROW.
19499 * math/gen-auto-libm-tests.c (test_functions): Add sub.
19500 * math/math-narrow.h (CHECK_NARROW_SUB): New macro.
19501 (NARROW_SUB_ROUND_TO_ODD): Likewise.
19502 (NARROW_SUB_TRIVIAL): Likewise.
19503 * sysdeps/ieee754/float128/float128_private.h (__fsubl): New
19504 macro.
19505 (__dsubl): Likewise.
19506 * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Add fsub and
19507 dsub.
19508 (CFLAGS-nldbl-dsub.c): New variable.
19509 (CFLAGS-nldbl-fsub.c): Likewise.
19510 * sysdeps/ieee754/ldbl-opt/Versions (GLIBC_2.28): Add
19511 __nldbl_dsubl.
19512 * sysdeps/ieee754/ldbl-opt/nldbl-compat.h (__nldbl_dsubl): New
19513 prototype.
19514 * manual/arith.texi (Misc FP Arithmetic): Document fsub, fsubl,
19515 dsubl, fMsubfN, fMsubfNx, fMxsubfN and fMxsubfNx.
19516 * math/auto-libm-test-in: Add tests of sub.
19517 * math/auto-libm-test-out-narrow-sub: New generated file.
19518 * math/libm-test-narrow-sub.inc: New file.
19519 * sysdeps/i386/fpu/s_f32xsubf64.c: Likewise.
19520 * sysdeps/ieee754/dbl-64/s_f32xsubf64.c: Likewise.
19521 * sysdeps/ieee754/dbl-64/s_fsub.c: Likewise.
19522 * sysdeps/ieee754/float128/s_f32subf128.c: Likewise.
19523 * sysdeps/ieee754/float128/s_f64subf128.c: Likewise.
19524 * sysdeps/ieee754/float128/s_f64xsubf128.c: Likewise.
19525 * sysdeps/ieee754/ldbl-128/s_dsubl.c: Likewise.
19526 * sysdeps/ieee754/ldbl-128/s_f64xsubf128.c: Likewise.
19527 * sysdeps/ieee754/ldbl-128/s_fsubl.c: Likewise.
19528 * sysdeps/ieee754/ldbl-128ibm/s_dsubl.c: Likewise.
19529 * sysdeps/ieee754/ldbl-128ibm/s_fsubl.c: Likewise.
19530 * sysdeps/ieee754/ldbl-96/s_dsubl.c: Likewise.
19531 * sysdeps/ieee754/ldbl-96/s_fsubl.c: Likewise.
19532 * sysdeps/ieee754/ldbl-opt/nldbl-dsub.c: Likewise.
19533 * sysdeps/ieee754/ldbl-opt/nldbl-fsub.c: Likewise.
19534 * sysdeps/ieee754/soft-fp/s_dsubl.c: Likewise.
19535 * sysdeps/ieee754/soft-fp/s_fsub.c: Likewise.
19536 * sysdeps/ieee754/soft-fp/s_fsubl.c: Likewise.
19537 * sysdeps/powerpc/fpu/libm-test-ulps: Update.
19538 * sysdeps/mach/hurd/i386/libm.abilist: Likewise.
19539 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
19540 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
19541 * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
19542 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
19543 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
19544 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
19545 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
19546 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
19547 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
19548 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
19549 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
19550 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
19551 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Likewise.
19552 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist: Likewise.
19553 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Likewise.
19554 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Likewise.
19555 * sysdeps/unix/sysv/linux/riscv/rv64/libm.abilist: Likewise.
19556 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
19557 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
19558 * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
19559 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
19560 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
19561 * sysdeps/unix/sysv/linux/tile/tilegx32/libm.abilist: Likewise.
19562 * sysdeps/unix/sysv/linux/tile/tilegx64/libm.abilist: Likewise.
19563 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
19564 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
19565
19566 2018-03-19 Joseph Myers <joseph@codesourcery.com>
19567
19568 [BZ #20079]
19569 * elf/elf.h (SHT_X86_64_UNWIND): New macro.
19570
19571 2018-03-19 Wilco Dijkstra <wdijkstr@arm.com>
19572
19573 * benchtests/bench-timing.h (attribute_hidden): Undefine.
19574
19575 2018-03-18 Richard Braun <rbraun@sceen.net>
19576
19577 * sysdeps/mach/hurd/i386/tls.h (_hurd_tls_init): Use a temporary
19578 thread reference.
19579
19580 2018-03-18 Agustina Arzille <avarzille@riseup.net>
19581
19582 * sysdeps/mach/libc-lock.h (__libc_cleanup_frame): Define structure.
19583 (__libc_cleanup_fct): Define function.
19584 (__libc_cleanup_region_start, __libc_cleanup_region_end,
19585 __libc_cleanup_end): Rewrite implementation using
19586 __attribute__ ((__cleanup__)).
19587 (__libc_cleanup_push, __libc_cleanup_pop): New macros.
19588 * hurd/Makefile (routines): Add hurdlock.
19589 * hurd/Versions (GLIBC_PRIVATE): Added new entry to export the above
19590 interface.
19591 (HURD_CTHREADS_0.3): Remove __libc_getspecific.
19592 * hurd/hurdpid.c: Include <lowlevellock.h>
19593 (_S_msg_proc_newids): Use lll_wait to synchronize.
19594 * hurd/hurdsig.c: (reauth_proc): Use __mutex_lock and __mutex_unlock.
19595 * hurd/setauth.c: Include <hurdlock.h>, use integer for synchronization.
19596 * mach/Makefile (lock-headers): Remove machine-lock.h.
19597 * mach/lock-intern.h: Include <lowlevellock.h> instead of
19598 <machine-lock.h>.
19599 (__spin_lock_t): New type.
19600 (__SPIN_LOCK_INITIALIZER): New macro.
19601 (__spin_lock, __spin_unlock, __spin_try_lock, __spin_lock_locked,
19602 __mutex_init, __mutex_lock_solid, __mutex_unlock_solid, __mutex_lock,
19603 __mutex_unlock, __mutex_trylock): Use lll to implement locks.
19604 * mach/mutex-init.c: Include <lowlevellock.h> instead of <cthreads.h>.
19605 (__mutex_init): Initialize with lll.
19606 * manual/errno.texi (EOWNERDEAD, ENOTRECOVERABLE): New errno values.
19607 * sysdeps/mach/Makefile: Add libmachuser as dependencies for libs
19608 needing lll.
19609 * sysdeps/mach/hurd/bits/errno.h: Regenerate.
19610 * sysdeps/mach/hurd/cthreads.c (__libc_getspecific): Remove function.
19611 * sysdeps/mach/hurd/bits/libc-lock.h: Remove file.
19612 * sysdeps/mach/hurd/setpgid.c: Include <lowlevellock.h>.
19613 (__setpgid): Use lll for synchronization.
19614 * sysdeps/mach/hurd/setsid.c: Likewise with __setsid.
19615 * sysdeps/mach/bits/libc-lock.h: Include <tls.h> and <lowlevellock.h>
19616 instead of <cthreads.h>.
19617 (_IO_lock_inexpensive): New macro
19618 (__libc_lock_recursive_t, __rtld_lock_recursive_t): New structures.
19619 (__libc_lock_self0): New declaration.
19620 (__libc_lock_owner_self): New macro.
19621 (__libc_key_t): Remove type.
19622 (_LIBC_LOCK_INITIALIZER): New macro.
19623 (__libc_lock_define_initialized, __libc_lock_init, __libc_lock_fini,
19624 __libc_lock_fini_recursive, __rtld_lock_fini_recursive,
19625 __libc_lock_lock, __libc_lock_trylock, __libc_lock_unlock,
19626 __libc_lock_define_initialized_recursive,
19627 __rtld_lock_define_initialized_recursive,
19628 __libc_lock_init_recursive, __libc_lock_trylock_recursive,
19629 __libc_lock_lock_recursive, __libc_lock_unlock_recursive,
19630 __rtld_lock_initialize, __rtld_lock_trylock_recursive,
19631 __rtld_lock_lock_recursive, __rtld_lock_unlock_recursive
19632 __libc_once_define, __libc_mutex_unlock): Reimplement with lll.
19633 (__libc_lock_define_recursive, __rtld_lock_define_recursive,
19634 _LIBC_LOCK_RECURSIVE_INITIALIZER, _RTLD_LOCK_RECURSIVE_INITIALIZER):
19635 New macros.
19636 Include <libc-lockP.h> to reimplement libc_key* with pthread_key*.
19637 * hurd/hurdlock.c: New file.
19638 * hurd/hurdlock.h: New file.
19639 * mach/lowlevellock.h: New file
19640
19641 2018-03-18 Samuel Thibault <samuel.thibault@ens-lyon.org>
19642
19643 * sysdeps/mach/hurd/cthreads.c: Include <cthreads.h>.
19644 * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Return ELOOP
19645 when opening a symlink with O_NOFOLLOW.
19646 * hurd/hurdlookup.c (__hurd_file_name_lookup): Do not append '/' to
19647 path when flags contains O_NOFOLLOW.
19648 * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Return ENOTDIR
19649 if flags contains O_DIRECTORY and the result is a directory.
19650 * sysdeps/mach/hurd/i386/init-first.c (init): Also find ELF headers by
19651 oneself when the pointer given in D is nul (as set by ext2fs).
19652 * sysdeps/mach/hurd/mlockall.c: New file.
19653 * sysdeps/mach/hurd/munlockall.c: New file.
19654
19655 2018-03-17 Samuel Thibault <samuel.thibault@ens-lyon.org>
19656
19657 * hurd/hurdsig.c: Include <pthread.h>.
19658 (_hurdsig_init): Call pthread_getattr_np and pthread_attr_getstack to
19659 get the signal thread stack layout.
19660 * hurd/Makefile (headers): Remove threadvar.h.
19661 (inline-headers): Remove threadvar.h.
19662 * hurd/Versions (GLIBC_2.0: Remove __hurd_sigthread_stack_base,
19663 __hurd_sigthread_stack_end, __hurd_sigthread_variables,
19664 __hurd_threadvar_max, __hurd_errno_location.
19665 (HURD_CTHREADS_0.3): Add pthread_getattr_np, pthread_attr_getstack.
19666 * hurd/hurd/signal.h: Do not include <hurd/threadvar.h>.
19667 (_hurd_self_sigstate): Use THREAD_SELF to get _hurd_sigstate.
19668 (_HURD_SIGNAL_H_EXTERN_INLINE): Use THREAD_SELF to get _hurd_sigstate,
19669 unless TLS is not initialized yet, in which case we do not need a
19670 critical section yet anyway.
19671 * hurd/hurd/threadvar.h: Include <tls.h>, do not include
19672 <machine-sp.h>.
19673 (__hurd_sigthread_variables, __hurd_threadvar_max): Remove variables
19674 declarations.
19675 (__hurd_threadvar_index): Remove enum.
19676 (_HURD_THREADVAR_H_EXTERN_INLINE): Remove macro.
19677 (__hurd_threadvar_location_from_sp,__hurd_threadvar_location): Remove
19678 inlines.
19679 (__hurd_reply_port0): New variable declaration.
19680 (__hurd_local_reply_port): New macro.
19681 * hurd/hurdsig.c (__hurd_sigthread_variables): Remove variable.
19682 (interrupted_reply_port_location): Add thread_t parameter. Use it
19683 with THREAD_TCB to access thread-local variables.
19684 (_hurdsig_abort_rpcs): Pass ss->thread to
19685 interrupted_reply_port_location.
19686 (_hurd_internal_post_signal): Likewise.
19687 (_hurdsig_init): Use presence of cthread_fork instead of
19688 __hurd_threadvar_stack_mask to start signal thread by hand.
19689 Remove signal thread threadvar initialization.
19690 * hurd/hurdstartup.c: Do not include <hurd/threadvar.h>
19691 * hurd/sigunwind.c: Include <hurd/threadvar.h>
19692 (_hurdsig_longjmp_from_handler): Use __hurd_local_reply_port instead
19693 of threadvar.
19694 * sysdeps/mach/hurd/Versions (libc.GLIBC_PRIVATE): Add
19695 __libc_lock_self0.
19696 (ld.GLIBC_2.0): Remove __hurd_sigthread_stack_base,
19697 __hurd_sigthread_stack_end, __hurd_sigthread_variables.
19698 (ld.GLIBC_PRIVATE): Add __libc_lock_self0.
19699 * sysdeps/mach/hurd/cthreads.c: Add __libc_lock_self0.
19700 * sysdeps/mach/hurd/dl-sysdep.c (errno, __hurd_sigthread_stack_base,
19701 __hurd_sigthread_stack_end, __hurd_sigthread_variables, threadvars,
19702 __hurd_threadvar_stack_offset, __hurd_threadvar_stack_mask): Do not
19703 define variables.
19704 * sysdeps/mach/hurd/errno-loc.c: Do not include <errno.h> and
19705 <hurd/threadvar.h>.
19706 [IS_IN(rtld)] (rtld_errno): New variable.
19707 [IS_IN(rtld)] (__errno_location): New weak function.
19708 [!IS_IN(rtld)]: Include "../../../csu/errno-loc.c".
19709 * sysdeps/mach/hurd/errno.c: Remove file.
19710 * sysdeps/mach/hurd/fork.c: Include <hurd/threadvar.h>
19711 (__fork): Remove THREADVAR_SPACE macro and its use.
19712 * sysdeps/mach/hurd/i386/init-first.c (__hurd_threadvar_max): Remove
19713 variable.
19714 (init): Do not initialize threadvar.
19715 * sysdeps/mach/hurd/i386/libc.abilist (__hurd_threadvar_max): Remove
19716 symbol.
19717 * sysdeps/mach/hurd/i386/sigreturn.c (__sigreturn): Use
19718 __hurd_local_reply_port instead of threadvar.
19719 * sysdeps/mach/hurd/i386/tls.h (tcbhead_t): Add reply_port and
19720 _hurd_sigstate fields.
19721 (HURD_DESC_TLS, __LIBC_NO_TLS, THREAD_TCB): New macro.
19722 * sysdeps/mach/hurd/i386/trampoline.c: Remove outdated comment.
19723 * sysdeps/mach/hurd/libc-lock.h: Do not include <hurd/threadvar.h>.
19724 (__libc_lock_owner_self): Use &__libc_lock_self0 and THREAD_SELF
19725 instead of threadvar.
19726 * sysdeps/mach/hurd/libc-tsd.h: Remove file.
19727 * sysdeps/mach/hurd/mig-reply.c (GETPORT, reply_port): Remove macros.
19728 (use_threadvar, global_reply_port): Remove variables.
19729 (__hurd_reply_port0): New variable.
19730 (__mig_get_reply_port): Use __hurd_local_reply_port and
19731 __hurd_reply_port0 instead of threadvar.
19732 (__mig_dealloc_reply_port): Likewise.
19733 (__mig_init): Do not initialize threadvar.
19734 * sysdeps/mach/hurd/profil.c: Fix comment.
19735 * hurd/Versions (HURD_CTHREADS_0.3): Rename weak refs cthread_fork,
19736 cthread_detach, pthread_getattr_np, pthread_attr_getstack,
19737 cthread_keycreate, cthread_getspecific, cthread_setspecific to
19738 __cthread_fork, __cthread_detach, __pthread_getattr_np,
19739 __pthread_attr_getstack, __cthread_keycreate, __cthread_getspecific,
19740 __cthread_setspecific.
19741 * hurd/hurdsig.c (_hurdsig_init): Use __cthread_fork,
19742 __cthread_detach, __pthread_getattr_np, __pthread_attr_getstack,
19743 __cthread_t instead of cthread_fork, cthread_detach,
19744 pthread_getattr_np, pthread_attr_getstack.
19745 * sysdeps/mach/hurd/cthreads.c (cthread_keycreate): Rename to
19746 __cthread_keycreate.
19747 (cthread_getspecific): Rename to __cthread_getspecific.
19748 (cthread_setspecific): Rename to __cthread_setspecific.
19749 (__libc_getspecific): Use __cthread_getspecific instead of
19750 cthread_getspecific.
19751 * sysdeps/mach/hurd/libc-lock.h (__libc_key_create): Use
19752 __cthread_keycreate instead of cthread_keycreate.
19753 (__libc_setspecific): Use __cthread_setspecific instead of
19754 cthread_setspecific.
19755 * sysdeps/mach/libc-lock.h (__libc_key_create, __libc_setspecific):
19756 Likewise.
19757 * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Always include
19758 <dl-sysdep.h>. Test for value of RTLD_PRIVATE_ERRNO instead of
19759 testing whether it is defined.
19760
19761 2018-03-16 Samuel Thibault <samuel.thibault@ens-lyon.org>
19762
19763 * sysdeps/generic/thread_state.h (MACHINE_NEW_THREAD_STATE_FLAVOR):
19764 Define macro.
19765 * sysdeps/mach/thread_state.h (MACHINE_THREAD_STATE_FIX_NEW): New macro.
19766 * sysdeps/mach/i386/thread_state.h
19767 (MACHINE_NEW_THREAD_STATE_FLAVOR): New macro, defined to
19768 i386_THREAD_STATE.
19769 (MACHINE_THREAD_STATE_FLAVOR): Define to i386_REGS_SEGS_STATE instead of
19770 i386_THREAD_STATE.
19771 (MACHINE_THREAD_STATE_FIX_NEW): New macro, reads segments.
19772
19773 * sysdeps/mach/hurd/i386/trampoline.c (_hurd_setup_sighandler): Use
19774 i386_REGS_SEGS_STATE instead of i386_THREAD_STATE.
19775
19776 * sysdeps/mach/hurd/i386/tls.h (TCB_ALIGNMENT, HURD_SEL_LDT): New
19777 macros.
19778 (_hurd_tls_fork): Add original thread parameter, Duplicate existing LDT
19779 descriptor instead of creating a new one.
19780 (_hurd_tls_new): New function, creates a new descriptor and updates tcb.
19781
19782 * mach/setup-thread.c: Include <ldsodefs.h>.
19783 (__mach_setup_thread): Call _dl_allocate_tls, pass
19784 MACHINE_NEW_THREAD_STATE_FLAVOR to __thread_set_state instead of
19785 MACHINE_THREAD_STATE_FLAVOR, before getting
19786 MACHINE_THREAD_STATE_FLAVOR, calling _hurd_tls_new, and setting
19787 MACHINE_THREAD_STATE_FLAVOR with the result.
19788 * hurd/hurdfault.c (_hurdsig_fault_init): Call
19789 MACHINE_THREAD_STATE_FIX_NEW.
19790 * sysdeps/mach/hurd/fork.c (__fork): Call _hurd_tls_fork for sigthread
19791 too. Add original thread parameter.
19792
19793 2018-03-16 Joseph Myers <joseph@codesourcery.com>
19794
19795 * sysdeps/x86/fpu/bits/mathinline.h [__USE_MISC] (__finite):
19796 Remove inline function.
19797
19798 * sysdeps/i386/fpu/libm-test-ulps: Update.
19799 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
19800
19801 2018-03-16 Wilco Dijkstra <wdijkstr@arm.com>
19802
19803 * sysdeps/m68k/m680x0/fpu/mathimpl.h (__ieee754_sqrt): Revert previous
19804 commit.
19805
19806 2018-03-15 Joseph Myers <joseph@codesourcery.com>
19807
19808 * sysdeps/x86/fpu/bits/mathinline.h [__FAST_MATH__]
19809 (__sincos_code): Remove define and undefine.
19810 [__FAST_MATH__] (__sincos): Remove inline function.
19811 [__FAST_MATH__] (__sincosf): Remove inline function.
19812 [__FAST_MATH__] (__sincosl): Remove inline function.
19813 (__atan2l): Remove inline functions.
19814 [!__GNUC_PREREQ (3, 4)] (__atan2_code): Remove macro.
19815 [!__GNUC_PREREQ (3, 4) && __FAST_MATH__] (atan2): Remove inline
19816 function.
19817 (floor): Remove inline function.
19818 (ceil): Likewise.
19819 [__FAST_MATH__] (__ldexp_code): Remove macro.
19820 [__FAST_MATH__] (ldexp): Remove inline function.
19821 [__FAST_MATH__ && __USE_ISOC99] (ldexpf): Likewise.
19822 [__FAST_MATH__ && __USE_ISOC99] (ldexpl): Likewise.
19823 [__FAST_MATH__ && __USE_ISOC99] (rint): Likewise.
19824 [__USE_ISOC99] (__lrint_code): Remove macro.
19825 [__USE_ISOC99] (__llrint_code): Likewise.
19826 [__USE_ISOC99] (lrintf): Remove inline function.
19827 [__USE_ISOC99] (lrint): Likewise.
19828 [__USE_ISOC99] (lrintl): Likewise.
19829 [__USE_ISOC99] (llrint): Likewise.
19830 [__USE_ISOC99] (llrintf): Likewise.
19831 [__USE_ISOC99] (llrintl): Likewise.
19832
19833 2018-03-15 Wilco Dijkstra <wdijkstr@arm.com>
19834
19835 * sysdeps/aarch64/fpu/math_private.h (__ieee754_sqrt): Remove.
19836 (__ieee754_sqrtf): Remove.
19837 * sysdeps/alpha/fpu/math_private.h (__ieee754_sqrt): Remove.
19838 (__ieee754_sqrtf): Remove.
19839 * sysdeps/generic/math-type-macros.h (M_SQRT): Use sqrt.
19840 * sysdeps/m68k/m680x0/fpu/mathimpl.h (__ieee754_sqrt): Remove.
19841 * sysdeps/powerpc/fpu/math_private.h (__ieee754_sqrt): Remove.
19842 (__ieee754_sqrtf): Remove.
19843 * sysdeps/s390/fpu/bits/mathinline.h: Remove file.
19844 * sysdeps/sparc/fpu/bits/mathinline.h (sqrt) Remove.
19845 (sqrtf): Remove.
19846 (sqrtl): Remove.
19847 (__ieee754_sqrt): Remove.
19848 (__ieee754_sqrtf): Remove.
19849 (__ieee754_sqrtl): Remove.
19850 * sysdeps/m68k/m680x0/fpu/mathimpl.h (__ieee754_sqrt): Remove.
19851 * sysdeps/x86/fpu/math_private.h (__ieee754_sqrt): Remove.
19852 * sysdeps/x86_64/fpu/math_private.h (__ieee754_sqrt): Remove.
19853 (__ieee754_sqrtf): Remove.
19854 (__ieee754_sqrtl): Remove.
19855
19856 2018-03-15 Wilco Dijkstra <wdijkstr@arm.com>
19857
19858 * sysdeps/ieee754/dbl-64/e_acosh.c (__ieee754_acosh): Use sqrt.
19859 * sysdeps/ieee754/dbl-64/e_gamma_r.c (gamma_positive): Likewise.
19860 * sysdeps/ieee754/dbl-64/e_hypot.c (__ieee754_hypot): Likewise.
19861 * sysdeps/ieee754/dbl-64/e_j0.c (__ieee754_j0): Likewise.
19862 * sysdeps/ieee754/dbl-64/e_j1.c (__ieee754_j1): Likewise.
19863 * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_jn): Likewise.
19864 * sysdeps/ieee754/dbl-64/s_asinh.c (__asinh): Likewise.
19865 * sysdeps/ieee754/dbl-64/wordsize-64/e_acosh.c (__ieee754_acosh):
19866 Likewise.
19867 * sysdeps/ieee754/flt-32/e_acosf.c (__ieee754_acosf): Likewise.
19868 * sysdeps/ieee754/flt-32/e_acoshf.c (__ieee754_acoshf): Likewise.
19869 * sysdeps/ieee754/flt-32/e_asinf.c (__ieee754_asinf): Likewise.
19870 * sysdeps/ieee754/flt-32/e_gammaf_r.c (gammaf_positive): Likewise.
19871 * sysdeps/ieee754/flt-32/e_hypotf.c (__ieee754_hypotf): Likewise.
19872 * sysdeps/ieee754/flt-32/e_j0f.c (__ieee754_j0f): Likewise.
19873 * sysdeps/ieee754/flt-32/e_j1f.c (__ieee754_j1f): Likewise.
19874 * sysdeps/ieee754/flt-32/e_powf.c (__ieee754_powf): Likewise.
19875 * sysdeps/ieee754/flt-32/s_asinhf.c (__asinhf): Likewise.
19876 * sysdeps/ieee754/ldbl-128/e_acoshl.c (__ieee754_acoshl): Use sqrtl.
19877 * sysdeps/ieee754/ldbl-128/e_acosl.c (__ieee754_acosl): Likewise.
19878 * sysdeps/ieee754/ldbl-128/e_asinl.c (__ieee754_asinl): Likewise.
19879 * sysdeps/ieee754/ldbl-128/e_gammal_r.c (gammal_positive): Likewise.
19880 * sysdeps/ieee754/ldbl-128/e_hypotl.c (__ieee754_hypotl): Likewise.
19881 * sysdeps/ieee754/ldbl-128/e_j0l.c (__ieee754_j0l): Likewise.
19882 * sysdeps/ieee754/ldbl-128/e_j1l.c (__ieee754_j1l): Likewise.
19883 * sysdeps/ieee754/ldbl-128/e_jnl.c (__ieee754_jnl): Likewise.
19884 * sysdeps/ieee754/ldbl-128/e_powl.c (__ieee754_powl): Likewise.
19885 * sysdeps/ieee754/ldbl-128/s_asinhl.c (__ieee754_asinhl): Likewise.
19886 * sysdeps/ieee754/ldbl-128ibm/e_acoshl.c (__ieee754_acoshl): Likewise.
19887 * sysdeps/ieee754/ldbl-128ibm/e_acosl.c (__ieee754_acosl): Likewise.
19888 * sysdeps/ieee754/ldbl-128ibm/e_asinl.c (__ieee754_asinl): Likewise.
19889 * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (gammal_positive): Likewise.
19890 * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c (__ieee754_hypotl): Likewise.
19891 * sysdeps/ieee754/ldbl-128ibm/e_j0l.c (__ieee754_j0l): Likewise.
19892 * sysdeps/ieee754/ldbl-128ibm/e_j1l.c (__ieee754_j1l): Likewise
19893 * sysdeps/ieee754/ldbl-128ibm/e_jnl.c (__ieee754_jnl): Likewise.
19894 * sysdeps/ieee754/ldbl-128ibm/e_powl.c (__ieee754_powl): Likewise.
19895 * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c (__ieee754_asinhl): Likewise.
19896 * sysdeps/ieee754/ldbl-96/e_acoshl.c (__ieee754_acoshl): Use sqrtl.
19897 * sysdeps/ieee754/ldbl-96/e_asinl.c (__ieee754_asinl): Likewise.
19898 * sysdeps/ieee754/ldbl-96/e_gammal_r.c (gammal_positive): Likewise.
19899 * sysdeps/ieee754/ldbl-96/e_hypotl.c (__ieee754_hypotl): Likewise.
19900 * sysdeps/ieee754/ldbl-96/e_j0l.c (__ieee754_j0l): Likewise.
19901 * sysdeps/ieee754/ldbl-96/e_j1l.c (__ieee754_j1l): Likewise.
19902 * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_jnl): Likewise.
19903 * sysdeps/ieee754/ldbl-96/s_asinhl.c (__ieee754_asinhl): Likewise.
19904 * sysdeps/m68k/m680x0/fpu/e_pow.c (__ieee754_pow): Likewise.
19905 * sysdeps/powerpc/fpu/e_hypot.c (__ieee754_hypot): Likewise.
19906 * sysdeps/powerpc/fpu/e_hypotf.c (__ieee754_hypotf): Likewise.
19907
19908 2018-03-15 Wilco Dijkstra <wdijkstr@arm.com>
19909
19910 * include/math.h (sqrt): Declare with asm redirect.
19911 (sqrtf): Likewise.
19912 (sqrtl): Likewise.
19913 (sqrtf128): Likewise.
19914 * Makeconfig: Add -fno-math-errno for libc/libm, but build testsuite,
19915 nonlib and libnldbl with -fmath-errno.
19916 * math/w_sqrt_compat.c: Define NO_MATH_REDIRECT.
19917 * math/w_sqrt_template.c: Likewise.
19918 * math/w_sqrtf_compat.c: Likewise.
19919 * math/w_sqrtl_compat.c: Likewise.
19920 * sysdeps/i386/fpu/w_sqrt.c: Likewise.
19921 * sysdeps/i386/fpu/w_sqrt_compat.c: Likewise.
19922 * sysdeps/generic/math-type-macros-float128.h: Remove math.h and
19923 complex.h.
19924
19925 2018-03-15 Wilco Dijkstra <wdijkstr@arm.com>
19926
19927 * benchtests/Makefile: Define _ISOMAC.
19928 * benchtests/bench-strcoll.c: Add missing sys/stat.h include.
19929 * benchtests/bench-string.h: Define inhibit_loop_to_libcall macro.
19930 * benchtests/bench-strstr.c: Define empty libc_hidden_builtin_def.
19931 * benchtests/bench-strtok.c (oldstrtok): Use rawmemchr.
19932 * benchtests/bench-timing.h: Define attribute_hidden.
19933
19934 2018-03-15 Siddhesh Poyarekar <siddhesh@sourceware.org>
19935
19936 * sysdeps/aarch64/strncmp.S (strncmp): Use lsr instead of
19937 mov + lsr.
19938
19939 2018-03-15 Rafał Lużyński <digitalfreak@lingonborough.com>
19940
19941 [BZ #22963]
19942 * localedata/locales/cs_CZ (mon): Rename to...
19943 (alt_mon): This.
19944 (mon): Import from CLDR (genitive case).
19945
19946 2018-03-15 Rafał Lużyński <digitalfreak@lingonborough.com>
19947
19948 [BZ #22937]
19949 * localedata/locales/el_CY (abmon): Rename to...
19950 (ab_alt_mon): This.
19951 (abmon): Import from CLDR (abbreviated genitive case).
19952 * localedata/locales/el_GR (abmon): Rename to...
19953 (ab_alt_mon): This.
19954 (abmon): Import from CLDR (abbreviated genitive case).
19955
19956 2018-03-15 Rafał Lużyński <digitalfreak@lingonborough.com>
19957
19958 [BZ #22932]
19959 * localedata/locales/lt_LT (abmon): Synchronize with CLDR.
19960
19961 2018-03-15 Robert Buj <robert.buj@gmail.com>
19962
19963 [BZ #22848]
19964 * localedata/locales/ca_ES (abmon): Rename to...
19965 (ab_alt_mon): This, then synchronize with CLDR (nominative case).
19966 (mon): Rename to...
19967 (alt_mon): This.
19968 (abmon): Import from CLDR (genitive case, month names preceded by
19969 "de" or "d’").
19970 (mon): Likewise.
19971 (abday): Synchronize with CLDR.
19972 (d_t_fmt): Likewise.
19973 (d_fmt): Likewise.
19974 (am_pm): Likewise.
19975
19976 (LC_TIME): Improve indentation.
19977 (LC_TELEPHONE): Likewise.
19978 (LC_NAME): Likewise.
19979 (LC_ADDRESS): Likewise.
19980
19981 2018-03-14 Joseph Myers <joseph@codesourcery.com>
19982
19983 * sysdeps/x86/fpu/bits/mathinline.h [!__GNUC_PREREQ (3, 4)]
19984 (lrintf): Remove definitions used only with old GCC.
19985 [!__GNUC_PREREQ (3, 4)] (lrint): Likewise.
19986 [!__GNUC_PREREQ (3, 4)] (llrintf): Likewise.
19987 [!__GNUC_PREREQ (3, 4)] (llrint): Likewise.
19988 [!__GNUC_PREREQ (3, 4)] (fmaxf): Likewise.
19989 [!__GNUC_PREREQ (3, 4)] (fmax): Likewise.
19990 [!__GNUC_PREREQ (3, 4)] (fminf): Likewise.
19991 [!__GNUC_PREREQ (3, 4)] (fmin): Likewise.
19992 [!__GNUC_PREREQ (3, 4)] (rint): Likewise.
19993 [!__GNUC_PREREQ (3, 4)] (rintf): Likewise.
19994 [!__GNUC_PREREQ (3, 4)] (nearbyint): Likewise.
19995 [!__GNUC_PREREQ (3, 4)] (nearbyintf): Likewise.
19996 [!__GNUC_PREREQ (3, 4)] (ceil): Likewise.
19997 [!__GNUC_PREREQ (3, 4)] (ceilf): Likewise.
19998 [!__GNUC_PREREQ (3, 4)] (floor): Likewise.
19999 [!__GNUC_PREREQ (3, 4)] (floorf): Likewise.
20000 [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (tan): Likewise.
20001 [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (fmod): Likewise.
20002 [__FAST_MATH__ && !__GNUC_PREREQ (3, 4)] (sin): Likewise.
20003 [__FAST_MATH__ && !__GNUC_PREREQ (3, 4)] (cos): Likewise.
20004 [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (log10): Likewise.
20005 [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (asin): Likewise.
20006 [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (acos): Likewise.
20007 [__FAST_MATH__ && !__GNUC_PREREQ (3, 4)] (atan): Likewise.
20008 [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (log1p): Likewise.
20009 [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (logb): Likewise.
20010 [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (log2): Likewise.
20011 [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (drem): Likewise.
20012 [__FAST_MATH__] (__M_SQRT2): Remove macro.
20013
20014 2018-03-14 Siddhesh Poyarekar <siddhesh@sourceware.org>
20015
20016 * sysdeps/aarch64/strncmp.S (strncmp): Use a separate shift
20017 instruction to unbreak builds with binutils 2.26 and older.
20018
20019 2018-03-13 Siddhesh Poyarekar <siddhesh@sourceware.org>
20020
20021 * sysdeps/aarch64/strncmp.S (count): New macro.
20022 (strncmp): Store misaligned length in SRC1 in COUNT.
20023 (mutual_align): Adjust.
20024 (misaligned8): Load dword at a time when it is safe.
20025
20026 2018-03-12 Zack Weinberg <zackw@panix.com>
20027
20028 [BZ #1190]
20029 [BZ #19476]
20030 * libio/fileops.c (_IO_new_file_underflow): Return EOF immediately
20031 if the _IO_EOF_SEEN bit is already set; update commentary.
20032 * libio/oldfileops.c (_IO_old_file_underflow): Likewise.
20033 * libio/wfileops.c (_IO_wfile_underflow): Likewise.
20034
20035 * support/support_openpty.c, support/tty.h: New files.
20036 * support/Makefile (libsupport-routines): Add support_openpty.
20037
20038 * libio/tst-fgetc-after-eof.c, wcsmbs/test-fgetwc-after-eof.c:
20039 New test cases.
20040 * libio/Makefile (tests): Add tst-fgetc-after-eof.
20041 * wcsmbs/Makefile (tests): Add tst-fgetwc-after-eof.
20042
20043 2018-03-12 Dmitry V. Levin <ldv@altlinux.org>
20044
20045 * po/pt_BR.po: Update translations.
20046
20047 2018-03-12 David Michael <fedora.dm0@gmail.com>
20048
20049 * sysdeps/mach/hurd/reboot.c: Include <hurd/paths.h>
20050 (reboot): Lookup _SERVERS_STARTUP instead of calling proc_getmsgport to
20051 get a port to the startup server.
20052
20053 2018-03-11 Zack Weinberg <zackw@panix.com>
20054
20055 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c: Include math.h
20056 before nldbl-compat.h.
20057
20058 2018-03-10 Zack Weinberg <zackw@panix.com>
20059
20060 * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Don't include
20061 math.h or math_private.h.
20062
20063 * sysdeps/alpha/fpu/s_isnan.c
20064 * sysdeps/ieee754/ldbl-128ibm/s_ceill.c
20065 * sysdeps/ieee754/ldbl-128ibm/s_floorl.c
20066 * sysdeps/ieee754/ldbl-128ibm/s_llrintl.c
20067 * sysdeps/ieee754/ldbl-128ibm/s_llroundl.c
20068 * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c
20069 * sysdeps/ieee754/ldbl-128ibm/s_lroundl.c
20070 * sysdeps/ieee754/ldbl-128ibm/s_rintl.c
20071 * sysdeps/ieee754/ldbl-128ibm/s_roundl.c
20072 * sysdeps/ieee754/ldbl-128ibm/s_truncl.c
20073 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/e_hypot.c
20074 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/e_hypotf.c:
20075 * sysdeps/powerpc/powerpc64/fpu/multiarch/e_expf.c
20076 * sysdeps/powerpc/powerpc64/fpu/multiarch/e_hypot.c
20077 * sysdeps/powerpc/powerpc64/fpu/multiarch/e_hypotf.c:
20078 Include math_private.h.
20079
20080 * sysdeps/ieee754/ldbl-64-128/s_finitel.c
20081 * sysdeps/ieee754/ldbl-64-128/s_fpclassifyl.c
20082 * sysdeps/ieee754/ldbl-64-128/s_isinfl.c
20083 * sysdeps/ieee754/ldbl-64-128/s_isnanl.c
20084 * sysdeps/ieee754/ldbl-64-128/s_signbitl.c
20085 * sysdeps/powerpc/power7/fpu/s_logb.c:
20086 Include math.h and math_private.h.
20087
20088 * sysdeps/unix/sysv/linux/alpha/clone.S (__clone): Wrap manual
20089 uses of $at in .set noat / .set at.
20090
20091 2018-03-10 H.J. Lu <hongjiu.lu@intel.com>
20092
20093 * include/setjmp.h (__libc_longjmp): Remove libc_hidden_proto.
20094 * setjmp/longjmp.c (__libc_longjmp): Remove libc_hidden_def.
20095 * sysdeps/s390/longjmp.c (__libc_longjmp): Likewise.
20096 * sysdeps/unix/sysv/linux/sparc/sparc64/longjmp.S (__libc_longjmp):
20097 Likewise.
20098
20099 2018-03-09 Florian Weimer <fweimer@redhat.com>
20100
20101 * malloc/malloc.c (prev_size, set_prev_size, prev_chunk): Fix typo
20102 in comment.
20103
20104 2018-03-09 Aurelien Jarno <aurelien@aurel32.net>
20105
20106 [BZ #22919]
20107 * sysdeps/unix/sysv/linux/sparc/sparc32/setcontext.S (__startcontext):
20108 Add nop before __startcontext, add explaining comments.
20109
20110 2018-03-07 Adhemerval Zanella <adhemerval.zanella@linaro.org>
20111
20112 [BZ #22926]
20113 * sysdeps/powerpc/powerpc32/sysdep.h (ABORT_TRANSACTION_IMPL): Define
20114 empty for __SPE__.
20115 * sysdeps/powerpc/sysdep.h (ABORT_TRANSACTION): Likewise.
20116 * sysdeps/unix/sysv/linux/powerpc/elision-lock.c (__lll_lock_elision):
20117 Do not build hardware transactional code for __SPE__.
20118 * sysdeps/unix/sysv/linux/powerpc/elision-trylock.c
20119 (__lll_trylock_elision): Likewise.
20120 * sysdeps/unix/sysv/linux/powerpc/elision-unlock.c
20121 (__lll_unlock_elision): Likewise.
20122
20123 * sysdeps/nptl/fork.c (ARCH_FORK): Replace by arch_fork.
20124 * sysdeps/unix/sysv/linux/alpha/arch-fork.h: Remove file.
20125 * sysdeps/unix/sysv/linux/riscv/arch-fork.h: Likewise.
20126 * sysdeps/unix/sysv/linux/aarch64/arch-fork.h: Likewise.
20127 * sysdeps/unix/sysv/linux/arm/arch-fork.h: Likewise.
20128 * sysdeps/unix/sysv/linux/hppa/arch-fork.h: Likewise.
20129 * sysdeps/unix/sysv/linux/i386/arch-fork.h: Likewise.
20130 * sysdeps/unix/sysv/linux/ia64/arch-fork.h: Likewise.
20131 * sysdeps/unix/sysv/linux/m68k/arch-fork.h: Likewise.
20132 * sysdeps/unix/sysv/linux/microblaze/arch-fork.h: Likewise.
20133 * sysdeps/unix/sysv/linux/mips/arch-fork.h: Likewise.
20134 * sysdeps/unix/sysv/linux/nios2/arch-fork.h: Likewise.
20135 * sysdeps/unix/sysv/linux/powerpc/arch-fork.h: Likewise.
20136 * sysdeps/unix/sysv/linux/s390/arch-fork.h: Likewise.
20137 * sysdeps/unix/sysv/linux/sh/arch-fork.h: Likewise.
20138 * sysdeps/unix/sysv/linux/sparc/arch-fork.h: Likewise.
20139 * sysdeps/unix/sysv/linux/tile/arch-fork.h: Likewise.
20140 * sysdeps/unix/sysv/linux/x86_64/arch-fork.h: Likewise.
20141 * sysdeps/unix/sysv/linux/arch-fork.h (arch_fork): New function.
20142 * sysdeps/unix/sysv/linux/aarch64/kernel-features.h: New file.
20143 * sysdeps/unix/sysv/linux/riscv/kernel-features.h: Likewise.
20144 * sysdeps/unix/sysv/linux/arm/kernel-features.h
20145 (__ASSUME_CLONE_BACKWARDS): Define.
20146 * sysdeps/unix/sysv/linux/createthread.c (ARCH_CLONE): Define to
20147 __clone2 if __NR_clone2 is defined.
20148 * sysdeps/unix/sysv/linux/hppa/kernel-features.h
20149 (__ASSUME_CLONE_BACKWARDS): Likewise.
20150 * sysdeps/unix/sysv/linux/i386/kernel-features.h
20151 (__ASSUME_CLONE_BACKWARDS): Likewise.
20152 * sysdeps/unix/sysv/linux/ia64/kernel-features.h
20153 (__ASSUME_CLONE2): Likewise.
20154 * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
20155 (__ASSUME_CLONE_BACKWARDS3): Likewise.
20156 * sysdeps/unix/sysv/linux/kernel-features.h: Document possible clone
20157 variants and the define architecture can use.
20158 (__ASSUME_CLONE_DEFAULT): Define as default.
20159 * sysdeps/unix/sysv/linux/mips/kernel-features.h
20160 (__ASSUME_CLONE_BACKWARDS): Likewise.
20161 * sysdeps/unix/sysv/linux/powerpc/kernel-features.h
20162 (__ASSUME_CLONE_BACKWARDS): Likewise.
20163 * sysdeps/unix/sysv/linux/s390/kernel-features.h
20164 (__ASSUME_CLONE_BACKWARDS2): Likewise.
20165
20166 2018-03-06 Siddhesh Poyarekar <siddhesh@sourceware.org>
20167
20168 * sysdeps/aarch64/memcmp.S (more16): Fix loop16 branch target.
20169
20170 * sysdeps/aarch64/memcmp.S: Widen comparison to 16 bytes at a
20171 time.
20172
20173 * benchtests/bench-strncmp.c (test_main): Remove 0 length tests.
20174 (do_test_limit): Likewise.
20175
20176 * benchtests/bench-strncmp.c (do_test_limit): Reallocate buffers
20177 for every implementation.
20178 (do_test): Likewise.
20179
20180 * benchtests/bench-strncmp.c: Convert output to json.
20181
20182 2018-03-06 Samuel Thibault <samuel.thibault@ens-lyon.org>
20183
20184 * io/futimens.c: Add missing start-of-file descriptive comment.
20185 * io/utime.c: Likewise.
20186 * misc/futimesat.c: Likewise.
20187 * misc/utimes.c: Likewise.
20188 * sysdeps/mach/hurd/futimesat.c: Likewise.
20189 * sysdeps/mach/hurd/utimes.c: Likewise.
20190 * sysdeps/posix/utime.c: Likewise.
20191 * sysdeps/posix/utimes.c: Likewise.
20192 * sysdeps/unix/sysv/linux/futimesat.c: Likewise.
20193 * sysdeps/unix/sysv/linux/generic/futimesat.c: Likewise.
20194 * sysdeps/unix/sysv/linux/generic/utimes.c: Likewise.
20195 * sysdeps/unix/sysv/linux/utimes.c: Likewise.
20196
20197 2018-03-05 Samuel Thibault <samuel.thibault@ens-lyon.org>
20198
20199 * sysdeps/mach/hurd/utime-helper.c (hurd_futimens): Rename function to
20200 hurd_futimes.
20201 * sysdeps/mach/hurd/utimes.c (__utimes): Update call accordingly.
20202 * sysdeps/mach/hurd/lutimes.c (__lutimes): Likewise.
20203 * sysdeps/mach/hurd/futimens.c: Include "utime-helper.c".
20204 (__futimens): Move implementation to...
20205 * sysdeps/mach/hurd/utime-helper.c (utime_ts_from_tspec,
20206 utime_tvalue_from_tspec): ... new helper functions.
20207 (hurd_futimens): New function.
20208 * sysdeps/mach/hurd/futimesat.c: New file.
20209 * sysdeps/mach/hurd/utimensat.c: New file.
20210
20211 2018-03-05 Flávio Cruz <flaviocruz@gmail.com>
20212
20213 * sysdeps/mach/hurd/bits/stat.h [__USE_ATFILE] (UTIME_NOW,
20214 UTIME_OMIT): New macros.
20215 * sysdeps/mach/hurd/futimens.c (__futimens): Try to use __file_utimens
20216 before reverting to converting time spec to time value and calling
20217 __file_utimes.
20218 * sysdeps/mach/hurd/utime-helper.c: New file.
20219 * sysdeps/mach/hurd/futimes.c: Include "utime-helper.c".
20220 (__futimes): Try to use utime_ts_from_tval and __file_utimens before
20221 reverting to utime_tvalue_from_tval and __file_utimes.
20222 * sysdeps/mach/hurd/lutimes.c: Include "utime-helper.c".
20223 (__lutimes): Just call hurd_futimens after lookup.
20224 * sysdeps/mach/hurd/utimes.c: Likewise.
20225
20226 2018-03-05 Samuel Thibault <samuel.thibault@ens-lyon.org>
20227
20228 * bits/sigaction.h: Add include guard.
20229 * sysdeps/unix/sysv/linux/alpha/bits/sigaction.h: Likewise.
20230 * sysdeps/unix/sysv/linux/bits/sigaction.h: Likewise.
20231 * sysdeps/unix/sysv/linux/hppa/bits/sigaction.h: Likewise.
20232 * sysdeps/unix/sysv/linux/ia64/bits/sigaction.h: Likewise.
20233 * sysdeps/unix/sysv/linux/mips/bits/sigaction.h: Likewise.
20234 * sysdeps/unix/sysv/linux/s390/bits/sigaction.h: Likewise.
20235 * sysdeps/unix/sysv/linux/sparc/bits/sigaction.h: Likewise.
20236 * sysdeps/unix/sysv/linux/tile/bits/sigaction.h: Likewise.
20237 * hurd/hurd/signal.h: Include <bits/sigaction.h>.
20238
20239 2018-03-05 Joseph Myers <joseph@codesourcery.com>
20240
20241 * iconv/loop.c (UNICODE_TAG_HANDLER): Disable
20242 -Wmaybe-uninitialized for -Os.
20243 * sysdeps/s390/multiarch/8bit-generic.c (BODY): Add comment about
20244 this disabling.
20245
20246 2018-03-03 Adhemerval Zanella <adhemerval.zanella@linaro.org>
20247
20248 * bits/dirent.h (__INO_T_MATCHES_INO64_T): Define regardless whether
20249 __INO_T_MATCHES_INO64_T is defined.
20250 * sysdeps/unix/sysv/linux/bits/dirent.h: Likewise.
20251 * dirent/alphasort.c: Check _DIRENT_MATCHES_DIRENT64 value instead
20252 of definition.
20253 * dirent/alphasort64.c: Likewise.
20254 * dirent/scandir.c: Likewise.
20255 * dirent/scandir64-tail.c: Likewise.
20256 * dirent/scandir64.c: Likewise.
20257 * dirent/scandirat.c: Likewise.
20258 * dirent/scandirat64.c: Likewise.
20259 * dirent/versionsort.c: Likewise.
20260 * dirent/versionsort64.c: Likewise.
20261 * include/dirent.h: Likewise.
20262
20263 * nptl/tst-cancel4-common.h (set_socket_buffer): New function.
20264 * nptl/tst-cancel4-common.c (do_test): Call set_socket_buffer
20265 for socketpair endpoint.
20266 * nptl/tst-cancel4.c (tf_send): Call set_socket_buffer and use
20267 WRITE_BUFFER_SIZE as buffer size for sending socket.
20268 (tf_sendto): Use SOCK_STREAM instead of SOCK_DGRAM and fix an
20269 issue on system where send is implemented with sendto syscall.
20270 * sysdeps/unix/sysv/linux/mips/mips64/Makefile [$(subdir) = socket]
20271 (CFLAGS-recv.c, CFLAGS-send.c): Remove rules.
20272 [$(subdir) = nptl] (CFLAGS-recv.c, CFLAGS-send.c): Likewise.
20273 * sysdeps/unix/sysv/linux/riscv/rv64/Makefile: Remove file.
20274
20275 [BZ #21269]
20276 * sysdeps/unix/sysv/linux/i386/Makefile (tests): Add tst-bz21269.
20277 * sysdeps/unix/sysv/linux/i386/sigaction.c (SET_SA_RESTORER): Clear
20278 sa_restorer for vDSO case.
20279 * sysdeps/unix/sysv/linux/i386/tst-bz21269.c: New file.
20280
20281 2018-03-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
20282
20283 * scripts/check-installed-headers.sh: Ignore Hurd and Mach headers.
20284 * hurd/hurd/id.h: Include <hurd/hurd_types.h>
20285 * hurd/hurd/ioctl.h: Include <mach/port.h>
20286 * hurd/hurd/lookup.h: Include <hurd/hurd_types.h>
20287 * mach/Makefile ($(objpfx)mach-shortcuts.h): Make it include
20288 <mach/mach_types.h> and <mach/message.h>.
20289 (headers): Move mach/param.h to bits/mach/param.h.
20290 * sysdeps/mach/i386/mach/param.h: Move file to ...
20291 * sysdeps/mach/i386/bits/mach/param.h: ... here. Update path in #error.
20292 * sysdeps/mach/hurd/bits/param.h: Include <bits/mach/param.h> instead
20293 of <mach/param.h>.
20294 * hurd/hurd/port.h: Do not include <hurd/signal.h>.
20295 * hurd/hurd/userlink.h [!defined __USE_EXTERN_INLINES ||
20296 !defined _LIBC || !IS_IN (libc)]: Do not include <hurd/signal.h>.
20297 * hurd/hurd/fd.h (_hurd_fd_error): Fix struct initializer to be
20298 trivial, for C++ conformity.
20299 * sysdeps/mach/hurd/dl-sysdep.c: Include <mach/machine/vm_param.h>.
20300 * mach/Machrules ($(patsubst %,$(objpfx)%.h,$(user-interfaces)):
20301 Process mig output through $(migheadersed).
20302 * hurd/Makefile (migheadersed): Define variable.
20303 * mach/mach/mig_support.h [defined __USE_GNU]: Do not #error out.
20304 * scripts/check-installed-headers.sh: Do not ignore Hurd and Mach
20305 headers.
20306 * hurd/hurd.h: Include <bits/types/sigset_t.h>
20307 * hurd/hurd/fd.h: Include <sys/select.h> and <bits/types/sigset_t.h>
20308 (_hurd_fd_read, _hurd_fd_write): Use __loff_t instead of loff_t.
20309 * hurd/hurd/signal.h: Include <bits/types/stack_t.h> and
20310 <bits/types/sigset_t.h>.
20311 [!defined __USE_GNU]: Do not #error out.
20312 (struct hurd_sigstate): Use _NSIG instead of NSIG.
20313 * hurd/hurd/sigpreempt.h (__need_size_t): Define.
20314 Include <stddef.h> and <bits/types/sigset_t.h>
20315 (struct hurd_signal_preemptor, hurd_catch_signal): Use __sighandler_t
20316 instead of sighandler_t.
20317 * stdlib/errno.h (error_t): Move definition to...
20318 * bits/types/error_t.h: ... new header.
20319 * stdlib/Makefile (headers): Add bits/types/error_t.h.
20320 * sysdeps/mach/hurd/bits/errno.h (error_t): Move definition to...
20321 * sysdeps/mach/hurd/bits/types/error_t.h: ... new header.
20322 * sysdeps/mach/hurd/errnos.awk (error_t): Likewise.
20323 * hurd/hurd.h: Include <bits/types/error_t.h>
20324 * hurd/hurd/fd.h: Include <bits/types/error_t.h>
20325 * hurd/hurd/id.h: Include <errno.h> and <bits/types/error_t.h>
20326 * hurd/hurd/lookup.h: Include <errno.h> and <bits/types/error_t.h>
20327 * hurd/hurd/resource.h: Include <bits/types/error_t.h>
20328 * hurd/hurd/signal.h: Include <bits/types/error_t.h>
20329 * hurd/hurd/sigpreempt.h: Include <bits/types/error_t.h>
20330 * sysdeps/mach/hurd/futimens.c: New file.
20331
20332 2018-03-03 Andreas Schwab <schwab@linux-m68k.org>
20333
20334 [BZ #22918]
20335 * nss/nsswitch.h (DEFINE_DATABASE): Don't define __nss_*_database.
20336 * nss/nsswitch.c (DEFINE_DATABASE): Define __nss_*_database here.
20337 * nscd/gai.c (__nss_hosts_database): Readd definition.
20338 * posix/tst-rfc3484.c (__nss_hosts_database): Likewise.
20339 * posix/tst-rfc3484-3.c (__nss_hosts_database): Likewise.
20340 * posix/tst-rfc3484-2.c (__nss_hosts_database): Likewise.
20341
20342 2018-03-02 Joseph Myers <joseph@codesourcery.com>
20343
20344 * sysdeps/powerpc/ifunc-sel.h (ifunc_sel): Make always_inline.
20345 (ifunc_one): Likewise.
20346
20347 2018-03-01 DJ Delorie <dj@delorie.com>
20348
20349 [BZ #22342]
20350 * nscd/netgroupcache.c (addinnetgrX): Include trailing NUL in
20351 key value.
20352
20353 2018-03-01 Maciej W. Rozycki <macro@mips.com>
20354
20355 * nptl_db/td_ta_thr_iter.c (iterate_thread_list): Remove
20356 `match_pid' parameter.
20357 (td_ta_thr_iter): Update accordingly.
20358
20359 2018-03-01 Florian Weimer <fweimer@redhat.com>
20360
20361 * nptl/Makefile (install-lib-ldscripts): Remove.
20362 (install): Remove rule.
20363 ($(inst_libdir)/libpthread.so): Likewise.
20364
20365 2018-03-01 Mike FABIAN <mfabian@redhat.com>
20366
20367 [BZ #22896]
20368 * localedata/locales/an_ES: update month and day names,
20369 improve d_fmt, improve postal_fmt, add country_post,
20370 add country_isbn
20371
20372 2018-03-01 Mike FABIAN <mfabian@redhat.com>
20373
20374 * localedata/locales/bg_BG (LC_COLLATE): The comment mentioned
20375 Ukrainian instead of Bulgarian.
20376
20377 2018-03-01 Florian Weimer <fweimer@redhat.com>
20378
20379 * nptl/Makefile (libpthread.so): Drop libpthread_nonshared.a
20380 reference.
20381
20382 2018-03-01 Florian Weimer <fweimer@redhat.com>
20383
20384 Move pthread_atfork to libc. Remove libpthread_nonshared.a.
20385 * nptl/Makefile (routines): Add pthread_atfork.
20386 (static-only-routines): Set to pthread_atfork.
20387 (libpthread-routines): Remove pthread_atfork.
20388 (libpthread-static-only-routines): Remove.
20389 (install): Update comment.
20390 (libpthread.so): Do not install libpthread_nonshared.a.
20391 (tests): Do not link with libpthread_nonshared.a.
20392 (generated): Remove libpthread_nonshared.a.
20393 * nptl/pthread_atfork.c (pthread_atfork): Turn into weak alias.
20394 * sysdeps/nptl/Makeconfig (shared-thread-library): Do not link
20395 with libpthread_nonshared.a.
20396
20397 2018-02-28 Joseph Myers <joseph@codesourcery.com>
20398
20399 [BZ #22902]
20400 * sysdeps/i386/fpu/fenv_private.h [!__x86_64__]
20401 (libc_feholdexcept_setroundf128): New macro.
20402 [!__x86_64__] (libc_feupdateenv_testf128): Likewise.
20403
20404 [BZ #15105]
20405 * sysdeps/wordsize-32/strtoumax.c (strtoumax): Use
20406 libc_hidden_def.
20407 * sysdeps/wordsize-64/strtoumax.c (strtoumax): Likewise.
20408 * include/inttypes.h: New file.
20409
20410 2018-02-27 Joseph Myers <joseph@codesourcery.com>
20411
20412 * locale/weightwc.h (findidx): Ignore -Wmaybe-uninitialized for
20413 -Os in two more places.
20414
20415 2018-02-27 Mike FABIAN <mfabian@redhat.com>
20416
20417 See this bug https://sourceware.org/bugzilla/show_bug.cgi?id=22898
20418 * localedata/cmn_TW.UTF-8.in: Remove the lines which cannot
20419 be sorted correctly at the moment because of a bug.
20420
20421 2018-02-27 Mike FABIAN <mfabian@redhat.com>
20422
20423 [BZ #22550] - es_ES locale (and other es_* locales): collation should
20424 treat ñ as a primary different character, sync the collation
20425 for Spanish with CLDR.
20426 [BZ #21547] - Tibetan script collation broken (Dzongkha and Tibetan).
20427 * localedata/Makefile: Add new test files.
20428 * localedata/lv_LV.UTF-8.in: Adapt test file to new collation order.
20429 * localedata/sv_SE.ISO-8859-1.in: Adapt test file to new
20430 collation order.
20431 * localedata/uk_UA.UTF-8.in: Adapt test file to new collation order.
20432 * localedata/am_ET.UTF-8.in: New test file.
20433 * localedata/az_AZ.UTF-8.in: Likewise.
20434 * localedata/be_BY.UTF-8.in: Likewise.
20435 * localedata/ber_DZ.UTF-8.in: Likewise.
20436 * localedata/ber_MA.UTF-8.in: Likewise.
20437 * localedata/bg_BG.UTF-8.in: Likewise.
20438 * localedata/br_FR.UTF-8.in: Likewise.
20439 * localedata/cmn_TW.UTF-8.in: Likewise.
20440 * localedata/crh_UA.UTF-8.in: Likewise.
20441 * localedata/csb_PL.UTF-8.in: Likewise.
20442 * localedata/cv_RU.UTF-8.in: Likewise.
20443 * localedata/cy_GB.UTF-8.in: Likewise.
20444 * localedata/dz_BT.UTF-8.in: Likewise.
20445 * localedata/eo.UTF-8.in: Likewise.
20446 * localedata/es_ES.UTF-8.in: Likewise.
20447 * localedata/fa_IR.UTF-8.in: Likewise.
20448 * localedata/fi_FI.UTF-8.in: Likewise.
20449 * localedata/fil_PH.UTF-8.in: Likewise.
20450 * localedata/fur_IT.UTF-8.in: Likewise.
20451 * localedata/gez_ER.UTF-8@abegede.in: Likewise.
20452 * localedata/ha_NG.UTF-8.in: Likewise.
20453 * localedata/ig_NG.UTF-8.in: Likewise.
20454 * localedata/ik_CA.UTF-8.in: Likewise.
20455 * localedata/kk_KZ.UTF-8.in: Likewise.
20456 * localedata/ku_TR.UTF-8.in: Likewise.
20457 * localedata/ky_KG.UTF-8.in: Likewise.
20458 * localedata/ln_CD.UTF-8.in: Likewise.
20459 * localedata/mi_NZ.UTF-8.in: Likewise.
20460 * localedata/ml_IN.UTF-8.in: Likewise.
20461 * localedata/mn_MN.UTF-8.in: Likewise.
20462 * localedata/mr_IN.UTF-8.in: Likewise.
20463 * localedata/mt_MT.UTF-8.in: Likewise.
20464 * localedata/nb_NO.UTF-8.in: Likewise.
20465 * localedata/om_KE.UTF-8.in: Likewise.
20466 * localedata/os_RU.UTF-8.in: Likewise.
20467 * localedata/ps_AF.UTF-8.in: Likewise.
20468 * localedata/ro_RO.UTF-8.in: Likewise.
20469 * localedata/ru_RU.UTF-8.in: Likewise.
20470 * localedata/sc_IT.UTF-8.in: Likewise.
20471 * localedata/se_NO.UTF-8.in: Likewise.
20472 * localedata/sq_AL.UTF-8.in: Likewise.
20473 * localedata/sv_SE.UTF-8.in: Likewise.
20474 * localedata/szl_PL.UTF-8.in: Likewise.
20475 * localedata/tg_TJ.UTF-8.in: Likewise.
20476 * localedata/tk_TM.UTF-8.in: Likewise.
20477 * localedata/tt_RU.UTF-8.in: Likewise.
20478 * localedata/tt_RU.UTF-8@iqtelif.in: Likewise.
20479 * localedata/ug_CN.UTF-8.in: Likewise.
20480 * localedata/uz_UZ.UTF-8.in: Likewise.
20481 * localedata/vi_VN.UTF-8.in: Likewise.
20482 * localedata/yi_US.UTF-8.in: Likewise.
20483 * localedata/yo_NG.UTF-8.in: Likewise.
20484 * localedata/zh_CN.UTF-8.in: Likewise.
20485 * localedata/locales/am_ET: Adapt collation rules to new iso14651_t1_common
20486 file and fix bugs in the collation.
20487 * localedata/locales/az_AZ: Likewise.
20488 * localedata/locales/be_BY: Likewise.
20489 * localedata/locales/ber_DZ: Likewise.
20490 * localedata/locales/ber_MA: Likewise.
20491 * localedata/locales/bg_BG: Likewise.
20492 * localedata/locales/br_FR: Likewise.
20493 * localedata/locales/br_FR@euro: Likewise.
20494 * localedata/locales/ca_ES: Likewise.
20495 * localedata/locales/cns11643_stroke: Likewise.
20496 * localedata/locales/crh_UA: Likewise.
20497 * localedata/locales/cs_CZ: Likewise.
20498 * localedata/locales/csb_PL: Likewise.
20499 * localedata/locales/cv_RU: Likewise.
20500 * localedata/locales/cy_GB: Likewise.
20501 * localedata/locales/da_DK: Likewise.
20502 * localedata/locales/dz_BT: Likewise.
20503 * localedata/locales/en_CA: Likewise.
20504 * localedata/locales/eo: Likewise.
20505 * localedata/locales/es_CU: Likewise.
20506 * localedata/locales/es_EC: Likewise.
20507 * localedata/locales/es_ES: Likewise.
20508 * localedata/locales/es_US: Likewise.
20509 * localedata/locales/et_EE: Likewise.
20510 * localedata/locales/fa_IR: Likewise.
20511 * localedata/locales/fi_FI: Likewise.
20512 * localedata/locales/fil_PH: Likewise.
20513 * localedata/locales/fur_IT: Likewise.
20514 * localedata/locales/gez_ER@abegede: Likewise.
20515 * localedata/locales/ha_NG: Likewise.
20516 * localedata/locales/hr_HR: Likewise.
20517 * localedata/locales/hsb_DE: Likewise.
20518 * localedata/locales/hu_HU: Likewise.
20519 * localedata/locales/ig_NG: Likewise.
20520 * localedata/locales/ik_CA: Likewise.
20521 * localedata/locales/is_IS: Likewise.
20522 * localedata/locales/iso14651_t1_pinyin: Likewise.
20523 * localedata/locales/kk_KZ: Likewise.
20524 * localedata/locales/ku_TR: Likewise.
20525 * localedata/locales/ky_KG: Likewise.
20526 * localedata/locales/ln_CD: Likewise.
20527 * localedata/locales/lt_LT: Likewise.
20528 * localedata/locales/lv_LV: Likewise.
20529 * localedata/locales/mi_NZ: Likewise.
20530 * localedata/locales/ml_IN: Likewise.
20531 * localedata/locales/mn_MN: Likewise.
20532 * localedata/locales/mr_IN: Likewise.
20533 * localedata/locales/mt_MT: Likewise.
20534 * localedata/locales/nb_NO: Likewise.
20535 * localedata/locales/om_KE: Likewise.
20536 * localedata/locales/os_RU: Likewise.
20537 * localedata/locales/pl_PL: Likewise.
20538 * localedata/locales/ps_AF: Likewise.
20539 * localedata/locales/ro_RO: Likewise.
20540 * localedata/locales/ru_RU: Likewise.
20541 * localedata/locales/ru_UA: Likewise.
20542 * localedata/locales/sc_IT: Likewise.
20543 * localedata/locales/se_NO: Likewise.
20544 * localedata/locales/si_LK: Likewise.
20545 * localedata/locales/sq_AL: Likewise.
20546 * localedata/locales/sv_FI: Likewise.
20547 * localedata/locales/sv_FI@euro: Likewise.
20548 * localedata/locales/sv_SE: Likewise.
20549 * localedata/locales/szl_PL: Likewise.
20550 * localedata/locales/tg_TJ: Likewise.
20551 * localedata/locales/ti_ER: Likewise.
20552 * localedata/locales/tk_TM: Likewise.
20553 * localedata/locales/tl_PH: Likewise.
20554 * localedata/locales/tr_TR: Likewise.
20555 * localedata/locales/tt_RU: Likewise.
20556 * localedata/locales/tt_RU@iqtelif: Likewise.
20557 * localedata/locales/ug_CN: Likewise.
20558 * localedata/locales/uk_UA: Likewise.
20559 * localedata/locales/uz_UZ: Likewise.
20560 * localedata/locales/uz_UZ@cyrillic: Likewise.
20561 * localedata/locales/vi_VN: Likewise.
20562 * localedata/locales/yi_US: Likewise.
20563 * localedata/locales/yo_NG: Likewise.
20564
20565 2018-02-27 Mike FABIAN <mfabian@redhat.com>
20566
20567 * gen-locales.mk: Make test files which contain @ modifiers in their
20568 name work.
20569 * localedata/gen-locale.sh: Likewise.
20570
20571 2018-02-27 Mike FABIAN <mfabian@redhat.com>
20572
20573 * posix/tst-fnmatch.input: Fix results for range expressions
20574 for non C locales.
20575 * posix/tst-regexloc.c: Do not use a range expression for
20576 de_DE.ISO-8859-1 locale.
20577
20578 2018-02-27 Mike FABIAN <mfabian@redhat.com>
20579
20580 * posix/bug-regex5.c: Fix test case because with the new
20581 iso14651_t1_common file, the da_DK locale now has 6 collating elements
20582 in the ISO-8859-1 range instead of 4 with the old iso14651_t1_common
20583 file.
20584
20585 2018-02-27 Mike FABIAN <mfabian@redhat.com>
20586
20587 * localedata/da_DK.ISO-8859-1.in: In the new iso14651_t1_common file
20588 downloaded from ISO, the collation order of @-. and space has changed.
20589 Therefore, this test file needed to be adapted.
20590 * localedata/fr_CA.UTF-8.in: Likewise.
20591 * localedata/fr_FR.UTF-8.in: Likewise.
20592 * localedata/uk_UA.UTF-8.in: Likewise.
20593
20594 2018-02-27 Mike FABIAN <mfabian@redhat.com>
20595
20596 * localedata/cs_CZ.UTF-8.in: adapt this test file to the collation
20597 order of ȥ in the new iso14651_t1_common file.
20598 * localedata/pl_PL.UTF-8.in: Likewise.
20599
20600 2018-02-27 Mike FABIAN <mfabian@redhat.com>
20601
20602 * localedata/locales/iso14651_t1_common: Add sections for various
20603 scripts to the iso14651_t1_common file.
20604
20605 2018-02-27 Mike FABIAN <mfabian@redhat.com>
20606
20607 * localedata/locales/iso14651_t1_common: Use the code point of a
20608 character in the fourth collation level instead of IGNORE for all
20609 entries which have IGNORE on all 4 levels.
20610
20611 2018-02-27 Mike FABIAN <mfabian@redhat.com>
20612
20613 * localedata/locales/iso14651_t1_common: Add some convenient collation
20614 symbols like <AFTER-A>, <BEFORE-A> to make tailoring easier using
20615 rules similar to those in CLDR.
20616
20617 2018-02-27 Mike FABIAN <mfabian@redhat.com>
20618
20619 * localedata/locales/iso14651_t1_common: The new version of this
20620 file downloaded from ISO contained several syntax errors which
20621 are fixed by this patch.
20622
20623 2018-02-27 Mike FABIAN <mfabian@redhat.com>
20624
20625 * localedata/locales/iso14651_t1_common: replace all <U.....>
20626 with <U000.....> because glibc understands only 4 digit or 8 digit
20627
20628 2018-02-27 Mike FABIAN <mfabian@redhat.com>
20629
20630 * localedata/locales/iso14651_t1_common: Necessary changes
20631 to make the file downloaded from ISO usable by glibc.
20632
20633 2018-02-27 Mike FABIAN <mfabian@redhat.com>
20634
20635 [BZ #14095]
20636 * localedata/locales/iso14651_t1_common: Update file to
20637 latest version from ISO (ISO14651_2016_TABLE1_en.txt).
20638
20639 2018-02-27 Samuel Thibault <samuel.thibault@ens-lyon.org>
20640
20641 * sysdeps/pthread/timer_routines.c: Include <timer_routines.h> instead
20642 of <nptl/pthreadP.h>
20643 (thread_attr_compare): Move function to...
20644 [!defined DELAYTIMER_MAX] (DELAYTIMER_MAX): Define to INT_MAX.
20645 * sysdeps/nptl/timer_routines.h: ... new header.
20646 * sysdeps/mach/hurd/gai_misc.h: New file.
20647
20648 2018-02-26 Joseph Myers <joseph@codesourcery.com>
20649
20650 * string/strcoll_l.c: Include <libc-diag.h>.
20651 (STRCOLL): Ignore -Wmaybe-uninitialized for -Os around
20652 declarations of seq1 and seq2.
20653
20654 [BZ #15105]
20655 * stdlib/atoi.c (atoi): Use libc_hidden_def.
20656 * include/stdlib.h [!_ISOMAC] (atoi): Use libc_hidden_proto.
20657
20658 2018-02-26 Dmitry V. Levin <ldv@altlinux.org>
20659
20660 [BZ #22433]
20661 [BZ #22807]
20662 * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h (__ptrace_request): Add
20663 PTRACE_GETREGS, PTRACE_SETREGS, PTRACE_GETFPREGS, PTRACE_SETFPREGS,
20664 PTRACE_GETVRREGS, PTRACE_SETVRREGS, PTRACE_GETEVRREGS,
20665 PTRACE_SETEVRREGS, PTRACE_GETREGS64, PTRACE_SETREGS64,
20666 PTRACE_GET_DEBUGREG, PTRACE_SET_DEBUGREG, PTRACE_GETVSRREGS,
20667 PTRACE_SETVSRREGS, and PTRACE_SINGLEBLOCK.
20668
20669 2018-02-26 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
20670
20671 * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Undefine Linux
20672 macros used in __ptrace_request.
20673
20674 2018-02-23 H.J. Lu <hongjiu.lu@intel.com>
20675
20676 [BZ #22792]
20677 * Makerules ($(common-objpfx)%.h): Pass -DGEN_AS_CONST_HEADERS
20678 to $(CC).
20679 * sysdeps/unix/sysv/linux/i386/lowlevellock.h: Include
20680 <tcb-offsets.h> only if GEN_AS_CONST_HEADERS isn't defined.
20681 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h: Don't include
20682 <tcb-offsets.h>.
20683
20684 2018-02-23 Joseph Myers <joseph@codesourcery.com>
20685
20686 [BZ #15105]
20687 * ctype/ctype.c (tolower): Use libc_hidden_def.
20688 (toupper): Likewise.
20689 * include/ctype.h [!_ISOMAC] (tolower): Use libc_hidden_proto.
20690 [!_ISOMAC] (toupper): Likewise.
20691
20692 2018-02-23 Mike FABIAN <mfabian@redhat.com>
20693
20694 * localedata/Makefile: Remove --quiet argument when
20695 installing locales
20696
20697 2018-02-23 Mike FABIAN <mfabian@redhat.com>
20698
20699 [BZ #17438]
20700 * localedata/locales/pt_BR (LC_TIME): use / instead of -
20701 in d_fmt.
20702 * localedata/locales/pt_PT (LC_TIME): likewise
20703
20704 2018-02-23 Mike FABIAN <mfabian@redhat.com>
20705
20706 [BZ #22646]
20707 * localedata/locales/es_CL (LC_TIME): copy "es_BO".
20708 * localedata/locales/es_CU (LC_TIME): copy "es_BO".
20709 * localedata/locales/es_EC (LC_TIME): copy "es_BO".
20710
20711 2018-02-22 Adhemerval Zanella <adhemerval.zanella@linaro.org>
20712
20713 * sysdeps/sparc/fpu/libm-test-ulps: Update.
20714
20715 * nptl/Makefile (routines): Remove unregister-atfork.
20716 * nptl/register-atfork.c (fork_handler_pool): Remove variable.
20717 (fork_handler_alloc): Remove function.
20718 (fork_handlers, fork_handler_init): New variables.
20719 (__fork_lock): Rename to atfork_lock.
20720 (__register_atfork, __unregister_atfork, libc_freeres_fn): Rewrite
20721 to use a dynamic array to add/remove atfork handlers.
20722 * sysdeps/nptl/fork.c (__libc_fork): Likewise.
20723 * sysdeps/nptl/fork.h (__fork_lock, __fork_handlers, __linkin_atfork):
20724 Remove declaration.
20725 (fork_handler): Remove next, refcntr, and need_signal member.
20726 (__run_fork_handler_type): New enum.
20727 (__run_fork_handlers): New prototype.
20728 * nptl/register-atfork.c: Remove file.
20729 * sysdeps/nptl/libc-lockP.h (__libc_atfork): Remove declaration.
20730
20731 * sysdeps/nptl/nptl-signals.h: Move to ...
20732 * sysdeps/generic/internal-signals.h: ... here. Adjust internal
20733 comments.
20734 * sysdeps/unix/sysv/linux/internal-signals.h: Add include guards.
20735 (__nptl_is_internal_signal): Rename to __is_internal_signal and remove
20736 unnecessary check for SIGTIMER.
20737 (__nptl_clear_internal_signals): Rename to __clear_internal_signals and
20738 remove unnecessary removal of SIGTIMER.
20739 * sysdeps/unix/sysv/linux/raise.c: Adjust nptl-signal.h to
20740 include-signals.h rename.
20741 * nptl/pthreadP.h: Likewise.
20742 * sysdeps/unix/sysv/linux/spawni.c (__spawni_child): Call
20743 __is_internal_signal instead of __nptl_is_internal_signal.
20744
20745 2018-02-22 Andrew Waterman <andrew@sifive.com>
20746
20747 [BZ # 22884]
20748 * sysdeps/riscv/rvd/s_fmax.c (__fmax): Handle sNaNs correctly.
20749 * sysdeps/riscv/rvd/s_fmin.c (__fmin): Likewise.
20750 * sysdeps/riscv/rvf/s_fmaxf.c (__fmaxf): Likewise.
20751 * sysdeps/riscv/rvf/s_fminf.c (__fminf): Likewise.
20752
20753 2018-02-22 DJ Delorie <dj@delorie.com>
20754
20755 * sysdeps/riscv/tls-macros.h: Do not initialize $gp.
20756
20757 2018-02-22 Siddhesh Poyarekar <siddhesh@sourceware.org>
20758
20759 * sysdeps/aarch64/strcmp.S (do_misaligned): Jump back to
20760 do_misaligned, not misaligned8.
20761
20762 2018-02-22 Steve Ellcey <sellcey@cavium.com>
20763
20764 * sysdeps/aarch64/multiarch/Makefile (sysdep_routines):
20765 Add memcpy_thunderx2.
20766 * sysdeps/aarch64/multiarch/ifunc-impl-list.c (MAX_IFUNC):
20767 Increment to 4.
20768 (__libc_ifunc_impl_list): Add __memcpy_thunderx2.
20769 * sysdeps/aarch64/multiarch/memcpy.c (libc_ifunc): Add IS_THUNDERX2
20770 and IS_THUNDERX2PA checks.
20771 * sysdeps/aarch64/multiarch/memcpy_thunderx.S (USE_THUNDERX2):
20772 Use macro to set name appropriately.
20773 (memcpy): Use USE_THUNDERX2 macro to modify prefetches.
20774 * sysdeps/aarch64/multiarch/memcpy_thunderx2.S: New file.
20775 * sysdeps/unix/sysv/linux/aarch64/cpu-features.h (IS_THUNDERX2PA):
20776 New macro.
20777 (IS_THUNDERX2): New macro.
20778
20779 2018-02-22 Stefan Liebler <stli@linux.vnet.ibm.com>
20780
20781 * sysdeps/s390/fpu/libm-test-ulps: Regenerated.
20782
20783 2018-02-21 Zack Weinberg <zackw@panix.com>
20784
20785 * libio/libio.h (_IO_pos_BAD, _IO_pos_0, _IO_pos_adjust):
20786 Define here, unconditionally.
20787 * libio/iolibio.h (_IO_pos_BAD): Don't define here.
20788 * libio/libioP.h: Remove #if 0 blocks.
20789 (_IO_pos_BAD, _IO_pos_0, _IO_pos_adjust): Don't define here.
20790 (_IO_va_start, COERCE_FILE, MAYBE_SET_EINVAL): Don't define.
20791 (CHECK_FILE): Don't use MAYBE_SET_EINVAL or COERCE_FILE. Fix style.
20792
20793 * libio/clearerr.c, libio/fputc.c, libio/getchar.c:
20794 Assume weak_alias is always defined.
20795
20796 * libio/fileops.c, libio/genops.c, libio/oldfileops.c
20797 * libio/oldpclose.c, libio/pclose.c, libio/wfileops.c:
20798 Remove #if 0 and #ifdef TODO blocks.
20799 Assume text_set_element is always defined.
20800
20801 * libio/iofdopen.c, libio/iogetdelim.c, libio/oldiofdopen.c
20802 Use __set_errno (EINVAL) instead of MAYBE_SET_EINVAL.
20803 * libio/tst-mmap-eofsync.c: Make #if 1 block unconditional.
20804
20805 * libio/libio.h (_IOS_ATEND, _IOS_APPEND, _IOS_TRUNC)
20806 (_IOS_NOCREATE, _IOS_NOREPLACE, _IOS_BIN, _OLD_STDIO_MAGIC)
20807 (_IO_SKIPWS, _IO_LEFT, _IO_RIGHT, _IO_INTERNAL, _IO_DEC)
20808 (_IO_OCT, _IO_HEX, _IO_SHOWBASE, _IO_SHOWPOINT, _IO_UPPERCASE)
20809 (_IO_SHOWPOS, _IO_SCIENTIFIC, _IO_FIXED, _IO_UNITBUF, _IO_STDIO)
20810 (_IO_DONT_CLOSE, _IO_BOOLALPHA, _IO_BAD_SEEN): Remove, unused.
20811 Reformat bit flags for _flags field to make occupancy clearer.
20812 Update commentary.
20813 * libio/bits/types/struct_FILE.h (_IO_EOF_SEEN, _IO_ERR_SEEN):
20814 Keep definitions consistent with those in libio/libio.h.
20815
20816 * libio/libio.h (_IO_file_flags): Remove macro.
20817 All uses changed to _flags.
20818
20819 * libio/libio.h (_IO_UNIFIED_JUMPTABLES, _STDIO_USES_IOSTREAM)
20820 (__HAVE_COLUMN, _IO_BE): Don't define.
20821 (_IO_peekc_unlocked, _IO_getwc_unlocked, _IO_putwc_unlocked)
20822 (_IO_fwide_maybe_incompatible): Use __glibc_unlikely.
20823 * libio/libioP.h (EOF): Don't define.
20824 * libio/iofdopen.c, libio/iofopen.c, libio/iopopen.c
20825 * libio/iovdprintf.c, libio/oldiofdopen.c, libio/oldiofopen.c
20826 * libio/oldiopopen.c, debug/vdprintf_chk.c: Remove #if block
20827 testing _IO_UNIFIED_JUMPTABLES.
20828
20829 * libio/libio.h (_IO_FILE): Delete; all uses changed to FILE.
20830 (_IO_fpos_t): Delete; all uses changed to __fpos_t.
20831 (_IO_fpos64_t): Delete; all uses changed to __fpos64_t.
20832 (_IO_size_t): Delete; all uses changed to size_t.
20833 (_IO_ssize_t): Delete; all uses changed to ssize_t or __ssize_t.
20834 (_IO_off_t): Delete; all uses changed to off_t.
20835 (_IO_off64_t): Delete; all uses changed to off64_t.
20836 (_IO_pid_t): Delete; all uses changed to pid_t.
20837 (_IO_uid_t): Delete; all uses changed to uid_t.
20838 (_IO_wint_t): Delete; all uses changed to wint_t.
20839 (_IO_va_list): Delete; all uses changed to va_list or __gnuc_va_list.
20840 (_IO_BUFSIZ): Delete; all uses changed to BUFSIZ.
20841 (_IO_cookie_io_functions_t): Delete; all uses changed to
20842 cookie_io_functions_t.
20843 (__io_read_fn): Delete; all uses changed to cookie_read_function_t.
20844 (__io_write_fn): Delete; all uses changed to cookie_write_function_t.
20845 (__io_seek_fn): Delete; all uses changed to cookie_seek_function_t.
20846 (__io_close_fn): Delete: all uses changed to cookie_close_function_t.
20847
20848 * libio/iofopncook.c: Remove unnecessary forward declarations.
20849 * libio/iolibio.h: Correct outdated commentary.
20850 * malloc/malloc.c (__malloc_stats): Remove unnecessary casts.
20851 * stdio-common/fxprintf.c (__fxprintf_nocancel):
20852 Remove unnecessary casts.
20853 * stdio-common/getline.c: Use _IO_getdelim directly.
20854 Don't redefine ssize_t.
20855 * stdio-common/printf_fp.c, stdio_common/printf_fphex.c
20856 * stdio-common/printf_size.c: Don't redefine size_t or FILE.
20857 Remove outdated comments.
20858 * stdio-common/vfscanf.c: Don't redefine va_list.
20859
20860 * libio/iolibio.h, libio/libioP.h: Remove extern "C".
20861 * libio/libio.h: Remove __BEGIN_DECLS and __END_DECLS.
20862 Remove preprocessor conditionals on _LIBC and __USE_GNU,
20863 which are always true, and __cplusplus, which is always false.
20864
20865 2018-02-21 Joseph Myers <joseph@codesourcery.com>
20866
20867 [BZ #15105]
20868 [BZ #19463]
20869 * libio/fputc_u.c (fputc_unlocked): Use libc_hidden_def.
20870 * libio/putc_u.c (putc_unlocked): Rename to __putc_unlocked and
20871 define as weak alias of __putc_unlocked. Use libc_hidden_weak.
20872 * include/stdio.h [!_ISOMAC] (fputc_unlocked): Use
20873 libc_hidden_proto.
20874 [!_ISOMAC] (putc_unlocked): Likewise.
20875 [!_ISOMAC] (__putc_unlocked): Declare as hidden function, and
20876 define inline if [__USE_EXTERN_INLINES].
20877 * misc/syslog.c (__vsyslog_chk): Call __putc_unlocked instead of
20878 putc_unlocked.
20879
20880 [BZ #15105]
20881 [BZ #19463]
20882 * libio/getc_u.c (getc_unlocked): Use libc_hidden_weak.
20883 * include/stdio.h [!_ISOMAC] (__getc_unlocked): Use
20884 attribute_hidden, and define inline if [__USE_EXTERN_INLINES].
20885 [!_ISOMAC] (getc_unlocked): Use libc_hidden_proto.
20886 * misc/getttyent.c (__getttyent): Call __getc_unlocked instead of
20887 getc_unlocked.
20888 * time/tzfile.c (__tzfile_read): Likewise.
20889
20890 2018-02-21 Mike FABIAN <mfabian@redhat.com>
20891
20892 [BZ #22517]
20893 * localedata/locales/et_EE (LC_COLLATE): add missing “reorder-end”
20894
20895 2018-02-21 Rical Jasan <ricaljasan@pacific.net>
20896
20897 * io/fcntl.h: Fix a typo in a comment.
20898
20899 2018-02-21 Rical Jasan <ricaljasan@pacific.net>
20900
20901 [BZ #22862]
20902 * include/features.h: Add _ISOC11_SOURCE to test for whether to
20903 define _DEFAULT_SOURCE.
20904 * manual/creature.texi (_DEFAULT_SOURCE): Improve documentation.
20905
20906 2018-02-21 Florian Weimer <fweimer@redhat.com>
20907
20908 [BZ #20890]
20909 * elf/cache.c (save_cache): Call fsync on temporary file before
20910 renaming it.
20911 (save_aux_cache): Call fdatasync on temporary file before renaming
20912 it.
20913
20914 2018-02-21 Florian Weimer <fweimer@redhat.com>
20915
20916 [BZ #22787]
20917 * include/caller.h: Remove file.
20918 * elf/dl-caller.c: Likewise.
20919 * elf/Makefile (dl-routines): Remove dl-caller.
20920 (shared-only-routines): Do not add dl-caller.
20921 * elf/dl-load.c (_dl_map_object_from_fd): Do not call
20922 __check_caller.
20923 * elf/dl-open.c (struct dl_open_args): Remove caller_dl_open
20924 member.
20925 (dl_open_worker): Do not call __check_caller.
20926 (_dl_open): Do not set caller_dl_open member.
20927 * elf/rtld.c (_rtld_global_ro): Do not initialize
20928 _dl_check_caller member.
20929 * sysdeps/generic/ldsodefs.h (rtld_global): Remove
20930 _dl_check_caller member.
20931 (_dl_check_caller): Remove declaration.
20932 * sysdeps/unix/sysv/linux/dl-execstack.c
20933 (_dl_make_stack_executable): Do not call __check_caller.
20934
20935 2018-02-21 Samuel Thibault <samuel.thibault@ens-lyon.org>
20936
20937 * sysdeps/mach/hurd/dl-sysdep.c (_dl_random): New variable.
20938 * sysdeps/mach/hurd/sysdep-cancel.h: New file.
20939
20940 2018-02-20 Rical Jasan <ricaljasan@pacific.net>
20941
20942 * manual/creature.texi (_ISOC99_SOURCE): Update the dated
20943 description.
20944
20945 2018-02-20 Rical Jasan <ricaljasan@pacific.net>
20946
20947 [BZ #16335]
20948 * manual/creature.texi (_POSIX_C_SOURCE): Document special values
20949 of 199606L, 200112L, and 200809L.
20950 (_XOPEN_SOURCE): Document special values of 600 and 700.
20951 (_ISOC11_SOURCE): Document macro.
20952 (_ATFILE_SOURCE): Likewise.
20953 (_FORTIFY_SOURCE): Likewise.
20954
20955 2018-02-19 Joseph Myers <joseph@codesourcery.com>
20956
20957 [BZ #15105]
20958 [BZ #19463]
20959 * libio/ferror_u.c (ferror_unlocked): Rename to __ferror_unlocked
20960 and define as weak alias of __ferror_unlocked. Use
20961 libc_hidden_weak.
20962 * include/stdio.h [!_ISOMAC] (ferror_unlocked): Use
20963 libc_hidden_proto.
20964 [!_ISOMAC] (__ferror_unlocked) New declaration, and inline
20965 function if [__USE_EXTERN_INLINES].
20966 * time/getdate.c (__getdate_r): Call __ferror_unlocked instead of
20967 ferror_unlocked.
20968
20969 2018-02-19 Rical Jasan <ricaljasan@pacific.net>
20970
20971 [BZ #6889]
20972 * manual/filesys.texi (get_current_dir_name): Clarify behaviour.
20973
20974 2018-02-18 Aurelien Jarno <aurelien@aurel32.net>
20975
20976 [BZ #22818]
20977 * posix/tst-glob_lstat_compat.c [__alpha__] (glob): Access
20978 the GLIBC_2.1 version.
20979
20980 2018-02-18 Aurelien Jarno <aurelien@aurel32.net>
20981
20982 [BZ #21508]
20983 * catgets/xopen-msg.awk: Ignore POT-Creation-Date line.
20984 * intl/Makefile ($(objpfx)tst-gettext-de.po): Generate
20985 intl/tst-gettext-de.po from po/de.po by removing the
20986 POT-Creation-Date line.
20987 ($(objpfx)msgs.h): Depend on $(objpfx)tst-gettext-de.po instead of
20988 ../po/de.po.
20989 * intl/tst-gettext.sh: Use ${objpfx}tst-gettext-de.po instead of
20990 ../po/de.po.
20991
20992 2018-02-17 Samuel Thibault <samuel.thibault@ens-lyon.org>
20993
20994 * mach/Makefile (headers): Add mach/param.h.
20995 * sysdeps/mach/hurd/bits/param.h: Include <mach/param.h>.
20996 * sysdeps/mach/i386/mach/param.h: New file, defines EXEC_PAGESIZE
20997 * sysdeps/mach/hurd/ptsname.c: Include <sys/stat.h>.
20998 (__ptsname_r): Move implementation to...
20999 (__ptsname_internal): ... new function. Add filling the STP
21000 structure.
21001
21002 2018-02-17 John David Anglin <danglin@gcc.gnu.org>
21003
21004 * sysdeps/hppa/fpu/libm-test-ulps (pow): Increase double and
21005 idouble to 1 ULP.
21006
21007 2018-02-16 Rical Jasan <ricaljasan@pacific.net>
21008
21009 * manual/platform.texi (__riscv_flush_icache): Fix @deftypefun
21010 syntax.
21011
21012 2018-02-16 Stefan Liebler <stli@linux.vnet.ibm.com>
21013
21014 * nptl/Makefile (tst-mutex8-ENV): Delete.
21015 * nptl/tst-mutex8.c (check_type):
21016 Add runtime check if mutex will be elided.
21017
21018 2018-02-15 Joseph Myers <joseph@codesourcery.com>
21019
21020 [BZ #20980]
21021 [BZ #21234]
21022 * manual/install.texi (Configuring and compiling): Describe
21023 passing CC and CFLAGS on configure command line, not as
21024 environment variables. Use @code markup on those variables.
21025 Specify what options go in CC and what go in CFLAGS. Note the
21026 requirement to compile with optimization.
21027 * INSTALL: Regenerated.
21028
21029 [BZ #18124]
21030 * sysdeps/hppa/bsd-setjmp.S: Include <sysdep.h>.
21031 (setjmp): Use HIDDEN_JUMPTARGET with __sigsetjmp.
21032 * sysdeps/unix/sysv/linux/hppa/getcontext.S (__getcontext): Call
21033 __sigprocmask instead of sigprocmask.
21034 * sysdeps/unix/sysv/linux/hppa/setcontext.S (__setcontext):
21035 Likewise.
21036 * sysdeps/unix/sysv/linux/hppa/localplt.data: Remove entries for
21037 __sigsetjmp and sigprocmask.
21038
21039 [BZ #15105]
21040 * include/argz.h (argz_next): Use libc_hidden_proto.
21041 (__argz_next): Likewise.
21042 * string-argz-next.c (__argz_next): Use libc_hidden_def.
21043 (argz_next): Use libc_hidden_weak.
21044
21045 [BZ #15105]
21046 * include/sys/socket.h [!_ISOMAC] (__cmsg_nxthdr): Use
21047 libc_hidden_proto.
21048 * sysdeps/unix/sysv/linux/cmsg_nxthdr.c (__cmsg_nxthdr): Use
21049 libc_hidden_def.
21050
21051 [BZ #15105]
21052 * include/stdio.h [!_ISOMAC && IS_IN (libc)] (fputs): Use
21053 libc_hidden_proto.
21054 * libio/iofputs.c (fputs): Use libc_hidden_weak.
21055
21056 [BZ #15105]
21057 [BZ #19463]
21058 * libio/feof_u.c (feof_unlocked): Rename to __feof_unlocked and
21059 define as weak alias of __feof_unlocked. Use libc_hidden_weak.
21060 * include/stdio.h (feof_unlocked): Use libc_hidden_proto.
21061 (__feof_unlocked): New declaration, and inline function if
21062 [__USE_EXTERN_INLINES].
21063 * iconv/gconv_conf.c (read_conf_file): Call __feof_unlocked
21064 instead of feof_unlocked.
21065 * intl/localealias.c [_LIBC] (FEOF): Likewise.
21066 * nss/nsswitch.c (nss_parse_file): Likewise.
21067 * sysdeps/unix/sysv/linux/readonly-area.c (__readonly_area):
21068 Likewise.
21069 * time/getdate.c (__getdate_r): Likewise.
21070 * sysdeps/posix/getaddrinfo.c [IS_IN (libc)] (feof_unlocked):
21071 Define as macro to call __feof_unlocked.
21072
21073 2018-02-15 Wilco Dijkstra <wdijkstr@arm.com>
21074
21075 * sysdeps/aarch64/fpu/fpu_control.h: Use <> in include.
21076
21077 2018-02-15 Wilco Dijkstra <wdijkstr@arm.com>
21078
21079 * math/Makefile: Remove mpexp.c and mplog.c
21080 * sysdeps/i386/fpu/mpexp.c: Delete file.
21081 * sysdeps/i386/fpu/mplog.c: Likewise.
21082 * sysdeps/ia64/fpu/mpexp.c: Likewise.
21083 * sysdeps/ia64/fpu/mplog.c: Likewise.
21084 * sysdeps/ieee754/dbl-64/e_exp.c: Remove mention of mpexp and mplog.
21085 * sysdeps/ieee754/dbl-64/mpa.h (__pow_mp): Remove unused function.
21086 * sysdeps/ieee754/dbl-64/mpexp.c: Delete file.
21087 * sysdeps/ieee754/dbl-64/mplog.c: Likewise.
21088 * sysdeps/m68k/m680x0/fpu/mpexp.c: Likewise.
21089 * sysdeps/m68k/m680x0/fpu/mplog.c: Likewise.
21090 * sysdeps/x86_64/fpu/multiarch/Makefile: Remove mpexp* and mplog*.
21091 * sysdeps/x86_64/fpu/multiarch/e_log-avx.c: Remove unused defines.
21092 * sysdeps/x86_64/fpu/multiarch/e_log-fma.c: Likewise.
21093 * sysdeps/x86_64/fpu/multiarch/e_log-fma4.c: Likewise.
21094 * sysdeps/x86_64/fpu/multiarch/mpexp-avx.c: Delete file.
21095 * sysdeps/x86_64/fpu/multiarch/mpexp-fma.c: Likewise.
21096 * sysdeps/x86_64/fpu/multiarch/mpexp-fma4.c: Likewise.
21097 * sysdeps/x86_64/fpu/multiarch/mplog-avx.c: Likewise.
21098 * sysdeps/x86_64/fpu/multiarch/mplog-fma.c: Likewise.
21099 * sysdeps/x86_64/fpu/multiarch/mplog-fma4.c: Likewise.
21100
21101 2018-02-15 Stefan Liebler <stli@linux.vnet.ibm.com>
21102
21103 * sysdeps/s390/fpu/libm-test-ulps: Regenerated.
21104
21105 2018-02-14 Adhemerval Zanella <adhemerval.zanella@linaro.org>
21106
21107 * sysdeps/sh/libm-test-ulps: Update.
21108
21109 2018-02-12 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
21110
21111 * sysdeps/powerpc/fpu/libm-test-ulps (pow): Increase double and
21112 idouble to 1 ULP.
21113
21114 2018-02-12 Zack Weinberg <zackw@panix.com>
21115
21116 [BZ #19239]
21117 * posix/sys/types.h: Don't include sys/sysmacros.h.
21118 * misc/sys/sysmacros.h: Remove the conditional deprecation
21119 warnings for the macros defined by this header.
21120
21121 2018-02-12 Szabolcs Nagy <szabolcs.nagy@arm.com>
21122
21123 * manual/probes.texi: Remove slowexp probes.
21124 * math/Makefile: Remove slowexp.
21125 * sysdeps/generic/math_private.h (__slowexp): Remove.
21126 * sysdeps/ieee754/dbl-64/e_exp.c (__ieee754_exp): Remove __slowexp and
21127 document error bounds.
21128 * sysdeps/i386/fpu/slowexp.c: Remove.
21129 * sysdeps/ia64/fpu/slowexp.c: Remove.
21130 * sysdeps/ieee754/dbl-64/slowexp.c: Remove.
21131 * sysdeps/ieee754/dbl-64/uexp.h (err_0): Remove.
21132 * sysdeps/m68k/m680x0/fpu/slowexp.c: Remove.
21133 * sysdeps/powerpc/power4/fpu/Makefile (CPPFLAGS-slowexp.c): Remove.
21134 * sysdeps/x86_64/fpu/multiarch/Makefile: Remove slowexp-fma.
21135 * sysdeps/x86_64/fpu/multiarch/e_exp-avx.c (__slowexp): Remove.
21136 * sysdeps/x86_64/fpu/multiarch/e_exp-fma.c (__slowexp): Remove.
21137 * sysdeps/x86_64/fpu/multiarch/e_exp-fma4.c (__slowexp): Remove.
21138 * sysdeps/x86_64/fpu/multiarch/slowexp-avx.c: Remove.
21139 * sysdeps/x86_64/fpu/multiarch/slowexp-fma.c: Remove.
21140 * sysdeps/x86_64/fpu/multiarch/slowexp-fma4.c: Remove.
21141
21142 2018-02-12 Wilco Dijkstra <wdijkstr@arm.com>
21143
21144 [BZ #13932]
21145 * sysdeps/ieee754/dbl-64/uexp.h (err_1): Remove.
21146 * benchtests/pow-inputs: Update comment for slow path cases.
21147 * manual/probes.texi (slowpow_p10): Delete removed probe.
21148 (slowpow_p10): Likewise.
21149 * math/Makefile: Remove halfulp.c and slowpow.c.
21150 * sysdeps/aarch64/libm-test-ulps: Set ULP of pow to 1.
21151 * sysdeps/generic/math_private.h (__exp1): Remove error argument.
21152 (__halfulp): Remove.
21153 (__slowpow): Remove.
21154 * sysdeps/i386/fpu/halfulp.c: Delete file.
21155 * sysdeps/i386/fpu/slowpow.c: Likewise.
21156 * sysdeps/ia64/fpu/halfulp.c: Likewise.
21157 * sysdeps/ia64/fpu/slowpow.c: Likewise.
21158 * sysdeps/ieee754/dbl-64/e_exp.c (__exp1): Remove error argument,
21159 improve comments and add error analysis.
21160 * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Add error analysis.
21161 (power1): Remove function:
21162 (log1): Remove error argument, add error analysis.
21163 (my_log2): Remove function.
21164 * sysdeps/ieee754/dbl-64/halfulp.c: Delete file.
21165 * sysdeps/ieee754/dbl-64/slowpow.c: Likewise.
21166 * sysdeps/m68k/m680x0/fpu/halfulp.c: Likewise.
21167 * sysdeps/m68k/m680x0/fpu/slowpow.c: Likewise.
21168 * sysdeps/powerpc/power4/fpu/Makefile: Remove CPPFLAGS-slowpow.c.
21169 * sysdeps/x86_64/fpu/libm-test-ulps: Set ULP of pow to 1.
21170 * sysdeps/x86_64/fpu/multiarch/Makefile: Remove slowpow-fma.c,
21171 slowpow-fma4.c, halfulp-fma.c, halfulp-fma4.c.
21172 * sysdeps/x86_64/fpu/multiarch/e_pow-fma.c (__slowpow): Remove define.
21173 * sysdeps/x86_64/fpu/multiarch/e_pow-fma4.c (__slowpow): Likewise.
21174 * sysdeps/x86_64/fpu/multiarch/halfulp-fma.c: Delete file.
21175 * sysdeps/x86_64/fpu/multiarch/halfulp-fma4.c: Likewise.
21176 * sysdeps/x86_64/fpu/multiarch/slowpow-fma.c: Likewise.
21177 * sysdeps/x86_64/fpu/multiarch/slowpow-fma4.c: Likewise.
21178
21179 2018-02-11 Samuel Thibault <samuel.thibault@ens-lyon.org>
21180
21181 * nscd/connections.c (RWLOCK_INITIALIZER): Define to
21182 PTHREAD_RWLOCK_WRITER_NONRECURSIVE_INITIALIZER_NP or
21183
21184 2018-02-10 Dmitry V. Levin <ldv@altlinux.org>
21185
21186 [BZ #22433]
21187 * sysdeps/unix/sysv/linux/aarch64/sys/ptrace.h (__ptrace_request):
21188 Remove arm-specific PTRACE_GET_THREAD_AREA, PTRACE_GETHBPREGS,
21189 and PTRACE_SETHBPREGS.
21190
21191 2018-02-10 Zack Weinberg <zackw@panix.com>
21192
21193 [BZ #22830]
21194 * malloc/malloc.c (__malloc_stats): Restore stderr->_flags2
21195 correctly.
21196 * malloc/tst-malloc-stats-cancellation.c: New test case.
21197 * malloc/Makefile: Add new test case.
21198
21199 2018-02-10 Wilco Dijkstra <wdijkstr@arm.com>
21200
21201 * sysdeps/aarch64/fpu/fpu_control.h: Add features.h to fix build error.
21202
21203 2018-02-10 Joseph Myers <joseph@codesourcery.com>
21204
21205 * math/Makefile (libm-narrow-fns): Add add.
21206 (libm-test-funcs-narrow): Likewise.
21207 * math/Versions (GLIBC_2.28): Add narrowing add functions.
21208 * math/bits/mathcalls-narrow.h (add): Use __MATHCALL_NARROW .
21209 * math/gen-auto-libm-tests.c (test_functions): Add add.
21210 * math/math-narrow.h (CHECK_NARROW_ADD): New macro.
21211 (NARROW_ADD_ROUND_TO_ODD): Likewise.
21212 (NARROW_ADD_TRIVIAL): Likewise.
21213 * sysdeps/ieee754/float128/float128_private.h (__faddl): New
21214 macro.
21215 (__daddl): Likewise.
21216 * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Add fadd and
21217 dadd.
21218 (CFLAGS-nldbl-dadd.c): New variable.
21219 (CFLAGS-nldbl-fadd.c): Likewise.
21220 * sysdeps/ieee754/ldbl-opt/Versions (GLIBC_2.28): Add
21221 __nldbl_daddl.
21222 * sysdeps/ieee754/ldbl-opt/nldbl-compat.h (__nldbl_daddl): New
21223 prototype.
21224 * manual/arith.texi (Misc FP Arithmetic): Document fadd, faddl,
21225 daddl, fMaddfN, fMaddfNx, fMxaddfN and fMxaddfNx.
21226 * math/auto-libm-test-in: Add tests of add.
21227 * math/auto-libm-test-out-narrow-add: New generated file.
21228 * math/libm-test-narrow-add.inc: New file.
21229 * sysdeps/i386/fpu/s_f32xaddf64.c: Likewise.
21230 * sysdeps/ieee754/dbl-64/s_f32xaddf64.c: Likewise.
21231 * sysdeps/ieee754/dbl-64/s_fadd.c: Likewise.
21232 * sysdeps/ieee754/float128/s_f32addf128.c: Likewise.
21233 * sysdeps/ieee754/float128/s_f64addf128.c: Likewise.
21234 * sysdeps/ieee754/float128/s_f64xaddf128.c: Likewise.
21235 * sysdeps/ieee754/ldbl-128/s_daddl.c: Likewise.
21236 * sysdeps/ieee754/ldbl-128/s_f64xaddf128.c: Likewise.
21237 * sysdeps/ieee754/ldbl-128/s_faddl.c: Likewise.
21238 * sysdeps/ieee754/ldbl-128ibm/s_daddl.c: Likewise.
21239 * sysdeps/ieee754/ldbl-128ibm/s_faddl.c: Likewise.
21240 * sysdeps/ieee754/ldbl-96/s_daddl.c: Likewise.
21241 * sysdeps/ieee754/ldbl-96/s_faddl.c: Likewise.
21242 * sysdeps/ieee754/ldbl-opt/nldbl-dadd.c: Likewise.
21243 * sysdeps/ieee754/ldbl-opt/nldbl-fadd.c: Likewise.
21244 * sysdeps/ieee754/soft-fp/s_daddl.c: Likewise.
21245 * sysdeps/ieee754/soft-fp/s_fadd.c: Likewise.
21246 * sysdeps/ieee754/soft-fp/s_faddl.c: Likewise.
21247 * sysdeps/powerpc/fpu/libm-test-ulps: Update.
21248 * sysdeps/mach/hurd/i386/libm.abilist: Likewise.
21249 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
21250 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
21251 * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
21252 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
21253 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
21254 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
21255 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
21256 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
21257 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
21258 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
21259 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
21260 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
21261 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Likewise.
21262 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist: Likewise.
21263 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Likewise.
21264 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Likewise.
21265 * sysdeps/unix/sysv/linux/riscv/rv64/libm.abilist: Likewise.
21266 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
21267 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
21268 * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
21269 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
21270 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
21271 * sysdeps/unix/sysv/linux/tile/tilegx32/libm.abilist: Likewise.
21272 * sysdeps/unix/sysv/linux/tile/tilegx64/libm.abilist: Likewise.
21273 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
21274 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
21275
21276 * sysdeps/powerpc/powerpc64le/Makefile [$(subdir) = math]
21277 (f128-pairs): New variable.
21278 [$(subdir) = math] ($(foreach suf,$(all-object-suffixes),$(foreach
21279 pair,$(f128-pairs),$(objpfx)test-$(pair)%$(suf)))): Add -mfloat128
21280 to CFLAGS.
21281 [$(subdir) = math] ($(foreach pair,$(f128-pairs),test-$(pair)%)):
21282 Also make tests add $(f128-loader-link) to gnulib-tests.
21283
21284 2018-02-09 DJ Delorie <dj@redhat.com>
21285
21286 [BZ #22827]
21287 * sysdeps/unix/sysv/linux/riscv/readelflib.c (process_elf_file): Use
21288 64-bit ELF type for 64-bit ELF objects.
21289
21290 2018-02-09 Joseph Myers <joseph@codesourcery.com>
21291
21292 * math/libm-test-driver.c (snan_tests_arg): New variable.
21293 * math/libm-test-support.h (snan_tests_arg): New declaration.
21294 * math/libm-test-support.c (enable_test): Check snan_tests_arg.
21295
21296 * math/Makefile (test-type-pairs): New variable.
21297 (test-type-pairs-f64xf128-yes): Likewise.
21298 (tests): Add test-narrow-macros.
21299 (libm-test-funcs-narrow): New variable.
21300 (libm-test-c-narrow): Likewise.
21301 (generated): Add $(libm-test-c-narrow).
21302 (libm-tests-base-narrow): New variable.
21303 (libm-tests-narrow): Likewise.
21304 (libm-tests): Add $(libm-tests-narrow).
21305 (libm-tests-for-type): Handle $(libm-tests-narrow).
21306 (libm-test-c-narrow-obj): New variable.
21307 ($(libm-test-c-narrow-obj)): New rule.
21308 ($(foreach t,$(libm-tests-narrow),$(objpfx)$(t).c)): Likewise.
21309 ($(foreach f,$(libm-test-funcs-narrow),$(objpfx)$(o)-$(f).o)): Use
21310 $(o-iterator) to set dependencies and CFLAGS.
21311 * math/gen-auto-libm-tests.c: Document use for narrowing
21312 functions.
21313 (output_for_one_input_case): Take argument NARROW.
21314 (generate_output): Likewise. Update call to
21315 output_for_one_input_case.
21316 (main): Take --narrow option. Update call to generate_output.
21317 * math/gen-libm-test.pl (_apply_lit): Take macro name as argument.
21318 (apply_lit): Update call to _apply_lit.
21319 (apply_arglit): New function.
21320 (parse_args): Handle "a" arguments.
21321 (parse_auto_input): Handle format names using ":".
21322 * math/README.libm-test: Document "a" parameter type.
21323 * math/libm-test-support.h (ARG_TYPE_MIN): New macro.
21324 (ARG_TYPE_TRUE_MIN): Likewise.
21325 (ARG_TYPE_MAX): Likwise.
21326 (ARG_MIN_EXP): Likewise.
21327 (ARG_MAX_EXP): Likewise.
21328 (ARG_MANT_DIG): Likewise.
21329 (TEST_COND_arg_ibm128): Likewise.
21330 (TEST_COND_ibm128_libgcc): Define conditional on [ARG_FLOAT].
21331 (TEST_COND_arg_fmt): New macro.
21332 (init_max_error): Update prototype.
21333 * math/libm-test-support.c (test_ibm128): New variable.
21334 (init_max_error): Take argument testing_ibm128 and set test_ibm128
21335 instead of using [TEST_COND_ibm128] conditional.
21336 (test_exceptions): Use test_ibm128 instead of TEST_COND_ibm128.
21337 * math/libm-test-driver.c (STR_ARG_FLOAT): New macro.
21338 [TEST_NARROW] (TEST_MSG): New definition.
21339 (arg_plus_zero): New macro.
21340 (arg_minus_zero): Likewise.
21341 (arg_plus_infty): Likewise.
21342 (arg_minus_infty): Likewise.
21343 (arg_qnan_value_pl): Likewise.
21344 (arg_qnan_value): Likewise.
21345 (arg_snan_value_pl): Likewise.
21346 (arg_snan_value): Likewise.
21347 (arg_max_value): Likewise.
21348 (arg_min_value): Likewise.
21349 (arg_min_subnorm_value): Likewise.
21350 [ARG_FLOAT] (struct test_aa_f_data): New struct type.
21351 (RUN_TEST_LOOP_aa_f): New macro.
21352 (TEST_SUFF): New macro.
21353 (TEST_SUFF_STR): Likewise.
21354 [!TEST_MATHVEC] (VEC_SUFF): Don't define.
21355 (TEST_COND_any_ibm128): New macro.
21356 (START): Use TEST_SUFF and TEST_SUFF_STR in initializer for
21357 this_func. Update call to init_max_error.
21358 * math/test-double.h (FUNC_NARROW_PREFIX): New macro.
21359 * math/test-float.h (FUNC_NARROW_PREFIX): Likewise.
21360 * math/test-float128.h (FUNC_NARROW_PREFIX): Likewise.
21361 * math/test-float32.h (FUNC_NARROW_PREFIX): Likewise.
21362 * math/test-float32x.h (FUNC_NARROW_PREFIX): Likewise.
21363 * math/test-float64.h (FUNC_NARROW_PREFIX): Likewise.
21364 * math/test-float64x.h (FUNC_NARROW_PREFIX): Likewise.
21365 * math/test-math-scalar.h (TEST_NARROW): Likewise.
21366 * math/test-math-vector.h (TEST_NARROW): Likewise.
21367 * math/test-arg-double.h: New file.
21368 * math/test-arg-float128.h: Likewise.
21369 * math/test-arg-float32x.h: Likewise.
21370 * math/test-arg-float64.h: Likewise.
21371 * math/test-arg-float64x.h: Likewise.
21372 * math/test-arg-ldouble.h: Likewise.
21373 * math/test-math-narrow.h: Likewise.
21374 * math/test-narrow-macros.c: Likewise.
21375 * sysdeps/ieee754/ldbl-opt/test-narrow-macros-ldbl-64.c: Likewise.
21376 * sysdeps/ieee754/ldbl-opt/Makefile (tests): Add
21377 test-narrow-macros-ldbl-64.
21378 (CFLAGS-test-narrow-macros-ldbl-64.c): New variable.
21379
21380 * math/bits/mathcalls-narrow.h: New file.
21381 * include/bits/mathcalls-narrow.h: Likewise.
21382 * math/math-narrow.h: Likewise.
21383 * math/math.h (__MATHCALL_NARROW_ARGS_1): New macro.
21384 (__MATHCALL_NARROW_ARGS_2): Likewise.
21385 (__MATHCALL_NARROW_ARGS_3): Likewise.
21386 (__MATHCALL_NARROW_NORMAL): Likewise.
21387 (__MATHCALL_NARROW_REDIR): Likewise.
21388 (__MATHCALL_NARROW): Likewise.
21389 [__GLIBC_USE (IEC_60559_BFP_EXT)]: Repeatedly include
21390 <bits/mathcalls-narrow.h> with _Mret_, _Marg_ and __MATHCALL_NAME
21391 defined.
21392 [__GLIBC_USE (IEC_60559_TYPES_EXT)]: Likewise.
21393 * math/Makefile (headers): Add bits/mathcalls-narrow.h.
21394 (libm-narrow-fns): New variable.
21395 (libm-narrow-types-basic): Likewise.
21396 (libm-narrow-types-ldouble-yes): Likewise.
21397 (libm-narrow-types-float128-yes): Likewise.
21398 (libm-narrow-types-float128-alias-yes): Likewise.
21399 (libm-narrow-types): Likewise.
21400 (libm-routines): Add narrowing functions.
21401 * sysdeps/i386/fpu/fenv_private.h [__x86_64__]
21402 (libc_feholdexcept_setroundf128): New macro.
21403 [__x86_64__] (libc_feupdateenv_testf128): Likewise.
21404 * sysdeps/ieee754/float128/float128_private.h: Include
21405 <math/math-narrow.h>.
21406 [libc_feholdexcept_setroundf128] (libc_feholdexcept_setroundl):
21407 Undefine and redefine.
21408 [libc_feupdateenv_testf128] (libc_feupdateenv_testl): Likewise.
21409 (libm_alias_float_ldouble): Undefine and redefine.
21410 (libm_alias_double_ldouble): Likewise.
21411
21412 * math/Makefile [$(PERL) != no] (libm-test-incs): Remove variable.
21413
21414 2018-02-09 Wilco Dijkstra <wdijkstr@arm.com>
21415
21416 * sysdeps/aarch64/fpu/fpu_control.h: Use builtins for accessing
21417 FPCR/FPSR.
21418
21419 2018-02-09 Rical Jasan <ricaljasan@pacific.net>
21420
21421 * manual/creature.texi: Convert references to gcc.info to gcc.
21422 * manual/stdio.texi: Likewise.
21423 * manual/string.texi: Likewise.
21424
21425 2018-02-07 Joseph Myers <joseph@codesourcery.com>
21426
21427 [BZ #17979]
21428 * posix/bits/types.h (__int_least8_t): New typedef.
21429 (__uint_least8_t): Likewise.
21430 (__int_least16_t): Likewise.
21431 (__uint_least16_t): Likewise.
21432 (__int_least32_t): Likewise.
21433 (__uint_least32_t): Likewise.
21434 (__int_least64_t): Likewise.
21435 (__uint_least64_t): Likewise.
21436 * sysdeps/generic/stdint.h (int_least8_t): Define using
21437 __int_least8_t.
21438 (int_least16_t): Define using __int_least16_t.
21439 (int_least32_t): Define using __int_least32_t.
21440 (int_least64_t): Define using __int_least64_t.
21441 (uint_least8_t): Define using __uint_least8_t.
21442 (uint_least16_t): Define using __uint_least16_t.
21443 (uint_least32_t): Define using __uint_least32_t.
21444 (uint_least64_t): Define using __uint_least64_t.
21445 * wcsmbs/uchar.h: Include <bits/types.h>.
21446 (char16_t): Define using __uint_least16_t conditional only on
21447 [!__USE_ISOCXX11].
21448 (char32_t): Define using __uint_least32_t conditional only on
21449 [!__USE_ISOCXX11].
21450 * wcsmbs/test-char-types.c: New file.
21451 * wcsmbs/Makefile (tests): Add test-char-types.
21452
21453 * scripts/build-many-glibcs.py (Context.checkout): Default MPFR
21454 version to 4.0.1.
21455
21456 2018-02-07 Zack Weinberg <zackw@panix.com>
21457
21458 * bits/_G_config.h: Move back to sysdeps/generic/_G_config.h.
21459 Delete all contents except for definitions of _G_HAVE_MMAP and
21460 _G_HAVE_MREMAP. Add commentary explaining those two symbols.
21461 * sysdeps/unix/sysv/linux/bits/_G_config.h: Move back to
21462 sysdeps/unix/sysv/linux/_G_config.h. Make same content
21463 change as above.
21464
21465 * libio/libio.h: Don't include bits/_G_config.h here.
21466 Include stddef.h with __need_wchar_t defined. Include
21467 bits/types/__mbstate_t.h, bits/types/wint_t.h, and gconv.h.
21468 Define _IO_iconv_t here, directly.
21469 Don't define _IO_HAVE_ST_BLKSIZE.
21470 * libio/libioP.h: Include _G_config.h here. Move include of
21471 shlib-compat.h up with rest of includes. Simplify conditionals
21472 controlling definition of _IO_JUMPS_OFFSET.
21473
21474 * csu/init.c: Remove always-true #if around entire file.
21475 Don't include stdio.h. Set _IO_stdin_used to hardwired
21476 constant 0x20001, and update commentary.
21477 * include/stdio.h, sysdeps/ieee754/ldbl-opt/nldbl-compat.h:
21478 Replace all uses of _G_va_list with __gnuc_va_list.
21479 * libio/filedoalloc.c: Use #if defined _STATBUF_ST_BLKSIZE
21480 instead of #if _IO_HAVE_ST_BLKSIZE.
21481 * libio/fileops.c: Test _G_HAVE_MREMAP with #if, not #ifdef.
21482 * libio/iofdopen.c, libio/iofopen.c: Test _G_HAVE_MMAP with #if,
21483 not #ifdef.
21484
21485 * libio/bits/libio.h: Move back to libio/libio.h and adjust
21486 multiple-include guard to match.
21487 Merge contents of libio/bits/libio-ldbl.h and include/libio.h
21488 into this file.
21489 Remove preprocessor conditionals that are always true and/or
21490 redundant to other preprocessor conditionals in the same nest.
21491 Include shlib-compat.h unconditionally.
21492 Error out if _LIBC is not defined, or if _ISOMAC is defined,
21493 or if _IO_MTSAFE_IO is defined but _IO_lock_t_defined is not
21494 defined after including stdio.h.
21495 Use __BEGIN_DECLS/__END_DECLS.
21496
21497 * libio/bits/libio-ldbl.h, include/bits/libio.h: Delete file.
21498 * include/stdio.h, libio/iolibio.h, libio/libioP.h: Include
21499 libio.h as <libio/libio.h> rather than as <bits/libio.h>.
21500
21501 2018-02-07 Zack Weinberg <zackw@panix.com>
21502
21503 * libio/bits/types/__fpos_t.h, libio/bits/types/__fpos64_t.h:
21504 New single-type headers split from _G_config.h.
21505 * libio/bits/types/cookie_io_functions_t.h
21506 * libio/bits/types/struct_FILE.h
21507 New single-type headers split from libio.h.
21508
21509 * libio/Makefile: Install the above new headers. Don't install
21510 libio.h, _G_config.h, bits/libio.h, bits/_G_config.h, or
21511 bits/libio-ldbl.h.
21512 * libio/_G_config.h, libio/libio.h: Delete file.
21513
21514 * libio/bits/libio.h: Remove improper-inclusion guard.
21515 Include stdio.h and don't repeat anything that it does.
21516 Define _IO_fpos_t as __fpos_t, _IO_fpos64_t as __fpos64_t,
21517 _IO_BUFSIZ as BUFSIZ, _IO_va_list as __gnuc_va_list,
21518 __io_read_fn as cookie_read_function_t,
21519 __io_write_fn as cookie_write_function_t,
21520 __io_seek_fn as cookie_seek_function_t,
21521 __io_close_fn as cookie_close_function_t,
21522 and _IO_cookie_io_functions_t as cookie_io_functions_t.
21523 Define _STDIO_USES_IOSTREAM, __HAVE_COLUMN, and _IO_file_flags
21524 here, in the "compatibility defines" section. Remove an #if 0
21525 block. Use the "body" macros from bits/types/struct_FILE.h to
21526 define _IO_getc_unlocked, _IO_putc_unlocked, _IO_feof_unlocked,
21527 and _IO_ferror_unlocked.
21528 Move prototypes of __uflow and __overflow...
21529
21530 * libio/stdio.h: ...here. Don't include bits/libio.h.
21531 Don't define _STDIO_USES_IOSTREAM. Get __gnuc_va_list
21532 directly from stdarg.h. Include bits/types/__fpos_t.h,
21533 bits/types/__fpos64_t.h, bits/types/struct_FILE.h,
21534 and, when __USE_GNU, bits/types/cookie_io_functions_t.h.
21535 Use __gnuc_va_list, not _G_va_list; __fpos_t, not _G_fpos_t;
21536 __fpos64_t, not _G_fpos64_t; FILE, not struct _IO_FILE;
21537 cookie_io_functions_t, not _IO_cookie_io_functions_t;
21538 __ssize_t, not _IO_ssize_t. Unconditionally define
21539 BUFSIZ as 8192 and EOF as (-1).
21540
21541 * libio/bits/stdio.h: Add multiple-include guard. Use the "body"
21542 macros from bits/types/struct_FILE.h instead of _IO_* macros
21543 from libio.h; use __gnuc_va_list instead of va_list and __ssize_t
21544 instead of _IO_ssize_t.
21545 * libio/bits/stdio2.h: Similarly.
21546
21547 * libio/iolibio.h: Add multiple-include guard.
21548 Include bits/libio.h after stdio.h.
21549 * libio/libioP.h: Add multiple-include guard.
21550 Include stdio.h and bits/libio.h before iolibio.h.
21551
21552 * include/bits/types/__fpos_t.h, include/bits/types/__fpos64_t.h
21553 * include/bits/types/cookie_io_functions_t.h
21554 * include/bits/types/struct_FILE.h: New wrappers.
21555
21556 * bits/_G_config.h, sysdeps/unix/sysv/linux/_G_config.h:
21557 Get definitions of _G_fpos_t and _G_fpos64_t from
21558 bits/types/__fpos_t.h and bits/types/__fpos64_t.h
21559 respectively. Remove improper-inclusion guards.
21560
21561 * conform/data/stdio.h-data: Update expectations of va_list.
21562 * scripts/check-installed-headers.sh: Remove special case for
21563 libio.h and _G_config.h.
21564
21565 2018-02-07 Joseph Myers <joseph@codesourcery.com>
21566
21567 [BZ #15105]
21568 [BZ #19463]
21569 * include/sys/sysmacros.h [!_ISOMAC]
21570 (__SYSMACROS_NEED_IMPLEMENTATION): Define macro.
21571 [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC]
21572 (_SYS_SYSMACROS_H_WRAPPER): Likewise.
21573 [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC] (gnu_dev_major): Use
21574 libc_hidden_proto.
21575 [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC] (gnu_dev_minor): Likewise.
21576 [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC] (gnu_dev_makedev):
21577 Likewise.
21578 [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC] (__SYSMACROS_DECL_TEMPL):
21579 Undefine and redefine to add use __gnu_dev_ prefix.
21580 [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC] (__SYSMACROS_IMPL_TEMPL):
21581 Likewise.
21582 [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC] (__gnu_dev_major): Declare
21583 and define as hidden inline function.
21584 [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC] (__gnu_dev_minor):
21585 Likewise.
21586 [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC] (__gnu_dev_makedev):
21587 Likewise.
21588 * misc/makedev.c (OUT_OF_LINE_IMPL_TEMPL): Use __gnu_dev_ prefix.
21589 (gnu_dev_major): Use weak_alias and libc_hidden_weak.
21590 (gnu_dev_minor): Likewise.
21591 (gnu_dev_makedev): Likewise.
21592 * csu/check_fds.c (check_one_fd): Use __gnu_dev_makedev instead of
21593 makedev.
21594 * posix/wordexp.c (exec_comm_child): Likewise.
21595 * sysdeps/mach/hurd/xmknodat.c (__xmknodat): Use __gnu_dev_minor
21596 instead of minor and __gnu_dev_major instead of major.
21597 * sysdeps/unix/sysv/linux/device-nrs.h (DEV_TTY_P): Use
21598 __gnu_dev_major instead of major.
21599 * sysdeps/unix/sysv/linux/pathconf.c (distinguish_extX): Use
21600 __gnu_dev_major instead of gnu_dev_major and __gnu_dev_minor
21601 instead of gnu_dev_minor.
21602 * sysdeps/unix/sysv/linux/ptsname.c (MASTER_P): Likewise.
21603 (SLAVE_P): Likewise.
21604 (__ptsname_internal): Use __gnu_dev_minor instead of minor.
21605 * sysdeps/unix/sysv/linux/ttyname.h (is_pty): Use __gnu_dev_major
21606 instead of major.
21607
21608 [BZ #21313]
21609 * locale/weight.h (findidx): Disable -Wmaybe-uninitialized for -Os
21610 in another place.
21611 * locale/weightwc.h (findidx): Likewise.
21612
21613 2018-02-07 Wilco Dijkstra <wdijkstr@arm.com>
21614
21615 * manual/probes.texi (slowlog): Delete documentation of removed probe.
21616 (slowlog_inexact): Likewise
21617 * sysdeps/ieee754/dbl-64/e_log.c (__ieee754_log): Remove slow paths.
21618 * sysdeps/ieee754/dbl-64/ulog.h: Remove unused declarations.
21619
21620 2018-02-07 Igor Gnatenko <ignatenko@redhat.com>
21621
21622 [BZ #22797]
21623 * sysdeps/unix/sysv/linux/bits/mman-shared.h (pkey_get): Add
21624 missing second underscore to parameter name.
21625
21626 2018-02-06 Joseph Myers <joseph@codesourcery.com>
21627
21628 [BZ #14508]
21629 [BZ #15512]
21630 [BZ #17082]
21631 [BZ #20530]
21632 * bits/byteswap.h: Update file comment. Do not include
21633 <bits/byteswap-16.h>.
21634 (__bswap_constant_16): Cast result to __uint16_t. Use signed 0xff
21635 constant.
21636 (__bswap_16): Define as inline function.
21637 (__bswap_constant_32): Reformat definition.
21638 (__bswap_32): Always define as inline function, not macro, using
21639 __uint32_t. Use __builtin_bswap32 if [__GNUC_PREREQ (4, 3)],
21640 otherwise __bswap_constant_32.
21641 (__bswap_constant_64): Reformat definition. Do not use
21642 __extension__ here.
21643 (__bswap_64): Always define as inline function, not macro. Use
21644 __extension__ on function definition. Use __builtin_bswap64 if
21645 [__GNUC_PREREQ (4, 3)], otherwise __bswap_constant_64.
21646 * string/test-endian-file-scope.c: New file.
21647 * string/test-endian-sign-conversion.c: Likewise.
21648 * string/Makefile (headers): Remove bits/byteswap-16.h.
21649 (tests): Add test-endian-file-scope and
21650 test-endian-sign-conversion.
21651 (CFLAGS-test-endian-sign-conversion.c): New variable.
21652 * bits/byteswap-16.h: Remove file.
21653 * sysdeps/ia64/bits/byteswap-16.h: Likewise.
21654 * sysdeps/ia64/bits/byteswap.h: Likewise.
21655 * sysdeps/m68k/bits/byteswap.h: Likewise.
21656 * sysdeps/s390/bits/byteswap-16.h: Likewise.
21657 * sysdeps/s390/bits/byteswap.h: Likewise.
21658 * sysdeps/tile/bits/byteswap.h: Likewise.
21659 * sysdeps/x86/bits/byteswap-16.h: Likewise.
21660 * sysdeps/x86/bits/byteswap.h: Likewise.
21661
21662 [BZ #17721]
21663 * misc/sys/cdefs.h [!__GNUC__ && (__cplusplus || (__STDC_VERSION__
21664 && __STDC_VERSION__ >= 199901L))] (__inline): Define to inline.
21665 [!__GNUC_PREREQ (2,92) && __STDC_VERSION__ && __STDC_VERSION__ >=
21666 199901L] (__restrict): Define to restrict.
21667
21668 [BZ #19667]
21669 * string/testcopy.c: Include <support/support.h>. Do not include
21670 <malloc.h>. Use <support/test-driver.c>.
21671 (main): Rename to do_test. Make static. Use xmalloc instead of
21672 malloc.
21673
21674 [BZ #13575]
21675 * posix/bits/posix1_lim.h: Include <bits/wordsize.h>.
21676 [!SSIZE_MAX && !(__WORDSIZE == 64 || __WORDSIZE32_SIZE_ULONG)]
21677 (SSIZE_MAX): Define to INT_MAX.
21678 * posix/test-ssize-max.c: New file.
21679 * posix/Makefile (tests): Add test-ssize-max.
21680
21681 [BZ #19668]
21682 * sysdeps/powerpc/fpu/tst-setcontext-fpscr.c: Include
21683 <support/support.h>. Do not include <malloc.h>.
21684 (query_auxv): Use xmalloc instead of malloc.
21685
21686 [BZ #14553]
21687 * posix/sys/types.h (loff_t): Only define for [__USE_MISC].
21688 * sysdeps/unix/sysv/linux/sys/quota.h (dqoff): Use __loff_t
21689 instead of loff_t.
21690
21691 2018-02-06 Florian Weimer <fweimer@redhat.com>
21692
21693 [BZ #18023]
21694 * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
21695 Use scratch_buffer instead of extend_alloca.
21696
21697 2018-02-06 Zack Weinberg <zackw@panix.com>
21698
21699 * libio/stdio.h: Don't define getc or putc as macros.
21700 * libio/bits/stdio.h (getchar, putchar): Use getc and putc,
21701 not _IO_getc and _IO_putc.
21702
21703 * stdio-common/tstgetln.c: Don't redefine FILE, va_list, or BUFSIZ.
21704 * stdio-common/tstgetln.c: Don't redefine ssize_t.
21705
21706 2018-02-06 Joseph Myers <joseph@codesourcery.com>
21707
21708 * sysdeps/gnu/netinet/tcp.h (TCP_FASTOPEN_KEY): New macro.
21709 (TCP_FASTOPEN_NO_COOKIE): Likewise.
21710
21711 * sysdeps/unix/sysv/linux/bits/in.h (IPV6_FREEBIND): New macro.
21712
21713 [BZ #14890]
21714 * elf/elf.h (NT_PRFPREG): New macro.
21715 (NT_S390_VXRS_LOW): Likewise.
21716 (NT_S390_VXRS_HIGH): Likewise.
21717 (NT_S390_GS_CB): Likewise.
21718 (NT_S390_GS_BC): Likewise.
21719 (NT_S390_RI_CB): Likewise.
21720
21721 * sysdeps/unix/sysv/linux/aarch64/bits/mman.h [__USE_MISC]
21722 (MAP_SYNC): New macro.
21723 * sysdeps/unix/sysv/linux/arm/bits/mman.h [__USE_MISC] (MAP_SYNC):
21724 Likewise.
21725 * sysdeps/unix/sysv/linux/ia64/bits/mman.h [__USE_MISC]
21726 (MAP_SYNC): Likewise.
21727 * sysdeps/unix/sysv/linux/m68k/bits/mman.h [__USE_MISC]
21728 (MAP_SYNC): Likewise.
21729 * sysdeps/unix/sysv/linux/microblaze/bits/mman.h [__USE_MISC]
21730 (MAP_SYNC): Likewise.
21731 * sysdeps/unix/sysv/linux/nios2/bits/mman.h [__USE_MISC]
21732 (MAP_SYNC): Likewise.
21733 * sysdeps/unix/sysv/linux/riscv/bits/mman.h [__USE_MISC]
21734 (MAP_SYNC): Likewise.
21735 * sysdeps/unix/sysv/linux/s390/bits/mman.h [__USE_MISC]
21736 (MAP_SYNC): Likewise.
21737 * sysdeps/unix/sysv/linux/sh/bits/mman.h [__USE_MISC] (MAP_SYNC):
21738 Likewise.
21739 * sysdeps/unix/sysv/linux/x86/bits/mman.h [__USE_MISC] (MAP_SYNC):
21740 Likewise.
21741
21742 * sysdeps/unix/sysv/linux/bits/mman-linux.h [__USE_MISC]
21743 (MAP_SHARED_VALIDATE): New macro.
21744 * sysdeps/unix/sysv/linux/hppa/bits/mman.h [__USE_MISC]
21745 (MAP_SHARED_VALIDATE): Likewise.
21746
21747 2018-02-05 H.J. Lu <hongjiu.lu@intel.com>
21748
21749 * elf/dl-addr.c (determine_info): Use ADDRIDX with DT_GNU_HASH.
21750 * elf/dl-lookup.c (_dl_setup_hash): Likewise.
21751 * elf/get-dynamic-info.h (elf_get_dynamic_info): Likewise.
21752
21753 2018-02-05 H.J. Lu <hongjiu.lu@intel.com>
21754
21755 * elf/elf.h (DT_SYMTAB_SHNDX): New. Set to 34.
21756 (DT_NUM): Updated to 35.
21757
21758 2018-02-05 H.J. Lu <hongjiu.lu@intel.com>
21759
21760 * sysdeps/i386/dl-machine.h (elf_machine_rel): Replace
21761 __builtin_expect with __glibc_likely and __glibc_unlikely.
21762 (elf_machine_rela): Likewise.
21763 (elf_machine_lazy_rel): Likewise.
21764
21765 2018-02-05 H.J. Lu <hongjiu.lu@intel.com>
21766
21767 * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Replace
21768 __builtin_expect with __glibc_likely and __glibc_unlikely.
21769 (elf_machine_lazy_rel): Likewise.
21770
21771 2018-02-05 H.J. Lu <hongjiu.lu@intel.com>
21772
21773 [BZ #22638]
21774 * sysdeps/sparc/sparc32/start.S (_start): Check PIC instead of
21775 SHARED.
21776 * sysdeps/sparc/sparc64/start.S (_start): Likewise.
21777
21778 2018-02-05 Andreas Schwab <schwab@suse.de>
21779
21780 [BZ #22761]
21781 * assert/assert-perr.c (__assert_perror_fail): Append %n to format
21782 string.
21783
21784 2018-02-04 Samuel Thibault <samuel.thibault@ens-lyon.org>
21785
21786 * stdlib/test-atexit-race-common.c [!defined PTHREAD_STACK_MIN]: Do
21787 not check against PTHREAD_STACK_MIN.
21788
21789 2018-02-02 Sean McKean <smckean83@gmail.com>
21790
21791 [BZ #22735]
21792 * time/time.h (clock): Reference CLOCKS_PER_SEC in comment.
21793
21794 2018-02-02 Florian Weimer <fweimer@redhat.com>
21795
21796 [BZ #22753]
21797 * sysdeps/posix/preadv2.c (preadv2): Handle offset == -1.
21798 * sysdeps/posix/preadv64v2.c (preadv64v2): Likewise.
21799 * sysdeps/posix/pwritev2.c (pwritev2): Likewise.
21800 * sysdeps/posix/pwritev64v2.c (pwritev64v2): Likweise.
21801 * sysdeps/unix/sysv/linux/preadv2.c (preadv2): Likewise.
21802 * sysdeps/unix/sysv/linux/preadv64v2.c (preadv64v2): Likewise.
21803 * sysdeps/unix/sysv/linux/pwritev2.c (pwritev2): Likewise.
21804 * sysdeps/unix/sysv/linux/pwritev64v2.c (pwritev64v2): Likweise.
21805 * manual/llio.texi (Scatter-Gather): Mention offset -1.
21806 * misc/tst-preadvwritev-common.c (do_test_without_offset): New.
21807 * misc/tst-preadvwritev2.c (do_test): Call it.
21808 * misc/tst-preadvwritev64v2.c (do_test): Likewise.
21809
21810 2018-02-02 Siddhesh Poyarekar <siddhesh@sourceware.org>
21811
21812 * sysdeps/aarch64/memcmp.S: Use L() macro for labels.
21813
21814 * benchtests/bench-memcmp.c: Print json instead of plain text.
21815
21816 * benchtests/bench-memcmp.c (do_test): Call realloc_buf for
21817 every test run.
21818
21819 2018-02-01 Joseph Myers <joseph@codesourcery.com>
21820
21821 * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
21822 version to 4.15.
21823 (s390_sthyi): New syscall.
21824
21825 * sysdeps/generic/ldbl-classify-compat.h: New file.
21826 * sysdeps/arm/ldbl-classify-compat.h: Likewise.
21827 * sysdeps/m68k/coldfire/ldbl-classify-compat.h: Likewise.
21828 * sysdeps/microblaze/ldbl-classify-compat.h: Likewise.
21829 * sysdeps/mips/ldbl-classify-compat.h: Likewise.
21830 * sysdeps/nios2/ldbl-classify-compat.h: Likewise.
21831 * sysdeps/sh/ldbl-classify-compat.h: Likewise.
21832 * sysdeps/ieee754/dbl-64/s_finite.c: Include
21833 <ldbl-classify-compat.h>.
21834 [LDBL_CLASSIFY_COMPAT]: Test value, not whether defined.
21835 * sysdeps/ieee754/dbl-64/s_isinf.c: Include
21836 <ldbl-classify-compat.h>.
21837 [LDBL_CLASSIFY_COMPAT]: Test value, not whether defined.
21838 * sysdeps/ieee754/dbl-64/s_isnan.c: Include
21839 <ldbl-classify-compat.h>.
21840 [LDBL_CLASSIFY_COMPAT]: Test value, not whether defined.
21841 * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: Include
21842 <ldbl-classify-compat.h>.
21843 [LDBL_CLASSIFY_COMPAT]: Test value, not whether defined.
21844 * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf.c: Include
21845 <ldbl-classify-compat.h>.
21846 [LDBL_CLASSIFY_COMPAT]: Test value, not whether defined.
21847 * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Include
21848 <ldbl-classify-compat.h>.
21849 [LDBL_CLASSIFY_COMPAT]: Test value, not whether defined.
21850 * sysdeps/arm/math_private.h (LDBL_CLASSIFY_COMPAT): Remove macro.
21851 * sysdeps/mips/math_private.h (LDBL_CLASSIFY_COMPAT): Likewise.
21852 * sysdeps/m68k/coldfire/math_private.h: Remove file.
21853 * sysdeps/microblaze/math_private.h: Likewise.
21854 * sysdeps/nios2/math_private.h: Likewise.
21855 * sysdeps/sh/math_private.h: Likewise.
21856
21857 * sysdeps/m68k/coldfire/fpu/math_private.h: Move to ....
21858 * sysdeps/m68k/coldfire/math_private.h: ... here.
21859 * sysdeps/m68k/coldfire/nofpu/math_private.h: Remove file.
21860 * sysdeps/tile/math_private.h: Likewise.
21861 * sysdeps/microblaze/math_private.h (libc_feholdexcept_setround):
21862 Remove macro.
21863 * sysdeps/nios2/math_private.h (libc_feholdexcept_setround):
21864 Likewise.
21865
21866 * sysdeps/m68k/coldfire/nofpu/math_private.h (libc_fesetround):
21867 Remove macro.
21868 (libc_fetestexcept): Likewise.
21869 (libc_feupdateenv_test): Likewise.
21870 * sysdeps/microblaze/math_private.h (libc_fesetround): Likewise.
21871 (libc_fetestexcept): Likewise.
21872 (libc_feupdateenv_test): Likewise.
21873 * sysdeps/nios2/math_private.h (libc_fesetround): Likewise.
21874 (libc_fetestexcept): Likewise.
21875 (libc_feupdateenv_test): Likewise.
21876 * sysdeps/tile/math_private.h (libc_fesetround): Likewise.
21877 (libc_fetestexcept): Likewise.
21878 (libc_feupdateenv_test): Likewise.
21879
21880 * sysdeps/generic/math_private.h
21881 [!FE_HAVE_ROUNDING_MODES && FE_ALL_EXCEPT == 0] (feholdexcept):
21882 New inline function.
21883 [!FE_HAVE_ROUNDING_MODES && FE_ALL_EXCEPT == 0] (__feholdexcept):
21884 Likewise.
21885
21886 * include/fenv.h [!_ISOMAC && !FE_TONEAREST]: Give #error.
21887 [!_ISOMAC] (FE_HAVE_ROUNDING_MODES): New macro.
21888 * sysdeps/generic/math_private.h
21889 [!FE_HAVE_ROUNDING_MODES && FE_ALL_EXCEPT == 0] (fegetenv): New
21890 inline function.
21891 [!FE_HAVE_ROUNDING_MODES && FE_ALL_EXCEPT == 0] (__fegetenv):
21892 Likewise.
21893 [!FE_HAVE_ROUNDING_MODES && FE_ALL_EXCEPT == 0] (fesetenv):
21894 Likewise.
21895 [!FE_HAVE_ROUNDING_MODES && FE_ALL_EXCEPT == 0] (__fesetenv):
21896 Likewise.
21897 [!FE_HAVE_ROUNDING_MODES && FE_ALL_EXCEPT == 0] (feupdateenv):
21898 Likewise.
21899 [!FE_HAVE_ROUNDING_MODES && FE_ALL_EXCEPT == 0] (__feupdateenv):
21900 Likewise.
21901 [!FE_HAVE_ROUNDING_MODES] (fegetround): Likewise.
21902 [!FE_HAVE_ROUNDING_MODES] (__fegetround): Likewise.
21903 [!FE_HAVE_ROUNDING_MODES] (fesetround): Likewise.
21904 [!FE_HAVE_ROUNDING_MODES] (__fesetround): Likewise.
21905 * sysdeps/tile/math_private.h (fegetenv): Remove inline function.
21906 (__fegetenv): Likewise.
21907 (fesetenv): Likewise.
21908 (__fesetenv): Likewise.
21909 (feupdateenv): Likewise.
21910 (__feupdateenv): Likewise.
21911 (fegetround): Likewise.
21912 (__fegetround): Likewise.
21913 (fesetround): Likewise.
21914 (__fesetround): Likewise.
21915
21916 * sysdeps/generic/math_private.h [FE_ALL_EXCEPT == 0]
21917 (feraiseexcept): New macro.
21918 [FE_ALL_EXCEPT == 0] (__feraiseexcept): Likewise.
21919 * sysdeps/m68k/coldfire/nofpu/math_private.h (feraiseexcept):
21920 Remove macro.
21921 (__feraiseexcept): Likewise.
21922 (feclearexcept): Likewise.
21923 * sysdeps/microblaze/math_private.h (feraiseexcept): Likewise.
21924 (__feraiseexcept): Likewise.
21925 (feclearexcept): Likewise.
21926 * sysdeps/nios2/math_private.h (feraiseexcept): Likewise.
21927 (__feraiseexcept): Likewise.
21928 (feclearexcept): Likewise.
21929 * sysdeps/tile/math_private.h (feraiseexcept): Likewise.
21930 (__feraiseexcept): Likewise.
21931 (feclearexcept): Likewise.
21932 (fetestexcept): Likewise.
21933
21934 * sysdeps/m68k/coldfire/math-tests.h: New file.
21935
21936 * sysdeps/m68k/fpu/bits/fenv.h: Move to ....
21937 * sysdeps/m68k/bits/fenv.h: ... here.
21938 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_INEXACT): Do
21939 not define.
21940 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_DIVBYZERO):
21941 Likewise.
21942 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_UNDERFLOW):
21943 Likewise.
21944 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_OVERFLOW):
21945 Likewise.
21946 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_INVALID):
21947 Likewise.
21948 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_ALL_EXCEPT):
21949 Define to 0.
21950 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__]
21951 (__FE_UNDEFINED): New enum constant.
21952 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_TOWARDZERO):
21953 Do not define.
21954 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_DOWNWARD):
21955 Likewise.
21956 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_UPWARD):
21957 Likewise.
21958 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (fenv_t): Define
21959 to match generic bits/fenv.h.
21960 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_NOMASK_ENV):
21961 Do not define.
21962
21963 * soft-fp/double.h (union _FP_UNION_D): Do not use attribute
21964 packed on bits.
21965 * soft-fp/extended.h (union _FP_UNION_E): Likewise.
21966 * soft-fp/half.h (union _FP_UNION_H): Likewise.
21967 * soft-fp/quad.h (union _FP_UNION_Q): Likewise.
21968 * soft-fp/single.h (union _FP_UNION_S): Likewise.
21969
21970 2018-02-01 Carlos O'Donell <carlos@redhat.com>
21971 Ramin Seyed-Moussavi <lordrasmus@gmail.com>
21972 Joseph Myers <joseph@codesourcery.com>
21973
21974 [BZ #21314]
21975 * sysdeps/ieee754/dbl-64/s_log1p.c: Include <libc-diag.h>.
21976 (__log1p): Disable -Wmaybe-uninitialized for -Os around
21977 computation using c.
21978 * sysdeps/ieee754/flt-32/s_log1pf.c: Include <libc-diag.h>.
21979 (__log1pf): Disable -Wmaybe-uninitialized for -Os around
21980 computation using c.
21981
21982 2018-02-01 Dmitry V. Levin <ldv@altlinux.org>
21983
21984 * version.h (RELEASE): Set to "development".
21985 (VERSION): Set to "2.27.9000".
21986 * NEWS (2.28): New section.
21987
21988 * version.h (RELEASE): Set to "stable".
21989 (VERSION): Set to "2.27".
21990 * include/features.h (__GLIBC_MINOR__): Set to 2.27.
21991
21992 * NEWS: Add the list of bugs fixed in 2.27.
21993
21994 2018-02-01 Adhemerval Zanella <adhemerval.zanella@linaro.org>
21995
21996 * stdlib/test-atexit-race-common.c (do_test): Check stack size
21997 against PTHREAD_STACK_MIN.
21998
21999 2018-02-01 Dmitry V. Levin <ldv@altlinux.org>
22000
22001 * manual/contrib.texi (Palmer Dabbelt, Arjun Shankar, Florian Weimer):
22002 New entries.
22003 (Rafał Lużyński, Andreas Schwab): Update.
22004
22005 2018-02-01 Rafał Lużyński <digitalfreak@lingonborough.com>
22006
22007 [BZ #10871]
22008 * NEWS: List the languages which actually use the alternative
22009 months feature in this release. Also explain that "alt_mon" and
22010 "ab_alt_mon" are optional.
22011
22012 2018-01-31 Il'ya Malakhov <ilmalakhov@yandex.ru>
22013
22014 [BZ #22765]
22015 * crypt/badsalttest.c (do_test): Set cd.initialized to 0.
22016
22017 2018-01-31 Dmitry V. Levin <ldv@altlinux.org>
22018
22019 * manual/install.texi (Tools for Compilation): Update the newest
22020 versions of gcc, binutils, texinfo, gawk, bison, and sed.
22021 * INSTALL: Regenerated.
22022
22023 2018-01-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
22024
22025 * sysdeps/pthread/allocalim.h (__libc_use_alloca): Use __glibc_likely
22026 instead of __builtin_expect.
22027
22028 2018-01-30 Florian Weimer <fweimer@redhat.com>
22029
22030 * nss/bug17079.c (do_test): Use nss_files only for reading passwd
22031 data.
22032 * nss/tst-nss-getpwent.c (do_test): Likewise.
22033
22034 2018-01-30 Rafał Lużyński <digitalfreak@lingonborough.com>
22035
22036 [BZ #10871]
22037 * localedata/locales/hr_HR (mon): Rename to...
22038 (alt_mon): This.
22039 (mon): Import from CLDR (genitive case).
22040 (d_t_fmt): Update the comment.
22041
22042 2018-01-29 Andreas Schwab <schwab@linux-m68k.org>
22043
22044 * sysdeps/posix/fpathconf.c (__fpathconf): Verify the values of
22045 _POSIX_CHOWN_RESTRICTED, _POSIX_NO_TRUNC, _POSIX_VDISABLE.
22046 * sysdeps/posix/pathconf.c (__pathconf): Likewise.
22047
22048 2018-01-29 Samuel Thibault <samuel.thibault@ens-lyon.org>
22049
22050 * mach/Versions: Fix version when __mach_host_self_ was added.
22051 * hurd/Versions: Fix version when _hurd_exec_paths was added.
22052 * sysdeps/mach/hurd/i386/ld.abilist: New file.
22053 * sysdeps/mach/hurd/i386/libBrokenLocale.abilist: New file.
22054 * sysdeps/mach/hurd/i386/libanl.abilist: New file.
22055 * sysdeps/mach/hurd/i386/libc.abilist: New file.
22056 * sysdeps/mach/hurd/i386/libcrypt.abilist: New file.
22057 * sysdeps/mach/hurd/i386/libdl.abilist: New file.
22058 * sysdeps/mach/hurd/i386/libm.abilist: New file.
22059 * sysdeps/mach/hurd/i386/libnsl.abilist: New file.
22060 * sysdeps/mach/hurd/i386/libresolv.abilist: New file.
22061 * sysdeps/mach/hurd/i386/librt.abilist: New file.
22062 * sysdeps/mach/hurd/i386/libutil.abilist: New file.
22063 * sysdeps/pthread/allocalim.h (__libc_use_alloca): Commute operands of
22064 || to respect codestyle.
22065 * libio/tst-memstream3.c (_FWRITE): Rename to FWRITE_FUNC.
22066 (do_test_bz20181): Rename accordingly.
22067 * malloc/malloc.c: Include <assert.h>.
22068 (assert): Do not define.
22069 [!defined NDEBUG] (__assert_fail): Define to __malloc_assert.
22070 * bits/fcntl.h: Fix comment for FREAD and FWRITE.
22071 * sysdeps/mach/hurd/bits/fcntl.h: Likewise.
22072 * sysdeps/mach/hurd/hp-timing.h: New file.
22073 * sysdeps/mach/hurd/i386/tlsdesc.sym: New file.
22074
22075 2018-01-29 Darius Rad <darius@bluespec.com>
22076
22077 * sysdeps/unix/sysv/linux/riscv/ipc_priv.h: New file.
22078
22079 2018-01-29 Palmer Dabbelt <palmer@sifive.com>
22080
22081 * sysdeps/init_array/crti.S (.section .init_array): Add
22082 PREINIT_FUNCTION when defined.
22083 * manual/math.texi: RISC-V supports _Float128 and _Float64x.
22084 * config.h.in: Regenerate.
22085 * manual/platform.texi: Add RISC-V documenation for
22086 __riscv_flush_icache.
22087 * sysdeps/riscv/__longjmp.S: New file.
22088 * sysdeps/riscv/backtrace.c: Likewise.
22089 * sysdeps/riscv/bits/endian.h: Likewise.
22090 * sysdeps/riscv/bits/setjmp.h: Likewise.
22091 * sysdeps/riscv/bits/wordsize.h: Likewise.
22092 * sysdeps/riscv/bsd-_setjmp.c: Likewise.
22093 * sysdeps/riscv/bsd-setjmp.c: Likewise.
22094 * sysdeps/riscv/dl-trampoline.S: Likewise.
22095 * sysdeps/riscv/gccframe.h: Likewise.
22096 * sysdeps/riscv/jmpbuf-offsets.h: Likewise.
22097 * sysdeps/riscv/jmpbuf-unwind.h: Likewise.
22098 * sysdeps/riscv/machine-gmon.h: Likewise.
22099 * sysdeps/riscv/memusage.h: Likewise.
22100 * sysdeps/riscv/setjmp.S: Likewise.
22101 * sysdeps/riscv/sys/asm.h: Likewise.
22102 * sysdeps/riscv/tls-macros.h: Likewise.
22103 * sysdeps/riscv/dl-tls.h: New file.
22104 * sysdeps/riscv/libc-tls.c: Likewise.
22105 * sysdeps/riscv/nptl/tcb-offsets.sym: Likewise.
22106 * sysdeps/riscv/nptl/tls.h: Likewise.
22107 * sysdeps/riscv/stackinfo.h: Likewise.
22108 * sysdeps/riscv/bits/fenv.h: New file.
22109 * sysdeps/riscv/e_sqrtl.c: Likewise.
22110 * sysdeps/riscv/fpu_control.h: Likewise.
22111 * sysdeps/riscv/math-tests.h: Likewise.
22112 * sysdeps/riscv/nofpu/Implies: Likewise.
22113 * sysdeps/riscv/sfp-machine.h: Likewise.
22114 * sysdeps/riscv/tininess.h: Likewise.
22115 * sysdeps/riscv/rv64/rvd/s_ceil.c: New file.
22116 * sysdeps/riscv/rv64/rvd/s_floor.c: Likewise.
22117 * sysdeps/riscv/rv64/rvd/s_llrint.c: Likewise.
22118 * sysdeps/riscv/rv64/rvd/s_llround.c: Likewise.
22119 * sysdeps/riscv/rv64/rvd/s_lrint.c: Likewise.
22120 * sysdeps/riscv/rv64/rvd/s_lround.c: Likewise.
22121 * sysdeps/riscv/rv64/rvd/s_nearbyint.c: Likewise.
22122 * sysdeps/riscv/rv64/rvd/s_rint.c: Likewise.
22123 * sysdeps/riscv/rv64/rvd/s_round.c: Likewise.
22124 * sysdeps/riscv/rv64/rvd/s_roundeven.c: Likewise.
22125 * sysdeps/riscv/rv64/rvd/s_trunc.c: Likewise.
22126 * sysdeps/riscv/rv64/rvf/s_llrintf.c: Likewise.
22127 * sysdeps/riscv/rv64/rvf/s_llroundf.c: Likewise.
22128 * sysdeps/riscv/rv64/rvf/s_lrintf.c: Likewise.
22129 * sysdeps/riscv/rv64/rvf/s_lroundf.c: Likewise.
22130 * sysdeps/riscv/rvd/e_sqrt.c: Likewise.
22131 * sysdeps/riscv/rvd/s_copysign.c: Likewise.
22132 * sysdeps/riscv/rvd/s_finite.c: Likewise.
22133 * sysdeps/riscv/rvd/s_fma.c: Likewise.
22134 * sysdeps/riscv/rvd/s_fmax.c: Likewise.
22135 * sysdeps/riscv/rvd/s_fmin.c: Likewise.
22136 * sysdeps/riscv/rvd/s_fpclassify.c: Likewise.
22137 * sysdeps/riscv/rvd/s_isinf.c: Likewise.
22138 * sysdeps/riscv/rvd/s_isnan.c: Likewise.
22139 * sysdeps/riscv/rvd/s_issignaling.c: Likewise.
22140 * sysdeps/riscv/rvf/e_sqrtf.c: Likewise.
22141 * sysdeps/riscv/rvf/fclrexcpt.c: Likewise.
22142 * sysdeps/riscv/rvf/fegetenv.c: Likewise.
22143 * sysdeps/riscv/rvf/fegetmode.c: Likewise.
22144 * sysdeps/riscv/rvf/fegetround.c: Likewise.
22145 * sysdeps/riscv/rvf/feholdexcpt.c: Likewise.
22146 * sysdeps/riscv/rvf/fesetenv.c: Likewise.
22147 * sysdeps/riscv/rvf/fesetexcept.c: Likewise.
22148 * sysdeps/riscv/rvf/fesetmode.c: Likewise.
22149 * sysdeps/riscv/rvf/fesetround.c: Likewise.
22150 * sysdeps/riscv/rvf/feupdateenv.c: Likewise.
22151 * sysdeps/riscv/rvf/fgetexcptflg.c: Likewise.
22152 * sysdeps/riscv/rvf/fraiseexcpt.c: Likewise.
22153 * sysdeps/riscv/rvf/fsetexcptflg.c: Likewise.
22154 * sysdeps/riscv/rvf/ftestexcept.c: Likewise.
22155 * sysdeps/riscv/rvf/get-rounding-mode.h: Likewise.
22156 * sysdeps/riscv/rvf/math_private.h: Likewise.
22157 * sysdeps/riscv/rvf/s_ceilf.c: Likewise.
22158 * sysdeps/riscv/rvf/s_copysignf.c: Likewise.
22159 * sysdeps/riscv/rvf/s_finitef.c: Likewise.
22160 * sysdeps/riscv/rvf/s_floorf.c: Likewise.
22161 * sysdeps/riscv/rvf/s_fmaf.c: Likewise.
22162 * sysdeps/riscv/rvf/s_fmaxf.c: Likewise.
22163 * sysdeps/riscv/rvf/s_fminf.c: Likewise.
22164 * sysdeps/riscv/rvf/s_fpclassifyf.c: Likewise.
22165 * sysdeps/riscv/rvf/s_isinff.c: Likewise.
22166 * sysdeps/riscv/rvf/s_isnanf.c: Likewise.
22167 * sysdeps/riscv/rvf/s_issignalingf.c: Likewise.
22168 * sysdeps/riscv/rvf/s_nearbyintf.c: Likewise.
22169 * sysdeps/riscv/rvf/s_rintf.c: Likewise.
22170 * sysdeps/riscv/rvf/s_roundevenf.c: Likewise.
22171 * sysdeps/riscv/rvf/s_roundf.c: Likewise.
22172 * sysdeps/riscv/rvf/s_truncf.c: Likewise.
22173 * sysdeps/riscv/nptl/bits/pthreadtypes-arch.h: New file.
22174 * sysdeps/riscv/nptl/bits/semaphore.h: Likewise.
22175 * sysdeps/riscv/nptl/libc-lowlevellock.c: Likewise.
22176 * sysdeps/unix/sysv/linux/riscv/atomic-machine.h: Likewise.
22177 * sysdeps/riscv/nptl/nptl-sysdep.S: New file.
22178 * sysdeps/unix/sysv/linux/riscv/arch-fork.h: Likewise.
22179 * sysdeps/unix/sysv/linux/riscv/clone.S: Likewise.
22180 * sysdeps/unix/sysv/linux/riscv/profil-counter.h: Likewise.
22181 * sysdeps/unix/sysv/linux/riscv/pt-vfork.S: Likewise.
22182 * sysdeps/unix/sysv/linux/riscv/syscall.c: Likewise.
22183 * sysdeps/unix/sysv/linux/riscv/sysdep.S: Likewise.
22184 * sysdeps/unix/sysv/linux/riscv/sysdep.h: Likewise.
22185 * sysdeps/unix/sysv/linux/riscv/vfork.S: Likewise.
22186 * sysdeps/riscv/nptl/pthread-offsets.h: New file.
22187 * sysdeps/riscv/nptl/pthreaddef.h: Likewise.
22188 * sysdeps/unix/sysv/linux/riscv/bits/fcntl.h: Likewise.
22189 * sysdeps/unix/sysv/linux/riscv/bits/mman.h: Likewise.
22190 * sysdeps/unix/sysv/linux/riscv/bits/sigcontext.h: Likewise.
22191 * sysdeps/unix/sysv/linux/riscv/dl-cache.h: Likewise.
22192 * sysdeps/unix/sysv/linux/riscv/flush-icache.c: Likewise.
22193 * sysdeps/unix/sysv/linux/riscv/getcontext.S: Likewise.
22194 * sysdeps/unix/sysv/linux/riscv/init-first.c: Likewise.
22195 * sysdeps/unix/sysv/linux/riscv/libc-vdso.h: Likewise.
22196 * sysdeps/unix/sysv/linux/riscv/makecontext.c: Likewise.
22197 * sysdeps/unix/sysv/linux/riscv/readelflib.c: Likewise.
22198 * sysdeps/unix/sysv/linux/riscv/register-dump.h: Likewise.
22199 * sysdeps/unix/sysv/linux/riscv/setcontext.S: Likewise.
22200 * sysdeps/unix/sysv/linux/riscv/sigcontextinfo.h: Likewise.
22201 * sysdeps/unix/sysv/linux/riscv/swapcontext.S: Likewise.
22202 * sysdeps/unix/sysv/linux/riscv/sys/cachectl.h: Likewise.
22203 * sysdeps/unix/sysv/linux/riscv/sys/procfs.h: Likewise.
22204 * sysdeps/unix/sysv/linux/riscv/sys/ucontext.h: Likewise.
22205 * sysdeps/unix/sysv/linux/riscv/sys/user.h: Likewise.
22206 * sysdeps/unix/sysv/linux/riscv/ucontext-macros.h: Likewise.
22207 * sysdeps/unix/sysv/linux/riscv/ucontext_i.sym: Likewise.
22208 * sysdeps/unix/sysv/linux/riscv/dl-static.c: New file.
22209 * sysdeps/unix/sysv/linux/riscv/ldconfig.h: Likewise.
22210 * sysdeps/unix/sysv/linux/riscv/ldsodefs.h: Likewise.
22211 * sysdeps/riscv/nofpu/libm-test-ulps: New file.
22212 * sysdeps/riscv/nofpu/libm-test-ulps-name: Likewise.
22213 * sysdeps/riscv/rv64/rvd/libm-test-ulps: Likewise.
22214 * sysdeps/riscv/rv64/rvd/libm-test-ulps-name: Likewise.
22215 * sysdeps/unix/sysv/linux/riscv/localplt.data: Likewise.
22216 * sysdeps/unix/sysv/linux/riscv/rv64/c++-types.data: Likewise.
22217 * sysdeps/unix/sysv/linux/riscv/rv64/ld.abilist: Likewise.
22218 * sysdeps/unix/sysv/linux/riscv/rv64/libanl.abilist: Likewise.
22219 * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist: Likewise.
22220 * sysdeps/unix/sysv/linux/riscv/rv64/libdl.abilist: Likewise.
22221 * sysdeps/unix/sysv/linux/riscv/rv64/libm.abilist: Likewise.
22222 * sysdeps/unix/sysv/linux/riscv/rv64/libnsl.abilist: Likewise.
22223 * sysdeps/unix/sysv/linux/riscv/rv64/librt.abilist: Likewise.
22224 * sysdeps/unix/sysv/linux/riscv/rv64/libutil.abilist: Likewise.
22225 * sysdeps/riscv/Implies: New file.
22226 * sysdeps/riscv/Makefile: Likewise.
22227 * sysdeps/riscv/configure: Likewise.
22228 * sysdeps/riscv/configure.ac: Likewise.
22229 * sysdeps/riscv/nptl/Makefile: Likewise.
22230 * sysdeps/riscv/preconfigure: Likewise.
22231 * sysdeps/riscv/rv64/Implies-after: Likewise.
22232 * sysdeps/riscv/rv64/rvd/Implies: Likewise.
22233 * sysdeps/riscv/rv64/rvf/Implies: Likewise.
22234 * sysdeps/unix/sysv/linux/riscv/Implies: Likewise.
22235 * sysdeps/unix/sysv/linux/riscv/Makefile: Likewise.
22236 * sysdeps/unix/sysv/linux/riscv/Versions: Likewise.
22237 * sysdeps/unix/sysv/linux/riscv/configure: Likewise.
22238 * sysdeps/unix/sysv/linux/riscv/configure.ac: Likewise.
22239 * sysdeps/unix/sysv/linux/riscv/ldd-rewrite.sed: Likewise.
22240 * sysdeps/unix/sysv/linux/riscv/rv64/Implies: Likewise.
22241 * sysdeps/unix/sysv/linux/riscv/rv64/Makefile: Likewise.
22242 * sysdeps/unix/sysv/linux/riscv/shlib-versions: Likewise.
22243 * scripts/build-many-glibcs.py (Context): Add RISC-V targets.
22244 (Config): Likewise.
22245
22246 2018-01-29 Florian Weimer <fweimer@redhat.com>
22247
22248 [BZ #22701]
22249 * include/rpcsvc/nislib.h (__nis_default_ttl): Add
22250 libnsl_hidden_proto.
22251 * include/rpcsvc/yp.h (yp_xdrall): Declare with
22252 libnsl_hidden_proto.
22253 * include/rpcsvc/ypclnt.h (yp_maplist): Likewise.
22254 * nis/Makefile (libnsl-routines): Add nss-default only for
22255 build-obsolete-nsl.
22256 * nis/nis_defaults.c (__nis_default_ttl): Add
22257 libnsl_hidden_nolink_def.
22258 * nis/rpcsvc/ypclnt.h (yp_maplist): Remove #ifdef'ed-out
22259 declaration.
22260 * nis/yp_xdr.c (xdr_ypall): Add libnsl_hidden_nolink_def.
22261 * nis/ypclnt.c (yp_maplist): Likewise.
22262
22263 2018-01-29 Romain Naour <romain.naour@gmail.com> (tiny change)
22264
22265 * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
22266 (__ASSUME_COPY_FILE_RANGE) [__LINUX_KERNEL_VERSION < 0x040A00]: Undef.
22267
22268 2018-01-29 Joseph Myers <joseph@codesourcery.com>
22269
22270 * scripts/build-many-glibcs.py (Context.git_checkout): Use git
22271 clean -dxfq for git updates when replacing sources.
22272
22273 * scripts/build-many-glibcs.py (Config.build_gcc): Use
22274 --disable-libcilkrts unconditionally, not just for the final GCC
22275 build for Hurd.
22276
22277 * scripts/build-many-glibcs.py (Context.checkout): Default Linux
22278 version to 4.15.
22279
22280 2018-01-29 Rafał Lużyński <digitalfreak@lingonborough.com>
22281
22282 [BZ #10871]
22283 * localedata/locales/lt_LT (alt_mon): Import from CLDR (nominative
22284 case).
22285
22286 2018-01-29 Rafał Lużyński <digitalfreak@lingonborough.com>
22287
22288 [BZ #10871]
22289 * localedata/locales/be_BY (mon): Rename to...
22290 (alt_mon): This, then synchronize with CLDR (nominative case).
22291 (abmon): Rename to...
22292 (ab_alt_mon): This, then synchronize with CLDR (nominative case).
22293 (mon): Import from CLDR (genitive case).
22294 (abmon): Likewise.
22295 * localedata/locales/be_BY@latin (mon): Rename to...
22296 (alt_mon): This.
22297 (mon): Add, proper genitive forms provided by Viktar Siarheichyk.
22298
22299 * localedata/locales/be_BY@latin (lang_name): Reworded to
22300 "biełaruskaja mova".
22301
22302 2018-01-29 Rafał Lużyński <digitalfreak@lingonborough.com>
22303
22304 [BZ #10871]
22305 * localedata/locales/el_CY (mon): Renamed to...
22306 (alt_mon): This.
22307 (mon): Import from CLDR (genitive case).
22308 * localedata/locales/el_GR: Likewise.
22309
22310 2018-01-29 Rafał Lużyński <digitalfreak@lingonborough.com>
22311
22312 [BZ #10871]
22313 * localedata/locales/ru_RU (mon): Rename to...
22314 (alt_mon): This.
22315 (abmon): Rename to...
22316 (ab_alt_mon): This.
22317 (mon): Import from CLDR (genitive case).
22318 (abmon): Copy from the old content except the 5th month which is
22319 now in the genitive case, even when abbreviated.
22320 * localedata/locales/ru_UA: Likewise.
22321 * time/tst-strptime.c (day_tests): Add an actual example of
22322 a difference between %b and %Ob in Russian.
22323
22324 2018-01-27 Samuel Thibault <samuel.thibault@ens-lyon.org>
22325
22326 * sysdeps/mach/hurd/xmknodat.c: Include <sys/sysmacros.h>.
22327 * sysdeps/mach/hurd/profil.c: Reuse `a' variable instead of introducing
22328 a `c' variable.
22329 * resolv/res-close.c: Include <stdlib.h>.
22330 * sysdeps/generic/not-cancel.h: Include <fcntl.h>, <unistd.h>,
22331 <sys/wait.h>, <time.h>, <sys/uio.h>.
22332 (NOT_CANCEL_H): Add inclusion guard.
22333 * sysdeps/generic/sigset-cvt-mask.h: Include <sigsetops.h>.
22334 * sysdeps/generic/sigsetops.h (__sigemptyset, __sigfillset,
22335 __sigandset, __sigorset, __sigaddset, __sigdelset): Make them really
22336 return 0.
22337 * sysdeps/mach/hurd/dl-sysdep.c (_dl_sysdep_start): Cast
22338 vm_address_t * to ElfW(Addr) * for dl_main parameter.
22339 * sysdeps/pthread/posix-timer.h (timer_ptr2id): Cast to timer_t
22340 instead of void *.
22341 * sysdeps/pthread/timer_create.c (timer_create): Do not use
22342 timer_ptr2id to cast struct timer_node * to void *.
22343 * scripts/build-many-glibcs.py [os == gnu] (build_gcc): Pass
22344 --disable-libcilkrts to gcc configure.
22345 (checkout_vcs): Add mig and gnumach repository URLs, run autoreconf,
22346 and make them the default for now.
22347 * sysdeps/mach/hurd/Makefile [$(subdir)==nis]: Add
22348 -DUSE_BINDINGDIR=1 to CFLAGS-ypclnt.c.
22349 * mach/Machrules (MIGFLAGS): Do not set -DMACH_IPC_COMPAT=0.
22350 * mach/mach/mach_traps.h: Drop comment about MACH_IPC_COMPAT.
22351 * sysdeps/mach/hurd/fork.c (__fork): Drop special casing
22352 MACH_IPC_COMPAT.
22353 * sysdeps/mach/hurd/dl-sysdep.c (_exit): Call LOSE and abort() if
22354 __task_terminate would ever return successfully.
22355 * sysdeps/mach/hurd/profil.c (special_profil_failure): Move variable
22356 to global scope.
22357 * sysdeps/mach/pagecopy.h (PAGE_THRESHOLD): Rename to
22358 PAGE_COPY_THRESHOLD and set to benchmarked 16384.
22359 * sysdeps/mach/hurd/getresgid.c (__getresgid): Set result from
22360 critical section to make code simpler and avoid warning.
22361 * sysdeps/mach/hurd/getresuid.c (__getresuid): Set result from
22362 critical section to make code simpler and avoid warning.
22363 * sysdeps/mach/hurd/spawni.c (__spawni): Make relpath and abspath
22364 const char * instead of char *.
22365 * hurd/hurd/lookup.h (__hurd_file_name_lookup, hurd_file_name_lookup,
22366 __hurd_file_name_split, hurd_file_name_split,
22367 __hurd_directory_name_split, hurd_directory_name_split,
22368 __hurd_file_name_lookup_retry, hurd_file_name_lookup_retry,
22369 hurd_file_name_path_lookup): Make lookup function parameter take a
22370 const char *name instead of char *name.
22371 * hurd/hurdlookup.c (__hurd_file_name_lookup, __hurd_file_name_split,
22372 __hurd_directory_name_split): Likewise.
22373 * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Likewise.
22374 * hurd/path-lookup.c (hurd_file_name_path_lookup): Likewise.
22375 * sysdeps/mach/hurd/check_native.c: New file.
22376 * sysdeps/mach/hurd/check_pf.c: New file.
22377 * nscd/gai.c (__getifaddrs): Define macro to getifaddrs.
22378 (__freeifaddrs): Define macro to freeifaddrs.
22379 * sysdeps/mach/hurd/libhurduser.abilist: New file.
22380 * sysdeps/mach/libmachuser.abilist: New file.
22381 * libio/tst-memstream3.c (FWRITE): Rename to _FWRITE.
22382 (do_test_bz20181): Rename accordingly.
22383 * libio/tst-wmemstream3.c (FWRITE): Rename accordingly.
22384 * io/tst-copy_file_range.c [!defined CLONE_NEWNS]: Do not include
22385 <sys/mount.h>.
22386 * hurd/hurd.h (__hurd_fail): Always declare function, and provide inline
22387 version only if __USE_EXTERN_INLINES is defined.
22388 * hurd/hurd/fd.h (_hurd_fd_error_signal, _hurd_fd_error, __hurd_dfail,
22389 __hurd_sockfail): Likewise.
22390 (_hurd_fd_get): Always declare functions, and provide inline versions
22391 only if __USE_EXTERN_INLINES and _LIBC are defined and IS_IN(libc).
22392 * hurd/hurd/port.h (_hurd_port_init, _hurd_port_locked_get,
22393 _hurd_port_get, _hurd_port_free, _hurd_port_locked_set,
22394 _hurd_port_set): Always declare functions, and provide inline versions
22395 only if __USE_EXTERN_INLINES and _LIBC are defined and
22396 IS_IN(libc).
22397 * hurd/hurd/signal.h (_hurd_self_sigstate, _hurd_critical_section_lock,
22398 _hurd_critical_section_unlock): Likewise.
22399 * hurd/hurd/threadvar.h (__hurd_threadvar_location_from_sp,
22400 * __hurd_threadvar_location): Likewise.
22401 * hurd/hurd/userlink.h (_hurd_userlink_link, _hurd_userlink_unlink,
22402 _hurd_userlink_clear): Likewise.
22403 * mach/lock-intern.h (__spin_lock_init, __spin_lock, __mutex_lock,
22404 __mutex_unlock, __mutex_trylock): Always declare functions, and provide
22405 inline versions only if __USE_EXTERN_INLINES and _LIBC are defined.
22406 * mach/mach/mig_support.h (__mig_strncpy): Likewise.
22407 * sysdeps/generic/machine-lock.h (__spin_unlock, __spin_try_lock,
22408 __spin_lock_locked): Likewise.
22409 * sysdeps/mach/i386/machine-lock.h (__spin_unlock, __spin_try_lock,
22410 __spin_lock_locked): Likewise.
22411 * mach/spin-lock.c (__USE_EXTERN_INLINES): Define to 1.
22412 * hurd/Versions (libc: GLIBC_2.27): Add _hurd_fd_error_signal,
22413 _hurd_fd_error, __hurd_dfail, __hurd_sockfail, _hurd_port_locked_set,
22414 __hurd_threadvar_location_from_sp, __hurd_threadvar_location,
22415 _hurd_userlink_link, _hurd_userlink_unlink, _hurd_userlink_clear.
22416 * sysdeps/mach/hurd/bits/posix_opt.h (_POSIX_CHOWN_RESTRICTED,
22417 _POSIX_NO_TRUNC): Define to 0.
22418 * sysdeps/pthread/allocalim.h [!defined PTHREAD_STACK_MIN]: Do not
22419 check size against PTHREAD_STACK_MIN.
22420 * hurd/hurd/signal.h [__USE_EXTERN_INLINES][_LIBC][IS_IN(libc) ||
22421 IS_IN(libpthread)]: Include <sigsetops.h>.
22422 * mach/Makefile (user-interfaces): Add mach/gnumach.
22423 * sysdeps/mach/configure.ac (mach_interface_list): Add gnumach.
22424 * sysdeps/mach/configure (mach_interface_list): Regenerate.
22425 * sysdeps/mach/hurd/bits/posix_opt.h (_POSIX_VDISABLE): Set to '\0'
22426 instead of invalid -1.
22427 * sysdeps/mach/hurd/net/ethernet.h: Include <stdint.h>.
22428 * sysdeps/mach/hurd/net/if_arp.h: Include <stdint.h>.
22429 * sysdeps/mach/hurd/net/if_ppp.h: Do not include non-existing
22430 <net/ppp_defs.h>.
22431
22432 2018-01-27 Thomas Schwinge <tschwinge@gnu.org>
22433
22434 * hurd/fcntl-internal.h: New file.
22435
22436 2018-01-27 James Clarke <jrtc27@jrtc27.com>
22437
22438 * sysdeps/hppa/fpu/libm-test-ulps: Update.
22439
22440 * sysdeps/alpha/fpu/libm-test-ulps: Update.
22441
22442 2018-01-26 Andreas Schwab <schwab@linux-m68k.org>
22443
22444 [BZ #22701]
22445 * nis/Makefile (libnsl-inhibit-o) [$(build-obsolete-nsl) != yes]:
22446 Build only shared objects.
22447
22448 2018-01-26 Carlos O'Donell <carlos@redhat.com>
22449
22450 * README: Update for hppa.
22451
22452 2018-01-26 Patrick McGehearty <patrick.mcgehearty@oracle.com>
22453
22454 * sysdeps/sparc/fpu/libm-test-ulps: Update
22455 cpow, ctan, ctanh, j0, j1, y0, yn ulps.
22456
22457 2018-01-26 Carlos O'Donell <carlos@redhat.com>
22458
22459 Revert:
22460
22461 2017-12-19 H.J. Lu <hongjiu.lu@intel.com>
22462
22463 [BZ #22563]
22464 * sysdeps/i386/nptl/tcb-offsets.sym (FEATURE_1_OFFSET): New.
22465 * sysdeps/i386/nptl/tls.h (tcbhead_t): Add feature_1.
22466 * sysdeps/x86_64/nptl/tcb-offsets.sym (FEATURE_1_OFFSET): New.
22467 * sysdeps/x86_64/nptl/tls.h (tcbhead_t): Rename __glibc_unused1
22468 to feature_1.
22469
22470 2017-12-19 H.J. Lu <hongjiu.lu@intel.com>
22471
22472 [BZ #22563]
22473 * bits/types/__cancel_jmp_buf_tag.h: New file.
22474 * sysdeps/unix/sysv/linux/x86/bits/types/__cancel_jmp_buf_tag.h
22475 * sysdeps/unix/sysv/linux/x86/pthreaddef.h: Likewise.
22476 * sysdeps/unix/sysv/linux/x86/nptl/pthreadP.h: Likewise.
22477 * nptl/Makefile (headers): Add
22478 bits/types/__cancel_jmp_buf_tag.h.
22479 * nptl/descr.h [NEED_SAVED_MASK_IN_CANCEL_JMP_BUF]
22480 (pthread_unwind_buf): Add saved_mask to cancel_jmp_buf.
22481 * sysdeps/nptl/pthread.h: Include
22482 <bits/types/__cancel_jmp_buf_tag.h>.
22483 (__pthread_unwind_buf_t): Use struct __cancel_jmp_buf_tag with
22484 __cancel_jmp_buf.
22485 * sysdeps/unix/sysv/linux/hppa/pthread.h: Likewise.
22486
22487 2018-01-25 Rafał Lużyński <digitalfreak@lingonborough.com>
22488
22489 [BZ #10871]
22490 * localedata/locales/uk_UA (mon): Renamed to...
22491 (alt_mon): This.
22492 (alt_digits): "0" removed and then renamed to...
22493 (mon): This.
22494 (date_fmt): Definition changed not to use the alternative
22495 digits hack.
22496
22497 2018-01-25 Palmer Dabbelt <palmer@sifive.com>
22498
22499 * elf/cache.c (print_entry): Add FLAG_RISCV_FLOAT_ABI_SOFT and
22500 FLAG_RISCV_FLOAT_ABI_DOUBLE.
22501 * elf/elf.h (EF_RISCV_RVC): New define.
22502 (EF_RISCV_FLOAT_ABI): Likewise.
22503 (EF_RISCV_FLOAT_ABI_SOFT): Likewise.
22504 (EF_RISCV_FLOAT_ABI_SINGLE): Likewise.
22505 (EF_RISCV_FLOAT_ABI_DOUBLE): Likewise.
22506 (EF_RISCV_FLOAT_ABI_QUAD): Likewise.
22507 * sysdeps/generic/ldconfig.h (FLAG_RISCV_FLOAT_ABI_SOFT): New
22508 define.
22509 (FLAG_RISCV_FLOAT_ABI_DOUBLE): Likewise.
22510
22511 2018-01-25 Andreas Schwab <schwab@suse.de>
22512
22513 * aclocal.m4 (LIBC_SLIBDIR_RTLDDIR): Consistently put arguments in
22514 single quotes.
22515 * sysdeps/gnu/configure: Regenerate.
22516 * sysdeps/unix/sysv/linux/aarch64/configure: Regenerate.
22517 * sysdeps/unix/sysv/linux/mips/configure: Regenerate.
22518 * sysdeps/unix/sysv/linux/powerpc/powerpc64/configure: Regenerate.
22519 * sysdeps/unix/sysv/linux/s390/s390-64/configure: Regenerate.
22520 * sysdeps/unix/sysv/linux/sparc/sparc64/configure: Regenerate.
22521 * sysdeps/unix/sysv/linux/tile/configure: Regenerate.
22522 * sysdeps/unix/sysv/linux/x86_64/64/configure: Regenerate.
22523 * sysdeps/unix/sysv/linux/x86_64/x32/configure: Regenerate.
22524
22525 2018-01-25 Samuel Thibault <samuel.thibault@ens-lyon.org>
22526
22527 * scripts/build-many-glibcs.py (checkout_vcs): Add hurd repository
22528 URL, and run autoconf, make it the default for now.
22529
22530 2018-01-24 Joseph Myers <joseph@codesourcery.com>
22531
22532 * scripts/build-many-glibcs.py (Context.add_all_configs): Add
22533 soft-float ColdFire configuration.
22534
22535 * sysdeps/unix/sysv/linux/m68k/localplt.data: Move to ....
22536 * sysdeps/unix/sysv/linux/m68k/m680x0/localplt.data: ... here.
22537 * sysdeps/unix/sysv/linux/m68k/coldfire/localplt.data: New file.
22538
22539 * sysdeps/m68k/coldfire/nofpu/math_private.h: New file. Based on
22540 MicroBlaze file.
22541
22542 * sysdeps/unix/sysv/linux/m68k/coldfire/jmp_buf-macros.h: Move to
22543 ....
22544 * sysdeps/unix/sysv/linux/m68k/coldfire/fpu/jmp_buf-macros.h:
22545 ... here.
22546 * sysdeps/unix/sysv/linux/m68k/coldfire/nofpu/jmp_buf-macros.h:
22547 New file.
22548
22549 * sysdeps/unix/sysv/linux/m68k/jmp_buf-macros.h: Move to ....
22550 * sysdeps/unix/sysv/linux/m68k/m680x0/jmp_buf-macros.h: ... here.
22551 * sysdeps/unix/sysv/linux/m68k/coldfire/jmp_buf-macros.h: New
22552 file.
22553
22554 2018-01-24 Szabolcs Nagy <szabolcs.nagy@arm.com>
22555
22556 [BZ #22742]
22557 * sysdeps/unix/sysv/linux/aarch64/sys/ucontext.h (__glibc_reserved1):
22558 Rename to __reserved and add comment.
22559 * sysdeps/unix/sysv/linux/aarch64/ucontext_i.sym (__glibc_reserved1):
22560 Rename to __reserved.
22561
22562 2018-01-24 Joseph Myers <joseph@codesourcery.com>
22563
22564 * scripts/build-many-glibcs.py (Context.add_all_configs): Add
22565 i686-gnu configurations.
22566 (Context.run_builds): Include mig, gnumach and hurd in components
22567 considered.
22568 (Context.checkout): Add mig, gnumach and hurd to components.
22569 (Context.checkout_tar): Add URL mappings for mig, gnumach and
22570 hurd.
22571 (Context.bot_cycle): Check for changes to mig, gnumach and hurd.
22572 (Config.build): Install gnumach headers, build mig and install
22573 hurd headers for 'gnu' OS.
22574 (Config.install_gnumach_headers): New function.
22575 (Config.install_hurd_headers): Likewise.
22576 (Glibc.build_glibc): Do not use /usr for 'gnu' OS. Specifiy MIG
22577 when building for 'gnu' OS.
22578
22579 2018-01-23 Tobias Klauser <tklauser@distanz.ch>
22580
22581 * manual/tunables.texi (Hardware Capability Tunables): Fix
22582 spelling.
22583
22584 2018-01-22 Rical Jasan <ricaljasan@pacific.net>
22585
22586 * manual/locale.texi (ALTMON_1, ALTMON_2, ALTMON_3, ALTMON_4)
22587 (ALTMON_5, ALTMON_6, ALTMON_7, ALTMON_8, ALTMON_9, ALTMON_10)
22588 (ALTMON_11, ALTMON_12): Improve documentation.
22589 * manual/time.texi (strftime): Likewise.
22590
22591 2018-01-22 Rafał Lużyński <digitalfreak@lingonborough.com>
22592
22593 [BZ #10871]
22594 * localedata/locales/pl_PL: Alternative month names added,
22595 primary month names are genitive now.
22596 * time/tst-strptime.c (day_tests): Actually use a genitive case
22597 of a month name in Polish language.
22598
22599 2018-01-22 Rafał Lużyński <digitalfreak@lingonborough.com>
22600
22601 [BZ #10871]
22602 * manual/locale.texi: Document ALTMON_1..12 constants for
22603 nl_langinfo. Specify when to use ALTMON instead of MON.
22604 * manual/time.texi (strftime, strptime): Document GNU extension
22605 permitting O modifier with %B and %b. Specify when to use
22606 %OB instead of %B.
22607
22608 2018-01-22 Rafał Lużyński <digitalfreak@lingonborough.com>
22609
22610 [BZ #10871]
22611 * locale/C-time.c (_nl_C_LC_TIME): Add abbreviated alternative month
22612 names, define them as the same as abbreviated month names explicitly.
22613 * locale/categories.def (LC_TIME): Add ab_alt_mon and wide-ab_alt_mon.
22614 * locale/langinfo.h: (_NL_ABALTMON_1, _NL_ABALTMON_2, _NL_ABALTMON_3,
22615 _NL_ABALTMON_4, _NL_ABALTMON_5, _NL_ABALTMON_6, _NL_ABALTMON_7,
22616 _NL_ABALTMON_8, _NL_ABALTMON_9, _NL_ABALTMON_10, _NL_ABALTMON_11,
22617 _NL_ABALTMON_12, _NL_WABALTMON_1, _NL_WABALTMON_2, _NL_WABALTMON_3,
22618 _NL_WABALTMON_4, _NL_WABALTMON_5, _NL_WABALTMON_6, _NL_WABALTMON_7,
22619 _NL_WABALTMON_8, _NL_WABALTMON_9, _NL_WABALTMON_10, _NL_WABALTMON_11,
22620 _NL_WABALTMON_12): New enum constants.
22621 * locale/programs/ld-time.c (struct locale_time_t): Add ab_alt_mon,
22622 wab_alt_mon, and ab_alt_mon_defined members.
22623 (time_output): Output ab_alt_mon and wab_alt_mon members.
22624 (time_read): Read them, initialize them as copies of abmon and wabmon
22625 respectively if they are missing, initialize ab_alt_mon_defined.
22626 * locale/programs/locfile-kw.gperf (ab_alt_mon): Define.
22627 * locale/programs/locfile-kw.h: Regenerate.
22628 * locale/programs/locfile-token.h (tok_ab_alt_mon): New enum constant.
22629 * time/Makefile [$(run-built-tests) = yes] (LOCALES): Add es_ES.UTF-8
22630 and ru_RU.UTF-8.
22631 * time/strftime_l.c (a_altmonth, aam_len): New macros.
22632 [!COMPILE_WIDE] (ABALTMON_1): New macro.
22633 (__strftime_internal): Handle %Ob and %Oh formats.
22634 * time/strptime_l.c [_LIBC] (ab_alt_month_name): New macro.
22635 (__strptime_internal): Handle %Ob and %Oh formats.
22636 * time/tst-strptime.c (day_tests): Add more tests to parse different
22637 forms of month names including the new %Ob format specifier.
22638
22639 2018-01-22 Rafał Lużyński <digitalfreak@lingonborough.com>
22640
22641 [BZ #10871]
22642 * locale/C-time.c (_nl_C_LC_TIME): Add alternative month names,
22643 define them as the same as primary full month names explicitly.
22644 * locale/categories.def (LC_TIME): Add alt_mon and wide-alt_mon.
22645 * locale/langinfo.h (__ALTMON_1, __ALTMON_2, __ALTMON_3, __ALTMON_4,
22646 __ALTMON_5, __ALTMON_6, __ALTMON_7, __ALTMON_8, __ALTMON_9, __ALTMON_10,
22647 __ALTMON_11, __ALTMON_12, _NL_WALTMON_1, _NL_WALTMON_2, _NL_WALTMON_3,
22648 _NL_WALTMON_4, _NL_WALTMON_5, _NL_WALTMON_6, _NL_WALTMON_7,
22649 _NL_WALTMON_8, _NL_WALTMON_9, _NL_WALTMON_10, _NL_WALTMON_11,
22650 _NL_WALTMON_12): New enum constants.
22651 [__USE_GNU] (ALTMON_1, ALTMON_2, ALTMON_3, ALTMON_4, ALTMON_5, ALTMON_6,
22652 ALTMON_7, ALTMON_8, ALTMON_9, ALTMON_10, ALTMON_11, ALTMON_12): New
22653 macros.
22654 * locale/programs/ld-time.c (struct locale_time_t): Add alt_mon,
22655 walt_mon, and alt_mon_defined members.
22656 (time_output): Output alt_mon and walt_mon members.
22657 (time_read): Read them, initialize them as copies of mon and wmon
22658 respectively if they are missing, initialize alt_mon_defined.
22659 * locale/programs/locfile-kw.gperf (alt_mon): Define.
22660 * locale/programs/locfile-kw.h: Regenerate.
22661 * locale/programs/locfile-token.h (tok_alt_mon): New enum constant.
22662 * localedata/tst-langinfo.c (map): Add tests for the new constants
22663 ALTMON_1 .. ALTMON_12.
22664 * time/Makefile [$(run-built-tests) = yes] (LOCALES): Add fr_FR.UTF-8
22665 and pl_PL.UTF-8.
22666 * time/strftime_l.c (f_altmonth): New macro.
22667 (__strftime_internal): Handle %OB format.
22668 * time/strptime_l.c [_LIBC] (alt_month_name): New macro.
22669 (__strptime_internal): Handle %OB format.
22670 * time/tst-strptime.c (day_tests): Add tests to parse different forms
22671 of month names including the new %OB format specifier.
22672
22673 2018-01-19 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
22674
22675 [BZ #22685]
22676 * sysdeps/powerpc/powerpc32/sysdep.h (ABORT_TRANSACTION_IMPL): Renamed
22677 from ABORT_TRANSACTION.
22678 (ABORT_TRANSACTION): Redirect to ABORT_TRANSACTION_IMPL.
22679 * sysdeps/powerpc/powerpc64/sysdep.h (ABORT_TRANSACTION,
22680 ABORT_TRANSACTION_IMPL): Likewise.
22681 * sysdeps/unix/sysv/linux/powerpc/not-errno.h: New file. Reuse
22682 Linux code, but remove the code that aborts transactions.
22683
22684 2018-01-19 Samuel Thibault <samuel.thibault@ens-lyon.org>
22685
22686 * sysdeps/generic/netinet/if_ether.h: Include <stdint.h>.
22687
22688 2018-01-19 Rafał Lużyński <digitalfreak@lingonborough.com>
22689
22690 * localedata/locales/gu_IN (LC_IDENTIFICATION): Fix an obvious typo
22691 in date: "2004-14-09" should be "2004-09-14".
22692 * localedata/locales/lo_LA: Fix an obvious typo in date in the header:
22693 "2003-15-09" should be "2003-09-15".
22694
22695 2018-01-18 Arjun Shankar <arjun@redhat.com>
22696
22697 [BZ #22343]
22698 [BZ #22774]
22699 CVE-2018-6485
22700 CVE-2018-6551
22701 * malloc/malloc.c (checked_request2size): call REQUEST_OUT_OF_RANGE
22702 after padding.
22703 (_int_memalign): check for integer overflow before calling
22704 _int_malloc.
22705 * malloc/tst-malloc-too-large.c: New test.
22706 * malloc/Makefile: Add tst-malloc-too-large.
22707
22708 2018-01-18 Rafał Lużyński <digitalfreak@lingonborough.com>
22709
22710 * localedata/locales/bho_NP (LC_IDENTIFICATION): Fix an obvious typo
22711 in date: "2017-24-07" should be "2017-07-24".
22712 * localedata/locales/mai_IN: Likewise.
22713 * localedata/locales/mai_NP: Likewise.
22714
22715 2018-01-17 Dmitry V. Levin <ldv@altlinux.org>
22716
22717 * po/ru.po: Update translations.
22718
22719 2018-01-17 Joseph Myers <joseph@codesourcery.com>
22720
22721 [BZ #22719]
22722 * sysdeps/hppa/backtrace.c: New file.
22723
22724 2018-01-17 H.J. Lu <hongjiu.lu@intel.com>
22725
22726 [BZ #22715]
22727 * sysdeps/x86_64/dl-trampoline.h (_dl_runtime_profile): Properly
22728 align La_x86_64_retval to VEC_SIZE.
22729
22730 2018-01-16 Joseph Myers <joseph@codesourcery.com>
22731
22732 * sysdeps/x86_64/backtrace.c: Include <gnu/lib-names.h>.
22733 (init): Use LIBGCC_S_SO not hardcoded "libgcc_s.so.1".
22734
22735 2018-01-16 Florian Weimer <fweimer@redhat.com>
22736
22737 * nptl/Makefile [$(have-cxx-thread_local)] (tests-unsupported):
22738 Move tst-thread-exit-clobber ...
22739 [$(CXX)] (tests-unsupported): ... to here.
22740
22741 2018-01-16 Szabolcs Nagy <szabolcs.nagy@arm.com>
22742
22743 * sysdeps/unix/sysv/linux/aarch64/bits/hwcap.h (HWCAP_SHA3): Define.
22744 (HWCAP_SM3, HWCAP_SM4, HWCAP_ASIMDDP, HWCAP_SHA512, HWCAP_SVE): Define.
22745 * sysdeps/unix/sysv/linux/aarch64/dl-procinfo.c
22746 (_dl_aarch64_cap_flags): Update.
22747 (_DL_HWCAP_COUNT): Update.
22748
22749 2018-01-16 Szabolcs Nagy <szabolcs.nagy@arm.com>
22750
22751 * sysdeps/unix/sysv/linux/aarch64/dl-procinfo.h
22752 (_DL_HWCAP_LAST): Remove.
22753 (_DL_HWCAP_COUNT): Move to ...
22754 * sysdeps/unix/sysv/linux/aarch64/dl-procinfo.c
22755 (_DL_HWCAP_COUNT): ... here.
22756
22757 2018-01-16 Florian Weimer <fweimer@redhat.com>
22758
22759 * nptl/Makefile (CFLAGS-tst-minstack-throw.o): Compile in C++11
22760 mode with GNU extensions.
22761
22762 2018-01-15 Alan Hayward <alan.hayward@arm.com>
22763
22764 * elf/elf.h (NT_ARM_SVE): Define.
22765
22766 2018-01-15 Florian Weimer <fweimer@redhat.com>
22767
22768 [BZ #22636]
22769 * nptl/tst-minstack-throw.cc: New file.
22770 * nptl/Makefile (tests): Add tst-minstack-throw.
22771 (LDLIBS-tst-minstack-throw): Link with libstdc++.
22772 [!CXX] (tests-unsupported): Add tst-minstack-throw.
22773
22774 2018-01-15 Joseph Myers <joseph@codesourcery.com>
22775
22776 * scripts/build-many-glibcs.py (Context.checkout): Default
22777 binutils version to 2.30 branch, MPFR version to 4.0.0 and MPC
22778 version to 1.1.0.
22779
22780 2018-01-13 Carlos O'Donell <carlos@redhat.com>
22781
22782 [BZ #22707]
22783 * elf/elf.h (DF_1_STUB): Define.
22784 (DF_1_PIE): Define.
22785
22786 2018-01-12 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
22787
22788 [BZ #22697]
22789 * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S (__llround):
22790 Do not add 0.5 to integer or out-of-range arguments.
22791
22792 2018-01-12 Dmitry V. Levin <ldv@altlinux.org>
22793
22794 * po/bg.po: Update translations.
22795 * po/cs.po: Likewise.
22796 * po/de.po: Likewise.
22797 * po/ko.po: Likewise.
22798 * po/pl.po: Likewise.
22799 * po/sv.po: Likewise.
22800 * po/uk.po: Likewise.
22801 * po/vi.po: Likewise.
22802
22803 2018-01-12 Szabolcs Nagy <szabolcs.nagy@arm.com>
22804
22805 * aarch64/start.S (_start): Use __wrap_main.
22806 (__wrap_main): New local symbol.
22807
22808 2018-01-12 Dmitry V. Levin <ldv@altlinux.org>
22809
22810 [BZ #22679]
22811 CVE-2018-1000001
22812 * sysdeps/unix/sysv/linux/getcwd.c (__getcwd): Fall back to
22813 generic_getcwd if the path returned by getcwd syscall is not absolute.
22814 * io/tst-getcwd-abspath.c: New test.
22815 * io/Makefile (tests): Add tst-getcwd-abspath.
22816
22817 2018-01-12 Istvan Kurucsai <pistukem@gmail.com>
22818
22819 * malloc/malloc.c (malloc_consolidate): Add size check.
22820
22821 2018-01-12 Florian Weimer <fweimer@redhat.com>
22822
22823 * support/write_message.c (write_message): Preserve errno.
22824 * support/check.c (print_failure): Likewise.
22825 * support/support_test_verify_impl.c (support_test_verify_impl):
22826 Likewise.
22827 * support/support_test_compare_failure.c
22828 (support_test_compare_failure): Likewise.
22829
22830 2018-01-12 Florian Weimer <fweimer@redhat.com>
22831
22832 [BZ #22701]
22833 * nis/Makefile (install-lib-ldscripts, $(inst_libdir)/libnsl.so):
22834 Prevent installation of libnsl.so.
22835 (libnsl-inhibit-o): Do not build (or install) static libraries.
22836
22837 2018-01-12 Egmont Koblinger <egmont@gmail.com>
22838
22839 [BZ #22657]
22840 * localedata/locales/hu_HU (d_t_fmt): Avoid a leading space
22841 before the day number which may produce a double space.
22842 (date_fmt): Likewise.
22843
22844 2018-01-12 Joseph Myers <joseph@codesourcery.com>
22845
22846 * sysdeps/s390/fpu/feholdexcpt.c (__feholdexcept): Call __fegetenv
22847 instead of fegetenv.
22848
22849 2018-01-11 Joseph Myers <joseph@codesourcery.com>
22850
22851 [BZ #22702]
22852 * sysdeps/generic/math_private.h (libc_feresetround_noex): Update
22853 comment to say exceptions are discarded.
22854 (libc_feholdsetround_noex_ctx): Use __feholdexcept instead of
22855 __fegetenv.
22856 (SET_RESTORE_ROUND_NOEX): Update comment to say non-stop mode must
22857 be enabled.
22858
22859 2018-01-11 Florian Weimer <fweimer@redhat.com>
22860
22861 * sysdeps/gnu/unwind-resume.c (__libgcc_s_init): Update comment
22862 and error message.
22863
22864 2018-01-11 Florian Weimer <fweimer@redhat.com>
22865
22866 [BZ #22636]
22867 * nptl/Makefile (tests): Add tst-minstack-cancel, tst-minstack-exit.
22868 * nptl/tst-minstack-cancel.c, nptl/tst-minstack-exit.c: New files.
22869
22870 2018-01-10 Joseph Myers <joseph@codesourcery.com>
22871
22872 [BZ #22693]
22873 * sysdeps/ieee754/ldbl-128ibm/s_log1pl.c (__log1pl): Handle
22874 negative arguments in test for NaN or infinity argument.
22875
22876 2018-01-10 Dmitry V. Levin <ldv@altlinux.org>
22877
22878 * po/libc.pot: Regenerate.
22879
22880 2018-01-10 Florian Weimer <fweimer@redhat.com>
22881
22882 [BZ #22636]
22883 * sysdeps/nptl/unwind-forcedunwind.c (pthread_cancel_init): Open
22884 libgcc.so with RTLD_NOW, to avoid lazy binding during unwind.
22885
22886 2018-01-10 Samuel Thibault <samuel.thibault@ens-lyon.org>
22887
22888 * hurd/hurd/fd.h: Include <fcntl.h>
22889 (__hurd_at_flags): New function.
22890 * hurd/lookup-at.c (__file_name_lookup_at): Replace flag computation
22891 with call to __hurd_at_flags.
22892 * include/unistd.h (__faccessat, __faccessat_noerrno): Add declaration.
22893 * sysdeps/mach/hurd/access.c (access_common): Move implementation to
22894 __faccessat
22895 (hurd_fail_seterrno, hurd_fail_noerrno): Move to sysdeps/mach/hurd/faccessat.c.
22896 (__access_noerrno): Use __faccessat_common instead of access_common.
22897 (__access): Likewise.
22898 * sysdeps/mach/hurd/euidaccess.c (__euidaccess): Replace implementation
22899 with a call to __faccessat.
22900 * sysdeps/mach/hurd/faccessat.c (faccessat): Rename into...
22901 (__faccessat_common): ... this. Move implementation of __access into it when
22902 AT_FLAGS does not contain AT_EACCESS. Make it call __hurd_at_flags, add
22903 reauthenticate_cwdir_at helper to implement AT mechanism.
22904 (__faccessat_noerrno): New function, just calls __faccessat_common.
22905 (__faccessat): New function, just calls __faccessat_common.
22906 (faccessat): Define weak alias.
22907
22908 2018-01-10 Joseph Myers <joseph@codesourcery.com>
22909
22910 [BZ #22691]
22911 * sysdeps/powerpc/nofpu/Makefile [$(subdir) = math]
22912 (CFLAGS-s_fmaxmagl.c): New variable.
22913 [$(subdir) = math] (CFLAGS-s_fminmagl.c: Likewise.
22914
22915 [BZ #22690]
22916 * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c (__lrintl): Use unsigned
22917 long int for arguments of possibly overflowing addition or
22918 subtraction.
22919 * sysdeps/ieee754/ldbl-128ibm/s_lroundl.c (__lroundl): Likewise.
22920
22921 2018-01-09 Joseph Myers <joseph@codesourcery.com>
22922
22923 [BZ #22688]
22924 * sysdeps/powerpc/nofpu/Makefile [$(subdir) = math]
22925 (CFLAGS-e_remainderl.c): New variable.
22926
22927 [BZ #22687]
22928 * sysdeps/powerpc/nofpu/Makefile (CFLAGS-s_cacosl.c): New
22929 variable.
22930 (CFLAGS-s_cacoshl.c): Likewise.
22931 (CFLAGS-s_casinhl.c): Likewise.
22932 (CFLAGS-s_catanl.c): Likewise.
22933 (CFLAGS-s_catanhl.c): Likewise.
22934 (CFLAGS-s_cexpl.c): Likewise.
22935 (CFLAGS-s_ccoshl.c): Add -fsignaling-nans.
22936 (CFLAGS-s_csinhl.c): Likewise.
22937 (CFLAGS-s_clogl.c): Likewise.
22938 (CFLAGS-s_clog10l.c): Likewise.
22939 (CFLAGS-s_csinl.c): Likewise.
22940 (CFLAGS-s_csqrtl.c): Likewise.
22941
22942 2017-01-09 Emilio Pozuelo Monfort <pochu27@gmail.com>
22943 2017-01-09 Svante Signell <svante.signell@gmail.com>
22944
22945 * hurd/hurdexec.c (_hurd_exec): Deprecate function.
22946 (_hurd_exec_paths): New function.
22947 * hurd/hurd.h (_hurd_exec): Deprecate function.
22948 (_hurd_exec_paths): Declare function.
22949 * hurd/Versions: Export _hurd_exec_paths.
22950 * sysdeps/mach/hurd/execve.c: Include <stdlib.h> and <stdio.h>
22951 (__execve): Use __getcwd to build absolute path, and use
22952 _hurd_exec_paths instead of _hurd_exec.
22953 * sysdeps/mach/hurd/spawni.c: Likewise.
22954 * sysdeps/mach/hurd/fexecve.c: Use _hurd_exec_paths instead of
22955 _hurd_exec.
22956
22957 2018-01-08 Dmitry V. Levin <ldv@altlinux.org>
22958
22959 * sysdeps/unix/sysv/linux/tst-ttyname.c (do_in_chroot_1): Skip the
22960 test instead of failing in case of ENOENT returned by posix_openpt.
22961
22962 2018-01-08 Florian Weimer <fweimer@redhat.com>
22963
22964 resolv: Support binary labels in test framework.
22965 * support/resolv_test.c (struct to_be_freed): Remove.
22966 (struct compressed_name): New.
22967 (allocate_compressed_name, ascii_tolower)
22968 (compare_compressed_name): New functions.
22969 (struct resolv_response_builder): Update type of
22970 compression_offsets for use with tsearch. Rempve to_be_freed.
22971 (response_push_pointer_to_free): Remove function.
22972 (resolv_response_add_name): Rewrite using struct compressed_name
22973 and tsearch instead of hsearch_r.
22974 (response_builder_allocate): Remove initialization of
22975 compression_offsets.
22976 (response_builder_free): Update for removal of to_be_freed. Use
22977 tdestroy instead of hdestroy_r.
22978 * resolv/Makefile (tests): Add tst-resolv-binary.
22979 (tst-resolv-binary): Link with -lresolv -lpthread.
22980
22981 2018-01-08 Florian Weimer <fweimer@redhat.com>
22982
22983 * support/check.h (TEST_COMPARE): Allow sign mismatch at compile
22984 time. Pass positive flag instead of negative flag to
22985 support_test_compare_failure.
22986 (support_test_compare_failure): Change negative parameter to
22987 positive.
22988 * support/support_test_compare_failure.c (report)
22989 (support_test_compare_failure): Likewise.
22990 * support/tst-test_compare.c (return_ssize_t, return_int): New.
22991 (do_test): Check int/size_t, ssize_t/size_t comparisons.
22992
22993 2018-01-08 Szabolcs Nagy <szabolcs.nagy@arm.com>
22994
22995 [BZ #22637]
22996 * nptl/descr.h (stackblock, stackblock_size): Update comments.
22997 * nptl/allocatestack.c (allocate_stack): Add guardsize to stacksize.
22998 * nptl/nptl-init.c (__pthread_get_minstack): Remove guardsize from
22999 stacksize.
23000 * nptl/pthread_getattr_np.c (pthread_getattr_np): Likewise.
23001
23002 2018-01-08 H.J. Lu <hongjiu.lu@intel.com>
23003
23004 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
23005 Add s_sincosf-sse2 and s_sincosf-fma.
23006 (CFLAGS-s_sincosf-fma.c): New.
23007 * sysdeps/x86_64/fpu/multiarch/s_sincosf-fma.c: New file.
23008 * sysdeps/x86_64/fpu/multiarch/s_sincosf-sse2.S: Likewise.
23009 * sysdeps/x86_64/fpu/multiarch/s_sincosf.c: Likewise.
23010 * sysdeps/x86_64/fpu/s_sincosf.S: Don't add alias if
23011 __sincosf is defined.
23012
23013 2018-01-08 Florian Weimer <fweimer@redhat.com>
23014
23015 * nptl/tst-thread-exit-clobber.cc: New file.
23016 * nptl/Makefile (CFLAGS-tst-thread-exit-clobber.o): Compile in
23017 C++11 mode.
23018 (LDLIBS-tst-thread-exit-clobber): Link with libstdc++.
23019 (tests): Add tst-thread-exit-clobber.
23020 [!CXX] (tests-unsupported): Add tst-thread-exit-clobber.
23021
23022 2018-01-08 Florian Weimer <fweimer@redhat.com>
23023
23024 * support/check.h (support_static_assert): Define.
23025 (TEST_COMPARE): Use it.
23026
23027 2018-01-07 Aurelien Jarno <aurelien@aurel32.net>
23028
23029 * sysdeps/unix/sysv/linux/getrlimit64 (getrlimit64)
23030 [!__RLIM_T_MATCHES_RLIM64_T]
23031 [!SHLIB_COMPAT (libc, GLIBC_2_1, GLIBC_2_2)]: Define as weak alias of
23032 __getrlimit64. Add libc_hidden_weak.
23033
23034 2018-01-06 Palmer Dabbelt <palmer@sifive.com>
23035
23036 * elf/elf.h (R_RISCV_NONE): New define.
23037 (R_RISCV_32): Likewise.
23038 (R_RISCV_64): Likewise.
23039 (R_RISCV_RELATIVE): Likewise.
23040 (R_RISCV_COPY): Likewise.
23041 (R_RISCV_JUMP_SLOT): Likewise.
23042 (R_RISCV_TLS_DTPMOD32): Likewise.
23043 (R_RISCV_TLS_DTPMOD64): Likewise.
23044 (R_RISCV_TLS_DTPREL32): Likewise.
23045 (R_RISCV_TLS_DTPREL64): Likewise.
23046 (R_RISCV_TLS_TPREL32): Likewise.
23047 (R_RISCV_TLS_TPREL64): Likewise.
23048 * Makerules (make-link-multidir): Make directories before linking into
23049 them.
23050 * sysdeps/unix/sysv/linux/dl-vdso.h (VDSO_NAME_LINUX_4_15): New
23051 define.
23052 (VDSO_HASH_LINUX_4_15): Likewise.
23053 * scripts/build-many-glibcs.py (class Glibc): Strip shared objects
23054 in subdirectories of lib.
23055 * nptl/Makefile (/librt.so): Always depend on
23056 "$(shared-thread-library)".
23057
23058 2018-01-06 Samuel Thibault <samuel.thibault@ens-lyon.org>
23059
23060 * sysdeps/mach/hurd/i386/jmp_buf-macros.h: New file.
23061 * sysdeps/i386/dl-tlsdesc.S (_dl_tlsdesc_dynamic) [NO_RTLD_HIDDEN]: Call
23062 JUMPTARGET (___tls_get_addr) instead of HIDDEN_JUMPTARGET
23063 (___tls_get_addr).
23064 * sysdeps/x86_64/dl-tlsdesc.S (_dl_tlsdesc_dynamic): Likewise.
23065 * sysdeps/i386/fpu/libm-test-ulps: Regenerated for GCC 7 with
23066 "-O2 -march=i686".
23067 * posix/tst-glob_symlinks.c [!PATH_MAX]: Define PATH_MAX macro.
23068 * sysdeps/gnu/glob64.c (__glob): Define macro instead of glob macro.
23069 (__glob64): Define GLIBC_2_27 versioned symbol instead of glob64.
23070 * sysdeps/gnu/glob-lstat-compat.c: New file.
23071 * sysdeps/gnu/glob64-lstat-compat.c: New file.
23072 * sysdeps/posix/pwritev_common.c: Add PROT_READ to __mmap prot.
23073
23074 2018-01-05 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
23075
23076 * sysdeps/powerpc/powerpc64/dl-machine.c (_dl_reloc_overflow):
23077 Reserve 16 chars to reloc_addr before calling _itoa_word.
23078
23079 2018-01-05 Aurelien Jarno <aurelien@aurel32.net>
23080
23081 [BZ #22678]
23082 * sysdeps/unix/sysv/linux/prlimit.c (prlimit): Translate
23083 old_rlimit from RLIM64_INFINITY to RLIM_INFINITY.
23084
23085 * sysdeps/unix/sysv/linux/tst-rlimit-infinity.c: New file.
23086 * sysdeps/unix/sysv/linux/Makefile (tests): Add tst-rlimit-infinity.
23087
23088 * resource/tst-getrlimit.c: Add copyright header.
23089
23090 2018-01-05 Aurelien Jarno <aurelien@aurel32.net>
23091 Adhemerval Zanella <adhemerval.zanella@linaro.org>
23092
23093 * sysdeps/unix/sysv/linux/getrlimit64.c [USE_VERSIONED_RLIMIT]: Do not
23094 define getrlimit and getrlimit64 as weak aliases of __getrlimit64.
23095 Define __GI_getrlimit64 as weak alias of __getrlimit64.
23096 [__RLIM_T_MATCHES_RLIM64_T]: Do not redefine SHLIB_COMPAT, use #elif
23097 instead.
23098 * sysdeps/unix/sysv/linux/setrlimit64.c [USE_VERSIONED_RLIMIT]: Do not
23099 define setrlimit and setrlimit64 as weak aliases of __setrlimit64.
23100 * sysdeps/unix/sysv/linux/alpha/bits/resource.h (RLIM_INFINITY,
23101 RLIM64_INFINITY): Fix values to match the kernel ones.
23102 * sysdeps/unix/sysv/linux/alpha/getrlimit64.c: Define
23103 USE_VERSIONED_RLIMIT. Rename __getrlimit64 into __old_getrlimit64 and
23104 provide it as getrlimit@@GLIBC_2_0 and getrlimit64@@GLIBC_2_1. Add a
23105 __getrlimit64 function and provide it as getrlimit@@GLIBC_2_27 and
23106 getrlimit64@@GLIBC_2_27.
23107 * sysdeps/unix/sysv/linux/alpha/setrlimit64.c: Ditto with setrlimit
23108 and setrlimit64.
23109 * sysdeps/unix/sysv/linux/alpha/libc.abilist (GLIBC_2.27): Add
23110 getrlimit, setrlimit, getrlimit64 and setrlimit64.
23111 * sysdeps/unix/sysv/linux/alpha/Versions (libc): Add getrlimit,
23112 setrlimit, getrlimit64 and setrlimit64.
23113
23114 2018-01-05 Aurelien Jarno <aurelien@aurel32.net>
23115
23116 [BZ #22648]
23117 * sysdeps/unix/sysv/linux/alpha/getrlimit64.c: New file.
23118 * sysdeps/unix/sysv/linux/alpha/setrlimit64.c: Ditto.
23119
23120 2018-01-04 Joseph Myers <joseph@codesourcery.com>
23121
23122 * malloc/tst-malloc-tcache-leak.c (TIMEOUT): Define to 50.
23123 * posix/tst-glob-tilde.c (TIMEOUT): Define to 200.
23124 * resolv/tst-resolv-res_ninit.c (TIMEOUT): Define to 50.
23125
23126 2018-01-03 Adhemerval Zanella <adhemerval.zanella@linaro.org>
23127
23128 [BZ #15479]
23129 [BZ #22666]
23130 * sysdeps/alpha/fpu/s_trunc.c: Remove file.
23131 * sysdeps/alpha/fpu/s_truncf.c: Likewise.
23132
23133 [BZ #15479]
23134 [BZ #22665]
23135 * sysdeps/alpha/fpu/s_ceil.c: Remove file.
23136 * sysdeps/alpha/fpu/s_ceilf.c: Likewise.
23137 * sysdeps/alpha/fpu/s_floor.c: Likewise.
23138 * sysdeps/alpha/fpu/s_floorf.c: Likewise.
23139
23140 2018-01-04 Florian Weimer <fweimer@redhat.com>
23141
23142 [BZ #22667]
23143 * sysdeps/unix/sysv/linux/i386/makecontext.S (__makecontext):
23144 Align the stack before calling exit.
23145 * stdlib/tst-makecontext-align.c: New file.
23146 * stdlib/Makefile (tests): Add tst-makecontext-align.
23147
23148 2018-01-04 Florian Weimer <fweimer@redhat.com>
23149
23150 Add support for calling dlvsym from libc.so.
23151 * include/dlfcn.h (__libc_dlvsym): Declare.
23152 * elf/Makefile (tests-static-internal): Add
23153 tst-libc_dlvsym-static.
23154 (tests-internal): Add tst-libc_dlvsym.
23155 (modules-names): Add tst-libc_dlvsym-dso.
23156 (tst-libc_dlvsym, tst-libc_dlvsym-static): Link with libdl.
23157 (tst-libc_dlvsym-dso.so): Link with libdl, libsupport.
23158 (tst-libc_dlvsym.out, tst-libc_dlvsym-static.out): The shared
23159 object tst-libc_dlvsym-dso.so needs to be built before running
23160 these tests.
23161 (tst-libc_dlvsym-static-ENV): Set LD_LIBRARY_PATH.
23162 * elf/Versions: Export __libc_dlvsym.
23163 * elf/dl-libc.c (struct do_dlvsym_args): New.
23164 (do_dlvsym, __libc_dlvsym): New functions.
23165 (struct dl_open_hook, _dl_open_hook): Add dlvsym member.
23166 (_dl_open_hook2): New variable.
23167 (__libc_register_dl_open_hook): Set it.
23168 * elf/tst-libc_dlvsym-dso.c: New file.
23169 * elf/tst-libc_dlvsym-static.c: Likewise.
23170 * elf/tst-libc_dlvsym.c: Likewise.
23171 * elf/tst-libc_dlvsym.h: Likewise.
23172
23173 2018-01-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
23174
23175 * support/support_enter_mount_namespace.c [!CLONE_NEWNS]: Do not
23176 include <sys/mount.h>.
23177
23178 2018-01-02 Wilco Dijkstra <wdijkstr@arm.com>
23179
23180 * math/math.h (math_errhandling): Set to 0 with __FAST_MATH__.
23181 Add __NO_MATH_ERRNO__ check.
23182
23183 2018-01-02 Joseph Myers <joseph@codesourcery.com>
23184
23185 * sysdeps/mips/mips32/libm-test-ulps: Update.
23186 * sysdeps/mips/mips64/libm-test-ulps: Likewise.
23187
23188 2018-01-02 Florian Weimer <fweimer@redhat.com>
23189
23190 * misc/tst-pselect.c: Add copyright header.
23191
23192 2018-01-02 Aurelien Jarno <aurelien@aurel32.net>
23193
23194 * sysdeps/unix/sysv/linux/alpha/getrlimit64.c: Fix a typo in the
23195 comment.
23196 * sysdeps/unix/sysv/linux/alpha/setrlimit64.c: Fix a typo in the
23197 comment.
23198 (settrlimit): Rename into setrlimit.
23199 (__sttrlimit): Rename into __setrlimit.
23200
23201 * sysdeps/unix/sysv/linux/alpha/getrlimit64.c (__old_getrlimit64):
23202 Drop __RLIM_T_MATCHES_RLIM64_T conditional as __old_getrlimit64 is
23203 never defined in that case.
23204
23205 2018-01-02 Joseph Myers <joseph@codesourcery.com>
23206
23207 * sysdeps/powerpc/nofpu/libm-test-ulps: Update.
23208
23209 * sysdeps/arm/libm-test-ulps: Update.
23210
23211 * math/Makefile (run-regen-ulps): Add $(objpfx) to test name here.
23212 (regen-ulps): Use $(libm-tests) not $^ in shell loop.
23213
23214 2018-01-02 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
23215
23216 * NEWS: Add cosf and sincosf to list of optimized functions.
23217
23218 2018-01-02 Aurelien Jarno <aurelien@aurel32.net>
23219
23220 [BZ #22660]
23221 * sysdeps/alpha/fpu/s_fmax.S: Remove file.
23222 * sysdeps/alpha/fpu/s_fmaxf.S: Likewise.
23223 * sysdeps/alpha/fpu/s_fmin.S: Likewise.
23224 * sysdeps/alpha/fpu/s_fminf.S: Likewise.
23225
23226 2018-01-01 Dmitry V. Levin <ldv@altlinux.org>
23227
23228 [BZ #22433]
23229 * sysdeps/unix/sysv/linux/arm/sys/ptrace.h: New file.
23230
23231 * elf/dl-load.c (decompose_rpath): Check for rpath emptiness before
23232 making a copy of it.
23233
23234 2018-01-01 Joseph Myers <joseph@codesourcery.com>
23235
23236 * manual/texinfo.tex: Update to version 2017-12-26.21 with
23237 trailing whitespace removed.
23238 * scripts/config.guess: Update to version 2018-01-01.
23239 * scripts/config.sub: Update to version 2018-01-01.
23240 * scripts/move-if-change: Update from gnulib.
23241
23242 * NEWS: Update copyright dates.
23243 * catgets/gencat.c (print_version): Likewise.
23244 * csu/version.c (banner): Likewise.
23245 * debug/catchsegv.sh: Likewise.
23246 * debug/pcprofiledump.c (print_version): Likewise.
23247 * debug/xtrace.sh (do_version): Likewise.
23248 * elf/ldconfig.c (print_version): Likewise.
23249 * elf/ldd.bash.in: Likewise.
23250 * elf/pldd.c (print_version): Likewise.
23251 * elf/sotruss.sh: Likewise.
23252 * elf/sprof.c (print_version): Likewise.
23253 * iconv/iconv_prog.c (print_version): Likewise.
23254 * iconv/iconvconfig.c (print_version): Likewise.
23255 * locale/programs/locale.c (print_version): Likewise.
23256 * locale/programs/localedef.c (print_version): Likewise.
23257 * login/programs/pt_chown.c (print_version): Likewise.
23258 * malloc/memusage.sh (do_version): Likewise.
23259 * malloc/memusagestat.c (print_version): Likewise.
23260 * malloc/mtrace.pl: Likewise.
23261 * manual/libc.texinfo: Likewise.
23262 * nptl/version.c (banner): Likewise.
23263 * nscd/nscd.c (print_version): Likewise.
23264 * nss/getent.c (print_version): Likewise.
23265 * nss/makedb.c (print_version): Likewise.
23266 * posix/getconf.c (main): Likewise.
23267 * scripts/test-installation.pl: Likewise.
23268 * sysdeps/unix/sysv/linux/lddlibc4.c (main): Likewise.
23269
23270 * All files with FSF copyright notices: Update copyright dates
23271 using scripts/update-copyrights.
23272 * locale/programs/charmap-kw.h: Regenerated.
23273 * locale/programs/locfile-kw.h: Likewise.
23274
23275 2017-12-31 Zack Weinberg <zackw@panix.com>
23276
23277 * libio/bits/libio-ldbl.h: Correct check for improper
23278 inclusion. Add own multiple include guard.
23279
23280 2017-12-30 Aurelien Jarno <aurelien@aurel32.net>
23281 Dmitry V. Levin <ldv@altlinux.org>
23282
23283 [BZ #22625]
23284 CVE-2017-16997
23285 * elf/dl-load.c (fillin_rpath): Check for empty tokens before dynamic
23286 string token expansion. Check for NULL pointer or empty string possibly
23287 returned by expand_dynamic_string_token.
23288 (decompose_rpath): Check for empty path after dynamic string
23289 token expansion.
23290
23291 2017-12-29 Dmitry V. Levin <ldv@altlinux.org>
23292
23293 [BZ #22433]
23294 * sysdeps/unix/sysv/linux/x86/sys/ptrace.h: New file.
23295
23296 * sysdeps/unix/sysv/linux/sys/ptrace.h (__ptrace_request): Add comments
23297 about PTRACE_PEEKSIGINFO, PTRACE_GETSIGMASK, PTRACE_SETSIGMASK, and
23298 PTRACE_SECCOMP_GET_FILTER. Update comments about PTRACE_SINGLESTEP
23299 and PTRACE_SYSCALL.
23300 * sysdeps/unix/sysv/linux/aarch64/sys/ptrace.h: Likewise.
23301 * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Likewise.
23302 * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
23303 * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
23304 * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
23305 * sysdeps/unix/sysv/linux/tile/sys/ptrace.h: Likewise.
23306
23307 * sysdeps/unix/sysv/linux/sys/ptrace.h: Include <bits/ptrace-shared.h>.
23308 (__ptrace_setoptions, __ptrace_eventcodes, __ptrace_peeksiginfo_args,
23309 __ptrace_peeksiginfo_flags, ptrace): Move to ...
23310 * sysdeps/unix/sysv/linux/bits/ptrace-shared.h: ... new file.
23311 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
23312 bits/ptrace-shared.h.
23313 * sysdeps/unix/sysv/linux/aarch64/sys/ptrace.h: Include
23314 <bits/ptrace-shared.h>.
23315 (__ptrace_setoptions, __ptrace_eventcodes, __ptrace_peeksiginfo_args,
23316 __ptrace_peeksiginfo_flags, ptrace): Remove.
23317 * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Likewise.
23318 * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
23319 * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
23320 * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
23321 * sysdeps/unix/sysv/linux/tile/sys/ptrace.h: Likewise.
23322
23323 2017-12-29 Aurelien Jarno <aurelien@aurel32.net>
23324
23325 [BZ #17804]
23326 * dirent/scandir-tail.c (SCANDIR_TAIL): Move __set_errno (0) at the
23327 end of the loop. Improve comments.
23328
23329 2017-12-29 Zack Weinberg <zackw@panix.com>
23330
23331 [BZ #22615]
23332 * manual/errno.texi (Checking for Errors): Explicitly say that errno
23333 might be set on success.
23334
23335 2017-12-29 Aurelien Jarno <aurelien@aurel32.net>
23336
23337 [BZ #22611]
23338 * malloc/tst-realloc.c (do_test): Remove the test checking that errno
23339 is unchanged on success.
23340
23341 2017-12-27 Dmitry V. Levin <ldv@altlinux.org>
23342
23343 * elf/dl-dst.h (DL_DST_COUNT): Remove is_path argument, all callers
23344 updated.
23345 * elf/dl-load.c (is_dst, _dl_dst_count, _dl_dst_substitute,
23346 expand_dynamic_string_token): Likewise.
23347 * sysdeps/generic/ldsodefs.h (_dl_dst_count, _dl_dst_substitute): Remove
23348 is_path argument.
23349
23350 * elf/dl-load.c (is_dst): Remove checks that is_path is set and name
23351 contains ':'.
23352
23353 * elf/dl-load.c (_dl_dst_substitute): Remove checks that is_path
23354 is set and name contains ':', and all code depending on these checks.
23355
23356 2017-12-24 Zack Weinberg <zackw@panix.com>
23357
23358 * libio/libio.h, libio/_G_config.h: New stub headers which issue a
23359 deprecation warning and then include <bits/libio.h>, <bits/_G_config.h>
23360 respectively.
23361 * libio/libio.h: Rename the original version of this file to
23362 libio/bits/libio.h. Error out if not included by stdio.h or the
23363 stub libio.h.
23364 * include/libio.h: Move to include/bits. Forward to libio/bits/libio.h.
23365 * sysdeps/generic/_G_config.h: Move to top-level bits/. Error out
23366 if not included by bits/libio.h or the stub _G_config.h.
23367 * sysdeps/unix/sysv/linux/_G_config.h: Move to
23368 sysdeps/unix/sysv/linux/bits. Error out if not included by
23369 bits/libio.h or the stub _G_config.h.
23370 * libio/stdio.h: Include bits/libio.h, not libio.h.
23371 * libio/Makefile: Install bits/libio.h and bits/_G_config.h as
23372 well as libio.h and _G_config.h.
23373
23374 * csu/init.c, libio/fmemopen.c, libio/iolibio.h, libio/oldfmemopen.c
23375 * libio/strfile.h, stdio-common/vfscanf.c
23376 * sysdeps/pthread/flockfile.c, sysdeps/pthread/funlockfile.c
23377 Include stdio.h, not _G_config.h nor libio.h.
23378 * libio/iofgetpos.c: Also rename fgetpos64 out of the way.
23379 * libio/iofsetpos.c: Also rename fsetpos64 out of the way.
23380
23381 * scripts/check-installed-headers.sh: Skip libio.h and _G_config.h.
23382
23383 2017-12-23 Dmitry V. Levin <ldv@altlinux.org>
23384
23385 [BZ #22347]
23386 * stdlib/getrandom.c (getrandom): Fix comment.
23387 * sysdeps/unix/sysv/linux/getrandom.c (getrandom): Likewise.
23388
23389 2017-12-23 Aurelien Jarno <aurelien@aurel32.net>
23390
23391 [BZ #21161]
23392 * manual/arith.texi (strtoul): Fix a typo.
23393
23394 [BZ #22596]
23395 * manual/arith.texi (finite): Fix the description of the return
23396 value.
23397
23398 2017-12-22 Eric Blake <ebb9@byu.net>
23399
23400 Avoid gcc warnings on cygwin
23401 * posix/regex_internal.c (re_string_reconstruct) [!RE_ENABLE_I18N]:
23402 * posix/regexec.c (check_arrival_add_next_nodes) [!RE_ENABLE_I18N]:
23403 Avoid unused variable.
23404
23405 2017-12-22 Florian Weimer <fweimer@redhat.com>
23406
23407 * io/Makefile (routines): Add copy_file_range.
23408 (tests): Add tst-copy_file_range.
23409 (tests-static, tests-internal): Add tst-copy_file_range-compat.
23410 * io/Versions (GLIBC_2.27): Export copy_file_range.
23411 * io/copy_file_range-compat.c: New file.
23412 * io/copy_file_range.c: Likewise.
23413 * io/tst-copy_file_range-compat.c: Likewise.
23414 * io/tst-copy_file_range.c: Likewise.
23415 * manual/llio.texi (Copying File Data): New section.
23416 * posix/unistd.h [__USE_GNU] (copy_file_range): Declare.
23417 * support/Makefile (libsupport-routines): Add support-xfstat,
23418 xftruncate, xlseek.
23419 * support/support-xfstat.c: New file.
23420 * support/xftruncate.c: Likewise.
23421 * support/xlseek.c: Likewise.
23422 * support/xunistd.h (xfstat, xftruncate, xlseek): Declare.
23423 * sysdeps/unix/sysv/linux/**.abilist: Update.
23424 * sysdeps/unix/sysv/linux/copy_file_range.c: New file.
23425
23426 2017-12-21 Szabolcs Nagy <szabolcs.nagy@arm.com>
23427
23428 * scripts/build-many-glibcs.py (Context.add_all_configs): Add
23429 disable-multi-arch variant to aarch64-linux-gnu.
23430
23431 2017-12-20 Joseph Myers <joseph@codesourcery.com>
23432
23433 * manual/texinfo.tex: Update to version 2017-12-18.20 with
23434 trailing whitespace removed.
23435 * scripts/config.guess: Update to version 2017-12-17.
23436 * scripts/config.sub: Update to version 2017-11-23.
23437 * scripts/install-sh: Update to version 2017-09-23.17.
23438 * scripts/move-if-change: Update to version 2017-09-13 06:45.
23439
23440 2017-12-20 Adhemerval Zanella <adhemerval.zanella@linaro.org>
23441
23442 * sysdeps/tile/__longjmp.S (__longjmp): Use lowercase instructions.
23443 * sysdeps/tile/__tls_get_addr.S (__tls_get_addr): Likewise.
23444 * sysdeps/tile/_mcount.S (__mcount): Likewise.
23445 * sysdeps/tile/crti.S (_init, _fini): Likewise.
23446 * sysdeps/tile/crtn.S: Likewise.
23447 * sysdeps/tile/dl-start.S (_start): Likewise.
23448 * sysdeps/tile/dl-trampoline.S: Likewise.
23449 * sysdeps/tile/setjmp.S (__sigsetjmp): Likewise.
23450 * sysdeps/tile/start.S (_start): Likewise.
23451 * sysdeps/unix/sysv/linux/tile/clone.S (_clone): Likewise.
23452 * sysdeps/unix/sysv/linux/tile/getcontext.S (__getcontext): Likewise.
23453 * sysdeps/unix/sysv/linux/tile/ioctl.S (__ioctl): Likewise.
23454 * sysdeps/unix/sysv/linux/tile/setcontext.S (__setcontext): Likewise.
23455 * sysdeps/unix/sysv/linux/tile/swapcontext.S (__swapcontext): Likewise.
23456 * sysdeps/unix/sysv/linux/tile/syscall.S (syscall): Likewise.
23457 * sysdeps/unix/sysv/linux/tile/vfork.S (__vfork): Likewise.
23458
23459 * stdlib/bug-getcontext.c (do_test): Remove tilepro mention in
23460 comment.
23461 * sysdeps/tile/preconfigure: Remove tilegx folder.
23462 * sysdeps/tile/tilegx/Implies: Move definitions to ...
23463 * sysdeps/tile/Implies: ... here.
23464 * sysdeps/tile/tilegx/Makefile: Move rules to ...
23465 * sysdeps/tile/Makefile: ... here.
23466 * sysdeps/tile/tilegx/atomic-machine.h: Move definitions to ...
23467 * sysdeps/tile/atomic-machine.h: ... here. Add include guards.
23468 * sysdeps/tile/tilegx/bits/wordsize.h: Move to ...
23469 * sysdeps/tile/bits/wordsize.h: ... here.
23470 * sysdeps/tile/tilegx/*: Move to ...
23471 * sysdeps/tile/*: ... here.
23472 * sysdeps/tile/tilegx/tilegx32/Implies: Move to ...
23473 * sysdeps/tile/tilegx32/Implies: ... here.
23474 * sysdeps/tile/tilegx/tilegx64/Implies: Move to ...
23475 * sysdeps/tile/tilegx64/Implies: ... here.
23476 * sysdeps/unix/sysv/linux/tile/tilegx/Makefile: Move definitions
23477 to ...
23478 * sysdeps/unix/sysv/linux/tile/Makefile: ... here.
23479 * sysdeps/unix/sysv/linux/tile/tilegx/*: Move to ...
23480 * sysdeps/unix/sysv/linux/tile/*: ... here.
23481 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/*: Move to ...
23482 * sysdeps/unix/sysv/linux/tile/tilegx32/*: ... here.
23483 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/*: Move to ...
23484 * sysdeps/unix/sysv/linux/tile/tilegx64/*: ... here.
23485
23486 * README: Remove tilepro-*-linux-gnu from supported architecture.
23487 * scripts/build-many-glibcs.py: Likewise.
23488 * sysdeps/tile/__tls_get_addr.S (__tls_get_addr): Likewise.
23489 * sysdeps/tile/crti.S (PREINIT_FUNCTION): Likewise.
23490 * sysdeps/tile/dl-machine.h (ELF_MACHINE_NAME,
23491 elf_machine_matches_host, elf_machine_dynamic,
23492 elf_machine_load_address, elf_machine_runtime_setup, reloc_howto
23493 howto, elf_machine_rela): Likewise.
23494 * sysdeps/tile/dl-start.S (_start): Likewise.
23495 * sysdeps/tile/memcmp.c (DBLALIGN, REVBYTES): Likewise.
23496 * sysdeps/tile/memcopy.h (MEMCPY_OK_FOR_FWD_MEMMOVE,
23497 MEMCPY_OK_FOR_FWD_MEMMOVE, op_t): Likewise.
23498 * sysdeps/tile/nptl/pthread_spin_lock.c (TNS, CMPTNS): Likewise.
23499 * sysdeps/tile/nptl/pthread_spin_trylock.c (TNS): Likewise.
23500 * sysdeps/tile/nptl/pthread_spin_unlock.c (pthread_spin_unlock):
23501 Likewise.
23502 * sysdeps/tile/nptl/tls.h (DB_THREAD_SELF): Likewise.
23503 * sysdeps/tile/preconfigure: Likewise.
23504 * sysdeps/tile/stackguard-macros.h (STACK_CHK_GUARD,
23505 POINTER_CHK_GUARD): Likewise.
23506 * sysdeps/tile/stackinfo.h (__stackinfo_sub): Likewise.
23507 * sysdeps/tile/start.S (_start): Likewise.
23508 * sysdeps/tile/tls-macros.h (TLS_GD_OFFSET, TLS_IE_OFFSET, _TLS_LE):
23509 Likewise.
23510 * sysdeps/tile/sysdep.h (REGSIZE): Likewise.
23511 (LD, LD4U, ST, ST4, BNEZ, BEQZ, BEQZT, BGTZ, CMPEQI, CMPEQ, CMOVEQZ,
23512 CMOVNEZ): Remove.
23513 * sysdeps/unix/sysv/linux/tile/bits/environments.h
23514 (__ILP32_OFF32_CFLAGS, __ILP32_OFFBIG_CFLAGS, __ILP32_OFF32_LDFLAGS,
23515 __ILP32_OFFBIG_LDFLAGS, __LP64_OFF64_CFLAGS, __LP64_OFF64_LDFLAGS):
23516 Likewise.
23517 * sysdeps/tile/wordcopy.c (DBLALIGN): Likewise.
23518 * sysdeps/tile/tilepro/Implies: Remove file.
23519 * sysdeps/tile/tilepro/atomic-machine.h: Likewise.
23520 * sysdeps/tile/tilepro/bits/wordsize.h: Likewise.
23521 * sysdeps/tile/tilepro/memchr.c: Likewise.
23522 * sysdeps/tile/tilepro/memcpy.S: Likewise.
23523 * sysdeps/tile/tilepro/memset.c: Likewise.
23524 * sysdeps/tile/tilepro/memusage.h: Likewise.
23525 * sysdeps/tile/tilepro/rawmemchr.c: Likewise.
23526 * sysdeps/tile/tilepro/strchr.c: Likewise.
23527 * sysdeps/tile/tilepro/strchrnul.c: Likewise.
23528 * sysdeps/tile/tilepro/strlen.c: Likewise.
23529 * sysdeps/tile/tilepro/strrchr.c: Likewise.
23530 * sysdeps/unix/sysv/linux/tile/tilepro/Implies: Likewise.
23531 * sysdeps/unix/sysv/linux/tile/tilepro/c++-types.data: Likewise.
23532 * sysdeps/unix/sysv/linux/tile/tilepro/jmp_buf-macros.h: Likewise.
23533 * sysdeps/unix/sysv/linux/tile/tilepro/ld.abilist: Likewise.
23534 * sysdeps/unix/sysv/linux/tile/tilepro/ldconfig.h: Likewise.
23535 * sysdeps/unix/sysv/linux/tile/tilepro/libBrokenLocale.abilist:
23536 Likewise.
23537 * sysdeps/unix/sysv/linux/tile/tilepro/libanl.abilist: Likewise.
23538 * sysdeps/unix/sysv/linux/tile/tilepro/libc.abilist: Likewise.
23539 * sysdeps/unix/sysv/linux/tile/tilepro/libcrypt.abilist: Likewise.
23540 * sysdeps/unix/sysv/linux/tile/tilepro/libdl.abilist: Likewise.
23541 * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
23542 * sysdeps/unix/sysv/linux/tile/tilepro/libnsl.abilist: Likewise.
23543 * sysdeps/unix/sysv/linux/tile/tilepro/libpthread.abilist: Likewise.
23544 * sysdeps/unix/sysv/linux/tile/tilepro/libresolv.abilist: Likewise.
23545 * sysdeps/unix/sysv/linux/tile/tilepro/librt.abilist: Likewise.
23546 * sysdeps/unix/sysv/linux/tile/tilepro/libthread_db.abilist: Likewise.
23547 * sysdeps/unix/sysv/linux/tile/tilepro/libutil.abilist: Likewise.
23548 * sysdeps/unix/sysv/linux/tile/tilepro/register-dump.h: Likewise.
23549 * sysdeps/unix/sysv/linux/tile/sysconf.c (linux_sysconf): Remove
23550 tilepro mention in comment.
23551
23552 * nptl/Makefile (libpthread-routines): Add pthread_join_common.
23553 * nptl/pthreadP.h (__pthread_timedjoin_ex): New prototype.
23554 * nptl/pthread_join_common.c: New file: common function used on
23555 pthread_join, pthread_timedjoin_np, pthread_tryjoin_np.
23556 * nptl/pthread_join.c (pthread_join): Use __pthread_timedjoin_ex.
23557 * nptl/pthread_tryjoin.c (pthread_tryjoin): Likewise.
23558 * nptl/pthread_timedjoin.c (pthread_timedjoin_np): Likewise.
23559 (cleanup): Move definition to pthread_join_common.c.
23560 * sysdeps/unix/sysv/linux/i386/lowlevellock.h (__lll_timedwait_tid):
23561 Remove superflous checks.
23562 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h (__lll_timedwait_tid):
23563 Likewise.
23564
23565 2017-12-20 Szabolcs Nagy <szabolcs.nagy@arm.com>
23566
23567 * sysdeps/aarch64/libm-test-ulps: Update.
23568
23569 2017-12-20 Adhemerval Zanella <adhemerval.zanella@linaro.org>
23570
23571 * sysdeps/aarch64/memset.S (MEMSET): Define.
23572
23573 2017-12-20 Florian Weimer <fweimer@redhat.com>
23574
23575 [BZ #22635]
23576 nptl: Provide full implementation of pthread_self in libc.so.
23577 * nptl/Makefile (routines): Add pthread_self.
23578 (libpthread-routines): Replace pthread_self with
23579 compat-pthread_self.
23580 * nptl/forward.c (pthread_self): Remove.
23581 * nptl/nptl-init.c (pthread_functions): Do not initialize
23582 ptr_pthread_self.
23583 * nptl/pthread_self.c (pthread_self): Remove weak alias.
23584 * nptl/compat-pthread_self.c: New file.
23585 * sysdeps/nptl/pthread-functions.h (struct pthread_functions):
23586 Remove ptr_pthread_self.
23587
23588 2017-12-19 Arnold D. Robbins <arnold@skeeve.com>
23589
23590 * posix/regcomp.c: Fix spelling in comments.
23591 * posix/regex.h: Likewise.
23592 * posix/regex_internal.c: Likewise.
23593 * posix/regexec.c: Likewise.
23594
23595 2017-12-19 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
23596
23597 [BZ #22377]
23598 * math/Makefile [C++] (tests): Add test for iseqsig.
23599 * math/math.h [C++] (iseqsig): New implementation, which does
23600 not rely on __MATH_TG/__builtin_types_compatible_p.
23601 * math/test-math-iseqsig.cc: New file.
23602 * sysdeps/powerpc/powerpc64le/Makefile
23603 (CFLAGS-test-math-iseqsig.cc): New variable.
23604
23605 2017-12-19 Dmitry V. Levin <ldv@altlinux.org>
23606
23607 * elf/dl-load.c (is_trusted_path): Remove.
23608 (fillin_rpath): Remove check_trusted argument and its use,
23609 all callers changed.
23610
23611 2017-12-19 H.J. Lu <hongjiu.lu@intel.com>
23612
23613 [BZ #22630]
23614 * Makeconfig (link-pie-before-libc): Replace -pie with
23615 $(if $($(@F)-no-pie),$(no-pie-ldflag),-pie).
23616 * elf/Makefile (LDFLAGS-tst-dlopen-aout): Removed.
23617 (tst-dlopen-aout-no-pie): New.
23618 (LDFLAGS-tst-prelink): Removed.
23619 (tst-prelink-no-pie): New.
23620 (LDFLAGS-tst-main1): Removed.
23621 (tst-main1-no-pie): New.
23622 * gmon/Makefile (LDFLAGS-tst-gmon): Removed.
23623 (tst-gmon-no-pie): New.
23624
23625 2017-12-19 H.J. Lu <hongjiu.lu@intel.com>
23626
23627 * manual/install.texi: Document that --enable-static-pie
23628 implies PIE.
23629 * INSTALL: Regenerated.
23630
23631 2017-12-19 Bernd Edlinger <bernd.edlinger@hotmail.de>
23632
23633 [BZ #21309]
23634 * sysdeps/ieee754/dbl-64/e_pow.c (checkint): Make m and n
23635 unsigned.
23636
23637 2017-12-19 Joseph Myers <joseph@codesourcery.com>
23638
23639 Revert:
23640
23641 2017-12-19 Joseph Myers <joseph@codesourcery.com>
23642
23643 * sysdeps/x86_64/fpu/libm-test-ulps: Update.
23644
23645 2017-12-19 Patrick McGehearty <patrick.mcgehearty@oracle.com>
23646
23647 * sysdeps/ieee754/dbl-64/e_exp.c: Include <math-svid-compat.h> and
23648 <errno.h>. Include "eexp.tbl".
23649 (half): New constant.
23650 (one): Likewise.
23651 (__ieee754_exp): Rewrite.
23652 (__slowexp): Remove prototype.
23653 * sysdeps/ieee754/dbl-64/eexp.tbl: New file.
23654 * sysdeps/ieee754/dbl-64/slowexp.c: Remove file.
23655 * sysdeps/i386/fpu/slowexp.c: Likewise.
23656 * sysdeps/ia64/fpu/slowexp.c: Likewise.
23657 * sysdeps/m68k/m680x0/fpu/slowexp.c: Likewise.
23658 * sysdeps/x86_64/fpu/multiarch/slowexp-avx.c: Likewise.
23659 * sysdeps/x86_64/fpu/multiarch/slowexp-fma.c: Likewise.
23660 * sysdeps/x86_64/fpu/multiarch/slowexp-fma4.c: Likewise.
23661 * sysdeps/generic/math_private.h (__slowexp): Remove prototype.
23662 * sysdeps/ieee754/dbl-64/e_pow.c: Remove mention of slowexp.c in
23663 comment.
23664 * sysdeps/powerpc/power4/fpu/Makefile [$(subdir) = math]
23665 (CPPFLAGS-slowexp.c): Remove variable.
23666 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
23667 Remove slowexp-fma, slowexp-fma4 and slowexp-avx.
23668 (CFLAGS-slowexp-fma.c): Remove variable.
23669 (CFLAGS-slowexp-fma4.c): Likewise.
23670 (CFLAGS-slowexp-avx.c): Likewise.
23671 * sysdeps/x86_64/fpu/multiarch/e_exp-avx.c (__slowexp): Do not
23672 define as macro.
23673 * sysdeps/x86_64/fpu/multiarch/e_exp-fma.c (__slowexp): Likewise.
23674 * sysdeps/x86_64/fpu/multiarch/e_exp-fma4.c (__slowexp): Likewise.
23675 * math/Makefile (type-double-routines): Remove slowexp.
23676 * manual/probes.texi (slowexp_p6): Remove.
23677 (slowexp_p32): Likewise.
23678
23679 2017-12-19 Adhemerval Zanella <adhemerval.zanella@linaro.org>
23680
23681 * lib/glob.c (glob): Use a 'char *', not a 'void *', in pointer
23682 arithmetic.
23683
23684 * lib/glob.c (glob): Do not pass NULL to mempcpy.
23685
23686 2017-12-19 Joseph Myers <joseph@codesourcery.com>
23687
23688 * sysdeps/x86_64/fpu/libm-test-ulps: Update.
23689
23690 2017-12-19 Patrick McGehearty <patrick.mcgehearty@oracle.com>
23691
23692 * sysdeps/ieee754/dbl-64/e_exp.c: Include <math-svid-compat.h> and
23693 <errno.h>. Include "eexp.tbl".
23694 (half): New constant.
23695 (one): Likewise.
23696 (__ieee754_exp): Rewrite.
23697 (__slowexp): Remove prototype.
23698 * sysdeps/ieee754/dbl-64/eexp.tbl: New file.
23699 * sysdeps/ieee754/dbl-64/slowexp.c: Remove file.
23700 * sysdeps/i386/fpu/slowexp.c: Likewise.
23701 * sysdeps/ia64/fpu/slowexp.c: Likewise.
23702 * sysdeps/m68k/m680x0/fpu/slowexp.c: Likewise.
23703 * sysdeps/x86_64/fpu/multiarch/slowexp-avx.c: Likewise.
23704 * sysdeps/x86_64/fpu/multiarch/slowexp-fma.c: Likewise.
23705 * sysdeps/x86_64/fpu/multiarch/slowexp-fma4.c: Likewise.
23706 * sysdeps/generic/math_private.h (__slowexp): Remove prototype.
23707 * sysdeps/ieee754/dbl-64/e_pow.c: Remove mention of slowexp.c in
23708 comment.
23709 * sysdeps/powerpc/power4/fpu/Makefile [$(subdir) = math]
23710 (CPPFLAGS-slowexp.c): Remove variable.
23711 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
23712 Remove slowexp-fma, slowexp-fma4 and slowexp-avx.
23713 (CFLAGS-slowexp-fma.c): Remove variable.
23714 (CFLAGS-slowexp-fma4.c): Likewise.
23715 (CFLAGS-slowexp-avx.c): Likewise.
23716 * sysdeps/x86_64/fpu/multiarch/e_exp-avx.c (__slowexp): Do not
23717 define as macro.
23718 * sysdeps/x86_64/fpu/multiarch/e_exp-fma.c (__slowexp): Likewise.
23719 * sysdeps/x86_64/fpu/multiarch/e_exp-fma4.c (__slowexp): Likewise.
23720 * math/Makefile (type-double-routines): Remove slowexp.
23721 * manual/probes.texi (slowexp_p6): Remove.
23722 (slowexp_p32): Likewise.
23723
23724 2017-12-19 Adhemerval Zanella <adhemerval.zanella@linaro.org>
23725 James Clarke <jrtc27@jrtc27.com>
23726
23727 [BZ #22603]
23728 * sysdeps/ia64/memchr.S (__memchr): Avoid overflow in pointer
23729 addition.
23730
23731 2017-12-19 Adhemerval Zanella <adhemerval.zanella@linaro.org>
23732
23733 [BZ #22605]
23734 * sysdeps/unix/sysv/linux/sh/clone.S (__clone): Fix exit return
23735 code.
23736
23737 2017-12-19 H.J. Lu <hongjiu.lu@intel.com>
23738
23739 [BZ #22563]
23740 * sysdeps/i386/nptl/tcb-offsets.sym (FEATURE_1_OFFSET): New.
23741 * sysdeps/i386/nptl/tls.h (tcbhead_t): Add feature_1.
23742 * sysdeps/x86_64/nptl/tcb-offsets.sym (FEATURE_1_OFFSET): New.
23743 * sysdeps/x86_64/nptl/tls.h (tcbhead_t): Rename __glibc_unused1
23744 to feature_1.
23745
23746 2017-12-19 H.J. Lu <hongjiu.lu@intel.com>
23747
23748 [BZ #22563]
23749 * bits/types/__cancel_jmp_buf_tag.h: New file.
23750 * sysdeps/unix/sysv/linux/x86/bits/types/__cancel_jmp_buf_tag.h
23751 * sysdeps/unix/sysv/linux/x86/pthreaddef.h: Likewise.
23752 * sysdeps/unix/sysv/linux/x86/nptl/pthreadP.h: Likewise.
23753 * nptl/Makefile (headers): Add
23754 bits/types/__cancel_jmp_buf_tag.h.
23755 * nptl/descr.h [NEED_SAVED_MASK_IN_CANCEL_JMP_BUF]
23756 (pthread_unwind_buf): Add saved_mask to cancel_jmp_buf.
23757 * sysdeps/nptl/pthread.h: Include
23758 <bits/types/__cancel_jmp_buf_tag.h>.
23759 (__pthread_unwind_buf_t): Use struct __cancel_jmp_buf_tag with
23760 __cancel_jmp_buf.
23761 * sysdeps/unix/sysv/linux/hppa/pthread.h: Likewise.
23762
23763 2017-12-18 H.J. Lu <hongjiu.lu@intel.com>
23764
23765 * scripts/build-many-glibcs.py (Context.add_all_configs): Add
23766 --enable-static-pie variants to x86_64, x32 and i686.
23767
23768 2017-12-19 Joseph Myers <joseph@codesourcery.com>
23769
23770 [BZ #22631]
23771 * sysdeps/m68k/m680x0/fpu/bits/mathinline.h (__m81_defun): Add
23772 argument for attrubutes. All callers changed.
23773 (__inline_mathop1): Likewise. All callers changed.
23774 (__inline_mathop): Likewise. All callers changed.
23775 [__USE_MISC] (scalbn): Use __inline_forward instead of
23776 __inline_forward_c.
23777 [__USE_ISOC99] (scalbln): Likewise.
23778 [__USE_ISOC99] (nearbyint): Likewise.
23779 [__USE_ISOC99] (lrint): Likewise.
23780 [__USE_MISC] (scalbnf): Likewise.
23781 [__USE_ISOC99] (scalblnf): Likewise.
23782 [__USE_ISOC99] (nearbyintf): Likewise.
23783 [__USE_ISOC99] (lrintf): Likewise.
23784 [__USE_MISC] (scalbnl): Likewise.
23785 [__USE_ISOC99] (scalblnl): Likewise.
23786 [__USE_ISOC99] (nearbyintl): Likewise.
23787 [__USE_ISOC99] (lrintl): Likewise.
23788 * sysdeps/m68k/m680x0/fpu/mathimpl.h: All callers of
23789 __inline_mathop and __m81_defun changed.
23790
23791 * scripts/build-many-glibcs.py (Context.add_all_configs): Specify
23792 CPU or FPU for ARM hard-float configurations.
23793
23794 2017-12-18 Joseph Myers <joseph@codesourcery.com>
23795
23796 * nptl/tst-attr3.c: Include <libc-diag.h>.
23797 (do_test) [__GNUC_PREREQ (7, 0)]: Ignore -Wrestrict for two tests.
23798
23799 * posix/tst-glob_symlinks.c (do_test): Increase size of buf.
23800
23801 * string/tester.c (test_strncat): Also disable -Warray-bounds
23802 warnings for two tests.
23803
23804 2017-12-18 H.J. Lu <hongjiu.lu@intel.com>
23805
23806 [BZ #22614]
23807 * Makeconfig (no-pie-ldflag): Set to -no-pie only if
23808 $(cc-pie-default) == yes.
23809 * config.make.in (cc-pie-default): New.
23810 * configure.ac (libc_cv_pie_default): Renamed to ...
23811 (libc_cv_cc_pie_default): This.
23812 (libc_cv_pie_default): Set to $libc_cv_cc_pie_default.
23813 * configure: Regenerated.
23814
23815 2017-12-18 Florian Weimer <fweimer@redhat.com>
23816
23817 [BZ #20204]
23818 ld.so: Harden dl-libc/libdl hooks.
23819 * sysdeps/generic/ldsodefs.h (_dl_init_all_dirs): Update comment.
23820 (rtld_active): New function.
23821 * dlfcn/dladdr.c (__dladdr): Call it.
23822 * dlfcn/dladdr1.c (__dladdr1): Likewise.
23823 * dlfcn/dlclose.c (__dlcose): Likewise.
23824 * dlfcn/dlerror.c (__dlerror): Likewise.
23825 * dlfcn/dlinfo.c (__dlinfo): Likewise.
23826 * dlfcn/dlmopen.c (__dlmopen): Likewise.
23827 * dlfcn/dlopen.c (__dlopen): Likewise.
23828 * dlfcn/dlopenold.c (__dlopen_nocheck): Likewise.
23829 * dlfcn/dlsym.c (__dlsym): Likewise.
23830 * dlfcn/dlvsym.c (__dlvsym): Likewise.
23831 * libio/vtables.c (_IO_vtable_check): Likewise.
23832 * elf/dl-libc.c (__libc_dlopen_mode, __libc_dlsym)
23833 (__libc_dlclose): Likewise.
23834 * elf/rtld.c (dl_main): Update comment on the _dl_init_all_dirs
23835 assignment.
23836
23837 2017-12-18 Joseph Myers <joseph@codesourcery.com>
23838
23839 [BZ #22446]
23840 * nscd/connections.c (handle_request) [SO_PEERCRED]: Use separate
23841 buffers for readlink input and output.
23842
23843 2017-12-18 Sergei Trofimovich <slyfox@gentoo.org>
23844
23845 [BZ #22624]
23846 * sysdeps/mips/setjmp_aux.c (__sigsetjmp_aux): Use
23847 inhibit_stack_protector.
23848
23849 [BZ #22624]
23850 * sysdeps/mips/mips64/setjmp_aux.c (__sigsetjmp_aux): Use
23851 inhibit_stack_protector.
23852
23853 2017-12-18 Dmitry V. Levin <ldv@altlinux.org>
23854
23855 [BZ #22627]
23856 * elf/dl-load.c (_dl_init_paths): Remove _dl_dst_substitute preparatory
23857 code and invocation.
23858
23859 2017-12-18 Szabolcs Nagy <szabolcs.nagy@arm.com>
23860
23861 * sysdeps/aarch64/start.S (_start): Handle PIC && !SHARED case.
23862
23863 2017-12-16 Aurelien Jarno <aurelien@aurel32.net>
23864
23865 [BZ #22505]
23866 * elf/ldconfig.c (main): Call setlocale to force LC_COLLATE to C.
23867
23868 2017-12-16 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
23869
23870 * sysdeps/s390/fpu/libm-test-ulps: Update.
23871
23872 2017-12-16 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
23873
23874 * sysdeps/powerpc/fpu/libm-test-ulps: Update.
23875
23876 2017-12-16 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
23877
23878 * sysdeps/ieee754/flt-32/s_cosf.c: Move reduced() and
23879 constants to s_sincosf.h file.
23880 * sysdeps/ieee754/flt-32/s_sinf.c: Likewise.
23881 * sysdeps/ieee754/flt-32/s_sincosf.c: New
23882 implementation.
23883 * sysdeps/ieee754/flt-32/s_sincosf.h:
23884 New file.
23885
23886 2017-12-12 Carlos O'Donell <carlos@redhat.com>
23887
23888 [BZ #14681]
23889 * elf/tst-leaks1.c (do_test): Call one dlopen with $ORIGIN expansion
23890 before mtrace.
23891
23892 2017-12-15 H.J. Lu <hongjiu.lu@intel.com>
23893
23894 [BZ #19574]
23895 * INSTALL: Regenerated.
23896 * Makeconfig (real-static-start-installed-name): New.
23897 (pic-default): Updated for --enable-static-pie.
23898 (pie-default): New for --enable-static-pie.
23899 (default-pie-ldflag): Likewise.
23900 (+link-static-before-libc): Replace $(DEFAULT-LDFLAGS-$(@F))
23901 with $(if $($(@F)-no-pie),$(no-pie-ldflag),$(default-pie-ldflag)).
23902 Replace $(static-start-installed-name) with
23903 $(real-static-start-installed-name).
23904 (+prectorT): Updated for --enable-static-pie.
23905 (+postctorT): Likewise.
23906 (CFLAGS-.o): Add $(pie-default).
23907 (CFLAGS-.op): Likewise.
23908 * NEWS: Mention --enable-static-pie.
23909 * config.h.in (ENABLE_STATIC_PIE): New.
23910 * configure.ac (--enable-static-pie): New configure option.
23911 (have-no-dynamic-linker): New LIBC_CONFIG_VAR.
23912 (have-static-pie): Likewise.
23913 Enable static PIE if linker supports --no-dynamic-linker.
23914 (ENABLE_STATIC_PIE): New AC_DEFINE.
23915 (enable-static-pie): New LIBC_CONFIG_VAR.
23916 * configure: Regenerated.
23917 * csu/Makefile (omit-deps): Add r$(start-installed-name) and
23918 gr$(start-installed-name) for --enable-static-pie.
23919 (extra-objs): Likewise.
23920 (install-lib): Likewise.
23921 (extra-objs): Add static-reloc.o and static-reloc.os
23922 ($(objpfx)$(start-installed-name)): Also depend on
23923 $(objpfx)static-reloc.o.
23924 ($(objpfx)r$(start-installed-name)): New.
23925 ($(objpfx)g$(start-installed-name)): Also depend on
23926 $(objpfx)static-reloc.os.
23927 ($(objpfx)gr$(start-installed-name)): New.
23928 * csu/libc-start.c (LIBC_START_MAIN): Call _dl_relocate_static_pie
23929 in libc.a.
23930 * csu/libc-tls.c (__libc_setup_tls): Add main_map->l_addr to
23931 initimage.
23932 * csu/static-reloc.c: New file.
23933 * elf/Makefile (routines): Add dl-reloc-static-pie.
23934 (elide-routines.os): Likewise.
23935 (DEFAULT-LDFLAGS-tst-tls1-static-non-pie): Removed.
23936 (tst-tls1-static-non-pie-no-pie): New.
23937 * elf/dl-reloc-static-pie.c: New file.
23938 * elf/dl-support.c (_dl_get_dl_main_map): New function.
23939 * elf/dynamic-link.h (ELF_DURING_STARTUP): Also check
23940 STATIC_PIE_BOOTSTRAP.
23941 * elf/get-dynamic-info.h (elf_get_dynamic_info): Likewise.
23942 * gmon/Makefile (tests): Add tst-gmon-static-pie.
23943 (tests-static): Likewise.
23944 (DEFAULT-LDFLAGS-tst-gmon-static): Removed.
23945 (tst-gmon-static-no-pie): New.
23946 (CFLAGS-tst-gmon-static-pie.c): Likewise.
23947 (CRT-tst-gmon-static-pie): Likewise.
23948 (tst-gmon-static-pie-ENV): Likewise.
23949 (tests-special): Likewise.
23950 ($(objpfx)tst-gmon-static-pie.out): Likewise.
23951 (clean-tst-gmon-static-pie-data): Likewise.
23952 ($(objpfx)tst-gmon-static-pie-gprof.out): Likewise.
23953 * gmon/tst-gmon-static-pie.c: New file.
23954 * manual/install.texi: Document --enable-static-pie.
23955 * sysdeps/generic/ldsodefs.h (_dl_relocate_static_pie): New.
23956 (_dl_get_dl_main_map): Likewise.
23957 * sysdeps/i386/configure.ac: Check if linker supports static PIE.
23958 * sysdeps/x86_64/configure.ac: Likewise.
23959 * sysdeps/i386/configure: Regenerated.
23960 * sysdeps/x86_64/configure: Likewise.
23961 * sysdeps/mips/Makefile (ASFLAGS-.o): Add $(pie-default).
23962 (ASFLAGS-.op): Likewise.
23963
23964 2017-12-15 Joseph Myers <joseph@codesourcery.com>
23965
23966 * io/Makefile (tst-open-tmpfile-ARGS): New variable.
23967 * posix/tst-mmap-offset.c (fname): Use /tmp.
23968 * stdlib/tst-setcontext3.sh (tempfile): Use ${objpfx}.
23969
23970 2017-12-15 Steve Ellcey <sellcey@cavium.com>
23971
23972 * nscd/dbg_log.c (dbg_log): Increase msg buffer size.
23973
23974 2017-12-15 Thomas Schwinge <thomas@codesourcery.com>
23975
23976 * sysdeps/mach/hurd/dl-sysdep.c (__access_noerrno): Don't set
23977 errno.
23978
23979 2017-12-15 Joseph Myers <joseph@codesourcery.com>
23980
23981 * scripts/build-many-glibcs.py (Context.add_all_configs): Use
23982 --with-float=hard for arm-linux-gnueabihf configurations.
23983
23984 [BZ #14121]
23985 * po/Makefile (generated): Add $(ALL_LINGUAS:%=%.mo).
23986 (%.mo): Change to $(objpfx)%.mo. Use $(make-target-directory).
23987 ($(mo-installed)): Use $(objpfx)%.mo.
23988 (realclean): Remove rule.
23989
23990 * po/Makefile (linguas): Remove rule and dependencies.
23991 (linguas.mo): Likewise.
23992 (.PHONY): Do not depend on linguas and linguas.mo.
23993 (podir): Remove variable.
23994 (pofiles): Likewise.
23995 [$(pofiles)] (%.po): Remove rule.
23996
23997 * sysdeps/sparc/sparc32/Makefile
23998 ($(divrem:%=$(sysdep_dir)/sparc/sparc32/%.S)): Do not include
23999 start-of-line whitespace in argument of echo.
24000 * sysdeps/sparc/sparc32/divrem.m4: Avoid generating lines starting
24001 with whitespace. Generate __wrap_.udiv alias.
24002 * sysdeps/sparc/sparc32/rem.S: Regenerated.
24003 * sysdeps/sparc/sparc32/sdiv.S: Likewise.
24004 * sysdeps/sparc/sparc32/udiv.S: Likewise.
24005 * sysdeps/sparc/sparc32/urem.S: Likewise.
24006
24007 2017-12-15 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
24008
24009 * sysdeps/powerpc/powerpc64/power8/strcpy.S: Use vectors
24010 for aligned inputs.
24011
24012 2017-12-14 Siddhesh Poyarekar <siddhesh@sourceware.org>
24013
24014 * benchtests/bench-strcmp.c: Print output in JSON format.
24015
24016 * elf/dl-tunables.list: Remove redundant SXID_ERASE.
24017
24018 2017-12-14 Florian Weimer <fweimer@redhat.com>
24019
24020 [BZ #22607]
24021 CVE-2017-1000409
24022 * elf/dl-load.c (_dl_init_paths): Compute number of components in
24023 the expanded path string.
24024
24025 2017-12-14 Florian Weimer <fweimer@redhat.com>
24026
24027 [BZ #22606]
24028 CVE-2017-1000408
24029 * elf/dl-load.c (system_dirs): Update comment.
24030 (nsystem_dirs_len): Use array_length.
24031 (_dl_init_paths): Use nsystem_dirs_len to compute the array size.
24032
24033 2017-12-14 Florian Weimer <fweimer@redhat.com>
24034
24035 Simplify compiling most of support/ outside of glibc.
24036 * support/check_addrinfo.c: Include <string.h>.
24037 * support/check_dns_packet.c: Likewise.
24038 * support/check_hostent.c: Likewise.
24039 * support/support_can_chroot.c: Include <support/xunistd.h>.
24040 * support/support_format_addrinfo.c: Include <stdlib.h>
24041 * support/support_format_dns_packet.c: Include <stdbool.h>.
24042 * support/support_format_hostent.c: Include <stdlib.h>.
24043 * support/support_format_netent.c: Likewise.
24044 * support/support_write_string.c: Include <support/xunistd.h>.
24045 * support/xdlfcn.c: Include <stddef.h>.
24046
24047 2017-12-14 H.J. Lu <hongjiu.lu@intel.com>
24048
24049 * sysdeps/x86_64/fpu/s_cosf.S: Removed.
24050
24051 2017-12-14 Patrick McGehearty <patrick.mcgehearty@oracle.com>
24052 Adhemerval Zanella <adhemerval.zanella@linaro.org>
24053
24054 * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile
24055 (sysdeps_routines): Add memset-niagara7.
24056 * sysdeps/sparc/sparc64/multiarch/Makefile (sysdes_rotuines):
24057 Likewise.
24058 * sysdeps/sparc/sparc32/sparcv9/multiarch/memset-niagara7.S: New
24059 file.
24060 * sysdeps/sparc/sparc64/multiarch/memset-niagara7.S: Likewise.
24061 * sysdeps/sparc/sparc64/multiarch/ifunc-impl-list.c
24062 (__libc_ifunc_impl_list): Add __bzero_niagara7 and __memset_niagara7.
24063 * sysdeps/sparc/sparc64/multiarch/ifunc-memset.h (IFUNC_SELECTOR):
24064 Add niagara7 option.
24065 * NEWS: Mention sparc m7 optimized memcpy, mempcpy, memmove, and
24066 memset.
24067
24068 * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile
24069 (sysdeps_routines): Add memcpy-memmove-niagara7 and memmove-ultra1.
24070 * sysdeps/sparc/sparc64/multiarch/Makefile (sysdeps_routines):
24071 Likewise.
24072 * sysdeps/sparc/sparc32/sparcv9/multiarch/memcpy-memmove-niagara7.S:
24073 New file.
24074 * sysdeps/sparc/sparc32/sparcv9/multiarch/memmove-ultra1.S: Likewise.
24075 * sysdeps/sparc/sparc32/sparcv9/multiarch/rtld-memmove.c: Likewise.
24076 * sysdeps/sparc/sparc64/multiarch/ifunc-impl-list.c
24077 (__libc_ifunc_impl_list): Add __memcpy_niagara7, __mempcpy_niagara7,
24078 and __memmove_niagara7.
24079 * sysdeps/sparc/sparc64/multiarch/ifunc-memcpy.h (IFUNC_SELECTOR):
24080 Add niagara7 option.
24081 * sysdeps/sparc/sparc64/multiarch/memmove.c: New file.
24082 * sysdeps/sparc/sparc64/multiarch/ifunc-memmove.h: Likewise.
24083 * sysdeps/sparc/sparc64/multiarch/memcpy-memmove-niagara7.S: Likewise.
24084 * sysdeps/sparc/sparc64/multiarch/memmove-ultra1.S: Likewise.
24085 * sysdeps/sparc/sparc64/multiarch/rtld-memmove.c: Likewise.
24086
24087 2017-12-14 Jose E. Marchesi <jose.marchesi@oracle.com>
24088
24089 * sysdeps/sparc/sparc32/sparcv9/memmove.S: New file.
24090 * sysdeps/sparc/sparc32/sparcv9/rtld-memmove.c: Likewise.
24091 * sysdeps/sparc/sparc64/memmove.S: Likewise.
24092 * sysdeps/sparc/sparc64/rtld-memmove.c: Likewise.
24093
24094 * sysdeps/sparc/bits/hwcap.h (HWCAP_SPARC_ADP): Defined.
24095 * sysdeps/sparc/dl-procinfo.c: Added "adp" to the
24096 _dl_sparc_cap_flags array.
24097 * sysdeps/sparc/dl-procinfo.h (_DL_HWCAP_COUNT): Increment.
24098
24099 2017-12-13 Siddhesh Poyarekar <siddhesh@sourceware.org>
24100
24101 * sysdeps/aarch64/strcmp.S (misaligned8): Compare dword at a
24102 time whenever possible.
24103
24104 2017-12-12 Carlos O'Donell <carlos@redhat.com>
24105
24106 * elf/Makefile [$(nss-crypt)$(static-nss-crypt) == yesno]
24107 (CFLAGS-tst-linkall-static.c): Undefine USE_CRYPT first.
24108
24109 2017-12-12 Joseph Myers <joseph@codesourcery.com>
24110
24111 * soft-fp/fmadf4.c: Move to ....
24112 * sysdeps/ieee754/soft-fp/s_fma.c: ... here.
24113 * soft-fp/fmasf4.c: Move to ....
24114 * sysdeps/ieee754/soft-fp/s_fmaf.c: ... here.
24115 * soft-fp/fmatf4.c: Move to ....
24116 * sysdeps/ieee754/soft-fp/s_fmal.c: ... here.
24117 * sysdeps/ieee754/soft-fp/Makefile: New file.
24118 * sysdeps/arm/preconfigure.ac: Define with_fp_cond.
24119 * sysdeps/arm/preconfigure: Regenerated.
24120 * sysdeps/arm/nofpu/Implies: New file.
24121 * sysdeps/arm/s_fma.c: Remove file.
24122 * sysdeps/arm/s_fmaf.c: Likewise.
24123 * sysdeps/m68k/coldfire/nofpu/Implies: New file.
24124 * sysdeps/m68k/coldfire/nofpu/s_fma.c: Remove file.
24125 * sysdeps/m68k/coldfire/nofpu/s_fmaf.c: Likewise.
24126 * sysdeps/microblaze/Implies: Add ieee754/soft-fp.
24127 * sysdeps/microblaze/s_fma.c: Remove file.
24128 * sysdeps/microblaze/s_fmaf.c: Likewise.
24129 * sysdeps/mips/mips32/nofpu/Implies: New file.
24130 * sysdeps/mips/mips64/n32/fpu/s_fma.c: Likewise.
24131 * sysdeps/mips/mips64/n32/nofpu/Implies: Likewise.
24132 * sysdeps/mips/mips64/n64/fpu/s_fma.c: Likewise.
24133 * sysdeps/mips/mips64/n64/nofpu/Implies: Likewise.
24134 * sysdeps/mips/ieee754/s_fma.c: Remove file.
24135 * sysdeps/mips/ieee754/s_fmaf.c: Likewise.
24136 * sysdeps/mips/ieee754/s_fmal.c: Update include for move of fmal
24137 implementation.
24138 * sysdeps/nios2/Implies: Add ieee754/soft-fp.
24139 * sysdeps/nios2/s_fma.c: Remove file.
24140 * sysdeps/nios2/s_fmaf.c: Likewise.
24141 * sysdeps/sh/nofpu/Implies: New file.
24142 * sysdeps/sh/s_fma.c: Remove file.
24143 * sysdeps/sh/s_fmaf.c: Likewise.
24144 * sysdeps/tile/Implies: Add ieee754/soft-fp.
24145 * sysdeps/tile/s_fma.c: Remove file.
24146 * sysdeps/tile/s_fmaf.c: Likewise.
24147
24148 2017-12-12 H.J. Lu <hongjiu.lu@intel.com>
24149
24150 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
24151 Add s_cosf-sse2 and s_cosf-fma.
24152 (CFLAGS-s_cosf-fma.c): New.
24153 * sysdeps/x86_64/fpu/multiarch/s_cosf-fma.c: New file.
24154 * sysdeps/x86_64/fpu/multiarch/s_cosf-sse2.c: Likewise.
24155 * sysdeps/x86_64/fpu/multiarch/s_cosf.c: Likewise.
24156
24157 2017-12-12 Steve Ellcey <sellcey@cavium.com>
24158
24159 * nscd/nscd.h (init_traced_file): Change strncpy to memcpy.
24160
24161 2017-12-12 Adhemerval Zanella <adhemerval.zanella@linaro.org>
24162
24163 * libio/Makefile (tests): Add tst-bz22415.
24164 (tst-bz22415-ENV): New rule.
24165 (generated): Add tst-bz22415.mtrace and tst-bz22415.check.
24166 (tests-special): Add tst-bz22415-mem.out.
24167 ($(objpfx)tst-bz22415-mem.out): New rule.
24168 * libio/fileops.c (_IO_new_file_seekoff): Call _IO_free_backup_area
24169 in case of a successful seek operation.
24170 * libio/wfileops.c (_IO_wfile_seekoff): Likewise.
24171 (_IO_wfile_overflow): Call _IO_free_wbackup_area in case a write
24172 buffer is required.
24173 * libio/tst-bz22415.c: New test.
24174
24175 * sysdeps/ia64/fpu/libm-test-ulps: Update.
24176
24177 2017-12-12 James Clarke <jrtc27@jrtc27.com>
24178
24179 * sysdeps/unix/sysv/linux/ia64/ipc_priv.h: New file defining
24180 __IPC_64 to 0 to avoid IPC_64 being set.
24181
24182 2017-12-12 Szabolcs Nagy <szabolcs.nagy@arm.com>
24183
24184 [BZ #22593]
24185 * math/bits/mathcalls.h (nextafter): Remove const.
24186 (nexttoward): Likewise.
24187
24188 2017-12-12 Joseph Myers <joseph@codesourcery.com>
24189
24190 * configure.ac (--with-fp): Remove configure option.
24191 (with_fp_cond): New variable.
24192 (libc_cv_with_fp): New configure test. Use this variable instead
24193 of with_fp.
24194 * configure: Regenerated.
24195 * config.make.in (with-fp): Use @libc_cv_with_fp@.
24196 * manual/install.texi (Configuring and compiling): Remove
24197 --without-fp.
24198 * INSTALL: Regenerated.
24199 * sysdeps/m68k/preconfigure (with_fp_cond): Define for ColdFire.
24200 * sysdeps/mips/preconfigure (with_fp_cond): Define.
24201 * sysdeps/powerpc/preconfigure (with_fp_cond): Define for 32-bit.
24202 * sysdeps/sh/preconfigure (with_fp_cond): Define.
24203 * scripts/build-many-glibcs.py (Context.add_all_configs): Do not
24204 use --without-fp to configure glibc.
24205
24206 2017-12-12 Rical Jasan <ricaljasan@pacific.net>
24207
24208 * manual/locale.texi (nl_langinfo): Fix a typo.
24209
24210 2017-12-12 Aurelien Jarno <aurelien@aurel32.net>
24211
24212 [BZ #22588]
24213 * manual/conf.texi (SC_SSIZE_MAX): Rename into _SC_SSIZE_MAX.
24214
24215 2017-12-11 H.J. Lu <hongjiu.lu@intel.com>
24216
24217 * argp/Makefile (CFLAGS-argp-help.c): Replace = with +=.
24218 (CFLAGS-argp-parse.c): Likewise.
24219 (CFLAGS-argp-fmtstream.c): Likewise.
24220 * crypt/Makefile (CPPFLAGS-sha256-crypt.c): Likewise.
24221 (CPPFLAGS-sha512-crypt.c): Likewise.
24222 (CPPFLAGS-md5-crypt.c): Likewise.
24223 * debug/Makefile (CFLAGS-stack_chk_fail.c): Likewise.
24224 (CFLAGS-stack_chk_fail_local.c): Likewise.
24225 (CFLAGS-backtrace.c): Likewise.
24226 (CFLAGS-sprintf_chk.c): Likewise.
24227 (CFLAGS-snprintf_chk.c): Likewise.
24228 (CFLAGS-vsprintf_chk.c): Likewise.
24229 (CFLAGS-vsnprintf_chk.c): Likewise.
24230 (CFLAGS-asprintf_chk.c): Likewise.
24231 (CFLAGS-vasprintf_chk.c): Likewise.
24232 (CFLAGS-obprintf_chk.c): Likewise.
24233 (CFLAGS-dprintf_chk.c): Likewise.
24234 (CFLAGS-vdprintf_chk.c): Likewise.
24235 (CFLAGS-printf_chk.c): Likewise.
24236 (CFLAGS-fprintf_chk.c): Likewise.
24237 (CFLAGS-vprintf_chk.c): Likewise.
24238 (CFLAGS-vfprintf_chk.c): Likewise.
24239 (CFLAGS-gets_chk.c): Likewise.
24240 (CFLAGS-fgets_chk.c): Likewise.
24241 (CFLAGS-fgets_u_chk.c): Likewise.
24242 (CFLAGS-fread_chk.c): Likewise.
24243 (CFLAGS-fread_u_chk.c): Likewise.
24244 (CFLAGS-swprintf_chk.c): Likewise.
24245 (CFLAGS-vswprintf_chk.c): Likewise.
24246 (CFLAGS-wprintf_chk.c): Likewise.
24247 (CFLAGS-fwprintf_chk.c): Likewise.
24248 (CFLAGS-vwprintf_chk.c): Likewise.
24249 (CFLAGS-vfwprintf_chk.c): Likewise.
24250 (CFLAGS-fgetws_chk.c): Likewise.
24251 (CFLAGS-fgetws_u_chk.c): Likewise.
24252 (CFLAGS-read_chk.c): Likewise.
24253 (CFLAGS-pread_chk.c): Likewise.
24254 (CFLAGS-pread64_chk.c): Likewise.
24255 (CFLAGS-recv_chk.c): Likewise.
24256 (CFLAGS-recvfrom_chk.c): Likewise.
24257 (CFLAGS-tst-longjmp_chk.c): Likewise.
24258 (CPPFLAGS-tst-longjmp_chk.c): Likewise.
24259 (CFLAGS-tst-longjmp_chk2.c): Likewise.
24260 (CPPFLAGS-tst-longjmp_chk2.c): Likewise.
24261 (CFLAGS-tst-longjmp_chk3.c): Likewise.
24262 (CPPFLAGS-tst-longjmp_chk3.c): Likewise.
24263 (CFLAGS-tst-chk1.c): Likewise.
24264 (CFLAGS-tst-chk2.c): Likewise.
24265 (CFLAGS-tst-chk3.c): Likewise.
24266 (CFLAGS-tst-chk4.cc): Likewise.
24267 (CFLAGS-tst-chk5.cc): Likewise.
24268 (CFLAGS-tst-chk6.cc): Likewise.
24269 (CFLAGS-tst-lfschk1.c): Likewise.
24270 (CFLAGS-tst-lfschk2.c): Likewise.
24271 (CFLAGS-tst-lfschk3.c): Likewise.
24272 (CFLAGS-tst-lfschk4.cc): Likewise.
24273 (CFLAGS-tst-lfschk5.cc): Likewise.
24274 (CFLAGS-tst-lfschk6.cc): Likewise.
24275 (CFLAGS-tst-ssp-1.c): Likewise.
24276 * dirent/Makefile (CFLAGS-scandir.c): Likewise.
24277 (CFLAGS-scandir64.c): Likewise.
24278 (CFLAGS-scandir-tail.c): Likewise.
24279 (CFLAGS-scandir64-tail.c): Likewise.
24280 * elf/Makefile (CPPFLAGS-dl-tunables.c): Likewise.
24281 (CFLAGS-dl-tunables.c): Likewise.
24282 (CFLAGS-dl-runtime.c): Likewise.
24283 (CFLAGS-dl-lookup.c): Likewise.
24284 (CFLAGS-dl-iterate-phdr.c): Likewise.
24285 (CFLAGS-vismain.c): Likewise.
24286 (CFLAGS-tst-linkall-static.c): Likewise.
24287 (CFLAGS-tst-linkall-static.c): Likewise.
24288 (CPPFLAGS-dl-load.c): Likewise.
24289 (CFLAGS-ldconfig.c): Likewise.
24290 (CFLAGS-dl-cache.c): Likewise.
24291 (CFLAGS-cache.c): Likewise.
24292 (CFLAGS-rtld.c): Likewise.
24293 (CFLAGS-multiload.c): Likewise.
24294 (CFLAGS-filtmod1.c): Likewise.
24295 (CFLAGS-tst-align.c): Likewise.
24296 (CFLAGS-tst-align2.c): Likewise.
24297 (CFLAGS-tst-alignmod.c): Likewise.
24298 (CFLAGS-tst-alignmod2.c): Likewise.
24299 (CPPFLAGS-tst-execstack.c): Likewise.
24300 (CFLAGS-tst-ptrguard1-static.c): Likewise.
24301 (CFLAGS-tst-latepthreadmod.c): Likewise.
24302 * grp/Makefile (CFLAGS-getgrgid_r.c): Likewise.
24303 (CFLAGS-getgrnam_r.c): Likewise.
24304 (CFLAGS-getgrent_r.c): Likewise.
24305 (CFLAGS-getgrent.c): Likewise.
24306 (CFLAGS-fgetgrent.c): Likewise.
24307 (CFLAGS-fgetgrent_r.c): Likewise.
24308 (CFLAGS-putgrent.c): Likewise.
24309 (CFLAGS-initgroups.c): Likewise.
24310 (CFLAGS-getgrgid.c): Likewise.
24311 * gshadow/Makefile (CFLAGS-getsgent_r.c): Likewise.
24312 (CFLAGS-getsgent.c): Likewise.
24313 (CFLAGS-fgetsgent.c): Likewise.
24314 (CFLAGS-fgetsgent_r.c): Likewise.
24315 (CFLAGS-putsgent.c): Likewise.
24316 (CFLAGS-getsgnam.c): Likewise.
24317 (CFLAGS-getsgnam_r.c): Likewise.
24318 * iconv/Makefile (CFLAGS-iconv_prog.c): Likewise.
24319 (CFLAGS-iconv_charmap.c): Likewise.
24320 (CFLAGS-dummy-repertoire.c): Likewise.
24321 (CFLAGS-charmap.c): Likewise.
24322 (CFLAGS-linereader.c): Likewise.
24323 (CFLAGS-simple-hash.c): Likewise.
24324 (CFLAGS-gconv_conf.c): Likewise.
24325 (CFLAGS-iconvconfig.c): Likewise.
24326 * inet/Makefile (CFLAGS-gethstbyad_r.c): Likewise.
24327 (CFLAGS-gethstbyad.c): Likewise.
24328 (CFLAGS-gethstbynm_r.c): Likewise.
24329 (CFLAGS-gethstbynm.c): Likewise.
24330 (CFLAGS-gethstbynm2_r.c): Likewise.
24331 (CFLAGS-gethstbynm2.c): Likewise.
24332 (CFLAGS-gethstent_r.c): Likewise.
24333 (CFLAGS-gethstent.c): Likewise.
24334 (CFLAGS-rcmd.c): Likewise.
24335 (CFLAGS-getnetbynm_r.c): Likewise.
24336 (CFLAGS-getnetbynm.c): Likewise.
24337 (CFLAGS-getnetbyad_r.c): Likewise.
24338 (CFLAGS-getnetbyad.c): Likewise.
24339 (CFLAGS-getnetent_r.c): Likewise.
24340 (CFLAGS-getnetent.c): Likewise.
24341 (CFLAGS-getaliasent_r.c): Likewise.
24342 (CFLAGS-getaliasent.c): Likewise.
24343 (CFLAGS-getrpcent_r.c): Likewise.
24344 (CFLAGS-getrpcent.c): Likewise.
24345 (CFLAGS-getservent_r.c): Likewise.
24346 (CFLAGS-getservent.c): Likewise.
24347 (CFLAGS-getprtent_r.c): Likewise.
24348 (CFLAGS-getprtent.c): Likewise.
24349 (CFLAGS-either_ntoh.c): Likewise.
24350 (CFLAGS-either_hton.c): Likewise.
24351 (CFLAGS-getnetgrent.c): Likewise.
24352 (CFLAGS-getnetgrent_r.c): Likewise.
24353 (CFLAGS-tst-checks-posix.c): Likewise.
24354 (CFLAGS-tst-sockaddr.c): Likewise.
24355 * intl/Makefile (CFLAGS-tst-gettext.c): Likewise.
24356 (CFLAGS-tst-translit.c): Likewise.
24357 (CFLAGS-tst-gettext2.c): Likewise.
24358 (CFLAGS-tst-codeset.c): Likewise.
24359 (CFLAGS-tst-gettext3.c): Likewise.
24360 (CFLAGS-tst-gettext4.c): Likewise.
24361 (CFLAGS-tst-gettext5.c): Likewise.
24362 (CFLAGS-tst-gettext6.c): Likewise.
24363 * io/Makefile (CFLAGS-open.c): Likewise.
24364 (CFLAGS-open64.c): Likewise.
24365 (CFLAGS-creat.c): Likewise.
24366 (CFLAGS-creat64.c): Likewise.
24367 (CFLAGS-fcntl.c): Likewise.
24368 (CFLAGS-poll.c): Likewise.
24369 (CFLAGS-ppoll.c): Likewise.
24370 (CFLAGS-lockf.c): Likewise.
24371 (CFLAGS-statfs.c): Likewise.
24372 (CFLAGS-fstatfs.c): Likewise.
24373 (CFLAGS-statvfs.c): Likewise.
24374 (CFLAGS-fstatvfs.c): Likewise.
24375 (CFLAGS-fts.c): Likewise.
24376 (CFLAGS-fts64.c): Likewise.
24377 (CFLAGS-ftw.c): Likewise.
24378 (CFLAGS-ftw64.c): Likewise.
24379 (CFLAGS-lockf.c): Likewise.
24380 (CFLAGS-posix_fallocate.c): Likewise.
24381 (CFLAGS-posix_fallocate64.c): Likewise.
24382 (CFLAGS-fallocate.c): Likewise.
24383 (CFLAGS-fallocate64.c): Likewise.
24384 (CFLAGS-read.c): Likewise.
24385 (CFLAGS-write.c): Likewise.
24386 (CFLAGS-test-stat.c): Likewise.
24387 (CFLAGS-test-lfs.c): Likewise.
24388 * libio/Makefile (CFLAGS-fileops.c): Likewise.
24389 (CFLAGS-fputc.c): Likewise.
24390 (CFLAGS-fputwc.c): Likewise.
24391 (CFLAGS-freopen64.c): Likewise.
24392 (CFLAGS-freopen.c): Likewise.
24393 (CFLAGS-fseek.c): Likewise.
24394 (CFLAGS-fseeko64.c): Likewise.
24395 (CFLAGS-fseeko.c): Likewise.
24396 (CFLAGS-ftello64.c): Likewise.
24397 (CFLAGS-ftello.c): Likewise.
24398 (CFLAGS-fwide.c): Likewise.
24399 (CFLAGS-genops.c): Likewise.
24400 (CFLAGS-getc.c): Likewise.
24401 (CFLAGS-getchar.c): Likewise.
24402 (CFLAGS-getwc.c): Likewise.
24403 (CFLAGS-getwchar.c): Likewise.
24404 (CFLAGS-iofclose.c): Likewise.
24405 (CFLAGS-iofflush.c): Likewise.
24406 (CFLAGS-iofgetpos64.c): Likewise.
24407 (CFLAGS-iofgetpos.c): Likewise.
24408 (CFLAGS-iofgets.c): Likewise.
24409 (CFLAGS-iofgetws.c): Likewise.
24410 (CFLAGS-iofputs.c): Likewise.
24411 (CFLAGS-iofputws.c): Likewise.
24412 (CFLAGS-iofread.c): Likewise.
24413 (CFLAGS-iofsetpos64.c): Likewise.
24414 (CFLAGS-iofsetpos.c): Likewise.
24415 (CFLAGS-ioftell.c): Likewise.
24416 (CFLAGS-iofwrite.c): Likewise.
24417 (CFLAGS-iogetdelim.c): Likewise.
24418 (CFLAGS-iogetline.c): Likewise.
24419 (CFLAGS-iogets.c): Likewise.
24420 (CFLAGS-iogetwline.c): Likewise.
24421 (CFLAGS-ioputs.c): Likewise.
24422 (CFLAGS-ioseekoff.c): Likewise.
24423 (CFLAGS-ioseekpos.c): Likewise.
24424 (CFLAGS-iosetbuffer.c): Likewise.
24425 (CFLAGS-iosetvbuf.c): Likewise.
24426 (CFLAGS-ioungetc.c): Likewise.
24427 (CFLAGS-ioungetwc.c): Likewise.
24428 (CFLAGS-oldfileops.c): Likewise.
24429 (CFLAGS-oldiofclose.c): Likewise.
24430 (CFLAGS-oldiofgetpos64.c): Likewise.
24431 (CFLAGS-oldiofgetpos.c): Likewise.
24432 (CFLAGS-oldiofsetpos64.c): Likewise.
24433 (CFLAGS-oldiofsetpos.c): Likewise.
24434 (CFLAGS-peekc.c): Likewise.
24435 (CFLAGS-putc.c): Likewise.
24436 (CFLAGS-putchar.c): Likewise.
24437 (CFLAGS-putwc.c): Likewise.
24438 (CFLAGS-putwchar.c): Likewise.
24439 (CFLAGS-rewind.c): Likewise.
24440 (CFLAGS-wfileops.c): Likewise.
24441 (CFLAGS-wgenops.c): Likewise.
24442 (CFLAGS-oldiofopen.c): Likewise.
24443 (CFLAGS-iofopen.c): Likewise.
24444 (CFLAGS-iofopen64.c): Likewise.
24445 (CFLAGS-oldtmpfile.c): Likewise.
24446 (CFLAGS-tst_putwc.c): Likewise.
24447 * locale/Makefile (CFLAGS-md5.c): Likewise.
24448 (CFLAGS-charmap.c): Likewise.
24449 (CFLAGS-locfile.c): Likewise.
24450 (CFLAGS-charmap-dir.c): Likewise.
24451 * login/Makefile (CFLAGS-grantpt.c): Likewise.
24452 (CFLAGS-getpt.c): Likewise.
24453 (CFLAGS-pt_chown.c): Likewise.
24454 * malloc/Makefile (CFLAGS-mcheck-init.c): Likewise.
24455 (CFLAGS-obstack.c): Likewise.
24456 * math/Makefile (CFLAGS-test-tgmath3.c): Likewise.
24457 (CFLAGS-test-double-vlen4-wrappers.c): Likewise.
24458 (CFLAGS-test-double-vlen8-wrappers.c): Likewise.
24459 (CFLAGS-test-float-vlen8-wrappers.c): Likewise.
24460 (CFLAGS-test-float-vlen16-wrappers.c): Likewise.
24461 (CFLAGS-test-tgmath.c): Likewise.
24462 (CFLAGS-test-tgmath2.c): Likewise.
24463 (CFLAGS-test-tgmath-ret.c): Likewise.
24464 (CFLAGS-test-powl.c): Likewise.
24465 (CFLAGS-test-snan.c): Likewise.
24466 (CFLAGS-test-signgam-finite.c): Likewise.
24467 (CFLAGS-test-signgam-finite-c99.c): Likewise.
24468 (CFLAGS-test-signgam-finite-c11.c): Likewise.
24469 (CFLAGS-test-signgam-uchar.c): Likewise.
24470 (CFLAGS-test-signgam-uchar-init.c): Likewise.
24471 (CFLAGS-test-signgam-uchar-static.c): Likewise.
24472 (CFLAGS-test-signgam-uchar-init-static.c): Likewise.
24473 (CFLAGS-test-signgam-uint.c): Likewise.
24474 (CFLAGS-test-signgam-uint-init.c): Likewise.
24475 (CFLAGS-test-signgam-uint-static.c): Likewise.
24476 (CFLAGS-test-signgam-uint-init-static.c): Likewise.
24477 (CFLAGS-test-signgam-ullong.c): Likewise.
24478 (CFLAGS-test-signgam-ullong-init.c): Likewise.
24479 (CFLAGS-test-signgam-ullong-static.c): Likewise.
24480 (CFLAGS-test-signgam-ullong-init-static.c): Likewise.
24481 (CFLAGS-test-math-cxx11.cc): Likewise.
24482 (CFLAGS-test-math-isinff.cc): Likewise.
24483 (CFLAGS-test-math-iszero.cc): Likewise.
24484 (CFLAGS-test-math-issignaling.cc): Likewise.
24485 (CFLAGS-test-math-iscanonical.cc): Likewise.
24486 (CFLAGS-test-iszero-excess-precision.c): Likewise.
24487 (CFLAGS-test-iseqsig-excess-precision.c): Likewise.
24488 (CFLAGS-test-flt-eval-method.c): Likewise.
24489 (CFLAGS-test-fe-snans-always-signal.c): Likewise.
24490 (CFLAGS-test-finite-macros.c): Likewise.
24491 * misc/Makefile (CFLAGS-select.c): Likewise.
24492 (CFLAGS-tsearch.c): Likewise.
24493 (CFLAGS-lsearch.c): Likewise.
24494 (CFLAGS-pselect.c): Likewise.
24495 (CFLAGS-readv.c): Likewise.
24496 (CFLAGS-writev.c): Likewise.
24497 (CFLAGS-preadv.c): Likewise.
24498 (CFLAGS-preadv64.c): Likewise.
24499 (CFLAGS-pwritev.c): Likewise.
24500 (CFLAGS-pwritev64.c): Likewise.
24501 (CFLAGS-preadv2.c): Likewise.
24502 (CFLAGS-preadv64v2.c): Likewise.
24503 (CFLAGS-pwritev2.c): Likewise.
24504 (CFLAGS-pwritev64v2.c): Likewise.
24505 (CFLAGS-usleep.c): Likewise.
24506 (CFLAGS-syslog.c): Likewise.
24507 (CFLAGS-error.c): Likewise.
24508 (CFLAGS-getpass.c): Likewise.
24509 (CFLAGS-mkstemp.c): Likewise.
24510 (CFLAGS-mkstemp64.c): Likewise.
24511 (CFLAGS-getsysstats.c): Likewise.
24512 (CFLAGS-getusershell.c): Likewise.
24513 (CFLAGS-err.c): Likewise.
24514 (CFLAGS-tst-tsearch.c): Likewise.
24515 (CFLAGS-msync.c): Likewise.
24516 (CFLAGS-fdatasync.c): Likewise.
24517 (CFLAGS-fsync.c): Likewise.
24518 * nptl/Makefile (CFLAGS-nptl-init.c): Likewise.
24519 (CFLAGS-unwind.c): Likewise.
24520 (CFLAGS-unwind-forcedunwind.c): Likewise.
24521 (CFLAGS-pthread_cancel.c): Likewise.
24522 (CFLAGS-pthread_setcancelstate.c): Likewise.
24523 (CFLAGS-pthread_setcanceltype.c): Likewise.
24524 (CFLAGS-cancellation.c): Likewise.
24525 (CFLAGS-libc-cancellation.c): Likewise.
24526 (CFLAGS-pthread_exit.c): Likewise.
24527 (CFLAGS-forward.c): Likewise.
24528 (CFLAGS-pthread_testcancel.c): Likewise.
24529 (CFLAGS-pthread_join.c): Likewise.
24530 (CFLAGS-pthread_timedjoin.c): Likewise.
24531 (CFLAGS-pthread_once.c): Likewise.
24532 (CFLAGS-pthread_cond_wait.c): Likewise.
24533 (CFLAGS-sem_wait.c): Likewise.
24534 (CFLAGS-sem_timedwait.c): Likewise.
24535 (CFLAGS-fcntl.c): Likewise.
24536 (CFLAGS-lockf.c): Likewise.
24537 (CFLAGS-pread.c): Likewise.
24538 (CFLAGS-pread64.c): Likewise.
24539 (CFLAGS-pwrite.c): Likewise.
24540 (CFLAGS-pwrite64.c): Likewise.
24541 (CFLAGS-wait.c): Likewise.
24542 (CFLAGS-waitpid.c): Likewise.
24543 (CFLAGS-sigwait.c): Likewise.
24544 (CFLAGS-msgrcv.c): Likewise.
24545 (CFLAGS-msgsnd.c): Likewise.
24546 (CFLAGS-tcdrain.c): Likewise.
24547 (CFLAGS-open.c): Likewise.
24548 (CFLAGS-open64.c): Likewise.
24549 (CFLAGS-pause.c): Likewise.
24550 (CFLAGS-recv.c): Likewise.
24551 (CFLAGS-send.c): Likewise.
24552 (CFLAGS-accept.c): Likewise.
24553 (CFLAGS-sendto.c): Likewise.
24554 (CFLAGS-connect.c): Likewise.
24555 (CFLAGS-recvfrom.c): Likewise.
24556 (CFLAGS-recvmsg.c): Likewise.
24557 (CFLAGS-sendmsg.c): Likewise.
24558 (CFLAGS-close.c): Likewise.
24559 (CFLAGS-read.c): Likewise.
24560 (CFLAGS-write.c): Likewise.
24561 (CFLAGS-nanosleep.c): Likewise.
24562 (CFLAGS-sigsuspend.c): Likewise.
24563 (CFLAGS-msync.c): Likewise.
24564 (CFLAGS-fdatasync.c): Likewise.
24565 (CFLAGS-fsync.c): Likewise.
24566 (CFLAGS-pt-system.c): Likewise.
24567 (CFLAGS-tst-cleanup2.c): Likewise.
24568 (CFLAGS-tst-cleanupx2.c): Likewise.
24569 (CFLAGS-flockfile.c): Likewise.
24570 (CFLAGS-ftrylockfile.c): Likewise.
24571 (CFLAGS-funlockfile.c): Likewise.
24572 (CFLAGS-tst-initializers1.c): Likewise.
24573 (CFLAGS-tst-initializers1-c89.c): Likewise.
24574 (CFLAGS-tst-initializers1-c99.c): Likewise.
24575 (CFLAGS-tst-initializers1-c11.c): Likewise.
24576 (CFLAGS-tst-initializers1-gnu89.c): Likewise.
24577 (CFLAGS-tst-initializers1-gnu99.c): Likewise.
24578 (CFLAGS-tst-initializers1-gnu11.c): Likewise.
24579 * nscd/Makefile (CFLAGS-nscd_getpw_r.c): Likewise.
24580 (CFLAGS-nscd_getgr_r.c): Likewise.
24581 (CFLAGS-nscd_gethst_r.c): Likewise.
24582 (CFLAGS-nscd_getai.c): Likewise.
24583 (CFLAGS-nscd_initgroups.c): Likewise.
24584 * posix/Makefile (CFLAGS-getaddrinfo.c): Likewise.
24585 (CFLAGS-pause.c): Likewise.
24586 (CFLAGS-pread.c): Likewise.
24587 (CFLAGS-pread64.c): Likewise.
24588 (CFLAGS-pwrite.c): Likewise.
24589 (CFLAGS-pwrite64.c): Likewise.
24590 (CFLAGS-sleep.c): Likewise.
24591 (CFLAGS-wait.c): Likewise.
24592 (CFLAGS-waitid.c): Likewise.
24593 (CFLAGS-waitpid.c): Likewise.
24594 (CFLAGS-getopt.c): Likewise.
24595 (CFLAGS-wordexp.c): Likewise.
24596 (CFLAGS-sysconf.c): Likewise.
24597 (CFLAGS-pathconf.c): Likewise.
24598 (CFLAGS-fpathconf.c): Likewise.
24599 (CFLAGS-spawn.c): Likewise.
24600 (CFLAGS-spawnp.c): Likewise.
24601 (CFLAGS-spawni.c): Likewise.
24602 (CFLAGS-glob.c): Likewise.
24603 (CFLAGS-glob64.c): Likewise.
24604 (CFLAGS-getconf.c): Likewise.
24605 (CFLAGS-nanosleep.c): Likewise.
24606 * pwd/Makefile (CFLAGS-getpwent_r.c): Likewise.
24607 (CFLAGS-getpwent.c): Likewise.
24608 (CFLAGS-getpw.c): Likewise.
24609 (CFLAGS-fgetpwent_r.c): Likewise.
24610 * resolv/Makefile (CFLAGS-res_hconf.c): Likewise.
24611 * rt/Makefile (CFLAGS-aio_suspend.c): Likewise.
24612 (CFLAGS-mq_timedreceive.c): Likewise.
24613 (CFLAGS-mq_timedsend.c): Likewise.
24614 (CFLAGS-clock_nanosleep.c): Likewise.
24615 (CFLAGS-librt-cancellation.c): Likewise.
24616 * shadow/Makefile (CFLAGS-getspent_r.c): Likewise.
24617 (CFLAGS-getspent.c): Likewise.
24618 (CFLAGS-fgetspent.c): Likewise.
24619 (CFLAGS-fgetspent_r.c): Likewise.
24620 (CFLAGS-putspent.c): Likewise.
24621 (CFLAGS-getspnam.c): Likewise.
24622 (CFLAGS-getspnam_r.c): Likewise.
24623 * signal/Makefile (CFLAGS-sigpause.c): Likewise.
24624 (CFLAGS-sigsuspend.c): Likewise.
24625 (CFLAGS-sigtimedwait.c): Likewise.
24626 (CFLAGS-sigwait.c): Likewise.
24627 (CFLAGS-sigwaitinfo.c): Likewise.
24628 (CFLAGS-sigreturn.c): Likewise.
24629 * stdio-common/Makefile (CFLAGS-vfprintf.c): Likewise.
24630 (CFLAGS-vfwprintf.c): Likewise.
24631 (CFLAGS-tmpfile.c): Likewise.
24632 (CFLAGS-tmpfile64.c): Likewise.
24633 (CFLAGS-tempname.c): Likewise.
24634 (CFLAGS-psignal.c): Likewise.
24635 (CFLAGS-vprintf.c): Likewise.
24636 (CFLAGS-cuserid.c): Likewise.
24637 (CFLAGS-errlist.c): Likewise.
24638 (CFLAGS-siglist.c): Likewise.
24639 (CFLAGS-scanf15.c): Likewise.
24640 (CFLAGS-scanf17.c): Likewise.
24641 * stdlib/Makefile (CFLAGS-bsearch.c): Likewise.
24642 (CFLAGS-msort.c): Likewise.
24643 (CFLAGS-qsort.c): Likewise.
24644 (CFLAGS-system.c): Likewise.
24645 (CFLAGS-fmtmsg.c): Likewise.
24646 (CFLAGS-strfmon.c): Likewise.
24647 (CFLAGS-strfmon_l.c): Likewise.
24648 (CFLAGS-strfromd.c): Likewise.
24649 (CFLAGS-strfromf.c): Likewise.
24650 (CFLAGS-strfroml.c): Likewise.
24651 (CFLAGS-tst-bsearch.c): Likewise.
24652 (CFLAGS-tst-qsort.c): Likewise.
24653 (CFLAGS-tst-makecontext2.c): Likewise.
24654 * sunrpc/Makefile (CFLAGS-xbootparam_prot.c): Likewise.
24655 (CFLAGS-xnlm_prot.c): Likewise.
24656 (CFLAGS-xrstat.c): Likewise.
24657 (CFLAGS-xyppasswd.c): Likewise.
24658 (CFLAGS-xklm_prot.c): Likewise.
24659 (CFLAGS-xrex.c): Likewise.
24660 (CFLAGS-xsm_inter.c): Likewise.
24661 (CFLAGS-xmount.c): Likewise.
24662 (CFLAGS-xrusers.c): Likewise.
24663 (CFLAGS-xspray.c): Likewise.
24664 (CFLAGS-xnfs_prot.c): Likewise.
24665 (CFLAGS-xrquota.c): Likewise.
24666 (CFLAGS-xkey_prot.c): Likewise.
24667 (CFLAGS-auth_unix.c): Likewise.
24668 (CFLAGS-key_call.c): Likewise.
24669 (CFLAGS-pmap_rmt.c): Likewise.
24670 (CFLAGS-clnt_perr.c): Likewise.
24671 (CFLAGS-openchild.c): Likewise.
24672 * sysvipc/Makefile (CFLAGS-msgrcv.c): Likewise.
24673 (CFLAGS-msgsnd.c): Likewise.
24674 * termios/Makefile (CFLAGS-tcdrain.c): Likewise.
24675 * time/Makefile (CFLAGS-tzfile.c): Likewise.
24676 (CFLAGS-tzset.c): Likewise.
24677 (CFLAGS-getdate.c): Likewise.
24678 (CFLAGS-test_time.c): Likewise.
24679 (CPPFLAGS-tst-tzname.c): Likewise.
24680 * timezone/Makefile (CFLAGS-zdump.c): Likewise.
24681 (CFLAGS-zic.c): Likewise.
24682 * wcsmbs/Makefile (CFLAGS-wcwidth.c): Likewise.
24683 (CFLAGS-wcswidth.c): Likewise.
24684 (CFLAGS-wcstol.c): Likewise.
24685 (CFLAGS-wcstoul.c): Likewise.
24686 (CFLAGS-wcstoll.c): Likewise.
24687 (CFLAGS-wcstoull.c): Likewise.
24688 (CFLAGS-wcstod.c): Likewise.
24689 (CFLAGS-wcstold.c): Likewise.
24690 (CFLAGS-wcstof128.c): Likewise.
24691 (CFLAGS-wcstof.c): Likewise.
24692 (CFLAGS-wcstol_l.c): Likewise.
24693 (CFLAGS-wcstoul_l.c): Likewise.
24694 (CFLAGS-wcstoll_l.c): Likewise.
24695 (CFLAGS-wcstoull_l.c): Likewise.
24696 (CFLAGS-wcstod_l.c): Likewise.
24697 (CFLAGS-wcstold_l.c): Likewise.
24698 (CFLAGS-wcstof128_l.c): Likewise.
24699 (CFLAGS-wcstof_l.c): Likewise.
24700 (CPPFLAGS-tst-wchar-h.c): Likewise.
24701 (CPPFLAGS-wcstold_l.c): Likewise.
24702
24703 2017-12-11 Paul A. Clarke <pc@us.ibm.com>
24704
24705 * sysdeps/ieee754/flt-32/s_cosf.c: New implementation.
24706
24707 2017-12-11 Adhemerval Zanella <azanella@linux.vnet.ibm.com>
24708 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
24709
24710 * manual/tunables.texi (Hardware Capability Tunables): Document
24711 glibc.tune.cached_memopt.
24712 * sysdeps/powerpc/cpu-features.c: New file.
24713 * sysdeps/powerpc/cpu-features.h: New file.
24714 * sysdeps/powerpc/dl-procinfo.c [!IS_IN(ldconfig)]: Add
24715 _dl_powerpc_cpu_features.
24716 * sysdeps/powerpc/dl-tunables.list: New file.
24717 * sysdeps/powerpc/ldsodefs.h: Include cpu-features.h.
24718 * sysdeps/powerpc/powerpc32/power4/multiarch/init-arch.h
24719 (INIT_ARCH): Initialize use_aligned_memopt.
24720 * sysdeps/powerpc/powerpc64/dl-machine.h [defined(SHARED &&
24721 IS_IN(rtld))]: Restrict dl_platform_init availability and
24722 initialize CPU features used by tunables.
24723 * sysdeps/powerpc/powerpc64/multiarch/Makefile (sysdep_routines):
24724 Add memcpy-power8-cached.
24725 * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c: Add
24726 __memcpy_power8_cached.
24727 * sysdeps/powerpc/powerpc64/multiarch/memcpy.c: Likewise.
24728 * sysdeps/powerpc/powerpc64/multiarch/memcpy-power8-cached.S:
24729 New file.
24730
24731 2017-12-11 H.J. Lu <hongjiu.lu@intel.com>
24732
24733 * string/Makefile (CFLAGS-inl-tester.c): Replace = with +=.
24734 (CFLAGS-noinl-tester.c): Likewise.
24735 (CFLAGS-tst-strlen.c): Likewise.
24736 (CFLAGS-stratcliff.c): Likewise.
24737 (CFLAGS-test-ffs.c): Likewise.
24738 (CFLAGS-tst-inlcall.c): Likewise.
24739 (CFLAGS-tst-xbzero-opt.c): Likewise.
24740 (CFLAGS-memcpy.c): Likewise.
24741 (CFLAGS-wordcopy.c): Likewise.
24742
24743 2017-12-11 Stefan Liebler <stli@linux.vnet.ibm.com>
24744
24745 * sysdeps/s390/s390-64/dl-trampoline.h (_dl_runtime_resolve):
24746 Store r15 on stack and add cfi rule.
24747 * sysdeps/s390/s390-32/dl-trampoline.h (_dl_runtime_resolve):
24748 Likewise.
24749
24750 2017-12-10 Aurelien Jarno <aurelien@aurel32.net>
24751
24752 [BZ #22577]
24753 * elf/rtld.c (init_tls): Add missing new line to the _dl_fatal_printf
24754 call.
24755
24756 2017-12-07 H.J. Lu <hongjiu.lu@intel.com>
24757
24758 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
24759 Add s_sinf-sse2 and s_sinf-fma.
24760 (CFLAGS-s_sinf-fma.c): New.
24761 * sysdeps/x86_64/fpu/multiarch/s_sinf-fma.c: New file.
24762 * sysdeps/x86_64/fpu/multiarch/s_sinf-sse2.c: Likewise.
24763 * sysdeps/x86_64/fpu/multiarch/s_sinf.c: Likewise.
24764
24765 2017-12-07 H.J. Lu <hongjiu.lu@intel.com>
24766
24767 * sysdeps/x86_64/fpu/s_sinf.S: Removed.
24768
24769 2017-12-07 Joseph Myers <joseph@codesourcery.com>
24770
24771 [BZ #22568]
24772 * math/s_ctan_template.c (M_DECL_FUNC (__ctan)): Set imaginary
24773 part of result to imaginary part of argument if it is zero and the
24774 real part of the argument is not finite.
24775 * math/s_ctanh_template.c (M_DECL_FUNC (__ctanh)): Set real part
24776 of result to real part of argument if it is zero and the imaginary
24777 part of the argument is not finite.
24778
24779 2017-12-07 Mike FABIAN <mfabian@redhat.com>
24780
24781 [BZ #22524]
24782 * localedata/Makefile: Add lt_LT.UTF-8 to test-input
24783 and to the list of locales to be built for testing.
24784 * localedata/lt_LT.UTF-8.in: New file for testing the collation.
24785 * localedata/locales/lt_LT (LC_COLLATE): Use “copy "iso14651_t1"”
24786 and build the collation rules upon that.
24787
24788 2017-12-07 Joseph Myers <joseph@codesourcery.com>
24789
24790 * bits/floatn-common.h (__HAVE_FLOAT32): Define to 1.
24791 * manual/math.texi (Mathematics): Document support for _Float32.
24792 * math/Makefile (test-types): Add float32.
24793 * math/Versions (GLIBC_2.27): Add _Float32 functions.
24794 * stdlib/Versions (GLIBC_2.27): Likewise.
24795 * wcsmbs/Versions (GLIBC_2.27): Likewise.
24796 * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Update.
24797 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
24798 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
24799 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
24800 * sysdeps/unix/sysv/linux/arm/libc.abilist: Likewise.
24801 * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
24802 * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
24803 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
24804 * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
24805 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
24806 * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
24807 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
24808 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
24809 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
24810 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
24811 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
24812 * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
24813 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
24814 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
24815 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
24816 * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist:
24817 Likewise.
24818 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
24819 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
24820 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
24821 * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise.
24822 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
24823 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
24824 Likewise.
24825 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist:
24826 Likewise.
24827 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
24828 Likewise.
24829 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
24830 Likewise.
24831
24832 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist:
24833 Likewise.
24834 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist:
24835 Likewise.
24836 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist:
24837 Likewise.
24838 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist:
24839 Likewise.
24840 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
24841 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
24842 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
24843 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
24844 * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
24845 * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
24846 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
24847 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
24848 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
24849 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
24850 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libc.abilist:
24851 Likewise.
24852 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist:
24853 Likewise.
24854 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libc.abilist:
24855 Likewise.
24856 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist:
24857 Likewise.
24858 * sysdeps/unix/sysv/linux/tile/tilepro/libc.abilist: Likewise.
24859 * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
24860 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
24861 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
24862 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
24863 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
24864 * sysdeps/i386/fpu/libm-test-ulps: Likewise.
24865 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
24866
24867 2017-12-06 Joseph Myers <joseph@codesourcery.com>
24868
24869 * stdlib/strtof.c: Include <bits/floatn.h>
24870 [__HAVE_FLOAT32 && !__HAVE_DISTINCT_FLOAT32] (strtof32): Define
24871 and later undefine as macro. Define as weak alias if
24872 [!USE_WIDE_CHAR].
24873 [__HAVE_FLOAT32 && !__HAVE_DISTINCT_FLOAT32] (wcstof32): Define
24874 and later undefine as macro. Define as weak alias if
24875 [USE_WIDE_CHAR].
24876 * stdlib/strtof_l.c: Include <bits/floatn.h>
24877 [__HAVE_FLOAT32 && !__HAVE_DISTINCT_FLOAT32] (strtof32_l): Define
24878 and later undefine as macro. Define as weak alias if
24879 [!USE_WIDE_CHAR].
24880 [__HAVE_FLOAT32 && !__HAVE_DISTINCT_FLOAT32] (wcstof32_l): Define
24881 and later undefine as macro. Define as weak alias if
24882 [USE_WIDE_CHAR].
24883
24884 * stdlib/strfromf.c: Include <bits/floatn.h>.
24885 [__HAVE_FLOAT32 && !__HAVE_DISTINCT_FLOAT32] (strfromf32): Define
24886 and later undefine as macro and define as weak alias.
24887
24888 * math/test-float32.h: New file.
24889
24890 * sysdeps/generic/libm-alias-float.h: Include <bits/floatn.h>.
24891 [__HAVE_FLOAT32 && !__HAVE_DISTINCT_FLOAT32]
24892 (libm_alias_float_other_r): Create f32 alias.
24893 (libm_alias_float_r): Use semicolon before call to
24894 libm_alias_float_other_r.
24895
24896 * sysdeps/ia64/fpu/e_exp2f.S (__exp2f): Use exp2 not __exp2 as
24897 second argument to libm_alias_float_other.
24898 * sysdeps/ia64/fpu/e_log2f.S (__log2f): Use log2 not __log2 as
24899 second argument to libm_alias_float_other.
24900 * sysdeps/ia64/fpu/e_powf.S (__powf): Use pow not __pow as second
24901 argument to libm_alias_float_other.
24902
24903 [BZ #22561]
24904 * math/s_cacosh_template.c (M_DECL_FUNC (__cacosh)): Use pi/2 for
24905 real part of result for argument 0 + i * NaN.
24906 * math/libm-test-cacosh.inc (cacosh_test_data): Update expected
24907 results for tests of 0 + i * NaN.
24908
24909 2017-12-06 Adhemerval Zanella <adhemerval.zanella@linaro.org>
24910
24911 * sysdeps/alpha/fpu/libm-test-ulps: Update.
24912
24913 2017-12-06 David S. Miller <davem@davemloft.net>
24914
24915 * sysdeps/sparc/fpu/libm-test-ulps: Update
24916 exp_{downward,towardzero,upward} ulps.
24917
24918 2017-12-06 Joseph Myers <joseph@codesourcery.com>
24919
24920 * sysdeps/ieee754/ldbl-96/e_j1l.c (qone): Don't make local
24921 variables static.
24922
24923 * sysdeps/ieee754/ldbl-128/e_j0l.c (Y0_2N): Make const.
24924 (Y0_2D): Likewise.
24925 * sysdeps/ieee754/ldbl-128/e_j1l.c (Y0_2N): Likewise.
24926 (Y0_2D): Likewise.
24927 * sysdeps/ieee754/ldbl-128ibm/e_j0l.c (Y0_2N): Likewise.
24928 (Y0_2D): Likewise.
24929 * sysdeps/ieee754/ldbl-128ibm/e_j1l.c (Y0_2N): Likewise.
24930 (Y0_2D): Likewise.
24931
24932 2017-12-06 Mike FABIAN <mfabian@redhat.com>
24933
24934 [BZ #22515]
24935 * localedata/Makefile: Add hsb_DE.UTF-8 to test-input
24936 and to the list of locales to be built for testing.
24937 * localedata/hsb_DE.UTF-8.in: New file for testing the collation.
24938 * localedata/locales/hsb_DE (LC_COLLATE): Use “copy "iso14651_t1"”
24939 and build the collation rules upon that.
24940
24941 2017-12-06 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
24942
24943 * NEWS: Add sinf to list of optimized functions.
24944
24945 2017-12-06 Joseph Myers <joseph@codesourcery.com>
24946
24947 * bits/floatn-common.h (__HAVE_FLOAT64): Define to 1.
24948 (__HAVE_FLOAT32X): Likewise.
24949 * manual/math.texi (Mathematics): Document support for _Float64
24950 and _Float32x.
24951 * math/Makefile (test-types): Add float64 and float32x.
24952 * math/Versions (GLIBC_2.27): Add _Float64 and _Float32x
24953 functions.
24954 * stdlib/Versions (GLIBC_2.27): Likewise.
24955 * wcsmbs/Versions (GLIBC_2.27): Likewise.
24956 * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Update.
24957 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
24958 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
24959 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
24960 * sysdeps/unix/sysv/linux/arm/libc.abilist: Likewise.
24961 * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
24962 * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
24963 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
24964 * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
24965 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
24966 * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
24967 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
24968 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
24969 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
24970 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
24971 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
24972 * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
24973 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
24974 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
24975 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
24976 * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist:
24977 Likewise.
24978 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
24979 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
24980 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
24981 * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise.
24982 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
24983 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
24984 Likewise.
24985 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist:
24986 Likewise.
24987 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
24988 Likewise.
24989 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
24990 Likewise.
24991 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist:
24992 Likewise.
24993 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist:
24994 Likewise.
24995 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist:
24996 Likewise.
24997 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist:
24998 Likewise.
24999 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
25000 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
25001 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
25002 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
25003 * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
25004 * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
25005 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
25006 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
25007 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
25008 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
25009 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libc.abilist:
25010 Likewise.
25011 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist:
25012 Likewise.
25013 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libc.abilist:
25014 Likewise.
25015 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist:
25016 Likewise.
25017 * sysdeps/unix/sysv/linux/tile/tilepro/libc.abilist: Likewise.
25018 * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
25019 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
25020 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
25021 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
25022 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
25023 * sysdeps/i386/fpu/libm-test-ulps: Likewise.
25024 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
25025
25026 2017-12-05 Joseph Myers <joseph@codesourcery.com>
25027
25028 * bits/floatn-common.h: Include <bits/long-double.h>.
25029 [__HAVE_FLOAT64 && (!__GNUC_PREREQ (7, 0) || defined __cplusplus)
25030 && __NO_LONG_DOUBLE_MATH] (__f64): Use suffix 'l'.
25031 [__HAVE_FLOAT64 && (!__GNUC_PREREQ (7, 0) || defined __cplusplus)
25032 && __NO_LONG_DOUBLE_MATH] (__CFLOAT64): Use _Complex long double.
25033 [__HAVE_FLOAT64 && (!__GNUC_PREREQ (7, 0) || defined __cplusplus)
25034 && __NO_LONG_DOUBLE_MATH] (_Float64): Use long double.
25035 [__HAVE_FLOAT64 && !__GNUC_PREREQ (7, 0) && __NO_LONG_DOUBLE_MATH]
25036 (__builtin_huge_valf64): Use __builtin_huge_vall.
25037 [__HAVE_FLOAT64 && !__GNUC_PREREQ (7, 0) && __NO_LONG_DOUBLE_MATH]
25038 (__builtin_inff64): Use __builtin_infl.
25039 [__HAVE_FLOAT64 && !__GNUC_PREREQ (7, 0) && __NO_LONG_DOUBLE_MATH]
25040 (__builtin_nanf64): Use __builtin_nanl.
25041 [__HAVE_FLOAT64 && !__GNUC_PREREQ (7, 0) && __NO_LONG_DOUBLE_MATH]
25042 (__builtin_nansf64): Use __builtin_nansl.
25043
25044 2017-12-05 Rogerio A. Cardoso <rcardoso@linux.vnet.ibm.com>
25045 Paul E. Murphy <murphyp@linux.vnet.ibm.com>
25046 Carlos O'Donell <carlos@redhat.com>
25047
25048 * elf/dl-tunables.list: Add elision parameters.
25049 * manual/tunables.texi: Add entries about elision tunable.
25050 * sysdeps/unix/sysv/linux/powerpc/elision-conf.c:
25051 Add callback functions to dynamically enable/disable elision.
25052 Add multiple callbacks functions to set elision parameters.
25053 Deleted __libc_enable_secure check.
25054 * sysdeps/unix/sysv/linux/s390/elision-conf.c: Likewise.
25055 * sysdeps/unix/sysv/linux/x86/elision-conf.c: Likewise.
25056 * configure: Regenerated.
25057 * configure.ac: Option enable_lock_elision was deleted.
25058 * config.h.in: ENABLE_LOCK_ELISION flag was deleted.
25059 * config.make.in: Remove references to enable_lock_elision.
25060 * manual/install.texi: Elision configure option was removed.
25061 * INSTALL: Regenerated to remove enable_lock_elision.
25062 * nptl/Makefile:
25063 Disable elision so it can verify error case for destroying a mutex.
25064 * sysdeps/powerpc/nptl/elide.h:
25065 Cleanup ENABLE_LOCK_ELISION check.
25066 Deleted macros for the case when ENABLE_LOCK_ELISION was not defined.
25067 * sysdeps/s390/configure: Regenerated.
25068 * sysdeps/s390/configure.ac: Remove references to enable_lock_elision..
25069 * nptl/tst-mutex8.c:
25070 Deleted all #ifndef ENABLE_LOCK_ELISION from the test.
25071 * sysdeps/powerpc/powerpc32/sysdep.h:
25072 Deleted all ENABLE_LOCK_ELISION checks.
25073 * sysdeps/powerpc/powerpc64/sysdep.h: Likewise.
25074 * sysdeps/powerpc/sysdep.h: Likewise.
25075 * sysdeps/s390/nptl/bits/pthreadtypes-arch.h: Likewise.
25076 * sysdeps/unix/sysv/linux/powerpc/force-elision.h: Likewise.
25077 * sysdeps/unix/sysv/linux/s390/elision-conf.h: Likewise.
25078 * sysdeps/unix/sysv/linux/s390/force-elision.h: Likewise.
25079 * sysdeps/unix/sysv/linux/s390/lowlevellock.h: Likewise.
25080 * sysdeps/unix/sysv/linux/s390/Makefile: Remove references to
25081 enable-lock-elision.
25082
25083 2017-12-05 Joseph Myers <joseph@codesourcery.com>
25084
25085 * stdlib/strtod.c: Include <bits/floatn.h>.
25086 (BUILD_DOUBLE): New macro.
25087 [BUILD_DOUBLE && __HAVE_FLOAT64 && !__HAVE_DISTINCT_FLOAT64]
25088 (strtof64): Define and later undefine as macro. Define as weak
25089 alias if [!USE_WIDE_CHAR].
25090 [BUILD_DOUBLE && __HAVE_FLOAT64 && !__HAVE_DISTINCT_FLOAT64]
25091 (wcstof64): Define and later undefine as macro. Define as weak
25092 alias if [USE_WIDE_CHAR].
25093 [BUILD_DOUBLE && __HAVE_FLOAT32X && !__HAVE_DISTINCT_FLOAT32X]
25094 (strtof32x): Define and later undefine as macro. Define as weak
25095 alias if [!USE_WIDE_CHAR].
25096 [BUILD_DOUBLE && __HAVE_FLOAT32X && !__HAVE_DISTINCT_FLOAT32X]
25097 (wcstof32x): Define and later undefine as macro. Define as weak
25098 alias if [USE_WIDE_CHAR].
25099 * stdlib/strtod_l.c: Include <bits/floatn.h>.
25100 (BUILD_DOUBLE): New macro.
25101 [BUILD_DOUBLE && __HAVE_FLOAT64 && !__HAVE_DISTINCT_FLOAT64]
25102 (strtof64_l): Define and later undefine as macro. Define as weak
25103 alias if [!USE_WIDE_CHAR].
25104 [BUILD_DOUBLE && __HAVE_FLOAT64 && !__HAVE_DISTINCT_FLOAT64]
25105 (wcstof64_l): Define and later undefine as macro. Define as weak
25106 alias if [USE_WIDE_CHAR].
25107 [BUILD_DOUBLE && __HAVE_FLOAT32X && !__HAVE_DISTINCT_FLOAT32X]
25108 (strtof32x_l): Define and later undefine as macro. Define as weak
25109 alias if [!USE_WIDE_CHAR].
25110 [BUILD_DOUBLE && __HAVE_FLOAT32X && !__HAVE_DISTINCT_FLOAT32X]
25111 (wcstof32x_l): Define and later undefine as macro. Define as weak
25112 alias if [USE_WIDE_CHAR].
25113
25114 2017-12-05 Adhemerval Zanella <adhemerval.zanella@linaro.org>
25115
25116 * sysdeps/ieee754/flt-32/s_sinf.c (ones): Define as double.
25117 (reduced): Use ones as double instead of integer.
25118
25119 2017-12-05 Szabolcs Nagy <szabolcs.nagy@arm.com>
25120
25121 * sysdeps/ieee754/flt-32/s_sinf.c (sinf): Use isless.
25122
25123 2017-12-05 Joseph Myers <joseph@codesourcery.com>
25124
25125 * stdlib/strfromd.c: Include <bits/floatn.h>.
25126 [__HAVE_FLOAT64 && !__HAVE_DISTINCT_FLOAT64] (strfromf64): Define
25127 and later undefine as macro and define as weak alias.
25128 [__HAVE_FLOAT32X && !__HAVE_DISTINCT_FLOAT32X] (strfromf32x):
25129 Likewise.
25130
25131 * math/test-float32x.h: New file.
25132 * math/test-float64.h: Likewise.
25133
25134 * sysdeps/generic/libm-alias-double.h: Include <bits/floatn.h>.
25135 (libm_alias_double_other_r_f64): New macro.
25136 (libm_alias_double_other_r_f32x): Likewise.
25137 (libm_alias_double_other_r): Use libm_alias_double_other_r_f64 and
25138 libm_alias_double_other_r_f32x.
25139 (libm_alias_double_r): Use semicolon before call to
25140 libm_alias_double_other_r.
25141 * sysdeps/ieee754/ldbl-opt/libm-alias-double.h: Include
25142 <bits/floatn.h>.
25143 (libm_alias_double_other_r_f64): New macro.
25144 (libm_alias_double_other_r_f32x): Likewise.
25145 (libm_alias_double_other_r): Use libm_alias_double_other_r_f64 and
25146 libm_alias_double_other_r_f32x.
25147
25148 2017-12-05 H.J. Lu <hongjiu.lu@intel.com>
25149
25150 * sysdeps/ieee754/flt-32/s_sinf.c (reduced): Replace long with
25151 int.
25152 (SINF_FUNC): Likewise. Replace floor with simple casts.
25153
25154 2017-12-05 Mike FABIAN <mfabian@redhat.com>
25155
25156 [BZ #22517]
25157 * localedata/Makefile: Add et_EE.UTF-8 to test-input
25158 and to the list of locales to be built for testing.
25159 * localedata/et_EE.UTF-8.in: New file for testing the collation.
25160 * localedata/locales/et_EE (LC_COLLATE): Use “copy "iso14651_t1"”
25161 and build the collation rules upon that.
25162
25163 2017-12-05 Chris Metcalf <cmetcalf@mellanox.com>
25164
25165 * sysdeps/tile/tilegx/string-endian.h (VECOP): Provide working
25166 replacements for __insn_xxx builtins for v1cmpeq, v1cmpltu,
25167 v1cmpne, v1add, v1shru, v1shl (register and immediate versions).
25168 * sysdeps/tile/tilegx/memchr.c (__memchr): Use VECOP function
25169 instead of __insn__xxx.
25170 * sysdeps/tile/tilegx/rawmemchr.c (__rawmemchr): Likewise.
25171 * sysdeps/tile/tilegx/strstr.c (strcasechr): Likewise.
25172 * sysdeps/tile/tilegx/strrchr.c (strrchr): Likewise.
25173 * sysdeps/tile/tilegx/strlen.c (strlen): Likewise.
25174 * sysdeps/tile/tilegx/strchrnul.c (__strchrnul): Likewise.
25175 * sysdeps/tile/tilegx/strchr.c (strchr): Likewise.
25176
25177 2017-12-05 Florian Weimer <fweimer@redhat.com>
25178
25179 Linux: Implement interfaces for memory protection keys
25180 * support/Makefile (libsupport-routines): Add xraise, xsigaction,
25181 xsignal, xsysconf.
25182 * support/xsignal.h (xraise, xsignal, xsigaction): Declare.
25183 * support/xunistd.h (xsysconf): Declare.
25184 * support/xraise.c: New file.
25185 * support/xsigaction.c: Likewise.
25186 * support/xsignal.c: Likewise.
25187 * support/xsysconf.c: Likewise.
25188 * sysdeps/unix/sysv/linux/Makefile [misc] (routines): Add
25189 pkey_set, pkey_get, pkey_mprotect.
25190 [misc] (tests): Add tst-pkey.
25191 (tst-pkey): Link with -lpthread.
25192 * sysdeps/unix/sysv/linux/Versions (GLIBC_2.27): Add pkey_alloc,
25193 pkey_free, pkey_set, pkey_get, pkey_mprotect.
25194 * sysdeps/unix/sysv/linux/bits/mman-linux.h (PKEY_DISABLE_ACCESS)
25195 (PKEY_DISABLE_WRITE): Define.
25196 (pkey_alloc, pkey_free, pkey_set, pkey_get, pkey_mprotect):
25197 Declare.
25198 * sysdeps/unix/sysv/linux/bits/siginfo-consts.h (SEGV_BNDERR)
25199 (SEGV_PKUERR): Add.
25200 * sysdeps/unix/sysv/linux/pkey_get.c: New file.
25201 * sysdeps/unix/sysv/linux/pkey_set.c: Likewise.
25202 * sysdeps/unix/sysv/linux/pkey_mprotect.c: Likewise.
25203 * sysdeps/unix/sysv/linux/syscalls.list (pkey_alloc, pkey_free):
25204 Add.
25205 * sysdeps/unix/sysv/linux/tst-pkey.c: New file.
25206 * sysdeps/unix/sysv/linux/x86/arch-pkey.h: Likewise.
25207 * sysdeps/unix/sysv/linux/x86/pkey_get.c: Likewise.
25208 * sysdeps/unix/sysv/linux/x86/pkey_set.c: Likewise.
25209 * sysdeps/unix/sysv/linux/**.abilist: Update.
25210
25211 2017-12-05 Florian Weimer <fweimer@redhat.com>
25212
25213 * support/tst-test_compare.c (subprocess): Use long long instead
25214 of long argument for consistent type width across 32-bit and
25215 64-bit architectures.
25216 (do_test): Adjust expected output.
25217
25218 2017-12-05 Joseph Myers <joseph@codesourcery.com>
25219
25220 * sysdeps/powerpc/fpu/s_cosf.c: Include <libm-alias-float.h>.
25221 (cosf): Define using libm_alias_float.
25222 * sysdeps/powerpc/fpu/s_fabs.S: Include <libm-alias-float.h>.
25223 (fabsf): Define using libm_alias_float.
25224 * sysdeps/powerpc/fpu/s_fmaf.S: Include <libm-alias-float.h>.
25225 (fmaf): Define using libm_alias_float.
25226 * sysdeps/powerpc/fpu/s_rintf.c: Include <libm-alias-float.h>.
25227 (rintf): Define using libm_alias_float.
25228 * sysdeps/powerpc/fpu/s_sinf.c: Include <libm-alias-float.h>.
25229 (sinf): Define using libm_alias_float.
25230 * sysdeps/powerpc/power5+/fpu/s_modff.c: Include
25231 <libm-alias-float.h>.
25232 (modff): Define using libm_alias_float.
25233 * sysdeps/powerpc/power7/fpu/s_logbf.c: Include
25234 <libm-alias-float.h>.
25235 (logbf): Define using libm_alias_float.
25236 * sysdeps/powerpc/powerpc32/fpu/s_ceilf.S: Include
25237 <libm-alias-float.h>.
25238 (ceilf): Define using libm_alias_float.
25239 * sysdeps/powerpc/powerpc32/fpu/s_copysign.S: Include
25240 <libm-alias-float.h>.
25241 (copysignf): Define using libm_alias_float.
25242 * sysdeps/powerpc/powerpc32/fpu/s_floorf.S: Include
25243 <libm-alias-float.h>.
25244 (floorf): Define using libm_alias_float.
25245 * sysdeps/powerpc/powerpc32/fpu/s_llrintf.c: Include
25246 <libm-alias-float.h>.
25247 (llrintf): Define using libm_alias_float.
25248 * sysdeps/powerpc/powerpc32/fpu/s_llroundf.c: Include
25249 <libm-alias-float.h>.
25250 (llroundf): Define using libm_alias_float.
25251 * sysdeps/powerpc/powerpc32/fpu/s_lrint.S: Include
25252 <libm-alias-float.h>.
25253 (lrintf): Define using libm_alias_float.
25254 * sysdeps/powerpc/powerpc32/fpu/s_lround.S: Include
25255 <libm-alias-float.h>.
25256 (lroundf): Define using libm_alias_float.
25257 * sysdeps/powerpc/powerpc32/fpu/s_nearbyintf.S: Include
25258 <libm-alias-float.h>.
25259 (nearbyintf): Define using libm_alias_float.
25260 * sysdeps/powerpc/powerpc32/fpu/s_rintf.S: Include
25261 <libm-alias-float.h>.
25262 (rintf): Define using libm_alias_float.
25263 * sysdeps/powerpc/powerpc32/fpu/s_roundf.S: Include
25264 <libm-alias-float.h>.
25265 (roundf): Define using libm_alias_float.
25266 * sysdeps/powerpc/powerpc32/fpu/s_truncf.S: Include
25267 <libm-alias-float.h>.
25268 (truncf): Define using libm_alias_float.
25269 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceilf.c:
25270 Include <libm-alias-float.h>.
25271 (ceilf): Define using libm_alias_float.
25272 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_copysignf.c:
25273 Include <libm-alias-float.h>.
25274 (copysignf): Define using libm_alias_float.
25275 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floorf.c:
25276 Include <libm-alias-float.h>.
25277 (floorf): Define using libm_alias_float.
25278 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llrintf.c:
25279 Include <libm-alias-float.h>.
25280 (llrintf): Define using libm_alias_float.
25281 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llroundf.c:
25282 Include <libm-alias-float.h>.
25283 (llroundf): Define using libm_alias_float.
25284 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logbf.c:
25285 Include <libm-alias-float.h>.
25286 (logbf): Define using libm_alias_float.
25287 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lrintf.c:
25288 Include <libm-alias-float.h>.
25289 (lrintf): Define using libm_alias_float.
25290 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lroundf.c:
25291 Include <libm-alias-float.h>.
25292 (lroundf): Define using libm_alias_float.
25293 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_modff.c:
25294 Include <libm-alias-float.h>.
25295 (modff): Define using libm_alias_float.
25296 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_roundf.c:
25297 Include <libm-alias-float.h>.
25298 (roundf): Define using libm_alias_float.
25299 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_truncf.c:
25300 Include <libm-alias-float.h>.
25301 (truncf): Define using libm_alias_float.
25302 * sysdeps/powerpc/powerpc32/power4/fpu/s_llrintf.S: Include
25303 <libm-alias-float.h>.
25304 (llrintf): Define using libm_alias_float.
25305 * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S: Include
25306 <libm-alias-float.h>.
25307 (llroundf): Define using libm_alias_float.
25308 * sysdeps/powerpc/powerpc32/power5+/fpu/s_ceilf.S: Include
25309 <libm-alias-float.h>.
25310 (ceilf): Define using libm_alias_float.
25311 * sysdeps/powerpc/powerpc32/power5+/fpu/s_floorf.S: Include
25312 <libm-alias-float.h>.
25313 (floorf): Define using libm_alias_float.
25314 * sysdeps/powerpc/powerpc32/power5+/fpu/s_llround.S: Include
25315 <libm-alias-float.h>.
25316 (llroundf): Define using libm_alias_float.
25317 * sysdeps/powerpc/powerpc32/power5+/fpu/s_lround.S: Include
25318 <libm-alias-float.h>.
25319 (lroundf): Define using libm_alias_float.
25320 * sysdeps/powerpc/powerpc32/power5+/fpu/s_roundf.S: Include
25321 <libm-alias-float.h>.
25322 (roundf): Define using libm_alias_float.
25323 * sysdeps/powerpc/powerpc32/power5+/fpu/s_truncf.S: Include
25324 <libm-alias-float.h>.
25325 (truncf): Define using libm_alias_float.
25326 * sysdeps/powerpc/powerpc32/power6/fpu/s_copysign.S: Include
25327 <libm-alias-float.h>.
25328 (copysignf): Define using libm_alias_float.
25329 * sysdeps/powerpc/powerpc32/power6/fpu/s_llrintf.S: Include
25330 <libm-alias-float.h>.
25331 (llrintf): Define using libm_alias_float.
25332 * sysdeps/powerpc/powerpc32/power6/fpu/s_llround.S: Include
25333 <libm-alias-float.h>.
25334 (llroundf): Define using libm_alias_float.
25335 * sysdeps/powerpc/powerpc32/power6x/fpu/s_lrint.S: Include
25336 <libm-alias-float.h>.
25337 (lrintf): Define using libm_alias_float.
25338 * sysdeps/powerpc/powerpc32/power6x/fpu/s_lround.S: Include
25339 <libm-alias-float.h>.
25340 (lroundf): Define using libm_alias_float.
25341 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceilf.c: Include
25342 <libm-alias-float.h>.
25343 (ceilf): Define using libm_alias_float.
25344 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysignf.c: Include
25345 <libm-alias-float.h>.
25346 (copysignf): Define using libm_alias_float.
25347 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_cosf.c: Include
25348 <libm-alias-float.h>.
25349 (cosf): Define using libm_alias_float.
25350 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floorf.c: Include
25351 <libm-alias-float.h>.
25352 (floorf): Define using libm_alias_float.
25353 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrintf.c: Include
25354 <libm-alias-float.h>.
25355 (llrintf): Define using libm_alias_float.
25356 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llroundf.c: Include
25357 <libm-alias-float.h>.
25358 (llroundf): Define using libm_alias_float.
25359 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logbf.c: Include
25360 <libm-alias-float.h>.
25361 (logbf): Define using libm_alias_float.
25362 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modff.c: Include
25363 <libm-alias-float.h>.
25364 (modff): Define using libm_alias_float.
25365 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_roundf.c: Include
25366 <libm-alias-float.h>.
25367 (roundf): Define using libm_alias_float.
25368 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_sinf.c: Include
25369 <libm-alias-float.h>.
25370 (sinf): Define using libm_alias_float.
25371 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_truncf.c: Include
25372 <libm-alias-float.h>.
25373 (truncf): Define using libm_alias_float.
25374 * sysdeps/powerpc/powerpc64/fpu/s_ceilf.S: Include
25375 <libm-alias-float.h>.
25376 (ceilf): Define using libm_alias_float.
25377 * sysdeps/powerpc/powerpc64/fpu/s_copysign.S: Include
25378 <libm-alias-float.h>.
25379 (copysignf): Define using libm_alias_float.
25380 * sysdeps/powerpc/powerpc64/fpu/s_floorf.S: Include
25381 <libm-alias-float.h>.
25382 (floorf): Define using libm_alias_float.
25383 * sysdeps/powerpc/powerpc64/fpu/s_llrint.S: Include
25384 <libm-alias-float.h>.
25385 (llrintf): Define using libm_alias_float.
25386 * sysdeps/powerpc/powerpc64/fpu/s_llroundf.S: Include
25387 <libm-alias-float.h>.
25388 (llroundf): Define using libm_alias_float.
25389 * sysdeps/powerpc/powerpc64/fpu/s_nearbyintf.S: Include
25390 <libm-alias-float.h>.
25391 (nearbyintf): Define using libm_alias_float.
25392 * sysdeps/powerpc/powerpc64/fpu/s_rintf.S: Include
25393 <libm-alias-float.h>.
25394 (rintf): Define using libm_alias_float.
25395 * sysdeps/powerpc/powerpc64/fpu/s_roundf.S: Include
25396 <libm-alias-float.h>.
25397 (roundf): Define using libm_alias_float.
25398 * sysdeps/powerpc/powerpc64/fpu/s_truncf.S: Include
25399 <libm-alias-float.h>.
25400 (truncf): Define using libm_alias_float.
25401 * sysdeps/powerpc/powerpc64/power5+/fpu/s_ceilf.S: Include
25402 <libm-alias-float.h>.
25403 (ceilf): Define using libm_alias_float.
25404 * sysdeps/powerpc/powerpc64/power5+/fpu/s_floorf.S: Include
25405 <libm-alias-float.h>.
25406 (floorf): Define using libm_alias_float.
25407 * sysdeps/powerpc/powerpc64/power5+/fpu/s_llround.S: Include
25408 <libm-alias-float.h>.
25409 (llroundf): Define using libm_alias_float.
25410 * sysdeps/powerpc/powerpc64/power5+/fpu/s_roundf.S: Include
25411 <libm-alias-float.h>.
25412 (roundf): Define using libm_alias_float.
25413 * sysdeps/powerpc/powerpc64/power5+/fpu/s_truncf.S: Include
25414 <libm-alias-float.h>.
25415 (truncf): Define using libm_alias_float.
25416 * sysdeps/powerpc/powerpc64/power6/fpu/s_copysign.S: Include
25417 <libm-alias-float.h>.
25418 (copysignf): Define using libm_alias_float.
25419 * sysdeps/powerpc/powerpc64/power6x/fpu/s_llrint.S: Include
25420 <libm-alias-float.h>.
25421 (llrintf): Define using libm_alias_float.
25422 * sysdeps/powerpc/powerpc64/power6x/fpu/s_llround.S: Include
25423 <libm-alias-float.h>.
25424 (llroundf): Define using libm_alias_float.
25425 * sysdeps/powerpc/powerpc64/power8/fpu/s_cosf.S: Include
25426 <libm-alias-float.h>.
25427 (cosf): Define using libm_alias_float.
25428 * sysdeps/powerpc/powerpc64/power8/fpu/s_llrint.S: Include
25429 <libm-alias-float.h>.
25430 (llrintf): Define using libm_alias_float.
25431 * sysdeps/powerpc/powerpc64/power8/fpu/s_llround.S: Include
25432 <libm-alias-float.h>.
25433 (llroundf): Define using libm_alias_float.
25434 * sysdeps/powerpc/powerpc64/power8/fpu/s_sinf.S: Include
25435 <libm-alias-float.h>.
25436 (sinf): Define using libm_alias_float.
25437
25438 2017-12-04 Florian Weimer <fweimer@redhat.com>
25439
25440 * support/check.h (TEST_COMPARE): Define.
25441 (support_test_compare_failure): Declare.
25442 * support/Makefile (libsupport-routines): Add
25443 support_test_compare_failure.
25444 (tests): Add tst-test_compare.
25445 * support /support_test_compare_failure.c: New file.
25446 * support/tst-test_compare.c: Likewise.
25447
25448 2017-12-04 Mike FABIAN <mfabian@redhat.com>
25449
25450 [BZ #22527]
25451 * localedata/locales/tr_TR (LC_COLLATE): Base collation rules
25452 on iso14651_t1. A test file localedata/tr_TR.UTF-8.in is already
25453 available, this rewrite of the collation rules does reproduce
25454 the test file in the same order.
25455
25456 2017-12-04 Mike FABIAN <mfabian@redhat.com>
25457
25458 [BZ #10580]
25459 * localedata/locales/hr_HR (LC_TIME): Use two letters for the
25460 digraphs in the month and day names. Using single code points for
25461 digraphs is deprecated. While there are dedicated Unicode
25462 codepoints, for the digraphs, these are included for backwards
25463 compatibility and modern texts use a sequence of Basic Latin
25464 characters. See: https://www.unicode.org/faq/ligature_digraph.html
25465 This makes the month and day names agree exactly with CLDR now,
25466 CLDR does not use the single code points for the digraphs either.
25467
25468 2017-12-04 Chris Metcalf <cmetcalf@mellanox.com>
25469
25470 * sysdeps/tile/libm-test-ulps: Update ca{cos,sin,tan}{,h} ulps.
25471
25472 2017-12-04 Joseph Myers <joseph@codesourcery.com>
25473
25474 * sysdeps/ieee754/flt-32/s_sinf.c (SINF_FUNC): Use __floor instead
25475 of floor.
25476
25477 2017-12-04 Siddhesh Poyarekar <siddhesh@sourceware.org>
25478
25479 * sysdeps/aarch64/multiarch/memcpy_generic.S (__GI_memcpy):
25480 Define only for libc.so.
25481
25482 2017-12-04 Stefan Liebler <stli@linux.vnet.ibm.com>
25483
25484 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h
25485 (INTERNAL_VSYSCALL_CALL, CLOBBER_0, CLOBBER_1, CLOBBER_2,
25486 CLOBBER_3, CLOBBER_4, CLOBBER_5, CLOBBER_6,
25487 INTERNAL_VSYSCALL_NO_SYSCALL_FALLBACK): Remove.
25488 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h: Likewise.
25489
25490 2017-12-04 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
25491
25492 [BZ #5997]
25493 * sysdeps/ieee754/flt-32/s_sinf.c: New implementation.
25494
25495 2017-12-02 John David Anglin <danglin@gcc.gnu.org>
25496
25497 [BZ libc/19170]
25498 * sysdeps/hppa/crti.S: Declare PREINIT_FUNCTION weak_extern when
25499 PREINIT_FUNCTION_WEAK is nonzero.
25500 (gmon_initializer): New function. Put procedure label for it in
25501 .init_array section.
25502 (_init): Don't call PREINIT_FUNCTION.
25503 * sysdeps/hppa/crtn.S (__gmon_start__): Remove.
25504 * sysdeps/hppa/dl-lookupcfg.h (DL_FIXUP_MAKE_VALUE): Create null fixup
25505 value when map argument is null.
25506
25507 * sysdeps/hppa/dl-fptr.c (elf_machine_resolve): Remove unnecessary
25508 depi instruction from PIC pc-relative sequence.
25509 * sysdeps/hppa/dl-fptr.h (ELF_MACHINE_LOAD_ADDRESS): Likewise.
25510 * sysdeps/hppa/dl-machine.h (elf_machine_dynamic): Likewise.
25511 (elf_machine_load_address): Likewise.
25512 (elf_machine_runtime_setup): Likewise.
25513
25514 2017-12-02 Joseph Myers <joseph@codesourcery.com>
25515
25516 * sysdeps/powerpc/power7/fpu/s_logb.c: Include
25517 <libm-alias-double.h>.
25518 (logb): Define using libm_alias_double.
25519 * sysdeps/powerpc/powerpc32/fpu/s_copysign.S: Include
25520 <libm-alias-double.h>.
25521 (copysign): Define using libm_alias_double.
25522 * sysdeps/powerpc/powerpc32/fpu/s_llrint.c: Include
25523 <libm-alias-double.h>.
25524 (llrint): Define using libm_alias_double.
25525 * sysdeps/powerpc/powerpc32/fpu/s_llround.c: Include
25526 <libm-alias-double.h>.
25527 (llround): Define using libm_alias_double.
25528 * sysdeps/powerpc/powerpc32/fpu/s_lrint.S: Include
25529 <libm-alias-double.h>.
25530 (lrint): Define using libm_alias_double.
25531 * sysdeps/powerpc/powerpc32/fpu/s_lround.S: Include
25532 <libm-alias-double.h>.
25533 (lround): Define using libm_alias_double.
25534 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_copysign.c:
25535 Include <libm-alias-double.h>.
25536 (copysign): Define using libm_alias_double.
25537 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llrint.c:
25538 Include <libm-alias-double.h>.
25539 (llrint): Define using libm_alias_double.
25540 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llround.c:
25541 Include <libm-alias-double.h>.
25542 (llround): Define using libm_alias_double.
25543 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logb.c: Include
25544 <libm-alias-double.h>.
25545 (logb): Define using libm_alias_double.
25546 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lrint.c:
25547 Include <libm-alias-double.h>.
25548 (lrint): Define using libm_alias_double.
25549 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lround.c:
25550 Include <libm-alias-double.h>.
25551 (lround): Define using libm_alias_double.
25552 * sysdeps/powerpc/powerpc32/power4/fpu/s_llrint.S: Include
25553 <libm-alias-double.h>.
25554 (llrint): Define using libm_alias_double.
25555 * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S: Include
25556 <libm-alias-double.h>.
25557 (llround): Define using libm_alias_double.
25558 * sysdeps/powerpc/powerpc32/power5+/fpu/s_llround.S: Include
25559 <libm-alias-double.h>.
25560 (llround): Define using libm_alias_double.
25561 * sysdeps/powerpc/powerpc32/power5+/fpu/s_lround.S: Include
25562 <libm-alias-double.h>.
25563 (lround): Define using libm_alias_double.
25564 * sysdeps/powerpc/powerpc32/power6/fpu/s_copysign.S: Include
25565 <libm-alias-double.h>.
25566 (copysign): Define using libm_alias_double.
25567 * sysdeps/powerpc/powerpc32/power6/fpu/s_llrint.S: Include
25568 <libm-alias-double.h>.
25569 (llrint): Define using libm_alias_double.
25570 * sysdeps/powerpc/powerpc32/power6/fpu/s_llround.S: Include
25571 <libm-alias-double.h>.
25572 (llround): Define using libm_alias_double.
25573 * sysdeps/powerpc/powerpc32/power6x/fpu/s_lrint.S: Include
25574 <libm-alias-double.h>.
25575 (lrint): Define using libm_alias_double.
25576 * sysdeps/powerpc/powerpc32/power6x/fpu/s_lround.S: Include
25577 <libm-alias-double.h>.
25578 (lround): Define using libm_alias_double.
25579 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysign.c: Include
25580 <libm-alias-double.h>.
25581 (copysign): Define using libm_alias_double.
25582 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint.c: Include
25583 <libm-alias-double.h>.
25584 (llrint): Define using libm_alias_double.
25585 (lrint): Likewise.
25586 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround.c: Include
25587 <libm-alias-double.h>.
25588 (llround): Define using libm_alias_double.
25589 (lround): Likewise.
25590 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logb.c: Include
25591 <libm-alias-double.h>.
25592 (logb): Define using libm_alias_double.
25593 * sysdeps/powerpc/powerpc64/fpu/s_copysign.S: Include
25594 <libm-alias-double.h>.
25595 (copysign): Define using libm_alias_double.
25596 * sysdeps/powerpc/powerpc64/fpu/s_llrint.S: Include
25597 <libm-alias-double.h>.
25598 (llrint): Define using libm_alias_double.
25599 (lrint): Likewise.
25600 * sysdeps/powerpc/powerpc64/fpu/s_llround.S: Include
25601 <libm-alias-double.h>.
25602 (llround): Define using libm_alias_double.
25603 (lround): Likewise.
25604 * sysdeps/powerpc/powerpc64/power5+/fpu/s_llround.S: Include
25605 <libm-alias-double.h>.
25606 (llround): Define using libm_alias_double.
25607 (lround): Likewise.
25608 * sysdeps/powerpc/powerpc64/power6/fpu/s_copysign.S: Include
25609 <libm-alias-double.h>.
25610 (copysign): Define using libm_alias_double.
25611 * sysdeps/powerpc/powerpc64/power6x/fpu/s_llrint.S: Include
25612 <libm-alias-double.h>.
25613 (llrint): Define using libm_alias_double.
25614 (lrint): Likewise.
25615 * sysdeps/powerpc/powerpc64/power6x/fpu/s_llround.S: Include
25616 <libm-alias-double.h>.
25617 (llround): Define using libm_alias_double.
25618 (lround): Likewise.
25619 * sysdeps/powerpc/powerpc64/power8/fpu/s_llrint.S: Include
25620 <libm-alias-double.h>.
25621 (llrint): Define using libm_alias_double.
25622 (lrint): Likewise.
25623 * sysdeps/powerpc/powerpc64/power8/fpu/s_llround.S: Include
25624 <libm-alias-double.h>.
25625 (llround): Define using libm_alias_double.
25626 (lround): Likewise.
25627
25628 2017-12-01 Joseph Myers <joseph@codesourcery.com>
25629
25630 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround.c
25631 [LONG_DOUBLE_COMPAT(libm, GLIBC_2_1)] (lroundl): Do not define
25632 compat symbol based on llround.
25633
25634 * sysdeps/powerpc/power7/fpu/s_logb.c
25635 [LONG_DOUBLE_COMPAT (libm, GLIBC_2_0)] (logbl): Define as compat
25636 symbol based on __logb, not on logb.
25637 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logb.c
25638 [LONG_DOUBLE_COMPAT (libm, GLIBC_2_0)] (logbl): Likewise.
25639 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logb.c
25640 [LONG_DOUBLE_COMPAT (libm, GLIBC_2_0)] (logbl): Likewise.
25641
25642 * sysdeps/powerpc/fpu/s_rint.c: Include <libm-alias-double.h>.
25643 (rint): Define using libm_alias_double.
25644 * sysdeps/powerpc/power5+/fpu/s_modf.c: Include
25645 <libm-alias-double.h>.
25646 (modf): Define using libm_alias_double.
25647 * sysdeps/powerpc/powerpc32/fpu/s_ceil.S: Include
25648 <libm-alias-double.h>.
25649 (ceil): Define using libm_alias_double.
25650 * sysdeps/powerpc/powerpc32/fpu/s_floor.S: Include
25651 <libm-alias-double.h>.
25652 (floor): Define using libm_alias_double.
25653 * sysdeps/powerpc/powerpc32/fpu/s_nearbyint.S: Include
25654 <libm-alias-double.h>.
25655 (nearbyint): Define using libm_alias_double.
25656 * sysdeps/powerpc/powerpc32/fpu/s_rint.S: Include
25657 <libm-alias-double.h>.
25658 (rint): Define using libm_alias_double.
25659 * sysdeps/powerpc/powerpc32/fpu/s_round.S: Include
25660 <libm-alias-double.h>.
25661 (round): Define using libm_alias_double.
25662 * sysdeps/powerpc/powerpc32/fpu/s_trunc.S: Include
25663 <libm-alias-double.h>.
25664 (trunc): Define using libm_alias_double.
25665 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceil.c: Include
25666 <libm-alias-double.h>.
25667 (ceil): Define using libm_alias_double.
25668 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floor.c:
25669 Include <libm-alias-double.h>.
25670 (floor): Define using libm_alias_double.
25671 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_modf.c: Include
25672 <libm-alias-double.h>.
25673 (modf): Define using libm_alias_double.
25674 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_round.c:
25675 Include <libm-alias-double.h>.
25676 (round): Define using libm_alias_double.
25677 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_trunc.c:
25678 Include <libm-alias-double.h>.
25679 (trunc): Define using libm_alias_double.
25680 * sysdeps/powerpc/powerpc32/power5+/fpu/s_ceil.S: Include
25681 <libm-alias-double.h>.
25682 (ceil): Define using libm_alias_double.
25683 * sysdeps/powerpc/powerpc32/power5+/fpu/s_floor.S: Include
25684 <libm-alias-double.h>.
25685 (floor): Define using libm_alias_double.
25686 * sysdeps/powerpc/powerpc32/power5+/fpu/s_round.S: Include
25687 <libm-alias-double.h>.
25688 (round): Define using libm_alias_double.
25689 * sysdeps/powerpc/powerpc32/power5+/fpu/s_trunc.S: Include
25690 <libm-alias-double.h>.
25691 (trunc): Define using libm_alias_double.
25692 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceil.c: Include
25693 <libm-alias-double.h>.
25694 (ceil): Define using libm_alias_double.
25695 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floor.c: Include
25696 <libm-alias-double.h>.
25697 (floor): Define using libm_alias_double.
25698 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modf.c: Include
25699 <libm-alias-double.h>.
25700 (modf): Define using libm_alias_double.
25701 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_round.c: Include
25702 <libm-alias-double.h>.
25703 (round): Define using libm_alias_double.
25704 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_trunc.c: Include
25705 <libm-alias-double.h>.
25706 (trunc): Define using libm_alias_double.
25707 * sysdeps/powerpc/powerpc64/fpu/s_ceil.S: Include
25708 <libm-alias-double.h>.
25709 (ceil): Define using libm_alias_double.
25710 * sysdeps/powerpc/powerpc64/fpu/s_floor.S: Include
25711 <libm-alias-double.h>.
25712 (floor): Define using libm_alias_double.
25713 * sysdeps/powerpc/powerpc64/fpu/s_nearbyint.S: Include
25714 <libm-alias-double.h>.
25715 (nearbyint): Define using libm_alias_double.
25716 * sysdeps/powerpc/powerpc64/fpu/s_rint.S: Include
25717 <libm-alias-double.h>.
25718 (rint): Define using libm_alias_double.
25719 * sysdeps/powerpc/powerpc64/fpu/s_round.S: Include
25720 <libm-alias-double.h>.
25721 (round): Define using libm_alias_double.
25722 * sysdeps/powerpc/powerpc64/fpu/s_trunc.S: Include
25723 <libm-alias-double.h>.
25724 (trunc): Define using libm_alias_double.
25725 * sysdeps/powerpc/powerpc64/power5+/fpu/s_ceil.S: Include
25726 <libm-alias-double.h>.
25727 (ceil): Define using libm_alias_double.
25728 * sysdeps/powerpc/powerpc64/power5+/fpu/s_floor.S: Include
25729 <libm-alias-double.h>.
25730 (floor): Define using libm_alias_double.
25731 * sysdeps/powerpc/powerpc64/power5+/fpu/s_round.S: Include
25732 <libm-alias-double.h>.
25733 (round): Define using libm_alias_double.
25734 * sysdeps/powerpc/powerpc64/power5+/fpu/s_trunc.S: Include
25735 <libm-alias-double.h>.
25736 (trunc): Define using libm_alias_double.
25737
25738 * sysdeps/powerpc/fpu/s_fabs.S: Include <libm-alias-double.h>.
25739 (fabs): Define using libm_alias_double.
25740 * sysdeps/powerpc/fpu/s_fma.S: Include <libm-alias-double.h>.
25741 (fma): Define using libm_alias_double.
25742 * sysdeps/powerpc/powerpc32/fpu/s_fabs.S: Remove file.
25743 * sysdeps/powerpc/powerpc32/fpu/s_fma.S: Likewise.
25744 * sysdeps/powerpc/powerpc64/fpu/s_fabs.S: Likewise.
25745 * sysdeps/powerpc/powerpc64/fpu/s_fma.S: Likewise.
25746
25747 2017-12-01 Adhemerval Zanella <adhemerval.zanella@linaro.org>
25748
25749 * sysdeps/unix/sysv/linux/x86_64/x32/getcpu.c: Remove file.
25750
25751 * sysdeps/sparc/sparc-ifunc.h (SPARC_ASM_IFUNC_DFLT,
25752 SPARC_ASM_IFUNC1, SPARC_ASM_IFUNC2, SET, SPARC_ASM_VIS2_IFUNC,
25753 SPARC_ASM_VIS3_IFUNC, SPARC_ASM_VIS3_VIS2_IFUNC): Remove macros.
25754
25755 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.c: Fix build
25756 due redirect macro.
25757
25758 2017-12-01 Andreas Schwab <schwab@linux-m68k.org>
25759
25760 * intl/Makefile ($(objpfx)plural.c): Add $(make-target-directory).
25761
25762 2017-12-01 Adhemerval Zanella <adhemerval.zanella@linaro.org>
25763
25764 * sysdeps/sparc/sparc64/cpu_relax.c: New file.
25765 * sysdeps/sparc/sparc32/sparcv9/cpu_relax.c: Likewise.
25766 * sysdeps/sparc/sparc64/cpu_relax.S: Remove file.
25767 * sysdeps/sparc/sparc32/sparcv9/cpu_relax.S: Likewise.
25768
25769 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile
25770 (libm-sysdep_routines): Add s_nearbyintf-generic and
25771 s_nearbyint-generic.
25772 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyint-generic.S:
25773 New file.
25774 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyint.c: Likewise.
25775 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyintf-generic.S:
25776 Likewise.
25777 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyintf.c:
25778 Likewise.
25779 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyint.S: Remove
25780 file.
25781 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyintf.S:
25782 Likewise.
25783
25784 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile
25785 (libm-sysdep_routines): Add s_rintf-generic and s_rint-generic.
25786 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint-generic.S: New
25787 file.
25788 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.c: Likewise.
25789 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf-generic.S:
25790 Likewise.
25791 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf.c: Likewise.
25792 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: Remove file.
25793 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf.S: Likewise.
25794
25795 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile
25796 (libm-sysdep_routines): Add s_llrintf-generic and s_llrint-generic.
25797 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint-generic.S: New
25798 file.
25799 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.c: Likewise.
25800 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf-generic.S:
25801 Likewise.
25802 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.c: Likewise.
25803 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S: Remove file.
25804 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.S: Likewise.
25805
25806 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile
25807 (libm-sysdep_routines): Add s_fabsf-generic and s_fabs-generic.
25808 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs-generic.S: New
25809 file.
25810 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.c: Likewise.
25811 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf-generic.S:
25812 Likewise.
25813 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf.c: Likewise.
25814 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.S: Remove file.
25815 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf.S: Likewise.
25816
25817 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile
25818 (sysdep_calls): New rule.
25819 (sysdep_routines): Use sysdep_calls as base.
25820 (libm-sysdep_routines): Add generic rule for symbols shared with
25821 libc. Add s_copysign-generic and s_copysign-generic objects.
25822 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign-generic.S:
25823 New file.
25824 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.c: Likewise.
25825 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf-generic.S:
25826 Likewise.
25827 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf.c: Likewise.
25828 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.S: Remove file.
25829 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf.S: Likewise.
25830
25831 2017-12-01 Mike FABIAN <mfabian@redhat.com>
25832
25833 [BZ #22519]
25834 * localedata/Makefile: Add is_IS.UTF-8 to test-input and to
25835 the list of locales to be built for testing.
25836 * localedata/is_IS.UTF-8.in: New file.
25837 * localedata/locales/is_IS (LC_COLLATE): Base collation rules
25838 on iso14651_t1.
25839
25840 2017-12-01 Joseph Myers <joseph@codesourcery.com>
25841
25842 * sysdeps/powerpc/powerpc32/e500/nofpu/s_fabsf.S: Include
25843 <libm-alias-float.h>.
25844 (fabsf): Define using libm_alias_float.
25845
25846 2017-11-30 H.J. Lu <hongjiu.lu@intel.com>
25847
25848 * sysdeps/mips/dl-machine.h (elf_machine_reloc): Expand MIN.
25849
25850 2017-11-30 Joseph Myers <joseph@codesourcery.com>
25851
25852 * sysdeps/m68k/coldfire/fpu/s_fabsf.c: Include
25853 <libm-alias-float.h>.
25854 (fabsf): Define using libm_alias_float.
25855 * sysdeps/m68k/coldfire/fpu/s_lrintf.c: Include
25856 <libm-alias-float.h>.
25857 (lrintf): Define using libm_alias_float.
25858 * sysdeps/m68k/coldfire/fpu/s_rintf.c: Include
25859 <libm-alias-float.h>.
25860 (rintf): Define using libm_alias_float.
25861
25862 * sysdeps/m68k/coldfire/fpu/s_fabs.c: Include
25863 <libm-alias-double.h>.
25864 (fabs): Define using libm_alias_double.
25865 * sysdeps/m68k/coldfire/fpu/s_lrint.c: Include
25866 <libm-alias-double.h>.
25867 (lrint): Define using libm_alias_double.
25868 * sysdeps/m68k/coldfire/fpu/s_rint.c: Include
25869 <libm-alias-double.h>.
25870 (rint): Define using libm_alias_double.
25871
25872 * sysdeps/m68k/m680x0/fpu/s_atan_template.c: New file.
25873 * sysdeps/m68k/m680x0/fpu/s_ceil_template.c: Likewise.
25874 * sysdeps/m68k/m680x0/fpu/s_cos_template.c: Likewise.
25875 * sysdeps/m68k/m680x0/fpu/s_expm1_template.c: Likewise.
25876 * sysdeps/m68k/m680x0/fpu/s_fabs_template.c: Likewise.
25877 * sysdeps/m68k/m680x0/fpu/s_floor_template.c: Likewise.
25878 * sysdeps/m68k/m680x0/fpu/s_frexp_template.c: Likewise.
25879 * sysdeps/m68k/m680x0/fpu/s_lrint_template.c: Likewise.
25880 * sysdeps/m68k/m680x0/fpu/s_modf_template.c: Likewise.
25881 * sysdeps/m68k/m680x0/fpu/s_nearbyint_template.c: Likewise.
25882 * sysdeps/m68k/m680x0/fpu/s_remquo_template.c: Likewise.
25883 * sysdeps/m68k/m680x0/fpu/s_rint_template.c: Likewise.
25884 * sysdeps/m68k/m680x0/fpu/s_sin_template.c: Likewise.
25885 * sysdeps/m68k/m680x0/fpu/s_sincos_template.c: Likewise.
25886 * sysdeps/m68k/m680x0/fpu/s_tan_template.c: Likewise.
25887 * sysdeps/m68k/m680x0/fpu/s_tanh_template.c: Likewise.
25888 * sysdeps/m68k/m680x0/fpu/s_trunc_template.c: Likewise.
25889 * sysdeps/m68k/m680x0/fpu/s_atan.c: Reimplement to use
25890 s_atan_template.c.
25891 * sysdeps/m68k/m680x0/fpu/s_atanf.c: Likewise.
25892 * sysdeps/m68k/m680x0/fpu/s_atanl.c: Likewise.
25893 * sysdeps/m68k/m680x0/fpu/s_ceil.c: Reimplement to use
25894 s_ceil_template.c.
25895 * sysdeps/m68k/m680x0/fpu/s_ceilf.c: Likewise.
25896 * sysdeps/m68k/m680x0/fpu/s_ceill.c: Likewise.
25897 * sysdeps/m68k/m680x0/fpu/s_cos.c: Reimplement to use
25898 s_cos_template.c.
25899 * sysdeps/m68k/m680x0/fpu/s_cosf.c: Likewise.
25900 * sysdeps/m68k/m680x0/fpu/s_cosl.c: Likewise.
25901 * sysdeps/m68k/m680x0/fpu/s_expm1.c: Reimplement to use
25902 s_expm1_template.c.
25903 * sysdeps/m68k/m680x0/fpu/s_expm1f.c: Likewise.
25904 * sysdeps/m68k/m680x0/fpu/s_expm1l.c: Likewise.
25905 * sysdeps/m68k/m680x0/fpu/s_fabs.c: Reimplement to use
25906 s_fabs_template.c.
25907 * sysdeps/m68k/m680x0/fpu/s_fabsf.c: Likewise.
25908 * sysdeps/m68k/m680x0/fpu/s_fabsl.c: Likewise.
25909 * sysdeps/m68k/m680x0/fpu/s_floor.c: Reimplement to use
25910 s_floor_template.c.
25911 * sysdeps/m68k/m680x0/fpu/s_floorf.c: Likewise.
25912 * sysdeps/m68k/m680x0/fpu/s_floorl.c: Likewise.
25913 * sysdeps/m68k/m680x0/fpu/s_frexp.c: Reimplement to use
25914 s_frexp_template.c.
25915 * sysdeps/m68k/m680x0/fpu/s_frexpf.c: Likewise.
25916 * sysdeps/m68k/m680x0/fpu/s_lrint.c: Reimplement to use
25917 s_lrint_template.c.
25918 * sysdeps/m68k/m680x0/fpu/s_lrintf.c: Likewise.
25919 * sysdeps/m68k/m680x0/fpu/s_lrintl.c: Likewise.
25920 * sysdeps/m68k/m680x0/fpu/s_modf.c: Reimplement to use
25921 s_modf_template.c.
25922 * sysdeps/m68k/m680x0/fpu/s_modff.c: Likewise.
25923 * sysdeps/m68k/m680x0/fpu/s_modfl.c: Likewise.
25924 * sysdeps/m68k/m680x0/fpu/s_nearbyint.c: Reimplement to use
25925 s_nearbyint_template.c.
25926 * sysdeps/m68k/m680x0/fpu/s_nearbyintf.c: Likewise.
25927 * sysdeps/m68k/m680x0/fpu/s_nearbyintl.c: Likewise.
25928 * sysdeps/m68k/m680x0/fpu/s_remquo.c: Reimplement to use
25929 s_remquo_template.c.
25930 * sysdeps/m68k/m680x0/fpu/s_remquof.c: Likewise.
25931 * sysdeps/m68k/m680x0/fpu/s_remquol.c: Likewise.
25932 * sysdeps/m68k/m680x0/fpu/s_rint.c: Reimplement to use
25933 s_rint_template.c.
25934 * sysdeps/m68k/m680x0/fpu/s_rintf.c: Likewise.
25935 * sysdeps/m68k/m680x0/fpu/s_rintl.c: Likewise.
25936 * sysdeps/m68k/m680x0/fpu/s_sin.c: Reimplement to use
25937 s_sin_template.c.
25938 * sysdeps/m68k/m680x0/fpu/s_sinf.c: Likewise.
25939 * sysdeps/m68k/m680x0/fpu/s_sinl.c: Likewise.
25940 * sysdeps/m68k/m680x0/fpu/s_sincos.c: Reimplement to use
25941 s_sincos_template.c.
25942 * sysdeps/m68k/m680x0/fpu/s_sincosf.c: Likewise.
25943 * sysdeps/m68k/m680x0/fpu/s_sincosl.c: Likewise.
25944 * sysdeps/m68k/m680x0/fpu/s_tan.c: Reimplement to use
25945 s_tan_template.c.
25946 * sysdeps/m68k/m680x0/fpu/s_tanf.c: Likewise.
25947 * sysdeps/m68k/m680x0/fpu/s_tanl.c: Likewise.
25948 * sysdeps/m68k/m680x0/fpu/s_tanh.c: Reimplement to use
25949 s_tanh_template.c.
25950 * sysdeps/m68k/m680x0/fpu/s_tanhf.c: Likewise.
25951 * sysdeps/m68k/m680x0/fpu/s_tanhl.c: Likewise.
25952 * sysdeps/m68k/m680x0/fpu/s_trunc.c: Reimplement to use
25953 s_trunc_template.c.
25954 * sysdeps/m68k/m680x0/fpu/s_truncf.c: Likewise.
25955 * sysdeps/m68k/m680x0/fpu/s_truncl.c: Likewise.
25956 * sysdeps/m68k/m680x0/fpu/s_significand.c: Reimplement based on
25957 s_atan.c instead of including s_atan.c.
25958 * sysdeps/m68k/m680x0/fpu/s_significandf.c: Reimplement based on
25959 s_atanf.c instead of including s_atanf.c.
25960 * sysdeps/m68k/m680x0/fpu/s_significandl.c: Reimplement based on
25961 s_atanl.c instead of including s_atanl.c.
25962 * sysdeps/m68k/m680x0/fpu/s_log1p.c: Include s_significand.c
25963 instead of s_atan.c.
25964 * sysdeps/m68k/m680x0/fpu/s_log1pf.c: Include s_significandf.c
25965 instead of s_atanf.c.
25966 * sysdeps/m68k/m680x0/fpu/s_log1pl.c: Include s_significandl.c
25967 instead of s_atanl.c.
25968
25969 * scripts/update-copyrights: Do not handle intl/plural.c
25970 specially.
25971
25972 2017-11-30 Juro Bystricky <juro.bystricky@linux.intel.com>
25973
25974 [BZ #22432]
25975 * configure.ac (BISON): Require to be present.
25976 * configure: Regenerated.
25977 * intl/Makefile (generated): Add plural.c.
25978 [$(BISON) != no]: Make code unconditional.
25979 (plural.c): Change rule to $(objpfx)plural.c.
25980 ($(objpfx)plural.o): Depend on $(objpfx)plural.c.
25981 * intl/plural.c: Remove.
25982 * manual/install.texi (Tools for Compilation): Document bison as
25983 required.
25984 * INSTALL: Regenerated.
25985
25986 2017-11-30 Joseph Myers <joseph@codesourcery.com>
25987
25988 * sysdeps/m68k/m680x0/fpu/s_llrint.c: Include
25989 <libm-alias-double.h>.
25990 (llrint): Define using libm_alias_double.
25991 * sysdeps/m68k/m680x0/fpu/s_llrintf.c: Include
25992 <libm-alias-float.h>.
25993 (llrintf): Define using libm_alias_float.
25994 * sysdeps/m68k/m680x0/fpu/s_llrintl.c: Include
25995 <libm-alias-ldouble.h>.
25996 (llrintl): Define using libm_alias_ldouble.
25997
25998 * sysdeps/m68k/m680x0/fpu/s_ccosh_template.c (ccosh): Use
25999 declare_mgen_alias instead of weak_alias.
26000 * sysdeps/m68k/m680x0/fpu/s_cexp_template.c (cexp): Likewise.
26001 * sysdeps/m68k/m680x0/fpu/s_csin_template.c (csin): Likewise.
26002 * sysdeps/m68k/m680x0/fpu/s_csinh_template.c (csinh): Likewise.
26003
26004 2017-11-30 Adhemerval Zanella <adhemerval.zanella@linaro.org>
26005
26006 * sysdeps/sparc/sparc64/multiarch/Makefile (sysdep_routines):
26007 Add add_n-generic.
26008 * sysdeps/sparc/sparc64/multiarch/add_n-generic.S: New file.
26009 * sysdeps/sparc/sparc64/multiarch/add_n.c: Likewise.
26010 * sysdeps/sparc/sparc64/multiarch/add_n.S: Remove file.
26011
26012 * sysdeps/sparc/sparc64/multiarch/Makefile (sysdep_routines):
26013 Add submul_1-generic.
26014 * sysdeps/sparc/sparc64/multiarch/submul_1-generic.S: New file.
26015 * sysdeps/sparc/sparc64/multiarch/submul_1.c: Likewise.
26016 * sysdeps/sparc/sparc64/multiarch/submul_1.S: Remove file.
26017
26018 * sysdeps/sparc/sparc64/multiarch/Makefile (sysdep_routines):
26019 Add addmul_1-generic.
26020 * sysdeps/sparc/sparc64/multiarch/addmul_1-generic.S: New file.
26021 * sysdeps/sparc/sparc64/multiarch/addmul_1.c: Likewise.
26022 * sysdeps/sparc/sparc64/multiarch/addmul_1.S: Remove file.
26023
26024 * sysdeps/sparc/sparc64/multiarch/Makefile (sysdep_routines):
26025 Add sub_n-generic.
26026 * sysdeps/sparc/sparc64/multiarch/sub_n-generic.S: New file.
26027 * sysdeps/sparc/sparc64/multiarch/sub_n.c: Likewise.
26028 * sysdeps/sparc/sparc64/multiarch/sub_n.S: Remove file.
26029
26030 * sysdeps/sparc/sparc64/multiarch/Makefile (sysdep_routines):
26031 Add mul_1-generic.
26032 * sysdeps/sparc/sparc64/multiarch/mul_1-generic.S: New file.
26033 * sysdeps/sparc/sparc64/multiarch/mul_1.c: Likewise.
26034 * sysdeps/sparc/sparc64/multiarch/mul_1.S: Remove file.
26035
26036 2017-11-30 Mike FABIAN <mfabian@redhat.com>
26037
26038 According to CLDR, collation rules for Serbian and Bosnian
26039 should be the same as for Croatian.
26040
26041 [BZ #22534]
26042 * localedata/Makefile: Add sr_RS.UTF-8 and bs_BA.UTF-8 to test-input
26043 and to the list of locales to be built for testing.
26044 * localedata/bs_BA.UTF-8.in: New file (same as hr_HR.UTF-8.in).
26045 * localedata/sr_RS.UTF-8.in: New file (same as hr_HR.UTF-8.in).
26046 * localedata/locales/bs_BA (LC_COLLATE): Use “copy "hr_HR"”.
26047 * localedata/locales/sr_RS (LC_COLLATE): Use “copy "hr_HR"”.
26048
26049 2017-11-30 Mike FABIAN <mfabian@redhat.com>
26050
26051 * localedata/locales/hr_HR (LC_COLLATE): Fix collation
26052 to make test case pass.
26053 * localedata/hr_HR.UTF-8.in: Add more test strings.
26054
26055 2017-11-30 Mike FABIAN <mfabian@redhat.com>
26056
26057 * stdlib/tst-strfmon_l.c: Fix testcase. Needed because of [BZ #10580]
26058
26059 2017-11-30 Dragan Stanojević - Nevidljivi <invisible@hidden-city.net>
26060
26061 * localedata/Makefile: Add hr_HR.UTF-8 to test-input and to
26062 the list of locales to built for testing.
26063 * localedata/hr_HR.UTF-8.in: New file.
26064
26065 2017-11-30 Dragan Stanojević - Nevidljivi <invisible@hidden-city.net>
26066
26067 [BZ #10580]
26068 * localedata/locales/hr_HR (LC_COLLATE): Base collation rules on
26069 iso14651_t1.
26070 * localedata/locales/hr_HR (LC_TIME): Sync month and day names with
26071 CLDR (except use ligatures for the digraphs, CLDR does not use
26072 the ligatures), add first_workday, some fixes in the date and time
26073 formats.
26074 * localedata/locales/hr_HR (LC_CTYPE): Add transliteration rules
26075 for Đ and đ.
26076 * localedata/locales/hr_HR (LC_MONETARY): Change currency_symbol to
26077 lower case. p_cs_precedes and n_cs_precedes should be 0 instead of 1.
26078 Add int_p_cs_precedes and int_n_cs_precedes.
26079 * localedata/locales/hr_HR (LC_NUMERIC): Change thousands_sep to
26080 "<U202F>" (NARROW NO-BREAK SPACE) and grouping to 3;3 (Agrees with
26081 LC_MONETARY now).
26082 * localedata/locales/hr_HR (LC_TELEPHONE): Add tel_dom_fmt.
26083 * localedata/locales/hr_HR (LC_NAME): Add name_mr, name_mrs, and
26084 name_miss.
26085 * localedata/locales/hr_HR (LC_ADDRESS): Add country_post, country_isbn,
26086 and lang_lib. Change postal_fmt.
26087
26088 2017-11-30 H.J. Lu <hongjiu.lu@intel.com>
26089
26090 * debug/longjmp_chk.c: Include <setjmpP.h> instead of
26091 <setjmp.h>.
26092 * setjmp/longjmp.c: Include <setjmpP.h> instead of <setjmp.h>.
26093 (__libc_siglongjmp): Cast &env[0].__saved_mask to "sigset_t *".
26094 * setjmp/sigjmp.c: Include <setjmpP.h> instead of <setjmp.h>.
26095 (__sigjmp_save): Cast &env[0].__saved_mask to "sigset_t *".
26096 * sysdeps/generic/setjmpP.h: New file.
26097 * sysdeps/unix/sysv/linux/x86/jmp_buf-ssp.sym: Likewise.
26098 * sysdeps/unix/sysv/linux/x86/setjmpP.h: Likewise.
26099 * sysdeps/unix/sysv/linux/x86/tst-saved_mask-1.c: Likewise.
26100 * sysdeps/unix/sysv/linux/x86/Makefile (gen-as-const-headers):
26101 Add jmp_buf-ssp.sym.
26102 (tests): Add tst-saved_mask-1.
26103
26104 2017-11-30 Arjun Shankar <arjun@redhat.com>
26105
26106 [BZ #22375]
26107 CVE-2017-17426
26108 * malloc/malloc.c (__libc_malloc): Use checked_request2size
26109 instead of request2size.
26110
26111 2017-11-30 Joseph Myers <joseph@codesourcery.com>
26112
26113 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S
26114 (__lllrint): Remove alias.
26115 (lllrint): Likewise.
26116 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.S
26117 (__lllrintf): Likewise.
26118 (lllrintf): Likewise.
26119
26120 * sysdeps/sparc/sparc32/fpu/s_copysignf.S: Include
26121 <libm-alias-float.h>.
26122 (copysignf): Define using libm_alias_float.
26123 * sysdeps/sparc/sparc32/fpu/s_fabsf.S: Include
26124 <libm-alias-float.h>.
26125 (fabsf): Define using libm_alias_float.
26126 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf.S:
26127 Include <libm-alias-float.h>.
26128 (copysignf): Define using libm_alias_float.
26129 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf.S: Include
26130 <libm-alias-float.h>.
26131 (fabsf): Define using libm_alias_float.
26132 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdimf.c: Include
26133 <libm-alias-float.h>.
26134 (fdimf): Define using libm_alias_float.
26135 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaf.c: Include
26136 <libm-alias-float.h>.
26137 (fmaf): Define using libm_alias_float.
26138 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.S: Include
26139 <libm-alias-float.h>.
26140 (llrintf): Define using libm_alias_float.
26141 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyintf.S:
26142 Include <libm-alias-float.h>.
26143 (nearbyintf): Define using libm_alias_float.
26144 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf.S: Include
26145 <libm-alias-float.h>.
26146 (rintf): Define using libm_alias_float.
26147 * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrintf.S: Include
26148 <libm-alias-float.h>.
26149 (llrintf): Define using libm_alias_float.
26150 * sysdeps/sparc/sparc32/sparcv9/fpu/s_lrintf.S: Include
26151 <libm-alias-float.h>.
26152 (lrintf): Define using libm_alias_float.
26153 * sysdeps/sparc/sparc32/sparcv9/fpu/s_nearbyintf.S: Include
26154 <libm-alias-float.h>.
26155 (nearbyintf): Define using libm_alias_float.
26156 * sysdeps/sparc/sparc32/sparcv9/fpu/s_rintf.S: Include
26157 <libm-alias-float.h>.
26158 (rintf): Define using libm_alias_float.
26159 * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.c: Include
26160 <libm-alias-float.h>.
26161 (ceilf): Define using libm_alias_float.
26162 * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.c: Include
26163 <libm-alias-float.h>.
26164 (floorf): Define using libm_alias_float.
26165 * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaf.c: Include
26166 <libm-alias-float.h>.
26167 (fmaf): Define using libm_alias_float.
26168 * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf.c: Include
26169 <libm-alias-float.h>.
26170 (lrintf): Define using libm_alias_float.
26171 (llrintf): Likewise.
26172 * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyintf.c: Include
26173 <libm-alias-float.h>.
26174 (nearbyintf): Define using libm_alias_float.
26175 * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf.c: Include
26176 <libm-alias-float.h>.
26177 (rintf): Define using libm_alias_float.
26178 * sysdeps/sparc/sparc64/fpu/multiarch/s_truncf.c: Include
26179 <libm-alias-float.h>.
26180 (truncf): Define using libm_alias_float.
26181 * sysdeps/sparc/sparc64/fpu/s_copysignf.S: Include
26182 <libm-alias-float.h>.
26183 (copysignf): Define using libm_alias_float.
26184 * sysdeps/sparc/sparc64/fpu/s_fabsf.c: Include
26185 <libm-alias-float.h>.
26186 (fabsf): Define using libm_alias_float.
26187 * sysdeps/sparc/sparc64/fpu/s_lrintf.S: Include
26188 <libm-alias-float.h>.
26189 (lrintf): Define using libm_alias_float.
26190 (llrintf): Likewise.
26191 * sysdeps/sparc/sparc64/fpu/s_nearbyintf.S: Include
26192 <libm-alias-float.h>.
26193 (nearbyintf): Define using libm_alias_float.
26194 * sysdeps/sparc/sparc64/fpu/s_rintf.S: Include
26195 <libm-alias-float.h>.
26196 (rintf): Define using libm_alias_float.
26197
26198 2017-11-29 Joseph Myers <joseph@codesourcery.com>
26199
26200 * sysdeps/sparc/sparc32/fpu/s_copysign.S: Include
26201 <libm-alias-double.h>.
26202 (copysign): Define using libm_alias_double.
26203 * sysdeps/sparc/sparc32/fpu/s_fabs.S: Include
26204 <libm-alias-double.h>.
26205 (fabs): Define using libm_alias_double.
26206 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.S:
26207 Include <libm-alias-double.h>.
26208 (copysign): Define using libm_alias_double.
26209 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.S: Include
26210 <libm-alias-double.h>.
26211 (fabs): Define using libm_alias_double.
26212 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdim.c: Include
26213 <libm-alias-double.h>.
26214 (fdim): Define using libm_alias_double.
26215 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fma.c: Include
26216 <libm-alias-double.h>.
26217 (fma): Define using libm_alias_double.
26218 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S: Include
26219 <libm-alias-double.h>.
26220 (llrint): Define using libm_alias_double.
26221 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyint.S:
26222 Include <libm-alias-double.h>.
26223 (nearbyint): Define using libm_alias_double.
26224 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: Include
26225 <libm-alias-double.h>.
26226 (rint): Define using libm_alias_double.
26227 * sysdeps/sparc/sparc32/sparcv9/fpu/s_fabs.S: Include
26228 <libm-alias-double.h>.
26229 (fabs): Define using libm_alias_double.
26230 * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrint.S: Include
26231 <libm-alias-double.h>.
26232 (llrint): Define using libm_alias_double.
26233 * sysdeps/sparc/sparc32/sparcv9/fpu/s_nearbyint.S: Include
26234 <libm-alias-double.h>.
26235 (nearbyint): Define using libm_alias_double.
26236 * sysdeps/sparc/sparc32/sparcv9/fpu/s_rint.S: Include
26237 <libm-alias-double.h>.
26238 (rint): Define using libm_alias_double.
26239 * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.c: Include
26240 <libm-alias-double.h>.
26241 (ceil): Define using libm_alias_double.
26242 * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.c: Include
26243 <libm-alias-double.h>.
26244 (floor): Define using libm_alias_double.
26245 * sysdeps/sparc/sparc64/fpu/multiarch/s_fma.c: Include
26246 <libm-alias-double.h>.
26247 (fma): Define using libm_alias_double.
26248 * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint.c: Include
26249 <libm-alias-double.h>.
26250 (lrint): Define using libm_alias_double.
26251 (llrint): Likewise.
26252 * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyint.c: Include
26253 <libm-alias-double.h>.
26254 (nearbyint): Define using libm_alias_double.
26255 * sysdeps/sparc/sparc64/fpu/multiarch/s_rint.c: Include
26256 <libm-alias-double.h>.
26257 (rint): Define using libm_alias_double.
26258 * sysdeps/sparc/sparc64/fpu/multiarch/s_trunc.c: Include
26259 <libm-alias-double.h>.
26260 (trunc): Define using libm_alias_double.
26261 * sysdeps/sparc/sparc64/fpu/s_copysign.S: Include
26262 <libm-alias-double.h>.
26263 (copysign): Define using libm_alias_double.
26264 * sysdeps/sparc/sparc64/fpu/s_fabs.c: Include
26265 <libm-alias-double.h>.
26266 (fabs): Define using libm_alias_double.
26267 * sysdeps/sparc/sparc64/fpu/s_lrint.S: Include
26268 <libm-alias-double.h>.
26269 (lrint): Define using libm_alias_double.
26270 (llrint): Likewise.
26271 * sysdeps/sparc/sparc64/fpu/s_nearbyint.S: Include
26272 <libm-alias-double.h>.
26273 (nearbyint): Define using libm_alias_double.
26274 * sysdeps/sparc/sparc64/fpu/s_rint.S: Include
26275 <libm-alias-double.h>.
26276 (rint): Define using libm_alias_double.
26277
26278 [BZ #22229]
26279 * sysdeps/sparc/sparc32/sparcv9/fpu/s_fabs.S: Include
26280 <math_ldbl_opt.h>.
26281 (fabsl): Define as compat symbol at version GLIBC_2_0 for libm.
26282
26283 * scripts/build-many-glibcs.py (Context.add_all_configs): Add
26284 SPARC --disable-multi-arch glibc variants.
26285
26286 * sysdeps/x86_64/fpu/multiarch/e_exp2f.c: Include
26287 <libm-alias-float.h>.
26288 (exp2f): Define using libm_alias_float, or libm_alias_float_other
26289 if [SHARED].
26290 * sysdeps/x86_64/fpu/multiarch/e_expf.c: Include
26291 <libm-alias-float.h>.
26292 (exp2f): Define using libm_alias_float, or libm_alias_float_other
26293 if [SHARED].
26294 * sysdeps/x86_64/fpu/multiarch/e_log2f.c: Include
26295 <libm-alias-float.h>.
26296 (exp2f): Define using libm_alias_float, or libm_alias_float_other
26297 if [SHARED].
26298 * sysdeps/x86_64/fpu/multiarch/e_logf.c: Include
26299 <libm-alias-float.h>.
26300 (exp2f): Define using libm_alias_float, or libm_alias_float_other
26301 if [SHARED].
26302 * sysdeps/x86_64/fpu/multiarch/e_powf.c: Include
26303 <libm-alias-float.h>.
26304 (exp2f): Define using libm_alias_float, or libm_alias_float_other
26305 if [SHARED].
26306 * sysdeps/x86_64/fpu/multiarch/s_ceilf.c: Include
26307 <libm-alias-float.h>.
26308 (ceilf): Define using libm_alias_float.
26309 * sysdeps/x86_64/fpu/multiarch/s_floorf.c: Include
26310 <libm-alias-float.h>.
26311 (floorf): Define using libm_alias_float.
26312 * sysdeps/x86_64/fpu/multiarch/s_fmaf.c: Include
26313 <libm-alias-float.h>.
26314 (fmaf): Define using libm_alias_float.
26315 * sysdeps/x86_64/fpu/multiarch/s_nearbyintf.c: Include
26316 <libm-alias-float.h>.
26317 (nearbyintf): Define using libm_alias_float.
26318 * sysdeps/x86_64/fpu/multiarch/s_rintf.c: Include
26319 <libm-alias-float.h>.
26320 (rintf): Define using libm_alias_float.
26321 * sysdeps/x86_64/fpu/multiarch/s_truncf.c: Include
26322 <libm-alias-float.h>.
26323 (truncf): Define using libm_alias_float.
26324 * sysdeps/x86_64/fpu/s_copysignf.S: Include <libm-alias-float.h>.
26325 (copysignf): Define using libm_alias_float.
26326 * sysdeps/x86_64/fpu/s_cosf.S: Include <libm-alias-float.h>.
26327 (cosf): Define using libm_alias_float.
26328 * sysdeps/x86_64/fpu/s_fabsf.c: Include <libm-alias-float.h>.
26329 (fabsf): Define using libm_alias_float.
26330 * sysdeps/x86_64/fpu/s_fmaxf.S: Include <libm-alias-float.h>.
26331 (fmaxf): Define using libm_alias_float.
26332 * sysdeps/x86_64/fpu/s_fminf.S: Include <libm-alias-float.h>.
26333 (fminf): Define using libm_alias_float.
26334 * sysdeps/x86_64/fpu/s_llrintf.S: Include <libm-alias-float.h>.
26335 (llrintf): Define using libm_alias_float.
26336 [!__ILP32__] (lrintf): Likewise.
26337 * sysdeps/x86_64/fpu/s_sincosf.S: Include <libm-alias-float.h>.
26338 (sincosf): Define using libm_alias_float.
26339 * sysdeps/x86_64/fpu/s_sinf.S: Include <libm-alias-float.h>.
26340 (sinf): Define using libm_alias_float.
26341 * sysdeps/x86_64/x32/fpu/s_lrintf.S: Include <libm-alias-float.h>.
26342 (lrintf): Define using libm_alias_float.
26343
26344 * sysdeps/x86_64/fpu/multiarch/s_atan.c: Include
26345 <libm-alias-double.h>.
26346 (atan): Define using libm_alias_double.
26347 * sysdeps/x86_64/fpu/multiarch/s_ceil.c: Include
26348 <libm-alias-double.h>.
26349 (ceil): Define using libm_alias_double.
26350 * sysdeps/x86_64/fpu/multiarch/s_floor.c: Include
26351 <libm-alias-double.h>.
26352 (floor): Define using libm_alias_double.
26353 * sysdeps/x86_64/fpu/multiarch/s_fma.c: Include
26354 <libm-alias-double.h>.
26355 (fma): Define using libm_alias_double.
26356 * sysdeps/x86_64/fpu/multiarch/s_nearbyint.c: Include
26357 <libm-alias-double.h>.
26358 (nearbyint): Define using libm_alias_double.
26359 * sysdeps/x86_64/fpu/multiarch/s_rint.c: Include
26360 <libm-alias-double.h>.
26361 (rint): Define using libm_alias_double.
26362 * sysdeps/x86_64/fpu/multiarch/s_sin.c: Include
26363 <libm-alias-double.h>.
26364 (sin): Define using libm_alias_double.
26365 (cos): Likewise.
26366 * sysdeps/x86_64/fpu/multiarch/s_tan.c: Include
26367 <libm-alias-double.h>.
26368 (tan): Define using libm_alias_double.
26369 * sysdeps/x86_64/fpu/multiarch/s_trunc.c: Include
26370 <libm-alias-double.h>.
26371 (trunc): Define using libm_alias_double.
26372 * sysdeps/x86_64/fpu/s_copysign.S: Include <libm-alias-double.h>.
26373 (copysign): Define using libm_alias_double.
26374 * sysdeps/x86_64/fpu/s_fabs.c: Include <libm-alias-double.h>.
26375 (fabs): Define using libm_alias_double.
26376 * sysdeps/x86_64/fpu/s_fmax.S: Include <libm-alias-double.h>.
26377 (fmax): Define using libm_alias_double.
26378 * sysdeps/x86_64/fpu/s_fmin.S: Include <libm-alias-double.h>.
26379 (fmin): Define using libm_alias_double.
26380 * sysdeps/x86_64/fpu/s_llrint.S: Include <libm-alias-double.h>.
26381 (llrint): Define using libm_alias_double.
26382 [!__ILP32__] (lrint): Likewise.
26383 * sysdeps/x86_64/x32/fpu/s_lrint.S: Include <libm-alias-double.h>.
26384 (lrint): Define using libm_alias_double.
26385
26386 2017-11-29 Adhemerval Zanella <adhemerval.zanella@linaro.org>
26387
26388 * sysdeps/sparc/sparc64/fpu/multiarch/Makefile
26389 (libm-sysdep_routines): Add s_rintf-generic and s_rint-generic
26390 objects.
26391 * sysdeps/sparc/sparc64/fpu/multiarch/s_rint-generic.S: New file.
26392 * sysdeps/sparc/sparc64/fpu/multiarch/s_rint.c: Likewise.
26393 * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf-generic.S: Likewise.
26394 * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf.c: Likewise.
26395 * sysdeps/sparc/sparc64/fpu/multiarch/s_rint.S: Remove file.
26396 * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf.S: Likewise.
26397
26398 * sysdeps/sparc/sparc64/fpu/multiarch/Makefile
26399 (libm-sysdep_routines): Add s_lrint-generic and s_lrintf-generic
26400 objects.
26401 * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint-generic.S: New file.
26402 * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint.c: Likewise.
26403 * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf-generic.S: Likewise.
26404 * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf.c: Likewise.
26405 * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint.S: Remove file.
26406 * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf.S: Likewise.
26407
26408 * sysdeps/sparc/sparc64/fpu/multiarch/Makefile
26409 (libm-sysdep_routines): Add s_nearbyint-generic and
26410 s_nearbyintf-generic objects.
26411 * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyint-generic.S: New file.
26412 * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyint.c: Likewise.
26413 * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyintf-generic.S: Likewise.
26414 * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyintf.c: Likewise.
26415 * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyint.S: Remove file.
26416 * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyintf.S: Likewise.
26417
26418 * sysdeps/sparc/sparc64/fpu/multiarch/Makefile (sysdeps_calls):
26419 Add s_finitef-generic and s_finite-generic objects.
26420 * sysdeps/sparc/sparc64/fpu/multiarch/s_finite-generic.S: New file.
26421 * sysdeps/sparc/sparc64/fpu/multiarch/s_finite.c: Likewise.
26422 * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef-generic.S: Likewise.
26423 * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef.c: Likewise.
26424 * sysdeps/sparc/sparc64/fpu/multiarch/s_finite.S: Remove file.
26425 * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef.S: Remove file.
26426
26427 * sysdeps/sparc/sparc64/fpu/multiarch/Makefile (sysdeps_calls):
26428 Add s_isinff-generic and s_isinf-generic objects.
26429 * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf-generic.S: New file.
26430 * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf.c: Likewise.
26431 * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff-generic.S: Likewise.
26432 * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff.c: Likewise.
26433 * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf.S: Remove file.
26434 * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff.S: Likewise.
26435
26436 * sysdeps/sparc/sparc64/fpu/multiarch/Makefile (sysdeps_calls):
26437 Add s_isnanf-generic and s_isnan-generic objects.
26438 * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan-generic.S: New file.
26439 * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf-generic.S: Likewise.
26440 * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan.c: Likewise.
26441 * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf.c: Likewise.
26442 * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan.S: Remove file.
26443 * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf.S: Likewise.
26444
26445 * sysdeps/sparc/sparc-ifunc.h (sparc_libm_ifunc_redirected): New
26446 macro.
26447 * sysdeps/sparc/sparc64/fpu/multiarch/Makefile (sysdep_calls): New
26448 rule.
26449 (sysdep_routines): Use sysdep_calls as base.
26450 (libm-sysdep_routines): Add generic rule for symbols shared with
26451 libc. Add s_signbit-generic and s_signbitf-generic objects.
26452 * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit.c: New file.
26453 * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf.c: Likewise.
26454 * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit-generic.S: Likewise.
26455 * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf-generic.S: Likewise.
26456 * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit.S: Remove file.
26457 * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf.S: Likewise.
26458
26459 2017-11-29 Joseph Myers <joseph@codesourcery.com>
26460
26461 * sysdeps/ia64/fpu/libm-symbols.h: Include <libm-alias-float.h>.
26462 * sysdeps/ia64/fpu/e_acosf.S (acosf): Use libm_alias_float_other.
26463 * sysdeps/ia64/fpu/e_acoshf.S (acoshf): Likewise.
26464 * sysdeps/ia64/fpu/e_asinf.S (asinf): Likewise.
26465 * sysdeps/ia64/fpu/e_atan2f.S (atan2f): Likewise.
26466 * sysdeps/ia64/fpu/e_atanhf.S (atanhf): Likewise.
26467 * sysdeps/ia64/fpu/e_coshf.S (coshf): Likewise.
26468 * sysdeps/ia64/fpu/e_exp10f.S (exp10f): Likewise.
26469 * sysdeps/ia64/fpu/e_exp2f.S (exp2f): Likewise.
26470 * sysdeps/ia64/fpu/e_expf.S (expf): Likewise.
26471 * sysdeps/ia64/fpu/e_fmodf.S (fmodf): Likewise.
26472 * sysdeps/ia64/fpu/e_hypotf.S (hypotf): Likewise.
26473 * sysdeps/ia64/fpu/e_lgammaf_r.c (lgammaf_r): Define using
26474 libm_alias_float_r.
26475 * sysdeps/ia64/fpu/e_log2f.S (log2f): Use libm_alias_float_other.
26476 * sysdeps/ia64/fpu/e_logf.S (log10f): Likewise.
26477 (logf): Likewise.
26478 * sysdeps/ia64/fpu/e_powf.S (powf): Likewise.
26479 * sysdeps/ia64/fpu/e_remainderf.S (remainderf): Likewise.
26480 * sysdeps/ia64/fpu/e_sinhf.S (sinhf): Likewise.
26481 * sysdeps/ia64/fpu/e_sqrtf.S (sqrtf): Likewise.
26482 * sysdeps/ia64/fpu/libm_sincosf.S (sincosf): Likewise.
26483 * sysdeps/ia64/fpu/s_asinhf.S (asinhf): Likewise.
26484 * sysdeps/ia64/fpu/s_atanf.S (atanf): Likewise.
26485 * sysdeps/ia64/fpu/s_cbrtf.S (cbrtf): Likewise.
26486 * sysdeps/ia64/fpu/s_ceilf.S (ceilf): Likewise.
26487 * sysdeps/ia64/fpu/s_copysign.S (copysignf): Define using
26488 libm_alias_float.
26489 * sysdeps/ia64/fpu/s_cosf.S (sinf): Use libm_alias_float_other.
26490 (cosf): Likewise.
26491 * sysdeps/ia64/fpu/s_erfcf.S (erfcf): Likewise.
26492 * sysdeps/ia64/fpu/s_erff.S (erff): Likewise.
26493 * sysdeps/ia64/fpu/s_expm1f.S (expm1f): Likewise.
26494 * sysdeps/ia64/fpu/s_fabsf.S (fabsf): Likewise.
26495 * sysdeps/ia64/fpu/s_fdimf.S (fdimf): Likewise.
26496 * sysdeps/ia64/fpu/s_floorf.S (floorf): Likewise.
26497 * sysdeps/ia64/fpu/s_fmaf.S (fmaf): Likewise.
26498 * sysdeps/ia64/fpu/s_fmaxf.S (fmaxf): Likewise.
26499 * sysdeps/ia64/fpu/s_frexpf.c (frexpf): Likewise.
26500 * sysdeps/ia64/fpu/s_ldexpf.c (ldexpf): Likewise.
26501 * sysdeps/ia64/fpu/s_log1pf.S (log1pf): Likewise.
26502 * sysdeps/ia64/fpu/s_logbf.S (logbf): Likewise.
26503 * sysdeps/ia64/fpu/s_modff.S (modff): Likewise.
26504 * sysdeps/ia64/fpu/s_nearbyintf.S (nearbyintf): Likewise.
26505 * sysdeps/ia64/fpu/s_nextafterf.S (nextafterf): Likewise.
26506 * sysdeps/ia64/fpu/s_rintf.S (rintf): Likewise.
26507 * sysdeps/ia64/fpu/s_roundf.S (roundf): Likewise.
26508 * sysdeps/ia64/fpu/s_scalblnf.c (scalblnf): Likewise.
26509 * sysdeps/ia64/fpu/s_scalbnf.c (scalbnf): Define using
26510 libm_alias_float.
26511 * sysdeps/ia64/fpu/s_tanf.S (tanf): Use libm_alias_float_other.
26512 * sysdeps/ia64/fpu/s_tanhf.S (tanhf): Likewise.
26513 * sysdeps/ia64/fpu/s_truncf.S (truncf): Likewise.
26514 * sysdeps/ia64/fpu/w_lgammaf_main.c
26515 [BUILD_LGAMMA && !USE_AS_COMPAT] (lgammaf): Likewise.
26516 * sysdeps/ia64/fpu/w_tgammaf_compat.S (tgammaf): Likewise.
26517
26518 2017-11-28 Mike FABIAN <mfabian@redhat.com>
26519 Alexandre Oliva <aoliva@redhat.com>
26520
26521 [BZ #17750]
26522 * Makefile: add fr_CA.UTF-8 to test-input and LOCALES.
26523 * localedata/fr_CA.UTF-8.in: New file with test data for backward
26524 accents sorting.
26525 * localedata/fr_FR.UTF-8.in: Fix test data for forward accents
26526 sorting.
26527 * localedata/locales/cs_CZ (LC_COLLATE): Remove “define DIACRIT_FORWARD”
26528 * localedata/locales/de_DE (LC_COLLATE): Likewise.
26529 * localedata/locales/hu_HU (LC_COLLATE): Likewise.
26530 * localedata/locales/lb_LU (LC_COLLATE): Likewise.
26531 * localedata/locales/yuw_PG (LC_COLLATE): Likewise.
26532 * localedata/locales/fr_CA (LC_COLLATE): Add “define DIACRIT_BACKWARD”
26533 * localedata/locales/iso14651_t1_common: Use “ifdef DIACRIT_FORWARD”
26534 instead of “ifdef DIACRIT_BACKWARD”.
26535
26536 2017-11-29 Adhemerval Zanella <adhemerval.zanella@linaro.org>
26537
26538 * config.h.in (HAVE_AS_VIS3_SUPPORT): Remove check for VIS3 support.
26539 * sysdeps/sparc/configure.ac (HAVE_AS_VIS3_SUPPORT): Likewise.
26540 * sysdeps//sparc/sparc32/sparcv9/fpu/multiarch/s_fdim.c: Likewise.
26541 * sysdeps//sparc/sparc32/sparcv9/fpu/multiarch/s_fdimf.c: Likewise.
26542 * sysdeps//sparc/sparc32/sparcv9/fpu/multiarch/s_fma.c: Likewise.
26543 * sysdeps//sparc/sparc32/sparcv9/fpu/multiarch/s_fmaf.c: Likewise.
26544 * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.c: Likewise.
26545 * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.c: Likewise.
26546 * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.c: Likewise.
26547 * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.c: Likewise.
26548 * sysdeps/sparc/sparc64/fpu/multiarch/s_fma.c: Likewise.
26549 * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaf.c: Likewise.
26550 * sysdeps/sparc/sparc64/fpu/multiarch/s_trunc.c: Likewise.
26551 * sysdeps/sparc/sparc64/fpu/multiarch/s_truncf.c: Likewise.
26552 * sysdeps/sparc/sparc-ifunc.h [!HAVE_AS_VIS3_SUPPORT]
26553 (SPARC_ASM_VIS3_IFUNC, SPARC_ASM_VIS3_VIS2_IFUNC): Remove macros.
26554 * sysdeps/sparc/sparc32/sparcv9/Makefile [$(have-as-vis3) != yes]
26555 (ASFLAGS.o, ASFLAGS-.os, ASFLAGS-.op, ASFLAGS-.oS): Remove rules.
26556 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile
26557 ($(have-as-vis3) == yes): Remove conditional.
26558 * sysdeps/sparc/sparc64/Makefile (($(have-as-vis3) == yes)):
26559 Likewise.
26560 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdim-generic.c: New
26561 file.
26562 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdimf-generic.c: New
26563 file.
26564 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fma-generic.c: New
26565 file.
26566 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaf-generic.c: New
26567 file.
26568 * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil-generic.c: New file.
26569 * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf-generic.c: New file.
26570 * sysdeps/sparc/sparc64/fpu/multiarch/s_floor-generic.c: New file.
26571 * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf-generic.c: New file.
26572 * sysdeps/sparc/sparc64/fpu/multiarch/s_fma-generic.c: New file.
26573 * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaf-generic.c: New file.
26574 * sysdeps/sparc/sparc64/fpu/multiarch/s_trunc-generic.c: New file.
26575 * sysdeps/sparc/sparc64/fpu/multiarch/s_truncf-generic.c: New file.
26576
26577 2017-11-29 Joseph Myers <joseph@codesourcery.com>
26578
26579 * sysdeps/ia64/fpu/libm-symbols.h: Include <libm-alias-double.h>.
26580 * sysdeps/ia64/fpu/e_acos.S (acos): Use libm_alias_double_other.
26581 * sysdeps/ia64/fpu/e_acosh.S (acosh): Likewise.
26582 * sysdeps/ia64/fpu/e_asin.S (asin): Likewise.
26583 * sysdeps/ia64/fpu/e_atan2.S (atan2): Likewise.
26584 * sysdeps/ia64/fpu/e_atanh.S (atanh): Likewise.
26585 * sysdeps/ia64/fpu/e_cosh.S (cosh): Likewise.
26586 * sysdeps/ia64/fpu/e_exp.S (exp): Likewise.
26587 * sysdeps/ia64/fpu/e_exp10.S (exp10): Likewise.
26588 * sysdeps/ia64/fpu/e_exp2.S (exp2): Likewise.
26589 * sysdeps/ia64/fpu/e_fmod.S (fmod): Likewise.
26590 * sysdeps/ia64/fpu/e_hypot.S (hypot): Likewise.
26591 * sysdeps/ia64/fpu/e_lgamma_r.c (lgamma_r): Define using
26592 libm_alias_double_r.
26593 * sysdeps/ia64/fpu/e_log.S (log10): Use libm_alias_double_other.
26594 (log): Likewise.
26595 * sysdeps/ia64/fpu/e_log2.S (log2): Likewise.
26596 * sysdeps/ia64/fpu/e_pow.S (pow): Likewise.
26597 * sysdeps/ia64/fpu/e_remainder.S (remainder): Likewise.
26598 * sysdeps/ia64/fpu/e_sinh.S (sinh): Likewise.
26599 * sysdeps/ia64/fpu/e_sqrt.S (sqrt): Likewise.
26600 * sysdeps/ia64/fpu/libm_sincos.S (sincos): Likewise.
26601 * sysdeps/ia64/fpu/s_asinh.S (asinh): Likewise.
26602 * sysdeps/ia64/fpu/s_atan.S (atan): Likewise.
26603 * sysdeps/ia64/fpu/s_cbrt.S (cbrt): Likewise.
26604 * sysdeps/ia64/fpu/s_ceil.S (ceil): Likewise.
26605 * sysdeps/ia64/fpu/s_copysign.S (copysign): Define using
26606 libm_alias_double.
26607 * sysdeps/ia64/fpu/s_cos.S (sin): Use libm_alias_double_other.
26608 (cos): Likewise.
26609 * sysdeps/ia64/fpu/s_erf.S (erf): Likewise.
26610 * sysdeps/ia64/fpu/s_erfc.S (erfc): Likewise.
26611 * sysdeps/ia64/fpu/s_expm1.S (expm1): Likewise.
26612 * sysdeps/ia64/fpu/s_fabs.S (fabs): Likewise.
26613 * sysdeps/ia64/fpu/s_fdim.S (fdim): Likewise.
26614 * sysdeps/ia64/fpu/s_floor.S (floor): Likewise.
26615 * sysdeps/ia64/fpu/s_fma.S (fma): Likewise.
26616 * sysdeps/ia64/fpu/s_fmax.S (fmax): Likewise.
26617 * sysdeps/ia64/fpu/s_frexp.c (frexp): Likewise.
26618 * sysdeps/ia64/fpu/s_ldexp.c (ldexp): Likewise.
26619 * sysdeps/ia64/fpu/s_log1p.S (log1p): Likewise.
26620 * sysdeps/ia64/fpu/s_logb.S (logb): Likewise.
26621 * sysdeps/ia64/fpu/s_modf.S (modf): Likewise.
26622 * sysdeps/ia64/fpu/s_nearbyint.S (nearbyint): Likewise.
26623 * sysdeps/ia64/fpu/s_nextafter.S (nextafter): Likewise.
26624 * sysdeps/ia64/fpu/s_rint.S (rint): Likewise.
26625 * sysdeps/ia64/fpu/s_round.S (round): Likewise.
26626 * sysdeps/ia64/fpu/s_scalbn.c (scalbn): Define using
26627 libm_alias_double.
26628 * sysdeps/ia64/fpu/s_tan.S (tan): Use libm_alias_double_other.
26629 * sysdeps/ia64/fpu/s_tanh.S (tanh): Likewise.
26630 * sysdeps/ia64/fpu/s_trunc.S (trunc): Likewise.
26631 * sysdeps/ia64/fpu/w_lgamma_main.c
26632 [BUILD_LGAMMA && !USE_AS_COMPAT] (lgamma): Likewise.
26633 * sysdeps/ia64/fpu/w_tgamma_compat.S (tgamma): Likewise.
26634
26635 2017-11-28 John David Anglin <danglin@gcc.gnu.org>
26636
26637 * sysdeps/hppa/start.S (_start): Check PIC instead of SHARED. Load
26638 address of $global$ into %dp register earlier. Use pc-relative
26639 instruction sequence for PIC case.
26640
26641 2017-11-28 Joseph Myers <joseph@codesourcery.com>
26642
26643 * sysdeps/i386/fpu/s_asinhf.S: Include <libm-alias-float.h>.
26644 (asinhf): Define using libm_alias_float.
26645 * sysdeps/i386/fpu/s_atanf.S: Include <libm-alias-float.h>.
26646 (atanf): Define using libm_alias_float.
26647 * sysdeps/i386/fpu/s_cbrtf.S: Include <libm-alias-float.h>.
26648 (cbrtf): Define using libm_alias_float.
26649 * sysdeps/i386/fpu/s_ceilf.S: Include <libm-alias-float.h>.
26650 (ceilf): Define using libm_alias_float.
26651 * sysdeps/i386/fpu/s_copysignf.S: Include <libm-alias-float.h>.
26652 (copysignf): Define using libm_alias_float.
26653 * sysdeps/i386/fpu/s_expm1f.S: Include <libm-alias-float.h>.
26654 (expm1f): Define using libm_alias_float.
26655 * sysdeps/i386/fpu/s_fabsf.S: Include <libm-alias-float.h>.
26656 (fabsf): Define using libm_alias_float.
26657 * sysdeps/i386/fpu/s_floorf.S: Include <libm-alias-float.h>.
26658 (floorf): Define using libm_alias_float.
26659 * sysdeps/i386/fpu/s_fmaxf.S: Include <libm-alias-float.h>.
26660 (fmaxf): Define using libm_alias_float.
26661 * sysdeps/i386/fpu/s_fminf.S: Include <libm-alias-float.h>.
26662 (fminf): Define using libm_alias_float.
26663 * sysdeps/i386/fpu/s_frexpf.S: Include <libm-alias-float.h>.
26664 (frexpf): Define using libm_alias_float.
26665 * sysdeps/i386/fpu/s_llrintf.S: Include <libm-alias-float.h>.
26666 (llrintf): Define using libm_alias_float.
26667 * sysdeps/i386/fpu/s_logbf.S: Include <libm-alias-float.h>.
26668 (logbf): Define using libm_alias_float.
26669 * sysdeps/i386/fpu/s_lrintf.S: Include <libm-alias-float.h>.
26670 (lrintf): Define using libm_alias_float.
26671 * sysdeps/i386/fpu/s_nearbyintf.S: Include <libm-alias-float.h>.
26672 (nearbyintf): Define using libm_alias_float.
26673 * sysdeps/i386/fpu/s_remquof.S: Include <libm-alias-float.h>.
26674 (remquof): Define using libm_alias_float.
26675 * sysdeps/i386/fpu/s_rintf.S: Include <libm-alias-float.h>.
26676 (rintf): Define using libm_alias_float.
26677 * sysdeps/i386/fpu/s_truncf.S: Include <libm-alias-float.h>.
26678 (truncf): Define using libm_alias_float.
26679 * sysdeps/i386/i686/fpu/multiarch/e_exp2f.c: Include
26680 <libm-alias-float.h>.
26681 (exp2f): Define using libm_alias_float, or libm_alias_float_other
26682 if [SHARED].
26683 * sysdeps/i386/i686/fpu/multiarch/e_expf.c: Include
26684 <libm-alias-float.h>.
26685 (expf): Define using libm_alias_float, or libm_alias_float_other
26686 if [SHARED].
26687 * sysdeps/i386/i686/fpu/multiarch/e_log2f.c: Include
26688 <libm-alias-float.h>.
26689 (log2f): Define using libm_alias_float, or libm_alias_float_other
26690 if [SHARED].
26691 * sysdeps/i386/i686/fpu/multiarch/e_logf.c: Include
26692 <libm-alias-float.h>.
26693 (logf): Define using libm_alias_float, or libm_alias_float_other
26694 if [SHARED].
26695 * sysdeps/i386/i686/fpu/multiarch/e_powf.c: Include
26696 <libm-alias-float.h>.
26697 (powf): Define using libm_alias_float, or libm_alias_float_other
26698 if [SHARED].
26699 * sysdeps/i386/i686/fpu/multiarch/s_cosf.c: Include
26700 <libm-alias-float.h>.
26701 (cosf): Define using libm_alias_float.
26702 * sysdeps/i386/i686/fpu/multiarch/s_sincosf.c: Include
26703 <libm-alias-float.h>.
26704 (sincosf): Define using libm_alias_float.
26705 * sysdeps/i386/i686/fpu/multiarch/s_sinf.c: Include
26706 <libm-alias-float.h>.
26707 (sinf): Define using libm_alias_float.
26708 * sysdeps/i386/i686/fpu/s_fmaxf.S: Include <libm-alias-float.h>.
26709 (fmaxf): Define using libm_alias_float.
26710 * sysdeps/i386/i686/fpu/s_fminf.S: Include <libm-alias-float.h>.
26711 (fminf): Define using libm_alias_float.
26712 * sysdeps/i386/i686/multiarch/s_fmaf.c: Include
26713 <libm-alias-float.h>.
26714 (fmaf): Define using libm_alias_float.
26715
26716 * sysdeps/i386/fpu/s_asinh.S: Include <libm-alias-double.h>.
26717 (asinh): Define using libm_alias_double.
26718 * sysdeps/i386/fpu/s_atan.S: Include <libm-alias-double.h>.
26719 (atan): Define using libm_alias_double.
26720 * sysdeps/i386/fpu/s_cbrt.S: Include <libm-alias-double.h>.
26721 (cbrt): Define using libm_alias_double.
26722 * sysdeps/i386/fpu/s_ceil.S: Include <libm-alias-double.h>.
26723 (ceil): Define using libm_alias_double.
26724 * sysdeps/i386/fpu/s_copysign.S: Include <libm-alias-double.h>.
26725 (copysign): Define using libm_alias_double.
26726 * sysdeps/i386/fpu/s_expm1.S: Include <libm-alias-double.h>.
26727 (expm1): Define using libm_alias_double.
26728 * sysdeps/i386/fpu/s_fabs.S: Include <libm-alias-double.h>.
26729 (fabs): Define using libm_alias_double.
26730 * sysdeps/i386/fpu/s_fdim.c: Include <libm-alias-double.h>.
26731 (fdim): Define using libm_alias_double.
26732 * sysdeps/i386/fpu/s_floor.S: Include <libm-alias-double.h>.
26733 (floor): Define using libm_alias_double.
26734 * sysdeps/i386/fpu/s_fmax.S: Include <libm-alias-double.h>.
26735 (fmax): Define using libm_alias_double.
26736 * sysdeps/i386/fpu/s_fmin.S: Include <libm-alias-double.h>.
26737 (fmin): Define using libm_alias_double.
26738 * sysdeps/i386/fpu/s_frexp.S: Include <libm-alias-double.h>.
26739 (frexp): Define using libm_alias_double.
26740 * sysdeps/i386/fpu/s_llrint.S: Include <libm-alias-double.h>.
26741 (llrint): Define using libm_alias_double.
26742 * sysdeps/i386/fpu/s_logb.S: Include <libm-alias-double.h>.
26743 (logb): Define using libm_alias_double.
26744 * sysdeps/i386/fpu/s_lrint.S: Include <libm-alias-double.h>.
26745 (lrint): Define using libm_alias_double.
26746 * sysdeps/i386/fpu/s_nearbyint.S: Include <libm-alias-double.h>.
26747 (nearbyint): Define using libm_alias_double.
26748 * sysdeps/i386/fpu/s_remquo.S: Include <libm-alias-double.h>.
26749 (remquo): Define using libm_alias_double.
26750 * sysdeps/i386/fpu/s_rint.S: Include <libm-alias-double.h>.
26751 (rint): Define using libm_alias_double.
26752 * sysdeps/i386/fpu/s_trunc.S: Include <libm-alias-double.h>.
26753 (trunc): Define using libm_alias_double.
26754 * sysdeps/i386/i686/fpu/s_fmax.S: Include <libm-alias-double.h>.
26755 (fmax): Define using libm_alias_double.
26756 * sysdeps/i386/i686/fpu/s_fmin.S: Include <libm-alias-double.h>.
26757 (fmin): Define using libm_alias_double.
26758 * sysdeps/i386/i686/multiarch/s_fma.c: Include <libm-alias-double.h>.
26759 (fma): Define using libm_alias_double.
26760
26761 2017-11-28 H.J. Lu <hongjiu.lu@intel.com>
26762
26763 [BZ #22370]
26764 * elf/dl-hwcaps.c (ROUND): Removed.
26765 (_dl_important_hwcaps): Replace ROUND with ELF_NOTE_DESC_OFFSET
26766 and ELF_NOTE_NEXT_OFFSET.
26767 * elf/dl-load.c (ROUND): Removed.
26768 (open_verify): Replace ROUND with ELF_NOTE_NEXT_OFFSET.
26769 * elf/readelflib.c (ROUND): Removed.
26770 (process_elf_file): Replace ROUND with ELF_NOTE_NEXT_OFFSET.
26771 * include/elf.h [!_ISOMAC]: Include <libc-pointer-arith.h>.
26772 [!_ISOMAC] (ELF_NOTE_DESC_OFFSET): New.
26773 [!_ISOMAC] (ELF_NOTE_NEXT_OFFSET): Likewise.
26774
26775 2017-11-28 Joseph Myers <joseph@codesourcery.com>
26776
26777 * sysdeps/s390/fpu/s_fmaf.c: Include <libm-alias-float.h>.
26778 [!__fmaf] (fmaf): Define using libm_alias_float.
26779
26780 * sysdeps/s390/fpu/s_fma.c: Include <libm-alias-double.h>.
26781 [!__fma] (fma): Define using libm_alias_double.
26782 * sysdeps/unix/sysv/linux/s390/fpu/s_fma.c: Remove.
26783
26784 2017-11-28 Mike FABIAN <mfabian@redhat.com>
26785
26786 [BZ #22336]
26787 * localedata/locales/cs_CZ (LC_COLLATE): Use “copy "iso14651_t1"”
26788 and implement the collation rules for cs from CLDR on top of that.
26789 * Makefile: Add cs_CZ.UTF-8 to test-input.
26790 * cs_CZ.UTF-8.in: New file with test data to test the Czech sorting.
26791
26792 2017-11-28 Siddhesh Poyarekar <siddhesh@sourceware.org>
26793
26794 * localedata/Makefile (LOCALES): Remove duplicate cs_CZ.UTF-8.
26795
26796 2017-11-28 Victor Rodriguez <victor.rodriguez.bahena@intel.com>
26797 Icarus Sparry <icarus.w.sparry@intel.com>
26798
26799 * benchtests/Makefile:Add BENCHSET to allow subsets of
26800 benchmarks to be run.
26801 * benchtests/README: Add documentation for: Running subsets of
26802 benchmarks.
26803
26804 2017-11-28 Victor Rodriguez <victor.rodriguez.bahena@intel.com>
26805
26806 * benchtests/scripts/benchout.schema.json: Fix regex to accept a wider
26807 range of tests names.
26808
26809 * benchtests/scripts/benchout.schema.json: Add throughput as accepted
26810 result from property and remove "max", min" and "mean" from
26811 required properties based on benchtests/bench-skeleton.c.
26812
26813 2017-11-28 Florian Weimer <fweimer@redhat.com>
26814
26815 [BZ #20826]
26816 Turn posix/tst-getaddrinfo4, posix/tst-getaddrinfo5 into xtests
26817 due to Internet requirement.
26818 * posix/Makefile (tests): Remove tst-getaddrinfo4,
26819 tst-getaddrinfo5.
26820 (xtests): Add tst-getaddrinfo4, tst-getaddrinfo5.
26821
26822 2017-11-28 Adhemerval Zanella <adhemerval.zanella@linaro.org>
26823
26824 * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile
26825 [$(subdir) = string] (sysdep_routines): Add memset-ultra1.
26826 * sysdeps/sparc/sparc64/multiarch/Makefile [$(subdir) = string]
26827 (sysdep_routines): Add memset-ultra1.
26828 * sysdeps/sparc/sparc32/sparcv9/multiarch/memset-ultra1.S: New
26829 file.
26830 * sysdeps/sparc/sparc32/sparcv9/multiarch/memset.c: Likewise.
26831 * sysdeps/sparc/sparc32/sparcv9/multiarch/bzero.c: Likewise.
26832 * sysdeps/sparc/sparc64/multiarch/ifunc-memset.h: Likewise.
26833 * sysdeps/sparc/sparc64/multiarch/memset-ultra1.S: Likewise.
26834 * sysdeps/sparc/sparc64/multiarch/memset.c: Likewise.
26835 * sysdeps/sparc/sparc64/multiarch/bzero.c: Likewise.
26836 * sysdeps/sparc/sparc32/sparcv9/multiarch/memset.S: Remove file.
26837 * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
26838
26839 * sysdeps/sparc/sparc32/sparcv9/multiarch/memcpy-ultra1.S: New
26840 file.
26841 * sysdeps/sparc/sparc32/sparcv9/multiarch/memcpy.c: Likewise.
26842 * sysdeps/sparc/sparc32/sparcv9/multiarch/mempcpy.c: Likewise.
26843 * sysdeps/sparc/sparc64/multiarch/ifunc-memcpy.h: Likewise.
26844 * sysdeps/sparc/sparc64/multiarch/memcpy-ultra1.S: Likewise.
26845 * sysdeps/sparc/sparc64/multiarch/memcpy.c: Likewise.
26846 * sysdeps/sparc/sparc64/multiarch/mempcpy.c: Likewise.
26847 * sysdeps/sparc/sparc-ifunc.h (sparc_libc_ifunc_redirected): New
26848 macro.
26849 * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile
26850 [$(subdir) = string] (sysdep_routines): Add memcpy-ultra1.
26851 * sysdeps/sparc/sparc64/multiarch/Makefile [$(subdir) = string]
26852 (sysdep_routines): Add memcpy-ultra1.
26853 * sysdeps/sparc/sparc64/multiarch/memcpy.S: Remove file.
26854 * sysdeps/sparc/sparc32/sparcv9/multiarch/memcpy.S: Likewise.
26855
26856 2017-11-28 Joseph Myers <joseph@codesourcery.com>
26857
26858 * sysdeps/alpha/fpu/cfloat-compat.h: Include <libm-alias-float.h>.
26859 (cfloat_versions): Take function argument without trailing 'f'.
26860 Call libm_alias_float_other.
26861 * sysdeps/alpha/fpu/cabsf.c: Update call to cfloat_versions.
26862 * sysdeps/alpha/fpu/cargf.c: Likewise.
26863 * sysdeps/alpha/fpu/cimagf.c: Likewise.
26864 * sysdeps/alpha/fpu/conjf.c: Likewise.
26865 * sysdeps/alpha/fpu/crealf.c: Likewise.
26866 * sysdeps/alpha/fpu/s_cacosf.c: Likewise.
26867 * sysdeps/alpha/fpu/s_cacoshf.c: Likewise.
26868 * sysdeps/alpha/fpu/s_casinf.c: Likewise.
26869 * sysdeps/alpha/fpu/s_casinhf.c: Likewise.
26870 * sysdeps/alpha/fpu/s_catanf.c: Likewise.
26871 * sysdeps/alpha/fpu/s_catanhf.c: Likewise.
26872 * sysdeps/alpha/fpu/s_ccosf.c: Likewise.
26873 * sysdeps/alpha/fpu/s_ccoshf.c: Likewise.
26874 * sysdeps/alpha/fpu/s_cexpf.c: Likewise.
26875 * sysdeps/alpha/fpu/s_clogf.c: Likewise.
26876 * sysdeps/alpha/fpu/s_cpowf.c: Likewise.
26877 * sysdeps/alpha/fpu/s_cprojf.c: Likewise.
26878 * sysdeps/alpha/fpu/s_csinf.c: Likewise.
26879 * sysdeps/alpha/fpu/s_csinhf.c: Likewise.
26880 * sysdeps/alpha/fpu/s_csqrtf.c: Likewise.
26881 * sysdeps/alpha/fpu/s_ctanf.c: Likewise.
26882 * sysdeps/alpha/fpu/s_ctanhf.c: Likewise.
26883 * sysdeps/alpha/fpu/s_clog10f.c: Include <libm-alias-float.h>.
26884 (clog10f): Use libm_alias_float_other.
26885 * sysdeps/alpha/fpu/s_ceilf.c: Include <libm-alias-float.h>.
26886 (ceilf): Define using libm_alias_float.
26887 * sysdeps/alpha/fpu/s_copysignf.c: Include <libm-alias-float.h>.
26888 (copysignf): Define using libm_alias_float.
26889 * sysdeps/alpha/fpu/s_fabsf.c: Include <libm-alias-float.h>.
26890 (fabsf): Define using libm_alias_float.
26891 * sysdeps/alpha/fpu/s_floorf.c: Include <libm-alias-float.h>.
26892 (floorf): Define using libm_alias_float.
26893 * sysdeps/alpha/fpu/s_fmax.S: Include <libm-alias-float.h>.
26894 (fmaxf): Define using libm_alias_float.
26895 * sysdeps/alpha/fpu/s_fmin.S: Include <libm-alias-float.h>.
26896 (fminf): Define using libm_alias_float.
26897 * sysdeps/alpha/fpu/s_lrintf.c: Include <libm-alias-float.h>.
26898 (lrintf): Define using libm_alias_float.
26899 (llrintf): Likewise.
26900 * sysdeps/alpha/fpu/s_lroundf.c: Include <libm-alias-float.h>.
26901 (lroundf): Define using libm_alias_float.
26902 (llroundf): Likewise.
26903 * sysdeps/alpha/fpu/s_rintf.c: Include <libm-alias-float.h>.
26904 (rintf): Define using libm_alias_float.
26905 * sysdeps/alpha/fpu/s_truncf.c: Include <libm-alias-float.h>.
26906 (truncf): Define using libm_alias_float.
26907
26908 * sysdeps/aarch64/fpu/s_ceilf.c: Include <libm-alias-float.h>.
26909 (ceilf): Define using libm_alias_float.
26910 * sysdeps/aarch64/fpu/s_floorf.c: Include <libm-alias-float.h>.
26911 (floorf): Define using libm_alias_float.
26912 * sysdeps/aarch64/fpu/s_fmaf.c: Include <libm-alias-float.h>.
26913 (fmaf): Define using libm_alias_float.
26914 * sysdeps/aarch64/fpu/s_fmaxf.c: Include <libm-alias-float.h>.
26915 (fmaxf): Define using libm_alias_float.
26916 * sysdeps/aarch64/fpu/s_fminf.c: Include <libm-alias-float.h>.
26917 (fminf): Define using libm_alias_float.
26918 * sysdeps/aarch64/fpu/s_llrintf.c: Include <libm-alias-float.h>.
26919 (llrintf): Define using libm_alias_float.
26920 * sysdeps/aarch64/fpu/s_llroundf.c: Include <libm-alias-float.h>.
26921 (llroundf): Define using libm_alias_float.
26922 * sysdeps/aarch64/fpu/s_lrintf.c: Include <libm-alias-float.h>.
26923 (lrintf): Define using libm_alias_float.
26924 * sysdeps/aarch64/fpu/s_lroundf.c: Include <libm-alias-float.h>.
26925 (lroundf): Define using libm_alias_float.
26926 * sysdeps/aarch64/fpu/s_nearbyintf.c: Include
26927 <libm-alias-float.h>.
26928 (nearbyintf): Define using libm_alias_float.
26929 * sysdeps/aarch64/fpu/s_rintf.c: Include <libm-alias-float.h>.
26930 (rintf): Define using libm_alias_float.
26931 * sysdeps/aarch64/fpu/s_roundf.c: Include <libm-alias-float.h>.
26932 (roundf): Define using libm_alias_float.
26933 * sysdeps/aarch64/fpu/s_truncf.c: Include <libm-alias-float.h>.
26934 (truncf): Define using libm_alias_float.
26935
26936 * sysdeps/alpha/fpu/s_ceil.c: Include <libm-alias-double.h>.
26937 (ceil): Define using libm_alias_double.
26938 * sysdeps/alpha/fpu/s_copysign.c: Include <libm-alias-double.h>.
26939 (copysign): Define using libm_alias_double.
26940 * sysdeps/alpha/fpu/s_fabs.c: Include <libm-alias-double.h>.
26941 (fabs): Define using libm_alias_double.
26942 * sysdeps/alpha/fpu/s_floor.c: Include <libm-alias-double.h>.
26943 (floor): Define using libm_alias_double.
26944 * sysdeps/alpha/fpu/s_fmax.S: Include <libm-alias-double.h>.
26945 (fmax): Define using libm_alias_double.
26946 * sysdeps/alpha/fpu/s_fmin.S: Include <libm-alias-double.h>.
26947 (fmin): Define using libm_alias_double.
26948 * sysdeps/alpha/fpu/s_lrint.c: Include <libm-alias-double.h>.
26949 (lrint): Define using libm_alias_double.
26950 (llrint): Likewise.
26951 * sysdeps/alpha/fpu/s_lround.c: Include <libm-alias-double.h>.
26952 (lround): Define using libm_alias_double.
26953 (llround): Likewise.
26954 * sysdeps/alpha/fpu/s_rint.c: Include <libm-alias-double.h>.
26955 (rint): Define using libm_alias_double.
26956 * sysdeps/alpha/fpu/s_trunc.c: Include <libm-alias-double.h>.
26957 (trunc): Define using libm_alias_double.
26958
26959 * sysdeps/ieee754/ldbl-opt/libm-alias-double.h
26960 (libm_alias_double_r): Add semicolon after weak_alias call.
26961
26962 2017-11-27 Joseph Myers <joseph@codesourcery.com>
26963
26964 * sysdeps/aarch64/fpu/s_ceil.c: Include <libm-alias-double.h>.
26965 (ceil): Define using libm_alias_double.
26966 * sysdeps/aarch64/fpu/s_floor.c: Include <libm-alias-double.h>.
26967 (floor): Define using libm_alias_double.
26968 * sysdeps/aarch64/fpu/s_fma.c: Include <libm-alias-double.h>.
26969 (fma): Define using libm_alias_double.
26970 * sysdeps/aarch64/fpu/s_fmax.c: Include <libm-alias-double.h>.
26971 (fmax): Define using libm_alias_double.
26972 * sysdeps/aarch64/fpu/s_fmin.c: Include <libm-alias-double.h>.
26973 (fmin): Define using libm_alias_double.
26974 * sysdeps/aarch64/fpu/s_llrint.c: Include <libm-alias-double.h>.
26975 (llrint): Define using libm_alias_double.
26976 * sysdeps/aarch64/fpu/s_llround.c: Include <libm-alias-double.h>.
26977 (llround): Define using libm_alias_double.
26978 * sysdeps/aarch64/fpu/s_lrint.c: Include <libm-alias-double.h>.
26979 (lrint): Define using libm_alias_double.
26980 * sysdeps/aarch64/fpu/s_lround.c: Include <libm-alias-double.h>.
26981 (lround): Define using libm_alias_double.
26982 * sysdeps/aarch64/fpu/s_nearbyint.c: Include <libm-alias-double.h>.
26983 (nearbyint): Define using libm_alias_double.
26984 * sysdeps/aarch64/fpu/s_rint.c: Include <libm-alias-double.h>.
26985 (rint): Define using libm_alias_double.
26986 * sysdeps/aarch64/fpu/s_round.c: Include <libm-alias-double.h>.
26987 (round): Define using libm_alias_double.
26988 * sysdeps/aarch64/fpu/s_trunc.c: Include <libm-alias-double.h>.
26989 (trunc): Define using libm_alias_double.
26990
26991 2017-11-27 Florian Weimer <fweimer@redhat.com>
26992
26993 * sysdeps/unix/sysv/linux/mlock2.c: New file.
26994 * sysdeps/unix/sysv/linux/tst-mlock2.c: Likewise.
26995 * sysdeps/unix/sysv/linux/Makefile (routines): Add mlock2.
26996 (tests): Add tst-mlock2.
26997 * sysdeps/unix/sysv/linux/Versions (GLIBC_2.27): Export mlock2.
26998 * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_MLOCK2)
26999 [__LINUX_KERNEL_VERSION >= 4.4]: Define.
27000 * sysdeps/unix/sysv/linux/libc**.abilist: Update.
27001 * manual/memory.texi (Page Lock Functions): Move @end deftypefun
27002 for mlock. Document mlock2.
27003
27004 2017-11-27 Joseph Myers <joseph@codesourcery.com>
27005
27006 * sysdeps/ia64/Makeconfig (float64x-alias-fcts): New variable.
27007 * sysdeps/ieee754/float128/Makeconfig (float64x-alias-fcts):
27008 Likewise.
27009 * sysdeps/ieee754/ldbl-128/Makeconfig (float64x-alias-fcts):
27010 Likewise.
27011 * sysdeps/x86/Makeconfig: New file.
27012 * bits/floatn-common.h (__HAVE_FLOAT64X): Remove macro.
27013 (__HAVE_FLOAT64X_LONG_DOUBLE): Likewise.
27014 * bits/floatn.h (__HAVE_FLOAT64X): New macro.
27015 (__HAVE_FLOAT64X_LONG_DOUBLE): Likewise.
27016 * sysdeps/ia64/bits/floatn.h (__HAVE_FLOAT64X): Likewise.
27017 (__HAVE_FLOAT64X_LONG_DOUBLE): Likewise.
27018 * sysdeps/ieee754/ldbl-128/bits/floatn.h (__HAVE_FLOAT64X):
27019 Likewise.
27020 (__HAVE_FLOAT64X_LONG_DOUBLE): Likewise.
27021 * sysdeps/mips/ieee754/bits/floatn.h (__HAVE_FLOAT64X): Likewise.
27022 (__HAVE_FLOAT64X_LONG_DOUBLE): Likewise.
27023 * sysdeps/powerpc/bits/floatn.h (__HAVE_FLOAT64X): Likewise.
27024 (__HAVE_FLOAT64X_LONG_DOUBLE): Likewise.
27025 * sysdeps/x86/bits/floatn.h (__HAVE_FLOAT64X): Likewise.
27026 (__HAVE_FLOAT64X_LONG_DOUBLE): Likewise.
27027 * manual/math.texi (Mathematics): Document support for _Float64x.
27028 * math/Versions (GLIBC_2.27): Add _Float64x functions.
27029 * stdlib/Versions (GLIBC_2.27): Likewise.
27030 * wcsmbs/Versions (GLIBC_2.27): Likewise.
27031 * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Update.
27032 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
27033 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
27034 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
27035 * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
27036 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
27037 * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
27038 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
27039 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
27040 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
27041 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
27042 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist:
27043 Likewise.
27044 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist:
27045 Likewise.
27046 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
27047 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
27048 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
27049 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
27050 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
27051 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
27052 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
27053 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
27054 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
27055 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
27056 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
27057 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
27058 * sysdeps/i386/fpu/libm-test-ulps: Likewise.
27059 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
27060
27061 2017-11-27 Andreas Schwab <schwab@suse.de>
27062
27063 * elf/Makefile (dl-routines): Add dl-sort-maps.
27064 * elf/dl-sort-maps.c: New file.
27065 * sysdeps/generic/ldsodefs.h (_dl_sort_fini): Don't declare.
27066 (_dl_sort_maps): Declare.
27067 * elf/dl-fini.c (_dl_sort_fini): Remove.
27068 (_dl_fini): Use _dl_sort_maps instead of _dl_sort_fini.
27069 * elf/dl-close.c (_dl_close_worker): Likewise.
27070 * elf/dl-deps.c (_dl_map_object_deps): Use _dl_sort_maps instead of
27071 open-coding it.
27072 * elf/dl-open.c (dl_open_worker): Likewise.
27073
27074 2017-11-24 Joseph Myers <joseph@codesourcery.com>
27075
27076 * sysdeps/ieee754/float128/s_fromfpf128.c (fromfpf128): Define
27077 using libm_alias_float128.
27078 * sysdeps/ieee754/float128/s_fromfpxf128.c (fromfpxf128):
27079 Likewise.
27080 * sysdeps/ieee754/float128/s_setpayloadf128.c (setpayloadf128):
27081 Likewise.
27082 * sysdeps/ieee754/float128/s_setpayloadsigf128.c
27083 (setpayloadsigf128): Likewise.
27084 * sysdeps/ieee754/float128/s_ufromfpf128.c (ufromfpf128):
27085 Likewise.
27086 * sysdeps/ieee754/float128/s_ufromfpxf128.c (ufromfpxf128):
27087 Likewise.
27088
27089 * sysdeps/powerpc/powerpc64le/Makefile ($(foreach
27090 suf,$(all-object-suffixes),$(objpfx)test-float64x%$(suf))): Add
27091 -mfloat128 to CFLAGS.
27092 ($(foreach
27093 suf,$(all-object-suffixes),$(objpfx)test-ifloat64x%$(suf))):
27094 Likewise.
27095 (CFLAGS-libm-test-support-float64x.c): New variable.
27096 ($(objpfx)test-float64x% $(objpfx)test-ifloat64x%): Add
27097 $(f128-loader-link) to gnulib-tests.
27098
27099 * sysdeps/generic/libm-alias-float128.h: Include <bits/floatn.h>.
27100 (libm_alias_float128_other_r): If
27101 [__HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE], define f64x
27102 alias.
27103 (libm_alias_float128_r): Add semicolon after weak_alias call.
27104 * sysdeps/generic/libm-alias-ldouble.h
27105 (libm_alias_ldouble_other_r_f128): New macro.
27106 (libm_alias_ldouble_other_r_f64x): Likewise.
27107 (libm_alias_ldouble_other_r): Use libm_alias_ldouble_other_r_f128
27108 and libm_alias_ldouble_other_r_f64x.
27109 (libm_alias_ldouble_r): Add semicolon after weak_alias call.
27110 * sysdeps/ieee754/ldbl-opt/libm-alias-ldouble.h
27111 (libm_alias_ldouble_other_r_f128): New macro.
27112 (libm_alias_ldouble_other_r_f64x): Likewise.
27113 (libm_alias_ldouble_other_r): Use libm_alias_ldouble_other_r_f128
27114 and libm_alias_ldouble_other_r_f64x.
27115
27116 * stdlib/strfroml.c: Always include <stdlib.h>.
27117 [__HAVE_FLOAT64X_LONG_DOUBLE] (strfromf64x): Define and later
27118 undefine as macro and define as weak alias.
27119 * sysdeps/ieee754/float128/strfromf128.c: Include <bits/floatn.h>.
27120 [__HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE]: Include
27121 <stdlib.h>.
27122 [__HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE] (strfromf64x):
27123 Define and later undefine as macro and define as weak alias.
27124
27125 * stdlib/strtold.c [__HAVE_FLOAT64X_LONG_DOUBLE] (strtof64x):
27126 Define and later undefine as macro. Define as weak alias if
27127 [!USE_WIDE_CHAR].
27128 [__HAVE_FLOAT64X_LONG_DOUBLE] (wcstof64x): Define and later
27129 undefine as macro. Define as weak alias if [USE_WIDE_CHAR].
27130 * sysdeps/ieee754/float128/strtof128.c: Include <bits/floatn.h>.
27131 [__HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE] (strtof64x):
27132 Define and later undefine as macro. Define as weak alias if
27133 [!USE_WIDE_CHAR].
27134 [__HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE] (wcstof64x):
27135 Define and later undefine as macro. Define as weak alias if
27136 [USE_WIDE_CHAR].
27137 * sysdeps/ieee754/float128/strtof128_l.c
27138 [__HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE] (strtof64x_l):
27139 Define and later undefine as macro. Define as weak alias if
27140 [!USE_WIDE_CHAR].
27141 [__HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE] (wcstof64x_l):
27142 Define and later undefine as macro. Define as weak alias if
27143 [USE_WIDE_CHAR].
27144 * sysdeps/ieee754/ldbl-128/strtold_l.c
27145 [__HAVE_FLOAT64X_LONG_DOUBLE] (strtof64x_l): Define and later
27146 undefine as macro. Define as weak alias if [!USE_WIDE_CHAR].
27147 [__HAVE_FLOAT64X_LONG_DOUBLE] (wcstof64x_l): Define and later
27148 undefine as macro. Define as weak alias if [USE_WIDE_CHAR].
27149 * sysdeps/ieee754/ldbl-64-128/strtold_l.c
27150 [__HAVE_FLOAT64X_LONG_DOUBLE] (strtof64x_l): Define and later
27151 undefine as macro. Define as weak alias if [!USE_WIDE_CHAR].
27152 [__HAVE_FLOAT64X_LONG_DOUBLE] (wcstof64x_l): Define and later
27153 undefine as macro. Define as weak alias if [USE_WIDE_CHAR].
27154 * sysdeps/ieee754/ldbl-96/strtold_l.c
27155 [__HAVE_FLOAT64X_LONG_DOUBLE] (strtof64x_l): Define and later
27156 undefine as macro. Define as weak alias if [!USE_WIDE_CHAR].
27157 [__HAVE_FLOAT64X_LONG_DOUBLE] (wcstof64x_l): Define and later
27158 undefine as macro. Define as weak alias if [USE_WIDE_CHAR].
27159
27160 * math/test-float64x.h: New file.
27161 * math/Makefile (type-float64x-yes): New variable.
27162 (test-types): Add $(type-float64x-$(float64x-alias-fcts)).
27163
27164 * sysdeps/generic/math_private.h (min_of_type_f): Make into a
27165 function-like macro.
27166 (min_of_type_): Likewise.
27167 (min_of_type_l): Likewise.
27168 (min_of_type_f128): Likewise.
27169 (min_of_type): Pass () as last argument of __MATH_TG.
27170
27171 * stdlib/tst-strtod-round-skeleton.c
27172 (__STDC_WANT_IEC_60559_TYPES_EXT__): Define before including
27173 headers.
27174
27175 * math/gen-tgmath-tests.py (Type.init_types): Pass suffix argument
27176 for combinations of long double with _Float64 and _Float64x.
27177
27178 * bits/libm-simd-decl-stubs.h (__DECL_SIMD_cosf16): New macro.
27179 (__DECL_SIMD_cosf32): Likewise.
27180 (__DECL_SIMD_cosf64): Likewise.
27181 (__DECL_SIMD_cosf32x): Likewise.
27182 (__DECL_SIMD_cosf64x): Likewise.
27183 (__DECL_SIMD_cosf128x): Likewise.
27184 (__DECL_SIMD_sinf16): Likewise.
27185 (__DECL_SIMD_sinf32): Likewise.
27186 (__DECL_SIMD_sinf64): Likewise.
27187 (__DECL_SIMD_sinf32x): Likewise.
27188 (__DECL_SIMD_sinf64x): Likewise.
27189 (__DECL_SIMD_sinf128x): Likewise.
27190 (__DECL_SIMD_sincosf16): Likewise.
27191 (__DECL_SIMD_sincosf32): Likewise.
27192 (__DECL_SIMD_sincosf64): Likewise.
27193 (__DECL_SIMD_sincosf32x): Likewise.
27194 (__DECL_SIMD_sincosf64x): Likewise.
27195 (__DECL_SIMD_sincosf128x): Likewise.
27196 (__DECL_SIMD_logf16): Likewise.
27197 (__DECL_SIMD_logf32): Likewise.
27198 (__DECL_SIMD_logf64): Likewise.
27199 (__DECL_SIMD_logf32x): Likewise.
27200 (__DECL_SIMD_logf64x): Likewise.
27201 (__DECL_SIMD_logf128x): Likewise.
27202 (__DECL_SIMD_expf16): Likewise.
27203 (__DECL_SIMD_expf32): Likewise.
27204 (__DECL_SIMD_expf64): Likewise.
27205 (__DECL_SIMD_expf32x): Likewise.
27206 (__DECL_SIMD_expf64x): Likewise.
27207 (__DECL_SIMD_expf128x): Likewise.
27208 (__DECL_SIMD_powf16): Likewise.
27209 (__DECL_SIMD_powf32): Likewise.
27210 (__DECL_SIMD_powf64): Likewise.
27211 (__DECL_SIMD_powf32x): Likewise.
27212 (__DECL_SIMD_powf64x): Likewise.
27213 (__DECL_SIMD_powf128x): Likewise.
27214
27215 * stdlib/Versions (libc): Move entries for wcstof128 and
27216 wcstof128_l to ....
27217 * wcsmbs/Versions (libc): ... here.
27218 Include <float128-abi.h>.
27219
27220 2017-11-24 Florian Weimer <fweimer@redhat.com>
27221
27222 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
27223 bits/mman-shared.h.
27224 * sysdeps/unix/sysv/linux/bits/mman-linux.h: Include
27225 <bits/mman-shared.h>.
27226 (MFD_CLOEXEC, MFD_ALLOW_SEALING, MFD_HUGETLB, memfd_create): Move
27227 to ...
27228 * sysdeps/unix/sysv/linux/bits/mman-shared.h: ... this new file.
27229 Add #ifndef guard for the MFD_* constants based on MFD_CLOEXEC.
27230 * sysdeps/unix/sysv/linux/hppa/bits/mman.h: Include
27231 <bits/mman-shared.h>.
27232
27233 2017-11-24 Adhemerval Zanella <adhemerval.zanella@linaro.org>
27234
27235 [BZ #22457]
27236 * sysdeps/posix/preadv_common.c (PREADV): Use mmap/munmap instead of
27237 posix_memalign/free.
27238 * sysdeps/posix/pwritev_common.c (PWRITEV): Likewise.
27239
27240 2017-11-22 Mike FABIAN <mfabian@redhat.com>
27241
27242 [BZ #22469]
27243 * localedata/locales/pl_PL (LC_COLLATE): Use “copy "iso14651_t1"”
27244 and implement the collation rules for pl from CLDR on top of that.
27245 * Makefile: Add pl_PL.UTF-8 to test-input and to the list
27246 of locales to be built for testing.
27247 * pl_PL.UTF-8.in: New file with test data to test the Polish sorting.
27248
27249 2017-11-23 Joseph Myers <joseph@codesourcery.com>
27250
27251 * sysdeps/ia64/fpu/libm-symbols.h: Include <libm-alias-ldouble.h>.
27252 * sysdeps/ia64/fpu/e_acoshl.S (acoshl): Use
27253 libm_alias_ldouble_other.
27254 * sysdeps/ia64/fpu/e_acosl.S (acosl): Likewise.
27255 * sysdeps/ia64/fpu/e_asinl.S (asinl): Likewise.
27256 * sysdeps/ia64/fpu/e_atanhl.S (atanhl): Likewise.
27257 * sysdeps/ia64/fpu/e_coshl.S (coshl): Likewise.
27258 * sysdeps/ia64/fpu/e_exp10l.S (exp10l): Likewise.
27259 * sysdeps/ia64/fpu/e_exp2l.S (exp2l): Likewise.
27260 * sysdeps/ia64/fpu/e_fmodl.S (fmodl): Likewise.
27261 * sysdeps/ia64/fpu/e_hypotl.S (hypotl): Likewise.
27262 * sysdeps/ia64/fpu/e_lgammal_r.c (lgammal_r): Define using
27263 libm_alias_ldouble_r.
27264 * sysdeps/ia64/fpu/e_log2l.S (log2l): Use
27265 libm_alias_ldouble_other.
27266 * sysdeps/ia64/fpu/e_logl.S (logl): Likewise.
27267 (log10l): Likewise.
27268 * sysdeps/ia64/fpu/e_powl.S (powl): Likewise.
27269 * sysdeps/ia64/fpu/e_remainderl.S (remainderl): Likewise.
27270 * sysdeps/ia64/fpu/e_sinhl.S (sinhl): Likewise.
27271 * sysdeps/ia64/fpu/e_sqrtl.S (sqrtl): Likewise.
27272 * sysdeps/ia64/fpu/libm_sincosl.S (sincosl): Likewise.
27273 * sysdeps/ia64/fpu/s_asinhl.S (asinhl): Likewise.
27274 * sysdeps/ia64/fpu/s_atanl.S (atanl): Likewise.
27275 (atan2l): Likewise.
27276 * sysdeps/ia64/fpu/s_cbrtl.S (cbrtl): Likewise.
27277 * sysdeps/ia64/fpu/s_ceill.S (ceill): Likewise.
27278 * sysdeps/ia64/fpu/s_copysign.S (copysignl): Define using
27279 libm_alias_ldouble.
27280 * sysdeps/ia64/fpu/s_cosl.S (sinl): Use libm_alias_ldouble_other.
27281 (cosl): Likewise.
27282 * sysdeps/ia64/fpu/s_erfcl.S (erfcl): Likewise.
27283 * sysdeps/ia64/fpu/s_erfl.S (erfl): Likewise.
27284 * sysdeps/ia64/fpu/s_expm1l.S (expm1l): Likewise.
27285 (expl): Likewise.
27286 * sysdeps/ia64/fpu/s_fabsl.S (fabsl): Likewise.
27287 * sysdeps/ia64/fpu/s_fdiml.S (fdiml): Likewise.
27288 * sysdeps/ia64/fpu/s_floorl.S (floorl): Likewise.
27289 * sysdeps/ia64/fpu/s_fmal.S (fmal): Likewise.
27290 * sysdeps/ia64/fpu/s_fmaxl.S (fmaxl): Likewise.
27291 * sysdeps/ia64/fpu/s_frexpl.c (frexpl): Likewise.
27292 * sysdeps/ia64/fpu/s_ldexpl.c (ldexpl): Likewise.
27293 * sysdeps/ia64/fpu/s_log1pl.S (log1pl): Likewise.
27294 * sysdeps/ia64/fpu/s_logbl.S (logbl): Likewise.
27295 * sysdeps/ia64/fpu/s_modfl.S (modfl): Likewise.
27296 * sysdeps/ia64/fpu/s_nearbyintl.S (nearbyintl): Define using
27297 libm_alias_ldouble.
27298 * sysdeps/ia64/fpu/s_nextafterl.S (nextafterl): Use
27299 libm_alias_ldouble_other.
27300 * sysdeps/ia64/fpu/s_rintl.S (rintl): Likewise.
27301 * sysdeps/ia64/fpu/s_roundl.S (roundl): Likewise.
27302 * sysdeps/ia64/fpu/s_scalbnl.c (scalbnl): Define using
27303 libm_alias_ldouble.
27304 * sysdeps/ia64/fpu/s_tanhl.S (tanhl): Use
27305 libm_alias_ldouble_other.
27306 * sysdeps/ia64/fpu/s_tanl.S (tanl): Likewise.
27307 * sysdeps/ia64/fpu/s_truncl.S (truncl): Likewise.
27308 * sysdeps/ia64/fpu/w_lgammal_main.c
27309 [BUILD_LGAMMA && !USE_AS_COMPAT] (lgammal): Likewise.
27310 * sysdeps/ia64/fpu/w_tgammal_compat.S (tgammal): Likewise.
27311
27312 2017-11-23 Florian Weimer <fweimer@redhat.com>
27313
27314 * malloc/malloc.c (tcache_thread_shutdown): Rename from
27315 tcache_thread_freeres. Define for USE_TCACHE and !USE_TCACHE
27316 alike. Remove freeres marker.
27317 * malloc/arena.c (arena_thread_freeres): Call
27318 tcache_thread_shutdown.
27319
27320 2017-11-23 Florian Weimer <fweimer@redhat.com>
27321
27322 [BZ #22459]
27323 Export nscd hash function as __nss_hash.
27324 * include/nss.h (__nss_hash): Declare.
27325 * nis/nis_hash.c (__nis_hash): Call __nss_hash. Turn into compat
27326 symbol.
27327 * nscd/Makefile (aux, nscd-modules): Remove nscd_hash.
27328 * nscd/cache.c (cache_search, cache_add): Call __nss_hash instead
27329 of __nscd_hash.
27330 * nscd/nscd_helper.c (__nscd_cache_search): Likewise.
27331 * nscd/nscd_hash.h, nscd/nscd_hash.c: Remove files.
27332 * nss/Makefiles (routines): Add nss_hash.
27333 * nss/Versions (GLIBC_PRIVATE): Export __nss_hash.
27334 * nss/nss_hash.c: Rename from nis/nis_hash.c.
27335 (__nss_hash): Rename from __nis_hash. Define hidden alias.
27336 * nis/rpcsvc/nislib.h (__nis_hash): Remove declaration.
27337
27338 2017-11-23 Florian Weimer <fweimer@redhat.com>
27339
27340 [BZ #22478]
27341 * sysdeps/unix/sysv/linux/sigwait.c (__sigwait): Retry on EINTR.
27342 Return error code, not -1.
27343 * signal/tst-sigwait-eintr.c: New file.
27344 * signal/Makefile (tests): Add tst-sigwait-eintr.
27345
27346 2017-11-23 Florian Weimer <fweimer@redhat.com>
27347
27348 Linux: Add memfd_create system call wrapper
27349 * sysdeps/unix/sysv/linux/Makefile [misc] (tests): Add
27350 tst-memfd_create.
27351 * sysdeps/unix/sysv/linux/bits/mman-linux.h [__USE_GNU]
27352 (MFD_CLOEXEC, MFD_ALLOW_SEALING): Define.
27353 [__USE_GNU] (memfd_create): Declare.
27354 * sysdeps/unix/sysv/linux/Versions (GLIBC_2.27): Add memfd_create.
27355 * sysdeps/unix/sysv/linux/syscalls.list (memfd_create): Add.
27356 * sysdeps/unix/sysv/linux/tst-memfd_create.c: New file.
27357 * sysdeps/unix/sysv/linux/**.abilist: Update.
27358 * manual/llio.texi (Memory-mapped I/O): Document memfd_create.
27359
27360 2017-11-22 Joseph Myers <joseph@codesourcery.com>
27361
27362 * localedata/gen-locale.sh: Fix typo in variable name.
27363
27364 * resolv/res_debug.c (p_secstodate): Condition definition on
27365 [SHLIB_COMPAT (libresolv, GLIBC_2_0, GLIBC_2_27)]. Define
27366 directly as __p_secstodate, and as a compat symbol. Do not use
27367 libresolv_hidden_def.
27368 * resolv/resolv.h (p_secstodate): Remove macro and function
27369 declaration.
27370 * resolv/ns_print.c (ns_sprintrrf): Print times with %lu, not
27371 using p_secstodate.
27372 * include/resolv.h (__p_secstodate): Do not use
27373 libresolv_hidden_proto.
27374 * resolv/Makefile (tests): Move tst-p_secstodate to ....
27375 (tests-internal): ... here.
27376 * resolv/tst-p_secstodate.c: Include <shlib-compat.h>. Condition
27377 all contents on [TEST_COMPAT (libresolv, GLIBC_2_0, GLIBC_2_27)]
27378 and declare and use __p_secstodate and use compat_symbol_reference
27379 in that case.
27380 [!TEST_COMPAT (libresolv, GLIBC_2_0, GLIBC_2_27)] (do_test): Add
27381 implementation returning 77.
27382
27383 [BZ #22463]
27384 * resolv/res_debug.c: Include <libc-diag.h>.
27385 (p_secstodate): Assert time_t at least as wide as u_long. On
27386 overflow, use integer seconds since the epoch as output, or use
27387 "<overflow>" as output and set errno to EOVERFLOW if integer
27388 seconds since the epoch would be 14 or more characters.
27389 (p_secstodate) [__GNUC_PREREQ (7, 0)]: Disable -Wformat-overflow=
27390 for sprintf call.
27391 * resolv/tst-p_secstodate.c: New file.
27392 * resolv/Makefile (tests): Add tst-p_secstodate.
27393 ($(objpfx)tst-p_secstodate): Depend on $(objpfx)libresolv.so.
27394
27395 * sysdeps/sparc/sparc64/soft-fp/s_frexpl.c: Remove file.
27396 * sysdeps/sparc/sparc64/soft-fp/s_scalblnl.c: Likewise.
27397 * sysdeps/sparc/sparc64/soft-fp/s_scalbnl.c: Likewise.
27398
27399 2017-11-22 Paul Eggert <eggert@cs.ucla.edu>
27400
27401 * posix/regcomp.c (init_word_char): Add comments.
27402
27403 2017-11-22 Joseph Myers <joseph@codesourcery.com>
27404
27405 [BZ #22447]
27406 * sysdeps/unix/getlogin_r.c (__getlogin_r): Use __strnlen not
27407 strlen to compute length of ut_user and set trailing NUL byte of
27408 result explicitly.
27409
27410 2017-11-21 Mike FABIAN <mfabian@redhat.com>
27411
27412 [BZ #15537]
27413 * localedata/locales/lv_LV (LC_COLLATE): Fix collation by
27414 using “copy "iso14651_t1"” and then implementing the
27415 collation rules for lv from CLDR on top of that.
27416 * Makefile: Add lv_LV.UTF-8 to test-input and to the list
27417 of locales to be built for testing.
27418 * lv_LV.UTF-8.in: New file with test data to test the Latvian
27419 sorting.
27420
27421 2017-11-21 Joseph Myers <joseph@codesourcery.com>
27422
27423 * sysdeps/unix/sysv/linux/hppa/bits/mman.h
27424 [__USE_MISC] (MADV_SPACEAVAIL): Remove macro.
27425 [__USE_MISC] (MADV_VPS_PURGE): Likewise.
27426 [__USE_MISC] (MADV_VPS_INHERIT): Likewise.
27427 [__USE_MISC] (MADV_HWPOISON): New macro.
27428 [__USE_MISC] (MADV_SOFT_OFFLINE): Likewise.
27429
27430 2017-11-21 Adhemerval Zanella <adhemerval.zanella@linaro.org>
27431
27432 * nptl/pthreadP.h (ASSERT_PTHREAD_INTERNAL_SIZE): Add workarond for
27433 -Wmissing-braces on GCC 4.9.
27434
27435 2017-11-21 Stefan Liebler <stli@linux.vnet.ibm.com>
27436
27437 * sysdeps/s390/s390-64/start.S (_start): Add cfi information for r14.
27438 * sysdeps/s390/s390-32/start.S (_start): Likewise
27439 * sysdeps/unix/sysv/linux/s390/s390-64/clone.S
27440 (thread_start): Likewise.
27441 * sysdeps/unix/sysv/linux/s390/s390-32/clone.S
27442 (thread_start): Likewise.
27443 * sysdeps/unix/sysv/linux/s390/s390-64/__makecontext_ret.S
27444 (__makecontext_ret): Likewise.
27445 * sysdeps/unix/sysv/linux/s390/s390-32/__makecontext_ret.S
27446 (__makecontext_ret): Likewise.
27447
27448 2017-11-21 Stefan Liebler <stli@linux.vnet.ibm.com>
27449
27450 * include/wchar.h (__wcsnlen, __wcscat, __wcsncpy, __wcpncpy,
27451 __wcschrnul): Remove attribute_hidden.
27452
27453 2017-11-20 Paul Eggert <eggert@cs.ucla.edu>
27454
27455 regex: don't assume uint64_t or uint32_t
27456 This avoids -Werror=overflow errors for 32-bit systems in
27457 the 64-bit case. Problem reported by Joseph Myers in:
27458 https://sourceware.org/ml/libc-alpha/2017-11/msg00694.html
27459 Also, when this code is used in Gnulib it ports to platforms
27460 that lack uint64_t and uint32_t. The C standard doesn't guarantee
27461 them, and on some 32-bit compilers there is no uint64_t.
27462 Problem reported by Gianluigi Tiesi in:
27463 http://lists.gnu.org/archive/html/bug-gnulib/2012-03/msg00154.html
27464 * posix/regcomp.c (init_word_char): Don't assume that the types
27465 uint64_t and uint32_t exist. Adapted from Gnulib patch
27466 2012-05-27T06:40:00!eggert@cs.ucla.edu. See:
27467 https://git.savannah.gnu.org/cgit/gnulib.git/commit/?id=252b52457da7887667c036d18cc5169777615bb0
27468
27469 2017-11-20 Siddhesh Poyarekar <siddhesh@sourceware.org>
27470
27471 * sysdeps/aarch64/memset-reg.h: New file.
27472 * sysdeps/aarch64/memset.S: Use it.
27473 (__memset): Rename to MEMSET macro.
27474 [ZVA_MACRO]: Use zva_macro.
27475 * sysdeps/aarch64/multiarch/Makefile (sysdep_routines):
27476 Add memset_generic and memset_falkor.
27477 * sysdeps/aarch64/multiarch/ifunc-impl-list.c
27478 (__libc_ifunc_impl_list): Add memset ifuncs.
27479 * sysdeps/aarch64/multiarch/init-arch.h (INIT_ARCH): New
27480 local variable zva_size.
27481 * sysdeps/aarch64/multiarch/memset.c: New file.
27482 * sysdeps/aarch64/multiarch/memset_generic.S: New file.
27483 * sysdeps/aarch64/multiarch/memset_falkor.S: New file.
27484 * sysdeps/aarch64/multiarch/rtld-memset.S: New file.
27485 * sysdeps/unix/sysv/linux/aarch64/cpu-features.c
27486 (DCZID_DZP_MASK): New macro.
27487 (DCZID_BS_MASK): Likewise.
27488 (init_cpu_features): Read and set zva_size.
27489 * sysdeps/unix/sysv/linux/aarch64/cpu-features.h
27490 (struct cpu_features): New member zva_size.
27491
27492 * benchtests/bench-memcpy-walk.c (START_SIZE): Set to 128.
27493 * benchtests/bench-memmove-walk.c (START_SIZE): Likewise.
27494 * benchtests/bench-memset-walk.c (START_SIZE): Likewise.
27495
27496 * benchtests/bench-memcpy-walk.c (do_one_test): Copy only
27497 backwards. Fix timing computation.
27498 * benchtests/bench-memmove-walk.c (do_one_test): Likewise.
27499 * benchtests/bench-memset-walk.c (do_one_test): Walk backwards
27500 on memset by N at a time. Fix timing computation.
27501
27502 2017-11-20 Florian Weimer <fweimer@redhat.com>
27503
27504 * manual/llio.texi (Memory-mapped I/O): Document MAP_HUGETLB,
27505 MADV_HUGEPAGE, MADV_NOHUGEPAGE.
27506
27507 2017-11-19 Florian Weimer <fweimer@redhat.com>
27508
27509 manual: Document mprotect
27510 * manual/memory.texi (Memory Protection): New section.
27511 * manual/llio.texi (Memory-mapped I/O): Remove duplicate
27512 documentation of PROT_* flags and reference the Memory Protection
27513 section instead.
27514
27515 2017-11-19 Florian Weimer <fweimer@redhat.com>
27516
27517 * manual/llio.texi (I/O Primitives): Move preadv, preadv64,
27518 pwritev, pwritev64, preadv2, preadv64v2, pwritev2, pwritev64v2 ...
27519 (Scatter-Gather): ... to here. Remove misleading comment.
27520
27521 2017-11-18 Christian Brauner <christian.brauner@ubuntu.com>
27522
27523 * support/support_become_root.c (setup_uid_gid_mapping): Fix comment
27524 style.
27525
27526 * support/support_become_root.c (setup_uid_gid_mapping): Don't fail
27527 when /proc/<pid>/setgroups does not exist.
27528
27529 2017-11-18 Florian Weimer <fweimer@redhat.com>
27530
27531 * sysdeps/unix/sysv/linux/tst-ttyname.c
27532 (become_root_in_mount_ns): Remove.
27533 (do_in_chroot_1): Call support_enter_mount_namespace.
27534 (do_in_chroot_2): Likewise.
27535 (do_test): Call support_become_root early.
27536
27537 2017-11-18 Florian Weimer <fweimer@redhat.com>
27538
27539 * support/namespace.h (support_enter_mount_namespace): Declare.
27540 * support/support_enter_mount_namespace.c: New file.
27541 * support/Makefile (libsupport-routines): Add
27542 support_enter_mount_namespace.
27543
27544 2017-11-18 Florian Weimer <fweimer@redhat.com>
27545
27546 * support/temp_file.c (support_create_temp_directory): Use
27547 test_dir and do not rely on the presence of the XXXXXX suffix.
27548 * support/temp_file.h (support_create_temp_directory): Update
27549 comment.
27550 * support/tst-xreadlink.c (do_test): Adjust.
27551 * support/support_chroot.c (support_chroot_create): Likewise.
27552
27553 2017-11-17 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
27554
27555 * sysdeps/powerpc/bits/hwcap.h (PPC_FEATURE2_HTM_NO_SUSPEND): New
27556 macro.
27557 * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_cap_flags): Add
27558 htm-no-suspend.
27559
27560 2017-11-17 Joseph Myers <joseph@codesourcery.com>
27561
27562 * sysdeps/x86_64/fpu/e_expl.S: Include <libm-alias-ldouble.h>.
27563 [USE_AS_EXPM1L] (expm1l): Define using libm_alias_ldouble.
27564 * sysdeps/x86_64/fpu/s_ceill.S: Include <libm-alias-ldouble.h>.
27565 (ceill): Define using libm_alias_ldouble.
27566 * sysdeps/x86_64/fpu/s_copysignl.S: Include
27567 <libm-alias-ldouble.h>.
27568 (copysignl): Define using libm_alias_ldouble.
27569 * sysdeps/x86_64/fpu/s_fabsl.S: Include <libm-alias-ldouble.h>.
27570 (fabsl): Define using libm_alias_ldouble.
27571 * sysdeps/x86_64/fpu/s_floorl.S: Include <libm-alias-ldouble.h>.
27572 (floorl): Define using libm_alias_ldouble.
27573 * sysdeps/x86_64/fpu/s_fmaxl.S: Include <libm-alias-ldouble.h>.
27574 (fmaxl): Define using libm_alias_ldouble.
27575 * sysdeps/x86_64/fpu/s_fminl.S: Include <libm-alias-ldouble.h>.
27576 (fminl): Define using libm_alias_ldouble.
27577 * sysdeps/x86_64/fpu/s_llrintl.S: Include <libm-alias-ldouble.h>.
27578 (llrintl): Define using libm_alias_ldouble.
27579 (lrintl): Likewise.
27580 * sysdeps/x86_64/fpu/s_nearbyintl.S: Include
27581 <libm-alias-ldouble.h>.
27582 (nearbyintl): Define using libm_alias_ldouble.
27583 * sysdeps/x86_64/fpu/s_truncl.S: Include <libm-alias-ldouble.h>.
27584 (truncl): Define using libm_alias_ldouble.
27585 * sysdeps/x86_64/x32/fpu/s_lrintl.S: Include
27586 <libm-alias-ldouble.h>.
27587 (lrintl): Define using libm_alias_ldouble.
27588
27589 * sysdeps/i386/fpu/e_expl.S: Include <libm-alias-ldouble.h>.
27590 [USE_AS_EXPM1L] (expm1l): Define using libm_alias_ldouble.
27591 * sysdeps/i386/fpu/s_asinhl.S: Include <libm-alias-ldouble.h>.
27592 (asinhl): Define using libm_alias_ldouble.
27593 * sysdeps/i386/fpu/s_atanl.c: Include <libm-alias-ldouble.h>.
27594 (atanl): Define using libm_alias_ldouble.
27595 * sysdeps/i386/fpu/s_cbrtl.S: Include <libm-alias-ldouble.h>.
27596 (cbrtl): Define using libm_alias_ldouble.
27597 * sysdeps/i386/fpu/s_ceill.S: Include <libm-alias-ldouble.h>.
27598 (ceill): Define using libm_alias_ldouble.
27599 * sysdeps/i386/fpu/s_copysignl.S: Include <libm-alias-ldouble.h>.
27600 (copysignl): Define using libm_alias_ldouble.
27601 * sysdeps/i386/fpu/s_fabsl.S: Include <libm-alias-ldouble.h>.
27602 (fabsl): Define using libm_alias_ldouble.
27603 * sysdeps/i386/fpu/s_floorl.S: Include <libm-alias-ldouble.h>.
27604 (floorl): Define using libm_alias_ldouble.
27605 * sysdeps/i386/fpu/s_fmaxl.S: Include <libm-alias-ldouble.h>.
27606 (fmaxl): Define using libm_alias_ldouble.
27607 * sysdeps/i386/fpu/s_fminl.S: Include <libm-alias-ldouble.h>.
27608 (fminl): Define using libm_alias_ldouble.
27609 * sysdeps/i386/fpu/s_frexpl.S: Include <libm-alias-ldouble.h>.
27610 (frexpl): Define using libm_alias_ldouble.
27611 * sysdeps/i386/fpu/s_llrintl.S: Include <libm-alias-ldouble.h>.
27612 (llrintl): Define using libm_alias_ldouble.
27613 * sysdeps/i386/fpu/s_logbl.c: Include <libm-alias-ldouble.h>.
27614 (logbl): Define using libm_alias_ldouble.
27615 * sysdeps/i386/fpu/s_lrintl.S: Include <libm-alias-ldouble.h>.
27616 (lrintl): Define using libm_alias_ldouble.
27617 * sysdeps/i386/fpu/s_nearbyintl.S: Include <libm-alias-ldouble.h>.
27618 (nearbyintl): Define using libm_alias_ldouble.
27619 * sysdeps/i386/fpu/s_nextafterl.c: Include <libm-alias-ldouble.h>.
27620 (nextafterl): Define using libm_alias_ldouble.
27621 * sysdeps/i386/fpu/s_remquol.S: Include <libm-alias-ldouble.h>.
27622 (remquol): Define using libm_alias_ldouble.
27623 * sysdeps/i386/fpu/s_rintl.c: Include <libm-alias-ldouble.h>.
27624 (rintl): Define using libm_alias_ldouble.
27625 * sysdeps/i386/fpu/s_truncl.S: Include <libm-alias-ldouble.h>.
27626 (truncl): Define using libm_alias_ldouble.
27627 * sysdeps/i386/i686/fpu/s_fmaxl.S: Include <libm-alias-ldouble.h>.
27628 (fmaxl): Define using libm_alias_ldouble.
27629 * sysdeps/i386/i686/fpu/s_fminl.S: Include <libm-alias-ldouble.h>.
27630 (fminl): Define using libm_alias_ldouble.
27631
27632 * bits/floatn-common.h [!__ASSEMBLER]: Disable everything related
27633 to C syntax instead of availability and properties of types.
27634 * bits/floatn.h [!__ASSEMBLER]: Likewise.
27635 * sysdeps/ia64/bits/floatn.h [!__ASSEMBLER]: Likewise.
27636 * sysdeps/ieee754/ldbl-128/bits/floatn.h [!__ASSEMBLER]: Likewise.
27637 * sysdeps/mips/ieee754/bits/floatn.h [!__ASSEMBLER]: Likewise.
27638 * sysdeps/powerpc/bits/floatn.h [!__ASSEMBLER]: Likewise.
27639 * sysdeps/x86/bits/floatn.h [!__ASSEMBLER]: Likewise.
27640
27641 2017-11-17 Florian Weimer <fweimer@redhat.com>
27642
27643 support_become_root: Enable file creation in namespaces.
27644 * support/support_become_root.c (setup_mapping): New function.
27645 (support_become_root): Call it.
27646
27647 2017-11-17 Joseph Myers <joseph@codesourcery.com>
27648
27649 * sysdeps/unix/sysv/linux/aarch64/bits/hwcap.h (HWCAP_DCPOP): New
27650 macro.
27651
27652 2017-11-16 Adhemerval Zanella <adhemerval.zanella@linaro.org>
27653
27654 * sysdeps/aarch64/fpu/Makefile (CFLAGS-s_fmax.c, CFLAGS-s_fmaxf.c,
27655 CFLAGS-s_fmin.c, CFLAGS-s_fminf.c): New rule: add -ffinite-math-only.
27656
27657 2017-11-16 Joseph Myers <joseph@codesourcery.com>
27658
27659 * sysdeps/unix/sysv/linux/net/if_arp.h (ARPHRD_RAWIP): New macro.
27660
27661 * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
27662 version to 4.14.
27663
27664 2017-11-16 Siddhesh Poyarekar <siddhesh@sourceware.org>
27665
27666 * INSTALL: Fix botched up regeneration.
27667
27668 * NEWS: Update sourceare link to https.
27669 * configure.ac: Likewise.
27670 * crypt/md5test-giant.c: Likewise.
27671 * dlfcn/bug-atexit1.c: Likewise.
27672 * dlfcn/bug-atexit2.c: Likewise.
27673 * localedata/README: Likewise.
27674 * malloc/tst-mallocfork.c: Likewise.
27675 * manual/install.texi: Likewise.
27676 * nptl/tst-pthread-getattr.c: Likewise.
27677 * stdio-common/tst-fgets.c: Likewise.
27678 * stdio-common/tst-fwrite.c: Likewise.
27679 * sunrpc/Makefile: Likewise.
27680 * sysdeps/arm/armv7/multiarch/memcpy_impl.S: Likewise.
27681 * wcsmbs/tst-mbrtowc2.c: Likewise.
27682 * configure: Regenerate.
27683 * INSTALL: Regenerate.
27684
27685 2017-11-15 Martin Sebor <msebor@redhat.com>
27686
27687 * misc/sys/cdefs.h (__attribute_nonstring__): New macro.
27688 * sysdeps/gnu/bits/utmp.h (struct utmp): Use it.
27689 * sysdeps/unix/sysv/linux/s390/bits/utmp.h (struct utmp): Same.
27690
27691 2017-11-15 Luke Shumaker <lukeshu@parabola.nu>
27692
27693 [BZ #22145]
27694 * sysdeps/unix/sysv/linux/tst-ttyname.c: New file.
27695 * sysdeps/unix/sysv/linux/Makefile: Add tst-ttyname to tests.
27696
27697 [BZ #22145]
27698 * sysdeps/unix/sysv/linux/ttyname.c (ttyname):
27699 Defer is_pty check until end of the function.
27700 * sysdeps/unix/sysv/linux/ttyname_r.c (__ttyname_r): Likewise.
27701
27702 [BZ #22145]
27703 * sysdeps/unix/sysv/linux/ttyname.h (is_mytty): New function.
27704 * sysdeps/unix/sysv/linux/ttyname.c (getttyname): Call is_mytty.
27705 (ttyname): Likewise.
27706 * sysdeps/unix/sysv/linux/ttyname_r.c (getttyname_r): Likewise.
27707 (__ttyname_r): Likewise.
27708
27709 * sysdeps/unix/sysv/linux/ttyname.h (is_pty): Change return type from
27710 int to bool.
27711
27712 * sysdeps/unix/sysv/linux/ttyname.h (is_pty): Update doc reference.
27713
27714 * manual/terminal.texi (Is It a Terminal):
27715 Mention ENODEV for ttyname and ttyname_r.
27716
27717 2017-11-15 Joseph Myers <joseph@codesourcery.com>
27718
27719 * sysdeps/unix/sysv/linux/bits/socket.h (MSG_ZEROCOPY): New enum
27720 constant and macro.
27721
27722 * sysdeps/unix/sysv/linux/bits/mman-linux.h
27723 [__USE_MISC] (MADV_WIPEONFORK): New macro.
27724 [__USE_MISC] (MADV_KEEPONFORK): Likewise.
27725 * sysdeps/unix/sysv/linux/hppa/bits/mman.h
27726 [__USE_MISC] (MADV_WIPEONFORK): Likewise.
27727 [__USE_MISC] (MADV_KEEPONFORK): Likewise.
27728
27729 2017-11-15 Adhemerval Zanella <adhemerval.zanella@linaro.org>
27730
27731 * signal/sigrelse.c (sigrelse): Optimize implementation.
27732
27733 * sysdeps/posix/sigpause.c (do_sigpause): Remove.
27734 (__sigpause): Rely on __sigsuspend to implement single thread
27735 optimization. Add LIBC_CANCEL_HANDLED for cancellation marking.
27736
27737 2017-11-15 Joseph Myers <joseph@codesourcery.com>
27738
27739 * scripts/build-many-glibcs.py (Context.checkout): Default Linux
27740 kernel version to 4.14.
27741
27742 2017-11-15 Steve Ellcey <sellcey@cavium.com>
27743
27744 [BZ #22442]
27745 * sysdeps/unix/sysv/linux/if_index.c (__if_nametoindex):
27746 Check if ifname is too long.
27747
27748 2017-11-15 Luke Shumaker <lukeshu@parabola.nu>
27749
27750 * sysdeps/unix/sysv/linux/epoll_wait.c: Include <sysdep-cancel.h>.
27751
27752 2017-11-15 Mike FABIAN <mfabian@redhat.com>
27753
27754 * localedata/locales/ka_GE (LC_MESSAGES): Add “X” back to yesexpr,
27755 was accidentally lost.
27756
27757 2017-11-15 Mike FABIAN <mfabian@redhat.com>
27758
27759 * localedata/locales/az_IR: Add standard copyright header.
27760
27761 2017-11-15 Florian Weimer <fweimer@redhat.com>
27762
27763 [BZ #22439]
27764 * malloc/malloc.c (__malloc_info): Count all heaps in an arena,
27765 not just the top one. Output a new "subheaps" statistic.
27766
27767 2017-11-15 Florian Weimer <fweimer@redhat.com>
27768
27769 [BZ #22408]
27770 * malloc/malloc.c (__malloc_info): Obtain arena heap statistics
27771 under the per-arena lock.
27772 * malloc/Makefile (tests): Add tst-malloc_info.
27773 (tst-malloc_info): Link with libpthread.
27774 * malloc/tst-malloc_info.c: New file.
27775
27776 2017-11-15 Joseph Myers <joseph@codesourcery.com>
27777
27778 [BZ #21660]
27779 * math/tgmath.h (__HAVE_BUILTIN_TGMATH): New macro.
27780 [__HAVE_BUILTIN_TGMATH] (__TG_F16_ARG): Likewise.
27781 [__HAVE_BUILTIN_TGMATH] (__TG_F32_ARG): Likewise.
27782 [__HAVE_BUILTIN_TGMATH] (__TG_F64_ARG): Likewise.
27783 [__HAVE_BUILTIN_TGMATH] (__TG_F128_ARG): Likewise.
27784 [__HAVE_BUILTIN_TGMATH] (__TG_F32X_ARG): Likewise.
27785 [__HAVE_BUILTIN_TGMATH] (__TG_F64X_ARG): Likewise.
27786 [__HAVE_BUILTIN_TGMATH] (__TG_F128X_ARG): Likewise.
27787 [__HAVE_BUILTIN_TGMATH] (__TGMATH_FUNCS): Likewise.
27788 [__HAVE_BUILTIN_TGMATH] (__TGMATH_RCFUNCS): Likewise.
27789 [__HAVE_BUILTIN_TGMATH] (__TGMATH_1): Likewise.
27790 [__HAVE_BUILTIN_TGMATH] (__TGMATH_2): Likewise.
27791 [__HAVE_BUILTIN_TGMATH] (__TGMATH_2STD): Likewise.
27792 [__HAVE_BUILTIN_TGMATH] (__TGMATH_3): Likewise.
27793 [__HAVE_BUILTIN_TGMATH] (__TGMATH_1C): Likewise.
27794 [__HAVE_BUILTIN_TGMATH] (__TGMATH_2C): Likewise.
27795 (__tgml): Make conditional on [!__HAVE_BUILTIN_TGMATH].
27796 (__floating_type): Likewise.
27797 (__real_integer_type): Likewise.
27798 (__complex_integer_type): Likewise.
27799 (__expr_is_real): Likewise.
27800 (__tgmath_real_type_sub): Likewise.
27801 (__tgmath_real_type): Likewise.
27802 (__tgmath_complex_type_sub): Likewise.
27803 (__tgmath_complex_type): Likewise.
27804 (__TGMATH_F128): Likewise.
27805 (__TGMATH_CF128): Likewise.
27806 [__HAVE_BUILTIN_TGMATH] (__TGMATH_UNARY_REAL_ONLY): Define using
27807 new macros.
27808 [__HAVE_BUILTIN_TGMATH] (__TGMATH_UNARY_REAL_RET_ONLY): Likewise.
27809 [__HAVE_BUILTIN_TGMATH] (__TGMATH_BINARY_FIRST_REAL_ONLY):
27810 Likewise.
27811 [__HAVE_BUILTIN_TGMATH] (__TGMATH_BINARY_FIRST_REAL_STD_ONLY):
27812 Likewise.
27813 [__HAVE_BUILTIN_TGMATH] (__TGMATH_BINARY_REAL_ONLY): Likewise.
27814 [__HAVE_BUILTIN_TGMATH] (__TGMATH_BINARY_REAL_STD_ONLY): Likewise.
27815 [__HAVE_BUILTIN_TGMATH] (__TGMATH_BINARY_REAL_RET_ONLY): Likewise.
27816 [__HAVE_BUILTIN_TGMATH] (__TGMATH_TERNARY_FIRST_SECOND_REAL_ONLY):
27817 Likewise.
27818 [__HAVE_BUILTIN_TGMATH] (__TGMATH_TERNARY_REAL_ONLY): Likewise.
27819 [__HAVE_BUILTIN_TGMATH] (__TGMATH_TERNARY_FIRST_REAL_RET_ONLY):
27820 Likewise.
27821 [__HAVE_BUILTIN_TGMATH] (__TGMATH_UNARY_REAL_IMAG): Likewise.
27822 [__HAVE_BUILTIN_TGMATH] (__TGMATH_UNARY_IMAG): Likewise.
27823 [__HAVE_BUILTIN_TGMATH] (__TGMATH_UNARY_REAL_IMAG_RET_REAL):
27824 Likewise.
27825 [__HAVE_BUILTIN_TGMATH] (__TGMATH_BINARY_REAL_IMAG): Likewise.
27826 (__TGMATH_UNARY_REAL_IMAG_RET_REAL_SAME): New macro.
27827 (carg): Use __TGMATH_UNARY_REAL_IMAG_RET_REAL_SAME.
27828 (cimag): Likewise.
27829 (creal): Likewise.
27830
27831 2017-11-14 Joseph Myers <joseph@codesourcery.com>
27832
27833 * string/tester.c (test_stpncpy): Disable -Wstringop-truncation
27834 for stpncpy calls for GCC 8.
27835 (test_strncat): Disable -Wstringop-truncation warning for strncat
27836 calls for GCC 8. Disable -Wstringop-overflow= warning for one
27837 strncat call for GCC 7.
27838 (test_strncpy): Disable -Wstringop-truncation warning for strncpy
27839 calls for GCC 8.
27840 (test_memcmp): Use memcpy instead of strncpy for calls not copying
27841 trailing NUL.
27842
27843 * string/bug-strncat1.c: Include <libc-diag.h>.
27844 (main): Disable -Wstringop-truncation for strncat call for GCC 8.
27845
27846 2017-11-13 Claude Paroz <claude@2xlibre.net>
27847
27848 [BZ #22387]
27849 * localedata/locales/aa_DJ: Improved readibility by replacing
27850 <Uxxxx> sequences in the ASCII printable range by their ASCII
27851 character equivalents.
27852 * localedata/locales/aa_ER: Likewise.
27853 * localedata/locales/aa_ER@saaho: Likewise.
27854 * localedata/locales/aa_ET: Likewise.
27855 * localedata/locales/af_ZA: Likewise.
27856 * localedata/locales/agr_PE: Likewise.
27857 * localedata/locales/ak_GH: Likewise.
27858 * localedata/locales/am_ET: Likewise.
27859 * localedata/locales/anp_IN: Likewise.
27860 * localedata/locales/ar_AE: Likewise.
27861 * localedata/locales/ar_BH: Likewise.
27862 * localedata/locales/ar_DZ: Likewise.
27863 * localedata/locales/ar_EG: Likewise.
27864 * localedata/locales/ar_IN: Likewise.
27865 * localedata/locales/ar_IQ: Likewise.
27866 * localedata/locales/ar_JO: Likewise.
27867 * localedata/locales/ar_KW: Likewise.
27868 * localedata/locales/ar_LB: Likewise.
27869 * localedata/locales/ar_LY: Likewise.
27870 * localedata/locales/ar_MA: Likewise.
27871 * localedata/locales/ar_OM: Likewise.
27872 * localedata/locales/ar_QA: Likewise.
27873 * localedata/locales/ar_SA: Likewise.
27874 * localedata/locales/ar_SD: Likewise.
27875 * localedata/locales/ar_SS: Likewise.
27876 * localedata/locales/ar_SY: Likewise.
27877 * localedata/locales/ar_TN: Likewise.
27878 * localedata/locales/ar_YE: Likewise.
27879 * localedata/locales/as_IN: Likewise.
27880 * localedata/locales/ast_ES: Likewise.
27881 * localedata/locales/ayc_PE: Likewise.
27882 * localedata/locales/az_AZ: Likewise.
27883 * localedata/locales/az_IR: Likewise.
27884 * localedata/locales/be_BY: Likewise.
27885 * localedata/locales/be_BY@latin: Likewise.
27886 * localedata/locales/bem_ZM: Likewise.
27887 * localedata/locales/ber_DZ: Likewise.
27888 * localedata/locales/ber_MA: Likewise.
27889 * localedata/locales/bg_BG: Likewise.
27890 * localedata/locales/bhb_IN: Likewise.
27891 * localedata/locales/bho_IN: Likewise.
27892 * localedata/locales/bi_VU: Likewise.
27893 * localedata/locales/bn_BD: Likewise.
27894 * localedata/locales/bn_IN: Likewise.
27895 * localedata/locales/bo_CN: Likewise.
27896 * localedata/locales/bo_IN: Likewise.
27897 * localedata/locales/br_FR: Likewise.
27898 * localedata/locales/brx_IN: Likewise.
27899 * localedata/locales/bs_BA: Likewise.
27900 * localedata/locales/byn_ER: Likewise.
27901 * localedata/locales/ca_AD: Likewise.
27902 * localedata/locales/ca_ES: Likewise.
27903 * localedata/locales/ca_FR: Likewise.
27904 * localedata/locales/ca_IT: Likewise.
27905 * localedata/locales/ce_RU: Likewise.
27906 * localedata/locales/chr_US: Likewise.
27907 * localedata/locales/cmn_TW: Likewise.
27908 * localedata/locales/crh_UA: Likewise.
27909 * localedata/locales/cs_CZ: Likewise.
27910 * localedata/locales/csb_PL: Likewise.
27911 * localedata/locales/cv_RU: Likewise.
27912 * localedata/locales/cy_GB: Likewise.
27913 * localedata/locales/da_DK: Likewise.
27914 * localedata/locales/de_AT: Likewise.
27915 * localedata/locales/de_BE: Likewise.
27916 * localedata/locales/de_CH: Likewise.
27917 * localedata/locales/de_DE: Likewise.
27918 * localedata/locales/de_IT: Likewise.
27919 * localedata/locales/de_LI: Likewise.
27920 * localedata/locales/de_LU: Likewise.
27921 * localedata/locales/doi_IN: Likewise.
27922 * localedata/locales/dv_MV: Likewise.
27923 * localedata/locales/dz_BT: Likewise.
27924 * localedata/locales/el_CY: Likewise.
27925 * localedata/locales/el_GR: Likewise.
27926 * localedata/locales/en_AG: Likewise.
27927 * localedata/locales/en_AU: Likewise.
27928 * localedata/locales/en_BW: Likewise.
27929 * localedata/locales/en_CA: Likewise.
27930 * localedata/locales/en_DK: Likewise.
27931 * localedata/locales/en_GB: Likewise.
27932 * localedata/locales/en_HK: Likewise.
27933 * localedata/locales/en_IE: Likewise.
27934 * localedata/locales/en_IL: Likewise.
27935 * localedata/locales/en_IN: Likewise.
27936 * localedata/locales/en_NG: Likewise.
27937 * localedata/locales/en_NZ: Likewise.
27938 * localedata/locales/en_PH: Likewise.
27939 * localedata/locales/en_SG: Likewise.
27940 * localedata/locales/en_US: Likewise.
27941 * localedata/locales/en_ZA: Likewise.
27942 * localedata/locales/en_ZM: Likewise.
27943 * localedata/locales/en_ZW: Likewise.
27944 * localedata/locales/eo: Likewise.
27945 * localedata/locales/es_AR: Likewise.
27946 * localedata/locales/es_BO: Likewise.
27947 * localedata/locales/es_CL: Likewise.
27948 * localedata/locales/es_CO: Likewise.
27949 * localedata/locales/es_CR: Likewise.
27950 * localedata/locales/es_CU: Likewise.
27951 * localedata/locales/es_DO: Likewise.
27952 * localedata/locales/es_EC: Likewise.
27953 * localedata/locales/es_ES: Likewise.
27954 * localedata/locales/es_GT: Likewise.
27955 * localedata/locales/es_HN: Likewise.
27956 * localedata/locales/es_MX: Likewise.
27957 * localedata/locales/es_NI: Likewise.
27958 * localedata/locales/es_PA: Likewise.
27959 * localedata/locales/es_PE: Likewise.
27960 * localedata/locales/es_PR: Likewise.
27961 * localedata/locales/es_PY: Likewise.
27962 * localedata/locales/es_SV: Likewise.
27963 * localedata/locales/es_US: Likewise.
27964 * localedata/locales/es_UY: Likewise.
27965 * localedata/locales/es_VE: Likewise.
27966 * localedata/locales/et_EE: Likewise.
27967 * localedata/locales/eu_ES: Likewise.
27968 * localedata/locales/eu_ES@euro: Likewise.
27969 * localedata/locales/fa_IR: Likewise.
27970 * localedata/locales/ff_SN: Likewise.
27971 * localedata/locales/fi_FI: Likewise.
27972 * localedata/locales/fil_PH: Likewise.
27973 * localedata/locales/fo_FO: Likewise.
27974 * localedata/locales/fr_BE: Likewise.
27975 * localedata/locales/fr_CA: Likewise.
27976 * localedata/locales/fr_CH: Likewise.
27977 * localedata/locales/fr_FR: Likewise.
27978 * localedata/locales/fr_LU: Likewise.
27979 * localedata/locales/fur_IT: Likewise.
27980 * localedata/locales/fy_DE: Likewise.
27981 * localedata/locales/fy_NL: Likewise.
27982 * localedata/locales/ga_IE: Likewise.
27983 * localedata/locales/gd_GB: Likewise.
27984 * localedata/locales/gez_ER: Likewise.
27985 * localedata/locales/gez_ET: Likewise.
27986 * localedata/locales/gl_ES: Likewise.
27987 * localedata/locales/gu_IN: Likewise.
27988 * localedata/locales/gv_GB: Likewise.
27989 * localedata/locales/ha_NG: Likewise.
27990 * localedata/locales/hak_TW: Likewise.
27991 * localedata/locales/he_IL: Likewise.
27992 * localedata/locales/hi_IN: Likewise.
27993 * localedata/locales/hif_FJ: Likewise.
27994 * localedata/locales/hne_IN: Likewise.
27995 * localedata/locales/hr_HR: Likewise.
27996 * localedata/locales/hsb_DE: Likewise.
27997 * localedata/locales/ht_HT: Likewise.
27998 * localedata/locales/hu_HU: Likewise.
27999 * localedata/locales/hy_AM: Likewise.
28000 * localedata/locales/i18n: Likewise.
28001 * localedata/locales/ia_FR: Likewise.
28002 * localedata/locales/id_ID: Likewise.
28003 * localedata/locales/ig_NG: Likewise.
28004 * localedata/locales/ik_CA: Likewise.
28005 * localedata/locales/is_IS: Likewise.
28006 * localedata/locales/it_CH: Likewise.
28007 * localedata/locales/it_IT: Likewise.
28008 * localedata/locales/iu_CA: Likewise.
28009 * localedata/locales/ja_JP: Likewise.
28010 * localedata/locales/ka_GE: Likewise.
28011 * localedata/locales/kk_KZ: Likewise.
28012 * localedata/locales/kl_GL: Likewise.
28013 * localedata/locales/kn_IN: Likewise.
28014 * localedata/locales/ko_KR: Likewise.
28015 * localedata/locales/kok_IN: Likewise.
28016 * localedata/locales/ks_IN: Likewise.
28017 * localedata/locales/ks_IN@devanagari: Likewise.
28018 * localedata/locales/ku_TR: Likewise.
28019 * localedata/locales/kw_GB: Likewise.
28020 * localedata/locales/ky_KG: Likewise.
28021 * localedata/locales/lb_LU: Likewise.
28022 * localedata/locales/lg_UG: Likewise.
28023 * localedata/locales/li_BE: Likewise.
28024 * localedata/locales/li_NL: Likewise.
28025 * localedata/locales/lij_IT: Likewise.
28026 * localedata/locales/ln_CD: Likewise.
28027 * localedata/locales/lo_LA: Likewise.
28028 * localedata/locales/lt_LT: Likewise.
28029 * localedata/locales/lv_LV: Likewise.
28030 * localedata/locales/lzh_TW: Likewise.
28031 * localedata/locales/mag_IN: Likewise.
28032 * localedata/locales/mai_IN: Likewise.
28033 * localedata/locales/mg_MG: Likewise.
28034 * localedata/locales/mhr_RU: Likewise.
28035 * localedata/locales/mi_NZ: Likewise.
28036 * localedata/locales/mk_MK: Likewise.
28037 * localedata/locales/ml_IN: Likewise.
28038 * localedata/locales/mn_MN: Likewise.
28039 * localedata/locales/mni_IN: Likewise.
28040 * localedata/locales/mr_IN: Likewise.
28041 * localedata/locales/ms_MY: Likewise.
28042 * localedata/locales/mt_MT: Likewise.
28043 * localedata/locales/my_MM: Likewise.
28044 * localedata/locales/nan_TW: Likewise.
28045 * localedata/locales/nan_TW@latin: Likewise.
28046 * localedata/locales/nb_NO: Likewise.
28047 * localedata/locales/nds_DE: Likewise.
28048 * localedata/locales/nds_NL: Likewise.
28049 * localedata/locales/ne_NP: Likewise.
28050 * localedata/locales/nhn_MX: Likewise.
28051 * localedata/locales/niu_NU: Likewise.
28052 * localedata/locales/niu_NZ: Likewise.
28053 * localedata/locales/nl_AW: Likewise.
28054 * localedata/locales/nl_BE: Likewise.
28055 * localedata/locales/nl_NL: Likewise.
28056 * localedata/locales/nn_NO: Likewise.
28057 * localedata/locales/nr_ZA: Likewise.
28058 * localedata/locales/nso_ZA: Likewise.
28059 * localedata/locales/oc_FR: Likewise.
28060 * localedata/locales/om_ET: Likewise.
28061 * localedata/locales/om_KE: Likewise.
28062 * localedata/locales/or_IN: Likewise.
28063 * localedata/locales/os_RU: Likewise.
28064 * localedata/locales/pa_IN: Likewise.
28065 * localedata/locales/pa_PK: Likewise.
28066 * localedata/locales/pap_AW: Likewise.
28067 * localedata/locales/pap_CW: Likewise.
28068 * localedata/locales/pl_PL: Likewise.
28069 * localedata/locales/ps_AF: Likewise.
28070 * localedata/locales/pt_BR: Likewise.
28071 * localedata/locales/pt_PT: Likewise.
28072 * localedata/locales/quz_PE: Likewise.
28073 * localedata/locales/raj_IN: Likewise.
28074 * localedata/locales/ro_RO: Likewise.
28075 * localedata/locales/ru_RU: Likewise.
28076 * localedata/locales/ru_UA: Likewise.
28077 * localedata/locales/rw_RW: Likewise.
28078 * localedata/locales/sa_IN: Likewise.
28079 * localedata/locales/sat_IN: Likewise.
28080 * localedata/locales/sc_IT: Likewise.
28081 * localedata/locales/sd_IN: Likewise.
28082 * localedata/locales/sd_IN@devanagari: Likewise.
28083 * localedata/locales/se_NO: Likewise.
28084 * localedata/locales/sgs_LT: Likewise.
28085 * localedata/locales/shs_CA: Likewise.
28086 * localedata/locales/si_LK: Likewise.
28087 * localedata/locales/sid_ET: Likewise.
28088 * localedata/locales/sk_SK: Likewise.
28089 * localedata/locales/sl_SI: Likewise.
28090 * localedata/locales/sm_WS: Likewise.
28091 * localedata/locales/so_DJ: Likewise.
28092 * localedata/locales/so_ET: Likewise.
28093 * localedata/locales/so_KE: Likewise.
28094 * localedata/locales/so_SO: Likewise.
28095 * localedata/locales/sq_AL: Likewise.
28096 * localedata/locales/sq_MK: Likewise.
28097 * localedata/locales/sr_ME: Likewise.
28098 * localedata/locales/sr_RS: Likewise.
28099 * localedata/locales/sr_RS@latin: Likewise.
28100 * localedata/locales/ss_ZA: Likewise.
28101 * localedata/locales/st_ZA: Likewise.
28102 * localedata/locales/sv_FI: Likewise.
28103 * localedata/locales/sv_SE: Likewise.
28104 * localedata/locales/sw_KE: Likewise.
28105 * localedata/locales/sw_TZ: Likewise.
28106 * localedata/locales/szl_PL: Likewise.
28107 * localedata/locales/ta_IN: Likewise.
28108 * localedata/locales/ta_LK: Likewise.
28109 * localedata/locales/tcy_IN: Likewise.
28110 * localedata/locales/te_IN: Likewise.
28111 * localedata/locales/tg_TJ: Likewise.
28112 * localedata/locales/th_TH: Likewise.
28113 * localedata/locales/the_NP: Likewise.
28114 * localedata/locales/ti_ER: Likewise.
28115 * localedata/locales/ti_ET: Likewise.
28116 * localedata/locales/tig_ER: Likewise.
28117 * localedata/locales/tk_TM: Likewise.
28118 * localedata/locales/tl_PH: Likewise.
28119 * localedata/locales/tn_ZA: Likewise.
28120 * localedata/locales/to_TO: Likewise.
28121 * localedata/locales/tpi_PG: Likewise.
28122 * localedata/locales/tr_CY: Likewise.
28123 * localedata/locales/tr_TR: Likewise.
28124 * localedata/locales/ts_ZA: Likewise.
28125 * localedata/locales/tt_RU: Likewise.
28126 * localedata/locales/tt_RU@iqtelif: Likewise.
28127 * localedata/locales/ug_CN: Likewise.
28128 * localedata/locales/uk_UA: Likewise.
28129 * localedata/locales/unm_US: Likewise.
28130 * localedata/locales/ur_IN: Likewise.
28131 * localedata/locales/ur_PK: Likewise.
28132 * localedata/locales/uz_UZ: Likewise.
28133 * localedata/locales/uz_UZ@cyrillic: Likewise.
28134 * localedata/locales/ve_ZA: Likewise.
28135 * localedata/locales/vi_VN: Likewise.
28136 * localedata/locales/wa_BE: Likewise.
28137 * localedata/locales/wae_CH: Likewise.
28138 * localedata/locales/wal_ET: Likewise.
28139 * localedata/locales/wo_SN: Likewise.
28140 * localedata/locales/xh_ZA: Likewise.
28141 * localedata/locales/yi_US: Likewise.
28142 * localedata/locales/yo_NG: Likewise.
28143 * localedata/locales/yue_HK: Likewise.
28144 * localedata/locales/yuw_PG: Likewise.
28145 * localedata/locales/zh_CN: Likewise.
28146 * localedata/locales/zh_HK: Likewise.
28147 * localedata/locales/zh_SG: Likewise.
28148 * localedata/locales/zh_TW: Likewise.
28149 * localedata/locales/zu_ZA: Likewise.
28150
28151 2017-11-13 Florian Weimer <fweimer@redhat.com>
28152
28153 * support/next_to_fault.h, support/next_to_fault.c: New files.
28154 * support/Makefile (libsupport-routines): Add next_to_fault.
28155 * resolv/tst-inet_pton.c (struct next_to_fault)
28156 (next_to_fault_allocate, next_to_fault_free): Remove.
28157 (run_one_test): Switch to <support/next_to_fault.h> interfaces.
28158
28159 2017-11-13 H.J. Lu <hongjiu.lu@intel.com>
28160
28161 * elf/dl-support.c: Include <dl-procruntime.c>.
28162 * include/link.h: Include <link_map.h>.
28163 * sysdeps/generic/dl-procruntime.c: New file.
28164 * sysdeps/generic/link_map.h: Likewise.
28165 * sysdeps/generic/ldsodefs.h: Include <dl-procruntime.c> in
28166 the writable ld.so namespace.
28167
28168 2017-11-12 Paul Eggert <eggert@cs.ucla.edu>
28169
28170 timezone: pacify GCC -Wstringop-truncation
28171 Problem reported by Martin Sebor in:
28172 https://sourceware.org/ml/libc-alpha/2017-11/msg00336.html
28173 * timezone/zic.c (writezone): Use memcpy, not strncpy.
28174
28175 2017-11-12 Florian Weimer <fweimer@redhat.com>
28176
28177 * support/Makefile (libsupport-routines): Add xreadlink, xstrndup,
28178 tst-xreadlink.
28179 (tests): Add tst-xreadlink.
28180 * support/support.h (xstrndup): Declare.
28181 * support/xunistd.h (xunlink, xreadlink): Declare.
28182 * support/temp_file.h (support_create_temp_directory): Declare.
28183 * support/temp_file.c (support_create_temp_directory): New function.
28184 * support/support_chroot.c (support_chroot_create): Use it.
28185 * support/xreadlink.c: New file.
28186 * support/xstrndup.c: Likewise.
28187 * support/xunlink.c: Likewise.
28188 * support/tst-xreadlink.c: Likewise.
28189
28190 2017-11-11 John David Anglin <danglin@gcc.gnu.org>
28191
28192 * sysdeps/hppa/fpu/libm-test-ulps: Update clog10_downward ulps.
28193
28194 2017-11-11 Florian Weimer <fweimer@redhat.com>
28195
28196 [BZ #22409]
28197 [BZ #22412]
28198 * resolv/res_comp.c (printable_string, binary_hnok)
28199 (binary_leading_dash): New functions.
28200 (res_hnok): Reimplement using these functions and ns_name_pton.
28201 (res_ownok): Likewise.
28202 (res_mailok): Reimplement using printable_string, ns_name_pton and
28203 binary_hnok.
28204 (res_dnok): Reimplement using printable_string and ns_name_pton.
28205 * resolv/tst-res_hnok.c (tests): Add additional tests.
28206 (LETTERDIGITS, PRINTABLE): Define.
28207 (do_test): Adjust one_char results.
28208
28209 2017-11-11 Florian Weimer <fweimer@redhat.com>
28210
28211 [BZ #22413]
28212 * resolv/ns_name.c (ns_name_pton): Treat trailing backslash as error.
28213 * resolv/tst-ns_name_pton.c (tests): Add trailing backslash tests.
28214
28215 2017-11-11 Florian Weimer <fweimer@redhat.com>
28216
28217 * resolv/tst-ns_name_pton.c: New file.
28218 * resolv/Makefile (tests): Add tst-ns_name_pton.
28219 (tst-ns_name_pton): Link against libresolv.
28220
28221 2017-11-11 Florian Weimer <fweimer@redhat.com>
28222
28223 * resolv/tst-res_hnok.c: New file.
28224 * resolv/Makefile (tests): Add tst-res_hnok.
28225 (tst-res_hnok): Link against libresolv.
28226
28227 2017-11-11 Florian Weimer <fweimer@redhat.com>
28228
28229 * resolv/tst-resolv-network.c: Use test framework instead explicit
28230 main function.
28231
28232 2017-11-09 H.J. Lu <hongjiu.lu@intel.com>
28233
28234 * include/setjmp.h [!_ISOMAC]: Include <stddef.h> and
28235 <jmp_buf-macros.h>.
28236 [!_ISOMAC] (STR_HELPER): New.
28237 [!_ISOMAC] (STR): Likewise.
28238 [!_ISOMAC] (TEST_SIZE): Likewise.
28239 [!_ISOMAC] (TEST_ALIGN): Likewise.
28240 [!_ISOMAC] (TEST_OFFSET): Likewise.
28241 [!_ISOMAC] Add _Static_assert to check sizes, alignments and
28242 field offsets of jmp_buf as well as sigjmp_buf.
28243 * sysdeps/unix/sysv/linux/aarch64/jmp_buf-macros.h: Likewise.
28244 * sysdeps/unix/sysv/linux/alpha/jmp_buf-macros.h: Likewise.
28245 * sysdeps/unix/sysv/linux/arm/jmp_buf-macros.h: Likewise.
28246 * sysdeps/unix/sysv/linux/hppa/jmp_buf-macros.h: Likewise.
28247 * sysdeps/unix/sysv/linux/i386/jmp_buf-macros.h: Likewise.
28248 * sysdeps/unix/sysv/linux/ia64/jmp_buf-macros.h: Likewise.
28249 * sysdeps/unix/sysv/linux/m68k/jmp_buf-macros.h: Likewise.
28250 * sysdeps/unix/sysv/linux/microblaze/jmp_buf-macros.h: Likewise.
28251 * sysdeps/unix/sysv/linux/mips/mips32/jmp_buf-macros.h: Likewise.
28252 * sysdeps/unix/sysv/linux/mips/mips64/n32/jmp_buf-macros.h:
28253 Likewise.
28254 * sysdeps/unix/sysv/linux/mips/mips64/n64/jmp_buf-macros.h:
28255 Likewise.
28256 * sysdeps/unix/sysv/linux/nios2/jmp_buf-macros.h: Likewise.
28257 * sysdeps/unix/sysv/linux/powerpc/powerpc32/jmp_buf-macros.h:
28258 Likewise.
28259 * sysdeps/unix/sysv/linux/powerpc/powerpc64/jmp_buf-macros.h:
28260 Likewise.
28261 * sysdeps/unix/sysv/linux/s390/s390-32/jmp_buf-macros.h: Likewise.
28262 * sysdeps/unix/sysv/linux/s390/s390-64/jmp_buf-macros.h: Likewise.
28263 * sysdeps/unix/sysv/linux/sh/jmp_buf-macros.h: Likewise.
28264 * sysdeps/unix/sysv/linux/sparc/sparc32/jmp_buf-macros.h: Likewise.
28265 * sysdeps/unix/sysv/linux/sparc/sparc64/jmp_buf-macros.h: Likewise.
28266 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/jmp_buf-macros.h:
28267 Likewise.
28268 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/jmp_buf-macros.h:
28269 Likewise.
28270 * sysdeps/unix/sysv/linux/tile/tilepro/jmp_buf-macros.h: Likewise.
28271 * sysdeps/unix/sysv/linux/x86_64/64/jmp_buf-macros.h: Likewise.
28272 * sysdeps/unix/sysv/linux/x86_64/x32/jmp_buf-macros.h: Likewise.
28273
28274 2017-11-07 Joseph Myers <joseph@codesourcery.com>
28275
28276 * include/float.h
28277 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
28278 && __HAVE_FLOAT32] (FLT32_MANT_DIG): New macro.
28279 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
28280 && __HAVE_FLOAT32] (FLT32_DECIMAL_DIG): Likewise.
28281 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
28282 && __HAVE_FLOAT32] (FLT32_DIG): Likewise.
28283 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
28284 && __HAVE_FLOAT32] (FLT32_MIN_EXP): Likewise.
28285 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
28286 && __HAVE_FLOAT32] (FLT32_MIN_10_EXP): Likewise.
28287 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
28288 && __HAVE_FLOAT32] (FLT32_MAX_EXP): Likewise.
28289 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
28290 && __HAVE_FLOAT32] (FLT32_MAX_10_EXP): Likewise.
28291 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
28292 && __HAVE_FLOAT32] (FLT32_MAX): Likewise.
28293 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
28294 && __HAVE_FLOAT32] (FLT32_EPSILON): Likewise.
28295 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
28296 && __HAVE_FLOAT32] (FLT32_MIN): Likewise.
28297 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
28298 && __HAVE_FLOAT32] (FLT32_TRUE_MIN): Likewise.
28299 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
28300 && __HAVE_FLOAT64] (FLT64_MANT_DIG): Likewise.
28301 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
28302 && __HAVE_FLOAT64] (FLT64_DECIMAL_DIG): Likewise.
28303 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
28304 && __HAVE_FLOAT64] (FLT64_DIG): Likewise.
28305 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
28306 && __HAVE_FLOAT64] (FLT64_MIN_EXP): Likewise.
28307 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
28308 && __HAVE_FLOAT64] (FLT64_MIN_10_EXP): Likewise.
28309 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
28310 && __HAVE_FLOAT64] (FLT64_MAX_EXP): Likewise.
28311 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
28312 && __HAVE_FLOAT64] (FLT64_MAX_10_EXP): Likewise.
28313 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
28314 && __HAVE_FLOAT64] (FLT64_MAX): Likewise.
28315 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
28316 && __HAVE_FLOAT64] (FLT64_EPSILON): Likewise.
28317 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
28318 && __HAVE_FLOAT64] (FLT64_MIN): Likewise.
28319 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
28320 && __HAVE_FLOAT64] (FLT64_TRUE_MIN): Likewise.
28321 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
28322 && __HAVE_FLOAT32X] (FLT32X_MANT_DIG): Likewise.
28323 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
28324 && __HAVE_FLOAT32X] (FLT32X_DECIMAL_DIG): Likewise.
28325 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
28326 && __HAVE_FLOAT32X] (FLT32X_DIG): Likewise.
28327 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
28328 && __HAVE_FLOAT32X] (FLT32X_MIN_EXP): Likewise.
28329 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
28330 && __HAVE_FLOAT32X] (FLT32X_MIN_10_EXP): Likewise.
28331 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
28332 && __HAVE_FLOAT32X] (FLT32X_MAX_EXP): Likewise.
28333 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
28334 && __HAVE_FLOAT32X] (FLT32X_MAX_10_EXP): Likewise.
28335 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
28336 && __HAVE_FLOAT32X] (FLT32X_MAX): Likewise.
28337 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
28338 && __HAVE_FLOAT32X] (FLT32X_EPSILON): Likewise.
28339 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
28340 && __HAVE_FLOAT32X] (FLT32X_MIN): Likewise.
28341 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
28342 && __HAVE_FLOAT32X] (FLT32X_TRUE_MIN): Likewise.
28343 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
28344 && __HAVE_FLOAT64X] (FLT64X_MANT_DIG): Likewise.
28345 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
28346 && __HAVE_FLOAT64X] (FLT64X_DECIMAL_DIG): Likewise.
28347 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
28348 && __HAVE_FLOAT64X] (FLT64X_DIG): Likewise.
28349 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
28350 && __HAVE_FLOAT64X] (FLT64X_MIN_EXP): Likewise.
28351 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
28352 && __HAVE_FLOAT64X] (FLT64X_MIN_10_EXP): Likewise.
28353 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
28354 && __HAVE_FLOAT64X] (FLT64X_MAX_EXP): Likewise.
28355 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
28356 && __HAVE_FLOAT64X] (FLT64X_MAX_10_EXP): Likewise.
28357 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
28358 && __HAVE_FLOAT64X] (FLT64X_MAX): Likewise.
28359 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
28360 && __HAVE_FLOAT64X] (FLT64X_EPSILON): Likewise.
28361 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
28362 && __HAVE_FLOAT64X] (FLT64X_MIN): Likewise.
28363 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
28364 && __HAVE_FLOAT64X] (FLT64X_TRUE_MIN): Likewise.
28365
28366 * stdlib/tst-strtod.h (F16): New macro.
28367 (F32): Likewise.
28368 (F64): Likewise.
28369 (F32X): Likewise.
28370 (F64X): Likewise.
28371 (F128X): Likewise.
28372 (IF_FLOAT16): Likewise.
28373 (IF_FLOAT32): Likewise.
28374 (IF_FLOAT64): Likewise.
28375 (IF_FLOAT32X): Likewise.
28376 (IF_FLOAT64X): Likewise.
28377 (IF_FLOAT128X): Likewise.
28378 (GEN_TEST_STRTOD_FOREACH): Conditionally call macros for _Float16,
28379 _Float32, _Float64, _Float32x, _Float64x and _Float128x.
28380 (STRTOD_TEST_FOREACH): Likewise.
28381 * stdlib/tst-strtod-round-skeleton.c (CHOOSE_f32): New macro.
28382 (CHOOSE_f64): Likewise.
28383 (CHOOSE_f32x): Likewise.
28384 (CHOOSE_f64x): Likewise.
28385
28386 2017-11-07 Andreas Schwab <schwab@suse.de>
28387
28388 * nptl/Makefile (tests-internal): Remove tst-typesizes.
28389
28390 2017-11-07 Mike FABIAN <mfabian@redhat.com>
28391
28392 [BZ #22403]
28393 * localedata/locales/mfe_MU (LC_TIME): Fix wrong d_fmt, / needs
28394 to be escaped.
28395 * localedata/locales/miq_NI (LC_TIME): Fix wrong d_fmt, / needs
28396 to be escaped.
28397
28398 2017-11-07 Claude Paroz <claude@2xlibre.net>
28399
28400 [BZ #22403]
28401 * localedata/locales/an_ES (LC_TIME): Fix wrong d_fmt, / needs
28402 to be escaped.
28403 * localedata/locales/kab_DZ (LC_TIME): Fix wrong d_fmt, / needs
28404 to be escaped.
28405 * localedata/locales/om_ET (LC_TIME): Fix wrong d_fmt, / needs
28406 to be escaped.
28407
28408 2017-11-07 Adhemerval Zanella <adhemerval.zanella@linaro.org>
28409
28410 [BZ #22298]
28411 * nptl/allocatestack.c (allocate_stack): Check if
28412 __PTHREAD_MUTEX_HAVE_PREV is non-zero, instead if
28413 __PTHREAD_MUTEX_HAVE_PREV is defined.
28414 * nptl/descr.h (pthread): Likewise.
28415 * nptl/nptl-init.c (__pthread_initialize_minimal_internal):
28416 Likewise.
28417 * nptl/pthread_create.c (START_THREAD_DEFN): Likewise.
28418 * sysdeps/nptl/fork.c (__libc_fork): Likewise.
28419 * sysdeps/nptl/pthread.h (PTHREAD_MUTEX_INITIALIZER): Likewise.
28420 * sysdeps/nptl/bits/thread-shared-types.h
28421 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION): New
28422 defines.
28423 (__pthread_internal_list): Check __PTHREAD_MUTEX_USE_UNION instead
28424 of __WORDSIZE for internal layout.
28425 (__pthread_mutex_s): Check __PTHREAD_MUTEX_NUSERS_AFTER_KIND instead
28426 of __WORDSIZE for internal __nusers layout and __PTHREAD_MUTEX_USE_UNION
28427 instead of __WORDSIZE whether to use an union for __spins and __list
28428 fields.
28429 (__PTHREAD_MUTEX_HAVE_PREV): Define also for __PTHREAD_MUTEX_USE_UNION
28430 case.
28431 * sysdeps/aarch64/nptl/bits/pthreadtypes-arch.h
28432 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION): New
28433 defines.
28434 * sysdeps/alpha/nptl/bits/pthreadtypes-arch.h
28435 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
28436 Likewise.
28437 * sysdeps/arm/nptl/bits/pthreadtypes-arch.h
28438 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
28439 Likewise.
28440 * sysdeps/hppa/nptl/bits/pthreadtypes-arch.h
28441 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
28442 Likewise.
28443 * sysdeps/ia64/nptl/bits/pthreadtypes-arch.h
28444 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
28445 Likewise.
28446 * sysdeps/m68k/nptl/bits/pthreadtypes-arch.h
28447 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
28448 Likewise.
28449 * sysdeps/microblaze/nptl/bits/pthreadtypes-arch.h
28450 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
28451 Likewise.
28452 * sysdeps/mips/nptl/bits/pthreadtypes-arch.h
28453 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
28454 Likewise.
28455 * sysdeps/nios2/nptl/bits/pthreadtypes-arch.h
28456 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
28457 Likewise.
28458 * sysdeps/powerpc/nptl/bits/pthreadtypes-arch.h
28459 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
28460 Likewise.
28461 * sysdeps/s390/nptl/bits/pthreadtypes-arch.h
28462 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
28463 Likewise.
28464 * sysdeps/sh/nptl/bits/pthreadtypes-arch.h
28465 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
28466 Likewise.
28467 * sysdeps/sparc/nptl/bits/pthreadtypes-arch.h
28468 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
28469 Likewise.
28470 * sysdeps/tile/nptl/bits/pthreadtypes-arch.h
28471 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
28472 Likewise.
28473 * sysdeps/x86/nptl/bits/pthreadtypes-arch.h
28474 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
28475 Likewise.
28476
28477 * nptl/pthreadP.h (ASSERT_TYPE_SIZE, ASSERT_PTHREAD_INTERNAL_SIZE):
28478 New macros.
28479 * nptl/pthread_attr_init.c (__pthread_mutex_init): Add build time
28480 checks for expected input type size.
28481 * nptl/pthread_barrier_init.c (__pthread_barrier_init): Likewise.
28482 * nptl/pthread_barrierattr_init.c (pthread_barrierattr_init):
28483 Likewise.
28484 * nptl/pthread_cond_init.c (__pthread_cond_init): Likewise.
28485 * nptl/pthread_condattr_init.c (__pthread_condattr_init): Likewise.
28486 * nptl/pthread_mutex_init.c (__pthread_mutex_init): Likewise.
28487 * nptl/pthread_mutexattr_init.c (__pthread_mutexattr_init): Likewise.
28488 * nptl/pthread_rwlock_init.c (__pthread_rwlock_init): Likewise.
28489 * nptl/pthread_rwlockattr_init.c (pthread_rwlockattr_init): Likewise.
28490 * nptl/sem_init.c (__new_sem_init, __old_sem_init): Likewise
28491 * nptl/pthread_attr_destroy.c (__pthread_attr_destroy): Remove
28492 superflous runtime assert check.
28493 * nptl/pthread_attr_getaffinity.c (__pthread_attr_getaffinity_new):
28494 Likewise.
28495 * nptl/pthread_attr_getdetachstate.c (__pthread_attr_getdetachstate):
28496 Likewise.
28497 * nptl/pthread_attr_getguardsize.c (pthread_attr_getguardsize):
28498 Likewise.
28499 * nptl/pthread_attr_getinheritsched.c (__pthread_attr_getinheritsched):
28500 Likewise.
28501 * nptl/pthread_attr_getschedparam.c (__pthread_attr_getschedparam):
28502 Likewise.
28503 * nptl/pthread_attr_getschedpolicy.c (__pthread_attr_getschedpolicy):
28504 Likewise.
28505 * nptl/pthread_attr_getscope.c (__pthread_attr_getscope): Likewise.
28506 * nptl/pthread_attr_getstack.c (__pthread_attr_getstack): Likewise.
28507 * nptl/pthread_attr_getstackaddr.c (__pthread_attr_getstackaddr):
28508 Likewise.
28509 * nptl/pthread_attr_getstacksize.c (__pthread_attr_getstacksize):
28510 Likewise.
28511 * nptl/pthread_attr_setaffinity.c (__pthread_attr_setaffinity_new):
28512 Likewise.
28513 * nptl/pthread_attr_setdetachstate.c (__pthread_attr_setdetachstate):
28514 Likewise.
28515 * nptl/pthread_attr_setguardsize.c (pthread_attr_setguardsize):
28516 Likewise.
28517 * nptl/pthread_attr_setinheritsched.c
28518 (__pthread_attr_setinheritsched): Likewise.
28519 * nptl/pthread_attr_setschedparam.c (__pthread_attr_setschedparam):
28520 Likewise.
28521 * nptl/pthread_attr_setschedpolicy.c (__pthread_attr_setschedpolicy):
28522 Likewise.
28523 * nptl/pthread_attr_setscope.c (__pthread_attr_setscope): Likewise.
28524 * nptl/pthread_attr_setstack.c (__pthread_attr_setstack,
28525 __old_pthread_attr_setstack): Likewise.
28526 * nptl/pthread_attr_setstackaddr.c (__pthread_attr_setstackaddr):
28527 Likewise.
28528 * nptl/pthread_attr_setstacksize.c (__pthread_attr_setstacksize):
28529 Likewise.
28530 * nptl/pthread_getattr_default_np.c (pthread_getattr_default_np):
28531 Likewise.
28532 * nptl/pthread_mutex_lock.c (__pthread_mutex_lock): Likewise.
28533 * nptl/pthread_setattr_default_np.c (pthread_setattr_default_np):
28534 Likewise.
28535 * nptl/tst-typesizes.c: Remove file.
28536
28537 * nptl/pthreadP.h (ASSERT_PTHREAD_STRING,
28538 ASSERT_PTHREAD_INTERNAL_OFFSET): New macro.
28539 * nptl/pthread_mutex_init.c (__pthread_mutex_init): Add build time
28540 checks for internal pthread_mutex_t offsets.
28541 * sysdeps/aarch64/nptl/pthread-offsets.h
28542 (__PTHREAD_MUTEX_NUSERS_OFFSET, __PTHREAD_MUTEX_KIND_OFFSET,
28543 __PTHREAD_MUTEX_SPINS_OFFSET, __PTHREAD_MUTEX_ELISION_OFFSET,
28544 __PTHREAD_MUTEX_LIST_OFFSET): New macro.
28545 * sysdeps/alpha/nptl/pthread-offsets.h: Likewise.
28546 * sysdeps/arm/nptl/pthread-offsets.h: Likewise.
28547 * sysdeps/hppa/nptl/pthread-offsets.h: Likewise.
28548 * sysdeps/i386/nptl/pthread-offsets.h: Likewise.
28549 * sysdeps/ia64/nptl/pthread-offsets.h: Likewise.
28550 * sysdeps/m68k/nptl/pthread-offsets.h: Likewise.
28551 * sysdeps/microblaze/nptl/pthread-offsets.h: Likewise.
28552 * sysdeps/mips/nptl/pthread-offsets.h: Likewise.
28553 * sysdeps/nios2/nptl/pthread-offsets.h: Likewise.
28554 * sysdeps/powerpc/nptl/pthread-offsets.h: Likewise.
28555 * sysdeps/s390/nptl/pthread-offsets.h: Likewise.
28556 * sysdeps/sh/nptl/pthread-offsets.h: Likewise.
28557 * sysdeps/sparc/nptl/pthread-offsets.h: Likewise.
28558 * sysdeps/tile/nptl/pthread-offsets.h: Likewise.
28559 * sysdeps/x86_64/nptl/pthread-offsets.h: Likewise.
28560
28561 2017-11-07 Florian Weimer <fweimer@redhat.com>
28562
28563 * bits/mman-linux.h: Move ...
28564 * sysdeps/unix/sysv/linux/bits/mman-linux.h: ... here. Update
28565 comment.
28566 * sysdeps/unix/sysv/linux/bits/Makefile (sysdep_headers): Remove
28567 outdated comment.
28568
28569 2017-11-07 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
28570
28571 * sysdeps/powerpc/powerpc64/multiarch/strcasestr-power8.S (STRNLEN):
28572 Redefine STRNLEN as __strnlen_power8.
28573
28574 2017-11-06 Adhemerval Zanella <adhemerval.zanella@linaro.org>
28575
28576 * signal/sighold.c (sighold): Optimize implementation.
28577
28578 * sysdeps/unix/sysv/linux/sigqueue.c (__sigqueue): Asssume
28579 __NR_rt_sigqueueinfo.
28580
28581 * sysdeps/unix/sysv/linux/Versions (libc) [GLIBC_PRIVATE]: Add
28582 __sigtimedwait.
28583 * sysdeps/unix/sysv/linux/sigtimedwait.c: Simplify includes and
28584 assume __NR_rt_sigtimedwait.
28585 * sysdeps/unix/sysv/linux/sigwait.c (__sigwait): Call __sigtimedwait
28586 and add LIBC_CANCEL_HANDLED for cancellation marking.
28587 * sysdeps/unix/sysv/linux/sigwaitinfo.c (__sigwaitinfo): Likewise.
28588
28589 * sysdeps/arm/armv7/multiarch/Makefile [$(subdir) = string]
28590 (sysdeps_routines): Add memchr_noneon.
28591 * sysdeps/arm/armv7/multiarch/ifunc-memchr.h: New file.
28592 * sysdeps/arm/armv7/multiarch/memchr_noneon.S: Likewise.
28593 * sysdeps/arm/armv7/multiarch/rtld-memchr.S: Likewise.
28594 * sysdeps/arm/armv7/multiarch/memchr.S: Remove file.
28595 * sysdeps/arm/armv7/multiarch/memchr.c: New file.
28596 * sysdeps/arm/armv7/multiarch/memchr_impl.S: Move to ...
28597 * sysdeps/arm/armv7/multiarch/memchr_neon.S: ... here.
28598
28599 * sysdeps/arm/arm-ifunc.h: New file.
28600 * sysdeps/arm/armv7/multiarch/ifunc-memcpy.h: Likewise.
28601 * sysdeps/arm/armv7/multiarch/memcpy.c: Likewise.
28602 * sysdeps/arm/armv7/multiarch/memcpy_arm.S: Likewise.
28603 * sysdeps/arm/armv7/multiarch/rtld-memcpy.S: Likewise.
28604 * sysdeps/arm/armv7/multiarch/memcpy_neon.S [!__ARM_NEON__]
28605 (__memcpy_neon): Avoid create hidden alias.
28606 * sysdeps/arm/armv7/multiarch/memcpy_vfp.S [!__ARM_NEON_]
28607 (__memcpy_vfp): Likewise.
28608 * sysdeps/arm/armv7/multiarch/Makefile [$(subdir) = string]
28609 (sysdep_routines): Add memcpy_arm.
28610 * sysdeps/arm/armv7/multiarch/memcpy.S: Remove file.
28611
28612 2017-11-06 H.J. Lu <hongjiu.lu@intel.com>
28613
28614 [BZ #22362]
28615 * Makerules (make-link-multidir): New.
28616 * config.make.in (multidir): New.
28617 * configure.ac (libc_cv_multidir): New. AC_SUBST.
28618 * configure: Regenerated.
28619 * csu/Makefile [$(multidir) != .](multilib-extra-objs): New.
28620 [$(multidir) != .](extra-objs): Add $(multilib-extra-objs).
28621 [$(multidir) != .]($(addprefix $(objpfx)$(multidir)/, $(install-lib))):
28622 New target.
28623
28624 2017-11-06 Joseph Myers <joseph@codesourcery.com>
28625
28626 [BZ #22402]
28627 * sysdeps/powerpc/bits/floatn.h: Include <bits/long-double.h>.
28628 [__NO_LONG_DOUBLE_MATH] (__HAVE_FLOAT128): Define to 0.
28629
28630 2017-11-04 Mike FABIAN <mfabian@redhat.com>
28631
28632 * localedata/locales/tpi_PG (LC_TIME): Fix wrong d_fmt, / needs
28633 to be escaped.
28634
28635 2017-11-04 Florian Weimer <fweimer@redhat.com>
28636
28637 * manual/llio.texi (Open-time Flags): Document O_TMPFILE.
28638
28639 2017-11-03 Joseph Myers <joseph@codesourcery.com>
28640
28641 * math/math.h [__HAVE_DISTINCT_FLOAT16
28642 || __HAVE_DISTINCT_FLOAT32 || __HAVE_DISTINCT_FLOAT64
28643 || __HAVE_DISTINCT_FLOAT32X || __HAVE_DISTINCT_FLOAT64X
28644 || __HAVE_DISTINCT_FLOAT128X]: Use #error.
28645 [__NO_LONG_DOUBLE_MATH && __HAVE_DISTINCT_FLOAT128]: Likewise.
28646 [__HAVE_DISTINCT_FLOAT128 && !__HAVE_GENERIC_SELECTION
28647 && __HAVE_FLOATN_NOT_TYPEDEF]: Likewise.
28648 [__HAVE_DISTINCT_FLOAT128 && __HAVE_GENERIC_SELECTION]
28649 (__MATH_TG_F32): New macro.
28650 [__HAVE_DISTINCT_FLOAT128 && __HAVE_GENERIC_SELECTION]
28651 (__MATH_TG_F64X): Likewise.
28652 [__HAVE_DISTINCT_FLOAT128 && __HAVE_GENERIC_SELECTION]
28653 (__MATH_TG): Use __MATH_TG_F32 and __MATH_TG_F64X.
28654
28655 2017-11-03 Dmitry V. Levin <ldv@altlinux.org>
28656
28657 * po/de.po: Update translations.
28658 * po/ru.po: Likewise.
28659
28660 2017-11-03 Florian Weimer <fweimer@redhat.com>
28661
28662 * manual/filesys.texi (Hard Links): Document linkat.
28663
28664 2017-11-03 Joseph Myers <joseph@codesourcery.com>
28665
28666 * math/tgmath.h [__HAVE_DISTINCT_FLOAT16
28667 || __HAVE_DISTINCT_FLOAT32 || __HAVE_DISTINCT_FLOAT64
28668 || __HAVE_DISTINCT_FLOAT32X || __HAVE_DISTINCT_FLOAT64X
28669 || __HAVE_DISTINCT_FLOAT128X]: Use #error.
28670 [__HAVE_DISTINCT_FLOAT128 && __GLIBC_USE (IEC_60559_TYPES_EXT)
28671 && __HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE
28672 && __HAVE_FLOATN_NOT_TYPEDEF] (__TGMATH_F128): Handle _Float64x
28673 the same as _Float128.
28674 [__HAVE_DISTINCT_FLOAT128 && __GLIBC_USE (IEC_60559_TYPES_EXT)
28675 && __HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE
28676 && __HAVE_FLOATN_NOT_TYPEDEF] (__TGMATH_CF128): Likewise.
28677
28678 * stdlib/stdlib.h
28679 [__HAVE_FLOAT16 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (strtof16):
28680 Declare.
28681 [__HAVE_FLOAT32 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (strtof32):
28682 Likewise.
28683 [__HAVE_FLOAT64 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (strtof64):
28684 Likewise.
28685 [__HAVE_FLOAT32X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
28686 (strtof32x): Likewise.
28687 [__HAVE_FLOAT64X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
28688 (strtof64x): Likewise.
28689 [__HAVE_FLOAT128X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
28690 (strtof128x): Likewise.
28691 [__HAVE_FLOAT16 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
28692 (strfromf16): Likewise.
28693 [__HAVE_FLOAT32 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
28694 (strfromf32): Likewise.
28695 [__HAVE_FLOAT64 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
28696 (strfromf64): Likewise.
28697 [__HAVE_FLOAT32X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
28698 (strfromf32x): Likewise.
28699 [__HAVE_FLOAT64X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
28700 (strfromf64x): Likewise.
28701 [__HAVE_FLOAT128X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
28702 (strfromf128x): Likewise.
28703 [__USE_GNU && __HAVE_FLOAT16] (strtof16_l): Likewise.
28704 [__USE_GNU && __HAVE_FLOAT32] (strtof32_l): Likewise.
28705 [__USE_GNU && __HAVE_FLOAT64] (strtof64_l): Likewise.
28706 [__USE_GNU && __HAVE_FLOAT32X] (strtof32x_l): Likewise.
28707 [__USE_GNU && __HAVE_FLOAT64X] (strtof64x_l): Likewise.
28708 [__USE_GNU && __HAVE_FLOAT128X] (strtof128x_l): Likewise.
28709
28710 2017-11-03 Richard Henderson <rth@twiddle.net>
28711
28712 * sysdeps/unix/sysv/linux/aarch64/sysconf.c: New file.
28713
28714 2017-11-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
28715
28716 * sysdeps/aarch64/dl-tlsdesc.S (_dl_tlsdesc_dynamic): Optimize.
28717
28718 2017-11-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
28719
28720 * sysdeps/arm/dl-machine.h (elf_machine_runtime_setup): Remove
28721 DT_TLSDESC_GOT initialization.
28722 * sysdeps/arm/dl-tlsdesc.S (_dl_tlsdesc_lazy_resolver): Remove.
28723 (_dl_tlsdesc_resolve_hold): Likewise.
28724 * sysdeps/aarch64/dl-tlsdesc.h (_dl_tlsdesc_lazy_resolver): Remove.
28725 (_dl_tlsdesc_resolve_hold): Likewise.
28726 * sysdeps/aarch64/tlsdesc.c (_dl_tlsdesc_lazy_resolver_fixup): Remove.
28727 (_dl_tlsdesc_resolve_hold_fixup): Likewise.
28728
28729 2017-11-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
28730
28731 * sysdeps/arm/dl-machine.h (elf_machine_rel): Remove volatile.
28732
28733 2017-11-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
28734
28735 [BZ #18572]
28736 * sysdeps/arm/dl-machine.h (elf_machine_lazy_rel): Do symbol binding
28737 non-lazily for R_ARM_TLS_DESC.
28738
28739 2017-11-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
28740
28741 [BZ #17078]
28742 * sysdeps/arm/dl-machine.h (elf_machine_rela): Remove the
28743 R_ARM_TLS_DESC case.
28744 (elf_machine_lazy_rel): Remove the prelink check.
28745
28746 2017-11-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
28747
28748 * sysdeps/aarch64/dl-machine.h (elf_machine_runtime_setup): Remove
28749 DT_TLSDESC_GOT initialization.
28750 * sysdeps/aarch64/dl-tlsdesc.S (_dl_tlsdesc_return_lazy): Remove.
28751 (_dl_tlsdesc_resolve_rela): Likewise.
28752 (_dl_tlsdesc_resolve_hold): Likewise.
28753 (_dl_tlsdesc_undefweak): Remove ldar.
28754 (_dl_tlsdesc_dynamic): Likewise.
28755 * sysdeps/aarch64/dl-tlsdesc.h (_dl_tlsdesc_return_lazy): Remove.
28756 (_dl_tlsdesc_resolve_rela): Likewise.
28757 (_dl_tlsdesc_resolve_hold): Likewise.
28758 * sysdeps/aarch64/tlsdesc.c (_dl_tlsdesc_resolve_rela_fixup): Remove.
28759 (_dl_tlsdesc_resolve_hold_fixup): Likewise.
28760 (_dl_tlsdesc_resolve_rela): Likewise.
28761 (_dl_tlsdesc_resolve_hold): Likewise.
28762
28763 2017-11-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
28764
28765 * sysdeps/aarch64/dl-machine.h (elf_machine_lazy_rel): Do symbol
28766 binding and initialization non-lazily for R_AARCH64_TLSDESC.
28767
28768 2017-11-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
28769
28770 * elf/tlsdeschtab.h (_dl_tls_resolve_early_return_p): Mark unused.
28771 (_dl_tlsdesc_wake_up_held_fixups): Likewise.
28772
28773 2017-11-02 Joseph Myers <joseph@codesourcery.com>
28774
28775 * wcsmbs/wchar.h [__HAVE_FLOAT16 && __USE_GNU] (wcstof16):
28776 Declare.
28777 [__HAVE_FLOAT32 && __USE_GNU] (wcstof32): Likewise.
28778 [__HAVE_FLOAT64 && __USE_GNU] (wcstof64): Likewise.
28779 [__HAVE_FLOAT32X && __USE_GNU] (wcstof32x): Likewise.
28780 [__HAVE_FLOAT64X && __USE_GNU] (wcstof64x): Likewise.
28781 [__HAVE_FLOAT128X && __USE_GNU] (wcstof128x): Likewise.
28782 [__HAVE_FLOAT16 && __USE_GNU] (wcstof16_l): Likewise.
28783 [__HAVE_FLOAT32 && __USE_GNU] (wcstof32_l): Likewise.
28784 [__HAVE_FLOAT64 && __USE_GNU] (wcstof64_l): Likewise.
28785 [__HAVE_FLOAT32X && __USE_GNU] (wcstof32x_l): Likewise.
28786 [__HAVE_FLOAT64X && __USE_GNU] (wcstof64x_l): Likewise.
28787 [__HAVE_FLOAT128X && __USE_GNU] (wcstof128x_l): Likewise.
28788
28789 2017-11-02 Mike FABIAN <mfabian@redhat.com>
28790
28791 [BZ #22382]
28792 * localedata/locales/tpi_PG (LC_TIME): Fix syntax error.
28793 * localedata/locales/tpi_PG: Add standard header.
28794
28795 2017-11-02 Florian Weimer <fweimer@redhat.com>
28796
28797 test-errno-linux: quotactl can fail with EPERM in containers.
28798 * sysdeps/unix/sysv/linux/test-errno-linux.c
28799 (LIST, LIST_FORWARD): New macros.
28800 (check_error_in_list): New function.
28801 (test_wrp_rv): Accept list of permitted error codes.
28802 (test_wrp_rv2): Remove.
28803 (test_wrp): Call test_wrp_rv with list of error codes.
28804 (test_wrp2): Accept list of error codes.
28805 (do_test): Adjust. Allow EPERM for quotactl.
28806
28807 2017-11-02 Florian Weimer <fweimer@redhat.com>
28808
28809 * stdio-common/bug16.c (do_test): Use array_length.
28810 * stdio-common/errlist.c (_sys_nerr): Likewise.
28811 * stdio-common/printf_fp.c (PRINTF_FP_FETCH): Likewise.
28812 * stdio-common/printf_fphex.c (__printf_fphex): Use array_end.
28813 * stdio-common/psiginfo.c (psiginfo): Use array_length.
28814 * stdio-common/test-vfprintf.c (nlocs): Remove definition.
28815 (do_test): Use array_length.
28816 * stdio-common/tst-fphex.c (do_test): Use array_end, array_length.
28817 * stdio-common/tst-long-dbl-fphex.c (do_test): Use array_length.
28818 * stdio-common/tst-printf-round.c (do_test): Likewise.
28819 * stdio-common/tst-swprintf.c (nbuf): Remove definition.
28820 (CHECK): Use array_length.
28821 * stdio-common/tstdiomisc.c (t3, F): Likewise.
28822 * stdio-common/tstscanf.c (main): Likewise.
28823 * stdio-common/vfprintf.c (process_string_arg): Likewise.
28824
28825 2017-11-02 Florian Weimer <fweimer@redhat.com>
28826
28827 Add array_length and array_end macros.
28828 * include/array_length.h: New file.
28829
28830 2017-11-02 Florian Weimer <fweimer@redhat.com>
28831
28832 [BZ #22332]
28833 * posix/tst-glob-tilde.c (do_noescape): New variable.
28834 (one_test): Process it.
28835 (do_test): Set do_noescape. Add unescaping test case.
28836
28837 2017-11-01 Joseph Myers <joseph@codesourcery.com>
28838
28839 * math/complex.h
28840 [(__HAVE_DISTINCT_FLOAT16 || (__HAVE_FLOAT16 && !_LIBC))
28841 && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Include <bits/cmathcalls.h>
28842 with appropriate macros defined and undefined.
28843 [(__HAVE_DISTINCT_FLOAT32 || (__HAVE_FLOAT32 && !_LIBC))
28844 && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Likewise.
28845 [(__HAVE_DISTINCT_FLOAT64 || (__HAVE_FLOAT64 && !_LIBC))
28846 && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Likewise.
28847 [(__HAVE_DISTINCT_FLOAT32X || (__HAVE_FLOAT32X && !_LIBC))
28848 && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Likewise.
28849 [(__HAVE_DISTINCT_FLOAT64X || (__HAVE_FLOAT64X && !_LIBC))
28850 && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Likewise.
28851 [(__HAVE_DISTINCT_FLOAT128X || (__HAVE_FLOAT128X && !_LIBC))
28852 && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Likewise.
28853
28854 * math/complex.h
28855 [(__HAVE_DISTINCT_FLOAT128 || (__HAVE_FLOAT128 && !LIBC))
28856 && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Move conditional code after
28857 that for long double. Do not condition define and undefine of
28858 _Mdouble_complex_ on [__CFLOAT128].
28859
28860 2017-11-01 H.J. Lu <hongjiu.lu@intel.com>
28861
28862 * sysdeps/i386/sysdep.h: Include <sysdeps/x86/sysdep.h> instead
28863 of <sysdeps/generic/sysdep.h>.
28864 (ALIGNARG): Removed.
28865 (ASM_SIZE_DIRECTIVE): Likewise.
28866 (ENTRY): Likewise.
28867 (END): Likewise.
28868 (ENTRY_CHK): Likewise.
28869 (END_CHK): Likewise.
28870 (syscall_error): Likewise.
28871 (mcount): Likewise.
28872 (PSEUDO_END): Likewise.
28873 (L): Likewise.
28874 (atom_text_section): Likewise.
28875 * sysdeps/x86/sysdep.h: New file.
28876 * sysdeps/x86_64/sysdep.h: Include <sysdeps/x86/sysdep.h> instead
28877 of <sysdeps/generic/sysdep.h>.
28878 (ALIGNARG): Removed.
28879 (ASM_SIZE_DIRECTIVE): Likewise.
28880 (ENTRY): Likewise.
28881 (END): Likewise.
28882 (ENTRY_CHK): Likewise.
28883 (END_CHK): Likewise.
28884 (syscall_error): Likewise.
28885 (mcount): Likewise.
28886 (PSEUDO_END): Likewise.
28887 (L): Likewise.
28888 (atom_text_section): Likewise.
28889
28890 2017-10-31 Rafał Lużyński <digitalfreak@lingonborough.com>
28891
28892 * localedata/unicode-gen/gen_unicode_ctype.py (output_head):
28893 category of LC_CTYPE set to "i18n:2012".
28894 * localedata/locales/i18n_ctype: Regenerate.
28895
28896 2017-10-31 Yury Norov <ynorov@caviumnetworks.com>
28897
28898 * sysdeps/unix/sysv/linux/sigprocmask.c: Remove useless #ifdefs.
28899 * sysdeps/unix/sysv/linux/sigtimedwait.c: Likewise.
28900 * sysdeps/unix/sysv/linux/sigwait.c: Likewise.
28901 * sysdeps/unix/sysv/linux/sigwaitinfo.c: Likewise.
28902
28903 * sysdeps/unix/sysv/linux/ia64/sigpending.c: Remove file.
28904 * sysdeps/unix/sysv/linux/s390/s390-64/sigpending.c: Likewise.
28905 * sysdeps/unix/sysv/linux/sparc/sparc64/sigpending.c: Likewise.
28906 * sysdeps/unix/sysv/linux/x86_64/sigpending.c: Likewise.
28907
28908 2017-10-31 Joseph Myers <joseph@codesourcery.com>
28909
28910 * math/complex.h
28911 [__HAVE_FLOAT16 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (CMPLXF16):
28912 New macro.
28913 [__HAVE_FLOAT32 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (CMPLXF32):
28914 Likewise.
28915 [__HAVE_FLOAT64 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (CMPLXF64):
28916 Likewise.
28917 [__HAVE_FLOAT32X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
28918 (CMPLXF32X): Likewise.
28919 [__HAVE_FLOAT64X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
28920 (CMPLXF64X): Likewise.
28921 [__HAVE_FLOAT128X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
28922 (CMPLXF128X): Likewise.
28923
28924 * math/math.h
28925 [__FLT_EVAL_METHOD__ == 0 || __FLT_EVAL_METHOD__ == 32]
28926 (__MATH_EVAL_FMT2): Define to add 0.0f.
28927
28928 2017-10-31 Alan Modra <amodra@gmail.com>
28929
28930 * sysdeps/powerpc/powerpc64/fpu/multiarch/e_expf-power8.S: Don't
28931 include sysdep.h.
28932 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceilf-power5+.S: Likewise.
28933 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceilf-ppc64.S: Likewise.
28934 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_cosf-power8.S: Likewise.
28935 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_cosf-ppc64.c: Likewise.
28936 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finite-power7.S: Likewise.
28937 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finite-power8.S: Likewise.
28938 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floor-power5+.S: Likewise.
28939 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floor-ppc64.S: Likewise.
28940 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_roundf-power5+.S: Likewise.
28941 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_roundf-ppc64.S: Likewise.
28942 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_sinf-power8.S: Likewise.
28943 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_sinf-ppc64.c: Likewise.
28944 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_truncf-power5+.S: Likewise.
28945 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_truncf-ppc64.S: Likewise.
28946 * sysdeps/powerpc/powerpc64/multiarch/memchr-power7.S: Likewise.
28947 * sysdeps/powerpc/powerpc64/multiarch/memchr-power8.S: Likewise.
28948 * sysdeps/powerpc/powerpc64/multiarch/memcmp-power4.S: Likewise.
28949 * sysdeps/powerpc/powerpc64/multiarch/memcmp-power7.S: Likewise.
28950 * sysdeps/powerpc/powerpc64/multiarch/memcmp-power8.S: Likewise.
28951 * sysdeps/powerpc/powerpc64/multiarch/memcpy-a2.S: Likewise.
28952 * sysdeps/powerpc/powerpc64/multiarch/memcpy-cell.S: Likewise.
28953 * sysdeps/powerpc/powerpc64/multiarch/memcpy-power4.S: Likewise.
28954 * sysdeps/powerpc/powerpc64/multiarch/memcpy-power6.S: Likewise.
28955 * sysdeps/powerpc/powerpc64/multiarch/memcpy-power7.S: Likewise.
28956 * sysdeps/powerpc/powerpc64/multiarch/memcpy-ppc64.S: Likewise.
28957 * sysdeps/powerpc/powerpc64/multiarch/memmove-power7.S: Likewise.
28958 * sysdeps/powerpc/powerpc64/multiarch/mempcpy-power7.S: Likewise.
28959 * sysdeps/powerpc/powerpc64/multiarch/memrchr-power7.S: Likewise.
28960 * sysdeps/powerpc/powerpc64/multiarch/memrchr-power8.S: Likewise.
28961 * sysdeps/powerpc/powerpc64/multiarch/memset-power4.S: Likewise.
28962 * sysdeps/powerpc/powerpc64/multiarch/memset-power6.S: Likewise.
28963 * sysdeps/powerpc/powerpc64/multiarch/memset-power7.S: Likewise.
28964 * sysdeps/powerpc/powerpc64/multiarch/memset-power8.S: Likewise.
28965 * sysdeps/powerpc/powerpc64/multiarch/rawmemchr-power7.S: Likewise.
28966 * sysdeps/powerpc/powerpc64/multiarch/stpcpy-power8.S: Likewise.
28967 * sysdeps/powerpc/powerpc64/multiarch/stpncpy-power7.S: Likewise.
28968 * sysdeps/powerpc/powerpc64/multiarch/stpncpy-power8.S: Likewise.
28969 * sysdeps/powerpc/powerpc64/multiarch/strcasecmp-power7.S: Likewise.
28970 * sysdeps/powerpc/powerpc64/multiarch/strcasecmp-power8.S: Likewise.
28971 * sysdeps/powerpc/powerpc64/multiarch/strcasecmp_l-power7.S: Likewise.
28972 * sysdeps/powerpc/powerpc64/multiarch/strcasestr-power8.S: Likewise.
28973 * sysdeps/powerpc/powerpc64/multiarch/strchr-power7.S: Likewise.
28974 * sysdeps/powerpc/powerpc64/multiarch/strchr-power8.S: Likewise.
28975 * sysdeps/powerpc/powerpc64/multiarch/strchr-ppc64.S: Likewise.
28976 * sysdeps/powerpc/powerpc64/multiarch/strchrnul-power7.S: Likewise.
28977 * sysdeps/powerpc/powerpc64/multiarch/strchrnul-power8.S: Likewise.
28978 * sysdeps/powerpc/powerpc64/multiarch/strcmp-power7.S: Likewise.
28979 * sysdeps/powerpc/powerpc64/multiarch/strcmp-power8.S: Likewise.
28980 * sysdeps/powerpc/powerpc64/multiarch/strcmp-power9.S: Likewise.
28981 * sysdeps/powerpc/powerpc64/multiarch/strcmp-ppc64.S: Likewise.
28982 * sysdeps/powerpc/powerpc64/multiarch/strcpy-power8.S: Likewise.
28983 * sysdeps/powerpc/powerpc64/multiarch/strcspn-power8.S: Likewise.
28984 * sysdeps/powerpc/powerpc64/multiarch/strlen-power7.S: Likewise.
28985 * sysdeps/powerpc/powerpc64/multiarch/strlen-power8.S: Likewise.
28986 * sysdeps/powerpc/powerpc64/multiarch/strlen-ppc64.S: Likewise.
28987 * sysdeps/powerpc/powerpc64/multiarch/strncase-power8.S: Likewise.
28988 * sysdeps/powerpc/powerpc64/multiarch/strncmp-power4.S: Likewise.
28989 * sysdeps/powerpc/powerpc64/multiarch/strncmp-power7.S: Likewise.
28990 * sysdeps/powerpc/powerpc64/multiarch/strncmp-power8.S: Likewise.
28991 * sysdeps/powerpc/powerpc64/multiarch/strncmp-power9.S: Likewise.
28992 * sysdeps/powerpc/powerpc64/multiarch/strncmp-ppc64.S: Likewise.
28993 * sysdeps/powerpc/powerpc64/multiarch/strncpy-power7.S: Likewise.
28994 * sysdeps/powerpc/powerpc64/multiarch/strncpy-power8.S: Likewise.
28995 * sysdeps/powerpc/powerpc64/multiarch/strnlen-power7.S: Likewise.
28996 * sysdeps/powerpc/powerpc64/multiarch/strnlen-power8.S: Likewise.
28997 * sysdeps/powerpc/powerpc64/multiarch/strrchr-power7.S: Likewise.
28998 * sysdeps/powerpc/powerpc64/multiarch/strrchr-power8.S: Likewise.
28999 * sysdeps/powerpc/powerpc64/multiarch/strspn-power8.S: Likewise.
29000 * sysdeps/powerpc/powerpc64/multiarch/strstr-power7.S: Likewise.
29001
29002 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floorf-ppc64.S: Don't
29003 include sysdep.h and math_ldbl_opt.h.
29004
29005 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceil-power5+.S: Don't
29006 include sysdep.h and math_ldbl_opt.h. Include shlib-compat.h.
29007 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceil-ppc64.S: Likewise.
29008 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysign-power6.S: Likewise.
29009 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysign-ppc64.S: Likewise.
29010 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floorf-power5+.S: Likewise.
29011 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinf-power7.S: Likewise.
29012 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinf-power8.S: Likewise.
29013 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power5.S: Likewise.
29014 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power6.S: Likewise.
29015 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power6x.S: Likewise.
29016 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power7.S: Likewise.
29017 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power8.S: Likewise.
29018 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-ppc64.S: Likewise.
29019 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint-power6x.S: Likewise.
29020 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint-power8.S: Likewise.
29021 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint-ppc64.S: Likewise.
29022 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround-power5+.S: Likewise.
29023 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround-power6x.S: Likewise.
29024 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround-power8.S: Likewise.
29025 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround-ppc64.S: Likewise.
29026 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llroundf-ppc64.S: Likewise.
29027 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_round-power5+.S: Likewise.
29028 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_round-ppc64.S: Likewise.
29029 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_trunc-power5+.S: Likewise.
29030 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_trunc-ppc64.S: Likewise.
29031
29032 2017-10-31 Alan Modra <amodra@gmail.com>
29033
29034 * sysdeps/powerpc/powerpc64/multiarch/strncase_l-power7.c: Include
29035 string/strncase_l.c, not string/strncase.c.
29036 (USE_IN_EXTENDED_LOCALE_MODEL): Don't define.
29037 (libc_hidden_def): Redefine.
29038
29039 2017-10-31 Alan Modra <amodra@gmail.com>
29040
29041 * sysdeps/powerpc/powerpc64/multiarch/strcasecmp_l-power7.S:
29042 (__STRCMP, STRCMP, __strcasecmp_l): Define.
29043 (__strcasecmp): Don't define.
29044
29045 2017-10-31 Alan Modra <amodra@gmail.com>
29046
29047 * sysdeps/powerpc/powerpc64/multiarch/strcmp-power8.S: Wrap in
29048 IS_IN (libc).
29049 * sysdeps/powerpc/powerpc64/multiarch/strcmp-power9.S: Likewise.
29050 * sysdeps/powerpc/powerpc64/multiarch/strncmp-power8.S: Likewise.
29051 * sysdeps/powerpc/powerpc64/multiarch/strncmp-power9.S: Likewise.
29052
29053 2017-10-31 Alan Modra <amodra@gmail.com>
29054
29055 * sysdeps/powerpc/powerpc64/multiarch/stpncpy-power8.S: Don't define
29056 USE_AS_STPNCPY.
29057
29058 2017-10-31 Alan Modra <amodra@gmail.com>
29059
29060 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-ppc64.S (hidden_def):
29061 Redefine only when SHARED.
29062
29063 2017-10-30 Joseph Myers <joseph@codesourcery.com>
29064
29065 * math/math.h [__HAVE_DISTINCT_FLOAT16 || (__HAVE_FLOAT16 && !_LIBC)]:
29066 Include <bits/math-finite.h> with appropriate macros defined and
29067 undefined.
29068 [__HAVE_DISTINCT_FLOAT32 || (__HAVE_FLOAT32 && !_LIBC)]: Likewise.
29069 [__HAVE_DISTINCT_FLOAT64 || (__HAVE_FLOAT64 && !_LIBC)]: Likewise.
29070 [__HAVE_DISTINCT_FLOAT32X || (__HAVE_FLOAT32X && !_LIBC)]: Likewise.
29071 [__HAVE_DISTINCT_FLOAT64X || (__HAVE_FLOAT64X && !_LIBC)]: Likewise.
29072 [__HAVE_DISTINCT_FLOAT128X || (__HAVE_FLOAT128X && !_LIBC)]: Likewise.
29073
29074 * math/math.h [!_Mfloat_] (_Mfloat_): Do not define.
29075 [!_Mlong_double_] (_Mlong_double_): Likewise.
29076 [!_Mfloat16_] (_Mfloat16_): Likewise.
29077 [!_Mfloat32_] (_Mfloat32_): Likewise.
29078 [!_Mfloat64_] (_Mfloat64_): Likewise.
29079 [!_Mfloat128_] (_Mfloat128_): Likewise.
29080 [!_Mfloat32x_] (_Mfloat32x_): Likewise.
29081 [!_Mfloat64x_] (_Mfloat64x_): Likewise.
29082 [!_Mfloat128x_] (_Mfloat128x_): Likewise.
29083 (_Mdouble_): Define without indirection through those macros.
29084 * math/complex.h [!_Mfloat_] (_Mfloat_): Do not define.
29085 [!_Mfloat128_] (_Mfloat128_): Likewise.
29086 [_Mlong_double_] (_Mlong_double_): Likewise.
29087 (_Mdouble_): Define without indirection through those macros.
29088 * math/Makefile [$(long-double-fcts) != yes] (math-CPPFLAGS): Do
29089 not add -D_Mlong_double_=double.
29090 * include/math.h [_ISOMAC] (_Mlong_double_): Do not undefine.
29091 * math/test-signgam-finite-c99.c (_Mlong_double_): Likewise.
29092
29093 2017-10-30 H.J. Lu <hongjiu.lu@intel.com>
29094
29095 * sysdeps/x86/libc-start.c: Add /* !SHARED */.
29096
29097 2017-10-30 H.J. Lu <hongjiu.lu@intel.com>
29098
29099 * sysdeps/x86/libc-start.c: Reformat.
29100
29101 2017-10-30 H.J. Lu <hongjiu.lu@intel.com>
29102
29103 [BZ #22353]
29104 * sysdeps/i386/i586/strcpy.S (STRCPY): Use conditional branches.
29105 (1): Renamed to ...
29106 (L(Src0)): This.
29107 (L(Src1)): New.
29108 (L(Src2)): Likewise.
29109 (L(1)): Renamed to ...
29110 (L(Src3)): This.
29111
29112 2017-10-30 Joseph Myers <joseph@codesourcery.com>
29113
29114 * math/math.h [__HAVE_FLOAT16 && __USE_GNU] (M_Ef16): New macro.
29115 [__HAVE_FLOAT16 && __USE_GNU] (M_LOG2Ef16): Likewise.
29116 [__HAVE_FLOAT16 && __USE_GNU] (M_LOG10Ef16): Likewise.
29117 [__HAVE_FLOAT16 && __USE_GNU] (M_LN2f16): Likewise.
29118 [__HAVE_FLOAT16 && __USE_GNU] (M_LN10f16): Likewise.
29119 [__HAVE_FLOAT16 && __USE_GNU] (M_PIf16): Likewise.
29120 [__HAVE_FLOAT16 && __USE_GNU] (M_PI_2f16): Likewise.
29121 [__HAVE_FLOAT16 && __USE_GNU] (M_PI_4f16): Likewise.
29122 [__HAVE_FLOAT16 && __USE_GNU] (M_1_PIf16): Likewise.
29123 [__HAVE_FLOAT16 && __USE_GNU] (M_2_PIf16): Likewise.
29124 [__HAVE_FLOAT16 && __USE_GNU] (M_2_SQRTPIf16): Likewise.
29125 [__HAVE_FLOAT16 && __USE_GNU] (M_SQRT2f16): Likewise.
29126 [__HAVE_FLOAT16 && __USE_GNU] (M_SQRT1_2f16): Likewise.
29127 [__HAVE_FLOAT32 && __USE_GNU] (M_Ef32): Likewise.
29128 [__HAVE_FLOAT32 && __USE_GNU] (M_LOG2Ef32): Likewise.
29129 [__HAVE_FLOAT32 && __USE_GNU] (M_LOG10Ef32): Likewise.
29130 [__HAVE_FLOAT32 && __USE_GNU] (M_LN2f32): Likewise.
29131 [__HAVE_FLOAT32 && __USE_GNU] (M_LN10f32): Likewise.
29132 [__HAVE_FLOAT32 && __USE_GNU] (M_PIf32): Likewise.
29133 [__HAVE_FLOAT32 && __USE_GNU] (M_PI_2f32): Likewise.
29134 [__HAVE_FLOAT32 && __USE_GNU] (M_PI_4f32): Likewise.
29135 [__HAVE_FLOAT32 && __USE_GNU] (M_1_PIf32): Likewise.
29136 [__HAVE_FLOAT32 && __USE_GNU] (M_2_PIf32): Likewise.
29137 [__HAVE_FLOAT32 && __USE_GNU] (M_2_SQRTPIf32): Likewise.
29138 [__HAVE_FLOAT32 && __USE_GNU] (M_SQRT2f32): Likewise.
29139 [__HAVE_FLOAT32 && __USE_GNU] (M_SQRT1_2f32): Likewise.
29140 [__HAVE_FLOAT64 && __USE_GNU] (M_Ef64): Likewise.
29141 [__HAVE_FLOAT64 && __USE_GNU] (M_LOG2Ef64): Likewise.
29142 [__HAVE_FLOAT64 && __USE_GNU] (M_LOG10Ef64): Likewise.
29143 [__HAVE_FLOAT64 && __USE_GNU] (M_LN2f64): Likewise.
29144 [__HAVE_FLOAT64 && __USE_GNU] (M_LN10f64): Likewise.
29145 [__HAVE_FLOAT64 && __USE_GNU] (M_PIf64): Likewise.
29146 [__HAVE_FLOAT64 && __USE_GNU] (M_PI_2f64): Likewise.
29147 [__HAVE_FLOAT64 && __USE_GNU] (M_PI_4f64): Likewise.
29148 [__HAVE_FLOAT64 && __USE_GNU] (M_1_PIf64): Likewise.
29149 [__HAVE_FLOAT64 && __USE_GNU] (M_2_PIf64): Likewise.
29150 [__HAVE_FLOAT64 && __USE_GNU] (M_2_SQRTPIf64): Likewise.
29151 [__HAVE_FLOAT64 && __USE_GNU] (M_SQRT2f64): Likewise.
29152 [__HAVE_FLOAT64 && __USE_GNU] (M_SQRT1_2f64): Likewise.
29153 [__HAVE_FLOAT32X && __USE_GNU] (M_Ef32x): Likewise.
29154 [__HAVE_FLOAT32X && __USE_GNU] (M_LOG2Ef32x): Likewise.
29155 [__HAVE_FLOAT32X && __USE_GNU] (M_LOG10Ef32x): Likewise.
29156 [__HAVE_FLOAT32X && __USE_GNU] (M_LN2f32x): Likewise.
29157 [__HAVE_FLOAT32X && __USE_GNU] (M_LN10f32x): Likewise.
29158 [__HAVE_FLOAT32X && __USE_GNU] (M_PIf32x): Likewise.
29159 [__HAVE_FLOAT32X && __USE_GNU] (M_PI_2f32x): Likewise.
29160 [__HAVE_FLOAT32X && __USE_GNU] (M_PI_4f32x): Likewise.
29161 [__HAVE_FLOAT32X && __USE_GNU] (M_1_PIf32x): Likewise.
29162 [__HAVE_FLOAT32X && __USE_GNU] (M_2_PIf32x): Likewise.
29163 [__HAVE_FLOAT32X && __USE_GNU] (M_2_SQRTPIf32x): Likewise.
29164 [__HAVE_FLOAT32X && __USE_GNU] (M_SQRT2f32x): Likewise.
29165 [__HAVE_FLOAT32X && __USE_GNU] (M_SQRT1_2f32x): Likewise.
29166 [__HAVE_FLOAT64X && __USE_GNU] (M_Ef64x): Likewise.
29167 [__HAVE_FLOAT64X && __USE_GNU] (M_LOG2Ef64x): Likewise.
29168 [__HAVE_FLOAT64X && __USE_GNU] (M_LOG10Ef64x): Likewise.
29169 [__HAVE_FLOAT64X && __USE_GNU] (M_LN2f64x): Likewise.
29170 [__HAVE_FLOAT64X && __USE_GNU] (M_LN10f64x): Likewise.
29171 [__HAVE_FLOAT64X && __USE_GNU] (M_PIf64x): Likewise.
29172 [__HAVE_FLOAT64X && __USE_GNU] (M_PI_2f64x): Likewise.
29173 [__HAVE_FLOAT64X && __USE_GNU] (M_PI_4f64x): Likewise.
29174 [__HAVE_FLOAT64X && __USE_GNU] (M_1_PIf64x): Likewise.
29175 [__HAVE_FLOAT64X && __USE_GNU] (M_2_PIf64x): Likewise.
29176 [__HAVE_FLOAT64X && __USE_GNU] (M_2_SQRTPIf64x): Likewise.
29177 [__HAVE_FLOAT64X && __USE_GNU] (M_SQRT2f64x): Likewise.
29178 [__HAVE_FLOAT64X && __USE_GNU] (M_SQRT1_2f64x): Likewise.
29179 [__HAVE_FLOAT128X && __USE_GNU]: Use #error.
29180
29181 2017-10-30 Florian Weimer <fweimer@redhat.com>
29182
29183 * elf/ldconfig.c (search_dir): Assume that _DIRENT_HAVE_D_TYPE is
29184 always defined.
29185 * io/tst-mkdirat.c (do_test): Likewise.
29186 * io/tst-mkfifoat.c (do_test): Likewise.
29187 * io/tst-mknodat.c (do_test): Likewise.
29188 * locale/programs/charmap-dir.c (charmap_readdir): Likewise.
29189 * locale/programs/locale.c (select_dirs): Likewise.
29190 * locale/programs/locarchive.c (add_locales_to_archive): Likewise.
29191 * posix/bug-glob2.c (my_readdir): Likewise.
29192 * posix/tst-dir.c (main): Likewise.
29193 * posix/tst-glob_lstat_compat.c (my_readdir): Likewise.
29194 * posix/tst-gnuglob-skeleton.c (my_readdir): Likewise.
29195
29196 2017-10-30 Florian Weimer <fweimer@redhat.com>
29197
29198 * string/strings.h (ffsl, ffsll): Declare under __USE_MISC, not
29199 just __USE_GNU.
29200
29201 2017-10-30 Florian Weimer <fweimer@redhat.com>
29202
29203 * posix/tst-gnuglob-skeleton.c: Renamed from tst-gnuglob.c.
29204 Convert to support/test-driver.c.
29205 (GLOB_FUNC, GLOB_TYPE, GLOBFREE_FUNC, DIRENT_STRUCT, STAT_STRUCT):
29206 New macro parameters.
29207 (PRINTF): Remove macro. Use test_verbose conditionals instead.
29208 * posix/tst-gnuglob.c: New file.
29209 * posix/tst-gnuglob64.c: Likewise.
29210 * posix/Makefile (tests): Add tst-gnuglob64.
29211
29212 2017-10-30 Michal Ostrowski <ostrowski.michal@gmail.com>
29213
29214 [BZ #19485]
29215 * localedata/locales/csb_PL (LC_TIME): Fix “abmon” for March
29216 and use a better translation for March in “mon”.
29217 * localedata/locales/csb_PL: Use more ASCII to improve the
29218 readability of the source.
29219
29220 2017-10-30 Mike FABIAN <mfabian@redhat.com>
29221
29222 [BZ #13953]
29223 * localedata/locales/km_KH: Use ASCII as much
29224 as possible for better readability of the source and
29225 remove useless comments.
29226 * localedata/locales/km_KH (LC_TIME): Remove era stuff, it
29227 was commented out and apparently wrong anyway because it was
29228 using Lao characters. If Buddhist era should be used
29229 for km_KH, a native speaker should write the correct formaat
29230 for Khmer.
29231 * localedata/locales/km_KH (LC_TIME): Add first_weekday 1
29232 (According to CLDR, the first weekday for Cambodia is Sunday).
29233 * localedata/locales/km_KH (LC_NAME): Remove name_mr and name_mrs
29234 (These were using Lao characters which must be wrong. If we get
29235 the correct data from a native speaker, we could add it back, until
29236 then it is better not to have name_mr and name_mrs at all than
29237 having it wrong).
29238
29239 2017-10-27 Rafał Lużyński <digitalfreak@lingonborough.com>
29240
29241 * locale/loadlocale.c: Correct size of
29242 _nl_value_type_LC_<category> arrays.
29243
29244 2017-10-27 Joseph Myers <joseph@codesourcery.com>
29245
29246 * math/math.h [__HAVE_DISTINCT_FLOAT16 || (__HAVE_FLOAT16 && !_LIBC)]:
29247 Include <bits/mathcalls-helper-functions.h> and <bits/mathcalls.h>
29248 with appropriate macros defined and undefined.
29249 [__HAVE_DISTINCT_FLOAT32 || (__HAVE_FLOAT32 && !_LIBC)]: Likewise.
29250 [__HAVE_DISTINCT_FLOAT64 || (__HAVE_FLOAT64 && !_LIBC)]: Likewise.
29251 [__HAVE_DISTINCT_FLOAT32X || (__HAVE_FLOAT32X && !_LIBC)]: Likewise.
29252 [__HAVE_DISTINCT_FLOAT64X || (__HAVE_FLOAT64X && !_LIBC)]: Likewise.
29253 [__HAVE_DISTINCT_FLOAT128X || (__HAVE_FLOAT128X && !_LIBC)]: Likewise.
29254
29255 2017-10-27 H.J. Lu <hongjiu.lu@intel.com>
29256
29257 * sysdeps/i386/fpu/libm-test-ulps: Regenerated for GCC 7 with
29258 "-O2 -march=i586".
29259
29260 2017-10-27 Mike FABIAN <mfabian@redhat.com>
29261
29262 * localedata/locales/tt_RU (LC_MESSAGES): Start yesstr and nostr
29263 with lowercase letters to make it agree with CLDR.
29264
29265 2017-10-27 Mike FABIAN <mfabian@redhat.com>
29266
29267 [BZ #15260]
29268 * localedata/locales/doi_IN (LC_MESSAGES): Match only for the
29269 first letters of yesstr and nostr in yesexpr and noexpr,
29270 not for the full words.
29271 * localedata/locales/hne_IN (LC_MESSAGES): Likewise.
29272 * localedata/locales/kok_IN (LC_MESSAGES): Likewise.
29273 * localedata/locales/mr_IN (LC_MESSAGES): Likewise.
29274 * localedata/locales/sat_IN (LC_MESSAGES): Likewise.
29275 * localedata/locales/km_KH (LC_MESSAGES): Match also for the
29276 first letters of yesstr and nostr in yesexpr and noexpr,
29277 until now only English was matched in yesexpr and noexpr.
29278 * localedata/locales/tl_PH (LC_MESSAGES): Use “copy "fil_PH"”
29279 instead of “copy "en_US"”. CLDR has yesstr and nostr data for
29280 fil but not for tl. As tl and fil are very similar, using fil
29281 is probably better than using English.
29282
29283 2017-10-27 Thierry Vignaud <thierry.vignaud@gmail.com>
29284
29285 [BZ #21706]
29286 * localedata/locales/br_FR (LC_MESSAGES): Use all lowercase
29287 in yesstr and nostr.
29288
29289 2017-10-26 Joseph Myers <joseph@codesourcery.com>
29290
29291 * math/math.h [__HAVE_FLOAT16 && __GLIBC_USE
29292 (IEC_60559_TYPES_EXT)] (SNANF16): New macro.
29293 [__HAVE_FLOAT32 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (SNANF32):
29294 Likewise.
29295 [__HAVE_FLOAT64 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (SNANF64):
29296 Likewise.
29297 [__HAVE_FLOAT32X && __GLIBC_USE (IEC_60559_TYPES_EXT)] (SNANF32X):
29298 Likewise.
29299 [__HAVE_FLOAT64X && __GLIBC_USE (IEC_60559_TYPES_EXT)] (SNANF64X):
29300 Likewise.
29301 [__HAVE_FLOAT128X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
29302 (SNANF128X): Likewise.
29303
29304 * math/math.h [__HAVE_FLOAT16 && __GLIBC_USE
29305 (IEC_60559_TYPES_EXT)] (HUGE_VAL_F16): New macro.
29306 [__HAVE_FLOAT32 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
29307 (HUGE_VAL_F32): Likewise.
29308 [__HAVE_FLOAT64 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
29309 (HUGE_VAL_F64): Likewise.
29310 [__HAVE_FLOAT32X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
29311 (HUGE_VAL_F32X): Likewise.
29312 [__HAVE_FLOAT64X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
29313 (HUGE_VAL_F64X): Likewise.
29314 [__HAVE_FLOAT128X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
29315 (HUGE_VAL_F128X): Likewise.
29316
29317 2017-10-26 Thierry Vignaud <thierry.vignaud@gmail.com>
29318
29319 * localedata/locales/br_FR (LC_IDENTIFICATON): Add
29320 Thierry Vignaud <thierry.vignaud@gmail.com> as the contact
29321 for the br_FR locale.
29322
29323 2017-10-26 Thierry Vignaud <thierry.vignaud@gmail.com>
29324
29325 [BZ #21706]
29326 * localedata/locales/br_FR (LC_MESSAGES): Fix nostr.
29327
29328 2017-10-25 Carlos O'Donell <carlos@redhat.com>
29329
29330 * locale/programs/record-status.h: Define globals, and function
29331 prototypes. Move function bodies...
29332 * locale/programs/record-status.c: ... to here. New file.
29333 * iconv/Makefile (iconv_prog-modules): Add record-status.
29334 * locale/Makefile (lib-modules): Likewise.
29335 * iconv/iconv_prog.c: Remove verbose.
29336 * iconv/iconv_prog.h: Include record-status.h (defines verbose).
29337 * locale/programs/charmap.c (charmap_read): If warn_ascii is true then
29338 record a warning about ASCII compatibility.
29339 * locale/programs/ld-monetary.c (monetary_finish): If
29340 warn_int_curr_symbol is true then record a warning about the symbol
29341 not being in our ISO 4217 list.
29342 * locale/programs/locale.c: Include record-status.h. Remove verbose.
29343 * locale/programs/localedef.c: Include ctype.h. Remove delcaration of
29344 verbose, recorded_warning_count, recorded_error_count, and be_quiet.
29345 (OPT_NO_WARN): Define.
29346 (OPT_WARN): Define.
29347 (options): Add entry for --no-warnings, and --warnings.
29348 (set_warnings): New function to enable/disable warnings.
29349 (parse_opt): Call set_warnings for OPT_NO_WARN and OPT_WARN.
29350 * locale/programs/localedef.h: Remove warn_int_curr_symbol.
29351 * localedata/gen-locale.sh: Default flags to `--quiet -c'.
29352 Add `--no-warnings=ascii' to locales using SHIFT_JIS or SHIFT_JIXX0213.
29353 Pass flags to generate_locale.
29354 (generate_locale): Accept new flag argument and pass it to localedef
29355 invocation.
29356 * localedata/Makefile (INSTALL-SUPPORTED-LOCALES): Use
29357 --no-warnings=ascii for SHIFT_JIS and SHIFT_JISX0213 charmaps.
29358
29359 * localedata/Makefile (test-input-data): Use full file name.
29360 * localedata/da_DK.in: Rename to...
29361 * localedata/da_DK.ISO-8859-1.in: ...this.
29362 * localedata/de_DE.in: Rename to...
29363 * localedata/de_DE.ISO-8859-1.in: ...this.
29364 * localedata/en_US.in: Rename to...
29365 * localedata/en_US.ISO-8859-1.in: ...this.
29366 * localedata/fr_FR.in: Rename to...
29367 * localedata/fr_FR.UTF-8.in: ... this.
29368 * localedata/hr_HR.in: Rename to...
29369 * localedata/hr_HR.ISO-8859-2.in: ...this.
29370 * localedata/hu_HU.in: Rename to...
29371 * localedata/hu_HU.UTF-8.in: ...this.
29372 * localedata/si_LK.in: Rename to...
29373 * localedata/si_LK.UTF-8.in: ...this.
29374 * localedata/sv_SE.in: Rename to...
29375 * localedata/sv_SE.ISO-8859-1.in: ...this.
29376 * localedata/tr_TR.in: Rename to...
29377 * localedata/tr_TR.UTF-8.in: ...this.
29378 * localedata/uk_UA.in: Rename to...
29379 * localedata/uk_UA.UTF-8.in: ...this.
29380 * localedata/sort-test.sh: Test file is locale name with the
29381 suffix.
29382
29383 * localedata/unicode-gen/Makefile (check_i18n): Rename to
29384 check_i18n_ctype. Depend on i18n_ctype-report. Check i18n_ctype-report
29385 file.
29386 * localedata/locales/i18n_ctype: Regenerate.
29387 * localedata/locales/tr_TR: Likewise.
29388 * localedata/locales/translit_circle: Likewise.
29389 * localedata/locales/translit_cjk_compat: Likewise.
29390 * localedata/locales/translit_combining: Likewise.
29391 * localedata/locales/translit_compat: Likewise.
29392 * localedata/locales/translit_font: Likewise.
29393 * localedata/locales/translit_fraction: Likewise.
29394
29395 2017-10-25 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
29396
29397 * sysdeps/powerpc/powerpc64/power7/memcpy.S: Replace
29398 lxvd2x/stxvd2x with lvx/stvx.
29399 * sysdeps/powerpc/powerpc64/power7/memmove.S: Likewise.
29400
29401 2017-10-25 H.J. Lu <hongjiu.lu@intel.com>
29402
29403 * include/alloc_buffer.h: Replace "if if " with "if " in
29404 comments.
29405 * sysdeps/mips/memcpy.S: Likkewise.
29406 * sysdeps/mips/memset.S: Likewise.
29407 * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf16_core_avx512.S:
29408 Likewise.
29409 * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf4_core_sse4.S:
29410 Likewise.
29411 * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf8_core_avx2.S:
29412 Likewise.
29413
29414 2017-10-25 Mike FABIAN <mfabian@redhat.com>
29415
29416 [BZ #15261]
29417 * localedata/locales/cmn_TW (LC_MESSAGES): Add fullwidth yYnN to
29418 yesexpr and noexpr.
29419 * localedata/locales/hak_TW (LC_MESSAGES): Likewise.
29420 * localedata/locales/ko_KR (LC_MESSAGES): Likewise.
29421 * localedata/locales/lzh_TW (LC_MESSAGES): Likewise.
29422 * localedata/locales/nan_TW (LC_MESSAGES): Likewise.
29423 * localedata/locales/zh_CN (LC_MESSAGES): Likewise.
29424 * localedata/locales/zh_HK (LC_MESSAGES): Likewise.
29425 * localedata/locales/zh_TW (LC_MESSAGES): Likewise.
29426
29427 2017-10-25 Mike FABIAN <mfabian@redhat.com>
29428
29429 * localedata/locales/am_ET (LC_MESSAGES): Sync with CLDR.
29430 * localedata/locales/az_AZ (LC_MESSAGES): Likewise.
29431 * localedata/locales/el_GR (LC_MESSAGES): Likewise.
29432 * localedata/locales/ha_NG (LC_MESSAGES): Likewise.
29433 * localedata/locales/ln_CD (LC_MESSAGES): Likewise.
29434 * localedata/locales/mfe_MU (LC_MESSAGES): Likewise.
29435 * localedata/locales/ml_IN (LC_MESSAGES): Likewise.
29436 * localedata/locales/mt_MT (LC_MESSAGES): Likewise.
29437 * localedata/locales/os_RU (LC_MESSAGES): Likewise.
29438 * localedata/locales/tg_TJ (LC_MESSAGES): Likewise.
29439 * localedata/locales/tt_RU (LC_MESSAGES): Likewise.
29440 * localedata/locales/wo_SN (LC_MESSAGES): Likewise.
29441
29442 2017-10-25 Mike FABIAN <mfabian@redhat.com>
29443
29444 * localedata/locales/aa_ET (LC_MESSAGES): Use ASCII as much
29445 as possible for better readability of the source.
29446 * localedata/locales/af_ZA (LC_MESSAGES): Likewise.
29447 * localedata/locales/ak_GH (LC_MESSAGES): Likewise.
29448 * localedata/locales/am_ET (LC_MESSAGES): Likewise.
29449 * localedata/locales/anp_IN (LC_MESSAGES): Likewise.
29450 * localedata/locales/ar_EG (LC_MESSAGES): Likewise.
29451 * localedata/locales/as_IN (LC_MESSAGES): Likewise.
29452 * localedata/locales/ast_ES (LC_MESSAGES): Likewise.
29453 * localedata/locales/ayc_PE (LC_MESSAGES): Likewise.
29454 * localedata/locales/az_AZ (LC_MESSAGES): Likewise.
29455 * localedata/locales/az_IR (LC_MESSAGES): Likewise.
29456 * localedata/locales/be_BY (LC_MESSAGES): Likewise.
29457 * localedata/locales/be_BY@latin (LC_MESSAGES): Likewise.
29458 * localedata/locales/bem_ZM (LC_MESSAGES): Likewise.
29459 * localedata/locales/ber_MA (LC_MESSAGES): Likewise.
29460 * localedata/locales/bg_BG (LC_MESSAGES): Likewise.
29461 * localedata/locales/bhb_IN (LC_MESSAGES): Likewise.
29462 * localedata/locales/bi_VU (LC_MESSAGES): Likewise.
29463 * localedata/locales/bo_CN (LC_MESSAGES): Likewise.
29464 * localedata/locales/br_FR (LC_MESSAGES): Likewise.
29465 * localedata/locales/bs_BA (LC_MESSAGES): Likewise.
29466 * localedata/locales/ca_ES (LC_MESSAGES): Likewise.
29467 * localedata/locales/ce_RU (LC_MESSAGES): Likewise.
29468 * localedata/locales/crh_UA (LC_MESSAGES): Likewise.
29469 * localedata/locales/cs_CZ (LC_MESSAGES): Likewise.
29470 * localedata/locales/csb_PL (LC_MESSAGES): Likewise.
29471 * localedata/locales/cv_RU (LC_MESSAGES): Likewise.
29472 * localedata/locales/cy_GB (LC_MESSAGES): Likewise.
29473 * localedata/locales/da_DK (LC_MESSAGES): Likewise.
29474 * localedata/locales/de_DE (LC_MESSAGES): Likewise.
29475 * localedata/locales/dv_MV (LC_MESSAGES): Likewise.
29476 * localedata/locales/dz_BT (LC_MESSAGES): Likewise.
29477 * localedata/locales/el_GR (LC_MESSAGES): Likewise.
29478 * localedata/locales/en_CA (LC_MESSAGES): Likewise.
29479 * localedata/locales/en_US (LC_MESSAGES): Likewise.
29480 * localedata/locales/es_ES (LC_MESSAGES): Likewise.
29481 * localedata/locales/et_EE (LC_MESSAGES): Likewise.
29482 * localedata/locales/eu_ES (LC_MESSAGES): Likewise.
29483 * localedata/locales/fa_IR (LC_MESSAGES): Likewise.
29484 * localedata/locales/ff_SN (LC_MESSAGES): Likewise.
29485 * localedata/locales/fi_FI (LC_MESSAGES): Likewise.
29486 * localedata/locales/fil_PH (LC_MESSAGES): Likewise.
29487 * localedata/locales/fo_FO (LC_MESSAGES): Likewise.
29488 * localedata/locales/fr_BE (LC_MESSAGES): Likewise.
29489 * localedata/locales/fr_CH (LC_MESSAGES): Likewise.
29490 * localedata/locales/fr_FR (LC_MESSAGES): Likewise.
29491 * localedata/locales/fr_LU (LC_MESSAGES): Likewise.
29492 * localedata/locales/fur_IT (LC_MESSAGES): Likewise.
29493 * localedata/locales/fy_DE (LC_MESSAGES): Likewise.
29494 * localedata/locales/ga_IE (LC_MESSAGES): Likewise.
29495 * localedata/locales/gd_GB (LC_MESSAGES): Likewise.
29496 * localedata/locales/gl_ES (LC_MESSAGES): Likewise.
29497 * localedata/locales/gu_IN (LC_MESSAGES): Likewise.
29498 * localedata/locales/gv_GB (LC_MESSAGES): Likewise.
29499 * localedata/locales/ha_NG (LC_MESSAGES): Likewise.
29500 * localedata/locales/hak_TW (LC_MESSAGES): Likewise.
29501 * localedata/locales/he_IL (LC_MESSAGES): Likewise.
29502 * localedata/locales/hif_FJ (LC_MESSAGES): Likewise.
29503 * localedata/locales/hne_IN (LC_MESSAGES): Likewise.
29504 * localedata/locales/hr_HR (LC_MESSAGES): Likewise.
29505 * localedata/locales/hsb_DE (LC_MESSAGES): Likewise.
29506 * localedata/locales/ht_HT (LC_MESSAGES): Likewise.
29507 * localedata/locales/hu_HU (LC_MESSAGES): Likewise.
29508 * localedata/locales/hy_AM (LC_MESSAGES): Likewise.
29509 * localedata/locales/ia_FR (LC_MESSAGES): Likewise.
29510 * localedata/locales/id_ID (LC_MESSAGES): Likewise.
29511 * localedata/locales/ig_NG (LC_MESSAGES): Likewise.
29512 * localedata/locales/ik_CA (LC_MESSAGES): Likewise.
29513 * localedata/locales/is_IS (LC_MESSAGES): Likewise.
29514 * localedata/locales/it_CH (LC_MESSAGES): Likewise.
29515 * localedata/locales/it_IT (LC_MESSAGES): Likewise.
29516 * localedata/locales/iu_CA (LC_MESSAGES): Likewise.
29517 * localedata/locales/ja_JP (LC_MESSAGES): Likewise.
29518 * localedata/locales/kk_KZ (LC_MESSAGES): Likewise.
29519 * localedata/locales/kl_GL (LC_MESSAGES): Likewise.
29520 * localedata/locales/ko_KR (LC_MESSAGES): Likewise.
29521 * localedata/locales/ks_IN (LC_MESSAGES): Likewise.
29522 * localedata/locales/ku_TR (LC_MESSAGES): Likewise.
29523 * localedata/locales/kw_GB (LC_MESSAGES): Likewise.
29524 * localedata/locales/ky_KG (LC_MESSAGES): Likewise.
29525 * localedata/locales/lb_LU (LC_MESSAGES): Likewise.
29526 * localedata/locales/lg_UG (LC_MESSAGES): Likewise.
29527 * localedata/locales/li_NL (LC_MESSAGES): Likewise.
29528 * localedata/locales/lij_IT (LC_MESSAGES): Likewise.
29529 * localedata/locales/ln_CD (LC_MESSAGES): Likewise.
29530 * localedata/locales/lo_LA (LC_MESSAGES): Likewise.
29531 * localedata/locales/lt_LT (LC_MESSAGES): Likewise.
29532 * localedata/locales/lv_LV (LC_MESSAGES): Likewise.
29533 * localedata/locales/lzh_TW (LC_MESSAGES): Likewise.
29534 * localedata/locales/mg_MG (LC_MESSAGES): Likewise.
29535 * localedata/locales/mhr_RU (LC_MESSAGES): Likewise.
29536 * localedata/locales/mi_NZ (LC_MESSAGES): Likewise.
29537 * localedata/locales/mk_MK (LC_MESSAGES): Likewise.
29538 * localedata/locales/ml_IN (LC_MESSAGES): Likewise.
29539 * localedata/locales/mn_MN (LC_MESSAGES): Likewise.
29540 * localedata/locales/ms_MY (LC_MESSAGES): Likewise.
29541 * localedata/locales/mt_MT (LC_MESSAGES): Likewise.
29542 * localedata/locales/my_MM (LC_MESSAGES): Likewise.
29543 * localedata/locales/nan_TW (LC_MESSAGES): Likewise.
29544 * localedata/locales/nan_TW@latin (LC_MESSAGES): Likewise.
29545 * localedata/locales/nb_NO (LC_MESSAGES): Likewise.
29546 * localedata/locales/nds_DE (LC_MESSAGES): Likewise.
29547 * localedata/locales/nds_NL (LC_MESSAGES): Likewise.
29548 * localedata/locales/ne_NP (LC_MESSAGES): Likewise.
29549 * localedata/locales/nhn_MX (LC_MESSAGES): Likewise.
29550 * localedata/locales/niu_NU (LC_MESSAGES): Likewise.
29551 * localedata/locales/nl_NL (LC_MESSAGES): Likewise.
29552 * localedata/locales/nn_NO (LC_MESSAGES): Likewise.
29553 * localedata/locales/nr_ZA (LC_MESSAGES): Likewise.
29554 * localedata/locales/nso_ZA (LC_MESSAGES): Likewise.
29555 * localedata/locales/oc_FR (LC_MESSAGES): Likewise.
29556 * localedata/locales/om_ET (LC_MESSAGES): Likewise.
29557 * localedata/locales/or_IN (LC_MESSAGES): Likewise.
29558 * localedata/locales/os_RU (LC_MESSAGES): Likewise.
29559 * localedata/locales/pa_IN (LC_MESSAGES): Likewise.
29560 * localedata/locales/pa_PK (LC_MESSAGES): Likewise.
29561 * localedata/locales/pap_AW (LC_MESSAGES): Likewise.
29562 * localedata/locales/pap_CW (LC_MESSAGES): Likewise.
29563 * localedata/locales/pl_PL (LC_MESSAGES): Likewise.
29564 * localedata/locales/ps_AF (LC_MESSAGES): Likewise.
29565 * localedata/locales/pt_BR (LC_MESSAGES): Likewise.
29566 * localedata/locales/quz_PE (LC_MESSAGES): Likewise.
29567 * localedata/locales/raj_IN (LC_MESSAGES): Likewise.
29568 * localedata/locales/ro_RO (LC_MESSAGES): Likewise.
29569 * localedata/locales/ru_RU (LC_MESSAGES): Likewise.
29570 * localedata/locales/ru_UA (LC_MESSAGES): Likewise.
29571 * localedata/locales/rw_RW (LC_MESSAGES): Likewise.
29572 * localedata/locales/sa_IN (LC_MESSAGES): Likewise.
29573 * localedata/locales/sc_IT (LC_MESSAGES): Likewise.
29574 * localedata/locales/sd_IN@devanagari (LC_MESSAGES): Likewise.
29575 * localedata/locales/se_NO (LC_MESSAGES): Likewise.
29576 * localedata/locales/sgs_LT (LC_MESSAGES): Likewise.
29577 * localedata/locales/si_LK (LC_MESSAGES): Likewise.
29578 * localedata/locales/sk_SK (LC_MESSAGES): Likewise.
29579 * localedata/locales/sl_SI (LC_MESSAGES): Likewise.
29580 * localedata/locales/sm_WS (LC_MESSAGES): Likewise.
29581 * localedata/locales/so_DJ (LC_MESSAGES): Likewise.
29582 * localedata/locales/sq_AL (LC_MESSAGES): Likewise.
29583 * localedata/locales/sr_RS (LC_MESSAGES): Likewise.
29584 * localedata/locales/sr_RS@latin (LC_MESSAGES): Likewise.
29585 * localedata/locales/ss_ZA (LC_MESSAGES): Likewise.
29586 * localedata/locales/st_ZA (LC_MESSAGES): Likewise.
29587 * localedata/locales/sv_SE (LC_MESSAGES): Likewise.
29588 * localedata/locales/sw_KE (LC_MESSAGES): Likewise.
29589 * localedata/locales/szl_PL (LC_MESSAGES): Likewise.
29590 * localedata/locales/tcy_IN (LC_MESSAGES): Likewise.
29591 * localedata/locales/tg_TJ (LC_MESSAGES): Likewise.
29592 * localedata/locales/th_TH (LC_MESSAGES): Likewise.
29593 * localedata/locales/the_NP (LC_MESSAGES): Likewise.
29594 * localedata/locales/ti_ER (LC_MESSAGES): Likewise.
29595 * localedata/locales/tk_TM (LC_MESSAGES): Likewise.
29596 * localedata/locales/tn_ZA (LC_MESSAGES): Likewise.
29597 * localedata/locales/to_TO (LC_MESSAGES): Likewise.
29598 * localedata/locales/tr_TR (LC_MESSAGES): Likewise.
29599 * localedata/locales/ts_ZA (LC_MESSAGES): Likewise.
29600 * localedata/locales/tt_RU (LC_MESSAGES): Likewise.
29601 * localedata/locales/tt_RU@iqtelif (LC_MESSAGES): Likewise.
29602 * localedata/locales/uk_UA (LC_MESSAGES): Likewise.
29603 * localedata/locales/unm_US (LC_MESSAGES): Likewise.
29604 * localedata/locales/ur_IN (LC_MESSAGES): Likewise.
29605 * localedata/locales/ur_PK (LC_MESSAGES): Likewise.
29606 * localedata/locales/uz_UZ (LC_MESSAGES): Likewise.
29607 * localedata/locales/uz_UZ@cyrillic (LC_MESSAGES): Likewise.
29608 * localedata/locales/ve_ZA (LC_MESSAGES): Likewise.
29609 * localedata/locales/vi_VN (LC_MESSAGES): Likewise.
29610 * localedata/locales/wa_BE (LC_MESSAGES): Likewise.
29611 * localedata/locales/wo_SN (LC_MESSAGES): Likewise.
29612 * localedata/locales/xh_ZA (LC_MESSAGES): Likewise.
29613 * localedata/locales/yi_US (LC_MESSAGES): Likewise.
29614 * localedata/locales/yo_NG (LC_MESSAGES): Likewise.
29615 * localedata/locales/yue_HK (LC_MESSAGES): Likewise.
29616 * localedata/locales/zh_CN (LC_MESSAGES): Likewise.
29617 * localedata/locales/zh_HK (LC_MESSAGES): Likewise.
29618 * localedata/locales/zh_TW (LC_MESSAGES): Likewise.
29619 * localedata/locales/zu_ZA (LC_MESSAGES): Likewise.
29620
29621 2017-10-25 Mike FABIAN <mfabian@redhat.com>
29622
29623 * localedata/locales/brx_IN (LC_MESSAGES): Fix yesexpr and noexpr
29624 (Use first letters of yesstr and nostr correctly instead of using
29625 full words).
29626
29627 2017-10-25 Mike FABIAN <mfabian@redhat.com>
29628
29629 * localedata/locales/ta_IN (LC_MESSAGES): Fix yesexpr and noexpr
29630 (Use first letters of yesstr and nostr correctly).
29631
29632 2017-10-25 Mike FABIAN <mfabian@redhat.com>
29633
29634 * localedata/locales/hi_IN (LC_MESSAGES): In yesexpr and noexpr,
29635 also check for the first characters of yesstr and nostr.
29636 * localedata/locales/kn_IN (LC_MESSAGES): Likewise.
29637 * localedata/locales/ks_IN@devanagari (LC_MESSAGES): Likewise.
29638
29639 2017-10-25 Mike FABIAN <mfabian@redhat.com>
29640
29641 * localedata/locales/cmn_TW (LC_MESSAGES): In yesexpr and noexpr,
29642 also check for Chinese characters.
29643
29644 2017-10-25 Mike FABIAN <mfabian@redhat.com>
29645
29646 * localedata/locales/chr_US (LC_MESSAGES): In yesexpr and noexpr,
29647 match also for the contents of yesstr and nostr. As the first letter
29648 of yesstr and nostr is equal, checking only for the first letter
29649 is not enough.
29650
29651 2017-10-25 Mike FABIAN <mfabian@redhat.com>
29652
29653 * localedata/locales/ber_DZ (LC_MESSAGES): Use copy "kab_DZ",
29654 it is the same according to Belkacem Mohammed <belkacem77@gmail.com>.
29655
29656 2017-10-25 Mike FABIAN <mfabian@redhat.com>
29657
29658 * localedata/locales/kab_DZ (LC_IDENTIFICATION): Add e-mail
29659 of main contributor.
29660
29661 2017-10-25 Mike FABIAN <mfabian@redhat.com>
29662
29663 * localedata/locales/zh_SG (LC_MESSAGES): Use copy "zh_CN"
29664 instead of using English.
29665
29666 2017-10-25 Mike FABIAN <mfabian@redhat.com>
29667
29668 * localedata/locales/ug_CN (LC_MESSAGES): Fix noexpr and yesexpr
29669 by including the first letters of nostr and yesexpr in the regexp.
29670 Also make it more readable by using ASCII where possible.
29671
29672 2017-10-25 Mike FABIAN <mfabian@redhat.com>
29673
29674 * localedata/locales/te_IN (LC_MESSAGES): Fix noexpr by including
29675 the first letter of nostr in the regexp. It agrees with CLDR now.
29676 Also make it more readable by using ASCII where possible.
29677
29678 2017-10-24 Mike FABIAN <mfabian@redhat.com>
29679
29680 * localedata/locales/km_KH (LC_MESSAGES): Fix yestr and nostr.
29681 The yesstr and nostr apparently came from CLDR. And CLDR has a bug there:
29682 these strings contain a U+17D6 (which somewhat looks like a colon)
29683 instead of a real colon to separate the full words for “yes”
29684 and “no” from the single letter responses.
29685
29686 2017-10-24 Mike FABIAN <mfabian@redhat.com>
29687
29688 * localedata/locales/ka_GE (LC_MESSAGES): Fix yesexp to make
29689 it agree with CLDR (include the first letter of yesstr).
29690 Also make it more readable by using ASCII where possible.
29691
29692 2017-10-24 Mike FABIAN <mfabian@redhat.com>
29693
29694 * localedata/locales/mr_IN (LC_MESSAGES): Fix yesstr and nostr
29695 and improve yesexpr and noexpr. The yesstr and nostr apparently
29696 came from CLDR. And CLDR has a bug there: these strings contain
29697 a U+0903 (which looks like a colon) instead of a real colon
29698 to separate the full words for “yes” and “no” from the single
29699 letter responses.
29700
29701 2017-10-24 Mike FABIAN <mfabian@redhat.com>
29702
29703 * localedata/locales/bn_BD (LC_MESSAGES): Use only the first
29704 letters of the full yesstr and nostr in yesexpr and noexpr.
29705
29706 2017-10-24 Mike FABIAN <mfabian@redhat.com>
29707
29708 * localedata/locales/an_ES (LC_MESSAGES): Add yesstr and nostr.
29709 * localedata/locales/an_ES (LC_ADDRESS): Add lang_term and lang_lib.
29710 * localedata/locales/an_ES: Make source more readable by using ASCII
29711 where possible.
29712
29713 2017-10-24 Mike FABIAN <mfabian@redhat.com>
29714
29715 [BZ #20952]
29716 * localedata/locales/yuw_PG: New file.
29717 * localedata/SUPPORTED: Add yuw_PG/UTF-8.
29718 * locale/iso-639.def: Add Yau (Uruwa).
29719
29720 2017-10-23 Wilco Dijkstra <wdijkstr@arm.com>
29721
29722 * malloc/malloc.c (_int_malloc): Add SINGLE_THREAD_P path.
29723
29724 2017-10-23 Wilco Dijkstra <wdijkstr@arm.com>
29725
29726 * malloc/malloc.c (__libc_malloc): Add SINGLE_THREAD_P path.
29727 (__libc_realloc): Likewise.
29728 (_mid_memalign): Likewise.
29729 (__libc_calloc): Likewise.
29730
29731 2017-10-23 Mike FABIAN <mfabian@redhat.com>
29732
29733 * localedata/locales/tpi_PG (LC_MESSAGES): Fix yesexpr and noexpr
29734 by adding the generic +1 and -0 as in all other locales.
29735 * localedata/locales/tpi_PG (LC_TIME): Fix some typos in the month and
29736 day names and make it more readable by using ASCII where possible.
29737
29738 2017-10-24 Joseph Myers <joseph@codesourcery.com>
29739
29740 * sysdeps/x86/fpu/fix-fp-int-compare-invalid.h
29741 (FIX_COMPARE_INVALID): Define to 0 if [__GNUC_PREREQ (8, 0)].
29742
29743 2017-10-23 Adhemerval Zanella <adhemerval.zanella@linaro.org>
29744
29745 * sysdeps/unix/sysv/linux/spawni.c (__spawnix): Use 0 instead of
29746 WNOHANG in waitpid call.
29747
29748 2017-10-23 Siddhesh Poyarekar <siddhesh@sourceware.org>
29749
29750 * manual/conf.texi (_SC_LEVEL1_DCACHE_LINESIZE,
29751 _SC_LEVEL1_ICACHE_LINESIZE): Document aarch64 caveat.
29752
29753 * manual/conf.texi (_SC_LEVEL1_ICACHE_SIZE,
29754 _SC_LEVEL1_ICACHE_ASSOC, _SC_LEVEL1_ICACHE_LINESIZE,
29755 _SC_LEVEL1_DCACHE_SIZE, _SC_LEVEL1_DCACHE_ASSOC,
29756 _SC_LEVEL1_DCACHE_LINESIZE, _SC_LEVEL2_CACHE_SIZE,
29757 _SC_LEVEL2_CACHE_ASSOC, _SC_LEVEL2_CACHE_LINESIZE,
29758 _SC_LEVEL3_CACHE_SIZE, _SC_LEVEL3_CACHE_ASSOC,
29759 _SC_LEVEL3_CACHE_LINESIZE, _SC_LEVEL4_CACHE_SIZE,
29760 _SC_LEVEL4_CACHE_ASSOC, _SC_LEVEL4_CACHE_LINESIZE): New
29761 variables.
29762
29763 2017-10-23 Michael Collison <michael.collison@arm.com>
29764
29765 * sysdeps/aarch64/fpu/e_sqrt.c (ieee754_sqrt): Replace asm statements
29766 with __builtin_sqrt.
29767 * sysdeps/aarch64/fpu/e_sqrtf.c (ieee754_sqrtf): Replace asm statements
29768 with __builtin_sqrtf.
29769 * sysdeps/aarch64/fpu/s_ceil.c (__ceil): Replace asm statements
29770 with __builtin_ceil.
29771 * sysdeps/aarch64/fpu/s_ceilf.c (__ceilf): Replace asm statements
29772 with __builtin_ceilf.
29773 * sysdeps/aarch64/fpu/s_floor.c (__floor): Replace asm statements
29774 with __builtin_floor.
29775 * sysdeps/aarch64/fpu/s_floorf.c (__floorf): Replace asm statements
29776 with __builtin_floorf.
29777 * sysdeps/aarch64/fpu/s_fma.c (__fma): Replace asm statements
29778 with __builtin_fma.
29779 * sysdeps/aarch64/fpu/s_fmaf.c (__fmaf): Replace asm statements
29780 with __builtin_fmaf.
29781 * sysdeps/aarch64/fpu/s_fmax.c (__fmax): Replace asm statements
29782 with __builtin_fmax.
29783 * sysdeps/aarch64/fpu/s_fmaxf.c (__fmaxf): Replace asm statements
29784 with __builtin_fmaxf.
29785 * sysdeps/aarch64/fpu/s_fmin.c (__fmin): Replace asm statements
29786 with __builtin_fmin.
29787 * sysdeps/aarch64/fpu/s_fminf.c (__fminf): Replace asm statements
29788 with __builtin_fminf.
29789 * sysdeps/aarch64/fpu/s_frint.c: Delete file.
29790 * sysdeps/aarch64/fpu/s_frintf.c: Delete file.
29791 * sysdeps/aarch64/fpu/s_llrint.c (__llrint): Replace asm statements
29792 with builtin_rint and conversion to int.
29793 * sysdeps/aarch64/fpu/s_llrintf.c (__llrintf): Likewise.
29794 * sysdeps/aarch64/fpu/s_llround.c (__llround): Replace asm statements
29795 with builtin_llround.
29796 * sysdeps/aarch64/fpu/s_llroundf.c (__llroundf): Likewise.
29797 * sysdeps/aarch64/fpu/s_lrint.c (__lrint): Replace asm statements
29798 with builtin_rint and conversion to long int.
29799 * sysdeps/aarch64/fpu/s_lrintf.c (__lrintf): Likewise.
29800 * sysdeps/aarch64/fpu/s_lround.c (__lround): Replace asm statements
29801 with builtin_lround.
29802 * sysdeps/aarch64/fpu/s_lroundf.c (__lroundf): Replace asm statements
29803 with builtin_lroundf.
29804 * sysdeps/aarch64/fpu/s_nearbyint.c (__nearbyint): Replace asm
29805 statements with __builtin_nearbyint.
29806 * sysdeps/aarch64/fpu/s_nearbyintf.c (__nearbyintf): Replace asm
29807 statements with __builtin_nearbyintf.
29808 * sysdeps/aarch64/fpu/s_rint.c (__rint): Replace asm statements
29809 with __builtin_rint.
29810 * sysdeps/aarch64/fpu/s_rintf.c (__rintf): Replace asm statements
29811 with __builtin_rintf.
29812 * sysdeps/aarch64/fpu/s_round.c (__round): Replace asm statements
29813 with __builtin_round.
29814 * sysdeps/aarch64/fpu/s_roundf.c (__roundf): Replace asm statements
29815 with __builtin_roundf.
29816 * sysdeps/aarch64/fpu/s_trunc.c (__trunc): Replace asm statements
29817 with __builtin_trunc.
29818 * sysdeps/aarch64/fpu/s_truncf.c (__truncf): Replace asm statements
29819 with __builtin_truncf.
29820 * sysdeps/aarch64/fpu/Makefile: Build e_sqrt[f].c with -fno-math-errno,
29821 and s_l[l]round[f].c too.
29822
29823 2017-10-23 Alan Modra <amodra@gmail.com>
29824
29825 * sysdeps/powerpc/powerpc64/power8/strncpy.S: Move LR cfi.
29826 Adjust stack after restoring regs. Add missing LR cfi_restore.
29827
29828 2017-10-23 Alan Modra <amodra@gmail.com>
29829
29830 * sysdeps/powerpc/powerpc64/power7/strncpy.S: Decrease FRAMESIZE.
29831 Move LR save and frame setup/teardown and LR restore to
29832 immediately around memset call. Provide cfi.
29833
29834 2017-10-22 H.J. Lu <hongjiu.lu@intel.com>
29835
29836 * sysdeps/i386/fpu/e_powf.S: Removed.
29837 * sysdeps/i386/fpu/e_powf_log2_data.c: Likewise.
29838 * sysdeps/i386/fpu/w_powf.c: Likewise.
29839 * sysdeps/i386/fpu/libm-test-ulps: Updated for generic e_powf.c.
29840 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
29841 * sysdeps/i386/i686/fpu/multiarch/Makefile (libm-sysdep_routines):
29842 Add e_powf-sse2.
29843 (CFLAGS-e_powf-sse2.c): New.
29844 * sysdeps/i386/i686/fpu/multiarch/e_powf-sse2.c: New file.
29845 * sysdeps/i386/i686/fpu/multiarch/e_powf.c: Likewise.
29846
29847 2017-10-22 H.J. Lu <hongjiu.lu@intel.com>
29848
29849 * sysdeps/i386/fpu/e_log2f.S: Removed.
29850 * sysdeps/i386/fpu/e_log2f_data.c: Likewise.
29851 * sysdeps/i386/fpu/w_log2f.c: Likewise.
29852 * sysdeps/i386/fpu/libm-test-ulps: Updated for generic e_log2f.c.
29853 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
29854 * sysdeps/i386/i686/fpu/multiarch/Makefile (libm-sysdep_routines):
29855 Add e_log2f-sse2.
29856 (CFLAGS-e_log2f-sse2.c): New.
29857 * sysdeps/i386/i686/fpu/multiarch/e_log2f-sse2.c: New file.
29858 * sysdeps/i386/i686/fpu/multiarch/e_log2f.c: Likewise.
29859
29860 2017-10-22 H.J. Lu <hongjiu.lu@intel.com>
29861
29862 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
29863 Add e_powf-fma.
29864 (CFLAGS-e_powf-fma.c): New.
29865 * sysdeps/x86_64/fpu/multiarch/e_powf-fma.c: New file.
29866 * sysdeps/x86_64/fpu/multiarch/e_powf.c: Likewise.
29867
29868 2017-10-22 H.J. Lu <hongjiu.lu@intel.com>
29869
29870 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
29871 Add e_log2f-fma.
29872 (CFLAGS-e_log2f-fma.c): New.
29873 * sysdeps/x86_64/fpu/multiarch/e_log2f-fma.c: New file.
29874 * sysdeps/x86_64/fpu/multiarch/e_log2f.c: Likewise.
29875
29876 2017-10-22 H.J. Lu <hongjiu.lu@intel.com>
29877
29878 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
29879 Add e_logf-fma.
29880 (CFLAGS-e_logf-fma.c): New.
29881 * sysdeps/x86_64/fpu/multiarch/e_logf-fma.c: New file.
29882 * sysdeps/x86_64/fpu/multiarch/e_logf.c: Likewise.
29883
29884 2017-10-22 H.J. Lu <hongjiu.lu@intel.com>
29885
29886 * sysdeps/i386/fpu/e_logf.S: Removed.
29887 * sysdeps/i386/fpu/e_logf_data.c: Likewise.
29888 * sysdeps/i386/fpu/w_logf.c: Likewise.
29889 * sysdeps/i386/i686/fpu/e_logf.S: Likewise.
29890 * sysdeps/i386/fpu/libm-test-ulps: Updated for generic e_logf.c.
29891 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
29892 * sysdeps/i386/i686/fpu/multiarch/Makefile (libm-sysdep_routines):
29893 Add e_logf-sse2.
29894 (CFLAGS-e_logf-sse2.c): New.
29895 * sysdeps/i386/i686/fpu/multiarch/e_logf-sse2.c: New file.
29896 * sysdeps/i386/i686/fpu/multiarch/e_logf.c: Likewise.
29897
29898 2017-10-22 H.J. Lu <hongjiu.lu@intel.com>
29899
29900 * sysdeps/i386/fpu/e_exp2f.S: Removed.
29901 * sysdeps/i386/fpu/w_exp2f.c: Likewise.
29902 * sysdeps/i386/fpu/libm-test-ulps: Updated for generic e_exp2f.c.
29903 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
29904 * sysdeps/i386/i686/fpu/multiarch/Makefile (libm-sysdep_routines):
29905 Add e_exp2f-sse2.
29906 (CFLAGS-e_exp2f-sse2.c): New.
29907 * sysdeps/i386/i686/fpu/multiarch/e_exp2f-sse2.c: New file.
29908 * sysdeps/i386/i686/fpu/multiarch/e_exp2f.c: Likewise.
29909
29910 2017-10-22 H.J. Lu <hongjiu.lu@intel.com>
29911
29912 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
29913 Add e_exp2f-fma.
29914 (CFLAGS-e_exp2f-fma.c): New.
29915 * sysdeps/x86_64/fpu/multiarch/e_exp2f-fma.c: New file.
29916 * sysdeps/x86_64/fpu/multiarch/e_exp2f.c: Likewise.
29917
29918 2017-10-22 H.J. Lu <hongjiu.lu@intel.com>
29919
29920 * sysdeps/i386/fpu/e_exp2f_data.c: Removed.
29921 * sysdeps/i386/fpu/e_expf.S: Likewise.
29922 * sysdeps/i386/fpu/math_errf.c: Likewise.
29923 * sysdeps/i386/fpu/w_expf.c: Likewise.
29924 * sysdeps/i386/i686/fpu/multiarch/e_expf-ia32.S: Likewise.
29925 * sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.S: Likewise.
29926 * sysdeps/i386/i686/fpu/multiarch/w_expf.c: Likewise.
29927 * sysdeps/i386/fpu/libm-test-ulps: Updated for generic e_expf.c.
29928 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
29929 * sysdeps/i386/i686/fpu/multiarch/Makefile (libm-sysdep_routines):
29930 Remove e_expf-ia32.
29931 (CFLAGS-e_expf-sse2.c): New.
29932 * sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.c: New file.
29933 * sysdeps/i386/i686/fpu/multiarch/e_expf.c: Rewritten.
29934
29935 2017-10-22 H.J. Lu <hongjiu.lu@intel.com>
29936
29937 * sysdeps/x86_64/fpu/e_expf.S: Removed.
29938 * sysdeps/x86_64/fpu/multiarch/e_expf-fma.S: Likewise.
29939 * sysdeps/x86_64/fpu/w_expf.c: Likewise.
29940 * sysdeps/x86_64/fpu/libm-test-ulps: Updated for generic
29941 e_expf.c.
29942 * sysdeps/x86_64/fpu/multiarch/Makefile (CFLAGS-e_expf-fma.c):
29943 New.
29944 * sysdeps/x86_64/fpu/multiarch/e_expf-fma.c: New file.
29945 * sysdeps/x86_64/fpu/multiarch/e_expf.c (__redirect_ieee754_expf):
29946 Renamed to ...
29947 (__redirect_expf): This.
29948 (SYMBOL_NAME): Changed to expf.
29949 (__ieee754_expf): Renamed to ...
29950 (__expf): This.
29951 (__GI___expf): This.
29952 (__ieee754_expf): Add strong_alias.
29953 (__expf_finite): Likewise.
29954 (__expf): New.
29955 Include <sysdeps/ieee754/flt-32/e_expf.c>.
29956
29957 2017-10-22 Paul Eggert <eggert@cs.ucla.edu>
29958
29959 [BZ #22332]
29960 * posix/glob.c (__glob): Fix buffer overflow during GLOB_TILDE
29961 unescaping.
29962
29963 2017-10-21 Florian Weimer <fweimer@redhat.com>
29964
29965 * posix/Makefile (tests): Add tst-glob-tilde.
29966 (tests-special): Add tst-glob-tilde-mem.out
29967 (tst-glob-tilde-ENV): Set MALLOC_TRACE.
29968 (tst-glob-tilde-mem.out): Add mtrace check.
29969 * posix/tst-glob-tilde.c: New file.
29970
29971 2017-10-20 Joseph Myers <joseph@codesourcery.com>
29972
29973 * bits/floatn-common.h: New file.
29974 * math/Makefile (headers): Add bits/floatn-common.h.
29975 * bits/floatn.h: Include <bits/floatn-common.h>.
29976 * sysdeps/ia64/bits/floatn.h: Likewise.
29977 * sysdeps/ieee754/ldbl-128/bits/floatn.h: Likewise.
29978 * sysdeps/mips/ieee754/bits/floatn.h: Likewise.
29979 * sysdeps/powerpc/bits/floatn.h: Likewise.
29980 * sysdeps/x86/bits/floatn.h: Likewise.
29981
29982 2017-10-20 Adhemerval Zanella <adhemerval.zanella@linaro.org>
29983
29984 * configure.ac (libc_cv_gcc_incompatbile_alias): New define:
29985 indicates whether compiler emits an warning for alias for
29986 functions with incompatible types.
29987
29988 [BZ #22273]
29989 * sysdeps/unix/sysv/linux/spawni.c (__spawnix): Handle the case where
29990 the auxiliary process is terminated by a signal before calling _exit
29991 or execve.
29992
29993 2017-10-20 H.J. Lu <hongjiu.lu@intel.com>
29994
29995 [BZ #21265]
29996 * sysdeps/x86/cpu-features-offsets.sym (XSAVE_STATE_SIZE_OFFSET):
29997 New.
29998 * sysdeps/x86/cpu-features.c: Include <libc-pointer-arith.h>.
29999 (get_common_indeces): Set xsave_state_size, xsave_state_full_size
30000 and bit_arch_XSAVEC_Usable if needed.
30001 (init_cpu_features): Remove bit_arch_Use_dl_runtime_resolve_slow
30002 and bit_arch_Use_dl_runtime_resolve_opt.
30003 * sysdeps/x86/cpu-features.h (bit_arch_Use_dl_runtime_resolve_opt):
30004 Removed.
30005 (bit_arch_Use_dl_runtime_resolve_slow): Likewise.
30006 (bit_arch_Prefer_No_AVX512): Updated.
30007 (bit_arch_MathVec_Prefer_No_AVX512): Likewise.
30008 (bit_arch_XSAVEC_Usable): New.
30009 (STATE_SAVE_OFFSET): Likewise.
30010 (STATE_SAVE_MASK): Likewise.
30011 [__ASSEMBLER__]: Include <cpu-features-offsets.h>.
30012 (cpu_features): Add xsave_state_size and xsave_state_full_size.
30013 (index_arch_Use_dl_runtime_resolve_opt): Removed.
30014 (index_arch_Use_dl_runtime_resolve_slow): Likewise.
30015 (index_arch_XSAVEC_Usable): New.
30016 * sysdeps/x86/cpu-tunables.c (TUNABLE_CALLBACK (set_hwcaps)):
30017 Support XSAVEC_Usable. Remove Use_dl_runtime_resolve_slow.
30018 * sysdeps/x86_64/Makefile (tst-x86_64-1-ENV): New if tunables
30019 is enabled.
30020 * sysdeps/x86_64/dl-machine.h (elf_machine_runtime_setup):
30021 Replace _dl_runtime_resolve_sse, _dl_runtime_resolve_avx,
30022 _dl_runtime_resolve_avx_slow, _dl_runtime_resolve_avx_opt,
30023 _dl_runtime_resolve_avx512 and _dl_runtime_resolve_avx512_opt
30024 with _dl_runtime_resolve_fxsave, _dl_runtime_resolve_xsave and
30025 _dl_runtime_resolve_xsavec.
30026 * sysdeps/x86_64/dl-trampoline.S (DL_RUNTIME_UNALIGNED_VEC_SIZE):
30027 Removed.
30028 (DL_RUNTIME_RESOLVE_REALIGN_STACK): Check STATE_SAVE_ALIGNMENT
30029 instead of VEC_SIZE.
30030 (REGISTER_SAVE_BND0): Removed.
30031 (REGISTER_SAVE_BND1): Likewise.
30032 (REGISTER_SAVE_BND3): Likewise.
30033 (REGISTER_SAVE_RAX): Always defined to 0.
30034 (VMOV): Removed.
30035 (_dl_runtime_resolve_avx): Likewise.
30036 (_dl_runtime_resolve_avx_slow): Likewise.
30037 (_dl_runtime_resolve_avx_opt): Likewise.
30038 (_dl_runtime_resolve_avx512): Likewise.
30039 (_dl_runtime_resolve_avx512_opt): Likewise.
30040 (_dl_runtime_resolve_sse): Likewise.
30041 (_dl_runtime_resolve_sse_vex): Likewise.
30042 (USE_FXSAVE): New.
30043 (_dl_runtime_resolve_fxsave): Likewise.
30044 (USE_XSAVE): Likewise.
30045 (_dl_runtime_resolve_xsave): Likewise.
30046 (USE_XSAVEC): Likewise.
30047 (_dl_runtime_resolve_xsavec): Likewise.
30048 * sysdeps/x86_64/dl-trampoline.h (_dl_runtime_resolve_avx512):
30049 Removed.
30050 (_dl_runtime_resolve_avx512_opt): Likewise.
30051 (_dl_runtime_resolve_avx): Likewise.
30052 (_dl_runtime_resolve_avx_opt): Likewise.
30053 (_dl_runtime_resolve_sse): Likewise.
30054 (_dl_runtime_resolve_sse_vex): Likewise.
30055 (_dl_runtime_resolve_fxsave): New.
30056 (_dl_runtime_resolve_xsave): Likewise.
30057 (_dl_runtime_resolve_xsavec): Likewise.
30058
30059 2017-10-20 Paul Eggert <eggert@cs.ucla.edu>
30060
30061 [BZ #22320]
30062 CVE-2017-15670
30063 * posix/glob.c (__glob): Fix one-byte overflow.
30064
30065 2017-10-20 Wilco Dijkstra <wdijkstr@arm.com>
30066
30067 * malloc/malloc.c (sysdep-cancel.h): Add include.
30068
30069 2017-10-20 Wilco Dijkstra <wdijkstr@arm.com>
30070
30071 * malloc/malloc.c (_int_free): Add SINGLE_THREAD_P fast paths.
30072
30073 2017-10-20 Will Hawkins <hawkinsw@borlaugic.com>
30074
30075 * resolv/Makefile [$(build-shared)$(have-thread-library) == yesyes]
30076 (tests): Remove $(objpfx)ga_test depdendency.
30077 * resolv/ga_test.c: Remove file.
30078
30079 2017-10-20 Mike FABIAN <mfabian@redhat.com>
30080
30081 [BZ #18812]
30082 * localedata/SUPPORTED: Add kab_DZ/UTF-8.
30083 * localedata/locales/kab_DZ: New file.
30084
30085 2017-10-20 H.J. Lu <hongjiu.lu@intel.com>
30086
30087 * sysdeps/m68k/dl-machine.h (elf_machine_load_address): Use
30088 _dl_relocate_static_pie instead of _dl_start to compute load
30089 address in static PIE.
30090
30091 2017-10-20 H.J. Lu <hongjiu.lu@intel.com>
30092
30093 * sysdeps/m68k/start.S (_start): Check PIC instead of SHARED.
30094
30095 2017-10-20 Mike FABIAN <mfabian@redhat.com>
30096
30097 [BZ #13605]
30098 * localedata/SUPPORTED: Add shn_MM/UTF-8.
30099 * localedata/locales/shn_MM: New file.
30100
30101 2017-10-20 Florian Weimer <fweimer@redhat.com>
30102
30103 [BZ #22321]
30104 sysconf: Fix missing definition of UIO_MAXIOV on Linux.
30105 * sysdeps/posix/sysconf.c: Include <sys/uio.h>.
30106 * sysdeps/unix/sysv/linux/Makefile (tests): Add tst-sysconf-iov_max.
30107 (tst-sysconf-iov_max): Link with tst-sysconf-iov_max-uapi.o.
30108 * sysdeps/unix/sysv/linux/tst-sysconf-iov_max.c: New file.
30109 * sysdeps/unix/sysv/linux/tst-sysconf-iov_max-uapi.c: Likewise.
30110
30111 2017-10-19 H.J. Lu <hongjiu.lu@intel.com>
30112
30113 * sysdeps/i386/fpu/libm-test-ulps: Regenerated.
30114
30115 2017-10-19 Joseph Myers <joseph@codesourcery.com>
30116
30117 * sysdeps/mips/ieee754/bits/floatn.h: New file.
30118
30119 [BZ #22322]
30120 * sysdeps/mips/bits/long-double.h: Move to ....
30121 * sysdeps/mips/ieee754/bits/long-double.h: ... here.
30122
30123 2017-10-19 Wilco Dijkstra <wdijkstr@arm.com>
30124
30125 * malloc/malloc.c (_int_free): Fix deadlock bug in consistency check.
30126
30127 2017-10-19 Valery Reznic <valery_reznic@yahoo.com>
30128 H.J. Lu <hongjiu.lu@intel.com>
30129
30130 [BZ #22299]
30131 * sysdeps/x86/cpu-features.c (init_cpu_features): Don't set
30132 GLRO(dl_platform) to NULL.
30133 * sysdeps/x86_64/Makefile (tests): Add tst-platform-1.
30134 (modules-names): Add tst-platformmod-1 and
30135 x86_64/tst-platformmod-2.
30136 (CFLAGS-tst-platform-1.c): New.
30137 (CFLAGS-tst-platformmod-1.c): Likewise.
30138 (CFLAGS-tst-platformmod-2.c): Likewise.
30139 (LDFLAGS-tst-platformmod-2.so): Likewise.
30140 ($(objpfx)tst-platform-1): Likewise.
30141 ($(objpfx)tst-platform-1.out): Likewise.
30142 (tst-platform-1-ENV): Likewise.
30143 ($(objpfx)x86_64/tst-platformmod-2.os): Likewise.
30144 * sysdeps/x86_64/tst-platform-1.c: New file.
30145 * sysdeps/x86_64/tst-platformmod-1.c: Likewise.
30146 * sysdeps/x86_64/tst-platformmod-2.c: Likewise.
30147
30148 2017-10-19 Mike FABIAN <mfabian@redhat.com>
30149
30150 [BZ #13994]
30151 * locale/iso-639.def: Add Karbi.
30152 * localedata/SUPPORTED: Add mjw_IN/UTF-8.
30153 * localedata/locales/mjw_IN: New file.
30154
30155 2017-10-18 Joseph Myers <joseph@codesourcery.com>
30156
30157 * sysdeps/ieee754/ldbl-128/Makeconfig: New file.
30158 * sysdeps/ieee754/ldbl-128/bits/floatn.h: Likewise.
30159 * sysdeps/ieee754/ldbl-128/float128-abi.h: Likewise.
30160 * sysdeps/generic/libm-alias-ldouble.h: Include <bits/floatn.h>.
30161 [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128]
30162 (libm_alias_ldouble_other_r): Also create _Float128 alias.
30163 * sysdeps/ieee754/ldbl-opt/libm-alias-ldouble.h: Include
30164 <bits/floatn.h>.
30165 [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128]
30166 (libm_alias_ldouble_other_r): Also create _Float128 alias.
30167 * manual/math.texi (Mathematics): Document additional architecture
30168 support for _Float128.
30169 * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Update.
30170 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
30171 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
30172 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
30173 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
30174 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
30175 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
30176 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
30177 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
30178 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
30179 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
30180 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
30181 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
30182 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
30183 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
30184
30185 2017-10-18 Renlin Li <renlin.li@arm.com>
30186
30187 * sysdeps/aarch64/dl-machine.h (elf_machine_load_address): Use
30188 _DYNAMIC symbol to calculate load address.
30189
30190 2017-10-18 Paul A. Clarke <pc@us.ibm.com>
30191
30192 * sysdeps/powerpc/fpu/fenv_private.h (_FPU_MASK_TRAPS_RN):
30193 (_FPU_MASK_FRAC_INEX_RET_CC): Fix masks to more properly handle
30194 summary bits.
30195 (_FPU_MASK_RN): Expand _FPU_MASK_RN to 64bit hex.
30196 (_FPU_MASK_NOT_RN_NI): Treat bit 52 (left-to-right) as reserved.
30197
30198 2017-10-18 Mike FABIAN <mfabian@redhat.com>
30199
30200 [BZ #16777]
30201 * localedata/locales/pl_PL (LC_MONETARY): Use U+202F as mon_thousands_sep
30202 and improve readability by using more ASCII.
30203 * localedata/locales/pl_PL (LC_NUMERIC): Use U+202F as thousands_sep
30204 and improve readability by using more ASCII.
30205
30206 2017-10-18 Wilco Dijkstra <wdijkstr@arm.com>
30207
30208 * malloc/malloc.c (malloc_state): Use int for have_fastchunks since
30209 not all targets support atomics on bool.
30210
30211 2017-10-17 Joseph Myers <joseph@codesourcery.com>
30212
30213 * include/float.h [!__GNUC_PREREQ (7, 0) && __HAVE_FLOAT128 &&
30214 __GLIBC_USE (IEC_60559_TYPES_EXT)] (FLT128_MAX): Define using
30215 __f128.
30216 [!__GNUC_PREREQ (7, 0) && __HAVE_FLOAT128 && __GLIBC_USE
30217 (IEC_60559_TYPES_EXT)] (FLT128_EPSILON): Likewise.
30218 [!__GNUC_PREREQ (7, 0) && __HAVE_FLOAT128 && __GLIBC_USE
30219 (IEC_60559_TYPES_EXT)] (FLT128_MIN): Likewise.
30220 [!__GNUC_PREREQ (7, 0) && __HAVE_FLOAT128 && __GLIBC_USE
30221 (IEC_60559_TYPES_EXT)] (FLT128_TRUE_MIN): Likewise.
30222
30223 2017-10-17 Adhemerval Zanella <adhemerval.zanella@linaro.org>
30224
30225 * bits/uio-ext.h (RWF_HIPRI, RWF_DSYNC, RWF_SYNC, RWF_NOWAIT): New
30226 defines.
30227
30228 2017-10-17 Wilco Dijkstra <wdijkstr@arm.com>
30229
30230 [BZ #22159]
30231 * malloc/arena.c (ptmalloc_init): Call malloc_init_state.
30232 * malloc/malloc.c (do_check_free_chunk): Fix build bug.
30233 (do_check_remalloced_chunk): Fix build bug.
30234 (do_check_malloc_state): Add assert that checks arena->top.
30235 (malloc_consolidate): Remove initialization.
30236 (int_mallinfo): Remove call to malloc_consolidate.
30237 (__libc_mallopt): Clarify why malloc_consolidate is needed.
30238
30239 2017-10-17 Wilco Dijkstra <wdijkstr@arm.com>
30240
30241 * malloc/malloc.c (FASTCHUNKS_BIT): Remove.
30242 (have_fastchunks): Remove.
30243 (clear_fastchunks): Remove.
30244 (set_fastchunks): Remove.
30245 (malloc_state): Add have_fastchunks.
30246 (malloc_init_state): Use have_fastchunks.
30247 (do_check_malloc_state): Remove incorrect invariant checks.
30248 (_int_malloc): Use have_fastchunks.
30249 (_int_free): Likewise.
30250 (malloc_consolidate): Likewise.
30251
30252 2017-10-17 Wilco Dijkstra <wdijkstr@arm.com>
30253
30254 * malloc/malloc.c (tcache_put): Inline.
30255 (tcache_get): Inline.
30256
30257 2017-10-17 Jordi Mallach <jordi@gnu.org>
30258
30259 Aurelien Jarno <aurelien@aurel32.net>
30260 [BZ #2522]
30261 * localedata/locales/ca_ES@valencia: New file.
30262 * localedata/SUPPORTED: Add ca_ES@valencia/UTF-8.
30263
30264 2017-10-17 Romain Naour <romain.naour@gmail.com> (tiny change)
30265
30266 [BZ #22296]
30267 * math/math.h: Let signbit use the builtin in C++ mode with gcc
30268 < 6.x
30269
30270 2017-10-17 Adhemerval Zanella <adhemerval.zanella@linaro.org>
30271
30272 * scripts/build-many-glibcs.py (Context.add_all_configs):
30273 Add arm-linux-gnueabihf multiarch extra_glibcs.
30274
30275 * sysdeps/generic/ifunc-init.h: New file.
30276 * sysdeps/x86/init-arch.h: Use generic ifunc-init.h.
30277
30278 2017-10-17 Mike FABIAN <mfabian@redhat.com>
30279
30280 [BZ #22019]
30281 * localedata/locales/el_GR: Set n_cs_precedes to 0.
30282 * localedata/locales/el_CY: copy "el_GR" because it is identical.
30283 * stdlib/tst-strfmon_l.c: adapt test case.
30284
30285 2017-10-16 Joseph Myers <joseph@codesourcery.com>
30286
30287 * sysdeps/generic/float128-abi.h: New file.
30288 * sysdeps/ieee754/float128/Versions (FLOAT128_VERSION): Move
30289 non-__prefixed symbols to ....
30290 * math/Versions: ... here. Include <float128-abi.h>.
30291 * stdlib/Versions ... and here. Include <float128-abi.h>
30292
30293 2017-10-16 Florian Weimer <fweimer@redhat.com>
30294
30295 * version.h (VERSION): Switch to ".9000" as the development
30296 version suffix.
30297
30298 2017-10-16 Florian Weimer <fweimer@redhat.com>
30299
30300 [BZ #22050]
30301 * malloc/mcheck-init.c (__malloc_initialize_hook): Use
30302 compat_symbol_reference to access non-default version.
30303
30304 2017-10-16 Florian Weimer <fweimer@redhat.com>
30305
30306 * malloc/Makefile (others-extras): Set to mcheck-init.o.
30307
30308 2017-10-16 Carlos O'Donell <carlos@redhat.com>
30309
30310 * include/shlib-compat.h (compat_symbol_reference): Update
30311 comment.
30312
30313 2017-10-16 Joseph Myers <joseph@codesourcery.com>
30314
30315 * math/Makefile (test-types): Add
30316 $(type-float128-$(float128-alias-fcts)).
30317 * math/test-float128.h (TYPE_STR): Define conditional on
30318 [FLT128_MANT_DIG == LDBL_MANT_DIG].
30319 (ULP_IDX): Likewise.
30320 (ULP_I_IDX): Likewise.
30321
30322 * stdlib/strtold.c: Include <bits/floatn.h>
30323 [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128] (strtof128): Define
30324 and later undefine as macro. Define as weak alias if
30325 [!USE_WIDE_CHAR].
30326 [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128] (wcstof128): Define
30327 and later undefine as macro. Define as weak alias if
30328 [USE_WIDE_CHAR].
30329 * sysdeps/ieee754/ldbl-128/strtold_l.c [__HAVE_FLOAT128 &&
30330 !__HAVE_DISTINCT_FLOAT128] (strtof128_l): Define and later
30331 undefine as macro. Define as weak alias if [!USE_WIDE_CHAR].
30332 [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128] (wcstof128_l):
30333 Define and later undefine as macro. Define as weak alias if
30334 [USE_WIDE_CHAR].
30335 * sysdeps/ieee754/ldbl-64-128/strtold_l.c: Include
30336 <bits/floatn.h>.
30337 [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128] (strtof128_l):
30338 Define and later undefine as macro. Define as weak alias if
30339 [!USE_WIDE_CHAR].
30340 [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128] (wcstof128_l):
30341 Define and later undefine as macro. Define as weak alias if
30342 [USE_WIDE_CHAR].
30343
30344 2017-10-15 Carlos O'Donell <carlos@redhat.com>
30345
30346 * localedata/collate-test.c (allocate_arrays): Don't use \n in
30347 record_verbose messages.
30348
30349 2017-10-15 H.J. Lu <hongjiu.lu@intel.com>
30350
30351 [BZ #22052]
30352 * malloc/hooks.c (realloc_check): Use DIAG_IGNORE_NEEDS_COMMENT
30353 to silence -O3 -Wall warning with GCC 7.
30354
30355 2017-10-14 H.J. Lu <hongjiu.lu@intel.com>
30356
30357 * Makeconfig (+link-static-before-libc): Use the first of
30358 $(CRT-$(@F)) and $(csu-objpfx)$(static-start-installed-name).
30359 * gmon/Makefile (tests): Add tst-gmon-static.
30360 (tests-static): Likewise.
30361 (CFLAGS-tst-gmon-static.c): New.
30362 (CRT-tst-gmon-static): Likewise.
30363 (DEFAULT-LDFLAGS-tst-gmon-static): Likewise.
30364 (tst-gmon-static-ENV): Likewise.
30365 (tests-special): Likewise.
30366 ($(objpfx)tst-gmon-static.out): Likewise.
30367 (clean-tst-gmon-static-data): Likewise.
30368 ($(objpfx)tst-gmon-static-gprof.out): Likewise.
30369 * gmon/tst-gmon-static-gprof.sh: New file.
30370 * gmon/tst-gmon-static.c: Likewise.
30371
30372 2017-10-13 Carlos O'Donell <carlos@redhat.com>
30373
30374 [BZ #22295]
30375 * locale/programs/linereader.c (get_string): Don't warn on
30376 non-symbolic character.
30377
30378 [BZ #22294]
30379 * locale/programs/ld-monetary.c (monetary_finish): Allow ""
30380 int_curr_symbol.
30381
30382 [BZ #22292]
30383 * locale/programs/record-status.h: New file
30384 * locale/programs/locale.c: Add comment.
30385 * locale/programs/charmap-dir.c: Don't include error.h.
30386 (charmap_opendir): Use record_error.
30387 * locale/programs/charmap.c: Don't include error.h.
30388 (charmap_read): Use record_error, and record_warning.
30389 (parse_charmap): Likewise.
30390 * locale/programs/ld-address.c: Don't include error.h.
30391 (address_finish): Use record_error, and record_warning.
30392 * locale/programs/ld-collate.c: Don't include error.h.
30393 (collate_finish): Use record_error, and record_error_at_line.
30394 * locale/programs/ld-ctype.c (ctype_finish): Use record_error.
30395 (ctype_class_new): Likewise.
30396 (ctype_map_new): Likewise.
30397 (set_one_default): Likewise.
30398 (set_class_defaults): Likewise.
30399 (translit_flatten): Likewise.
30400 (allocate_arrays): Use record_error, and record_verbose.
30401 * locale/programs/ld-identification.c: Don't include error.h.
30402 (indentation_finish): Use record_error and record_warning.
30403 * locale/programs/ld-measurement.c: Don't include error.h.
30404 (measurement_finish): Use record_error.
30405 * locale/programs/ld-messages.c
30406 (message_finish): Likewise.
30407 * locale/programs/ld-monetary.c
30408 (monetary_finish): Likewise.
30409 * locale/programs/ld-name.c (name_finish): Use record_error
30410 and record_warning.
30411 * locale/programs/ld-numeric.c
30412 (numeric_finish): Use record_error.
30413 * locale/programs/ld-paper.c: Don't include error.h.
30414 (paper_finish): Use record_error.
30415 * locale/programs/ld-telephone.c: Don't include error.h.
30416 (telephone_finish): Use record_error.
30417 * locale/programs/ld-time.c (time_finish): Likewise.
30418 * locale/programs/linereader.h (lr_error): Make inline func.
30419 * locale/programs/localedef.c: Define recorded_warning_count,
30420 and recorded_error_count.
30421 (main): Use record_error. Use recorded_error_count and
30422 recorded_warning_count to issue correct error returns.
30423 (add_to_readlist): Use record_error.
30424 (find_locale): Likewise.
30425 (load_locale): Likewise.
30426 * locale/programs/localedef.h: Remove be_quiet
30427 and WITH_CUR_LOCALE.
30428 * locale/programs/locarchive.c (compare_from_file): Use
30429 record_error.
30430 * locale/programs/locfile.c (write_locale_data): Use
30431 record_error.
30432 * locale/programs/repertoire.c: Dont include error.h.
30433 (repertoire_complain): Use record_error.
30434 * localedata/tst-fmon.sh: Expect failures from localedef.
30435 * localedata/tst-locale.sh: Likewise.
30436 * localedata/gen-locale.sh: Expect failures from SHIFT_JIS.
30437
30438 * localedata/unicode-gen/Makefile (GENERATED): Use i18n_ctype.
30439 (REPORTS): Likewise.
30440 (check): Likewise.
30441 (i18n): Rename to...
30442 (i18n_ctype): ...this.
30443 (i18n-report): Rename to...
30444 (i18n_ctype-report): ...this.
30445 * localedata/locales/i18n_ctype: Regenerate.
30446 * localedata/locales/i18n: copy i18n_ctype.
30447
30448 2017-10-13 Joseph Myers <joseph@codesourcery.com>
30449
30450 * stdlib/strfroml.c: Include <bits/floatn.h>.
30451 [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128] (strfromf128):
30452 Define before include of <stdlib.h> and undefine afterwards, then
30453 define as weak alias.
30454
30455 * sysdeps/ieee754/ldbl-64-128/s_nextafterl.c (weak_alias):
30456 Undefine and restore default definition. Use
30457 libm_alias_ldouble_other.
30458
30459 2017-10-13 Peter Zelezny <peter.zelezny@dektech.com.au>
30460
30461 [BZ #22153]
30462 * nptl/allocatestack.c (__nptl_setxid_error): Preserve error code
30463 in coredumps.
30464
30465 2017-10-13 James Clarke <jrtc27@jrtc27.com>
30466
30467 * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela):
30468 Assign sym_map to be map for local symbols, as TLS relocations
30469 use sym_map to determine whether the symbol is defined and to
30470 extract the TLS information.
30471 * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Likewise.
30472 * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Likewise.
30473
30474 2017-10-13 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
30475
30476 [BZ #22189]
30477 * sysdeps/powerpc/fpu/math_private.h (math_opt_barrier):
30478 (math_force_eval): Add powerpc version.
30479
30480 [BZ #22142]
30481 * stdio-common/tst-printf.c (fp_test): Add tests for DBL_MAX and
30482 -DBL_MAX.
30483 (do_test): Likewise.
30484 * stdio-common/tst-printf.sh: Likewise.
30485 * sysdeps/powerpc/powerpc64/power7/add_n.S: Invert the initial
30486 ifdef clause in order to set the carry bit right. Replace r0 by
30487 0 without changing the behavior.
30488
30489 2017-10-13 Joseph Myers <joseph@codesourcery.com>
30490
30491 * sysdeps/sparc/sparc32/fpu/s_fabsl.c: Include
30492 <libm-alias-ldouble.h>.
30493 (fabsl): Define using libm_alias_ldouble.
30494 * sysdeps/sparc/sparc64/fpu/s_fabsl.c: Include
30495 <libm-alias-ldouble.h>.
30496 (fabsl): Define using libm_alias_ldouble.
30497
30498 * sysdeps/ieee754/ldbl-opt/w_lgamma_compatl.c [BUILD_LGAMMA]:
30499 Remove conditional code.
30500
30501 * sysdeps/ieee754/ldbl-opt/s_clog10l.c (__clog10l__internal):
30502 Rename to __clog10_internal_l.
30503 (__clog10_internal_l): Define aliases using
30504 libm_alias_ldouble_other instead of using libm_alias_ldouble_other
30505 with __clog10.
30506
30507 2017-10-13 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
30508
30509 * benchtests/Makefile (bench-math): Add sinf, cosf and sincosf.
30510 * benchtests/sincosf-inputs: New file.
30511 * benchtests/cosf-inputs: New file.
30512 * benchtests/sinf-inputs: New file.
30513
30514 2017-10-12 Szabolcs Nagy <szabolcs.nagy@arm.com>
30515
30516 * posix/tst-spawn.c (do_test): Wait for both children.
30517
30518 2017-10-12 H.J. Lu <hongjiu.lu@intel.com>
30519
30520 [BZ #22284]
30521 * gmon/Makefile [$(have-fpie)$(build-shared) == yesyes] (tests,
30522 tests-pie): Add tst-gmon-pie.
30523 (CFLAGS-tst-gmon-pie.c): New.
30524 (CRT-tst-gmon-pie): Likewise.
30525 (tst-gmon-pie-ENV): Likewise.
30526 [$(have-fpie)$(build-shared) == yesyes] (tests-special): Likewise.
30527 ($(objpfx)tst-gmon-pie.out): Likewise.
30528 (clean-tst-gmon-pie-data): Likewise.
30529 ($(objpfx)tst-gmon-pie-gprof.out): Likewise.
30530 * gmon/gmon.c [PIC]: Include <link.h>.
30531 [PIC] (callback): New function.
30532 (write_hist): Add an argument for load address. Subtract load
30533 address from PCs.
30534 (write_call_graph): Likewise.
30535 (write_gmon): Call __dl_iterate_phdr to get load address, pass
30536 it to write_hist and write_call_graph.
30537 * gmon/tst-gmon-pie.c: New file.
30538
30539 2017-10-11 Joseph Myers <joseph@codesourcery.com>
30540
30541 * math/Makefile (test-types-basic): New variable.
30542 (test-types): Likewise.
30543 (libm-test-support): Use $(test-types) instead of $(types).
30544 (libm-tests-base-normal): Likewise.
30545 (libm-tests-base-finite): Likewise.
30546 (libm-tests-base-inline): Likewise.
30547 (generated): Likewise.
30548 ($(objpfx)libm-test-support-$(t).c): Likewise.
30549 (libm-tests-for-type iterator): Likewise.
30550 (libm-test-support iterator): Likewise.
30551 * math/libm-test-support.c (ulp_i_idx): Use ULP_I_IDX.
30552 (ulp_idx): Use ULP_IDX.
30553 * math/test-ldouble.h: Include <float.h>.
30554 (TYPE_STR): Define conditional on [LDBL_MANT_DIG == DBL_MANT_DIG].
30555 (ULP_IDX): New macro.
30556 (ULP_I_IDX): Likewise.
30557 * math/test-double.h (ULP_IDX): Likewise.
30558 (ULP_I_IDX): Likewise.
30559 * math/test-float.h (ULP_IDX): Likewise.
30560 (ULP_I_IDX): Likewise.
30561 * math/test-float128.h (ULP_IDX): Likewise.
30562 (ULP_I_IDX): Likewise.
30563
30564 2017-10-11 Adhemerval Zanella <adhemerval.zanella@linaro.org>
30565
30566 * sysdeps/unix/sysv/linux/aarch64/sysdep-cancel.h: Remove file.
30567 * sysdeps/unix/sysv/linux/alpha/sysdep-cancel.h: Likewise.
30568 * sysdeps/unix/sysv/linux/arm/sysdep-cancel.h: Likewise.
30569 * sysdeps/unix/sysv/linux/hppa/sysdep-cancel.h: Likewise.
30570 * sysdeps/unix/sysv/linux/mips/sysdep-cancel.h: Likewise.
30571 * sysdeps/unix/sysv/linux/nios2/sysdep-cancel.h: Likewise.
30572 * sysdeps/unix/sysv/linux/powerpc/sysdep-cancel.h: Likewise.
30573 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep-cancel.h: Likewise.
30574 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep-cancel.h: Likewise.
30575 * sysdeps/unix/sysv/linux/sh/sysdep-cancel.h: Likewise.
30576 * sysdeps/unix/sysv/linux/sparc/sysdep-cancel.h: Likewise.
30577 * sysdeps/unix/sysv/linux/tile/sysdep-cancel.h: Likewise.
30578 * sysdeps/unix/sysv/linux/x86_64/sysdep-cancel.h: Likewise.
30579 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h
30580 (SINGLE_THREAD_BY_GLOBAL): Define.
30581 * sysdeps/unix/sysv/linux/aarch64/sysdep.h (SINGLE_THREAD_BY_GLOBAL):
30582 Likewise.
30583 * sysdeps/unix/sysv/linux/alpha/sysdep.h (SINGLE_THREAD_BY_GLOBAL):
30584 Likewise.
30585 * sysdeps/unix/sysv/linux/arm/sysdep.h (SINGLE_THREAD_BY_GLOBAL):
30586 Likewise.
30587 * sysdeps/unix/sysv/linux/hppa/sysdep.h (SINGLE_THREAD_BY_GLOBAL):
30588 Likewise.
30589 * sysdeps/unix/sysv/linux/microblaze/sysdep.h
30590 (SINGLE_THREAD_BY_GLOBAL): Likewise.
30591 * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SINGLE_THREAD_BY_GLOBAL):
30592 Likewise.
30593
30594 2017-10-11 Andreas Schwab <schwab@suse.de>
30595
30596 * nis/Makefile (aux): Remove.
30597 * nscd/Makefile (aux): Add nscd_hash.
30598 (nscd-modules): Likewise.
30599 ($(objpfx)nscd): Don't depend on libnsl.
30600 * nscd/nscd_hash.c: New file.
30601 * nscd/nscd_hash.h: Likewise.
30602 * nscd/cache.c: Include "nscd_hash.h" instead of <rpcsvc/nis.h>.
30603 (cache_search, cache_add): Use __nscd_hash instead of __nis_hash.
30604 * nscd/nscd_helper.c: Include <sys/param.h> and "nscd_hash.h"
30605 instead of <nis/rpcsvc/nis.h>.
30606 (__nscd_cache_search): Use __nscd_hash instead of __nis_hash.
30607
30608 2017-10-11 Florian Weimer <fweimer@redhat.com>
30609
30610 [BZ #22078]
30611 Avoid large NSS buffers with many addresses, aliases.
30612 * nss/nss_files/files-hosts.c (gethostbyname3_multi): Rewrite
30613 using dynarrays and struct alloc_buffer.
30614 * nss/Makefile (tests): Add tst-nss-files-hosts-multi.
30615 (tst-nss-files-hosts-multi): Link with -ldl.
30616 * nss/tst-nss-files-hosts-multi.c: New file.
30617
30618 2017-10-11 Florian Weimer <fweimer@redhat.com>
30619
30620 [BZ #18023]
30621 * nss/nss_files/files-hosts.c (gethostbyname3_multi): Use struct
30622 scratch_buffer. Eliminate gotos.
30623
30624 2017-10-11 Joseph Myers <joseph@codesourcery.com>
30625
30626 * sysdeps/ieee754/ldbl-opt/s_clog10l.c: Use
30627 libm_alias_ldouble_other.
30628 * sysdeps/ieee754/ldbl-opt/w_exp10l_compat.c (weak_alias): Do not
30629 undefine and redefine.
30630 [LIBM_SVID_COMPAT && !LONG_DOUBLE_COMPAT (libm, GLIBC_2_1)]
30631 (exp10l): Do not define here.
30632 * sysdeps/ieee754/ldbl-opt/w_lgamma_compatl.c [BUILD_LGAMMA]
30633 (weak_alias): Undefine and redefine.
30634 [BUILD_LGAMMA]: Use libm_alias_ldouble_other.
30635 * sysdeps/ieee754/ldbl-opt/w_remainderl_compat.c
30636 [LIBM_SVID_COMPAT] (weak_alias): Undefine and redefine here.
30637 [LIBM_SVID_COMPAT]: Use libm_alias_ldouble_other.
30638
30639 * soft-fp/fmadf4.c: Include <libm-alias-double.h>.
30640 [!__fma] (fma): Define using libm_alias_double.
30641 * soft-fp/fmasf4.c: Include <libm-alias-float.h>.
30642 [!__fmaf] (fmaf): Define using libm_alias_float.
30643 * soft-fp/fmatf4.c: Include <libm-alias-ldouble.h>.
30644 (fmal): Define using libm_alias_ldouble.
30645
30646 2017-10-10 Joseph Myers <joseph@codesourcery.com>
30647
30648 * sysdeps/generic/libm-alias-double.h (libm_alias_double_other_r):
30649 New macro.
30650 (libm_alias_double_other): Likewise.
30651 (libm_alias_double_r): Use libm_alias_double_other_r.
30652 * sysdeps/generic/libm-alias-float.h (libm_alias_float_other_r):
30653 New macro.
30654 (libm_alias_float_other): Likewise.
30655 (libm_alias_float_r): Use libm_alias_float_other_r.
30656 * sysdeps/generic/libm-alias-float128.h
30657 (libm_alias_float128_other_r): New macro.
30658 (libm_alias_float128_other): Likewise.
30659 (libm_alias_float128_r): Use libm_alias_float128_other_r.
30660 * sysdeps/generic/libm-alias-ldouble.h
30661 (libm_alias_ldouble_other_r): New macro.
30662 (libm_alias_ldouble_other): Likewise.
30663 (libm_alias_ldouble_r): Use libm_alias_ldouble_other_r.
30664 * sysdeps/ieee754/ldbl-opt/libm-alias-double.h
30665 (libm_alias_double_other_r): New macro.
30666 (libm_alias_double_other): Likewise.
30667 (libm_alias_double_r): Use libm_alias_double_other_r.
30668 * sysdeps/ieee754/ldbl-opt/libm-alias-ldouble.h
30669 (libm_alias_ldouble_other_r): New macro.
30670 (libm_alias_ldouble_other): Likewise.
30671 (libm_alias_ldouble_r): Use libm_alias_ldouble_other_r.
30672 * math/w_lgamma_main.c: Include <libm-alias-double.h>.
30673 [!USE_AS_COMPAT]: Use libm_alias_double_other.
30674 * math/w_lgammaf_main.c: Include <libm-alias-float.h>.
30675 [!USE_AS_COMPAT]: Use libm_alias_float_other.
30676 * math/w_lgammal_main.c: Include <libm-alias-ldouble.h>.
30677 [!USE_AS_COMPAT]: Use libm_alias_ldouble_other.
30678 * math/w_exp2f.c: Use libm_alias_float_other.
30679 * math/w_expf.c: Likewise.
30680 * math/w_log2f.c: Likewise.
30681 * math/w_logf.c: Likewise.
30682 * math/w_powf.c: Likewise.
30683 * sysdeps/ieee754/flt-32/e_exp2f.c: Include <libm-alias-float.h>.
30684 [!__exp2f]: Use libm_alias_float_other.
30685 * sysdeps/ieee754/flt-32/e_expf.c: Include <libm-alias-float.h>.
30686 [!__expf]: Use libm_alias_float_other.
30687 * sysdeps/ieee754/flt-32/e_log2f.c: Include <libm-alias-float.h>.
30688 [!__log2f]: Use libm_alias_float_other.
30689 * sysdeps/ieee754/flt-32/e_logf.c: Include <libm-alias-float.h>.
30690 [!__logf]: Use libm_alias_float_other.
30691 * sysdeps/ieee754/flt-32/e_powf.c: Include <libm-alias-float.h>.
30692 [!__powf]: Use libm_alias_float_other.
30693
30694 2017-10-10 Florian Weimer <fweimer@redhat.com>
30695
30696 * nss/nss_files/files-hosts.c (gethostbyname3_multi): New
30697 function.
30698 (_nss_files_gethostbyname3_r): Call it.
30699
30700 2017-10-09 Joseph Myers <joseph@codesourcery.com>
30701
30702 * sysdeps/generic/math-type-macros.h [!declare_mgen_alias]: Give
30703 error. Remove default definition of declare_mgen_alias.
30704 [!declare_mgen_alias_r]: Likewise.
30705 * sysdeps/generic/math-type-macros-double.h
30706 [!declare_mgen_alias_r] (declare_mgen_alias_r): New macro.
30707 * sysdeps/generic/math-type-macros-float.h [!declare_mgen_alias_r]
30708 (declare_mgen_alias_r): Likewise.
30709 * sysdeps/generic/math-type-macros-float128.h
30710 [!declare_mgen_alias_r] (declare_mgen_alias_r): Likewise.
30711 * sysdeps/generic/math-type-macros-ldouble.h
30712 [!declare_mgen_alias_r] (declare_mgen_alias_r): Likewise.
30713 * math/w_lgamma_r_template.c (declare_mgen_alias_r_x): Remove
30714 macro.
30715 (declare_mgen_alias_r_s): Likewise.
30716 (declare_mgen_alias_r): Likewise.
30717 * math/w_lgamma_r_compat.c: Include <libm-alias-double.h>.
30718 (lgamma_r): Define using libm_alias_double_r.
30719 * math/w_lgammaf_r_compat.c: Include <libm-alias-float.h>.
30720 (lgammaf_r): Define using libm_alias_float_r.
30721 * math/w_lgammal_r_compat.c: Include <libm-alias-ldouble.h>.
30722 (lgammal_r): Define using libm_alias_ldouble_r.
30723 * sysdeps/ieee754/ldbl-opt/w_lgamma_r_compat.c: Remove file.
30724 * sysdeps/ieee754/ldbl-opt/w_lgammal_r_compat.c: Likewise.
30725
30726 2017-10-09 Adhemerval Zanella <adhemerval.zanella@linaro.org>
30727
30728 * lib/glob.c (__glob_pattern_type): Remove now-spurious
30729 extern declaration.
30730
30731 2017-10-09 Joseph Myers <joseph@codesourcery.com>
30732
30733 * sysdeps/ieee754/ldbl-opt/w_scalbln.c: Remove file.
30734
30735 2017-10-09 Jonathan Wakely <jwakely@redhat.com>
30736
30737 [BZ #21326]
30738 * include/features.h [__cplusplus >= 201703] (__USE_ISOC11): Define.
30739 [__cplusplus >= 201103] (__USE_ISOC99): Define.
30740 * math/Makefile (test-math-cxx11): New test.
30741 * math/test-math-cxx11.cc: New file.
30742
30743 2017-10-08 Christian Brauner <christian.brauner@ubuntu.com>
30744
30745 * login/openpty.c (openpty): Close slave pty file descriptor on error.
30746
30747 * login/openpty.c (openpty): If defined, use the TIOCGPTPEER ioctl()
30748 call to allocate the slave pty file descriptor.
30749
30750 2017-10-06 Joseph Myers <joseph@codesourcery.com>
30751
30752 * sysdeps/ieee754/ldbl-128/s_fma.c: Include <libm-alias-double.h>.
30753 [!__fma] (fma): Define using libm_alias_double.
30754 * sysdeps/ieee754/ldbl-96/s_fma.c: Include <libm-alias-double.h>.
30755 [!__fma] (fma): Define using libm_alias_double.
30756
30757 * sysdeps/ieee754/float128/float128_private.h: Include
30758 <libm-alias-ldouble.h> and <libm-alias-float128.h>.
30759 (libm_alias_ldouble_r): Undefine and redefine.
30760 * sysdeps/ieee754/ldbl-128/s_asinhl.c: Include
30761 <libm-alias-ldouble.h>.
30762 (asinhl): Define using libm_alias_ldouble.
30763 * sysdeps/ieee754/ldbl-128/s_atanl.c: Include
30764 <libm-alias-ldouble.h>.
30765 (atanl): Define using libm_alias_ldouble.
30766 * sysdeps/ieee754/ldbl-128/s_cbrtl.c: Include
30767 <libm-alias-ldouble.h>.
30768 (cbrtl): Define using libm_alias_ldouble.
30769 * sysdeps/ieee754/ldbl-128/s_ceill.c: Include
30770 <libm-alias-ldouble.h>.
30771 (ceill): Define using libm_alias_ldouble.
30772 * sysdeps/ieee754/ldbl-128/s_copysignl.c: Include
30773 <libm-alias-ldouble.h>.
30774 (copysignl): Define using libm_alias_ldouble.
30775 * sysdeps/ieee754/ldbl-128/s_cosl.c: Include
30776 <libm-alias-ldouble.h>.
30777 (cosl): Define using libm_alias_ldouble.
30778 * sysdeps/ieee754/ldbl-128/s_erfl.c: Include
30779 <libm-alias-ldouble.h>.
30780 (erfl): Define using libm_alias_ldouble.
30781 (erfcl): Likewise.
30782 * sysdeps/ieee754/ldbl-128/s_expm1l.c: Include
30783 <libm-alias-ldouble.h>.
30784 (expm1l): Define using libm_alias_ldouble.
30785 * sysdeps/ieee754/ldbl-128/s_fabsl.c: Include
30786 <libm-alias-ldouble.h>.
30787 (fabsl): Define using libm_alias_ldouble.
30788 * sysdeps/ieee754/ldbl-128/s_floorl.c: Include
30789 <libm-alias-ldouble.h>.
30790 (floorl): Define using libm_alias_ldouble.
30791 * sysdeps/ieee754/ldbl-128/s_fmal.c: Include
30792 <libm-alias-ldouble.h>.
30793 (fmal): Define using libm_alias_ldouble.
30794 * sysdeps/ieee754/ldbl-128/s_frexpl.c: Include
30795 <libm-alias-ldouble.h>.
30796 (frexpl): Define using libm_alias_ldouble.
30797 * sysdeps/ieee754/ldbl-128/s_fromfpl.c (fromfpl): Define using
30798 libm_alias_ldouble.
30799 * sysdeps/ieee754/ldbl-128/s_fromfpl_main.c: Include
30800 <libm-alias-ldouble.h>.
30801 * sysdeps/ieee754/ldbl-128/s_fromfpxl.c (fromfpxl): Define using
30802 libm_alias_ldouble.
30803 * sysdeps/ieee754/ldbl-128/s_getpayloadl.c: Include
30804 <libm-alias-ldouble.h>.
30805 (getpayloadl): Define using libm_alias_ldouble.
30806 * sysdeps/ieee754/ldbl-128/s_llrintl.c: Include
30807 <libm-alias-ldouble.h>.
30808 (llrintl): Define using libm_alias_ldouble.
30809 * sysdeps/ieee754/ldbl-128/s_llroundl.c: Include
30810 <libm-alias-ldouble.h>.
30811 (llroundl): Define using libm_alias_ldouble.
30812 * sysdeps/ieee754/ldbl-128/s_logbl.c: Include
30813 <libm-alias-ldouble.h>.
30814 (logbl): Define using libm_alias_ldouble.
30815 * sysdeps/ieee754/ldbl-128/s_lrintl.c: Include
30816 <libm-alias-ldouble.h>.
30817 (lrintl): Define using libm_alias_ldouble.
30818 * sysdeps/ieee754/ldbl-128/s_lroundl.c: Include
30819 <libm-alias-ldouble.h>.
30820 (lroundl): Define using libm_alias_ldouble.
30821 * sysdeps/ieee754/ldbl-128/s_modfl.c: Include
30822 <libm-alias-ldouble.h>.
30823 (modfl): Define using libm_alias_ldouble.
30824 * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Include
30825 <libm-alias-ldouble.h>.
30826 (nearbyintl): Define using libm_alias_ldouble.
30827 * sysdeps/ieee754/ldbl-128/s_nextafterl.c: Include
30828 <libm-alias-ldouble.h>.
30829 (nextafterl): Define using libm_alias_ldouble.
30830 * sysdeps/ieee754/ldbl-128/s_nextupl.c: Include
30831 <libm-alias-ldouble.h>.
30832 (nextupl): Define using libm_alias_ldouble.
30833 * sysdeps/ieee754/ldbl-128/s_remquol.c: Include
30834 <libm-alias-ldouble.h>.
30835 (remquol): Define using libm_alias_ldouble.
30836 * sysdeps/ieee754/ldbl-128/s_rintl.c: Include
30837 <libm-alias-ldouble.h>.
30838 (rintl): Define using libm_alias_ldouble.
30839 * sysdeps/ieee754/ldbl-128/s_roundevenl.c: Include
30840 <libm-alias-ldouble.h>.
30841 (roundevenl): Define using libm_alias_ldouble.
30842 * sysdeps/ieee754/ldbl-128/s_roundl.c: Include
30843 <libm-alias-ldouble.h>.
30844 (roundl): Define using libm_alias_ldouble.
30845 * sysdeps/ieee754/ldbl-128/s_setpayloadl.c (setpayloadl): Define
30846 using libm_alias_ldouble.
30847 * sysdeps/ieee754/ldbl-128/s_setpayloadl_main.c: Include
30848 <libm-alias-ldouble.h>.
30849 * sysdeps/ieee754/ldbl-128/s_setpayloadsigl.c (setpayloadsigl):
30850 Define using libm_alias_ldouble.
30851 * sysdeps/ieee754/ldbl-128/s_sincosl.c: Include
30852 <libm-alias-ldouble.h>.
30853 (sincosl): Define using libm_alias_ldouble.
30854 * sysdeps/ieee754/ldbl-128/s_sinl.c: Include
30855 <libm-alias-ldouble.h>.
30856 (sinl): Define using libm_alias_ldouble.
30857 * sysdeps/ieee754/ldbl-128/s_tanhl.c: Include
30858 <libm-alias-ldouble.h>.
30859 (tanhl): Define using libm_alias_ldouble.
30860 * sysdeps/ieee754/ldbl-128/s_tanl.c: Include
30861 <libm-alias-ldouble.h>.
30862 (tanl): Define using libm_alias_ldouble.
30863 * sysdeps/ieee754/ldbl-128/s_totalorderl.c: Include
30864 <libm-alias-ldouble.h>.
30865 (totalorderl): Define using libm_alias_ldouble.
30866 * sysdeps/ieee754/ldbl-128/s_totalordermagl.c: Include
30867 <libm-alias-ldouble.h>.
30868 (totalordermagl): Define using libm_alias_ldouble.
30869 * sysdeps/ieee754/ldbl-128/s_truncl.c: Include
30870 <libm-alias-ldouble.h>.
30871 (truncl): Define using libm_alias_ldouble.
30872 * sysdeps/ieee754/ldbl-128/s_ufromfpl.c (ufromfpl): Define using
30873 libm_alias_ldouble.
30874 * sysdeps/ieee754/ldbl-128/s_ufromfpxl.c (ufromfpxl): Define using
30875 libm_alias_ldouble.
30876 * sysdeps/ieee754/ldbl-64-128/s_copysignl.c: Include
30877 <libm-alias-ldouble.h>.
30878 (weak_alias): Do not undefine and redefine.
30879 [IS_IN (libc)] (libm_alias_ldouble): Undefine and redefine.
30880 (copysignl): Define with long_double_symbol only if [IS_IN
30881 (libc)].
30882 * sysdeps/ieee754/ldbl-64-128/s_frexpl.c: Include
30883 <libm-alias-ldouble.h>.
30884 (weak_alias): Do not undefine and redefine.
30885 [IS_IN (libc)] (libm_alias_ldouble): Undefine and redefine.
30886 (frexpl): Define with long_double_symbol only if [IS_IN (libc)].
30887 * sysdeps/ieee754/ldbl-64-128/s_modfl.c: Include
30888 <libm-alias-ldouble.h>.
30889 (weak_alias): Do not undefine and redefine.
30890 [IS_IN (libc)] (libm_alias_ldouble): Undefine and redefine.
30891 (modfl): Define with long_double_symbol only if [IS_IN (libc)].
30892 * sysdeps/ieee754/ldbl-64-128/s_asinhl.c: Remove file.
30893 * sysdeps/ieee754/ldbl-64-128/s_atanl.c: Likewise.
30894 * sysdeps/ieee754/ldbl-64-128/s_cbrtl.c: Likewise.
30895 * sysdeps/ieee754/ldbl-64-128/s_ceill.c: Likewise.
30896 * sysdeps/ieee754/ldbl-64-128/s_cosl.c: Likewise.
30897 * sysdeps/ieee754/ldbl-64-128/s_erfl.c: Likewise.
30898 * sysdeps/ieee754/ldbl-64-128/s_expm1l.c: Likewise.
30899 * sysdeps/ieee754/ldbl-64-128/s_fabsl.c: Likewise.
30900 * sysdeps/ieee754/ldbl-64-128/s_floorl.c: Likewise.
30901 * sysdeps/ieee754/ldbl-64-128/s_fmal.c: Likewise.
30902 * sysdeps/ieee754/ldbl-64-128/s_llrintl.c: Likewise.
30903 * sysdeps/ieee754/ldbl-64-128/s_llroundl.c: Likewise.
30904 * sysdeps/ieee754/ldbl-64-128/s_logbl.c: Likewise.
30905 * sysdeps/ieee754/ldbl-64-128/s_lrintl.c: Likewise.
30906 * sysdeps/ieee754/ldbl-64-128/s_lroundl.c: Likewise.
30907 * sysdeps/ieee754/ldbl-64-128/s_nearbyintl.c: Likewise.
30908 * sysdeps/ieee754/ldbl-64-128/s_remquol.c: Likewise.
30909 * sysdeps/ieee754/ldbl-64-128/s_rintl.c: Likewise.
30910 * sysdeps/ieee754/ldbl-64-128/s_roundl.c: Likewise.
30911 * sysdeps/ieee754/ldbl-64-128/s_sincosl.c: Likewise.
30912 * sysdeps/ieee754/ldbl-64-128/s_sinl.c: Likewise.
30913 * sysdeps/ieee754/ldbl-64-128/s_tanhl.c: Likewise.
30914 * sysdeps/ieee754/ldbl-64-128/s_tanl.c: Likewise.
30915 * sysdeps/ieee754/ldbl-64-128/s_truncl.c: Likewise.
30916
30917 2017-10-06 Carlos O'Donell <carlos@redhat.com>
30918
30919 [BZ #22111]
30920 * malloc/malloc.c (tcache_shutting_down): Use bool type.
30921 (tcache_thread_freeres): Set tcache_shutting_down before
30922 freeing the tcache.
30923 * malloc/Makefile (tests): Add tst-malloc-tcache-leak.
30924 * malloc/tst-malloc-tcache-leak.c: New file.
30925
30926 2017-10-06 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
30927
30928 * sysdeps/powerpc/powerpc64/multiarch/memrchr-ppc64.c: Revert
30929 back to powerpc32 file.
30930 * sysdeps/powerpc/powerpc64/multiarch/memrchr.c
30931 (memrchr): Add __memrchr_power8 to ifunc list.
30932 * sysdeps/powerpc/powerpc64/power8/memrchr.S: Mask
30933 extra bytes for unaligned inputs.
30934
30935 2017-10-06 Joseph Myers <joseph@codesourcery.com>
30936
30937 * sysdeps/ieee754/ldbl-64-128/e_ilogbl.c: Remove file.
30938 * sysdeps/ieee754/ldbl-64-128/s_log1pl.c: Likewise.
30939 * sysdeps/ieee754/ldbl-64-128/s_scalblnl.c: Likewise.
30940 * sysdeps/ieee754/ldbl-64-128/s_scalbnl.c: Likewise.
30941 * sysdeps/ieee754/ldbl-64-128/w_scalblnl.c: Likewise.
30942
30943 2017-10-05 Joseph Myers <joseph@codesourcery.com>
30944
30945 * sysdeps/arm/libm-test-ulps: Update.
30946
30947 * sysdeps/ieee754/ldbl-96/s_asinhl.c: Include
30948 <libm-alias-ldouble.h>.
30949 (asinhl): Define using libm_alias_ldouble.
30950 * sysdeps/ieee754/ldbl-96/s_cbrtl.c: Include
30951 <libm-alias-ldouble.h>.
30952 (cbrtl): Define using libm_alias_ldouble.
30953 * sysdeps/ieee754/ldbl-96/s_copysignl.c: Include
30954 <libm-alias-ldouble.h>.
30955 (copysignl): Define using libm_alias_ldouble.
30956 * sysdeps/ieee754/ldbl-96/s_cosl.c: Include
30957 <libm-alias-ldouble.h>.
30958 (cosl): Define using libm_alias_ldouble.
30959 * sysdeps/ieee754/ldbl-96/s_erfl.c: Include
30960 <libm-alias-ldouble.h>.
30961 (erfl): Define using libm_alias_ldouble.
30962 (erfcl): Likewise.
30963 * sysdeps/ieee754/ldbl-96/s_fmal.c: Include
30964 <libm-alias-ldouble.h>.
30965 (fmal): Define using libm_alias_ldouble.
30966 * sysdeps/ieee754/ldbl-96/s_frexpl.c: Include
30967 <libm-alias-ldouble.h>.
30968 (frexpl): Define using libm_alias_ldouble.
30969 * sysdeps/ieee754/ldbl-96/s_fromfpl.c (fromfpl): Define using
30970 libm_alias_ldouble.
30971 * sysdeps/ieee754/ldbl-96/s_fromfpl_main.c: Include
30972 <libm-alias-ldouble.h>.
30973 * sysdeps/ieee754/ldbl-96/s_fromfpxl.c (fromfpxl): Define using
30974 libm_alias_ldouble.
30975 * sysdeps/ieee754/ldbl-96/s_getpayloadl.c: Include
30976 <libm-alias-ldouble.h>.
30977 (getpayloadl): Define using libm_alias_ldouble.
30978 * sysdeps/ieee754/ldbl-96/s_llrintl.c: Include
30979 <libm-alias-ldouble.h>.
30980 (llrintl): Define using libm_alias_ldouble.
30981 * sysdeps/ieee754/ldbl-96/s_llroundl.c: Include
30982 <libm-alias-ldouble.h>.
30983 (llroundl): Define using libm_alias_ldouble.
30984 * sysdeps/ieee754/ldbl-96/s_lrintl.c: Include
30985 <libm-alias-ldouble.h>.
30986 (lrintl): Define using libm_alias_ldouble.
30987 * sysdeps/ieee754/ldbl-96/s_lroundl.c: Include
30988 <libm-alias-ldouble.h>.
30989 (lroundl): Define using libm_alias_ldouble.
30990 * sysdeps/ieee754/ldbl-96/s_modfl.c: Include
30991 <libm-alias-ldouble.h>.
30992 (modfl): Define using libm_alias_ldouble.
30993 * sysdeps/ieee754/ldbl-96/s_nextupl.c: Include
30994 <libm-alias-ldouble.h>.
30995 (nextupl): Define using libm_alias_ldouble.
30996 * sysdeps/ieee754/ldbl-96/s_remquol.c: Include
30997 <libm-alias-ldouble.h>.
30998 (remquol): Define using libm_alias_ldouble.
30999 * sysdeps/ieee754/ldbl-96/s_roundevenl.c: Include
31000 <libm-alias-ldouble.h>.
31001 (roundevenl): Define using libm_alias_ldouble.
31002 * sysdeps/ieee754/ldbl-96/s_roundl.c: Include
31003 <libm-alias-ldouble.h>.
31004 (roundl): Define using libm_alias_ldouble.
31005 * sysdeps/ieee754/ldbl-96/s_setpayloadl.c (setpayloadl): Define
31006 using libm_alias_ldouble.
31007 * sysdeps/ieee754/ldbl-96/s_setpayloadl_main.c: Include
31008 <libm-alias-ldouble.h>.
31009 * sysdeps/ieee754/ldbl-96/s_setpayloadsigl.c: Include
31010 <libm-alias-ldouble.h>.
31011 (setpayloadsigl): Define using libm_alias_ldouble.
31012 * sysdeps/ieee754/ldbl-96/s_sincosl.c: Include
31013 <libm-alias-ldouble.h>.
31014 (sincosl): Define using libm_alias_ldouble.
31015 * sysdeps/ieee754/ldbl-96/s_sinl.c: Include
31016 <libm-alias-ldouble.h>.
31017 (sinl): Define using libm_alias_ldouble.
31018 * sysdeps/ieee754/ldbl-96/s_tanhl.c: Include
31019 <libm-alias-ldouble.h>.
31020 (tanhl): Define using libm_alias_ldouble.
31021 * sysdeps/ieee754/ldbl-96/s_tanl.c: Include
31022 <libm-alias-ldouble.h>.
31023 (tanl): Define using libm_alias_ldouble.
31024 * sysdeps/ieee754/ldbl-96/s_totalorderl.c: Include
31025 <libm-alias-ldouble.h>.
31026 (totalorderl): Define using libm_alias_ldouble.
31027 * sysdeps/ieee754/ldbl-96/s_totalordermagl.c: Include
31028 <libm-alias-ldouble.h>.
31029 (totalordermagl): Define using libm_alias_ldouble.
31030 * sysdeps/ieee754/ldbl-96/s_ufromfpl.c (ufromfpl): Define using
31031 libm_alias_ldouble.
31032 * sysdeps/ieee754/ldbl-96/s_ufromfpxl.c (ufromfpxl): Define using
31033 libm_alias_ldouble.
31034
31035 2017-10-05 Siddhesh Poyarekar <siddhesh@sourceware.org>
31036
31037 * sysdeps/aarch64/multiarch/Makefile (sysdep_routines): Add
31038 memmove_falkor.
31039 * sysdeps/aarch64/multiarch/ifunc-impl-list.c
31040 (__libc_ifunc_impl_list): Likewise.
31041 * sysdeps/aarch64/multiarch/memmove.c: Likewise.
31042 * sysdeps/aarch64/multiarch/memmove_falkor.S: New file.
31043
31044 * benchtests/bench-memmove-walk.c: New file.
31045 * benchtests/Makefile (string-benchset): Add it.
31046
31047 * benchtests/bench-memset-walk.c: New file.
31048 * benchtests/Makefile (string-benchset): Add it.
31049
31050 * benchtests/bench-memcpy-walk.c: New file.
31051 * benchtests/Makefile (string-benchset): Add it.
31052
31053 2017-10-05 Florian Weimer <fweimer@redhat.com>
31054
31055 nscd: Eliminate compilation time dependency in the build output.
31056 * nscd/nscd_stat.c (STATDATA_VERSION)
31057 (STATDATA_VERSION_SELINUX_FLAG, STATDATA_VERSION_FLAGS)
31058 (STATDATA_VERSION_FULL): New macro definitions.
31059 (compilation): Remove.
31060 (struct statdata): Adjust version member.
31061 (send_stats): Set version from STATDATA_VERSION_FULL.
31062 (receive_print_stats): Verify version against STATDATA_VERSION_FULL.
31063
31064 2017-10-05 Joseph Myers <joseph@codesourcery.com>
31065
31066 * configure.ac (--enable-add-ons): Remove option.
31067 (machine): Do not mention add-ons in comment.
31068 (LIBC_PRECONFIGURE): Likewise.
31069 (add_ons): Remove variable and sanity checks and logic to locate
31070 add-ons.
31071 (add_ons_automatic): Remove variable.
31072 (configured_add_ons): Likewise.
31073 (add_ons_sfx): Likewise.
31074 (add_ons_pfx): Likewise.
31075 (add_on_subdirs): Likewise.
31076 (sysnames_add_ons): Likewise. Remove loop over add-ons and
31077 consideration of add-ons in Implies handling.
31078 (sysdeps_add_ons): Likewise.
31079 * configure: Regenerated.
31080 * libidn/configure.ac: Remove.
31081 * libidn/configure: Likewise.
31082 * sysdeps/unix/inet/configure.ac: New file.
31083 * sysdeps/unix/inet/configure: New generated file.
31084 * sysdeps/unix/inet/Subdirs: Add libidn.
31085 * Makeconfig (sysdeps-srcdirs): Remove variable.
31086 (+sysdep_dirs): Do not include $(sysdeps-srcdirs).
31087 ($(common-objpfx)config.status): Do not depend on add-on files.
31088 ($(common-objpfx)shlib-versions.v.i): Do not mention add-ons in
31089 comment.
31090 (all-subdirs): Do not include $(add-on-subdirs).
31091 * Makefile (dist-prepare): Do not use $(sysdeps-add-ons).
31092 * config.make.in (add-ons): Remove variable.
31093 (add-on-subdirs): Likewise.
31094 (sysdeps-add-ons): Likewise.
31095 * manual/Makefile (add-chapters): Remove.
31096 ($(objpfx)texis): Do not depend on $(add-chapters).
31097 (nonexamples): Do not handle $(add-chapters).
31098 (examples): Do not handle $(add-ons).
31099 (chapters.% top-menu.%): Do not pass '$(add-chapters)' to
31100 libc-texinfo.sh.
31101 * manual/install.texi (Installation): Do not mention add-ons.
31102 (--enable-add-ons): Do not document configure option.
31103 * INSTALL: Regenerated.
31104 * manual/libc-texinfo.sh: Do not handle $2 add-ons argument.
31105 * manual/maint.texi (Hierarchy Conventions): Do not mention
31106 add-ons.
31107 * scripts/build-many-glibcs.py (Glibc.build_glibc): Do not use
31108 --enable-add-ons.
31109 * scripts/gen-sorted.awk: Do not handle Subdirs files from
31110 add-ons.
31111 * scripts/test-installation.pl: Do not handle glibc-compat add-on.
31112 * sysdeps/nptl/Makeconfig: Do not mention add-ons in comment.
31113
31114 2017-10-05 Andreas Schwab <schwab@suse.de>
31115
31116 [BZ #15142]
31117 * libio/genops.c (_IO_list_all_stamp): Delete. All uses removed.
31118 (_IO_flush_all_lockp): Always lock list_all_lock.
31119 (_IO_flush_all_linebuffered): Likewise.
31120 (_IO_unbuffer_all): Likewise.
31121
31122 2017-10-05 Florian Weimer <fweimer@redhat.com>
31123
31124 [BZ #15436]
31125 Do not flush stdio streams on abort.
31126 * stdlib/abort.c (fflush): Remove macro definition.
31127 (abort): Remove stages related to stdio flushing.
31128
31129 2017-10-05 Florian Weimer <fweimer@redhat.com>
31130
31131 * gmon/Makefile (CFLAGS-tst-gmon.c): Add -fno-omit-frame-pointer.
31132
31133 2017-10-05 Stefan Liebler <stli@linux.vnet.ibm.com>
31134
31135 * sysdeps/s390/fpu/libm-test-ulps: Regenerated.
31136
31137 2017-10-05 Florian Weimer <fweimer@redhat.com>
31138
31139 * support/support_format_hostent.c (support_format_hostent): Add
31140 more error information for NETDB_INTERNAL.
31141
31142 2017-10-04 H.J. Lu <hongjiu.lu@intel.com>
31143
31144 * config.h.in (NO_HIDDEN_EXTERN_FUNC_IN_PIE): New.
31145 * include/libc-symbols.h (__hidden_proto_hiddenattr): Add check
31146 for PIC and NO_HIDDEN_EXTERN_FUNC_IN_PIE.
31147 * sysdeps/i386/configure.ac (NO_HIDDEN_EXTERN_FUNC_IN_PIE): New
31148 AC_DEFINE if multi-arch is enabled.
31149 * sysdeps/i386/configure: Regenerated.
31150
31151 2017-10-04 H.J. Lu <hongjiu.lu@intel.com>
31152
31153 * Makeconfig (+link-static-before-libc): Use
31154 $(DEFAULT-LDFLAGS-$(@F)).
31155 * elf/Makefile (CRT-tst-tls1-static-non-pie): New.
31156 (LDFLAGS-tst-tls1-static-non-pie): Renamed to ...
31157 (DEFAULT-LDFLAGS-tst-tls1-static-non-pie): This.
31158
31159 2017-10-04 H.J. Lu <hongjiu.lu@intel.com>
31160
31161 * elf/Makefile (tests): Add tst-main1.
31162 (modules-names): Add tst-main1mod.
31163 ($(objpfx)tst-main1): New.
31164 (CRT-tst-main1): Likewise.
31165 (LDFLAGS-tst-main1): Likewise.
31166 (LDLIBS-tst-main1): Likewise.
31167 (tst-main1mod.so-no-z-defs): Likewise.
31168 * elf/tst-main1.c: New file.
31169 * elf/tst-main1mod.c: Likewise.
31170
31171 2017-10-04 H.J. Lu <hongjiu.lu@intel.com>
31172
31173 * math/test-math-iscanonical.cc (do_test): Return errors != 0.
31174
31175 2017-10-04 Joseph Myers <joseph@codesourcery.com>
31176
31177 * sysdeps/ieee754/dbl-64/s_fma.c: Include <libm-alias-double.h>.
31178 (fma): Define using libm_alias_double.
31179 * sysdeps/ieee754/ldbl-opt/s_fma.c: Remove file.
31180 * sysdeps/sparc/sparc32/fpu/s_fma.c: Do not include
31181 <math_ldbl_opt.h>.
31182 (fmal): Do not define as compat symbol here.
31183 * sysdeps/alpha/fpu/s_fma.c: New file.
31184
31185 2017-10-04 Szabolcs Nagy <szabolcs.nagy@arm.com>
31186
31187 * sysdeps/aarch64/dl-machine.h (elf_machine_rela): Expand MIN.
31188
31189 2017-10-04 Joseph Myers <joseph@codesourcery.com>
31190
31191 [BZ #22229]
31192 * sysdeps/sparc/sparc32/fpu/s_copysign.S: Include
31193 <math_ldbl_opt.h>
31194 (copysignl): Define as compat symbol at version GLIBC_2_0 for libm
31195 and libc.
31196 * sysdeps/sparc/sparc32/fpu/s_fabs.S: Include <math_ldbl_opt.h>.
31197 (fabsl): Define as compat symbol at version GLIBC_2_0 for libm.
31198 * sysdeps/sparc/sparc32/fpu/s_fma.c: Include <math_ldbl_opt.h>.
31199 (fmal): Define as compat symbol at version GLIBC_2_1 for libm.
31200 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.S:
31201 Include <math_ldbl_opt.h>
31202 (copysignl): Define as compat symbol at version GLIBC_2_0 for libm
31203 and libc.
31204 (compat_symbol): Undefine and redefine.
31205 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.S: Include
31206 <math_ldbl_opt.h>
31207 (fabsl): Define as compat symbol at version GLIBC_2_0 for libm.
31208 (compat_symbol): Undefine and redefine.
31209 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fma.c
31210 [HAVE_AS_VIS3_SUPPORT]: Include <math_ldbl_opt.h>.
31211 [HAVE_AS_VIS3_SUPPORT] (fmal): Define as compat symbol at version
31212 GLIBC_2_1 for libm.
31213 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Add
31214 GLIBC_2.0 copysignl symbol.
31215 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Add
31216 GLIBC_2.0 copysignl and fabsl and GLIBC_2.1 fmal symbols.
31217
31218 * sysdeps/alpha/fpu/s_nearbyint.c: Remove file.
31219
31220 2017-10-04 Florian Weimer <fweimer@redhat.com>
31221
31222 * scripts/check-local-headers.sh: Ignore nspr4 header file
31223 directory in addition to nspr.
31224
31225 2017-10-04 Guido Trentalancia <guido@trentalancia.net>
31226
31227 [BZ #17956]
31228 * configure.ac (--enable-nss-crypt): Use NSPR include directory.
31229 * configure: Regenerate.
31230 * crypt/Makefile (nss-cpp-flags): New variable.
31231 (CPPFLAGS-sha256-crypt.c, CPPFLAGS-sha512-crypt.c)
31232 (CPPFLAGS-md5-crypt.c): Use it.
31233 * scripts/check-local-headers.sh: Ignore nspr header file
31234 directory.
31235
31236 2017-10-04 Andreas Schwab <schwab@suse.de>
31237
31238 * nis/Makefile (services): Remove compat.
31239 (libnss_compat-routines, libnss_compat-inhibit-o): Don't define.
31240 ($(objpfx)libnss_compat.so): Remove rule.
31241 * nis/Versions (libnss_compat): Remove.
31242 * nss/Makefile (services): Add compat.
31243 (libnss_compat-routines, libnss_compat-inhibit-o): Define.
31244 * nss/Versions (libnss_compat): Define.
31245 * nss/nss_compat/compat-grp.c: Moved here from nis/nss_compat.
31246 Don't include <rpc/types.h>. Replace bool_t by bool.
31247 * nss/nss_compat/compat-initgroups.c: Likewise.
31248 * nss/nss_compat/compat-pwd.c: Likewise. Include "nisdomain.h"
31249 instead of <rpcsrv/ypclnt.h>.
31250 (getpwent_next_nss_netgr): Use __nss_get_default_domain instead of
31251 yp_get_default_domain.
31252 * nss/nss_compat/compat-pwd.c: Likewise.
31253 (getspent_next_nss_netgr): Use __nss_get_default_domain instead of
31254 yp_get_default_domain.
31255 * nss/nss_compat/nisdomain.c: New file.
31256 * nss/nss_compat/nisdomain.h: Likewise.
31257
31258 2017-10-04 Szabolcs Nagy <szabolcs.nagy@arm.com>
31259
31260 [BZ #22244]
31261 * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_yn): Fix x == 0 case.
31262 * sysdeps/ieee754/flt-32/e_jnf.c (__ieee754_ynf): Likewise.
31263
31264 2017-10-04 Szabolcs Nagy <szabolcs.nagy@arm.com>
31265
31266 [BZ #22243]
31267 * sysdeps/ieee754/dbl-64/wordsize-64/e_log10.c (__ieee754_log10): Use fabs.
31268 * sysdeps/ieee754/dbl-64/wordsize-64/e_log2.c (__ieee754_log2): Likewise.
31269
31270 2017-10-03 H.J. Lu <hongjiu.lu@intel.com>
31271
31272 * sysdeps/i386/start.S: Replace "leal main@GOT(%ebx), %eax" with
31273 "movl main@GOTOFF(%ebx), %eax".
31274
31275 2017-10-03 H.J. Lu <hongjiu.lu@intel.com>
31276
31277 * sysdeps/i386/dl-machine.h (elf_machine_load_address): Don't
31278 allow undefined _DYNAMIC in PIE libc.a.
31279 * sysdeps/x86_64/dl-machine.h (elf_machine_load_address):
31280 Likewse.
31281
31282 2017-10-03 H.J. Lu <hongjiu.lu@intel.com>
31283
31284 * sysdeps/mips/dl-machine.h (elf_machine_load_address): Don't
31285 check _DYNAMIC.
31286
31287 2017-10-03 H.J. Lu <hongjiu.lu@intel.com>
31288
31289 * sysdeps/arm/dl-machine.h (elf_machine_load_address): Don't
31290 check _DYNAMIC.
31291
31292 2017-10-03 H.J. Lu <hongjiu.lu@intel.com>
31293
31294 * math/test-math-iscanonical.cc (error): Replace bool with int.
31295
31296 2017-10-03 Joseph Myers <joseph@codesourcery.com>
31297
31298 * sysdeps/ieee754/dbl-64/s_modf.c: Include <libm-alias-double.h>.
31299 (modf): Define using libm_alias_double, only if [!__modf].
31300 * sysdeps/ieee754/dbl-64/wordsize-64/s_modf.c: Include
31301 <libm-alias-double.h>.
31302 (modf): Define using libm_alias_double, only if [!__modf].
31303 * sysdeps/ieee754/ldbl-opt/s_modf.c (modfl): Only define libc
31304 compat symbol here.
31305 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_modf-ppc32.c
31306 (weak_alias): Do not undefine and redefine.
31307 (strong_alias): Likewise.
31308 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modf-ppc64.c
31309 (weak_alias): Likewise.
31310 (strong_alias): Likewise.
31311
31312 * sysdeps/ieee754/dbl-64/s_logb.c: Include <libm-alias-double.h>.
31313 (logb): Define using libm_alias_double, only if [!__logb].
31314 * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c: Include
31315 <libm-alias-double.h>.
31316 (logb): Define using libm_alias_double, only if [!__logb].
31317 * sysdeps/ieee754/ldbl-opt/s_logb.c: Remove file.
31318 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logb-ppc32.c
31319 (weak_alias): Do not undefine and redefine.
31320 (strong_alias): Likewise.
31321 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logb-ppc64.c
31322 (weak_alias): Likewise.
31323 (strong_alias): Likewise.
31324
31325 2017-10-03 H.J. Lu <hongjiu.lu@intel.com>
31326
31327 * sysdeps/unix/sysv/linux/tile/sysdep.h (SYSCALL_ERROR_NAME):
31328 Check SHARED instead PIC.
31329
31330 2017-10-03 Joseph Myers <joseph@codesourcery.com>
31331
31332 * sysdeps/ieee754/dbl-64/s_fmaf.c: Include <libm-alias-float.h>.
31333 [!__fmaf] (fmaf): Define using libm_alias_float.
31334
31335 * sysdeps/ieee754/dbl-64/s_frexp.c: Include <libm-alias-double.h>.
31336 (frexp): Define using libm_alias_double.
31337 * sysdeps/ieee754/dbl-64/wordsize-64/s_frexp.c: Include
31338 <libm-alias-double.h>.
31339 (frexp): Define using libm_alias_double.
31340 * sysdeps/ieee754/ldbl-opt/s_frexp.c (frexpl): Only define libc
31341 compat symbol here.
31342
31343 2017-10-03 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
31344
31345 [BZ #22235]
31346 * math/math.h: Trivial fix for unbalanced parentheses in comment.
31347 * math/Makefile [CXX] (tests): Add test-math-iscanonical.cc.
31348 (CFLAGS-test-math-iscanonical.cc): New variable.
31349 * math/test-math-iscanonical.cc: New file.
31350 * sysdeps/ieee754/ldbl-96/bits/iscanonical.h (iscanonical):
31351 Provide a C++ implementation based on function overloading,
31352 rather than using __MATH_TG, which uses C-only builtins.
31353 * sysdeps/ieee754/ldbl-128ibm/bits/iscanonical.h (iscanonical):
31354 Likewise.
31355 * sysdeps/powerpc/powerpc64le/Makefile
31356 (CFLAGS-test-math-iscanonical.cc): New variable.
31357
31358 2017-10-03 Joseph Myers <joseph@codesourcery.com>
31359
31360 * sysdeps/ieee754/dbl-64/s_ceil.c: Include <libm-alias-double.h>.
31361 (ceil): Define using libm_alias_double.
31362 * sysdeps/ieee754/dbl-64/s_floor.c: Include <libm-alias-double.h>.
31363 (floor): Define using libm_alias_double.
31364 * sysdeps/ieee754/dbl-64/s_llround.c: Include
31365 <libm-alias-double.h>.
31366 (llround): Define using libm_alias_double.
31367 * sysdeps/ieee754/dbl-64/s_lround.c: Include
31368 <libm-alias-double.h>.
31369 (lround): Define using libm_alias_double.
31370 * sysdeps/ieee754/dbl-64/s_nearbyint.c: Include
31371 <libm-alias-double.h>.
31372 (nearbyint): Define using libm_alias_double.
31373 * sysdeps/ieee754/dbl-64/s_remquo.c: Include
31374 <libm-alias-double.h>.
31375 (remquo): Define using libm_alias_double.
31376 * sysdeps/ieee754/dbl-64/s_rint.c: Include <libm-alias-double.h>.
31377 (rint): Define using libm_alias_double.
31378 * sysdeps/ieee754/dbl-64/s_round.c: Include <libm-alias-double.h>.
31379 (round): Define using libm_alias_double.
31380 * sysdeps/ieee754/dbl-64/s_trunc.c: Include <libm-alias-double.h>.
31381 (trunc): Define using libm_alias_double.
31382 * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Include
31383 <libm-alias-double.h>.
31384 (ceil): Define using libm_alias_double.
31385 * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Include
31386 <libm-alias-double.h>.
31387 (floor): Define using libm_alias_double.
31388 * sysdeps/ieee754/dbl-64/wordsize-64/s_llround.c: Include
31389 <libm-alias-double.h>.
31390 (llround): Define using libm_alias_double.
31391 [_LP64] (lround): Likewise.
31392 * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Include
31393 <libm-alias-double.h>.
31394 [!_LP64] (lround): Define using libm_alias_double.
31395 * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c: Include
31396 <libm-alias-double.h>.
31397 (nearbyint): Define using libm_alias_double.
31398 * sysdeps/ieee754/dbl-64/wordsize-64/s_remquo.c: Include
31399 <libm-alias-double.h>.
31400 (remquo): Define using libm_alias_double.
31401 * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c: Include
31402 <libm-alias-double.h>.
31403 (rint): Define using libm_alias_double.
31404 * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c: Include
31405 <libm-alias-double.h>.
31406 (round): Define using libm_alias_double.
31407 * sysdeps/ieee754/dbl-64/wordsize-64/s_trunc.c: Include
31408 <libm-alias-double.h>.
31409 (trunc): Define using libm_alias_double.
31410 * sysdeps/ieee754/ldbl-opt/s_ceil.c: Remove file.
31411 * sysdeps/ieee754/ldbl-opt/s_floor.c: Likewise.
31412 * sysdeps/ieee754/ldbl-opt/s_llround.c: Likewise.
31413 * sysdeps/ieee754/ldbl-opt/s_lround.c: Likewise.
31414 * sysdeps/ieee754/ldbl-opt/s_nearbyint.c: Likewise.
31415 * sysdeps/ieee754/ldbl-opt/s_remquo.c: Likewise.
31416 * sysdeps/ieee754/ldbl-opt/s_rint.c: Likewise.
31417 * sysdeps/ieee754/ldbl-opt/s_round.c: Likewise.
31418 * sysdeps/ieee754/ldbl-opt/s_trunc.c: Likewise.
31419
31420 2017-10-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
31421
31422 * math/w_remainder.c: New file.
31423 * math/w_remainderf.c: New file.
31424 * math/w_remainderl.c: New file.
31425
31426 2017-10-03 H.J. Lu <hongjiu.lu@intel.com>
31427
31428 * elf/rtld.c (BOOTSTRAP_MAP): New.
31429 (RESOLVE_MAP): Replace (&bootstrap_map) with BOOTSTRAP_MAP.
31430 * sysdeps/hppa/dl-machine.h (ELF_MACHINE_BEFORE_RTLD_RELOC):
31431 Likewise.
31432 * sysdeps/ia64/dl-machine.h (ELF_MACHINE_BEFORE_RTLD_RELOC):
31433 Likewise.
31434 * sysdeps/mips/dl-machine.h (ELF_MACHINE_BEFORE_RTLD_RELOC):
31435 Likewise.
31436
31437 2017-10-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
31438
31439 * include/libc-symbols.h [NO_RTLD_HIDDEN] (rtld_hidden_proto,
31440 rtld_hidden_tls_proto, rtld_hidden_def, rtld_hidden_weak,
31441 rtld_hidden_rtld_hidden_ver, data_def, rtld_hidden_data_weak,
31442 rtld_hidden_data_ver): Define to empty.
31443 * include/assert.h [IS_IN(rtld) && NO_RTLD_HIDDEN] (__assert_fail,
31444 __assert_perror_fail): Likewise.
31445 * include/dirent.h [IS_IN(rtld) && NO_RTLD_HIDDEN]
31446 (__rewinddir): Likewise.
31447 * include/libc-internal.h [IS_IN(rtld) && NO_RTLD_HIDDEN]
31448 (__profile_frequency): Likewise.
31449 * include/setjmp.h (__sigsetjmp): Likewise.
31450 * include/signal.h [IS_IN(rtld) && NO_RTLD_HIDDEN] (__sigaction,
31451 __libc_sigaction): Likewise.
31452 * include/stdlib.h [NO_RTLD_HIDDEN] (unsetenv, __strtoul_internal): Do
31453 not set hidden attribute.
31454 * include/string.h [IS_IN(rtld) && NO_RTLD_HIDDEN] (__stpcpy, __strdup,
31455 __strerror_t, __strsep_g, memchr, memcmp, memcpy, memmove, memset,
31456 rawmemchr, stpcpy, strchr, strcmp, strlen, strnlen, strsep): Likewise.
31457 * include/sys/stat.h [IS_IN(rtld) && NO_RTLD_HIDDEN] (__fxstat,
31458 __fxstat64, __lxstat, __lxstat64, __xstat, __xstat64,
31459 __fxstatat64): Likewise.
31460 * include/sys/utsname.h [IS_IN(rtld) && NO_RTLD_HIDDEN]
31461 (__uname): Likewise.
31462 * include/sysdeps/generic/_itoa.h [IS_IN(rtld) && NO_RTLD_HIDDEN]
31463 (_itoa_upper_digits, _itoa_lower_digits): Likewise.
31464 * sysdeps/mach/hurd/configure.ac (NO_HIDDEN): Do not set.
31465 (NO_RTLD_HIDDEN): Set.
31466 * sysdeps/mach/hurd/configure: Refresh.
31467 * config.h.in: Refresh.
31468
31469 2017-10-02 Joseph Myers <joseph@codesourcery.com>
31470
31471 * sysdeps/ieee754/dbl-64/s_atan.c: Include <libm-alias-double.h>.
31472 (atan): Define using libm_alias_double.
31473 * sysdeps/ieee754/dbl-64/s_tan.c: Include <libm-alias-double.h>.
31474 (tan): Define using libm_alias_double.
31475 * sysdeps/ieee754/ldbl-opt/s_atan.c: Remove file.
31476 * sysdeps/ieee754/ldbl-opt/s_tan.c: Likewise.
31477
31478 * sysdeps/ieee754/dbl-64/s_atan.c (atan): Rename to __atan and
31479 define as weak alias of __atan. Do not define any aliases if
31480 [__atan].
31481 [NO_LONG_DOUBLE] (__atanl): Define as strong alias of __atan.
31482 [NO_LONG_DOUBLE] (atanl): Define as weak alias of __atanl.
31483 * sysdeps/ieee754/dbl-64/s_tan.c (tan): Rename to __tan and define
31484 as weak alias of __tan. Do not define any aliases if [__tan].
31485 [NO_LONG_DOUBLE] (__tanl): Define as strong alias of __tan.
31486 [NO_LONG_DOUBLE] (tanl): Define as weak alias of __tanl.
31487 * sysdeps/x86_64/fpu/multiarch/s_atan-avx.c (atan): Rename to
31488 __atan.
31489 * sysdeps/x86_64/fpu/multiarch/s_atan-fma.c (atan): Likewise.
31490 * sysdeps/x86_64/fpu/multiarch/s_atan-fma4.c (atan): Likewise.
31491 * sysdeps/x86_64/fpu/multiarch/s_atan.c (atan): Rename to __atan
31492 and define as weak alias of __atan.
31493 * sysdeps/x86_64/fpu/multiarch/s_tan-avx.c (tan): Rename to
31494 __atan.
31495 * sysdeps/x86_64/fpu/multiarch/s_tan-fma.c (tan): Likewise.
31496 * sysdeps/x86_64/fpu/multiarch/s_tan-fma4.c (tan): Likewise.
31497 * sysdeps/x86_64/fpu/multiarch/s_tan.c (tan): Rename to __tan and
31498 define as weak alias of __tan.
31499
31500 2017-10-02 Szabolcs Nagy <szabolcs.nagy@arm.com>
31501
31502 * math/w_lgamma.c: New file.
31503 * math/w_lgammaf.c: New file.
31504 * math/w_lgammal.c: New file.
31505
31506 2017-10-02 Szabolcs Nagy <szabolcs.nagy@arm.com>
31507
31508 * sysdeps/ieee754/flt-32/e_log2f.c (__log2f): Define without wrapper.
31509 * sysdeps/ieee754/flt-32/e_logf.c (__logf): Likewise
31510 * sysdeps/ieee754/flt-32/e_powf.c (__powf): Likewise
31511 * sysdeps/ieee754/flt-32/w_log2f.c: New file.
31512 * sysdeps/ieee754/flt-32/w_logf.c: New file.
31513 * sysdeps/ieee754/flt-32/w_powf.c: New file.
31514 * sysdeps/i386/fpu/w_log2f.c: New file.
31515 * sysdeps/i386/fpu/w_logf.c: New file.
31516 * sysdeps/i386/fpu/w_powf.c: New file.
31517 * sysdeps/m68k/m680x0/fpu/w_log2f.c: New file.
31518 * sysdeps/m68k/m680x0/fpu/w_logf.c: New file.
31519 * sysdeps/m68k/m680x0/fpu/w_powf.c: New file.
31520
31521 2017-10-02 Szabolcs Nagy <szabolcs.nagy@arm.com>
31522 H.J. Lu <hongjiu.lu@intel.com>
31523
31524 * sysdeps/ieee754/flt-32/e_exp2f.c (__exp2f): Define without wrapper.
31525 * sysdeps/ieee754/flt-32/e_expf.c (__expf): Likewise
31526 * sysdeps/ieee754/flt-32/w_exp2f.c: New file.
31527 * sysdeps/ieee754/flt-32/w_expf.c: New file.
31528 * sysdeps/powerpc/powerpc64/fpu/multiarch/e_expf-ppc64.c: Update for
31529 the new expf code.
31530 * sysdeps/powerpc/powerpc64/fpu/multiarch/w_expf.c: New file.
31531 * sysdeps/powerpc/powerpc64/power8/fpu/w_expf.c: New file.
31532 * sysdeps/m68k/m680x0/fpu/w_exp2f.c: New file.
31533 * sysdeps/m68k/m680x0/fpu/w_expf.c: New file.
31534 * sysdeps/i386/fpu/w_exp2f.c: New file.
31535 * sysdeps/i386/fpu/w_expf.c: New file.
31536 * sysdeps/i386/i686/fpu/multiarch/w_expf.c: New file.
31537 * sysdeps/x86_64/fpu/w_expf.c: New file.
31538
31539 2017-10-02 Szabolcs Nagy <szabolcs.nagy@arm.com>
31540
31541 * math/Versions (logf): New libm symbol at GLIBC_2.27.
31542 (log2f): Likewise.
31543 (powf): Likewise.
31544 * math/w_log2f.c: New file.
31545 * math/w_logf.c: New file.
31546 * math/w_powf.c: New file.
31547 * math/w_log2f_compat.c (__log2f_compat): For compat symbol only.
31548 * math/w_logf_compat.c (__logf_compat): Likewise.
31549 * math/w_powf_compat.c (__powf_compat): Likewise.
31550 * sysdeps/ia64/fpu/e_log2f.S: Add versioned symbols.
31551 * sysdeps/ia64/fpu/e_logf.S: Likewise.
31552 * sysdeps/ia64/fpu/e_powf.S: Likewise.
31553 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Update.
31554 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
31555 * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
31556 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
31557 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
31558 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
31559 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
31560 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
31561 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
31562 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
31563 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
31564 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
31565 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist:
31566 Likewise.
31567 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
31568 Likewise.
31569 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist:
31570 Likewise.
31571 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist:
31572 Likewise.
31573 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
31574 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
31575 * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
31576 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
31577 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
31578 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist:
31579 Likewise.
31580 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist:
31581 Likewise.
31582 * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
31583 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
31584 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
31585
31586 2017-10-02 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
31587
31588 * sysdeps/powerpc/powerpc64/multiarch/Makefile
31589 (sysdep_routines): Add memrchr_power8.
31590 * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
31591 (memrchr): Add __memrchr_power8 to list of memrchr functions.
31592 * sysdeps/powerpc/powerpc64/multiarch/memrchr-power8.S:
31593 New file.
31594 * sysdeps/powerpc/powerpc64/multiarch/memrchr.c
31595 (memrchr): Add __memrchr_power8 to ifunc list.
31596 * sysdeps/powerpc/powerpc64/power8/memrchr.S: New file.
31597
31598 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
31599
31600 [BZ #18822]
31601 * sysdeps/unix/sysv/linux/posix_fadvise64.c
31602 (__posix_fadvise64_l64): Add Add libc_hidden_proto and
31603 libc_hidden_def.
31604 * sysdeps/unix/sysv/linux/posix_fallocate64.c
31605 (__posix_fallocate64_l64): Likewise.
31606
31607 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
31608
31609 [BZ #18822]
31610 * sysdeps/unix/sysv/linux/sched_setaffinity.c
31611 (__sched_setaffinity_new): Add libc_hidden_proto and
31612 libc_hidden_def.
31613
31614 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
31615
31616 [BZ #18822]
31617 * include/glob.h (__glob64): Add libc_hidden_proto.
31618 * sysdeps/unix/sysv/linux/glob64.c (__glob64): Add
31619 libc_hidden_def.
31620
31621 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
31622
31623 [BZ #18822]
31624 * sysdeps/unix/sysv/linux/getrlimit64.c (__new_getrlimit): Add
31625 attribute_hidden.
31626
31627 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
31628
31629 [BZ #18822]
31630 * stdlib/exit.h (__new_exitfn): Add attribute_hidden.
31631
31632 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
31633
31634 [BZ #18822]
31635 * mon/gmon.c (__moncontrol): Add libc_hidden_proto and
31636 libc_hidden_def.
31637
31638 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
31639
31640 [BZ #18822]
31641 * csu/version.c (__libc_print_version): Add attribute_hidden.
31642
31643 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
31644
31645 [BZ #18822]
31646 * include/libc-internal.h (__init_misc): Add attribute_hidden.
31647
31648 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
31649
31650 [BZ #18822]
31651 * include/fpu_control.h (__setfpucw): Add attribute_hidden.
31652
31653 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
31654
31655 [BZ #18822]
31656 * nscd/nscd_helper.c (__nis_hash): New prototype.
31657
31658 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
31659
31660 [BZ #18822]
31661 * include/termios.h (__tcgetattr): Add libc_hidden_proto.
31662 * sysdeps/unix/bsd/tcgetattr.c (__tcgetattr): Add
31663 libc_hidden_def.
31664 * sysdeps/unix/sysv/linux/tcgetattr.c (__tcgetattr): Likewise.
31665 * termios/tcgetattr.c (__tcgetattr): Likewise.
31666
31667 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
31668
31669 [BZ #18822]
31670 * include/sys/resource.h (__setrlimit): Add libc_hidden_proto.
31671 * resource/setrlimit.c (__setrlimit): Add libc_hidden_def.
31672 * sysdeps/mach/hurd/setrlimit.c (__setrlimit): Likewise.
31673 * sysdeps/unix/sysv/linux/setrlimit.c (__setrlimit): Likewise.
31674 * sysdeps/unix/sysv/linux/setrlimit64.c (__GI___setrlimit): New.
31675
31676 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
31677
31678 [BZ #18822]
31679 * include/monetary.h (__vstrfmon_l): Add attribute_hidden.
31680
31681 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
31682
31683 [BZ #18822]
31684 * include/sched.h (__sched_setparam): Add libc_hidden_proto.
31685 * posix/sched_setp.c (__sched_setparam): Add libc_hidden_def.
31686
31687 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
31688
31689 [BZ #18822]
31690 * intl/hash-string.h (__hash_string): Add attribute_hidden.
31691
31692 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
31693
31694 [BZ #18822]
31695 * include/mntent.h (__hasmntopt): Add libc_hidden_proto.
31696 * misc/mntent_r.c (__hasmntopt): Add libc_hidden_def.
31697
31698 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
31699
31700 [BZ #18822]
31701 * include/ifreq.h: New file.
31702 * sysdeps/generic/ifreq.h (__if_nextreq): Removed.
31703 (__ifreq): Likewise.
31704 * sysdeps/mach/hurd/ifreq.h (__if_nextreq): Removed.
31705 (__ifreq): Likewise.
31706
31707 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
31708
31709 [BZ #18822]
31710 * include/idna.h: New file.
31711 * inet/getnameinfo.c: Include <idna.h> instead of
31712 <libidn/idna.h>.
31713 (__idna_to_unicode_lzlz): Removed.
31714 * sysdeps/posix/getaddrinfo.c: Include <idna.h> instead of
31715 <libidn/idna.h>.
31716 (__idna_to_ascii_lz): Removed.
31717 (__idna_to_unicode_lzlz): Likewise.
31718
31719 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
31720
31721 [BZ #18822]
31722 * include/plural-exp.h: New file.
31723 * intl/plural-exp.c: Include <plural-exp.h> instead of
31724 "plural-exp.h".
31725
31726 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
31727
31728 [BZ #18822]
31729 * sysdeps/unix/sysv/linux/getsourcefilter.c: Include
31730 "getsourcefilter.h".
31731 * sysdeps/unix/sysv/linux/getsourcefilter.h: New file.
31732 * sysdeps/unix/sysv/linux/setsourcefilter.c: Include
31733 "getsourcefilter.h".
31734 (__get_sol): Removed.
31735
31736 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
31737
31738 [BZ #18822]
31739 * elf/dl-iteratephdr.c (hidden_proto (__dl_iterate_phdr)): Moved
31740 to ...
31741 * include/link.h (hidden_proto (__dl_iterate_phdr)): Here.
31742
31743 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
31744
31745 [BZ #18822]
31746 * sysdeps/unix/sysv/linux/getpt.c (__bsd_getpt): Add
31747 attribute_hidden.
31748
31749 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
31750
31751 [BZ #18822]
31752 * libio/iolibio.h (__fopen_maybe_mmap): Add attribute_hidden.
31753
31754 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
31755
31756 [BZ #18822]
31757 * include/search.h (__tdestroy): Add libc_hidden_proto.
31758 * misc/tsearch.c (__tdestroy): Add libc_hidden_def.
31759
31760 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
31761
31762 [BZ #18822]
31763 * include/assert.h (__assert_fail_base): Add attribute_hidden.
31764
31765 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
31766
31767 [BZ #18822]
31768 * sysdeps/unix/sysv/linux/include/sys/sysinfo.h (__sysinfo): Add
31769 attribute_hidden.
31770
31771 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
31772
31773 [BZ #18822]
31774 * include/signal.h (__kill): Add libc_hidden_proto.
31775 (__sigblock): Likewise.
31776 (__sigprocmask): Likewise.
31777 (__sigaltstack): Likewise.
31778 * signal/kill.c (__kill): Add libc_hidden_def.
31779 * signal/sigblock.c (__sigblock): Likewise.
31780 * signal/sigprocmask.c (__sigprocmask): Likewise.
31781 * sysdeps/mach/hurd/kill.c (__kill): Likewise.
31782 * sysdeps/mach/hurd/sigaltstack.c (__sigaltstack): Likewise.
31783 * sysdeps/mach/hurd/sigprocmask.c (__sigprocmask): Likewise.
31784 * sysdeps/posix/sigblock.c (__sigblock): Likewise.
31785 * sysdeps/unix/sysv/linux/alpha/sigprocmask.c (__sigprocmask):
31786 Likewise.
31787 * sysdeps/unix/sysv/linux/ia64/sigprocmask.c (__sigprocmask):
31788 Likewise.
31789 * sysdeps/unix/sysv/linux/s390/s390-64/sigprocmask.c
31790 (__sigprocmask): Likewise.
31791 * sysdeps/unix/sysv/linux/sigprocmask.c (__sigprocmask):
31792 Likewise.
31793 * /sysdeps/unix/sysv/linux/sparc/sparc64/sigprocmask.c
31794 (__sigprocmask): Likewise.
31795 * sysdeps/unix/sysv/linux/x86_64/sigprocmask.c (__sigprocmask):
31796 Likewise.
31797
31798 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
31799
31800 [BZ #18822]
31801 * include/string.h (__strsep): Add libc_hidden_proto.
31802 * string/strsep.c (__strsep): Add libc_hidden_def.
31803
31804 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
31805
31806 [BZ #18822]
31807 * posix/spawn_int.h (__posix_spawn_file_actions_realloc): Add
31808 attribute_hidden.
31809 (__spawni): Likewise.
31810
31811 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
31812
31813 [BZ #18822]
31814 * include/sys/mman.h (__mremap): Add libc_hidden_proto.
31815 * sysdeps/unix/sysv/linux/m68k/mremap.S (__mremap): Add
31816 libc_hidden_def.
31817
31818 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
31819
31820 [BZ #18822]
31821 * include/malloc.h (__malloc_check_init): Add attribute_hidden.
31822
31823 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
31824
31825 [BZ #18822]
31826 * include/sys/ioctl.h (__ioctl): Add libc_hidden_proto.
31827 * misc/ioctl.c (__ioctl): Add libc_hidden_def.
31828 * sysdeps/mach/hurd/ioctl.c (__ioctl): Likewise.
31829 * sysdeps/unix/sysv/linux/aarch64/ioctl.S (__ioctl): Likewise.
31830 * sysdeps/unix/sysv/linux/mips/mips64/n64/ioctl.S (__ioctl):
31831 Likewise.
31832 * sysdeps/unix/sysv/linux/powerpc/ioctl.c (__ioctl): Likewise.
31833 * sysdeps/unix/sysv/linux/tile/tilegx/ioctl.S (__ioctl): Likewise.
31834
31835 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
31836
31837 [BZ #18822]
31838 * intl/gettextP.h (__dcngettext): Add attribute_hidden.
31839 (__dcigettext): Likewise.
31840
31841 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
31842
31843 [BZ #18822]
31844 * include/sys/sysinfo.h (__get_nprocs_conf): Add
31845 libc_hidden_proto.
31846 (__get_nprocs): Likewise.
31847 (__get_phys_pages): Likewise.
31848 (__get_avphys_pages): Likewise.
31849 (__get_child_max): Add attribute_hidden.
31850 * misc/getsysstats.c (__get_nprocs_conf): Add libc_hidden_def.
31851 (__get_nprocs): Likewise.
31852 (__get_phys_pages): Likewise.
31853 (__get_avphys_pages): Likewise.
31854 * sysdeps/mach/getsysstats.c (__get_nprocs_conf): Add
31855 libc_hidden_def.
31856 (__get_nprocs): Likewise.
31857 (__get_phys_pages): Likewise.
31858 (__get_avphys_pages): Likewise.
31859 * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Add
31860 libc_hidden_def.
31861 (__get_nprocs_conf): Likewise.
31862 (__get_phys_pages): Likewise.
31863 (__get_avphys_pages): Likewise.
31864
31865 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
31866
31867 [BZ #18822]
31868 * sysdeps/unix/sysv/linux/netlinkaccess.h (__netlink_open): Add
31869 attribute_hidden.
31870 (__netlink_close): Likewise.
31871 (__netlink_free_handle): Likewise.
31872 (__netlink_request): Likewise.
31873
31874 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
31875
31876 [BZ #18822]
31877 * include/rpc/rpc.h (__rpc_thread_variables): Add
31878 attribute_hidden.
31879 (__rpc_thread_svc_cleanup): Likewise.
31880 (__rpc_thread_clnt_cleanup): Likewise.
31881 (__rpc_thread_key_cleanup): Likewise.
31882
31883 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
31884
31885 [BZ #18822]
31886 * include/sys/uio.h (__readv): Add libc_hidden_proto.
31887 (__writev): Likewise.
31888 * misc/readv.c (__readv): Add libc_hidden_def.
31889 * misc/writev.c (__writev): Likewise.
31890 * sysdeps/posix/readv.c (__readv): Likewise.
31891 * sysdeps/posix/writev.c (__writev): Likewise.
31892 * sysdeps/unix/sysv/linux/readv.c: Include <sys/uio.h>.
31893 (__readv): Likewise.
31894 * sysdeps/unix/sysv/linux/writev.c: Include <sys/uio.h>.
31895 (__writev): Likewise.
31896
31897 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
31898
31899 [BZ #18822]
31900 * include/regex.h (__re_compile_fastmap): Add attribute_hidden.
31901 (__regcomp): Add libc_hidden_proto.
31902 (__regexec): Likewise.
31903 (__regfree): Likewise.
31904 * posix/regcomp.c (__regcomp): Add libc_hidden_def.
31905 (__regfree): Likewise.
31906 * posix/regexec.c (__regexec): Likewise.
31907
31908 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
31909
31910 [BZ #18822]
31911 * include/utmp.h (__updwtmp): Add libc_hidden_proto.
31912 (__getutent): Likewise.
31913 (__getutid): Likewise.
31914 (__getutline): Likewise.
31915 (__pututline): Likewise.
31916 (__getutent_r): Likewise.
31917 (__getutid_r): Likewise.
31918 (__getutline_r): Likewise.
31919 (__utmpname): Add attribute_hidden.
31920 (__setutent): Likewise.
31921 (__endutent): Likewise.
31922 * login/getutent.c (__getutent): Add libc_hidden_def.
31923 * login/getutent_r.c (__getutent_r): Likewise.
31924 (__pututline): Likewise.
31925 * login/getutid.c (__getutid): Likewise.
31926 * login/getutid_r.c (__getutid_r): Likewise.
31927 * login/getutline.c (__getutline): Likewise.
31928 * login/getutline_r.c (__getutline_r): Likewise.
31929 * login/updwtmp.c (__updwtmp): Likewise.
31930
31931 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
31932
31933 [BZ #18822]
31934 * include/dirent.h (__opendir): Always add attribute_hidden.
31935 (__fdopendir): Likewise.
31936 (__closedir): Likewise.
31937 (__readdir): Likewise.
31938 (__readdir64): Add libc_hidden_proto.
31939 * sysdeps/mach/hurd/readdir64.c (__readdir64): Add libc_hidden_def.
31940 * sysdeps/unix/sysv/linux/i386/readdir64.c (__readdir64): Likewise.
31941 * sysdeps/unix/sysv/linux/readdir64.c (__readdir64): Likewise.
31942 * sysdeps/unix/sysv/linux/wordsize-64/readdir.c (__GI___readdir64):
31943 New alias.
31944
31945 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
31946
31947 [BZ #18822]
31948 * include/aliases.h (__getaliasbyname_r): Add attribute_hidden.
31949 * include/netdb.h (__gethostbyaddr_r): Likewise.
31950 (__gethostbyname_r): Likewise.
31951 (__gethostbyname2_r): Likewise.
31952 (__getnetbyaddr_r): Likewise.
31953 (__getnetbyname_r): Likewise.
31954 (__getservbyname_r): Likewise.
31955 (__getservbyport_r): Likewise.
31956 (__getprotobyname_r): Likewise.
31957 (__getprotobynumber_r): Likewise.
31958 (__getnetgrent_r): Likewise.
31959 * include/rpc/netdb.h (__getrpcbyname_r): Likewise.
31960 (__getrpcbynumber_r): Likewise.
31961 * nss/getXXbyYY.c (INTERNAL (REENTRANT_NAME)): Likewise.
31962
31963 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
31964
31965 [BZ #18822]
31966 * include/stdio.h (__fcloseall): Add attribute_hidden.
31967 (__getline): Likewise.
31968 (__path_search): Likewise.
31969 (__gen_tempname): Likewise.
31970 (__libc_message): Likewise.
31971 (__flockfile): Likewise.
31972 (__funlockfile): Likewise.
31973 (__fxprintf): Likewise.
31974 (__fxprintf_nocancel): Likewise.
31975
31976 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
31977
31978 [BZ #18822]
31979 * include/gshadow.h (__fgetsgent_r): Add attribute_hidden.
31980 (__sgetsgent_r): Likewise.
31981
31982 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
31983
31984 [BZ #18822]
31985 * include/sys/statfs.h (__fstatfs): Add attribute_hidden.
31986 (__statfs64): Likewise.
31987 (__fstatfs64): Likewise.
31988 * include/sys/statvfs.h (__statvfs64): Likewise.
31989 (__fstatvfs64): Likewise.
31990 * sysdeps/unix/sysv/linux/pathconf.h (__statfs_link_max): Likewise.
31991 (__statfs_filesize_max): Likewise.
31992 (__statfs_symlinks): Likewise.
31993 (__statfs_chown_restricted): Likewise.
31994
31995 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
31996
31997 [BZ #18822]
31998 * include/time.h (__tzstring): Add attribute_hidden.
31999 (__tzfile_read): Likewise.
32000 (__tzfile_compute): Likewise.
32001 (__tzfile_default): Likewise.
32002 (__tzset_parse_tz): Likewise.
32003 (__offtime): Likewise.
32004 (__asctime_r): Likewise.
32005 (__tzset): Likewise.
32006 (__tz_convert): Likewise.
32007 (__getdate_r): Likewise.
32008 (__getclktck): Likewise.
32009
32010 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
32011
32012 [BZ #18822]
32013 * nscd/nscd-client.h (__nscd_get_map_ref): Add attribute_hidden.
32014 (__nscd_unmap): Likewise.
32015 (__nscd_cache_search): Likewise.
32016 (__nscd_get_nl_timestamp): Likewise.
32017 (__nscd_getpwnam_r): Likewise.
32018 (__nscd_getpwuid_r): Likewise.
32019 (__nscd_getgrnam_r): Likewise.
32020 (__nscd_getgrgid_r): Likewise.
32021 (__nscd_gethostbyname_r): Likewise.
32022 (__nscd_gethostbyname2_r): Likewise.
32023 (__nscd_gethostbyaddr_r): Likewise.
32024 (__nscd_getai): Likewise.
32025 (__nscd_getgrouplist): Likewise.
32026 (__nscd_getservbyname_r): Likewise.
32027 (__nscd_getservbyport_r): Likewise.
32028 (__nscd_innetgr): Likewise.
32029 (__nscd_setnetgrent): Likewise.
32030
32031 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
32032
32033 [BZ #18822]
32034 * include/gmp.h: Declare internal functions only if _ISOMAC is
32035 undefined.
32036 (__mpn_extract_double): Add attribute_hidden.
32037 (__mpn_extract_long_double): Likewise.
32038 (__mpn_extract_float128): Likewise.
32039 (__mpn_construct_float): Likewise.
32040 (__mpn_construct_double): Likewise.
32041 (__mpn_construct_long_double): Likewise.
32042 (__mpn_construct_float128): Likewise.
32043 (mpn_add_1): Likewise.
32044 (mpn_addmul_1): Likewise.
32045 (mpn_add_n): Likewise.
32046 (mpn_cmp): Likewise.
32047 (mpn_divrem): Likewise.
32048 (mpn_lshift): Likewise.
32049 (mpn_mul): Likewise.
32050 (mpn_mul_1): Likewise.
32051 (mpn_rshift): Likewise.
32052 (mpn_sub_1): Likewise.
32053 (mpn_submul_1): Likewise.
32054 (mpn_sub_n): Likewise.
32055
32056 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
32057
32058 [BZ #18822]
32059 * include/wchar.h (__wcsnlen): Add attribute_hidden.
32060 (__wcscat): Likewise.
32061 (__btowc): Likewise.
32062 (__wcrtomb): Likewise.
32063 (__mbsrtowcs): Likewise.
32064 (__wcsrtombs): Likewise.
32065 (__mbsnrtowcs): Likewise.
32066 (__wcsnrtombs): Likewise.
32067 (__wcsncpy): Likewise.
32068 (__wcpncpy): Likewise.
32069 (__wmemcpy): Likewise.
32070 (__wmempcpy): Likewise.
32071 (__wmemmove): Likewise.
32072 (__wcschrnul): Likewise.
32073 (__vfwscanf): Likewise.
32074 (__vswprintf): Likewise.
32075 (__fwprintf): Likewise.
32076 (__vfwprintf): Likewise.
32077
32078 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
32079
32080 [BZ #18822]
32081 * include/grp.h (__fgetgrent_r): Add attribute_hidden.
32082 (__getgrgid_r): Likewise.
32083 (__getgrnam_r): Likewise.
32084 * include/pwd.h (__getpwuid_r): Likewise.
32085 (__getpwnam_r): Likewise.
32086 (__fgetpwent_r): Likewise.
32087 * include/shadow.h (__getspnam_r): Likewise.
32088 (__sgetspent_r): Likewise.
32089 (__fgetspent_r): Likewise.
32090
32091 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
32092
32093 [BZ #18822]
32094 * include/unistd.h (__access): Add attribute_hidden.
32095 (__lseek64): Likewise.
32096 (__libc_pread64): Likewise.
32097 (__pipe2): Likewise.
32098 (__sleep): Likewise.
32099 (__chdir): Likewise.
32100 (__fchdir): Likewise.
32101 (__getcwd): Likewise.
32102 (__rmdir): Likewise.
32103 (__execvpe): Likewise.
32104 (__execve): Likewise.
32105 (__setsid): Likewise.
32106 (__getuid): Likewise.
32107 (__geteuid): Likewise.
32108 (__getgid): Likewise.
32109 (__getegid): Likewise.
32110 (__getgroups): Likewise.
32111 (__group_member): Likewise.
32112 (__ttyname_r): Likewise.
32113 (__isatty): Likewise.
32114 (__readlink): Likewise.
32115 (__unlink): Likewise.
32116 (__gethostname): Likewise.
32117 (__profil): Likewise.
32118 (__getdtablesize): Likewise.
32119 (__brk): Likewise.
32120 (__ftruncate): Likewise.
32121 (__ftruncate64): Likewise.
32122
32123 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
32124
32125 [BZ #18822]
32126 * argp/argp-fmtstream.c: Include <argp-fmtstream.h>.
32127 * argp/argp-fs-xinl.c: Likewise.
32128 * argp/argp-help.c: Include <argp.h> and <argp-fmtstream.h>.
32129 * argp/argp-parse.c: Include <argp.h>.
32130 * argp/argp-xinl.c: Likewise.
32131 * include/argp-fmtstream.h: New file.
32132 * include/argp.h (__argp_error): Add attribute_hidden.
32133 (__argp_failure): Likewise.
32134 (__argp_input): Likewise.
32135 (__argp_state_help): Likewise.
32136
32137 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
32138
32139 [BZ #18822]
32140 * include/wchar.h (____wcstof_l_internal): New prototype.
32141 (____wcstod_l_internal): Likewise.
32142 (____wcstold_l_internal): Likewise.
32143 (____wcstol_l_internal): Likewise.
32144 (____wcstoul_l_internal): Likewise.
32145 (____wcstoll_l_internal): Likewise.
32146 (____wcstoull_l_internal): Likewise.
32147 (____wcstof128_l_internal): Likewise.
32148 * sysdeps/ieee754/float128/wcstof128.c
32149 (____wcstof128_l_internal): Removed.
32150 * sysdeps/ieee754/float128/wcstof128_l.c
32151 (____wcstof128_l_internal): Likewise.
32152 * wcsmbs/wcstod.c (____wcstod_l_internal): Likewise.
32153 * wcsmbs/wcstod_l.c (____wcstod_l_internal): Likewise.
32154 * wcsmbs/wcstof.c (____wcstof_l_internal): Likewise.
32155 * wcsmbs/wcstof_l.c (____wcstof_l_internal): Likewise.
32156 * wcsmbs/wcstol_l.c (____wcstol_l_internal): Likewise.
32157 * wcsmbs/wcstold.c (____wcstold_l_internal): Likewise.
32158 * wcsmbs/wcstold_l.c (____wcstold_l_internal): Likewise.
32159 * wcsmbs/wcstoll_l.c (____wcstoll_l_internal): Likewise.
32160 * wcsmbs/wcstoul_l.c (____wcstoul_l_internal): Likewise.
32161 * wcsmbs/wcstoull_l.c (____wcstoull_l_internal): Likewise.
32162
32163 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
32164
32165 [BZ #18822]
32166 * sysdeps/unix/sysv/linux/fstatvfs.c: Include "internal_statvfs.h"
32167 instead of <sys/statvfs.h>.
32168 (__internal_statvfs): Removed.
32169 * sysdeps/unix/sysv/linux/fstatvfs64.c Include "internal_statvfs.h"
32170 instead of <sys/statvfs.h>.
32171 (__internal_statvfs64): Removed.
32172 * sysdeps/unix/sysv/linux/internal_statvfs.c: Include
32173 "internal_statvfs.h" instead of <sys/statvfs.h>.
32174 * sysdeps/unix/sysv/linux/internal_statvfs.h: New file.
32175 * sysdeps/unix/sysv/linux/statvfs.c Include "internal_statvfs.h"
32176 instead of <sys/statvfs.h>.
32177 (__internal_statvfs): Removed.
32178 * sysdeps/unix/sysv/linux/statvfs64.c Include "internal_statvfs.h"
32179 instead of <sys/statvfs.h>.
32180 (__internal_statvfs64): Removed.
32181
32182 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
32183
32184 [BZ #18822]
32185 * iconv/gconv_int.h (__gconv_open): Add attribute_hidden.
32186 (__gconv_close): Likewise.
32187 (__gconv): Likewise.
32188 (__gconv_find_transform): Likewise.
32189 (__gconv_lookup_cache): Likewise.
32190 (__gconv_compare_alias_cache): Likewise.
32191 (__gconv_load_cache): Likewise.
32192 (__gconv_get_path): Likewise.
32193 (__gconv_close_transform): Likewise.
32194 (__gconv_release_cache): Likewise.
32195 (__gconv_find_shlib): Likewise.
32196 (__gconv_release_shlib): Likewise.
32197 (__gconv_get_builtin_trans): Likewise.
32198 (__gconv_compare_alias): Likewise.
32199 * include/dlfcn.h (_dlerror_run): Likewise.
32200 * include/stdio.h (__fortify_fail_abort): Likewise.
32201 * include/time.h (__tz_compute): Likewise.
32202 (__strptime_internal): Likewise.
32203 * intl/gettextP.h (_nl_find_domain): Likewise.
32204 (_nl_load_domain): Likewise.
32205 (_nl_find_msg): Likewise.
32206 * intl/plural-exp.h (FREE_EXPRESSION): Likewise.
32207 (EXTRACT_PLURAL_EXPRESSION): Likewise.
32208 * locale/coll-lookup.h (__collidx_table_lookup): Likewise.
32209 * resolv/gai_misc.h (__gai_enqueue_request): Likewise.
32210 (__gai_find_request): Likewise.
32211 (__gai_remove_request): Likewise.
32212 (__gai_notify): Likewise.
32213 (__gai_notify_only): Likewise.
32214 * sysdeps/generic/aio_misc.h (__aio_sigqueue): Likewise.
32215 * sysdeps/generic/ldsodefs.h (_dl_fini): Likewise.
32216 (_dl_non_dynamic_init): Likewise.
32217 (_dl_aux_init): Likewise.
32218 * sysdeps/i386/machine-gmon.h (mcount_internal): Likewise.
32219 * sysdeps/unix/sysv/linux/i386/olddirent.h (__old_getdents64):
32220 Likewise.
32221 * wcsmbs/wcsmbsload.h (__wcsmbs_load_conv): Likewise.
32222 (__wcsmbs_clone_conv): Likewise.
32223 (__wcsmbs_named_conv): Likewise.
32224
32225 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
32226
32227 [BZ #18822]
32228 * include/stdlib.h (__random): Add attribute_hidden.
32229 (__random_r): Likewise.
32230 (__srandom_r): Likewise.
32231 (__initstate_r): Likewise.
32232 (__setstate_r): Likewise.
32233 (__erand48_r): Likewise.
32234 (__nrand48_r): Likewise.
32235 (__jrand48_r): Likewise.
32236 (__srand48_r): Likewise.
32237 (__seed48_r): Likewise.
32238 (__lcong48_r): Likewise.
32239 (__drand48_iterate): Likewise.
32240 (__setenv): Likewise.
32241 (__unsetenv): Likewise.
32242 (__clearenv): Likewise.
32243 (__ptsname_r): Likewise.
32244 (__posix_openpt): Likewise.
32245 (__add_to_environ): Likewise.
32246 (__realpath): Add libc_hidden_proto.
32247 (__ecvt_r): Likewise.
32248 (__fcvt_r): Likewise.
32249 (__qecvt_r): Likewise.
32250 (__qfcvt_r): Likewise.
32251 * misc/efgcvt_r.c (cvt_symbol_1): Add libc_hidden_def (local).
32252 * stdlib/canonicalize.c (__realpath): Add libc_hidden_def.
32253
32254 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
32255
32256 [BZ #18822]
32257 * include/stdlib.h (__ptsname_internal): Add attribute_hidden.
32258 * include/time.h (__mktime_internal): Likewise.
32259 * libio/iolibio.h (__fopen_internal): Likewise.
32260
32261 2017-10-01 John David Anglin <danglin@gcc.gnu.org>
32262
32263 * sysdeps/unix/sysv/linux/hppa/getcontext.S (__getcontext): Save return
32264 pointer in frame.
32265 * sysdeps/unix/sysv/linux/hppa/setcontext.S (__setcontext): Likewise.
32266 Correct offset used to restore PIC register.
32267
32268 2017-09-30 John David Anglin <danglin@gcc.gnu.org>
32269
32270 [BZ libc/22165]
32271 * sysdeps/unix/sysv/linux/hppa/getcontext.S (__getcontext): Use PIC
32272 code to load address of __getcontext_ret when generating PIC code.
32273
32274 2017-09-30 H.J. Lu <hongjiu.lu@intel.com>
32275
32276 * elf/Makefile (tests-static-internal): Add
32277 tst-tls1-static-non-pie.
32278 (LDFLAGS-tst-tls1-static-non-pie): New.
32279 * elf/tst-tls1-static-non-pie.c: New file.
32280
32281 2017-09-29 Joseph Myers <joseph@codesourcery.com>
32282
32283 * sysdeps/ieee754/dbl-64/s_asinh.c: Include <libm-alias-double.h>.
32284 (asinh): Define using libm_alias_double.
32285 * sysdeps/ieee754/dbl-64/s_cbrt.c: Include <libm-alias-double.h>.
32286 (cbrt): Define using libm_alias_double.
32287 * sysdeps/ieee754/dbl-64/s_copysign.c: Include
32288 <libm-alias-double.h>.
32289 (copysign): Define using libm_alias_double.
32290 * sysdeps/ieee754/dbl-64/s_erf.c: Include <libm-alias-double.h>.
32291 (erf): Define using libm_alias_double.
32292 (erfc): Likewise.
32293 * sysdeps/ieee754/dbl-64/s_expm1.c: Include <libm-alias-double.h>.
32294 (expm1): Define using libm_alias_double.
32295 * sysdeps/ieee754/dbl-64/s_fabs.c: Include <libm-alias-double.h>.
32296 (fabs): Define using libm_alias_double.
32297 * sysdeps/ieee754/dbl-64/s_fromfp.c (fromfp): Define using
32298 libm_alias_double.
32299 * sysdeps/ieee754/dbl-64/s_fromfp_main.c: Include
32300 <libm-alias-double.h>.
32301 * sysdeps/ieee754/dbl-64/s_fromfpx.c (fromfpx): Define using
32302 libm_alias_double.
32303 * sysdeps/ieee754/dbl-64/s_getpayload.c: Include
32304 <libm-alias-double.h>.
32305 (getpayload): Define using libm_alias_double.
32306 * sysdeps/ieee754/dbl-64/s_llrint.c: Include
32307 <libm-alias-double.h>.
32308 (llrint): Define using libm_alias_double.
32309 * sysdeps/ieee754/dbl-64/s_lrint.c: Include <libm-alias-double.h>.
32310 (lrint): Define using libm_alias_double.
32311 * sysdeps/ieee754/dbl-64/s_nextup.c: Include
32312 <libm-alias-double.h>.
32313 (nextup): Define using libm_alias_double.
32314 * sysdeps/ieee754/dbl-64/s_roundeven.c: Include
32315 <libm-alias-double.h>.
32316 (roundeven): Define using libm_alias_double.
32317 * sysdeps/ieee754/dbl-64/s_setpayload.c (setpayload): Define using
32318 libm_alias_double.
32319 * sysdeps/ieee754/dbl-64/s_setpayload_main.c: Include
32320 <libm-alias-double.h>.
32321 * sysdeps/ieee754/dbl-64/s_setpayloadsig.c (setpayloadsig): Define
32322 using libm_alias_double.
32323 * sysdeps/ieee754/dbl-64/s_sin.c: Include <libm-alias-double.h>.
32324 (cos): Define using libm_alias_double.
32325 (sin): Likewise.
32326 * sysdeps/ieee754/dbl-64/s_sincos.c: Include
32327 <libm-alias-double.h>.
32328 (sincos): Define using libm_alias_double.
32329 * sysdeps/ieee754/dbl-64/s_tanh.c: Include <libm-alias-double.h>.
32330 (tanh): Define using libm_alias_double.
32331 * sysdeps/ieee754/dbl-64/s_totalorder.c: Include
32332 <libm-alias-double.h>.
32333 (totalorder): Define using libm_alias_double.
32334 * sysdeps/ieee754/dbl-64/s_totalordermag.c: Include
32335 <libm-alias-double.h>.
32336 (totalordermag): Define using libm_alias_double.
32337 * sysdeps/ieee754/dbl-64/s_ufromfp.c (ufromfp): Define using
32338 libm_alias_double.
32339 * sysdeps/ieee754/dbl-64/s_ufromfpx.c (ufromfpx): Define using
32340 libm_alias_double.
32341 * sysdeps/ieee754/dbl-64/wordsize-64/s_getpayload.c: Include
32342 <libm-alias-double.h>.
32343 (getpayload): Define using libm_alias_double.
32344 * sysdeps/ieee754/dbl-64/wordsize-64/s_roundeven.c: Include
32345 <libm-alias-double.h>.
32346 (roundeven): Define using libm_alias_double.
32347 * sysdeps/ieee754/dbl-64/wordsize-64/s_setpayload_main.c: Include
32348 <libm-alias-double.h>.
32349 * sysdeps/ieee754/dbl-64/wordsize-64/s_totalorder.c: Include
32350 <libm-alias-double.h>.
32351 (totalorder): Define using libm_alias_double.
32352 * sysdeps/ieee754/dbl-64/wordsize-64/s_totalordermag.c: Include
32353 <libm-alias-double.h>.
32354 (totalordermag): Define using libm_alias_double.
32355 * sysdeps/ieee754/ldbl-opt/s_copysign.c (copysignl): Only define
32356 libc compat symbol here.
32357 * sysdeps/ieee754/ldbl-opt/s_asinh.c: Remove file.
32358 * sysdeps/ieee754/ldbl-opt/s_cbrt.c: Likewise.
32359 * sysdeps/ieee754/ldbl-opt/s_erf.c: Likewise.
32360 * sysdeps/ieee754/ldbl-opt/s_expm1.c: Likewise.
32361 * sysdeps/ieee754/ldbl-opt/s_fabs.c: Likewise.
32362 * sysdeps/ieee754/ldbl-opt/s_llrint.c: Likewise.
32363 * sysdeps/ieee754/ldbl-opt/s_lrint.c: Likewise.
32364 * sysdeps/ieee754/ldbl-opt/s_sin.c: Likewise.
32365 * sysdeps/ieee754/ldbl-opt/s_sincos.c: Likewise.
32366 * sysdeps/ieee754/ldbl-opt/s_tanh.c: Likewise.
32367
32368 2017-09-29 H.J. Lu <hongjiu.lu@intel.com>
32369
32370 * sysdeps/arm/dl-machine.h (elf_machine_load_address): Use
32371 _dl_relocate_static_pie instead of _dl_start to compute load
32372 address in static PIE. Return 0 if _DYNAMIC is undefined for
32373 static executable.
32374
32375 2017-09-29 H.J. Lu <hongjiu.lu@intel.com>
32376
32377 * sysdeps/mips/dl-machine.h (elf_machine_dynamic): Return 0 if
32378 _DYNAMIC is undefined for static executable.
32379
32380 2017-09-29 H.J. Lu <hongjiu.lu@intel.com>
32381
32382 * sysdeps/arm/start.S (_start): Check PIC instead of SHARED.
32383
32384 2017-09-29 Joseph Myers <joseph@codesourcery.com>
32385
32386 * sysdeps/x86_64/fpu/libm-test-ulps: Update.
32387
32388 2017-09-29 Wilco Dijkstra <wdijkstr@arm.com>
32389
32390 * sysdeps/ieee754/dbl-64/e_lgamma_r.c
32391 (__ieee754_lgamma_r): Use fabs rather than __fabs.
32392 * sysdeps/ieee754/dbl-64/e_log10.c (__ieee754_log10): Likewise.
32393 * sysdeps/ieee754/dbl-64/e_log2.c (__ieee754_log2): Likewise.
32394 * sysdeps/ieee754/flt-32/e_lgammaf_r.c
32395 (__ieee754_lgammaf_r): Use fabsf rather than __fabsf.
32396 * sysdeps/ieee754/flt-32/e_log10f.c (__ieee754_log10f): Likewise.
32397 * sysdeps/ieee754/flt-32/e_log2f.c (__ieee754_log2f): Likewise.
32398 * sysdeps/ieee754/ldbl-128/e_lgammal_r.c
32399 (__ieee754_lgammal_r): Use fabsl rather than __fabsl.
32400 * sysdeps/ieee754/ldbl-128/e_log10l.c (__ieee754_log10l): Likewise.
32401 * sysdeps/ieee754/ldbl-128/e_log2l.c (__ieee754_log2l): Likewise.
32402 * sysdeps/ieee754/ldbl-128ibm/e_lgammal_r.c
32403 (__ieee754_lgammal_r): Use fabsl rather than __fabsl.
32404 * sysdeps/ieee754/ldbl-128ibm/e_log10l.c (__ieee754_log10l): Likewise.
32405 * sysdeps/ieee754/ldbl-128ibm/e_log2l.c (__ieee754_log2l): Likewise.
32406 * sysdeps/powerpc/nofpu/Makefile: Add -fno-builtin-fabsl for BZ #29253.
32407
32408 2017-09-29 Wilco Dijkstra <wdijkstr@arm.com>
32409
32410 * math/bits/cmathcalls.h (cimag): Remove inline.
32411 (creal): Remove inline.
32412 (conj): Remove inline.
32413
32414 2017-09-29 Szabolcs Nagy <szabolcs.nagy@arm.com>
32415
32416 * math/Makefile (type-float-routines): Add e_powf_log2_data.
32417 * sysdeps/ieee754/flt-32/e_powf.c: New implementation.
32418 * sysdeps/ieee754/flt-32/e_powf_log2_data.c: New file.
32419 * sysdeps/ieee754/flt-32/math_config.h (__powf_log2_data): Define.
32420 (issignalingf_inline): Likewise.
32421 (POWF_LOG2_TABLE_BITS): Likewise.
32422 (POWF_LOG2_POLY_ORDER): Likewise.
32423 (POWF_SCALE_BITS): Likewise.
32424 (POWF_SCALE): Likewise.
32425 * sysdeps/i386/fpu/e_powf_log2_data.c: New file.
32426 * sysdeps/ia64/fpu/e_powf_log2_data.c: New file.
32427 * sysdeps/m68k/m680x0/fpu/e_powf_log2_data.c: New file.
32428
32429 2017-09-29 Szabolcs Nagy <szabolcs.nagy@arm.com>
32430
32431 * math/Makefile (type-float-routines): Add e_log2f_data.
32432 * sysdeps/ieee754/flt-32/e_log2f.c: New implementation.
32433 * sysdeps/ieee754/flt-32/e_log2f_data.c: New file.
32434 * sysdeps/ieee754/flt-32/math_config.h (__log2f_data): Define.
32435 (LOG2F_TABLE_BITS, LOG2F_POLY_ORDER): Define.
32436 * sysdeps/i386/fpu/e_log2f_data.c: New file.
32437 * sysdeps/ia64/fpu/e_log2f_data.c: New file.
32438 * sysdeps/m68k/m680x0/fpu/e_log2f_data.c: New file.
32439
32440 2017-09-29 Szabolcs Nagy <szabolcs.nagy@arm.com>
32441
32442 * math/Makefile (type-float-routines): Add e_logf_data.
32443 * sysdeps/ieee754/flt-32/e_logf.c: New implementation.
32444 * sysdeps/ieee754/flt-32/e_logf_data.c: New file.
32445 * sysdeps/ieee754/flt-32/math_config.h (__logf_data): Define.
32446 (LOGF_TABLE_BITS, LOGF_POLY_ORDER): Define.
32447 * sysdeps/i386/fpu/e_logf_data.c: New file.
32448 * sysdeps/ia64/fpu/e_logf_data.c: New file.
32449 * sysdeps/m68k/m680x0/fpu/e_logf_data.c: New file.
32450
32451 2017-09-28 H.J. Lu <hongjiu.lu@intel.com>
32452
32453 * sysdeps/i386/dl-machine.h (elf_machine_load_address): Allow
32454 undefined _DYNAMIC in PIE libc.a.
32455 * sysdeps/x86_64/dl-machine.h (elf_machine_load_address):
32456 Likewse.
32457
32458 2017-09-28 Wilco Dijkstra <wdijkstr@arm.com>
32459
32460 * sysdeps/alpha/fpu/bits/mathinline.h: Delete file.
32461 * sysdeps/ia64/fpu/bits/mathinline.h: Delete file.
32462 * sysdeps/m68k/coldfire/fpu/bits/mathinline.h: Delete file.
32463 * sysdeps/m68k/m680x0/fpu/bits/mathinline.h: (__signbitf): Remove.
32464 (__signbit): Remove.
32465 (__signbitl): Remove.
32466 * sysdeps/powerpc/bits/mathinline.h (__signbitf): Remove.
32467 (__signbit): Remove.
32468 (__signbitl): Remove.
32469 * sysdeps/s390/fpu/bits/mathinline.h: (__signbitf): Remove.
32470 (__signbit): Remove.
32471 (__signbitl): Remove.
32472 * sysdeps/sparc/fpu/bits/mathinline.h (__signbitf): Remove.
32473 (__signbit): Remove.
32474 (__signbitl): Remove.
32475 * sysdeps/tile/bits/mathinline.h: Delete file.
32476 * sysdeps/x86/fpu/bits/mathinline.h (__signbitf): Remove.
32477 (__signbit): Remove.
32478 (__signbitl): Remove.
32479
32480 2017-09-28 Wilco Dijkstra <wdijkstr@arm.com>
32481
32482 * math/math.h: Improve handling of C99 isgreater macros.
32483 * sysdeps/alpha/fpu/bits/mathinline.h: Remove isgreater macros.
32484 * sysdeps/m68k/m680x0/fpu/bits/mathinline.h: Likewise.
32485 * sysdeps/powerpc/bits/mathinline.h: Likewise.
32486 * sysdeps/sparc/fpu/bits/mathinline.h: Likewise.
32487 * sysdeps/x86/fpu/bits/mathinline.h: Likewise.
32488
32489 2017-09-28 Szabolcs Nagy <szabolcs.nagy@arm.com>
32490
32491 * sysdeps/aarch64/libm-test-ulps: Update.
32492
32493 2017-09-28 Joseph Myers <joseph@codesourcery.com>
32494
32495 [BZ #22225]
32496 * sysdeps/ieee754/dbl-64/s_nearbyint.c (__nearbyint): Use
32497 math_opt_barrier on argument when doing arithmetic on it.
32498 * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c (__nearbyint):
32499 Likewise. Use math_force_eval not math_opt_barrier after
32500 arithmetic.
32501 * sysdeps/ieee754/flt-32/s_nearbyintf.c (__nearbyintf): Use
32502 math_opt_barrier on argument when doing arithmetic on it.
32503 * sysdeps/ieee754/ldbl-128/s_nearbyintl.c (__nearbyintl):
32504 Likewise.
32505
32506 2017-09-27 H.J. Lu <hongjiu.lu@intel.com>
32507
32508 * sysdeps/unix/sysv/linux/ifaddrs.c (__getifaddrs): Add
32509 libc_hidden_def.
32510 (__freeifaddrs): Likewise.
32511
32512 2017-09-27 Samuel Thibault <samuel.thibault@ens-lyon.org>
32513
32514 * include/dirent.h (__dirfd): New declaration.
32515 * dirent/dirfd.c (dirfd): Rename to __dirfd, and redefine as weak
32516 alias.
32517 * sysdeps/posix/dirfd/dirfd.c (dirfd): Likewise.
32518 * sysdeps/mach/hurd/dirfd.c (dirfd): Likewise.
32519 * io/ftw.c (open_dir_stream, ftw_dir): Use __dirfd instead of dirfd.
32520 * include/unistd.h (__revoke): New declaration.
32521 * misc/revoke.c (revoke): Rename to __revoke, and redefine as weak
32522 alias.
32523 * sysdeps/mach/hurd/revoke.c (revoke): Likewise.
32524 * sysdeps/unix/bsd/unlockpt.c (unlockpt): Use __revoke instead of
32525 revoke.
32526 * include/dirent.h (__seekdir): New declaration.
32527 * sysdeps/mach/hurd/seekdir.c (seekdir): Rename to __seekdir and
32528 redefine as weak alias.
32529 * sysdeps/mach/hurd/rewinddir.c (__rewinddir): Use __seekdir instead
32530 of seekdir.
32531 * include/ifaddrs.h (__getifaddrs, __freeifaddrs): New declarations,
32532 and use libc_hidden_def on them.
32533 * inet/ifaddrs.c (__getifaddrs, __freeifaddrs): Use libc_hidden_def on
32534 them.
32535 * sysdeps/gnu/ifaddrs.c (__getifaddrs, __freeifaddrs): Likewise.
32536 * inet/check_pf.c (__check_pf): Use __getifaddrs and __freeifaddrs
32537 instead of getifaddrs and freeifaddrs.
32538
32539 2017-09-26 H.J. Lu <hongjiu.lu@intel.com>
32540
32541 [BZ #18822]
32542 * dlfcn/modatexit.c (foo): Remove __dso_handle check.
32543 * dlfcn/modcxaatexit.c: Include <dso_handle.h>.
32544 (__dso_handle): Remove declaration.
32545 * dlfcn/tstatexit.c (__dso_handle): Removed.
32546 (main): Don't check __dso_handle.
32547 * dlfcn/tstcxaatexit.c (__dso_handle): Removed.
32548 (main): Don't check __dso_handle.
32549 * include/dso_handle.h: New file.
32550 * malloc/mtrace.c: Include <dso_handle.h>.
32551 (mtrace): Pass __dso_handle directly.
32552 * nptl/pthread_atfork.c: Include <dso_handle.h>.
32553 (__dso_handle): Remove declaration.
32554 (__pthread_atfork): Pass __dso_handle directly.
32555 * nptl/tst-atfork2mod.c: Include <dso_handle.h>.
32556 (__dso_handle): Removed.
32557 * posix/wordexp-test.c: Include <dso_handle.h>.
32558 (__dso_handle): Remove declaration.
32559 (__app_register_atfork): Pass __dso_handle directly.
32560 * stdlib/at_quick_exit.c: Include <dso_handle.h>.
32561 (__dso_handle): Remove declaration.
32562 (at_quick_exit): Pass __dso_handle directly.
32563 * stdlib/atexit.c: Include <dso_handle.h>.
32564 (__dso_handle): Remove declaration.
32565 (atexit): Pass __dso_handle directly.
32566 * stdlib/tst-tls-atexit-lib.c: Include <dso_handle.h>.
32567 (__dso_handle): Removed.
32568
32569 2017-09-26 Joseph Myers <joseph@codesourcery.com>
32570
32571 * sysdeps/unix/make-syscalls.sh: Use __ifunc to define symbols
32572 using VDSO.
32573
32574 2017-09-26 Alexey Makhalov <amakhalov@vmware.com>
32575
32576 * elf/dl-tunables.c (do_tunable_update_val): Range checking fix.
32577 * scripts/gen-tunables.awk: Set unspecified minval and/or maxval
32578 values to correct default value for given type.
32579
32580 2017-09-26 H.J. Lu <hongjiu.lu@intel.com>
32581
32582 [BZ #22101]
32583 * elf/Makefile (tests): Add tst-debug1.
32584 ($(objpfx)tst-debug1): New.
32585 ($(objpfx)tst-debug1.out): Likewise.
32586 ($(objpfx)tst-debug1mod1.so): Likewise.
32587 * elf/dl-load.c (_dl_map_object_from_fd): Skip PT_DYNAMIC segment
32588 with p_filesz == 0.
32589 * elf/tst-debug1.c: New file.
32590
32591 2017-09-26 Joseph Myers <joseph@codesourcery.com>
32592
32593 * sysdeps/sparc/sparc-ifunc.h [!__ASSEMBLER__] (sparc_libm_ifunc):
32594 Define using __ifunc.
32595
32596 2017-09-26 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
32597
32598 * sysdeps/powerpc/fpu/libm-test-ulps: Regenerate expf() and
32599 exp2f() values.
32600
32601 2017-09-26 Joseph Myers <joseph@codesourcery.com>
32602
32603 [BZ #22156]
32604 * sysdeps/ia64/stackinfo.h (DEFAULT_STACK_PERMS): Likewise.
32605
32606 2017-09-26 Florian Weimer <fweimer@redhat.com>
32607
32608 * resolv/Makefile (tests-internal): Fix typo in comment.
32609
32610 2017-09-26 Florian Weimer <fweimer@redhat.com>
32611
32612 * resolv/nss_dns/dns-host.c: Fix typo in comment.
32613
32614 2017-09-25 Adhemerval Zanella <adhemerval.zanella@linaro.org>
32615
32616 * lib/malloc/scratch_buffer.h (struct scratch_buffer):
32617 Use an union instead of a max_align_t array for __space,
32618 so that __space is the same size on all platforms.
32619 * malloc/scratch_buffer_grow_preserve.c
32620 (__libc_scratch_buffer_grow_preserve): Likewise.
32621
32622 [BZ #22183]
32623 * include/gnu-versions.h (_GNU_GLOB_INTERFACE_VERSION): Increase
32624 version to 2.
32625 * posix/Makefile (routines): Add glob-lstat-compat and
32626 glob64-lstat-compat.
32627 * posix/Versions (GLIBC_2.27, glob, glob64): Add symbol version.
32628 * posix/glob-lstat-compat.c: New file.
32629 * posix/glob64-lstat-compat.c: Likewise.
32630 * posix/tst-glob_lstat_compat.c: Likewise.
32631 * sysdeps/unix/sysv/linux/glob-lstat-compat.c: Likewise.
32632 * sysdeps/unix/sysv/linux/alpha/glob-lstat-compat.c: Likewise.
32633 * sysdeps/unix/sysv/linux/glob64-lstat-compat.c: Likewise.
32634 * sysdeps/unix/sysv/linux/s390/s390-32/glob64-lstat-compat.c:
32635 Likewise.
32636 * sysdeps/unix/sysv/linux/alpha/glob.c: Remove file.
32637 * sysdeps/unix/sysv/linux/s390/s390-32/glob64.c: Likewise.
32638 * posix/glob.c (glob_lstat): New function.
32639 (glob): Rename to __glob and add versioned symbol to 2.27.
32640 (glob_in_dir): Use glob_lstat.
32641 * posix/glob64.c (glob64): Add GLOB_ATTRIBUTE.
32642 * sysdeps/unix/sysv/linux/arm/libc.abilist: Likewise.
32643 * sysdeps/unix/sysv/linux/glob.c (glob): Add versioned symbol for
32644 2.27.
32645 * sysdeps/unix/sysv/linux/glob64.c (glob64): Likewise.
32646 * sysdeps/unix/sysv/linux/oldglob.c (GLOB_NO_LSTAT): Define.
32647 * sysdeps/unix/sysv/linux/alpha/oldglob.c (__old_glob): Do not use
32648 gl_lstat on glob call.
32649 * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Add GLIBC_2.27 glob
32650 and glob64 symbols.
32651 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
32652 * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
32653 * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
32654 * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
32655 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
32656 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
32657 * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
32658 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
32659 * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist: Likewise.
32660 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
32661 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
32662 * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise.
32663 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
32664 Likewise.
32665 * sysdeps/unix/linux/powerpc/powerpc32/nofpu/libc.abilist: Likewise.
32666 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist: Likewise.
32667 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
32668 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
32669 * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
32670 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
32671 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
32672 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libc.abilist: Likewise.
32673 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libc.abilist: Likewise.
32674 * sysdeps/unix/sysv/linux/tile/tilepro/libc.abilist: Likewise.
32675 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
32676 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
32677
32678 2017-09-25 H.J. Lu <hongjiu.lu@intel.com>
32679
32680 * configure.ac (AS): Require binutils 2.25 or later.
32681 * configure: Regenerated.
32682
32683 2017-09-25 Paul Pluzhnikov <ppluzhnikov@google.com>
32684
32685 [BZ #22207]
32686 * stdlib/test-atexit-race-common.c (do_test): Minimize required
32687 VM size.
32688
32689 2017-09-25 DJ Delorie <dj@redhat.com>
32690
32691 [BZ #22161]
32692 * nscd/netgroupcache.c (addinnetgrX): Release read lock after
32693 resetting timeout.
32694
32695 2017-09-25 Stefan Liebler <stli@linux.vnet.ibm.com>
32696
32697 * sysdeps/ieee754/dbl-64/sincos32.h
32698 [SINCCOS32_H]: Remove define.
32699 [SINCOS32_H]: Define.
32700
32701 2017-09-25 Szabolcs Nagy <szabolcs.nagy@arm.com>
32702
32703 * math/Versions (expf): New libm symbol at GLIBC_2.27.
32704 (exp2f): Likewise.
32705 * math/w_exp2f.c: New file.
32706 * math/w_expf.c: New file.
32707 * math/w_exp2f_compat.c (__exp2f_compat): For compat symbol only.
32708 * math/w_expf_compat.c (__expf_compat): Likewise.
32709 * sysdeps/ia64/fpu/e_exp2f.S: Add versioned symbols.
32710 * sysdeps/ia64/fpu/e_expf.S: Likewise.
32711 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Update.
32712 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
32713 * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
32714 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
32715 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
32716 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
32717 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
32718 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
32719 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
32720 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
32721 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
32722 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
32723 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist:
32724 Likewise.
32725 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
32726 Likewise.
32727 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist:
32728 Likewise.
32729 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist:
32730 Likewise.
32731 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
32732 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
32733 * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
32734 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
32735 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
32736 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist:
32737 Likewise.
32738 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist:
32739 Likewise.
32740 * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
32741 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
32742 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
32743
32744 2017-09-25 Szabolcs Nagy <szabolcs.nagy@arm.com>
32745
32746 * math/Makefile (type-float-routines): Add math_errf and e_exp2f_data.
32747 * sysdeps/aarch64/fpu/math_private.h (TOINT_INTRINSICS): Define.
32748 (roundtoint, converttoint): Likewise.
32749 * sysdeps/ieee754/flt-32/e_expf.c: New implementation.
32750 * sysdeps/ieee754/flt-32/e_exp2f.c: New implementation.
32751 * sysdeps/ieee754/flt-32/e_exp2f_data.c: New file.
32752 * sysdeps/ieee754/flt-32/math_config.h: New file.
32753 * sysdeps/ieee754/flt-32/math_errf.c: New file.
32754 * sysdeps/ieee754/flt-32/t_exp2f.h: Remove.
32755 * sysdeps/i386/fpu/e_exp2f_data.c: New file.
32756 * sysdeps/i386/fpu/math_errf.c: New file.
32757 * sysdeps/ia64/fpu/e_exp2f_data.c: New file.
32758 * sysdeps/ia64/fpu/math_errf.c: New file.
32759 * sysdeps/m68k/m680x0/fpu/e_exp2f_data.c: New file.
32760 * sysdeps/m68k/m680x0/fpu/math_errf.c: New file.
32761
32762 2017-09-24 Samuel Thibault <samuel.thibault@ens-lyon.org>
32763
32764 * sysdeps/mach/hurd/dl-sysdep.c (check_no_hidden): New macro.
32765 (__open, __close, __libc_read, __libc_write, __writev, __libc_lseek64,
32766 __mmap, __fxstat64, __xstat64, __access, __access_noerrno, __getpid,
32767 __getcwd, __sbrk, __strtoul_internal, _exit, abort): Use check_no_hidden
32768 to make sure that these symbols are defined.
32769 * sysdeps/mach/hurd/bits/socket.h: Include <bits/wordsize.h> instead
32770 of <limits.h>
32771 (__need_NULL): Do not define.
32772 (__ss_aligntype): Use __WORDSIZE instead of ULONG_MAX to determine
32773 alignment.
32774 [!__USE_MISC] (pseudo_AF_XTP, pseudo_AF_RTIP, pseudo_AF_PIP,
32775 CMGROUP_MAX, cmsgcred): Do not define.
32776 (CMSG_FIRSTHDR, __cmsg_nxthdr): Use (struct cmsghdr *) 0 instead of
32777 NULL.
32778 * bits/socket.h: Likewise.
32779 * sysdeps/unix/clock_gettime.c (realtime_gettime, __clock_gettime): Use
32780 __gettimeofday instead of gettimeofday.
32781 * sysdeps/unix/clock_settime.c (__clock_settime): Use __settimeofday
32782 instead of settimeofday.
32783
32784 2017-09-22 Joseph Myers <joseph@codesourcery.com>
32785
32786 * sysdeps/ieee754/flt-32/s_asinhf.c: Include <libm-alias-float.h>.
32787 (asinhf): Define using libm_alias_float.
32788 * sysdeps/ieee754/flt-32/s_atanf.c: Include <libm-alias-float.h>.
32789 (atanf): Define using libm_alias_float.
32790 * sysdeps/ieee754/flt-32/s_cbrtf.c: Include <libm-alias-float.h>.
32791 (cbrtf): Define using libm_alias_float.
32792 * sysdeps/ieee754/flt-32/s_ceilf.c: Include <libm-alias-float.h>.
32793 (ceilf): Define using libm_alias_float.
32794 * sysdeps/ieee754/flt-32/s_copysignf.c: Include
32795 <libm-alias-float.h>.
32796 (copysignf): Define using libm_alias_float.
32797 * sysdeps/ieee754/flt-32/s_cosf.c: Include <libm-alias-float.h>.
32798 (cosf): Define using libm_alias_float.
32799 * sysdeps/ieee754/flt-32/s_erff.c: Include <libm-alias-float.h>.
32800 (erff): Define using libm_alias_float.
32801 (erfcf): Likewise.
32802 * sysdeps/ieee754/flt-32/s_expm1f.c: Include <libm-alias-float.h>.
32803 (expm1f): Define using libm_alias_float.
32804 * sysdeps/ieee754/flt-32/s_fabsf.c: Include <libm-alias-float.h>.
32805 (fabsf): Define using libm_alias_float.
32806 * sysdeps/ieee754/flt-32/s_floorf.c: Include <libm-alias-float.h>.
32807 (floorf): Define using libm_alias_float.
32808 * sysdeps/ieee754/flt-32/s_frexpf.c: Include <libm-alias-float.h>.
32809 (frexpf): Define using libm_alias_float.
32810 * sysdeps/ieee754/flt-32/s_fromfpf.c (fromfpf): Define using
32811 libm_alias_float.
32812 * sysdeps/ieee754/flt-32/s_fromfpf_main.c: Include
32813 <libm-alias-float.h>.
32814 * sysdeps/ieee754/flt-32/s_fromfpxf.c (fromfpxf): Define using
32815 libm_alias_float.
32816 * sysdeps/ieee754/flt-32/s_getpayloadf.c: Include
32817 <libm-alias-float.h>.
32818 (getpayloadf): Define using libm_alias_float.
32819 * sysdeps/ieee754/flt-32/s_llrintf.c: Include
32820 <libm-alias-float.h>.
32821 (llrintf): Define using libm_alias_float.
32822 * sysdeps/ieee754/flt-32/s_llroundf.c: Include
32823 <libm-alias-float.h>.
32824 (llroundf): Define using libm_alias_float.
32825 * sysdeps/ieee754/flt-32/s_logbf.c: Include <libm-alias-float.h>.
32826 (logbf): Define using libm_alias_float.
32827 * sysdeps/ieee754/flt-32/s_lrintf.c: Include <libm-alias-float.h>.
32828 (lrintf): Define using libm_alias_float.
32829 * sysdeps/ieee754/flt-32/s_lroundf.c: Include <libm-alias-float.h>.
32830 (lroundf): Define using libm_alias_float.
32831 * sysdeps/ieee754/flt-32/s_modff.c: Include <libm-alias-float.h>.
32832 (modff): Define using libm_alias_float.
32833 * sysdeps/ieee754/flt-32/s_nearbyintf.c: Include
32834 <libm-alias-float.h>.
32835 (nearbyintf): Define using libm_alias_float.
32836 * sysdeps/ieee754/flt-32/s_nextafterf.c: Include
32837 <libm-alias-float.h>.
32838 (nextafterf): Define using libm_alias_float.
32839 * sysdeps/ieee754/flt-32/s_nextupf.c: Include
32840 <libm-alias-float.h>.
32841 (nextupf): Define using libm_alias_float.
32842 * sysdeps/ieee754/flt-32/s_remquof.c: Include
32843 <libm-alias-float.h>.
32844 (remquof): Define using libm_alias_float.
32845 * sysdeps/ieee754/flt-32/s_rintf.c: Include <libm-alias-float.h>.
32846 (rintf): Define using libm_alias_float.
32847 * sysdeps/ieee754/flt-32/s_roundevenf.c: Include
32848 <libm-alias-float.h>.
32849 (roundevenf): Define using libm_alias_float.
32850 * sysdeps/ieee754/flt-32/s_roundf.c: Include <libm-alias-float.h>.
32851 (roundf): Define using libm_alias_float.
32852 * sysdeps/ieee754/flt-32/s_setpayloadf.c (setpayloadf): Define
32853 using libm_alias_float.
32854 * sysdeps/ieee754/flt-32/s_setpayloadf_main.c: Include
32855 <libm-alias-float.h>.
32856 * sysdeps/ieee754/flt-32/s_setpayloadsigf.c (setpayloadsigf):
32857 Define using libm_alias_float.
32858 * sysdeps/ieee754/flt-32/s_sincosf.c: Include
32859 <libm-alias-float.h>.
32860 (sincosf): Define using libm_alias_float.
32861 * sysdeps/ieee754/flt-32/s_sinf.c: Include <libm-alias-float.h>.
32862 (sinf): Define using libm_alias_float.
32863 * sysdeps/ieee754/flt-32/s_tanf.c: Include <libm-alias-float.h>.
32864 (tanf): Define using libm_alias_float.
32865 * sysdeps/ieee754/flt-32/s_tanhf.c: Include <libm-alias-float.h>.
32866 (tanhf): Define using libm_alias_float.
32867 * sysdeps/ieee754/flt-32/s_totalorderf.c: Include
32868 <libm-alias-float.h>.
32869 (totalorderf): Define using libm_alias_float.
32870 * sysdeps/ieee754/flt-32/s_totalordermagf.c: Include
32871 <libm-alias-float.h>.
32872 (totalordermagf): Define using libm_alias_float.
32873 * sysdeps/ieee754/flt-32/s_truncf.c: Include <libm-alias-float.h>.
32874 (truncf): Define using libm_alias_float.
32875 * sysdeps/ieee754/flt-32/s_ufromfpf.c (ufromfpf): Define using
32876 libm_alias_float.
32877 * sysdeps/ieee754/flt-32/s_ufromfpxf.c (ufromfpxf): Define using
32878 libm_alias_float.
32879
32880 2017-09-22 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
32881
32882 [BZ #22146]
32883 math/math.h: Let fpclassify use the builtin in C++ mode, even
32884 when optimazing for size.
32885
32886 2017-09-22 Joseph Myers <joseph@codesourcery.com>
32887
32888 * csu/Makefile (generated): Do not add version-info.h.
32889 (before-compile): Likewise.
32890 (all-Banner-files): Remove variable.
32891 ($(objpfx)version-info.h): Remove rule.
32892 * csu/version.c (banner): Do not include "version-info.h".
32893 * libidn/Banner: Remove.
32894 * manual/contrib.texi (Simon Josefsson): New entry.
32895
32896 2017-09-21 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
32897
32898 * sysdeps/ieee754/ldbl-128/e_lgammal_r.c (__ieee754_lgammal_r):
32899 Remove conditionals on LDBL_MANT_DIG.
32900 * sysdeps/ieee754/ldbl-128ibm/e_lgammal_r.c
32901 (__ieee754_lgammal_r): Likewise.
32902
32903 2017-09-21 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
32904
32905 * sysdeps/ieee754/ldbl-128ibm/e_expl.c: Remove definitions of
32906 _Float128 and L().
32907 * sysdeps/ieee754/ldbl-128ibm/e_j0l.c: Remove definitions of
32908 _Float128 and L(). Replace _Float128 with long double and L(x)
32909 with xL, throughout the file.
32910 * sysdeps/ieee754/ldbl-128ibm/e_j1l.c: Likewise.
32911 * sysdeps/ieee754/ldbl-128ibm/e_lgammal_r.c: Likewise.
32912 * sysdeps/ieee754/ldbl-128ibm/s_cbrtl.c: Likewise.
32913 * sysdeps/ieee754/ldbl-128ibm/t_expl.h: Likewise.
32914
32915 2017-09-21 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
32916
32917 * sysdeps/ieee754/ldbl-128ibm/e_expl.c: Include tables from
32918 sysdeps/ieee754/ldbl-128ibm.
32919 * sysdeps/ieee754/ldbl-128ibm/e_j0l.c: Copy contents from the
32920 equivalent implementation in sysdeps/ieee754/ldbl-128/ instead
32921 of including it. Keep _Float128 and L() intact. These will be
32922 reviewed by a separate patch.
32923 * sysdeps/ieee754/ldbl-128ibm/e_j1l.c: Likewise.
32924 * sysdeps/ieee754/ldbl-128ibm/e_lgammal_r.c: Likewise.
32925 * sysdeps/ieee754/ldbl-128ibm/s_cbrtl.c: Likewise.
32926 * sysdeps/ieee754/ldbl-128ibm/t_expl.h: Likewise.
32927
32928 2017-09-21 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
32929
32930 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finite.c
32931 (__finitef128): Define to __redirect___finitef128.
32932 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinf.c
32933 (__isinff128): Define to __redirect___isinff128.
32934 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan.c
32935 (__isnanf128): Define to __redirect___isnanf128.
32936
32937 2017-09-21 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
32938
32939 * sysdeps/powerpc/powerpc64le/Makefile
32940 (CFLAGS-tst-strtod-nan-locale.c): New variable.
32941 (CFLAGS-tst-wcstod-nan-locale.c): New variable.
32942
32943 2017-09-21 Paul Pluzhnikov <ppluzhnikov@google.com>
32944 Carlos O'Donell <carlos@redhat.com>
32945
32946 [BZ #22180]
32947 * stdlib/Makefile (tests): Add test-dlclose-exit-race.
32948 * stdlib/test-dlclose-exit-race.c: New file.
32949 * stdlib/test-dlclose-exit-race-helper.c: New file.
32950 * stdlib/exit.c (__run_exit_handlers): Mark slot as free.
32951
32952 2017-09-21 Joseph Myers <joseph@codesourcery.com>
32953
32954 * crypt/Banner: Remove file.
32955 * nptl/Banner: Likewise.
32956 * resolv/Banner: Likewise.
32957 * soft-fp/Banner: Likewise.
32958 * nptl/Makefile ($(objpfx)banner.h): Remove rule.
32959 ($(objpfx)version.d): Remove dependency on banner.h.
32960 ($(objpfx)version.os): Likewise.
32961 * nptl/version.c (banner): Do not include banner.h.
32962 * manual/contrib.texi: Update entries for Richard Henderson, Jakub
32963 Jelinek and BIND code.
32964
32965 2017-09-20 Paul Pluzhnikov <ppluzhnikov@google.com>
32966 Carlos O'Donell <carlos@redhat.com>
32967
32968 * support/xdlfcn.h: New file.
32969 * support/xdlfcn.c: New file.
32970 * support/Makefile (libsupport-routines): Add xdlfcn.
32971 * stdlib/tst-tls-atexit.c: Use xdlopen, xdlsym, xdlclose.
32972
32973 2017-09-20 Joseph Myers <joseph@codesourcery.com>
32974
32975 [BZ #20142]
32976 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
32977 Add s_trunc-c, s_truncf-c, s_trunc-sse4_1 and s_truncf-sse4_1.
32978 * sysdeps/x86_64/fpu/multiarch/s_trunc-c.c: New file.
32979 * sysdeps/x86_64/fpu/multiarch/s_trunc-sse4_1.S: Likewise.
32980 * sysdeps/x86_64/fpu/multiarch/s_trunc.c: Likewise.
32981 * sysdeps/x86_64/fpu/multiarch/s_truncf-c.c: Likewise.
32982 * sysdeps/x86_64/fpu/multiarch/s_truncf-sse4_1.S: Likewise.
32983 * sysdeps/x86_64/fpu/multiarch/s_truncf.c: Likewise.
32984
32985 2017-09-20 Paul Pluzhnikov <ppluzhnikov@google.com>
32986 Ricky Zhou <rickyz@google.com>
32987 Anoop V Chakkalakkal <anoop.vijayan@in.ibm.com>
32988
32989 [BZ #14333]
32990 * stdlib/cxa_atexit.c (__internal_atexit): Use __exit_funcs_lock.
32991 Remove atomics.
32992 (__new_exitfn): Fail registration when we finished at_exit processing.
32993 * stdlib/cxa_finalize.c (__cxa_finalize): Likewise.
32994 * stdlib/on_exit.c (__on_exit): Likewise.
32995 * stdlib/exit.c (__exit_funcs_done): New variable.
32996 (__run_exit_handlers): Use __exit_funcs_lock.
32997 * stdlib/exit.h (__exit_funcs_lock, __exit_funcs_done): New
32998 declarations.
32999 * stdlib/Makefile (test-atexit-race, test-quick_at_exit-race)
33000 (test-cxa_atexit-race, test-on_exit-race): New tests.
33001 * stdlib/test-atexit-race-common.c: New file.
33002 * stdlib/test-atexit-race.c: New file.
33003 * stdlib/test-at_quick_exit-race.c: New file.
33004 * stdlib/test-cxa_atexit-race.c: New file.
33005 * stdlib/test-on_exit-race.c: New file.
33006
33007 2017-09-20 Szabolcs Nagy <szabolcs.nagy@arm.com>
33008
33009 * benchtests/Makefile: Add exp2f and log2f benchmarks.
33010 * benchtests/exp2f-inputs: Copy of expf-inputs.
33011 * benchtests/log2f-inputs: Copy of logf-inputs.
33012
33013 2017-09-19 Joseph Myers <joseph@codesourcery.com>
33014
33015 * sysdeps/unix/sysv/linux/fexecve.c (fexecve) [__NR_execveat]:
33016 Explicitly take address of first element of array arguments in
33017 call to INLINE_SYSCALL.
33018
33019 2017-09-19 Andreas Schwab <schwab@suse.de>
33020
33021 [BZ #22134]
33022 * sysdeps/unix/sysv/linux/fexecve.c (fexecve) [__NR_execveat]: Try
33023 execveat first.
33024 [!__ASSUME_EXECVEAT]: Fall back to /proc if execveat is
33025 unimplemented.
33026 * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_EXECVEAT)
33027 [__LINUX_KERNEL_VERSION >= 0x031300]: Define.
33028 * sysdeps/unix/sysv/linux/alpha/kernel-features.h
33029 (__ASSUME_EXECVEAT) [__LINUX_KERNEL_VERSION < 0x040200]: Undef.
33030 * sysdeps/unix/sysv/linux/hppa/kernel-features.h
33031 (__ASSUME_EXECVEAT) [__LINUX_KERNEL_VERSION < 0x040000]: Undef.
33032 * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
33033 (__ASSUME_EXECVEAT) [__LINUX_KERNEL_VERSION < 0x040000]: Undef.
33034 * posix/Makefile (tests): Add tst-fexecve.
33035 * posix/tst-fexecve.c: New file.
33036
33037 2017-09-19 Wilco Dijkstra <wdijkstr@arm.com>
33038
33039 * benchtests/Makefile: Add logf benchmark.
33040 * benchtests/logf-inputs: Add reduced trace from wrf_r.
33041
33042 2017-09-19 Wilco Dijkstra <wdijkstr@arm.com>
33043
33044 * benchtests/Makefile: Add expf benchmark.
33045 * benchtests/expf-inputs: Add reduced trace from wrf_r.
33046
33047 2017-09-19 Wilco Dijkstra <wdijkstr@arm.com>
33048
33049 * csu/Makefile: Add -funwind-tables to libc-start.c.
33050 * debug/Makefile: Add -funwind-tables to backtrace.c.
33051 * sysdeps/aarch64/Makefile: Remove CFLAGS-backtrace.c.
33052 * sysdeps/arm/Makefile: Likewise.
33053 * sysdeps/i386/Makefile: Likewise.
33054 * sysdeps/m68k/Makefile: Likewise.
33055 * sysdeps/mips/Makefile: Likewise.
33056 * sysdeps/nios2/Makefile: Likewise.
33057 * sysdeps/sh/Makefile: Likewise.
33058 * sysdeps/sparc/Makefile: Likewise.
33059
33060 2017-09-19 Joseph Myers <joseph@codesourcery.com>
33061
33062 * benchtests/Makefile (bench-math): Add trunc and truncf.
33063 (CFLAGS-bench-trunc.c): New variable.
33064 (CFLAGS-bench-truncf.c): Likewise.
33065 * benchtests/trunc-inputs: New file.
33066 * benchtests/truncf-inputs: Likewise.
33067
33068 2017-09-19 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
33069
33070 * sysdeps/powerpc/powerpc64/power8/memset.S: Avoid misaligned stores.
33071
33072 2017-09-18 Joseph Myers <joseph@codesourcery.com>
33073
33074 * sysdeps/ieee754/ldbl-opt/w_exp10l_compat.c [LIBM_SVID_COMPAT &&
33075 !LONG_DOUBLE_COMPAT (libm, GLIBC_2_1)] (weak_alias): Undefine and
33076 redefine.
33077 [LIBM_SVID_COMPAT && !LONG_DOUBLE_COMPAT (libm, GLIBC_2_1)]
33078 (exp10l): Define as weak alias.
33079 * sysdeps/ieee754/ldbl-opt/w_remainderl_compat.c [LIBM_SVID_COMPAT
33080 && !LONG_DOUBLE_COMPAT (libm, GLIBC_2_0)] (weak_alias): Undefine
33081 and redefine.
33082 [LIBM_SVID_COMPAT && !LONG_DOUBLE_COMPAT (libm, GLIBC_2_0)]
33083 (remainderl): Define as weak alias.
33084
33085 * math/s_fmal.c: Include <libm-alias-ldouble.h>.
33086 (fmal): Define using libm_alias_ldouble.
33087 * math/w_acoshl_compat.c: Include <libm-alias-ldouble.h>.
33088 (acoshl): Define using libm_alias_ldouble.
33089 * math/w_acosl_compat.c: Include <libm-alias-ldouble.h>.
33090 (acosl): Define using libm_alias_ldouble.
33091 * math/w_asinl_compat.c: Include <libm-alias-ldouble.h>.
33092 (asinl): Define using libm_alias_ldouble.
33093 * math/w_atan2l_compat.c: Include <libm-alias-ldouble.h>.
33094 (atan2l): Define using libm_alias_ldouble.
33095 * math/w_atanhl_compat.c: Include <libm-alias-ldouble.h>.
33096 (atanhl): Define using libm_alias_ldouble.
33097 * math/w_coshl_compat.c: Include <libm-alias-ldouble.h>.
33098 (coshl): Define using libm_alias_ldouble.
33099 * math/w_exp10l_compat.c: Include <libm-alias-ldouble.h>.
33100 (exp10l): Define using libm_alias_ldouble.
33101 * math/w_exp2l_compat.c: Include <libm-alias-ldouble.h>.
33102 (exp2l): Define using libm_alias_ldouble.
33103 * math/w_expl_compat.c: Include <libm-alias-ldouble.h>.
33104 (expl): Define using libm_alias_ldouble.
33105 * math/w_fmodl_compat.c: Include <libm-alias-ldouble.h>.
33106 (fmodl): Define using libm_alias_ldouble.
33107 * math/w_hypotl_compat.c: Include <libm-alias-ldouble.h>.
33108 (hypotl): Define using libm_alias_ldouble.
33109 * math/w_j0l_compat.c: Include <libm-alias-ldouble.h>.
33110 (j0l): Define using libm_alias_ldouble.
33111 (y0l): Likewise.
33112 * math/w_j1l_compat.c: Include <libm-alias-ldouble.h>.
33113 (j1l): Define using libm_alias_ldouble.
33114 (y1l): Likewise.
33115 * math/w_jnl_compat.c: Include <libm-alias-ldouble.h>.
33116 (jnl): Define using libm_alias_ldouble.
33117 (ynl): Likewise.
33118 * math/w_log10l_compat.c: Include <libm-alias-ldouble.h>.
33119 (log10l): Define using libm_alias_ldouble.
33120 * math/w_log2l_compat.c: Include <libm-alias-ldouble.h>.
33121 (log2l): Define using libm_alias_ldouble.
33122 * math/w_logl_compat.c: Include <libm-alias-ldouble.h>.
33123 (logl): Define using libm_alias_ldouble.
33124 * math/w_powl_compat.c: Include <libm-alias-ldouble.h>.
33125 (powl): Define using libm_alias_ldouble.
33126 * math/w_remainderl_compat.c: Include <libm-alias-ldouble.h>.
33127 (remainderl): Define using libm_alias_ldouble.
33128 * math/w_sinhl_compat.c: Include <libm-alias-ldouble.h>.
33129 (sinhl): Define using libm_alias_ldouble.
33130 * math/w_sqrtl_compat.c: Include <libm-alias-ldouble.h>.
33131 (sqrtl): Define using libm_alias_ldouble.
33132 * math/w_tgammal_compat.c: Include <libm-alias-ldouble.h>.
33133 (tgammal): Define using libm_alias_ldouble.
33134 * sysdeps/ieee754/ldbl-opt/w_exp10l_compat.c [LIBM_SVID_COMPAT]
33135 (exp10l): Do not use long_double_symbol here.
33136 * sysdeps/ieee754/ldbl-opt/w_remainderl_compat.c
33137 [LIBM_SVID_COMPAT] (remainderl): Likewise.
33138 * sysdeps/ieee754/ldbl-opt/s_fmal.c: Remove.
33139 * sysdeps/ieee754/ldbl-opt/w_acoshl_compat.c: Likewise.
33140 * sysdeps/ieee754/ldbl-opt/w_acosl_compat.c: Likewise.
33141 * sysdeps/ieee754/ldbl-opt/w_asinl_compat.c: Likewise.
33142 * sysdeps/ieee754/ldbl-opt/w_atan2l_compat.c: Likewise.
33143 * sysdeps/ieee754/ldbl-opt/w_atanhl_compat.c: Likewise.
33144 * sysdeps/ieee754/ldbl-opt/w_coshl_compat.c: Likewise.
33145 * sysdeps/ieee754/ldbl-opt/w_expl_compat.c: Likewise.
33146 * sysdeps/ieee754/ldbl-opt/w_fmodl_compat.c: Likewise.
33147 * sysdeps/ieee754/ldbl-opt/w_hypotl_compat.c: Likewise.
33148 * sysdeps/ieee754/ldbl-opt/w_j0l_compat.c: Likewise.
33149 * sysdeps/ieee754/ldbl-opt/w_j1l_compat.c: Likewise.
33150 * sysdeps/ieee754/ldbl-opt/w_jnl_compat.c: Likewise.
33151 * sysdeps/ieee754/ldbl-opt/w_log10l_compat.c: Likewise.
33152 * sysdeps/ieee754/ldbl-opt/w_log2l_compat.c: Likewise.
33153 * sysdeps/ieee754/ldbl-opt/w_logl_compat.c: Likewise.
33154 * sysdeps/ieee754/ldbl-opt/w_powl_compat.c: Likewise.
33155 * sysdeps/ieee754/ldbl-opt/w_sinhl_compat.c: Likewise.
33156 * sysdeps/ieee754/ldbl-opt/w_sqrtl_compat.c: Likewise.
33157 * sysdeps/ieee754/ldbl-opt/w_tgammal_compat.c: Likewise.
33158
33159 2017-09-18 Wang Boshi <wangboshi@huawei.com> (tiny change)
33160
33161 * sysdeps/aarch64/start.S: Use MOVL instead of literal pools.
33162 * sysdeps/aarch64/sysdep.h (MOVL): Add MOVL macro.
33163
33164 2017-09-17 Samuel Thibault <samuel.thibault@ens-lyon.org>
33165
33166 * io/read.c (read): Add libc_hidden_weak.
33167 * sysdeps/mach/hurd/read.c (read): Likewise.
33168 * io/write.c (write): Likewise.
33169 * sysdeps/mach/hurd/write.c (write): Likewise.
33170 * io/pread64.c (__pread64): Likewise.
33171 * sysdeps/mach/hurd/pread64.c (__pread64): Likewise.
33172 * posix/pread64.c (__pread64): Add libc_hidden_def.
33173
33174 2017-09-16 Siddhesh Poyarekar <siddhesh@sourceware.org>
33175
33176 * benchtests/scripts/compare_strings.py: New option -g.
33177 (draw_graph): Print a message that a graph is being generated.
33178 (process_results): Generate graph only if -g is passed.
33179 (main): Process option -g.
33180
33181 * benchtests/scripts/compare_strings.py (process_results):
33182 Better spacing for output.
33183
33184 * benchtests/scripts/compare_strings.py: Use argparse.
33185 * benchtests/README: Document existence of compare_strings.py.
33186
33187 2017-09-15 Joseph Myers <joseph@codesourcery.com>
33188
33189 * math/s_fma.c: Include <libm-alias-double.h>.
33190 (fma): Define using libm_alias_double.
33191 * math/s_nextafter.c: Include <libm-alias-double.h>.
33192 (nextafter): Define using libm_alias_double.
33193 * math/w_acos_compat.c: Include <libm-alias-double.h>.
33194 (acos): Define using libm_alias_double.
33195 * math/w_acosh_compat.c: Include <libm-alias-double.h>.
33196 (aocsh): Define using libm_alias_double.
33197 * math/w_asin_compat.c: Include <libm-alias-double.h>.
33198 (asin): Define using libm_alias_double.
33199 * math/w_atan2_compat.c: Include <libm-alias-double.h>.
33200 (atan2): Define using libm_alias_double.
33201 * math/w_atanh_compat.c: Include <libm-alias-double.h>.
33202 (atanh): Define using libm_alias_double.
33203 * math/w_cosh_compat.c: Include <libm-alias-double.h>.
33204 (cosh): Define using libm_alias_double.
33205 * math/w_exp10_compat.c: Include <libm-alias-double.h>.
33206 (exp10): Define using libm_alias_double.
33207 * math/w_exp2_compat.c: Include <libm-alias-double.h>.
33208 (exp2): Define using libm_alias_double.
33209 * math/w_exp_compat.c: Include <libm-alias-double.h>.
33210 (exp): Define using libm_alias_double.
33211 * math/w_fmod_compat.c: Include <libm-alias-double.h>.
33212 (fmod): Define using libm_alias_double.
33213 * math/w_hypot_compat.c: Include <libm-alias-double.h>.
33214 (hypot): Define using libm_alias_double.
33215 * math/w_j0_compat.c: Include <libm-alias-double.h>.
33216 (j0): Define using libm_alias_double.
33217 (y0): Likewise.
33218 * math/w_j1_compat.c: Include <libm-alias-double.h>.
33219 (j1): Define using libm_alias_double.
33220 (y1): Likewise.
33221 * math/w_jn_compat.c: Include <libm-alias-double.h>.
33222 (jn): Define using libm_alias_double.
33223 (yn): Likewise.
33224 * math/w_log10_compat.c: Include <libm-alias-double.h>.
33225 (log10): Define using libm_alias_double.
33226 * math/w_log2_compat.c: Include <libm-alias-double.h>.
33227 (log2): Define using libm_alias_double.
33228 * math/w_log_compat.c: Include <libm-alias-double.h>.
33229 (log): Define using libm_alias_double.
33230 * math/w_pow_compat.c: Include <libm-alias-double.h>.
33231 (pow): Define using libm_alias_double.
33232 * math/w_remainder_compat.c: Include <libm-alias-double.h>.
33233 (remainder): Define using libm_alias_double.
33234 * math/w_sinh_compat.c: Include <libm-alias-double.h>.
33235 (sinh): Define using libm_alias_double.
33236 * math/w_sqrt_compat.c: Include <libm-alias-double.h>.
33237 (sqrt): Define using libm_alias_double.
33238 * math/w_tgamma_compat.c: Include <libm-alias-double.h>.
33239 (tgamma): Define using libm_alias_double.
33240 * sysdeps/ieee754/ldbl-opt/s_nextafter.c [LONG_DOUBLE_COMPAT(libm,
33241 GLIBC_2_0)] (nextafterl): Do not define compat symbol here.
33242 * sysdeps/ieee754/ldbl-opt/w_exp10_compat.c
33243 [LONG_DOUBLE_COMPAT(libm, GLIBC_2_1)] (exp10l): Likewise.
33244 * sysdeps/ieee754/ldbl-opt/w_remainder_compat.c
33245 [LONG_DOUBLE_COMPAT(libm, GLIBC_2_0)] (remainderl): Likewise.
33246 * sysdeps/ieee754/ldbl-opt/w_acos_compat.c: Remove.
33247 * sysdeps/ieee754/ldbl-opt/w_acosh_compat.c: Likewise.
33248 * sysdeps/ieee754/ldbl-opt/w_asin_compat.c: Likewise.
33249 * sysdeps/ieee754/ldbl-opt/w_atan2_compat.c: Likewise.
33250 * sysdeps/ieee754/ldbl-opt/w_atanh_compat.c: Likewise.
33251 * sysdeps/ieee754/ldbl-opt/w_cosh_compat.c: Likewise.
33252 * sysdeps/ieee754/ldbl-opt/w_exp_compat.c: Likewise.
33253 * sysdeps/ieee754/ldbl-opt/w_fmod_compat.c: Likewise.
33254 * sysdeps/ieee754/ldbl-opt/w_hypot_compat.c: Likewise.
33255 * sysdeps/ieee754/ldbl-opt/w_j0_compat.c: Likewise.
33256 * sysdeps/ieee754/ldbl-opt/w_j1_compat.c: Likewise.
33257 * sysdeps/ieee754/ldbl-opt/w_jn_compat.c: Likewise.
33258 * sysdeps/ieee754/ldbl-opt/w_log10_compat.c: Likewise.
33259 * sysdeps/ieee754/ldbl-opt/w_log2_compat.c: Likewise.
33260 * sysdeps/ieee754/ldbl-opt/w_log_compat.c: Likewise.
33261 * sysdeps/ieee754/ldbl-opt/w_pow_compat.c: Likewise.
33262 * sysdeps/ieee754/ldbl-opt/w_sinh_compat.c: Likewise.
33263 * sysdeps/ieee754/ldbl-opt/w_sqrt_compat.c: Likewise.
33264 * sysdeps/ieee754/ldbl-opt/w_tgamma_compat.c: Likewise.
33265
33266 * math/e_acoshl.c: Remove.
33267 * math/e_acosl.c: Likewise.
33268 * math/e_asinl.c: Likewise.
33269 * math/e_atan2l.c: Likewise.
33270 * math/e_atanhl.c: Likewise.
33271 * math/e_coshl.c: Likewise.
33272 * math/e_expl.c: Likewise.
33273 * math/e_fmodl.c: Likewise.
33274 * math/e_gammal_r.c: Likewise.
33275 * math/e_hypotl.c: Likewise.
33276 * math/e_j0l.c: Likewise.
33277 * math/e_j1l.c: Likewise.
33278 * math/e_jnl.c: Likewise.
33279 * math/e_lgammal_r.c: Likewise.
33280 * math/e_log10l.c: Likewise.
33281 * math/e_log2l.c: Likewise.
33282 * math/e_logl.c: Likewise.
33283 * math/e_powl.c: Likewise.
33284 * math/e_rem_pio2l.c: Likewise.
33285 * math/e_sinhl.c: Likewise.
33286 * math/e_sqrtf128.c: Likewise.
33287 * math/e_sqrtl.c: Likewise.
33288 * math/k_cosl.c: Likewise.
33289 * math/k_sinl.c: Likewise.
33290 * math/k_tanl.c: Likewise.
33291 * math/s_asinhl.c: Likewise.
33292 * math/s_atanl.c: Likewise.
33293 * math/s_cbrtl.c: Likewise.
33294 * math/s_erfl.c: Likewise.
33295 * math/s_expm1l.c: Likewise.
33296 * math/s_log1pl.c: Likewise.
33297 * math/s_tanhl.c: Likewise.
33298
33299 2017-09-15 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
33300
33301 [BZ #21745]
33302 * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile:
33303 [$(subdir) = math] (sysdep_calls): New variable. Has the
33304 previous contents of sysdep_routines, but re-sorted..
33305 [$(subdir) = math] (sysdep_routines): Re-use the contents from
33306 sysdep_calls.
33307 [$(subdir) = math] (libm-sysdep_routines): Remove the functions
33308 defined in sysdep_calls and replace by the respective m_* names.
33309 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-ppc64.S:
33310 (compat_symbol): Undefine to avoid duplicated compat symbols in
33311 libc.
33312
33313 2017-09-15 Joseph Myers <joseph@codesourcery.com>
33314
33315 * math/s_fmaf.c: Include <libm-alias-float.h>.
33316 (fmaf): Define using libm_alias_float.
33317 * math/w_acosf_compat.c: Include <libm-alias-float.h>.
33318 (acosf): Define using libm_alias_float.
33319 * math/w_acoshf_compat.c: Include <libm-alias-float.h>.
33320 (acoshf): Define using libm_alias_float.
33321 * math/w_asinf_compat.c: Include <libm-alias-float.h>.
33322 (asinf): Define using libm_alias_float.
33323 * math/w_atan2f_compat.c: Include <libm-alias-float.h>.
33324 (atan2f): Define using libm_alias_float.
33325 * math/w_atanhf_compat.c: Include <libm-alias-float.h>.
33326 (atanhf): Define using libm_alias_float.
33327 * math/w_coshf_compat.c: Include <libm-alias-float.h>.
33328 (coshf): Define using libm_alias_float.
33329 * math/w_exp10f_compat.c: Include <libm-alias-float.h>.
33330 (exp10f): Define using libm_alias_float.
33331 * math/w_fmodf_compat.c: Include <libm-alias-float.h>.
33332 (fmodf): Define using libm_alias_float.
33333 * math/w_hypotf_compat.c: Include <libm-alias-float.h>.
33334 (hypotf): Define using libm_alias_float.
33335 * math/w_j0f_compat.c: Include <libm-alias-float.h>.
33336 (j0f): Define using libm_alias_float.
33337 (y0f): Likewise.
33338 * math/w_j1f_compat.c: Include <libm-alias-float.h>.
33339 (j1f): Define using libm_alias_float.
33340 (y1f): Likewise.
33341 * math/w_jnf_compat.c: Include <libm-alias-float.h>.
33342 (jnf): Define using libm_alias_float.
33343 (ynf): Likewise.
33344 * math/w_log10f_compat.c: Include <libm-alias-float.h>.
33345 (log10f): Define using libm_alias_float.
33346 * math/w_log2f_compat.c: Include <libm-alias-float.h>.
33347 (log2f): Define using libm_alias_float.
33348 * math/w_logf_compat.c: Include <libm-alias-float.h>.
33349 (logf): Define using libm_alias_float.
33350 * math/w_powf_compat.c: Include <libm-alias-float.h>.
33351 (powf): Define using libm_alias_float.
33352 * math/w_remainderf_compat.c: Include <libm-alias-float.h>.
33353 (remainderf): Define using libm_alias_float.
33354 * math/w_sinhf_compat.c: Include <libm-alias-float.h>.
33355 (sinhf): Define using libm_alias_float.
33356 * math/w_sqrtf_compat.c: Include <libm-alias-float.h>.
33357 (sqrtf): Define using libm_alias_float.
33358 * math/w_tgammaf_compat.c: Include <libm-alias-float.h>.
33359 (tgammaf): Define using libm_alias_float.
33360
33361 2017-09-14 Joseph Myers <joseph@codesourcery.com>
33362
33363 * include/math.h (roundeven): Change hidden_proto call to
33364 __roundeven.
33365 * math/w_j0_compat.c (j0): Rename to __j0 and define as weak
33366 alias.
33367 [NO_LONG_DOUBLE] (__j0l): New strong alias.
33368 (y0): Rename to __y0 and define as weak alias.
33369 [NO_LONG_DOUBLE] (__y0l): New strong alias.
33370 * math/w_j0f_compat.c (j0f): Rename to __j0f and define as weak
33371 alias.
33372 (y0f): Rename to __y0f and define as weak alias.
33373 * math/w_j1_compat.c (j1): Rename to __j1 and define as weak
33374 alias.
33375 [NO_LONG_DOUBLE] (__j1l): New strong alias.
33376 (y1): Rename to __y1 and define as weak alias.
33377 [NO_LONG_DOUBLE] (__y1l): New strong alias.
33378 * math/w_j1f_compat.c (j1f): Rename to __j1f and define as weak
33379 alias.
33380 (y1f): Rename to __y1f and define as weak alias.
33381 * math/w_jn_compat.c (jn): Rename to __jn and define as weak
33382 alias.
33383 [NO_LONG_DOUBLE] (__jnl): New strong alias.
33384 (yn): Rename to __yn and define as weak alias.
33385 [NO_LONG_DOUBLE] (__ynl): New strong alias.
33386 * math/w_jnf_compat.c (jnf): Rename to __jnf and define as weak
33387 alias.
33388 (ynf): Rename to __ynf and define as weak alias.
33389 * sysdeps/ieee754/dbl-64/s_fromfp.c (FUNC): Define to __fromfp.
33390 (fromfp): Define as weak alias.
33391 [NO_LONG_DOUBLE] (__fromfpl): New strong alias.
33392 * sysdeps/ieee754/dbl-64/s_fromfpx.c (FUNC): Define to __fromfpx.
33393 (fromfpx): Define as weak alias.
33394 [NO_LONG_DOUBLE] (__fromfpxl): New strong alias.
33395 * sysdeps/ieee754/dbl-64/s_getpayload.c (getpayload): Rename to
33396 __getpayload and define as weak alias.
33397 [NO_LONG_DOUBLE] (__getpayloadl): New strong alias.
33398 * sysdeps/ieee754/dbl-64/s_roundeven.c (roundeven): Rename to
33399 __roundeven and define as weak alias.
33400 [NO_LONG_DOUBLE] (__roundevenl): New strong alias.
33401 * sysdeps/ieee754/dbl-64/s_setpayload.c (FUNC): Define to
33402 __setpayload.
33403 (setpayload): Define as weak alias.
33404 [NO_LONG_DOUBLE] (__setpayloadl): New strong alias.
33405 * sysdeps/ieee754/dbl-64/s_setpayloadsig.c (FUNC): Define to
33406 __setpayloadsig.
33407 (setpayloadsig): Define as weak alias.
33408 [NO_LONG_DOUBLE] (__setpayloadsigl): New strong alias.
33409 * sysdeps/ieee754/dbl-64/s_totalorder.c (totalorder): Rename to
33410 __totalorder and define as weak alias.
33411 [NO_LONG_DOUBLE] (__totalorderl): New strong alias.
33412 * sysdeps/ieee754/dbl-64/s_totalordermag.c (totalordermag): Rename
33413 to __totalordermag and define as weak alias.
33414 [NO_LONG_DOUBLE] (__totalordermagl): New strong alias.
33415 * sysdeps/ieee754/dbl-64/s_ufromfp.c (FUNC): Define to __ufromfp.
33416 (ufromfp): Define as weak alias.
33417 [NO_LONG_DOUBLE] (__ufromfpl): New strong alias.
33418 * sysdeps/ieee754/dbl-64/s_ufromfpx.c (FUNC): Define to
33419 __ufromfpx.
33420 (ufromfpx): Define as weak alias.
33421 [NO_LONG_DOUBLE] (__ufromfpxl): New strong alias.
33422 * sysdeps/ieee754/dbl-64/wordsize-64/s_getpayload.c (getpayload):
33423 Rename to __getpayload and define as weak alias.
33424 [NO_LONG_DOUBLE] (__getpayloadl): New strong alias.
33425 * sysdeps/ieee754/dbl-64/wordsize-64/s_roundeven.c (roundeven):
33426 Rename to __roundeven and define as weak alias.
33427 [NO_LONG_DOUBLE] (__roundevenl): New strong alias.
33428 * sysdeps/ieee754/dbl-64/wordsize-64/s_totalorder.c (totalorder):
33429 Rename to __totalorder and define as weak alias.
33430 [NO_LONG_DOUBLE] (__totalorderl): New strong alias.
33431 * sysdeps/ieee754/dbl-64/wordsize-64/s_totalordermag.c
33432 (totalordermag): Rename to __totalordermag and define as weak
33433 alias.
33434 [NO_LONG_DOUBLE] (__totalordermagl): New strong alias.
33435 * sysdeps/ieee754/float128/float128_private.h (__getpayloadl): New
33436 macro.
33437 (__roundevenl): Likewise.
33438 (__totalorderl): Likewise.
33439 (__totalordermagl): Likewise
33440 * sysdeps/ieee754/float128/s_fromfpf128.c (FUNC): Define to
33441 __fromfpf128.
33442 (fromfpf128): Define as weak alias.
33443 * sysdeps/ieee754/float128/s_fromfpxf128.c (FUNC): Define to
33444 __fromfpxf128.
33445 (fromfpxf128): Define as weak alias.
33446 * sysdeps/ieee754/float128/s_setpayloadf128.c (FUNC): Define to
33447 __setpayloadf128.
33448 (setpayloadf128): Define as weak alias.
33449 * sysdeps/ieee754/float128/s_setpayloadsigf128.c (FUNC): Define to
33450 __setpayloadsigf128.
33451 (setpayloadsigf128): Define as weak alias.
33452 * sysdeps/ieee754/float128/s_ufromfpf128.c (FUNC): Define to
33453 __ufromfpf128.
33454 (ufromfpf128): Define as weak alias.
33455 * sysdeps/ieee754/float128/s_ufromfpxf128.c (FUNC): Define to
33456 __ufromfpxf128.
33457 (ufromfpxf128): Define as weak alias.
33458 * sysdeps/ieee754/flt-32/s_fromfpf.c (FUNC): Define to __fromfpf.
33459 (fromfpf): Define as weak alias.
33460 * sysdeps/ieee754/flt-32/s_fromfpxf.c (FUNC): Define to
33461 __fromfpxf.
33462 (fromfpxf): Define as weak alias.
33463 * sysdeps/ieee754/flt-32/s_getpayloadf.c (getpayloadf): Rename to
33464 __getpayloadf and define as weak alias.
33465 * sysdeps/ieee754/flt-32/s_roundevenf.c (roundevenf): Rename to
33466 __roundevenf and define as weak alias.
33467 * sysdeps/ieee754/flt-32/s_setpayloadf.c (FUNC): Define to
33468 __setpayloadf.
33469 (setpayloadf): Define as weak alias.
33470 * sysdeps/ieee754/flt-32/s_setpayloadsigf.c (FUNC): Define to
33471 __setpayloadsigf.
33472 (setpayloadsigf): Define as weak alias.
33473 * sysdeps/ieee754/flt-32/s_totalorderf.c (totalorderf): Rename to
33474 __totalorderf and define as weak alias.
33475 * sysdeps/ieee754/flt-32/s_totalordermagf.c (totalordermagf):
33476 Rename to __totalordermagf and define as weak alias.
33477 * sysdeps/ieee754/flt-32/s_ufromfpf.c (FUNC): Define to
33478 __ufromfpf.
33479 (ufromfpf): Define as weak alias.
33480 * sysdeps/ieee754/flt-32/s_ufromfpxf.c (FUNC): Define to
33481 __ufromfpxf.
33482 (ufromfpxf): Define as weak alias.
33483 * sysdeps/ieee754/ldbl-128/s_fromfpl.c (FUNC): Define to
33484 __fromfpl.
33485 (fromfpl): Define as weak alias.
33486 * sysdeps/ieee754/ldbl-128/s_fromfpxl.c (FUNC): Define to
33487 __fromfpxl.
33488 (fromfpxl): Define as weak alias.
33489 * sysdeps/ieee754/ldbl-128/s_getpayloadl.c (getpayloadl): Rename
33490 to __getpayloadl and define as weak alias.
33491 * sysdeps/ieee754/ldbl-128/s_roundevenl.c (roundevenl): Rename to
33492 __roundevenl and define as weak alias.
33493 * sysdeps/ieee754/ldbl-128/s_setpayloadl.c (FUNC): Define to
33494 __setpayloadl.
33495 (setpayloadl): Define as weak alias.
33496 * sysdeps/ieee754/ldbl-128/s_setpayloadsigl.c (FUNC): Define to
33497 __setpayloadsigl.
33498 (setpayloadsigl): Define as weak alias.
33499 * sysdeps/ieee754/ldbl-128/s_totalorderl.c (totalorderl): Rename
33500 to __totalorderl and define as weak alias.
33501 * sysdeps/ieee754/ldbl-128/s_totalordermagl.c (totalordermagl):
33502 Rename to __totalordermagl and define as weak alias.
33503 * sysdeps/ieee754/ldbl-128/s_ufromfpl.c (FUNC): Define to
33504 __ufromfpl.
33505 (ufromfpl): Define as weak alias.
33506 * sysdeps/ieee754/ldbl-128/s_ufromfpxl.c (FUNC): Define to
33507 __ufromfpxl.
33508 (ufromfpxl): Define as weak alias.
33509 * sysdeps/ieee754/ldbl-128ibm/s_fromfpl.c (FUNC): Define to
33510 __fromfpl.
33511 (fromfpl): Define as weak alias.
33512 * sysdeps/ieee754/ldbl-128ibm/s_fromfpxl.c (FUNC): Define to
33513 __fromfpxl.
33514 (fromfpxl): Define as weak alias.
33515 * sysdeps/ieee754/ldbl-128ibm/s_getpayloadl.c (getpayloadl):
33516 Rename to __getpayloadl and define as weak alias.
33517 * sysdeps/ieee754/ldbl-128ibm/s_roundevenl.c (roundevenl): Rename
33518 to __roundevenl and define as weak alias. Call __roundeven
33519 instead of roundeven.
33520 * sysdeps/ieee754/ldbl-128ibm/s_setpayloadl.c (FUNC): Define to
33521 __setpayloadl.
33522 (setpayloadl): Define as weak alias.
33523 * sysdeps/ieee754/ldbl-128ibm/s_setpayloadsigl.c (FUNC): Define to
33524 __setpayloadsigl.
33525 (setpayloadsigl): Define as weak alias.
33526 * sysdeps/ieee754/ldbl-128ibm/s_totalorderl.c (totalorderl):
33527 Rename to __totalorderl and define as weak alias.
33528 * sysdeps/ieee754/ldbl-128ibm/s_totalordermagl.c (totalordermagl):
33529 Rename to __totalordermagl and define as weak alias.
33530 * sysdeps/ieee754/ldbl-128ibm/s_ufromfpl.c (FUNC): Define to
33531 __ufromfpl.
33532 (ufromfpl): Define as weak alias.
33533 * sysdeps/ieee754/ldbl-128ibm/s_ufromfpxl.c (FUNC): Define to
33534 __ufromfpxl.
33535 (ufromfpxl): Define as weak alias.
33536 * sysdeps/ieee754/ldbl-96/s_fromfpl.c (FUNC): Define to
33537 __fromfpl.
33538 (fromfpl): Define as weak alias.
33539 * sysdeps/ieee754/ldbl-96/s_fromfpxl.c (FUNC): Define to
33540 __fromfpxl.
33541 (fromfpxl): Define as weak alias.
33542 * sysdeps/ieee754/ldbl-96/s_getpayloadl.c (getpayloadl): Rename to
33543 __getpayloadl and define as weak alias.
33544 * sysdeps/ieee754/ldbl-96/s_roundevenl.c (roundevenl): Rename to
33545 __roundevenl and define as weak alias.
33546 * sysdeps/ieee754/ldbl-96/s_setpayloadl.c (FUNC): Define to
33547 __setpayloadl.
33548 (setpayloadl): Define as weak alias.
33549 * sysdeps/ieee754/ldbl-96/s_setpayloadsigl.c (FUNC): Define to
33550 __setpayloadsigl.
33551 (setpayloadsigl): Define as weak alias.
33552 * sysdeps/ieee754/ldbl-96/s_totalorderl.c (totalorderl): Rename to
33553 __totalorderl and define as weak alias.
33554 * sysdeps/ieee754/ldbl-96/s_totalordermagl.c (totalordermagl):
33555 Rename to __totalordermagl and define as weak alias.
33556 * sysdeps/ieee754/ldbl-96/s_ufromfpl.c (FUNC): Define to
33557 __ufromfpl.
33558 (ufromfpl): Define as weak alias.
33559 * sysdeps/ieee754/ldbl-96/s_ufromfpxl.c (FUNC): Define to
33560 __ufromfpxl.
33561 (ufromfpxl): Define as weak alias.
33562
33563 2017-09-14 Siddhesh Poyarekar <siddhesh@sourceware.org>
33564
33565 * benchtests/bench-string.h (realloc_bufs): New function.
33566 (test_init): Call it.
33567 * benchtests/bench-memset-large.c (do_test): Likewise.
33568 * benchtests/bench-memset.c (do_test): Likewise.
33569
33570 * benchtests/bench-memset-large.c: Print output in JSON
33571 format.
33572 * benchtests/bench-memset.c: Likewise.
33573
33574 2017-09-14 Mike FABIAN <mfabian@redhat.com>
33575
33576 [BZ #21084]
33577 * benchtests/strcoll-inputs/filelist#en_US.UTF-8: Add IBM858 and ibm858.c.
33578 * iconvdata/Makefile: Add IBM858.
33579 * iconvdata/gconv-modules: Likewise.
33580 * iconvdata/tst-tables.sh: Likewise.
33581 * iconvdata/ibm858.c: New file.
33582 * localedata/charmaps/IBM858: Likewise.
33583
33584 2017-09-14 Akhilesh Kumar <akhilesh.k@samsung.com>
33585
33586 [BZ #22023]
33587 * locales/niu_NZ (LC_TIME): copy "niu_NU".
33588 * locales/niu_NZ (LC_MESSAGES): copy "niu_NU".
33589
33590 2017-09-14 Mike FABIAN <mfabian@redhat.com>
33591
33592 [BZ #22112]
33593 * localedata/locales/az_AZ(LC_TELEPHONE): Fix int_select
33594 and add tel_int_fmt.
33595
33596 2017-09-14 Joseph Myers <joseph@codesourcery.com>
33597
33598 * sysdeps/generic/libm-alias-float128.h: New file.
33599 * sysdeps/generic/math-type-macros-float128.h: Include
33600 <libm-alias-float128.h>.
33601 [!declare_mgen_alias] (declare_mgen_alias): Define macro.
33602
33603 2017-09-13 Joseph Myers <joseph@codesourcery.com>
33604
33605 * sysdeps/generic/libm-alias-ldouble.h: New file.
33606 * sysdeps/ieee754/ldbl-opt/libm-alias-ldouble.h: Likewise.
33607 * sysdeps/ieee754/ldbl-opt/math-type-macros-ldouble.h: Remove.
33608 * sysdeps/generic/math-type-macros-ldouble.h: Include
33609 <libm-alias-ldouble.h>.
33610 [!declare_mgen_alias] (declare_mgen_alias): Define to use
33611 libm_alias_ldouble.
33612
33613 2017-09-13 Szabolcs Nagy <szabolcs.nagy@arm.com>
33614
33615 * sysdeps/ieee754/dbl-64/w_exp_compat.c: Move to...
33616 * math/w_exp_compat.c: ... here.
33617 * sysdeps/ieee754/flt-32/w_expf_compat.c: Move to...
33618 * math/w_expf_compat.c: ... here.
33619 * sysdeps/ieee754/ldbl-128/w_expl_compat.c: Move to...
33620 * math/w_expl_compat.c: ... here.
33621 * sysdeps/ieee754/ldbl-128ibm/w_expl_compat.c: Remove.
33622 * sysdeps/ieee754/ldbl-96/w_expl_compat.c: Remove.
33623 * sysdeps/ieee754/ldbl-opt/w_exp_compat.c: Use the new path.
33624 * sysdeps/ieee754/ldbl-opt/w_expl_compat.c: Likewise.
33625
33626 2017-09-13 Joseph Myers <joseph@codesourcery.com>
33627
33628 * math/w_scalbln_template.c (strong_alias): Do not undefine and
33629 redefine.
33630 * sysdeps/ieee754/ldbl-opt/s_ldexp.c (declare_mgen_alias): Remove
33631 macro.
33632 (ldexpl): Only define as compat symbol for libc, not libm.
33633 (scalbnl): Define as compat symbol for libc here.
33634 * sysdeps/ieee754/ldbl-opt/s_ldexpl.c (declare_mgen_alias): Only
33635 define for [IS_IN (libc)].
33636 (__ldexpl_2): Remove alias.
33637 (ldexpl): Only define with long_double_symbol if [IS_IN (libc)].
33638 (scalbnl): Likewise. Use __wrap_scalbnl not __ldexpl_2 as base
33639 name in long_double_symbol call.
33640 * sysdeps/ieee754/ldbl-opt/s_log1p.c: Remove file.
33641 * sysdeps/ieee754/ldbl-opt/s_scalbln.c: Likewise.
33642 * sysdeps/ieee754/ldbl-opt/s_scalbn.c: Likewise.
33643 * sysdeps/ieee754/ldbl-opt/w_log1p.c: Likewise.
33644 * sysdeps/ieee754/ldbl-opt/w_scalbln.c (declare_mgen_alias):
33645 Remove macro.
33646 [IS_IN (libc) && LONG_DOUBLE_COMPAT (libc, GLIBC_2_1)] (scalblnl):
33647 Define as compat symbol.
33648
33649 2017-09-13 Adhemerval Zanella <adhemerval.zanella@linaro.org>
33650
33651 * sysdeps/unix/sysv/linux/s390/s390-32/oldglob.c: New file.
33652 * sysdeps/unix/sysv/linux/alpha/Makefile
33653 [$(subdir) = csu] (sysdep_routines): Remove rule.
33654
33655 2017-09-13 Joseph Myers <joseph@codesourcery.com>
33656
33657 * sysdeps/generic/libm-alias-double.h: New file.
33658 * sysdeps/ieee754/ldbl-opt/libm-alias-double.h: Likewise.
33659 * sysdeps/generic/math-type-macros-double.h: Include
33660 <libm-alias-double.h>.
33661 [declare_mgen_alias] (declare_mgen_alias): Define to use
33662 libm_alias_double.
33663 * sysdeps/generic/math-type-macros.h [!M_LIBM_NEED_COMPAT]
33664 (M_LIBM_NEED_COMPAT): Remove macro.
33665 [!M_LIBM_NEED_COMPAT] (declare_mgen_libm_compat): Likewise.
33666 * sysdeps/ieee754/ldbl-opt/math-type-macros-double.h: Remove.
33667 * math/cabs_template.c [M_LIBM_NEED_COMPAT]: Remove conditional
33668 code.
33669 * math/carg_template.c [M_LIBM_NEED_COMPAT]: Likewise.
33670 * math/cimag_template.c [M_LIBM_NEED_COMPAT]: Likewise.
33671 * math/conj_template.c [M_LIBM_NEED_COMPAT]: Likewise.
33672 * math/creal_template.c [M_LIBM_NEED_COMPAT]: Likewise.
33673 * math/s_cacos_template.c [M_LIBM_NEED_COMPAT]: Likewise.
33674 * math/s_cacosh_template.c [M_LIBM_NEED_COMPAT]: Likewise.
33675 * math/s_casin_template.c [M_LIBM_NEED_COMPAT]: Likewise.
33676 * math/s_casinh_template.c [M_LIBM_NEED_COMPAT]: Likewise.
33677 * math/s_catan_template.c [M_LIBM_NEED_COMPAT]: Likewise.
33678 * math/s_catanh_template.c [M_LIBM_NEED_COMPAT]: Likewise.
33679 * math/s_ccos_template.c [M_LIBM_NEED_COMPAT]: Likewise.
33680 * math/s_ccosh_template.c [M_LIBM_NEED_COMPAT]: Likewise.
33681 * math/s_cexp_template.c [M_LIBM_NEED_COMPAT]: Likewise.
33682 * math/s_clog10_template.c [M_LIBM_NEED_COMPAT]: Likewise.
33683 * math/s_clog_template.c [M_LIBM_NEED_COMPAT]: Likewise.
33684 * math/s_cpow_template.c [M_LIBM_NEED_COMPAT]: Likewise.
33685 * math/s_cproj_template.c [M_LIBM_NEED_COMPAT]: Likewise.
33686 * math/s_csin_template.c [M_LIBM_NEED_COMPAT]: Likewise.
33687 * math/s_csinh_template.c [M_LIBM_NEED_COMPAT]: Likewise.
33688 * math/s_csqrt_template.c [M_LIBM_NEED_COMPAT]: Likewise.
33689 * math/s_ctan_template.c [M_LIBM_NEED_COMPAT]: Likewise.
33690 * math/s_ctanh_template.c [M_LIBM_NEED_COMPAT]: Likewise.
33691 * math/s_fdim_template.c [M_LIBM_NEED_COMPAT]: Likewise.
33692 * math/s_fmax_template.c [M_LIBM_NEED_COMPAT]: Likewise.
33693 * math/s_fmin_template.c [M_LIBM_NEED_COMPAT]: Likewise.
33694 * math/s_nan_template.c [M_LIBM_NEED_COMPAT]: Likewise.
33695 * math/w_ilogb_template.c [M_LIBM_NEED_COMPAT]: Likewise.
33696 * sysdeps/ieee754/ldbl-opt/s_clog10.c: New file.
33697 * sysdeps/ieee754/ldbl-opt/s_ldexp.c (M_LIBM_NEED_COMPAT): Remove
33698 macro.
33699 (declare_mgen_alias): New macro.
33700 * sysdeps/ieee754/ldbl-opt/w_log1p.c: New file.
33701 * sysdeps/ieee754/ldbl-opt/w_scalbln.c: Likewise.
33702 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdim-vis3.c
33703 (M_LIBM_NEED_COMPAT): Remove macro.
33704 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdim.c
33705 [HAVE_AS_VIS3_SUPPORT]: Include <math_ldbl_opt.h> and
33706 <first-versions.h>.
33707 [HAVE_AS_VIS3_SUPPORT && LONG_DOUBLE_COMPAT (libm,
33708 FIRST_VERSION_libm_fdiml)]: Define fdiml as compat symbol.
33709
33710 2017-09-12 Joseph Myers <joseph@codesourcery.com>
33711
33712 * sysdeps/generic/math-type-macros.h [!declare_mgen_alias_2]
33713 (declare_mgen_alias_2): Remove.
33714 * sysdeps/generic/math-type-macros-double.h
33715 [NO_LONG_DOUBLE && !declare_mgen_alias_2] (declare_mgen_alias_2):
33716 Likewise.
33717 * math/s_ldexp_template.c (M_SUF (__wrap_scalbn)): Define strong
33718 alias.
33719 (ldexp): Define with declare_mgen_alias.
33720 (scalbn): Likewise.
33721
33722 2017-09-12 Steve Ellcey <sellcey@cavium.com>
33723
33724 * grp/initgroups.c: Include config.h.
33725 (DEFAULT_CONFIG): New macro.
33726 (internal_getgrouplist): Use DEFAULT_CONFIG.
33727 * nscd/initgrcache.c (addinitgroupsX): Likewise.
33728 * nss/nsswitch.c (__nss_disable_nscd): Likewise.
33729 (DEFAULT_DEFCONFIG): New macro.
33730 (__nss_database_lookup): Use DEFAULT_DEFCONFIG.
33731 * nss/grp-lookup.c: Include config.h
33732 (DEFAULT_CONFIG): Set definition based on LINK_OBSOLETE_NSL.
33733 * nss/pwd-lookup.c (DEFAULT_CONFIG): Likewise.
33734 * nss/spwd-lookup.c (DEFAULT_CONFIG): Likewise.
33735 * manual/nss.texi: Update default values section.
33736
33737 2017-09-12 H.J. Lu <hongjiu.lu@intel.com>
33738
33739 [BZ #21967]
33740 * sysdeps/x86/cpu-features.h (bit_arch_MathVec_Prefer_No_AVX512):
33741 New.
33742 (index_arch_MathVec_Prefer_No_AVX512): Likewise.
33743 * sysdeps/x86/cpu-tunables.c (TUNABLE_CALLBACK (set_hwcaps)):
33744 Handle MathVec_Prefer_No_AVX512.
33745 * sysdeps/x86_64/fpu/multiarch/ifunc-mathvec-avx512.h
33746 (IFUNC_SELECTOR): Return AVX2 version if MathVec_Prefer_No_AVX512
33747 is set.
33748
33749 2017-09-12 Samuel Thibault <samuel.thibault@ens-lyon.org>
33750
33751 * posix/sched_primax.c (__sched_get_priority_max): Add
33752 libc_hidden_def.
33753 * posix/sched_primin.c (__sched_get_priority_min): Likewise.
33754 * sysdeps/mach/hurd/mmap.c (__mmap): Likewise.
33755 * sysdeps/mach/hurd/mmap64.c (__mmap64): Likewise.
33756 * sysdeps/mach/hurd/mprotect.c (__mprotect): Likewise.
33757 * sysdeps/mach/hurd/munmap.c (__munmap): Likewise.
33758 * sysdeps/mach/hurd/dl-sysdep.c (__GI___getpid,
33759 __GI___strtoul_internal, __GI_____strtoul_internal, __GI___chk_fail,
33760 __GI___fortify_fail, __GI___assert_fail, __GI___assert_perror_fail):
33761 Add aliases.
33762
33763 2017-09-11 Joseph Myers <joseph@codesourcery.com>
33764
33765 * sysdeps/generic/libm-alias-float.h: New file.
33766 * sysdeps/generic/math-type-macros-float.h: Include
33767 <libm-alias-float.h>.
33768 [!declare_mgen_alias] (declare_mgen_alias): Define macro.
33769
33770 2017-09-11 H.J. Lu <hongjiu.lu@intel.com>
33771
33772 [BZ #22093]
33773 * sysdeps/x86/cpu-features.c (init_cpu_features): Initialize
33774 GLRO(dl_hwcap) to HWCAP_X86_64 for x86-64.
33775 * sysdeps/x86/dl-hwcap.h (HWCAP_COUNT): Updated.
33776 (HWCAP_IMPORTANT): Likewise.
33777 (HWCAP_X86_64): New enum.
33778 (HWCAP_X86_AVX512_1): Updated.
33779 * sysdeps/x86/dl-procinfo.c (_dl_x86_hwcap_flags): Add "x86_64".
33780 * sysdeps/x86_64/Makefile (tests): Add tst-x86_64-1.
33781 (modules-names): Add x86_64/tst-x86_64mod-1.
33782 (LDFLAGS-tst-x86_64mod-1.so): New.
33783 ($(objpfx)tst-x86_64-1): Likewise.
33784 ($(objpfx)x86_64/tst-x86_64mod-1.os): Likewise.
33785 (tst-x86_64-1-clean): Likewise.
33786 * sysdeps/x86_64/tst-x86_64-1.c: New file.
33787 * sysdeps/x86_64/tst-x86_64mod-1.c: Likewise.
33788
33789 2017-09-11 Siddhesh Poyarekar <siddhesh@sourceware.org>
33790
33791 * po/sv.po: Update translations.
33792 * po/fr.po: Likewise.
33793
33794 2017-09-10 Samuel Thibault <samuel.thibault@ens-lyon.org>
33795
33796 * sunrpc/tst-udp-timeout.c (test_udp_server): Increase timeout to 2.5
33797 seconds.
33798 * sunrpc/tst-udp-nonblocking.c (do_test): Increase timeout to 0.75
33799 seconds.
33800 * elf/rtld-Rules: Fix $(error) use.
33801
33802 2017-09-09 Mike FABIAN <mfabian@redhat.com>
33803
33804 [BZ #14925]
33805 * libio/tst-widetext.input: Change “Bengali” to “Bangla”.
33806 * locale/iso-639.def: Change “Bengali” to “Bangla”.
33807 * localedata/locales/bn_BD: “Bengali” was still used in some
33808 comments. Change it to “Bangla”.
33809
33810 2017-09-08 Markus Trippelsdorf <markus@trippelsdorf.de>
33811
33812 * sysdeps/x86_64/fpu/libm-test-ulps: Update for AMD Ryzen.
33813
33814 2017-09-08 Steve Ellcey <sellcey@cavium.com>
33815
33816 * manual/tunables.texi (glibc.tune.cpu): Add thunderx2t99 and
33817 thunderx2t99p1 to list of cpu names.
33818 * sysdeps/unix/sysv/linux/aarch64/cpu-features.c (cpu_list):
33819 Add thunderx2t99 and thunderx2t99p1 entries to cpu_list.
33820
33821 2017-09-08 Steve Ellcey <sellcey@cavium.com>
33822
33823 * sysdeps/unix/sysv/linux/aarch64/cpu-features.c (get_midr_from_mcpu):
33824 Use strcmp instead of tunable_is_name.
33825
33826 2017-09-08 Joseph Myers <joseph@codesourcery.com>
33827
33828 * sysdeps/unix/sysv/linux/bits/fcntl-linux.h [__USE_GNU]
33829 (F_GET_RW_HINT): New macro.
33830 [__USE_GNU] (F_SET_RW_HINT): Likewise.
33831 [__USE_GNU] (F_GET_FILE_RW_HINT): Likewise.
33832 [__USE_GNU] (F_SET_FILE_RW_HINT): Likewise.
33833 [__USE_GNU] (RWF_WRITE_LIFE_NOT_SET): Likewise.
33834 [__USE_GNU] (RWH_WRITE_LIFE_NONE): Likewise.
33835 [__USE_GNU] (RWH_WRITE_LIFE_SHORT): Likewise.
33836 [__USE_GNU] (RWH_WRITE_LIFE_MEDIUM): Likewise.
33837 [__USE_GNU] (RWH_WRITE_LIFE_LONG): Likewise.
33838 [__USE_GNU] (RWH_WRITE_LIFE_EXTREME): Likewise.
33839
33840 * sysdeps/unix/sysv/linux/bits/fcntl-linux.h [__USE_GNU]
33841 (F_ADD_SEALS): New macro.
33842 [__USE_GNU] (F_GET_SEALS): Likewise.
33843 [__USE_GNU] (F_SEAL_SEAL): Likewise.
33844 [__USE_GNU] (F_SEAL_SHRINK): Likewise.
33845 [__USE_GNU] (F_SEAL_GROW): Likewise.
33846 [__USE_GNU] (F_SEAL_WRITE): Likewise.
33847
33848 2017-09-08 Adhemerval Zanella <adhemerval.zanella@linaro.org>
33849
33850 * posix/glob_internal.h (GLOBPAT_NONE, GLOBPAT_SPECIAL)
33851 (GLOBPAT_BACKSLASH, GLOBPAT_BRACKET): New constants.
33852 * posix/glob_internal.h (__glob_pattern_type):
33853 * posix/glob.c (glob):
33854 * posix/glob_pattern_p.c (__glob_pattern_p):
33855 Use them.
33856
33857 * sysdeps/unix/sysv/linux/arm/glob64.c: Remove file.
33858 * sysdeps/unix/sysv/linux/i386/glob64.c: Likewise.
33859 * sysdeps/unix/sysv/linux/m68k/glob64.c: Likewise.
33860 * sysdeps/unix/sysv/linux/mips/mips64/n64/glob64.c: Likewise.
33861 * sysdeps/unix/sysv/linux/mips/mips64/n64/globfree64.c: Likewise.
33862 * sysdeps/unix/sysv/linux/powerpc/powerpc32/glob64.c: Likewise.
33863 * sysdeps/unix/sysv/linux/sparc/sparc32/glob64.c: Likewise.
33864 * sysdeps/unix/sysv/linux/wordsize-64/glob64.c: Likewise.
33865 * sysdeps/unix/sysv/linux/wordsize-64/globfree64.c: Likewise.
33866 * sysdeps/unix/sysv/linux/x86_64/x32/glob.c: Likewise.
33867 * sysdeps/unix/sysv/linux/x86_64/x32/globfree.c: Likewise.
33868 * sysdeps/wordsize-64/glob.c: Likewise.
33869 * sysdeps/wordsize-64/glob64.c: Likewise.
33870 * sysdeps/wordsize-64/globfree.c: Likewise.
33871 * sysdeps/wordsize-64/globfree64.c: Likewise.
33872 * sysdeps/unix/sysv/linux/glob.c: New file.
33873 * sysdeps/unix/sysv/linux/glob64.c: Likewise.
33874 * sysdeps/unix/sysv/linux/globfree.c: Likewise.
33875 * sysdeps/unix/sysv/linux/globfree64.c: Likewise.
33876 * sysdeps/unix/sysv/linux/s390/s390-32/glob64.c: Likewise.
33877 * sysdeps/unix/sysv/linux/oldglob.c [SHLIB_COMPAT]: Also
33878 adds !GLOB_NO_OLD_VERSION as an extra condition.
33879 * sysdeps/unix/sysv/linux/i386/alphasort64.c: Include olddirent.h
33880 using relative path instead of absolute one.
33881 * sysdeps/unix/sysv/linux/i386/getdents64.c: Likewise.
33882 * sysdeps/unix/sysv/linux/i386/readdir64.c: Likewise.
33883 * sysdeps/unix/sysv/linux/i386/readdir64_r.c: Likewise.
33884 * sysdeps/unix/sysv/linux/i386/versionsort64.c: Likewise.
33885 * sysdeps/unix/sysv/linux/i386/olddirent.h: Move to ...
33886 * sysdeps/unix/sysv/linux//olddirent.h: ... here.
33887
33888 [BZ #1062]
33889 * posix/glob.c (GET_LOGIN_NAME_MAX): Remove.
33890 (glob): Use the same scratch buffer for both getlogin_r and
33891 getpwnam_r. Don’t require preallocation of the login name. This
33892 simplifies storage allocation, and corrects the handling of
33893 long login names.
33894
33895 [BZ #1062]
33896 * posix/glob.c (glob): Port recent patches to platforms
33897 lacking getpwnam_r.
33898 (glob): Fix longstanding misuse of errno after getpwnam_r, which
33899 returns an error number rather than setting errno.
33900
33901 * include/scratch_buffer.h (scratch_buffer): Use a C99 align method
33902 instead of GCC extension.
33903 * malloc/scratch_buffer_grow.c [!_LIBC]: Include libc-config.h.
33904 * malloc/scratch_buffer_grow_preserve.c [!_LIBC]: Likewise.
33905 * malloc/scratch_buffer_set_array_size.c [!_LIBC]: Likewise.
33906
33907 [BZ #866]
33908 [BZ #1062]
33909 * posix/Makefile (tests): Remove bug-glob1 and tst-glob_symlinks.
33910 * posix/bug-glob1.c: Remove file.
33911 * posix/tst-glob_symlinks.c: New file.
33912 * posix/glob.c (__lstat64): New macro.
33913 (is_dir): New function.
33914 (glob, glob_in_dir): Match symlinks even if they are dangling.
33915 (link_stat, link_exists_p): Remove. All uses removed.
33916
33917 [BZ #1062]
33918 [BZ #19971]
33919 * posix/glob.c (struct readdir_result): Remove skip_entry member.
33920 (readdir_result_skip_entry, D_INO_TO_RESULT): Remove.
33921 All uses removed.
33922
33923 [BZ #1062]
33924 CVE-2017-15671
33925 * posix/Makefile (routines): Add globfree, globfree64, and
33926 glob_pattern_p.
33927 * posix/flexmember.h: New file.
33928 * posix/glob_internal.h: Likewise.
33929 * posix/glob_pattern_p.c: Likewise.
33930 * posix/globfree.c: Likewise.
33931 * posix/globfree64.c: Likewise.
33932 * sysdeps/gnu/globfree64.c: Likewise.
33933 * sysdeps/unix/sysv/linux/alpha/globfree.c: Likewise.
33934 * sysdeps/unix/sysv/linux/mips/mips64/n64/globfree64.c: Likewise.
33935 * sysdeps/unix/sysv/linux/oldglob.c: Likewise.
33936 * sysdeps/unix/sysv/linux/wordsize-64/globfree64.c: Likewise.
33937 * sysdeps/unix/sysv/linux/x86_64/x32/globfree.c: Likewise.
33938 * sysdeps/wordsize-64/globfree.c: Likewise.
33939 * sysdeps/wordsize-64/globfree64.c: Likewise.
33940 * posix/glob.c (HAVE_CONFIG_H): Use !_LIBC instead.
33941 [NDEBUG): Remove comments.
33942 (GLOB_ONLY_P, _AMIGA, VMS): Remove define.
33943 (dirent_type): New type. Use uint_fast8_t not
33944 uint8_t, as C99 does not require uint8_t.
33945 (DT_UNKNOWN, DT_DIR, DT_LNK): New macros.
33946 (struct readdir_result): Use dirent_type. Do not define skip_entry
33947 unless it is needed; this saves a byte on platforms lacking d_ino.
33948 (readdir_result_type, readdir_result_skip_entry):
33949 New functions, replacing ...
33950 (readdir_result_might_be_symlink, readdir_result_might_be_dir):
33951 these functions, which were removed. This makes the callers
33952 easier to read. All callers changed.
33953 (D_INO_TO_RESULT): Now empty if there is no d_ino.
33954 (size_add_wrapv, glob_use_alloca): New static functions.
33955 (glob, glob_in_dir): Check for size_t overflow in several places,
33956 and fix some size_t checks that were not quite right.
33957 Remove old code using SHELL since Bash no longer
33958 uses this.
33959 (glob, prefix_array): Separate MS code better.
33960 (glob_in_dir): Remove old Amiga and VMS code.
33961 (globfree, __glob_pattern_type, __glob_pattern_p): Move to
33962 separate files.
33963 (glob_in_dir): Do not rely on undefined behavior in accessing
33964 struct members beyond their bounds. Use a flexible array member
33965 instead
33966 (link_stat): Rename from link_exists2_p and return -1/0 instead of
33967 0/1. Caller changed.
33968 (glob): Fix memory leaks.
33969 * posix/glob64 (globfree64): Move to separate file.
33970 * sysdeps/gnu/glob64.c (NO_GLOB_PATTERN_P): Remove define.
33971 (globfree64): Remove hidden alias.
33972 * sysdeps/unix/sysv/linux/Makefile (sysdeps_routines): Add
33973 oldglob.
33974 * sysdeps/unix/sysv/linux/alpha/glob.c (__new_globfree): Move to
33975 separate file.
33976 * sysdeps/unix/sysv/linux/i386/glob64.c (NO_GLOB_PATTERN_P): Remove
33977 define.
33978 Move compat code to separate file.
33979 * sysdeps/wordsize-64/glob.c (globfree): Move definitions to
33980 separate file.
33981
33982 2017-09-07 H.J. Lu <hongjiu.lu@intel.com>
33983
33984 * resolv/tst-resolv-qtypes.c (domain): Changed to
33985 "const char domain[] =".
33986
33987 2017-09-07 Joseph Myers <joseph@codesourcery.com>
33988
33989 * scripts/build-many-glibcs.py (Context.checkout): Default MPFR
33990 version to 3.1.6.
33991
33992 * sysdeps/gnu/netinet/tcp.h (TCP_ULP): New macro.
33993 (TCP_MD5SIG_EXT): Likewise.
33994 (TCP_MD5SIG_FLAG_PREFIX): Likewise.
33995 (struct tcp_md5sig): Replace __tcpm_pad1 by tcpm_flags and
33996 tcpm_prefixlen. Rename __tcpm_pad2 to __tcpm_pad.
33997
33998 * sysdeps/unix/sysv/linux/bits/socket.h (SOL_TLS): New macro.
33999
34000 2017-09-07 Mike FABIAN <mfabian@redhat.com>
34001
34002 * localedata/locales/om_ET (LC_TIME): use ASCII for better readability.
34003
34004 2017-09-07 Akhilesh Kumar <akhilesh.k@samsung.com>
34005
34006 [BZ #22100]
34007 * localedata/locales/om_KE (LC_TIME): copy "om_ET".
34008
34009 2017-09-07 Samuel Thibault <samuel.thibault@ens-lyon.org>
34010
34011 * hurd/get-host.c (_hurd_get_host_config): Also check that more == 0
34012 before assuming that the file is empty. Avoid testing buffer content
34013 when nread == 0.
34014
34015 2017-09-06 Adhemerval Zanella <adhemerval.zanella@linaro.org>
34016
34017 [BZ #18858]
34018 * sysdeps/i386/i686/multiarch/strncpy.c (_HAVE_STRING_ARCH_strncpy):
34019 Remove define.
34020 * sysdeps/x86_64/multiarch/stpcpy.c (_HAVE_STRING_ARCH_stpcpy):
34021 Likewise.
34022 * sysdeps/x86_64/multiarch/strcspn.c (_HAVE_STRING_ARCH_strcspn):
34023 Likewise.
34024 * sysdeps/x86_64/multiarch/strncat.c (_HAVE_STRING_ARCH_strncat):
34025 Likewise.
34026 * sysdeps/x86_64/multiarch/strncpy.c (_HAVE_STRING_ARCH_strncpy):
34027 Likewise.
34028 * sysdeps/x86_64/multiarch/strpbrk.c (_HAVE_STRING_ARCH_strpbrk):
34029 Likewise.
34030 * sysdeps/x86_64/multiarch/strspn.c (_HAVE_STRING_ARCH_strspn):
34031 Likewise.
34032
34033 2017-09-06 Florian Weimer <fweimer@redhat.com>
34034
34035 * malloc/dynarray_emplace_enlarge.c
34036 (__libc_dynarray_emplace_enlarge): Add missing else.
34037
34038 2017-09-06 Florian Weimer <fweimer@redhat.com>
34039
34040 [BZ #22096]
34041 * resolv/resolv_conf.c (__resolv_conf_attach): Do not free conf in
34042 case of failure to obtain the global conf object.
34043
34044 2017-09-06 Florian Weimer <fweimer@redhat.com>
34045
34046 [BZ #22095]
34047 * resolv/res_init.c (res_vinit_1): Avoid memory leak in case of
34048 dynarray allocation failure.
34049
34050 2017-09-06 Florian Weimer <fweimer@redhat.com>
34051
34052 Remove dead PTR IPv4-to-IPv6 mapping code from nss_dns.
34053 * resolv/nss_dns/dns-host.c (getanswer_r): Remove dead code.
34054 * resolv/tst-res_use_inet6.c (response_ptr_v4, response_ptr_v6):
34055 New functions.
34056 (response): Call them. Add 'p', '6' flag processing.
34057 (test_reverse): New function.
34058 (test_get2_any): Call it.
34059 (test_no_inet6): Add 'p' test.
34060 (test_inet6): Likewise.
34061
34062 2017-09-06 Florian Weimer <fweimer@redhat.com>
34063
34064 Enhance tst-res_use_inet6 to test IPv4-to-IPv6 address mapping.
34065 * resolv/tst-res_use_inet6.c (response): Process flags embedded in
34066 the QNAME.
34067 (test_gai): Adjust query names. Add additional tests.
34068 (test_get2_any, test_get2_no_inet6, test_get2_inet6): Split from
34069 test_get2. Adjust query names. Add additional tests.
34070 (test_no_inet6): New function, extracted from threadfunc.
34071 (threadfunc): Call test_get2_any, test_get2_inet6, test_no_inet6.
34072 Add additional tests.
34073
34074 2017-09-06 Mike FABIAN <mfabian@redhat.com>
34075
34076 [BZ #22070]
34077 * localedata/unicode-gen/utf8_gen.py: Set the width for
34078 characters with Prepended_Concatenation_Mark property to 1
34079 * localedata/charmaps/UTF-8: Updated using the improved script.
34080
34081 2017-09-06 Mike FABIAN <mfabian@redhat.com>
34082
34083 [BZ #21750]
34084 * localedata/unicode-gen/utf8_gen.py: Improve the script to
34085 use the range notation for all ranges of neighbouring characters
34086 with the same width.
34087
34088 2017-09-05 Joseph Myers <joseph@codesourcery.com>
34089
34090 * sysdeps/generic/math-type-macros-double.h: Include
34091 <math-svid-compat.h>.
34092 (__USE_WRAPPER_TEMPLATE): Define to !LIBM_SVID_COMPAT.
34093 * sysdeps/generic/math-type-macros-float.h: Include
34094 <math-svid-compat.h>.
34095 (__USE_WRAPPER_TEMPLATE): Define to !LIBM_SVID_COMPAT.
34096 * sysdeps/generic/math-type-macros-ldouble.h: Include
34097 <math-svid-compat.h>.
34098 (__USE_WRAPPER_TEMPLATE): Define to !LIBM_SVID_COMPAT.
34099 * math/lgamma-compat.h (BUILD_LGAMMA): Include LIBM_SVID_COMPAT
34100 condition.
34101 * math/w_acos_compat.c: Condition contents on [LIBM_SVID_COMPAT].
34102 * math/w_acosf_compat.c: Likewise.
34103 * math/w_acosh_compat.c: Likewise.
34104 * math/w_acoshf_compat.c: Likewise.
34105 * math/w_acoshl_compat.c: Likewise.
34106 * math/w_acosl_compat.c: Likewise.
34107 * math/w_asin_compat.c: Likewise.
34108 * math/w_asinf_compat.c: Likewise.
34109 * math/w_asinl_compat.c: Likewise.
34110 * math/w_atan2_compat.c: Likewise.
34111 * math/w_atan2f_compat.c: Likewise.
34112 * math/w_atan2l_compat.c: Likewise.
34113 * math/w_atanh_compat.c: Likewise.
34114 * math/w_atanhf_compat.c: Likewise.
34115 * math/w_atanhl_compat.c: Likewise.
34116 * math/w_cosh_compat.c: Likewise.
34117 * math/w_coshf_compat.c: Likewise.
34118 * math/w_coshl_compat.c: Likewise.
34119 * math/w_exp10_compat.c: Likewise.
34120 * math/w_exp10f_compat.c: Likewise.
34121 * math/w_exp10l_compat.c: Likewise.
34122 * math/w_exp2_compat.c: Likewise.
34123 * math/w_exp2f_compat.c: Likewise.
34124 * math/w_exp2l_compat.c: Likewise.
34125 * math/w_fmod_compat.c: Likewise.
34126 * math/w_fmodf_compat.c: Likewise.
34127 * math/w_fmodl_compat.c: Likewise.
34128 * math/w_hypot_compat.c: Likewise.
34129 * math/w_hypotf_compat.c: Likewise.
34130 * math/w_hypotl_compat.c: Likewise.
34131 * math/w_j0_compat.c: Likewise.
34132 * math/w_j0f_compat.c: Likewise.
34133 * math/w_j0l_compat.c: Likewise.
34134 * math/w_j1_compat.c: Likewise.
34135 * math/w_j1f_compat.c: Likewise.
34136 * math/w_j1l_compat.c: Likewise.
34137 * math/w_jn_compat.c: Likewise.
34138 * math/w_jnf_compat.c: Likewise.
34139 * math/w_jnl_compat.c: Likewise.
34140 * math/w_lgamma_r_compat.c: Likewise.
34141 * math/w_lgammaf_r_compat.c: Likewise.
34142 * math/w_lgammal_r_compat.c: Likewise.
34143 * math/w_log10_compat.c: Likewise.
34144 * math/w_log10f_compat.c: Likewise.
34145 * math/w_log10l_compat.c: Likewise.
34146 * math/w_log2_compat.c: Likewise.
34147 * math/w_log2f_compat.c: Likewise.
34148 * math/w_log2l_compat.c: Likewise.
34149 * math/w_log_compat.c: Likewise.
34150 * math/w_logf_compat.c: Likewise.
34151 * math/w_logl_compat.c: Likewise.
34152 * math/w_pow_compat.c: Likewise.
34153 * math/w_powf_compat.c: Likewise.
34154 * math/w_powl_compat.c: Likewise.
34155 * math/w_remainder_compat.c: Likewise.
34156 * math/w_remainderf_compat.c: Likewise.
34157 * math/w_remainderl_compat.c: Likewise.
34158 * math/w_sinh_compat.c: Likewise.
34159 * math/w_sinhf_compat.c: Likewise.
34160 * math/w_sinhl_compat.c: Likewise.
34161 * math/w_sqrt_compat.c: Likewise.
34162 * math/w_sqrtf_compat.c: Likewise.
34163 * math/w_sqrtl_compat.c: Likewise.
34164 * math/w_tgamma_compat.c: Likewise.
34165 * math/w_tgammaf_compat.c: Likewise.
34166 * math/w_tgammal_compat.c: Likewise.
34167 * math/w_scalb_compat.c (sysv_scalb): Condition definition on
34168 [LIBM_SVID_COMPAT].
34169 (__scalb): Condition call to sysv_scalb on [LIBM_SVID_COMPAT].
34170 * math/w_scalbf_compat.c (sysv_scalbf): Condition definition on
34171 [LIBM_SVID_COMPAT].
34172 (__scalbf): Condition call to sysv_scalbf on [LIBM_SVID_COMPAT].
34173 * math/w_scalbl_compat.c (sysv_scalbl): Condition definition on
34174 [LIBM_SVID_COMPAT].
34175 (__scalbl): Condition call to sysv_scalbl on [LIBM_SVID_COMPAT].
34176 * sysdeps/i386/fpu/w_sqrt.c: New file.
34177 * sysdeps/ia64/fpu/w_acos.c: Likewise.
34178 * sysdeps/ia64/fpu/w_acosf.c: Likewise.
34179 * sysdeps/ia64/fpu/w_acosh.c: Likewise.
34180 * sysdeps/ia64/fpu/w_acoshf.c: Likewise.
34181 * sysdeps/ia64/fpu/w_acoshl.c: Likewise.
34182 * sysdeps/ia64/fpu/w_acosl.c: Likewise.
34183 * sysdeps/ia64/fpu/w_asin.c: Likewise.
34184 * sysdeps/ia64/fpu/w_asinf.c: Likewise.
34185 * sysdeps/ia64/fpu/w_asinl.c: Likewise.
34186 * sysdeps/ia64/fpu/w_atan2.c: Likewise.
34187 * sysdeps/ia64/fpu/w_atan2f.c: Likewise.
34188 * sysdeps/ia64/fpu/w_atan2l.c: Likewise.
34189 * sysdeps/ia64/fpu/w_atanh.c: Likewise.
34190 * sysdeps/ia64/fpu/w_atanhf.c: Likewise.
34191 * sysdeps/ia64/fpu/w_atanhl.c: Likewise.
34192 * sysdeps/ia64/fpu/w_cosh.c: Likewise.
34193 * sysdeps/ia64/fpu/w_coshf.c: Likewise.
34194 * sysdeps/ia64/fpu/w_coshl.c: Likewise.
34195 * sysdeps/ia64/fpu/w_exp.c: Likewise.
34196 * sysdeps/ia64/fpu/w_exp10.c: Likewise.
34197 * sysdeps/ia64/fpu/w_exp10f.c: Likewise.
34198 * sysdeps/ia64/fpu/w_exp10l.c: Likewise.
34199 * sysdeps/ia64/fpu/w_exp2.c: Likewise.
34200 * sysdeps/ia64/fpu/w_exp2f.c: Likewise.
34201 * sysdeps/ia64/fpu/w_exp2l.c: Likewise.
34202 * sysdeps/ia64/fpu/w_expf.c: Likewise.
34203 * sysdeps/ia64/fpu/w_expl.c: Likewise.
34204 * sysdeps/ia64/fpu/w_fmod.c: Likewise.
34205 * sysdeps/ia64/fpu/w_fmodf.c: Likewise.
34206 * sysdeps/ia64/fpu/w_fmodl.c: Likewise.
34207 * sysdeps/ia64/fpu/w_hypot.c: Likewise.
34208 * sysdeps/ia64/fpu/w_hypotf.c: Likewise.
34209 * sysdeps/ia64/fpu/w_hypotl.c: Likewise.
34210 * sysdeps/ia64/fpu/w_lgamma_r.c: Likewise.
34211 * sysdeps/ia64/fpu/w_lgammaf_r.c: Likewise.
34212 * sysdeps/ia64/fpu/w_lgammal_r.c: Likewise.
34213 * sysdeps/ia64/fpu/w_log.c: Likewise.
34214 * sysdeps/ia64/fpu/w_log10.c: Likewise.
34215 * sysdeps/ia64/fpu/w_log10f.c: Likewise.
34216 * sysdeps/ia64/fpu/w_log10l.c: Likewise.
34217 * sysdeps/ia64/fpu/w_log2.c: Likewise.
34218 * sysdeps/ia64/fpu/w_log2f.c: Likewise.
34219 * sysdeps/ia64/fpu/w_log2l.c: Likewise.
34220 * sysdeps/ia64/fpu/w_logf.c: Likewise.
34221 * sysdeps/ia64/fpu/w_logl.c: Likewise.
34222 * sysdeps/ia64/fpu/w_pow.c: Likewise.
34223 * sysdeps/ia64/fpu/w_powf.c: Likewise.
34224 * sysdeps/ia64/fpu/w_powl.c: Likewise.
34225 * sysdeps/ia64/fpu/w_remainder.c: Likewise.
34226 * sysdeps/ia64/fpu/w_remainderf.c: Likewise.
34227 * sysdeps/ia64/fpu/w_remainderl.c: Likewise.
34228 * sysdeps/ia64/fpu/w_sinh.c: Likewise.
34229 * sysdeps/ia64/fpu/w_sinhf.c: Likewise.
34230 * sysdeps/ia64/fpu/w_sinhl.c: Likewise.
34231 * sysdeps/ia64/fpu/w_sqrt.c: Likewise.
34232 * sysdeps/ia64/fpu/w_sqrtf.c: Likewise.
34233 * sysdeps/ia64/fpu/w_sqrtl.c: Likewise.
34234 * sysdeps/ia64/fpu/w_tgamma.c: Likewise.
34235 * sysdeps/ia64/fpu/w_tgammaf.c: Likewise.
34236 * sysdeps/ia64/fpu/w_tgammal.c: Likewise.
34237 * sysdeps/ieee754/dbl-64/w_exp_compat.c: Condition contents on
34238 [LIBM_SVID_COMPAT].
34239 * sysdeps/ieee754/flt-32/w_expf_compat.c: Likewise.
34240 * sysdeps/ieee754/k_standard.c: Likewise.
34241 * sysdeps/ieee754/k_standardf.c: Likewise.
34242 * sysdeps/ieee754/k_standardl.c: Likewise.
34243 * sysdeps/ieee754/ldbl-128/w_expl_compat.c: Likewise.
34244 * sysdeps/ieee754/ldbl-128ibm/w_expl_compat.c: Likewise.
34245 * sysdeps/ieee754/ldbl-96/w_expl_compat.c: Likewise.
34246 * sysdeps/ieee754/ldbl-64-128/w_expl_compat.c: Condition
34247 long_double_symbol call on [LIBM_SVID_COMPAT].
34248 * sysdeps/ieee754/ldbl-opt/w_acoshl_compat.c: Likewise.
34249 * sysdeps/ieee754/ldbl-opt/w_acosl_compat.c: Likewise.
34250 * sysdeps/ieee754/ldbl-opt/w_asinl_compat.c: Likewise.
34251 * sysdeps/ieee754/ldbl-opt/w_atan2l_compat.c: Likewise.
34252 * sysdeps/ieee754/ldbl-opt/w_atanhl_compat.c: Likewise.
34253 * sysdeps/ieee754/ldbl-opt/w_coshl_compat.c: Likewise.
34254 * sysdeps/ieee754/ldbl-opt/w_fmodl_compat.c: Likewise.
34255 * sysdeps/ieee754/ldbl-opt/w_hypotl_compat.c: Likewise.
34256 * sysdeps/ieee754/ldbl-opt/w_j0l_compat.c: Likewise.
34257 * sysdeps/ieee754/ldbl-opt/w_j1l_compat.c: Likewise.
34258 * sysdeps/ieee754/ldbl-opt/w_jnl_compat.c: Likewise.
34259 * sysdeps/ieee754/ldbl-opt/w_lgammal_r_compat.c: Likewise.
34260 * sysdeps/ieee754/ldbl-opt/w_log10l_compat.c: Likewise.
34261 * sysdeps/ieee754/ldbl-opt/w_log2l_compat.c: Likewise.
34262 * sysdeps/ieee754/ldbl-opt/w_logl_compat.c: Likewise.
34263 * sysdeps/ieee754/ldbl-opt/w_powl_compat.c: Likewise.
34264 * sysdeps/ieee754/ldbl-opt/w_remainderl_compat.c: Likewise.
34265 * sysdeps/ieee754/ldbl-opt/w_sinhl_compat.c: Likewise.
34266 * sysdeps/ieee754/ldbl-opt/w_sqrtl_compat.c: Likewise.
34267 * sysdeps/ieee754/ldbl-opt/w_tgammal_compat.c: Likewise.
34268 * sysdeps/ieee754/ldbl-opt/w_exp10l_compat.c: Condition
34269 long_double_symbol and compat_symbol calls on [LIBM_SVID_COMPAT].
34270
34271 2017-09-05 Steve Ellcey <sellcey@cavium.com>
34272
34273 * include/shlib-compat.h (TEST_COMPAT): New Macro.
34274 * malloc/tst-mallocstate.c: Convert from test-skeleton
34275 to test-driver. Ifdef code using TEST_COMPAT macro.
34276 * math/test-matherr-2.c: Ifdef test using TEST_COMPAT macro.
34277 * math/test-matherr.c: Likewise.
34278
34279 2017-09-05 Joseph Myers <joseph@codesourcery.com>
34280
34281 [BZ #22086]
34282 * debug/pcprofiledump.c (main): Use byte-swapped mask when
34283 comparing word with byte-swapped constant.
34284
34285 2017-09-05 Chris Leonard <cjlhomeaddress@gmail.com>
34286
34287 [BZ #20498]
34288 * locale/iso-639.def: add Miskito.
34289 * localedata/SUPPORTED: Add miq_NI/UTF-8.
34290 * localedata/locales/miq_NI: New file.
34291
34292 2017-09-04 H.J. Lu <hongjiu.lu@intel.com>
34293
34294 [BZ #18822]
34295 * include/sys/stat.h (__chmod): Add libc_hidden_proto.
34296 (__mkdir): Likewise.
34297 * io/chmod.c (__chmod): Add libc_hidden_def.
34298 * io/mkdir.c (__mkdir): Likewise.
34299 * sysdeps/mach/hurd/chmod.c (__chmod): Likewise.
34300 * sysdeps/mach/hurd/mkdir.c (__mkdir): Likewise.
34301 * sysdeps/unix/sysv/linux/generic/chmod.c (__chmod): Likewise.
34302 * sysdeps/unix/sysv/linux/generic/mkdir.c (__mkdir): Likewise.
34303
34304 2017-09-04 Joseph Myers <joseph@codesourcery.com>
34305
34306 * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
34307 version to 4.13.
34308
34309 [BZ #22082]
34310 * math/bits/math-finite.h (exp10): Redirect if [__GLIBC_USE
34311 (IEC_60559_FUNCS_EXT)], not [__USE_GNU].
34312
34313 2017-09-04 Florian Weimer <fweimer@redhat.com>
34314
34315 * math/math.h: Issue warning if log is defined.
34316
34317 2017-09-04 Joseph Myers <joseph@codesourcery.com>
34318
34319 * scripts/build-many-glibcs.py (Context.checkout): Default Linux
34320 kernel version to 4.13.
34321
34322 2017-09-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
34323
34324 * sysdeps/generic/sigsetops.h: Remove spurious #endif.
34325 (__sigismember, __sigaddset, __sigdelset): Fix referencing set
34326 parameter.
34327 * sysdeps/mach/hurd/bits/socket.h: Include <sys/types.h> instead of
34328 just <bits/types.h>.
34329 * sysdeps/posix/preadv2.c: Use off_t instead of OFF_T.
34330 * sysdeps/posix/preadv64v2.c: Use off64_t instead of OFF_T.
34331 * sysdeps/posix/pwritev2.c: Use off_t instead of OFF_T.
34332 * sysdeps/posix/pwritev64v2.c: Use off64_t instead of OFF_T.
34333 * misc/preadv2.c: Include <errno.h>.
34334 * misc/preadv64v2.c: Include <errno.h>.
34335 * misc/pwritev2.c: Include <errno.h>.
34336 * misc/pwritev64v2.c: Include <errno.h>.
34337 * sysdeps/posix/preadv2.c: Include <errno.h>.
34338 * sysdeps/posix/preadv64v2.c: Include <errno.h>.
34339 Fix <unistd.h> inclusion.
34340 * sysdeps/posix/pwritev2.c: Include <errno.h>.
34341 * sysdeps/posix/pwritev64v2.c: Include <errno.h>.
34342 * sysdeps/mach/hurd/dl-sysdep.c (__access_noerrno, __sbrk,
34343 __strtoul_internal): New functions.
34344 * sysdeps/posix/pause.c: Include <sigsetops.h>.
34345 * sysdeps/posix/system.c: Include <sigsetops.h>.
34346 * sysdeps/mach/hurd/i386/Makefile
34347 [$(subdir) = csu] (sysdep_routines): New rule: divdi3 object.
34348 [$(subdir) = csu] (sysdep-only-routines): Likewise.
34349 [$(subdir) = csu] (CFLAGS-divdi3.c): Likewise.
34350 * sysdeps/x86/fpu/include/bits/fenv.h [NO_HIDDEN]: Redirect
34351 __feraiseexcept_renamed to feraiseexcept instead of
34352 __GI_feraiseexcept.
34353 * sysdeps/mach/hurd/i386/Implies: Add mach/hurd/x86.
34354 * sysdeps/mach/hurd/x86/dl-sysdep.c: New file.
34355 * misc/tst-preadvwritev2-common.c (RWF_HIPRI, RWF_DSYNC, RWF_SYNC,
34356 RWF_NOWAIT): Define to 0 if undefined already.
34357 (do_test_with_invalid_flags): Set invalid_flag to 2 if RWF_SUPPORTED
34358 boils down to 0.
34359 * resolv/tst-resolv-res_init-skeleton.c (run_res_init)
34360 [!CLONE_NEWUTS]: Fail as unsupported if hostname is not NULL.
34361
34362 2017-09-01 Joseph Myers <joseph@codesourcery.com>
34363
34364 * manual/math.texi (pow10): Do not document.
34365 (pow10f): Likewise.
34366 (pow10l): Likewise.
34367 * math/bits/mathcalls.h [__USE_GNU] (pow10): Do not declare.
34368 * math/bits/math-finite.h [__USE_GNU] (pow10): Likewise.
34369 * math/libm-test-exp10.inc (pow10_test): Remove.
34370 (do_test): Do not call pow10.
34371 * math/w_exp10_compat.c (pow10): Make into compat symbol.
34372 [NO_LONG_DOUBLE] (pow10l): Likewise.
34373 * math/w_exp10f_compat.c (pow10f): Likewise.
34374 * math/w_exp10l_compat.c (pow10l): Likewise.
34375 * sysdeps/ia64/fpu/e_exp10.S: Include <shlib-compat.h>.
34376 (pow10): Make into compat symbol.
34377 * sysdeps/ia64/fpu/e_exp10f.S: Include <shlib-compat.h>.
34378 (pow10f): Make into compat symbol.
34379 * sysdeps/ia64/fpu/e_exp10l.S: Include <shlib-compat.h>.
34380 (pow10l): Make into compat symbol.
34381 * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Remove
34382 pow10.
34383 (CFLAGS-nldbl-pow10.c): Remove variable..
34384 * sysdeps/ieee754/ldbl-opt/nldbl-pow10.c: Remove file.
34385 * sysdeps/ieee754/ldbl-opt/w_exp10_compat.c (pow10l): Condition on
34386 [SHLIB_COMPAT (libm, GLIBC_2_1, GLIBC_2_27)].
34387 * sysdeps/ieee754/ldbl-opt/w_exp10l_compat.c (compat_symbol):
34388 Undefine and redefine.
34389 (pow10l): Make into compat symbol.
34390 * sysdeps/aarch64/libm-test-ulps: Remove pow10 ulps.
34391 * sysdeps/alpha/fpu/libm-test-ulps: Likewise.
34392 * sysdeps/arm/libm-test-ulps: Likewise.
34393 * sysdeps/hppa/fpu/libm-test-ulps: Likewise.
34394 * sysdeps/i386/fpu/libm-test-ulps: Likewise.
34395 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
34396 * sysdeps/microblaze/libm-test-ulps: Likewise.
34397 * sysdeps/mips/mips32/libm-test-ulps: Likewise.
34398 * sysdeps/mips/mips64/libm-test-ulps: Likewise.
34399 * sysdeps/nios2/libm-test-ulps: Likewise.
34400 * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
34401 * sysdeps/powerpc/nofpu/libm-test-ulps: Likewise.
34402 * sysdeps/s390/fpu/libm-test-ulps: Likewise.
34403 * sysdeps/sh/libm-test-ulps: Likewise.
34404 * sysdeps/sparc/fpu/libm-test-ulps: Likewise.
34405 * sysdeps/tile/libm-test-ulps: Likewise.
34406 * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
34407
34408 2017-09-01 Paul Pluzhnikov <ppluzhnikov@google.com>
34409
34410 * stdlib/tst-atexit-common.c (crumbs): Ensure correct size.
34411
34412 2017-09-01 H.J. Lu <hongjiu.lu@intel.com>
34413
34414 * posix/tst-regex.c (do_test): Replace "../ChangeLog.8" with
34415 "../ChangeLog.old/ChangeLog.8".
34416 * posix/tst-regex2.c (do_test): Replace "../ChangeLog.14" with
34417 "../ChangeLog.old/ChangeLog.14".
34418
34419 2017-09-01 H.J. Lu <hongjiu.lu@intel.com>
34420
34421 * manual/contrib.texi: Credit Ulrich Drepper for the POSIX
34422 Threads Library.
34423
34424 2017-09-01 Joseph Myers <joseph@codesourcery.com>
34425
34426 * sysdeps/unix/sysv/linux/gentempfd.c: Include <string.h>.
34427
34428 2017-09-01 H.J. Lu <hongjiu.lu@intel.com>
34429
34430 * csu/version.c (banner): Remove "by Roland McGrath et al.".
34431 * nptl/Banner: Remove "by Ulrich Drepper et al.".
34432
34433 2017-09-01 Paul Pluzhnikov <ppluzhnikov@google.com>
34434
34435 * stdlib/tst-atexit-common.c (do_test): Test support for at least
34436 32 atexit handlers.
34437
34438 2017-09-01 Zack Weinberg <zackw@panix.com>
34439
34440 * math/math.h (HUGE_VAL): Improve commentary.
34441
34442 2017-09-01 Adhemerval Zanella <adhemerval.zanella@linaro.org>
34443 Andreas Schwab <schwab@suse.de>
34444
34445 [BZ #21530]
34446 * include/stdio.h (__gen_tempfd): New function.
34447 * stdio-common/Makefile (routines): Add gentempfd.
34448 * stdio-common/gentempfd.c: New file.
34449 * sysdeps/unix/sysv/linux/gentempfd.c: Likewise.
34450 * stdio-common/tmpfile.c (tmpfile): First try to use a system specific
34451 unnamed file first.
34452
34453 2017-09-01 Florian Weimer <fweimer@redhat.com>
34454
34455 [BZ #21915]
34456 [BZ #21922]
34457 * sysdeps/posix/getaddrinfo.c (gethosts): Look at NSS function
34458 result to determine success or failure, not the errno value.
34459 * nss/Makefile (tests): Add tst-nss-files-hosts-erange.
34460 (tst-nss-files-hosts-erange): Link with -ldl.
34461 * nss/tst-nss-files-hosts-erange.c: New file.
34462 * nss/tst-resolv-basic.c (response): Handle nodata.example.
34463 (do_test): Add NO_DATA tests.
34464 * resolv/tst-resolv-basic.c (test_nodata_nxdomain): New function.
34465 (do_test): Call it.
34466
34467 2017-09-01 Florian Weimer <fweimer@redhat.com>
34468
34469 [BZ #21922]
34470 * sysdeps/posix/getaddrinfo.c (gaih_inet): Report EAI_NODATA error
34471 coming from gethostbyname2_r.
34472
34473 2017-09-01 Florian Weimer <fweimer@redhat.com>
34474
34475 * support/namespace.h (struct support_chroot_configuration): Add
34476 hosts, host_conf.
34477 (struct support_chroot): Add path_hosts, path_host_conf.
34478 * support/support_chroot.c (write_file): New function.
34479 (support_chroot_create): Call it to process /etc/resolv.conf,
34480 /etc/hosts, /etc/host.conf.
34481 (support_chroot_free): Update.
34482
34483 2017-09-01 Florian Weimer <fweimer@redhat.com>
34484
34485 * sysdeps/posix/getaddrinfo.c (gaih_inet): Only use h_errno if
34486 status indicates it is set.
34487
34488 2017-09-01 Florian Weimer <fweimer@redhat.com>
34489
34490 [BZ #20532]
34491 * sysdeps/posix/getaddrinfo.c (gaih_inet): Make reporting of NSS
34492 function lookup failures more reliable.
34493
34494 2017-09-01 Florian Weimer <fweimer@redhat.com>
34495
34496 * sysdeps/posix/getaddrinfo.c (gethosts): Use h_errno directly.
34497 (getcanonname): Likewise.
34498 (gaih_inet): Likewise.
34499
34500 2017-09-01 Florian Weimer <fweimer@redhat.com>
34501
34502 * sysdeps/posix/getaddrinfo.c (gethosts): Use errno directly.
34503 (getcanonname): Likewise.
34504 (gaih_inet): Likewise.
34505
34506 2017-08-31 Steve Ellcey <sellcey@cavium.com>
34507 Richard Henderson <rth@twiddle.net>
34508
34509 * sysdeps/aarch64/fpu/s_llrint.c (OREG_SIZE): New macro.
34510 * sysdeps/aarch64/fpu/s_llround.c (OREG_SIZE): Likewise.
34511 * sysdeps/aarch64/fpu/s_llrintf.c (OREGS, IREGS): Remove.
34512 (IREG_SIZE, OREG_SIZE): New macros.
34513 * sysdeps/aarch64/fpu/s_llroundf.c: (OREGS, IREGS): Remove.
34514 (IREG_SIZE, OREG_SIZE): New macros.
34515 * sysdeps/aarch64/fpu/s_lrintf.c (IREGS): Remove.
34516 (IREG_SIZE): New macro.
34517 * sysdeps/aarch64/fpu/s_lroundf.c (IREGS): Remove.
34518 (IREG_SIZE): New macro.
34519 * sysdeps/aarch64/fpu/s_lrint.c (get-rounding-mode.h, stdint.h):
34520 New includes.
34521 (IREG_SIZE, OREG_SIZE): Initialize if not already set.
34522 (OREGS, IREGS): Set based on IREG_SIZE and OREG_SIZE.
34523 (__CONCATX): Handle exceptions correctly on large values that may
34524 set FE_INVALID.
34525 * sysdeps/aarch64/fpu/s_lround.c (IREG_SIZE, OREG_SIZE):
34526 Initialize if not already set.
34527 (OREGS, IREGS): Set based on IREG_SIZE and OREG_SIZE.
34528
34529 2017-08-31 Adhemerval Zanella <adhemerval.zanella@linaro.org>
34530
34531 * sysdeps/generic/not-cancel.h (NO_CANCELLATION): Remove macro.
34532 * sysdeps/unix/sysv/linux/aarch64/sysdep-cancel.h (NO_CANCELLATION):
34533 Likewise.
34534 * sysdeps/unix/sysv/linux/alpha/sysdep-cancel.h (NO_CANCELLATION):
34535 Likewise.
34536 * sysdeps/unix/sysv/linux/arm/sysdep-cancel.h (NO_CANCELLATION):
34537 Likewise.
34538 * sysdeps/unix/sysv/linux/hppa/sysdep-cancel.h (NO_CANCELLATION):
34539 Likewise.
34540 * sysdeps/unix/sysv/linux/i386/sysdep-cancel.h (NO_CANCELLATION):
34541 Likewise.
34542 * sysdeps/unix/sysv/linux/ia64/sysdep-cancel.h (NO_CANCELLATION):
34543 Likewise.
34544 * sysdeps/unix/sysv/linux/m68k/sysdep-cancel.h (NO_CANCELLATION):
34545 Likewise.
34546 * sysdeps/unix/sysv/linux/microblaze/sysdep-cancel.h
34547 (NO_CANCELLATION): Likewise.
34548 * sysdeps/unix/sysv/linux/mips/sysdep-cancel.h (NO_CANCELLATION):
34549 Likewise.
34550 * sysdeps/unix/sysv/linux/nios2/sysdep-cancel.h (NO_CANCELLATION):
34551 Likewise.
34552 * sysdeps/unix/sysv/linux/powerpc/sysdep-cancel.h (NO_CANCELLATION):
34553 Likewise.
34554 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep-cancel.h
34555 (NO_CANCELLATION): Likewise.
34556 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep-cancel.h
34557 (NO_CANCELLATION): Likewise.
34558 * sysdeps/unix/sysv/linux/sh/sysdep-cancel.h (NO_CANCELLATION):
34559 Likewise
34560 * sysdeps/unix/sysv/linux/sparc/sysdep-cancel.h (NO_CANCELLATION):
34561 Likewise.
34562 * sysdeps/unix/sysv/linux/tile/sysdep-cancel.h (NO_CANCELLATION):
34563 Likewise.
34564 * sysdeps/unix/sysv/linux/x86_64/sysdep-cancel.h (NO_CANCELLATION):
34565 Likewise.
34566 * sysdeps/unix/sysv/linux/not-cancel.h (__fcntl_nocancel): Add
34567 hidden prototype.
34568 * sysdeps/unix/sysv/linux/fcntl.c (__fcntl_nocancel): Define only
34569 for !IS_IN (rtld) and remove NO_CANCELLATION usage.
34570
34571 2017-08-31 Steve Ellcey <sellcey@cavium.com>
34572
34573 * sysdeps/aarch64/dl-irel.h: (elf_ifunc_invoke): Change argument type
34574 in resolver call.
34575
34576 2017-08-31 Florian Weimer <fweimer@redhat.com>
34577
34578 * include/libc-symbols.h (internal_function): Remove.
34579
34580 2017-08-31 Florian Weimer <fweimer@redhat.com>
34581
34582 * stdlib/fmtmsg.c (internal_addseverity): Remove
34583 internal_function.
34584
34585 2017-08-31 Florian Weimer <fweimer@redhat.com>
34586
34587 * stdio-common/printf_fp.c (group_number): Remove
34588 internal_function.
34589 * stdio-common/vfprintf.c (buffered_vfprintf): Likewise.
34590
34591 2017-08-31 Florian Weimer <fweimer@redhat.com>
34592
34593 * posix/fnmatch.c (internal_function): Remove definition.
34594 * posix/fnmatch_loop.c (FCT, EXT, END): Remove internal_function.
34595 * posix/regcomp.c (peek_token, init_word_char)
34596 (duplicate_node_closure, fetch_token, peek_token)
34597 (peek_token_bracket, build_range_exp, build_collating_symbol):
34598 Likewise.
34599 * posix/regex_internal.c (re_string_construct_common)
34600 (create_ci_newstate, create_cd_newstate, re_string_allocate)
34601 (re_string_construct, re_string_realloc_buffers, build_wcs_buffer)
34602 (build_wcs_upper_buffer, re_string_skip_chars, build_upper_buffer)
34603 (re_string_translate_buffer, re_string_reconstruct)
34604 (re_string_peek_byte_case, re_string_fetch_byte_case)
34605 (re_string_destruct, re_string_context_at, re_node_set_alloc)
34606 (re_node_set_init_1, re_node_set_init_2, re_node_set_init_copy)
34607 (re_node_set_add_intersect, re_node_set_init_union)
34608 (re_node_set_merge, re_node_set_insert, re_node_set_insert_last)
34609 (re_node_set_compare, re_node_set_contains, re_node_set_remove_at)
34610 (re_dfa_add_node, calc_state_hash, re_acquire_state)
34611 (re_acquire_state_context): Likewise.
34612 * posix/regex_internal.h (internal_function): Remove definition.
34613 (re_string_realloc_buffers, build_wcs_buffer)
34614 (build_wcs_upper_buffer, build_upper_buffer)
34615 (re_string_translate_buffer, re_string_context_at)
34616 (re_string_char_size_at, re_string_wchar_at)
34617 (re_string_elem_size_at): Likewise.
34618 * posix/regexec.c (match_ctx_init, match_ctx_clean)
34619 (match_ctx_free, match_ctx_add_entry, search_cur_bkref_entry)
34620 (match_ctx_add_subtop, match_ctx_add_sublast, sift_ctx_init)
34621 (re_search_internal, re_search_2_stub, re_search_stub)
34622 (re_copy_regs, prune_impossible_nodes, check_matching)
34623 (check_halt_state_context, update_regs, push_fail_stack, set_regs)
34624 (free_fail_stack_return, sift_states_iter_mb)
34625 (sift_states_backward, build_sifted_states)
34626 (update_cur_sifted_state, add_epsilon_src_nodes, check_dst_limits)
34627 (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos)
34628 (check_subexp_limits, sift_states_bkref, merge_state_array)
34629 (find_recover_state, transit_state, merge_state_with_log)
34630 (check_subexp_matching_top, transit_state_sb, transit_state_sb)
34631 (transit_state_mb, transit_state_bkref, get_subexp)
34632 (get_subexp_sub, find_subexp_node, check_arrival)
34633 (check_arrival_add_next_nodes, check_arrival_expand_ecl)
34634 (check_arrival_expand_ecl_sub, expand_bkref_cache, build_trtable)
34635 (check_node_accept_bytes, find_collation_sequence_value)
34636 (group_nodes_into_DFAstates, check_node_accept, extend_buffers)
34637 (acquire_init_state_context, check_halt_node_context)
34638 (proceed_next_node, pop_fail_stack, clean_state_log_if_needed)
34639 (sub_epsilon_src_nodes): Likewise.
34640 * posix/spawn_int.h (__spawn_valid_fd): Likewise.
34641 * posix/spawn_valid_fd (__spawn_valid_fd): Likewise.
34642 * posix/wordexp.c (parse_dollars, parse_backtick, parse_dquote)
34643 (eval_expr, w_addmem, w_addstr, w_addword, parse_backslash)
34644 (parse_qtd_backslash, parse_tilde, do_parse_glob, parse_glob)
34645 (parse_squote, eval_expr_val, eval_expr_multdiv, parse_arith)
34646 (exec_comm_child, exec_comm, parse_comm, parse_param): Likewise.
34647 * sysdeps/posix/ttyname.c (getttyname): Likewise.
34648 * sysdeps/posix/ttyname_r.c (getttyname_r): Likewise.
34649 * sysdeps/unix/sysv/linux/preadv.c (__atomic_preadv_replacement)
34650 (PREADV): Likewise.
34651 * sysdeps/unix/sysv/linux/preadv64.c (__atomic_preadv64_replacement)
34652 (PREADV): Likewise.
34653 * sysdeps/unix/sysv/linux/pwritev.c (__atomic_pwritev_replacement)
34654 (PWRITEV): Likewise.
34655 * sysdeps/unix/sysv/linux/pwritev64.c (__atomic_pwritev64_replacement)
34656 (PWRITEV): Likewise.
34657 * sysdeps/unix/sysv/linux/ttyname.c (getttyname): Likewise.
34658 * sysdeps/unix/sysv/linux/ttyname_r.c (getttyname_r): Likewise.
34659
34660 2017-08-31 Florian Weimer <fweimer@redhat.com>
34661
34662 * nptl/allocatestack.c (change_stack_perm, __deallocate_stack)
34663 (setxid_mark_thread, setxid_unmark_thread, setxid_signal_thread):
34664 Remove internal_function.
34665 * nptl/cancellation.c (__pthread_disable_asynccancel): Likewise.
34666 * nptl/libc_pthread_init.c (__libc_pthread_init): Likewise.
34667 * nptl/pthreadP.h (__find_in_stack_list, __free_tcb)
34668 (__deallocate_stack, __libc_pthread_init)
34669 (__pthread_mutex_cond_lock, __pthread_mutex_cond_lock_adjust)
34670 (__pthread_mutex_unlock_usercnt, __pthread_disable_asynccancel)
34671 (__libc_disable_asynccancel, __librt_disable_asynccancel):
34672 Likewise.
34673 * nptl/pthread_create.c (__find_in_stack_list, __free_tcb): Likewise.
34674 * nptl/pthread_mutex_cond_lock.c (__pthread_mutex_lock): Likewise.
34675 * nptl/pthread_mutex_lock.c (__pthread_mutex_cond_lock_adjust):
34676 Likewise.
34677 * nptl/pthread_mutex_unlock.c (__pthread_mutex_unlock_full)
34678 (__pthread_mutex_unlock_usercnt): Likewise.
34679
34680 2017-08-31 Florian Weimer <fweimer@redhat.com>
34681
34682 * io/fts.c (fts_alloc, fts_build, fts_lfree, fts_load)
34683 (fts_maxarglen, fts_padjust, fts_palloc, fts_sort, fts_stat)
34684 (fts_safe_changedir): Remove internal_function.
34685 * io/ftw.c (internal_function): Remove definition.
34686 (ftw_dir, process_entry, ftw_startup): Remove internal_function.
34687
34688 2017-08-31 Florian Weimer <fweimer@redhat.com>
34689
34690 * inet/deadline.c (__deadline_current_time)
34691 (__deadline_from_timeval, __deadline_to_ms): Remove
34692 internal_function.
34693 * inet/getnameinfo.c (nrl_domainname): Likewise.
34694 * inet/getnetgrent_r.c (__internal_setnetgrent_reuse): Likewise.
34695 * inet/inet6_option.c (add_pad): Likewise.
34696 * inet/net-internal.h (__deadline_current_time)
34697 (__deadline_from_timeval, __deadline_to_ms): Likewise.
34698 * inet/rcmd.c (__checkhost_sa, __icheckuser): Likewise.
34699 * sysdeps/mach/hurd/if_index.c (__protocol_available): Likewise.
34700 * sysdeps/unix/sysv/linux/ifaddrs.c (map_newlink): Likewise.
34701
34702 2017-08-31 Joseph Myers <joseph@codesourcery.com>
34703
34704 * math/math.h [__USE_ISOC99] (NAN): Define directly here. Do not
34705 include <bits/nan.h>.
34706 * math/Makefile (headers): Remove bits/nan.h.
34707 * bits/nan.h: Remove.
34708 * sysdeps/ieee754/bits/nan.h: Likewise.
34709 * sysdeps/mips/bits/nan.h: Likewise.
34710
34711 * math/math.h [__USE_ISOC99] (INFINITY): Define directly here. Do
34712 not include <bits/inf.h>.
34713 * math/Makefile (headers): Remove bits/inf.h.
34714 * bits/inf.h: Remove.
34715 * sysdeps/ieee754/bits/inf.h: Likewise.
34716
34717 * math/math.h: Do not include bits/huge_val.h, bits/huge_valf.h,
34718 bits/huge_vall.h or bits/huge_val_flt128.h.
34719 (HUGE_VAL): Define directly here.
34720 [__USE_ISOC99] (HUGE_VALF): Likewise.
34721 [__USE_ISOC99] (HUGE_VALL): Likewise.
34722 [__HAVE_FLOAT128 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
34723 (HUGE_VAL_F128): Likewise.
34724 * math/Makefile (headers): Remove bits/huge_val.h,
34725 bits/huge_valf.h, bits/huge_vall.h and bits/huge_val_flt128.h.
34726 * bits/huge_val.h: Remove.
34727 * bits/huge_val_flt128.h: Likewise.
34728 * bits/huge_valf.h: Likewise.
34729 * bits/huge_vall.h: Likewise.
34730 * sysdeps/ia64/bits/huge_vall.h: Likewise.
34731 * sysdeps/ieee754/bits/huge_val.h: Likewise.
34732 * sysdeps/ieee754/bits/huge_valf.h: Likewise.
34733 * sysdeps/m68k/m680x0/bits/huge_vall.h: Likewise.
34734 * sysdeps/sh/bits/huge_val.h: Likewise.
34735 * sysdeps/sparc/bits/huge_vall.h: Likewise.
34736 * sysdeps/x86/bits/huge_vall.h: Likewise.
34737
34738 2017-08-31 Florian Weimer <fweimer@redhat.com>
34739
34740 * elf/dl-addr-obj.c (_dl_addr_inside_object): Remove
34741 internal_function.
34742 * elf/dl-cache.c (_dl_cache_libcmp, _dl_load_cache_lookup):
34743 Likewise.
34744 * elf/dl-debug.c (_dl_debug_initialize): Likewise.
34745 * elf/dl-deps.c (_dl_build_local_scope, _dl_map_object_deps): Likewise.
34746 * elf/dl-environ.c (_dl_next_ld_env_entry): Likewise.
34747 * elf/dl-execstack.c (_dl_make_stack_executable): Likewise.
34748 * elf/dl-fini.c (_dl_sort_fini): Likewise.
34749 * elf/dl-hwcaps.c (_dl_important_hwcaps): Likewise.
34750 * elf/dl-libc.c (dlerror_run): Likewise.
34751 * elf/dl-load.c (add_name_to_object, decompose_rpath)
34752 (_dl_init_paths, _dl_map_object, _dl_rtld_di_serinfo): Likewise.
34753 * elf/dl-lookup.c (add_dependency, _dl_debug_bindings)
34754 (_dl_lookup_symbol_x, _dl_setup_hash, _dl_debug_bindings):
34755 Likewise.
34756 * elf/dl-misc.c (_dl_sysdep_read_whole_file, _dl_name_match_p)
34757 (_dl_higher_prime_number, _dl_strtoul): Likewise.
34758 * elf/dl-object.c (_dl_add_to_namespace_list, _dl_new_object): Likewise.
34759 * elf/dl-profile.c (_dl_start_profile): Likewise.
34760 * elf/dl-reloc.c (_dl_try_allocate_static_tls)
34761 (_dl_allocate_static_tls, _dl_protect_relro, _dl_reloc_bad_type):
34762 Likewise.
34763 * elf/dl-support.c (_dl_aux_init, _dl_non_dynamic_init): Likewise.
34764 * elf/dl-sym.c (_dl_tls_symaddr, do_sym): Likewise.
34765 * elf/dl-sysdep.c (_dl_sysdep_start_cleanup, _dl_show_auxv): Likewise.
34766 * elf/dl-tls.c (_dl_next_tls_modid, _dl_count_modids)
34767 (_dl_determine_tlsoffset, allocate_dtv, _dl_get_tls_static_info)
34768 (_dl_allocate_tls_storage): Likewise.
34769 * elf/dl-version.c (match_symbol, _dl_check_map_versions)
34770 (_dl_check_all_versions): Likewise.
34771 * elf/dynamic-link.h (_dl_try_allocate_static_tls): Likewise.
34772 * elf/tlsdeschtab.h (_dl_make_tlsdesc_dynamic): Likewise.
34773 * elf/tst-_dl_addr_inside_object.c (_dl_addr_inside_object): Likewise.
34774 * sysdeps/aarch64/dl-tlsdesc.h (_dl_make_tlsdesc_dynamic): Likewise.
34775 * sysdeps/aarch64/tlsdesc.c (_dl_unmap): Likewise.
34776 * sysdeps/arm/dl-lookupcfg.h (_dl_unmap): Likewise.
34777 * sysdeps/arm/dl-machine.h (elf_machine_load_address): Remove
34778 internal_function from __dl_start.
34779 * sysdeps/arm/dl-tlsdesc.h (_dl_unmap): Remove internal_function.
34780 * sysdeps/generic/dl-cache.h (_dl_cache_libcmp): Likewise.
34781 * sysdeps/generic/ldsodefs.h (_dl_name_match_p)
34782 (_dl_higher_prime_number, _dl_strtoul, _dl_map_object)
34783 (_dl_map_object_deps, _dl_setup_hash, _dl_rtld_di_serinfo)
34784 (_dl_lookup_symbol_x, _dl_add_to_namespace_list, _dl_new_object)
34785 (_dl_protect_relro, _dl_reloc_bad_type, _dl_check_all_versions)
34786 (_dl_check_map_versions, _dl_sort_fini, _dl_debug_initialize)
34787 (_dl_init_paths, _dl_start_profile, _dl_show_auxv)
34788 (_dl_next_ld_env_entry, _dl_important_hwcaps)
34789 (_dl_load_cache_lookup, _dl_sysdep_read_whole_file)
34790 (_dl_sysdep_start_cleanup, _dl_next_tls_modid, _dl_count_modids)
34791 (_dl_determine_tlsoffset, _dl_get_tls_static_info)
34792 (_dl_allocate_static_tls, _dl_allocate_tls_storage)
34793 (_dl_addr_inside_object, _dl_non_dynamic_init, _dl_aux_init):
34794 Likewise.
34795 (struct rtld_global_ro): Remove internal_function from the
34796 _dl_lookup_symbol_x member.
34797 (_dl_symbol_value): Remove. No longer defined anywhere.
34798 * sysdeps/i386/dl-lookupcfg.h (_dl_unmap): Remove
34799 internal_function.
34800 * sysdeps/i386/dl-tlsdesc.h (_dl_make_tlsdesc_dynamic): Likewise.
34801 * sysdeps/i386/tlsdesc.c (_dl_unmap): Likewise.
34802 * sysdeps/mach/hurd/dl-sysdep.c (_dl_show_auxv): Likewise.
34803 * sysdeps/nios2/dl-init.c (_dl_nios2_get_gp_value): Likewise.
34804 * sysdeps/tile/dl-lookupcfg.h (_dl_unmap): Likewise.
34805 * sysdeps/tile/dl-machine.h (_dl_after_load): Likewise.
34806 * sysdeps/tile/dl-runtime.c (_dl_after_load, _dl_unmap): Likewise.
34807 * sysdeps/unix/sysv/linux/dl-vdso.c (_dl_vdso_vsym): Likewise.
34808 * sysdeps/unix/sysv/linux/dl-vdso.h (_dl_vdso_vsym): Likewise.
34809 * sysdeps/x86_64/dl-lookupcfg.h (_dl_unmap): Likewise.
34810 * sysdeps/x86_64/dl-tlsdesc.h (_dl_make_tlsdesc_dynamic): Likewise.
34811 * sysdeps/x86_64/tlsdesc.c (_dl_unmap): Likewise.
34812
34813 2017-08-31 Florian Weimer <fweimer@redhat.com>
34814
34815 * gmon/gmon.c (write_hist, write_call_graph, write_bb_counts):
34816 Remove internal_function.
34817 * sysdeps/arm/machine-gmon.h (mcount_internal, _MCOUNT_DECL):
34818 Likewise.
34819 * sysdeps/sparc/machine-gmon.h (mcount_internal, _MCOUNT_DECL):
34820 Likewise.
34821
34822 2017-08-31 Florian Weimer <fweimer@redhat.com>
34823
34824 * dlfcn/dlerror.c (_dlerror_run): Remove internal_function.
34825 * elf/dl-sym.c (_dl_vsym, _dl_sym): Likewise.
34826 * include/dlfcn.h (_dl_sym, _dl_vsym, _dlerror_run): Likewise.
34827
34828 2017-08-31 Florian Weimer <fweimer@redhat.com>
34829
34830 * resolv/gai_misc.c (__gai_find_request, __gai_remove_request)
34831 (__gai_enqueue_request): Remove internal_function.
34832 * resolv/gai_misc.h (__gai_enqueue_request, __gai_find_request)
34833 (__gai_remove_request, __gai_notify, __gai_notify_only)
34834 (__gai_sigqueue): Likewise.
34835 * resolv/gai_notify.c (__gai_notify_only, __gai_notify): Likewise.
34836 * resolv/gai_sigqueue.c (__gai_sigqueue): Likewise.
34837 * resolv/inet_ntop.c (inet_ntop4, inet_ntop6): Likewise.
34838 * sysdeps/unix/sysv/linux/gai_sigqueue.c (__gai_sigqueue):
34839 Likewise.
34840
34841 2017-08-31 Florian Weimer <fweimer@redhat.com>
34842
34843 * dirent/scandir-tail.c (SCANDIR_TAIL): Remove internal_function.
34844 * include/dirent.h (__opendirat, __getdents, __getdents64)
34845 (__alloc_dir, __scandir_tail, __scandir64_tail): Likewise.
34846 * sysdeps/posix/opendir.c (__opendirat, __alloc_dir): Likewise.
34847 * sysdeps/mach/hurd/opendir.c (__opendirat): Likewise.
34848 * sysdeps/unix/sysv/linux/i386/olddirent.h (__old_getdents64):
34849 Likewise.
34850 * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS): Likewise.
34851
34852 2017-08-31 Florian Weimer <fweimer@redhat.com>
34853
34854 * sysdeps/unix/sysv/linux/getcwd.c (generic_getcwd): Remove
34855 internal_function.
34856 (GETCWD_RETURN_TYPE): Likewise.
34857
34858 2017-08-31 Florian Weimer <fweimer@redhat.com>
34859
34860 * include/time.h (__tz_compute, __strptime_internal): Remove
34861 internal_function.
34862 * time/strptime_l.c (__strptime_internal): Likewise.
34863 * time/tzset.c (compute_change, update_vars, __tz_compute): Likewise.
34864
34865 2017-08-31 Florian Weimer <fweimer@redhat.com>
34866
34867 * iconv/gconv.c (__gconv): Remove internal_function.
34868 * iconv/gconv_builtin.c (__gconv_get_builtin_trans): Likewise.
34869 * iconv/gconv_cache.c (__gconv_load_cache, find_module_idx)
34870 (find_module, __gconv_compare_alias_cache, __gconv_lookup_cache)
34871 (__gconv_release_cache): Likewise.
34872 * iconv/gconv_close.c (__gconv_close): Likewise.
34873 * iconv/gconv_conf.c (detect_conflict, insert_module, add_module)
34874 (read_conf_file, __gconv_get_path): Likewise.
34875 * iconv/gconv_db.c (derivation_lookup, add_derivation)
34876 (__gconv_release_step, gen_steps, increment_counter)
34877 (find_derivation, __gconv_compare_alias, __gconv_find_transform)
34878 (__gconv_close_transform, free_modules_db): Likewise.
34879 * iconv/gconv_dl.c (__gconv_find_shlib, __gconv_release_shlib):
34880 Likewise.
34881 * iconv/gconv_int.h (__gconv_open, __gconv_close, __gconv)
34882 (__gconv_find_transform, __gconv_lookup_cache)
34883 (__gconv_release_step, __gconv_load_cache, __gconv_get_path)
34884 (__gconv_close_transform, __gconv_release_cache)
34885 (__gconv_loaded_object, __gconv_release_shlib)
34886 (__gconv_compare_alias): Likewise.
34887 * iconv/gconv_open.c (__gconv_open): Likewise.
34888 * iconv/iconv_prog.c (print_known_names, add_known_names): Likewise.
34889 * iconv/iconvconfig.c (add_module): Likewise.
34890 * intl/dcigettext.c (plural_lookup, guess_category_value)
34891 (category_to_name, get_output_charset, _nl_find_msg): Likewise.
34892 * intl/eval-plural.h (plural_eval): Likewise.
34893 * intl/finddomain.c (_nl_find_domain): Likewise.
34894 * intl/gettextP.h (_nl_unload_domain, _nl_find_domain)
34895 (_nl_load_domain, _nl_find_msg): Likewise.
34896 (internal_function): Remove definition.
34897 * intl/loadinfo.h (internal_function): Likewise.
34898 * intl/loadmsgcat.c (_nl_load_domain, _nl_unload_domain): Remove
34899 internal_function.
34900 * intl/localealias.c (internal_function): Remove definition.
34901 (read_alias_file): Remove internal_function.
34902 * intl/plural-exp.c (EXTRACT_PLURAL_EXPRESSION): Likewise.
34903 * intl/plural-exp.h (internal_function): Remove definition.
34904 (FREE_EXPRESSION, EXTRACT_PLURAL_EXPRESSION): Remove
34905 internal_function.
34906 * intl/plural.c: Regenerate.
34907 * intl/plural.y (FREE_EXPRESSION): Remove internal_function.
34908 * locale/coll-lookup.c (__collidx_table_lookup)
34909 (__collseq_table_lookup): Likewise.
34910 * locale/coll-lookup.h (__collidx_table_lookup)
34911 (__collseq_table_lookup): Likewise.
34912 * locale/findlocale.c (_nl_find_locale, _nl_remove_locale): Likewise.
34913 * locale/loadarchive.c (_nl_load_locale_from_archive): Likewise.
34914 * locale/loadlocale.c (_nl_intern_locale_data, _nl_load_locale)
34915 (_nl_unload_locale): Likewise.
34916 * locale/localeinfo.h (struct __locale_data): Remove
34917 internal_function from cleanup member.
34918 (_nl_find_locale, _nl_load_locale, _nl_unload_locale)
34919 (_nl_remove_locale, _nl_load_locale_from_archive)
34920 (_nl_intern_locale_data, _nl_get_era_entry, _nl_select_era_entry)
34921 (_nl_get_alt_digit, _nl_get_walt_digit, _nl_parse_alt_digit)
34922 (_nl_cleanup_time): Remove internal_function.
34923 * time/alt_digit.c (_nl_get_alt_digit, _nl_get_walt_digit)
34924 (_nl_parse_alt_digit): Likewise.
34925 * time/era.c (_nl_init_era_entries, _nl_get_era_entry)
34926 (_nl_select_era_entry): Likewise.
34927 * time/lc-time-cleanup.c (_nl_cleanup_time): Likewise.
34928 * wcsmbs/wcsmbsload.c (__wcsmbs_load_conv, __wcsmbs_clone_conv)
34929 (__wcsmbs_named_conv, _nl_cleanup_ctype): Likewise.
34930 * wcsmbs/wcsmbsload.h (__wcsmbs_load_conv, __wcsmbs_clone_conv)
34931 (__wcsmbs_named_conv, _nl_cleanup_ctype): Likewise.
34932
34933 2017-08-31 Florian Weimer <fweimer@redhat.com>
34934
34935 * rt/aio_sigqueue.c (__aio_sigqueue): Remove internal_function.
34936 * sysdeps/generic/aio_misc.h (__aio_sigqueue): Likewise.
34937 * sysdeps/pthread/aio_misc.c (__aio_free_request, __aio_find_req)
34938 (__aio_find_req_fd, __aio_remove_request, __aio_enqueue_request):
34939 Likewise.
34940 * sysdeps/pthread/aio_misc.h (__aio_enqueue_request)
34941 (__aio_find_req, __aio_find_req_fd, __aio_free_request)
34942 (__aio_notify, __aio_notify_only, __aio_sigqueue): Likewise.
34943 * sysdeps/pthread/aio_notify.c (__aio_notify_only, __aio_notify):
34944 Likewise.
34945 * sysdeps/unix/sysv/linux/aio_sigqueue.c (__aio_sigqueue): Likewise.
34946
34947 2017-08-31 Florian Weimer <fweimer@redhat.com>
34948
34949 * misc/getttyent.c (skip, value): Remove internal_function.
34950 * misc/syslog.c (openlog_internal): Likewise.
34951 * misc/tsearch.c (trecurse, tdestroy_recurse): Likewise.
34952
34953 2017-08-31 Florian Weimer <fweimer@redhat.com>
34954
34955 * include/nss.h (__nss_valid_field, __nss_valid_list_field)
34956 (__nss_rewrite_field): Remove internal_function.
34957 * nscd/nscd_getgr_r.c (nscd_getgr_r): Likewise.
34958 * nscd/nscd_gethst_r.c (nscd_gethst_r): Likewise.
34959 * nscd/nscd_getpw_r.c (nscd_getpw_r): Likewise.
34960 * nss/nsswitch.c (nss_parse_file, nss_getline)
34961 (nss_parse_service_list, nss_new_service): Likewise.
34962 * nss/rewrite_field.c (__nss_rewrite_field): Likewise.
34963 * nss/valid_field.c (__nss_valid_field): Likewise.
34964 * nss/valid_list_field.c (__nss_valid_list_field): Likewise.
34965
34966 2017-08-31 Florian Weimer <fweimer@redhat.com>
34967
34968 * malloc/arena.c (__malloc_fork_lock_parent)
34969 (__malloc_fork_unlock_parent, __malloc_fork_unlock_child)
34970 (next_env_entry, new_heap, heap_trim, arena_get2): Remove
34971 internal_function from defintions.
34972 * malloc/hooks.c (mem2mem_check, mem2chunk_check): Likewise.
34973 * malloc/malloc-internal.h (__malloc_fork_lock_parent)
34974 (__malloc_fork_unlock_parent, __malloc_fork_unlock_child): Remove
34975 internal_function from declarations.
34976 * malloc/malloc.c (internal_function): Do not define.
34977 (mem2mem_check): Remove internal_function from declaration.
34978 (munmap_chunk, mremap_chunk): Remove internal_function.
34979 * malloc/mtrace.c (tr_where): Likewise.
34980
34981 2017-08-31 Florian Weimer <fweimer@redhat.com>
34982
34983 * include/rpc/pmap_clnt.h (__get_socket): Remove
34984 internal_function.
34985 * sunrpc/auth_des.c (synchronize): Likewise.
34986 * sunrpc/auth_unix.c (marshal_new_auth): Likewise.
34987 * sunrpc/clnt_perr.c (auth_errmsg): Likewise.
34988 * sunrpc/des_impl.c (des_encrypt, des_set_key): Likewise.
34989 * sunrpc/key_call.c (key_call_keyenvoy, key_call_socket)
34990 (key_call): Likewise.
34991 * sunrpc/pm_getport.c (__get_socket): Likewise.
34992 * sunrpc/pmap_rmt.c (getbroadcastnets): Likewise.
34993 * sunrpc/svc_unix.c (makefd_xprt): Likewise.
34994 * sunrpc/svc_tcp.c (makefd_xprt): Likewise.
34995 * sunrpc/svcauth_des.c (cache_init, cache_spot, cache_ref)
34996 (invalidate): Likewise.
34997 * sunrpc/xcrypt.c (hexval, hex2bin, bin2hex): Likewise.
34998 * sunrpc/xdr_rec.c (fix_buf_size, skip_input_bytes, flush_out)
34999 (set_input_fragment, get_input_bytes): Likewise.
35000
35001 2017-08-31 Florian Weimer <fweimer@redhat.com>
35002
35003 * malloc/malloc.c (_int_free): Remove locked variable and related
35004 asserts.
35005
35006 2017-08-31 H.J. Lu <hongjiu.lu@intel.com>
35007
35008 [BZ #22051]
35009 * Makerules (build-module-helper-objlist): Filter out
35010 $(elf-objpfx)sofini.os.
35011 (build-shlib-objlist): Append $(elf-objpfx)sofini.os if it is
35012 needed.
35013
35014 2017-08-31 Florian Weimer <fweimer@redhat.com>
35015
35016 * libio/fcloseall.c: Assume weak_alias is defined.
35017 * libio/feof.c: Likewise.
35018 * libio/fileno.c: Likewise.
35019 * libio/fileops.c: Assume _LIBC, errno, __set_errno are defined.
35020 (_POSIX_SOURCE, open, lseek, read, write): Remove macro
35021 definitions.
35022 (_IO_file_open): Call __open directly.
35023 (_IO_new_file_sync): Assume ESPIPE is defined.
35024 (_IO_file_seekoff_maybe_mmap): Call __read directly.
35025 (_IO_new_file_write): Call __write directly.
35026 * libio/ftello.c (__ftello): Assume EIO, EOVERFLOW are defined.
35027 * libio/ftello64.c (__ftello64): Assume EIO is defined.
35028 * libio/genops.c: Assume _LIBC is defined.
35029 (save_for_backup): Remove internal_function.
35030 * libio/getc.c: Assume weak_alias is defined.
35031 * libio/getwc.c: Likewise.
35032 * libio/iofclose.c: Assume _LIBC is defined.
35033 * libio/iofdopen.c: Likewise.
35034 (_IO_fcntl): Remove macro definition.
35035 (_IO_new_fdopen): Assume F_GETFL, F_SETFL, O_ACCMODE are defined.
35036 Call __fcntl directly.
35037 * libio/iofflush.c: Assume weak_alias is defined.
35038 * libio/iofgetpos.c (_IO_new_fgetpos): Assume EIO, EOVERFLOW are
35039 defined.
35040 * libio/iofgetpos64.c (_IO_new_fgetpos64): Assume EIO is defined.
35041 * libio/iofgets.c: Likewise.
35042 * libio/iofopen.c: Assume _LIBC is defined.
35043 * libio/iofopen64.c: Assume _LIBC, weak_alias are defined.
35044 * libio/iofputs.c: Assume weak_alias is defined.
35045 * libio/iofread.c: Likewise.
35046 * libio/iofsetpos.c (_IO_new_fsetpos): Assume EIO is defined.
35047 * libio/iofsetpos64.c (_IO_new_fsetpos64): Likewise.
35048 * libio/ioftell.c: Assume weak_alias is defined.
35049 (_IO_ftell): Assume EIO, EOVERFLOW are defined.
35050 * libio/iofwide.c: Assume _LIBC is defined.
35051 (_IO_fwide): Drop SHARED conditional because it is implied by
35052 SHLIB_COMPAT.
35053 * libio/iofwrite.c: Assume weak_alias is defined.
35054 * libio/iogetdelim.c: Likewise.
35055 * libio/iogets.c: Assume _LIBC, weak_alias are defined.
35056 * libio/iogetwline.c (wmemcpy): Remove macro definition.
35057 (_IO_getwline): Call __wmemcpy directly.
35058 * libio/iopopen.c: Assume _LIBC is defined.
35059 (_POSIX_SOURCE, _IO_fork, _IO_dup2, _IO_waitpid, _IO_execl)
35060 (_IO_close): Remove macro definitions.
35061 (_IO_new_proc_open): Call __fork, __dup2, __close_nocancel, execl,
35062 _exit directly.
35063 (_IO_new_proc_close): Call __close_nocancel, __waitpid_nocancel
35064 directly.
35065 * libio/ioputs.c: Assume weak_alias is defined.
35066 * libio/ioseekoff.c: Assume errno, __set_errno are defined.
35067 * libio/iosetbuffer.c: Assume weak_alias is defined.
35068 * libio/iosetvbuf.c: Likewise.
35069 * libio/ioungetc.c: Likewise.
35070 * libio/libioP.h: Assume _LIBC, __GLIBC__, libc_hidden_proto,
35071 libc_hidden_def, libc_hidden_weak, NULL are defined.
35072 (mmap, munmap, ftruncate, OS_FSTAT): Remove macro definitions.
35073 * libio/oldfilepos.c: Assume _LIBC, errno, __set_errno are
35074 defined.
35075 (_POSIX_SOURCE, open, lseek, read, write): Remove macro
35076 definitions.
35077 (_IO_old_file_init_internal): Drop SHARED conditional because it
35078 is implied by SHLIB_COMPAT.
35079 (_IO_old_file_fopen): Call __open directly.
35080 (_IO_old_file_sync): Assume ESPIPE is defined.
35081 (_IO_old_file_write): Call __write directly.
35082 * libio/oldfdopen.c (_IO_fcntl): Remove macro definition.
35083 (_IO_old_fdopen): Assume F_GETFL, O_ACCMODE, F_SETFL are defined.
35084 Call __fcntl directly.
35085 * libio/oldiofgetpos.c: Assume weak_alias is defined.
35086 (_IO_old_fgetpos): Assume EIO is defined.
35087 * libio/oldiofgetpos64.c: Assume weak_alias is defined.
35088 (_IO_old_fgetpos64): Assume EIO is defined.
35089 * libio/oldiofsetpos.c: Assume weak_alias is defined.
35090 (_IO_old_fsetpos): Assume EIO is defined.
35091 * libio/oldiofsetpos64.c: Assume weak_alias is defined.
35092 (_IO_old_fsetpos64): Assume EIO is defined.
35093 * libio/oldiopopen.c: Assume _LIBC is defined.
35094 (_POSIX_SOURCE, _IO_fork, _IO_dup2, _IO_waitpid, _IO_execl)
35095 (_IO_close): Remove macro definitions.
35096 (_IO_old_proc_open): Call __pipe, __close, __dup2, execl, _exit
35097 directly.
35098 (_IO_old_proc_close): Call __close, __waitpid directly.
35099 * libio/put.c: Assume weak_alias is defined.
35100 * libio/stdfiles.c: Assume _LIBC is defined.
35101 * libio/stdio.c: Likewise.
35102 * libio/wfileops.c: Likewise.
35103 (_IO_wfile_sync): Assume ESPIPE is defined.
35104 * libio/wgenops.c: Assume _LIBC is defined.
35105 (save_for_wbackup): Remove internal_function.
35106
35107 2017-08-31 Florian Weimer <fweimer@redhat.com>
35108
35109 * malloc/malloc.c (top_check): Change return type to void. Remove
35110 internal_function.
35111 * malloc/hooks.c (top_check): Likewise.
35112 (malloc_check, realloc_check, memalign_check): Adjust.
35113
35114 2017-08-30 Joseph Myers <joseph@codesourcery.com>
35115
35116 [BZ #21457]
35117 * sysdeps/arm/sys/ucontext.h: Do not include <bits/sigcontext.h>.
35118 * sysdeps/generic/sys/ucontext.h: Add comment about use of struct
35119 sigcontext and namespace requirements.
35120 * sysdeps/i386/sys/ucontext.h: Do not include <bits/sigcontext.h>.
35121 * sysdeps/m68k/sys/ucontext.h: Likewise.
35122 * sysdeps/mips/sys/ucontext.h: Likewise. Include <bits/types.h>.
35123 * sysdeps/unix/sysv/linux/aarch64/sys/ucontext.h: Do not include
35124 <bits/sigcontext.h>.
35125 (__ctx): Define earlier.
35126 (mcontext_t): Define structure contents rather than using struct
35127 sigcontext.
35128 * sysdeps/unix/sysv/linux/aarch64/ucontext_i.sym (oEXTENSION): Use
35129 __glibc_reserved1 instead of __reserved.
35130 * sysdeps/unix/sysv/linux/alpha/sys/ucontext.h: Do not include
35131 <bits/sigcontext.h>.
35132 (__ctx): Define earlier.
35133 (mcontext_t): Define structure contents rather than using struct
35134 sigcontext.
35135 * sysdeps/unix/sysv/linux/alpha/ucontext-offsets.sym: Use
35136 mcontext_t instead of struct sigcontext.
35137 * sysdeps/unix/sysv/linux/arm/sys/ucontext.h: Do not include
35138 <bits/sigcontext.h>.
35139 (__ctx): Define earlier.
35140 (mcontext_t): Define structure contents rather than using struct
35141 sigcontext.
35142 * sysdeps/unix/sysv/linux/hppa/sys/ucontext.h: Do not include
35143 <bits/sigcontext.h>.
35144 (__ctx): Define earlier.
35145 (mcontext_t): Define structure contents rather than using struct
35146 sigcontext.
35147 * sysdeps/unix/sysv/linux/ia64/makecontext.c (__makecontext): Use
35148 mcontext_t instead of struct sigcontext.
35149 * sysdeps/unix/sysv/linux/ia64/sigcontext-offsets.sym: Use
35150 mcontext_t instead of struct sigcontext.
35151 * sysdeps/unix/sysv/linux/ia64/sys/ucontext.h: Do not include
35152 <bits/sigcontext.h>.
35153 (__ctx): New macro.
35154 (struct __ia64_fpreg_mcontext): New type.
35155 (mcontext_t): Define structure contents rather than using struct
35156 sigcontext.
35157 (_SC_GR0_OFFSET): Use mcontext_t instead of struct sigcontext.
35158 (uc_sigmask): Define using __ctx.
35159 (uc_stack): Likewise.
35160 * sysdeps/unix/sysv/linux/ia64/sys/procfs.h: Include
35161 <bits/sigcontext.h>.
35162 * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Likewise.
35163 * sysdeps/unix/sysv/linux/m68k/sys/ucontext.h: Do not include
35164 <bits/sigcontext.h>.
35165 * sysdeps/unix/sysv/linux/microblaze/sys/ucontext.h: New file.
35166 * sysdeps/unix/sysv/linux/mips/sys/ucontext.h: Do not include
35167 <bits/sigcontext.h>.
35168 * sysdeps/unix/sysv/linux/nios2/sys/ucontext.h: Do not include
35169 <bits/sigcontext.h>.
35170 * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h: Do not include
35171 <bits/sigcontext.h>.
35172 * sysdeps/unix/sysv/linux/s390/sys/ucontext.h: Do not include
35173 <bits/sigcontext.h>.
35174 * sysdeps/unix/sysv/linux/sh/sys/ucontext.h: Do not include
35175 <bits/sigcontext.h>.
35176 * sysdeps/unix/sysv/linux/sparc/sys/ucontext.h: Do not include
35177 <bits/sigcontext.h>.
35178 * sysdeps/unix/sysv/linux/tile/sys/ucontext.h: Do not include
35179 <bits/sigcontext.h>.
35180 (__ctx): Define earlier.
35181 (mcontext_t): Define structure contents rather than using struct
35182 sigcontext.
35183 * sysdeps/unix/sysv/linux/x86/sys/ucontext.h: Do not include
35184 <bits/sigcontext.h>. Include <bits/types.h>.
35185 * conform/Makefile (test-xfail-XPG42/signal.h/conform): Remove.
35186 (test-xfail-XPG42/sys/wait.h/conform): Likewise.
35187 (test-xfail-XPG42/ucontext.h/conform): Likewise.
35188 (test-xfail-UNIX98/signal.h/conform): Likewise.
35189 (test-xfail-UNIX98/sys/wait.h/conform): Likewise.
35190 (test-xfail-UNIX98/ucontext.h/conform): Likewise.
35191 (test-xfail-XOPEN2K/signal.h/conform): Likewise.
35192 (test-xfail-XOPEN2K/sys/wait.h/conform): Likewise.
35193 (test-xfail-XOPEN2K/ucontext.h/conform): Likewise.
35194 (test-xfail-POSIX2008/signal.h/conform): Likewise.
35195 (test-xfail-POSIX2008/sys/wait.h/conform): Likewise.
35196 (test-xfail-XOPEN2K8/signal.h/conform): Likewise.
35197 (test-xfail-XOPEN2K8/sys/wait.h/conform): Likewise.
35198
35199 2017-08-30 Florian Weimer <fweimer@redhat.com>
35200
35201 * malloc/dynarray_emplace_enlarge.c
35202 (__libc_dynarray_emplace_enlarge): Set errno on overflow.
35203 * malloc/dynarray_resize.c (__libc_dynarray_resize): Likewise.
35204 * malloc/tst-dynarray.c (test_long_overflow): New function.
35205 (do_test): Call it.
35206
35207 2017-08-30 Florian Weimer <fweimer@redhat.com>
35208
35209 * malloc/malloc.c (ARENA_CORRUPTION_BIT, arena_is_corrupt)
35210 (set_arena_corrupt): Remove definitions.
35211 (mtrim): Do not check for corrupt arena.
35212 * malloc/arena.c (arena_lock, reused_arena, arena_get_retry):
35213 Likewise.
35214
35215 2017-08-30 Florian Weimer <fweimer@redhat.com>
35216
35217 [BZ #21754]
35218 * malloc/arena.c (TUNABLE_CALLBACK set_mallopt_check): Do not set
35219 check_action.
35220 (ptmalloc_init): Do not set or use check_action.
35221 * malloc/hooks.c (malloc_check_get_size, realloc_check): Adjust
35222 call to malloc_printerr. Remove return statement.
35223 (free_check): Likewise. Remove arena unlock.
35224 (top_check): Update comment. Adjust call to malloc_printerr.
35225 Remove heap repair code.
35226 * malloc/malloc.c (unlink): Adjust calls to malloc_printerr.
35227 (DEFAULT_CHECK_ACTION, check_action): Remove definitions.
35228 (sysmalloc): Adjust call to malloc_printerr.
35229 (munmap_chunk, __libc_realloc): Likewise. Remove return
35230 statement.
35231 (_int_malloc, int_realloc): Likewise. Remove errstr variable.
35232 Remove errout label and corresponding gotos.
35233 (_int_free): Likewise. Remove arena unlock.
35234 (do_set_mallopt_check): Do not set check_action.
35235 (malloc_printerr): Adjust parameter list. Do not mark arena as
35236 corrupt.
35237 * manual/memory.texi (Malloc Tunable Parameters): Remove TODO
35238 comment.
35239 * manual/probes.texi (Memory Allocation Probes): Remove
35240 memory_mallopt_check_action.
35241
35242 2017-08-30 Steve Ellcey <sellcey@cavium.com>
35243
35244 * sysdeps/unix/sysv/linux/aarch64/makecontext.c (__makecontext):
35245 Use pointer to uint64_t instead of long int for sp.
35246
35247 2017-08-30 Florian Weimer <fweimer@redhat.com>
35248
35249 [BZ #21754]
35250 * malloc/malloc.c (malloc_printerr): Always terminate the process,
35251 without printing a backtrace. Do not leak any information in the
35252 error message.
35253 * manual/memory.texi (Heap Consistency Checking): Update.
35254 * manual/tunables.texi (Memory Allocation Tunables): Likewise.
35255
35256 2017-08-30 Florian Weimer <fweimer@redhat.com>
35257
35258 Do not scale NPTL tests with available number of CPUs.
35259 * nptl/tst-cond16.c (count): Set to constant value of 8.
35260 * nptl/tst-cond18.c (count): Likewise.
35261
35262 2017-08-29 Joseph Myers <joseph@codesourcery.com>
35263
35264 [BZ #22035]
35265 * sysdeps/m68k/m680x0/fpu/bits/mathinline.h (__inline_functions):
35266 Define to take a second argument that is a macro that
35267 concatentates a suffix, not the suffix itself.
35268 (__CONCAT_d): New macro.
35269 (__CONCAT_f): Likewise.
35270 (__CONCAT_l): Likewise.
35271
35272 2017-08-29 Paul Pluzhnikov <ppluzhnikov@google.com>
35273
35274 * stdlib/tst-atexit-common.c (do_test): Test handler inheritance
35275 by child.
35276
35277 2017-08-29 Adhemerval Zanella <adhemerval.zanella@linaro.org>
35278 Aurelien Jarno <aurelien@aurel32.net>
35279 Maciej W. Rozycki <macro@imgtec.com>
35280
35281 [BZ #21956]
35282 * sysdeps/unix/sysv/linux/mips/mips32/mips16/Makefile
35283 [subdir = misc] (sysdep_routines): Remove `mips16-syscall5',
35284 `mips16-syscall6' and `mips16-syscall7'.
35285 (CFLAGS-mips16-syscall5.c, CFLAGS-mips16-syscall6.c)
35286 (CFLAGS-mips16-syscall7.c): Remove.
35287 * sysdeps/unix/sysv/linux/mips/mips32/mips16/Versions (libc):
35288 Remove `__mips16_syscall5', `__mips16_syscall6' and
35289 `__mips16_syscall7'.
35290 * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall0.c
35291 (__mips16_syscall0): Rename `__mips16_syscall_return' to
35292 `__mips_syscall_return'.
35293 * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall1.c
35294 (__mips16_syscall1): Likewise.
35295 * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall2.c
35296 (__mips16_syscall2): Likewise.
35297 * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall3.c
35298 (__mips16_syscall3): Likewise.
35299 * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall4.c
35300 (__mips16_syscall4): Likewise.
35301 * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall5.c:
35302 Remove.
35303 * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall6.c:
35304 Remove.
35305 * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall7.c:
35306 Remove.
35307 * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall.h
35308 (__mips16_syscall5): Expand to `__mips_syscall5' rather than
35309 `__mips16_syscall5'. Remove prototype.
35310 (__mips16_syscall6): Expand to `__mips_syscall6' rather than
35311 `__mips16_syscall6'. Remove prototype.
35312 (__mips16_syscall7): Expand to `__mips_syscall7' rather than
35313 `__mips16_syscall7'. Remove prototype.
35314 (__nomips16, __mips16_syscall_return): Move to...
35315 * sysdeps/unix/sysv/linux/mips/mips32/sysdep.h
35316 (__nomips16, __mips_syscall_return): ... here.
35317 [__mips16] (INTERNAL_SYSCALL_NCS): Rename
35318 `__mips16_syscall_return' to `__mips_syscall_return'.
35319 [__mips16] (INTERNAL_SYSCALL_MIPS16): Pass `number' to
35320 `internal_syscall##nr'.
35321 [!__mips16] (INTERNAL_SYSCALL): Pass `SYS_ify (name)' to
35322 `internal_syscall##nr'.
35323 (FORCE_FRAME_POINTER): Remove.
35324 (__mips_syscall5): New prototype.
35325 (internal_syscall5): Rewrite to call `__mips_syscall5'.
35326 (__mips_syscall6): New prototype.
35327 (internal_syscall6): Rewrite to call `__mips_syscall6'.
35328 (__mips_syscall7): New prototype.
35329 (internal_syscall7): Rewrite to call `__mips_syscall7'.
35330 * sysdeps/unix/sysv/linux/mips/mips32/mips-syscall5.S: New file.
35331 * sysdeps/unix/sysv/linux/mips/mips32/mips-syscall6.S: New file.
35332 * sysdeps/unix/sysv/linux/mips/mips32/mips-syscall7.S: New file.
35333 * sysdeps/unix/sysv/linux/mips/mips32/Makefile [subdir = misc]
35334 (sysdep_routines): Add libc-do-syscall.
35335 * sysdeps/unix/sysv/linux/mips/mips32/Versions (libc): Add
35336 `__mips_syscall5', `__mips_syscall6' and `__mips_syscall7'.
35337
35338 2017-08-29 Adhemerval Zanella <adhemerval.zanella@linaro.org>
35339
35340 [BZ #21672]
35341 * nptl/allocatestack.c [_STACK_GROWS_DOWN] (setup_stack_prot):
35342 Set to use !NEED_SEPARATE_REGISTER_STACK as well.
35343 (advise_stack_range): New function.
35344 * nptl/pthread_create.c (START_THREAD_DEFN): Move logic to mark
35345 stack non required to advise_stack_range at allocatestack.c
35346
35347 2017-08-29 Szabolcs Nagy <szabolcs.nagy@arm.com>
35348
35349 * sysdeps/unix/sysv/linux/aarch64/sys/procfs.h: Use __uint64_t.
35350
35351 2017-08-29 Florian Weimer <fweimer@redhat.com>
35352
35353 [BZ #22026]
35354 * iconv/gconv_db.c (gen_steps): Decrement step_cnt after resetting
35355 __end_fct. Mangle __end_fct after setting it to NULL.
35356 * iconv/Makefile (tests): Add tst-gconv-init-failure.
35357 (modules-names, modules-names-tests): Add
35358 tst-gconv-init-failure-mod.
35359 (gconv-modules): New target.
35360 (tst-gconv-init-failure-mod.so): Link against libsupport.
35361 (tst-gconv-init-failure): Depend on gconv-modules,
35362 tst-gconv-init-failure-mod.so.
35363 * iconv/tst-gconv-init-failure-mod.c: New file.
35364 * iconv/tst-gconv-init-failure.c: Likewise.
35365 * iconv/test-gconv-modules: Likewise.
35366
35367 2017-08-29 Florian Weimer <fweimer@redhat.com>
35368
35369 [BZ #22025]
35370 * iconv/gconv_db.c (free_derivation): Remove redundant
35371 parentheses.
35372 (gen_steps): Unconditionally mangle __btowc_fct after
35373 initialization.
35374 (increment_counter): Likewise. Do not call init_fct for internal
35375 modules.
35376
35377 2017-08-29 Joseph Myers <joseph@codesourcery.com>
35378
35379 [BZ #22028]
35380 * math/math.h [__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0]
35381 (_MSUF_): Remove macro.
35382 [__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0] (_MSUFTO_):
35383 Likewise.
35384 [__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0]
35385 (__REDIRFROM_X): New macro.
35386 [__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0] (__REDIRTO_X):
35387 Likewise.
35388 * math/bits/math-finite.h (__REDIRFROM_X): Remove macro.
35389 (__REDIRTO_X): Likewise.
35390 (__MATH_REDIRCALL): Do not pass _MSUF_ or _MSUFTO_ macro
35391 arguments.
35392 (__MATH_REDIRCALL_2): Likewise.
35393 (__MATH_REDIRCALL_INTERNAL): Likewise.
35394 (__REDIRFROM (lgamma, , _MSUF_)): Likewise.
35395 (__REDIRFROM (gamma, , _MSUF_)): Likweise.
35396 (__REDIRFROM (__gamma, _r_finite, _MSUF_)): Likewise.
35397 (__REDIRFROM (tgamma, , _MSUF_)): Likewise.
35398 * math/test-finite-macros.c: New file.
35399 * math/Makefile (tests): Add test-finite-macros.
35400 (CFLAGS-test-finite-macros.c): New variable.
35401
35402 2017-08-29 Patsy Franklin <pfrankli@redhat.com>
35403 Jeff Law <law@redhat.com>
35404
35405 [BZ #22025]
35406 Mangle NULL pointers in iconv/gconv.
35407 * iconv/gconv_cache.c (find_module): Demangle init_fct before
35408 checking for NULL. Mangle __btowc_fct if init_fct is non-NULL.
35409 * iconv/gconv_db.c (free_derivation): Check that __shlib_handle
35410 is non-NULL before demangling the end_fct. Check for NULL
35411 end_fct after demangling.
35412 (__gconv_release_step): Demangle the end_fct before checking
35413 it for NULL. Remove assert on __shlibc_handle != NULL.
35414 (gen_steps): Don't check btowc_fct for NULL before mangling.
35415 Demangle init_fct before checking for NULL.
35416 (increment_counter): Likewise.
35417 * gconv_dl.c (__gconv_find_shlib): Don't check init_fct or
35418 end_fct for NULL before mangling.
35419 * wcsmbs/btowc.c (__btowc): Demangle btowc_fct before checking
35420 for NULL.
35421
35422 2017-08-29 Akhilesh Kumar <akhilesh.k@samsung.com>
35423
35424 [BZ #21971]
35425 * locale/iso-639.def: add Morisyen.
35426
35427 2017-08-28 Gabriel F. T. Gomes <gftg@linux.vnet.ibm.com>
35428
35429 [BZ #21930]
35430 * math/math.h [defined __cplusplus && defined __SUPPORT_SNAN__]
35431 (iszero): New C++ implementation that does not use
35432 fpclassify/__MATH_TG/__builtin_types_compatible_p, when
35433 signaling nans are enabled, since __builtin_types_compatible_p
35434 is a C-only feature.
35435 * math/test-math-iszero.cc: When __HAVE_DISTINCT_FLOAT128 is
35436 defined, include ieee754_float128.h for access to the union and
35437 member ieee854_float128.ieee.
35438 [__HAVE_DISTINCT_FLOAT128] (do_test): Call check_float128.
35439 [__HAVE_DISTINCT_FLOAT128] (check_float128): New function.
35440 * sysdeps/powerpc/powerpc64le/Makefile [subdir == math]
35441 (CXXFLAGS-test-math-iszero.cc): Add -mfloat128 to the build
35442 options of test-math-zero on powerpc64le.
35443
35444 2017-08-28 H.J. Lu <hongjiu.lu@intel.com>
35445
35446 * sysdeps/x86_64/fpu/multiarch/e_expf.c (__redirect_ieee754_expf):
35447 Change double to float.
35448
35449 2017-08-28 Joseph Myers <joseph@codesourcery.com>
35450
35451 * math/math-svid-compat.h [!__ASSEMBLER__]: Make code
35452 unconditional.
35453 * sysdeps/ieee754/s_lib_version.c [!defined SHARED]: Remove
35454 conditional code; define contents only for [LIBM_SVID_COMPAT].
35455
35456 2017-08-28 Florian Weimer <fweimer@redhat.com>
35457
35458 * sysdeps/unix/sysv/linux/aarch64/Makefile (abi-lp64-options)
35459 (abi-lp64_be-options): Remove.
35460 * sysdeps/unix/sysv/linux/arm/Makefile (abi-soft-options)
35461 (abi-hard-options): Likewise.
35462 * sysdeps/unix/sysv/linux/mips/Makefile(abi-o32_soft-options)
35463 (abi-o32_hard-options, abi-o32_soft_2008-options)
35464 (abi-o32_hard_2008-options, abi-n32_soft-options)
35465 (abi-n32_hard-options, abi-n32_soft_2008-options)
35466 (abi-n32_hard_2008-options, abi-n64_soft-options)
35467 (abi-n64_hard-options, abi-n64_soft_2008-options)
35468 (abi-n64_hard_2008-options): Likewise.
35469 * sysdeps/unix/sysv/linux/powerpc/Makefile (abi-32-options)
35470 (abi-64-v1-options, abi-64-v2-options): Likewise.
35471 * sysdeps/unix/sysv/linux/s390/Makefile (abi-32-options)
35472 (abi-64-options): Likewise.
35473 * sysdeps/unix/sysv/linux/sparc/Makefile (abi-32-options)
35474 (abi-64-options): Likewise.
35475 * sysdeps/unix/sysv/linux/tile/tilegx/Makefile (abi-32-options)
35476 (abi-64-options): Likewise.
35477 * sysdeps/unix/sysv/linux/x86/Makefile (abi-32-options)
35478 (abi-64-options, abi-x32-options): Likewise.
35479
35480 2017-08-28 Florian Weimer <fweimer@redhat.com>
35481
35482 Store supported list of SYS_* system calls in the source tree.
35483 * sysdeps/unix/sysv/linux/Makefile [$(subdir) = misc]
35484 (bits/syscall.h): Generate from list file.
35485 [$(subdir) = misc] (before-compile): Add bits/syscall.h.
35486 [$(subdir) = misc] (tests): Add tst-syscall-list.
35487 [$(subdir) = misc] (tests-special): Add tst-syscall-list.out
35488 [$(subdir) = misc] (tst-syscall-list-macros.list)
35489 [$(subdir) = misc] (tst-syscall-list-nr.list)
35490 (tst-syscall-list-sys.list): Helper targets for new
35491 tst-syscall-list test.
35492 [$(subdir) = misc] (tst-syscall-list.out): Run test script
35493 tst-syscall-list.sh.
35494 [$(subdir) = misc] (bits/syscall%h, bits/syscall%d): Remove
35495 target. Do not include bits/syscall.d.
35496 [$(subdir) = misc] (generated): Do not update.
35497 * sysdeps/unix/sysv/linux/syscall-names.list: New file.
35498 * sysdeps/unix/sysv/linux/gen-syscall-h.awk: Likewise.
35499 * sysdeps/unix/sysv/linux/filter-nr-syscalls.awk: Likewise.
35500 * sysdeps/unix/sysv/linux/tst-syscall-list.sh: Likewise.
35501
35502 2017-08-27 Paul Pluzhnikov <ppluzhnikov@google.com>
35503
35504 * stdlib/Makefile (tst-atexit, tst-at_quick_exit): New tests.
35505 (tst-cxa_atexit, tst-on_exit): Likewise.
35506 * stdlib/Makefile (tests): Add tst-atexit, tst-at_quick_exit,
35507 tst-cxa_atexit, and tst-on_exit.
35508 * stdlib/tst-atexit-common.c: New file.
35509 * stdlib/tst-atexit.c: New file.
35510 * stdlib/tst-at_quick_exit.c: New file.
35511 * stdlib/tst-cxa_atexit.c: New file.
35512 * stdlib/tst-on_exit.c: New file.
35513
35514 2017-08-27 Samuel Thibault <samuel.thibault@ens-lyon.org>
35515
35516 * sysdeps/mach/hurd/bits/sysmacros.h: New file.
35517 * mach/stack_chk_fail_local.c: New file.
35518 * hurd/stack_chk_fail_local.c: New file.
35519 * mach/Machrules ($(interface-library)-routines): Add
35520 stack_chk_fail_local.
35521 * mach/Makefile (CFLAGS-mach_init.o, CFLAGS-RPC_vm_statistics.o,
35522 CFLAGS-RPC_vm_map.o, CFLAGS-RPC_vm_protect.o,
35523 CFLAGS-RPC_i386_set_gdt.o, CFLAGS-RPC_i386_set_ldt.o,
35524 CFLAGS-RPC_task_get_special_port.o): Add $(no-stack-protector).
35525 * hurd/Makefile (CFLAGS-hurdstartup.o,
35526 CFLAGS-RPC_exec_startup_get_info.o): Add $(no-stack-protector).
35527
35528 2017-08-25 H.J. Lu <hongjiu.lu@intel.com>
35529
35530 * sysdeps/x86/cpu-features.h [__ASSEMBLER__]
35531 (index_cpu_*, index_arch_*): Removed.
35532
35533 2017-08-25 Szabolcs Nagy <szabolcs.nagy@arm.com>
35534
35535 * sysdeps/unix/sysv/linux/aarch64/sys/procfs.h (elf_greg_t):
35536 Use uint64_t instead of unsigned long.
35537
35538 2017-08-25 Joseph Myers <joseph@codesourcery.com>
35539
35540 * math/tgmath.h [__HAVE_FLOAT128]: Change conditional to
35541 [__HAVE_DISTINCT_FLOAT128].
35542
35543 * math/math.h (_MSUFTO_): Define and undefine for each inclusion
35544 of <bits/math-finite.h>.
35545 (__MATH_DECLARING_LDOUBLE): Do not define and undefine for each
35546 inclusion of <bits/math-finite.h>.
35547 * math/bits/math-finite.h (__REDIRTO_X): Do not define
35548 conditionally on [__MATH_DECLARING_LDOUBLE && defined
35549 __NO_LONG_DOUBLE_MATH].
35550 (__MATH_REDIRCALL): Use _MSUFTO_ in __REDIRTO call.
35551 (__MATH_REDIRCALL_2): Likewise.
35552 (__MATH_REDIRCALL_INTERNAL): Likewise.
35553 (__REDIRFROM (lgamma, , _MSUF_)): Likewise.
35554 (__REDIRFROM (gamma, , _MSUF_)): Likewise.
35555 (__REDIRFROM (tgamma, , _MSUF_)): Likewise.
35556
35557 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrt_compat-power5.S:
35558 Remove file.
35559 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrt_compat-ppc32.S:
35560 Likewise.
35561 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrt_compat.c:
35562 Likewise.
35563 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrtf_compat-power5.S:
35564 Likewise.
35565 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrtf_compat-ppc32.S:
35566 Likewise.
35567 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrtf_compat.c:
35568 Likewise.
35569 * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt_compat.S: Likewise.
35570 * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrtf_compat.S: Likewise.
35571 * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrt_compat.S: Likewise.
35572 * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrtf_compat.S: Likewise.
35573 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile
35574 (libm-sysdep-routines): Remove w_sqrt_compat-power5,
35575 w_sqrt_compat-ppc32, w_sqrtf_compat-power5 and
35576 w_sqrtf_compat-ppc32.
35577
35578 2017-08-24 Gabriel F. T. Gomes <gftg@linux.vnet.ibm.com>
35579
35580 * math/math.h [defined __cplusplus] (issignaling): In the long
35581 double case, call __issignalingl only if __NO_LONG_DOUBLE_MATH
35582 is not defined. Call __issignaling, otherwise.
35583
35584 2017-08-24 Adhemerval Zanella <adhemerval.zanella@linaro.org>
35585
35586 * sysdeps/unix/make-syscalls.sh: Remove cancellable tagging for
35587 syscall definitions and replace __builtin_expect with __glibc_likely.
35588 * sysdeps/unix/syscall-template.S: Update comment about cancellable
35589 syscall.
35590 (SYSCALL_CANCELLABLE): Removedefinition
35591 * sysdeps/unix/sysv/linux/aarch64/sysdep-cancel.h (PSEUDO): Remove
35592 definition.
35593 (PSEUDO_END): Likewise.
35594 [IS_IN (libpthread)] (CENABLE): Likewise.
35595 [IS_IN (libpthread)] (CDISABLE): Likewise.
35596 [IS_IN (libc)] (CENABLE): Likewise.
35597 [IS_IN (libc)] (CENABLE): Likewise.
35598 [IS_IN (librt)] (CDISABLE): Likewise.
35599 [IS_IN (librt)] (CDISABLE): Likewise.
35600 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
35601 * sysdeps/unix/sysv/linux/alpha/sysdep-cancel.h (PSEUDO): Remove
35602 definition.
35603 (PSEUDO_END): Likewise.
35604 [IS_IN (libpthread)] (__local_enable_asynccancel): Likewise.
35605 [IS_IN (libpthread)] (__local_disable_asynccancel): Likewise.
35606 [IS_IN (libc)] (__local_enable_asynccancel): Likewise.
35607 [IS_IN (libc)] (__local_enable_asynccancel): Likewise.
35608 [IS_IN (librt)] (__local_disable_asynccancel): Likewise.
35609 [IS_IN (librt)] (__local_disable_asynccancel): Likewise.
35610 (CENABLE): Likewise.
35611 (CDISABLE): Likewise.
35612 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
35613 * sysdeps/unix/sysv/linux/arm/sysdep-cancel.h (PSEUDO): Remove
35614 defintion.
35615 (PSEUDO_END): Likewise.
35616 [IS_IN (libpthread)] (CENABLE): Likewise.
35617 [IS_IN (libpthread)] (CDISABLE): Likewise.
35618 [IS_IN (libc)] (CENABLE): Likewise.
35619 [IS_IN (libc)] (CENABLE): Likewise.
35620 [IS_IN (librt)] (CDISABLE): Likewise.
35621 [IS_IN (librt)] (CDISABLE): Likewise.
35622 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
35623 * sysdeps/unix/sysv/linux/hppa/sysdep-cancel.h (PSEUDO): Remove
35624 definition.
35625 (PSEUDO_END): Likewise.
35626 [IS_IN (libpthread)] (CENABLE): Likewise.
35627 [IS_IN (libpthread)] (CDISABLE): Likewise.
35628 [IS_IN (libc)] (CENABLE): Likewise.
35629 [IS_IN (libc)] (CENABLE): Likewise.
35630 [IS_IN (librt)] (CDISABLE): Likewise.
35631 [IS_IN (librt)] (CDISABLE): Likewise.
35632 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
35633 * sysdeps/unix/sysv/linux/i386/sysdep-cancel.h (PSEUDO): Remove
35634 definition.
35635 (PSEUDO_END): Likewise.
35636 [IS_IN (libpthread)] (CENABLE): Likewise.
35637 [IS_IN (libpthread)] (CDISABLE): Likewise.
35638 [IS_IN (libc)] (CENABLE): Likewise.
35639 [IS_IN (libc)] (CENABLE): Likewise.
35640 [IS_IN (librt)] (CDISABLE): Likewise.
35641 [IS_IN (librt)] (CDISABLE): Likewise.
35642 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
35643 * sysdeps/unix/sysv/linux/ia64/sysdep-cancel.h (PSEUDO): Remove
35644 definition.
35645 (PSEUDO_END): Likewise.
35646 [IS_IN (libpthread)] (CENABLE): Likewise.
35647 [IS_IN (libpthread)] (CDISABLE): Likewise.
35648 [IS_IN (libc)] (CENABLE): Likewise.
35649 [IS_IN (libc)] (CENABLE): Likewise.
35650 [IS_IN (librt)] (CDISABLE): Likewise.
35651 [IS_IN (librt)] (CDISABLE): Likewise.
35652 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
35653 * sysdeps/unix/sysv/linux/m68k/sysdep-cancel.h (PSEUDO): Remove
35654 definition.
35655 (PSEUDO_END): Likewise.
35656 [IS_IN (libpthread)] (CENABLE): Likewise.
35657 [IS_IN (libpthread)] (CDISABLE): Likewise.
35658 [IS_IN (libc)] (CENABLE): Likewise.
35659 [IS_IN (libc)] (CENABLE): Likewise.
35660 [IS_IN (librt)] (CDISABLE): Likewise.
35661 [IS_IN (librt)] (CDISABLE): Likewise.
35662 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
35663 * sysdeps/unix/sysv/linux/microblaze/sysdep-cancel.h (PSEUDO): Remove
35664 definition.
35665 (PSEUDO_END): Likewise.
35666 [IS_IN (libpthread)] (CENABLE): Likewise.
35667 [IS_IN (libpthread)] (CDISABLE): Likewise.
35668 [IS_IN (libc)] (CENABLE): Likewise.
35669 [IS_IN (libc)] (CENABLE): Likewise.
35670 [IS_IN (librt)] (CDISABLE): Likewise.
35671 [IS_IN (librt)] (CDISABLE): Likewise.
35672 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
35673 * sysdeps/unix/sysv/linux/mips/mips64/sysdep-cancel.h (PSEUDO):
35674 Remove definition.
35675 (PSEUDO_END): Likewise.
35676 [IS_IN (libpthread)] (CENABLE): Likewise.
35677 [IS_IN (libpthread)] (CDISABLE): Likewise.
35678 [IS_IN (libc)] (CENABLE): Likewise.
35679 [IS_IN (libc)] (CENABLE): Likewise.
35680 [IS_IN (librt)] (CDISABLE): Likewise.
35681 [IS_IN (librt)] (CDISABLE): Likewise.
35682 (SINGLE_THREAD_P): Likewise.
35683 * sysdeps/unix/sysv/linux/mips/sysdep-cancel.h (PSEUDO): Remove
35684 definition.
35685 (PSEUDO_END): Likewise.
35686 [IS_IN (libpthread)] (CENABLE): Likewise.
35687 [IS_IN (libpthread)] (CDISABLE): Likewise.
35688 [IS_IN (libc)] (CENABLE): Likewise.
35689 [IS_IN (libc)] (CENABLE): Likewise.
35690 [IS_IN (librt)] (CDISABLE): Likewise.
35691 [IS_IN (librt)] (CDISABLE): Likewise.
35692 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
35693 * sysdeps/unix/sysv/linux/nios2/sysdep-cancel.h (PSEUDO): Remove
35694 definition.
35695 (PSEUDO_END): Likewise.
35696 [IS_IN (libpthread)] (CENABLE): Likewise.
35697 [IS_IN (libpthread)] (CDISABLE): Likewise.
35698 [IS_IN (libc)] (CENABLE): Likewise.
35699 [IS_IN (libc)] (CENABLE): Likewise.
35700 [IS_IN (librt)] (CDISABLE): Likewise.
35701 [IS_IN (librt)] (CDISABLE): Likewise.
35702 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
35703 * sysdeps/sysv/linux/powerpc/powerpc32/sysdep-cancel.h: Remove file.
35704 * sysdeps/sysv/linux/powerpc/powerpc64/sysdep-cancel.h: Likewise.
35705 * sysdeps/unix/sysv/linux/powerpc/sysdep-cancel.h: New file.
35706 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep-cancel.h (PSEUDO): Remove
35707 definition.
35708 (PSEUDO_END): Likewise.
35709 [IS_IN (libpthread)] (CENABLE): Likewise.
35710 [IS_IN (libpthread)] (CDISABLE): Likewise.
35711 [IS_IN (libc)] (CENABLE): Likewise.
35712 [IS_IN (libc)] (CENABLE): Likewise.
35713 [IS_IN (librt)] (CDISABLE): Likewise.
35714 [IS_IN (librt)] (CDISABLE): Likewise.
35715 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
35716 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep-cancel.h (PSEUDO): Remove
35717 definition.
35718 (PSEUDO_END): Likewise.
35719 [IS_IN (libpthread)] (CENABLE): Likewise.
35720 [IS_IN (libpthread)] (CDISABLE): Likewise.
35721 [IS_IN (libc)] (CENABLE): Likewise.
35722 [IS_IN (libc)] (CENABLE): Likewise.
35723 [IS_IN (librt)] (CDISABLE): Likewise.
35724 [IS_IN (librt)] (CDISABLE): Likewise.
35725 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
35726 * sysdeps/unix/sysv/linux/sh/sysdep-cancel.h (PSEUDO): Remove
35727 definition.
35728 (PSEUDO_END): Likewise.
35729 [IS_IN (libpthread)] (CENABLE): Likewise.
35730 [IS_IN (libpthread)] (CDISABLE): Likewise.
35731 [IS_IN (libc)] (CENABLE): Likewise.
35732 [IS_IN (libc)] (CENABLE): Likewise.
35733 [IS_IN (librt)] (CDISABLE): Likewise.
35734 [IS_IN (librt)] (CDISABLE): Likewise.
35735 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
35736 * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep-cancel.h: Remove file.
35737 * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep-cancel.h: Likewise.
35738 * sysdeps/unix/sysv/linux/sparc/sysdep-cancel.h: New file.
35739 * sysdeps/unix/sysv/linux/tile/sysdep-cancel.h (PSEUDO): Remove
35740 definition.
35741 (PSEUDO_END): Likewise.
35742 [IS_IN (libpthread)] (CENABLE): Likewise.
35743 [IS_IN (libpthread)] (CDISABLE): Likewise.
35744 [IS_IN (libc)] (CENABLE): Likewise.
35745 [IS_IN (libc)] (CENABLE): Likewise.
35746 [IS_IN (librt)] (CDISABLE): Likewise.
35747 [IS_IN (librt)] (CDISABLE): Likewise.
35748 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
35749 * sysdeps/unix/sysv/linux/x86_64/sysdep-cancel.h (PSEUDO): Remove
35750 definition.
35751 (PSEUDO_END): Likewise.
35752 [IS_IN (libpthread)] (CENABLE): Likewise.
35753 [IS_IN (libpthread)] (CDISABLE): Likewise.
35754 [IS_IN (libc)] (CENABLE): Likewise.
35755 [IS_IN (libc)] (CENABLE): Likewise.
35756 [IS_IN (librt)] (CDISABLE): Likewise.
35757 [IS_IN (librt)] (CDISABLE): Likewise.
35758 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
35759
35760 2017-08-24 Szabolcs Nagy <szabolcs.nagy@arm.com>
35761
35762 * sysdeps/ieee754/dbl-64/Makefile: Don't override CFLAGS.
35763
35764 2017-08-23 H.J. Lu <hongjiu.lu@intel.com>
35765
35766 * sysdeps/x86_64/fpu/libm-test-ulps: Regenerated.
35767
35768 2017-08-23 H.J. Lu <hongjiu.lu@intel.com>
35769
35770 [BZ #21982]
35771 * string/stratcliff.c (do_test): Declare size, nchars, inner,
35772 middle and outer with size_t instead of int. Repleace %d and
35773 %Zd with %zu in printf. Update "MAX (0, nchars - 128)" and
35774 "MAX (outer, nchars - 64)" to support unsigned outer and
35775 nchars. Also exit loop when outer == 0.
35776
35777 2017-08-23 Adhemerval Zanella <adhemerval.zanella@linaro.org>
35778
35779 * include/fcntl.h (__fcntl_nocancel): Remove definition.
35780 * include/signal.h (__sigsuspend_nocancel): Likewise.
35781 * include/time.h (__nanosleep_nocancel): Likewise.
35782 * sysdeps/generic/not-cancel.h (__fcntl_nocancel): New macro.
35783 * login/utmp_file.c: Include non cancellable syscall header.
35784 * sysdeps/unix/sysv/linux/not-cancel.h (__fcntl_nocancel): New
35785 prototype.
35786
35787 2017-08-23 H.J. Lu <hongjiu.lu@intel.com>
35788
35789 * sysdeps/x86_64/fpu/svml_d_sincos8_core.S: Replace AVX512F
35790 .byte sequences with AVX512F instructions.
35791 * sysdeps/x86_64/fpu/svml_d_wrapper_impl.h: Likewise.
35792 * sysdeps/x86_64/fpu/svml_s_sincosf16_core.S: Likewise.
35793 * sysdeps/x86_64/fpu/svml_s_wrapper_impl.h: Likewise.
35794 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos8_core_avx512.S:
35795 Likewise.
35796 * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf16_core_avx512.S:
35797 Likewise.
35798
35799 2017-08-22 Szabolcs Nagy <szabolcs.nagy@arm.com>
35800 Steve Ellcey <sellcey@cavium.com>
35801
35802 * sysdeps/aarch64/dl-tlsdesc.S (_dl_tlsdesc_dynamic):
35803 Use PTR_REG macro in cmp instruction.
35804
35805 2017-08-22 Gabriel F. T. Gomes <gftg@linux.vnet.ibm.com>
35806
35807 * include/libc-symbols.h: [!defined HAVE_GCC_IFUNC] (__ifunc):
35808 Change the return type of the ifunc resolver to match the return
35809 type of the target function.
35810
35811 2017-08-22 Adhemerval Zanella <adhemerval.zanella@linaro.org>
35812
35813 * sysdeps/unix/sysv/linux/x86_64/syscalls.list (pread64): Remove.
35814 (preadv64): Likewise.
35815 (pwrite64(: Likewise.
35816 (pwritev64): Likewise.
35817
35818 * sysdeps/unix/sysv/linux/x86_64/sysdep.h
35819 (INTERNAL_SYSCALL_NCS_TYPES): Remove define.
35820 (LOAD_ARGS_0): Likewise.
35821 (LOAD_ARGS_1): Likewise.
35822 (LOAD_ARGS_2): Likewise.
35823 (LOAD_ARGS_3): Likewise.
35824 (LOAD_ARGS_4): Likewise.
35825 (LOAD_ARGS_5): Likewise.
35826 (LOAD_ARGS_6): Likewise.
35827 (LOAD_REGS_0): Likewise.
35828 (LOAD_REGS_1): Likewise.
35829 (LOAD_REGS_2): Likewise.
35830 (LOAD_REGS_3): Likewise.
35831 (LOAD_REGS_4): Likewise.
35832 (LOAD_REGS_5): Likewise.
35833 (LOAD_REGS_6): Likewise.
35834 (ASM_ARGS_0): Likewise.
35835 (ASM_ARGS_1): Likewise.
35836 (ASM_ARGS_2): Likewise.
35837 (ASM_ARGS_3): Likewise.
35838 (ASM_ARGS_4): Likewise.
35839 (ASM_ARGS_5): Likewise.
35840 (ASM_ARGS_6): Likewise.
35841 (LOAD_ARGS_TYPES_1): Likewise.
35842 (LOAD_ARGS_TYPES_2): Likewise.
35843 (LOAD_ARGS_TYPES_3): Likewise.
35844 (LOAD_ARGS_TYPES_4): Likewise.
35845 (LOAD_ARGS_TYPES_5): Likewise.
35846 (LOAD_ARGS_TYPES_6): Likewise.
35847 (LOAD_REGS_TYPES_1): Likewise.
35848 (LOAD_REGS_TYPES_2): Likewise.
35849 (LOAD_REGS_TYPES_3): Likewise.
35850 (LOAD_REGS_TYPES_4): Likewise.
35851 (LOAD_REGS_TYPES_5): Likewise.
35852 (LOAD_REGS_TYPES_6): Likewise.
35853 (TYPEFY): New define.
35854 (ARGIFY): Likewise.
35855 (internal_syscall0): Likewise.
35856 (internal_syscall1): Likewise.
35857 (internal_syscall2): Likewise.
35858 (internal_syscall3): Likewise.
35859 (internal_syscall4): Likewise.
35860 (internal_syscall5): Likewise.
35861 (internal_syscall6): Likewise.
35862 * sysdeps/unix/sysv/linux/x86_64/x32/times.c
35863 (INTERNAL_SYSCALL_NCS): Remove define.
35864 (internal_syscall1): Add define.
35865
35866 2017-08-22 Gabriel F. T. Gomes <gftg@linux.vnet.ibm.com>
35867
35868 * math/w_remainder_compat.c: Remove duplicate inclusion of
35869 math-svid-compat.h.
35870 * math/w_remainderf_compat.c: Likewise.
35871 * math/w_remainderl_compat.c: Likewise.
35872
35873 2017-08-22 Gabriel F. T. Gomes <gftg@linux.vnet.ibm.com>
35874
35875 * sysdeps/powerpc/fpu/libm-test-ulps: Update.
35876
35877 2017-08-22 Joseph Myers <joseph@codesourcery.com>
35878
35879 [BZ #21684]
35880 * math/tgmath.h (__floating_type): Simplify definitions.
35881 (__real_integer_type): New macro.
35882 (__complex_integer_type): Likewise.
35883 (__expr_is_real): Likewise.
35884 (__tgmath_real_type_sub): Update comment to describe handling of
35885 complex types.
35886 (__tgmath_complex_type_sub): New macro.
35887 (__tgmath_complex_type): Likewise.
35888 [__HAVE_FLOAT128 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
35889 (__TGMATH_CF128): Use __expr_is_real.
35890 (__TGMATH_UNARY_REAL_IMAG): Use __tgmath_complex_type and
35891 __expr_is_real.
35892 (__TGMATH_BINARY_REAL_IMAG): Likewise.
35893 (__TGMATH_UNARY_REAL_IMAG_RET_REAL): Use __expr_is_real.
35894 * math/gen-tgmath-tests.py (Type.create_type): Create complex
35895 integer types.
35896
35897 2017-08-22 Adhemerval Zanella <adhemerval.zanella@linaro.org>
35898
35899 * sysdeps/generic/not-cancel.h (sigsuspend_not_cancel): Remove
35900 macro.
35901 * sysdeps/mach/hurd/sigsuspend.c (sigsuspend_not_cancel): Remove
35902 alias.
35903 * sysdeps/unix/sysv/linux/not-cancel.h (sigsuspend_not_cancel):
35904 Likewise.
35905
35906 * nptl/pthread_mutex_timedlock.c (__pthread_mutex_timedlock): Replace
35907 nanosleep_not_cancel with __nanosleep_nocancel.
35908 * sysdeps/generic/not-cancel.h (nanosleep_not_cancel): Remove macro.
35909 (__nanosleep_nocancel): New macro.
35910 * sysdeps/unix/sysv/linux/nanosleep.c (__nanosleep_nocancel): New
35911 function.
35912 * sysdeps/unix/sysv/linux/not-cancel.h (nanosleep_not_cancel): Remove
35913 macro.
35914 (__nanosleep_nocancel): New prototype.
35915
35916 * nptl/pthread_mutex_lock.c (__pthread_mutex_lock_full): Replace
35917 pause_not_cancel with __pause_nocancel.
35918 * sysdeps/generic/not-cancel.h (pause_not_cancel): Remove macro.
35919 (__pause_nocancel): New macro.
35920 * sysdeps/unix/sysv/linux/not-cancel.h (pause_not_cancel): Remove
35921 macro.
35922 (__pause_nocancel): New prototype.
35923 * sysdeps/unix/sysv/linux/pause.c (__pause_nocancel): New function.
35924
35925 2017-08-22 Martin Sebor <msebor@redhat.com>
35926
35927 * include/libc-symbols.h (__ifunc_resolver): Declare resolver
35928 to return a pointer to the same type as the target function.
35929
35930 2017-08-22 H.J. Lu <hongjiu.lu@intel.com>
35931
35932 [BZ #18822]
35933 [BZ #21986]
35934 * include/printf.h (__printf_fphex): Add attribute_hidden.
35935 (__guess_grouping): New prototype.
35936 * stdio-common/printf_fp.c (__guess_grouping): Removed.
35937 * stdio-common/reg-printf.c (__register_printf_specifier): Add
35938 libc_hidden_proto and libc_hidden_def.
35939 * stdlib/strfmon_l.c (__guess_grouping): Removed.
35940 (__vstrfmon_l): Remove the third argument passed to
35941 __guess_grouping.
35942
35943 2017-08-22 Gabriel F. T. Gomes <gftg@linux.vnet.ibm.com>
35944
35945 * math/math.h [defined __cplusplus] (issignaling): Provide a C++
35946 definition for issignaling that does not rely on __MATH_TG,
35947 since __MATH_TG uses __builtin_types_compatible_p, which is only
35948 available in C mode.
35949 (CFLAGS-test-math-issignaling.cc): New variable.
35950 * math/Makefile [CXX] (tests): Add test-math-issignaling.
35951 * math/test-math-issignaling.cc: New test for C++ implementation
35952 of type-generic issignaling.
35953 * sysdeps/powerpc/powerpc64le/Makefile [subdir == math]
35954 (CXXFLAGS-test-math-issignaling.cc): Add -mfloat128 to the build
35955 options of test-math-issignaling on powerpc64le.
35956
35957 2017-08-22 H.J. Lu <hongjiu.lu@intel.com>
35958
35959 * include/libc-symbols.h (__hidden_proto_hiddenattr): New for
35960 building libc.a.
35961 (hidden_proto): Likewise.
35962 (hidden_tls_proto): Likewise.
35963 (__hidden_proto): Likewise.
35964
35965 2017-08-22 Florian Weimer <fweimer@redhat.com>
35966
35967 math: Statically link tests of internal functionality.
35968 * math/Makefile (tests): Remove atest-exp, atest-sincos,
35969 atest-exp2.
35970 (tests-static): Add atest-exp, atest-sincos, atest-exp2.
35971 (gmp-objs): Remove assignment.
35972 (atest-exp, atest-sincos, atest-exp2): Remove targets.
35973
35974 2017-08-22 Joseph Myers <joseph@codesourcery.com>
35975
35976 [BZ #21987]
35977 * sysdeps/unix/sysv/linux/sparc/bits/long-double.h: Remove file
35978 and copy to ...
35979 * sysdeps/unix/sysv/linux/sparc/sparc32/bits/long-double.h:
35980 ... here.
35981 * sysdeps/unix/sysv/linux/sparc/sparc64/bits/long-double.h:
35982 ... and here.
35983
35984 * assert/Makefile [$(have-cxx-thread_local)]: Move conditional
35985 variable definitions above inclusion of ../Rules.
35986
35987 2017-08-21 Joseph Myers <joseph@codesourcery.com>
35988
35989 * sysdeps/ieee754/k_standard.c (__kernel_standard): Add default
35990 case calling __builtin_unreachable.
35991
35992 2017-08-21 Adhemerval Zanella <adhemerval.zanella@linaro.org>
35993
35994 * libio/ioopen.c (_IO_waitpid): Replace waitpid_not_cancel with
35995 __waitpid_nocancel.
35996 * sysdeps/generic/not-cancel.h (waitpid_not_cancel): Remove macro.
35997 (__waitpid_nocancel): New macro.
35998 * sysdeps/unix/sysv/linux/not-cancel.h (waitpid_not_cancel): Remove
35999 macro.
36000 (__waitpid_nocancel): Replace macro with a function.
36001 * sysdeps/unix/sysv/linux/waitpid.c (__waitpid_nocancel): New
36002 function.
36003
36004 * login/utmp_file.c (timeout_handler): Replace fcntl_not_cancel with
36005 __fcntl_nocancel.
36006 * sysdeps/generic/not-cancel.h (fcntl_not_cancel): Remove macro.
36007 * sysdeps/unix/sysv/linux/not-cancel.h (fcntl_not_cancel): Likewise.
36008
36009 * gmon/gmon.c (write_hist): Replace writev_not_cancel_no_status with
36010 __writev_nocancel_nostatus.
36011 (write_call_graph): Likewise.
36012 (write_bb_counts): Likewise.
36013 * resolv/herror.c (herror): Likewise.
36014 * sysdeps/generic/not-cancel.h (writev_not_cancel_no_status): Remove
36015 macro.
36016 (__writev_nocancel_nostatus): New macro.
36017 * sysdeps/unix/sysv/linux/not-cancel.h (writev_not_cancel_no_status):
36018 Remove macro.
36019 (__writev_nocancel_nostatus): New function.
36020
36021 2017-08-21 Joseph Myers <joseph@codesourcery.com>
36022
36023 Revert:
36024 2017-08-21 H.J. Lu <hongjiu.lu@intel.com>
36025
36026 * include/libc-symbols.h (__hidden_proto_hiddenattr): New for
36027 building libc.a.
36028 (hidden_proto): Likewise.
36029 (hidden_tls_proto): Likewise.
36030 (__hidden_proto): Likewise.
36031
36032 [BZ #21973]
36033 * sysdeps/sparc/sparc32/fpu/w_sqrt_compat.S: Remove file.
36034 * sysdeps/sparc/sparc32/fpu/w_sqrtf_compat.S: Likewise.
36035 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt_compat-vis3.S:
36036 Likewise.
36037 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt_compat.S:
36038 Likewise.
36039 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf_compat-vis3.S:
36040 Likewise.
36041 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf_compat.S:
36042 Likewise.
36043 * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrt_compat.S : Likewise.
36044 * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrtf_compat.S: Likewise.
36045 * sysdeps/sparc/sparc64/fpu/w_sqrt_compat.S: Likewise.
36046 * sysdeps/sparc/sparc64/fpu/w_sqrtf_compat.S: Likewise.
36047 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Add
36048 GLIBC_2.0 sqrtl symbol.
36049
36050 * math/math.h [__USE_MISC] (_LIB_VERSION_TYPE): Remove.
36051 [__USE_MISC] (_LIB_VERSION): Likewise.
36052 [__USE_MISC] (struct exception): Likewise.
36053 [__USE_MISC] (matherr): Likewise.
36054 [__USE_MISC] (DOMAIN): Likewise.
36055 [__USE_MISC] (SING): Likewise.
36056 [__USE_MISC] (OVERFLOW): Likewise.
36057 [__USE_MISC] (UNDERFLOW): Likewise.
36058 [__USE_MISC] (TLOSS): Likewise.
36059 [__USE_MISC] (PLOSS): Likewise.
36060 [__USE_MISC] (HUGE): Likewise.
36061 [__USE_XOPEN] (MAXFLOAT): Define even if [__USE_MISC].
36062 * math/math-svid-compat.h: New file.
36063 * conform/linknamespace.pl (@whitelist): Remove matherr, matherrf
36064 and matherrl.
36065 * include/math.h [!_ISOMAC] (__matherr): Remove.
36066 * manual/arith.texi (FP Exceptions): Do not document matherr.
36067 * math/Makefile (tests): Change test-matherr to test-matherr-3.
36068 (tests-internal): New variable.
36069 (install-lib): Do not add libieee.a.
36070 (non-lib.a): Likewise.
36071 (extra-objs): Do not add libieee.a and ieee-math.o.
36072 (CPPFLAGS-s_lib_version.c): Remove variable.
36073 ($(objpfx)libieee.a): Remove rule.
36074 ($(addprefix $(objpfx), $(tests-internal)): Depend on $(libm).
36075 * math/ieee-math.c: Remove.
36076 * math/libm-test-support.c (matherr): Remove.
36077 * math/test-matherr.c: Use <support/test-driver.c>. Add copyright
36078 and license notices. Include <math-svid-compat.h> and
36079 <shlib-compat.h>.
36080 (matherr): Undefine as macro. Use compat_symbol_reference.
36081 (_LIB_VERSION): Likewise.
36082 * math/test-matherr-2.c: New file.
36083 * math/test-matherr-3.c: Likewise.
36084 * sysdeps/generic/math_private.h (__kernel_standard): Remove
36085 declaration.
36086 (__kernel_standard_f): Likewise.
36087 (__kernel_standard_l): Likewise.
36088 * sysdeps/ieee754/s_lib_version.c: Do not include <math.h> or
36089 <math_private.h>. Include <math-svid-compat.h>.
36090 (_LIB_VERSION): Undefine as macro.
36091 (_LIB_VERSION_INTERNAL): Always initialize to _POSIX_. Define
36092 only if [LIBM_SVID_COMPAT || !defined SHARED]. If
36093 [LIBM_SVID_COMPAT], use compat_symbol.
36094 * sysdeps/ieee754/s_matherr.c: Do not include <math.h> or
36095 <math_private.h>. Include <math-svid-compat.h>.
36096 (matherr): Undefine as macro.
36097 (__matherr): Define only if [LIBM_SVID_COMPAT]. Use
36098 compat_symbol.
36099 * sysdeps/ia64/fpu/libm_error.c: Include <math-svid-compat.h>.
36100 [_LIBC && LIBM_SVID_COMPAT] (matherrf): Use
36101 compat_symbol_reference.
36102 [_LIBC && LIBM_SVID_COMPAT] (matherrl): Likewise.
36103 [_LIBC && !LIBM_SVID_COMPAT] (matherrf): Define as macro.
36104 [_LIBC && !LIBM_SVID_COMPAT] (matherrl): Likewise.
36105 * sysdeps/ia64/fpu/libm_support.h: Include <math-svid-compat.h>.
36106 (MATHERR_D): Remove declaration.
36107 [!_LIBC] (_LIB_VERSION_TYPE): Likewise
36108 [!LIBM_BUILD] (_LIB_VERSIONIMF): Likewise.
36109 [LIBM_BUILD] (pmatherrf): Likewise.
36110 [LIBM_BUILD] (pmatherr): Likewise.
36111 [LIBM_BUILD] (pmatherrl): Likewise.
36112 (DOMAIN): Likewise.
36113 (SING): Likewise.
36114 (OVERFLOW): Likewise.
36115 (UNDERFLOW): Likewise.
36116 (TLOSS): Likewise.
36117 (PLOSS): Likewise.
36118 * sysdeps/ia64/fpu/s_matherrf.c: Include <math-svid-compat.h>.
36119 (__matherrf): Define only if [LIBM_SVID_COMPAT]. Use
36120 compat_symbol.
36121 * sysdeps/ia64/fpu/s_matherrl.c: Include <math-svid-compat.h>.
36122 (__matherrl): Define only if [LIBM_SVID_COMPAT]. Use
36123 compat_symbol.
36124 * math/lgamma-compat.h: Include <math-svid-compat.h>.
36125 * math/w_acos_compat.c: Likewise.
36126 * math/w_acosf_compat.c: Likewise.
36127 * math/w_acosh_compat.c: Likewise.
36128 * math/w_acoshf_compat.c: Likewise.
36129 * math/w_acoshl_compat.c: Likewise.
36130 * math/w_acosl_compat.c: Likewise.
36131 * math/w_asin_compat.c: Likewise.
36132 * math/w_asinf_compat.c: Likewise.
36133 * math/w_asinl_compat.c: Likewise.
36134 * math/w_atan2_compat.c: Likewise.
36135 * math/w_atan2f_compat.c: Likewise.
36136 * math/w_atan2l_compat.c: Likewise.
36137 * math/w_atanh_compat.c: Likewise.
36138 * math/w_atanhf_compat.c: Likewise.
36139 * math/w_atanhl_compat.c: Likewise.
36140 * math/w_cosh_compat.c: Likewise.
36141 * math/w_coshf_compat.c: Likewise.
36142 * math/w_coshl_compat.c: Likewise.
36143 * math/w_exp10_compat.c: Likewise.
36144 * math/w_exp10f_compat.c: Likewise.
36145 * math/w_exp10l_compat.c: Likewise.
36146 * math/w_exp2_compat.c: Likewise.
36147 * math/w_exp2f_compat.c: Likewise.
36148 * math/w_exp2l_compat.c: Likewise.
36149 * math/w_fmod_compat.c: Likewise.
36150 * math/w_fmodf_compat.c: Likewise.
36151 * math/w_fmodl_compat.c: Likewise.
36152 * math/w_hypot_compat.c: Likewise.
36153 * math/w_hypotf_compat.c: Likewise.
36154 * math/w_hypotl_compat.c: Likewise.
36155 * math/w_j0_compat.c: Likewise.
36156 * math/w_j0f_compat.c: Likewise.
36157 * math/w_j0l_compat.c: Likewise.
36158 * math/w_j1_compat.c: Likewise.
36159 * math/w_j1f_compat.c: Likewise.
36160 * math/w_j1l_compat.c: Likewise.
36161 * math/w_jn_compat.c: Likewise.
36162 * math/w_jnf_compat.c: Likewise.
36163 * math/w_jnl_compat.c: Likewise.
36164 * math/w_lgamma_main.c: Likewise.
36165 * math/w_lgamma_r_compat.c: Likewise.
36166 * math/w_lgammaf_main.c: Likewise.
36167 * math/w_lgammaf_r_compat.c: Likewise.
36168 * math/w_lgammal_main.c: Likewise.
36169 * math/w_lgammal_r_compat.c: Likewise.
36170 * math/w_log10_compat.c: Likewise.
36171 * math/w_log10f_compat.c: Likewise.
36172 * math/w_log10l_compat.c: Likewise.
36173 * math/w_log2_compat.c: Likewise.
36174 * math/w_log2f_compat.c: Likewise.
36175 * math/w_log2l_compat.c: Likewise.
36176 * math/w_log_compat.c: Likewise.
36177 * math/w_logf_compat.c: Likewise.
36178 * math/w_logl_compat.c: Likewise.
36179 * math/w_pow_compat.c: Likewise.
36180 * math/w_powf_compat.c: Likewise.
36181 * math/w_powl_compat.c: Likewise.
36182 * math/w_remainder_compat.c: Likewise.
36183 * math/w_remainderf_compat.c: Likewise.
36184 * math/w_remainderl_compat.c: Likewise.
36185 * math/w_scalb_compat.c: Likewise.
36186 * math/w_scalbf_compat.c: Likewise.
36187 * math/w_scalbl_compat.c: Likewise.
36188 * math/w_sinh_compat.c: Likewise.
36189 * math/w_sinhf_compat.c: Likewise.
36190 * math/w_sinhl_compat.c: Likewise.
36191 * math/w_sqrt_compat.c: Likewise.
36192 * math/w_sqrtf_compat.c: Likewise.
36193 * math/w_sqrtl_compat.c: Likewise.
36194 * math/w_tgamma_compat.c: Likewise.
36195 * math/w_tgammaf_compat.c: Likewise.
36196 * math/w_tgammal_compat.c: Likewise.
36197 * sysdeps/ieee754/dbl-64/w_exp_compat.c: Likewise.
36198 * sysdeps/ieee754/flt-32/w_expf_compat.c: Likewise.
36199 * sysdeps/ieee754/k_standard.c: Likewise.
36200 * sysdeps/ieee754/k_standardf.c: Likewise.
36201 * sysdeps/ieee754/k_standardl.c: Likewise.
36202 * sysdeps/ieee754/ldbl-128/w_expl_compat.c: Likewise.
36203 * sysdeps/ieee754/ldbl-128ibm/w_expl_compat.c: Likewise.
36204 * sysdeps/ieee754/ldbl-96/w_expl_compat.c: Likewise.
36205 * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt_compat.S: Likewise.
36206 * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrtf_compat.S: Likewise.
36207 * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrt_compat.S: Likewise.
36208 * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrtf_compat.S: Likewise.
36209 * sysdeps/sparc/sparc32/fpu/w_sqrt_compat.S: Likewise.
36210 * sysdeps/sparc/sparc32/fpu/w_sqrtf_compat.S: Likewise.
36211 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt_compat-vis3.S:
36212 Likewise.
36213 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf_compat-vis3.S:
36214 Likewise.
36215 * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrt_compat.S: Likewise.
36216 * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrtf_compat.S: Likewise.
36217 * sysdeps/sparc/sparc64/fpu/w_sqrt_compat.S: Likewise.
36218 * sysdeps/sparc/sparc64/fpu/w_sqrtf_compat.S: Likewise.
36219
36220 2017-08-21 Florian Weimer <fweimer@redhat.com>
36221
36222 [BZ #21864]
36223 Do not compile benchmark helper objects with -DMODULE_NAME=libc.
36224 * benchtests/Makefile (others-extras): Set to $(bench-extra-objs).
36225 Move before inclusion of ../Rules.
36226
36227 2017-08-21 Florian Weimer <fweimer@redhat.com>
36228
36229 [BZ #21972]
36230 * assert/assert.h (assert): Use static_cast (bool) for C++.
36231 Use the ternary operator in the warning branch for GNU C.
36232 * assert/Makefile (tests): Add tst-assert-c++, tst-assert-g++.
36233 (CFLAGS-tst-assert-c++.o): Compile in C++11 mode.
36234 (CFLAGS-tst-assert-g++.o): Compile in GnU C++11 mode.
36235 (LDLIBS-tst-assert-c++, LDLIBS-tst-assert-g++): Link with libstdc++.
36236 * assert/tst-assert-c++.cc, assert/tst-assert-g++.cc: New files.
36237
36238 2017-08-21 H.J. Lu <hongjiu.lu@intel.com>
36239
36240 [BZ #18822]
36241 * sysdeps/unix/sysv/linux/x86_64/init-first.c
36242 (__syscall_clock_gettime): Add attribute_hidden.
36243 * sysdeps/unix/sysv/linux/x86_64/makecontext.c
36244 (__start_context): Likewise.
36245
36246 2017-08-21 H.J. Lu <hongjiu.lu@intel.com>
36247
36248 * include/libc-symbols.h (__hidden_proto_hiddenattr): New for
36249 building libc.a.
36250 (hidden_proto): Likewise.
36251 (hidden_tls_proto): Likewise.
36252 (__hidden_proto): Likewise.
36253
36254 2017-08-21 H.J. Lu <hongjiu.lu@intel.com>
36255
36256 * include/libc-symbols.h (attribute_hidden): Enable hidden
36257 visibility in libc.a compiled with PIE.
36258
36259 2017-08-21 H.J. Lu <hongjiu.lu@intel.com>
36260
36261 [BZ #18822]
36262 * sysdeps/unix/sysv/linux/x86/libc-vdso.h (VDSO_SYMBOL(getcpu)):
36263 Add attribute_hidden.
36264
36265 2017-08-21 H.J. Lu <hongjiu.lu@intel.com>
36266
36267 [BZ #21864]
36268 * Makerules (all-nonlib): Add $(others-extras).
36269 * catgets/Makefile (others-extras): New.
36270 * elf/Makefile (others-extras): Likewise.
36271 * nss/Makefile (others-extras): Likewise.
36272
36273 2017-08-21 H.J. Lu <hongjiu.lu@intel.com>
36274
36275 [BZ #18822]
36276 * csu/libc-start.c (__libc_multiple_libcs): Removed.
36277 * elf/dl-open.c: Include <libc-internal.h>.
36278 (__libc_multiple_libcs): Removed.
36279 * elf/dl-sysdep.c: Include <libc-internal.h> instead of
36280 <hp-timing.h>.
36281 * include/libc-internal.h (__libc_multiple_libcs): New.
36282 * misc/sbrk.c: Include <libc-internal.h>.
36283 (__libc_multiple_libcs): Removed.
36284
36285 2017-08-21 H.J. Lu <hongjiu.lu@intel.com>
36286
36287 [BZ #18822]
36288 * grp/initgroups.c (__nss_group_database): Removed.
36289 (__nss_initgroups_database): Likewise.
36290 * nscd/gai.c (__nss_hosts_database): Likewise.
36291 * nss/XXX-lookup.c (DATABASE_NAME_SYMBOL): Likewise.
36292 * posix/tst-rfc3484-2.c (__nss_hosts_database): Likewise.
36293 * posix/tst-rfc3484-3.c (__nss_hosts_database): Likewise.
36294 * posix/tst-rfc3484.c (__nss_hosts_database): Likewise.
36295 * sysdeps/posix/getaddrinfo.c (__nss_hosts_database): Likewise.
36296 * nss/getXXent.c (INTERNAL (REENTRANT_GETNAME)): Add
36297 attribute_hidden.
36298 * nss/nsswitch.c (__nss_database_custom): Define only if
36299 USE_NSCD is defined.
36300 (__nss_configure_lookup): Use __nss_database_custom only if
36301 USE_NSCD is defined.
36302 * nss/nsswitch.h (__nss_database_custom): Declare only if
36303 USE_NSCD is defined. Add attribute_hidden.
36304 (__nss_setent): Add attribute_hidden.
36305 (__nss_endent): Likewise.
36306 (__nss_getent_r): Likewise.
36307 (__nss_getent): Likewise.
36308 (DEFINE_DATABASE): Declare __nss_##arg##_database.
36309
36310 2017-08-20 H.J. Lu <hongjiu.lu@intel.com>
36311
36312 [BZ #18822]
36313 * sysdeps/unix/sysv/linux/i386/glob64.c (__old_glob64): Add
36314 libc_hidden_proto and libc_hidden_def.
36315
36316 2017-08-20 H.J. Lu <hongjiu.lu@intel.com>
36317
36318 [BZ #18822]
36319 * sysdeps/unix/sysv/linux/i386/olddirent.h (__old_readdir64):
36320 Add libc_hidden_proto.
36321 * sysdeps/unix/sysv/linux/i386/readdir64.c (__old_readdir64):
36322 Add libc_hidden_def.
36323
36324 2017-08-20 H.J. Lu <hongjiu.lu@intel.com>
36325
36326 [BZ #21974]
36327 * gmon/Makefile (routines): Remove bb_init_func and
36328 bb_exit_func.
36329 (elide-routines.os): Removed.
36330 * gmon/bb_exit_func.c: Likewise.
36331 * gmon/bb_init_func.c: Likewise.
36332 * include/sys/gmon.h (__bb): Likewise.
36333 (__bb_init_func): Likewise.
36334 (__bb_exit_func): Likewise.
36335 * sysdeps/alpha/bb_init_func.S: Likewise.
36336
36337 2017-08-20 H.J. Lu <hongjiu.lu@intel.com>
36338
36339 * debug/longjmp_chk.c (____longjmp_chk): Moved to ...
36340 * include/setjmp.h (____longjmp_chk): Here. Add
36341 attribute_hidden.
36342
36343 2017-08-19 H.J. Lu <hongjiu.lu@intel.com>
36344
36345 [BZ #18822]
36346 * sysdeps/x86_64/multiarch/strcspn-c.c (STRCSPN_SSE2): Add
36347 attribute_hidden.
36348 (__strspn_sse2): Likewise.
36349
36350 2017-08-18 Adhemerval Zanella <adhemerval.zanella@linaro.org>
36351
36352 * sysdeps/generic/not-cancel.h (close_not_cancel): Remove macro.
36353 (close_not_cancel_no_status): Likewise.
36354 (__close_nocancel): New macro.
36355 (__close_nocancel_nostatus): Likewise.
36356 * sysdeps/unix/sysv/linux/not-cancel.h (__close_nocancel): Remove
36357 macro.
36358 (close_not_cancel): Likewise.
36359 (close_not_cancel_no_status): Likewise.
36360 (__close_nocancel): New prototype.
36361 (__close_nocancel_nostatus): New function.
36362 * sysdeps/unix/sysv/linux/close.c (__close_nocancel): New function.
36363 * catgets/open_catalog.c (__open_catalog): Replace
36364 close_not_cancel{_no_status) with __close_nocancel{_nostatus}.
36365 * gmon/gmon.c (write_gmon): Likewise.
36366 * iconv/gconv_cache.c (__gconv_load_cache): Likewise.
36367 * intl/loadmsgcat.c (close): Likewise.
36368 * io/ftw.c (open_dir_stream): Likewise.
36369 (ftw_startup): Likewise.
36370 * libio/fileops.c (_IO_file_open): Likewise.
36371 (_IO_file_close_mmap): Likewise.
36372 (_IO_file_close): Likewise.
36373 * libio/iopopen.c (_IO_dup2): Likewise.
36374 * locale/loadarchive.c (_nl_load_locale_from_archive): Likewise.
36375 * locale/loadlocale.c (_nl_load_locale): Likewise.
36376 * login/utmp_file.c (pututline_file): Likewise.
36377 (endutent_file): Likewise.
36378 * misc/daemon.c (daemon): Likewise.
36379 * nscd/nscd_getai.c (__nscd_getai): Likewise.
36380 * nscd/nscd_getgr_r.c (nscd_getgr_r): Likewise.
36381 * nscd/nscd_gethst_r.c (nscd_gethst_r): Likewise.
36382 * nscd/nscd_getpw_r.c (nscd_getpw_r): Likewise.
36383 * nscd/nscd_getserv_r.c (nscd_getserv_r): Likewise.
36384 * nscd/nscd_helper.c (open_socket): Likewise.
36385 (__nscd_open_socket): Likewise.
36386 * nscd/nscd_initgroups.c (__nscd_getgrouplist): Likewise.
36387 * nscd/nscd_netgroup.c (__nscd_setnetgrent): Likewise.
36388 (__nscd_innetgr): Likewise.
36389 * nss/nss_db/db-open.c (internal_setent): Likewise.
36390 * resolv/res-close.c (__res_iclose): Likewise.
36391 * sunrpc/pm_getmaps.c (pmap_getmaps): Likewise.
36392 * sysdeps/posix/closedir.c (__closedir): Likewise.
36393 * sysdeps/posix/getaddrinfo.c (getaddrinfo): Likewise.
36394 * sysdeps/posix/getcwd.c (__getcwd): Likewise.
36395 * sysdeps/posix/opendir.c (tryopen_o_directory): Likewise.
36396 (opendir_tail): Likewise.
36397 * sysdeps/posix/spawni.c (__spawni_child): Likewise.
36398 * sysdeps/unix/sysv/linux/check_native.c (__check_native): Likewise.
36399 * sysdeps/unix/sysv/linux/check_pf.c (__check_pf): Likewise.
36400 * sysdeps/unix/sysv/linux/fips-private.h (fips_enabled_p): Likewise.
36401 * sysdeps/unix/sysv/linux/gethostid.c (sethostid): Likewise.
36402 (gethostid): Likewise.
36403 * sysdeps/unix/sysv/linux/getloadavg.c (getloadavg): Likewise.
36404 * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
36405 Likewise.
36406 * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Likewise.
36407 * sysdeps/unix/sysv/linux/grantpt.c (close_all_fds): Likewise.
36408 * sysdeps/unix/sysv/linux/i386/smp.h (is_smp_system): Likewise.
36409 * sysdeps/unix/sysv/linux/ia64/has_cpuclock.c (has_cpuclock):
36410 Likewise.
36411 * sysdeps/unix/sysv/linux/if_index.c (__if_nametoindex): Likewise.
36412 * sysdeps/unix/sysv/linux/libc_fatal.c (backtrace_and_maps): Likewise.
36413 * sysdeps/unix/sysv/linux/malloc-sysdep.h (check_may_shrink_heap):
36414 Likewise.
36415 * sysdeps/unix/sysv/linux/mq_notify.c (init_mq_netlink): Likewise.
36416 * sysdeps/unix/sysv/linux/pthread_getname.c (pthread_getname_np):
36417 Likewise.
36418 * sysdeps/unix/sysv/linux/pthread_setname.c (pthread_setname_np):
36419 Likewise.
36420 * sysdeps/unix/sysv/linux/spawni.c (__spawni_child): Likewise.
36421 * sysdeps/unix/sysv/linux/sysconf.c (__sysconf): Likewise.
36422 * sysdeps/unix/sysv/linux/Versions (libc) [GLIBC_PRIVATE]: Add
36423 __close_nocancel.
36424
36425 * sysdeps/generic/not-cancel.h (openat_not_cancel): Remove macro.
36426 (openat_not_cancel_3): Likewise.
36427 (openat64_not_cancel_3): Likewise).
36428 (openat_not_cancel_3): Likewise).
36429 * sysdeps/unix/sysv/linux/not-cancel.h (openat_not_cancel): Remove
36430 macro.
36431 (openat_not_cancel_3): Likewise.
36432 (openat64_not_cancel): Likewise.
36433 (openat64_not_cancel_3): Likewise.
36434 * sysdeps/unix/sysv/linux/openat.c (__openat_nocancel): New function.
36435 * sysdeps/unix/sysv/linux/openat64.c (__openat64_nocancel): Likewise.
36436 * io/ftw.c (open_dir_stream): Replace openat{64}_not_cancel{_3} with
36437 __open{64}_nocancel.
36438 * sysdeps/mach/hurd/opendir.c (__opendirat): Likewise.
36439 * sysdeps/posix/getcwd.c (__getcwd): Likewise.
36440 * sysdeps/posix/opendir.c (__opendirat): Likewise.
36441
36442 2017-08-18 H.J. Lu <hongjiu.lu@intel.com>
36443
36444 [BZ #18822]
36445 * include/argz.h (__argz_create_sep): New function prototype.
36446 (__argz_append): Likewise.
36447 (__argz_add): Likewise.
36448 (__argz_add_sep): Likewise.
36449 (__argz_delete): Likewise.
36450 (__argz_insert): Likewise.
36451 (__argz_replace): Likewise.
36452 * string/argz.h (__argz_create_sep): Removed.
36453 (__argz_append): Likewise.
36454 (__argz_add): Likewise.
36455 (__argz_add_sep): Likewise.
36456 (__argz_delete): Likewise.
36457 (__argz_insert): Likewise.
36458 (__argz_replace): Likewise.
36459
36460 2017-08-18 H.J. Lu <hongjiu.lu@intel.com>
36461
36462 * elf/elf.h (NT_GNU_PROPERTY_TYPE_0): New.
36463 (NOTE_GNU_PROPERTY_SECTION_NAME): Likewise.
36464 (GNU_PROPERTY_STACK_SIZE): Likewie.
36465 (GNU_PROPERTY_NO_COPY_ON_PROTECTED): Likewie.
36466 (GNU_PROPERTY_LOPROC): Likewise.
36467 (GNU_PROPERTY_HIPROC): Likewise.
36468 (GNU_PROPERTY_LOUSER): Likewise.
36469 (GNU_PROPERTY_HIUSER): Likewise.
36470 (GNU_PROPERTY_X86_ISA_1_USED): Likwise.
36471 (GNU_PROPERTY_X86_ISA_1_NEEDED): Likwise.
36472 (GNU_PROPERTY_X86_FEATURE_1_AND): Likwise.
36473 (GNU_PROPERTY_X86_ISA_1_486): Likwise.
36474 (GNU_PROPERTY_X86_ISA_1_586): Likwise.
36475 (GNU_PROPERTY_X86_ISA_1_686): Likwise.
36476 (GNU_PROPERTY_X86_ISA_1_SSE): Likwise.
36477 (GNU_PROPERTY_X86_ISA_1_SSE2): Likwise.
36478 (GNU_PROPERTY_X86_ISA_1_SSE3): Likwise.
36479 (GNU_PROPERTY_X86_ISA_1_SSSE3): Likwise.
36480 (GNU_PROPERTY_X86_ISA_1_SSE4_1): Likwise.
36481 (GNU_PROPERTY_X86_ISA_1_SSE4_2): Likwise.
36482 (GNU_PROPERTY_X86_ISA_1_AVX): Likwise.
36483 (GNU_PROPERTY_X86_ISA_1_AVX2): Likwise.
36484 (GNU_PROPERTY_X86_ISA_1_AVX512F): Likwise.
36485 (GNU_PROPERTY_X86_ISA_1_AVX512CD): Likwise.
36486 (GNU_PROPERTY_X86_ISA_1_AVX512ER): Likwise.
36487 (GNU_PROPERTY_X86_ISA_1_AVX512PF): Likwise.
36488 (GNU_PROPERTY_X86_ISA_1_AVX512VL): Likwise.
36489 (GNU_PROPERTY_X86_ISA_1_AVX512DQ): Likwise.
36490 (GNU_PROPERTY_X86_ISA_1_AVX512BW): Likwise.
36491 (GNU_PROPERTY_X86_FEATURE_1_IBT): Likwise.
36492 (GNU_PROPERTY_X86_FEATURE_1_SHSTK): Likwise.
36493
36494 2017-08-18 Gabriel F. T. Gomes <gftg@linux.vnet.ibm.com>
36495
36496 * misc/sys/cdefs.h (__HAVE_GENERIC_SELECTION): Define to 0, if
36497 in C++ mode.
36498
36499 2017-08-18 Gabriel F. T. Gomes <gftg@linux.vnet.ibm.com>
36500
36501 [BZ #21930]
36502 * math/math.h (isinf): Check if in C or C++ mode before using
36503 __builtin_types_compatible_p, since this is a C mode feature.
36504
36505 2017-08-18 Adhemerval Zanella <adhemerval.zanella@linaro.org>
36506
36507 * sysdeps/generic/not-cancel.h (write_not_cancel): Remove macro.
36508 (__write_nocancel): New macro.
36509 * sysdeps/unix/sysv/linux/not-cancel.h (__write_nocancel):
36510 Rewrite as a function prototype.
36511 (write_not_cancel): Remove macro.
36512 * sysdeps/unix/sysv/linux/write.c (__write_nocancel): New function.
36513 * gmon/gmon.c (ERR): Replace write_not_cancel with __write_nocancel.
36514 (write_gmon): Likewise.
36515 * libio/fileops.c (_IO_new_file_write): Likewise.
36516 * login/utmp_file.c (pututline_file): Likewise.
36517 (updwtmp_file): Likewise.
36518 * stdio-common/psiginfo.c (psiginfo): Likewise.
36519 * sysdeps/posix/spawni.c (__spawni_child): Likewise.
36520 * sysdeps/unix/sysv/linux/gethostid.c (sethostid): Likewise.
36521 * sysdeps/unix/sysv/linux/libc_fatal.c (backtrace_and_maps):
36522 Likewise.
36523 * sysdeps/unix/sysv/linux/pthread_setname.c (pthread_setname_np):
36524 Likewise.
36525
36526 * sysdeps/generic/not-cancel.h (read_not_cancel): Remove macro.
36527 (__read_nocancel): New macro.
36528 * sysdeps/unix/sysv/linux/Versions (libc) [GLIBC_PRIVATE]: Add
36529 __read_nocancel.
36530 * sysdeps/unix/sysv/linux/not-cancel.h (__read_nocancel): Remove
36531 macro.
36532 (__read_nocancel): New prototype.
36533 * sysdeps/unix/sysv/linux/read.c (__read_nocancel): New function.
36534 * catgets/open_catalog.c (__open_catalog): Replace read_not_cancel
36535 with __read_nocancel.
36536 * intl/loadmsgcat.c (read): Likewise.
36537 * libio/fileops.c (_IO_file_read): Likewise.
36538 * locale/loadlocale.c (_nl_load_locale): Likewise.
36539 * login/utmp_file.c (getutent_r_file): Likewise.
36540 (internal_getut_r): Likewise.
36541 (getutline_r_file): Likewise.
36542 * sysdeps/unix/sysv/linux/fips-private.h (fips_enable_p): Likewise.
36543 * sysdeps/unix/sysv/linux/gethostid.c (gethostid): Likewise.
36544 * sysdeps/unix/sysv/linux/getloadavg.c (getloadavg): Likewise.
36545 * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
36546 Likewise.
36547 * sysdeps/unix/sysv/linux/getsysstats.c (next_line): Likewise.
36548 * sysdeps/unix/sysv/linux/i386/smp.h (is_smp_system): Likewise.
36549 * sysdeps/unix/sysv/linux/ia64/has_cpuclock.c (has_cpuclock):
36550 Likewise.
36551 * sysdeps/unix/sysv/linux/libc_fatal.c (backtrace_and_maps):
36552 Likewise.
36553 * sysdeps/unix/sysv/linux/malloc-sysdep.h (check_may_shrink_heap):
36554 Likewise.
36555 * sysdeps/unix/sysv/linux/pthread_getname.c (pthread_getname_np):
36556 Likewise.
36557 * sysdeps/unix/sysv/linux/sysconf.c (__sysconf): Likewise.
36558
36559 2017-08-18 H.J. Lu <hongjiu.lu@intel.com>
36560
36561 [BZ #21966]
36562 * sysdeps/x86_64/fpu/multiarch/ifunc-mathvec-avx2.h
36563 (IFUNC_SELECTOR): Don't use the AVX2 version if FMA isn't
36564 usable.
36565
36566 2017-08-17 DJ Delorie <dj@redhat.com>
36567
36568 * bug17079.c: Update to new test harness.
36569 * test-digits-dots.c: Likewise.
36570 * test-netdb.c: Likewise.
36571 * tst-field.c: Likewise.
36572 * tst-nss-getpwent.c: Likewise.
36573 * tst-nss-static.c: Likewise.
36574 * tst-nss-test1.c: Likewise.
36575 * tst-nss-test2.c: Likewise.
36576 * tst-nss-test3.c: Likewise.
36577 * tst-nss-test4.c: Likewise.
36578 * tst-nss-test5.c: Likewise.
36579
36580 2017-08-17 Adhemerval Zanella <adhemerval.zanella@linaro.org>
36581
36582 * sysdeps/generic/not-cancel.h (open_not_cancel): Remove macro.
36583 (open_not_cancel_2): Likewise.
36584 (open_nocancel): New macro.
36585 (open64_nocancel): Likewise.
36586 * sysdeps/unix/sysv/linux/not-cancel.h (open_not_cancel): Remove macro.
36587 (open_not_cancel_2): Likewise.
36588 (__open_nocancel): New prototype.
36589 (__open64_nocancel): Likewise.
36590 * sysdeps/unix/sysv/linux/Versions (libc) [GLIBC_PRIVATE]: Add
36591 __open_nocancel.
36592 * sysdeps/unix/sysv/linux/open.c (__open_nocancel): New function.
36593 * sysdeps/unix/sysv/linux/open64.c (__open64_nocancel): Likewise.
36594 * catgets/open_catalog.c (__open_catalog): Replace open_not_cancel{_2}
36595 with __open_nocancel.
36596 * csu/check_fds.c (check_one_fd): Likewise.
36597 * gmon/gmon.c (write_gmon): Likewise.
36598 * iconv/gconv_cache.c (__gconv_load_cached): Likewise.
36599 * intl/loadmsgcat.c (open): Likewise.
36600 * libio/fileops.c (_IO_file_open): Likewise.
36601 * locale/loadarchive.c (_nl_load_locale_from_archive): Likewise.
36602 * locale/loadlocale.c (_nl_load_locale): Likewise.
36603 * login/utmp_file.c (setutent_file): Likewise.
36604 * misc/daemon.c (daemon): Likewise.
36605 * nss/nss_db/db-open.c (internal_setent): Likewise.
36606 * sysdeps/mach/hurd/opendir.c (__opendirat): Likewise.
36607 * sysdeps/posix/libc_fatal.c (__libc_message): Likewise.
36608 * sysdeps/posix/opendir.c (tryopen_o_directory): Likewise.
36609 (__opendir): Likewise.
36610 * sysdeps/posix/spawni.c (__spawni_child): Likewise.
36611 * sysdeps/unix/sysv/linux/fips-private.h (fips_enable_p): Likewise.
36612 * sysdeps/unix/sysv/linux/gethostid.c (sethostid): Likewise.
36613 (gethostid): Likewise.
36614 * sysdeps/unix/sysv/linux/getloadavg.c (getloadavg): Likewise.
36615 * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
36616 Likewise.
36617 * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Likewise.
36618 * sysdeps/unix/sysv/linux/grantpt.c (__close_all_fds): Likewise.
36619 * sysdeps/unix/sysv/linux/i386/smp.h (is_smp_system): Likewise.
36620 * sysdeps/unix/sysv/linux/ia64/has_cpuclock.c (has_cpuclock):
36621 Likewise.
36622 * sysdeps/unix/sysv/linux/libc_fatal.c (backtrace_and_maps):
36623 Likewise.
36624 * sysdeps/unix/sysv/linux/malloc-sysdep.h (check_may_shrink_heap):
36625 Likewise.
36626 * sysdeps/unix/sysv/linux/powerpc/get_clockfreq.c (__get_clockfreq):
36627 Likewise.
36628 * sysdeps/unix/sysv/linux/pthread_getname.c (pthread_getname_np):
36629 Likewise.
36630 * sysdeps/unix/sysv/linux/pthread_setname.c (pthread_setname_np):
36631 Likewise.
36632 * sysdeps/unix/sysv/linux/spawni.c (__spawni_child): Likewise.
36633 * sysdeps/unix/sysv/linux/sysconf.c (__sysconf): Likewise.
36634
36635 2017-08-17 Wilco Dijkstra <wdijkstr@arm.com>
36636
36637 * benchtests/bench-skeleton.c (main): Add support for
36638 latency benchmarking.
36639 * benchtests/scripts/bench.py: Add support for latency benchmarking.
36640
36641 2017-08-17 H.J. Lu <hongjiu.lu@intel.com>
36642
36643 * Makeconfig (+link-pie-before-libc): Add CRT-* hook to override
36644 the startup object.
36645
36646 2017-08-17 Florian Weimer <fweimer@redhat.com>
36647
36648 * include/sys/socket.h (__opensock): Remove internal_function.
36649 * socket/opensock.c (__opensock): Likewise.
36650 * sysdeps/unix/sysv/linux/opensock.c (__opensock): Likewise.
36651
36652 2017-08-16 Joseph Myers <joseph@codesourcery.com>
36653
36654 [BZ #21944]
36655 * signal/bits/types/__sigval_t.h: New file.
36656 * signal/Makefile (headers): Add bits/types/__sigval_t.h.
36657 * signal/bits/types/sigval_t.h: Include <bits/types/__sigval_t.h>
36658 and define sigval_t using __sigval_t.
36659 * include/bits/types/__sigval_t.h: New file.
36660 * bits/types/sigevent_t.h: Include <bits/types/__sigval_t.h>
36661 instead of <bits/types/__sigval_t.h>.
36662 (struct sigevent): Use __sigval_t instead of sigval_t.
36663 * bits/types/siginfo_t.h: Include <bits/types/__sigval_t.h>
36664 instead of <bits/types/__sigval_t.h>.
36665 (siginfo_t): Use __sigval_t instead of sigval_t.
36666 * sysdeps/unix/sysv/linux/bits/types/sigevent_t.h: Include
36667 <bits/types/__sigval_t.h> instead of <bits/types/__sigval_t.h>.
36668 (struct sigevent): Use __sigval_t instead of sigval_t.
36669 * sysdeps/unix/sysv/linux/bits/types/siginfo_t.h: Include
36670 <bits/types/__sigval_t.h> instead of <bits/types/__sigval_t.h>.
36671 (siginfo_t): Use __sigval_t instead of sigval_t.
36672 * signal/signal.h [__USE_MISC]: Include <bits/types/sigval_t.h>.
36673
36674 2017-08-16 H.J. Lu <hongjiu.lu@intel.com>
36675
36676 * NEWS: Remove "[Add new features here]" for 2.27.
36677
36678 2017-08-16 Joseph Myers <joseph@codesourcery.com>
36679
36680 * sysdeps/unix/sysv/linux/sh/localplt.data: Allow abort in
36681 libc.so.
36682
36683 2017-08-16 H.J. Lu <hongjiu.lu@intel.com>
36684
36685 * NEWS: Mention x86-64 FMA optimization.
36686
36687 2017-08-16 H.J. Lu <hongjiu.lu@intel.com>
36688
36689 [BZ #21912]
36690 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
36691 Add e_expf-fma.
36692 * sysdeps/x86_64/fpu/multiarch/e_expf-fma.S: New file.
36693 * sysdeps/x86_64/fpu/multiarch/e_expf.c: Likewise.
36694 * sysdeps/x86_64/fpu/multiarch/ifunc-fma.h: Likewise.
36695
36696 2017-08-16 Andreas Schwab <schwab@suse.de>
36697
36698 [BZ #16750]
36699 CVE-2009-5064
36700 * elf/ldd.bash.in: Never run file directly.
36701
36702 2017-08-15 H.J. Lu <hongjiu.lu@intel.com>
36703
36704 [BZ #21955]
36705 * sysdeps/x86_64/fpu/e_expf.S (L(SP_RANGE)): Aligned to 8 bytes.
36706 (L(SP_INF_0)): Likewise.
36707
36708 2017-08-15 Florian Weimer <fweimer@redhat.com>
36709
36710 * gmon/Makefile (tests-special): Add tst-gmon-prof only if
36711 run-built-tests.
36712
36713 2017-08-15 Florian Weimer <fweimer@redhat.com>
36714
36715 Remove BROKEN_THREAD_SIGNALS support for LinuxThreads.
36716 * sysdeps/pthread/aio_misc.c (__aio_enqueue_request): Remove
36717 BROKEN_THREAD_SIGNALS code.
36718 * sysdeps/ppthread/aio_misc.h (struct waitlist, struct
36719 request_list): Remove caller_pid member used for
36720 BROKEN_THREAD_SIGNALS.
36721 [BROKEN_THREAD_SIGNALS] (__aio_notify_only): Remove declaration.
36722 * sysdeps/pthread/aio_notify.c (__aio_notify_only, __aio_notify):
36723 Remove BROKEN_THREAD_SIGNALS support.
36724 * sysdeps/pthread/aio_suspend.c (aio_suspend): Likewise.
36725 * sysdeps/pthread/lio_listio.c (lio_listio_internal): Likewise.
36726
36727 2017-08-15 Florian Weimer <fweimer@redhat.com>
36728
36729 * gmon/Makefile (tests): Add tst-gmon.
36730 (CFLAGS-tst-gmon.c, LDFLAGS-tst-gmon, CRT-tst-gmon, tst-gmon-ENV):
36731 Set.
36732 (tests-special): Add tst-gmon-prof.out.
36733 (tst-gmon.out): Depend on clean-tst-gmon-data.
36734 (clean-tst-gmon-data, tst-gmon-gprof.out): New targets.
36735 * gmon/tst-gmon.c, gmon/tst-gmon-gprof.sh: New files.
36736 * Makeconfig (+link-before-libc): Add CRT-* hook to override the
36737 startup object.
36738 * aclocal.m4 (GPROF): Set and substitute.
36739 * config.amke.in (GPROF): Set.
36740 * configure: Regenerate.
36741
36742 2017-08-15 Gustavo Romero <gromero@linux.vnet.ibm.com>
36743
36744 * elf/elf.h A (NT_PPC_TAR): New macro.
36745 (NT_PPC_PPR): Likewise.
36746 (NT_PPC_DSCR): Likewise.
36747 (NT_PPC_EBB): Likewise.
36748 (NT_PPC_PMU): Likewise.
36749 (NT_PPC_TM_CGPR): Likewise.
36750 (NT_PPC_TM_CFPR): Likewise.
36751 (NT_PPC_TM_CVMX): Likewise.
36752 (NT_PPC_TM_CVSX): Likewise.
36753 (NT_PPC_TM_SPR): Likewise.
36754 (NT_PPC_TM_CTAR): Likewise.
36755 (NT_PPC_TM_CPPR): Likewise.
36756 (NT_PPC_TM_CDSCR): Likewise.
36757
36758 2017-08-15 Florian Weimer <fweimer@redhat.com>
36759
36760 * sysdeps/i386/machine-gmon.h (mcount_internal): Declare with
36761 regparm (2) instead of internal_function.
36762 (_MCOUNT_DECL): Adjust.
36763
36764 2017-08-15 Stefan Liebler <stli@linux.vnet.ibm.com>
36765
36766 * sysdeps/s390/dl-procinfo.c (_dl_s390_cap_flags): Add z14.
36767 * sysdeps/s390/dl-procinfo.h (_DL_PLATFORMS_COUNT): Increased.
36768
36769 2017-08-14 Joseph Myers <joseph@codesourcery.com>
36770
36771 * conform/data/sys/wait.h-data (si_value): Do not expect for
36772 XPG42.
36773
36774 2017-08-14 Florian Weimer <fweimer@redhat.com>
36775
36776 [BZ #21962]
36777 NSS: Create stubs for accidentally exported lookup functions.
36778 * grp/initgroups.c (__nss_group_lookup, __nss_lookup_function):
36779 Remove declaration.
36780 * inet/ether_hton.c (__nss_ethers_lookup): Likewise.
36781 (ether_hostton): Call __nss_ethers_lookup2 instead.
36782 * inet/ether_ntoh.c (__nss_ethers_lookup): Remove declaration.
36783 (ether_ntohost): Call __nss_ethers_lookup2 instead.
36784 * inet/getnetgrent_r.c (__nss_netgroup_lookup): Remove declaration.
36785 (setup): Call __nss_netgroup_lookup2 instead.
36786 * nss/Makefile (routines): Add compat-lookup.
36787 * nss/Versions (GLIBC_2.27): Add symbol version.
36788 * nss/XXX-lookup (DB_LOOKUP_FCT): Remove declaration. Now provided by <nsswitch.h>.
36789 (DB_COMPAT_FCT): Remove.
36790 * nss/compat-lookup.c: New file.
36791 * nss/nsswitch.h: Generate __nss_*_lookup2 function prototypes
36792 from databases.def.
36793 * nss/service-lookup.c (NO_COMPAT): Remove definition.
36794 * sunrpc/netname.c (__nss_publickey_lookup): Remove declaration.
36795 (netname2user): Call __nss_publickey_lookup2 instead.
36796 * sunrpc/publickey.c (__nss_publickey_lookup): Remove declaration.
36797 (getpublickey, getsecretkey): Call __nss_publickey_lookup2
36798 instead.
36799
36800 2017-08-14 Adhemerval Zanella <adhemerval.zanella@linaro.org>
36801 Sergei Trofimovich <slyfox@inbox.ru>
36802
36803 [BZ #21908]
36804 * sysdeps/unix/sysv/linux/m68k/mmap_internal.h (MMAP2_PAGE_SHIFT):
36805 Rename to MMAP2_PAGE_UNIT.
36806 * sysdeps/unix/sysv/linux/mmap.c: Include mmap_internal iff
36807 __OFF_T_MATCHES_OFF64_T is not defined.
36808 * sysdeps/unix/sysv/linux/mmap_internal.h (page_unit): Declare as
36809 uint64_t.
36810 (MMAP2_PAGE_UNIT) [MMAP2_PAGE_UNIT == -1]: Redefine to page_unit.
36811 (page_unit) [MMAP2_PAGE_UNIT != -1]: Remove definition.
36812
36813 2017-08-14 Florian Weimer <fweimer@redhat.com>
36814
36815 i386: Do not set internal_function.
36816 * config.h.in (USE_REGPARMS, internal_function): Remove.
36817 * sysdeps/i386/configure.ac (USE_REGPARMS): Likewise.
36818 * sysdeps/i386/configure (USE_REGPARMS): Likewise.
36819
36820 2017-08-14 Florian Weimer <fweimer@redhat.com>
36821
36822 * elf/dl-init.c (_dl_init): Remove internal_function.
36823 * sysdeps/generic/ldsodefs.h (_dl_init): Likewise.
36824 * sysdeps/i386/dl-machine.h (RTLD_START): Adjust call to _dl_init.
36825
36826 2017-08-14 Florian Weimer <fweimer@redhat.com>
36827
36828 * elf/rtld.c (_dl_start): Remove internal_function.
36829 * sysdeps/i386/dl-machine.h (RTLD_START): Adjust call to
36830 _dl_start.
36831
36832 2017-08-14 Florian Weimer <fweimer@redhat.com>
36833
36834 * elf/dl-fini.c (_dl_fini): Remove internal_function
36835 * sysdeps/generic/ldsodefs.h (_dl_fini): Likewise.
36836
36837 2017-08-14 H.J. Lu <hongjiu.lu@intel.com>
36838
36839 * sysdeps/x86/cpu-features.h (bit_cpu_IBT): New.
36840 (bit_cpu_SHSTK): Likewise.
36841 (index_cpu_IBT): Likewise.
36842 (index_cpu_SHSTK): Likewise.
36843 (reg_IBT): Likewise.
36844 (reg_SHSTK): Likewise.
36845 * sysdeps/x86/cpu-tunables.c (TUNABLE_CALLBACK (set_hwcaps)):
36846 Handle index_cpu_IBT and index_cpu_SHSTK.
36847
36848 2017-08-14 Mike FABIAN <mfabian@redhat.com>
36849
36850 [BZ #19982]
36851 * po/fr.po: Fix spelling mistake.
36852
36853 2017-08-13 Florian Weimer <fweimer@redhat.com>
36854
36855 * elf/dl-addr.c (_dl_addr): Remove internal_function.
36856 * elf/dl-error-skeleton.c (_dl_signal_error, _dl_signal_cerror)
36857 (_dl_catch_error, _dl_receive_error): Likewise.
36858 * elf/dl-open.c (_dl_find_dso_for_object): Likewise.
36859 * elf/dl-tls.c (_dl_allocate_tls_init, _dl_allocate_tls)
36860 (_dl_deallocate_tls): Likewise.
36861 * include/dlfcn.h (_dl_addr): Likewise.
36862 * sysdeps/generic/ldsodefs.h (_dl_signal_error, _dl_signal_cerror)
36863 (_dl_catch_error, _dl_receive_error, _dl_find_dso_for_object)
36864 (_dl_allocate_tls_init, _dl_allocate_tls, _dl_deallocate_tls):
36865 Likewise.
36866
36867 2017-08-13 Florian Weimer <fweimer@redhat.com>
36868
36869 * include/stdlib.h: (__strtof_nan, __strtod_nan, __strtold_nan)
36870 (__wcstof_nan, __wcstod_nan, __wcstold_nan): Remove
36871 internal_function.
36872 * stdlib/sttod_nan_main.c (STRTOD_NAN): Likewise.
36873
36874 2017-08-13 Florian Weimer <fweimer@redhat.com>
36875
36876 * elf/dl-support.c (_dl_make_stack_executable_hook): Remove
36877 internal_function.
36878 * nptl/allocatestack.c (__make_stacks_executable): Likewise.
36879 * nptl/pthreadP.h (__make_stacks_executable): Likewise.
36880 * sysdeps/generic/ldsodefs.h (_rtld_global): Remove
36881 internal_function from _dl_make_stack_executable_hook member.
36882 (_dl_make_stack_executable): Remove internal_function.
36883 * sysdeps/mach/hurd/dl-execstack.c (_dl_make_stack_executable):
36884 Likewise.
36885 * sysdeps/unix/sysv/linux/dl-execstack.c
36886 (_dl_make_stack_executable): Likewise.
36887
36888 2017-08-13 Florian Weimer <fweimer@redhat.com>
36889
36890 * sysdeps/unix/sysv/linux/netlinkaccess.h
36891 (__netlink_assert_response): Remove internal_function.
36892 * sysdeps/unix/sysv/linux/netlink_assert_response.c
36893 (__netlink_assert_response): Likewise.
36894
36895 2017-08-13 Florian Weimer <fweimer@redhat.com>
36896
36897 * include/rpc/pmap_clnt.h (__libc_rpc_getport): Remove
36898 internal_function.
36899 * sunrpoc/pm_getport.c (__libc_rpc_getport): Likewise.
36900
36901 2017-08-13 Florian Weimer <fweimer@redhat.com>
36902
36903 * grp/grp-merge.h (__copy_grp, __merge_grp): Remove
36904 internal_function.
36905 * grp/grp-merge.c (__copy_grp, __merge_grp): Likewise.
36906 * inet/netgroup.h (__internal_setnetgrent)
36907 (__internal_endnetgrent,__internal_getnetgrent_r): Likewise.
36908 * inet/getnetgrent_r.c (__internal_setnetgrent)
36909 (__internal_endnetgrent,__internal_getnetgrent_r): Likewise.
36910 * nss/XXX-lookup.c (DB_LOOKUP_FCT, DB_COMPAT_FCT): Likewise.
36911 * nss/getXXbyYY_r.c (DB_LOOKUP_FCT): Likewise.
36912 * nss/getXXent_r.c (DB_LOOKUP_FCT): Likewise.
36913 * nss/nsswitch.h (db_lookup_function): Likewise.
36914
36915 2017-08-13 Florian Weimer <fweimer@redhat.com>
36916
36917 * debug/fortify_fail.c (__fortify_fail, __fortify_fail_abort):
36918 Remove internal_function.
36919 * include/stdio.h (__fortify_fail, __fortify_fail_abort): Likewise.
36920 * sysdeps/mach/hurd/i386/____longjmp_chk.S (CALL_FAIL): Pass
36921 message argument on the stack.
36922 * sysdeps/unix/sysv/linux/i386/____longjmp_chk.S (CALL_FAIL):
36923 Likeweise.
36924
36925 2017-08-12 Mike FABIAN <mfabian@redhat.com>
36926
36927 Adapt test case data to the changes in the thousands
36928 separators.
36929
36930 [BZ #20756]
36931 * localedata/tst-langinfo.sh: Adapt test case data.
36932 * stdlib/tst-strfmon_l.c: Likewise.
36933 * stdlib/tst-strtod4.c: Likewise.
36934 * stdlib/tst-strtod5i.c: Likewise.
36935
36936 2017-08-11 Florian Weimer <fweimer@redhat.com>
36937
36938 [BZ #21242]
36939 * assert/assert.h [__GNUC__ && !__STRICT_ANSI__] (assert):
36940 Suppress pedantic warning resulting from statement expression.
36941 (__ASSERT_FUNCTION): Add missing __extension__.
36942
36943 2017-08-11 Siddhesh Poyarekar <siddhesh@sourceware.org>
36944
36945 * benchtests/bench-memmove-large.c: Print output in JSON
36946 format.
36947 * benchtests/bench-memmove.c: Likewise.
36948
36949 * benchtests/bench-memccpy.c (do_one_test): Remove checks.
36950 * benchtests/bench-memchr.c (do_one_test): Likewise.
36951 * benchtests/bench-memcpy-large.c (do_one_test): Likewise.
36952 * benchtests/bench-memcpy.c (do_one_test): Likewise.
36953 * benchtests/bench-memmove-large.c (do_one_test): Likewise.
36954 * benchtests/bench-memmove.c (do_one_test): Likewise.
36955 * benchtests/bench-memset-large.c (do_one_test): Likewise.
36956 * benchtests/bench-memset.c (do_one_test): Likewise.
36957 * benchtests/bench-string.h (test_init): Remove memsets.
36958
36959 2017-08-10 Rical Jasan <ricaljasan@pacific.net>
36960
36961 * manual/lang.texi
36962 (Computing the Width of an Integer Data Type): Rename section to
36963 "Width of an Integer Type". Remove inaccurate statement regarding
36964 lack of C language facilities for determining width of integer
36965 types, and reorder content to improve flow and context of
36966 discussion.
36967
36968 2017-08-10 Rical Jasan <ricaljasan@pacific.net>
36969
36970 * lang.texi (va_copy): Change standard from ISO to C99.
36971 (__va_copy): Add standard and header annotation.
36972 Update description for clarity of origins and current use.
36973
36974 2017-08-10 Gabriel F. T. Gomes <gftg@linux.vnet.ibm.com>
36975
36976 [BZ #21941]
36977 * sysdeps/powerpc/fpu/math_private.h (__ieee754_sqrtf128): Since
36978 xssqrtqp requires operands to be in Vector Registers
36979 (Altivec/VMX), replace the register constraint 'wq' with 'v'.
36980 * sysdeps/powerpc/powerpc64le/power9/fpu/e_sqrtf128.c
36981 (__ieee754_sqrtf128): Likewise.
36982
36983 2017-08-10 Wilco Dijkstra <wdijkstr@arm.com>
36984
36985 * sysdeps/aarch64/memcmp.S (memcmp):
36986 Rewrite of optimized memcmp.
36987
36988 2017-08-10 Florian Weimer <fweimer@redhat.com>
36989
36990 Introduce ld.so exceptions.
36991 * sysdeps/generic/ldsodefs.h (struct dl_exception): Define.
36992 (_dl_exception_create, _dl_exception_create_format)
36993 (_dl_exception_free, _dl_signal_exception, _dl_signal_cexception)
36994 (_dl_catch_exception): Declare.
36995 (_dl_catch_error): Update comment.
36996 * elf/dl-error-skeleton.c (struct catch): Replace objname,
36997 errstring, malloced members with exception member.
36998 (_dl_out_of_memory): Remove.
36999 (fatal_error): New function, extracted from _dl_signal_error.
37000 (_dl_signal_exception, _dl_signal_cexception): New functions.
37001 (_dl_signal_error): Call _dl_exception_create to allocate an
37002 exception object.
37003 (_dl_catch_exception): New function, based on _dl_catch_error.
37004 (_dl_catch_error): Implement using _dl_catch_exception.
37005 * elf/dl-exception.c: New file.
37006 * elf/Makefile (dl-routines): Add dl-exception.
37007 (elide-routines.os): Likewise.
37008 * elf/Version (ld/GLIBC_PRIVATE): Add _dl_exception_create,
37009 _dl_exception_create_format, _dl_exception_free.
37010 * elf/dl-deps.c (_dl_map_object_deps): Use _dl_catch_exception and
37011 _dl_signal_exception.
37012 * elf/dl-lookup.c (make_string): Remove.
37013 (_dl_lookup_symbol_x): Use _dl_exception_create_format,
37014 _dl_signal_cexception, _dl_exception_free.
37015 * elf/dl-open.c (_dl_open): Use _dl_catch_exception and
37016 _dl_signal_exception.
37017 * elf/dl-sym.c (do_sym): Likewise.
37018 * elf/dl-version.c (make_string): Remove.
37019 (match_symbol): Use _dl_exception_create_format,
37020 _dl_signal_cexception, _dl_exception_free.
37021 (_dl_check_map_versions): Likewise.
37022 * sysdeps/generic/localplt.data (ld.so): Add _dl_signal_exception,
37023 _dl_catch_exception.
37024 * sysdeps/unix/sysv/linux/aarch64/localplt.data (ld.so): Likewise.
37025 * sysdeps/unix/sysv/linux/alpha/localplt.data (ld.so): Likewise.
37026 * sysdeps/unix/sysv/linux/arm/localplt.data (ld.so): Likewise.
37027 * sysdeps/unix/sysv/linux/hppa/localplt.data (ld.so): Likewise.
37028 * sysdeps/unix/sysv/linux/i386/localplt.data (ld.so): Likewise.
37029 * sysdeps/unix/sysv/linux/ia64/localplt.data (ld.so): Likewise.
37030 * sysdeps/unix/sysv/linux/m68k/localplt.data (ld.so): Likewise.
37031 * sysdeps/unix/sysv/linux/microblaze/localplt.data (ld.so):
37032 Likewise.
37033 * sysdeps/unix/sysv/linux/nios2/localplt.data (ld.so): Likewise.
37034 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/localplt.data
37035 (ld.so): Likewise.
37036 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/localplt.data
37037 (ld.so): Likewise.
37038 * sysdeps/unix/sysv/linux/powerpc/powerpc64/localplt.data (ld.so):
37039 Likewise.
37040 * sysdeps/unix/sysv/linux/s390/localplt.data (ld.so): Likewise.
37041 * sysdeps/unix/sysv/linux/sh/localplt.data (ld.so): Likewise.
37042 * sysdeps/unix/sysv/linux/sparc/sparc32/localplt.data (ld.so):
37043 Likewise.
37044 * sysdeps/unix/sysv/linux/sparc/sparc64/localplt.data (ld.so):
37045 Likewise.
37046 * sysdeps/x86_64/localplt.data (ld.so): Likewise.
37047
37048 2017-08-10 Florian Weimer <fweimer@redhat.com>
37049
37050 * inet/net-internal.h (__inet6_scopeid_pton): Remove
37051 attribute_hidden, internal_function.
37052 * inet/inet6_scopeid_pton.c (__inet6_scopeid_pton): Remove
37053 internal_function.
37054
37055 2017-08-10 Florian Weimer <fweimer@redhat.com>
37056
37057 * malloc/malloc.c (get_max_fast): Reimplement as an inline
37058 function which calls __builtin_unreachable.
37059
37060 2017-08-10 Mike FABIAN <mfabian@redhat.com>
37061
37062 * stdlib/tst-strfmon_l.c: Fix test cases to agree with the changes in
37063 Indian monetary formatting
37064 * stdlib/Makefile: Adapt list of locales needed for the tst-strfmon_l.c
37065 test cases.
37066
37067 2017-08-09 Dmitry V. Levin <ldv@altlinux.org>
37068
37069 * sysdeps/unix/sysv/linux/aarch64/sys/ptrace.h (enum __ptrace_request):
37070 Fix typo in comment.
37071
37072 [BZ #21928]
37073 * sysdeps/unix/sysv/linux/sys/ptrace.h (enum __ptrace_flags,
37074 PTRACE_SEIZE_DEVEL): Remove.
37075 * sysdeps/unix/sysv/linux/aarch64/sys/ptrace.h: Likewise.
37076 * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Likewise.
37077 * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
37078 * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
37079 * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
37080
37081 2017-08-09 Joseph Myers <joseph@codesourcery.com>
37082
37083 * posix/bits/types.h (__qaddr_t): Remove.
37084
37085 [BZ #21457]
37086 * sysdeps/arm/sys/ucontext.h (__ctx): Move undefine further down.
37087 (ucontext_t): Use __ctx with uc_flags. Rename uc_filler to
37088 __glibc_reserved1.
37089 * sysdeps/generic/sys/ucontext.h (__ctx): New macro.
37090 (ucontext_t): Use __ctx with uc_flags.
37091 * sysdeps/i386/sys/ucontext.h (__ctx): Move undefine further down.
37092 (__ctxt): Likewise.
37093 (ucontext_t): Use __ctx with uc_flags. Rename uc_filler to
37094 __glibc_reserved1.
37095 * sysdeps/m68k/sys/ucontext.h (__ctx): Move undefine further down.
37096 (ucontext_t): Use __ctx with uc_flags. Rename uc_filler to
37097 __glibc_reserved1.
37098 * sysdeps/mips/sys/ucontext.h (__ctx): Move undefine further down.
37099 (ucontext_t): Use __ctx with uc_flags. Rename uc_filler to
37100 __glibc_reserved1.
37101 * sysdeps/unix/sysv/linux/aarch64/sys/ucontext.h (__ctx): New
37102 macro.
37103 (ucontext_t): Use __ctx with uc_flags.
37104 * sysdeps/unix/sysv/linux/alpha/sys/ucontext.h (__ctx): New macro.
37105 (ucontext_t): Use __ctx with uc_flags.
37106 * sysdeps/unix/sysv/linux/arm/sys/ucontext.h (__ctx): New macro.
37107 (ucontext_t): Use __ctx with uc_flags and uc_regspace.
37108 * sysdeps/unix/sysv/linux/hppa/sys/ucontext.h (__ctx): New macro.
37109 (ucontext_t): Use __ctx with uc_flags.
37110 * sysdeps/unix/sysv/linux/m68k/sys/ucontext.h (__ctx): Move
37111 undefine further down.
37112 (ucontext_t): Use __ctx with uc_flags. Rename uc_filler to
37113 __glibc_reserved1.
37114 * sysdeps/unix/sysv/linux/mips/sys/ucontext.h (__ctx): Move
37115 undefine further down.
37116 (ucontext_t): Use __ctx with uc_flags.
37117 * sysdeps/unix/sysv/linux/nios2/sys/ucontext.h (__ctx): Move
37118 undefine further down.
37119 (ucontext_t): Use __ctx with uc_flags.
37120 * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h (ucontext_t): Use
37121 __ctx with uc_flags, uc_regs_ptr, uc_regs and uc_reg_space.
37122 Rename uc_pad to __glibc_reserved1.
37123 * sysdeps/unix/sysv/linux/s390/sys/ucontext.h (__ctx): Move
37124 undefine further down.
37125 (ucontext_t): Use __ctx with uc_flags.
37126 * sysdeps/unix/sysv/linux/sh/sys/ucontext.h (__ctx): Move undefine
37127 further down.
37128 (ucontext_t): Use __ctx with uc_flags.
37129 * sysdeps/unix/sysv/linux/sparc/sys/ucontext.h (ucontext_t): Use
37130 __ctx with uc_flags.
37131 * sysdeps/unix/sysv/linux/tile/sys/ucontext.h (__ctx): New macro.
37132 (ucontext_t): Use __ctx with uc_flags.
37133 * sysdeps/unix/sysv/linux/x86/sys/ucontext.h (ucontext_t): Use
37134 __ctx with uc_flags.
37135
37136 2017-08-09 Florian Weimer <fweimer@redhat.com>
37137
37138 [BZ #21932]
37139 * nss/getXXbyYY_r.c (REENTRANT_NAME): Call __resolv_context_put
37140 before early return.
37141
37142 2017-08-09 Andreas Schwab <schwab@suse.de>
37143
37144 [BZ #21041]
37145 * sysdeps/unix/sysv/linux/s390/pt-longjmp.c: Update reference to
37146 renamed alias.
37147
37148 [BZ #21041]
37149 * nptl/Makefile (tests) [$(build-shared) = yes]: Add
37150 tst-compat-forwarder.
37151 (modules-names): Add tst-compat-forwarder-mod.
37152 ($(objpfx)tst-compat-forwarder): Depend on
37153 $(objpfx)tst-compat-forwarder-mod.so.
37154 * nptl/tst-compat-forwarder.c: New file.
37155 * nptl/tst-compat-forwarder-mod.c: New file.
37156
37157 2017-08-09 Siddhesh Poyarekar <siddhesh@sourceware.org>
37158
37159 * sysdeps/aarch64/multiarch/memcpy_falkor.S: Fix code style in
37160 comments.
37161
37162 * manual/tunables.texi (Tunable glibc.tune.cpu): Add falkor.
37163 * sysdeps/aarch64/multiarch/Makefile (sysdep_routines): Add
37164 memcpy_falkor.
37165 * sysdeps/aarch64/multiarch/ifunc-impl-list.c (MAX_IFUNC):
37166 Bump.
37167 (__libc_ifunc_impl_list): Add __memcpy_falkor.
37168 * sysdeps/aarch64/multiarch/memcpy.c: Likewise.
37169 * sysdeps/aarch64/multiarch/memcpy_falkor.S: New file.
37170 * sysdeps/unix/sysv/linux/aarch64/cpu-features.c (cpu_list):
37171 Add falkor.
37172 * sysdeps/unix/sysv/linux/aarch64/cpu-features.h (IS_FALKOR):
37173 New macro.
37174
37175 2017-08-08 Adhemerval Zanella <adhemerval.zanella@linaro.org>
37176
37177 [BZ #759]
37178 * manual/setjmp.texi (getcontex): Document uc_stack value
37179 compatibility differences.
37180
37181 2017-08-08 Joseph Myers <joseph@codesourcery.com>
37182
37183 * malloc/mcheck.c (old_free_hook): Use void * instead of __ptr_t.
37184 (old_malloc_hook): Likewise.
37185 (old_memalign_hook): Likewise.
37186 (old_realloc_hook): Likewise.
37187 (struct hdr): Likewise.
37188 (flood): Likewise.
37189 (freehook): Likewise.
37190 (mallochook): Likewise.
37191 (memalignhook): Likewise.
37192 (reallochook): Likewise.
37193 (mprobe): Likewise.
37194 * malloc/mtrace.c (mallwatch): Likewise.
37195 (tr_old_free_hook): Likewise.
37196 (tr_old_malloc_hook): Likewise.
37197 (tr_old_realloc_hook): Likewise.
37198 (tr_old_memalign_hook): Likewise.
37199 (tr_where): Likewise.
37200 (lock_and_info): Likewise.
37201 (tr_freehook): Likewise.
37202 (tr_mallochook): Likewise.
37203 (tr_reallochook): Likewise.
37204 (tr_memalignhook): Likewise.
37205 * misc/err.h [!__GNUC_VA_LIST] (__gnuc_va_list): Likewise.
37206 * misc/mmap.c (__mmap): Likewise.
37207 * misc/mmap64.c (__mmap64): Likewise.
37208 * misc/mprotect.c (__mprotect): Likewise.
37209 * misc/msync.c (msync): Likewise.
37210 * misc/munmap.c (__munmap): Likewise.
37211 * posix/posix_madvise.c (posix_madvise): Likewise.
37212 * socket/send.c (__send): Likewise.
37213 * socket/sendto.c (__sendto): Likewise.
37214 * socket/setsockopt.c (__setsockopt): Likewise.
37215 * string/memcmp.c (__ptr_t): Remove macro.
37216 (MEMCMP): Use void * instead of ptr_t.
37217 * string/memrchr.c (__ptr_t): Remove macro.
37218 (__memrchr): Use void * instead of ptr_t.
37219 * sysdeps/mach/hurd/dl-sysdep.c (__mmap): Likewise.
37220 * sysdeps/mach/hurd/mmap.c (__mmap): Likewise.
37221 * sysdeps/mach/hurd/mmap64.c (__mmap64): Likewise.
37222 * sysdeps/mach/mprotect.c (__mprotect): Likewise.
37223 * sysdeps/mach/msync.c (msync): Likewise.
37224 * sysdeps/mach/munmap.c (__munmap): Likewise.
37225 * sysdeps/mips/bits/setjmp.h (struct __jmp_buf_internal_tag):
37226 Likewise.
37227 * sysdeps/posix/getcwd.c (__getcwd): Likewise.
37228 * sysdeps/powerpc/powerpc32/memset.S (memset): Likewise.
37229 * sysdeps/powerpc/powerpc32/power4/memcpy.S (memcpy): Likewise.
37230 * sysdeps/powerpc/powerpc32/power4/memset.S (memset): Likewise.
37231 * sysdeps/powerpc/powerpc32/power6/memcpy.S (memcpy): Likewise.
37232 * sysdeps/powerpc/powerpc32/power6/memset.S (memset): Likewise.
37233 * sysdeps/powerpc/powerpc32/power7/memcpy.S (memcpy): Likewise.
37234 * sysdeps/powerpc/powerpc32/power7/mempcpy.S (__mempcpy):
37235 Likewise.
37236 * sysdeps/powerpc/powerpc32/power7/memset.S (memset): Likewise.
37237 * sysdeps/powerpc/powerpc64/memcpy.S (memcpy): Likewise.
37238 * sysdeps/powerpc/powerpc64/memset.S (memset): Likewise.
37239 * sysdeps/powerpc/powerpc64/power4/memcpy.S (memcpy): Likewise.
37240 * sysdeps/powerpc/powerpc64/power4/memset.S (memset): Likewise.
37241 * sysdeps/powerpc/powerpc64/power6/memcpy.S (memcpy): Likewise.
37242 * sysdeps/powerpc/powerpc64/power6/memset.S (memset): Likewise.
37243 * sysdeps/powerpc/powerpc64/power7/memcpy.S (memcpy): Likewise.
37244 * sysdeps/powerpc/powerpc64/power7/mempcpy.S (__mempcpy):
37245 Likewise.
37246 * sysdeps/powerpc/powerpc64/power7/memset.S (memset): Likewise.
37247 * sysdeps/powerpc/powerpc64/power8/memset.S (memset): Likewise.
37248 * sysdeps/tile/memcmp.c (__ptr_t): Remove macro.
37249 (MEMCMP): Use void * instead of ptr_t.
37250 * sysdeps/unix/sysv/linux/alpha/oldglob.c (old_glob_t): Likewise.
37251 * sysdeps/unix/sysv/linux/mmap.c (__mmap): Likewise.
37252
37253 2017-08-08 Florian Weimer <fweimer@redhat.com>
37254
37255 * sysdeps/posix/getaddrinfo.c (gaih_inet): Remove unreachable
37256 return statement.
37257
37258 2017-08-08 H.J. Lu <hongjiu.lu@intel.com>
37259
37260 [BZ #21913]
37261 * csu/libc-tls.c: Include <startup.h> first.
37262 (__libc_setup_tls): Call _startup_fatal instead of __libc_fatal.
37263 * elf/dl-tunables.c: Include <startup.h> first.
37264 * include/libc-symbols.h (BUILD_PIE_DEFAULT): New.
37265 * sysdeps/generic/startup.h: New file.
37266 * sysdeps/unix/sysv/linux/i386/startup.h: Likewise.
37267 * sysdeps/unix/sysv/linux/i386/brk.c [BUILD_PIE_DEFAULT != 0]
37268 (I386_USE_SYSENTER): New. Defined to 0.
37269
37270 2017-08-08 Andreas Schwab <schwab@suse.de>
37271
37272 [BZ #21041]
37273 * nptl/pt-longjmp.c (longjmp, siglongjmp): Don't use IFUNC resolver.
37274 * nptl/pt-system.c (system): Likewise.
37275
37276 2017-08-07 Adhemerval Zanella <adhemerval.zanella@linaro.org>
37277
37278 [BZ #21780]
37279 * sysdeps/posix/preadv2.c (preadv2): Use ENOTSUP instead of
37280 EOPNOTSUPP.
37281 * sysdeps/posix/preadv64v2.c (preadv64v2): Likewise.
37282 * sysdeps/posix/pwritev2.c (pwritev2): Likewise.
37283 * sysdeps/posix/pwritev64v2.c (pwritev64v2): Likewise.
37284 * sysdeps/unix/sysv/linux/preadv2.c (preadv2): Likewise.
37285 * sysdeps/unix/sysv/linux/preadv64v2.c (preadv64v2): Likewise.
37286 * sysdeps/unix/sysv/linux/pwritev2.c (pwritev2): Likewise.
37287 * sysdeps/unix/sysv/linux/pwritev64v2.c (pwritev64v2): Likewise.
37288
37289 2017-08-07 Joseph Myers <joseph@codesourcery.com>
37290
37291 [BZ #21899]
37292 * bits/sigaction.h (struct sigaction): Define sa_handler and
37293 sa_sigaction using union also for [__USE_XOPEN_EXTENDED].
37294 (SA_ONSTACK): Change [__USE_UNIX98] condition to
37295 [__USE_XOPEN_EXTENDED].
37296 (SA_RESTART): Likewise.
37297 (SA_NODEFER): Likewise.
37298 (SA_RESETHAND): Likewise.
37299 * sysdeps/unix/sysv/linux/alpha/bits/sigaction.h
37300 (struct sigaction): Define sa_handler and sa_sigaction using union
37301 also for [__USE_XOPEN_EXTENDED].
37302 (SA_ONSTACK): Change [__USE_UNIX98] condition to
37303 [__USE_XOPEN_EXTENDED].
37304 (SA_RESTART): Likewise.
37305 (SA_NODEFER): Likewise.
37306 (SA_RESETHAND): Likewise.
37307 * sysdeps/unix/sysv/linux/bits/sigaction.h
37308 (struct sigaction): Define sa_handler and sa_sigaction using union
37309 also for [__USE_XOPEN_EXTENDED].
37310 (SA_ONSTACK): Change [__USE_UNIX98] condition to
37311 [__USE_XOPEN_EXTENDED].
37312 (SA_RESTART): Likewise.
37313 (SA_NODEFER): Likewise.
37314 (SA_RESETHAND): Likewise.
37315 * sysdeps/unix/sysv/linux/hppa/bits/sigaction.h
37316 (struct sigaction): Define sa_handler and sa_sigaction using union
37317 also for [__USE_XOPEN_EXTENDED].
37318 (SA_ONSTACK): Change [__USE_UNIX98] condition to
37319 [__USE_XOPEN_EXTENDED].
37320 (SA_RESTART): Likewise.
37321 (SA_NODEFER): Likewise.
37322 (SA_RESETHAND): Likewise.
37323 * sysdeps/unix/sysv/linux/ia64/bits/sigaction.h
37324 (struct sigaction): Define sa_handler and sa_sigaction using union
37325 also for [__USE_XOPEN_EXTENDED].
37326 (SA_ONSTACK): Change [__USE_UNIX98] condition to
37327 [__USE_XOPEN_EXTENDED].
37328 (SA_RESTART): Likewise.
37329 (SA_NODEFER): Likewise.
37330 (SA_RESETHAND): Likewise.
37331 * sysdeps/unix/sysv/linux/mips/bits/sigaction.h
37332 (struct sigaction): Define sa_handler and sa_sigaction using union
37333 also for [__USE_XOPEN_EXTENDED].
37334 (SA_ONSTACK): Change [__USE_UNIX98] condition to
37335 [__USE_XOPEN_EXTENDED].
37336 (SA_RESTART): Likewise.
37337 (SA_NODEFER): Likewise.
37338 (SA_RESETHAND): Likewise.
37339 * sysdeps/unix/sysv/linux/s390/bits/sigaction.h
37340 (struct sigaction): Define sa_handler and sa_sigaction using union
37341 also for [__USE_XOPEN_EXTENDED].
37342 (SA_ONSTACK): Change [__USE_UNIX98] condition to
37343 [__USE_XOPEN_EXTENDED].
37344 (SA_RESTART): Likewise.
37345 (SA_NODEFER): Likewise.
37346 (SA_RESETHAND): Likewise.
37347 * sysdeps/unix/sysv/linux/sparc/bits/sigaction.h
37348 (struct sigaction): Define sa_handler and sa_sigaction using union
37349 also for [__USE_XOPEN_EXTENDED].
37350 (SA_ONSTACK): Change [__USE_UNIX98] condition to
37351 [__USE_XOPEN_EXTENDED].
37352 (SA_RESTART): Likewise.
37353 (SA_NODEFER): Likewise. Define directly rather than as alias.
37354 (SA_RESETHAND): Likewise.
37355 (SA_INTERRUPT): Define only for [__USE_MISC].
37356 (SA_NOMASK): Define as alias of SA_NODEFER, only for [__USE_MISC].
37357 (SA_ONESHOT): Define as alias of SA_RESETHAND, only for
37358 [__USE_MISC].
37359 (SA_STACK): Define only for [__USE_MISC].
37360 * sysdeps/unix/sysv/linux/tile/bits/sigaction.h
37361 (struct sigaction): Define sa_handler and sa_sigaction using union
37362 also for [__USE_XOPEN_EXTENDED].
37363 (SA_ONSTACK): Change [__USE_UNIX98] condition to
37364 [__USE_XOPEN_EXTENDED].
37365 (SA_RESTART): Likewise.
37366 (SA_NODEFER): Likewise.
37367 (SA_RESETHAND): Likewise.
37368 (SA_NOPTRACE): Define only for [__USE_MISC].
37369
37370 * catgets/catgets.c (catgets): Use uintN_t instead of u_intN_t.
37371 * catgets/catgetsinfo.h (struct catalog_obj): Likewise.
37372 (struct catalog_info): Likewise.
37373 * inet/htontest.c (lo): Likewise.
37374 (foo): Likewise.
37375 * inet/inet_lnaof.c (inet_lnaof): Likewise.
37376 * inet/inet_net.c (inet_network): Likewise.
37377 * inet/inet_netof.c (inet_netof): Likewise.
37378 * inet/rcmd.c (__ivaliduser): Likewise.
37379 (iruserok): Likewise.
37380 * locale/loadlocale.c (_nl_intern_locale_data): Likewise.
37381 * locale/programs/locale-spec.c (locale_special): Likewise.
37382 * nis/nis_findserv.c (struct findserv_req): Likewise.
37383 (__nis_findfastest_with_timeout): Likewise.
37384 * nss/test-netdb.c (test_network): Likewise.
37385 * resolv/inet_neta.c (inet_neta): Likewise.
37386 * resolv/ns_date.c (ns_datetosecs): Likewise.
37387 (SECS_PER_DAY): Likewise.
37388 * resolv/nss_dns/dns-network.c (_nss_dns_getnetbyaddr_r):
37389 Likewise.
37390 * resolv/res_comp.c (__putlong): Likewise.
37391 (__putshort): Likewise.
37392 (_getlong): Likewise.
37393 (_getshort): Likewise.
37394 * resolv/res_debug.c (p_time): Likewise.
37395 (precsize_ntoa): Likewise.
37396 (precsize_aton): Likewise.
37397 (latlon2ul): Likewise.
37398 (loc_aton): Likewise.
37399 (loc_ntoa): Likewise.
37400 * resolv/res_hconf.c (struct netaddr): Likewise.
37401 (_res_hconf_reorder_addrs): Likewise.
37402 * sunrpc/clnt_tcp.c (clnttcp_call): Likewise.
37403 (clnttcp_control): Likewise.
37404 * sunrpc/clnt_udp.c (clntudp_call): Likewise.
37405 (clntudp_control): Likewise.
37406 * sunrpc/clnt_unix.c (clntunix_call): Likewise.
37407 (clntunix_control): Likewise.
37408 * sunrpc/pmap_rmt.c (clnt_broadcast): Likewise.
37409 * sunrpc/rpc/auth.h (union des_block): Likewise.
37410 * sunrpc/tst-udp-nonblocking.c (do_test): Likewise.
37411 * sunrpc/xdr_rec.c (struct rec_strm): Likewise.
37412 (xdrrec_create): Likewise.
37413 (xdrrec_endofrecord): Likewise.
37414 (flush_out): Likewise.
37415 * sunrpc/xdr_stdio.c (xdrstdio_getlong): Likewise.
37416 (xdrstdio_putlong): Likewise.
37417 * sysdeps/unix/sysv/linux/errqueue.h (struct sock_extended_err):
37418 Likewise.
37419
37420 * misc/sys/cdefs.h (__long_double_t): Remove.
37421 * stdio-common/printf_fp.c (__printf_fp_l): Use long double
37422 instead of __long_double_t,
37423 * stdlib/strfmon_l.c (__vstrfmon_l): Likewise.
37424
37425 2017-08-07 Siddhesh Poyarekar <siddhesh@sourceware.org>
37426
37427 * benchtests/scripts/compare_strings.py: Avoid display error when
37428 running on a text terminal.
37429
37430 * benchtests/scripts/compare_strings.py (main): Add an
37431 optional -base option.
37432 (process_results): New argument base_func.
37433
37434 * benchtests/bench-memcpy.c (test_main): Use TEST_NAME instead of
37435 hardcoding memcpy.
37436 * benchtests/bench-memcpy-large.c (test_name): Likewise.
37437 * benchtests/bench-memcpy-random.c (test_name): Likewise.
37438
37439 2017-08-07 Andreas Schwab <schwab@suse.de>
37440
37441 * elf/Makefile ($(objpfx)tst-pathopt.out): Redirect output to target.
37442 * grp/Makefile ($(objpfx)tst_fgetgrent.out): Likewise.
37443 * intl/Makefile ($(objpfx)tst-gettext.out)
37444 ($(objpfx)tst-translit.out, $(objpfx)tst-gettext2.out)
37445 ($(objpfx)tst-gettext4.out, $(objpfx)tst-gettext6.out): Likewise.
37446 * libio/Makefile ($(objpfx)test-freopen.out): Likewise.
37447 * malloc/Makefile ($(objpfx)tst-mtrace.out): Likewise.
37448 * nptl/Makefile ($(objpfx)tst-tls6.out): Likewise.
37449 * posix/Makefile ($(objpfx)globtest.out)
37450 ($(objpfx)wordexp-tst.out, $(objpfx)tst-getconf.out): Likewise.
37451 * stdio-common/Makefile ($(objpfx)tst-unbputc.out)
37452 ($(objpfx)tst-printf.out): Likewise.
37453 * stdlib/Makefile ($(objpfx)tst-fmtmsg.out)
37454 ($(objpfx)tst-setcontext3.out): Likewise.
37455
37456 2017-08-07 H.J. Lu <hongjiu.lu@intel.com>
37457
37458 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
37459 Add e_exp-fma, e_log-fma, e_pow-fma, s_atan-fma, e_asin-fma,
37460 e_atan2-fma, s_sin-fma, s_tan-fma, mplog-fma, mpa-fma,
37461 slowexp-fma, slowpow-fma, sincos32-fma, doasin-fma, dosincos-fma,
37462 halfulp-fma, mpexp-fma, mpatan2-fma, mpatan-fma, mpsqrt-fma,
37463 and mptan-fma.
37464 (CFLAGS-doasin-fma.c): New.
37465 (CFLAGS-dosincos-fma.c): Likewise.
37466 (CFLAGS-e_asin-fma.c): Likewise.
37467 (CFLAGS-e_atan2-fma.c): Likewise.
37468 (CFLAGS-e_exp-fma.c): Likewise.
37469 (CFLAGS-e_log-fma.c): Likewise.
37470 (CFLAGS-e_pow-fma.c): Likewise.
37471 (CFLAGS-halfulp-fma.c): Likewise.
37472 (CFLAGS-mpa-fma.c): Likewise.
37473 (CFLAGS-mpatan-fma.c): Likewise.
37474 (CFLAGS-mpatan2-fma.c): Likewise.
37475 (CFLAGS-mpexp-fma.c): Likewise.
37476 (CFLAGS-mplog-fma.c): Likewise.
37477 (CFLAGS-mpsqrt-fma.c): Likewise.
37478 (CFLAGS-mptan-fma.c): Likewise.
37479 (CFLAGS-s_atan-fma.c): Likewise.
37480 (CFLAGS-sincos32-fma.c): Likewise.
37481 (CFLAGS-slowexp-fma.c): Likewise.
37482 (CFLAGS-slowpow-fma.c): Likewise.
37483 (CFLAGS-s_sin-fma.c): Likewise.
37484 (CFLAGS-s_tan-fma.c): Likewise.
37485 * sysdeps/x86_64/fpu/multiarch/doasin-fma.c: New file.
37486 * sysdeps/x86_64/fpu/multiarch/dosincos-fma.c: Likewise.
37487 * sysdeps/x86_64/fpu/multiarch/e_asin-fma.c: Likewise.
37488 * sysdeps/x86_64/fpu/multiarch/e_atan2-fma.c: Likewise.
37489 * sysdeps/x86_64/fpu/multiarch/e_exp-fma.c: Likewise.
37490 * sysdeps/x86_64/fpu/multiarch/e_log-fma.c: Likewise.
37491 * sysdeps/x86_64/fpu/multiarch/e_pow-fma.c: Likewise.
37492 * sysdeps/x86_64/fpu/multiarch/halfulp-fma.c: Likewise.
37493 * sysdeps/x86_64/fpu/multiarch/ifunc-avx-fma4.h: Likewise.
37494 * sysdeps/x86_64/fpu/multiarch/ifunc-fma4.h: Likewise.
37495 * sysdeps/x86_64/fpu/multiarch/mpa-fma.c: Likewise.
37496 * sysdeps/x86_64/fpu/multiarch/mpatan-fma.c: Likewise.
37497 * sysdeps/x86_64/fpu/multiarch/mpatan2-fma.c: Likewise.
37498 * sysdeps/x86_64/fpu/multiarch/mpexp-fma.c: Likewise.
37499 * sysdeps/x86_64/fpu/multiarch/mplog-fma.c: Likewise.
37500 * sysdeps/x86_64/fpu/multiarch/mpsqrt-fma.c: Likewise.
37501 * sysdeps/x86_64/fpu/multiarch/mptan-fma.c: Likewise.
37502 * sysdeps/x86_64/fpu/multiarch/s_atan-fma.c: Likewise.
37503 * sysdeps/x86_64/fpu/multiarch/s_sin-fma.c: Likewise.
37504 * sysdeps/x86_64/fpu/multiarch/s_tan-fma.c: Likewise.
37505 * sysdeps/x86_64/fpu/multiarch/sincos32-fma.c: Likewise.
37506 * sysdeps/x86_64/fpu/multiarch/slowexp-fma.c: Likewise.
37507 * sysdeps/x86_64/fpu/multiarch/slowpow-fma.c: Likewise.
37508 * sysdeps/x86_64/fpu/multiarch/e_asin.c: Rewrite.
37509 * sysdeps/x86_64/fpu/multiarch/e_atan2.c: Likewise.
37510 * sysdeps/x86_64/fpu/multiarch/e_exp.c: Likewise.
37511 * sysdeps/x86_64/fpu/multiarch/e_log.c: Likewise.
37512 * sysdeps/x86_64/fpu/multiarch/e_pow.c: Likewise.
37513 * sysdeps/x86_64/fpu/multiarch/s_atan.c: Likewise.
37514 * sysdeps/x86_64/fpu/multiarch/s_sin.c: Likewise.
37515 * sysdeps/x86_64/fpu/multiarch/s_tan.c: Likewise.
37516
37517 2017-08-04 Joseph Myers <joseph@codesourcery.com>
37518
37519 * sysdeps/generic/math_private.h (__EXPR_FLT128): Remove macro.
37520 (min_of_type_f): New macro.
37521 (min_of_type_): Likewise.
37522 (min_of_type_l): Likewise.
37523 (min_of_type_f128): Likewise.
37524 (min_of_type): Define using __MATH_TG and taking an expression
37525 argument.
37526 (math_check_force_underflow): Pass expression instead of type to
37527 min_of_type.
37528 (math_check_force_underflow_nonneg): Likewise.
37529
37530 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
37531
37532 * sysdeps/x86/cpu-features.h [__ASSEMBLER__]
37533 (LOAD_RTLD_GLOBAL_RO_RDX, HAS_FEATURE, LOAD_FUNC_GOT_EAX,
37534 HAS_CPU_FEATURE, HAS_ARCH_FEATURE): Removed.
37535
37536 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
37537
37538 * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
37539 bcopy-ia32, bzero-ia32, rawmemchr-ia32 memchr-ia32,
37540 memcmp-ia32, memcpy-ia32, memmove-ia32, mempcpy-ia32,
37541 memset-ia32, strcat-ia32, strchr-ia32, strrchr-ia32,
37542 strcpy-ia32, strcmp-ia32, strcspn-ia32, strpbrk-ia32,
37543 strspn-ia32, strlen-ia32, stpcpy-ia32, stpncpy-ia32,
37544 memcpy_chk-nonshared, mempcpy_chk-nonshared,
37545 memmove_chk-nonshared and memset_chk-nonshared
37546 * sysdeps/i386/i686/multiarch/bcopy-ia32.S: New file.
37547 * sysdeps/i386/i686/multiarch/bcopy.c: Likewise.
37548 * sysdeps/i386/i686/multiarch/bzero-ia32.S: Likewise.
37549 * sysdeps/i386/i686/multiarch/bzero.c: Likewise.
37550 * sysdeps/i386/i686/multiarch/ifunc-memmove.h: Likewise.
37551 * sysdeps/i386/i686/multiarch/ifunc-memset.h: Likewise.
37552 * sysdeps/i386/i686/multiarch/ifunc-sse2-bsf.h: Likewise.
37553 * sysdeps/i386/i686/multiarch/ifunc-sse2-ssse3.h: Likewise.
37554 * sysdeps/i386/i686/multiarch/ifunc-sse2.h: Likewise.
37555 * sysdeps/i386/i686/multiarch/ifunc-sse4_2.h: Likewise.
37556 * sysdeps/i386/i686/multiarch/ifunc-ssse3-sse4_2.h: Likewise.
37557 * sysdeps/i386/i686/multiarch/memchr-ia32.S: Likewise.
37558 * sysdeps/i386/i686/multiarch/memchr.c: Likewise.
37559 * sysdeps/i386/i686/multiarch/memcmp-ia32.S: Likewise.
37560 * sysdeps/i386/i686/multiarch/memcmp.c: Likewise.
37561 * sysdeps/i386/i686/multiarch/memcpy-ia32.S: Likewise.
37562 * sysdeps/i386/i686/multiarch/memcpy.c: Likewise.
37563 * sysdeps/i386/i686/multiarch/memcpy_chk-nonshared.S: Likewise.
37564 * sysdeps/i386/i686/multiarch/memcpy_chk.c: Likewise.
37565 * sysdeps/i386/i686/multiarch/memmove-ia32.S: Likewise.
37566 * sysdeps/i386/i686/multiarch/memmove.c: Likewise.
37567 * sysdeps/i386/i686/multiarch/memmove_chk-nonshared.S: Likewise.
37568 * sysdeps/i386/i686/multiarch/memmove_chk.c: Likewise.
37569 * sysdeps/i386/i686/multiarch/mempcpy-ia32.S: Likewise.
37570 * sysdeps/i386/i686/multiarch/mempcpy.c: Likewise.
37571 * sysdeps/i386/i686/multiarch/mempcpy_chk-nonshared.S: Likewise.
37572 * sysdeps/i386/i686/multiarch/mempcpy_chk.c: Likewise.
37573 * sysdeps/i386/i686/multiarch/memrchr.c: Likewise.
37574 * sysdeps/i386/i686/multiarch/memset-ia32.S: Likewise.
37575 * sysdeps/i386/i686/multiarch/memset.c: Likewise.
37576 * sysdeps/i386/i686/multiarch/memset_chk-nonshared.S: Likewise.
37577 * sysdeps/i386/i686/multiarch/rawmemchr-ia32.S: Likewise.
37578 * sysdeps/i386/i686/multiarch/rawmemchr.c: Likewise.
37579 * sysdeps/i386/i686/multiarch/stpcpy-ia32.S: Likewise.
37580 * sysdeps/i386/i686/multiarch/stpcpy-ia32.S: Likewise.
37581 * sysdeps/i386/i686/multiarch/stpcpy.c: Likewise.
37582 * sysdeps/i386/i686/multiarch/stpncpy-ia32.S: Likewise.
37583 * sysdeps/i386/i686/multiarch/stpncpy.c: Likewise.
37584 * sysdeps/i386/i686/multiarch/strcasecmp.c: Likewise.
37585 * sysdeps/i386/i686/multiarch/strcasecmp_l.c: Likewise.
37586 * sysdeps/i386/i686/multiarch/strcat-ia32.S: Likewise.
37587 * sysdeps/i386/i686/multiarch/strcat.c: Likewise.
37588 * sysdeps/i386/i686/multiarch/strchr-ia32.S: Likewise.
37589 * sysdeps/i386/i686/multiarch/strchr.c: Likewise.
37590 * sysdeps/i386/i686/multiarch/strcmp-ia32.S: Likewise.
37591 * sysdeps/i386/i686/multiarch/strcmp.c: Likewise.
37592 * sysdeps/i386/i686/multiarch/strcpy-ia32.S: Likewise.
37593 * sysdeps/i386/i686/multiarch/strcpy.c: Likewise.
37594 * sysdeps/i386/i686/multiarch/strcspn-ia32.S: Likewise.
37595 * sysdeps/i386/i686/multiarch/strcspn.c: Likewise.
37596 * sysdeps/i386/i686/multiarch/strlen-ia32.S: Likewise.
37597 * sysdeps/i386/i686/multiarch/strlen.c: Likewise.
37598 * sysdeps/i386/i686/multiarch/strncase.c: Likewise.
37599 * sysdeps/i386/i686/multiarch/strncase_l.c: Likewise.
37600 * sysdeps/i386/i686/multiarch/strncat.c: Likewise.
37601 * sysdeps/i386/i686/multiarch/strncmp.c: Likewise.
37602 * sysdeps/i386/i686/multiarch/strncpy.c: Likewise.
37603 * sysdeps/i386/i686/multiarch/strnlen.c: Likewise.
37604 * sysdeps/i386/i686/multiarch/strpbrk-ia32.S: Likewise.
37605 * sysdeps/i386/i686/multiarch/strpbrk.c: Likewise.
37606 * sysdeps/i386/i686/multiarch/strrchr-ia32.S: Likewise.
37607 * sysdeps/i386/i686/multiarch/strrchr.c: Likewise.
37608 * sysdeps/i386/i686/multiarch/strspn-ia32.S: Likewise.
37609 * sysdeps/i386/i686/multiarch/strspn.c: Likewise.
37610 * sysdeps/i386/i686/multiarch/wcschr.c: Likewise.
37611 * sysdeps/i386/i686/multiarch/wcscmp.c: Likewise.
37612 * sysdeps/i386/i686/multiarch/wcscpy.c: Likewise.
37613 * sysdeps/i386/i686/multiarch/wcslen.c: Likewise.
37614 * sysdeps/i386/i686/multiarch/wcsrchr.c: Likewise.
37615 * sysdeps/i386/i686/multiarch/wmemcmp.c: Likewise.
37616 * sysdeps/i386/i686/multiarch/bcopy.S: Removed.
37617 * sysdeps/i386/i686/multiarch/bzero.S: Likewise.
37618 * sysdeps/i386/i686/multiarch/memchr.S: Likewise.
37619 * sysdeps/i386/i686/multiarch/memcmp.S: Likewise.
37620 * sysdeps/i386/i686/multiarch/memcpy.S: Likewise.
37621 * sysdeps/i386/i686/multiarch/memcpy_chk.S: Likewise.
37622 * sysdeps/i386/i686/multiarch/memmove.S: Likewise.
37623 * sysdeps/i386/i686/multiarch/memmove_chk.S: Likewise.
37624 * sysdeps/i386/i686/multiarch/mempcpy.S: Likewise.
37625 * sysdeps/i386/i686/multiarch/mempcpy_chk.S: Likewise.
37626 * sysdeps/i386/i686/multiarch/memrchr.S: Likewise.
37627 * sysdeps/i386/i686/multiarch/memset.S: Likewise.
37628 * sysdeps/i386/i686/multiarch/memset_chk.S: Likewise.
37629 * sysdeps/i386/i686/multiarch/rawmemchr.S: Likewise.
37630 * sysdeps/i386/i686/multiarch/stpcpy.S: Likewise.
37631 * sysdeps/i386/i686/multiarch/stpncpy.S: Likewise.
37632 * sysdeps/i386/i686/multiarch/strcasecmp.S: Likewise.
37633 * sysdeps/i386/i686/multiarch/strcasecmp_l.S: Likewise.
37634 * sysdeps/i386/i686/multiarch/strcat.S: Likewise.
37635 * sysdeps/i386/i686/multiarch/strcmp.S: Likewise.
37636 * sysdeps/i386/i686/multiarch/strcpy.S: Likewise.
37637 * sysdeps/i386/i686/multiarch/strcspn.S: Likewise.
37638 * sysdeps/i386/i686/multiarch/strlen.S: Likewise.
37639 * sysdeps/i386/i686/multiarch/strncase.S: Likewise.
37640 * sysdeps/i386/i686/multiarch/strncase_l.S: Likewise.
37641 * sysdeps/i386/i686/multiarch/strncat.S: Likewise.
37642 * sysdeps/i386/i686/multiarch/strncmp.S: Likewise.
37643 * sysdeps/i386/i686/multiarch/strncpy.S: Likewise.
37644 * sysdeps/i386/i686/multiarch/strnlen.S: Likewise.
37645 * sysdeps/i386/i686/multiarch/strpbrk.S: Likewise.
37646 * sysdeps/i386/i686/multiarch/strrchr.S: Likewise.
37647 * sysdeps/i386/i686/multiarch/strspn.S: Likewise.
37648 * sysdeps/i386/i686/multiarch/wcschr.S: Likewise.
37649 * sysdeps/i386/i686/multiarch/wcscmp.S: Likewise.
37650 * sysdeps/i386/i686/multiarch/wcscpy.S: Likewise.
37651 * sysdeps/i386/i686/multiarch/wcslen.S: Likewise.
37652 * sysdeps/i386/i686/multiarch/wcsrchr.S: Likewise.
37653 * sysdeps/i386/i686/multiarch/wmemcmp.S: Likewise.
37654
37655 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
37656
37657 * sysdeps/x86_64/fpu/multiarch/Makefile (libmvec-sysdep_routines)
37658 Add svml_d_cos2_core-sse2, svml_d_cos4_core-sse,
37659 svml_d_cos8_core-avx2, svml_d_exp2_core-sse2,
37660 svml_d_exp4_core-sse, svml_d_exp8_core-avx2,
37661 svml_d_log2_core-sse2, svml_d_log4_core-sse,
37662 svml_d_log8_core-avx2, svml_d_pow2_core-sse2,
37663 svml_d_pow4_core-sse, svml_d_pow8_core-avx2
37664 svml_d_sin2_core-sse2, svml_d_sin4_core-sse,
37665 svml_d_sin8_core-avx2, svml_d_sincos2_core-sse2,
37666 svml_d_sincos4_core-sse, svml_d_sincos8_core-avx2,
37667 svml_s_cosf16_core-avx2, svml_s_cosf4_core-sse2,
37668 svml_s_cosf8_core-sse, svml_s_expf16_core-avx2,
37669 svml_s_expf4_core-sse2, svml_s_expf8_core-sse,
37670 svml_s_logf16_core-avx2, svml_s_logf4_core-sse2,
37671 svml_s_logf8_core-sse, svml_s_powf16_core-avx2,
37672 svml_s_powf4_core-sse2, svml_s_powf8_core-sse,
37673 svml_s_sincosf16_core-avx2, svml_s_sincosf4_core-sse2,
37674 svml_s_sincosf8_core-sse, svml_s_sinf16_core-avx2,
37675 svml_s_sinf4_core-sse2 and svml_s_sinf8_core-sse.
37676 * sysdeps/x86_64/fpu/multiarch/ifunc-mathvec-avx2.h: New file.
37677 * sysdeps/x86_64/fpu/multiarch/ifunc-mathvec-avx512.h: Likewise.
37678 * sysdeps/x86_64/fpu/multiarch/ifunc-mathvec-sse4_1.h: Likewise.
37679 * sysdeps/x86_64/fpu/multiarch/svml_d_cos2_core.c: Likewise.
37680 * sysdeps/x86_64/fpu/multiarch/svml_d_cos4_core.c: Likewise.
37681 * sysdeps/x86_64/fpu/multiarch/svml_d_cos8_core.c: Likewise.
37682 * sysdeps/x86_64/fpu/multiarch/svml_d_exp2_core.c: Likewise.
37683 * sysdeps/x86_64/fpu/multiarch/svml_d_exp4_core.c: Likewise.
37684 * sysdeps/x86_64/fpu/multiarch/svml_d_exp8_core.c: Likewise.
37685 * sysdeps/x86_64/fpu/multiarch/svml_d_log2_core.c: Likewise.
37686 * sysdeps/x86_64/fpu/multiarch/svml_d_log4_core.c: Likewise.
37687 * sysdeps/x86_64/fpu/multiarch/svml_d_log8_core.c: Likewise.
37688 * sysdeps/x86_64/fpu/multiarch/svml_d_pow2_core.c: Likewise.
37689 * sysdeps/x86_64/fpu/multiarch/svml_d_pow4_core.c: Likewise.
37690 * sysdeps/x86_64/fpu/multiarch/svml_d_pow8_core.c: Likewise.
37691 * sysdeps/x86_64/fpu/multiarch/svml_d_sin2_core.c: Likewise.
37692 * sysdeps/x86_64/fpu/multiarch/svml_d_sin4_core.c: Likewise.
37693 * sysdeps/x86_64/fpu/multiarch/svml_d_sin8_core.c: Likewise.
37694 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos2_core.c: Likewise.
37695 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos4_core.c: Likewise.
37696 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos8_core.c: Likewise.
37697 * sysdeps/x86_64/fpu/multiarch/svml_d_cosf16_core.c: Likewise.
37698 * sysdeps/x86_64/fpu/multiarch/svml_d_cosf4_core.c: Likewise.
37699 * sysdeps/x86_64/fpu/multiarch/svml_d_cosf8_core.c: Likewise.
37700 * sysdeps/x86_64/fpu/multiarch/svml_d_expf16_core.c: Likewise.
37701 * sysdeps/x86_64/fpu/multiarch/svml_d_expf4_core.c: Likewise.
37702 * sysdeps/x86_64/fpu/multiarch/svml_d_expf8_core.c: Likewise.
37703 * sysdeps/x86_64/fpu/multiarch/svml_d_logf16_core.c: Likewise.
37704 * sysdeps/x86_64/fpu/multiarch/svml_d_logf4_core.c: Likewise.
37705 * sysdeps/x86_64/fpu/multiarch/svml_d_logf8_core.c: Likewise.
37706 * sysdeps/x86_64/fpu/multiarch/svml_d_powf16_core.c: Likewise.
37707 * sysdeps/x86_64/fpu/multiarch/svml_d_powf4_core.c: Likewise.
37708 * sysdeps/x86_64/fpu/multiarch/svml_d_powf8_core.c: Likewise.
37709 * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf16_core.c: Likewise.
37710 * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf4_core.c: Likewise.
37711 * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf8_core.c: Likewise.
37712 * sysdeps/x86_64/fpu/multiarch/svml_d_sinf16_core.c: Likewise.
37713 * sysdeps/x86_64/fpu/multiarch/svml_d_sinf4_core.c: Likewise.
37714 * sysdeps/x86_64/fpu/multiarch/svml_d_sinf8_core.c: Likewise.
37715 * sysdeps/x86_64/fpu/multiarch/svml_d_cos2_core.S: Renamed to
37716 ...
37717 * sysdeps/x86_64/fpu/multiarch/svml_d_cos2_core-sse2.S: This.
37718 Don't include <sysdep.h> nor <init-arch.h>.
37719 (_ZGVbN2v_cos): Removed.
37720 * sysdeps/x86_64/fpu/multiarch/svml_d_cos4_core.S: Renamed to
37721 ...
37722 * sysdeps/x86_64/fpu/multiarch/svml_d_cos4_core-sse.S: This.
37723 Don't include <sysdep.h> nor <init-arch.h>.
37724 (_ZGVdN4v_cos): Removed.
37725 * sysdeps/x86_64/fpu/multiarch/svml_d_cos8_core.S: Renamed to
37726 ...
37727 * sysdeps/x86_64/fpu/multiarch/svml_d_cos8_core-avx2.S: This.
37728 Don't include <sysdep.h> nor <init-arch.h>.
37729 (_ZGVeN8v_cos): Removed.
37730 * sysdeps/x86_64/fpu/multiarch/svml_d_exp2_core.S: Renamed to
37731 ...
37732 * sysdeps/x86_64/fpu/multiarch/svml_d_exp2_core-sse2.S: This.
37733 Don't include <sysdep.h> nor <init-arch.h>.
37734 (_ZGVbN2v_exp): Removed.
37735 * sysdeps/x86_64/fpu/multiarch/svml_d_exp4_core.S: Renamed to
37736 ...
37737 * sysdeps/x86_64/fpu/multiarch/svml_d_exp4_core-sse.S: This.
37738 Don't include <sysdep.h> nor <init-arch.h>.
37739 (_ZGVdN4v_exp): Removed.
37740 * sysdeps/x86_64/fpu/multiarch/svml_d_exp8_core.S: Renamed to
37741 ...
37742 * sysdeps/x86_64/fpu/multiarch/svml_d_exp8_core-avx2.S: This.
37743 Don't include <sysdep.h> nor <init-arch.h>.
37744 (_ZGVeN8v_exp): Removed.
37745 * sysdeps/x86_64/fpu/multiarch/svml_d_log2_core.S: Renamed to
37746 ...
37747 * sysdeps/x86_64/fpu/multiarch/svml_d_log2_core-sse2.S: This.
37748 Don't include <sysdep.h> nor <init-arch.h>.
37749 (_ZGVbN2v_log): Removed.
37750 * sysdeps/x86_64/fpu/multiarch/svml_d_log4_core.S: Renamed to
37751 ...
37752 * sysdeps/x86_64/fpu/multiarch/svml_d_log4_core-sse.S: This.
37753 Don't include <sysdep.h> nor <init-arch.h>.
37754 (_ZGVdN4v_log): Removed.
37755 * sysdeps/x86_64/fpu/multiarch/svml_d_log8_core.S: Renamed to
37756 ...
37757 * sysdeps/x86_64/fpu/multiarch/svml_d_log8_core-avx2.S: This.
37758 Don't include <sysdep.h> nor <init-arch.h>.
37759 (_ZGVeN8v_log): Removed.
37760 * sysdeps/x86_64/fpu/multiarch/svml_d_pow2_core.S: Renamed to
37761 ...
37762 * sysdeps/x86_64/fpu/multiarch/svml_d_pow2_core-sse2.S: This.
37763 Don't include <sysdep.h> nor <init-arch.h>.
37764 (_ZGVbN2vv_pow): Removed.
37765 * sysdeps/x86_64/fpu/multiarch/svml_d_pow4_core.S: Renamed to
37766 ...
37767 * sysdeps/x86_64/fpu/multiarch/svml_d_pow4_core-sse.S: This.
37768 Don't include <sysdep.h> nor <init-arch.h>.
37769 (_ZGVdN4vv_pow): Removed.
37770 * sysdeps/x86_64/fpu/multiarch/svml_d_pow8_core.S: Renamed to
37771 ...
37772 * sysdeps/x86_64/fpu/multiarch/svml_d_pow8_core-avx2.S: This.
37773 Don't include <sysdep.h> nor <init-arch.h>.
37774 (_ZGVeN8vv_pow): Removed.
37775 * sysdeps/x86_64/fpu/multiarch/svml_d_sin2_core.S: Renamed to
37776 ...
37777 * sysdeps/x86_64/fpu/multiarch/svml_d_sin2_core-sse2.S: This.
37778 Don't include <sysdep.h> nor <init-arch.h>.
37779 (_ZGVbN2v_sin): Removed.
37780 * sysdeps/x86_64/fpu/multiarch/svml_d_sin4_core.S: Renamed to
37781 ...
37782 * sysdeps/x86_64/fpu/multiarch/svml_d_sin4_core-sse.S: This.
37783 Don't include <sysdep.h> nor <init-arch.h>.
37784 (_ZGVbN4v_sin): Removed.
37785 * sysdeps/x86_64/fpu/multiarch/svml_d_sin8_core.S: Renamed to
37786 ...
37787 * sysdeps/x86_64/fpu/multiarch/svml_d_sin8_core-avx2.S: This.
37788 Don't include <sysdep.h> nor <init-arch.h>.
37789 (_ZGVbN8v_sin): Removed.
37790 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos2_core.S: Renamed to
37791 ...
37792 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos2_core-sse2.S: This.
37793 Don't include <sysdep.h> nor <init-arch.h>.
37794 (_ZGVbN2vvv_sincos): Removed.
37795 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos4_core.S: Renamed to
37796 ...
37797 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos4_core-sse.S: This.
37798 Don't include <sysdep.h> nor <init-arch.h>.
37799 (_ZGVdN4vvv_sincos): Removed.
37800 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos8_core.S: Renamed to
37801 ...
37802 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos8_core-avx2.S: This.
37803 Don't include <sysdep.h> nor <init-arch.h>.
37804 (_ZGVeN8vvv_sincos): Removed.
37805 * sysdeps/x86_64/fpu/multiarch/svml_d_cosf16_core.S: Renamed to
37806 ...
37807 * sysdeps/x86_64/fpu/multiarch/svml_d_cosf16_core-avx2.S: This.
37808 Don't include <sysdep.h> nor <init-arch.h>.
37809 (_ZGVeN16v_cosf): Removed.
37810 * sysdeps/x86_64/fpu/multiarch/svml_d_cosf4_core.S: Renamed to
37811 ...
37812 * sysdeps/x86_64/fpu/multiarch/svml_d_cosf4_core-sse2.S: This.
37813 Don't include <sysdep.h> nor <init-arch.h>.
37814 (_ZGVbN4v_cosf): Removed.
37815 * sysdeps/x86_64/fpu/multiarch/svml_d_cosf8_core.S: Renamed to
37816 ...
37817 * sysdeps/x86_64/fpu/multiarch/svml_d_cosf8_core-sse.S: This.
37818 Don't include <sysdep.h> nor <init-arch.h>.
37819 (_ZGVdN8v_cosf): Removed.
37820 * sysdeps/x86_64/fpu/multiarch/svml_d_expf16_core.S: Renamed to
37821 ...
37822 * sysdeps/x86_64/fpu/multiarch/svml_d_expf16_core-avx2.S: This.
37823 Don't include <sysdep.h> nor <init-arch.h>.
37824 (_ZGVeN16v_expf): Removed.
37825 * sysdeps/x86_64/fpu/multiarch/svml_d_expf4_core.S: Renamed to
37826 ...
37827 * sysdeps/x86_64/fpu/multiarch/svml_d_expf4_core-sse2.S: This.
37828 Don't include <sysdep.h> nor <init-arch.h>.
37829 (_ZGVbN4v_expf): Removed.
37830 * sysdeps/x86_64/fpu/multiarch/svml_d_expf8_core.S: Renamed to
37831 ...
37832 * sysdeps/x86_64/fpu/multiarch/svml_d_expf8_core-sse.S: This.
37833 Don't include <sysdep.h> nor <init-arch.h>.
37834 (_ZGVdN8v_expf): Removed.
37835 * sysdeps/x86_64/fpu/multiarch/svml_d_logf16_core.S: Renamed to
37836 ...
37837 * sysdeps/x86_64/fpu/multiarch/svml_d_logf16_core-avx2.S: This.
37838 Don't include <sysdep.h> nor <init-arch.h>.
37839 (_ZGVeN16v_logf): Removed.
37840 * sysdeps/x86_64/fpu/multiarch/svml_d_logf4_core.S: Renamed to
37841 ...
37842 * sysdeps/x86_64/fpu/multiarch/svml_d_logf4_core-sse2.S: This.
37843 Don't include <sysdep.h> nor <init-arch.h>.
37844 (_ZGVbN4v_logf): Removed.
37845 * sysdeps/x86_64/fpu/multiarch/svml_d_logf8_core.S: Renamed to
37846 ...
37847 * sysdeps/x86_64/fpu/multiarch/svml_d_logf8_core-sse.S: This.
37848 Don't include <sysdep.h> nor <init-arch.h>.
37849 (_ZGVdN8v_logf): Removed.
37850 * sysdeps/x86_64/fpu/multiarch/svml_d_powf16_core.S: Renamed to
37851 ...
37852 * sysdeps/x86_64/fpu/multiarch/svml_d_powf16_core-avx2.S: This.
37853 Don't include <sysdep.h> nor <init-arch.h>.
37854 (_ZGVeN16vv_powf): Removed.
37855 * sysdeps/x86_64/fpu/multiarch/svml_d_powf4_core.S: Renamed to
37856 ...
37857 * sysdeps/x86_64/fpu/multiarch/svml_d_powf4_core-sse2.S: This.
37858 Don't include <sysdep.h> nor <init-arch.h>.
37859 (_ZGVbN4vv_powf): Removed.
37860 * sysdeps/x86_64/fpu/multiarch/svml_d_powf8_core.S: Renamed to
37861 ...
37862 * sysdeps/x86_64/fpu/multiarch/svml_d_powf8_core-sse.S: This.
37863 Don't include <sysdep.h> nor <init-arch.h>.
37864 (_ZGVdN8vv_powf): Removed.
37865 * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf16_core.S: Renamed to
37866 ...
37867 * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf16_core-avx2.S: This.
37868 Don't include <sysdep.h> nor <init-arch.h>.
37869 (_ZGVeN16vvv_sincosf): Removed.
37870 * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf4_core.S: Renamed to
37871 ...
37872 * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf4_core-sse2.S: This.
37873 Don't include <sysdep.h> nor <init-arch.h>.
37874 (_ZGVbN4vvv_sincosf): Removed.
37875 * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf8_core.S: Renamed to
37876 ...
37877 * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf8_core-sse.S: This.
37878 Don't include <sysdep.h> nor <init-arch.h>.
37879 (_ZGVdN8vvv_sincosf): Removed.
37880 * sysdeps/x86_64/fpu/multiarch/svml_d_sinf16_core.S: Renamed to
37881 ...
37882 * sysdeps/x86_64/fpu/multiarch/svml_d_sinf16_core-avx2.S: This.
37883 Don't include <sysdep.h> nor <init-arch.h>.
37884 (_ZGVeN16v_sinf): Removed.
37885 * sysdeps/x86_64/fpu/multiarch/svml_d_sinf4_core.S: Renamed to
37886 ...
37887 * sysdeps/x86_64/fpu/multiarch/svml_d_sinf4_core-sse2.S: This.
37888 Don't include <sysdep.h> nor <init-arch.h>.
37889 (_ZGVbN4v_sinf): Removed.
37890 * sysdeps/x86_64/fpu/multiarch/svml_d_sinf8_core.S: Renamed to
37891 ...
37892 * sysdeps/x86_64/fpu/multiarch/svml_d_sinf8_core-sse.S: This.
37893 Don't include <sysdep.h> nor <init-arch.h>.
37894 (_ZGVdN8v_sinf): Removed.
37895
37896 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
37897
37898 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
37899 Add s_ceil-sse4_1, s_ceilf-sse4_1, s_floor-sse4_1,
37900 s_floorf-sse4_1, s_nearbyint-sse4_1, s_nearbyintf-sse4_1,
37901 s_rint-sse4_1 and s_rintf-sse4_1.
37902 * sysdeps/x86_64/fpu/multiarch/ifunc-sse4_1.h: New file.
37903 * sysdeps/x86_64/fpu/multiarch/s_ceil.c: Likewise.
37904 * sysdeps/x86_64/fpu/multiarch/s_ceilf.c: Likewise.
37905 * sysdeps/x86_64/fpu/multiarch/s_floor.c: Likewise.
37906 * sysdeps/x86_64/fpu/multiarch/s_floorf.c: Likewise.
37907 * sysdeps/x86_64/fpu/multiarch/s_nearbyint.c: Likewise.
37908 * sysdeps/x86_64/fpu/multiarch/s_nearbyintf.c: Likewise.
37909 * sysdeps/x86_64/fpu/multiarch/s_rint.c: Likewise.
37910 * sysdeps/x86_64/fpu/multiarch/s_rintf.c: Likewise.
37911 * sysdeps/x86_64/fpu/multiarch/s_ceil.S: Renamed to ...
37912 * sysdeps/x86_64/fpu/multiarch/s_ceil-sse4_1.S: This. Don't
37913 include <machine/asm.h> nor <init-arch.h>. Include <sysdep.h>.
37914 (__ceil): Removed.
37915 * sysdeps/x86_64/fpu/multiarch/s_ceilf.S: Renamed to ...
37916 * sysdeps/x86_64/fpu/multiarch/s_ceilf-sse4_1.S: This. Don't
37917 include <machine/asm.h> nor <init-arch.h>. Include <sysdep.h>.
37918 (__ceilf): Removed.
37919 * sysdeps/x86_64/fpu/multiarch/s_floor.S: Renamed to ...
37920 * sysdeps/x86_64/fpu/multiarch/s_floor-sse4_1.S: This. Don't
37921 include <machine/asm.h> nor <init-arch.h>. Include <sysdep.h>.
37922 (__floor): Removed.
37923 * sysdeps/x86_64/fpu/multiarch/s_floorf.S: Renamed to ...
37924 * sysdeps/x86_64/fpu/multiarch/s_floorf-sse4_1.S: This. Don't
37925 include <machine/asm.h> nor <init-arch.h>. Include <sysdep.h>.
37926 (__floorf): Removed.
37927 * sysdeps/x86_64/fpu/multiarch/s_nearbyint.S: Renamed to ...
37928 * sysdeps/x86_64/fpu/multiarch/s_nearbyint-sse4_1.S: This. Don't
37929 include <machine/asm.h> nor <init-arch.h>. Include <sysdep.h>.
37930 (__nearbyint): Removed.
37931 * sysdeps/x86_64/fpu/multiarch/s_nearbyintf.S: Renamed to ...
37932 * sysdeps/x86_64/fpu/multiarch/s_nearbyintf-sse4_1.S: This. Don't
37933 include <machine/asm.h> nor <init-arch.h>. Include <sysdep.h>.
37934 (__nearbyintf): Removed.
37935 * sysdeps/x86_64/fpu/multiarch/s_rint.S: Renamed to ...
37936 * sysdeps/x86_64/fpu/multiarch/s_rint-sse4_1.S: This. Don't
37937 include <machine/asm.h> nor <init-arch.h>. Include <sysdep.h>.
37938 (__rint): Removed.
37939 * sysdeps/x86_64/fpu/multiarch/s_rintf.S: Renamed to ...
37940 * sysdeps/x86_64/fpu/multiarch/s_rintf-sse4_1.S: This. Don't
37941 include <machine/asm.h> nor <init-arch.h>. Include <sysdep.h>.
37942 (__rintf): Removed.
37943
37944 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
37945
37946 * sysdeps/i386/start.S (_start): Check Check PIC instead of
37947 SHARED. Avoid dynamic relocation against main in static PIE.
37948
37949 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
37950
37951 [BZ #21815]
37952 * elf/Makefile (CFLAGS-tst-prelink.c): New.
37953 (LDFLAGS-tst-prelink): Likewise.
37954
37955 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
37956
37957 * sysdeps/unix/sysv/linux/i386/sysdep.h (I386_USE_SYSENTER):
37958 Define to I386_USE_SYSENTER to 0 or 1 if not defined.
37959 (ENTER_KERNEL): Check if I386_USE_SYSENTER is 1 and check PIC.
37960 (INTERNAL_SYSCALL_MAIN_INLINE): Likewise.
37961 (INTERNAL_SYSCALL_NCS): Likewise.
37962 (LOADARGS_1): Likewise.
37963 (LOADARGS_5): Likewise.
37964 (RESTOREARGS_1): Likewise.
37965 (RESTOREARGS_5): Likewise.
37966
37967 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
37968
37969 * sysdeps/x86_64/memmove.S (MEMCPY_SYMBOL): Don't check SHARED.
37970 (MEMPCPY_SYMBOL): Likewise.
37971 * sysdeps/x86_64/multiarch/ifunc-impl-list.c
37972 (__libc_ifunc_impl_list): Test memcpy and mempcpy in libc.a.
37973 * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Also include
37974 in libc.a.
37975 * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Likewise.
37976 * sysdeps/x86_64/multiarch/memmove-avx512-no-vzeroupper.S:
37977 Likewise.
37978 * sysdeps/x86_64/multiarch/memcpy.c: Also include in libc.a.
37979 (__hidden_ver1): Don't use in libc.a.
37980 * sysdeps/x86_64/multiarch/memmove-sse2-unaligned-erms.S
37981 (__mempcpy): Don't create a weak alias in libc.a.
37982 * sysdeps/x86_64/multiarch/memmove-vec-unaligned-erms.S: Support
37983 libc.a.
37984 * sysdeps/x86_64/multiarch/mempcpy.c: Also include in libc.a.
37985 (__hidden_ver1): Don't use in libc.a.
37986
37987 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
37988
37989 * config.make.in (have-insert): New.
37990 * configure.ac (libc_cv_insert): New. Set to yes if linker
37991 supports INSERT in linker script.
37992 (AC_SUBST(libc_cv_insert): New.
37993 * configure: Regenerated.
37994 * sysdeps/x86_64/Makefile (tests): Add tst-split-dynreloc only
37995 if $(have-insert) == yes.
37996
37997 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
37998
37999 * elf/Makefile (tests): Add vismain only if
38000 $(have-protected-data) == yes.
38001 (tests-pie): Likewise.
38002
38003 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
38004
38005 [BZ #21871]
38006 * sysdeps/x86/cpu-features.c (init_cpu_features): Set
38007 bit_arch_Use_dl_runtime_resolve_opt only with AVX512F.
38008
38009 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
38010
38011 [BZ #21790]
38012 * sysdeps/i386/i586/memset.S
38013 (__memset_zero_constant_len_parameter): Removed.
38014 * sysdeps/i386/i686/memset.S
38015 (__memset_zero_constant_len_parameter): Likewise.
38016 * sysdeps/i386/i686/multiarch/memset_chk.S
38017 (__memset_zero_constant_len_parameter): Likewise.
38018 * sysdeps/x86_64/memset.S (__memset_zero_constant_len_parameter):
38019 Likewise.
38020
38021 2017-08-03 Aurelien Jarno <aurelien@aurel32.net>
38022
38023 * stdlib/getentropy.c (getentropy): Change return type to int.
38024
38025 2017-08-03 Aurelien Jarno <aurelien@aurel32.net>
38026
38027 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Regenerated.
38028
38029 2017-08-03 Joseph Myers <joseph@codesourcery.com>
38030
38031 * math/s_nextafter.c (__nextafter): Use uintN_t instead of
38032 u_intN_t.
38033 * math/s_nexttowardf.c (__nexttowardf): Likewise.
38034 * sysdeps/generic/math_private.h (ieee_double_shape_type):
38035 Likewise.
38036 (ieee_float_shape_type): Likewise.
38037 * sysdeps/i386/fpu/s_fpclassifyl.c (__fpclassifyl): Likewise.
38038 * sysdeps/i386/fpu/s_isnanl.c (__isnanl): Likewise.
38039 * sysdeps/i386/fpu/s_nextafterl.c (__nextafterl): Likewise.
38040 * sysdeps/i386/fpu/s_nexttoward.c (__nexttoward): Likewise.
38041 * sysdeps/i386/fpu/s_nexttowardf.c (__nexttowardf): Likewise.
38042 * sysdeps/ieee754/dbl-64/e_acosh.c (__ieee754_acosh): Likewise.
38043 * sysdeps/ieee754/dbl-64/e_cosh.c (__ieee754_cosh): Likewise.
38044 * sysdeps/ieee754/dbl-64/e_fmod.c (__ieee754_fmod): Likewise.
38045 * sysdeps/ieee754/dbl-64/e_gamma_r.c (__ieee754_gamma_r):
38046 Likewise.
38047 * sysdeps/ieee754/dbl-64/e_hypot.c (__ieee754_hypot): Likewise.
38048 * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_jn): Likewise.
38049 (__ieee754_yn): Likewise.
38050 * sysdeps/ieee754/dbl-64/e_log10.c (__ieee754_log10): Likewise.
38051 * sysdeps/ieee754/dbl-64/e_log2.c (__ieee754_log2): Likewise.
38052 * sysdeps/ieee754/dbl-64/e_rem_pio2.c (__ieee754_rem_pio2):
38053 Likewise.
38054 * sysdeps/ieee754/dbl-64/e_sinh.c (__ieee754_sinh): Likewise.
38055 * sysdeps/ieee754/dbl-64/s_ceil.c (__ceil): Likewise.
38056 * sysdeps/ieee754/dbl-64/s_copysign.c (__copysign): Likewise.
38057 * sysdeps/ieee754/dbl-64/s_erf.c (__erf): Likewise.
38058 (__erfc): Likewise.
38059 * sysdeps/ieee754/dbl-64/s_expm1.c (__expm1): Likewise.
38060 * sysdeps/ieee754/dbl-64/s_finite.c (FINITE): Likewise.
38061 * sysdeps/ieee754/dbl-64/s_floor.c (__floor): Likewise.
38062 * sysdeps/ieee754/dbl-64/s_fpclassify.c (__fpclassify): Likewise.
38063 * sysdeps/ieee754/dbl-64/s_isnan.c (__isnan): Likewise.
38064 * sysdeps/ieee754/dbl-64/s_issignaling.c (__issignaling):
38065 Likewise.
38066 * sysdeps/ieee754/dbl-64/s_llrint.c (__llrint): Likewise.
38067 * sysdeps/ieee754/dbl-64/s_llround.c (__llround): Likewise.
38068 * sysdeps/ieee754/dbl-64/s_lrint.c (__lrint): Likewise.
38069 * sysdeps/ieee754/dbl-64/s_lround.c (__lround): Likewise.
38070 * sysdeps/ieee754/dbl-64/s_modf.c (__modf): Likewise.
38071 * sysdeps/ieee754/dbl-64/s_nextup.c (__nextup): Likewise.
38072 * sysdeps/ieee754/dbl-64/s_remquo.c (__remquo): Likewise.
38073 * sysdeps/ieee754/dbl-64/s_round.c (__round): Likewise.
38074 * sysdeps/ieee754/dbl-64/s_trunc.c (__trunc): Likewise.
38075 * sysdeps/ieee754/dbl-64/wordsize-64/s_issignaling.c
38076 (__issignaling): Likewise.
38077 * sysdeps/ieee754/flt-32/e_atan2f.c (__ieee754_atan2f): Likewise.
38078 * sysdeps/ieee754/flt-32/e_fmodf.c (__ieee754_fmodf): Likewise.
38079 * sysdeps/ieee754/flt-32/e_gammaf_r.c (__ieee754_gammaf_r):
38080 Likewise.
38081 * sysdeps/ieee754/flt-32/e_jnf.c (__ieee754_ynf): Likewise.
38082 * sysdeps/ieee754/flt-32/e_log10f.c (__ieee754_log10f): Likewise.
38083 * sysdeps/ieee754/flt-32/e_powf.c (__ieee754_powf): Likewise.
38084 * sysdeps/ieee754/flt-32/e_rem_pio2f.c (__ieee754_rem_pio2f):
38085 Likewise.
38086 * sysdeps/ieee754/flt-32/e_remainderf.c (__ieee754_remainderf):
38087 Likewise.
38088 * sysdeps/ieee754/flt-32/e_sqrtf.c (__ieee754_sqrtf): Likewise.
38089 * sysdeps/ieee754/flt-32/s_ceilf.c (__ceilf): Likewise.
38090 * sysdeps/ieee754/flt-32/s_copysignf.c (__copysignf): Likewise.
38091 * sysdeps/ieee754/flt-32/s_erff.c (__erff): Likewise.
38092 (__erfcf): Likewise.
38093 * sysdeps/ieee754/flt-32/s_expm1f.c (__expm1f): Likewise.
38094 * sysdeps/ieee754/flt-32/s_finitef.c (FINITEF): Likewise.
38095 * sysdeps/ieee754/flt-32/s_floorf.c (__floorf): Likewise.
38096 * sysdeps/ieee754/flt-32/s_fpclassifyf.c (__fpclassifyf):
38097 Likewise.
38098 * sysdeps/ieee754/flt-32/s_isnanf.c (__isnanf): Likewise.
38099 * sysdeps/ieee754/flt-32/s_issignalingf.c (__issignalingf):
38100 Likewise.
38101 * sysdeps/ieee754/flt-32/s_llrintf.c (__llrintf): Likewise.
38102 * sysdeps/ieee754/flt-32/s_llroundf.c (__llroundf): Likewise.
38103 * sysdeps/ieee754/flt-32/s_lrintf.c (__lrintf): Likewise.
38104 * sysdeps/ieee754/flt-32/s_lroundf.c (__lroundf): Likewise.
38105 * sysdeps/ieee754/flt-32/s_modff.c (__modff): Likewise.
38106 * sysdeps/ieee754/flt-32/s_remquof.c (__remquof): Likewise.
38107 * sysdeps/ieee754/flt-32/s_roundf.c (__roundf): Likewise.
38108 * sysdeps/ieee754/ldbl-128/e_acoshl.c (__ieee754_acoshl):
38109 Likewise.
38110 * sysdeps/ieee754/ldbl-128/e_atan2l.c (__ieee754_atan2l):
38111 Likewise.
38112 * sysdeps/ieee754/ldbl-128/e_atanhl.c (__ieee754_atanhl):
38113 Likewise.
38114 * sysdeps/ieee754/ldbl-128/e_fmodl.c (__ieee754_fmodl): Likewise.
38115 * sysdeps/ieee754/ldbl-128/e_gammal_r.c (__ieee754_gammal_r):
38116 Likewise.
38117 * sysdeps/ieee754/ldbl-128/e_hypotl.c (__ieee754_hypotl):
38118 Likewise.
38119 * sysdeps/ieee754/ldbl-128/e_jnl.c (__ieee754_jnl): Likewise.
38120 (__ieee754_ynl): Likewise.
38121 * sysdeps/ieee754/ldbl-128/e_powl.c (__ieee754_powl): Likewise.
38122 * sysdeps/ieee754/ldbl-128/e_rem_pio2l.c (__ieee754_rem_pio2l):
38123 Likewise.
38124 * sysdeps/ieee754/ldbl-128/e_remainderl.c (__ieee754_remainderl):
38125 Likewise.
38126 * sysdeps/ieee754/ldbl-128/e_sinhl.c (__ieee754_sinhl): Likewise.
38127 * sysdeps/ieee754/ldbl-128/k_cosl.c (__kernel_cosl): Likewise.
38128 * sysdeps/ieee754/ldbl-128/k_sincosl.c (__kernel_sincosl):
38129 Likewise.
38130 * sysdeps/ieee754/ldbl-128/k_sinl.c (__kernel_sinl): Likewise.
38131 * sysdeps/ieee754/ldbl-128/s_ceill.c (__ceill): Likewise.
38132 * sysdeps/ieee754/ldbl-128/s_copysignl.c (__copysignl): Likewise.
38133 * sysdeps/ieee754/ldbl-128/s_erfl.c (__erfcl): Likewise.
38134 * sysdeps/ieee754/ldbl-128/s_fabsl.c (__fabsl): Likewise.
38135 * sysdeps/ieee754/ldbl-128/s_finitel.c (__finitel): Likewise.
38136 * sysdeps/ieee754/ldbl-128/s_floorl.c (__floorl): Likewise.
38137 * sysdeps/ieee754/ldbl-128/s_fpclassifyl.c (__fpclassifyl):
38138 Likewise.
38139 * sysdeps/ieee754/ldbl-128/s_frexpl.c (__frexpl): Likewise.
38140 * sysdeps/ieee754/ldbl-128/s_isnanl.c (__isnanl): Likewise.
38141 * sysdeps/ieee754/ldbl-128/s_issignalingl.c (__issignalingl):
38142 Likewise.
38143 * sysdeps/ieee754/ldbl-128/s_llrintl.c (__llrintl): Likewise.
38144 * sysdeps/ieee754/ldbl-128/s_llroundl.c (__llroundl): Likewise.
38145 * sysdeps/ieee754/ldbl-128/s_lrintl.c (__lrintl): Likewise.
38146 * sysdeps/ieee754/ldbl-128/s_lroundl.c (__lroundl): Likewise.
38147 * sysdeps/ieee754/ldbl-128/s_modfl.c (__modfl): Likewise.
38148 * sysdeps/ieee754/ldbl-128/s_nearbyintl.c (__nearbyintl):
38149 Likewise.
38150 * sysdeps/ieee754/ldbl-128/s_nextafterl.c (__nextafterl):
38151 Likewise.
38152 * sysdeps/ieee754/ldbl-128/s_nexttoward.c (__nexttoward):
38153 Likewise.
38154 * sysdeps/ieee754/ldbl-128/s_nexttowardf.c (__nexttowardf):
38155 Likewise.
38156 * sysdeps/ieee754/ldbl-128/s_nextupl.c (__nextupl): Likewise.
38157 * sysdeps/ieee754/ldbl-128/s_remquol.c (__remquol): Likewise.
38158 * sysdeps/ieee754/ldbl-128/s_rintl.c (__rintl): Likewise.
38159 * sysdeps/ieee754/ldbl-128/s_roundl.c (__roundl): Likewise.
38160 * sysdeps/ieee754/ldbl-128/s_tanhl.c (__tanhl): Likewise.
38161 * sysdeps/ieee754/ldbl-128/s_truncl.c (__truncl): Likewise.
38162 * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c (__ieee754_fmodl):
38163 Likewise.
38164 * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (__ieee754_gammal_r):
38165 Likewise.
38166 * sysdeps/ieee754/ldbl-128ibm/e_powl.c (__ieee754_powl): Likewise.
38167 * sysdeps/ieee754/ldbl-128ibm/e_rem_pio2l.c (__ieee754_rem_pio2l):
38168 Likewise.
38169 * sysdeps/ieee754/ldbl-128ibm/e_remainderl.c
38170 (__ieee754_remainderl): Likewise.
38171 * sysdeps/ieee754/ldbl-128ibm/k_cosl.c (__kernel_cosl): Likewise.
38172 * sysdeps/ieee754/ldbl-128ibm/k_sinl.c (__kernel_sinl): Likewise.
38173 * sysdeps/ieee754/ldbl-128ibm/s_fabsl.c (__fabsl): Likewise.
38174 * sysdeps/ieee754/ldbl-128ibm/s_fpclassifyl.c (___fpclassifyl):
38175 Likewise.
38176 * sysdeps/ieee754/ldbl-128ibm/s_modfl.c (__modfl): Likewise.
38177 * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c (__nexttowardf):
38178 Likewise.
38179 * sysdeps/ieee754/ldbl-128ibm/s_remquol.c (__remquol): Likewise.
38180 * sysdeps/ieee754/ldbl-96/e_acoshl.c (__ieee754_acoshl): Likewise.
38181 * sysdeps/ieee754/ldbl-96/e_asinl.c (__ieee754_asinl): Likewise.
38182 * sysdeps/ieee754/ldbl-96/e_atanhl.c (__ieee754_atanhl): Likewise.
38183 * sysdeps/ieee754/ldbl-96/e_coshl.c (__ieee754_coshl): Likewise.
38184 * sysdeps/ieee754/ldbl-96/e_gammal_r.c (__ieee754_gammal_r):
38185 Likewise.
38186 * sysdeps/ieee754/ldbl-96/e_hypotl.c (__ieee754_hypotl): Likewise.
38187 * sysdeps/ieee754/ldbl-96/e_j0l.c (__ieee754_j0l): Likewise.
38188 (__ieee754_y0l): Likewise.
38189 (pzero): Likewise.
38190 (qzero): Likewise.
38191 * sysdeps/ieee754/ldbl-96/e_j1l.c (__ieee754_j1l): Likewise.
38192 (__ieee754_y1l): Likewise.
38193 (pone): Likewise.
38194 (qone): Likewise.
38195 * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_jnl): Likewise.
38196 (__ieee754_ynl): Likewise.
38197 * sysdeps/ieee754/ldbl-96/e_lgammal_r.c (sin_pi): Likewise.
38198 (__ieee754_lgammal_r): Likewise.
38199 * sysdeps/ieee754/ldbl-96/e_rem_pio2l.c (__ieee754_rem_pio2l):
38200 Likewise.
38201 * sysdeps/ieee754/ldbl-96/e_sinhl.c (__ieee754_sinhl): Likewise.
38202 * sysdeps/ieee754/ldbl-96/s_copysignl.c (__copysignl): Likewise.
38203 * sysdeps/ieee754/ldbl-96/s_erfl.c (__erfl): Likewise.
38204 (__erfcl): Likewise.
38205 * sysdeps/ieee754/ldbl-96/s_frexpl.c (__frexpl): Likewise.
38206 * sysdeps/ieee754/ldbl-96/s_issignalingl.c (__issignalingl):
38207 Likewise.
38208 * sysdeps/ieee754/ldbl-96/s_llrintl.c (__llrintl): Likewise.
38209 * sysdeps/ieee754/ldbl-96/s_llroundl.c (__llroundl): Likewise.
38210 * sysdeps/ieee754/ldbl-96/s_lrintl.c (__lrintl): Likewise.
38211 * sysdeps/ieee754/ldbl-96/s_lroundl.c (__lroundl): Likewise.
38212 * sysdeps/ieee754/ldbl-96/s_modfl.c (__modfl): Likewise.
38213 * sysdeps/ieee754/ldbl-96/s_nexttoward.c (__nexttoward): Likewise.
38214 * sysdeps/ieee754/ldbl-96/s_nexttowardf.c (__nexttowardf):
38215 Likewise.
38216 * sysdeps/ieee754/ldbl-96/s_nextupl.c (__nextupl): Likewise.
38217 * sysdeps/ieee754/ldbl-96/s_remquol.c (__remquol): Likewise.
38218 * sysdeps/ieee754/ldbl-96/s_roundl.c (__roundl): Likewise.
38219 * sysdeps/ieee754/ldbl-96/s_tanhl.c (__tanhl): Likewise.
38220 * sysdeps/ieee754/ldbl-opt/s_nexttowardfd.c (__nldbl_nexttowardf):
38221 Likewise.
38222 * sysdeps/m68k/m680x0/fpu/e_pow.c (s(__ieee754_pow)): Likewise.
38223 * sysdeps/m68k/m680x0/fpu/s_fpclassifyl.c (__fpclassifyl):
38224 Likewise.
38225 * sysdeps/m68k/m680x0/fpu/s_llrint.c (__llrint): Likewise.
38226 * sysdeps/m68k/m680x0/fpu/s_llrintf.c (__llrintf): Likewise.
38227 * sysdeps/m68k/m680x0/fpu/s_llrintl.c (__llrintl): Likewise.
38228 * sysdeps/m68k/m680x0/fpu/s_nextafterl.c (__nextafterl): Likewise.
38229 * sysdeps/x86/fpu/powl_helper.c (__powl_helper): Likewise.
38230
38231 2017-08-03 Florian Weimer <fweimer@redhat.com>
38232
38233 [BZ #21885]
38234 * sysdeps/posix/getaddrinfo.c (gethosts): Release resolver context
38235 on memory allocation failure.
38236
38237 2017-08-03 Alan Modra <amodra@gmail.com>
38238
38239 * sysdeps/powerpc/mod-tlsopt-powerpc.c: Extract from
38240 tst-tlsopt-powerpc.c with function name change and no test harness.
38241 * sysdeps/powerpc/tst-tlsopt-powerpc.c: Remove body of test.
38242 Call tls_get_addr_opt_test.
38243 * sysdeps/powerpc/Makefile (LDFLAGS-tst-tlsopt-powerpc): Don't define.
38244 (modules-names): Add mod-tlsopt-powerpc.
38245 (mod-tlsopt-powerpc.so-no-z-defs): Define.
38246 (tst-tlsopt-powerpc): Depend on .so.
38247 * sysdeps/powerpc/powerpc64/tls-macros.h (__TLS_GET_ADDR): Don't
38248 define. Expand use in TLS_GD and TLS_LD.
38249
38250 2017-08-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
38251
38252 * sysdeps/mach/hurd/enbl-secure.c (__libc_init_secure): Define
38253 function.
38254 * sysdeps/posix/shm_open.c: Include <pthread.h>.
38255
38256 2017-08-02 Joseph Myers <joseph@codesourcery.com>
38257
38258 [BZ #21686]
38259 * math/tgmath.h (__TGMATH_BINARY_REAL_ONLY): Add arguments before
38260 comparing size with that of double.
38261 (__TGMATH_BINARY_REAL_STD_ONLY): Likewise.
38262 (__TGMATH_BINARY_REAL_RET_ONLY): Likewise.
38263 (__TGMATH_TERNARY_FIRST_SECOND_REAL_ONLY): Likewise.
38264 (__TGMATH_TERNARY_REAL_ONLY): Likewise.
38265 (__TGMATH_BINARY_REAL_IMAG): Likewise.
38266 * math/gen-tgmath-tests.py (Type.init_types): Create __int128 and
38267 unsigned __int128 types.
38268
38269 2017-08-02 Steve Ellcey <sellcey@cavium.com>
38270
38271 * localedata/Makefile (CFLAGS-tst_iswalnum.c, CFLAGS-tst_iswalpha.c
38272 CFLAGS-tst_iswcntrl.c, CFLAGS-tst_iswdigit.c, CFLAGS-tst_iswgraph.c,
38273 CFLAGS-tst_iswlower.c, CFLAGS-tst_iswprint.c, CFLAGS-tst_iswpunct.c,
38274 CFLAGS-tst_iswspace.c, CFLAGS-tst_iswupper.c, CFLAGS-tst_iswxdigit.c,
38275 CFLAGS-tst_towlower.c, CFLAGS-tst_towupper.c): Remove.
38276
38277 2017-08-02 H.J. Lu <hongjiu.lu@intel.com>
38278
38279 * sysdeps/x86_64/start.S (_start): Check PIC instead of SHARED.
38280
38281 2017-08-02 H.J. Lu <hongjiu.lu@intel.com>
38282
38283 * sysdeps/i386/i686/multiarch/memcmp-sse4.S: Check PIC instead
38284 of SHARED.
38285 * sysdeps/i386/i686/multiarch/memcpy-sse2-unaligned.S: Likewise.
38286 * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S: Likewise.
38287 * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Likewise.
38288 * sysdeps/i386/i686/multiarch/memset-sse2-rep.S: Likewise.
38289 * sysdeps/i386/i686/multiarch/memset-sse2.S: Likewise.
38290 * sysdeps/i386/i686/multiarch/strcat-sse2.S: Likewise.
38291 * sysdeps/i386/i686/multiarch/strcpy-sse2.S: Likewise.
38292
38293 2017-08-02 Joseph Myers <joseph@codesourcery.com>
38294
38295 [BZ #21685]
38296 * math/tgmath.h (__tgmath_real_type): Use unary + on potentially
38297 bit-field expressions passed to sizeof or typeof.
38298 [__HAVE_FLOAT128 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
38299 (__TGMATH_F128): Likewise.
38300 [__HAVE_FLOAT128 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
38301 (__TGMATH_CF128): Likewise.
38302 (__TGMATH_UNARY_REAL_ONLY): Likewise.
38303 (__TGMATH_UNARY_REAL_RET_ONLY): Likewise.
38304 (__TGMATH_BINARY_FIRST_REAL_ONLY): Likewise.
38305 (__TGMATH_BINARY_FIRST_REAL_STD_ONLY): Likewise.
38306 (__TGMATH_BINARY_REAL_ONLY): Likewise.
38307 (__TGMATH_BINARY_REAL_STD_ONLY): Likewise.
38308 (__TGMATH_BINARY_REAL_RET_ONLY): Likewise.
38309 (__TGMATH_TERNARY_FIRST_SECOND_REAL_ONLY): Likewise.
38310 (__TGMATH_TERNARY_REAL_ONLY): Likewise.
38311 (__TGMATH_TERNARY_FIRST_REAL_RET_ONLY): Likewise.
38312 (__TGMATH_UNARY_REAL_IMAG): Likewise.
38313 (__TGMATH_UNARY_IMAG): Likewise.
38314 (__TGMATH_UNARY_REAL_IMAG_RET_REAL): Likewise.
38315 (__TGMATH_BINARY_REAL_IMAG): Likewise.
38316 * math/gen-tgmath-tests.py (Type.init_types): Create bit_field
38317 type.
38318 (define_vars_for_type): Handle bit_field type specially.
38319 (Tests.__init__): Declare structure with bit-field element.
38320
38321 2017-08-02 H.J. Lu <hongjiu.lu@intel.com>
38322
38323 [BZ #21791]
38324 * sysdeps/i386/i686/multiarch/memcpy-sse2-unaligned.S
38325 (MEMCPY_CHK): Define only if SHARED is defined.
38326 * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S (MEMCPY_CHK):
38327 Likewise.
38328 * sysdeps/i386/i686/multiarch/memcpy-ssse3.S (MEMCPY_CHK):
38329 Likewise.
38330
38331 See ChangeLog.18 for earlier changes.