]> git.ipfire.org Git - thirdparty/glibc.git/blob - ChangeLog
00658e68350cff75c118358c24b86cc499ccbef4
[thirdparty/glibc.git] / ChangeLog
1 2019-09-09 Paul Eggert <eggert@cs.ucla.edu>
2
3 Fix http: URL in 'configure'
4 * configure.ac: Add URL to AC_INIT so that it generates an
5 https: URL instead of an http: URL.
6 * configure: Regenerate.
7
8 Regenerate charmap-kw.h, locfile-kw.h
9 This propagates the recent http->https URL changes.
10 Since I used gperf 3.1 to regenerate, this is also a minor
11 internal-to-localedef API change.
12 URL problem reported by Joseph Myers in:
13 https://www.sourceware.org/ml/libc-alpha/2019-09/msg00143.html
14 * locale/programs/charmap-kw.h, locale/programs/locfile-kw.h:
15 Regenerate with gperf 3.1.
16 * locale/programs/linereader.h (kw_hash_fct_t):
17 * locale/programs/repertoire.c (repertoiremap_hash):
18 2nd arg is now size_t not unsigned, for compatibility with gperf 3.1.
19
20 2019-09-05 Florian Weimer <fweimer@redhat.com>
21
22 [BZ #24962]
23 * locale/localeinfo.h (_nl_category_names): Remove union wrapper.
24 (_nl_category_names_get): New function.
25 * intl/dcigettext.c (category_to_name): Call it.
26 * locale/findlocale.c (_nl_find_locale): Likewise.
27 * intl/loadlocale.c (_nl_load_locale): Likewise.
28 * locale/newlocale.c (__newlocale): Likewise.
29 * locale/setlocale.c (_nl_category_names): Adjust definition.
30 (_nl_category_name_idxs): Likewise.
31 (new_composite_name): Call _nl_category_names_get.
32 (setlocale): Likewise.
33
34 2019-09-05 Gabriel F. T. Gomes <gabrielftg@linux.ibm.com>
35
36 * math/bits/mathcalls.h (totalorder, totalordermag): Replace
37 const attribute with pure attribute.
38
39 2019-09-04 Lukasz Majewski <lukma@denx.de>
40
41 * sysdeps/unix/sysv/linux/kernel-features.h
42 (__ASSUME_TIME64_SYSCALLS): New macro.
43
44 2019-09-04 Zack Weinberg <zackw@panix.com>
45
46 [BZ #24959]
47 * rt/clock_getcpuclockid.c: Move to time/clock_getcpuclockid.c.
48 * rt/clock_getres.c: Move to time/clock_getres.c.
49 * rt/clock_gettime.c: Move to time/clock_gettime.c.
50 * rt/clock_nanosleep.c: Move to time/clock_nanosleep.c.
51 * rt/clock_settime.c: Move to time/clock_settime.c.
52 * rt/tst-clock.c: Move to time/tst-clock.c.
53 * rt/tst-clock2.c: Move to time/tst-clock2.c.
54 * rt/tst-clock_nanosleep.c: Move to time/tst-clock_nanosleep.c.
55 * rt/tst-cpuclock1.c: Move to time/tst-cpuclock1.c.
56 * rt/clock-compat.c: Delete file.
57
58 * time/clock_getcpuclockid.c
59 * time/clock_getres.c
60 * time/clock_gettime.c
61 * time/clock_nanosleep.c
62 * time/clock_settime.c
63 * sysdeps/posix/clock_getres.c
64 * sysdeps/unix/clock_gettime.c
65 * sysdeps/unix/clock_nanosleep.c
66 * sysdeps/unix/clock_settime.c
67 * sysdeps/unix/sysv/linux/clock_getcpuclockid.c
68 * sysdeps/unix/sysv/linux/clock_getres.c
69 * sysdeps/unix/sysv/linux/clock_gettime.c
70 * sysdeps/unix/sysv/linux/clock_nanosleep.c
71 * sysdeps/unix/sysv/linux/clock_settime.c: Define the function
72 defined by this file with default symbol version GLIBC_2_17,
73 and optionally a compatibility alias at symbol version GLIBC_2_2.
74 * include/time.h: Remove internal prototypes for clock_getres,
75 clock_nanosleep, and clock_getcpuclockid.
76
77 * sysdeps/unix/sysv/linux/clock_gettime.c: Prune includes.
78 Remove unused function realtime_gettime.
79
80 * rt/Makefile (clock-routines, routines): Remove variable.
81 (librt-routines): Remove clock-compat.
82 (tests): Remove tst-clock, tst-clock2, tst-clock_nanosleep,
83 and tst-cpuclock1.
84 * time/Makefile (routines): Add clock_getres, clock_gettime,
85 clock_settime, clock_getcpuclockid, and clock_nanosleep.
86 (tests): Add tst-clock, tst-clock2, tst-clock_nanosleep,
87 and tst-cpuclock1.
88
89 * rt/Versions (libc): Remove entire stanza.
90 (librt GLIBC_2.2): Remove all clock_* functions.
91 * time/Versions (libc GLIBC_2.2, libc GLIBC_2.17):
92 Add clock_getres, clock_gettime, clock_settime,
93 clock_getcpuclockid, and clock_nanosleep.
94 (libc GLIBC_PRIVATE): Add __clock_gettime.
95
96 * sysdeps/mach/hurd/i386/librt.abilist
97 * sysdeps/unix/sysv/linux/alpha/librt.abilist
98 * sysdeps/unix/sysv/linux/arm/be/librt.abilist
99 * sysdeps/unix/sysv/linux/arm/le/librt.abilist
100 * sysdeps/unix/sysv/linux/hppa/librt.abilist
101 * sysdeps/unix/sysv/linux/i386/librt.abilist
102 * sysdeps/unix/sysv/linux/ia64/librt.abilist
103 * sysdeps/unix/sysv/linux/m68k/coldfire/librt.abilist
104 * sysdeps/unix/sysv/linux/m68k/m680x0/librt.abilist
105 * sysdeps/unix/sysv/linux/microblaze/be/librt.abilist
106 * sysdeps/unix/sysv/linux/microblaze/le/librt.abilist
107 * sysdeps/unix/sysv/linux/mips/mips32/librt.abilist
108 * sysdeps/unix/sysv/linux/mips/mips64/librt.abilist
109 * sysdeps/unix/sysv/linux/powerpc/powerpc32/librt.abilist
110 * sysdeps/unix/sysv/linux/powerpc/powerpc64/be/librt.abilist
111 * sysdeps/unix/sysv/linux/s390/s390-32/librt.abilist
112 * sysdeps/unix/sysv/linux/s390/s390-64/librt.abilist
113 * sysdeps/unix/sysv/linux/sh/librt.abilist
114 * sysdeps/unix/sysv/linux/sparc/sparc32/librt.abilist
115 * sysdeps/unix/sysv/linux/sparc/sparc64/librt.abilist
116 * sysdeps/unix/sysv/linux/x86_64/64/librt.abilist
117 * sysdeps/unix/sysv/linux/x86_64/x32/librt.abilist:
118 Remove entries for clock_getres, clock_gettime, clock_settime,
119 clock_getcpuclockid, and clock_nanosleep.
120
121 * sysdeps/mach/hurd/i386/libc.abilist
122 * sysdeps/unix/sysv/linux/alpha/libc.abilist
123 * sysdeps/unix/sysv/linux/arm/libc.abilist
124 * sysdeps/unix/sysv/linux/hppa/libc.abilist
125 * sysdeps/unix/sysv/linux/i386/libc.abilist
126 * sysdeps/unix/sysv/linux/ia64/libc.abilist
127 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist
128 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist
129 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist
130 * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist
131 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist
132 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist
133 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist
134 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist
135 * sysdeps/unix/sysv/linux/powerpc/powerpc64/be/libc.abilist
136 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist
137 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist
138 * sysdeps/unix/sysv/linux/sh/be/libc.abilist
139 * sysdeps/unix/sysv/linux/sh/le/libc.abilist
140 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist
141 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist
142 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist
143 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist:
144 Add another set of entries for clock_getres, clock_gettime,
145 clock_settime, clock_getcpuclockid, and clock_nanosleep at
146 whatever version GLIBC_2.2 maps to.
147
148 2019-09-03 Aurelien Jarno <aurelien@aurel32.net>
149
150 * sysdeps/alpha/fpu/libm-test-ulps: Regenerated using GCC 9.2.
151
152 2019-09-03 Florian Weimer <fweimer@redhat.com>
153
154 [BZ #24950]
155 * locale/programs/charmap.h (struct charseq): Turn bytes into a
156 flexible array member.
157 * locale/programs/ld-ctype.c (ctype_finish): Use initializer for
158 replace.
159
160 2019-09-02 Florian Weimer <fweimer@redhat.com>
161
162 * misc/tst-mntent-autofs.c: New file.
163 * misc/Makefile (tests): Add misc/tst-mntent-autofs.
164
165 2019-09-02 Ian Kent <ikent@redhat.com>
166
167 Use autofs "ignore" mount hint in getmntent_r/getmntent.
168 * misc/mntent_r.c (get_mnt_entry): New function, extracted from
169 getmntent_r.
170 (__getmntent_r): Call it. Filter out autofs entries with an
171 "ignore" mount option.
172
173 2019-08-30 Wilco Dijkstra <wdijkstr@arm.com>
174
175 * benchtests/bench-memcpy.c (simple_memcpy): Remove.
176 (generic_memcpy): Include generic C memcpy.
177 * benchtests/bench-memmove.c (simple_memmove): Remove.
178 (generic_memmove): Include generic C memmove.
179 * benchtests/bench-memset.c (simple_memset): Remove.
180 (generic_memset): Include generic C memset.
181 * benchtests/bench-memset-large.c (simple_memset): Remove.
182 (generic_memset): Include generic C memset.
183 * benchtests/bench-memset-walk.c (simple_memset): Remove.
184 (generic_memset): Include generic C memset.
185 * string/memcpy.c (MEMCPY): Add defines to enable redirection.
186 * string/memset.c (MEMSET): Likewise.
187 * sysdeps/x86_64/memcopy.h: Remove empty file.
188
189 2019-08-30 Florian Weimer <fweimer@redhat.com>
190
191 nptl: Move pthread_attr_getinheritsched implementation into libc.
192 * nptl/Makefile (routines): Add pthread_attr_getinheritsched.
193 (libpthread-routines): Remove pthread_attr_getinheritsched.
194 * nptl/Versions (libpthread GLIBC_2.0): Remove
195 pthread_attr_getinheritsched.
196 * nptl/forward.c (pthread_attr_getinheritsched): Remove definition.
197 * nptl/nptl-init.c (pthread_functions): Remove initializer for
198 ptr_pthread_attr_getinheritsched.
199 * sysdeps/nptl/pthread-functions.h (struct pthread_functions):
200 Remove ptr_pthread_attr_getinheritsched member.
201 * sysdeps/unix/sysv/linux/aarch64/libpthread.abilist (GLIBC_2.17):
202 Remove pthread_attr_getinheritsched.
203 * sysdeps/unix/sysv/linux/alpha/libpthread.abilist (GLIBC_2.0):
204 Likewise.
205 * sysdeps/unix/sysv/linux/arm/be/libpthread.abilist (GLIBC_2.4):
206 Likewise.
207 * sysdeps/unix/sysv/linux/arm/le/libpthread.abilist (GLIBC_2.4):
208 Likewise.
209 * sysdeps/unix/sysv/linux/csky/libpthread.abilist (GLIBC_2.29):
210 Likewise.
211 * sysdeps/unix/sysv/linux/hppa/libpthread.abilist (GLIBC_2.2):
212 Likewise.
213 * sysdeps/unix/sysv/linux/i386/libpthread.abilist (GLIBC_2.0):
214 Likewise.
215 * sysdeps/unix/sysv/linux/ia64/libpthread.abilist (GLIBC_2.2):
216 Likewise.
217 * sysdeps/unix/sysv/linux/m68k/coldfire/libpthread.abilist
218 (GLIBC_2.4): Likewise.
219 * sysdeps/unix/sysv/linux/m68k/m680x0/libpthread.abilist
220 (GLIBC_2.0): Likewise.
221 * sysdeps/unix/sysv/linux/microblaze/be/libpthread.abilist
222 (GLIBC_2.18): Likewise.
223 * sysdeps/unix/sysv/linux/microblaze/le/libpthread.abilist
224 (GLIBC_2.18): Likewise.
225 * sysdeps/unix/sysv/linux/mips/mips32/libpthread.abilist
226 (GLIBC_2.0): Likewise.
227 * sysdeps/unix/sysv/linux/mips/mips64/libpthread.abilist
228 (GLIBC_2.0): Likewise.
229 * sysdeps/unix/sysv/linux/nios2/libpthread.abilist (GLIBC_2.21):
230 Likewise.
231 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libpthread.abilist
232 (GLIBC_2.0): Likewise.
233 * sysdeps/unix/sysv/linux/powerpc/powerpc64/be/libpthread.abilist
234 (GLIBC_2.3): Likewise.
235 * sysdeps/unix/sysv/linux/powerpc/powerpc64/le/libpthread.abilist
236 (GLIBC_2.17): Likewise.
237 * sysdeps/unix/sysv/linux/riscv/rv64/libpthread.abilist
238 (GLIBC_2.27): Likewise.
239 * sysdeps/unix/sysv/linux/s390/s390-32/libpthread.abilist
240 (GLIBC_2.0): Likewise.
241 * sysdeps/unix/sysv/linux/s390/s390-64/libpthread.abilist
242 (GLIBC_2.2): Likewise.
243 * sysdeps/unix/sysv/linux/sh/be/libpthread.abilist (GLIBC_2.2):
244 Likewise.
245 * sysdeps/unix/sysv/linux/sh/le/libpthread.abilist (GLIBC_2.2):
246 Likewise.
247 * sysdeps/unix/sysv/linux/sparc/sparc32/libpthread.abilist
248 (GLIBC_2.0): Likewise.
249 * sysdeps/unix/sysv/linux/sparc/sparc64/libpthread.abilist
250 (GLIBC_2.2): Likewise.
251 * sysdeps/unix/sysv/linux/x86_64/64/libpthread.abilist
252 (GLIBC_2.2.5): Likewise.
253 * sysdeps/unix/sysv/linux/x86_64/x32/libpthread.abilist
254 (GLIBC_2.16): Likewise.
255
256 2019-08-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
257
258 * sysdeps/mach/hurd/getcwd.c
259 (_hurd_canonicalize_directory_name_internal): Do not remove the heading
260 slash if we got an unknown root directory. (__getcwd): Do not fail with
261 EGRATUITOUS if we got an unknown root directory.
262 * hurd/hurdselect.c (SELECT_ERROR): New macro.
263 (_hurd_select):
264 - Add `error' field to `d' structures array.
265 - If a poll descriptor is bogus, set EBADF, but continue with a zero
266 timeout.
267 - Go through the whole fd_set, not only until _hurd_dtablesize. Return
268 EBADF there is any bit set above _hurd_dtablesize.
269 - Do not request io_select on bogus descriptors (SELECT_ERROR).
270 - On io_select request error, record the error.
271 - On io_select bogus reply, use EIO error code.
272 - On io_select bogus or error reply, record the error.
273 - Do not destroy reply port for bogus FDs.
274 - On error, make poll set POLLHUP in the EPIPE case, POLLNVAL in the
275 EBADF case, or else POLLERR.
276 - On error, make select simulated readiness.
277
278 [BZ #19903]
279 * sysdeps/mach/hurd/mmap.c (__mmap): Remove optimizing anonymous maps
280 as __vm_allocate.
281
282 * sysdeps/mach/hurd/i386/sigreturn.c (__sigreturn2): New function,
283 unlocks SS and returns to the saved PC.
284 (__sigreturn): Do not unlock SS, and "return" into __sigreturn2 on the
285 thread stack instead of the saved PC.
286
287 2019-08-30 Richard Braun <rbraun@sceen.net>
288
289 * hurd/hurdselect.c (_hurd_select): Always call __io_select with no
290 timeout.
291 * sysdeps/mach/hurd/setitimer.c (setitimer_locked): Fix preemptor setup.
292 * hurd/Makefile (user-interfaces): Add io_reply and io_request.
293 * hurd/hurdselect.c: Include <sys/time.h>, <hurd/io_request.h> and
294 <limits.h>.
295 (_hurd_select): Replace the call to __io_select with either
296 __io_select_request or __io_select_timeout_request, depending on the
297 timeout. Count the number of ready descriptors (replies for which at
298 least one type bit is set). Implement the timeout locally when there is
299 no file descriptor.
300
301 2019-08-29 Mihailo Stojanovic <mihailo.stojanovic@rt-rk.com>
302
303 * elf/dl-addr.c (determine_info): Calculate the symbol index
304 using the newly defined ELF_MACHINE_HASH_SYMIDX macro.
305 * elf/dl-lookup.c (do_lookup_x): Ditto.
306 (_dl_setup_hash): Initialize MIPS xhash translation table.
307 * elf/elf.h (SHT_MIPS_XHASH): New define.
308 (DT_MIPS_XHASH): New define.
309 * sysdeps/generic/ldsodefs.h (ELF_MACHINE_GNU_HASH_ADDRIDX): New
310 define.
311 (ELF_MACHINE_HASH_SYMIDX): Ditto.
312 (ELF_MACHINE_XHASH_SETUP): Ditto.
313 * sysdeps/mips/ldsodefs.h (ELF_MACHINE_GNU_HASH_ADDRIDX): New
314 define.
315 (ELF_MACHINE_HASH_SYMIDX): Ditto.
316 (ELF_MACHINE_XHASH_SETUP): Ditto.
317 * sysdeps/mips/linkmap.h (struct link_map_machine): New member.
318 * sysdeps/unix/sysv/linux/mips/ldsodefs.h: Increment valid ABI
319 version.
320 * sysdeps/unix/sysv/linux/mips/libc-abis: New ABI version.
321
322 2019-08-29 Adhemerval Zanella <adhemerval.zanella@linaro.org>
323
324 * sysdeps/sh/preconfigure.ac: New file.
325 * sysdeps/sh/preconfigure: Regenerate.
326 * sysdeps/sh/be/sh3/Implies: New file.
327 * sysdeps/sh/be/sh4/Implies: Likewise.
328 * sysdeps/sh/le/sh3/Implies: Likewise.
329 * sysdeps/sh/le/sh4/Implies: Likewise.
330 * sysdeps/unix/sysv/linux/sh/le/sh3/Implies: Likewise.
331 * sysdeps/unix/sysv/linux/sh/le/sh4/Implies: Likewise.
332 * sysdeps/unix/sysv/linux/sh/*.abilist: Move to
333 sysdeps/unix/sysv/linux/sh/le/*.abilist.
334 * sysdeps/unix/sysv/linux/sh/be/*.abilist: New files.
335
336 * sysdeps/microblaze/preconfigure.ac: New file.
337 * sysdeps/microblaze/preconfigure: Regenerate.
338 * sysdeps/microblaze/be/implies: New file.
339 * sysdeps/microblaze/le/implies: Likewise.
340 * sysdeps/unix/sysv/linux/microblaze/be/implies: Likewise.
341 * sysdeps/unix/sysv/linux/microblaze/le/implies: Likewise.
342 * sysdeps/unix/sysv/linux/microblaze/*.abilist. Move to
343 sysdeps/unix/sysv/linux/microblaze/be/*.abilist.
344 * sysdeps/unix/sysv/linux/microblaze/le/*.abilist: New files.
345
346 * sysdeps/arm/preconfigure.ac: Set machine based on endianness.
347 * sysdeps/arm/preconfigure: Regenerate.
348 * sysdeps/arm/be/Implies: New file.
349 * sysdeps/arm/be/armv6/Implies: Likewise.
350 * sysdeps/arm/be/armv6t2/Implies: Likewise.
351 * sysdeps/arm/be/armv7/Implies: Likewise.
352 * sysdeps/arm/le/Implies: Likewise.
353 * sysdeps/unix/sysv/linux/arm/be/Implies: Likewise.
354 * sysdeps/unix/sysv/linux/arm/le/Implies: Likewise.
355 * sysdeps/unix/sysv/linux/arm/*.abilist: Move to
356 sysdeps/unix/sysv/linux/arm/le/*.abilist.
357 * sysdeps/unix/sysv/linux/arm/be/l*.abilist: New files.
358
359 2019-08-27 Paul Eggert <eggert@cs.ucla.edu>
360
361 Fix posix/tst-regex by using UTF-8 and own test input
362 Problem reported by Stefan Liebler in:
363 https://sourceware.org/ml/libc-alpha/2019-08/msg00658.html
364 * posix/tst-regex.c: Convert this file from Latin-1 to UTF-8.
365 (do_test, test_expr): Adjust to the fact that this source file,
366 and the test data in ChangeLog.8, is now UTF-8 instead of Latin-1.
367 * posix/tst-regex.input: Copy from ChangeLog.old/ChangeLog.8,
368 so that it is now UTF-8.
369
370 2019-08-28 Paul A. Clarke <pc@us.ibm.com>
371
372 * sysdeps/powerpc/fpu/fenv_libc.h (fegetenv_status_ISA300): Delete.
373 (fegetenv_status): Generate 'mffsl' unconditionally.
374
375 2019-08-28 Paul A. Clarke <pc@us.ibm.com>
376
377 * sysdeps/powerpc/fpu/fesetenv.c (__fesetenv): Utilize lightweight
378 FPSCR read.
379 (_FPU_MASK_ALL): Delete.
380
381 2019-08-28 Paul A. Clarke <pc@us.ibm.com>
382
383 * sysdeps/powerpc/fpu/fenv_private.h (libc_feholdsetround_ppc_ctx):
384 Utilize lightweight FPSCR read if possible, set fewer FPSCR bits
385 if possible.
386 (libc_feresetround_ppc): Replace call to __libc_femergeenv_ppc
387 with simpler required steps, set fewer FPSCR bits if possible.
388
389 2019-08-28 Paul A. Clarke <pc@us.ibm.com>
390
391 * sysdeps/powerpc/fpu/fenv_libc.h (fesetenv_mode): New.
392 (FPSCR_FPRF_MASK): New. (FPSCR_STATUS_MASK): New.
393 * sysdeps/powerpc/fpu/feenablxcpt.c (feenableexcept): Use lighter-
394 weight access to FPSCR; remove unnecessary second FPSCR read and
395 validate.
396 * sysdeps/powerpc/fpu/fedisblxcpt.c (fedisableexcept): Likewise.
397 * sysdeps/powerpc/fpu/fesetmode.c (fesetmode): Use lighter-weight
398 access to FPSCR; Use macros in fenv_libc.h in favor of local.
399
400 2019-08-28 Paul A. Clarke <pc@us.ibm.com>
401
402 * sysdeps/powerpc/fpu/fenv_libc.h: Define FPSCR bitmasks.
403 (fenv_reg_to_exceptions): Replace bitwise operations with mask-shift.
404 (fenv_exceptions_to_reg): New.
405 * sysdeps/powerpc/fpu/fedisblxcpt.c (fedisableexcept): Replace bitwise
406 operation with call to fenv_exceptions_to_reg().
407 * sysdeps/powerpc/fpu/feenablxcpt.c (feenableexcept): Likewise.
408
409 2019-08-28 Florian Weimer <fweimer@redhat.com>
410
411 * misc/mntent.c (struct mntent_buffer): Define.
412 (mntent_buffer): Adjust type to void *.
413 (allocate): Adjust for allocate_once.
414 (deallocate): New function.
415 (getmntent): Call allocate_once.
416
417 2019-08-28 Florian Weimer <fweimer@redhat.com>
418
419 nptl: Move pthread_attr_setdetachstate implementation into libc.
420 * nptl/Makefile (routines): Add pthread_attr_setdetachstate.
421 (libpthread-routines): Remove pthread_attr_setdetachstate.
422 * nptl/Versions (libpthread GLIBC_2.0): Remove
423 pthread_attr_setdetachstate.
424 * nptl/forward.c (pthread_attr_setdetachstate): Remove definition.
425 * nptl/nptl-init.c (pthread_functions): Remove initializer for
426 ptr_pthread_attr_setdetachstate.
427 * sysdeps/nptl/pthread-functions.h (struct pthread_functions):
428 Remove ptr_pthread_attr_setdetachstate member.
429 * sysdeps/unix/sysv/linux/aarch64/libpthread.abilist (GLIBC_2.17):
430 Remove pthread_attr_setdetachstate.
431 * sysdeps/unix/sysv/linux/alpha/libpthread.abilist (GLIBC_2.0):
432 Likewise.
433 * sysdeps/unix/sysv/linux/arm/libpthread.abilist (GLIBC_2.4):
434 Likewise.
435 * sysdeps/unix/sysv/linux/csky/libpthread.abilist (GLIBC_2.29):
436 Likewise.
437 * sysdeps/unix/sysv/linux/hppa/libpthread.abilist (GLIBC_2.2):
438 Likewise.
439 * sysdeps/unix/sysv/linux/i386/libpthread.abilist (GLIBC_2.0):
440 Likewise.
441 * sysdeps/unix/sysv/linux/ia64/libpthread.abilist (GLIBC_2.2):
442 Likewise.
443 * sysdeps/unix/sysv/linux/m68k/coldfire/libpthread.abilist
444 (GLIBC_2.4): Likewise.
445 * sysdeps/unix/sysv/linux/m68k/m680x0/libpthread.abilist
446 (GLIBC_2.0): Likewise.
447 * sysdeps/unix/sysv/linux/microblaze/libpthread.abilist
448 (GLIBC_2.18): Likewise.
449 * sysdeps/unix/sysv/linux/mips/mips32/libpthread.abilist
450 (GLIBC_2.0): Likewise.
451 * sysdeps/unix/sysv/linux/mips/mips64/libpthread.abilist
452 (GLIBC_2.0): Likewise.
453 * sysdeps/unix/sysv/linux/nios2/libpthread.abilist (GLIBC_2.21):
454 Likewise.
455 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libpthread.abilist
456 (GLIBC_2.0): Likewise.
457 * sysdeps/unix/sysv/linux/powerpc/powerpc64/be/libpthread.abilist
458 (GLIBC_2.3): Likewise.
459 * sysdeps/unix/sysv/linux/powerpc/powerpc64/le/libpthread.abilist
460 (GLIBC_2.17): Likewise.
461 * sysdeps/unix/sysv/linux/riscv/rv64/libpthread.abilist
462 (GLIBC_2.27): Likewise.
463 * sysdeps/unix/sysv/linux/s390/s390-32/libpthread.abilist
464 (GLIBC_2.0): Likewise.
465 * sysdeps/unix/sysv/linux/s390/s390-64/libpthread.abilist
466 (GLIBC_2.2): Likewise.
467 * sysdeps/unix/sysv/linux/sh/libpthread.abilist (GLIBC_2.2):
468 Likewise.
469 * sysdeps/unix/sysv/linux/sparc/sparc32/libpthread.abilist
470 (GLIBC_2.0): Likewise.
471 * sysdeps/unix/sysv/linux/sparc/sparc64/libpthread.abilist
472 (GLIBC_2.2): Likewise.
473 * sysdeps/unix/sysv/linux/x86_64/64/libpthread.abilist
474 (GLIBC_2.2.5): Likewise.
475 * sysdeps/unix/sysv/linux/x86_64/x32/libpthread.abilist
476 (GLIBC_2.16): Likewise.
477
478 2019-08-28 Florian Weimer <fweimer@redhat.com>
479
480 [BZ #24902]
481 * login/Makefile (tests): Add tst-pututxline-lockfail.
482 (tst-pututxline-lockfail): Link with -lpthread.
483 * login/utmp_file.c (internal_getut_r): Remove buffer argument.
484 (__libc_getutid_r): Adjust.
485 (__libc_pututline): Likewise. Check for file_offset == -1.
486 * login/tst-pututxline-lockfail.c: New file.
487
488 2019-08-28 Stefan Liebler <stli@linux.ibm.com>
489
490 * posix/tst-regex.c (do_test): Use tst-regex.input as input file.
491 * posix/tst-regex.input: New file.
492
493 2019-08-23 Mihailo Stojanovic <mihailo.stojanovic@rt-rk.com>
494
495 [BZ #24916]
496 * sysdeps/mips/Makefile [$(subdir) = elf] (tests): Add
497 tst-undefined-weak.
498 [$(subdir) = elf] (modules-names): Add tst-undefined-weak-lib.
499 [$(subdir) = elf] ($(objpfx)tst-undefined-weak): Add dependency.
500 * sysdeps/mips/tst-undefined-weak-lib.S: New file.
501 * sysdeps/mips/tst-undefined-weak.c: Likewise.
502 * sysdeps/unix/sysv/linux/mips/ldsodefs.h (VALID_ELF_ABIVERSION):
503 Increment highest valid ABIVERSION value.
504
505 2019-08-23 Dragan Mladjenovic <dmladjenovic@wavecomp.com>
506
507 * sysdeps/unix/sysv/linux/mips/Makefile
508 (test-xfail-check-execstack):
509 Move under mips-has-gnustack != yes.
510 (CFLAGS-.o*, ASFLAGS-.o*): New rules.
511 Apply -Wa,-execstack if mips-force-execstack == yes.
512 * sysdeps/unix/sysv/linux/mips/configure: Regenerated.
513 * sysdeps/unix/sysv/linux/mips/configure.ac
514 (mips-force-execstack): New var.
515 Set to yes for hard-float builds with minimum_kernel < 4.8.0
516 or minimum_kernel not set at all.
517 (mips-has-gnustack): New var.
518 Use value of libc_cv_as_noexecstack
519 if mips-force-execstack != yes, otherwise set to no.
520
521 2019-08-23 Adhemerval Zanella <adhemerval.zanella@linaro.org>
522 Florian Weimer <fweimer@redhat.com>
523
524 * gmon/Versions (libc) [GLIBC_2.31]: New entry.
525 * sysdeps/unix/sysv/linux/arm/profil-counter.h (profil_counter):
526 Make a compat_symbol.
527 * sysdeps/unix/sysv/linux/sparc/profil-counter.h
528 (__profil_counter_global): Likewise.
529
530 * debug/segfault.c (install_handler): Use SA_SIGINFO if defined.
531 * sysdeps/generic/profil-counter.h (__profil_counter): Cast to
532 uintptr_t.
533 * sysdeps/generic/sigcontextinfo.h (GET_PC): Rename to
534 sigcontext_get_pc and return aligned cast to uintptr_t.
535 * sysdeps/mach/hurd/i386/sigcontextinfo.h (GET_PC): Likewise.
536 * sysdeps/posix/profil.c (profil_count): Change PC argument to
537 uintptr_t.
538 (__profil): Use SA_SIGINFO.
539 * sysdeps/posix/sprofil.c (profil_count): Change PCP argument to
540 uintptr_t.
541 (__sprofil): Use SA_SIGINFO.
542 * sysdeps/unix/sysv/linux/profil-counter.h: New file.
543 * sysdeps/unix/sysv/linux/aarch64/profil-counter.h: Remove file.
544 * sysdeps/unix/sysv/linux/csky/profil-counter.h: Likewise.
545 * sysdeps/unix/sysv/linux/hppa/profil-counter.h: Likewise.
546 * sysdeps/unix/sysv/linux/i386/profil-counter.h: Likewise.
547 * sysdeps/unix/sysv/linux/ia64/profil-counter.h: Likewise.
548 * sysdeps/unix/sysv/linux/microblaze/profil-counter.h: Likewise.
549 * sysdeps/unix/sysv/linux/mips/profil-counter.h: Likewise.
550 * sysdeps/unix/sysv/linux/nios2/profil-counter.h: Likewise.
551 * sysdeps/unix/sysv/linux/powerpc/profil-counter.h: Likewise.
552 * sysdeps/unix/sysv/linux/x86_64/profil-counter.h: Likewise.
553 * sysdeps/unix/sysv/linux/riscv/profil-counter.h: Likewise.
554 * sysdeps/sysv/linux/s390/s390-32/profil-counter.h: Likewise.
555 * sysdeps/sysv/linux/s390/s390-64/profil-counter.h: Likewise.
556 * sysdeps/unix/sysv/linux/sh/profil-counter.h: Likewise.
557 * sysdeps/unix/sysv/linux/arm/profil-counter.h (__profil_counter):
558 Assume SA_SIGINFO and use sigcontext_get_pc instead of GET_PC.
559 * sysdeps/unix/sysv/linux/sparc/profil-counter.h: New file.
560 * sysdeps/unix/sysv/linux/sparc/sparc64/profil-counter.h: Remove file.
561 * sysdeps/unix/sysv/linux/sparc/sparc32/profil-counter.h: Likewise.
562 * sysdpes/unix/sysv/linux/aarch64/sigcontextinfo.h (SIGCONTEXT,
563 GET_PC, __sigaction, sigaction): Remove defines.
564 (sigcontext_get_pc): New function.
565 * sysdeps/unix/sysv/linux/alpha/sigcontextinfo.h: Likewise.
566 * sysdeps/unix/sysv/linux/arm/sigcontextinfo.h: Likewise.
567 * sysdeps/unix/sysv/linux/csky/sigcontextinfo.h: Likewise.
568 * sysdeps/unix/sysv/linux/hppa/sigcontextinfo.h: Likewise.
569 * sysdeps/unix/sysv/linux/i386/sigcontextinfo.h: Likewise.
570 * sysdeps/unix/sysv/linux/ia64/sigcontextinfo.h: Likewise.
571 * sysdeps/unix/sysv/linux/m68k/sigcontextinfo.h: Likewise.
572 * sysdeps/unix/sysv/linux/mips/sigcontextinfo.h: Likewise.
573 * sysdeps/unix/sysv/linux/nios2/sigcontextinfo.h: Likewise.
574 * sysdeps/unix/sysv/linux/s390/sigcontextinfo.h: Likewise.
575 * sysdeps/unix/sysv/linux/microblaze/sigcontextinfo.h: Likewise.
576 * sysdeps/unix/sysv/linux/powerpc/sigcontextinfo.h: Likewise.
577 * sysdeps/unix/sysv/linux/riscv/sigcontextinfo.h: Likewise.
578 * sysdeps/unix/sysv/linux/sh/sigcontextinfo.h: Likewise.
579 * sysdeps/sysv/linux/sparc/sparc32/sigcontextinfo.h: Likewise.
580 * sysdeps/sysv/linux/sparc/sparc64/sigcontextinfo.h: Likewise.
581 * sysdeps/unix/sysv/linux/x86_64/sigcontextinfo.h: Likewise.
582 * sysdeps/unix/sysv/linux/alpha/register-dump.h (register_dump):
583 Handle CTX argument as ucontext_t.
584 * sysdeps/unix/sysv/linux/i386/register-dump.h: Likewise.
585 Likewise.
586 * sysdeps/unix/sysv/linux/m68k/register-dump.h: Likewise.
587 * sysdeps/sysv/linux/s390/s390-32/register-dump.h: Likewise.
588 * sysdeps/sysv/linux/s390/s390-64/register-dump.h: Likewise.
589 * sysdeps/unix/sysv/linux/sh/register-dump.h: New file.
590 * sysdeps/unix/sysv/linux/sh/sh4/register-dump.h: Remove File.
591 * sysdeps/unix/sysv/linux/sh/sh3/register-dump.h: Likewise.
592 * sysdeps/unix/sysv/linux/sparc/sparc32/register-dump.h: Likewise.
593 * sysdeps/unix/sysv/linux/sparc/sparc64/register-dump.h: Likewise.
594 * sysdeps/unix/sysv/linux/Makefile (tests-internal): Add
595 tst-sigcontextinfo-get_pc.
596 * sysdeps/unix/sysv/linux/tst-sigcontextinfo-get_pc.c: New file.
597 (CFLAGS-tst-sigcontextinfo-get_pc.c): New rule.
598
599 2019-08-23 Adhemerval Zanella <adhemerval.zanella@linaro.org>
600
601 * sysdeps/generic/single-thread.h (RTLD_SINGLE_THREAD_P): Add
602 definition.
603
604 2019-08-23 Rafał Lużyński <digitalfreak@lingonborough.com>
605
606 [BZ #24682]
607 * localedata/locales/bo_CN (first_weekday): Add, set to 2 (Monday).
608 * localedata/locales/ug_CN (first_weekday): Likewise.
609 * localedata/locales/zh_CN (first_weekday): Likewise.
610
611 2019-08-22 Gustavo Romero <gromero@linux.vnet.ibm.com>
612
613 * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h: Fix typos and
614 field name in mcontext_t struct.
615
616 2019-08-22 Joseph Myers <joseph@codesourcery.com>
617
618 * resolv/tst-resolv-ai_idn-latin1.c (do_test): Mark test
619 unsupported with libidn2 before 2.0.5.
620 * resolv/tst-resolv-ai_idn.c (do_test): Likewise.
621
622 * manual/time.texi (strftime): Document %Ob and %OB as C2X
623 features.
624
625 2019-08-21 Paul Eggert <eggert@cs.ucla.edu>
626
627 Remove dead regex code
628 * posix/regex_internal.c (re_node_set_insert):
629 Remove unnecessary assignment. Reported by Tim Rühsen in:
630 https://lists.gnu.org/r/bug-gnulib/2019-08/msg00026.html
631
632 Fix bad pointer / leak in regex code
633 This was found by Coverity (CID 1484201). [BZ#24844]
634 * posix/regex_internal.c (create_cd_newstate): Fix use of bad
635 pointer and/or memory leak when storage is exhausted.
636
637 2019-08-21 Zack Weinberg <zackw@panix.com>
638
639 * misc/syslog.c (__vsyslog_internal)
640 * time/getdate.c (__getdate_r)
641 * time/tst_wcsftime.c (main):
642 Use return value of time, not its argument.
643
644 * string/strfry.c (strfry)
645 * sysdeps/mach/sleep.c (__sleep):
646 Remove unnecessary casts of NULL in calls to time.
647
648 2019-08-21 Joseph Myers <joseph@codesourcery.com>
649
650 * math/tgmath.h [__HAVE_FLOAT128X]: Give error.
651 [(__HAVE_FLOAT64X && !__HAVE_FLOAT128)
652 || (__HAVE_FLOAT128 && !__HAVE_FLOAT64X)]: Likewise.
653 (__TGMATH_2_NARROW_F): Likewise.
654 (__TGMATH_2_NARROW_D): New macro.
655 (__TGMATH_2_NARROW_F16): Likewise.
656 (__TGMATH_2_NARROW_F32): Likewise.
657 (__TGMATH_2_NARROW_F64): Likewise.
658 (__TGMATH_2_NARROW_F32X): Likewise.
659 (__TGMATH_2_NARROW_F64X): Likewise.
660 [__HAVE_BUILTIN_TGMATH] (__TGMATH_NARROW_FUNCS_F): Likewise.
661 [__HAVE_BUILTIN_TGMATH] (__TGMATH_NARROW_FUNCS_F16): Likewise.
662 [__HAVE_BUILTIN_TGMATH] (__TGMATH_NARROW_FUNCS_F32): Likewise.
663 [__HAVE_BUILTIN_TGMATH] (__TGMATH_NARROW_FUNCS_F64): Likewise.
664 [__HAVE_BUILTIN_TGMATH] (__TGMATH_NARROW_FUNCS_F32X): Likewise.
665 [__GLIBC_USE (IEC_60559_BFP_EXT_C2X)] (fadd): Likewise.
666 [__GLIBC_USE (IEC_60559_BFP_EXT_C2X)] (dadd): Likewise.
667 [__GLIBC_USE (IEC_60559_BFP_EXT_C2X)] (fdiv): Likewise.
668 [__GLIBC_USE (IEC_60559_BFP_EXT_C2X)] (ddiv): Likewise.
669 [__GLIBC_USE (IEC_60559_BFP_EXT_C2X)] (fmul): Likewise.
670 [__GLIBC_USE (IEC_60559_BFP_EXT_C2X)] (dmul): Likewise.
671 [__GLIBC_USE (IEC_60559_BFP_EXT_C2X)] (fsub): Likewise.
672 [__GLIBC_USE (IEC_60559_BFP_EXT_C2X)] (dsub): Likewise.
673 [__GLIBC_USE (IEC_60559_TYPES_EXT) && __HAVE_FLOAT16] (f16add):
674 Likewise.
675 [__GLIBC_USE (IEC_60559_TYPES_EXT) && __HAVE_FLOAT16] (f16div):
676 Likewise.
677 [__GLIBC_USE (IEC_60559_TYPES_EXT) && __HAVE_FLOAT16] (f16mul):
678 Likewise.
679 [__GLIBC_USE (IEC_60559_TYPES_EXT) && __HAVE_FLOAT16] (f16sub):
680 Likewise.
681 [__GLIBC_USE (IEC_60559_TYPES_EXT) && __HAVE_FLOAT32] (f32add):
682 Likewise.
683 [__GLIBC_USE (IEC_60559_TYPES_EXT) && __HAVE_FLOAT32] (f32div):
684 Likewise.
685 [__GLIBC_USE (IEC_60559_TYPES_EXT) && __HAVE_FLOAT32] (f32mul):
686 Likewise.
687 [__GLIBC_USE (IEC_60559_TYPES_EXT) && __HAVE_FLOAT32] (f32sub):
688 Likewise.
689 [__GLIBC_USE (IEC_60559_TYPES_EXT) && __HAVE_FLOAT64
690 && (__HAVE_FLOAT64X || __HAVE_FLOAT128)] (f64add): Likewise.
691 [__GLIBC_USE (IEC_60559_TYPES_EXT) && __HAVE_FLOAT64
692 && (__HAVE_FLOAT64X || __HAVE_FLOAT128)] (f64div): Likewise.
693 [__GLIBC_USE (IEC_60559_TYPES_EXT) && __HAVE_FLOAT64
694 && (__HAVE_FLOAT64X || __HAVE_FLOAT128)] (f64mul): Likewise.
695 [__GLIBC_USE (IEC_60559_TYPES_EXT) && __HAVE_FLOAT64
696 && (__HAVE_FLOAT64X || __HAVE_FLOAT128)] (f64sub): Likewise.
697 [__GLIBC_USE (IEC_60559_TYPES_EXT) && __HAVE_FLOAT32X] (f32xadd):
698 Likewise.
699 [__GLIBC_USE (IEC_60559_TYPES_EXT) && __HAVE_FLOAT32X] (f32xdiv):
700 Likewise.
701 [__GLIBC_USE (IEC_60559_TYPES_EXT) && __HAVE_FLOAT32X] (f32xmul):
702 Likewise.
703 [__GLIBC_USE (IEC_60559_TYPES_EXT) && __HAVE_FLOAT32X] (f32xsub):
704 Likewise.
705 [__GLIBC_USE (IEC_60559_TYPES_EXT) && __HAVE_FLOAT64X
706 && (__HAVE_FLOAT128X || __HAVE_FLOAT128)] (f64xadd): Likewise.
707 [__GLIBC_USE (IEC_60559_TYPES_EXT) && __HAVE_FLOAT64X
708 && (__HAVE_FLOAT128X || __HAVE_FLOAT128)] (f64xdiv): Likewise.
709 [__GLIBC_USE (IEC_60559_TYPES_EXT) && __HAVE_FLOAT64X
710 && (__HAVE_FLOAT128X || __HAVE_FLOAT128)] (f64xmul): Likewise.
711 [__GLIBC_USE (IEC_60559_TYPES_EXT) && __HAVE_FLOAT64X
712 && (__HAVE_FLOAT128X || __HAVE_FLOAT128)] (f64xsub): Likewise.
713 * math/gen-tgmath-tests.py (Type): Add members
714 non_standard_real_argument_types_list, long_double_type,
715 complex_float64_type and float32x_ext_type.
716 (Type.__init__): Set the new members.
717 (Type.floating_type): Add new argument floatn.
718 (Type.real_floating_type): Likewise.
719 (Type.can_combine_types): Likewise.
720 (Type.combine_types): Likewise.
721 (Type.init_types): Create internal Float32x_ext type.
722 (Tests.__init__): Define Float32x_ext in generated C code.
723 (Tests.add_tests): Handle narrowing functions.
724 (Tests.add_all_tests): Likewise.
725 (Tests.tests_text): Allow variation in mant_dig for narrowing
726 functions with compilers before GCC 8.
727 * math/Makefile (tgmath3-narrow-types): New variable.
728 (tgmath3-narrow-macros): Likewise.
729 (tgmath3-macros): Add $(tgmath3-narrow-macros).
730
731 2019-08-20 Andreas Schwab <schwab@suse.de>
732
733 * sysdeps/i386/fpu/libm-test-ulps: Update.
734
735 2019-08-19 Carlos O'Donell <carlos@redhat.com>
736
737 * nscd/nscd.conf: Add warning and comment about shared option.
738
739 2019-08-19 Carlos O'Donell <carlos@redhat.com>
740
741 * nss/nsswitch.conf: Expand comments, and simplify defaults.
742 * manual/nss.texi (NSS Basics): List all known databases.
743 (Services in the NSS configuration): Mention automount.
744
745 2019-08-19 Florian Weimer <fweimer@redhat.com>
746
747 Do not print backtraces on fatal errors.
748 * debug/fortify_fail.c (__libc_argv): Remove declaration.
749 (__fortify_fail_abort): Remove definition.
750 (__fortify_fail): Call __libc_message directly.
751 * debug/stack_chk_fail.c (__libc_argv): Remove declaration.
752 (__stack_chk_fail): Call __fortify_fail instead of
753 __fortify_fail_abort.
754 * include/stdio.h (__fortify_fail_abort): Remove declaration.
755 * sysdeps/posix/libc_fatal.c (BEFORE_ABORT, before_abort): Remove
756 definitions.
757 (__libc_message): Do not handle do_backtrace. Do not call
758 BEFORE_ABORT.
759 (__libc_fatal): Do not pass do_backtrace to __libc_message.
760 * sysdeps/unix/sysv/linux/libc_fatal.c (BEFORE_ABORT)
761 (before_abort): Remove definitions.
762
763 2019-08-16 Florian Weimer <fweimer@redhat.com>
764
765 nptl: Move pthread_attr_getdetachstate implementation into libc.
766 * nptl/Makefile (routines): Add pthread_attr_getdetachstate.
767 (libpthread-routines): Remove pthread_attr_getdetachstate.
768 * nptl/Versions (libpthread GLIBC_2.0): Remove
769 pthread_attr_getdetachstate.
770 * nptl/forward.c (pthread_attr_getdetachstate): Remove definition.
771 * nptl/nptl-init.c (pthread_functions): Remove initializer for
772 ptr_pthread_attr_getdetachstate.
773 * sysdeps/nptl/pthread-functions.h (struct pthread_functions):
774 Remove ptr_pthread_attr_getdetachstate member.
775 * sysdeps/unix/sysv/linux/aarch64/libpthread.abilist (GLIBC_2.17):
776 Remove pthread_attr_getdetachstate.
777 * sysdeps/unix/sysv/linux/alpha/libpthread.abilist (GLIBC_2.0):
778 Likewise.
779 * sysdeps/unix/sysv/linux/arm/libpthread.abilist (GLIBC_2.4):
780 Likewise.
781 * sysdeps/unix/sysv/linux/csky/libpthread.abilist (GLIBC_2.29):
782 Likewise.
783 * sysdeps/unix/sysv/linux/hppa/libpthread.abilist (GLIBC_2.2):
784 Likewise.
785 * sysdeps/unix/sysv/linux/i386/libpthread.abilist (GLIBC_2.0):
786 Likewise.
787 * sysdeps/unix/sysv/linux/ia64/libpthread.abilist (GLIBC_2.2):
788 Likewise.
789 * sysdeps/unix/sysv/linux/m68k/coldfire/libpthread.abilist
790 (GLIBC_2.4): Likewise.
791 * sysdeps/unix/sysv/linux/m68k/m680x0/libpthread.abilist
792 (GLIBC_2.0): Likewise.
793 * sysdeps/unix/sysv/linux/microblaze/libpthread.abilist
794 (GLIBC_2.18): Likewise.
795 * sysdeps/unix/sysv/linux/mips/mips32/libpthread.abilist
796 (GLIBC_2.0): Likewise.
797 * sysdeps/unix/sysv/linux/mips/mips64/libpthread.abilist
798 (GLIBC_2.0): Likewise.
799 * sysdeps/unix/sysv/linux/nios2/libpthread.abilist (GLIBC_2.21):
800 Likewise.
801 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libpthread.abilist
802 (GLIBC_2.0): Likewise.
803 * sysdeps/unix/sysv/linux/powerpc/powerpc64/be/libpthread.abilist
804 (GLIBC_2.3): Likewise.
805 * sysdeps/unix/sysv/linux/powerpc/powerpc64/le/libpthread.abilist
806 (GLIBC_2.17): Likewise.
807 * sysdeps/unix/sysv/linux/riscv/rv64/libpthread.abilist
808 (GLIBC_2.27): Likewise.
809 * sysdeps/unix/sysv/linux/s390/s390-32/libpthread.abilist
810 (GLIBC_2.0): Likewise.
811 * sysdeps/unix/sysv/linux/s390/s390-64/libpthread.abilist
812 (GLIBC_2.2): Likewise.
813 * sysdeps/unix/sysv/linux/sh/libpthread.abilist (GLIBC_2.2):
814 Likewise.
815 * sysdeps/unix/sysv/linux/sparc/sparc32/libpthread.abilist
816 (GLIBC_2.0): Likewise.
817 * sysdeps/unix/sysv/linux/sparc/sparc64/libpthread.abilist
818 (GLIBC_2.2): Likewise.
819 * sysdeps/unix/sysv/linux/x86_64/64/libpthread.abilist
820 (GLIBC_2.2.5): Likewise.
821 * sysdeps/unix/sysv/linux/x86_64/x32/libpthread.abilist
822 (GLIBC_2.16): Likewise.
823
824 2019-08-16 Joseph Myers <joseph@codesourcery.com>
825
826 * math/libm-test-compat_totalorder.inc (do_test)
827 [TEST_COMPAT (libm, GLIBC_2_25, GLIBC_2_31)]: Change condition to
828 [TEST_COMPAT (libm, COMPAT_VER, GLIBC_2_31)].
829 * math/libm-test-compat_totalordermag.inc (do_test)
830 [TEST_COMPAT (libm, GLIBC_2_25, GLIBC_2_31)]: Likewise.
831
832 2019-08-15 Florian Weimer <fweimer@redhat.com>
833
834 nptl: Move pthread_attr_init implementation into libc.
835 * nptl/Makefile (routines): Add pthread_attr_init.
836 (libpthread-routines): Remove pthread_attr_init.
837 * nptl/Versions (libpthread GLIBC_2.0): Remove pthread_attr_init.
838 (libpthread GLIBC_2.0): Likewise.
839 * nptl/pthread_attr_init.c: Check for libc compat version instead
840 of libpthread compat version.
841 * nptl/forward.c (__pthread_attr_init_2_0)
842 (__pthread_attr_init_2_1): Remove definitions.
843 * nptl/nptl-init.c (pthread_functions): Remove initializers for
844 ptr___pthread_attr_init_2_0, ptr___pthread_attr_init_2_1.
845 * sysdeps/nptl/pthread-functions.h (struct pthread_functions):
846 Remove members ptr___pthread_attr_init_2_0,
847 ptr___pthread_attr_init_2_1.
848 * sysdeps/unix/sysv/linux/aarch64/libpthread.abilist (GLIBC_2.17):
849 Remove pthread_attr_init.
850 * sysdeps/unix/sysv/linux/alpha/libpthread.abilist (GLIBC_2.0):
851 Likewise.
852 (GLIBC_2.1): Likewise.
853 * sysdeps/unix/sysv/linux/arm/libpthread.abilist (GLIBC_2.4):
854 Likewise.
855 * sysdeps/unix/sysv/linux/csky/libpthread.abilist (GLIBC_2.29):
856 Likewise.
857 * sysdeps/unix/sysv/linux/hppa/libpthread.abilist (GLIBC_2.2):
858 Likewise.
859 * sysdeps/unix/sysv/linux/i386/libpthread.abilist (GLIBC_2.0):
860 Likewise.
861 (GLIBC_2.1): Likewise.
862 * sysdeps/unix/sysv/linux/ia64/libpthread.abilist (GLIBC_2.2):
863 Likewise.
864 * sysdeps/unix/sysv/linux/m68k/coldfire/libpthread.abilist
865 (GLIBC_2.4): Likewise.
866 * sysdeps/unix/sysv/linux/m68k/m680x0/libpthread.abilist
867 (GLIBC_2.0): Likewise.
868 (GLIBC_2.1): Likewise.
869 * sysdeps/unix/sysv/linux/microblaze/libpthread.abilist
870 (GLIBC_2.18): Likewise.
871 * sysdeps/unix/sysv/linux/mips/mips32/libpthread.abilist
872 (GLIBC_2.0): Likewise.
873 (GLIBC_2.1): Likewise.
874 * sysdeps/unix/sysv/linux/mips/mips64/libpthread.abilist
875 (GLIBC_2.0): Likewise.
876 (GLIBC_2.1): Likewise.
877 * sysdeps/unix/sysv/linux/nios2/libpthread.abilist (GLIBC_2.21):
878 Likewise.
879 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libpthread.abilist
880 (GLIBC_2.0): Likewise.
881 (GLIBC_2.1): Likewise.
882 * sysdeps/unix/sysv/linux/powerpc/powerpc64/be/libpthread.abilist
883 (GLIBC_2.3): Likewise.
884 * sysdeps/unix/sysv/linux/powerpc/powerpc64/le/libpthread.abilist
885 (GLIBC_2.17): Likewise.
886 * sysdeps/unix/sysv/linux/riscv/rv64/libpthread.abilist
887 (GLIBC_2.27): Likewise.
888 * sysdeps/unix/sysv/linux/s390/s390-32/libpthread.abilist
889 (GLIBC_2.0): Likewise.
890 (GLIBC_2.1): Likewise.
891 * sysdeps/unix/sysv/linux/s390/s390-64/libpthread.abilist
892 (GLIBC_2.2): Likewise.
893 * sysdeps/unix/sysv/linux/sh/libpthread.abilist (GLIBC_2.2):
894 Likewise.
895 * sysdeps/unix/sysv/linux/sparc/sparc32/libpthread.abilist
896 (GLIBC_2.0): Likewise.
897 (GLIBC_2.1): Likewise.
898 * sysdeps/unix/sysv/linux/sparc/sparc64/libpthread.abilist
899 (GLIBC_2.2): Likewise.
900 * sysdeps/unix/sysv/linux/x86_64/64/libpthread.abilist
901 (GLIBC_2.2.5): Likewise.
902 * sysdeps/unix/sysv/linux/x86_64/x32/libpthread.abilist
903 (GLIBC_2.16): Likewise.
904
905 2019-08-15 Florian Weimer <fweimer@redhat.com>
906
907 [BZ #24900]
908 * elf/dl-object.c (_dl_new_object): Do not store pathnames in the
909 new object in __RTLD_OPENEXEC mode (except for the origin).
910 * elf/tst-dlopen-aout.c (check_dlopen_failure): New function with
911 check for the error message.
912 (do_test): Call it. Add check using relative path.
913 * elf/Makefile (tests-container): Add tst-dlopen-aout-container.
914 (tst-dlopen-aout-container): Link with libpthread.
915 (LDFLAGS-tst-dlopen-aout-container): Set RPATH to $ORIGIN.
916
917 2019-08-15 Joseph Myers <joseph@codesourcery.com>
918
919 * math/bits/mathcalls.h
920 [__GLIBC_USE (IEC_60559_BFP_EXT) || __MATH_DECLARING_FLOATN]
921 (totalorder): Take pointer arguments.
922 [__GLIBC_USE (IEC_60559_BFP_EXT) || __MATH_DECLARING_FLOATN]
923 (totalordermag): Likewise.
924 * manual/arith.texi (totalorder): Likewise.
925 (totalorderf): Likewise.
926 (totalorderl): Likewise.
927 (totalorderfN): Likewise.
928 (totalorderfNx): Likewise.
929 (totalordermag): Likewise.
930 (totalordermagf): Likewise.
931 (totalordermagl): Likewise.
932 (totalordermagfN): Likewise.
933 (totalordermagfNx): Likewise.
934 * math/tgmath.h (__TGMATH_BINARY_REAL_RET_ONLY): Remove macro.
935 [__GLIBC_USE (IEC_60559_BFP_EXT)] (totalorder): Likewise.
936 [__GLIBC_USE (IEC_60559_BFP_EXT)] (totalordermag): Likewise.
937 * math/Versions (GLIBC_2.31): Add totalorder, totalorderf,
938 totalorderl, totalordermag, totalordermagf, totalordermagl,
939 totalorderf32, totalorderf64, totalorderf32x, totalordermagf32,
940 totalordermagf64, totalordermagf32x, totalorderf64x,
941 totalordermagf64x, totalorderf128 and totalordermagf128.
942 * math/Makefile (libm-test-funcs-noauto): Add compat_totalorder
943 and compat_totalordermag.
944 (libm-test-funcs-compat): New variable.
945 (libm-tests-compat): Likewise.
946 (tests): Do not include compat tests.
947 (tests-internal): Add compat tests.
948 ($(foreach t,$(libm-tests-base),
949 $(objpfx)$(t)-compat_totalorder.o)): Depend
950 on $(objpfx)libm-test-totalorder.c.
951 ($(foreach t,$(libm-tests-base),
952 $(objpfx)$(t)-compat_totalordermag.o): Depend on
953 $(objpfx)libm-test-totalordermag.c.
954 (tgmath3-macros): Remove totalorder and totalordermag.
955 * math/libm-test-compat_totalorder.inc: New file.
956 * math/libm-test-compat_totalordermag.inc: Likewise.
957 * math/libm-test-driver.c (struct test_ff_i_data): Update comment.
958 (RUN_TEST_fpfp_b): New macro.
959 (RUN_TEST_LOOP_fpfp_b): Likewise.
960 * math/libm-test-totalorder.inc (totalorder_test_data): Use
961 TEST_fpfp_b.
962 (totalorder_test): Condition on [!COMPAT_TEST].
963 (do_test): Likewise.
964 * math/libm-test-totalordermag.inc (totalordermag_test_data): Use
965 TEST_fpfp_b.
966 (totalordermag_test): Condition on [!COMPAT_TEST].
967 (do_test): Likewise.
968 * math/gen-tgmath-tests.py (Tests.add_all_tests): Remove
969 totalorder and totalordermag.
970 * math/test-tgmath.c (NCALLS): Change to 132.
971 (F(compile_test)): Do not call totalorder or totalordermag.
972 (F(totalorder)): Remove.
973 (F(totalordermag)): Likewise.
974 * include/float.h (__STDC_WANT_IEC_60559_TYPES_EXT__): Do not
975 define if [__STDC_WANT_IEC_60559_TYPES_EXT__].
976 * include/setjmp.h [!_ISOMAC] (STR_HELPER): Rename to
977 SJSTR_HELPER.
978 [!_ISOMAC] (STR): Rename to SJSTR. Update call to STR_HELPER.
979 [!_ISOMAC] (TEST_SIZE): Update call to STR.
980 [!_ISOMAC] (TEST_ALIGN): Likewise.
981 [!_ISOMAC] (TEST_OFFSET): Likewise.
982 * sysdeps/ieee754/dbl-64/s_totalorder.c: Include <shlib-compat.h>
983 and <first-versions.h>.
984 (__totalorder): Take pointer arguments. Add symbol versions and
985 compat symbols.
986 * sysdeps/ieee754/dbl-64/s_totalordermag.c: Include
987 <shlib-compat.h> and <first-versions.h>.
988 (__totalordermag): Take pointer arguments. Add symbol versions
989 and compat symbols.
990 * sysdeps/ieee754/dbl-64/wordsize-64/s_totalorder.c: Include
991 <shlib-compat.h> and <first-versions.h>.
992 (__totalorder): Take pointer arguments. Add symbol versions and
993 compat symbols.
994 * sysdeps/ieee754/dbl-64/wordsize-64/s_totalordermag.c: Include
995 <shlib-compat.h> and <first-versions.h>.
996 (__totalordermag): Take pointer arguments. Add symbol versions
997 and compat symbols.
998 * sysdeps/ieee754/float128/float128_private.h
999 (__totalorder_compatl): New macro.
1000 (__totalordermag_compatl): Likewise.
1001 * sysdeps/ieee754/flt-32/s_totalorderf.c: Include <shlib-compat.h>
1002 and <first-versions.h>.
1003 (__totalorderf): Take pointer arguments. Add symbol versions and
1004 compat symbols.
1005 * sysdeps/ieee754/flt-32/s_totalordermagf.c: Include
1006 <shlib-compat.h> and <first-versions.h>.
1007 (__totalordermagf): Take pointer arguments. Add symbol versions
1008 and compat symbols.
1009 * sysdeps/ieee754/ldbl-128/s_totalorderl.c: Include
1010 <shlib-compat.h> and <first-versions.h>.
1011 (__totalorderl): Take pointer arguments. Add symbol versions and
1012 compat symbols.
1013 * sysdeps/ieee754/ldbl-128/s_totalordermagl.c: Include
1014 <shlib-compat.h> and <first-versions.h>.
1015 (__totalordermagl): Take pointer arguments. Add symbol versions
1016 and compat symbols.
1017 * sysdeps/ieee754/ldbl-128ibm/s_totalorderl.c: Include
1018 <shlib-compat.h>.
1019 (__totalorderl): Take pointer arguments. Add symbol versions and
1020 compat symbols.
1021 * sysdeps/ieee754/ldbl-128ibm/s_totalordermagl.c: Include
1022 <shlib-compat.h>.
1023 (__totalordermagl): Take pointer arguments. Add symbol versions
1024 and compat symbols.
1025 * sysdeps/ieee754/ldbl-96/s_totalorderl.c: Include
1026 <shlib-compat.h> and <first-versions.h>.
1027 (__totalorderl): Take pointer arguments. Add symbol versions and
1028 compat symbols.
1029 * sysdeps/ieee754/ldbl-96/s_totalordermagl.c: Include
1030 <shlib-compat.h> and <first-versions.h>.
1031 (__totalordermagl): Take pointer arguments. Add symbol versions
1032 and compat symbols.
1033 * sysdeps/ieee754/ldbl-opt/nldbl-totalorder.c (totalorderl): Take
1034 pointer arguments.
1035 * sysdeps/ieee754/ldbl-opt/nldbl-totalordermag.c (totalordermagl):
1036 Likewise.
1037 * sysdeps/ieee754/ldbl-128ibm/test-totalorderl-ldbl-128ibm.c
1038 (do_test): Update calls to totalorderl and totalordermagl.
1039 * sysdeps/ieee754/ldbl-96/test-totalorderl-ldbl-96.c (do_test):
1040 Update calls to totalorderl and totalordermagl.
1041 * sysdeps/mach/hurd/i386/libm.abilist: Update.
1042 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
1043 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
1044 * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
1045 * sysdeps/unix/sysv/linux/csky/libm.abilist: Likewise.
1046 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
1047 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
1048 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
1049 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
1050 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
1051 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
1052 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
1053 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
1054 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
1055 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist:
1056 Likewise.
1057 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
1058 Likewise.
1059 * sysdeps/unix/sysv/linux/powerpc/powerpc64/be/libm.abilist:
1060 Likewise.
1061 * sysdeps/unix/sysv/linux/powerpc/powerpc64/le/libm.abilist:
1062 Likewise.
1063 * sysdeps/unix/sysv/linux/riscv/rv64/libm.abilist: Likewise.
1064 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
1065 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
1066 * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
1067 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
1068 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
1069 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
1070 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
1071
1072 2019-08-15 Florian Weimer <fweimer@redhat.com>
1073
1074 [BZ #24899]
1075 * sysdeps/gnu/bits/utmpx.h (struct utmpx): Add
1076 __attribute_nonstring__ to ut_line, ut_id, ut_user, ut_host.
1077 * sysdeps/unix/sysv/linux/s390/bits/utmpx.h (struct utmpx):
1078 Likewise.
1079 * sysdeps/gnu/bits/utmp.h (struct utmp): Add
1080 __attribute_nonstring__ to ut_id.
1081 * sysdeps/unix/sysv/linux/s390/bits/utmpx.h (struct utmp):
1082 Likewise.
1083
1084 2019-08-15 Florian Weimer <fweimer@redhat.com>
1085
1086 [BZ #24880]
1087 * login/utmp_file.c (file_locking_failed): Use struct flock64.
1088 (file_locking_unlock): Likewise.
1089
1090 2019-08-15 Florian Weimer <fweimer@redhat.com>
1091
1092 [BZ #24879]
1093 login: Disarm timer after utmp lock acquisition.
1094 * login/utmp_file.c (struct file_locking): Remove.
1095 (try_file_lock): Adjust.
1096 (file_lock_restore): Remove function.
1097 (__libc_getutent_r): .
1098 (internal_getut_r): Likewise.
1099 (__libc_getutline_r): Likewise.
1100 (__libc_pututline): Likewise.
1101 (__libc_updwtmp): Likewise.
1102
1103 2019-08-15 Florian Weimer <fweimer@redhat.com>
1104
1105 nptl: Remove pthread_self compatibility symbol from libpthread.
1106 * nptl/Versions (libpthread GLIBC_2.0): Remove pthread_self,
1107 pthread_equal.
1108 * nptl/Makefile (libpthread-routines): Remove compat-pthread_self.
1109 * nptl/compat-pthread_self.c: Remove file.
1110 * sysdeps/unix/sysv/linux/aarch64/libpthread.abilist (GLIBC_2.17):
1111 Remove pthread_self.
1112 * sysdeps/unix/sysv/linux/alpha/libpthread.abilist (GLIBC_2.0):
1113 Likewise.
1114 * sysdeps/unix/sysv/linux/arm/libpthread.abilist (GLIBC_2.4):
1115 Likewise.
1116 * sysdeps/unix/sysv/linux/hppa/libpthread.abilist (GLIBC_2.2):
1117 Likewise.
1118 * sysdeps/unix/sysv/linux/i386/libpthread.abilist (GLIBC_2.0):
1119 Likewise.
1120 * sysdeps/unix/sysv/linux/ia64/libpthread.abilist (GLIBC_2.2):
1121 Likewise.
1122 * sysdeps/unix/sysv/linux/m68k/coldfire/libpthread.abilist
1123 (GLIBC_2.4): Likewise.
1124 * sysdeps/unix/sysv/linux/m68k/m680x0/libpthread.abilist
1125 (GLIBC_2.0): Likewise.
1126 * sysdeps/unix/sysv/linux/microblaze/libpthread.abilist
1127 (GLIBC_2.18): Likewise.
1128 * sysdeps/unix/sysv/linux/mips/mips32/libpthread.abilist
1129 (GLIBC_2.0): Likewise.
1130 * sysdeps/unix/sysv/linux/mips/mips64/libpthread.abilist
1131 (GLIBC_2.0): Likewise.
1132 * sysdeps/unix/sysv/linux/nios2/libpthread.abilist (GLIBC_2.21):
1133 Likewise.
1134 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libpthread.abilist
1135 (GLIBC_2.0): Likewise.
1136 * sysdeps/unix/sysv/linux/powerpc/powerpc64/be/libpthread.abilist
1137 (GLIBC_2.3): Likewise.
1138 * sysdeps/unix/sysv/linux/powerpc/powerpc64/le/libpthread.abilist
1139 (GLIBC_2.17): Likewise.
1140 * sysdeps/unix/sysv/linux/s390/s390-32/libpthread.abilist
1141 (GLIBC_2.0): Likewise.
1142 * sysdeps/unix/sysv/linux/s390/s390-64/libpthread.abilist
1143 (GLIBC_2.2): Likewise.
1144 * sysdeps/unix/sysv/linux/sh/libpthread.abilist (GLIBC_2.2):
1145 Likewise.
1146 * sysdeps/unix/sysv/linux/sparc/sparc32/libpthread.abilist
1147 (GLIBC_2.0): Likewise.
1148 * sysdeps/unix/sysv/linux/sparc/sparc64/libpthread.abilist
1149 (GLIBC_2.2): Likewise.
1150 * sysdeps/unix/sysv/linux/x86_64/64/libpthread.abilist
1151 (GLIBC_2.2.5): Likewise.
1152 * sysdeps/unix/sysv/linux/x86_64/x32/libpthread.abilist
1153 (GLIBC_2.16): Likewise.
1154
1155 2019-08-15 Florian Weimer <fweimer@redhat.com>
1156
1157 nptl: Move pthread_attr_destroy implementation into libc.
1158 * nptl/Makefile (routines): Add pthread_attr_destroy.
1159 (libpthread-routines): Remove pthread_attr_destroy.
1160 * nptl/Versions (libpthread GLIBC_2.0): Remove
1161 pthread_attr_destroy.
1162 * nptl/pthread_attr_destroy.c (__pthread_attr_destroy): Check for
1163 libc compat version instead of libpthread compat version.
1164 * nptl/forward.c (pthread_attr_destroy): Remove definition.
1165 * nptl/nptl-init.c (pthread_functions): Remove initializer for
1166 ptr_pthread_attr_destroy.
1167 * sysdeps/nptl/pthread-functions.h (struct pthread_functions):
1168 Remove ptr_pthread_attr_destroy member.
1169 * sysdeps/unix/sysv/linux/aarch64/libpthread.abilist (GLIBC_2.17):
1170 Remove pthread_attr_destroy.
1171 * sysdeps/unix/sysv/linux/alpha/libpthread.abilist (GLIBC_2.0):
1172 Likewise.
1173 * sysdeps/unix/sysv/linux/arm/libpthread.abilist (GLIBC_2.4):
1174 Likewise.
1175 * sysdeps/unix/sysv/linux/csky/libpthread.abilist (GLIBC_2.29):
1176 Likewise.
1177 * sysdeps/unix/sysv/linux/hppa/libpthread.abilist (GLIBC_2.2):
1178 Likewise.
1179 * sysdeps/unix/sysv/linux/i386/libpthread.abilist (GLIBC_2.0):
1180 Likewise.
1181 * sysdeps/unix/sysv/linux/ia64/libpthread.abilist (GLIBC_2.2):
1182 Likewise.
1183 * sysdeps/unix/sysv/linux/m68k/coldfire/libpthread.abilist
1184 (GLIBC_2.4): Likewise.
1185 * sysdeps/unix/sysv/linux/m68k/m680x0/libpthread.abilist
1186 (GLIBC_2.0): Likewise.
1187 * sysdeps/unix/sysv/linux/microblaze/libpthread.abilist
1188 (GLIBC_2.18): Likewise.
1189 * sysdeps/unix/sysv/linux/mips/mips32/libpthread.abilist
1190 (GLIBC_2.0): Likewise.
1191 * sysdeps/unix/sysv/linux/mips/mips64/libpthread.abilist
1192 (GLIBC_2.0): Likewise.
1193 * sysdeps/unix/sysv/linux/nios2/libpthread.abilist (GLIBC_2.21):
1194 Likewise.
1195 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libpthread.abilist
1196 (GLIBC_2.0): Likewise.
1197 * sysdeps/unix/sysv/linux/powerpc/powerpc64/be/libpthread.abilist
1198 (GLIBC_2.3): Likewise.
1199 * sysdeps/unix/sysv/linux/powerpc/powerpc64/le/libpthread.abilist
1200 (GLIBC_2.17): Likewise.
1201 * sysdeps/unix/sysv/linux/riscv/rv64/libpthread.abilist
1202 (GLIBC_2.27): Likewise.
1203 * sysdeps/unix/sysv/linux/s390/s390-32/libpthread.abilist
1204 (GLIBC_2.0): Likewise.
1205 * sysdeps/unix/sysv/linux/s390/s390-64/libpthread.abilist
1206 (GLIBC_2.2): Likewise.
1207 * sysdeps/unix/sysv/linux/sh/libpthread.abilist (GLIBC_2.2):
1208 Likewise.
1209 * sysdeps/unix/sysv/linux/sparc/sparc32/libpthread.abilist
1210 (GLIBC_2.0): Likewise.
1211 * sysdeps/unix/sysv/linux/sparc/sparc64/libpthread.abilist
1212 (GLIBC_2.2): Likewise.
1213 * sysdeps/unix/sysv/linux/x86_64/64/libpthread.abilist
1214 (GLIBC_2.2.5): Likewise.
1215 * sysdeps/unix/sysv/linux/x86_64/x32/libpthread.abilist
1216 (GLIBC_2.16): Likewise.
1217
1218 2019-08-15 Andreas Schwab <schwab@suse.de>
1219
1220 * sysdeps/i386/fpu/libm-test-ulps: Update.
1221
1222 2019-08-15 Florian Weimer <fweimer@redhat.com>
1223
1224 * malloc/Makefile (tests): Only add tst-mxfast for
1225 $(have-tunables).
1226 * malloc/tst-mxfast.c: Fix copyright year.
1227 (do_test): Fix GNU style issues. Use TEST_COMPARE instead of
1228 assert for checks.
1229
1230 2019-08-15 Florian Weimer <fweimer@redhat.com>
1231
1232 * login/utmp_file.c (__libc_updwtmp): Unlock the right file
1233 descriptor.
1234 * login/Makefile (tests): Add tst-updwtmpx.
1235 * login/tst-updwtmpx.c: New file.
1236
1237 2019-08-15 Florian Weimer <fweimer@redhat.com>
1238
1239 nptl: Move pthread_equal implementation into libc.
1240 * nptl/Makefile (routines): Add pthread_equal.
1241 * nptl/forward.c (pthread_equal): Remove definition.
1242 * nptl/nptl-init.c (pthread_functions): Remove initializer for
1243 ptr_pthread_equal.
1244 * sysdeps/nptl/pthread-functions.h (struct pthread_functions):
1245 Remove ptr_pthread_equal member.
1246 * sysdeps/unix/sysv/linux/aarch64/libpthread.abilist (GLIBC_2.17):
1247 Remove pthread_equal.
1248 * sysdeps/unix/sysv/linux/alpha/libpthread.abilist (GLIBC_2.0):
1249 Likewise.
1250 * sysdeps/unix/sysv/linux/arm/libpthread.abilist (GLIBC_2.4):
1251 Likewise.
1252 * sysdeps/unix/sysv/linux/csky/libpthread.abilist (GLIBC_2.29):
1253 Likewise.
1254 * sysdeps/unix/sysv/linux/hppa/libpthread.abilist (GLIBC_2.2):
1255 Likewise.
1256 * sysdeps/unix/sysv/linux/i386/libpthread.abilist (GLIBC_2.0):
1257 Likewise.
1258 * sysdeps/unix/sysv/linux/ia64/libpthread.abilist (GLIBC_2.2):
1259 Likewise.
1260 * sysdeps/unix/sysv/linux/m68k/coldfire/libpthread.abilist
1261 (GLIBC_2.4): Likewise.
1262 * sysdeps/unix/sysv/linux/m68k/m680x0/libpthread.abilist
1263 (GLIBC_2.0): Likewise.
1264 * sysdeps/unix/sysv/linux/microblaze/libpthread.abilist
1265 (GLIBC_2.18): Likewise.
1266 * sysdeps/unix/sysv/linux/mips/mips32/libpthread.abilist
1267 (GLIBC_2.0): Likewise.
1268 * sysdeps/unix/sysv/linux/mips/mips64/libpthread.abilist
1269 (GLIBC_2.0): Likewise.
1270 * sysdeps/unix/sysv/linux/nios2/libpthread.abilist (GLIBC_2.21):
1271 Likewise.
1272 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libpthread.abilist
1273 (GLIBC_2.0): Likewise.
1274 * sysdeps/unix/sysv/linux/powerpc/powerpc64/be/libpthread.abilist
1275 (GLIBC_2.3): Likewise.
1276 * sysdeps/unix/sysv/linux/powerpc/powerpc64/le/libpthread.abilist
1277 (GLIBC_2.17): Likewise.
1278 * sysdeps/unix/sysv/linux/riscv/rv64/libpthread.abilist
1279 (GLIBC_2.27): Likewise.
1280 * sysdeps/unix/sysv/linux/s390/s390-32/libpthread.abilist
1281 (GLIBC_2.0): Likewise.
1282 * sysdeps/unix/sysv/linux/s390/s390-64/libpthread.abilist
1283 (GLIBC_2.2): Likewise.
1284 * sysdeps/unix/sysv/linux/sh/libpthread.abilist (GLIBC_2.2):
1285 Likewise.
1286 * sysdeps/unix/sysv/linux/sparc/sparc32/libpthread.abilist
1287 (GLIBC_2.0): Likewise.
1288 * sysdeps/unix/sysv/linux/sparc/sparc64/libpthread.abilist
1289 (GLIBC_2.2): Likewise.
1290 * sysdeps/unix/sysv/linux/x86_64/64/libpthread.abilist
1291 (GLIBC_2.2.5): Likewise.
1292 * sysdeps/unix/sysv/linux/x86_64/x32/libpthread.abilist
1293 (GLIBC_2.16): Likewise.
1294
1295 2019-08-14 Florian Weimer <fweimer@redhat.com>
1296
1297 * support/support_descriptors.c: Include <support/descriptors.h>.
1298
1299 2019-08-14 Feng Xue <fxue@os.amperecomputing.com>
1300
1301 * sysdeps/aarch64/multiarch/memset_base64.S (DC_ZVA_THRESHOLD):
1302 Disable DC ZVA code if this macro is defined as zero.
1303 * sysdeps/aarch64/multiarch/memset_emag.S (DC_ZVA_THRESHOLD):
1304 Change to zero to disable using DC ZVA.
1305
1306 2019-08-13 Joseph Myers <joseph@codesourcery.com>
1307
1308 * bits/libc-header-start.h (__GLIBC_USE_IEC_60559_FUNCS_EXT):
1309 Update comment.
1310 (__GLIBC_USE_IEC_60559_FUNCS_EXT_C2X): New macro.
1311 * bits/math-finite.h [__GLIBC_USE (IEC_60559_FUNCS_EXT)]: Change
1312 to [__GLIBC_USE (IEC_60559_FUNCS_EXT_C2X)].
1313 * math/bits/mathcalls.h [__GLIBC_USE (IEC_60559_FUNCS_EXT)]:
1314 Likewise.
1315
1316 2019-08-13 Florian Weimer <fweimer@redhat.com>
1317
1318 * login/utmp_file.c (LOCK_FILE, LOCKING_FAILED, UNLOCK_FILE):
1319 Remove macros.
1320 (struct file_locking): New.
1321 (try_file_lock, file_unlock, file_lock_restore): New functions.
1322 (__libc_getutent_r): Use the new functions.
1323 (internal_getut_r): Likewise.
1324 (__libc_getutline_r): Likewise.
1325 (__libc_pututline): Likewise.
1326 (__libc_updwtmp): Likewise.
1327
1328 2019-08-13 Joseph Myers <joseph@codesourcery.com>
1329
1330 * bits/libc-header-start.h (__GLIBC_USE_IEC_60559_BFP_EXT): Update
1331 comment.
1332 (__GLIBC_USE_IEC_60559_BFP_EXT_C2X): New macro.
1333 * bits/fenv.h [__GLIBC_USE (IEC_60559_BFP_EXT)]: Change to
1334 [__GLIBC_USE (IEC_60559_BFP_EXT_C2X)].
1335 * include/limits.h [__GLIBC_USE (IEC_60559_BFP_EXT)]: Likewise.
1336 * math/fenv.h [__GLIBC_USE (IEC_60559_BFP_EXT)]: Likewise.
1337 * math/math.h [__GLIBC_USE (IEC_60559_BFP_EXT)]: Likewise.
1338 * stdlib/bits/stdlib-ldbl.h [__GLIBC_USE (IEC_60559_BFP_EXT)]:
1339 Likewise.
1340 * stdlib/stdint.h [__GLIBC_USE (IEC_60559_BFP_EXT)]: Likewise.
1341 * stdlib/stdlib.h [__GLIBC_USE (IEC_60559_BFP_EXT)]: Likewise.
1342 * sysdeps/aarch64/bits/fenv.h [__GLIBC_USE (IEC_60559_BFP_EXT)]:
1343 Likewise.
1344 * sysdeps/alpha/fpu/bits/fenv.h [__GLIBC_USE (IEC_60559_BFP_EXT)]:
1345 Likewise.
1346 * sysdeps/arm/bits/fenv.h [__GLIBC_USE (IEC_60559_BFP_EXT)]:
1347 Likewise.
1348 * sysdeps/csky/bits/fenv.h [__GLIBC_USE (IEC_60559_BFP_EXT)]:
1349 Likewise.
1350 * sysdeps/hppa/fpu/bits/fenv.h [__GLIBC_USE (IEC_60559_BFP_EXT)]:
1351 Likewise.
1352 * sysdeps/ia64/bits/fenv.h [__GLIBC_USE (IEC_60559_BFP_EXT)]:
1353 Likewise.
1354 * sysdeps/m68k/bits/fenv.h [__GLIBC_USE (IEC_60559_BFP_EXT)]:
1355 Likewise.
1356 * sysdeps/microblaze/bits/fenv.h [__GLIBC_USE
1357 (IEC_60559_BFP_EXT)]: Likewise.
1358 * sysdeps/mips/bits/fenv.h [__GLIBC_USE (IEC_60559_BFP_EXT)]:
1359 Likewise.
1360 * sysdeps/nios2/bits/fenv.h [__GLIBC_USE (IEC_60559_BFP_EXT)]:
1361 Likewise.
1362 * sysdeps/powerpc/bits/fenv.h [__GLIBC_USE (IEC_60559_BFP_EXT)]:
1363 Likewise.
1364 * sysdeps/riscv/bits/fenv.h [__GLIBC_USE (IEC_60559_BFP_EXT)]:
1365 Likewise.
1366 * sysdeps/s390/fpu/bits/fenv.h [__GLIBC_USE (IEC_60559_BFP_EXT)]:
1367 Likewise.
1368 * sysdeps/sh/bits/fenv.h [__GLIBC_USE (IEC_60559_BFP_EXT)]:
1369 Likewise.
1370 * sysdeps/sparc/fpu/bits/fenv.h [__GLIBC_USE (IEC_60559_BFP_EXT)]:
1371 Likewise.
1372 * sysdeps/x86/fpu/bits/fenv.h [__GLIBC_USE (IEC_60559_BFP_EXT)]:
1373 Likewise.
1374 * math/bits/mathcalls.h [__GLIBC_USE (IEC_60559_BFP_EXT)]:
1375 Likewise, except for totalorder, totalordermag, getpayload,
1376 setpayload and setpayloadsig.
1377 * math/tgmath.h [__GLIBC_USE (IEC_60559_BFP_EXT)]: Likewise,
1378 except for totalorder and totalordermag.
1379
1380 * string/string.h (memccpy): Also declare if [__GLIBC_USE (ISOC2X)].
1381 (strdup): Likewise.
1382 (strndup): Likewise.
1383
1384 * include/features.h (_ISOC2X_SOURCE): New feature test macro.
1385 Undefine and define to 1 if [_GNU_SOURCE].
1386 (__GLIBC_USE_ISOC2X): New macro. Undefine and redefine depending
1387 on [_ISOC2X_SOURCE] and [__STDC_VERSION__ > 201710L].
1388 (__USE_ISOC11): Also define to 1 if [_ISOC2X_SOURCE].
1389 (__USE_ISOC99): Likewise.
1390 (__USE_ISOC95): Likewise.
1391 * manual/creature.texi (_ISOC2X_SOURCE): Document.
1392
1393 2019-08-13 Florian Weimer <fweimer@redhat.com>
1394
1395 * login/getutid_r.c (__getutid_r): _HAVE_UT_ID and _HAVE_UT_TYPE
1396 are always true.
1397 * login/getutmp.c (getutmp): _HAVE_UT_TYPE, _HAVE_UT_PID,
1398 _HAVE_UT_ID, _HAVE_UT_HOST, _HAVE_UT_TV are always true.
1399 * login/getutmpx.c (getutmpx): Likewise.
1400 * login/login.c (login): _HAVE_UT_TYPE, _HAVE_UT_PID are always
1401 true.
1402 * login/logout.c (logout): _HAVE_UT_TYPE, _HAVE_UT_HOST,
1403 _HAVE_UT_TV are always true.
1404 * login/logwtmp.c (logwtmp): _HAVE_UT_PID, _HAVE_UT_TYPE,
1405 _HAVE_UT_HOST, _HAVE_UT_TV are always true.
1406 * login/tst-utmp.c: _HAVE_UT_TYPE, _HAVE_UT_TV are always true.
1407 * login/utmp_file.c (__libc_setutent): _HAVE_UT_TYPE, _HAVE_UT_ID
1408 are always true.
1409 (internal_getut_r): _HAVE_UT_TYPE is always true.
1410 (__libc_pututline): Likewise.
1411 * login/programs/utmpdump.c (print_entry): Assume that
1412 _HAVE_UT_TYPE, _HAVE_UT_PID, _HAVE_UT_ID, _HAVE_UT_HOST,
1413 _HAVE_UT_TV are always true.
1414 * sysdeps/generic/utmp-equal.h (__utmp_equal): _HAVE_UT_TYPE,
1415 _HAVE_UT_ID are always true.
1416 * sysdeps/gnu/bits/utmp.h: Move to ...
1417 * bits/utmp.h: ... here, replacing the old file.
1418
1419 2019-08-12 Florian Weimer <fweimer@redhat.com>
1420
1421 * elf/Makefile (tests): Unconditionally add tst-dlopen-aout.
1422 [$(build-hardcoded-path-in-tests)] (tst-dlopen-aout-no-pie): Do
1423 not set.
1424 * elf/tst-dlopen-aout.c: Do not included <assert.h>.
1425 (do_test): Open the executable using an absolute path. Print
1426 error message to standard output.
1427
1428 2019-08-09 DJ Delorie <dj@redhat.com>
1429
1430 * elf/dl-tunables.list: Add glibc.malloc.mxfast.
1431 * manual/tunables.texi: Document it.
1432 * malloc/malloc.c (do_set_mxfast): New.
1433 (__libc_mallopt): Call it.
1434 * malloc/arena.c: Add mxfast tunable.
1435 * malloc/tst-mxfast.c: New.
1436 * malloc/Makefile: Add it.
1437
1438 2019-08-08 Niklas Hambüchen <mail@nh2.me>
1439 Carlos O'Donell <carlos@redhat.com>
1440
1441 [BZ #24026]
1442 * malloc/malloc.c (__malloc_info): Account for top chunk.
1443
1444 2019-08-07 Joseph Myers <joseph@codesourcery.com>
1445
1446 * sysdeps/unix/sysv/linux/bits/fcntl-linux.h [__USE_GNU]
1447 (SYNC_FILE_RANGE_WRITE_AND_WAIT): New macro.
1448
1449 2019-08-06 Joseph Myers <joseph@codesourcery.com>
1450
1451 * io/fcntl.h [__USE_GNU] (AT_RECURSIVE): New macro.
1452
1453 2019-07-02 Stefan Liebler <stli@linux.ibm.com>
1454
1455 * sysdeps/unix/sysv/linux/s390/init-first.c (VDSO_SETUP): New define.
1456
1457 2019-08-05 Joseph Myers <joseph@codesourcery.com>
1458
1459 * sysdeps/unix/sysv/linux/bits/sched.h [__USE_GNU] (CLONE_PIDFD):
1460 New macro.
1461
1462 2019-08-05 Adhemerval Zanella <adhemerval.zanella@linaro.org>
1463
1464 [BZ #19767]
1465 * sysdeps/unix/sysv/linux/aarch64/sysdep.h (ALWAYS_USE_VSYSCALL):
1466 Remove definition.
1467 * sysdeps/unix/sysv/linux/arm/sysdep.h (ALWAYS_USE_VSYSCALL):
1468 Likewise.
1469 * sysdeps/unix/sysv/linux/i386/sysdep.h (ALWAYS_USE_VSYSCALL):
1470 Likewise.
1471 * sysdeps/unix/sysv/linux/mips/mips32/sysdep.h (ALWAYS_USE_VSYSCALL):
1472 Likewise.
1473 * sysdeps/unix/sysv/linux/mips/mips64/n32/sysdep.h
1474 (ALWAYS_USE_VSYSCALL): Likewise.
1475 * sysdeps/unix/sysv/linux/mips/mips64/n64/sysdep.h
1476 (ALWAYS_USE_VSYSCALL): Likewise.
1477 * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h
1478 (ALWAYS_USE_VSYSCALL): Likewise.
1479 * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h
1480 (ALWAYS_USE_VSYSCALL): Likewise.
1481 * sysdeps/unix/sysv/linux/riscv/sysdep.h (ALWAYS_USE_VSYSCALL):
1482 Likewise.
1483 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h
1484 (ALWAYS_USE_VSYSCALL): Likewise.
1485 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h
1486 (ALWAYS_USE_VSYSCALL): Likewise.
1487 * sysdeps/unix/sysv/linux/sparc/sysdep.h (ALWAYS_USE_VSYSCALL):
1488 Likewise.
1489 * sysdeps/unix/sysv/linux/x86_64/sysdep.h (ALWAYS_USE_VSYSCALL):
1490 Likewise.
1491 * sysdeps/unix/sysv/linux/x86/libc-vdso.h: Remove #if USE_VSYSCALL.
1492 * sysdeps/unix/sysv/linux/sysdep-vdso.h: Likewise.
1493 * sysdeps/unix/sysv/linux/sysdep.h (ALWAYS_USE_VSYSCALL,
1494 USE_VSYSCALL): Remove defitions.
1495
1496 [BZ #19767]
1497 * sysdeps/unix/sysv/linux/sparc/init-first.c: Remove #ifdef SHARED.
1498 * sysdeps/unix/sysv/linux/sparc/libc-vdso.h: Likewise.
1499 * sysdeps/unix/sysv/linux/sparc/sysdep.h (ALWAYS_USE_VSYSCALL):
1500 Define.
1501
1502 [BZ #19767]
1503 * sysdeps/unix/sysv/linux/s390/init-first.c: Remove #ifdef SHARED.
1504 * sysdeps/unix/sysv/linux/s390/libc-vdso.h: Likewise.
1505 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h
1506 (ALWAYS_USE_VSYSCALL): Define.
1507 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h
1508 (ALWAYS_USE_VSYSCALL): Likewise.
1509
1510 [BZ #19767]
1511 * sysdeps/unix/sysv/linux/riscv/init-first.c: Remove #ifdef SHARED.
1512 * sysdeps/unix/sysv/linux/riscv/libc-vdso.h: Likewise.
1513 * sysdeps/unix/sysv/linux/riscv/sysdep.h (ALWAYS_USE_VSYSCALL):
1514 Define.
1515
1516 * sysdeps/sh/libm-test-ulps: Update.
1517
1518 2019-08-05 Florian Weimer <fweimer@redhat.com>
1519
1520 [BZ #23518]
1521 * login/uptmp-private.h (struct ufuncs): Remove definition.
1522 (__libc_utmp_file_functions, __libc_utmp_unknown_functions)
1523 (__libc_utmp_jump_table): Remove declarations.
1524 (__libc_setutent, __libc_getutent_r, __libc_getutid_r)
1525 (__libc_getutline_r, __libc_pututline, __libc_endutent)
1526 (__libc_updwtmp): Declare.
1527 * login/getutent_r.c (__libc_utmp_unknown_functions)
1528 (__libc_utmp_jump_table, setutent_unknown, getutent_r_unknown)
1529 (getutid_r_unknown, getutline_r_unknown, pututline_unknown)
1530 (endutent_unknown): Remove definitions.
1531 (__setutent): Call __libc_setutent.
1532 (__getutent_r): Call __libc_getutent_r.
1533 (__pututline): Call __libc_pututline.
1534 (__endutent): Call __libc_endutent.
1535 * login/getutid_r.c (__getutid_r): Call __libc_getutid_r.
1536 * login/getutline_r.c (__getutline_r): Call __libc_getutline_r.
1537 * login/updwtmp.c (__updwtmp): Call __libc_updwtmp.
1538 * login/utmp_file.c (__libc_utmp_file_functions): Remove definition
1539 (__libc_setutent): Rename from stetutent_file. Drop static.
1540 (maybe_setutent): New function.
1541 (__libc_getutent_r): Rename from getutent_r_file. Drop static.
1542 Check for initialization.
1543 (__libc_getutid_r): Rename from getutid_r_file. Drop static.
1544 Check for initialization.
1545 (__libc_getutline_r): Rename from getutline_r_file. Drop static.
1546 Check for initialization.
1547 (__libc_pututline): Rename from pututline_file. Drop static.
1548 Check for initialization.
1549 (__libc_endutent): Rename from endutent_file. Drop static. Check
1550 for initialization.
1551 (__libc_updwtmp): Rename from updwtmp_file. Drop static.
1552 * login/utmpname.c (__utmpname): Call __libc_endutent.
1553 * sysdeps/unix/getlogin_r (__getlogin_r): Call __libc_setutent,
1554 __libc_getutlien_r, __libc_endutent.
1555 * manual/users.texi (Who Logged In, Manipulating the Database):
1556 Adjust.
1557
1558 2019-08-05 Alexandra Hájková <ahajkova@redhat.com>
1559
1560 * elf/tst-ldconfig-bad-aux-cache.c: Use support_capture_subprocess.
1561
1562 2019-08-02 Joseph Myers <joseph@codesourcery.com>
1563
1564 * sysdeps/unix/sysv/linux/syscall-names.list: Update comment.
1565
1566 * sysdeps/unix/sysv/linux/tst-mman-consts.py (main): Update Linux
1567 kernel version number to 5.2.
1568
1569 2019-08-01 Raoni Fassina Firmino <raoni@linux.ibm.com>
1570
1571 * sysdeps/powerpc/powerpc64/power8/memchr.S: Update power8
1572 mnemonics and set .machine power8.
1573 * sysdeps/powerpc/powerpc64/power8/memcmp.S: Likewise.
1574 * sysdeps/powerpc/powerpc64/power8/memrchr.S: Likewise.
1575 * sysdeps/powerpc/powerpc64/power8/memset.S: Likewise.
1576 * sysdeps/powerpc/powerpc64/power8/strchr.S: Likewise.
1577 * sysdeps/powerpc/powerpc64/power8/strlen.S: Likewise.
1578 * sysdeps/powerpc/powerpc64/power8/strncmp.S: Likewise.
1579 * sysdeps/powerpc/powerpc64/power8/strncpy.S: Likewise.
1580 * sysdeps/powerpc/powerpc64/power8/strnlen.S: Likewise.
1581 * sysdeps/powerpc/powerpc64/power8/strrchr.S: Likewise.
1582 * sysdeps/powerpc/powerpc64/power8/strspn.S: Likewise.
1583
1584 2019-08-01 Adhemerval Zanella <adhemerval.zanella@linaro.org>
1585
1586 * sysdeps/hppa/fpu/libm-test-ulps: Update.
1587
1588 2019-08-01 Florian Weimer <fweimer@redhat.com>
1589
1590 [BZ #24867]
1591 * malloc/malloc.c (__malloc_info): Remove unwanted leading
1592 whitespace.
1593
1594 2019-08-01 Adhemerval Zanella <adhemerval.zanella@linaro.org>
1595
1596 [BZ #15813]
1597 sysdeps/posix/tempname.c (__gen_tempname): get entropy on each
1598 attempt.
1599
1600 2019-08-01 Carlos O'Donell <carlos@redhat.com>
1601
1602 * version.h (RELEASE): Set to "stable".
1603 (VERSION): Set to "2.30".
1604 * include/features.h (__GLIBC_MINOR__): Set to 2.30.
1605
1606 * manual/install.texi: Update component versions.
1607 * INSTALL: Regenerate.
1608 * NEWS: Update.
1609
1610 2019-07-31 Carlos O'Donell <carlos@redhat.com>
1611
1612 * po/be.po: Update translations.
1613 * po/bg.po: Likewise.
1614 * po/ca.po: Likewise.
1615 * po/cs.po: Likewise.
1616 * po/da.po: Likewise.
1617 * po/de.po: Likewise.
1618 * po/el.po: Likewise.
1619 * po/eo.po: Likewise.
1620 * po/es.po: Likewise.
1621 * po/fi.po: Likewise.
1622 * po/fr.po: Likewise.
1623 * po/gl.po: Likewise.
1624 * po/hr.po: Likewise.
1625 * po/hu.po: Likewise.
1626 * po/ia.po: Likewise.
1627 * po/id.po: Likewise.
1628 * po/it.po: Likewise.
1629 * po/ja.po: Likewise.
1630 * po/ko.po: Likewise.
1631 * po/lt.po: Likewise.
1632 * po/nb.po: Likewise.
1633 * po/nl.po: Likewise.
1634 * po/pl.po: Likewise.
1635 * po/pt_BR.po: Likewise.
1636 * po/ru.po: Likewise.
1637 * po/rw.po: Likewise.
1638 * po/sk.po: Likewise.
1639 * po/sl.po: Likewise.
1640 * po/sv.po: Likewise.
1641 * po/tr.po: Likewise.
1642 * po/uk.po: Likewise.
1643 * po/vi.po: Likewise.
1644 * po/zh_CN.po: Likewise.
1645 * po/zh_TW.po: Likewise.
1646
1647 2019-07-31 Florian Weimer <fweimer@redhat.com>
1648
1649 [BZ #24583]
1650 [BZ #24677]
1651 iconv, libio: Revert reference counting changes.
1652 * iconv/gconv_cache.c (__gconv_release_cache): Unconditionally
1653 free the steps array.
1654 * libio/Makefile (tests): Remove tst-wfile-gconv.
1655 (tests-container): Do not add tst-wfile-ascii.
1656 (tst-wfile-gconv-ENV): Do not set.
1657 (generated): Do not add tst-wfile-gconv.mtrace,
1658 tst-wfile-gconv.check.
1659 [($run-built-tests)] (tests-special): Do not add
1660 tst-wfile-gconv-mem.out.
1661 (tst-wfile-gconv.out, tst-wfile-gconv-mem.out): Remove targets.
1662 * libio/iofclose.c (_IO_new_fclose): Call __gconv_release_step
1663 instead of __wcsmbs_clone_conv.
1664 * wcsmbs/wcsmbsload.c (__wcsmbs_clone_conv): Remove definition.
1665 * wcsmbs/wcsmbsload.h (__wcsmbs_clone_conv): Remove declaration.
1666
1667 2019-07-30 Joseph Myers <joseph@codesourcery.com>
1668
1669 * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S
1670 (__CONTEXT_FUNC_NAME): Restore setting of r31.
1671
1672 2019-07-30 Florian Weimer <fweimer@redhat.com>
1673
1674 * nptl/tst-pthread-getattr.c (allocate_and_test): Change return
1675 type to uintptr_t. Update comment.
1676 (check_stack_top): Adjust.
1677
1678 2019-07-29 Florian Weimer <fweimer@redhat.com>
1679
1680 Linux: Move declaration of getdents64 to <dirent.h>.
1681 * bits/dirent_ext.h: New file.
1682 * dirent/Makefile (headers): Add bits/dirent_ext.h.
1683 * dirent/dirent.h: Include <bits/dirent_ext.h>.
1684 * sysdeps/unix/sysv/linux/bits/dirent_ext.h: New file.
1685 * sysdeps/unix/sysv/linux/bits/unistd_ext.h (getdents64): Remove
1686 declaration.
1687 * manual/filesys.texi (Low-level Directory Access): Update header
1688 to dirent.h.
1689
1690 2019-07-29 DJ Delorie <dj@redhat.com>
1691 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
1692
1693 [BZ #24794]
1694 * Makeconfig (all-subdirs): Improved source comments.
1695 * Makefile (testroot.pristine/install.stamp): Pass
1696 subdirs='$(sorted-subdirs)' to make install.
1697
1698 2019-07-25 Florian Weimer <fweimer@redhat.com>
1699
1700 [BZ #24677]
1701 * iconv/gconv_cache.c (__gconv_release_cache): Check reference
1702 counter before freeing array.
1703
1704 2019-07-24 H.J. Lu <hongjiu.lu@intel.com>
1705
1706 [BZ #24603]
1707 * sysdeps/x86_64/configure.ac: Check if -mprefer-vector-width=128
1708 works.
1709 * sysdeps/x86_64/configure: Regenerated.
1710 * sysdeps/x86_64/fpu/Makefile (CFLAGS-branred.c): New. Set
1711 to -mprefer-vector-width=128 if supported.
1712
1713 2019-07-24 Florian Weimer <fweimer@redhat.com>
1714
1715 * scripts/build-many-glibcs.py (Context.checkout): Default to
1716 Linux 5.2.
1717
1718 2019-07-24 Florian Weimer <fweimer@redhat.com>
1719
1720 [BZ #24532]
1721 Linux: Use in-tree copy of SO_ constants for !__USE_MISC.
1722 * sysdeps/unix/sysv/linux/Makefile [$(subdir) == socket]
1723 (sysdep_headers): Add bits/socket-constants.h.
1724 (tests-special): Add tst-socket-consts.out.
1725 (tst-socket-consts.out): New target.
1726 * sysdeps/unix/sysv/linux/bits/socket.h: Remove macro tracking
1727 around <asm/unistd.h>.
1728 [__USE_MISC]: Include <bits/types/time_t.h> before <asm/socket.h>.
1729 [!__USE_MISC]: Include <sys/socket-constants.h> instead of
1730 <asm/socket.h>.
1731 * sysdeps/unix/sysv/linux/bits/tst-socket-consts.py: New file.
1732 * sysdeps/unix/sysv/linux/bits/socket-constants.h: Likewise.
1733 * sysdeps/unix/sysv/linux/alpha/bits/socket-constants.h: Likewise.
1734 * sysdeps/unix/sysv/linux/hppa/bits/socket-constants.h: Likewise.
1735 * sysdeps/unix/sysv/linux/mips/bits/socket-constants.h: Likewise.
1736 * sysdeps/unix/sysv/linux/powerpc/bits/socket-constants.h:
1737 Likewise.
1738 * sysdeps/unix/sysv/linux/sparc/bits/socket-constants.h: Likewise.
1739
1740 2019-07-23 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
1741
1742 [BZ #24794]
1743 * Makefile (testroot.pristine/install.stamp): Pass
1744 subdirs='$(all-subdirs)' to make install.
1745
1746 * Makefile (testroot.pristine/install.stamp): Execute ld.so with
1747 the same arguments used in all tests.
1748
1749 2019-07-22 Szabolcs Nagy <szabolcs.nagy@arm.com>
1750
1751 * NEWS: Mention the AArch64 IFUNC resolver ABI change.
1752
1753 2019-07-20 Egor Kobylkin <egor@kobylkin.com>
1754
1755 [BZ #2872]
1756 * locale/C-translit.h.in: Add Cyrillic transliteration.
1757
1758 2019-07-19 Florian Weimer <fweimer@redhat.com>
1759
1760 * sysdeps/unix/sysv/linux/syscall-names.list: Add system calls
1761 from Linux 5.2.
1762 (fsconfig): Add system call name.
1763 (fsmount): Likewise.
1764 (fsopen): Likewise.
1765 (fspick): Likewise.
1766 (move_mount): Likewise.
1767 (open_tree): Likewise.
1768
1769 2019-07-18 Carlos O'Donell <carlos@redhat.com>
1770
1771 * po/libc.pot: Regenerate.
1772
1773 2019-07-18 Mike Crowe <mac@mcrowe.com>
1774
1775 * sysdeps/unix/sysv/linux/hppa/pthread.h: Add declarations of
1776 functions recently added to sysdeps/nptl/pthread.h:
1777 pthread_mutex_clocklock, pthread_rwlock_clockrdlock,
1778 pthread_rwlock_clockwrlock and pthread_cond_clockwait.
1779
1780 * nptl/forward.c: Remove unnecessary __pthread_cond_clockwait and
1781 pthread_cond_clockwait forwarding functions. There are no internal
1782 users, so it is unnecessary to expose these functions in libc.so.
1783 * sysdeps/nptl/pthread-functions.h (pthread_functions): Remove
1784 unnecessary ptr___pthread_cond_clockwait member.
1785 * nptl/nptl-init.c (pthread_functions): Remove assignment of
1786 removed member.
1787
1788 2019-07-17 Rafał Lużyński <digitalfreak@lingonborough.com>
1789
1790 [BZ #21897]
1791 * localedata/locales/aa_DJ (abday): Update from CLDR, all words
1792 begin with an uppercase letter now.
1793 (abmon): Likewise.
1794 (mon): Update from CLDR, reword February from "Kudo" to
1795 "Naharsi Kudo", April from "Agda Baxisso" to "Agda Baxis",
1796 and August from "Liiqen" to "Leqeeni".
1797 * localedata/locales/aa_ER (mon): Update from CLDR, reword
1798 April from "Agda Baxisso" to "Agda Baxis" and August from
1799 "Leqeeni" to "Liiqen".
1800 * localedata/locales/aa_ER@saaho (mon): Likewise.
1801 * localedata/locales/aa_ET (abmon): Update from CLDR, reword
1802 abbreviated February from "Kud" to "Nah".
1803 (mon): Update from CLDR, reword February from "Kudo" to
1804 "Naharsi Kudo" and April from "Agda Baxisso" to "Agda Baxis".
1805
1806 2019-07-17 Rafał Lużyński <digitalfreak@lingonborough.com>
1807
1808 [BZ #23996]
1809 * localedata/locales/nl_BE (LC_NAME): Replace with “copy "nl_NL"”.
1810
1811 2019-07-17 PanderMusubi <pander@users.sourceforge.net>
1812
1813 [BZ #23996]
1814 * localedata/locales/nl_BE (LC_NAME): Add name_gen, name_mr,
1815 name_mrs, name_miss, and name_ms.
1816 * localedata/locales/nl_NL (LC_NAME): Likewise.
1817
1818 2019-07-17 Daniil Zhilin <generalfailer@protonmail.com>
1819
1820 [BZ #24200]
1821 * localedata/locales/ga_IE (first_weekday): Add, set to 2 (Monday).
1822 * localedata/locales/en_IE (first_weekday): Likewise.
1823
1824 2019-07-12 Mike Crowe <mac@mcrowe.com>
1825
1826 * nptl/pthread_cond_wait.c: (__pthread_cond_clockwait): Remove code
1827 that is only useful if futex_supports_exact_relative_timeouts ()
1828 returns false.
1829 * nptl/pthread_condattr_setclock.c: (pthread_condattr_setclock):
1830 Likewise.
1831 * sysdeps/nptl/futex-internal.h: Remove comment about relative
1832 timeouts potentially being imprecise since it's no longer true.
1833 Remove declaration of futex_supports_exact_relative_timeouts.
1834 * sysdeps/unix/sysv/linux/futex-internal.h: Remove implementation
1835 of futex_supports_exact_relative_timeouts.
1836
1837 * NEWS: Mention recently-added pthread_cond_clockwait,
1838 pthread_rwlock_clockrdlock, pthread_rwlock_clockwrlock and
1839 sem_clockwait functions.
1840
1841 nptl: Add POSIX-proposed pthread_mutex_clocklock function that
1842 works like pthread_mutex_timedlock but takes a clockid parameter to
1843 measure the abstime parameter against.
1844 * sysdeps/nptl/pthread.h: Add pthread_mutex_clocklock.
1845 * nptl/DESIGN-systemtap-probes.txt: Likewise.
1846 * nptl/pthread_mutex_timedlock.c
1847 (__pthread_mutex_clocklock_common): Rename from
1848 __pthread_mutex_timedlock and add clockid parameter. Pass this
1849 parameter to lll_clocklock and lll_clocklock_elision in place of
1850 CLOCK_REALTIME. (__pthread_mutex_clocklock): New function to add
1851 LIBC_PROBE and validate clockid parameter before calling
1852 __pthread_mutex_clocklock_common. (__pthread_mutex_timedlock): New
1853 implementation to add LIBC_PROBE and calls
1854 __pthread_mutex_clocklock_common passing CLOCK_REALTIME as the
1855 clockid.
1856 * nptl/Makefile: Add tst-mutex11.c.
1857 * nptl/tst-abstime.c (th): Add tests for pthread_mutex_clocklock.
1858 * nptl/tst-mutex11.c: New tests for passing invalid and unsupported
1859 clockid parameters to pthread_mutex_clocklock.
1860 * nptl/tst-mutex5.c (do_test_clock): Rename from do_test and take
1861 clockid parameter to indicate which clock to be used. Call
1862 pthread_mutex_timedlock or pthread_mutex_clocklock as appropriate.
1863 (do_test): Call do_test_clock to separately test
1864 pthread_mutex_timedlock, pthread_mutex_clocklock(CLOCK_REALTIME)
1865 and pthread_mutex_clocklock(CLOCK_MONOTONIC).
1866 * nptl/tst-mutex9.c: Likewise.
1867 * nptl/Versions (GLIBC_2.30): Add pthread_mutex_clocklock.
1868 * sysdeps/unix/sysv/linux/aarch64/libpthread.abilist (GLIBC_2.30):
1869 Likewise.
1870 * sysdeps/unix/sysv/linux/alpha/libpthread.abilist (GLIBC_2.30):
1871 Likewise.
1872 * sysdeps/unix/sysv/linux/arm/libpthread.abilist (GLIBC_2.30):
1873 Likewise.
1874 * sysdeps/unix/sysv/linux/csky/libpthread.abilist (GLIBC_2.30):
1875 Likewise.
1876 * sysdeps/unix/sysv/linux/hppa/libpthread.abilist (GLIBC_2.30):
1877 Likewise.
1878 * sysdeps/unix/sysv/linux/i386/libpthread.abilist (GLIBC_2.30):
1879 Likewise.
1880 * sysdeps/unix/sysv/linux/ia64/libpthread.abilist (GLIBC_2.30):
1881 Likewise.
1882 * sysdeps/unix/sysv/linux/m68k/coldfire/libpthread.abilist
1883 (GLIBC_2.30): Likewise.
1884 * sysdeps/unix/sysv/linux/m68k/m680x0/libpthread.abilist
1885 (GLIBC_2.30): Likewise.
1886 * sysdeps/unix/sysv/linux/microblaze/libpthread.abilist
1887 (GLIBC_2.30): Likewise.
1888 * sysdeps/unix/sysv/linux/mips/mips32/libpthread.abilist
1889 (GLIBC_2.30): Likewise.
1890 * sysdeps/unix/sysv/linux/mips/mips64/libpthread.abilist
1891 (GLIBC_2.30): Likewise.
1892 * sysdeps/unix/sysv/linux/nios2/libpthread.abilist (GLIBC_2.30):
1893 Likewise.
1894 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libpthread.abilist
1895 (GLIBC_2.30): Likewise.
1896 * sysdeps/unix/sysv/linux/powerpc/powerpc64/be/libpthread.abilist
1897 (GLIBC_2.30): Likewise.
1898 * sysdeps/unix/sysv/linux/powerpc/powerpc64/le/libpthread.abilist
1899 (GLIBC_2.30): Likewise.
1900 * sysdeps/unix/sysv/linux/riscv/rv64/libpthread.abilist
1901 (GLIBC_2.30): Likewise.
1902 * sysdeps/unix/sysv/linux/s390/s390-32/libpthread.abilist
1903 (GLIBC_2.30): Likewise.
1904 * sysdeps/unix/sysv/linux/s390/s390-64/libpthread.abilist
1905 (GLIBC_2.30): Likewise.
1906 * sysdeps/unix/sysv/linux/sh/libpthread.abilist (GLIBC_2.30):
1907 Likewise.
1908 * sysdeps/unix/sysv/linux/sparc/sparc32/libpthread.abilist
1909 (GLIBC_2.30): Likewise.
1910 * sysdeps/unix/sysv/linux/sparc/sparc64/libpthread.abilist
1911 (GLIBC_2.30): Likewise.
1912 * sysdeps/unix/sysv/linux/x86_64/64/libpthread.abilist
1913 (GLIBC_2.30): Likewise.
1914 * sysdeps/unix/sysv/linux/x86_64/x32/libpthread.abilist
1915 (GLIBC_2.30): Likewise.
1916
1917 nptl: Rename lll_timedlock to lll_clocklock and add clockid
1918 parameter to indicate the clock that the abstime parameter should
1919 be measured against in preparation for adding
1920 pthread_mutex_clocklock.
1921 * sysdeps/nptl/lowlevellock.h (lll_clocklock): Rename from
1922 lll_timedlock and add clockid parameter. (__lll_clocklock): Rename
1923 from __lll_timedlock and add clockid parameter.
1924 * sysdeps/unix/sysv/linux/sparc/lowlevellock.h (lll_clocklock):
1925 Likewise.
1926 * nptl/lll_timedlock_wait.c (__lll_clocklock_wait): Rename from
1927 __lll_timedlock_wait and add clockid parameter. Use __clock_gettime
1928 rather than __gettimeofday so that clockid can be used. This means
1929 that conversion from struct timeval is no longer required.
1930 * sysdeps/sparc/sparc32/lowlevellock.c (lll_clocklock_wait):
1931 Likewise.
1932 * sysdeps/sparc/sparc32/lll_timedlock_wait.c: Update comment to
1933 refer to __lll_clocklock_wait rather than __lll_timedlock_wait.
1934 * nptl/pthread_mutex_timedlock.c (lll_clocklock_elision): Rename
1935 from lll_timedlock_elision, add clockid parameter and use
1936 meaningful names for other parameters. (__pthread_mutex_timedlock):
1937 Pass CLOCK_REALTIME where necessary to lll_clocklock and
1938 lll_clocklock_elision.
1939 * sysdeps/unix/sysv/linux/powerpc/lowlevellock.h
1940 (lll_clocklock_elision): Rename from lll_timedlock_elision and add
1941 clockid parameter. (__lll_clocklock_elision): Rename from
1942 __lll_timedlock_elision and add clockid parameter.
1943 * sysdeps/unix/sysv/linux/s390/lowlevellock.h: Likewise.
1944 * sysdeps/unix/sysv/linux/x86/lowlevellock.h: Likewise.
1945 * sysdeps/unix/sysv/linux/powerpc/elision-timed.c
1946 (__lll_lock_elision): Call __lll_clocklock_elision rather than
1947 __lll_timedlock_elision. (EXTRAARG): Add clockid parameter.
1948 (LLL_LOCK): Likewise.
1949 * sysdeps/unix/sysv/linux/s390/elision-timed.c: Likewise.
1950 * sysdeps/unix/sysv/linux/x86/elision-timed.c: Likewise.
1951
1952 nptl: Add POSIX-proposed pthread_rwlock_clockrdlock &
1953 pthread_rwlock_clockwrlock which behave like
1954 pthread_rwlock_timedrdlock and pthread_rwlock_timedwrlock
1955 respectively, except they always measure abstime against the
1956 supplied clockid. The functions currently support CLOCK_REALTIME
1957 and CLOCK_MONOTONIC and return EINVAL if any other clock is
1958 specified.
1959 * sysdeps/nptl/pthread.h: Add pthread_rwlock_clockrdlock and
1960 pthread_wrlock_clockwrlock.
1961 * nptl/Makefile: Build pthread_rwlock_clockrdlock.c and
1962 pthread_rwlock_clockwrlock.c.
1963 * nptl/pthread_rwlock_clockrdlock.c: Implement
1964 pthread_rwlock_clockrdlock.
1965 * nptl/pthread_rwlock_clockwrlock.c: Implement
1966 pthread_rwlock_clockwrlock.
1967 * nptl/pthread_rwlock_common.c (__pthread_rwlock_rdlock_full): Add
1968 clockid parameter and verify that it indicates a supported clock on
1969 entry so that we fail even if it doesn't end up being used. Pass
1970 that clock on to futex_abstimed_wait when necessary.
1971 (__pthread_rwlock_wrlock_full): Likewise.
1972 * nptl/pthread_rwlock_rdlock.c: (__pthread_rwlock_rdlock): Pass
1973 CLOCK_REALTIME to __pthread_rwlock_rdlock_full even though it won't
1974 be used because there's no timeout.
1975 * nptl/pthread_rwlock_wrlock.c (__pthread_rwlock_wrlock): Pass
1976 CLOCK_REALTIME to __pthread_rwlock_wrlock_full even though it won't
1977 be used because there is no timeout.
1978 * nptl/pthread_rwlock_timedrdlock.c (pthread_rwlock_timedrdlock):
1979 Pass CLOCK_REALTIME to __pthread_rwlock_rdlock_full since abstime
1980 uses that clock.
1981 * nptl/pthread_rwlock_timedwrlock.c (pthread_rwlock_timedwrlock):
1982 Pass CLOCK_REALTIME to __pthread_rwlock_wrlock_full since abstime
1983 uses that clock.
1984 * sysdeps/unix/sysv/linux/aarch64/libpthread.abilist (GLIBC_2.30): Likewise.
1985 * sysdeps/unix/sysv/linux/alpha/libpthread.abilist (GLIBC_2.30): Likewise.
1986 * sysdeps/unix/sysv/linux/arm/libpthread.abilist (GLIBC_2.30): Likewise.
1987 * sysdeps/unix/sysv/linux/csky/libpthread.abilist (GLIBC_2.30): Likewise.
1988 * sysdeps/unix/sysv/linux/hppa/libpthread.abilist (GLIBC_2.30): Likewise.
1989 * sysdeps/unix/sysv/linux/i386/libpthread.abilist (GLIBC_2.30): Likewise.
1990 * sysdeps/unix/sysv/linux/ia64/libpthread.abilist (GLIBC_2.30): Likewise.
1991 * sysdeps/unix/sysv/linux/m68k/coldfire/libpthread.abilist
1992 (GLIBC_2.30): Likewise.
1993 * sysdeps/unix/sysv/linux/m68k/m680x0/libpthread.abilist
1994 (GLIBC_2.30): Likewise.
1995 * sysdeps/unix/sysv/linux/microblaze/libpthread.abilist
1996 (GLIBC_2.30): Likewise.
1997 * sysdeps/unix/sysv/linux/mips/mips32/libpthread.abilist
1998 (GLIBC_2.30): Likewise.
1999 * sysdeps/unix/sysv/linux/mips/mips64/libpthread.abilist
2000 (GLIBC_2.30): Likewise.
2001 * sysdeps/unix/sysv/linux/nios2/libpthread.abilist (GLIBC_2.30): Likewise.
2002 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libpthread.abilist
2003 (GLIBC_2.30): Likewise.
2004 * sysdeps/unix/sysv/linux/powerpc/powerpc64/be/libpthread.abilist
2005 (GLIBC_2.30): Likewise.
2006 * sysdeps/unix/sysv/linux/powerpc/powerpc64/le/libpthread.abilist
2007 (GLIBC_2.30): Likewise.
2008 * sysdeps/unix/sysv/linux/riscv/rv64/libpthread.abilist
2009 (GLIBC_2.30): Likewise.
2010 * sysdeps/unix/sysv/linux/s390/s390-32/libpthread.abilist
2011 (GLIBC_2.30): Likewise.
2012 * sysdeps/unix/sysv/linux/s390/s390-64/libpthread.abilist
2013 (GLIBC_2.30): Likewise.
2014 * sysdeps/unix/sysv/linux/sh/libpthread.abilist (GLIBC_2.30): Likewise.
2015 * sysdeps/unix/sysv/linux/sparc/sparc32/libpthread.abilist
2016 (GLIBC_2.30): Likewise.
2017 * sysdeps/unix/sysv/linux/sparc/sparc64/libpthread.abilist
2018 (GLIBC_2.30): Likewise.
2019 * sysdeps/unix/sysv/linux/x86_64/64/libpthread.abilist
2020 (GLIBC_2.30): Likewise.
2021 * sysdeps/unix/sysv/linux/x86_64/x32/libpthread.abilist
2022 (GLIBC_2.30): Likewise.
2023 * nptl/tst-abstime.c (th): Add pthread_rwlock_clockrdlock and
2024 pthread_rwlock_clockwrlock timeout tests to match the existing
2025 pthread_rwlock_timedrdloock and pthread_rwlock_timedwrlock tests.
2026 * nptl/tst-rwlock14.c (do_test): Likewise.
2027 * nptl/tst-rwlock6.c Invent verbose_printf macro, and use for
2028 ancillary output throughout. (tf): Accept thread_args structure so
2029 that rwlock, a clockid and function name can be passed to the
2030 thread. (do_test_clock): Rename from do_test. Accept clockid
2031 parameter to specify test clock. Use the magic clockid value of
2032 CLOCK_USE_TIMEDLOCK to indicate that pthread_rwlock_timedrdlock and
2033 pthread_rwlock_timedwrlock should be tested, otherwise pass the
2034 specified clockid to pthread_rwlock_clockrdlock and
2035 pthread_rwlock_clockwrlock. Use xpthread_create and xpthread_join.
2036 (do_test): Call do_test_clock to test each clockid in turn.
2037 * nptl/tst-rwlock7.c: Likewise.
2038 * nptl/tst-rwlock9.c (writer_thread, reader_thread): Accept
2039 thread_args structure so that the (now int) thread number, the
2040 clockid and the function name can be passed to the thread.
2041 (do_test_clock): Renamed from do_test. Pass the necessary
2042 thread_args when creating the reader and writer threads. Use
2043 xpthread_create and xpthread_join.
2044 (do_test): Call do_test_clock to test each clockid in turn.
2045 * manual/threads.texi: Add documentation for
2046 pthread_rwlock_clockrdlock and pthread_rwlock_clockwrclock.
2047
2048 nptl: pthread_rwlock: Move timeout validation into _full functions
2049 * nptl/pthread_rwlock_common.c (__pthread_rwlock_rdlock_full):
2050 Check validity of abstime parameter.
2051 (__pthread_rwlock_rwlock_full): Likewise.
2052 * nptl/pthread_rwlock_timedrdlock.c (pthread_rwlock_timedrdlock):
2053 Remove check for validity of abstime parameter.
2054 * nptl/pthread_rwlock_timedwrlock.c (pthread_rwlock_timedwrlock):
2055 Likewise.
2056
2057 nptl: Add POSIX-proposed pthread_cond_clockwait which behaves just
2058 like pthread_cond_timedwait except it always measures abstime
2059 against the supplied clockid.
2060 * nptl/Makefile: Add tst-cond26 and tst-cond27
2061 * nptl/Versions (GLIBC_2.30): Add pthread_cond_clockwait
2062 * sysdeps/nptl/pthread.h: Likewise
2063 * nptl/forward.c: Add __pthread_cond_clockwait
2064 * nptl/forward.c: Likewise
2065 * nptl/pthreadP.h: Likewise
2066 * sysdeps/nptl/pthread-functions.h: Likewise
2067 * nptl/pthread_cond_wait.c (__pthread_cond_wait_common): Add
2068 clockid parameter and comment describing why we don't need to check
2069 its value. Use that value when calling
2070 futex_abstimed_wait_cancelable rather than reading the clock from
2071 the flags. (__pthread_cond_wait): Pass unused clockid parameter.
2072 (__pthread_cond_timedwait): Read clock from flags and pass it to
2073 __pthread_cond_wait_common. (__pthread_cond_clockwait): Add new
2074 function with weak alias from pthread_cond_clockwait.
2075 * sysdeps/unix/sysv/linux/aarch64/libpthread.abilist (GLIBC_2.30): Likewise.
2076 * sysdeps/unix/sysv/linux/alpha/libpthread.abilist (GLIBC_2.30): Likewise.
2077 * sysdeps/unix/sysv/linux/arm/libpthread.abilist (GLIBC_2.30): Likewise.
2078 * sysdeps/unix/sysv/linux/csky/libpthread.abilist (GLIBC_2.30): Likewise.
2079 * sysdeps/unix/sysv/linux/hppa/libpthread.abilist (GLIBC_2.30): Likewise.
2080 * sysdeps/unix/sysv/linux/i386/libpthread.abilist (GLIBC_2.30): Likewise.
2081 * sysdeps/unix/sysv/linux/ia64/libpthread.abilist (GLIBC_2.30): Likewise.
2082 * sysdeps/unix/sysv/linux/m68k/coldfire/libpthread.abilist
2083 (GLIBC_2.30): Likewise.
2084 * sysdeps/unix/sysv/linux/m68k/m680x0/libpthread.abilist
2085 (GLIBC_2.30): Likewise.
2086 * sysdeps/unix/sysv/linux/microblaze/libpthread.abilist
2087 (GLIBC_2.30): Likewise.
2088 * sysdeps/unix/sysv/linux/mips/mips32/libpthread.abilist
2089 (GLIBC_2.30): Likewise.
2090 * sysdeps/unix/sysv/linux/mips/mips64/libpthread.abilist
2091 (GLIBC_2.30): Likewise.
2092 * sysdeps/unix/sysv/linux/nios2/libpthread.abilist (GLIBC_2.30): Likewise.
2093 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libpthread.abilist
2094 (GLIBC_2.30): Likewise.
2095 * sysdeps/unix/sysv/linux/powerpc/powerpc64/be/libpthread.abilist
2096 (GLIBC_2.30): Likewise.
2097 * sysdeps/unix/sysv/linux/powerpc/powerpc64/le/libpthread.abilist
2098 (GLIBC_2.30): Likewise.
2099 * sysdeps/unix/sysv/linux/riscv/rv64/libpthread.abilist
2100 (GLIBC_2.30): Likewise.
2101 * sysdeps/unix/sysv/linux/s390/s390-32/libpthread.abilist
2102 (GLIBC_2.30): Likewise.
2103 * sysdeps/unix/sysv/linux/s390/s390-64/libpthread.abilist
2104 (GLIBC_2.30): Likewise.
2105 * sysdeps/unix/sysv/linux/sh/libpthread.abilist (GLIBC_2.30): Likewise.
2106 * sysdeps/unix/sysv/linux/sparc/sparc32/libpthread.abilist
2107 (GLIBC_2.30): Likewise.
2108 * sysdeps/unix/sysv/linux/sparc/sparc64/libpthread.abilist
2109 (GLIBC_2.30): Likewise.
2110 * sysdeps/unix/sysv/linux/x86_64/64/libpthread.abilist
2111 (GLIBC_2.30): Likewise.
2112 * sysdeps/unix/sysv/linux/x86_64/x32/libpthread.abilist
2113 (GLIBC_2.30): Likewise.
2114 * nptl/tst-cond11.c (run_test): Support testing
2115 pthread_cond_clockwait too by using a special magic
2116 CLOCK_USE_ATTR_CLOCK value to determine whether to call
2117 pthread_cond_timedwait or pthread_cond_clockwait. (do_test): Pass
2118 CLOCK_USE_ATTR_CLOCK for existing tests, and add new tests using
2119 all combinations of CLOCK_MONOTONIC and CLOCK_REALTIME.
2120 * ntpl/tst-cond26.c: New test for passing unsupported and invalid
2121 clocks to pthread_cond_clockwait.
2122 * nptl/tst-cond27.c: Add test similar to tst-cond5.c, but using
2123 struct timespec and pthread_cond_clockwait.
2124 * manual/threads.texi: Document pthread_cond_clockwait.
2125
2126 nptl: Add POSIX-proposed sem_clockwait which behaves just like
2127 sem_timedwait, but measures abstime against the specified clock.
2128 * nptl/sem_waitcommon.c (do_futex_wait, __new_sem_wait_slow): Add
2129 clockid parameters to indicate the clock which abstime should be
2130 measured against.
2131 * nptl/sem_timedwait.c (sem_timedwait), nptl/sem_wait.c
2132 (__new_sem_wait): Pass CLOCK_REALTIME as clockid to
2133 __new_sem_wait_slow.
2134 * nptl/sem_clockwait.c: New file to implement sem_clockwait based
2135 on sem_timedwait.c.
2136 * nptl/Makefile: Add sem_clockwait.c source file. Add CFLAGS for
2137 sem_clockwait.c to match those used for sem_timedwait.c.
2138 * sysdeps/pthread/semaphore.h: Add sem_clockwait.
2139 * nptl/Versions (GLIBC_2.30): Likewise.
2140 * sysdeps/unix/sysv/linux/aarch64/libpthread.abilist (GLIBC_2.30): Likewise.
2141 * sysdeps/unix/sysv/linux/alpha/libpthread.abilist (GLIBC_2.30): Likewise.
2142 * sysdeps/unix/sysv/linux/arm/libpthread.abilist (GLIBC_2.30): Likewise.
2143 * sysdeps/unix/sysv/linux/csky/libpthread.abilist (GLIBC_2.30): Likewise.
2144 * sysdeps/unix/sysv/linux/hppa/libpthread.abilist (GLIBC_2.30): Likewise.
2145 * sysdeps/unix/sysv/linux/i386/libpthread.abilist (GLIBC_2.30): Likewise.
2146 * sysdeps/unix/sysv/linux/ia64/libpthread.abilist (GLIBC_2.30): Likewise.
2147 * sysdeps/unix/sysv/linux/m68k/coldfire/libpthread.abilist
2148 (GLIBC_2.30): Likewise.
2149 * sysdeps/unix/sysv/linux/m68k/m680x0/libpthread.abilist
2150 (GLIBC_2.30): Likewise.
2151 * sysdeps/unix/sysv/linux/microblaze/libpthread.abilist
2152 (GLIBC_2.30): Likewise.
2153 * sysdeps/unix/sysv/linux/mips/mips32/libpthread.abilist
2154 (GLIBC_2.30): Likewise.
2155 * sysdeps/unix/sysv/linux/mips/mips64/libpthread.abilist
2156 (GLIBC_2.30): Likewise.
2157 * sysdeps/unix/sysv/linux/nios2/libpthread.abilist (GLIBC_2.30): Likewise.
2158 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libpthread.abilist
2159 (GLIBC_2.30): Likewise.
2160 * sysdeps/unix/sysv/linux/powerpc/powerpc64/be/libpthread.abilist
2161 (GLIBC_2.30): Likewise.
2162 * sysdeps/unix/sysv/linux/powerpc/powerpc64/le/libpthread.abilist
2163 (GLIBC_2.30): Likewise.
2164 * sysdeps/unix/sysv/linux/riscv/rv64/libpthread.abilist
2165 (GLIBC_2.30): Likewise.
2166 * sysdeps/unix/sysv/linux/s390/s390-32/libpthread.abilist
2167 (GLIBC_2.30): Likewise.
2168 * sysdeps/unix/sysv/linux/s390/s390-64/libpthread.abilist
2169 (GLIBC_2.30): Likewise.
2170 * sysdeps/unix/sysv/linux/sh/libpthread.abilist (GLIBC_2.30): Likewise.
2171 * sysdeps/unix/sysv/linux/sparc/sparc32/libpthread.abilist
2172 (GLIBC_2.30): Likewise.
2173 * sysdeps/unix/sysv/linux/sparc/sparc64/libpthread.abilist
2174 (GLIBC_2.30): Likewise.
2175 * sysdeps/unix/sysv/linux/x86_64/64/libpthread.abilist
2176 (GLIBC_2.30): Likewise.
2177 * sysdeps/unix/sysv/linux/x86_64/x32/libpthread.abilist
2178 (GLIBC_2.30): Likewise.
2179 * nptl/tst-sem17.c: Add new test for passing invalid clock to
2180 sem_clockwait.
2181 * nptl/tst-sem13.c, nptl/tst-sem5.c: Modify existing sem_timedwait
2182 tests to also test sem_clockwait.
2183 * manual/threads.texi: Document sem_clockwait.
2184
2185 nptl: Add clockid parameter to futex timed wait calls
2186 * sysdeps/nptl/lowlevellock-futex.h,
2187 sysdeps/unix/sysv/linux/lowlevellock-futex.h: Replace
2188 lll_futex_timed_wait_bitset with lll_futex_clock_wait_bitset that
2189 takes a clockid rather than a special clockbit.
2190 * sysdeps/nptl/lowlevellock-futex.h: Add
2191 lll_futex_supported_clockid so that client functions can check
2192 whether their clockid parameter is valid even if they don't
2193 ultimately end up calling lll_futex_clock_wait_bitset.
2194 * sysdeps/nptl/futex-internal.h,
2195 sysdeps/unix/sysv/linux/futex-internal.h
2196 (futex_abstimed_wait, futex_abstimed_wait_cancelable): Add
2197 clockid_t parameter to indicate which clock the absolute time
2198 passed should be measured against. Pass that clockid onto
2199 lll_futex_clock_wait_bitset. Add invalid clock as reason for
2200 returning -EINVAL.
2201 * sysdeps/nptl/futex-internal.h,
2202 sysdeps/unix/sysv/linux/futex-internal.h: Introduce
2203 futex_abstimed_supported_clockid so that client functions can check
2204 whether their clockid parameter is valid even if they don't
2205 ultimately end up calling futex_abstimed_wait.
2206 * nptl/pthread_cond_wait.c (__pthread_cond_wait_common): Remove
2207 code to calculate relative timeout for
2208 __PTHREAD_COND_CLOCK_MONOTONIC_MASK and just pass CLOCK_MONOTONIC
2209 or CLOCK_REALTIME as required to futex_abstimed_wait_cancelable.
2210 * nptl/pthread_rwlock_common (__pthread_rwlock_rdlock_full)
2211 (__pthread_wrlock_full), nptl/sem_waitcommon (do_futex_wait): Pass
2212 additional CLOCK_REALTIME to futex_abstimed_wait_cancelable.
2213 * nptl/pthread_mutex_timedlock.c (__pthread_mutex_timedlock):
2214 Switch to lll_futex_clock_wait_bitset and pass CLOCK_REALTIME
2215
2216 2019-07-10 Adhemerval Zanella <adhemerval.zanella@linaro.org>
2217
2218 [BZ #24699]
2219 * posix/tst-mmap-offset.c: Mention BZ #24699.
2220 (do_test_bz21270): Rename to do_test_large_offset and use
2221 mmap64_maximum_offset to check for maximum expected offset value.
2222 * sysdeps/generic/mmap_info.h: New file.
2223 * sysdeps/unix/sysv/linux/mips/mmap_info.h: Likewise.
2224 * sysdeps/unix/sysv/linux/mmap64.c (MMAP_OFF_HIGH_MASK): Define iff
2225 __NR_mmap2 is used.
2226
2227 2019-07-10 DJ Delorie <dj@redhat.com>
2228 Sergei Trofimovich <slyfox@inbox.ru>
2229
2230 [BZ #24696]
2231 [BZ #24695]
2232 * nss/nss_db/db-open.c (internal_endent): Protect against NULL
2233 mappings.
2234 * nss/tst-nss-db-endgrent.c: New.
2235 * nss/tst-nss-db-endgrent.root: New.
2236 * nss/tst-nss-db-endpwent.c: New.
2237 * nss/tst-nss-db-endpwent.root: New.
2238 * nss/Makefile: Add new tests.
2239 * support/links-dso-program-c.c: Add selinux dependency.
2240 * support/links-dso-program.cc: Add selinux dependency.
2241 * support/Makefile: Build those with -lselinux if enabled.
2242
2243 2019-07-10 Szabolcs Nagy <szabolcs.nagy@arm.com>
2244
2245 * sysdeps/aarch64/dl-machine.h (elf_machine_runtime_setup): Remove the
2246 DT_AARCH64_VARIANT_PCS check.
2247 (elf_machine_lazy_rel): Use l_info[DT_AARCH64 (VARIANT_PCS)].
2248 * sysdeps/aarch64/linkmap.h (struct link_map_machine): Remove
2249 variant_pcs.
2250
2251 2019-07-10 Andreas Schwab <schwab@suse.de>
2252
2253 [BZ #23352]
2254 * malloc/malloc.h (__malloc_check_init): Don't declare.
2255 * include/malloc.h (__malloc_check_init): Likewise.
2256 * malloc/malloc-internal.h (__malloc_check_init): Declare it here.
2257 * manual/memory.texi (__malloc_check_init): Don't mention it.
2258
2259 2019-07-10 Mao Han <han_mao@c-sky.com>
2260
2261 * locale/Makefile: Fix tst-locale-locpath arguments passing.
2262
2263 2019-07-09 Paul A. Clarke <pc@us.ibm.com>
2264
2265 * sysdeps/powerpc/fpu/fenv_libc.h (_FPU_GET_RC): Protect use of
2266 __builtin_cpu_supports with __BUILTIN_CPU_SUPPORTS__.
2267
2268 2019-07-08 DJ Delorie <dj@redhat.com>
2269
2270 [BZ #23501]
2271 * io/ftw.c (process_entry): Fill in statbuf for dangling links.
2272 * io/tst-ftw-lnk.c: New test.
2273 * io/Makefile: Run it.
2274
2275 2019-07-08 Adhemerval Zanella <adhemerval.zanella@linaro.org>
2276
2277 * sysdeps/powerpc/power7/fpu/s_logb.c: Move to ...
2278 * sysdeps/powerpc/fpu/s_logb.c: ... here. Use inline FP constants.
2279 * sysdeps/powerpc/power7/fpu/s_logbf.c: Move to ...
2280 * sysdeps/powerpc/fpu/s_logbf.c: ... here. Use inline FP constants.
2281 * sysdeps/powerpc/power7/fpu/s_logbl.c: Move to ...
2282 * sysdeps/powerpc/fpu/s_logbl.c: ... here. Use inline FP constants.
2283 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logb-power7.c:
2284 Adjust implementation path.
2285 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logbf-power7.c:
2286 Adjust implementation path.
2287 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logbl-power7.c:
2288 Adjust implementation path.
2289 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/Makefile
2290 (libm-sysdep_routines): Add s_log* objects.
2291 (CFLAGS-s_logbf-power7.c, CFLAGS-s_logbl-power7.c,
2292 CFLAGS-s_logb-power7.c): New fule.
2293 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logb-power7.c: Move
2294 to ...
2295 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_logb-power7.c:
2296 ... here.
2297 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logb-ppc64.c: Move
2298 to ...
2299 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_logb-ppc64.c:
2300 ... here.
2301 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logb.c: Move to ...
2302 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_logb.c: ... here.
2303 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logbf-power7.c: Move
2304 to ...
2305 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_logbf-power7.c:
2306 ... here.
2307 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logbf-ppc64.c: Move
2308 to ...
2309 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_logbf-ppc64.c:
2310 ... here.
2311 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logbf.c: Move to ...
2312 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_logbf.c: ... here.
2313 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logbl-power7.c: Move
2314 to ...
2315 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_logbl-power7.c:
2316 ... here.
2317 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logbl-ppc64.c: Move
2318 to ...
2319 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_logbl-ppc64.c:
2320 ... here.
2321 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logbl.c: Move to ...
2322 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_logbl.c: ... here.
2323 * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Remove file.
2324 * sysdeps/powerpc/powerpc64/power7/fpu/s_logb.c: Remove file.
2325 * sysdeps/powerpc/powerpc64/power7/fpu/s_logbf.c: Likewise.
2326 * sysdeps/powerpc/powerpc64/power7/fpu/s_logbl.c: Likewise.
2327
2328 * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c: Move to ...
2329 * sysdeps/ieee754/dbl-64/s_logb.c: ... here. Add work around for
2330 powerpc32 integer 0 converting to -0.
2331
2332 * benchtests/Makefile (bench-math): Add logb.
2333 * benchtests/logb-inputs: New file.
2334 * benchtests/logbf-inputs: New file.
2335
2336 * sysdeps/powerpc/power5+/fpu/s_modf.c: Move to ...
2337 * sysdeps/powerpc/fpu/s_modf.c: ... here. Add ISA 2.07 optimization.
2338 * sysdeps/powerpc/power5+/fpu/s_modff.c: Move to ...
2339 * sysdeps/powerpc/fpu/s_modff.c: ... here. Add ISA 2.07 optimization.
2340 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_modf-power5+.c:
2341 Adjust include.
2342 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_modff-power5+.c:
2343 Likewise.
2344 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/Makefile (sysdep_calls,
2345 sysdep_routines): Add s_modf* objects.
2346 (CFLAGS-s_modf-power5+.c, CFLAGS-s_modff-power5+.c,
2347 CFLAGS-s_modf-ppc64.c, CFLAGS-s_modff-ppc64.c): New rule.
2348 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modf-power5+.c: Move
2349 to ...
2350 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_modf-power5+.c:
2351 ... here.
2352 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modf-power5+.c: Movo
2353 to ...
2354 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_modf-power5+.c: Move
2355 ... here.
2356 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modf.c: Move to ...
2357 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_modf.c: ... here.
2358 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modff-power5+.c: Move
2359 to ...
2360 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_modff-power5+.c:
2361 ... here.
2362 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modff-ppc64.c: Move to ...
2363 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_modff-ppc64.c:
2364 ... here.
2365 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modff.c: Move to ...
2366 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_modff.c: ... here.
2367
2368 * sysdeps/powerpc/fpu/e_hypot.c (two60, two500, two600, two1022,
2369 twoM500, twoM600, two60factor, pdnum): Remove.
2370 (TEST_INFO_NAN, GET_TW0_HIGH_WORD): Remove macro.
2371 (__ieee754_hypot): Replace static variables with inline definition,
2372 remove ununsed branches.
2373 * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile
2374 (libm-sysdep_routines): Remove e_hypot-* objects.
2375 (CFLAGS-e_hypot-power7.c, CFLAGS-e_hypotf-power7.c): Remove rule.
2376 * sysdeps/powerpc/powerpc64/fpu/multiarch/e_hypot-power7.c: Remove
2377 file.
2378 * sysdeps/powerpc/powerpc64/fpu/multiarch/e_hypot-ppc64.c: Likewise.
2379 * sysdeps/powerpc/powerpc64/fpu/multiarch/e_hypot.c: Likewise.
2380 * sysdeps/powerpc/powerpc64/fpu/multiarch/e_hypotf-power7.c: Likewise.
2381 * sysdeps/powerpc/powerpc64/fpu/multiarch/e_hypotf-ppc64.c: Likewise.
2382 * sysdeps/powerpc/powerpc64/fpu/multiarch/e_hypotf.c: Likewise.
2383
2384 * benchtests/Makefile (bench-math): Add hypot.
2385 * benchtests/hypot-inputs: New file.
2386
2387 2019-07-08 Vincent Chen <vincentc@andestech.com>
2388
2389 * sysdeps/unix/sysv/linux/dl-vdso.h
2390 (VDSO_NAME_LINUX_4, VDSO_HASH_LINUX_4): New defines.
2391
2392 2019-07-04 Andreas Schwab <schwab@suse.de>
2393
2394 [BZ #24484]
2395 * sysdeps/riscv/ldsodefs.h (DL_RO_DYN_SECTION): Define.
2396
2397 2019-07-04 Szabolcs Nagy <szabolcs.nagy@arm.com>
2398
2399 * sysdeps/aarch64/Makefile: Install sys/ifunc.h and add tests.
2400 * sysdeps/aarch64/dl-irel.h (elf_ifunc_invoke): Update to new ABI.
2401 * sysdeps/aarch64/sys/ifunc.h: New file.
2402 * sysdeps/aarch64/tst-ifunc-arg-1.c: New file.
2403 * sysdeps/aarch64/tst-ifunc-arg-2.c: New file.
2404
2405 2019-07-01 Florian Weimer <fweimer@redhat.com>
2406
2407 [BZ #20188]
2408 * nptl/Versions (libpthread): Remove __fork from GLIBC_2.0.
2409 Replace __vfork with __libpthread_version_placeholder for
2410 GLIBC_2.1.2.
2411 (libc): Remove __libc_vfork from GLIBC_PRIVATE.
2412 * nptl/Makefile (libpthread-routines): Remove pt-vfork. Add
2413 libpthread-compat.
2414 * nptl/pt-vfork.c: Remove file.
2415 * sysdeps/unix/sysv/linux/aarch64/pt-vfork.c: Likewise.
2416 * sysdeps/unix/sysv/linux/alpha/pt-vfork.S: Likewise.
2417 * sysdeps/unix/sysv/linux/csky/pt-vfork.S: Likewise.
2418 * sysdeps/unix/sysv/linux/hppa/pt-vfork.S: Likewise.
2419 * sysdeps/unix/sysv/linux/ia64/pt-vfork.S: Likewise.
2420 * sysdeps/unix/sysv/linux/m68k/pt-vfork.c: Likewise.
2421 * sysdeps/unix/sysv/linux/microblaze/pt-vfork.S: Likewise.
2422 * sysdeps/unix/sysv/linux/mips/pt-vfork.S: Likewise.
2423 * sysdeps/unix/sysv/linux/nios2/pt-vfork.S: Likewise.
2424 * sysdeps/unix/sysv/linux/riscv/pt-vfork.S: Likewise.
2425 * sysdeps/unix/sysv/linux/s390/pt-vfork.S: Likewise.
2426 * sysdeps/unix/sysv/linux/sh/pt-vfork.S: Likewise.
2427 * sysdeps/unix/sysv/linux/sparc/pt-vfork.S: Likewise.
2428 * sysdeps/unix/sysv/linux/aarch64/libpthread.abilist (GLIBC_2.17):
2429 Remove vfork, __vfork.
2430 * sysdeps/unix/sysv/linux/alpha/libpthread.abilist (GLIBC_2.0):
2431 Remove vfork.
2432 (GLIBC_2.1.2): Replace __vfork with
2433 __libpthread_version_placeholder.
2434 * sysdeps/unix/sysv/linux/arm/libpthread.abilist (GLIBC_2.4):
2435 Remove vfork, __vfork.
2436 * sysdeps/unix/sysv/linux/hppa/libpthread.abilist (GLIBC_2.2):
2437 Likewise.
2438 * sysdeps/unix/sysv/linux/i386/libpthread.abilist (GLIBC_2.0):
2439 Remove vfork.
2440 (GLIBC_2.1.2): Replace __vfork with
2441 __libpthread_version_placeholder.
2442 * sysdeps/unix/sysv/linux/ia64/libpthread.abilist (GLIBC_2.2):
2443 Remove vfork.
2444 * sysdeps/unix/sysv/linux/m68k/coldfire/libpthread.abilist
2445 (GLIBC_2.4): Remove vfork, __vfork.
2446 * sysdeps/unix/sysv/linux/m68k/m680x0/libpthread.abilist
2447 (GLIBC_2.0): Remove vfork.
2448 (GLIBC_2.1.2): Replace __vfork with
2449 __libpthread_version_placeholder.
2450 * sysdeps/unix/sysv/linux/microblaze/libpthread.abilist
2451 (GLIBC_2.18): Remove vfork, __vfork.
2452 * sysdeps/unix/sysv/linux/mips/mips32/libpthread.abilist
2453 (GLIBC_2.0): Remove vfork.
2454 (GLIBC_2.2): Remove __vfork.
2455 * sysdeps/unix/sysv/linux/mips/mips64/libpthread.abilist:
2456 (GLIBC_2.2): Remove vfork, __vfork.
2457 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libpthread.abilist:
2458 (GLIBC_2.0): Remove vfork.
2459 (GLIBC_2.1.2): Replace __vfork with
2460 __libpthread_version_placeholder.
2461 * sysdeps/unix/sysv/linux/powerpc/powerpc64/be/libpthread.abilist
2462 (GLIBC_2.3): Remove vfork, __vfork.
2463 * sysdeps/unix/sysv/linux/powerpc/powerpc64/le/libpthread.abilist
2464 (GLIBC_2.17): Likewise.
2465 * sysdeps/unix/sysv/linux/s390/s390-32/libpthread.abilist
2466 (GLIBC_2.0): Remove vfork.
2467 (GLIBC_2.1.2): Replace __vfork with
2468 __libpthread_version_placeholder.
2469 * sysdeps/unix/sysv/linux/s390/s390-64/libpthread.abilist
2470 (GLIBC_2.2): Remove vfork, __vfork.
2471 * sysdeps/unix/sysv/linux/sh/libpthread.abilist (GLIBC_2.2):
2472 Likewise.
2473 * sysdeps/unix/sysv/linux/sparc/sparc32/libpthread.abilist
2474 (GLIBC_2.0): Remove vfork.
2475 (GLIBC_2.1.2): Replace __vfork with
2476 __libpthread_version_placeholder.
2477 * sysdeps/unix/sysv/linux/sparc/sparc64/libpthread.abilist
2478 (GLIBC_2.2): Remove vfork, __vfork.
2479 * sysdeps/unix/sysv/linux/x86_64/64/libpthread.abilist
2480 (GLIBC_2.2.5): Likewise.
2481 * sysdeps/unix/sysv/linux/x86_64/x32/libpthread.abilist
2482 (GLIBC_2.16): Likewise.
2483 * sysdeps/unix/sysv/linux/hppa/localplt.data (libpthread.so):
2484 Remove __errno_location.
2485
2486 2019-07-02 Florian Weimer <fweimer@redhat.com>
2487
2488 [BZ #24757]
2489 * malloc/Depend: Add nptl and htl, due to potential indirect
2490 libpthread dependency of memusagestat.
2491
2492 2019-07-02 Stefan Liebler <stli@linux.ibm.com>
2493
2494 * resolv/res_send.c (__res_context_send): Disable maybe-uninitialized
2495 warning.
2496
2497 2019-07-01 Florian Weimer <fweimer@redhat.com>
2498
2499 * scripts/build-many-glibcs.py (Context.add_all_configs): Add v4t
2500 variant for arm-linux-gnueabi.
2501
2502 2019-07-01 H.J. Lu <hongjiu.lu@intel.com>
2503
2504 [BZ #24259]
2505 * elf/dl-open.c (dl_open_worker): Call _dl_open_check after
2506 relocation.
2507 * sysdeps/x86/Makefile (tests): Add tst-cet-legacy-5a,
2508 tst-cet-legacy-5b, tst-cet-legacy-6a and tst-cet-legacy-6b.
2509 (modules-names): Add tst-cet-legacy-mod-5a, tst-cet-legacy-mod-5b,
2510 tst-cet-legacy-mod-5c, tst-cet-legacy-mod-6a, tst-cet-legacy-mod-6b
2511 and tst-cet-legacy-mod-6c.
2512 (CFLAGS-tst-cet-legacy-5a.c): New.
2513 (CFLAGS-tst-cet-legacy-5b.c): Likewise.
2514 (CFLAGS-tst-cet-legacy-mod-5a.c): Likewise.
2515 (CFLAGS-tst-cet-legacy-mod-5b.c): Likewise.
2516 (CFLAGS-tst-cet-legacy-mod-5c.c): Likewise.
2517 (CFLAGS-tst-cet-legacy-6a.c): Likewise.
2518 (CFLAGS-tst-cet-legacy-6b.c): Likewise.
2519 (CFLAGS-tst-cet-legacy-mod-6a.c): Likewise.
2520 (CFLAGS-tst-cet-legacy-mod-6b.c): Likewise.
2521 (CFLAGS-tst-cet-legacy-mod-6c.c): Likewise.
2522 ($(objpfx)tst-cet-legacy-5a): Likewise.
2523 ($(objpfx)tst-cet-legacy-5a.out): Likewise.
2524 ($(objpfx)tst-cet-legacy-mod-5a.so): Likewise.
2525 ($(objpfx)tst-cet-legacy-mod-5b.so): Likewise.
2526 ($(objpfx)tst-cet-legacy-5b): Likewise.
2527 ($(objpfx)tst-cet-legacy-5b.out): Likewise.
2528 (tst-cet-legacy-5b-ENV): Likewise.
2529 ($(objpfx)tst-cet-legacy-6a): Likewise.
2530 ($(objpfx)tst-cet-legacy-6a.out): Likewise.
2531 ($(objpfx)tst-cet-legacy-mod-6a.so): Likewise.
2532 ($(objpfx)tst-cet-legacy-mod-6b.so): Likewise.
2533 ($(objpfx)tst-cet-legacy-6b): Likewise.
2534 ($(objpfx)tst-cet-legacy-6b.out): Likewise.
2535 (tst-cet-legacy-6b-ENV): Likewise.
2536 * sysdeps/x86/tst-cet-legacy-5.c: New file.
2537 * sysdeps/x86/tst-cet-legacy-5a.c: Likewise.
2538 * sysdeps/x86/tst-cet-legacy-5b.c: Likewise.
2539 * sysdeps/x86/tst-cet-legacy-6.c: Likewise.
2540 * sysdeps/x86/tst-cet-legacy-6a.c: Likewise.
2541 * sysdeps/x86/tst-cet-legacy-6b.c: Likewise.
2542 * sysdeps/x86/tst-cet-legacy-mod-5.c: Likewise.
2543 * sysdeps/x86/tst-cet-legacy-mod-5a.c: Likewise.
2544 * sysdeps/x86/tst-cet-legacy-mod-5b.c: Likewise.
2545 * sysdeps/x86/tst-cet-legacy-mod-5c.c: Likewise.
2546 * sysdeps/x86/tst-cet-legacy-mod-6.c: Likewise.
2547 * sysdeps/x86/tst-cet-legacy-mod-6a.c: Likewise.
2548 * sysdeps/x86/tst-cet-legacy-mod-6b.c: Likewise.
2549 * sysdeps/x86/tst-cet-legacy-mod-6c.c: Likewise.
2550
2551 2019-06-30 Paul A. Clarke <pc@us.ibm.com>
2552
2553 * sysdeps/powerpc/bits/fenvinline.h (__fegetround): Use
2554 __fegetround_ISA300() or __fegetround_ISA2() as appropriate.
2555 (__fegetround_ISA300) New.
2556 (__fegetround_ISA2) New.
2557 * sysdeps/powerpc/fpu_control.h (IS_ISA300): New.
2558 (_FPU_MFFS): Move implementation...
2559 (_FPU_GETCW): Here.
2560 (_FPU_MFFSL): Move implementation....
2561 (_FPU_GET_RC_ISA300): Here. New.
2562 (_FPU_GET_RC): Use _FPU_GET_RC_ISA300() or _FPU_GETCW() as appropriate.
2563 * sysdeps/powerpc/fpu/fenv_libc.h (fegetenv_status_ISA300): New.
2564 (fegetenv_status): New.
2565 * sysdeps/powerpc/fpu/fegetmode.c (fegetmode): Use fegetenv_status()
2566 instead of fegetenv_register().
2567 * sysdeps/powerpc/fpu/fegetexcept.c (__fegetexcept): Likewise.
2568
2569 2019-06-28 Wilco Dijkstra <wdijkstr@arm.com>
2570
2571 * benchtests/bench-math-inlines.c: Increase iterations.
2572 * benchtests/bench-memcmp.c: Likewise.
2573 * benchtests/bench-rawmemchr.c: Likewise.
2574 * benchtests/bench-strcmp.c: Likewise.
2575 * benchtests/bench-strcpy_chk.c: Likewise.
2576 * benchtests/bench-string.h (INNER_LOOP_ITERS8): Add define.
2577 (INNER_LOOP_ITERS_MEDIUM): Increase iterations.
2578 (INNER_LOOP_ITERS_SMALL): Likewise.
2579 * benchtests/bench-strncat.c: Increase iterations.
2580 * benchtests/bench-strncmp.c: Increase iterations.
2581 * benchtests/bench-strncpy.c: Reduce iterations for wide strings.
2582 * benchtests/bench-strrchr.c: Increase iterations.
2583 * benchtests/bench-strstr.c: Keep iterations unchanged.
2584 * benchtests/bench-strtod.c: Increase iterations.
2585
2586 2019-06-28 Anton Youdkevitch <anton.youdkevitch@bell-sw.com>
2587
2588 * benchtests/bench-memccpy.c: Replace INNER_LOOP_ITERS
2589 with INNER_LOOP_ITERS_LARGE.
2590 * benchtests/bench-memchr.c: Likewise.
2591 * benchtests/bench-rawmemchr.c: Likewise.
2592 * benchtests/bench-strcat.c: Likewise.
2593 * benchtests/bench-strchr.c: Likewise.
2594 * benchtests/bench-string.h: Likewise.
2595 * benchtests/bench-strlen.c: Likewise.
2596 * benchtests/bench-strncpy.c: Likewise.
2597 * benchtests/bench-strnlen.c: Likewise.
2598
2599 2019-06-28 Florian Weimer <fweimer@redhat.com>
2600
2601 * sysdeps/unix/sysv/linux/tst-getdents64.c (large_buffer_checks):
2602 Use mmap instead of malloc. malloc with M_PERTURB writes to the
2603 entire allocated memory range.
2604
2605 2019-06-28 Tobias Klauser <tklauser@distanz.ch>
2606
2607 * sysdeps/unix/sysv/linux/dl-vdso.h (PREPARE_VERSION): Remove macro.
2608 (prepare_version_base): New helper inline function.
2609 (prepare_version): New macro replacing PREPARE_VERSION.
2610 (PREPARE_VERSION_KNOWN): Use prepare_version instead of PREPARE_VERSION.
2611
2612 2019-06-28 Florian Weimer <fweimer@redhat.com>
2613
2614 [BZ #24741]
2615 * elf/dl-lookup.c (do_lookup_x): Do not fail if there is a soname
2616 mismatch in a versioned symbol reference.
2617 (_dl_lookup_symbol_x): Do not report soname mismatch failures.
2618 * elf/Makefile [$(build-shared)] (tests): Add tst-sonamemove-link,
2619 tst-sonamemove-dlopen.
2620 (module-names): Add tst-sonamemove-linkmod1,
2621 tst-sonamemove-runmod1, tst-sonamemove-runmod2.
2622 (LDFLAGS-tst-sonamemove-linkmod1.so): Set.
2623 (LDFLAGS-tst-sonamemove-runmod1.so): Likewise.
2624 (LDFLAGS-tst-sonamemove-runmod2.so): Likewise.
2625 (tst-sonamemove-runmod1.so): Link against
2626 tst-sonamemove-runmod2.so.
2627 (tst-sonamemove-link): Link against tst-sonamemove-linkmod1.so.
2628 (tst-sonamemove-link.out): Depend on tst-sonamemove-runmod1.so,
2629 tst-sonamemove-runmod2.so.
2630 (tst-sonamemove-dlopen): Link with -ldl.
2631 (tst-sonamemove-dlopen.out): Likewise.
2632 * elf/tst-sonamemove-link.c: New file.
2633 * elf/tst-sonamemove-dlopen.c: Likewise.
2634 * elf/tst-sonamemove-linkmod1.c: Likewise.
2635 * elf/tst-sonamemove-linkmod1.map: Likewise.
2636 * elf/tst-sonamemove-runmod1.c: Likewise.
2637 * elf/tst-sonamemove-runmod1.map: Likewise.
2638 * elf/tst-sonamemove-runmod2.c: Likewise.
2639 * elf/tst-sonamemove-runmod2.map: Likewise.
2640
2641 2019-06-28 Florian Weimer <fweimer@redhat.com>
2642
2643 * support/xdlfcn.h (xdlvsym): Declare function.
2644 * support/xdlfcn.c (xdlvsym): Define funciton.
2645
2646 2019-06-28 Florian Weimer <fweimer@redhat.com>
2647
2648 [BZ #24744]
2649 io: Remove the copy_file_range emulation.
2650 * sysdeps/unix/sysv/linux/copy_file_range.c (copy_file_range): Do
2651 not define and call copy_file_range_compat.
2652 * io/Makefile (tests-static, tests-internal): Do not add
2653 tst-copy_file_range-compat.
2654 * io/copy_file_range-compat.c: Remove file.
2655 * io/copy_file_range.c (copy_file_range): Define as stub.
2656 * io/tst-copy_file_range-compat.c: Remove file.
2657 * io/tst-copy_file_range.c (xdevfile): Remove variable.
2658 (typical_sizes): Update comment. Remove 16K sizes.
2659 (maximum_offset, maximum_offset_errno, maximum_offset_hard_limit):
2660 Remove variables.
2661 (find_maximum_offset, pipe_as_source, pipe_as_destination)
2662 (delayed_write_failure_beginning, delayed_write_failure_end)
2663 (cross_device_failure, enospc_failure_1, enospc_failure)
2664 (oappend_failure): Remove functions.
2665 (tests): Adjust test case list.
2666 (do_test): Remove file system search code. Check for ENOSYS from
2667 copy_file_range. Do not free xdevfile.
2668 * manual/llio.texi (Copying File Data): Document ENOSYS error from
2669 copy_file_range. Do not document the EXDEV error, which future
2670 kernels may not report. Update the wording to reflect that
2671 further errors are possible.
2672 * sysdeps/unix/sysv/linux/alpha/kernel-features.h
2673 [__LINUX_KERNEL_VERSION < 0x040D00] (__ASSUME_COPY_FILE_RANGE): Do
2674 not undefine.
2675 * sysdeps/unix/sysv/linux/arm/kernel-features.h
2676 [__LINUX_KERNEL_VERSION < 0x040700] (__ASSUME_COPY_FILE_RANGE):
2677 Likewise.
2678 * sysdeps/unix/sysv/linux/kernel-features.h
2679 [__LINUX_KERNEL_VERSION >= 0x040500] (__ASSUME_COPY_FILE_RANGE):
2680 Remove definition.
2681 * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
2682 [__LINUX_KERNEL_VERSION < 0x040A00] (__ASSUME_COPY_FILE_RANGE): Do
2683 not undefine.
2684 * sysdeps/unix/sysv/linux/sh/kernel-features.h
2685 [__LINUX_KERNEL_VERSION < 0x040800] (__ASSUME_COPY_FILE_RANGE):
2686 Likewise.
2687
2688 2019-06-27 Gabriel F. T. Gomes <gabrielftg@linux.ibm.com>
2689
2690 * libio/libioP.h (PRINTF_LDBL_USES_FLOAT128): New macro to be
2691 used as a mask for the mode argument of __vfprintf_internal.
2692 * stdio-common/printf-parse.h (printf_arg): New union member:
2693 pa_float128.
2694 * stdio-common/vfprintf-internal.c
2695 (PARSE_FLOAT_VA_ARG_EXTENDED): New macro.
2696 (PARSE_FLOAT_VA_ARG): Likewise.
2697 (SETUP_FLOAT128_INFO): Likewise.
2698 (process_arg): Use PARSE_FLOAT_VA_ARG_EXTENDED and
2699 SETUP_FLOAT128_INFO.
2700 [__HAVE_FLOAT128_UNLIKE_LDBL] (printf_positional): Write
2701 floating-point value to the new union member, pa_float128.
2702 (printf_positional): Zero-initialize args_value[cnt] with memset.
2703
2704 2019-06-27 Florian Weimer <fweimer@redhat.com>
2705
2706 [BZ #24740]
2707 * sysdeps/unix/sysv/linux/getdents64.c (__getdents64): Adjust
2708 buffer size if necessary.
2709 * sysdeps/unix/sysv/linux/mips/mips64/getdents64.c (__getdents64):
2710 Likewise.
2711 * sysdeps/unix/sysv/linux/tst-getdents64.c (large_buffer_check):
2712 New function.
2713 (large_buffer_checks): Likewise.
2714 (do_test): Call large_buffer_checks.
2715
2716 2019-06-26 H.J. Lu <hongjiu.lu@intel.com>
2717
2718 * sysdeps/i386/dl-lookupcfg.h: Moved to ...
2719 * sysdeps/x86/dl-lookupcfg.h: Here.
2720 * sysdeps/x86_64/dl-lookupcfg.h: Removed.
2721
2722 2019-06-26 Adhemerval Zanella <adhemerval.zanella@linaro.org>
2723
2724 * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile
2725 (libm-sysdep_routines): Remove e_expf-power8 and expf-ppc64.
2726 * sysdeps/powerpc/powerpc64/fpu/multiarch/e_expf-power8.S: Remove
2727 file.
2728 * sysdeps/powerpc/powerpc64/fpu/multiarch/e_expf-ppc64.c: Likewise.
2729 * sysdeps/powerpc/powerpc64/fpu/multiarch/e_expf.c: Likewise.
2730 * sysdeps/powerpc/powerpc64/fpu/multiarch/w_expf.c: Likewise.
2731 * sysdeps/powerpc/powerpc64/power8/fpu/e_expf.S: Likewise.
2732 * sysdeps/powerpc/powerpc64/power8/fpu/w_expf.c: Likewise.
2733
2734 * sysdeps/powerpc/powerpc32/fpu/Makefile
2735 [$(subdir) == math] (CFLAGS-s_lround.c): New rule.
2736 * sysdeps/powerpc/powerpc32/fpu/s_llround.c (__llround): Add power5+
2737 and fctidz optimization.
2738 * sysdeps/powerpc/powerpc32/fpu/s_lround.S: Remove file.
2739 * sysdeps/powerpc/powerpc32/fpu/s_lround.c: New file.
2740 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile
2741 (CFLAGS-s_llround-power6.c, CFLAGS-s_llround-power5+.c,
2742 CFLAGS-s_llround-ppc32.c, CFLAGS-s_lround-ppc32.c,
2743 CFLAGS-s_lround-power5+.c): New rule.
2744 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llround-power5+.c:
2745 New file.
2746 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llround-power6.c:
2747 Likewise.
2748 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llround-ppc32.c:
2749 Likewise.
2750 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lround-power5+.c:
2751 Likewise.
2752 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lround-ppc32.c:
2753 Likewise.
2754 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llround-power5+.S:
2755 Remove file.
2756 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llround-power6.S:
2757 Likewise.
2758 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llround-ppc32.S:
2759 Likewise.
2760 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lround-power5+.S:
2761 Likewise.
2762 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lround-ppc32.S:
2763 Likewise.
2764 * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S: Likewise.
2765 * sysdeps/powerpc/powerpc32/power4/fpu/s_llroundf.S: Likewise.
2766 * sysdeps/powerpc/powerpc32/power5+/fpu/s_llround.S: Likewise.
2767 * sysdeps/powerpc/powerpc32/power5+/fpu/s_llroundf.S: Likewise.
2768 * sysdeps/powerpc/powerpc32/power5+/fpu/s_lround.S: Likewise.
2769 * sysdeps/powerpc/powerpc32/power6/fpu/s_llround.S: Likewise.
2770 * sysdeps/powerpc/powerpc32/power6/fpu/s_llroundf.S: Likewise.
2771
2772 2019-06-26 Vincent Chen <vincentc@andestech.com>
2773
2774 * sysdeps/unix/sysv/linux/syscall-names.list: Add nds32
2775 specific system calls, fp_udfiex_crtl and udftrap.
2776
2777 2019-06-26 Stefan Liebler <stli@linux.ibm.com>
2778
2779 * nptl/tst-eintr1.c (tf1): Add return statement.
2780 (do_test): Remove unused th variable.
2781
2782 2019-06-26 Stefan Liebler <stli@linux.ibm.com>
2783
2784 * locale/programs/ld-ctype.c (charclass_symbolic_ellipsis):
2785 Return error if get_character fails.
2786
2787 2019-06-25 Stefan Liebler <stli@linux.ibm.com>
2788
2789 * sysdeps/s390/fpu/libm-test-ulps: Regenerated.
2790
2791 2019-06-24 Rafał Lużyński <digitalfreak@lingonborough.com>
2792
2793 [BZ #24652]
2794 * localedata/locales/szl_PL (day): Use the correct Unicode
2795 sequences instead of non-ASCII characters.
2796
2797 2019-06-24 Grzegorz Kulik <gregorykkulik@gmail.com>
2798
2799 [BZ #24652]
2800 * localedata/locales/szl_PL (abday): Spelling corrections.
2801 (day): Likewise.
2802 (abmon): Likewise.
2803 (mon): Rename to...
2804 (alt_mon): This, then apply spelling corrections.
2805 (mon): New entry, month names in the genitive case.
2806
2807 2019-06-21 Rafał Lużyński <digitalfreak@lingonborough.com>
2808
2809 [BZ #23831]
2810 * localedata/locales/nl_AW (mon_thousands_sep): Set to ".".
2811 * localedata/locales/nl_NL (mon_thousands_sep): Likewise.
2812 (thousands_sep): Likewise.
2813 (grouping): Set to 3;3.
2814
2815 2019-06-21 Tobias Klauser <tklauser@distanz.ch>
2816
2817 * sysdeps/unix/sysv/linux/aarch64/gettimeofday.c (INIT_ARCH): Use
2818 PREPARE_VERSION_KNOWN.
2819 * sysdeps/unix/sysv/linux/aarch64/init-first.c: Likewise.
2820 * sysdeps/unix/sysv/linux/dl-vdso.h (VDSO_NAME_LINUX_2_6_39): New
2821 define.
2822 (VDSO_HASH_LINUX_2_6_39): Likewise.
2823 (VDSO_NAME_LINUX_4_9): Likewise.
2824 (VDSO_HASH_LINUX_4_9): Likewise.
2825 * sysdeps/unix/sysv/linux/powerpc/gettimeofday.c (INIT_ARCH): Likewise.
2826 * sysdeps/unix/sysv/linux/powerpc/init-first.c
2827 (_libc_vdso_platform_setup): Likewise.
2828 * sysdeps/unix/sysv/linux/powerpc/time.c (INIT_ARCH): Likewise.
2829 * sysdeps/unix/sysv/linux/s390/init-first.c (_libc_vdso_platform_setup):
2830 Likewise.
2831 * sysdeps/unix/sysv/linux/x86_64/init-first.c (__vdso_platform_setup):
2832 Likewise.
2833
2834 2019-06-20 Mike Crowe <mac@mcrowe.com>
2835
2836 * nptl/eintr.c: Use libsupport.
2837 * nptl/tst-eintr1.c: Likewise.
2838 * nptl/tst-eintr2.c: Likewise.
2839 * nptl/tst-eintr3.c: Likewise.
2840 * nptl/tst-eintr4.c: Likewise.
2841 * nptl/tst-eintr5.c: Likewise.
2842 * nptl/tst-mutex-errorcheck.c: Likewise.
2843 * nptl/tst-mutex5.c: Likewise.
2844
2845 * support/test-driver.h: Add verbose_printf macro.
2846
2847 * support/xtime.h: Add xclock_now() helper function.
2848
2849 2019-06-20 Dmitry V. Levin <ldv@altlinux.org>
2850 Florian Weimer <fweimer@redhat.com>
2851
2852 [BZ #24228]
2853 * libio/genops.c (_IO_unbuffer_all)
2854 [SHLIB_COMPAT (libc, GLIBC_2_0, GLIBC_2_1)]: Do not attempt to free wide
2855 buffers and access _IO_FILE_complete members of legacy libio streams.
2856 * libio/tst-bz24228.c: New file.
2857 * libio/tst-bz24228.map: Likewise.
2858 * libio/Makefile [build-shared] (tests): Add tst-bz24228.
2859 [build-shared] (generated): Add tst-bz24228.mtrace and
2860 tst-bz24228.check.
2861 [run-built-tests && build-shared] (tests-special): Add
2862 $(objpfx)tst-bz24228-mem.out.
2863 (LDFLAGS-tst-bz24228, tst-bz24228-ENV): New variables.
2864 ($(objpfx)tst-bz24228-mem.out): New rule.
2865
2866 2019-06-19 Paul A. Clarke <pc@us.ibm.com>
2867
2868 * sysdeps/powerpc/fpu/fenv_libc.h (relax_fenv_state): Add 'volatile'.
2869 * sysdeps/powerpc/fpu/fpu_control.h (__FPU_MFFS): Likewise.
2870 (__FPU_MFFSL): Likewise.
2871 (_FPU_SETCW): Likewise.
2872
2873 2019-06-19 Stan Shebs <stanshebs@google.com>
2874 Raoni Fassina Firmino <raoni@linux.ibm.com>
2875
2876 [BZ #24640]
2877 * sysdeps/unix/sysv/linux/powerpc/get_timebase_freq.c
2878 [!SHARED] (__get_timebase_freq): Fix sense of a test in the
2879 static-linking version.
2880 * sysdeps/unix/sysv/linux/powerpc/Makefile
2881 (tests-static): Add test-gettimebasefreq-static.
2882 (tests): Likewise.
2883 * sysdeps/unix/sysv/linux/powerpc/test-gettimebasefreq-static.c:
2884 New file.
2885
2886 2019-06-19 Rafał Lużyński <digitalfreak@lingonborough.com>
2887
2888 [BZ #24614]
2889 * localedata/locales/nl_AW (n_sep_by_space): Set to 2 (a space
2890 between the currency symbol and the minus sign).
2891 (n_sign_posn): Set to 4 (the minus sign after the currency symbol).
2892
2893 2019-06-19 Stefan Liebler <stli@linux.ibm.com>
2894
2895 [BZ #24556]
2896 * string/test-strcasestr.c (check_result): Add NULL check.
2897 * nss/tst-field.c (check_rewrite): Likewise.
2898 * benchtests/bench-strstr.c (do_one_test): Likewise.
2899 * string/test-strstr.c (check_result): Likewise.
2900 * argp/argp-test.c (popt): Increase size of buf to 12.
2901 * benchtests/bench-malloc-simple.c (bench):
2902 Do not initialize tests array out of bounds.
2903
2904 2019-06-19 Florian Weimer <fweimer@redhat.com>
2905
2906 [BZ #24166]
2907 * dlfcn/dlfcn.h (Dl_serinfo): Do not use array of length 1 for
2908 dls_serpath field.
2909
2910 2019-06-18 Florian Weimer <fweimer@redhat.com>
2911
2912 [BZ #24323]
2913 * include/elf.h (DT_1_SUPPORTED_MASK): Include DF_1_PIE.
2914 * elf/dl-load.c (_dl_map_object_from_fd): Check for DF_1_PIE and
2915 fail when called from dlopen.
2916 * elf/Makefile [have-fpie && build-shared] (tests): Add
2917 tst-dlopen-pie.
2918 (tst-dlopen-pie): Link with -ldl.
2919 (tst-dlopen-pie.out): Add run-time dependency on tst-pie1.
2920 * elf/tst-dlopen-pie.c (do_test): New file.
2921
2922 2019-06-17 Rafał Lużyński <digitalfreak@lingonborough.com>
2923
2924 [BZ #24614]
2925 * localedata/Makefile (LOCALES): Add nl_NL.UTF-8.
2926 * localedata/locales/nl_NL (n_sep_by_space): Set to 2 (a space
2927 between the currency symbol and the minus sign).
2928 (n_sign_posn): Set to 4 (the minus sign after the currency symbol).
2929 * localedata/tst-strfmon1.c (tests): Add test data for nl_NL.UTF-8.
2930
2931 2019-06-17 Adhemerval Zanella <adhemerval.zanella@linaro.org>
2932
2933 * sysdeps/unix/sysv/linux/m68k/Makefile (sysdep_routines,
2934 sysdep-rtld-routines): Remove rules.
2935 * sysdeps/unix/sysv/linux/m68k/Versions (libc) [GLIBC_PRIVATE]:
2936 Remove __vdso_atomic_cmpxchg_32 and __vdso_atomic_barrier.
2937 (ld) [GLIBC_PRIVATE]: __rtld___vdso_read_tp,
2938 __rtld___vdso_atomic_cmpxchg_32, and __rtld___vdso_atomic_barrier.
2939 * sysdeps/unix/sysv/linux/m68k/coldfire/atomic-machine.h
2940 (atomic_compare_and_exchange_val_acq, atomic_full_barrier): Remove
2941 vDSO path for SHARED.
2942 * sysdeps/unix/sysv/linux/m68k/init-first.c: Remove file.
2943 * sysdeps/unix/sysv/linux/m68k/libc-m68k-vdso.c: Likewise.
2944 * sysdeps/unix/sysv/linux/m68k/m68k-helpers.S: Likewise.
2945 * sysdeps/unix/sysv/linux/m68k/m68k-vdso.c: Likewise.
2946 * sysdeps/unix/sysv/linux/m68k/m68k-vdso.h: Likewise.
2947 * sysdeps/unix/sysv/linux/m68k/m68k-helpers.c: New file.
2948
2949 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/Makefile
2950 (libm-sysdep_routines): Add s_llround-power8, s_llround-power6x,
2951 s_llround-power5+, s_llround-ppc64, and s_llroundf-ppc64.
2952 (CFLAGS-s_llround-power8.c, CFLAGS-s_llround-power6x.c,
2953 CFLAGS-s_llround-power5+.c): New rule.
2954 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_llround-power5+.c:
2955 New file.
2956 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_llround-power6x.c:
2957 Likewise.
2958 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_llround-power8.c:
2959 Likewise.
2960 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_llround-ppc64.c:
2961 Likewise.
2962 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_llroundf-ppc64.c:
2963 Likewise.
2964 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround.c: Move to ...
2965 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_llround.c: ... here.
2966 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llroundf.c: Move to ...
2967 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_llroundf.c: ... here.
2968 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_lround.c: Move to ...
2969 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_lround.c: ... here.
2970 * sysdeps/powerpc/powerpc64/fpu/Makefile
2971 [$(subdir) == math] (CFLAGS-s_llround.c): New rule.
2972 * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile
2973 (libm-sysdep_routines): Remove s_llround-* objects.
2974 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround-power5+.S: Remove
2975 file.
2976 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround-power6x.S:
2977 Likewise.
2978 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround-power8.S:
2979 Likewise.
2980 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround-ppc64.S:
2981 Likewise.
2982 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llroundf-ppc64.S:
2983 Likewise.
2984 * sysdeps/powerpc/powerpc64/fpu/s_llround.S: Likewise.
2985 * sysdeps/powerpc/powerpc64/fpu/s_llroundf.S: Likewise.
2986 * sysdeps/powerpc/powerpc64/fpu/s_lround.S: Likewise.
2987 * sysdeps/powerpc/powerpc64/fpu/s_lroundf.S: Likewise.
2988 * sysdeps/powerpc/powerpc64/fpu/s_llround.c: New file.
2989 * sysdeps/powerpc/powerpc64/fpu/s_llroundf.c: Likewise.
2990 * sysdeps/powerpc/powerpc64/fpu/s_lround.c: Likewise.
2991 * sysdeps/powerpc/powerpc64/fpu/s_lroundf.c: Likewise.
2992 * sysdeps/powerpc/powerpc64/power5+/fpu/s_llround.S: Likewise.
2993 * sysdeps/powerpc/powerpc64/power5+/fpu/s_llroundf.S: Likewise.
2994 * sysdeps/powerpc/powerpc64/power6x/fpu/s_llround.S: Likewise.
2995 * sysdeps/powerpc/powerpc64/power6x/fpu/s_llroundf.S: Likewise.
2996 * sysdeps/powerpc/powerpc64/power8/fpu/s_llround.S: Likewise.
2997 * sysdeps/powerpc/powerpc64/power8/fpu/s_llroundf.S: Likewise.
2998
2999 * sysdeps/powerpc/fpu/s_lrintf.S: Remove file.
3000 * sysdeps/powerpc/powerpc64/fpu/s_lrintf.c: Move to ...
3001 * sysdeps/powerpc/fpu/s_lrintf.c: ... here.
3002 * sysdeps/powerpc/powerpc32/fpu/Makefile
3003 [$(subdir) == math] (CFLAGS-s_lrint.c): New rule.
3004 * sysdeps/powerpc/powerpc32/fpu/s_llrint.c (__llrint): Add power4
3005 optimization.
3006 * sysdeps/powerpc/powerpc32/fpu/s_llrintf.c (__llrintf): Likewise.
3007 * sysdeps/powerpc/powerpc32/fpu/s_lrint.S: Remove file.
3008 * sysdeps/powerpc/powerpc32/fpu/s_lrint.c: New file.
3009 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile
3010 (CFLAGS-s_llrintf-power6.c, CFLAGS-s_llrintf-ppc32.c,
3011 CFLAGS-s_llrint-power6.c, CFLAGS-s_llrint-ppc32.c,
3012 CFLAGS-s_lrint-ppc32.c): New rule.
3013 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llrint-power6.S:
3014 Remove file.
3015 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llrint-ppc32.S:
3016 Likewise.
3017 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llrintf-power6.S:
3018 Likewise.
3019 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llrintf-ppc32.S:
3020 Likewise.
3021 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lrint-ppc32.S:
3022 Likewise.
3023 * sysdeps/powerpc/powerpc32/power4/fpu/s_llrint.S: Likewise.
3024 * sysdeps/powerpc/powerpc32/power4/fpu/s_llrintf.S: Likewise.
3025 * sysdeps/powerpc/powerpc32/power6/fpu/s_llrint.S: Likewise.
3026 * sysdeps/powerpc/powerpc32/power6/fpu/s_llrintf.S: Likewise.
3027 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llrint-power6.c:
3028 New file.
3029 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llrint-ppc32.c:
3030 Likewise.
3031 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llrintf-power6.c:
3032 Likewise.
3033 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llrintf-ppc32.c:
3034 Likewise.
3035 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lrint-ppc32.c:
3036 Likewise.
3037
3038 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/Makefile
3039 (libm-sysdep_routines): Add s_llrint-power8, s_llrint-power6x, and
3040 s_llrint-ppc64.
3041 (CFLAGS-s_llrint-power8.c, CFLAGS-s_llrint-power6x.c): New rule.
3042 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_llrint-power6x.c: New
3043 file.
3044 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_llrint-power8.c:
3045 Likewise.
3046 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_llrint-ppc64.c:
3047 Likewise.
3048 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_lrint.c: Move to ...
3049 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_lrint.c: ... here.
3050 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint.c: Move to ...
3051 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_llrint.c: ... here.
3052 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrintf.c: Move to ...
3053 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_llrintf.c: ... here.
3054 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_lrint.c: New file.
3055 * sysdeps/powerpc/powerpc64/fpu/Makefile: Likewise.
3056 * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile
3057 (libm-sysdep_routines): Remove s_llrint-* objects.
3058 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint-power6x.S: Remove
3059 file.
3060 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint-power8.S:
3061 Likewise.
3062 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint-ppc64.S: Likewise.
3063 * sysdeps/powerpc/powerpc64/fpu/s_llrint.c: New file.
3064 * sysdeps/powerpc/powerpc64/fpu/s_llrintf.c: Likewise.
3065 * sysdeps/powerpc/powerpc64/fpu/s_lrint.c: Likewise.
3066 * sysdeps/powerpc/powerpc64/fpu/s_lrintf.c: Likewise.
3067 * sysdeps/powerpc/powerpc64/fpu/s_llrint.S: Remove file.
3068 * sysdeps/powerpc/powerpc64/fpu/s_llrintf.S: Likewise.
3069 * sysdeps/powerpc/powerpc64/fpu/s_lrint.S: Likewise.
3070 * sysdeps/powerpc/powerpc64/power6x/fpu/s_llrint.S: Likewise.
3071 * sysdeps/powerpc/powerpc64/power8/fpu/s_llrint.S: Likewise.
3072
3073 2019-06-14 Florian Weimer <fweimer@redhat.com>
3074
3075 * sysdeps/unix/sysv/linux/bits/statx.h: Use string literal in
3076 argument to __glibc_has_include to inhibit macro expansion.
3077
3078 2019-06-14 Florian Weimer <fweimer@redhat.com>
3079
3080 * misc/sys/cdefs.h (__glibc_has_include): Do not use a
3081 function-like macro, so that __has_include can inhibit expansion
3082 of its argument.
3083
3084 2019-06-13 Joseph Myers <joseph@codesourcery.com>
3085
3086 * sysdeps/unix/sysv/linux/bits/in.h (IPV6_ROUTER_ALERT_ISOLATE):
3087 New macro.
3088
3089 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/localplt.data:
3090 Allow memset in libc.so.
3091
3092 2019-06-13 Szabolcs Nagy <szabolcs.nagy@arm.com>
3093
3094 * sysdeps/aarch64/dl-dtprocnum.h: New file.
3095 * sysdeps/aarch64/dl-machine.h (DT_AARCH64): Define.
3096 (elf_machine_runtime_setup): Handle DT_AARCH64_VARIANT_PCS.
3097 (elf_machine_lazy_rel): Check STO_AARCH64_VARIANT_PCS and bind such
3098 symbols at load time.
3099 * sysdeps/aarch64/linkmap.h (struct link_map_machine): Add variant_pcs.
3100
3101 2019-06-13 Szabolcs Nagy <szabolcs.nagy@arm.com>
3102
3103 * elf/elf.h (STO_AARCH64_VARIANT_PCS): Define.
3104 (DT_AARCH64_VARIANT_PCS): Define.
3105
3106 2019-06-12 Adhemerval Zanella <adhemerval.zanella@linaro.org>
3107
3108 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile
3109 (sysdeps_routines, libm-sysdep_routines): Remove s_finite*
3110 objects.
3111 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_finite-power7.S:
3112 Remove file.
3113 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_finite-ppc32.c:
3114 Likewise.
3115 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_finite.c: Likewise.
3116 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_finitef-ppc32.c:
3117 Likewise.
3118 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_finitef.c: Likewise.
3119 * sysdeps/powerpc/powerpc32/power7/fpu/s_finite.S: Likewise.
3120 * sysdeps/powerpc/powerpc32/power7/fpu/s_finitef.S: Likewise.
3121 * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile (sysdep_call):
3122 Remove s_finite* objects.
3123 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finite-power7.S: Remove file.
3124 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finite-power8.S: Likewise.
3125 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finite-ppc64.c: Likewise.
3126 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finite.c: Likewise.
3127 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finitef-ppc64.c: Likewise.
3128 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finitef.c: Likewise.
3129 * sysdeps/powerpc/powerpc64/power7/fpu/s_finite.S: Likewise.
3130 * sysdeps/powerpc/powerpc64/power7/fpu/s_finitef.S: Likewise.
3131 * sysdeps/powerpc/powerpc64/power8/fpu/s_finite.S: Likewise.
3132 * sysdeps/powerpc/powerpc64/power8/fpu/s_finitef.S: Likewise.
3133
3134 * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: Move to ...
3135 * sysdeps/ieee754/dbl-64/s_finite.c: ... here and format code.
3136
3137 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile
3138 (sysdeps_routines, libm-sysdep_routines): Remove s_isinf* and s_isinf*
3139 objects.
3140 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isinf-power7.S:
3141 Remove file.
3142 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isinf-ppc32.c:
3143 Likewise.
3144 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isinf.c: Likewise.
3145 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isinff-ppc32.c:
3146 Likewise.
3147 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isinff.c: Likewise.
3148 * sysdeps/powerpc/powerpc32/power7/fpu/s_isinf.S: Likewise.
3149 * sysdeps/powerpc/powerpc32/power7/fpu/s_isinff.S: Likewise.
3150 * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile (sysdep_call):
3151 Remove s_isinf* and s_isinf* objects.
3152 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinf-power7.S: Likewise.
3153 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinf-power8.S: Likewise.
3154 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinf-ppc64.c: Likewise.
3155 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinf.c: Likewise.
3156 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinff-ppc64.c: Likewise.
3157 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinff.c: Likewise.
3158 * sysdeps/powerpc/powerpc64/power7/fpu/s_isinf.S: Likewise.
3159 * sysdeps/powerpc/powerpc64/power7/fpu/s_isinff.S: Likewise.
3160 * sysdeps/powerpc/powerpc64/power8/fpu/s_isinf.S: Likewise.
3161 * sysdeps/powerpc/powerpc64/power8/fpu/s_isinff.S: Likewise.
3162
3163 * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf.c: Move to ...
3164 * sysdeps/ieee754/dbl-64/s_isinf.c: ... here and format code.
3165
3166 * sysdeps/powerpc/fpu/s_isnan.c: Remove file.
3167 * sysdeps/powerpc/fpu/s_isnanf.S: Likewise.
3168 * sysdeps/powerpc/powerpc32/fpu/s_isnan.S: Likewise.
3169 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile
3170 (sysdeps_routines, libm-sysdep_routines): Remove s_isnan-* and
3171 s_isnanf-* objects.
3172 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isnan-power5.S:
3173 Remove file
3174 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isnan-power6.S:
3175 Likewise.
3176 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isnan-power7.S:
3177 Likewise.
3178 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isnan-ppc32.S:
3179 Likewise.
3180 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isnan.c: Likewise.
3181 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isnanf-power5.S:
3182 Likewise.
3183 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isnanf-power6.S:
3184 Likewise.
3185 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isnanf.c: Likewise.
3186 * sysdeps/powerpc/powerpc32/power5/fpu/s_isnan.S: Likewise.
3187 * sysdeps/powerpc/powerpc32/power5/fpu/s_isnanf.S: Likewise.
3188 * sysdeps/powerpc/powerpc32/power6/fpu/s_isnan.S: Likewise.
3189 * sysdeps/powerpc/powerpc32/power6/fpu/s_isnanf.S: Likewise.
3190 * sysdeps/powerpc/powerpc32/power7/fpu/s_isnan.S: Likewise.
3191 * sysdeps/powerpc/powerpc32/power7/fpu/s_isnanf.S: Likewise.
3192 * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile (sysdep_calls):
3193 Remove s_isnan-* and s_isnanf-* objects.
3194 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power5.S: Likewise.
3195 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power6.S: Likewise.
3196 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power6x.S:
3197 Likewise.
3198 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power7.S: Likewise.
3199 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power8.S: Likewise.
3200 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-ppc64.S: Likewise.
3201 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan.c: Likewise.
3202 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnanf.c: Likewise.
3203 * sysdeps/powerpc/powerpc64/fpu/s_isnan.S: Likewise.
3204 * sysdeps/powerpc/powerpc64/power5/fpu/s_isnan.S: Likewise.
3205 * sysdeps/powerpc/powerpc64/power6/fpu/s_isnan.S: Likewise.
3206 * sysdeps/powerpc/powerpc64/power6x/fpu/s_isnan.S: Likewise.
3207 * sysdeps/powerpc/powerpc64/power7/fpu/s_isnan.S: Likewise.
3208 * sysdeps/powerpc/powerpc64/power7/fpu/s_isnanf.S: Likewise.
3209 * sysdeps/powerpc/powerpc64/power8/fpu/s_isnan.S: Likewise.
3210 * sysdeps/powerpc/powerpc64/power8/fpu/s_isnanf.S: Likewise.
3211
3212 * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Move to ...
3213 * sysdeps/ieee754/dbl-64/s_isnan.c: ... here and format code.
3214
3215 * benchtests/Makefile (bench-math): Add isnan, isinf, and isfinite.
3216 (CFLAGS-bench-isnan.c, CFLAGS-bench-isinf.c,
3217 CFLAGS-bench-isfinite.c): New rule.
3218 * benchtests/isnan-input: New file.
3219 * benchtests/isinf-input: New file.
3220 * benchtests/isfinite-input: New file.
3221
3222 * sysdeps/powerpc/fpu/s_copysign.c: New file.
3223 * sysdeps/powerpc/fpu/s_copysignf.c: Likewise.
3224 * sysdeps/powerpc/powerpc32/fpu/s_copysign.S: Remove file.
3225 * sysdeps/powerpc/powerpc32/fpu/s_copysignf.S: Likewise.
3226 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile
3227 (sysdep_routines, libm-sysdep_routines): Remove s_copysign-power6 and
3228 s_copysign-ppc32.
3229 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_copysign-power6.S:
3230 Remove file.
3231 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_copysign-ppc32.S:
3232 Likewise.
3233 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_copysign.c:
3234 Likewise.
3235 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_copysignf.c:
3236 Likewise.
3237 * sysdeps/powerpc/powerpc32/power6/fpu/s_copysign.S: Likewise.
3238 * sysdeps/powerpc/powerpc32/power6/fpu/s_copysignf.S: Likewise.
3239 * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile (sysdeps_calls):
3240 Remove s_copysign-power6 s_copysign-ppc64.
3241 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysign-power6.S:
3242 Remove file.
3243 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysign-ppc64.S:
3244 Likewise.
3245 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysign.c: Likewise.
3246 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysignf.c: Likewise.
3247 * sysdeps/powerpc/powerpc64/fpu/s_copysign.S: Likewise.
3248 * sysdeps/powerpc/powerpc64/fpu/s_copysignf.S: Likewise.
3249 * sysdeps/powerpc/powerpc64/power6/fpu/s_copysign.S: Likewise.
3250 * sysdeps/powerpc/powerpc64/power6/fpu/s_copysignf.S: Likewise.
3251
3252 * sysdeps/powerpc/fpu/round_to_integer.h (set_fenv_mode,
3253 round_to_integer_float, round_mode): Add RINT handling.
3254 (reset_fenv_mode): New symbol.
3255 * sysdeps/powerpc/fpu/s_rint.c (__rint): Use generic implementation.
3256 * sysdeps/powerpc/fpu/s_rintf.c (__rintf): Likewise.
3257 * sysdeps/powerpc/powerpc32/fpu/s_rint.S: Remove file.
3258 * sysdeps/powerpc/powerpc32/fpu/s_rintf.S: Likewise.
3259 * sysdeps/powerpc/powerpc64/fpu/s_rint.S: Likewise.
3260 * sysdeps/powerpc/powerpc64/fpu/s_rintf.S: Likewise.
3261
3262 2019-06-12 Florian Weimer <fweimer@redhat.com>
3263
3264 [BZ #24632]
3265 * libio/libioP.h (_IO_JUMPS_FUNC_UPDATE): New macro.
3266 * libio/freopen.c (freopen): Use it.
3267
3268 2019-06-12 Florian Weimer <fweimer@redhat.com>
3269
3270 Linux: Deprecate sysctl.
3271 * include/sysctl.h (__sysctl): Remove declaration.
3272 * scripts/check-installed-headers.sh (sys/sysctl.h): Disable
3273 check.
3274 * sysdeps/unix/sysv/linux/sys/sysctl.h: Add deprecation warning.
3275 (sysctl): Add deprecation attribute.
3276 * sysdeps/unix/sysv/linux/sysctl.c: Include <linux/sysctl.h>
3277 directly, to avoid the deprecation warning. Do not include
3278 <string.h>.
3279 (__sysctl): Remove hidden alias.
3280
3281 2019-06-12 Florian Weimer <fweimer@redhat.com>
3282
3283 Linux: Use kernel headers for statx definitions if available.
3284 * include/bits/statx-generic.h: New file.
3285 * include/bits/types/struct_statx.h: Likewise.
3286 * include/bits/types/struct_statx_timestamp.h: Likewise.
3287 * io/Makefile (headers): Add bits/statx-generic.h.
3288 * io/bits/statx-generic.h: New file. Partly copied from
3289 io/bits/statx.h.
3290 * io/statx_generic.c: Include <bits/types/struct_statx.h> to
3291 define original_statx.
3292 * io/bits/types/struct_statx.h: Likewise.
3293 * io/bits/types/struct_statx_timestamp.h: Likewise.
3294 (statx_generic): Use original_statx.
3295 * io/bits/statx.h: Rewrite to include <bits/statx-generic.h>.
3296 * sysdeps/unix/sysv/linux/bits/statx.h: New file.
3297
3298 2019-06-12 Florian Weimer <fweimer@redhat.com>
3299
3300 * misc/sys/cdefs.h (__glibc_has_include): Define.
3301
3302 2019-06-12 Wilco Dijkstra <wdijkstr@arm.com>
3303
3304 * string/memmem.c (__memmem): Rewrite to improve performance.
3305
3306 2019-06-12 Wilco Dijkstra <wdijkstr@arm.com>
3307
3308 * string/str-two-way.h (two_way_short_needle): Add inline to avoid
3309 warning.
3310 (two_way_long_needle): Block inlining.
3311 * string/strstr.c (strstr2): Add new function.
3312 (strstr3): Likewise.
3313 (STRSTR): Completely rewrite strstr to improve performance.
3314
3315 2019-06-11 Wilco Dijkstra <wdijkstr@arm.com>
3316
3317 * benchtests/bench-strstr.c (test_hard_needle): New function.
3318
3319 2019-06-10 Joseph Myers <joseph@codesourcery.com>
3320
3321 * malloc/tst-calloc.c: Include <libc-diag.h>.
3322 (null_test): Ignore -Wunused-result around calls to calloc.
3323 * malloc/tst-mallocfork.c: Include <libc-diag.h>.
3324 (do_test): Ignore -Wunused-result around call to malloc.
3325
3326 2019-06-07 Florian Weimer <fweimer@redhat.com>
3327
3328 Linux: Add getdents64 system call.
3329 * include/dirnent.h (getdents): Add comment and change buffer
3330 argument type to void *.
3331 (getdents64): Likewise. Add hidden prototype.
3332 * sysdeps/unix/sysv/linux/bits/Versions (GLIBC_2.30): Export
3333 getdents64.
3334 * sysdeps/unix/sysv/linux/Makefile [$(subdir) == dirent] (tests):
3335 Add tst-getdents64.
3336 * sysdeps/unix/sysv/linux/bits/unistd_ext.h (getdents64): Declare.
3337 * sysdeps/unix/sysv/linux/getdents.c (__getdents): Change buffer
3338 argument type to void *.
3339 * sysdeps/unix/sysv/linux/getdents64.c (__getdents64): Likewise.
3340 Add hidden definition and getdents64 alias.
3341 * sysdeps/unix/sysv/linux/mips/mips64/getdents64.c (__getdents64):
3342 Likewise.
3343 * sysdeps/unix/sysv/linux/tst-getdents64.c: New file.
3344 * manual/filesys.texi (Accessing Directories): Add Low-level
3345 Directory Access node reference.
3346 (Opening a Directory): Cross-reference it.
3347 (Low-level Directory Access): New node.
3348 * sysdeps/unix/sysv/linux/aarch64/libc.abilist (GLIBC_2.30): Add
3349 getdents64.
3350 * sysdeps/unix/sysv/linux/alpha/libc.abilist (GLIBC_2.30):
3351 Likewise.
3352 * sysdeps/unix/sysv/linux/arm/libc.abilist (GLIBC_2.30): Likewise.
3353 * sysdeps/unix/sysv/linux/csky/libc.abilist (GLIBC_2.30):
3354 Likewise.
3355 * sysdeps/unix/sysv/linux/hppa/libc.abilist (GLIBC_2.30):
3356 Likewise.
3357 * sysdeps/unix/sysv/linux/i386/libc.abilist (GLIBC_2.30):
3358 Likewise.
3359 * sysdeps/unix/sysv/linux/ia64/libc.abilist (GLIBC_2.30):
3360 Likewise.
3361 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist (GLIBC_2.30):
3362 Likewise.
3363 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist (GLIBC_2.30):
3364 Likewise.
3365 * sysdeps/unix/sysv/linux/microblaze/libc.abilist (GLIBC_2.30):
3366 Likewise.
3367 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist
3368 (GLIBC_2.30): Likewise.
3369 * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist
3370 (GLIBC_2.30): Likewise.
3371 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist
3372 (GLIBC_2.30): Likewise.
3373 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist
3374 (GLIBC_2.30): Likewise.
3375 * sysdeps/unix/sysv/linux/nios2/libc.abilist (GLIBC_2.30):
3376 Likewise.
3377 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist
3378 (GLIBC_2.30): Likewise.
3379 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist
3380 (GLIBC_2.30): Likewise.
3381 * sysdeps/unix/sysv/linux/powerpc/powerpc64/be/libc.abilist
3382 (GLIBC_2.30): Likewise.
3383 * sysdeps/unix/sysv/linux/powerpc/powerpc64/le/libc.abilist
3384 (GLIBC_2.30): Likewise.
3385 * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist (GLIBC_2.30):
3386 Likewise.
3387 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist (GLIBC_2.30):
3388 Likewise.
3389 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist (GLIBC_2.30):
3390 Likewise.
3391 * sysdeps/unix/sysv/linux/sh/libc.abilist (GLIBC_2.30): Likewise.
3392 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist (GLIBC_2.30):
3393 Likewise.
3394 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist (GLIBC_2.30):
3395 Likewise.
3396 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist (GLIBC_2.30):
3397 Likewise.
3398 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist (GLIBC_2.30):
3399 Likewise.
3400
3401 2019-06-06 Paul A. Clarke <pc@us.ibm.com>
3402
3403 * sysdeps/powerpc/fpu_control.h (_FPU_MASK_RC): New.
3404 (__FPU_MFFS): New.
3405 (__FPU_MFFSL): New.
3406 (_FPU_GET_RC): New.
3407 (_FPU_GETCW): Use __FPU_MFFS().
3408 * sysdeps/powerpc/fpu/get-rounding-mode.h: New file.
3409
3410 2019-06-06 Florian Weimer <fweimer@redhat.com>
3411
3412 * sysdeps/unix/sysv/linux/riscv/flush-icache.c: Do not use
3413 internal GCC preprocessor identifier __has_include__.
3414
3415 2019-06-05 Paul A. Clarke <pc@us.ibm.com>
3416
3417 * sysdeps/powerpc/fpu/fegetexcept.c (__fegetexcept): Replace code
3418 with call to equivalent function.
3419
3420 2019-06-04 Florian Weimer <fweimer@redhat.com>
3421
3422 * iconv/gconv_dl.c (release_handle): Remove file-level definition.
3423 (do_release_shlib): Adjust for __twalk_r.
3424 (__gconv_release_shlib): Call __twalk_r.
3425
3426 2019-06-04 Andreas Schwab <schwab@suse.de>
3427
3428 [BZ #18830]
3429 * iconv/skeleton.c (FUNCTION_NAME): Use RESET_INPUT_BUFFER only if
3430 no irreversible characters occurred.
3431 * iconv/gconv_simple.c (internal_ucs4_loop)
3432 (internal_ucs4_loop_unaligned, internal_ucs4_loop_single)
3433 (ucs4_internal_loop, ucs4_internal_loop_unaligned)
3434 (ucs4_internal_loop_single, internal_ucs4le_loop)
3435 (internal_ucs4le_loop_unaligned, internal_ucs4le_loop_single)
3436 (ucs4le_internal_loop, ucs4le_internal_loop_unaligned)
3437 (ucs4le_internal_loop_single): Add const to outend.
3438 * sysdeps/s390/multiarch/gconv_simple.c (internal_ucs4le_loop)
3439 (ucs4_internal_loop, ucs4le_internal_loop): Likewise.
3440 * iconv/Makefile (tests): Add tst-iconv7.
3441 * iconv/tst-iconv7.c: New file.
3442
3443 2019-06-03 Joseph Myers <joseph@codesourcery.com>
3444
3445 * inet/netinet/in.h (INADDR_ALLSNOOPERS_GROUP): New macro.
3446
3447 2019-06-01 Florian Weimer <fweimer@redhat.com>
3448
3449 arm: Remove ioperm/iopl/inb/inw/inl/outb/outw/outl support.
3450 * sysdeps/unix/sysv/linux/arm/Makefile
3451 [$(subdir) == misc] (sysdep_headers): Remove sys/io.h.
3452 * sysdeps/unix/sysv/linux/arm/sys/io.h: Remove file.
3453 * sysdeps/unix/sysv/linux/arm/ioperm.c: Rewrite file.
3454 (ioperm, iopl, inb, inw, inl, outb, outw, outl): Turn into
3455 compatibility symbols.
3456
3457 2019-05-31 Florian Weimer <fweimer@redhat.com>
3458
3459 * sysdeps/unix/sysv/linux/syscall-names.list: Add oddly named
3460 system calls for the arm architecture: breakpoint, get_tls,
3461 set_tls, usr26, usr32.
3462
3463 2019-05-30 Gabriel F. T. Gomes <gabrielftg@linux.ibm.com>
3464
3465 * sysdeps/powerpc/Makefile
3466 [$(subdir) == misc] (CFLAGS-tst-set_ppr.c): New variable.
3467 * sysdeps/powerpc/powerpc64/power4/memcmp.S [__LITTLE_ENDIAN__]:
3468 Declare '.machine power7' to get support for ldbrx.
3469 * sysdeps/powerpc/powerpc64/power7/strncmp.S: Declare '.machine'
3470 directive based on the directory of the file.
3471 * sysdeps/powerpc/powerpc64/power8/fpu/s_llround.S: Likewise.
3472 * sysdeps/powerpc/powerpc64/power8/strcmp.S: Likewise.
3473 * sysdeps/powerpc/powerpc64/power8/strcasecmp.S: Update
3474 '.machine' directive.
3475 (VCLZD_V8_v7, MFVRD_R3_V1, VSUBUDM_V9_V8, VPOPCNTD_V8_V8)
3476 (VADDUQM_V7_V8): Remove.
3477 (__STRCASECMP): Replace macros with actual instructions.
3478 * sysdeps/powerpc/powerpc64/power8/strcasestr.S: Update
3479 '.machine' directive.
3480 (VCLZD_V8_v7): Remove.
3481 (STRCASESTR): Replace VCLZD_V8_v7 with actual instruction.
3482
3483 2019-05-29 Adhemerval Zanella <adhemerval.zanella@linaro.org>
3484
3485 * sysdeps/unix/sysv/linux/sparc/sparc32/sparcv9/get_clockfreq.c:
3486 Remove file.
3487 * sysdeps/unix/sysv/linux/x86_64/get_clockfreq.c: Likewise.
3488
3489 2019-05-28 Adhemerval Zanella <adhemerval.zanella@linaro.org>
3490
3491 * sysdeps/powerpc/fpu/round_to_integer.h (set_fenv_mode): Add
3492 NEARBYINT handling.
3493 * sysdeps/powerpc/fpu/s_nearbyint.c: New file.
3494 * sysdeps/powerpc/fpu/s_nearbyintf.c: Likewise.
3495 * sysdeps/powerpc/powerpc32/fpu/s_nearbyint.S: Remove file.
3496 * sysdeps/powerpc/powerpc32/fpu/s_nearbyintf.S: Likewise.
3497 * sysdeps/powerpc/powerpc64/fpu/s_nearbyint.S: Likewise.
3498 * sysdeps/powerpc/powerpc64/fpu/s_nearbyintf.S: Likewise.
3499
3500 2019-05-28 mansayk <6688000@gmail.com>
3501
3502 [BZ #24370]
3503 * localedata/locales/tt_RU (lang_name): Add from CLDR-35.1.
3504
3505 2019-05-28 mansayk <6688000@gmail.com>
3506
3507 [BZ #24369]
3508 * localedata/locales/tt_RU (mon): Update from CLDR-35.1, fix errors.
3509 (abmon): Likewise, but remove the trailing dots.
3510
3511 2019-05-28 Joseph Myers <joseph@codesourcery.com>
3512
3513 * inet/netinet/igmp.h (IGMP_MRDISC_ADV): New macro.
3514
3515 2019-05-27 Florian Weimer <fweimer@redhat.com>
3516
3517 * nptl/nptl-init.c: Add comment.
3518
3519 2019-05-24 Florian Weimer <fweimer@redhat.com>
3520
3521 * resolv/nss_dns/dns-host.c (getanswer_r): Be more explicit about
3522 struct in_addr/struct in6_addr alignment.
3523
3524 2019-05-23 Joseph Myers <joseph@codesourcery.com>
3525
3526 * sysdeps/unix/sysv/linux/bits/fcntl-linux.h [__USE_GNU]
3527 (F_SEAL_FUTURE_WRITE): New macro.
3528
3529 2019-05-23 Alexandra Hájková <ahajkova@redhat.com>
3530
3531 * elf/Makefile (test-container): Add tst-ldconfig-bad-aux-cache.
3532 * elf/tst-ldconfig-bad-aux-cache.c: New file.
3533 * elf/tst-ldconfig_aux-cache.root: New directory.
3534 * elf/tst-ldconfig-bad-aux-cache.root/postclean.req: New file.
3535 * elf/tst-ldconfig-bad-aux-cache.root/etc: New directory.
3536 * elf/tst-ldconfig-bad-aux-cache.root/etc/ld.so.conf: New file.
3537
3538 2019-05-22 Zack Weinberg <zackw@panix.com>
3539
3540 * sysdeps/powerpc/preconfigure: Error out on powerpc-*-*gnuspe*
3541 host type.
3542 * scripts/build-many-glibcs.py: Remove powerpc-*-linux-gnuspe
3543 and powerpc-*-linux-gnuspe-e500v1 from list of build configurations.
3544
3545 * sysdeps/powerpc/powerpc32/e500: Recursively delete.
3546 * sysdeps/unix/sysv/linux/powerpc/powerpc32/e500: Recursively delete.
3547 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/context-e500.h:
3548 Delete.
3549
3550 * sysdeps/powerpc/fpu_control.h: Remove SPE variant.
3551 Issue an #error if used with a compiler in SPE-float mode.
3552 * sysdeps/powerpc/powerpc32/__longjmp_common.S
3553 * sysdeps/powerpc/powerpc32/setjmp_common.S
3554 * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext-common.S
3555 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/getcontext.S
3556 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/setcontext.S
3557 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/swapcontext.S
3558 * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext-common.S
3559 * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S:
3560 Remove code to preserve SPE register state.
3561
3562 * sysdeps/unix/sysv/linux/powerpc/elision-lock.c
3563 * sysdeps/unix/sysv/linux/powerpc/elision-trylock.c
3564 * sysdeps/unix/sysv/linux/powerpc/elision-unlock.c:
3565 Remove __SPE__ ifndefs.
3566
3567 2019-05-21 Wilco Dijkstra <wdijkstr@arm.com>
3568
3569 * benchtests/bench-memcpy-random.c (do_one_test): Use medium iterations.
3570 * benchtests/bench-memcpy-walk.c (test_main): Reduce alignment tests.
3571 * benchtests/bench-memmem.c (do_one_test): Use small iterations.
3572 * benchtests/bench-memmove-walk.c (test_main): Reduce alignment tests.
3573 * benchtests/bench-memset-walk.c (test_main): Reduce alignment tests.
3574 * benchtests/bench-strcasestr.c (do_one_test): Use small iterations.
3575 * benchtests/bench-string.h (INNER_LOOP_ITERS): Increase iterations.
3576 (INNER_LOOP_ITERS_MEDIUM): New define.
3577 (INNER_LOOP_ITERS_SMALL): New define.
3578 * benchtests/bench-strpbrk.c (do_one_test): Use medium iterations.
3579 * benchtests/bench-strsep.c (do_one_test): Use small iterations.
3580 * benchtests/bench-strspn.c (do_one_test): Use medium iterations.
3581 * benchtests/bench-strstr.c (do_one_test): Use small iterations.
3582 * benchtests/bench-strtok.c (do_one_test): Use small iterations.
3583
3584 2019-05-21 Adhemerval Zanella <adhemerval.zanella@linaro.org>
3585
3586 * sysdeps/unix/sysv/linux/powerpc/ipc_priv.h (SEMTIMEDOP_IPC_ARGS):
3587 New define.
3588 * sysdeps/unix/sysv/linux/sparc/sparc64/ipc_priv.h
3589 (SEMTIMEDOP_IPC_ARGS): Likewise.
3590
3591 2019-05-21 Florian Weimer <fweimer@redhat.com>
3592
3593 [BZ #24584]
3594 * wcsmbs/wcsmbsload.c (__wcsmbs_clone_conv): Acquire __gconv_lock
3595 before updating __counter field and release it afterwards. Add
3596 overflow check.
3597 * iconv/gconv.h (struct __gconv_step): Mention synchronization
3598 requirement for __counter member.
3599
3600 2019-05-21 Florian Weimer <fweimer@redhat.com>
3601
3602 [BZ #24583]
3603 * wcsmbs/wcsmbsload.h (__wcsmbs_close_conv): Declare.
3604 * wcsmbs/wcsmbsload.c (__wcsmbs_close_conv): Define.
3605 * libio/iofclose.c (_IO_new_fclose): Call __wcsmbs_close_conv
3606 instead of __gconv_release_step.
3607 * libio/Makefile (tests): Add tst-wfile-gconv.
3608 (tests-container): Add tst-wfile-ascii.
3609 (tst-wfile-gconv-ENV): Enable mtrace.
3610 (generated): Add tst-wfile-gconv.mtrace, tst-wfile-gconv.check.
3611 (tests-special): Add tst-wfile-gconv-mem.out.
3612 (tst-wfile-gconv.out): Depend on locales.
3613 (tst-wfile-gconv-mem.out): Add mtrace rule.
3614 * libio/tst-wfile-ascii.c: New file.
3615 * libio/tst-wfile-gconv.c: Likewise.
3616
3617 2019-05-20 Florian Weimer <fweimer@redhat.com>
3618
3619 [BZ #24588]
3620 libio: Remove codecvt vtable.
3621 * libio/fileops.c ( _IO_new_file_fopen): Do not copy
3622 __libio_codecvt.
3623 * libio/iofgetpos.c (_IO_new_fgetpos): Call
3624 __libio_codecvt_encoding.
3625 * libio/iofgetpos64.c (_IO_new_fgetpos): Likewise.
3626 * libio/iofsetpos.c (_IO_new_fsetpos): Likewise.
3627 * libio/iofsetpos64.c (_IO_new_fsetpos): Likewise.
3628 * libio/iofwide.c (__libio_codecvt): Remove variable.
3629 (_IO_fwide): Do not copy __libio_codecvt.
3630 (__libio_codecvt_out): Rename from do_out and export.
3631 (do_unshift): Remove function.
3632 (__libio_codecvt_in): Rename from do_in and export.
3633 (__libio_codecvt_encoding): Rename from do_encoding and export.
3634 (do_always_noconv): Remove function.
3635 (__libio_codecvt_length): Rename from do_length and export.
3636 (do_max_length): Remove function.
3637 * libio/libio.h (enum __codecvt_result): Remove definition; moved
3638 to libioP.h.
3639 (struct _IO_codecvt): Remove fields __codecvt_destr,
3640 __codecvt_do_out, __codecvt_do_unshift, __codecvt_do_in,
3641 __codecvt_do_encoding, __codecvt_do_always_noconv,
3642 __codecvt_do_length, __codecvt_do_max_length.
3643 * libio/libioP.h (enum __codecvt_result): Define; moved from
3644 libio.h.
3645 (__libio_codecvt_out, __libio_codecvt_in)
3646 (__libio_codecvt_encoding, __libio_codecvt_length): Declare
3647 functions.
3648 * libio/wfileops.c (_IO_wdo_write): Call __libio_codecvt_out.
3649 (_IO_wfile_underflow): Call __libio_codecvt_in.
3650 (_IO_wfile_underflow): Likewise.
3651 (_IO_wfile_underflow_mmap): Likewise.
3652 (_IO_wfile_sync): Call __libio_codecvt_encoding,
3653 __libio_codecvt_length.
3654 (adjust_wide_data): Call __libio_codecvt_encoding,
3655 __libio_codecvt_in.
3656 (do_ftell_wide): Call __libio_codecvt_length, __libio_codecvt_out.
3657 (_IO_wfile_seekoff): Call __libio_codecvt_encoding,
3658 __libio_codecvt_length.
3659
3660 2019-05-20 Florian Weimer <fweimer@redhat.com>
3661
3662 * support/support.h (support_sbindir_prefix): Declare.
3663 (support_install_rootsbindir): Update comment.
3664 * support/Makefile (CFLAGS-support_paths.c): Define SBINDIR_PATH.
3665 * support/support_paths.c (support_sbindir_prefix): Define.
3666
3667 2019-05-20 Mike Crowe <mac@mcrowe.com>
3668
3669 * support/timespec.c: Add backslash to correct newline in failure
3670 message.
3671
3672 * support/timespec.h: Correct confusing comment.
3673
3674 2019-05-20 Adhemerval Zanella <adhemerval.zanella@linaro.org>
3675
3676 * sysdeps/unix/sysv/linux/ipc_priv.h (SEMTIMEDOP_IPC_ARGS): New
3677 define.
3678 * sysdpes/unix/sysv/linux/s390/ipc_priv.h: New file.
3679 * sysdeps/unix/sysv/linux/s390/semtimedop.c: Remove file.
3680 * sysdeps/unix/sysv/linux/semtimedop.c (semtimedop): Use
3681 SEMTIMEDOP_IPC_ARGS for calls with __NR_ipc.
3682
3683 [BZ #24570]
3684 * sysdeps/unix/sysv/linux/msgctl.c (__old_msgctl): Remove __IPC_64
3685 usage.
3686
3687 2019-05-20 Joseph Myers <joseph@codesourcery.com>
3688
3689 * elf/elf.h (NT_ARM_PACA_KEYS): New macro.
3690 (NT_ARM_PACG_KEYS): Likewise.
3691
3692 2019-05-17 Wilco Dijkstra <wdijkstr@arm.com>
3693
3694 * malloc/malloc.c (MAX_TCACHE_COUNT): Increase to UINT16_MAX.
3695 (tcache_put): Remove redundant assert.
3696 (tcache_get): Remove redundant asserts.
3697 (__libc_malloc): Check tcache count is not zero.
3698 * manual/tunables.texi (glibc.malloc.tcache_count): Update maximum.
3699
3700 2019-05-17 Florian Weimer <fweimer@redhat.com>
3701
3702 * manual/llio.texi (Open-time Flags): Document O_DIRECTORY.
3703
3704 2019-05-16 Joseph Myers <joseph@codesourcery.com>
3705
3706 * sysdeps/unix/sysv/linux/alpha/kernel-features.h
3707 (__ASSUME_STATFS64): Only undefine if [__LINUX_KERNEL_VERSION <
3708 0x050100].
3709 * sysdeps/unix/sysv/linux/ia64/kernel-features.h (__ASSUME_STATX):
3710 Likewise.
3711 * sysdeps/unix/sysv/linux/sh/kernel-features.h
3712 (__ASSUME_STATX): Likewise.
3713
3714 2019-05-16 Florian Weimer <fweimer@redhat.com>
3715
3716 * nis/nss_nis/nis-hosts.c (EXTRA_ARGS, EXTRA_ARGS_DECL): Remove
3717 flags argument.
3718 (LINE_PARSER): Do not map IPv4 addresses.
3719 (internal_nis_gethostent_r): Remove flags argument. Adjust call
3720 to parse_line.
3721 (_nss_nis_gethostent_r): Always pass AF_INET to
3722 internal_nis_gethostent_r.
3723 (internal_gethostbyname2_r): Remove flags argument. Adjust call
3724 to parse_line.
3725 (_nss_nis_gethostbyname2_r): Adjust call to
3726 internal_nis_gethostent_r.
3727 (_nss_nis_gethostbyname_r): Do not attempt IPv6 query. Adjust
3728 call to internal_nis_gethostent_r.
3729 (_nss_nis_gethostbyaddr_r): Do not request IPv4 address mapping
3730 from parse_line.
3731 (_nss_nis_gethostbyname4_r):Adjust call to parse_line.
3732 * nis/nss_nisplus/nisplus-hosts.c (_nss_nisplus_parse_hostent):
3733 Remove flags argument. Do not map IPv4 addresses.
3734 (internal_nisplus_gethostent_r): Adjust call to
3735 _nss_nisplus_parse_hostent.
3736 (internal_gethostbyname2_r): Remove flags argument. Adjust call
3737 to _nss_nisplus_parse_hostent.
3738 (_nss_nisplus_gethostbyname2_r): Adjust call to
3739 internal_gethostbyname2_r.
3740 (_nss_nisplus_gethostbyname_r): Do not perform IPv6 lookup.
3741 Adjust call to internal_gethostbyname2_r.
3742 (_nss_nisplus_gethostbyaddr_r): Adjust call to
3743 _nss_nisplus_parse_hostent.
3744 (_nss_nisplus_gethostbyname4_r): Adjust call to
3745 internal_gethostbyname2_r.
3746
3747 2019-05-16 Florian Weimer <fweimer@redhat.com>
3748
3749 * nss/nss_files/files-hosts.c (EXTRA_ARGS, EXTRA_ARGS_DECL):
3750 Remove flags.
3751 (LINE_PARSER): Remove address mapping.
3752 (EXTRA_ARGS_VALUE): Remove flags argument.
3753 (gethostbyname3_multi): Likewise. Adjust call to internal_getent.
3754 (_nss_files_gethostbyname3_r): Adjust calls to internal_getent and
3755 gethostbyname3_multi.
3756 (_nss_files_gethostbyname_r): Always use AF_INET. Adjust call to
3757 _nss_files_gethostbyname3_r.
3758 (_nss_files_gethostbyname4_r): Adjust call to internal_getent.
3759
3760 2019-05-16 Florian Weimer <fweimer@redhat.com>
3761
3762 * support/support_test_compare_blob.c (report_blob): Report
3763 incorrect NULL blobs.
3764
3765 2019-05-15 Mark Wielaard <mark@klomp.org>
3766
3767 [BZ# 24476]
3768 * dlfcn/dlerror.c (__dlerror_main_freeres): Guard using
3769 __libc_once_get (once) and static_buf == NULL.
3770 (__dlerror): Check we have a valid key, set result to static_buf
3771 otherwise.
3772
3773 2019-05-15 Andreas Schwab <schwab@suse.de>
3774
3775 [BZ #20568]
3776 * libio/wfileops.c (_IO_wfile_sync): Correct last argument to
3777 __codecvt_do_length.
3778 * libio/Makefile (tests): Add tst-wfile-sync.
3779 ($(objpfx)tst-wfile-sync.out): Depend on $(gen-locales).
3780 * libio/tst-wfile-sync.c: New file.
3781 * libio/tst-wfile-sync.input: New file.
3782
3783 2019-05-15 Florian Weimer <fweimer@redhat.com>
3784
3785 nss: Turn __nss_database_lookup into a compatibility symbol.
3786 * nss/nsswitch.h (__nss_database_lookup2): Renamed from
3787 __nss_database_lookup.
3788 * nss/nsswitch.c (__nss_database_lookup2): Likewise.
3789 (nss_load_all_libraries): Call __nss_database_lookup2 instead of
3790 __nss_database_lookup.
3791 (__nss_next): Move to …
3792 * nss/compat-lookup.c (nss_next): … here. Change it to fail
3793 unconditionally.
3794 (__nss_database_lookup): New function.
3795 * nss/Versions (GLIBC_2.0): Update comment.
3796 (GLIBC_PRIVATE): Export __nss_database_lookup2.
3797 * grp/initgroups.c (internal_getgrouplist): Call
3798 __nss_database_lookup2 instead of __nss_database_lookup.
3799 * nscd/aicache.c (addhstaiX): Likewise.
3800 * nscd/initgrcache.c (addinitgroupsX): Likewise.
3801 * nscd/netgroupcache.c (addgetnetgrentX): Likewise.
3802 * nss/XXX-lookup.c (DB_LOOKUP_FCT): Likewise.
3803 * nss/nss_compat/compat-grp.c (init_nss_interface): Likewise.
3804 * nss/nss_compat/compat-initgroups.c (init_nss_interface):
3805 Likewise.
3806 * nss/nss_compat/compat-pwd.c (init_nss_interface): Likewise.
3807 * nss/nss_compat/compat-spwd.c (init_nss_interface): Likewise.
3808 * sysdeps/posix/getaddrinfo.c (gaih_inet): Likewise.
3809
3810 2019-05-15 Alexandra Hájková <ahajkova@redhat.com>
3811
3812 * support/support.h (support_install_rootsbindir): New variable.
3813 * support/support_paths.c: Likewise.
3814 * support/Makefile (CFLAGS-support_paths.c): Add -DROOTSBINDIR_PATH.
3815
3816 2019-05-15 Florian Weimer <fweimer@redhat.com>
3817
3818 * iconv/gconv.h (__gconv_transliterate): Move declaration …
3819 * iconv/gconv_int.h (__gconv_transliterate): … here.
3820 * iconv/loop.c: Include <iconv/gconv_int.h> instead of <gconv.h>.
3821 * iconv/skeleton.c: Likewise.
3822
3823 2019-05-14 Florian Weimer <fweimer@redhat.com>
3824
3825 Linux: Add the tgkill function.
3826 * bits/signal_ext.h: New file.
3827 * manual/signal.texi (Signaling Another Process): Document tgkill.
3828 * signal/Makefile (headers): Add bits/signal_ext.h.
3829 * signal/signal.h: Include <bits/signal_ext.h>.
3830 * sysdeps/unix/sysv/linux/Makefile (tests): Add tst-tgkill.
3831 (tst-tgkill): Link with libpthread.
3832 * sysdeps/unix/sysv/linux/Versions (GLIBC_2.30): Export tgkill.
3833 * sysdeps/unix/sysv/linux/bits/signal_ext.h: New file.
3834 * sysdeps/unix/sysv/linux/bits/tst-tgkill.c: Likewise.
3835 * sysdeps/unix/sysv/linux/aarch64/libc.abilist (GLIBC_2.30): Add
3836 tgkill.
3837 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
3838 * sysdeps/unix/sysv/linux/arm/libc.abilist: Likewise.
3839 * sysdeps/unix/sysv/linux/csky/libc.abilist: Likewise.
3840 * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
3841 * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
3842 * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
3843 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
3844 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
3845 * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
3846 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
3847 * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist:
3848 Likewise.
3849 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
3850 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
3851 * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise.
3852 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
3853 Likewise.
3854 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
3855 Likewise.
3856 * sysdeps/unix/sysv/linux/powerpc/powerpc64/be/libc.abilist:
3857 Likewise.
3858 * sysdeps/unix/sysv/linux/powerpc/powerpc64/le/libc.abilist:
3859 Likewise.
3860 * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist: Likewise.
3861 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
3862 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
3863 * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
3864 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
3865 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
3866 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
3867 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
3868
3869 2019-05-14 Carlos O'Donell <carlos@redhat.com>
3870
3871 * manual/search.texi (Tree Search Function): Adjust twalk_r
3872 documentation.
3873
3874 2019-05-14 Adhemerval Zanella <adhemerval.zanella@linaro.org>
3875
3876 [BZ #24544]
3877 * elf/tst-pldd.c (do_test): Use support_bindir_prefix instead of
3878 pre-defined value.
3879
3880 * support/Makefile (CFLAGS-support_paths.c): Add -DBINDIR_PATH.
3881 * support/support.h (support_bindir_prefix): New variable.
3882 * support/support_paths.c [BINDIR_PATH] (support_bindir_prefix):
3883
3884 * config.make.in (bindir): New variable.
3885
3886 * sysdeps/nptl/lowlevellock.h (__lll_trylock): New macro.
3887 (lll_trylock): Call __lll_trylock.
3888 * sysdeps/unix/sysv/linux/i386/libc-lowlevellock.S: Remove file.
3889 * sysdeps/unix/sysv/linux/i386/lll_timedlock_wait.c: Likewise.
3890 * sysdeps/unix/sysv/linux/i386/lowlevellock.S: Likewise.
3891 * sysdeps/unix/sysv/linux/i386/lowlevellock.h: Likewise.
3892 * sysdeps/unix/sysv/linux/x86_64/libc-lowlevellock.S: Likewise.
3893 * sysdeps/unix/sysv/linux/x86_64/lll_timedlock_wait.c: Likewise.
3894 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.S: Likewise.
3895 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h: Likewise.
3896 * sysdeps/unix/sysv/linux/x86/lowlevellock.h: New file.
3897 * sysdeps/unix/sysv/linux/x86_64/cancellation.S: Include
3898 lowlevellock-futex.h.
3899
3900 * nptl/nptl-init.c (__pthread_initialize_minimal_internal): Remove
3901 initialization for LLL_LOCK_INITIALIZER different than 0.
3902 * nptl/old_pthread_cond_broadcast.c (__pthread_cond_broadcast_2_0):
3903 Assume LLL_LOCK_INITIALIZER being 0.
3904 * nptl/old_pthread_cond_signal.c (__pthread_cond_signal_2_0): Likewise.
3905 * nptl/old_pthread_cond_timedwait.c (__pthread_cond_timedwait_2_0):
3906 Likewise.
3907 * nptl/old_pthread_cond_wait.c (__pthread_cond_wait_2_0): Likewise.
3908 * sysdeps/nptl/libc-lockP.h (__libc_lock_define_initialized): Likewise.
3909
3910 * nptl/lowlevellock.c (__lll_lock_wait, __lll_lock_wait_private):
3911 Optimize futex call and add systemtap probe.
3912
3913 * nptl/pthreadP.h (CANCEL_ASYNC, CANCEL_RESET, LIBC_CANCEL_ASYNC,
3914 LIBC_CANCEL_RESET, __libc_enable_asynccancel,
3915 __libc_disable_asynccancel, __librt_enable_asynccancel,
3916 __libc_disable_asynccancel, __librt_enable_asynccancel,
3917 __librt_disable_asynccancel): Move to ...
3918 * sysdeps/unix/sysv/linux/sysdep-cancel.h: ... here.
3919 (SINGLE_THREAD_P, RTLD_SINGLE_THREAD_P): Move to ...
3920 * sysdeps/unix/sysv/linux/single-thread.h: ... here.
3921 * sysdeps/generic/single-thread.h: New file.
3922 * sysdeps/unix/sysdep.h: Include single-thread.h.
3923 * sysdeps/unix/sysv/linux/futex-internal.h: Include sysdep-cancel.h.
3924 * sysdeps/unix/sysv/linux/lowlevellock-futex.h: Likewise.
3925
3926 2019-05-08 Mike FABIAN <mfabian@redhat.com>
3927
3928 [BZ #24535]
3929 * localedata/unicode-gen/Makefile (UNICODE_VERSION): Set to 12.1.0.
3930 * localedata/unicode-gen/DerivedCoreProperties.txt: Update to
3931 Unicode 12.1.0.
3932 * localedata/unicode-gen/EastAsianWidth.txt: Likewise.
3933 * localedata/unicode-gen/PropList.txt: Likewise.
3934 * localedata/unicode-gen/UnicodeData.txt: Likewise.
3935 * localedata/charmaps/UTF-8: Regenerate.
3936 * localedata/locales/i18n_ctype: Likewise.
3937 * localedata/locales/tr_TR: Likewise.
3938 * localedata/locales/translit_circle: Likewise.
3939 * localedata/locales/translit_cjk_compat: Likewise.
3940 * localedata/locales/translit_combining: Likewise.
3941 * localedata/locales/translit_compat: Likewise.
3942 * localedata/locales/translit_font: Likewise.
3943 * localedata/locales/translit_fraction: Likewise.
3944
3945 2019-05-10 Wilco Dijkstra <wdijkstr@arm.com>
3946
3947 [BZ #24531]
3948 * malloc/malloc.c (MAX_TCACHE_COUNT): New define.
3949 (do_set_tcache_count): Only update if count is small enough.
3950 * manual/tunables.texi (glibc.malloc.tcache_count): Document max value.
3951
3952 2019-05-10 Florian Weimer <fweimer@redhat.com>
3953
3954 * nptl/sem_close.c (struct walk_closure): Define.
3955 (walker): Adjust for __twalk_r.
3956 (sem_close): Call __twalk_r.
3957
3958 2019-05-09 Adhemerval Zanella <adhemerval.zanella@linaro.org>
3959
3960 * support/timespec.c (test_timespec_before_impl,
3961 test_timespec_equal_or_after_impl): print timespec member as intmax_t
3962 insted of long int.
3963
3964 2019-05-09 Mike Crowe <mac@mcrowe.com>
3965
3966 * nptl/tst-abstime.c: Use libsupport.
3967
3968 * nptl/tst-rwlock6.c: Use libsupport. This also happens to fix a
3969 small bug where only tv.tv_usec was checked which could cause an
3970 erroneous pass if pthread_rwlock_timedrdlock incorrectly took more
3971 than a second.
3972
3973 * nptl/tst-rwlock7.c, nptl/tst-rwlock9.c, nptl/tst-rwlock14.c: Use
3974 libsupport.
3975
3976 * nptl/tst-sem5.c (do_test): Use xclock_gettime, timespec_add and
3977 TEST_TIMESPEC_NOW_OR_AFTER from libsupport.
3978
3979 * nptl/tst-cond11.c: Use libsupport.
3980
3981 * support/timespec.h: New file. Provide timespec helper functions
3982 along with macros in the style of those in check.h.
3983 * support/timespec.c: New file. Implement check functions declared
3984 in support/timespec.h.
3985 * support/timespec-add.c: New file from gnulib containing
3986 timespec_add implementation that handles overflow.
3987 * support/timespec-sub.c: New file from gnulib containing
3988 timespec_sub implementation that handles overflow.
3989 * support/README: Mention timespec.h.
3990
3991 2019-05-09 Szabolcs Nagy <szabolcs.nagy@arm.com>
3992
3993 [BZ #24537]
3994 * nptl/Makefile: Move tst-eintr1 to xtests.
3995
3996 2019-05-09 Adhemerval Zanella <adhemerval.zanella@linaro.org>
3997
3998 * sysdeps/powerpc/fpu/trunc_to_integer.h (set_fenv_mode): Add
3999 TRUNC handling.
4000 (round_mode): Add definition for TRUNC.
4001 * sysdeps/powerpc/fpu/s_trunc.c: New file.
4002 * sysdeps/powerpc/fpu/s_truncf.c: New file.
4003 * sysdeps/powerpc/powerpc32/fpu/s_trunc.S: Remove file.
4004 * sysdeps/powerpc/powerpc32/fpu/s_truncf.S: Likewise.
4005 * sysdep/powerpc/powepc32/power4/fpu/multiarch/s_trunc-power5+.S:
4006 Likewise.
4007 * sysdep/powerpc/powepc32/power4/fpu/multiarch/s_trunc-ppc32.S:
4008 Likewise.
4009 * sysdep/powerpc/powepc32/power4/fpu/multiarch/s_truncf-power5+.S:
4010 Likewise.
4011 * sysdep/powerpc/powepc32/power4/fpu/multiarch/s_truncf-ppc32.S:
4012 Likewise.
4013 * sysdep/powerpc/powepc32/power4/fpu/multiarch/s_trunc-power5+.c: New
4014 file.
4015 * sysdep/powerpc/powepc32/power4/fpu/multiarch/s_trunc-ppc32.c:
4016 Likewise.
4017 * sysdep/powerpc/powepc32/power4/fpu/multiarch/s_truncf-power5+.c:
4018 Likewise.
4019 * sysdep/powerpc/powepc32/power4/fpu/multiarch/s_truncf-ppc32.c:
4020 Likewise.
4021 * sysdep/powerpc/powerpc32/power5+/fpu/s_trunc.S: Remove file.
4022 * sysdep/powerpc/powerpc32/power5+/fpu/s_truncf.S: Likewise.
4023 * sysdep/powerpc/powerpc64/be/fpu/multiarch/Makefile
4024 (libm-sysdep_routines): Add s_trunc-power5+, s_trunc-ppc64,
4025 s_truncf-power5+, and s_truncf-ppc64.
4026 (CFLAGS-s_trunc-power5+.c, CFLAGS-s_truncf-power5+.c): New rule.
4027 * sysdep/powerpc/powercp64/be/fpu/multiarch/s_trunc-power5+.c: New
4028 file.
4029 * sysdep/powerpc/powercp64/be/fpu/multiarch/s_trunc-ppc64.c: Likewise.
4030 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_trunc.c: Move to ...
4031 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_trunc.c: ... here.
4032 * sysdep/powerpc/powercp64/be/fpu/multiarch/s_truncf-power5+.c: New
4033 file.
4034 * sysdep/powerpc/powercp64/be/fpu/multiarch/s_truncf-ppc64.c:
4035 Likewise.
4036 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_truncf.c: Move to ...
4037 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_truncf.c: ... here.
4038 * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile
4039 (libm-sysdep_routines): Remove s_trunc-power5+, s_trunc-ppc64,
4040 s_truncf-power5+, and s_truncf-ppc64.
4041 * sysdep/powerpc/powerpc64/fpu/multiarch/s_trunc-power5+.S: Remove
4042 file.
4043 * sysdep/powerpc/powerpc64/fpu/multiarch/s_trunc-ppc64.S: Likewise.
4044 * sysdep/powerpc/powerpc64/fpu/multiarch/s_truncf-power5+.S:
4045 Likewise.
4046 * sysdep/powerpc/powerpc64/fpu/multiarch/s_truncf-ppc64.S: Likewise.
4047 * sysdeps/powerpc/powerpc64/fpu/s_trunc.S: Likewise.
4048 * sysdeps/powerpc/powerpc64/fpu/s_truncf.S: Likewise.
4049 * sysdep/powerpc/powerpc64/power5+/fpu/s_trunc.S: Likewise.
4050 * sysdep/powerpc/powerpc64/power5+/fpu/s_truncf.S: Likewise.
4051
4052 * sysdeps/powerpc/fpu/round_to_integer.h (set_fenv_mode): Add
4053 ROUND handling.
4054 (round_mode): Add definition for ROUND.
4055 (round_to_integer_float): Likewise.
4056 * sysdeps/powerpc/fpu/s_round.c: New file.
4057 * sysdeps/powerpc/fpu/s_roundf.c: New file.
4058 * sysdeps/powerpc/powerpc32/fpu/s_round.S: Remove file.
4059 * sysdeps/powerpc/powerpc32/fpu/s_roundf.S: Likewise.
4060 * sysdep/powerpc/powepc32/power4/fpu/multiarch/s_round-power5+.S:
4061 Likewise.
4062 * sysdep/powerpc/powepc32/power4/fpu/multiarch/s_round-ppc32.S:
4063 Likewise.
4064 * sysdep/powerpc/powepc32/power4/fpu/multiarch/s_roundf-power5+.S:
4065 Likewise.
4066 * sysdep/powerpc/powepc32/power4/fpu/multiarch/s_roundf-ppc32.S:
4067 Likewise.
4068 * sysdep/powerpc/powepc32/power4/fpu/multiarch/s_round-power5+.c: New
4069 file.
4070 * sysdep/powerpc/powepc32/power4/fpu/multiarch/s_round-ppc32.c:
4071 Likewise.
4072 * sysdep/powerpc/powepc32/power4/fpu/multiarch/s_roundf-power5+.c:
4073 Likewise.
4074 * sysdep/powerpc/powepc32/power4/fpu/multiarch/s_roundf-ppc32.c:
4075 Likewise.
4076 * sysdep/powerpc/powerpc32/power5+/fpu/s_round.S: Remove file.
4077 * sysdep/powerpc/powerpc32/power5+/fpu/s_roundf.S: Likewise.
4078 * sysdep/powerpc/powerpc64/be/fpu/multiarch/Makefile
4079 (libm-sysdep_routines): Add s_round-power5+, s_round-ppc64,
4080 s_roundf-power5+, and s_roundf-ppc64.
4081 (CFLAGS-s_round-power5+.c, CFLAGS-s_roundf-power5+.c): New rule.
4082 * sysdep/powerpc/powercp64/be/fpu/multiarch/s_round-power5+.c: New
4083 file.
4084 * sysdep/powerpc/powercp64/be/fpu/multiarch/s_round-ppc64.c: Likewise.
4085 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_round.c: Move to ...
4086 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_round.c: ... here.
4087 * sysdep/powerpc/powercp64/be/fpu/multiarch/s_roundf-power5+.c: New
4088 file.
4089 * sysdep/powerpc/powercp64/be/fpu/multiarch/s_roundf-ppc64.c:
4090 Likewise.
4091 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_roundf.c: Move to ...
4092 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_roundf.c: ... here.
4093 * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile
4094 (libm-sysdep_routines): Remove s_round-power5+, s_round-ppc64,
4095 s_roundf-power5+, and s_roundf-ppc64.
4096 * sysdep/powerpc/powerpc64/fpu/multiarch/s_round-power5+.S: Remove
4097 file.
4098 * sysdep/powerpc/powerpc64/fpu/multiarch/s_round-ppc64.S: Likewise.
4099 * sysdep/powerpc/powerpc64/fpu/multiarch/s_roundf-power5+.S:
4100 Likewise.
4101 * sysdep/powerpc/powerpc64/fpu/multiarch/s_roundf-ppc64.S: Likewise.
4102 * sysdeps/powerpc/powerpc64/fpu/s_round.S: Likewise.
4103 * sysdeps/powerpc/powerpc64/fpu/s_roundf.S: Likewise.
4104 * sysdep/powerpc/powerpc64/power5+/fpu/s_round.S: Likewise.
4105 * sysdep/powerpc/powerpc64/power5+/fpu/s_roundf.S: Likewise.
4106
4107 * sysdeps/powerpc/fpu/round_to_integer.h (set_fenv_mode):
4108 Add FLOOR option.
4109 (round_mode): Add definition for FLOOR.
4110 * sysdeps/powerpc/fpu/s_floor.c: New file.
4111 * sysdeps/powerpc/fpu/s_floorf.c: Likewise.
4112 * sysdeps/powerpc/powerpc32/fpu/s_floor.S: Remove file.
4113 * sysdeps/powerpc/powerpc32/fpu/s_floorf.S: Likewise.
4114 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floor-power5+.S:
4115 Remove file.
4116 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floor-ppc32.S:
4117 Likewise
4118 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floorf-power5+.S:
4119 Likewise.
4120 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floorf-ppc32.S:
4121 Likewise.
4122 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floor-power5+.c:
4123 New file.
4124 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floor-ppc32.c:
4125 Likewise.
4126 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floorf-power5+.c:
4127 Likewise.
4128 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floorf-ppc32.c:
4129 Likewise.
4130 * sysdeps/powerpc/powerpc32/power5+/fpu/s_floor.S: Remove file.
4131 * sysdeps/powerpc/powerpc32/power5+/fpu/s_floorf.S: Remove file.
4132 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/Makefile
4133 (libm-sysdep_routines): Add s_floor-power5+, s_floor-ppc64,
4134 s_floorf-power5+, and s_floorf-ppc64.
4135 (CFLAGS-s_floor-power5+.c, CFLAGS-s_floorf-power5+.c): New rule.
4136 * sysdep/powerpc/powerpc64/be/fpu/multiarch/s_floor-power5+.c: New
4137 file.
4138 * sysdep/powerpc/powerpc64/be/fpu/multiarch/s_floor-ppc64.c: Likewise.
4139 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floor.c: Move to ...
4140 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_floor.c: ... here.
4141 * sysdep/powerpc/powerpc64/be/fpu/multiarch/s_floorf-power5+.c: New
4142 file.
4143 * sysdep/powerpc/powerpc64/be/fpu/multiarch/s_floorf-ppc64.c:
4144 Likewise.
4145 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floorf.c: Move to ...
4146 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_floorf.c: ... here.
4147 * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile
4148 (libm-sysdep_routines): Remove s_floor-power5+, s_floor-ppc64,
4149 s_floorf-power5+, and s_floorf-ppc64.
4150 * sysdep/powerpc/powerpc64/fpu/multiarch/s_floor-power5+.S: Remove
4151 file.
4152 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floor-ppc64.S: Remove
4153 file.
4154 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floorf-power5+.S:
4155 Likewise.
4156 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floorf-ppc64.S:
4157 Likewise.
4158 * sysdeps/powerpc/powerpc64/fpu/s_floor.S: Likewise.
4159 * sysdeps/powerpc/powerpc64/fpu/s_floorf.S: Likewise.
4160 * sysdeps/powerpc/powerpc64/power5+/fpu/s_floor.S: Likewise.
4161 * sysdeps/powerpc/powerpc64/power5+/fpu/s_floorf.S: Likewise.
4162
4163 2019-05-08 Mike Crowe <mac@mcrowe.com>
4164
4165 * support/xclock_gettime.c (xclock_gettime): New file. Provide
4166 clock_gettime wrapper for use in tests that fails the test rather
4167 than returning failure.
4168
4169 * support/xtime.h: New file to declare xclock_gettime.
4170
4171 * support/Makefile: Add xclock_gettime.c.
4172
4173 * support/README: Mention xtime.h.
4174
4175 2019-05-08 Florian Weimer <fweimer@redhat.com>
4176
4177 malloc/tst-mallocfork2: Use process-shared barriers.
4178 * malloc/tst-mallocfork2.c: Switch to <support/test-driver.c>.
4179 (signal_count, sigusr1_sender_pid): Remove.
4180 (iterations): Define constant.
4181 (shared): New variable.
4182 (sigusr1_received): Update comment.
4183 (sigusr1_handler): Do not send SIGSTOP to the sender process.
4184 (signal_sender): Optional use barriers to avoid sending signals
4185 during irrelevant times.
4186 (do_it): Initialize variable shared. Use xfork for error
4187 checking. Launch multiple SIGUSR1-sending subprocesses. Limit
4188 the iteration count, independent of signal delivery. Check for
4189 deadlocks in fork. Introduce barriers for reducing signal
4190 traffic. Do not send SIGCONT to the SIGUSR1-sending processes;
4191 replaced by the barriers. Count signals during fork/free/malloc
4192 and report them.
4193 * malloc/Makefile (tst-mallocfork): Link with libpthread.
4194
4195 2019-05-07 Joseph Myers <joseph@codesourcery.com>
4196
4197 * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
4198 version to 5.1.
4199 (clock_adjtime64) New syscall.
4200 (clock_getres_time64) Likewise.
4201 (clock_gettime64) Likewise.
4202 (clock_nanosleep_time64) Likewise.
4203 (clock_settime64) Likewise.
4204 (futex_time64) Likewise.
4205 (io_pgetevents_time64) Likewise.
4206 (io_uring_enter) Likewise.
4207 (io_uring_register) Likewise.
4208 (io_uring_setup) Likewise.
4209 (mq_timedreceive_time64) Likewise.
4210 (mq_timedsend_time64) Likewise.
4211 (pidfd_send_signal) Likewise.
4212 (ppoll_time64) Likewise.
4213 (pselect6_time64) Likewise.
4214 (recvmmsg_time64) Likewise.
4215 (rt_sigtimedwait_time64) Likewise.
4216 (sched_rr_get_interval_time64) Likewise.
4217 (semtimedop_time64) Likewise.
4218 (timer_gettime64) Likewise.
4219 (timer_settime64) Likewise.
4220 (timerfd_gettime64) Likewise.
4221 (timerfd_settime64) Likewise.
4222 (utimensat_time64) Likewise.
4223
4224 * scripts/build-many-glibcs.py (Context.checkout): Default GCC
4225 version to 9 branch.
4226
4227 2019-05-03 Anton Youdkevitch <anton.youdkevitch@bell-sw.com>
4228
4229 * sysdeps/aarch64/multiarch/ifunc-impl-list.c: Added
4230 __memmove_thunderx2 to the list of implementations
4231 * sysdeps/aarch64/multiarch/memmove.c: Likewise
4232 * sysdeps/aarch64/multiarch/memcpy_thunderx2.S:
4233 (__memmove_thunderx2): Rewritten using SIMD ld/st
4234 (__memcpy_thunderx2): Fixed handling overlapping cases.
4235 Used ldp/stp instead of ldr/str if possible. Made loops
4236 tails branchless.
4237
4238 2019-05-03 Florian Weimer <fweimer@redhat.com>
4239
4240 * misc/tst-tsearch.c (walk_tree): Add more error checking.
4241
4242 2019-05-02 Adhemerval Zanella <adhemerval.zanella@linaro.org>
4243
4244 [BZ #24506]
4245 * elf/tst-pldd.c (in_str_list): New function.
4246 (do_test): Add default names for ld and libc as one option.
4247
4248 2019-05-02 Florian Weimer <fweimer@redhat.com>
4249
4250 misc: Add twalk_r function.
4251 * include/search.h (__twalk_r): Declare.
4252 * manual/examples/twalk.c: New file.
4253 * manual/search.texi (Tree Search Function): Document twalk_r.
4254 * misc/Versions (2.30): Export twalk_r.
4255 (GLIBC_PRIVATE): Export __twalk_r.
4256 * misc/search.h [__USE_GNU] (twalk_r): Declare.
4257 * misc/tsearch.c (trecurse_r, __twalk_r): New functions.
4258 (twalk_r): Add weak alias.
4259 * misc/tst-tsearch.c (struct walk_trace_element): Define.
4260 (walk_trace): New variable.
4261 (struct twalk_with_twalk_r_closure): Define.
4262 (twalk_with_twalk_r_action): New function.
4263 (twalk_with_twalk_r): Likewise.
4264 (walk_action): Call walk_trace_add.
4265 (walk_tree_with): Rename from walk_tree. Add walk argument.
4266 (walk_tree): New function.
4267 * sysdeps/mach/hurd/i386/libc.abilist (GLIBC_2.30): Add twalk_r.
4268 * sysdeps/unix/sysv/linux/aarch64/libc.abilist (GLIBC_2.30):
4269 Likewise.
4270 * sysdeps/unix/sysv/linux/alpha/libc.abilist (GLIBC_2.30):
4271 Likewise.
4272 * sysdeps/unix/sysv/linux/arm/libc.abilist (GLIBC_2.30): Likewise.
4273 * sysdeps/unix/sysv/linux/csky/libc.abilist (GLIBC_2.30): Likewise.
4274 * sysdeps/unix/sysv/linux/hppa/libc.abilist (GLIBC_2.30): Likewise.
4275 * sysdeps/unix/sysv/linux/i386/libc.abilist (GLIBC_2.30): Likewise.
4276 * sysdeps/unix/sysv/linux/ia64/libc.abilist (GLIBC_2.30): Likewise.
4277 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist (GLIBC_2.30):
4278 Likewise.
4279 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist (GLIBC_2.30):
4280 Likewise.
4281 * sysdeps/unix/sysv/linux/microblaze/libc.abilist (GLIBC_2.30):
4282 Likewise.
4283 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist
4284 (GLIBC_2.30): Likewise.
4285 * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist
4286 (GLIBC_2.30): Likewise.
4287 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist
4288 (GLIBC_2.30): Likewise.
4289 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist
4290 (GLIBC_2.30): Likewise.
4291 * sysdeps/unix/sysv/linux/nios2/libc.abilist (GLIBC_2.30):
4292 Likewise.
4293 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist
4294 (GLIBC_2.30): Likewise.
4295 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist
4296 (GLIBC_2.30): Likewise.
4297 * sysdeps/unix/sysv/linux/powerpc/powerpc64/be/libc.abilist
4298 (GLIBC_2.30): Likewise.
4299 * sysdeps/unix/sysv/linux/powerpc/powerpc64/le/libc.abilist
4300 (GLIBC_2.30): Likewise.
4301 * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist (GLIBC_2.30):
4302 Likewise.
4303 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist (GLIBC_2.30):
4304 Likewise.
4305 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist (GLIBC_2.30):
4306 Likewise.
4307 * sysdeps/unix/sysv/linux/sh/libc.abilist (GLIBC_2.30): Likewise.
4308 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist (GLIBC_2.30):
4309 Likewise.
4310 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist (GLIBC_2.30):
4311 Likewise.
4312 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist (GLIBC_2.30):
4313 Likewise.
4314 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist (GLIBC_2.30):
4315 Likewise.
4316
4317 2019-04-30 Paul Eggert <eggert@cs.ucla.edu>
4318
4319 Make mktime etc. compatible with __time64_t
4320 Keep these functions compatible with Gnulib while adding
4321 __time64_t support. The basic idea is to move private API
4322 declarations from include/time.h to time/mktime-internal.h, since
4323 the former file cannot easily be shared with Gnulib whereas the
4324 latter can.
4325 Also, do some other minor cleanup while in the neighborhood.
4326 * include/time.h: Include stdbool.h, time/mktime-internal.h.
4327 (__mktime_internal): Move this prototype to time/mktime-internal.h,
4328 since Gnulib needs it.
4329 (__localtime64_r, __gmtime64_r) [__TIMESIZE == 64]:
4330 Move these macros to time/mktime-internal.h, since Gnulib needs them.
4331 (__mktime64, __timegm64) [__TIMESIZE != 64]: New prototypes.
4332 (in_time_t_range): New static function.
4333 * posix/bits/types.h (__time64_t): Move to time/mktime-internal.h,
4334 so that glibc users are not tempted to use __time64_t.
4335 * time/mktime-internal.h: Rewrite so that it does both glibc
4336 and Gnulib work. Include time.h if not _LIBC.
4337 (mktime_offset_t) [!_LIBC]: Define for gnulib.
4338 (__time64_t): New type or macro, moved here from
4339 posix/bits/types.h.
4340 (__gmtime64_r, __localtime64_r, __mktime64, __timegm64)
4341 [!_LIBC || __TIMESIZE == 64): New macros, mostly moved here
4342 from include/time.h.
4343 (__gmtime_r, __localtime_r, __mktime_internal) [!_LIBC]:
4344 New macros, taken from GNulib.
4345 (__mktime_internal): New prototype, moved here from include/time.h.
4346 * time/mktime.c (mktime_min, mktime_max, convert_time)
4347 (ranged_convert, __mktime_internal, __mktime64):
4348 * time/timegm.c (__timegm64):
4349 Use __time64_t, not time_t.
4350 * time/mktime.c: Stop worrying about whether time_t is floating-point.
4351 (__mktime64) [! (_LIBC && __TIMESIZE != 64)]:
4352 Rename from mktime.
4353 (mktime) [_LIBC && __TIMESIZE != 64]: New function.
4354 * time/timegm.c [!_LIBC]: Include libc-config.h, not config.h,
4355 for libc_hidden_def.
4356 Include errno.h.
4357 (__timegm64) [! (_LIBC && __TIMESIZE != 64)]:
4358 Rename from timegm.
4359 (timegm) [_LIBC && __TIMESIZE != 64]: New function.
4360
4361 2019-04-30 Maciej W. Rozycki <macro@wdc.com>
4362
4363 [BZ #19444]
4364 * sysdeps/ieee754/soft-fp/s_ddivl.c (__ddivl): Ignore errors
4365 from `-Wmaybe-uninitialized'.
4366 * sysdeps/ieee754/soft-fp/s_fdivl.c (__fdivl): Likewise.
4367
4368 2019-04-29 Adhemerval Zanella <adhemerval.zanella@linaro.org>
4369
4370 * sysdeps/powerpc/fpu/fenv_libc.h (__fesetround_inline_nocheck): New
4371 function.
4372 * sysdeps/powerpc/fpu/round_to_integer.h: New file.
4373 * sysdeps/powerpc/fpu/s_ceil.c: Likewise.
4374 * sysdeps/powerpc/fpu/s_ceilf.c: Likewise.
4375 * sysdeps/powerpc/powerpc32/fpu/s_ceil.S: Remove file.
4376 * sysdeps/powerpc/powerpc32/fpu/s_ceilf.S: Likewise.
4377 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile
4378 (CFLAGS-s_ceil-power5+.c, CFLAGS-s_ceilf-power5+.c): New rule.
4379 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceil-power5+.S:
4380 Remove file.
4381 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceil-ppc32.S:
4382 Likewise.
4383 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceilf-power5+.S:
4384 Likewise.
4385 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceilf-ppc32.S:
4386 Likewise.
4387 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceil-power5+.c:
4388 New file.
4389 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceil-ppc32.c:
4390 Likewise.
4391 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceilf-power5+.c:
4392 Likewise.
4393 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceilf-ppc32.c:
4394 Likewise.
4395 * sysdeps/powerpc/powerpc32/power5+/fpu/s_ceil.S: Remove file.
4396 * sysdeps/powerpc/powerpc32/power5+/fpu/s_ceilf.S: Likewise.
4397 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/Makefile: New file.
4398 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_ceil-power5+.c:
4399 Likewise.
4400 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_ceil-ppc64.c:
4401 Likewise.
4402 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceil.c: Move to ...
4403 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_ceil.c: ... here.
4404 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_ceilf-power5+.c: New
4405 file.
4406 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_ceilf-ppc64.c:
4407 Likewise.
4408 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceilf.c: Move to ...
4409 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_ceilf.c: ...
4410 * here.
4411 * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile
4412 (libm-sysdep_routines): Remove s_ceil-power5+, s_ceil-ppc64,
4413 s_ceilf-power5+, and s_ceilf-ppc64.
4414 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceil-power5+.S: Remove
4415 file.
4416 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceil-ppc64.S: Likewise.
4417 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceilf-power5+.S: Likewise.
4418 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceilf-ppc64.S: Likewise.
4419 * sysdeps/powerpc/powerpc64/fpu/s_ceil.S: Likewise.
4420 * sysdeps/powerpc/powerpc64/fpu/s_ceilf.S: Likewise.
4421 * sysdeps/powerpc/powerpc64/power5+/fpu/s_ceil.S: Likewise.
4422 * sysdeps/powerpc/powerpc64/power5+/fpu/s_ceilf.S: Likewise.
4423
4424 * sysdeps/powerpc/power4/fpu/Makefile: Remove file.
4425 * sysdeps/powerpc/power4/fpu/mpa-arch.h: Likewise.
4426 * sysdeps/powerpc/power4/fpu/mpa.c: Likewise.
4427
4428 2019-04-29 Yann Droneaud <ydroneaud@opteya.com>
4429
4430 * sysdeps/pthread/semaphore.h (sem_init): Add __nonnull attribute.
4431 (sem_destroy, sem_open, sem_close, sem_unlink): Likewise.
4432 (sem_wait, sem_timedwait, sem_trywait, sem_post): Likewise.
4433 (sem_getvalue): Likewise.
4434
4435 2019-04-26 Florian Weimer <fweimer@redhat.com>
4436
4437 elf: Link sotruss-lib.so with BIND_NOW for --enable-bind-now.
4438 * elf/Makefile (LDFLAGS-sotruss-lib.so): Set.
4439
4440 2019-04-26 Florian Weimer <fweimer@redhat.com>
4441
4442 Makeconfig: Move -Wl,-rpath-link options before library references.
4443 * Makeconfig (+link-pie, +link): Add $(link-libc-rpath-link).
4444 (link-libc): Remove $(link-libc-rpath-link).
4445
4446 2019-04-25 Florian Weimer <fweimer@redhat.com>
4447
4448 * Makeconfig (+link-pie-before-libc): Remove $(CC).
4449 (+link-pie, +link-pie-tests, +link-pie-printers-tests): Add $(CC).
4450 (+link-static-before-libc): Remove $(CC).
4451 (+link-static, +link-static-tests): Add $(CC).
4452 (+link-before-libc): Remove $(CC).
4453 (+link, +link-pie, +link-pie-printers): Add $(CC).
4454
4455 2019-04-26 Florian Weimer <fweimer@redhat.com>
4456
4457 * Makeconfig (+link-pie-before-libc): Remove $(CC).
4458 (+link-pie, +link-pie-tests, +link-pie-printers-tests): Add $(CC).
4459 (+link-static-before-libc): Remove $(CC).
4460 (+link-static, +link-static-tests): Add $(CC).
4461 (+link-before-libc): Remove $(CC).
4462 (+link, +link-pie, +link-pie-printers): Add $(CC).
4463
4464 2019-04-25 David Abdurachmanov <david.abdurachmanov@gmail.com>
4465
4466 [BZ#24484]
4467 * sysdeps/riscv/ldsodefs.h (DL_RO_DYN_SECTION): Remove.
4468
4469 2019-04-25 Florian Weimer <fweimer@redhat.com>
4470
4471 benchtests: Enable BIND_NOW if configured with --enable-bind-now.
4472 * benchtests/Makefile [$(bind-now)] (link-bench-bind-now): Set.
4473 (bench-link-targets): New variable.
4474 ($(binaries-bench) …): Use it. Set LDFLAGS accordingly.
4475
4476 2019-04-25 Florian Weimer <fweimer@redhat.com>
4477
4478 Also enable BIND_NOW for programs if --enable-bind-now.
4479 * Makeconfig [$(bind-now)] (link-extra-flags): Add -Wl,-z,now.
4480 (+link-pie): Use $(link-extra-flags).
4481 (+link-static): Likewise.
4482 [! $(build-pie-default)] (+link): Likewise.
4483 * manual/install.texi (Configuring and compiling): Update
4484 --enable-bind-now description.
4485 * INSTALL: Regenerated.
4486
4487 2019-04-24 Wilco Dijkstra <wdijkstr@arm.com>
4488
4489 * benchtests/Makefile (BENCH_DURATION): Set to 1 second.
4490 * benchtests/bench-malloc-thread.c (BENCH_DURATION): Set to 10 seconds.
4491
4492 2019-04-24 Mike Frysinger <vapier@gentoo.org>
4493
4494 [BZ #18465]
4495 * malloc/Makefile (others): Add memusagestat.
4496 ($(objpfx)memusagestat): Delete rule.
4497 (LDLIBS-memusagestat): New variable.
4498
4499 2019-04-24 Florian Weimer <fweimer@redhat.com>
4500
4501 * locale/Makefile (tests-special): Guard setting by
4502 $(run-built-tests) == yes, otherwise tst-locale-locpath attempts
4503 to run while cross-compiling.
4504
4505 2019-04-23 Adhemerval Zanella <adhemerval.zanella@linaro.org>
4506
4507 [BZ #18035]
4508 * elf/Makefile (tests-container): Add tst-pldd.
4509 * elf/pldd-xx.c: Use _Static_assert in of pldd_assert.
4510 (E(find_maps)): Avoid use alloca, use default read file operations
4511 instead of explicit LFS names, and fix infinite loop.
4512 * elf/pldd.c: Explicit set _FILE_OFFSET_BITS, cleanup headers.
4513 (get_process_info): Use _Static_assert instead of assert, use default
4514 directory operations instead of explicit LFS names, and free some
4515 leadek pointers.
4516 * elf/tst-pldd.c: New file.
4517
4518 2019-04-23 H.J. Lu <hongjiu.lu@intel.com>
4519
4520 * malloc/arena.c (do_set_mallopt_check): Removed.
4521
4522 2019-04-23 Florian Weimer <fweimer@redhat.com>
4523
4524 locale: Add LOCPATH diagnostics to the locale program.
4525 * locale/programs/locale.c (setlocale_failed): New variable.
4526 (try_setlocale): New function.
4527 (quote_string): Likewise.
4528 (setlocale_diagnostics): Likewise.
4529 (main): Call try_setlocale instead of setlocale. Call
4530 setlocale_diagnostics.
4531 * locale/Makefile (tests-special): Add tst-locale-locpath.out.
4532 (tst-locale-locpath.out): New target.
4533 * locale/tst-locale-locpath.sh: New file.
4534
4535 2019-04-21 Adhemerval Zanella <adhemerval.zanella@linaro.org>
4536
4537 * NEWS: Move memory allocation changes of BZ#23741 from 2.29
4538 to 2.30 notes.
4539
4540 2019-04-18 Adhemerval Zanella <adhemerval.zanella@linaro.org>
4541
4542 [BZ #23741]
4543 * malloc/hooks.c (malloc_check, realloc_check): Use
4544 __builtin_add_overflow on overflow check and adapt to
4545 checked_request2size change.
4546 * malloc/malloc.c (__libc_malloc, __libc_realloc, _mid_memalign,
4547 __libc_pvalloc, __libc_calloc, _int_memalign): Limit maximum
4548 allocation size to PTRDIFF_MAX.
4549 (REQUEST_OUT_OF_RANGE): Remove macro.
4550 (checked_request2size): Change to inline function and limit maximum
4551 requested size to PTRDIFF_MAX.
4552 (__libc_malloc, __libc_realloc, _int_malloc, _int_memalign): Limit
4553 maximum allocation size to PTRDIFF_MAX.
4554 (_mid_memalign): Use _int_memalign call for overflow check.
4555 (__libc_pvalloc): Use __builtin_add_overflow on overflow check.
4556 (__libc_calloc): Use __builtin_mul_overflow for overflow check and
4557 limit maximum requested size to PTRDIFF_MAX.
4558 * malloc/malloc.h (malloc, calloc, realloc, reallocarray, memalign,
4559 valloc, pvalloc): Add __attribute_alloc_size__.
4560 * stdlib/stdlib.h (malloc, realloc, reallocarray, valloc): Likewise.
4561 * malloc/tst-malloc-too-large.c (do_test): Add check for allocation
4562 larger than PTRDIFF_MAX.
4563 * malloc/tst-memalign.c (do_test): Disable -Walloc-size-larger-than=
4564 around tests of malloc with negative sizes.
4565 * malloc/tst-posix_memalign.c (do_test): Likewise.
4566 * malloc/tst-pvalloc.c (do_test): Likewise.
4567 * malloc/tst-valloc.c (do_test): Likewise.
4568 * malloc/tst-reallocarray.c (do_test): Replace call to reallocarray
4569 with resulting size allocation larger than PTRDIFF_MAX with
4570 reallocarray_nowarn.
4571 (reallocarray_nowarn): New function.
4572 * NEWS: Mention the malloc function semantic change.
4573
4574 2019-04-17 Adhemerval Zanella <adhemerval.zanella@linaro.org>
4575
4576 * sysdeps/powerpc/fpu/s_fma.c: Fix format.
4577 * sysdeps/powerpc/fpu/s_fmaf.c: Likewise.
4578
4579 * sysdeps/powerpc/fpu/s_fma.S: Remove file.
4580 * sysdeps/powerpc/fpu/s_fmaf.S: Likewise.
4581 * sysdeps/powerpc/fpu/s_fma.c: New file.
4582 * sysdeps/powerpc/fpu/s_fmaf.c: Likewise.
4583
4584 * sysdeps/powerpc/fpu/s_fabs.S: Remove file.
4585 * sysdeps/powerpc/fpu/s_fabsf.S: Likewise.
4586
4587 * sysdeps/unix/sysv/linux/mips/getcontext.S (__getcontext): Remove
4588 the magic flag store.
4589 * sysdeps/unix/sysv/linux/mips/makecontext.S (__makecontext):
4590 Likewise.
4591 * sysdeps/unix/sysv/linux/mips/swapcontext.S (__swapcontext):
4592 Likewise.
4593 * sysdeps/unix/sysv/linux/mips/setcontext.S (__setcontext):
4594 Remove rt_sigreturn call.
4595
4596 * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext-common.S:
4597 Remove rt_sigreturn call.
4598 * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S:
4599 Likewise.
4600 * sysdeps/unix/sysv/linux/powerpc/powerpc64/setcontext.S: Likewie.
4601 * sysdeps/unix/sysv/linux/powerpc/powerpc64/swapcontext.S: Likewise.
4602
4603 * support/Makefile (libsupport-routines): Add support_subprocess,
4604 xposix_spawn, xposix_spawn_file_actions_addclose, and
4605 xposix_spawn_file_actions_adddup2.
4606 (tst-support_capture_subprocess-ARGS): New rule.
4607 * support/capture_subprocess.h (support_capture_subprogram): New
4608 prototype.
4609 * support/support_capture_subprocess.c (support_capture_subprocess):
4610 Refactor to use support_subprocess and support_capture_poll.
4611 (support_capture_subprogram): New function.
4612 * support/tst-support_capture_subprocess.c (write_mode_to_str,
4613 str_to_write_mode, test_common, parse_int, handle_restart,
4614 do_subprocess, do_subprogram, do_multiple_tests): New functions.
4615 (do_test): Add support_capture_subprogram tests.
4616 * support/subprocess.h: New file.
4617 * support/support_subprocess.c: Likewise.
4618 * support/xposix_spawn.c: Likewise.
4619 * support/xposix_spawn_file_actions_addclose.c: Likewise.
4620 * support/xposix_spawn_file_actions_adddup2.c: Likewise.
4621 * support/xspawn.h: Likewise.
4622
4623 2019-04-17 Mike Gerow <gerow@google.com>
4624
4625 * stdlib/tst-secure-getenv.c (choose_gid): Remove 64 supplemental
4626 groups limit.
4627
4628 2019-04-11 Florian Weimer <fweimer@redhat.com>
4629
4630 * resolv/nss_dns/dns-network.c (getanswer_r): Do not replace root
4631 domain with empty string.
4632 * resolv/nss_dns/dns-host.c (getanswer_r): Likewise.
4633
4634 2019-04-11 Florian Weimer <fweimer@redhat.com>
4635
4636 * include/alloc_buffer.h (alloc_buffer_alloc_bytes): Update
4637 comment.
4638 (alloc_buffer_next): Change return type to non-const. Update
4639 comment.
4640
4641 2019-04-10 TAMUKI Shoichi <tamuki@linet.gr.jp>
4642
4643 * manual/time.texi (Formatting Calendar Time): Add missing percent
4644 sign to conversion specifier.
4645
4646 2019-04-09 Carlos O'Donell <carlos@redhat.com>
4647 Kwok Cheung Yeung <kcy@codesourcery.com>
4648
4649 [BZ #16573]
4650 * malloc/mtrace.c: Define prototypes for all hooks.
4651 (set_default_hooks): New function.
4652 (set_trace_hooks): Likewise.
4653 (save_default_hooks): Likewise.
4654 (tr_freehook): Use new s*_hooks functions.
4655 (tr_mallochook): Likewise.
4656 (tr_reallochook): Likewise.
4657 (tr_memalignhook): Likewise.
4658 (mtrace): Likewise.
4659 (muntrace): Likewise.
4660
4661 2019-04-09 Wilco Dijkstra <wdijkstr@arm.com>
4662
4663 * benchtests/bench-stpcpy.c (SIMPLE_STPCPY): Remove function.
4664 (generic_stpcpy): New function.
4665 * benchtests/bench-stpncpy.c (SIMPLE_STPNCPY): Remove function.
4666 (generic_stpncpy): New function.
4667 * benchtests/bench-strcat.c (SIMPLE_STRCAT): Remove function.
4668 (generic_strcat): New function.
4669 * benchtests/bench-strcpy.c (SIMPLE_STRCPY): Remove function.
4670 (generic_strcpy): New function.
4671 * benchtests/bench-strncat.c (SIMPLE_STRNCAT): Remove function.
4672 (STUPID_STRNCAT): Remove function.
4673 (generic_strncat): New function.
4674 * benchtests/bench-strncpy.c (SIMPLE_STRNCPY): Remove function.
4675 (STUPID_STRNCPY): Remove function.
4676 (generic_strncpy): New function.
4677 * benchtests/bench-strnlen.c (SIMPLE_STRNLEN): Remove function.
4678 (generic_strnlen): New function.
4679 (memchr_strnlen): New function.
4680 * benchtests/bench-strlen.c (generic_strlen): Define for WIDE.
4681 (memchr_strlen): Likewise.
4682
4683 2019-04-09 Wilco Dijkstra <wdijkstr@arm.com>
4684
4685 * benchtests/bench-strstr.c (input): Add realistic input text.
4686 (stupid_strstr): Remove function.
4687 (basic_strstr): Add function.
4688 (twoway_strstr): Add function.
4689 (do_one_test): Add result checking.
4690 (do_test): Use new input text. Remove accidental early matches.
4691 (test_main): Improve range of tests, reduce unaligned cases.
4692
4693 2019-04-09 Wilco Dijkstra <wdijkstr@arm.com>
4694
4695 * benchtests/bench-memmem.c (simple_memmem): Remove function.
4696 (basic_memmem): Add function.
4697 (twoway_memmem): Add function.
4698
4699 2019-04-09 Wilco Dijkstra <wdijkstr@arm.com>
4700
4701 * benchtests/bench-malloc-simple.c: Remove TIMING_INIT.
4702 * benchtests/bench-malloc-thread.c: Likewise.
4703 * benchtests/bench-skeleton.c: Likewise.
4704 * benchtests/bench-strtod.c: Likewise.
4705 * benchtests/bench-timing.h: Likewise.
4706
4707 2019-04-08 Florian Weimer <fweimer@redhat.com>
4708
4709 * resolv/resolv.h (RES_INSECURE1, RES_INSECURE2): Remove
4710 definitions.
4711 * resolv/res_send.c (send_dg): Always perform RES_INSECURE1 and
4712 RES_INSECURE2 security checks.
4713 * resolv/res_debug.c (p_option): Remove RES_INSECURE1 and
4714 RES_INSECURE2 handling.
4715
4716 2019-04-08 Florian Weimer <fweimer@redhat.com>
4717
4718 resolv: Remove support for RES_USE_INET6 and the inet6 option.
4719 * nscd/aicache.c (addhstaiX): Do not disable RES_USE_INET6.
4720 * nscd/nscd_gehst_r.c (__nscd_gethostbyname_r): Always use
4721 GETHOSTBYNAME.
4722 * resolv/Makefile (tests): Remove tst-res_use_inet6.
4723 (tests-internal): Update justification for tst-resolv-res_init,
4724 tst-resolv-res_init-thread.
4725 (tst-res_use_inet6): Remove target.
4726 (CFLAGS-tst-res_use_inet6.c): Do not set variable.
4727 * resolv/res_debug.c (p_option): Remove "inet6" support.
4728 * resolv/res_init.c (res_setoptions): Likewise.
4729 * resolv/res_use_inet6.h: Remove file.
4730 * resolv/resolv-internal.h (DEPRECATED_RES_USE_INET6): Remove
4731 definition.
4732 (res_use_inet6): Always return false.
4733 * resolv/resolv.h (RES_USE_INET6): Remove definition.
4734 * resolv/resolv_context.h: Adjust file comment.
4735 (struct resolv_context): Update comment on __next field.
4736 (__resolv_context_put): Update comment.
4737 * resolv/tst-res_use_inet6.c: Remove file.
4738 * resolv/tst-resolv-res_init-skeleton.c (print_resp): Remove
4739 "inet6" support.
4740 (test_cases): Adjust test case.
4741 * resolv/tst-resolv-threads.c (byname_inet6) Remove function.
4742 (thread_byname2_af_inet6): Use old byname_inet6 code.
4743 (thread_byname_inet6, thread_byname2_af_inet6): Remove functions.
4744 (gai): Remove do_inet6 argument.
4745 (thread_gai_inet, thread_gai_inet6, thread_gai_unspec): Adjust.
4746 (thread_gai_inet_inet6, thread_gai_inet6_inet6)
4747 (thread_gai_unspec_inet6): Remove functions.
4748 (do_test): Adjust thread_funcs.
4749 * sysdeps/posix/getaddrinfo.c (gethosts): Do not restore
4750 RES_USE_INET6 flag.
4751 (gaih_inet): Do not disable RES_USE_INET6 flag.
4752
4753 2019-04-05 Anton Youdkevitch <anton.youdkevitch@bell-sw.com>
4754
4755 * sysdeps/aarch64/multiarch/memcpy_thunderx2.S: Cleanup branching
4756 and remove redundant code.
4757
4758 2019-04-04 Adhemerval Zanella <adhemerval.zanella@linaro.org>
4759
4760 * sysdeps/powerpc/Makefile [$(subdir) == wcsmbs] (CFLAGS-wcsrchr.c):
4761 New rule.
4762 * sysdeps/powerpc/power6/wcsrchr.c: Remove file.
4763 * sysdeps/powerpc/powerpc32/power4/multiarch/wcsrchr-power6.c:
4764 Likewise.
4765 * sysdeps/powerpc/powerpc32/power4/multiarch/wcsrchr-power7.c:
4766 Likewise.
4767 * sysdeps/powerpc/powerpc32/power4/multiarch/wcsrchr-ppc32.c:
4768 Likewise.
4769 * sysdeps/powerpc/powerpc32/power4/multiarch/wcsrchr.c: Likewise.
4770 * sysdeps/powerpc/powerpc64/multiarch/wcsrchr-power6.c: Likewise.
4771 * sysdeps/powerpc/powerpc64/multiarch/wcsrchr-power7.c: Likewise.
4772 * sysdeps/powerpc/powerpc64/multiarch/wcsrchr-ppc64.c: Likewise.
4773 * sysdeps/powerpc/powerpc64/multiarch/wcsrchr.c: Likewise.
4774 * sysdeps/powerpc/powerpc64/power6/wcsrchr.c: Likewise.
4775 * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile
4776 [$(subdir) == wcsmbs] (sysdeps_routines): Remove wcsrchr-power6 and
4777 wcsrchr-power7.
4778 (CFLAGS-wcsrchr-power7.c, CFLAGS-wcsrchr-power6.c): Remove rule.
4779 * sysdeps/powerpc/powerpc64/multiarch/Makefile: Likewise.
4780 * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list.c:
4781 Remove wcsrchr optimizations.
4782 * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c: Likewise.
4783
4784 * wcsmbs/wcsrchr.c (WCSRCHR): Use loop_unroll.h to parametrize
4785 the loop unroll.
4786
4787 * sysdeps/powerpc/Makefile [$(subdir) == wcsmbs] (CFLAGS-wcschr.c):
4788 New rule.
4789 * sysdeps/powerpc/power6/wcschr.c: Remove file.
4790 * sysdeps/powerpc/powerpc32/power4/multiarch/wcschr-power6.c:
4791 Likewise.
4792 * sysdeps/powerpc/powerpc32/power4/multiarch/wcschr-power7.c:
4793 Likewise.
4794 * sysdeps/powerpc/powerpc32/power4/multiarch/wcschr-ppc32.c:
4795 Likewise.
4796 * sysdeps/powerpc/powerpc32/power4/multiarch/wcschr.c: Likewise.
4797 * sysdeps/powerpc/powerpc64/multiarch/wcschr-power6.c: Likewise.
4798 * sysdeps/powerpc/powerpc64/multiarch/wcschr-power7.c: Likewise.
4799 * sysdeps/powerpc/powerpc64/multiarch/wcschr-ppc64.c: Likewise.
4800 * sysdeps/powerpc/powerpc64/multiarch/wcschr.c: Likewise.
4801 * sysdeps/powerpc/powerpc64/power6/wcschr.c: Likewise.
4802 * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile
4803 [$(subdir) == wcsmbs] (sysdeps_routines): Remove wcschr-power6 and
4804 wcschr-power7.
4805 (CFLAGS-wcschr-power7.c, CFLAGS-wcschr-power6.c): Remove rule.
4806 * sysdeps/powerpc/powerpc64/multiarch/Makefile: Likewise.
4807 * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list.c:
4808 Remove wcschr optimizations.
4809 * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c: Likewise.
4810
4811 * wcsmbs/wcschr.c (WCSCHR): Use loop_unroll.h to parametrize
4812 the loop unroll.
4813
4814 * sysdeps/powerpc/Makefile [$(subdir) == wcsmbs] (CFLAGS-wcscpy.c):
4815 New rule.
4816 * sysdeps/powerpc/power6/wcscpy.c: Remove file.
4817 * sysdeps/powerpc/powerpc32/power4/multiarch/wcscpy-power6.c:
4818 Likewise.
4819 * sysdeps/powerpc/powerpc32/power4/multiarch/wcscpy-power7.c:
4820 Likewise.
4821 * sysdeps/powerpc/powerpc32/power4/multiarch/wcscpy-ppc32.c:
4822 Likewise.
4823 * sysdeps/powerpc/powerpc32/power4/multiarch/wcscpy.c: Likewise.
4824 * sysdeps/powerpc/powerpc64/multiarch/wcscpy-power6.c: Likewise.
4825 * sysdeps/powerpc/powerpc64/multiarch/wcscpy-power7.c: Likewise.
4826 * sysdeps/powerpc/powerpc64/multiarch/wcscpy-ppc64.c: Likewise.
4827 * sysdeps/powerpc/powerpc64/multiarch/wcscpy.c: Likewise.
4828 * sysdeps/powerpc/powerpc64/power6/wcscpy.c: Likewise.
4829 * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile
4830 [$(subdir) == wcsmbs] (sysdeps_routines): Remove wcscpy-power6 and
4831 wcscpy-power7.
4832 (CFLAGS-wcscpy-power7.c, CFLAGS-wcscpy-power6.c): Remove rule.
4833 * sysdeps/powerpc/powerpc64/multiarch/Makefile: Likewise.
4834 * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list.c:
4835 Remove wcscpy optimizations.
4836 * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c: Likewise.
4837
4838 * include/loop_unroll.h: New file.
4839 * wcsmbs/wcscpy (__wcscpy): Add option to use loop unrolling
4840 besides generic implementation.
4841
4842 2019-04-03 DJ Delorie <dj@redhat.com>
4843
4844 * time/tst-strftime3.c (tm_to_printed): Disable warning about
4845 snprintf truncating output.
4846
4847 2019-04-02 DJ Delorie <dj@redhat.com>
4848
4849 * time/tst-strftime3.c: Add new Japanese era tests. Fix printf
4850 warning.
4851
4852 2019-04-02 TAMUKI Shoichi <tamuki@linet.gr.jp>
4853
4854 [BZ #22964]
4855 * localedata/locales/ja_JP (LC_TIME): Add entry for the new Japanese
4856 era.
4857 * time/tst-strftime2.c (dates): Add 2019-04-30 and 2019-05-01.
4858 (mkreftable): Add rules for the new Japanese era and the new dates.
4859
4860 2019-04-02 TAMUKI Shoichi <tamuki@linet.gr.jp>
4861 Rafał Lużyński <digitalfreak@lingonborough.com>
4862
4863 * time/tst-strftime2.c (date_t): Explicitly define the type.
4864 (dates): Use natural month and year numbers to express a date.
4865 (is_before): New function to compare dates.
4866 (mkreftable): Minor improvements to simplify maintenance.
4867 (do_test): Reflect the changes in dates array.
4868
4869 [BZ #24293]
4870 * time/Makefile (LOCALES): Add zh_TW.UTF-8, cmn_TW.UTF-8,
4871 hak_TW.UTF-8, nan_TW.UTF-8, and lzh_TW.UTF-8.
4872 * time/tst-strftime2.c (locales): Likewise.
4873 (dates): Add 1910-04-01, 1911-12-31, 1912-01-01, 1913-04-01,
4874 2010-04-01, and 2011-04-01.
4875 (mkreftable): Add rules for the new locales and the new dates.
4876
4877 2019-04-01 Carlos O'Donell <carlos@redhat.com>
4878
4879 * localedata/locales/ja_JP: Add comments to era entries.
4880
4881 2019-04-01 DJ Delorie <dj@redhat.com>
4882
4883 [BZ #24394]
4884 * time/strptime_l.c (%Ey): Fix fencepost error.
4885 * time/tst-strftime3.c: New.
4886 * time/Makefile (tests): Add tst-strftime3.
4887
4888 2019-04-01 Uroš Bizjak <ubizjak@gmail.com>
4889
4890 * sysdeps/alpha/divqu.S (__divqu): Move save of $f0 and excb after
4891 conditional branch to DIVBYZERO. Fix unwind info.
4892 * sysdeps/alpha/remqu.S (__remqu): Move saves of $f0, $f1, $f2 and
4893 excb after conditional branch to $powerof2. Add missing unop
4894 instructions and .align directives and reorder instructions to
4895 match __divqu.
4896
4897 2019-04-01 Richard Henderson <rth@twiddle.net>
4898
4899 * sysdeps/unix/sysv/linux/alpha/kernel-features.h (__NR_shmat):
4900 Do not redefine.
4901 * sysdeps/unix/sysv/linux/alpha/sysdep.h (__NR_osf_shmat):
4902 Do not redefine.
4903
4904 2019-03-30 Maciej W. Rozycki <macro@wdc.com>
4905
4906 * sysdeps/unix/sysv/linux/riscv/configure.ac: Quote
4907 $libc_cv_riscv_float_abi in `test' invocation.
4908 * sysdeps/unix/sysv/linux/riscv/configure: Regenerate.
4909
4910 2019-03-29 Paul A. Clarke <pc@us.ibm.com>
4911
4912 * sysdeps/powerpc/fpu/fenv_libc.h (fegetenv_register): Replace inline
4913 asm with builtin.
4914 * sysdeps/powerpc/powerpc64/le/fpu/sfp-machine.h (FP_INIT_ROUNDMODE):
4915 Likewise.
4916 * sysdeps/powerpc/fpu/tst-setcontext-fpscr.c (_GET_DI_FPSCR): Likewise.
4917 (_GET_SI_FPSCR): Likewise.
4918 (_SET_SI_FPSCR): Likewise.
4919
4920 2019-03-26 Adhemerval Zanella <adhemerval.zanella@linaro.org>
4921
4922 * math/math.h (fpclassify, isfinite, isnormal, isnan): Use builtin for
4923 clang 2.8.
4924 (signbit): Use builtin for clang 3.3.
4925 (isinf): Use builtin for clang 3.7.
4926
4927 2019-03-25 Adhemerval Zanella <adhemerval.zanella@linaro.org>
4928
4929 * sysdeps/powerpc/fpu/s_float_bitwise.h: Remove file.
4930
4931 2019-03-25 Andreas K. Hüttel <dilfridge@gentoo.org>
4932
4933 * nss/tst-nss-files-alias-leak.c (do_test): add missing opening
4934 quote in printf.
4935
4936 2019-03-25 Mike Crowe <mac@mcrowe.com>
4937
4938 * nptl/tst-rwlock14.c (do_test): Replace duplicate calls to
4939 pthread_rwlock_timedrdlock with calls to
4940 pthread_rwlock_timedwrlock to ensure that the latter is tested
4941 too. Use new function name in diagnostic messages too.
4942
4943 * nptl/tst-sem5.c: Remove unused headers. Add <support/check.h>.
4944 (do_test) Use libsupport test macros rather than hand-coded
4945 conditionals and error messages. Ensure that sem_init returns zero
4946 rather than not -1. Use <support/test-driver.c> rather than
4947 test-skeleton.c.
4948
4949 * nptl/tst-sem13.c: Add <support/check.h>. (do_test) Use libsupport
4950 test macros rather than hand-coded conditionals and error messages.
4951 Use <support/test-driver.c> rather than test-skeleton.c.
4952
4953 2019-03-25 Joseph Myers <joseph@codesourcery.com>
4954
4955 * sysdeps/gnu/netinet/udp.h (UDP_GRO): New macro.
4956
4957 * elf/elf.h (NT_ARM_PAC_MASK): New macro.
4958 (NT_MIPS_MSA): Likewise.
4959
4960 2019-03-22 Adhemerval Zanella <adhemerval.zanella@linaro.org>
4961
4962 * benchtests/Makefile (USE_CLOCK_GETTIME) Remove.
4963 * benchtests/README: Update description.
4964 * benchtests/bench-timing.h: Default to hp-timing.
4965 * sysdeps/generic/hp-timing.h (HP_TIMING_DIFF, HP_TIMING_ACCUM_NT,
4966 HP_TIMING_PRINT): Remove.
4967 (HP_TIMING_NOW): Add generic implementation.
4968 (hp_timing_t): Change to uint64_t.
4969
4970 * benchtests/bench-timing.h: Replace HP_TIMING_AVAIL with
4971 HP_TIMING_INLINE.
4972 * nptl/descr.h: Likewise.
4973 * elf/rtld.c (RLTD_TIMING_DECLARE, RTLD_TIMING_NOW, RTLD_TIMING_DIFF,
4974 RTLD_TIMING_ACCUM_NT, RTLD_TIMING_SET): Define.
4975 (dl_start_final_info, _dl_start_final, dl_main, print_statistics):
4976 Abstract hp-timing usage with RTLD_* macros.
4977 * sysdeps/alpha/hp-timing.h (HP_TIMING_INLINE): Define iff IS_IN(rtld).
4978 (HP_TIMING_AVAIL, HP_SMALL_TIMING_AVAIL): Remove.
4979 * sysdeps/generic/hp-timing.h (HP_TIMING_AVAIL, HP_SMALL_TIMING_AVAIL,
4980 HP_TIMING_NONAVAIL): Likewise.
4981 * sysdeps/ia64/hp-timing.h (HP_TIMING_AVAIL, HP_SMALL_TIMING_AVAIL):
4982 Likewise.
4983 * sysdeps/powerpc/powerpc32/power4/hp-timing.h (HP_TIMING_AVAIL,
4984 HP_SMALL_TIMING_AVAIL): Likewise.
4985 * sysdeps/powerpc/powerpc64/hp-timing.h (HP_TIMING_AVAIL,
4986 HP_SMALL_TIMING_AVAIL): Likewise.
4987 * sysdeps/sparc/sparc32/sparcv9/hp-timing.h (HP_TIMING_AVAIL,
4988 HP_SMALL_TIMING_AVAIL): Likewise.
4989 * sysdeps/sparc/sparc64/hp-timing.h (HP_TIMING_AVAIL,
4990 HP_SMALL_TIMING_AVAIL): Likewise.
4991 * sysdeps/x86/hp-timing.h (HP_TIMING_AVAIL, HP_SMALL_TIMING_AVAIL):
4992 Likewise.
4993 * sysdeps/generic/hp-timing-common.h: Update comment with
4994 HP_TIMING_AVAIL removal.
4995
4996 * include/random-bits.h: New file.
4997 * resolv/res_mkquery.c [HP_TIMING_AVAIL] (RANDOM_BITS,
4998 (__res_context_mkquery): Remove usage hp-timing usage and replace with
4999 random_bits.
5000 * resolv/res_send.c [HP_TIMING_AVAIL] (nameserver_offset): Likewise.
5001 * sysdeps/posix/tempname.c [HP_TIMING_AVAIL] (__gen_tempname):
5002 Likewise.
5003
5004 * include/libc-internal.h (__get_clockfreq): Remove prototype.
5005 * rt/Makefile (clock-routines): Remove get_clockfreq.
5006 * rt/get_clockfreq.c: Remove file.
5007 * sysdeps/unix/sysv/linux/i386/get_clockfreq.c: Likewise.
5008 * sysdeps/unix/sysv/linux/ia64/get_clockfreq.c: Likewise.
5009 * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c: Likewise.
5010 * sysdeps/unix/sysv/linux/powerpc/get_clockfreq.c: Move code to ...
5011 * sysdeps/unix/sysv/linux/powerpc/get_timebase_freq.c: ... here.
5012
5013 * sysdeps/unix/sysv/linux/ia64/has_cpuclock.c: Remove file.
5014 * sysdeps/unix/sysv/linux/ia64/sysconf.c: Likewise.
5015 * sysdeps/unix/sysv/linux/sysconf.c (has_cpuclock): Remove function.
5016 (__sysconf): Assume kernel support for _SC_MONOTONIC_CLOCK,
5017 _SC_CPUTIME, and _SC_THREAD_CPUTIME.
5018
5019 * nptl/Makefile (libpthread-routines): Remove pthread_clock_gettime and
5020 pthread_clock_settime.
5021 * nptl/pthreadP.h (__find_thread_by_id): Remove prototype.
5022 * elf/dl-support.c [!HP_TIMING_NOAVAIL] (_dl_cpuclock_offset): Remove.
5023 (_dl_non_dynamic_init): Remove _dl_cpuclock_offset setting.
5024 * elf/rtld.c (_dl_start_final): Likewise.
5025 * nptl/allocatestack.c (__find_thread_by_id): Remove function.
5026 * sysdeps/generic/ldsodefs.h [!HP_TIMING_NOAVAIL] (_dl_cpuclock_offset):
5027 Remove.
5028 * sysdeps/mach/hurd/dl-sysdep.c [!HP_TIMING_NOAVAIL]
5029 (_dl_cpuclock_offset): Remove.
5030 * nptl/descr.h (struct pthread): Rename cpuclock_offset to
5031 cpuclock_offset_ununsed.
5032 * nptl/nptl-init.c (__pthread_initialize_minimal_internal): Remove
5033 cpuclock_offset set.
5034 * nptl/pthread_create.c (START_THREAD_DEFN): Likewise.
5035 * sysdeps/nptl/fork.c (__libc_fork): Likewise.
5036 * nptl/pthread_clock_gettime.c: Remove file.
5037 * nptl/pthread_clock_settime.c: Likewise.
5038 * sysdeps/unix/clock_gettime.c (hp_timing_gettime): Remove function.
5039 [HP_TIMING_AVAIL] (realtime_gettime): Remove CLOCK_THREAD_CPUTIME_ID
5040 and CLOCK_PROCESS_CPUTIME_ID support.
5041 * sysdeps/unix/clock_settime.c (hp_timing_gettime): Likewise.
5042 [HP_TIMING_AVAIL] (realtime_gettime): Likewise.
5043 * sysdeps/posix/clock_getres.c (hp_timing_getres): Likewise.
5044 [HP_TIMING_AVAIL] (__clock_getres): Likewise.
5045 * sysdeps/unix/clock_nanosleep.c (CPUCLOCK_P, INVALID_CLOCK_P):
5046 Likewise.
5047 (__clock_nanosleep): Remove CPUCLOCK_P and INVALID_CLOCK_P usage.
5048
5049 2019-03-22 Stefan Liebler <stli@linux.ibm.com>
5050
5051 * sysdeps/s390/Makefile (sysdep_routines): Add memmem-arch13.
5052 * sysdeps/s390/ifunc-memmem.h (HAVE_MEMMEM_ARCH13, MEMMEM_ARCH13,
5053 MEMMEM_Z13_ONLY_USED_AS_FALLBACK, HAVE_MEMMEM_IFUNC_AND_ARCH13_SUPPORT):
5054 New defines.
5055 * sysdeps/s390/memmem-arch13.S: New file.
5056 * sysdeps/s390/memmem-vx.c: Omit GI symbol for z13 memmem ifunc variant
5057 if it is only used as fallback.
5058 * sysdeps/s390/memmem.c (memmem): Add arch13 variant in ifunc selector.
5059 * sysdeps/s390/multiarch/ifunc-impl-list.c
5060 (__libc_ifunc_impl_list): Add ifunc variant for arch13 memmem.
5061
5062 2019-03-22 Stefan Liebler <stli@linux.ibm.com>
5063
5064 * sysdeps/s390/Makefile (sysdep_routines): Add strstr-arch13.
5065 * sysdeps/s390/ifunc-strstr.h (HAVE_STRSTR_ARCH13, STRSTR_ARCH13,
5066 STRSTR_Z13_ONLY_USED_AS_FALLBACK, HAVE_STRSTR_IFUNC_AND_ARCH13_SUPPORT):
5067 New defines.
5068 * sysdeps/s390/multiarch/ifunc-impl-list.c
5069 (__libc_ifunc_impl_list): Add ifunc variant for arch13 strstr.
5070 * sysdeps/s390/strstr-arch13.S: New file.
5071 * sysdeps/s390/strstr-vx.c: Omit GI symbol for z13 strstr ifunc variant
5072 if it is only used as fallback.
5073 * sysdeps/s390/strstr.c (strstr): Add arch13 variant in ifunc selector.
5074
5075 2019-03-22 Stefan Liebler <stli@linux.ibm.com>
5076
5077 * sysdeps/s390/ifunc-memcpy.h (HAVE_MEMMOVE_ARCH13, MEMMOVE_ARCH13
5078 HAVE_MEMMOVE_IFUNC_AND_ARCH13_SUPPORT): New defines.
5079 * sysdeps/s390/memcpy-z900.S: Add arch13 memmove implementation.
5080 * sysdeps/s390/memmove.c (memmove): Add arch13 variant in
5081 ifunc selector.
5082 * sysdeps/s390/multiarch/ifunc-impl-list.c
5083 (__libc_ifunc_impl_list): Add ifunc variant for arch13 memmove.
5084 * sysdeps/s390/multiarch/ifunc-resolve.h (S390_STFLE_BITS_ARCH13_MIE3,
5085 S390_IS_ARCH13_MIE3): New defines.
5086
5087 2019-03-22 Stefan Liebler <stli@linux.ibm.com>
5088
5089 * config.h.in (HAVE_S390_MIN_ARCH13_ZARCH_ASM_SUPPORT,
5090 HAVE_S390_ARCH13_ASM_SUPPORT): New undefine.
5091 * sysdeps/s390/configure.ac: Add checks for arch13 support.
5092 * sysdeps/s390/configure: Regenerated.
5093
5094 2019-03-22 Stefan Liebler <stli@linux.ibm.com>
5095
5096 * sysdeps/s390/dl-procinfo.c (_dl_s390_cap_flags):
5097 Add vxe2, vxp, dflt, sort flags.
5098 * sysdeps/s390/dl-procinfo.h: Add HWCAP_S390_VXRS_EXT2,
5099 HWCAP_S390_VXRS_PDE, HWCAP_S390_SORT, HWCAP_S390_DFLT
5100 capabilities.
5101 (HWCAP_IMPORTANT): Add HWCAP_S390_VXRS_EXT2.
5102 * sysdeps/unix/sysv/linux/s390/bits/hwcap.h
5103 (HWCAP_S390_VXRS_EXT2, HWCAP_S390_VXRS_PDE, HWCAP_S390_SORT,
5104 HWCAP_S390_DFLT): Define.
5105
5106 2019-03-21 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
5107
5108 [BZ #24372]
5109 * iconv/iconvconfig.c (write_output): Add parentheses to get rid
5110 of compiler warning.
5111 * locale/programs/ld-collate.c (collate_output): Likewise.
5112
5113 2019-03-21 DJ Delorie <dj@redhat.com>
5114
5115 [BZ #24372]
5116 * iconv/iconvconfig.c (write_output): Replace floating point math
5117 with integer math to avoid imprecise results.
5118 * locale/programs/ld-collate.c (collate_output): Likewise.
5119
5120 2019-03-21 Stefan Liebler <stli@linux.ibm.com>
5121
5122 * sysdeps/s390/dl-procinfo.h (HWCAP_IMPORTANT):
5123 Add HWCAP_S390_VX and HWCAP_S390_VXE.
5124
5125 2019-03-20 mansayk <6688000@gmail.com>
5126
5127 [BZ #24296]
5128 * localedata/locales/tt_RU (day): Update from CLDR-34, fix errors.
5129 (abday): Likewise, but remove the trailing dots.
5130
5131 2019-03-19 Joseph Myers <joseph@codesourcery.com>
5132
5133 * sysdeps/unix/sysv/linux/aarch64/bits/hwcap.h (HWCAP_SB): New
5134 macro.
5135 (HWCAP_PACA): Likewise.
5136 (HWCAP_PACG): Likewise.
5137 * sysdeps/unix/sysv/linux/aarch64/dl-procinfo.c (_DL_HWCAP_COUNT):
5138 Increase to 32.
5139 (_dl_aarch64_cap_flags): Add new entries for new HWCAPs.
5140
5141 2019-03-16 Samuel Thibault <samuel.thibault@ens-lyon.org>
5142
5143 * hurd/hurd/signal.h (_hurd_critical_section_lock): Document how EINTR
5144 should be handled.
5145
5146 2019-03-15 Joseph Myers <joseph@codesourcery.com>
5147
5148 * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
5149 version to 5.0.
5150 (old_getpagesize): New syscall.
5151
5152 2019-03-15 Felix Yan <felixonmars@archlinux.org>
5153
5154 [BZ #24293]
5155 * localedata/locales/zh_TW (era): Add, support Minguo calendar.
5156 * localedata/locales/cmn_TW (era): Likewise.
5157 * localedata/locales/hak_TW (era): Likewise.
5158 * localedata/locales/lzh_TW (era): Likewise.
5159 * localedata/locales/nan_TW (era): Likewise.
5160
5161 2019-03-14 Adam Maris <amaris@redhat.com>
5162
5163 * malloc/malloc.c (_int_malloc): Check for large bin list
5164 corruption when inserting unsorted chunk.
5165
5166 2019-03-14 Florian Weimer <fweimer@redhat.com>
5167
5168 Remove obsolete, never-implemented XSI STREAMS declarations.
5169 * manual/terminal.texi (Allocation): Remove portability note and
5170 adjust example.
5171 * sysdeps/posix/sysconf.c (__sysconf): Always return -1 for
5172 _SC_STREAMS.
5173 * sysdeps/unix/sysv/linux/syscalls.list (getpmsg, putpmsg): Remove.
5174 * sysdeps/unix/inet/Subdirs (streams): Remove.
5175 * conform/Makefile (conformtest-headers-XPG42): Remove stropts.h.
5176 (conformtest-headers-UNIX98): Likewise.
5177 (conformtest-headers-XOPEN2K): Likewise.
5178 (conformtest-headers-POSIX2008): Likewise.
5179 * posix/compat-streams.c: New file.
5180 * posix/Makefile (routines): Add it.
5181 * posix/Versions (GLIBC_2.1): Add fattach, fdetach, getmsg,
5182 getpmsg, isastream, putmsg, putpmsg.
5183 (GLIBC_2.30): New section.
5184 * bits/stropts.h: Remove file.
5185 * bits/xtitypes.h: Likewise.
5186 * conform/data/stropts.h-data: Likewise.
5187 * include/stropts.h: Likewise.
5188 * include/sys/stropts.h: Likewise.
5189 * include/xtitypes.h: Likewise.
5190 * streams/Makefile: Likewise.
5191 * streams/fattach.c: Likewise.
5192 * streams/fdetach.c: Likewise.
5193 * streams/getmsg.c: Likewise.
5194 * streams/getpmsg.c: Likewise.
5195 * streams/isastream.c: Likewise.
5196 * streams/putmsg.c: Likewise.
5197 * streams/putpmsg.c: Likewise.
5198 * streams/stropts.h: Likewise.
5199 * streams/sys/stropts.h: Likewise.
5200 * sysdeps/ia64/bits/xtitypes.h: Likewise.
5201 * sysdeps/s390/bits/xtitypes.h: Likewise.
5202 * sysdeps/unix/sysv/linux/i386/getmsg.c: Likewise.
5203 * sysdeps/unix/sysv/linux/i386/putmsg.c: Likewise.
5204 * sysdeps/unix/sysv/linux/m68k/getmsg.c: Likewise.
5205 * sysdeps/unix/sysv/linux/m68k/putmsg.c: Likewise.
5206 * sysdeps/unix/sysv/linux/mips/getmsg.c: Likewise.
5207 * sysdeps/unix/sysv/linux/mips/putmsg.c: Likewise.
5208 * sysdeps/unix/sysv/linux/powerpc/getmsg.c: Likewise.
5209 * sysdeps/unix/sysv/linux/powerpc/putmsg.c: Likewise.
5210 * sysdeps/x86/bits/xtitypes.h: Likewise.
5211
5212 2019-03-14 Florian Weimer <fweimer@redhat.com>
5213
5214 * nss/tst-nss-files-alias-truncated.c (do_test): Load
5215 libnss_files.
5216 * nss/Makefile (tst-nss-files-alias-truncated): Link with -ldl,
5217 but not with libnss_files.
5218 (tst-nss-files-alias-truncated.out): Depend on libnss_files.
5219
5220 2019-03-14 Zack Weinberg <zackw@panix.com>
5221
5222 * scripts/check-obsolete-constructs.py (HeaderChecker.check):
5223 Specify encoding="utf-8" when opening headers to check.
5224
5225 2019-03-13 Joseph Myers <joseph@codesourcery.com>
5226
5227 * scripts/build-many-glibcs.py (Context.checkout): Default Linux
5228 version to 5.0.
5229 (Context.checkout_tar): Handle variable major version for Linux
5230 kernel.
5231
5232 2019-03-13 Florian Weimer <fweimer@redhat.com>
5233
5234 [BZ #24047]
5235 * sysdeps/mach/hurd/res_enable_icmp.c: New file.
5236
5237 2019-03-13 Zack Weinberg <zackw@panix.com>
5238
5239 * sysdeps/generic/inttypes.h, sysdeps/generic/stdint.h:
5240 Move to stdlib.
5241 * include/inttypes.h: Adjust to match.
5242 * include/stdint.h: New wrapper.
5243
5244 2019-03-13 Zack Weinberg <zackw@panix.com>
5245
5246 * scripts/check-obsolete-constructs.py: New test script.
5247 * scripts/check-installed-headers.sh: Remove tests for
5248 obsolete typedefs, superseded by check-obsolete-constructs.py.
5249 * Rules: Run scripts/check-obsolete-constructs.py over $(headers)
5250 as a special test. Update commentary.
5251 * posix/bits/types.h (__SQUAD_TYPE, __S64_TYPE): Define as __int64_t.
5252 (__UQUAD_TYPE, __U64_TYPE): Define as __uint64_t.
5253 Update commentary.
5254 * posix/sys/types.h (__u_intN_t): Remove.
5255 (u_int8_t): Typedef using __uint8_t.
5256 (u_int16_t): Typedef using __uint16_t.
5257 (u_int32_t): Typedef using __uint32_t.
5258 (u_int64_t): Typedef using __uint64_t.
5259
5260 2019-03-13 Stefan Liebler <stli@linux.ibm.com>
5261
5262 * elf/dl-sysdep.c (_dl_show_auxv): Remove condition and always
5263 call _dl_procinfo.
5264 * sysdeps/unix/sysv/linux/s390/dl-procinfo.h (_dl_procinfo):
5265 Ignore types other than AT_HWCAP.
5266 * sysdeps/sparc/dl-procinfo.h (_dl_procinfo): Likewise.
5267 * sysdeps/unix/sysv/linux/i386/dl-procinfo.h (_dl_procinfo):
5268 Likewise.
5269 * sysdeps/powerpc/dl-procinfo.h (_dl_procinfo): Adjust comment
5270 in the case of falling back to generic output mechanism.
5271 * sysdeps/unix/sysv/linux/arm/dl-procinfo.h (_dl_procinfo):
5272 Likewise.
5273
5274 2019-03-12 Florian Weimer <fweimer@redhat.com>
5275
5276 * elf/elf.h (DF_1_KMOD, DF_1_WEAKFILTER, DF_1_NOCOMMON): Define.
5277
5278 2019-03-12 Florian Weimer <fweimer@redhat.com>
5279
5280 [BZ #24047]
5281 resolv: Enable full ICMP errors for UDP DNS sockets
5282 * resolv/res_enable_icmp.c: New file.
5283 * resolv/Makefile (libresolv-routines): Add res_enable_icmp.
5284 * resolv/resolv-internal.h (__res_enable_icmp): Declare.
5285 * resolv/res_send.c (reopen): Call __res_enable_icmp on new
5286 socket.
5287
5288 2019-03-11 Mao Han <han_mao@c-sky.com>
5289
5290 * elf/elf.h (EF_CSKY_ABIMASK, EF_CSKY_OTHER, EF_CSKY_PROCESSOR)
5291 (EF_CSKY_ABIV1, EF_CSKY_ABIV2, SHT_CSKY_ATTRIBUTES): New defines.
5292
5293 2019-03-11 Mao Han <han_mao@c-sky.com>
5294
5295 * sysdeps/csky/abiv2/start.S: Mark lr as undefined.
5296 * sysdeps/unix/sysv/linux/csky/abiv2/clone.S: Likewise.
5297 * sysdeps/unix/sysv/linux/csky/abiv2/setcontext.S: Likewise.
5298
5299 2019-03-11 Mao Han <han_mao@c-sky.com>
5300
5301 * sysdeps/unix/sysv/linux/csky/sys/procfs.h: Use linux definition
5302 directly.
5303 * sysdeps/unix/sysv/linux/csky/sys/user.h: Remove user_regs
5304 definition.
5305
5306 2019-03-11 Mao Han <han_mao@c-sky.com>
5307
5308 * sysdeps/unix/sysv/linux/csky/register-dump.h: Adjust offset change.
5309 * sysdeps/unix/sysv/linux/csky/sys/ucontext.h: Remove __mask field
5310 in mcontext_t
5311
5312 2019-03-08 Mike FABIAN <mfabian@redhat.com>
5313
5314 [BZ #24307]
5315 * localedata/unicode-gen/Makefile (UNICODE_VERSION): Set to 12.0.0.
5316 * localedata/unicode-gen/DerivedCoreProperties.txt: Update to
5317 Unicode 12.0.0.
5318 * localedata/unicode-gen/EastAsianWidth.txt: Likewise.
5319 * localedata/unicode-gen/PropList.txt: Likewise.
5320 * localedata/unicode-gen/UnicodeData.txt: Likewise.
5321 * localedata/unicode-gen/ctype_compatibility_test_cases.py: U+108D
5322 became "Alphabetic" in Unicode 12.0.0. Adapt test case.
5323 * localedata/charmaps/UTF-8: Regenerate.
5324 * localedata/locales/i18n_ctype: Likewise.
5325 * localedata/locales/tr_TR: Likewise.
5326 * localedata/locales/translit_circle: Likewise.
5327 * localedata/locales/translit_cjk_compat: Likewise.
5328 * localedata/locales/translit_combining: Likewise.
5329 * localedata/locales/translit_compat: Likewise.
5330 * localedata/locales/translit_font: Likewise.
5331 * localedata/locales/translit_fraction: Likewise.
5332
5333 2019-03-07 Joseph Myers <joseph@codesourcery.com>
5334
5335 * stdio-common/vfscanf-internal.c (ARG): Break lines before rather
5336 than after operators.
5337 * sysdeps/mach/hurd/setitimer.c (timer_thread): Likewise.
5338 (setitimer_locked): Likewise.
5339 * sysdeps/mach/hurd/sigaction.c (__sigaction): Likewise.
5340 * sysdeps/mach/hurd/sigaltstack.c (__sigaltstack): Likewise.
5341 * sysdeps/mach/pagecopy.h (PAGE_COPY_FWD): Likewise.
5342 * sysdeps/mach/thread_state.h (machine_get_basic_state): Likewise.
5343 * sysdeps/powerpc/powerpc64/tst-ucontext-ppc64-vscr.c
5344 (PPC_CPU_SUPPORTED): Likewise.
5345 * sysdeps/unix/sysv/linux/alpha/a.out.h (N_TXTOFF): Likewise.
5346 * sysdeps/unix/sysv/linux/generic/wordsize-32/overflow.h
5347 (stat_overflow): Likewise.
5348 (statfs_overflow): Likewise.
5349 * sysdeps/unix/sysv/linux/tst-personality.c (do_test): Likewise.
5350 * sysdeps/unix/sysv/linux/tst-ttyname.c (eq_ttyname): Likewise.
5351 (eq_ttyname_r): Likewise.
5352 (run_chroot_tests): Likewise.
5353
5354 2019-03-07 Florian Weimer <fweimer@redhat.com>
5355
5356 * scripts/check-wrapper-headers.py (check_headers): Adjust Fortran
5357 header check.
5358
5359 2019-03-07 Martin Liska <mliska@suse.cz>
5360
5361 * math/Makefile: Change location where math-vector-fortran.h is
5362 installed.
5363 * math/finclude/math-vector-fortran.h: Move from bits/math-vector-fortran.h.
5364 * sysdeps/x86/fpu/finclude/math-vector-fortran.h: Move
5365 from sysdeps/x86/fpu/bits/math-vector-fortran.h.
5366 * scripts/check-installed-headers.sh: Skip Fortran header files.
5367 * scripts/check-wrapper-headers.py: Likewise.
5368
5369 2019-03-05 Adhemerval Zanella <adhemerval.zanella@linaro.org>
5370
5371 * nptl/nptl-init.c (__have_futex_clock_realtime,
5372 __have_futex_clock_realtime): Remove definition.
5373 (__pthread_initialize_minimal_internal): Remove FUTEX_CLOCK_REALTIME
5374 check test for !__ASSUME_FUTEX_CLOCK_REALTIME.
5375 * nptl/pthread_mutex_timedlock.c (__pthread_mutex_timedlock): Assume
5376 __ASSUME_FUTEX_CLOCK_REALTIME support.
5377 * sysdeps/unix/sysv/linux/i386/lowlevellock.S: Likewise.
5378 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.S: Likewise.
5379 * sysdeps/unix/sysv/linux/kernel-features.h
5380 (__ASSUME_FUTEX_CLOCK_REALTIME): Remove.
5381 * sysdeps/nptl/lowlevellock-futex.h (lll_futex_timed_wait_bitset):
5382 Adjust comment.
5383
5384 2019-03-05 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
5385
5386 * sysdeps/powerpc/powerpc64/power6/wcscpy.c (WCSCPY): Define to
5387 __wcscpy, then use libc_hidden_def and weak_alias to bind it to
5388 __GI___wcscpy and wcscpy.
5389
5390 2019-03-04 Florian Weimer <fweimer@redhat.com>
5391
5392 * sysdeps/generic/ldsodefs.h (_dl_sysdep_open_zero_fill): Remove
5393 declaration.
5394 * elf/dl-load.c (_dl_map_object_from_fd): Assume MAP_ANON is
5395 defined.
5396
5397 2019-03-04 Stefan Liebler <stli@linux.ibm.com>
5398
5399 * sysdeps/s390/s390-64/sysdep.h (ENTRY): Use alignment of 16byte.
5400 * sysdeps/s390/s390-32/sysdep.h: Likewise.
5401
5402 2019-03-02 TAMUKI Shoichi <tamuki@linet.gr.jp>
5403
5404 [BZ #24162]
5405 * localedata/locales/ja_JP (LC_TIME): Change the offset for Taisho
5406 gan-nen from 2 to 1. Problem reported by Morimitsu, Junji.
5407
5408 2019-03-01 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
5409
5410 * misc/tst-ldbl-error.c (do_one_test): Adapt for reuse by nldbl
5411 tests.
5412 (do_test): Likewise.
5413 * misc/tst-ldbl-warn.c (do_one_test): Likewise.
5414 (do_test_call_varg): Likewise.
5415 (do_test_call_rarg): Likewise.
5416 * sysdeps/ieee754/ldbl-opt/Makefile
5417 [subdir == misc] (tests-internal): Add tst-nldbl-warn,
5418 tst-nldbl-error.
5419 ($(objpfx)tst-nldbl-warn.c): New rule.
5420 ($(objpfx)tst-nldbl-error.c): Likewise.
5421 (CFLAGS-tst-nldbl-warn.c, CFLAGS-tst-nldbl-error.c):
5422 New variables.
5423
5424 2019-03-01 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
5425
5426 [BZ #23984]
5427 * include/bits/error-ldbl.h: New file.
5428 * include/error.h: Include stdarg.h. Declare internal functions
5429 __error_internal and __error_at_line_internal.
5430 * misc/Makefile (headers): Add bits/error-ldbl.h.
5431 * misc/bits/error-ldbl.h: New file.
5432 * misc/error.h [__LDBL_COMPAT]: Include bits/error-ldbl.h and
5433 avoid the inclusion of bits/error.h.
5434 * sysdeps/ieee754/ldbl-opt/Versions (libc): Add __nldbl_error,
5435 and __nldbl_error_at_line.
5436 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c: Include error.h.
5437 (__nldbl_error, __ndlbl_error_at_line): New functions.
5438 * sysdeps/ieee754/ldbl-opt/nldbl-compat.h: Include error.h.
5439 Redirect error and error_at_line.
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 [BZ #23984]
5456 * include/bits/err-ldbl.h: New file.
5457 * include/err.h: Add prototypes for the internal functions:
5458 __vwarnx_internal and __vwarn_internal.
5459 * misc/Makefile (headers): Add bits/err-ldbl.h.
5460 * misc/bits/err-ldbl.h: New file.
5461 * misc/err.h: Include bits/err-ldbl.h when __LDBL_COMPAT is
5462 defined, i.e.: when -mlong-double-64 is in use.
5463 * sysdeps/ieee754/ldbl-opt/Versions (libc): Add __nldbl_warn,
5464 __nldbl_vwarn, __nldbl_warnx, __nldbl_vwarnx, __nldbl_err,
5465 __nldbl_verr, __nldbl_errx, and __nldbl_verrx.
5466 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c: Include err.h.
5467 (VA_CALL): New macro.
5468 (__nldbl_vwarn, __nldbl_vwarnx, __nldbl_warn, __nldbl_warnx)
5469 (__nldbl_verr, __nldbl_verrx, __nldbl_err, __nldbl_errx): New
5470 functions.
5471 * sysdeps/ieee754/ldbl-opt/nldbl-compat.h: Include err.h and
5472 declare prototypes for the new functions.
5473 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Update.
5474 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
5475 Likewise.
5476 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
5477 Likewise.
5478 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist:
5479 Likewise.
5480 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist:
5481 Likewise.
5482 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
5483 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
5484 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
5485
5486 2019-03-01 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
5487
5488 * sysdeps/ieee754/ldbl-opt/Makefile
5489 [subdir == argp] (tests-internal): Add tst-nldbl-argp.
5490 [subdir == argp] ($(objpfx)tst-nldbl-argp.c): New rule.
5491 [subdir == argp] (CFLAGS-tst-nldbl-argp.c): New variable.
5492
5493 2019-03-01 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
5494
5495 [BZ #23983]
5496 * argp/Makefile (headers): Add bits/argp-ldbl.h.
5497 * argp/argp.h [defined __LDBL_COMPAT]: Include bits/argp-ldbl.h.
5498 * argp/bits/argp-ldbl.h: New file.
5499 * include/argp.h: Include stdarg.h. Add prototypes for internal
5500 functions: __argp_error_internal and __argp_failure_internal.
5501 * include/bits/argp-ldbl.h: New file.
5502 * sysdeps/ieee754/ldbl-opt/Versions (libc): Add
5503 __nldbl_argp_error and __nldbl_argp_failure.
5504 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c: Include argp.h.
5505 (__nldbl_argp_error, __nldbl_argp_failure): New functions.
5506 * sysdeps/ieee754/ldbl-opt/nldbl-compat.h: Include argp.h.
5507 Redirect argp_error and argp_failure calls.
5508 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Update.
5509 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
5510 Likewise.
5511 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
5512 Likewise.
5513 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist:
5514 Likewise.
5515 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist:
5516 Likewise.
5517 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
5518 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
5519 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
5520
5521 2019-03-01 Florian Weimer <fweimer@redhat.com>
5522
5523 [BZ #20419]
5524 * elf/tst-big-note-lib.S: Create a syntactically valid note.
5525 * elf/Makefile (tst-big-note-lib.so): Do not link with startup
5526 code, to avoid creating an ABI tag note.
5527 (modules-names-nobuild): Add tst-big-note-lib.
5528
5529 2019-03-01 Stefan Liebler <stli@linux.ibm.com>
5530
5531 * sysdeps/s390/wcscpy-vx.S: Add strong aliases to
5532 __wcscpy, __GI___wcscpy and weak alias to wcscpy.
5533
5534 2019-03-01 Florian Weimer <fweimer@redhat.com>
5535
5536 [BZ #20271]
5537 * sysdeps/unix/sysv/linux/netlink_assert_response.c
5538 (__netlink_assert_response): Add additional missing newlines.
5539
5540 2019-02-28 Joseph Myers <joseph@codesourcery.com>
5541
5542 * sysdeps/powerpc/powerpc32/dl-machine.c
5543 (__elf_machine_fixup_plt): Use space before '('.
5544 (__process_machine_rela): Likewise.
5545 * sysdeps/powerpc/powerpc32/register-dump.h (register_dump):
5546 Likewise.
5547 * sysdeps/powerpc/powerpc64/le/fpu/sfp-machine.h (TI_BITS):
5548 Likewise.
5549 * sysdeps/powerpc/powerpc64/register-dump.h (register_dump):
5550 Likewise.
5551 * sysdeps/powerpc/test-arith.c (union_t): Likewise.
5552 (pattern): Likewise.
5553 (delta): Likewise.
5554 (check_result): Likewise.
5555 (check_excepts): Likewise.
5556 (check_op): Likewise.
5557 (fail_xr): Likewise.
5558 * sysdeps/unix/alpha/sysdep.h (syscall_promote): Likewise.
5559 * sysdeps/unix/sysv/linux/alpha/a.out.h (AOUTHSZ): Likewise.
5560 (SCNHSZ): Likewise.
5561 * sysdeps/unix/sysv/linux/hppa/makecontext.c (FRAME_SIZE_BYTES):
5562 Likewise.
5563 (ARGS): Likewise.
5564 (__makecontext): Likewise.
5565 * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h (ucontext_t):
5566 Likewise.
5567
5568 2019-02-28 Florian Weimer <fweimer@redhat.com>
5569
5570 [BZ #23937]
5571 elf: Add test with a local IFUNC resolver.
5572 * elf/ifuncmain9.c: New file.
5573 * elf/ifuncmain9pic.c: Likewise.
5574 * elf/ifuncmain9picstatic.c: Likewise.
5575 * elf/ifuncmain9pie.c: Likewise.
5576 * elf/ifuncmain9static.c: Likewise.
5577 * elf/Makefile [multi-arch] (tests-ifuncstatic): Add
5578 ifuncmain9static, ifuncmain9picstatic.
5579 * elf/Makefile [multi-arch && build-shared] (tests-internal):
5580 Add ifuncmain9, ifuncmain9pic.
5581 * elf/Makefile [multi-arch && build-shared && have-fpie]
5582 (ifunc-pie-tests): Add ifuncmain9pie.
5583 (CFLAGS-ifuncmain9pic.c): Add $(pic-ccflag).
5584 (CFLAGS-ifuncmain9picstatic.c): Likewise.
5585 (CFLAGS-ifuncmain9pie.c): Add $(pie-ccflag).
5586
5587 2019-02-27 H.J. Lu <hongjiu.lu@intel.com>
5588
5589 * configure.ac (have-ifunc): New LIBC_CONFIG_VAR.
5590 * configure: Regenerated.
5591 * elf/Makefile: Run IFUNC tests if binutils supports IFUNC.
5592
5593 2019-02-27 Adhemerval Zanella <adhemerval.zanella@linaro.org>
5594
5595 * sysdeps/powerpc/powerpc32/power4/multiarch/wcscpy.c: Define ifunc
5596 symbol as __wcspcy instead of wcscpy.
5597
5598 2019-02-27 Samuel Thibault <samuel.thibault@ens-lyon.org>
5599
5600 * include/stdio.h (__renameat2): New hidden prototype.
5601 * stdio-common/renameat2.c (__renameat2): Add hidden definition.
5602 * sysdeps/mach/hurd/renameat.c (__renameat): Move implementation to...
5603 * sysdeps/mach/hurd/renameat2.c (__renameat2): ... new function.
5604 * sysdeps/unix/sysv/linux/renameat2.c (__renameat2): Add hidden definition.
5605
5606 2019-02-27 Joseph Myers <joseph@codesourcery.com>
5607
5608 * hurd/hurdinit.c (_hurd_init): Use braces around empty body of an
5609 if statement.
5610
5611 * benchtests/bench-strcpy.c (do_test): Use space before '('.
5612 * benchtests/bench-string.h (cmdline_process_function): Likewise.
5613 * benchtests/bench-strlen.c (do_test): Likewise.
5614 (test_main): Likewise.
5615 * catgets/gencat.c (read_old): Likewise.
5616 * elf/cache.c (load_aux_cache): Likewise.
5617 * iconvdata/bug-iconv8.c (do_test): Likewise.
5618 * math/test-tgmath-ret.c (do_test): Likewise.
5619 * nis/nis_call.c (rec_dirsearch): Likewise.
5620 * nis/nis_findserv.c (__nis_findfastest_with_timeout): Likewise.
5621 * nptl/tst-audit-threads.c (do_test): Likewise.
5622 * nptl/tst-cancel4-common.h (set_socket_buffer): Likewise.
5623 * nss/nss_test1.c (init): Likewise.
5624 * nss/test-netdb.c (test_hosts): Likewise.
5625 * posix/execvpe.c (maybe_script_execute): Likewise.
5626 * stdio-common/tst-fmemopen4.c (do_test): Likewise.
5627 * stdio-common/tst-printf.c (do_test): Likewise.
5628 * stdio-common/vfscanf-internal.c (__vfscanf_internal): Likewise.
5629 * stdlib/fmtmsg.c (NKEYWORDS): Likewise.
5630 * stdlib/qsort.c (STACK_SIZE): Likewise.
5631 * stdlib/test-canon.c (do_test): Likewise.
5632 * stdlib/tst-swapcontext1.c (do_test): Likewise.
5633 * string/memcmp.c (OPSIZ): Likewise.
5634 * string/test-strcpy.c (do_test): Likewise.
5635 (do_random_tests): Likewise.
5636 * string/test-strlen.c (do_test): Likewise.
5637 (test_main): Likewise.
5638 * string/test-strrchr.c (do_test): Likewise.
5639 (do_random_tests): Likewise.
5640 * string/tester.c (test_memrchr): Likewise.
5641 (test_memchr): Likewise.
5642 * sysdeps/generic/memcopy.h (OPSIZ): Likewise.
5643 * sysdeps/generic/unwind-dw2.c (execute_stack_op): Likewise.
5644 * sysdeps/generic/unwind-pe.h (read_sleb128): Likewise.
5645 (read_encoded_value_with_base): Likewise.
5646 * sysdeps/hppa/dl-machine.h (elf_machine_runtime_setup): Likewise.
5647 * sysdeps/hppa/fpu/feupdateenv.c (__feupdateenv): Likewise.
5648 * sysdeps/ia64/fpu/sfp-machine.h (TI_BITS): Likewise.
5649 * sysdeps/mach/hurd/spawni.c (__spawni): Likewise.
5650 * sysdeps/posix/spawni.c (maybe_script_execute): Likewise.
5651 * sysdeps/powerpc/fpu/tst-setcontext-fpscr.c (query_auxv):
5652 Likewise.
5653 * sysdeps/unix/sysv/linux/aarch64/bits/procfs.h (ELF_NGREG):
5654 Likewise.
5655 * sysdeps/unix/sysv/linux/arm/bits/procfs.h (ELF_NGREG): Likewise.
5656 * sysdeps/unix/sysv/linux/arm/ioperm.c (init_iosys): Likewise.
5657 * sysdeps/unix/sysv/linux/csky/bits/procfs.h (ELF_NGREG):
5658 Likewise.
5659 * sysdeps/unix/sysv/linux/m68k/bits/procfs.h (ELF_NGREG):
5660 Likewise.
5661 * sysdeps/unix/sysv/linux/nios2/bits/procfs.h (ELF_NGREG):
5662 Likewise.
5663 * sysdeps/unix/sysv/linux/spawni.c (maybe_script_execute):
5664 Likewise.
5665 * sysdeps/unix/sysv/linux/x86/bits/procfs.h (ELF_NGREG): Likewise.
5666 * sysdeps/unix/sysv/linux/x86/bits/sigcontext.h
5667 (FP_XSTATE_MAGIC2_SIZE): Likewise.
5668 * sysdeps/x86/fpu/sfp-machine.h (TI_BITS): Likewise.
5669 * time/test_time.c (main): Likewise.
5670
5671 2019-02-27 Adhemerval Zanella <adhemerval.zanella@linaro.org>
5672
5673 * wcsmbs/wcsnlen.c (__wcsnlen): Rewrite using wmemchr.
5674
5675 * wcsmbs/wcsncpy.c (__wcsncpy): Rewrite using wcsnlen, wmemset, and
5676 wmemcpy.
5677
5678 * wcsmbs/wcsncat.c (wcsncat): Rewrite using wcslen, wcsnlen, and
5679 wmemcpy.
5680
5681 * wcsmbs/wcscpy.c (__wcpcpy): Rewrite using wcslen and wmemcpy.
5682
5683 * include/wchar.h (__wcscpy): New prototype.
5684 * sysdeps/powerpc/powerpc32/power4/multiarch/wcscpy-ppc32.c
5685 (__wcscpy): Route internal symbol to generic implementation.
5686 * sysdeps/powerpc/powerpc32/power4/multiarch/wcscpy.c (wcscpy):
5687 Add internal __wcscpy alias.
5688 * sysdeps/powerpc/powerpc64/multiarch/wcscpy.c (wcscpy): Likewise.
5689 * sysdeps/s390/wcscpy.c (wcscpy): Likewise.
5690 * sysdeps/x86_64/multiarch/wcscpy.c (wcscpy): Likewise.
5691 * wcsmbs/wcscpy.c (wcscpy): Add
5692 * sysdeps/x86_64/multiarch/wcscpy-c.c (WCSCPY): Adjust macro to
5693 use generic implementation.
5694 * wcsmbs/wcscat.c (wcscat): Rewrite using wcslen and wcscpy.
5695
5696 * wcsmbs/wcpncpy.c (__wcpcpy): Rewrite using wcslen, wmemcpy, and
5697 wmemset.
5698
5699 * sysdeps/m68k/wcpcpy.c: Remove file.
5700 * wcsmbs/wcpcpy.c (__wcpcpy): Rewrite using wcslen and wmemcpy.
5701
5702 2019-02-26 Joseph Myers <joseph@codesourcery.com>
5703
5704 * sysdeps/arm/sysdep.h (#if condition): Break lines before rather
5705 than after operators.
5706 * sysdeps/mach/hurd/fork.c (__fork): Likewise.
5707 * sysdeps/mach/hurd/getcwd.c
5708 (__hurd_canonicalize_directory_name_internal): Likewise.
5709 * sysdeps/mach/hurd/htl/pt-mutex-consistent.c
5710 (pthread_mutex_consistent): Likewise.
5711 * sysdeps/mach/hurd/htl/pt-mutex-init.c (_pthread_mutex_init):
5712 Likewise.
5713 * sysdeps/mach/hurd/htl/pt-mutex-transfer-np.c
5714 (__pthread_mutex_transfer_np): Likewise.
5715 * sysdeps/mach/hurd/htl/pt-mutex-unlock.c
5716 (__pthread_mutex_unlock): Likewise.
5717 * sysdeps/mach/hurd/htl/pt-mutex.h (ROBUST_LOCK): Likewise.
5718 (mtx_owned_p): Likewise.
5719 * sysdeps/mach/hurd/htl/pt-mutexattr-getrobust.c
5720 (pthread_mutexattr_getrobust): Likewise.
5721 * sysdeps/mach/hurd/i386/init-first.c (init1): Likewise.
5722 * sysdeps/mach/hurd/i386/trampoline.c (_hurd_setup_sighandler):
5723 Likewise.
5724 * sysdeps/mach/hurd/ioctl.c (__ioctl): Likewise.
5725 * sysdeps/mach/hurd/jmp-unwind.c (_longjmp_unwind): Likewise.
5726 * sysdeps/mach/hurd/kill.c (__kill): Likewise.
5727 * sysdeps/mach/hurd/mig-reply.c (__mig_get_reply_port): Likewise.
5728 * sysdeps/mach/hurd/ptrace.c (ptrace): Likewise.
5729 * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Likewise.
5730 * sysdeps/unix/sysv/linux/aarch64/sysdep.h (#if condition):
5731 Likewise.
5732 * sysdeps/unix/sysv/linux/alpha/ioperm.c (process_cpuinfo):
5733 Likewise.
5734 * sysdeps/unix/sysv/linux/bits/timex.h (STA_RONLY): Likewise.
5735 * sysdeps/unix/sysv/linux/csky/sysdep.h (#if condition): Likewise.
5736 * sysdeps/unix/sysv/linux/generic/____longjmp_chk.c
5737 (____longjmp_chk): Likewise.
5738 * sysdeps/unix/sysv/linux/generic/futimesat.c (futimesat):
5739 Likewise.
5740 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h
5741 (INTERNAL_SYSCALL): Likewise.
5742 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h
5743 (INTERNAL_SYSCALL): Likewise.
5744 * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
5745 (__get_clockfreq_via_cpuinfo): Likewise.
5746
5747 * sysdeps/i386/dl-machine.h (elf_machine_rela): Add fall-through
5748 comments.
5749 * sysdeps/m68k/m680x0/fpu/s_cexp_template.c (s(__cexp)): Likewise.
5750 * sysdeps/m68k/memcopy.h (WORD_COPY_FWD): Likewise.
5751 (WORD_COPY_BWD): Likewise.
5752 * sysdeps/mach/hurd/ioctl.c (__ioctl): Likewise.
5753 * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
5754 Likewise.
5755 * sysdeps/s390/iso-8859-1_cp037_z900.c (TR_LOOP): Likewise.
5756 * sysdeps/mips/dl-machine.h (elf_machine_reloc): Move fall-through
5757 comment.
5758 * sysdeps/mips/dl-trampoline.c (__dl_runtime_resolve): Likewise.
5759
5760 2019-02-25 Joseph Myers <joseph@codesourcery.com>
5761
5762 * dirent/dirent.h [!_DIRENT_HAVE_D_NAMLEN
5763 && _DIRENT_HAVE_D_RECLEN] (_D_ALLOC_NAMLEN): Break lines before
5764 rather than after operators.
5765 * elf/cache.c (print_cache): Likewise.
5766 * gshadow/fgetsgent_r.c (__fgetsgent_r): Likewise.
5767 * htl/pt-getattr.c (__pthread_getattr_np): Likewise.
5768 * hurd/hurdinit.c (_hurd_setproc): Likewise.
5769 * hurd/hurdkill.c (_hurd_sig_post): Likewise.
5770 * hurd/hurdlookup.c (__file_name_lookup_under): Likewise.
5771 * hurd/hurdsig.c (_hurd_internal_post_signal): Likewise.
5772 (reauth_proc): Likewise.
5773 * hurd/lookup-at.c (__file_name_lookup_at): Likewise.
5774 (__file_name_split_at): Likewise.
5775 (__directory_name_split_at): Likewise.
5776 * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Likewise.
5777 * hurd/port2fd.c (_hurd_port2fd): Likewise.
5778 * iconv/gconv_dl.c (do_print): Likewise.
5779 * inet/netinet/in.h (struct sockaddr_in): Likewise.
5780 * libio/wstrops.c (_IO_wstr_seekoff): Likewise.
5781 * locale/setlocale.c (new_composite_name): Likewise.
5782 * malloc/memusagestat.c (main): Likewise.
5783 * misc/fstab.c (fstab_convert): Likewise.
5784 * nptl/pthread_mutex_unlock.c (__pthread_mutex_unlock_usercnt):
5785 Likewise.
5786 * nss/nss_compat/compat-grp.c (getgrent_next_nss): Likewise.
5787 (getgrent_next_file): Likewise.
5788 (internal_getgrnam_r): Likewise.
5789 (internal_getgrgid_r): Likewise.
5790 * nss/nss_compat/compat-initgroups.c (getgrent_next_nss):
5791 Likewise.
5792 (internal_getgrent_r): Likewise.
5793 * nss/nss_compat/compat-pwd.c (getpwent_next_nss_netgr): Likewise.
5794 (getpwent_next_nss): Likewise.
5795 (getpwent_next_file): Likewise.
5796 (internal_getpwnam_r): Likewise.
5797 (internal_getpwuid_r): Likewise.
5798 * nss/nss_compat/compat-spwd.c (getspent_next_nss_netgr):
5799 Likewise.
5800 (getspent_next_nss): Likewise.
5801 (internal_getspnam_r): Likewise.
5802 * pwd/fgetpwent_r.c (__fgetpwent_r): Likewise.
5803 * shadow/fgetspent_r.c (__fgetspent_r): Likewise.
5804 * string/strchr.c (STRCHR): Likewise.
5805 * string/strchrnul.c (STRCHRNUL): Likewise.
5806 * sysdeps/aarch64/fpu/fpu_control.h (_FPU_FPCR_IEEE): Likewise.
5807 * sysdeps/aarch64/sfp-machine.h (_FP_CHOOSENAN): Likewise.
5808 * sysdeps/csky/dl-machine.h (elf_machine_rela): Likewise.
5809 * sysdeps/generic/memcopy.h (PAGE_COPY_FWD_MAYBE): Likewise.
5810 * sysdeps/generic/symbol-hacks.h (__stack_chk_fail_local):
5811 Likewise.
5812 * sysdeps/gnu/netinet/ip_icmp.h (ICMP_INFOTYPE): Likewise.
5813 * sysdeps/gnu/updwtmp.c (TRANSFORM_UTMP_FILE_NAME): Likewise.
5814 * sysdeps/gnu/utmp_file.c (TRANSFORM_UTMP_FILE_NAME): Likewise.
5815 * sysdeps/hppa/jmpbuf-unwind.h (_JMPBUF_UNWINDS): Likewise.
5816 * sysdeps/mach/hurd/bits/stat.h (S_ISPARE): Likewise.
5817 * sysdeps/mach/hurd/dl-sysdep.c (_dl_sysdep_start): Likewise.
5818 (open_file): Likewise.
5819 * sysdeps/mach/hurd/htl/pt-mutexattr-setprotocol.c
5820 (pthread_mutexattr_setprotocol): Likewise.
5821 * sysdeps/mach/hurd/ioctl.c (__ioctl): Likewise.
5822 * sysdeps/mach/hurd/mmap.c (__mmap): Likewise.
5823 * sysdeps/mach/hurd/ptrace.c (ptrace): Likewise.
5824 * sysdeps/mach/hurd/spawni.c (__spawni): Likewise.
5825 * sysdeps/microblaze/dl-machine.h (elf_machine_type_class):
5826 Likewise.
5827 (elf_machine_rela): Likewise.
5828 * sysdeps/mips/mips32/sfp-machine.h (_FP_CHOOSENAN): Likewise.
5829 * sysdeps/mips/mips64/sfp-machine.h (_FP_CHOOSENAN): Likewise.
5830 * sysdeps/mips/sys/asm.h (multiple #if conditionals): Likewise.
5831 * sysdeps/posix/rename.c (rename): Likewise.
5832 * sysdeps/powerpc/novmx-sigjmp.c (__novmx__sigjmp_save): Likewise.
5833 * sysdeps/powerpc/sigjmp.c (__vmx__sigjmp_save): Likewise.
5834 * sysdeps/s390/fpu/fenv_libc.h (FPC_VALID_MASK): Likewise.
5835 * sysdeps/s390/utf8-utf16-z9.c (gconv_end): Likewise.
5836 * sysdeps/unix/grantpt.c (grantpt): Likewise.
5837 * sysdeps/unix/sysv/linux/a.out.h (N_TXTOFF): Likewise.
5838 * sysdeps/unix/sysv/linux/updwtmp.c (TRANSFORM_UTMP_FILE_NAME):
5839 Likewise.
5840 * sysdeps/unix/sysv/linux/utmp_file.c (TRANSFORM_UTMP_FILE_NAME):
5841 Likewise.
5842 * sysdeps/x86/cpu-features.c (get_common_indices): Likewise.
5843 * time/tzfile.c (__tzfile_compute): Likewise.
5844
5845 2019-02-22 Joseph Myers <joseph@codesourcery.com>
5846
5847 * benchtests/bench-memmem.c (simple_memmem): Break lines before
5848 rather than after operators.
5849 * benchtests/bench-skeleton.c (TIMESPEC_AFTER): Likewise.
5850 * crypt/md5.c (md5_finish_ctx): Likewise.
5851 * crypt/sha256.c (__sha256_finish_ctx): Likewise.
5852 * crypt/sha512.c (__sha512_finish_ctx): Likewise.
5853 * elf/cache.c (load_aux_cache): Likewise.
5854 * elf/dl-load.c (open_verify): Likewise.
5855 * elf/get-dynamic-info.h (elf_get_dynamic_info): Likewise.
5856 * elf/readelflib.c (process_elf_file): Likewise.
5857 * elf/rtld.c (dl_main): Likewise.
5858 * elf/sprof.c (generate_call_graph): Likewise.
5859 * hurd/ctty-input.c (_hurd_ctty_input): Likewise.
5860 * hurd/ctty-output.c (_hurd_ctty_output): Likewise.
5861 * hurd/dtable.c (reauth_dtable): Likewise.
5862 * hurd/getdport.c (__getdport): Likewise.
5863 * hurd/hurd/signal.h (_hurd_interrupted_rpc_timeout): Likewise.
5864 * hurd/hurd/sigpreempt.h (HURD_PREEMPT_SIGNAL_P): Likewise.
5865 * hurd/hurdfault.c (_hurdsig_fault_catch_exception_raise):
5866 Likewise.
5867 * hurd/hurdioctl.c (fioctl): Likewise.
5868 * hurd/hurdselect.c (_hurd_select): Likewise.
5869 * hurd/hurdsig.c (_hurdsig_abort_rpcs): Likewise.
5870 (STOPSIGS): Likewise.
5871 * hurd/hurdstartup.c (_hurd_startup): Likewise.
5872 * hurd/intr-msg.c (_hurd_intr_rpc_mach_msg): Likewise.
5873 * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Likewise.
5874 * hurd/msgportdemux.c (msgport_server): Likewise.
5875 * hurd/setauth.c (_hurd_setauth): Likewise.
5876 * include/features.h (__GLIBC_USE_DEPRECATED_SCANF): Likewise.
5877 * libio/libioP.h [IO_DEBUG] (CHECK_FILE): Likewise.
5878 * locale/programs/ld-ctype.c (set_class_defaults): Likewise.
5879 * localedata/tests-mbwc/tst_swscanf.c (tst_swscanf): Likewise.
5880 * login/tst-utmp.c (do_check): Likewise.
5881 (simulate_login): Likewise.
5882 * mach/lowlevellock.h (lll_lock): Likewise.
5883 (lll_trylock): Likewise.
5884 * math/test-fenv.c (ALL_EXC): Likewise.
5885 * math/test-fenvinline.c (ALL_EXC): Likewise.
5886 * misc/sys/cdefs.h (__attribute_deprecated_msg__): Likewise.
5887 * nis/nis_call.c (__do_niscall3): Likewise.
5888 * nis/nis_callback.c (cb_prog_1): Likewise.
5889 * nis/nis_defaults.c (searchaccess): Likewise.
5890 * nis/nis_findserv.c (__nis_findfastest_with_timeout): Likewise.
5891 * nis/nis_ismember.c (internal_ismember): Likewise.
5892 * nis/nis_local_names.c (nis_local_principal): Likewise.
5893 * nis/nss_nis/nis-rpc.c (_nss_nis_getrpcbyname_r): Likewise.
5894 * nis/nss_nisplus/nisplus-netgrp.c (_nss_nisplus_getnetgrent_r):
5895 Likewise.
5896 * nis/ypclnt.c (yp_match): Likewise.
5897 (yp_first): Likewise.
5898 (yp_next): Likewise.
5899 (yp_master): Likewise.
5900 (yp_order): Likewise.
5901 * nscd/hstcache.c (cache_addhst): Likewise.
5902 * nscd/initgrcache.c (addinitgroupsX): Likewise.
5903 * nss/nss_compat/compat-pwd.c (copy_pwd_changes): Likewise.
5904 (internal_getpwuid_r): Likewise.
5905 * nss/nss_compat/compat-spwd.c (copy_spwd_changes): Likewise.
5906 * posix/glob.h (__GLOB_FLAGS): Likewise.
5907 * posix/regcomp.c (peek_token): Likewise.
5908 (peek_token_bracket): Likewise.
5909 (parse_expression): Likewise.
5910 * posix/regexec.c (sift_states_iter_mb): Likewise.
5911 (check_node_accept_bytes): Likewise.
5912 * posix/tst-spawn3.c (do_test): Likewise.
5913 * posix/wordexp-test.c (testit): Likewise.
5914 * posix/wordexp.c (parse_tilde): Likewise.
5915 (exec_comm): Likewise.
5916 * posix/wordexp.h (__WRDE_FLAGS): Likewise.
5917 * resource/vtimes.c (TIMEVAL_TO_VTIMES): Likewise.
5918 * setjmp/sigjmp.c (__sigjmp_save): Likewise.
5919 * stdio-common/printf_fp.c (__printf_fp_l): Likewise.
5920 * stdio-common/tst-fileno.c (do_test): Likewise.
5921 * stdio-common/vfprintf-internal.c (vfprintf): Likewise.
5922 * stdlib/strfmon_l.c (__vstrfmon_l_internal): Likewise.
5923 * stdlib/strtod_l.c (round_and_return): Likewise.
5924 (____STRTOF_INTERNAL): Likewise.
5925 * stdlib/tst-strfrom.h (TEST_STRFROM): Likewise.
5926 * string/strcspn.c (STRCSPN): Likewise.
5927 * string/test-memmem.c (simple_memmem): Likewise.
5928 * termios/tcsetattr.c (tcsetattr): Likewise.
5929 * time/alt_digit.c (_nl_parse_alt_digit): Likewise.
5930 * time/asctime.c (asctime_internal): Likewise.
5931 * time/strptime_l.c (__strptime_internal): Likewise.
5932 * time/sys/time.h (timercmp): Likewise.
5933 * time/tzfile.c (__tzfile_compute): Likewise.
5934
5935 2019-02-21 Patsy Griffin Franklin <pfrankli@redhat.com>
5936
5937 [BZ #21915]
5938 * nss/tst-nss-files-hosts-long.root/etc/host.conf: New file.
5939
5940 2019-02-21 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
5941
5942 * argp/argp-help.c (__argp_error_internal): New function,
5943 renamed from __argp_error, but that takes a 'mode_flags'
5944 parameter to control the format of long double parameters.
5945 (__argp_error): Converted into a call __argp_error_internal.
5946 (__argp_failure_internal): New function, renamed from
5947 __argp_failure, but that takes a 'mode_flags' parameter.
5948 (__argp_failure): Converted into a call __argp_failure_internal.
5949 * misc/err.c (__vwarnx_internal): New function, renamed from
5950 vwarnx, but that takes a 'mode_flags' parameter.
5951 (vwarnx): Converted into a call to __vwarnx_internal.
5952 (__vwarn_internal): New function, renamed from vwarn, but that
5953 takes a 'mode_flags' parameter.
5954 (vwarn): Converted into a call to __vwarn_internal.
5955 * misc/error.c (error_tail): Add 'mode_flags' parameter. Update
5956 call to __vfxprintf with 'mode_flags'.
5957 (__error_internal): New function, renamed from error, but that
5958 takes a 'mode_flags' parameter.
5959 (error): Converted into a call to __error_internal.
5960 (__error_at_line_internal): New function, renamed from
5961 error_at_line, but that takes a 'mode_flags' parameter.
5962 (error_at_line): Converted into a call to
5963 __error_at_line_internal.
5964 * include/stdio.h (__vfxprintf): Add mode_flags parameter.
5965 * stdio-common/fxprintf.c (locked_vfxprintf, __vfxprintf):
5966 Likewise.
5967
5968 2019-02-20 Martin Liska <mliska@suse.cz>
5969
5970 * math/Makefile: Install math-vector-fortran.h.
5971 * bits/math-vector-fortran.h: New file.
5972 * sysdeps/x86/fpu/bits/math-vector-fortran.h: New file.
5973
5974 2019-02-20 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
5975
5976 * sysdeps/powerpc/powerpc64/le/configure.ac: Remove test.
5977 * sysdeps/powerpc/powerpc64/le/configure: Regenerate.
5978
5979 2019-02-19 Wolfram Sang <wsa@the-dreams.de>
5980
5981 * nptl/pthread_mutex_trylock.c: Fix comment.
5982
5983 2019-02-19 Carlos O'Donell <carlos@redhat.com>
5984
5985 * nptl/pthread_tryjoin.c: Fix comment.
5986
5987 2019-02-18 Joseph Myers <joseph@codesourcery.com>
5988
5989 [BZ #24231]
5990 * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Add break
5991 after R_SPARC_H34 case.
5992
5993 2019-02-18 Florian Weimer <fweimer@redhat.com>
5994
5995 * resolv/compat-gethnamaddr.c (Dprintf): Remove definition.
5996 (getanswer): Do not call Dprintf.
5997 (res_gethostbyname2_context): Likewise.
5998 (res_gethostbyaddr_context): Likewise.
5999
6000 2019-02-18 Florian Weimer <fweimer@redhat.com>
6001
6002 * libio/libio.h (_IO_stdin, _IO_stdout, _IO_stderr): Remove
6003 declaration.
6004 * libio/stdio.c (AL, AL2, _IO_stdin, _IO_stdout, _IO_stderr):
6005 Remove definitions.
6006 * libio/stdfiles.c: Update comment.
6007 * libio/oldstdfiles.c (_IO_check_libio): Update comment. Do not
6008 set _IO_stdin, _IO_stdout, _IO_stderr.
6009 * libio/libioP.h (_IO_fake_stdiobuf): Remove unused declaration.
6010 [SHLIB_COMPAT (libc, GLIBC_2_0, GLIBC_2_1)] (_IO_legacy_file): New
6011 inline function.
6012 (_IO_deallocate_file): New inline function.
6013 * libio/iolibio.h (_IO_vprintf): Remove definition.
6014 * libio/iofclose.c (_IO_new_fclose): Use _IO_deallocate_file.
6015 * libio/oldiofclose.c (_IO_old_fclose): Likewise.
6016 * libio/iofwide.c (_IO_fwide): Use __glibc_unlikely and
6017 _IO_legacy_file.
6018 * libio/oldfileops.c (_IO_old_file_init_internal): Remove
6019 __builtin_expect. Use _IO_legacy_file.
6020
6021 2019-02-18 Stefan Liebler <stli@linux.ibm.com>
6022
6023 * sysdeps/unix/sysv/linux/tst-clone3.c (do_test):
6024 Initialize ctid with a known value and remove update of ctid
6025 after clone.
6026 (wait_tid): Adjust arguments and call futex_wait with ctid_val
6027 as assumed current value of ctid_ptr.
6028
6029 2019-02-16 Florian Weimer <fweimer@redhat.com>
6030
6031 Check that non-sysdeps headers have wrapper headers.
6032 * scripts/check-wrapper-headers.py: New file.
6033 * Makefile (tests-special): Add check-wrapper-headers.out.
6034 (check-wrapper-headers.out): New target.
6035 * Rules (tests-special): Add check-wrapper-headers.out.
6036 (check-wrapper-headers.out): New target.
6037
6038 2019-02-16 Florian Weimer <fweimer@redhat.com>
6039
6040 Add missing header wrappers under include/.
6041 * include/ar.h: New file.
6042 * include/bits/mqueue2.h: Likewise.
6043 * include/bits/stdio.h: Likewise.
6044 * include/bits/stdio2.h: Likewise.
6045 * include/fstab.h: Likewise.
6046 * include/fts.h: Likewise.
6047 * include/lastlog.h: Likewise.
6048 * include/netinet/icmp6.h: Likewise.
6049 * include/netinet/igmp.h: Likewise.
6050 * include/netinet/ip6.h: Likewise.
6051 * include/re_comp.h: Likewise.
6052 * include/regexp.h: Likewise.
6053 * include/rpcsvc/bootparam.h: Likewise.
6054 * include/rpcsvc/yp_prot.h: Likewise.
6055 * include/sys/random.h: Likewise.
6056 * include/sys/stropts.h: Likewise.
6057 * include/sys/ttychars.h: Likewise.
6058 * include/sys/vfs.h: Likewise.
6059 * include/wait.h: Likewise.
6060
6061 2019-02-16 Florian Weimer <fweimer@redhat.com>
6062
6063 * nptl_db/proc_service.h: Move to ...
6064 * sysdeps/nptl/proc_service.h: ... here.
6065 * nptl_db/thread_db.h: Move to ...
6066 * sysdeps/nptl/thread_db.h: ... here.
6067 * nptl/descr.h: Include <thread_db.h>.
6068
6069 2019-02-15 Adhemerval Zanella <adhemerval.zanella@linaro.org>
6070
6071 * io/Makefile (tests): Add tst-lockf.
6072 * io/lockf.c (lockf): Use __fcntl and only define for
6073 !__OFF_T_MATCHES_OFF64_T.
6074 * io/lockf64.c (__lockf64): Call __fcntl64 and alias to lockf for
6075 __OFF_T_MATCHES_OFF64_T case.
6076 * io/tst-lockf.c: New file.
6077 * sysdeps/unix/sysv/linux/i386/lockf64.c: Remove file.
6078 * sysdeps/unix/sysv/linux/arm/lockf64.c: Likewise.
6079 * sysdeps/unix/sysv/linux/m68k/lockf64.c: Likewise.
6080 * sysdeps/unix/sysv/linux/mips/mips32/lockf64.c: Likewise.
6081 * sysdeps/unix/sysv/linux/mips/mips64/n32/lockf64.c: Likewise.
6082 * sysdeps/unix/sysv/linux/powerpc/powerpc32/lockf64.c: Likewise.
6083 * sysdeps/unix/sysv/linux/s390/s390-32/lockf64.c: Likewise.
6084 * sysdeps/unix/sysv/linux/sh/lockf64.c: Likewise.
6085 * sysdeps/unix/sysv/linux/sparc/sparc32/lockf64.c: Likewise.
6086
6087 2019-02-15 Florian Weimer <fweimer@redhat.com>
6088
6089 [BZ #24211]
6090 * nptl/pthread_join_common.c (__pthread_timedjoin_ex): Do not read
6091 pd->result after the thread descriptor has been freed.
6092
6093 2019-02-15 Joseph Myers <joseph@codesourcery.com>
6094
6095 * sunrpc/tst-svc_register.c (rpcbind_address): Remove qualifier
6096 from function return type.
6097
6098 * setjmp/tst-setjmp.c (jump): Use __attribute__ ((__noreturn__)).
6099
6100 2019-02-14 Jan Kratochvil <jan.kratochvil@redhat.com>
6101
6102 * scripts/test_printers_common.py: Set TERM to a known harmless
6103 value.
6104
6105 2019-02-14 Joseph Myers <joseph@codesourcery.com>
6106
6107 * sunrpc/xdr.c (xdr_int): Add fall-through comment.
6108 (xdr_u_int): Likewise.
6109 (xdr_enum): Likewise.
6110 (xdr_bytes): Reword fall-through comment.
6111 (xdr_string): Likewise.
6112
6113 2019-02-14 Adhemerval Zanella <adhemerval.zanella@linaro.org>
6114
6115 [BZ #2421]
6116 * nptl/Makefile (lpthread-routines): Remove lll_timedwait_tid.
6117 (tests): Add tst-join8 tst-join9.
6118 * nptl/lll_timedwait_tid.c: Remove file.
6119 * sysdeps/sparc/sparc32/lll_timedwait_tid.c: Likewise.
6120 * sysdeps/unix/sysv/linux/i386/lll_timedwait_tid.c: Likewise.
6121 * sysdeps/sysv/linux/x86_64/lll_timedwait_tid.c: Likewise.
6122 * nptl/pthread_join_common.c (timedwait_tid): New function.
6123 (__pthread_timedjoin_ex): Act as cancellation entrypoint is block
6124 is set.
6125 * nptl/tst-join5.c (thread_join): New function.
6126 (tf1, tf2, do_test): Use libsupport and add pthread_timedjoin_np
6127 check.
6128 * nptl/tst-join8.c: New file.
6129 * nptl/tst-join9.c: Likewise.
6130 * sysdeps/nptl/lowlevellock-futex.h (lll_futex_wait_cancel,
6131 lll_futex_timed_wait_cancel): Add generic macros.
6132 * sysdeps/nptl/lowlevellock.h (__lll_timedwait_tid, lll_wait_tid):
6133 Remove definitions.
6134 * sysdeps/unix/sysv/linux/i386/lowlevellock.h: Likewise.
6135 * sysdeps/unix/sysv/linux/sparc/lowlevellock.h: Likewise.
6136 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h: Likewise.
6137 * sysdeps/sparc/sparc32/lowlevellock.c (__lll_timedwait_tid):
6138 Remove function.
6139 * sysdeps/unix/sysv/linux/i386/lowlevellock.S (__lll_timedwait_tid):
6140 Likewise.
6141 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.S: Likewise.
6142 * sysdeps/unix/sysv/linux/lowlevellock-futex.h
6143 (lll_futex_timed_wait_cancel): New macro.
6144
6145 2019-02-14 Wilco Dijkstra <wdijkstr@arm.com>
6146
6147 * benchtests/Makefile: Add malloc-simple benchmark.
6148 * benchtests/bench-malloc-simple.c: New benchmark.
6149
6150 2019-02-14 Siddhesh Poyarekar <siddhesh@sourceware.org>
6151
6152 * benchtests/bench-memmove.c (do_one_test): Remove unused
6153 ORIG_SRC.
6154 (do_test): Adjust.
6155 * benchtests/bench-memmove-large.c (do_one_test): Remove unused
6156 ORIG_SRC.
6157 (do_test): Adjust.
6158
6159 2019-01-13 Jim Wilson <jimw@sifive.com>
6160
6161 [BZ #24040]
6162 * elf/Makefile (CFLAGS-tst-unwind-main.c): Add -DUSE_PTHREADS=0.
6163 * elf/tst-unwind-main.c: If USE_PTHEADS, include pthread.h and error.h
6164 (func): New.
6165 (main): If USE_PTHREADS, call pthread_create to run func. Otherwise
6166 call func directly.
6167 * nptl/Makefile (tests): Add tst-unwind-thread.
6168 (CFLAGS-tst-unwind-thread.c): Define.
6169 * nptl/tst-unwind-thread.c: New file.
6170 * sysdeps/unix/sysv/linux/riscv/clone.S (__thread_start): Mark ra
6171 as undefined.
6172
6173 2019-02-13 Joseph Myers <joseph@codesourcery.com>
6174
6175 * iconvdata/cns11643.h (ucs4_to_cns11643): Adjust fall-through
6176 comment wording.
6177 * nis/nis_call.c (__do_niscall3): Likewise.
6178
6179 * catgets/gencat.c (normalize_line): Use braces around empty
6180 'else' body.
6181 * include/stap-probe.h [!USE_STAP_PROBE && !__ASSEMBLER__]
6182 (STAP_PROBE0): Use do {} while (0) for do-nothing definition.
6183 [!USE_STAP_PROBE && !__ASSEMBLER__] (STAP_PROBE1): Likewise.
6184 [!USE_STAP_PROBE && !__ASSEMBLER__] (STAP_PROBE2): Likewise.
6185 [!USE_STAP_PROBE && !__ASSEMBLER__] (STAP_PROBE3): Likewise.
6186 [!USE_STAP_PROBE && !__ASSEMBLER__] (STAP_PROBE4): Likewise.
6187 * libio/libio.h (_IO_funlockfile): Use ((void) 0) for do-nothing
6188 definition.
6189
6190 * support/test-container.c (recursive_remove): Use FAIL_EXIT1 if
6191 execlp returns.
6192
6193 2019-02-12 Wilco Dijkstra <wdijkstr@arm.com>
6194
6195 * benchtests/bench-strcasecmp.c (stupid_strcasecmp): Remove.
6196 * benchtests/bench-strcasestr.c (stupid_strcasestr): Remove.
6197 * benchtests/bench-strchr.c (stupid_strchr): Remove.
6198 * benchtests/bench-strcmp.c (stupid_strcmp): Remove.
6199 * benchtests/bench-strcspn.c (stupid_strcspn): Remove.
6200 * benchtests/bench-strlen.c (builtin_strlen): Remove.
6201 * benchtests/bench-strncasecmp.c (stupid_strncasecmp): Remove.
6202 * benchtests/bench-strncmp.c (stupid_strncmp): Remove.
6203 * benchtests/bench-strpbrk.c (stupid_strpbrk): Remove.
6204 * benchtests/bench-strspn.c (stupid_strspn): Remove.
6205 * benchtests/Makefile: Remove bench-bcopy.c and bench-bzero.c.
6206 * benchtests/bench-bcopy.c: Delete file.
6207 * benchtests/bench-bzero.c: Likewise.
6208 * benchtests/bench-memccpy.c (stupid_memccpy): Remove.
6209 (simple_memccpy): Remove.
6210 (generic_memccpy): Add function.
6211 * benchtests/bench-memcpy.c: (builtin_memcpy): Remove.
6212 * benchtests/bench-memmove.c (simple_bcopy): Remove.
6213 * benchtests/bench-mempcpy.c (simple_mempcpy): Remove.
6214 (generic_mempcpy): Add new function.
6215 * benchtests/bench-memset.c (simple_bzero): Remove.
6216 (builtin_bzero): Remove.
6217 (builtin_memset): Remove.
6218 * benchtests/bench-rawmemchr.c (simple_rawmemchr): Remove.
6219 (generic_rawmemchr): Add new function.
6220
6221 2019-02-12 Florian Weimer <fweimer@redhat.com>
6222
6223 * nss/getent.c (ahosts_keys_int): Include IPv6 scope ID in output.
6224
6225 2019-02-12 Adhemerval Zanella <adhemerval.zanella@linaro.org>
6226
6227 [BZ #24122]
6228 * elf/Makefile (tests): Add tst-audit13.
6229 (modules-names): Add tst-audit13mod1.
6230 (tst-audit13.out, LDFLAGS-tst-audit13mod1.so, tst-audit13-ENV): New
6231 rule.
6232 * elf/tst-audit13.c: New file.
6233 * elf/tst-audit13mod1.c: Likewise.
6234
6235 2019-02-12 Florian Weimer <fweimer@redhat.com>
6236
6237 [BZ #24122]
6238 * elf/rtld.c (unload_audit_module): New function.
6239 (report_audit_module_load_error): Likewise.
6240 (load_audit_module): Likewise. Extracted from dl_main. Call
6241 _dl_close if the laversion symbol cannot be found. Use early
6242 returns for error handling. Add malloc error check. Check for a
6243 zero return value from la_version. Remove spurious comment about
6244 static TLS initialization. Remove useless casts.
6245 (notify_audit_modules_of_loaded_object): New function. Extracted
6246 from dl_main.
6247 (load_audit_module): Likewise.
6248 (dl_main): Call load_audit_modules.
6249
6250 2019-02-12 Joseph Myers <joseph@codesourcery.com>
6251
6252 * elf/dl-exception.c (_dl_exception_create_format): Add
6253 fall-through comments.
6254 * elf/ldconfig.c (parse_conf_include): Likewise.
6255 * elf/rtld.c (print_statistics): Likewise.
6256 * locale/programs/charmap.c (parse_charmap): Likewise.
6257 * misc/mntent_r.c (__getmntent_r): Likewise.
6258 * posix/wordexp.c (parse_arith): Likewise.
6259 (parse_backtick): Likewise.
6260 * resolv/ns_ttl.c (ns_parse_ttl): Likewise.
6261 * sysdeps/x86/cpu-features.c (init_cpu_features): Likewise.
6262 * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Likewise.
6263
6264 2019-02-11 Paul A. Clarke <pc@us.ibm.com>
6265
6266 * sysdeps/powerpc/fpu/e_sqrt.c (__slow_ieee754_sqrtf):
6267 Use float instead of double.
6268
6269 2019-02-11 TAMUKI Shoichi <tamuki@linet.gr.jp>
6270
6271 * time/strftime_l.c: Fix a few whitespace arrangement inconsistencies.
6272
6273 2019-02-08 Joseph Myers <joseph@codesourcery.com>
6274
6275 * sysdeps/powerpc/bits/mathinline.h: Remove.
6276
6277 2019-02-08 Florian Weimer <fweimer@redhat.com>
6278
6279 math: Enable <bits/math-finite.h> sysdeps override, as used on ia64.
6280 * math/bits/math-finite.h: Move to ...
6281 * bits/math-finite.h: ... here.
6282
6283 2019-02-08 Florian Weimer <fweimer@redhat.com>
6284
6285 * sysdeps/generic/bits/unistd_ext.h: Move to ...
6286 * bits/unistd_ext.h: here.
6287
6288 2019-02-08 Patsy Griffin Franklin <pfrankli@redhat.com>
6289
6290 [BZ #21915]
6291 * nss/Makefile (test-container): Add tst-nss-files-hosts-long.
6292 * nss/tst-nss-files-hosts-long.c: New file.
6293 * nss/tst-nss-files-hosts-long.root: New directory.
6294 * nss/tst-nss-files-hosts-long.root/etc: Likewise.
6295 * nss/tst-nss-files-hosts-long.root/etc/hosts: New file.
6296
6297 2019-02-08 Florian Weimer <fweimer@redhat.com>
6298
6299 * include/bits/unistd_ext.h: Remove file.
6300 * posix/bits/unistd_ext.h: Move to ...
6301 * sysdeps/generic/bits/unistd_ext.h: ... here.
6302
6303 2019-02-08 Florian Weimer <fweimer@redhat.com>
6304
6305 * include/bits/unistd_ext.h: New file.
6306
6307 2019-02-08 TAMUKI Shoichi <tamuki@linet.gr.jp>
6308
6309 * time/tst-strftime2.c: Use array_length macros instead of magic
6310 numbers.
6311
6312 2019-02-08 Florian Weimer <fweimer@redhat.com>
6313
6314 [BZ #24161]
6315 * sysdeps/nptl/fork.h (__run_fork_handlers): Add multiple_threads
6316 argument.
6317 * nptl/register-atfork.c (__run_fork_handlers): Only perform
6318 locking if the new do_locking argument is true.
6319 * sysdeps/nptl/fork.c (__libc_fork): Pass multiple_threads to
6320 __run_fork_handlers.
6321
6322 2019-02-08 Florian Weimer <fweimer@redhat.com>
6323
6324 [BZ #6399]
6325 Linux: Add gettid system call wrapper.
6326 * posix/Makefile (headers): Add bits/unistd_ext.h.
6327 * posix/bits/unistd_ext.h: New file.
6328 * posix/unistd.h: Include it.
6329 * manual/process.texi (Process Identification): Document gettid.
6330 * sysdeps/unix/sysv/linux/Makefile [subdir == misc] (tests): Add
6331 tst-gettid, tst-gettid-kill.
6332 (tst-gettid): Link with $(shared-thread-library).
6333 * sysdeps/unix/sysv/linux/Version (GLIBC_2.30): Export gettid.
6334 * sysdeps/unix/sysv/linux/bits/unistd_ext.h: New file.
6335 * sysdeps/unix/sysv/linux/bits/syscalls.list (gettid): Add.
6336 * sysdeps/unix/sysv/linux/bits/tst-gettid.c: New file.
6337 * sysdeps/unix/sysv/linux/bits/tst-gettid-kill.c: Likewise.
6338 * sysdeps/unix/sysv/linux/aarch64/libc.abilist (GLIBC_2.30):
6339 Add gettid.
6340 * sysdeps/unix/sysv/linux/alpha/libc.abilist (GLIBC_2.30):
6341 Likewise.
6342 * sysdeps/unix/sysv/linux/arm/libc.abilist (GLIBC_2.30): Likewise.
6343 * sysdeps/unix/sysv/linux/csky/libc.abilist (GLIBC_2.30):
6344 Likewise.
6345 * sysdeps/unix/sysv/linux/hppa/libc.abilist (GLIBC_2.30):
6346 Likewise.
6347 * sysdeps/unix/sysv/linux/i386/libc.abilist (GLIBC_2.30):
6348 Likewise.
6349 * sysdeps/unix/sysv/linux/ia64/libc.abilist (GLIBC_2.30):
6350 Likewise.
6351 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist (GLIBC_2.30):
6352 Likewise.
6353 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist (GLIBC_2.30):
6354 Likewise.
6355 * sysdeps/unix/sysv/linux/microblaze/libc.abilist (GLIBC_2.30):
6356 Likewise.
6357 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist
6358 (GLIBC_2.30): Likewise.
6359 * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist
6360 (GLIBC_2.30): Likewise.
6361 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist
6362 (GLIBC_2.30): Likewise.
6363 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist
6364 (GLIBC_2.30): Likewise.
6365 * sysdeps/unix/sysv/linux/nios2/libc.abilist (GLIBC_2.30):
6366 Likewise.
6367 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist
6368 (GLIBC_2.30): Likewise.
6369 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist
6370 (GLIBC_2.30): Likewise.
6371 * sysdeps/unix/sysv/linux/powerpc/powerpc64/be/libc.abilist
6372 (GLIBC_2.30): Likewise.
6373 * sysdeps/unix/sysv/linux/powerpc/powerpc64/le/libc.abilist
6374 (GLIBC_2.30): Likewise.
6375 * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist (GLIBC_2.30):
6376 Likewise.
6377 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist (GLIBC_2.30):
6378 Likewise.
6379 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist (GLIBC_2.30):
6380 Likewise.
6381 * sysdeps/unix/sysv/linux/sh/libc.abilist (GLIBC_2.30): Likewise.
6382 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist (GLIBC_2.30):
6383 Likewise.
6384 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist (GLIBC_2.30):
6385 Likewise.
6386 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist (GLIBC_2.30):
6387 Likewise.
6388 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist (GLIBC_2.30):
6389 Likewise.
6390 * sysdeps/unix/sysv/linux/tst-setgetname.c (gettid): Remove.
6391
6392 2019-02-08 Florian Weimer <fweimer@redhat.com>
6393
6394 * rt/clock-compat.c (COMPAT_REDIRECT): Turn librt forwarders into
6395 compatibility symbols.
6396
6397 2019-02-07 Stefan Liebler <stli@linux.ibm.com>
6398
6399 [BZ #24180]
6400 * nptl/pthread_mutex_trylock.c (__pthread_mutex_trylock):
6401 Add compiler barriers and comments.
6402
6403 2019-02-07 Florian Weimer <fweimer@redhat.com>
6404
6405 * include/array_length.h (array_length): Do not use a statement
6406 expression and _Static_assert, so that array_length can be used at
6407 file scope and as a constant expression.
6408
6409 2019-02-07 Florian Weimer <fweimer@redhat.com>
6410
6411 * support/xdlfcn.h (xdlmopen): Declare.
6412 * support/xdlmopen.c: New file.
6413 * support/Makefile (libsupport-routines): Add xdlmopen.
6414
6415 2019-02-06 Joseph Myers <joseph@codesourcery.com>
6416
6417 * elf/dl-load.h (_dl_postprocess_loadcmd): Use __always_inline
6418 before return type, without separate inline.
6419 * elf/dl-tunables.c (maybe_enable_malloc_check): Likewise.
6420 * elf/dl-tunables.h (tunable_is_name): Likewise.
6421 * malloc/malloc.c (do_set_trim_threshold): Likewise.
6422 (do_set_top_pad): Likewise.
6423 (do_set_mmap_threshold): Likewise.
6424 (do_set_mmaps_max): Likewise.
6425 (do_set_mallopt_check): Likewise.
6426 (do_set_perturb_byte): Likewise.
6427 (do_set_arena_test): Likewise.
6428 (do_set_arena_max): Likewise.
6429 (do_set_tcache_max): Likewise.
6430 (do_set_tcache_count): Likewise.
6431 (do_set_tcache_unsorted_limit): Likewise.
6432 * nis/nis_subr.c (count_dots): Likewise.
6433 * nptl/allocatestack.c (advise_stack_range): Likewise.
6434 * sysdeps/ieee754/dbl-64/s_sin.c (do_cos): Likewise.
6435 (do_sin): Likewise.
6436 (reduce_sincos): Likewise.
6437 (do_sincos): Likewise.
6438 * sysdeps/unix/sysv/linux/x86/elision-conf.c
6439 (do_set_elision_enable): Likewise.
6440 (TUNABLE_CALLBACK_FNDECL): Likewise.
6441
6442 2019-02-06 Florian Weimer <fweimer@redhat.com>
6443
6444 * support/xdlfcn.c (xdlopen, xdlclose): Do not call dlerror.
6445 (xdlsym): Use dlerror to detect a NULL symbol.
6446
6447 2019-02-06 Florian Weimer <fweimer@redhat.com>
6448
6449 * sysdeps/unix/sysv/linux/i386/lowlevellock.h: Do not include
6450 <stap-probe.h>.
6451 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h: Likewise.
6452
6453 2019-02-06 Stefan Liebler <stli@linux.ibm.com>
6454
6455 * libio/tst-bz24153.c (wide): Use wide char format specifier.
6456
6457 2019-02-06 Stefan Liebler <stli@linux.ibm.com>
6458
6459 * sysdeps/s390/wmemcmp-vx.S: Add strong alias to
6460 __wmemcmp and weak alias to wmemcmp.
6461
6462 2019-02-06 Stefan Liebler <stli@linux.ibm.com>
6463
6464 [BZ #23403]
6465 * nptl/allocatestack.c (allocate_stack): Align pointer pd for
6466 TLS_TCB_AT_TP tls variant.
6467 * nptl/tst-tls1.c: Migrate to support/test-driver.c.
6468 Add alignment checks.
6469 * support/Makefile (libsupport-routines): Add xposix_memalign and
6470 xpthread_setstack.
6471 * support/support.h: Add xposix_memalign.
6472 * support/xthread.h: Add xpthread_attr_setstack.
6473 * support/xposix_memalign.c: New File.
6474 * support/xpthread_attr_setstack.c: Likewise.
6475
6476 2019-02-05 Florian Weimer <fweimer@redhat.com>
6477
6478 [BZ #24164]
6479 arm: Use "nr" constraint for Systemtap probes, to avoid the
6480 compiler using memory operands for constants, due to the "o"
6481 alternative in the default "nor" constraint.
6482 * include/stap-probe.h [USE_STAP_PROBE]: Include
6483 <stap-probe-machine.h>
6484 * sysdeps/generic/stap-probe-machine.h: New file.
6485 * sysdeps/arm/stap-probe-machine.h: Likewise.
6486
6487 2019-02-04 Joseph Myers <joseph@codesourcery.com>
6488
6489 * malloc/malloc.c (tcache_get): Compare tcache->counts[tc_idx]
6490 with 0, not tcache->entries[tc_idx].
6491
6492 * nscd/connections.c (reqinfo): Initialize SHUTDOWN element only
6493 once.
6494
6495 2019-02-04 Andreas Schwab <schwab@suse.de>
6496
6497 [BZ #16976]
6498 [BZ #17396]
6499 * posix/fnmatch_loop.c (internal_fnmatch, internal_fnwmatch): When
6500 looking up collating elements match against (wide) character
6501 sequence instead of name. Correct alignment adjustment.
6502 * posix/fnmatch.c: Don't include "../locale/elem-hash.h".
6503 (WMEMCMP) [HANDLE_MULTIBYTE]: Define.
6504 * posix/Makefile (tests): Add tst-fnmatch4 and tst-fnmatch5.
6505 (LOCALES): Add cs_CZ.ISO-8859-2.
6506 * posix/tst-fnmatch4.c: New file.
6507 * posix/tst-fnmatch5.c: New file.
6508 * include/wchar.h (__wmemcmp): Declare.
6509 * wcsmbs/wmemcmp.c: Define __wmemcmp and add wmemcmp as weak alias.
6510 * sysdeps/i386/i686/multiarch/wmemcmp.c: Likewise.
6511 * sysdeps/x86_64/multiarch/wmemcmp.c: Likewise.
6512 * sysdeps/s390/wmemcmp.c: Likewise.
6513
6514 2019-02-04 H.J. Lu <hongjiu.lu@intel.com>
6515
6516 [BZ #24155]
6517 CVE-2019-7309
6518 * NEWS: Updated for CVE-2019-7309.
6519 * sysdeps/x86_64/memcmp.S: Use RDX_LP for size. Clear the
6520 upper 32 bits of RDX register for x32. Use unsigned Jcc
6521 instructions, instead of signed.
6522 * sysdeps/x86_64/x32/Makefile (tests): Add tst-size_t-memcmp-2.
6523 * sysdeps/x86_64/x32/tst-size_t-memcmp-2.c: New test.
6524
6525 2019-02-04 Florian Weimer <fweimer@redhat.com>
6526
6527 * posix/spawn.h (posix_spawn, posix_spawnp): Add __nonnull attribute.
6528 (posix_spawnattr_init, posix_spawnattr_destroy): Likewise.
6529 (posix_spawnattr_getsigdefault, posix_spawnattr_setsigdefault):
6530 Likewise.
6531 (posix_spawnattr_getsigmask, posix_spawnattr_setsigmask): Likewise.
6532 (posix_spawnattr_getflags, posix_spawnattr_setflags): Likewise.
6533 (posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Likewise.
6534 (posix_spawnattr_getschedpolicy, posix_spawnattr_setschedpolicy):
6535 Likewise.
6536 (posix_spawnattr_getschedparam, posix_spawnattr_setschedparam):
6537 Likewise.
6538 (posix_spawn_file_actions_init, posix_spawn_file_actions_destroy):
6539 Likewise.
6540 (posix_spawn_file_actions_addopen): Likewise.
6541 (posix_spawn_file_actions_addclose): Likewise.
6542 (posix_spawn_file_actions_adddup2): Likewise.
6543 (posix_spawn_file_actions_addchdir_np): Likewise. Add __restrict
6544 qualifiers.
6545 (posix_spawn_file_actions_addfchdir_np): Likewise.
6546
6547 2019-02-04 David Newall <glibc@davidnewall.com>
6548
6549 elf: Implement --preload option for the dynamic linker.
6550 * elf/rtld.c (preloadarg): New variable.
6551 (handle_preload_list): Pass through “where” argument to
6552 do_preload.
6553 (dl_main): Handle "--preload" and add second call to
6554 handle_preload_list.
6555 * elf/Makefile (tests-special): Add tst-rtld-preload.out.
6556 (tst-rtld-preload-OBJS): Set variable.
6557 (tst-rtld-preload.out): New target.
6558 * elf/tst-rtld-preload.sh: New file.
6559
6560 2019-02-04 Matthew Malcomson <matthew.malcomson@arm.com>
6561
6562 * Makefile (testrun.sh): Exit in case of incorrect argument.
6563
6564 2019-02-04 Florian Weimer <fweimer@redhat.com>
6565
6566 * time/tzfile.c (__tzfile_read): Reorder suballocations to avoid
6567 alignment gaps.
6568
6569 2019-02-03 Florian Weimer <fweimer@redhat.com>
6570
6571 * time/tzfile.c (__tzfile_read): Use struct alloc_buffer and its
6572 implicit overflow checks.
6573
6574 2019-02-03 Aurelien Jarno <aurelien@aurel32.net>
6575
6576 * stdlib/isomac.c: Include <unistd.h>.
6577
6578 2019-02-03 Florian Weimer <fweimer@redhat.com>
6579
6580 * include/time.h (__tzfile_default): Use int, not long int, for
6581 the GMT offsets.
6582 * time/tzfile.c (struct ttinfo): Change type of the offset member
6583 to int.
6584 (__tzfile_read): Remove useless cast.
6585 (__tzfile_default): Adjust prototype.
6586 * time/tzset.c (tz_rule): Change type of the offset member to int.
6587 (parse_offset): Change the type of the sign variable to int.
6588
6589 2019-02-03 Florian Weimer <fweimer@redhat.com>
6590
6591 [BZ #24153]
6592 * debug/gets_chk.c (__gets_chk): Use stdin instead of _IO_stdin.
6593 * libio/getchar.c (getchar): Likewise.
6594 * libio/getchar_u.c (getchar_unlocked): Likewise.
6595 * libio/getwchar.c (getwchar): Likewise.
6596 * libio/getwchar_u.c (getwchar_unlocked): Likewise.
6597 * libio/iogets.c (_IO_gets): Likewise.
6598 * libio/vscanf.c (_IO_vscanf): Likewise.
6599 * libio/vwscanf.c (__vwscanf): Likewise.
6600 * libio/tst-bz24153.c: New file.
6601 * libio/Makefile (tests): Add it.
6602
6603 2019-02-02 Florian Weimer <fweimer@redhat.com>
6604
6605 [BZ #14829]
6606 * manual/resource.texi (Basic Scheduling Functions): Add
6607 portability note. Change process to task throughout the section.
6608 Remove incorrect comment about sched_yield as it affects
6609 tasks/threads, not entire processes.
6610 * sysdeps/unix/sysv/linux/bits/posix_opt.h
6611 (_POSIX_PRIORITY_SCHEDULING): Update comment.
6612
6613 2019-02-01 Joseph Myers <joseph@codesourcery.com>
6614
6615 * configure.ac (libc_cv_compiler_ok): Require GCC 6.2 or later.
6616 * configure: Regenerated.
6617 * manual/install.texi (Tools for Compilation): Update minimum GCC
6618 version.
6619 * INSTALL: Regenerated.
6620
6621 2019-02-01 Florian Weimer <fweimer@redhat.com>
6622
6623 * support/support_test_compare_string.c
6624 (support_test_compare_string): Use "string" in error message.
6625 * support/tst-test_compare_string.c (do_test): Adjust.
6626
6627 2019-02-01 Florian Weimer <fweimer@redhat.com>
6628
6629 * support/support_format_address_family.c
6630 (support_format_address_family): Handle AF_LOCAL, AF_UNSPEC.
6631
6632 2019-02-01 Florian Weimer <fweimer@redhat.com>
6633
6634 * manual/socket.texi (Internet Address Formats): Clarify the byte
6635 order of struct sockaddr_in, struct sockaddr_in6. Document
6636 sin6_flowinfo and sin6_scope_id.
6637
6638 2019-02-01 Wilco Dijkstra <wdijkstr@arm.com>
6639
6640 * sysdeps/posix/clock_getres.c (__clock_getres): Cleanup.
6641 * sysdeps/unix/clock_gettime.c (__clock_gettime): Cleanup.
6642 * sysdeps/unix/clock_settime.c (__clock_settime): Cleanup.
6643 * sysdeps/unix/sysv/linux/clock_getres.c (__clock_getres): Cleanup.
6644 * sysdeps/unix/sysv/linux/clock_gettime.c (__clock_gettime): Cleanup.
6645 * sysdeps/unix/sysv/linux/clock_settime.c (__clock_settime): Cleanup.
6646
6647 2019-02-01 Feng Xue <fxue@os.amperecomputing.com>
6648
6649 * sysdeps/aarch64/memchr.S (__memchr): Rename to MEMCHR.
6650 [!MEMCHR](MEMCHR): Set to __memchr.
6651 * sysdeps/aarch64/multiarch/Makefile (sysdep_routines):
6652 Add memchr_generic and memchr_nosimd.
6653 * sysdeps/aarch64/multiarch/ifunc-impl-list.c
6654 (__libc_ifunc_impl_list): Add memchr ifuncs.
6655 * sysdeps/aarch64/multiarch/memchr.c: New file.
6656 * sysdeps/aarch64/multiarch/memchr_generic.S: Likewise.
6657 * sysdeps/aarch64/multiarch/memchr_nosimd.S: Likewise.
6658
6659 2019-02-01 Feng Xue <fxue@os.amperecomputing.com>
6660
6661 * sysdeps/aarch64/multiarch/Makefile (sysdep_routines):
6662 Add memset_emag.
6663 * sysdeps/aarch64/multiarch/ifunc-impl-list.c
6664 (__libc_ifunc_impl_list): Add __memset_emag to memset ifunc.
6665 * sysdeps/aarch64/multiarch/memset.c (libc_ifunc):
6666 Add IS_EMAG check for ifunc dispatch.
6667 * sysdeps/aarch64/multiarch/memset_base64.S: New file.
6668 * sysdeps/aarch64/multiarch/memset_emag.S: New file.
6669
6670 2019-02-01 Feng Xue <fxue@os.amperecomputing.com>
6671
6672 * manual/tunables.texi (Tunable glibc.cpu.name): Add emag.
6673 * sysdeps/unix/sysv/linux/aarch64/cpu-features.c (cpu_list):
6674 Add emag.
6675 * sysdeps/unix/sysv/linux/aarch64/cpu-features.h (IS_EMAG):
6676 New macro.
6677
6678 2019-02-01 Stefan Liebler <stli@linux.ibm.com>
6679
6680 * posix/tst-spawn do_test(): Move waitpid before posix_spawn.
6681
6682 2019-01-31 Vineet Gupta <vgupta@synopsys.com>
6683
6684 * sysdeps/unix/make-syscalls.sh: Fix comment referencing
6685 syscall-template file.
6686
6687 2019-01-31 Carlos O'Donell <carlos@redhat.com>
6688 Torvald Riegel <triegel@redhat.com>
6689 Rik Prohaska <prohaska7@gmail.com>
6690
6691 [BZ# 23844]
6692 * nptl/Makefile (tests): Add tst-rwlock-tryrdlock-stall, and
6693 tst-rwlock-trywrlock-stall.
6694 * nptl/pthread_rwlock_tryrdlock.c (__pthread_rwlock_tryrdlock):
6695 Wake waiters if PTHREAD_RWLOCK_FUTEX_USED is set.
6696 * nptl/pthread_rwlock_trywrlock.c (__pthread_rwlock_trywrlock):
6697 Set __wrphase_fute to 1 only if we started the write phase.
6698 * nptl/tst-rwlock-tryrdlock-stall.c: New file.
6699 * nptl/tst-rwlock-trywrlock-stall.c: New file.
6700 * support/Makefile (libsupport-routines): Add xpthread_rwlock_destroy.
6701 * support/xpthread_rwlock_destroy.c: New file.
6702 * support/xthread.h: Declare xpthread_rwlock_destroy.
6703
6704 2019-02-01 Joseph Myers <joseph@codesourcery.com>
6705
6706 * scripts/build-many-glibcs.py (Context.checkout): Default MPFR
6707 version to 4.0.2.
6708
6709 2019-01-31 Paul Pluzhnikov <ppluzhnikov@google.com>
6710
6711 [BZ #24051]
6712 * libio/ioputs.c (_IO_puts): Use stdout instead of _IO_stdout.
6713 * libio/fileops.c (_IO_new_file_underflow): Likewise
6714 * libio/wfileops.c (_IO_wfile_underflow): Likewise
6715 * libio/putchar.c (putchar): Likewise.
6716 * libio/putchar_u.c (putchar_unlocked): Likewise.
6717 * libio/putwchar.c (putchar): Likewise.
6718 * libio/putwchar_u.c (putwchar_unlocked): Likewise.
6719 * libio/tst-bz24051.c: New test.
6720 * libio/Makefile (tests): Add tst-bz24051
6721
6722 2019-01-31 Paul Eggert <eggert@cs.ucla.edu>
6723
6724 CVE-2019-9169
6725 regex: fix read overrun [BZ #24114]
6726 Problem found by AddressSanitizer, reported by Hongxu Chen in:
6727 https://debbugs.gnu.org/34140
6728 * posix/regexec.c (proceed_next_node):
6729 Do not read past end of input buffer.
6730
6731 2019-01-31 Florian Weimer <fweimer@redhat.com>
6732
6733 [BZ #24059]
6734 * nss/nss_files/files-alias.c (get_next_alias): Handle
6735 continuation line without newline at the end.
6736 * nss/tst-nss-files-alias-truncated.c: New file.
6737 * nss/Makefile [$(build-shared)] (tests): Add
6738 tst-nss-files-alias-truncated.
6739 (tst-nss-files-alias-truncated): Link with libnss_files.so.
6740 * support/namespace.h (struct support_chroot_configuration): Add
6741 aliases member.
6742 (struct support_chroot): Add path_aliases member.
6743 * support/support_chroot.c (support_chroot_create): Handle
6744 aliases.
6745 (support_chroot_free): Free path_aliases.
6746
6747 2019-01-31 Siddhesh Poyarekar <siddhesh@sourceware.org>
6748
6749 * version.h (RELEASE): Set to "development".
6750 (VERSION): Set to "2.29.9000".
6751 * NEWS: Add section for 2.30.
6752
6753 * version.h (RELEASE): Set to "stable".
6754 (VERSION): Set to "2.29".
6755 * include/features.h (__GLIBC_MINOR__): Set to 2.29.
6756
6757 * NEWS: Add the list of bugs fixed in 2.29.
6758 * manual/contrib.texi: Update contributors list with some more
6759 names.
6760 * manual/install.texi: Update latest versions of packages
6761 tested.
6762 * INSTALL: Regenerated.
6763
6764 2019-01-25 Siddhesh Poyarekar <siddhesh@sourceware.org>
6765
6766 * po/be.po: Update translations.
6767 * po/bg.po: Likewise.
6768 * po/ca.po: Likewise.
6769 * po/cs.po: Likewise.
6770 * po/da.po: Likewise.
6771 * po/de.po: Likewise.
6772 * po/el.po: Likewise.
6773 * po/eo.po: Likewise.
6774 * po/es.po: Likewise.
6775 * po/fi.po: Likewise.
6776 * po/fr.po: Likewise.
6777 * po/gl.po: Likewise.
6778 * po/hr.po: Likewise.
6779 * po/hu.po: Likewise.
6780 * po/ia.po: Likewise.
6781 * po/id.po: Likewise.
6782 * po/it.po: Likewise.
6783 * po/ja.po: Likewise.
6784 * po/ko.po: Likewise.
6785 * po/lt.po: Likewise.
6786 * po/nb.po: Likewise.
6787 * po/nl.po: Likewise.
6788 * po/pl.po: Likewise.
6789 * po/pt_BR.po: Likewise.
6790 * po/ru.po: Likewise.
6791 * po/rw.po: Likewise.
6792 * po/sk.po: Likewise.
6793 * po/sl.po: Likewise.
6794 * po/sv.po: Likewise.
6795 * po/tr.po: Likewise.
6796 * po/uk.po: Likewise.
6797 * po/vi.po: Likewise.
6798 * po/zh_CN.po: Likewise.
6799 * po/zh_TW.po: Likewise.
6800
6801 2019-01-24 Uroš Bizjak <ubizjak@gmail.com>
6802
6803 [BZ #24130]
6804 * sysdeps/alpha/remqu.S (__remqu): Add missing restore
6805 of $f3 register on $y_is_neg path.
6806
6807 2019-01-24 Samuel Thibault <samuel.thibault@ens-lyon.org>
6808
6809 [BZ #24110]
6810 * hurd/hurdsig.c (_hurd_thread_sigstate): Set SS_DISABLE in
6811 sigaltstack.ss_flags.
6812
6813 2019-01-24 TAMUKI Shoichi <tamuki@linet.gr.jp>
6814
6815 [BZ #23758]
6816 * manual/time.texi (strftime): Document "%Ey".
6817 * time/strftime_l.c (__strftime_internal): Set the default width
6818 padding with zero of "%Ey" to 2.
6819
6820 [BZ #24096]
6821 * manual/time.texi (strftime): Document "%EC" and "%EY".
6822 * time/Makefile (tests): Add tst-strftime2.
6823 (LOCALES): Add ja_JP.UTF-8, lo_LA.UTF-8, and th_TH.UTF-8.
6824 * time/strftime_l.c (__strftime_internal): Add argument yr_spec to
6825 override padding for "%Ey".
6826 If an optional flag ('_' or '-') is specified to "%EY", interpret the
6827 "%Ey" in the subformat as if decorated with that flag.
6828 * time/tst-strftime2.c: New file.
6829
6830 2019-01-24 Adhemerval Zanella <adhemerval.zanella@linaro.org>
6831
6832 * support/xsigstack.c (MAP_NORESERVE, MAP_STACK): Define if they
6833 are not defined.
6834
6835 [BZ #24122]
6836 * elf/Makefile (tests): Add tst-audit13.
6837 (modules-names): Add tst-audit13mod1.
6838 (tst-audit13.out, LDFLAGS-tst-audit13mod1.so, tst-audit13-ENV): New
6839 rule.
6840 * elf/rtld.c (dl_main): Handle invalid audit module version.
6841 * elf/tst-audit13.c: New file.
6842 * elf/tst-audit13mod1.c: Likewise.
6843
6844 2019-01-22 Samuel Thibault <samuel.thibault@ens-lyon.org>
6845
6846 * sysdeps/mach/hurd/faccessat.c (__faccessat_common): Check for errors
6847 returned by __hurd_at_flags.
6848 * hurd/lookup-at.c (__file_name_lookup_at): When at_flags contains
6849 AT_EMPTY_PATH, call __dir_lookup and __hurd_file_name_lookup_retry
6850 directly instead of __hurd_file_name_lookup.
6851
6852 2019-01-21 Joseph Myers <joseph@codesourcery.com>
6853
6854 * scripts/build-many-glibcs.py (Context.checkout): Default
6855 binutils version to 2.32 branch.
6856
6857 2019-01-21 Florian Weimer <fweimer@redhat.com>
6858
6859 [BZ #20018]
6860 CVE-2016-10739
6861 resolv: Reject trailing characters in host names
6862 * include/arpa/inet.h (__inet_aton_exact): Declare.
6863 (inet_aton): Remove hidden prototype. No longer used internally.
6864 * nscd/gai.c (__inet_aton): Do not define.
6865 * nscd/gethstbynm3_r.c (__inet_aton): Likewise.
6866 * nss/digits_dots.c (__inet_aton): Likewise.
6867 (__nss_hostname_digits_dots_context): Call __inet_aton_exact.
6868 * resolv/Makefile (tests-internal): Add tst-inet_aton_exact.
6869 (tests): Add tst-resolv-nondecimal, tst-resolv-trailing.
6870 (tst-resolv-nondecimal): Link with libresolv.so and libpthread.
6871 (tst-resolv-trailing): Likewise.
6872 * resolv/Versions (GLIBC_PRIVATE): Export __inet_aton_exact from
6873 libc.
6874 * resolv/inet_addr.c (inet_aton_end): Remame from __inet_aton.
6875 Make static. Add endp parameter.
6876 (__inet_aton_exact): New function.
6877 (__inet_aton_ignore_trailing): New function, aliased to inet_aton.
6878 (__inet_addr): Call inet_aton_end.
6879 * resolv/res_init.c (res_vinit_1): Truncate nameserver for IPv4,
6880 not just IPv6. Call __inet_aton_exact.
6881 * resolv/tst-aton.c: Switch to <support/test-driver.c>.
6882 (tests): Make const. Add additional test cases with trailing
6883 characters.
6884 (do_test): Use array_length.
6885 * resolv/tst-inet_aton_exact.c: New file.
6886 * resolv/tst-resolv-trailing.c: Likewise.
6887 * resolv/tst-resolv-nondecimal.c: Likewise.
6888 * sysdeps/posix/getaddrinfo.c (gaih_inet): Call __inet_aton_exact.
6889
6890 2019-01-21 H.J. Lu <hongjiu.lu@intel.com>
6891
6892 [BZ# 24097]
6893 CVE-2019-6488
6894 * sysdeps/x86_64/multiarch/strlen-avx2.S: Use RSI_LP for length.
6895 Clear the upper 32 bits of RSI register.
6896 * sysdeps/x86_64/strlen.S: Use RSI_LP for length.
6897 * sysdeps/x86_64/x32/Makefile (tests): Add tst-size_t-strnlen
6898 and tst-size_t-wcsnlen.
6899 * sysdeps/x86_64/x32/tst-size_t-strnlen.c: New file.
6900 * sysdeps/x86_64/x32/tst-size_t-wcsnlen.c: Likewise.
6901
6902 2019-01-21 H.J. Lu <hongjiu.lu@intel.com>
6903
6904 [BZ# 24097]
6905 CVE-2019-6488
6906 * sysdeps/x86_64/multiarch/strcpy-avx2.S: Use RDX_LP for length.
6907 * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: Likewise.
6908 * sysdeps/x86_64/multiarch/strcpy-ssse3.S: Likewise.
6909 * sysdeps/x86_64/x32/Makefile (tests): Add tst-size_t-strncpy.
6910 * sysdeps/x86_64/x32/tst-size_t-strncpy.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/strcmp-avx2.S: Use RDX_LP for length.
6917 * sysdeps/x86_64/multiarch/strcmp-sse42.S: Likewise.
6918 * sysdeps/x86_64/strcmp.S: Likewise.
6919 * sysdeps/x86_64/x32/Makefile (tests): Add tst-size_t-strncasecmp,
6920 tst-size_t-strncmp and tst-size_t-wcsncmp.
6921 * sysdeps/x86_64/x32/tst-size_t-strncasecmp.c: New file.
6922 * sysdeps/x86_64/x32/tst-size_t-strncmp.c: Likewise.
6923 * sysdeps/x86_64/x32/tst-size_t-wcsncmp.c: Likewise.
6924
6925 2019-01-21 H.J. Lu <hongjiu.lu@intel.com>
6926
6927 [BZ# 24097]
6928 CVE-2019-6488
6929 * sysdeps/x86_64/multiarch/memset-avx512-no-vzeroupper.S: Use
6930 RDX_LP for length. Clear the upper 32 bits of RDX register.
6931 * sysdeps/x86_64/multiarch/memset-vec-unaligned-erms.S: Likewise.
6932 * sysdeps/x86_64/x32/Makefile (tests): Add tst-size_t-wmemset.
6933 * sysdeps/x86_64/x32/tst-size_t-memset.c: New file.
6934 * sysdeps/x86_64/x32/tst-size_t-wmemset.c: Likewise.
6935
6936 2019-01-21 H.J. Lu <hongjiu.lu@intel.com>
6937
6938 [BZ# 24097]
6939 CVE-2019-6488
6940 * sysdeps/x86_64/memrchr.S: Use RDX_LP for length.
6941 * sysdeps/x86_64/multiarch/memrchr-avx2.S: Likewise.
6942 * sysdeps/x86_64/x32/Makefile (tests): Add tst-size_t-memrchr.
6943 * sysdeps/x86_64/x32/tst-size_t-memrchr.c: New file.
6944
6945 2019-01-21 H.J. Lu <hongjiu.lu@intel.com>
6946
6947 [BZ# 24097]
6948 CVE-2019-6488
6949 * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Use RDX_LP for
6950 length. Clear the upper 32 bits of RDX register.
6951 * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Likewise.
6952 * sysdeps/x86_64/multiarch/memmove-avx512-no-vzeroupper.S:
6953 Likewise.
6954 * sysdeps/x86_64/multiarch/memmove-vec-unaligned-erms.S:
6955 Likewise.
6956 * sysdeps/x86_64/x32/Makefile (tests): Add tst-size_t-memcpy.
6957 tst-size_t-wmemchr.
6958 * sysdeps/x86_64/x32/tst-size_t-memcpy.c: New file.
6959
6960 2019-01-21 H.J. Lu <hongjiu.lu@intel.com>
6961
6962 [BZ# 24097]
6963 CVE-2019-6488
6964 * sysdeps/x86_64/multiarch/memcmp-avx2-movbe.S: Use RDX_LP for
6965 length. Clear the upper 32 bits of RDX register.
6966 * sysdeps/x86_64/multiarch/memcmp-sse4.S: Likewise.
6967 * sysdeps/x86_64/multiarch/memcmp-ssse3.S: Likewise.
6968 * sysdeps/x86_64/x32/Makefile (tests): Add tst-size_t-memcmp and
6969 tst-size_t-wmemcmp.
6970 * sysdeps/x86_64/x32/tst-size_t-memcmp.c: New file.
6971 * sysdeps/x86_64/x32/tst-size_t-wmemcmp.c: Likewise.
6972
6973 2019-01-21 H.J. Lu <hongjiu.lu@intel.com>
6974
6975 [BZ# 24097]
6976 CVE-2019-6488
6977 * sysdeps/x86_64/memchr.S: Use RDX_LP for length. Clear the
6978 upper 32 bits of RDX register.
6979 * sysdeps/x86_64/multiarch/memchr-avx2.S: Likewise.
6980 * sysdeps/x86_64/x32/Makefile (tests): Add tst-size_t-memchr and
6981 tst-size_t-wmemchr.
6982 * sysdeps/x86_64/x32/test-size_t.h: New file.
6983 * sysdeps/x86_64/x32/tst-size_t-memchr.c: Likewise.
6984 * sysdeps/x86_64/x32/tst-size_t-wmemchr.c: Likewise.
6985
6986 2019-01-18 Florian Weimer <fweimer@redhat.com>
6987
6988 [BZ #24112]
6989 resolv: Do not send queries for non-host-names in nss_dns.
6990 * resolv/nss_dns/dns-host.c (check_name): New function.
6991 (_nss_dns_gethostbyname2_r): Use it.
6992 (_nss_dns_gethostbyname_r): Likewise.
6993 (_nss_dns_gethostbyname4_r): Likewise.
6994
6995 2019-01-21 Florian Weimer <fweimer@redhat.com>
6996
6997 * resolv/inet_addr.c: Reformat to GNU style.
6998 (__inet_addr, __inet_aton): Update comment.
6999
7000 2019-01-18 Florian Weimer <fweimer@redhat.com>
7001
7002 malloc: Revert commit 6923f6db1e688dedcf3a6556da76e0bf24a41872
7003 ("malloc: Use current (C11-style) atomics for fastbin access").
7004 This commit introduces a substantial performance regression on
7005 POWER and Aarch64.
7006 * malloc/malloc.c (fastbin_push_entry, fastbin_pop_entry): Remove.
7007 (REMOVE_FB): Define.
7008 (_int_malloc): Use it and reindent.
7009 (_int_free): Use CAS loop with
7010 catomic_compare_and_exchange_val_rel.
7011 (malloc_consolidate): Use atomic_exchange_acq.
7012
7013
7014 2019-01-18 H.J. Lu <hongjiu.lu@intel.com>
7015
7016 * signal/Makefile (LDFLAGS-tst-minsigstksz-1): New. Set to
7017 -Wl,-z,now.
7018 (LDFLAGS-tst-minsigstksz-2): Likewise.
7019 (LDFLAGS-tst-minsigstksz-3): Likewise.
7020 (LDFLAGS-tst-minsigstksz-3a): Likewise.
7021 (LDFLAGS-tst-minsigstksz-4): Likewise.
7022
7023 2019-01-18 TAMUKI Shoichi <tamuki@linet.gr.jp>
7024
7025 * manual/time.texi (strftime): Fix the wording to "alternative" rather
7026 than "alternate".
7027
7028 2019-01-16 Paul A. Clarke <pc@us.ibm.com>
7029
7030 * sysdeps/powerpc/powerpc64/multiarch/strncmp.c: Fix #ifdef.
7031
7032 2019-01-16 Zack Weinberg <zackw@panix.com>
7033
7034 * support/xsignal.h (xalloc_sigstack, xfree_sigstack)
7035 (xget_sigstack_location): New test support functions.
7036 * support/xsigstack.c: New file, implementing them.
7037 * support/tst-xsigstack.c: New test for them.
7038 * support/Makefile: Update.
7039
7040 * signal/tst-minsigstksz-1.c
7041 * signal/tst-minsigstksz-2.c
7042 * signal/tst-minsigstksz-3.c
7043 * signal/tst-minsigstksz-3a.c
7044 * signal/tst-minsigstksz-4.c: New tests.
7045 * signal/Makefile: Run them.
7046
7047 2019-01-16 Siddhesh Poyarekar <siddhesh@sourceware.org>
7048
7049 * po/libc.pot: Regenerate.
7050
7051 2019-01-15 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
7052
7053 * math/libm-test-fma.inc (fma_test_data): Set
7054 XFAIL_ROUNDING_IBM128_LIBGCC to more tests.
7055
7056 2019-01-15 Rogerio A. Cardoso <rcardoso@linux.ibm.com>
7057
7058 * sysdeps/powerpc/powerpc64/tst-ucontext-ppc64-vscr.c:
7059 (do_test): Changed __vector __int128_t to __vector unsigned int.
7060
7061 2019-01-14 Leonardo Sandoval <leonardo.sandoval.gonzalez@intel.com>
7062
7063 * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
7064 strcat-avx2, strncat-avx2, strcpy-avx2, strncpy-avx2,
7065 stpcpy-avx2 and stpncpy-avx2.
7066 * sysdeps/x86_64/multiarch/ifunc-impl-list.c:
7067 (__libc_ifunc_impl_list): Add tests for __strcat_avx2,
7068 __strncat_avx2, __strcpy_avx2, __strncpy_avx2, __stpcpy_avx2
7069 and __stpncpy_avx2.
7070 * sysdeps/x86_64/multiarch/{ifunc-unaligned-ssse3.h =>
7071 ifunc-strcpy.h}: rename header for a more generic name.
7072 * sysdeps/x86_64/multiarch/ifunc-strcpy.h:
7073 (IFUNC_SELECTOR): Return OPTIMIZE (avx2) on AVX 2 machines if
7074 AVX unaligned load is fast and vzeroupper is preferred.
7075 * sysdeps/x86_64/multiarch/stpcpy-avx2.S: New file.
7076 * sysdeps/x86_64/multiarch/stpncpy-avx2.S: Likewise.
7077 * sysdeps/x86_64/multiarch/strcat-avx2.S: Likewise.
7078 * sysdeps/x86_64/multiarch/strcpy-avx2.S: Likewise.
7079 * sysdeps/x86_64/multiarch/strncat-avx2.S: Likewise.
7080 * sysdeps/x86_64/multiarch/strncpy-avx2.S: Likewise.
7081
7082 2019-01-12 Dmitry V. Levin <ldv@altlinux.org>
7083
7084 * argp/argp-help.c: Fix typo in comment.
7085 * misc/sys/cdefs.h: Likewise.
7086 * posix/regexec.c (sift_states_iter_mb): Likewise.
7087 * socket/sockatmark.c: Likewise.
7088 * socket/sys/socket.h: Likewise.
7089 * sysdeps/ia64/fpu/libm_sincos_large.S: Likewise.
7090 * sysdeps/ia64/fpu/libm_sincosl.S: Likewise.
7091 * sysdeps/ia64/fpu/s_cosl.S: Likewise.
7092 * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Likewise.
7093 * sysdeps/unix/sockatmark.c: Likewise.
7094 * time/strptime_l.c: Likewise.
7095
7096 2019-01-11 TAMUKI Shoichi <tamuki@linet.gr.jp>
7097
7098 * time/strftime_l.c (__strftime_internal): Use "L_" macros, also add a
7099 missing space after the cast of "_NL_CURRENT".
7100
7101 2019-01-11 Rogerio A. Cardoso <rcardoso@linux.ibm.com>
7102
7103 * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h (vscr_t): Added
7104 ifdef to fix read of VSCR.
7105 * sysdeps/powerpc/powerpc64/Makefile [$subdir == stdlib]: Add
7106 tst-ucontext-ppc64-vscr.c to test list.
7107 * sysdeps/powerpc/powerpc64/tst-ucontext-ppc64-vscr.c: New test file.
7108
7109 2019-01-10 Andreas K. Hüttel <dilfridge@gentoo.org>
7110
7111 * resolv/tst-resolv-ai_idn-common.c (response): Avoid switch
7112 fall-through.
7113
7114 2019-01-09 Jim Wilson <jimw@sifive.com>
7115
7116 * sysdeps/riscv/rv64/rvd/libm-test-ulps: Update.
7117
7118 2019-01-09 Wilco Dijkstra <wdijkstr@arm.com>
7119
7120 * manual/tunables.texi (glibc.cpu.name): Add ares tunable.
7121 * sysdeps/aarch64/multiarch/memcpy.c (__libc_memcpy): Use
7122 __memcpy_falkor for ares.
7123 * sysdeps/unix/sysv/linux/aarch64/cpu-features.h (IS_ARES):
7124 Add new define.
7125 * sysdeps/unix/sysv/linux/aarch64/cpu-features.c (cpu_list):
7126 Add ares cpu.
7127
7128 2019-01-07 H.J. Lu <hongjiu.lu@intel.com>
7129
7130 [BZ #24066]
7131 * soft-fp/extenddftf2.c: Use "_FP_W_TYPE_SIZE < 64" to check if
7132 4_FP_W_TYPEs are used for IEEE quad precision.
7133 * soft-fp/extendhftf2.c: Likewise.
7134 * soft-fp/extendsftf2.c: Likewise.
7135 * soft-fp/extendxftf2.c: Likewise.
7136 * soft-fp/trunctfdf2.c: Likewise.
7137 * soft-fp/trunctfhf2.c: Likewise.
7138 * soft-fp/trunctfsf2.c: Likewise.
7139 * soft-fp/trunctfxf2.c: Likewise.
7140 * sysdeps/alpha/ots_cvttx.c: Likewise.
7141 * sysdeps/alpha/ots_cvtxt.c: Likewise.
7142 * sysdeps/ieee754/soft-fp/s_daddl.c: Likewise.
7143 * sysdeps/ieee754/soft-fp/s_ddivl.c: Likewise.
7144 * sysdeps/ieee754/soft-fp/s_dmull.c: Likewise.
7145 * sysdeps/ieee754/soft-fp/s_dsubl.c: Likewise.
7146 * sysdeps/ieee754/soft-fp/s_faddl.c: Likewise.
7147 * sysdeps/ieee754/soft-fp/s_fdivl.c: Likewise.
7148 * sysdeps/ieee754/soft-fp/s_fmull.c: Likewise.
7149 * sysdeps/ieee754/soft-fp/s_fsubl.c: Likewise.
7150 * sysdeps/sparc/sparc32/q_dtoq.c: Likewise.
7151 * sysdeps/sparc/sparc32/q_qtod.c: Likewise.
7152 * sysdeps/sparc/sparc32/q_qtos.c: Likewise.
7153 * sysdeps/sparc/sparc32/q_stoq.c: Likewise.
7154 * sysdeps/sparc/sparc64/qp_dtoq.c: Likewise.
7155 * sysdeps/sparc/sparc64/qp_qtod.c: Likewise.
7156 * sysdeps/sparc/sparc64/qp_qtos.c: Likewise.
7157 * sysdeps/sparc/sparc64/qp_stoq.c: Likewise.
7158
7159 2019-01-07 Aurelien Jarno <aurelien@aurel32.net>
7160
7161 [BZ #24024]
7162 * Makeconfig: Build libm with -fno-math-errno but build the remaining
7163 code with -fmath-errno.
7164 * string/Makefile [$(build-shared)] (tests): Add test-strerror-errno.
7165 [$(build-shared)] (LDLIBS-test-strerror-errno): New variable.
7166 * string/test-strerror-errno.c: New file.
7167
7168 2019-01-07 Aurelien Jarno <aurelien@aurel32.net>
7169
7170 [BZ #24046]
7171 * localedata/locales/en_US (date_fmt): Add, set to
7172 "%a %d %b %Y %r %Z".
7173
7174 2019-01-07 Florian Weimer <fweimer@redhat.com>
7175
7176 [BZ #24063]
7177 * manual/arith.texi (Math Error Reporting): Use @code{errno}
7178 instead of @var{errno}.
7179 (Parsing of Integers): Likewise.
7180 (Parsing of Floats): Likewise.
7181 * manual/filesys.texi (Working with Directory Trees): Likewise.
7182 (Temporary Files): Likewise.
7183 * manual/job.texi (Terminal Access Functions): Likewise.
7184 * manual/llio.texi (Synchronizing I/O): Likewise.
7185 * manual/math.texi (SVID Random): Likewise.
7186 * manual/message.texi (The catgets Functions): Likewise.
7187 (Translation with gettext): Likewise.
7188 (Locating gettext catalog): Likewise.
7189 (Charset conversion in gettext): Likewise.
7190 * manual/nss.texi (NSS Module Function Internals): Likewise.
7191 * manual/search.texi (Hash Search Function): Likewise.
7192 * manual/setjmp.texi (System V contexts): Likewise.
7193 * manual/time.texi (Sleeping): Likewise.
7194 * manual/users.texi (Lookup User): Likewise.
7195 (Lookup Group): Likewise.
7196
7197 2019-01-05 Adhemerval Zanella <adhemerval.zanella@linaro.org>
7198
7199 * posix/tst-spawn.c (do_test): Extend spargv to new required size and
7200 fix typo.
7201
7202 2019-01-04 Martin Jansa <Martin.Jansa@gmail.com>
7203
7204 [BZ #19444]
7205 * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_jn): Use
7206 __builtin_unreachable for default case in switch.
7207 (__ieee754_yn): Likewise.
7208 * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_jnl): Likewise.
7209 (__ieee754_ynl): Likewise.
7210 * sysdeps/ieee754/ldbl-128/e_jnl.c (__ieee754_jnl): Likewise.
7211 (__ieee754_ynl): Likewise.
7212 * sysdeps/ieee754/ldbl-128ibm/e_jnl.c (__ieee754_jnl): Likewise.
7213 (__ieee754_ynl): Likewise.
7214
7215 2019-01-04 Szabolcs Nagy <szabolcs.nagy@arm.com>
7216
7217 * manual/maint.texi: Use @{ and @}.
7218
7219 2019-01-04 Florian Weimer <fweimer@redhat.com>
7220
7221 * sysdeps/unix/sysv/linux/tst-ttyname.c (adjust_file_limit): New
7222 function.
7223 (do_in_chroot_1): Call it.
7224 (run_chroot_tests):
7225 Improve error reporting in case it is not possible to create a
7226 collision for the PTY name required by the test.
7227
7228 2019-01-03 Adhemerval Zanella <adhemerval.zanella@linaro.org>
7229
7230 * nptl/pthread_join_common.c (__pthread_timedjoin_ex): Use
7231 lll_wait_tid with timeout.
7232 * nptl/sem_wait.c (__old_sem_wait): Use lll_futex_wait_cancel.
7233 * sysdeps/nptl/aio_misc.h (AIO_MISC_WAIT): Use
7234 futex_reltimed_wait_cancelable for cancelabla mode.
7235 * sysdeps/nptl/gai_misc.h (GAI_MISC_WAIT): Likewise.
7236 * sysdeps/posix/open64.c (__libc_open64): Do not call cancelation
7237 macros.
7238 * sysdeps/posix/sigwait.c (__sigwait): Likewise.
7239 * sysdeps/posix/waitid.c (__sigwait): Likewise.
7240 * sysdeps/unix/sysdep.h (__SYSCALL_CANCEL_CALL,
7241 SYSCALL_CANCEL_NCS): New macro.
7242 * sysdeps/nptl/lowlevellock.h (lll_wait_tid): Add timeout argument.
7243 (lll_timedwait_tid): Remove macro.
7244 * sysdeps/unix/sysv/linux/i386/lowlevellock.h (lll_wait_tid):
7245 Likewise.
7246 (lll_timedwait_tid): Likewise.
7247 * sysdeps/unix/sysv/linux/sparc/lowlevellock.h (lll_wait_tid):
7248 Likewise.
7249 (lll_timedwait_tid): Likewise.
7250 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h (lll_wait_tid):
7251 Likewise.
7252 (lll_timedwait_tid): Likewise.
7253 * sysdeps/unix/sysv/linux/clock_nanosleep.c (__clock_nanosleep):
7254 Use INTERNAL_SYSCALL_CANCEL.
7255 * sysdeps/unix/sysv/linux/futex-internal.h
7256 (futex_reltimed_wait_cancelable): Use LIBC_CANCEL_{ASYNC,RESET}
7257 instead of __pthread_{enable,disable}_asynccancel.
7258 * sysdeps/unix/sysv/linux/lowlevellock-futex.h
7259 (lll_futex_wait_cancel): New macro.
7260
7261 * sysdeps/i386/nptl/tls.h (THREAD_ATOMIC_CMPXCHG_VAL,
7262 THREAD_ATOMIC_AND, THREAD_ATOMIC_BIT_SET): Remove macros.
7263
7264 * sysdeps/x86_64/nptl/tls.h (THREAD_ATOMIC_CMPXCHG_VAL,
7265 THREAD_ATOMIC_AND, THREAD_ATOMIC_BIT_SET): Remove macros.
7266
7267 * debug/tst-backtrace5.c (handle_signal): Avoid cancellable wrappers
7268 in backtrace analysis.
7269 * nptl/tst-cancel4.c (tf_write): Handle cancelled syscall with
7270 side-effects.
7271 (tf_send): Likewise.
7272
7273 * io/creat.c (LIBC_CANCEL_HANDLED): Remove macro.
7274 * io/ppoll.c (LIBC_CANCEL_HANDLED): Likewise.
7275 * misc/pselect.c (LIBC_CANCEL_HANDLED): Likewise.
7276 * nptl/pthreadP.h (LIBC_CANCEL_HANDLED): Likewise.
7277 * sysdeps/generic/sysdep-cancel.h (LIBC_CANCEL_HANDLED): Likewise.
7278 * sysdeps/mach/hurd/sysdep-cancel.h (LIBC_CANCEL_HANDLED): Likewise.
7279 * sysdeps/posix/pause.c (LIBC_CANCEL_HANDLED): Likewise.
7280 * sysdeps/posix/sigpause.c (LIBC_CANCEL_HANDLED): Likewise.
7281 * sysdeps/unix/sysv/linux/creat.c (LIBC_CANCEL_HANDLED): Likewise.
7282 * sysdeps/unix/sysv/linux/creat64.c (LIBC_CANCEL_HANDLED): Likewise.
7283 * sysdeps/unix/sysv/linux/sigwait.c (LIBC_CANCEL_HANDLED): Likewise.
7284 * sysdeps/unix/sysv/linux/sigwaitinfo.c (LIBC_CANCEL_HANDLED):
7285 Likewise.
7286 * nptl/Makefile [$(run-built-tests) = yes] (tests-special): Remove
7287 tst-cancel-wrappers.sh.
7288 (generated): Remove tst-cancel-wrappers.out.
7289 (tst-cancel-wrappers.out): Remove rule.
7290 * nptl/tst-cancel-wrappers.sh: Remove file.
7291
7292 2019-01-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
7293
7294 * sysdeps/unix/sysv/linux/aarch64/bits/hwcap.h: Add comment.
7295 * sysdeps/unix/sysv/linux/aarch64/dl-procinfo.c (_DL_HWCAP_COUNT):
7296 Update.
7297
7298 2019-01-03 Adhemerval Zanella <adhemerval.zanella@linaro.org>
7299
7300 [BZ #23640]
7301 * posix/tst-spawn.c (do_prepare, handle_restart, do_test): Add
7302 posix_spawn_file_actions_adddup2 test to check O_CLOCEXEC reset.
7303 * sysdeps/unix/sysv/linux/spawni.c (__spawni_child): Add
7304 close-on-exec reset for adddup2 file action.
7305 * sysdeps/posix/spawni.c (__spawni_child): Likewise.
7306
7307 2019-01-03 Zack Weinberg <zackw@panix.com>
7308
7309 * include/features.h (__GLIBC_USE_DEPRECATED_SCANF): New __GLIBC_USE
7310 parameter. Only use deprecated scanf when __USE_GNU is defined
7311 and __STDC_VERSION__ is less than 199901L or __cplusplus is less
7312 than 201103L, whichever is relevant for the language being compiled.
7313
7314 * libio/stdio.h, libio/bits/stdio-ldbl.h: Decide whether to redirect
7315 scanf, fscanf, sscanf, vscanf, vfscanf, and vsscanf to their
7316 __isoc99_ variants based only on __GLIBC_USE (DEPRECATED_SCANF).
7317 * wcsmbs/wchar.h: wcsmbs/bits/wchar-ldbl.h: Likewise for
7318 wscanf, fwscanf, swscanf, vwscanf, vfwscanf, and vswscanf.
7319
7320 * libio/iovsscanf.c
7321 * libio/fwscanf.c
7322 * libio/iovswscanf.c
7323 * libio/swscanf.c
7324 * libio/vscanf.c
7325 * libio/vwscanf.c
7326 * libio/wscanf.c
7327 * stdio-common/fscanf.c
7328 * stdio-common/scanf.c
7329 * stdio-common/vfscanf.c
7330 * stdio-common/vfwscanf.c
7331 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c
7332 * sysdeps/ieee754/ldbl-opt/nldbl-fscanf.c
7333 * sysdeps/ieee754/ldbl-opt/nldbl-fwscanf.c
7334 * sysdeps/ieee754/ldbl-opt/nldbl-iovfscanf.c
7335 * sysdeps/ieee754/ldbl-opt/nldbl-scanf.c
7336 * sysdeps/ieee754/ldbl-opt/nldbl-sscanf.c
7337 * sysdeps/ieee754/ldbl-opt/nldbl-swscanf.c
7338 * sysdeps/ieee754/ldbl-opt/nldbl-vfscanf.c
7339 * sysdeps/ieee754/ldbl-opt/nldbl-vfwscanf.c
7340 * sysdeps/ieee754/ldbl-opt/nldbl-vscanf.c
7341 * sysdeps/ieee754/ldbl-opt/nldbl-vsscanf.c
7342 * sysdeps/ieee754/ldbl-opt/nldbl-vswscanf.c
7343 * sysdeps/ieee754/ldbl-opt/nldbl-vwscanf.c
7344 * sysdeps/ieee754/ldbl-opt/nldbl-wscanf.c:
7345 Override __GLIBC_USE_DEPRECATED_SCANF to 1.
7346
7347 * stdio-common/sscanf.c: Likewise. Remove ldbl_hidden_def for __sscanf.
7348 * stdio-common/isoc99_sscanf.c: Add libc_hidden_def for __isoc99_sscanf.
7349 * include/stdio.h: Provide libc_hidden_proto for __isoc99_sscanf,
7350 not sscanf.
7351 [!__GLIBC_USE (DEPRECATED_SCANF)]: Define sscanf as __isoc99_scanf
7352 with a preprocessor macro.
7353
7354 * stdio-common/bug21.c, stdio-common/scanf14.c:
7355 Use %ms instead of %as, %mS instead of %aS, %m[] instead of %a[];
7356 remove DIAG_IGNORE_NEEDS_COMMENT for -Wformat.
7357 * stdio-common/scanf16.c: Likewise. Add __attribute__ ((format (scanf)))
7358 to xscanf, xfscanf, xsscanf.
7359
7360 * stdio-common/scanf14a.c: New copy of scanf14.c which still uses
7361 %as, %aS, %a[]. Remove DIAG_IGNORE_NEEDS_COMMENT for -Wformat.
7362 * stdio-common/scanf16a.c: New copy of scanf16.c which still uses
7363 %as, %aS, %a[]. Add __attribute__ ((format (scanf))) to xscanf,
7364 xfscanf, xsscanf.
7365 * stdio-common/scanf15.c, stdio-common/scanf17.c: No need to
7366 override feature selection macros or provide definitions of u_char etc.
7367 * stdio-common/Makefile (tests): Add scanf14a and scanf16a.
7368 (CFLAGS-scanf15.c, CFLAGS-scanf17.c): Remove.
7369 (CFLAGS-scanf14a.c, CFLAGS-scanf16a.c): New. Compile these files
7370 with -std=gnu89.
7371
7372 2019-01-03 Adhemerval Zanella <adhemerval.zanella@linaro.org>
7373
7374 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
7375 bits/termios-misc.h.
7376 * sysdeps/unix/sysv/linux/alpha/bits/termios.h: Remove file.
7377 * sysdeps/unix/sysv/linux/mips/bits/termios.h: Likewise.
7378 * sysdeps/unix/sysv/linux/sparc/bits/termios.h: Likewise.
7379 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
7380 * sysdeps/unix/sysv/linux/bits/termios-misc.h: New file.
7381 * sysdeps/unix/sysv/linux/bits/termios.h: Include termios-misc.h.
7382
7383 * sysdeps/unix/sysv/linux/powerpc/bits/termios-misc.h: New file.
7384 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h [__USE_MISC]
7385 (struct sgtty, struct tchars, struct ltchars, TIOCPKT_DATA,
7386 TIOCPKT_FLUSHREAD, TIOCPKT_FLUSHWRITE, TIOCPKT_STOP, TIOCPKT_START,
7387 TIOCPKT_NOSTOP, TIOCPKT_DOSTOP, _VINTR, _VQUIT, _VERASE, _VKILL,
7388 _VEOF, _VMIN, _VEOL, _VTIME, _VEOL2, _VSWTC): Move to
7389 termios-misc.h.
7390 * sysdeps/unix/sysv/linux/powerpc/Makefile [$subdir == misc]
7391 (sysdep_headers): Add termios-misc.h.
7392
7393 * sysdeps/unix/sysv/linux/bits/termios.h (_IOT_termios): Remove.
7394 * sysdeps/unix/sysv/linux/alpha/bits/termios.h: Likewise.
7395 * sysdeps/unix/sysv/linux/mips/bits/termios.h: Likewise.
7396
7397 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
7398 termios-tcflow.h.
7399 * sysdeps/unix/sysv/linux/bits/termios-tcflow.h: New file.
7400 * sysdeps/unix/sysv/linux/mips/bits/termios-tcflow.h: Likewise.
7401 * sysdeps/unix/sysv/linux/bits/termios.h (TCSANOW, TCSADRAIN,
7402 TCSAFLUSH): Move to termios-tcflow.h.
7403 * sysdeps/unix/sysv/linux/alpha/bits/termios.h: Likewise.
7404 * sysdeps/unix/sysv/linux/mips/bits/termios.h: Likewise.
7405 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
7406 * sysdeps/unix/sysv/linux/sparc/bits/termios.h: Likewise.
7407
7408 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
7409 termios-c_lflag.h.
7410 * sysdeps/unix/sysv/linux/bits/termios-c_lflag.h: New file.
7411 * sysdeps/unix/sysv/linux/alpha/bits/termios-c_lflag.h: Likewise.
7412 * sysdeps/unix/sysv/linux/mips/bits/termios-c_lflag.h: Likewise.
7413 * sysdeps/unix/sysv/linux/powerpc/bits/termios-c_lflag.h: Likewise.
7414 * sysdeps/unix/sysv/linux/bits/termios.h (ISIG, ISCANON, ECHO, ECHOE,
7415 ECHOK, ECHONL, NOFLSH, TOSTOP, IEXTEN): Move to termios-c_lflag.h.
7416 [__USE_MISC || (__USE_XOPEN && !__USE_XOPEN2K)] (XCASE): Likewise.
7417 [__USE_MISC] (ECHOCTL, ECHOPRT, ECHOKE, FLUSHO, PENDIN, EXTPROC):
7418 Likewise.
7419 * sysdeps/unix/sysv/linux/alpha/bits/termios.h: Likewise.
7420 * sysdeps/unix/sysv/linux/mips/bits/termios.h: Likewise.
7421 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
7422 * sysdeps/unix/sysv/linux/sparc/bits/termios.h: Likewise.
7423
7424 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
7425 termios-c_cflag.h.
7426 * sysdeps/unix/sysv/linux/bits/termios-c_cflag.h: New file.
7427 * sysdeps/unix/sysv/linux/alpha/bits/termios-c_cflag.h: Likewise.
7428 * sysdeps/unix/sysv/linux/powerpc/bits/termios-c_cflag.h: Likewise.
7429 * sysdeps/unix/sysv/linux/bits/termios.h (CSIZE, CS5, CS6, CS7, CS8,
7430 CSTOPB, CREAD, PARENB, PARODD, HUPCL, CLOCAL): Move to
7431 termios-c_cflag.h.
7432 * sysdeps/unix/sysv/linux/alpha/bits/termios.h: Likewise.
7433 * sysdeps/unix/sysv/linux/mips/bits/termios.h: Likewise.
7434 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
7435 * sysdeps/unix/sysv/linux/sparc/bits/termios.h: Likewise.
7436
7437 [BZ #23783]
7438 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
7439 termios-baud.h.
7440 * sysdeps/unix/sysv/linux/bits/termios-baud.h: New file.
7441 * sysdeps/unix/sysv/linux/alpha/bits/termios-baud.h: Likewise.
7442 * sysdeps/unix/sysv/linux/powerpc/bits/termios-baud.h: Likewise.
7443 * sysdeps/unix/sysv/linux/sparc/bits/termios-baud.h: Likewise.
7444 * sysdeps/unix/sysv/linux/alpha/bits/termios.h (B57600, B115200,
7445 B230400, B460800, B500000, B576000, B921600, B1000000, B1152000,
7446 B1500000, B2000000, B2500000, B3000000, B3500000, B4000000,
7447 __MAX_BAUD): Move to termios-baud.h.
7448 [__USE_MISC] (CBAUD, CBAUDEX): Likewise.
7449 * sysdeps/unix/sysv/linux/bits/termios.h: Likewise.
7450 * sysdeps/unix/sysv/linux/mips/bits/termios.h: Likewise.
7451 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
7452 * sysdeps/unix/sysv/linux/sparc/bits/termios.h: Likewise.
7453
7454 * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Add
7455 termios-c_oflag.h.
7456 * sysdeps/unix/sysv/linux/bits/termios-c_oflag.h: New file.
7457 * sysdeps/unix/sysv/linux/alpha/bits/termios-c_oflag.h: Likewise.
7458 * sysdeps/unix/sysv/linux/powerpc/bits/termios-c_oflag.h: Likewise.
7459 * sysdeps/unix/sysv/linux/sparc/bits/termios-c_oflag.h: Likewise.
7460 * sysdeps/unix/sysv/linux/bits/termios.h (OPOST, OLCUC, ONLCR, OCRNL,
7461 ONOCR, ONLRET, OFILL, OFDEL, VTDLY, VT0, VT1): Move to
7462 termios-c_oflag.h.
7463 [__USE_MISC || __USE_XOPEN] (NLDLY, NL0, NL1, CRDLY, CR0, CR1, CR2,
7464 CR3, TABDLY, TAB0, TAB1, TAB2, TAB3, BSDLY, BS0, BS1, FFDLY, FF0,
7465 FFR1): Likewise.
7466 [USE_MISC] (XTABS): Likewise.
7467 * sysdeps/unix/sysv/linux/alpha/bits/termios.h: Likewise.
7468 * sysdeps/unix/sysv/linux/mips/bits/termios.h: Likewise.
7469 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
7470 * sysdeps/unix/sysv/linux/sparc/bits/termios.h Likewise.
7471
7472 * sysdeps/unix/sysv/linux/Makefile (sysdeps_headers): Add
7473 termios-c_iflag.h.
7474 * sysdeps/unix/sysv/linux/bits/termios-c_iflag.h: New file.
7475 * sysdeps/unix/sysv/linux/alpha/bits/termios-c_iflag.h: Likewise.
7476 * sysdeps/unix/sysv/linux/powerpc/bits/termios-c_iflag.h: Likewise.
7477 * sysdeps/unix/sysv/linux/bits/termios.h (IGNBRK, BRKINT, IGNPAR, PARMRK,
7478 INPCK, ISTRIP, INLCR, IGNCR, ICRNL, IXON, IXOFF, IXANY, IUCLC, IMAXBEL,
7479 IUTF8): Move to termios-c_iflag.h.
7480 * sysdeps/unix/sysv/linux/alpha/bits/termios.h: Likewise.
7481 * sysdeps/unix/sysv/linux/mips/bits/termios.h: Likewise.
7482 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
7483 * sysdeps/unix/sysv/linux/sparc/bits/termios.h: Likewise.
7484
7485 * sysdeps/unix/sysv/linux/Makefile (sysdeps_headers): Add
7486 termios-cc.h.
7487 * sysdeps/unix/sysv/linux/bits/termios-c_cc.h: Likewise.
7488 * sysdeps/unix/sysv/linux/alpha/bits/termios-c_cc.h: New file.
7489 * sysdeps/unix/sysv/linux/mips/bits/termios-c_cc.h: Likewise.
7490 * sysdeps/unix/sysv/linux/powerpc/bits/termios-c_cc.h: Likewise.
7491 * sysdeps/unix/sysv/linux/sparc/bits/termios-c_cc.h: Likewise.
7492 * sysdeps/unix/sysv/linux/bits/termios.h (VINTR, VQUIT, VERASE,
7493 VKILL, VEOF, VTIME, VMIN, VSWTC, VSTART, VSTOP, VSUSP, VEOL,
7494 VREPRINT, VDISCARD, VWERASE, VLNEXT, VEOLF2): Move to termios-cc.h.
7495 * sysdeps/unix/sysv/linux/alpha/bits/termios.h: Likewise.
7496 * sysdeps/unix/sysv/linux/mips/bits/termios.h: Likewise.
7497 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
7498 * sysdeps/unix/sysv/linux/sparc/bits/termios.h: Likewise.
7499
7500 * sysdeps/unix/sysv/linux/alpha/bits/termios-struct.h: New file.
7501 * sysdeps/unix/sysv/linux/bits/termios-struct.h: Likewise.
7502 * sysdeps/unix/sysv/linux/mips/bits/termios-struct.h: Likewise.
7503 * sysdeps/unix/sysv/linux/sparc/bits/termios-struct.h: Likewise.
7504 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
7505 termios-struct.h.
7506 * sysdeps/unix/sysv/linux/bits/termios.h (struct termios): Move to
7507 termios-struct.h.
7508 * sysdeps/unix/sysv/linux/alpha/bits/termios.h (struct termios):
7509 Likewise.
7510 * sysdeps/unix/sysv/linux/mips/bits/termios.h (struct termios):
7511 Likewise.
7512 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h (struct termios):
7513 Likewise.
7514 * sysdeps/unix/sysv/linux/sparc/bits/termios.h (struct termios):
7515 Likewise.
7516 * sysdeps/unix/sysv/linux/kernel_termios.h (_HAVE_C_ISPEED,
7517 _HAVE_C_OSPEED): Define.
7518 * sysdeps/unix/sysv/linux/mips/kernel_termios.h (_HAVE_C_ISPEED,
7519 _HAVE_C_OSPEED): Likewise.
7520 * sysdeps/unix/sysv/linux/sparc/kernel_termios.h (_HAVE_C_ISPEED,
7521 _HAVE_C_OSPEED): Likewise.
7522 * sysdeps/unix/sysv/linux/speed.c [_HAVE_STRUCT_TERMIOS_C_OSPEED]
7523 (cfsetospeed): Check for define value instead of existence.
7524 [_HAVE_STRUCT_TERMIOS_C_ISPEED] (cfsetispeed): Likewise.
7525 * sysdeps/unix/sysv/linux/tcgetattr.c [_HAVE_STRUCT_TERMIOS_C_ISPEED
7526 && _HAVE_C_ISPEED] (__tcgetattr): Likewise.
7527 * sysdeps/unix/sysv/linux/tcsetattr.c [_HAVE_STRUCT_TERMIOS_C_ISPEED
7528 && _HAVE_C_ISPEED] (__tcsetattr): Likewise.
7529
7530 [BZ #17783]
7531 * sysdeps/unix/sysv/linux/bits/termios.h [__USE_MISC] (TIOCSER_TEMT):
7532 Define.
7533 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h [__USE_MISC]
7534 (TIOCSER_TEMT): Likewise.
7535 * sysdeps/unix/sysv/linux/sparc/bits/termios.h [__USE_MISC]
7536 (TEOCSER_TEMT): Likewise.
7537
7538 2019-01-02 PanderMusubi <pander@users.sourceforge.net>
7539
7540 [BZ #24011]
7541 * localedata/locales/bs_BA (LC_TELEPHONE): Fix a typo in comment.
7542
7543 2019-01-02 Joseph Myers <joseph@codesourcery.com>
7544
7545 * sysdeps/powerpc/nofpu/libm-test-ulps: Update.
7546
7547 2019-01-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
7548
7549 * sysdeps/htl/pt-barrierattr-setpshared.c
7550 (pthread_barrierattr_setpshared): Add stub warning.
7551 * sysdeps/htl/pt-condattr-setpshared.c
7552 (pthread_condattr_setpshared): Likewise.
7553 * sysdeps/htl/pt-mutexattr-setpshared.c
7554 (pthread_mutexattr_setpshared): Likewise.
7555 * sysdeps/htl/pt-rwlockattr-setpshared.c
7556 (pthread_rwlockattr_setpshared): Likewise.
7557 * sysdeps/mach/hurd/htl/pt-mutexattr-setpshared.c
7558 (pthread_mutexattr_setpshared): Likewise.
7559
7560 2019-01-02 Joseph Myers <joseph@codesourcery.com>
7561
7562 * sysdeps/unix/sysv/linux/tst-mman-consts.py (main): Expect
7563 constants to match with Linux 4.20.
7564
7565 * sysdeps/mips/mips32/libm-test-ulps: Update.
7566 * sysdeps/mips/mips64/libm-test-ulps: Likewise.
7567
7568 2019-01-02 Aurelien Jarno <aurelien@aurel32.net>
7569
7570 [BZ #24034]
7571 * sysdeps/unix/sysv/linux/arm/atomic-machine.h
7572 (__arm_assisted_compare_and_exchange_val_32_acq): Use uint32_t rather
7573 than __typeof (...) for the a_ptr variable.
7574
7575 2019-01-02 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
7576
7577 * debug/sprintf_chk.c (___sprintf_chk): Use PRINTF_CHK.
7578 * debug/vsprintf_chk.c (___vsprintf_chk): Likewise.
7579 * libio/Makefile (tests): Add tst-sprintf-ub and
7580 tst-sprintf-chk-ub.
7581 (CFLAGS-tst-sprintf-ub.c): New variable.
7582 (CFLAGS-tst-sprintf-chk-ub.c): Likewise.
7583 * libio/iovsprintf.c (__vsprintf_internal): Only erase the
7584 destination buffer and check for overflows in fortified mode.
7585 * libio/libioP.h (PRINTF_CHK): New macro.
7586 * libio/tst-sprintf-chk-ub.c: New file.
7587 * libio/tst-sprintf-ub.c: Likewise.
7588
7589 2019-01-02 Florian Weimer <fweimer@redhat.com>
7590
7591 [BZ #24018]
7592 * intl/dcigettext.c (DCIGETTEXT): Do not return NULL on asprintf
7593 failure.
7594
7595 2019-01-02 Florian Weimer <fweimer@redhat.com>
7596
7597 * nptl/tst-audit-threads.c: Switch to <support/test-driver.c>.
7598
7599 2019-01-01 Joseph Myers <joseph@codesourcery.com>
7600
7601 * sysdeps/unix/sysv/linux/bits/in.h (IPV6_MULTICAST_ALL): New
7602 macro.
7603
7604 * sysdeps/unix/sysv/linux/netpacket/packet.h
7605 (PACKET_IGNORE_OUTGOING): New macro.
7606
7607 * sysdeps/unix/sysv/linux/aarch64/bits/hwcap.h (HWCAP_SSBS): New
7608 macro.
7609
7610 * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
7611 version to 4.20.
7612 (riscv_flush_icache): New syscall.
7613
7614 * manual/texinfo.tex: Update to version 2018-12-28.17 with
7615 trailing whitespace removed.
7616 * scripts/config.guess: Update to version 2019-01-01.
7617 * scripts/config.sub: Update to version 2019-01-01.
7618 * scripts/move-if-change: Update from gnulib.
7619
7620 * NEWS: Update copyright dates.
7621 * catgets/gencat.c (print_version): Likewise.
7622 * csu/version.c (banner): Likewise.
7623 * debug/catchsegv.sh: Likewise.
7624 * debug/pcprofiledump.c (print_version): Likewise.
7625 * debug/xtrace.sh (do_version): Likewise.
7626 * elf/ldconfig.c (print_version): Likewise.
7627 * elf/ldd.bash.in: Likewise.
7628 * elf/pldd.c (print_version): Likewise.
7629 * elf/sotruss.sh: Likewise.
7630 * elf/sprof.c (print_version): Likewise.
7631 * iconv/iconv_prog.c (print_version): Likewise.
7632 * iconv/iconvconfig.c (print_version): Likewise.
7633 * locale/programs/locale.c (print_version): Likewise.
7634 * locale/programs/localedef.c (print_version): Likewise.
7635 * login/programs/pt_chown.c (print_version): Likewise.
7636 * malloc/memusage.sh (do_version): Likewise.
7637 * malloc/memusagestat.c (print_version): Likewise.
7638 * malloc/mtrace.pl: Likewise.
7639 * manual/libc.texinfo: Likewise.
7640 * nptl/version.c (banner): Likewise.
7641 * nscd/nscd.c (print_version): Likewise.
7642 * nss/getent.c (print_version): Likewise.
7643 * nss/makedb.c (print_version): Likewise.
7644 * posix/getconf.c (main): Likewise.
7645 * scripts/test-installation.pl: Likewise.
7646 * sysdeps/unix/sysv/linux/lddlibc4.c (main): Likewise.
7647
7648 * All files with FSF copyright notices: Update copyright dates
7649 using scripts/update-copyrights.
7650 * locale/programs/charmap-kw.h: Regenerated.
7651 * locale/programs/locfile-kw.h: Likewise.
7652
7653 2018-12-31 Joseph Myers <joseph@codesourcery.com>
7654
7655 * timezone/zdump.c: Update from tzcode 2018i.
7656 * timezone/zic.c: Likewise.
7657
7658 2018-12-31 Paul Eggert <eggert@cs.ucla.edu>
7659
7660 regex: improve Gnulib port to AIX
7661 From the glibc point of view, this removes duplicate macro
7662 definitions and is obviously safe.
7663 From the Gnulib point of view, this pacifies xlc 12.01 on AIX 7.1.
7664 * posix/regex_internal.h:
7665 (__attribute__, __attribute_warn_unused_result__):
7666 Remove; already defined elsewhere.
7667
7668 2018-12-31 Florian Weimer <fw@deneb.enyo.de>
7669
7670 [BZ #24027]
7671 * malloc/malloc.c (_int_realloc): Always call memcpy for the
7672 copying operation. (ncopies had the wrong type, resulting in an
7673 integer wraparound and too few elements being copied.)
7674
7675 2018-12-31 H.J. Lu <hongjiu.lu@intel.com>
7676
7677 [BZ #24022]
7678 * sysdeps/unix/sysv/linux/riscv/flush-icache.c: Check if
7679 <asm/syscalls.h> exists with __has_include__ before including it.
7680
7681 2018-12-31 Joseph Myers <joseph@codesourcery.com>
7682
7683 * scripts/build-many-glibcs.py (Context.checkout): Default Linux
7684 version to 4.20.
7685
7686 2018-12-28 Justus Winter <4winter@informatik.uni-hamburg.de>
7687
7688 * hurd/lookup-retry: Include <unistd.h>.
7689 (__hurd_file_name_lookup_retry): Keep a ref on last result in `lastdir'.
7690 Release it on return. Handle "pid" magical lookup retry.
7691
7692 2018-12-28 Rafał Lużyński <digitalfreak@lingonborough.com>
7693
7694 [BZ #10496]
7695 * localedata/locales/aa_DJ (t_fmt): Set to "%l:%M:%S %p".
7696 (t_fmt_ampm): Likewise.
7697 * localedata/locales/aa_ER (t_fmt): Likewise.
7698 (t_fmt_ampm): Likewise.
7699 * localedata/locales/aa_ER@saaho (t_fmt): Likewise.
7700 (t_fmt_ampm): Likewise.
7701 * localedata/locales/aa_ET (t_fmt): Likewise.
7702 (t_fmt_ampm): Likewise.
7703 * localedata/locales/am_ET (t_fmt): Likewise.
7704 (t_fmt_ampm): Likewise.
7705 * localedata/locales/byn_ER (t_fmt): Likewise.
7706 (t_fmt_ampm): Likewise.
7707 * localedata/locales/om_ET (t_fmt): Likewise.
7708 (t_fmt_ampm): Likewise.
7709 * localedata/locales/sid_ET (t_fmt): Likewise.
7710 (t_fmt_ampm): Likewise.
7711 * localedata/locales/so_DJ (t_fmt): Likewise.
7712 (t_fmt_ampm): Likewise.
7713 * localedata/locales/so_ET (t_fmt): Likewise.
7714 (t_fmt_ampm): Likewise.
7715 * localedata/locales/so_SO (t_fmt): Likewise.
7716 (t_fmt_ampm): Likewise.
7717 * localedata/locales/ti_ER (t_fmt): Likewise.
7718 (t_fmt_ampm): Likewise.
7719 * localedata/locales/ti_ET (t_fmt): Likewise.
7720 (t_fmt_ampm): Likewise.
7721 * localedata/locales/tig_ER (t_fmt): Likewise.
7722 (t_fmt_ampm): Likewise.
7723 * localedata/locales/wal_ET (t_fmt): Likewise.
7724 (t_fmt_ampm): Likewise.
7725
7726 * localedata/locales/anp_IN (t_fmt): Set to "%I:%M:%S %p %Z".
7727 * localedata/locales/ar_IN (t_fmt): Likewise.
7728 * localedata/locales/bhb_IN (t_fmt): Likewise.
7729 * localedata/locales/bho_IN (t_fmt): Likewise.
7730 * localedata/locales/bi_VU (t_fmt): Likewise.
7731 * localedata/locales/bn_BD (t_fmt): Likewise.
7732 * localedata/locales/bn_IN (t_fmt): Likewise.
7733 * localedata/locales/brx_IN (t_fmt): Likewise.
7734 * localedata/locales/doi_IN (t_fmt): Likewise.
7735 * localedata/locales/en_HK (t_fmt): Likewise.
7736 (t_fmt_ampm): Likewise.
7737 * localedata/locales/en_IN (t_fmt): Likewise.
7738 * localedata/locales/en_PH (t_fmt): Likewise.
7739 * localedata/locales/gu_IN (t_fmt): Likewise.
7740 * localedata/locales/hi_IN (t_fmt): Likewise.
7741 * localedata/locales/hif_FJ (t_fmt): Likewise.
7742 * localedata/locales/hne_IN (t_fmt): Likewise.
7743 * localedata/locales/kn_IN (t_fmt): Likewise.
7744 * localedata/locales/kok_IN (t_fmt): Likewise.
7745 * localedata/locales/ks_IN (t_fmt): Likewise.
7746 * localedata/locales/ks_IN@devanagari (t_fmt): Likewise.
7747 * localedata/locales/mag_IN (t_fmt): Likewise.
7748 * localedata/locales/mai_IN (t_fmt): Likewise.
7749 * localedata/locales/mjw_IN (t_fmt): Likewise.
7750 * localedata/locales/ml_IN (t_fmt): Likewise.
7751 * localedata/locales/mni_IN (t_fmt): Likewise.
7752 * localedata/locales/mr_IN (t_fmt): Likewise.
7753 * localedata/locales/ms_MY (t_fmt): Likewise.
7754 * localedata/locales/pa_IN (t_fmt): Likewise.
7755 * localedata/locales/raj_IN (t_fmt): Likewise.
7756 * localedata/locales/sa_IN (t_fmt): Likewise.
7757 * localedata/locales/sat_IN (t_fmt): Likewise.
7758 * localedata/locales/sd_IN (t_fmt): Likewise.
7759 * localedata/locales/sd_IN@devanagari (t_fmt): Likewise.
7760 * localedata/locales/tcy_IN (t_fmt): Likewise.
7761 * localedata/locales/the_NP (t_fmt): Likewise.
7762 * localedata/locales/to_TO (t_fmt): Likewise.
7763 * localedata/locales/ur_IN (t_fmt): Likewise.
7764
7765 * localedata/locales/hif_FJ (d_t_fmt): Set to
7766 "%A %d %b %Y %I:%M:%S %p".
7767 (date_fmt): Add, set to "%A %d %b %Y %I:%M:%S %p %Z".
7768
7769 * localedata/locales/ar_AE (t_fmt): Set to "%Z %I:%M:%S %p".
7770 * localedata/locales/ar_BH (t_fmt): Likewise.
7771 * localedata/locales/ar_DZ (t_fmt): Likewise.
7772 * localedata/locales/ar_EG (t_fmt): Likewise.
7773 * localedata/locales/ar_IQ (t_fmt): Likewise.
7774 * localedata/locales/ar_JO (t_fmt): Likewise.
7775 * localedata/locales/ar_KW (t_fmt): Likewise.
7776 * localedata/locales/ar_LB (t_fmt): Likewise.
7777 * localedata/locales/ar_LY (t_fmt): Likewise.
7778 * localedata/locales/ar_OM (t_fmt): Likewise.
7779 * localedata/locales/ar_QA (t_fmt): Likewise.
7780 * localedata/locales/ar_SD (t_fmt): Likewise.
7781 * localedata/locales/ar_SS (t_fmt): Likewise.
7782 * localedata/locales/ar_SY (t_fmt): Likewise.
7783 * localedata/locales/ar_TN (t_fmt): Likewise.
7784 * localedata/locales/ar_YE (t_fmt): Likewise.
7785
7786 * localedata/locales/gez_ER (t_fmt): Set to "%l:%M:%S<U1361>%p".
7787 (t_fmt_ampm): Likewise.
7788 * localedata/locales/gez_ET (t_fmt): Likewise.
7789 (t_fmt_ampm): Likewise.
7790
7791 * localedata/locales/ta_IN (t_fmt): Set to "%p %I:%M:%S %Z".
7792 (t_fmt_ampm): Likewise.
7793 (d_t_fmt): Set to "%A %d %B %Y %p %I:%M:%S %Z".
7794
7795 * localedata/locales/zh_HK (t_fmt):
7796 Set to "%p %I<U6642>%M<U5206>%S<U79D2> %Z".
7797
7798 * localedata/locales/ar_MA (t_fmt_ampm): Set to "" (empty string)
7799 because this locale does not use the 12-hour clock.
7800 (t_fmt): Set to "%Z %H:%M:%S".
7801 (d_t_fmt): Set to "%d %b, %Y %Z %H:%M:%S".
7802
7803 * localedata/locales/mt_MT (t_fmt_ampm): Set to "" (empty string)
7804 because this locale does not use the 12-hour clock.
7805 (t_fmt): Set to "%H:%M:%S %Z".
7806 (d_t_fmt): Set to "%A, %d ta %b, %Y %H:%M:%S %Z".
7807
7808 * localedata/locales/so_KE (t_fmt_ampm): Set to "" (empty string)
7809 because this locale does not use the 12-hour clock.
7810 (t_fmt): Set to "%T".
7811 (d_t_fmt): Set to "%A, %B %e, %Y %X %Z".
7812 (date_fmt): Set to "%A, %B %e, %X %Z %Y".
7813
7814 * localedata/locales/ta_LK (t_fmt_ampm): Set to "" (empty string)
7815 because this locale does not use the 12-hour clock.
7816 (t_fmt): Set to "%H:%M:%S %Z".
7817 (d_t_fmt): Set to "%A %d %B %Y %H:%M:%S %Z".
7818
7819 * localedata/locales/bg_BG (t_fmt_ampm): Set to "" (empty string)
7820 because this locale does not use the 12-hour clock.
7821 * localedata/locales/cs_CZ (t_fmt_ampm): Likewise.
7822 * localedata/locales/sk_SK (t_fmt_ampm): Likewise.
7823
7824 2018-12-28 Rafał Lużyński <digitalfreak@lingonborough.com>
7825
7826 [BZ #10496]
7827 [BZ #23724]
7828 * localedata/locales/sq_AL (t_fmt): Set to "%I:%M:%S.%p %Z".
7829 (t_fmt_ampm): Likewise.
7830 (d_t_fmt): Set to "%a %-d %b %Y %I:%M:%S.%p".
7831 (date_fmt): Add, set to "%a %-d %b %Y %I:%M:%S.%p %Z".
7832 (d_fmt): Set to "%-d.%-m.%y".
7833
7834 2018-12-28 Adhemerval Zanella <adhemerval.zanella@linaro.org>
7835
7836 * malloc/alloc_buffer_alloc_array.c (__libc_alloc_buffer_alloc_array):
7837 Use __builtin_mul_overflow in place of check_mul_overflow_size_t.
7838 * malloc/dynarray_emplace_enlarge.c (__libc_dynarray_emplace_enlarge):
7839 Likewise.
7840 * malloc/dynarray_resize.c (__libc_dynarray_resize): Likewise.
7841 * malloc/reallocarray.c (__libc_reallocarray): Likewise.
7842 * malloc/malloc-internal.h (check_mul_overflow_size_t): Remove
7843 function.
7844 * support/blob_repeat.c (check_mul_overflow_size_t,
7845 (minimum_stride_size, support_blob_repeat_allocate): Likewise.
7846
7847 2018-12-28 Aurelien Jarno <aurelien@aurel32.net>
7848
7849 * sysdeps/alpha/fpu/libm-test-ulps: Regenerated.
7850
7851 2018-12-27 Paul Eggert <eggert@cs.ucla.edu>
7852
7853 regex: simplify Gnulib port
7854 This simplifies the code, by removing stuff intended for porting
7855 to Gnulib but no longer needed there.
7856 * posix/regcomp.c [!_LIBC]: No need to put #ifdef _LIBC around
7857 uses of libc_hidden_def, weak_alias.
7858 * posix/regcomp.c, posix/regexec.c: Use __restrict rather than
7859 _Restrict_ except for public-facing headers.
7860 * posix/regex_internal.h (attribute_hidden) [!_LIBC]:
7861 Remove; already defined elsewhere.
7862 * posix/regex.c, posix/regex_internal.h:
7863 Use __GNUC_PREREQ instead of rolling our own.
7864 * posix/regex_internal.h (__GNUC_PREREQ): Remove duplicate defn.
7865
7866 2018-12-27 Wilco Dijkstra <wdijkstr@arm.com>
7867
7868 * benchtests/bench-strlen.c (generic_strlen): New function.
7869 (memchr_strlen): New function.
7870
7871 2018-12-26 H.J. Lu <hongjiu.lu@intel.com>
7872
7873 * sysdeps/x86_64/fpu/s_sincosf.S: Removed.
7874 * sysdeps/x86_64/fpu/multiarch/s_sincosf-sse2.S: Likewise.
7875 * sysdeps/x86_64/fpu/multiarch/s_sincosf-sse2.c: New file.
7876
7877 2018-12-26 H.J. Lu <hongjiu.lu@intel.com>
7878
7879 * sysdeps/x86_64/fpu/libm-test-ulps: Regenerated.
7880
7881 2018-12-26 H.J. Lu <hongjiu.lu@intel.com>
7882
7883 * sysdeps/ieee754/flt-32/s_sincosf.h: Include <sincosf_poly.h>.
7884 (sincos_t, sincosf_poly, sinf_poly): Moved to ...
7885 * sysdeps/ieee754/flt-32/sincosf_poly.h: Here. New file.
7886 * sysdeps/x86/fpu/s_sincosf_data.c: New file.
7887 * sysdeps/x86/fpu/sincosf_poly.h: Likewise.
7888 * sysdeps/x86_64/fpu/multiarch/s_sincosf-fma.c: Just include
7889 <sysdeps/ieee754/flt-32/s_sincosf.c>.
7890
7891 2018-12-21 Joseph Myers <joseph@codesourcery.com>
7892
7893 [BZ #24023]
7894 * sysdeps/unix/sysv/linux/nios2/localplt.data: Allow __floatundidf
7895 PLT reference in libc.so.
7896 * sysdeps/unix/sysv/linux/sparc/sparc32/localplt.data: Allow
7897 _Q_lltoq and _Q_qtod PLT references in libc.so.
7898
7899 2018-12-21 Wilco Dijkstra <wdijkstr@arm.com>
7900
7901 * benchtests/bench-memchr.c: Cleanup defines.
7902 * benchtests/bench-memcmp.c: Likewise.
7903 * benchtests/bench-memset.c: Likewise.
7904 * benchtests/bench-memset-large.c: Likewise.
7905 * benchtests/bench-memset-walk.c: Likewise.
7906 * benchtests/bench-stpcpy.c: Likewise.
7907 * benchtests/bench-stpncpy.c: Likewise.
7908 * benchtests/bench-strcat.c: Likewise.
7909 * benchtests/bench-strchr.c: Likewise.
7910 * benchtests/bench-strcmp.c: Likewise.
7911 * benchtests/bench-strcpy.c: Likewise.
7912 * benchtests/bench-strcspn.c: Likewise.
7913 * benchtests/bench-string.h: Likewise.
7914 * benchtests/bench-strlen.c: Likewise.
7915 * benchtests/bench-strncat.c: Likewise.
7916 * benchtests/bench-strncmp.c: Likewise.
7917 * benchtests/bench-strncpy.c: Likewise.
7918 * benchtests/bench-strnlen.c: Likewise.
7919 * benchtests/bench-strpbrk.c: Likewise.
7920 * benchtests/bench-strrchr.c: Likewise.
7921 * benchtests/bench-strspn.c: Likewise.
7922
7923 2018-12-21 Joseph Myers <joseph@codesourcery.com>
7924
7925 * stdlib/longlong.h: Update from GCC.
7926
7927 [BZ #23993]
7928 * configure.ac (libc_cv_compiler_ok): Require GCC 5 or later.
7929 * configure: Regenerated.
7930 * manual/install.texi (Tools for Compilation): Update minimum GCC
7931 version.
7932 * INSTALL: Regenerated.
7933
7934 2018-12-21 Istvan Kurucsai <pistukem@gmail.com>
7935
7936 * malloc/malloc.c (munmap_chunk): Verify chunk alignment.
7937
7938 2018-12-20 Istvan Kurucsai <pistukem@gmail.com>
7939
7940 * malloc/malloc.c (mremap_chunk): Additional checks.
7941
7942 2018-12-21 Mao Han <han_mao@c-sky.com>
7943
7944 * config.h.in (CSKYABI, CSKY_HARD_FLOAT): New Define.
7945 * scripts/build-many-glibcs.py: Add C-SKY targets.
7946 * sysdeps/csky/Implies: New file.
7947 * sysdeps/csky/Makefile: Likewise.
7948 * sysdeps/csky/abiv2/__longjmp.S: Likewise.
7949 * sysdeps/csky/abiv2/csky-mcount.S: Likewise.
7950 * sysdeps/csky/abiv2/dl-trampoline.S: Likewise.
7951 * sysdeps/csky/abiv2/memcmp.S: Likewise.
7952 * sysdeps/csky/abiv2/memcpy.S: Likewise.
7953 * sysdeps/csky/abiv2/memmove.S: Likewise.
7954 * sysdeps/csky/abiv2/memset.S: Likewise.
7955 * sysdeps/csky/abiv2/setjmp.S: Likewise.
7956 * sysdeps/csky/abiv2/start.S: Likewise.
7957 * sysdeps/csky/abiv2/strcmp.S: Likewise.
7958 * sysdeps/csky/abiv2/strcpy.S: Likewise.
7959 * sysdeps/csky/abiv2/strlen.S: Likewise.
7960 * sysdeps/csky/abiv2/tls-macros.h: Likewise.
7961 * sysdeps/csky/abort-instr.h: Likewise.
7962 * sysdeps/csky/atomic-machine.h: Likewise.
7963 * sysdeps/csky/bits/endian.h: Likewise.
7964 * sysdeps/csky/bits/fenv.h: Likewise.
7965 * sysdeps/csky/bits/link.h: Likewise.
7966 * sysdeps/csky/bits/setjmp.h: Likewise.
7967 * sysdeps/csky/bsd-_setjmp.S: Likewise.
7968 * sysdeps/csky/bsd-setjmp.S: Likewise.
7969 * sysdeps/csky/configure: Likewise.
7970 * sysdeps/csky/configure.ac: Likewise.
7971 * sysdeps/csky/dl-machine.h: Likewise.
7972 * sysdeps/csky/dl-procinfo.c: Likewise.
7973 * sysdeps/csky/dl-procinfo.h: Likewise.
7974 * sysdeps/csky/dl-sysdep.h: Likewise.
7975 * sysdeps/csky/dl-tls.h: Likewise.
7976 * sysdeps/csky/fpu/fclrexcpt.c: Likewise.
7977 * sysdeps/csky/fpu/fedisblxcpt.c: Likewise.
7978 * sysdeps/csky/fpu/feenablxcpt.c: Likewise.
7979 * sysdeps/csky/fpu/fegetenv.c: Likewise.
7980 * sysdeps/csky/fpu/fegetexcept.c: Likewise.
7981 * sysdeps/csky/fpu/fegetmode.c: Likewise.
7982 * sysdeps/csky/fpu/fegetround.c: Likewise.
7983 * sysdeps/csky/fpu/feholdexcpt.c: Likewise.
7984 * sysdeps/csky/fpu/fenv_libc.h: Likewise.
7985 * sysdeps/csky/fpu/fenv_private.h: Likewise.
7986 * sysdeps/csky/fpu/fesetenv.c: Likewise.
7987 * sysdeps/csky/fpu/fesetexcept.c: Likewise.
7988 * sysdeps/csky/fpu/fesetmode.c: Likewise.
7989 * sysdeps/csky/fpu/fesetround.c: Likewise.
7990 * sysdeps/csky/fpu/feupdateenv.c: Likewise.
7991 * sysdeps/csky/fpu/fgetexcptflg.c: Likewise.
7992 * sysdeps/csky/fpu/fix-fp-int-convert-overflow.h: Likewise.
7993 * sysdeps/csky/fpu/fraiseexcpt.c: Likewise.
7994 * sysdeps/csky/fpu/fsetexcptflg.c: Likewise.
7995 * sysdeps/csky/fpu/ftestexcept.c: Likewise.
7996 * sysdeps/csky/fpu/libm-test-ulps: Likewise.
7997 * sysdeps/csky/fpu/libm-test-ulps-name: Likewise.
7998 * sysdeps/csky/fpu_control.h: Likewise.
7999 * sysdeps/csky/gccframe.h: Likewise.
8000 * sysdeps/csky/jmpbuf-unwind.h: Likewise.
8001 * sysdeps/csky/ldsodefs.h: Likewise.
8002 * sysdeps/csky/libc-tls.c: Likewise.
8003 * sysdeps/csky/linkmap.h: Likewise.
8004 * sysdeps/csky/machine-gmon.h: Likewise.
8005 * sysdeps/csky/memusage.h: Likewise.
8006 * sysdeps/csky/nofpu/Implies: Likewise.
8007 * sysdeps/csky/nofpu/libm-test-ulps: Likewise.
8008 * sysdeps/csky/nofpu/libm-test-ulps-name: Likewise.
8009 * sysdeps/csky/nptl/Makefile: Likewise.
8010 * sysdeps/csky/nptl/bits/pthreadtypes-arch.h: Likewise.
8011 * sysdeps/csky/nptl/bits/semaphore.h: Likewise.
8012 * sysdeps/csky/nptl/pthread-offsets.h: Likewise.
8013 * sysdeps/csky/nptl/pthreaddef.h: Likewise.
8014 * sysdeps/csky/nptl/tcb-offsets.sym: Likewise.
8015 * sysdeps/csky/nptl/tls.h: Likewise.
8016 * sysdeps/csky/preconfigure: Likewise.
8017 * sysdeps/csky/sfp-machine.h: Likewise.
8018 * sysdeps/csky/sotruss-lib.c: Likewise.
8019 * sysdeps/csky/stackinfo.h: Likewise.
8020 * sysdeps/csky/sysdep.h: Likewise.
8021 * sysdeps/csky/tininess.h: Likewise.
8022 * sysdeps/csky/tst-audit.h: Likewise.
8023 * sysdeps/unix/sysv/linux/csky/Implies: Likewise.
8024 * sysdeps/unix/sysv/linux/csky/Makefile: Likewise.
8025 * sysdeps/unix/sysv/linux/csky/Versions: Likewise.
8026 * sysdeps/unix/sysv/linux/csky/abiv2/____longjmp_chk.S: Likewise.
8027 * sysdeps/unix/sysv/linux/csky/abiv2/clone.S: Likewise.
8028 * sysdeps/unix/sysv/linux/csky/abiv2/getcontext.S: Likewise.
8029 * sysdeps/unix/sysv/linux/csky/abiv2/setcontext.S: Likewise.
8030 * sysdeps/unix/sysv/linux/csky/abiv2/swapcontext.S: Likewise.
8031 * sysdeps/unix/sysv/linux/csky/abiv2/syscall.S: Likewise.
8032 * sysdeps/unix/sysv/linux/csky/abiv2/sysdep.S: Likewise.
8033 * sysdeps/unix/sysv/linux/csky/abiv2/ucontext_i.sym: Likewise.
8034 * sysdeps/unix/sysv/linux/csky/bits/procfs.h: Likewise.
8035 * sysdeps/unix/sysv/linux/csky/bits/shmlba.h: Likewise.
8036 * sysdeps/unix/sysv/linux/csky/c++-types.data: Likewise.
8037 * sysdeps/unix/sysv/linux/csky/configure: Likewise.
8038 * sysdeps/unix/sysv/linux/csky/configure.ac: Likewise.
8039 * sysdeps/unix/sysv/linux/csky/ipc_priv.h: Likewise.
8040 * sysdeps/unix/sysv/linux/csky/jmp_buf-macros.h: Likewise.
8041 * sysdeps/unix/sysv/linux/csky/kernel-features.h: Likewise.
8042 * sysdeps/unix/sysv/linux/csky/ld.abilist: Likewise.
8043 * sysdeps/unix/sysv/linux/csky/ldconfig.h: Likewise.
8044 * sysdeps/unix/sysv/linux/csky/libBrokenLocale.abilist: Likewise.
8045 * sysdeps/unix/sysv/linux/csky/libanl.abilist: Likewise.
8046 * sysdeps/unix/sysv/linux/csky/libc.abilist: Likewise.
8047 * sysdeps/unix/sysv/linux/csky/libcrypt.abilist: Likewise.
8048 * sysdeps/unix/sysv/linux/csky/libdl.abilist: Likewise.
8049 * sysdeps/unix/sysv/linux/csky/libm.abilist: Likewise.
8050 * sysdeps/unix/sysv/linux/csky/libpthread.abilist: Likewise.
8051 * sysdeps/unix/sysv/linux/csky/libresolv.abilist: Likewise.
8052 * sysdeps/unix/sysv/linux/csky/librt.abilist: Likewise.
8053 * sysdeps/unix/sysv/linux/csky/libthread_db.abilist: Likewise.
8054 * sysdeps/unix/sysv/linux/csky/libutil.abilist: Likewise.
8055 * sysdeps/unix/sysv/linux/csky/localplt.data: Likewise.
8056 * sysdeps/unix/sysv/linux/csky/makecontext.c: Likewise.
8057 * sysdeps/unix/sysv/linux/csky/profil-counter.h: Likewise.
8058 * sysdeps/unix/sysv/linux/csky/pt-vfork.S: Likewise.
8059 * sysdeps/unix/sysv/linux/csky/register-dump.h: Likewise.
8060 * sysdeps/unix/sysv/linux/csky/shlib-versions: Likewise.
8061 * sysdeps/unix/sysv/linux/csky/sigcontextinfo.h: Likewise.
8062 * sysdeps/unix/sysv/linux/csky/sys/cachectl.h: Likewise.
8063 * sysdeps/unix/sysv/linux/csky/sys/ucontext.h: Likewise.
8064 * sysdeps/unix/sysv/linux/csky/sys/user.h: Likewise.
8065 * sysdeps/unix/sysv/linux/csky/syscalls.list: Likewise.
8066 * sysdeps/unix/sysv/linux/csky/sysdep.h: Likewise.
8067
8068 2018-12-18 Albert ARIBAUD <albert.aribaud@3adev.fr>
8069
8070 * include/time.h (__difftime64): Add.
8071 * time/difftime.c (subtract): convert to 64-bit time.
8072 * time/difftime.c (__difftime64): Add.
8073 * time/difftime.c (__difftime): Wrap around __difftime64.
8074
8075 2018-12-20 H.J. Lu <hongjiu.lu@intel.com>
8076
8077 * manual/examples/add.c: Remove redundant "if not".
8078 * manual/examples/argp-ex1.c: Likewise.
8079 * manual/examples/argp-ex2.c: Likewise.
8080 * manual/examples/argp-ex3.c: Likewise.
8081 * manual/examples/argp-ex4.c: Likewise.
8082 * manual/examples/atexit.c: Likewise.
8083 * manual/examples/db.c: Likewise.
8084 * manual/examples/dir.c: Likewise.
8085 * manual/examples/dir2.c: Likewise.
8086 * manual/examples/execinfo.c: Likewise.
8087 * manual/examples/filecli.c: Likewise.
8088 * manual/examples/filesrv.c: Likewise.
8089 * manual/examples/fmtmsgexpl.c: Likewise.
8090 * manual/examples/genpass.c: Likewise.
8091 * manual/examples/inetcli.c: Likewise.
8092 * manual/examples/inetsrv.c: Likewise.
8093 * manual/examples/isockad.c: Likewise.
8094 * manual/examples/longopt.c: Likewise.
8095 * manual/examples/memopen.c: Likewise.
8096 * manual/examples/memstrm.c: Likewise.
8097 * manual/examples/mkdirent.c: Likewise.
8098 * manual/examples/mkfsock.c: Likewise.
8099 * manual/examples/mkisock.c: Likewise.
8100 * manual/examples/mygetpass.c: Likewise.
8101 * manual/examples/pipe.c: Likewise.
8102 * manual/examples/popen.c: Likewise.
8103 * manual/examples/rprintf.c: Likewise.
8104 * manual/examples/search.c: Likewise.
8105 * manual/examples/select.c: Likewise.
8106 * manual/examples/setjmp.c: Likewise.
8107 * manual/examples/sigh1.c: Likewise.
8108 * manual/examples/sigusr.c: Likewise.
8109 * manual/examples/stpcpy.c: Likewise.
8110 * manual/examples/strdupa.c: Likewise.
8111 * manual/examples/strftim.c: Likewise.
8112 * manual/examples/subopt.c: Likewise.
8113 * manual/examples/swapcontext.c: Likewise.
8114 * manual/examples/termios.c: Likewise.
8115 * manual/examples/testopt.c: Likewise.
8116 * manual/examples/testpass.c: Likewise.
8117 * manual/examples/timeval_subtract.c: Likewise.
8118
8119 2018-12-19 Joseph Myers <joseph@codesourcery.com>
8120
8121 * sysdeps/x86/fpu/math_private.h: New file.
8122 * sysdeps/x86/fpu/bits/mathinline.h: Remove.
8123
8124 * sysdeps/x86/fpu/bits/mathinline.h (sinh): Remove inline
8125 definition.
8126 (cosh): Likewise.
8127 (tanh): Likewise.
8128
8129 2018-12-19 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
8130
8131 * elf/dl-sysdep.c (auxvars): Add AT_L1I_CACHESIZE,
8132 AT_L1I_CACHEGEOMETRY, AT_L1D_CACHESIZE, AT_L1D_CACHEGEOMETRY,
8133 AT_L2_CACHESIZE, AT_L2_CACHEGEOMETRY, AT_L3_CACHESIZE and
8134 AT_L3_CACHEGEOMETRY. Fix indentation when printing the other
8135 fields.
8136 (_dl_show_auxv): Give a special treatment to
8137 AT_L1I_CACHEGEOMETRY, AT_L1D_CACHEGEOMETRY, AT_L2_CACHEGEOMETRY
8138 and AT_L3_CACHEGEOMETRY.
8139 * sysdeps/powerpc/dl-procinfo.h (cache_geometry): New function.
8140 (_dl_procinfo): Fix indentation when printing AT_HWCAP and
8141 AT_HWCAP2. Add support for AT_L1I_CACHEGEOMETRY,
8142 AT_L1D_CACHEGEOMETRY, AT_L2_CACHEGEOMETRY and AT_L3_CACHEGEOMETRY.
8143
8144 2018-12-19 Andreas Schwab <schwab@suse.de>
8145
8146 * nscd/connections.c (check_use): Don't abort on invalid len.
8147
8148 2018-12-18 Samuel Thibault <samuel.thibault@ens-lyon.org>
8149
8150 * sysdeps/mach/hurd/fcntl.c (__libc_fcntl): Test against 64bit `cmd'
8151 values in the 64bit value cases.
8152
8153 2018-12-18 Albert ARIBAUD <albert.aribaud@3adev.fr>
8154
8155 * include/time.h
8156 (__ctime64_r): Add.
8157 * time/ctime_r.c
8158 (__ctime64_r): Add.
8159 [__TIMESIZE != 64] (__ctime_r): Turn into a wrapper.
8160
8161 * include/time.h
8162 (__ctime64): Add.
8163 * time/gmtime.c
8164 (__ctime64): Add.
8165 [__TIMESIZE != 64] (ctime): Turn into a wrapper.
8166
8167 * include/time.h
8168 (__gmtime64_r): Add.
8169 * time/gmtime.c
8170 (__gmtime64_r): Add.
8171 [__TIMESIZE != 64] (__gmtime): Turn into a wrapper.
8172
8173 * include/time.h
8174 (__gmtime64): Add.
8175 * time/gmtime.c
8176 (__gmtime64): Add.
8177 [__TIMESIZE != 64] (__gmtime): Turn into a wrapper.
8178
8179 * include/time.h
8180 (__localtime64_r): Add.
8181 * time/localtime.c
8182 (__localtime64_r): Add.
8183 [__TIMESIZE != 64] (__localtime_r): Turn into a wrapper.
8184
8185 2018-12-18 Adhemerval Zanella <adhemerval.zanella@linaro.org>
8186
8187 * sysdeps/unix/sysv/linux/s390/kernel_sigaction.h: Use Linux generic
8188 kernel_sigction definition.
8189
8190 * sysdeps/unix/sysv/linux/ia64/kernel_sigaction.h: Remove file.
8191
8192 * sysdeps/unix/sysv/linux/hppa/kernel_sigaction.h: Remove file.
8193
8194 * sysdeps/unix/sysv/linux/alpha/Makefile: Update comment about
8195 __syscall_rt_sigaction.
8196 * sysdeps/unix/sysv/linux/alpha/kernel_sigaction.h
8197 (kernel_sigaction): Use Linux generic defintion.
8198 (STUB): Define.
8199 (__syscall_rt_sigreturn, __syscall_sigreturn): Add prototype.
8200 * sysdeps/unix/sysv/linux/alpha/rt_sigaction.S
8201 (__syscall_rt_sigaction): Remove implementation.
8202 (__syscall_sigreturn, __syscall_rt_sigreturn): Define as global and
8203 hidden.
8204 * sysdeps/unix/sysv/linux/alpha/sigaction.c: Remove file.
8205 * sysdeps/unix/sysv/linux/alpha/sysdep.h (INLINE_SYSCALL,
8206 INTERNAL_SYSCALL): Remove definitions.
8207 * sysdeps/unix/sysv/linux/sigaction.c: Define STUB to accept both the
8208 action and signal set size.
8209 * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c (STUB): Redefine.
8210 * sysdeps/unix/sysv/linux/sparc/sparc64/sigaction.c (STUB): Likewise.
8211
8212 2018-12-18 Adhemerval Zanella <adhemerval.zanella@linaro.org>
8213 James Clarke <jrtc27@jrtc27.com>
8214
8215 [BZ #23967]
8216 * sysdeps/unix/sysv/linux/kernel_sigaction.h (HAS_SA_RESTORER):
8217 Define if SA_RESTORER is defined.
8218 (kernel_sigaction): Define sa_restorer if HAS_SA_RESTORER is defined.
8219 (SET_SA_RESTORER, RESET_SA_RESTORER): Define iff the macro are not
8220 already defined.
8221 * sysdeps/unix/sysv/linux/m68k/kernel_sigaction.h (SA_RESTORER,
8222 kernel_sigaction, SET_SA_RESTORER, RESET_SA_RESTORER): Remove
8223 definitions.
8224 (HAS_SA_RESTORER): Define.
8225 * sysdeps/unix/sysv/linux/sparc/kernel_sigaction.h (SA_RESTORER,
8226 SET_SA_RESTORER, RESET_SA_RESTORER): Remove definition.
8227 (HAS_SA_RESTORER): Define.
8228 * sysdeps/unix/sysv/linux/nios2/kernel_sigaction.h: Include generic
8229 kernel_sigaction after define SET_SA_RESTORER and RESET_SA_RESTORER.
8230 * sysdeps/unix/sysv/linux/powerpc/kernel_sigaction.h: Likewise.
8231 * sysdeps/unix/sysv/linux/s390/kernel_sigaction.h: Likewise.
8232 * sysdeps/unix/sysv/linux/x86_64/sigaction.c: Likewise.
8233
8234 2018-12-18 Joseph Myers <joseph@codesourcery.com>
8235
8236 * sysdeps/unix/sysv/linux/kernel-features.h
8237 (__ASSUME_ST_INO_64_BIT): Remove macro definition.
8238 * sysdeps/unix/sysv/linux/alpha/kernel-features.h
8239 (__ASSUME_ST_INO_64_BIT): Do not undefine and define.
8240 * sysdeps/unix/sysv/linux/sh/kernel-features.h
8241 (__ASSUME_ST_INO_64_BIT): Likewise.
8242 * sysdeps/unix/sysv/linux/fxstat64.c: Do not include
8243 <kernel-features.h>.
8244 (___fxstat64) [_HAVE_STAT64___ST_INO && !__ASSUME_ST_INO_64_BIT]:
8245 Remove conditional code.
8246 * sysdeps/unix/sysv/linux/lxstat64.c: Do not include
8247 <kernel-features.h>.
8248 (___lxstat64) [_HAVE_STAT64___ST_INO && !__ASSUME_ST_INO_64_BIT]:
8249 Remove conditional code.
8250 * sysdeps/unix/sysv/linux/xstat64.c: Do not include
8251 <kernel-features.h>.
8252 (___xstat64) [_HAVE_STAT64___ST_INO && !__ASSUME_ST_INO_64_BIT]:
8253 Remove conditional code.
8254 * sysdeps/unix/sysv/linux/xstatconv.c: Do not include
8255 <kernel-features.h>.
8256 (__xstat32_conv) [_HAVE_STAT64___ST_INO]: Remove conditional code.
8257 [!_HAVE_STAT64___ST_INO]: Make code unconditional.
8258
8259 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
8260
8261 * sysdeps/s390/multiarch/ifunc-resolve.h
8262 (s390_vx_libc_ifunc, s390_vx_libc_ifunc_redirected,
8263 s390_vx_libc_ifunc2, s390_vx_libc_ifunc_init,
8264 s390_vx_libc_ifunc2_redirected, s390_libc_ifunc):
8265 Delete macro definition.
8266 (s390_libc_ifunc_init): Rename to
8267 s390_libc_ifunc_expr_stfle_init.
8268 * sysdeps/s390/bzero: Use
8269 s390_libc_ifunc_expr_stfle_init instead of
8270 s390_libc_ifunc_init.
8271 * sysdeps/s390/memcmp.c: Likewise.
8272 * sysdeps/s390/memcpy.c: Likewise.
8273 * sysdeps/s390/mempcpy.c: Likewise.
8274 * sysdeps/s390/memset.c: Likewise.
8275
8276 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
8277
8278 * sysdeps/s390/multiarch/gconv_simple.c (ICONV_VX_IFUNC):
8279 Define macro dependent on HAVE_S390_MIN_Z13_ZARCH_ASM_SUPPORT.
8280
8281 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
8282
8283 * sysdeps/s390/multiarch/Makefile
8284 (sysdep_routines): Remove wmemcmp variants.
8285 * sysdeps/s390/Makefile (sysdep_routines): Add wmemcmp variants.
8286 * sysdeps/s390/multiarch/ifunc-impl-list.c
8287 (__libc_ifunc_impl_list): Refactor ifunc handling for wmemcmp.
8288 * sysdeps/s390/multiarch/wmemcmp-c.c: Move to ...
8289 * sysdeps/s390/wmemcmp-c.c: ... here and adjust ifunc handling.
8290 * sysdeps/s390/multiarch/wmemcmp-vx.S: Move to ...
8291 * sysdeps/s390/wmemcmp-vx.S: ... here and adjust ifunc handling.
8292 * sysdeps/s390/multiarch/wmemcmp.c: Move to ...
8293 * sysdeps/s390/wmemcmp.c: ... here and adjust ifunc handling.
8294 * sysdeps/s390/ifunc-wmemcmp.h: New file.
8295
8296 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
8297
8298 * sysdeps/s390/multiarch/Makefile
8299 (sysdep_routines): Remove wmemset variants.
8300 * sysdeps/s390/Makefile (sysdep_routines): Add wmemset variants.
8301 * sysdeps/s390/multiarch/ifunc-impl-list.c
8302 (__libc_ifunc_impl_list): Refactor ifunc handling for wmemset.
8303 * sysdeps/s390/multiarch/wmemset-c.c: Move to ...
8304 * sysdeps/s390/wmemset-c.c: ... here and adjust ifunc handling.
8305 * sysdeps/s390/multiarch/wmemset-vx.S: Move to ...
8306 * sysdeps/s390/wmemset-vx.S: ... here and adjust ifunc handling.
8307 * sysdeps/s390/multiarch/wmemset.c: Move to ...
8308 * sysdeps/s390/wmemset.c: ... here and adjust ifunc handling.
8309 * sysdeps/s390/ifunc-wmemset.h: New file.
8310
8311 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
8312
8313 * sysdeps/s390/multiarch/Makefile
8314 (sysdep_routines): Remove wmemchr variants.
8315 * sysdeps/s390/Makefile (sysdep_routines): Add wmemchr variants.
8316 * sysdeps/s390/multiarch/ifunc-impl-list.c
8317 (__libc_ifunc_impl_list): Refactor ifunc handling for wmemchr.
8318 * sysdeps/s390/multiarch/wmemchr-c.c: Move to ...
8319 * sysdeps/s390/wmemchr-c.c: ... here and adjust ifunc handling.
8320 * sysdeps/s390/multiarch/wmemchr-vx.S: Move to ...
8321 * sysdeps/s390/wmemchr-vx.S: ... here and adjust ifunc handling.
8322 * sysdeps/s390/multiarch/wmemchr.c: Move to ...
8323 * sysdeps/s390/wmemchr.c: ... here and adjust ifunc handling.
8324 * sysdeps/s390/ifunc-wmemchr.h: New file.
8325
8326 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
8327
8328 * sysdeps/s390/multiarch/Makefile
8329 (sysdep_routines): Remove wcscspn variants.
8330 * sysdeps/s390/Makefile (sysdep_routines): Add wcscspn variants.
8331 * sysdeps/s390/multiarch/ifunc-impl-list.c
8332 (__libc_ifunc_impl_list): Refactor ifunc handling for wcscspn.
8333 * sysdeps/s390/multiarch/wcscspn-c.c: Move to ...
8334 * sysdeps/s390/wcscspn-c.c: ... here and adjust ifunc handling.
8335 * sysdeps/s390/multiarch/wcscspn-vx.S: Move to ...
8336 * sysdeps/s390/wcscspn-vx.S: ... here and adjust ifunc handling.
8337 * sysdeps/s390/multiarch/wcscspn.c: Move to ...
8338 * sysdeps/s390/wcscspn.c: ... here and adjust ifunc handling.
8339 * sysdeps/s390/ifunc-wcscspn.h: New file.
8340
8341 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
8342
8343 * sysdeps/s390/multiarch/Makefile
8344 (sysdep_routines): Remove wcspbrk variants.
8345 * sysdeps/s390/Makefile (sysdep_routines): Add wcspbrk variants.
8346 * sysdeps/s390/multiarch/ifunc-impl-list.c
8347 (__libc_ifunc_impl_list): Refactor ifunc handling for wcspbrk.
8348 * sysdeps/s390/multiarch/wcspbrk-c.c: Move to ...
8349 * sysdeps/s390/wcspbrk-c.c: ... here and adjust ifunc handling.
8350 * sysdeps/s390/multiarch/wcspbrk-vx.S: Move to ...
8351 * sysdeps/s390/wcspbrk-vx.S: ... here and adjust ifunc handling.
8352 * sysdeps/s390/multiarch/wcspbrk.c: Move to ...
8353 * sysdeps/s390/wcspbrk.c: ... here and adjust ifunc handling.
8354 * sysdeps/s390/ifunc-wcspbrk.h: New file.
8355
8356 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
8357
8358 * sysdeps/s390/multiarch/Makefile
8359 (sysdep_routines): Remove wcsspn variants.
8360 * sysdeps/s390/Makefile (sysdep_routines): Add wcsspn variants.
8361 * sysdeps/s390/multiarch/ifunc-impl-list.c
8362 (__libc_ifunc_impl_list): Refactor ifunc handling for wcsspn.
8363 * sysdeps/s390/multiarch/wcsspn-c.c: Move to ...
8364 * sysdeps/s390/wcsspn-c.c: ... here and adjust ifunc handling.
8365 * sysdeps/s390/multiarch/wcsspn-vx.S: Move to ...
8366 * sysdeps/s390/wcsspn-vx.S: ... here and adjust ifunc handling.
8367 * sysdeps/s390/multiarch/wcsspn.c: Move to ...
8368 * sysdeps/s390/wcsspn.c: ... here and adjust ifunc handling.
8369 * sysdeps/s390/ifunc-wcsspn.h: New file.
8370
8371 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
8372
8373 * sysdeps/s390/multiarch/Makefile
8374 (sysdep_routines): Remove wcsrchr variants.
8375 * sysdeps/s390/Makefile (sysdep_routines): Add wcsrchr variants.
8376 * sysdeps/s390/multiarch/ifunc-impl-list.c
8377 (__libc_ifunc_impl_list): Refactor ifunc handling for wcsrchr.
8378 * sysdeps/s390/multiarch/wcsrchr-c.c: Move to ...
8379 * sysdeps/s390/wcsrchr-c.c: ... here and adjust ifunc handling.
8380 * sysdeps/s390/multiarch/wcsrchr-vx.S: Move to ...
8381 * sysdeps/s390/wcsrchr-vx.S: ... here and adjust ifunc handling.
8382 * sysdeps/s390/multiarch/wcsrchr.c: Move to ...
8383 * sysdeps/s390/wcsrchr.c: ... here and adjust ifunc handling.
8384 * sysdeps/s390/ifunc-wcsrchr.h: New file.
8385
8386 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
8387
8388 * sysdeps/s390/multiarch/Makefile
8389 (sysdep_routines): Remove wcschrnul variants.
8390 * sysdeps/s390/Makefile (sysdep_routines): Add wcschrnul variants.
8391 * sysdeps/s390/multiarch/ifunc-impl-list.c
8392 (__libc_ifunc_impl_list): Refactor ifunc handling for wcschrnul.
8393 * sysdeps/s390/multiarch/wcschrnul-c.c: Move to ...
8394 * sysdeps/s390/wcschrnul-c.c: ... here and adjust ifunc handling.
8395 * sysdeps/s390/multiarch/wcschrnul-vx.S: Move to ...
8396 * sysdeps/s390/wcschrnul-vx.S: ... here and adjust ifunc handling.
8397 * sysdeps/s390/multiarch/wcschrnul.c: Move to ...
8398 * sysdeps/s390/wcschrnul.c: ... here and adjust ifunc handling.
8399 * sysdeps/s390/ifunc-wcschrnul.h: New file.
8400
8401 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
8402
8403 * sysdeps/s390/multiarch/Makefile
8404 (sysdep_routines): Remove wcschr variants.
8405 * sysdeps/s390/Makefile (sysdep_routines): Add wcschr variants.
8406 * sysdeps/s390/multiarch/ifunc-impl-list.c
8407 (__libc_ifunc_impl_list): Refactor ifunc handling for wcschr.
8408 * sysdeps/s390/multiarch/wcschr-c.c: Move to ...
8409 * sysdeps/s390/wcschr-c.c: ... here and adjust ifunc handling.
8410 * sysdeps/s390/multiarch/wcschr-vx.S: Move to ...
8411 * sysdeps/s390/wcschr-vx.S: ... here and adjust ifunc handling.
8412 * sysdeps/s390/multiarch/wcschr.c: Move to ...
8413 * sysdeps/s390/wcschr.c: ... here and adjust ifunc handling.
8414 * sysdeps/s390/ifunc-wcschr.h: New file.
8415
8416 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
8417
8418 * sysdeps/s390/multiarch/Makefile
8419 (sysdep_routines): Remove wcsncmp variants.
8420 * sysdeps/s390/Makefile (sysdep_routines): Add wcsncmp variants.
8421 * sysdeps/s390/multiarch/ifunc-impl-list.c
8422 (__libc_ifunc_impl_list): Refactor ifunc handling for wcsncmp.
8423 * sysdeps/s390/multiarch/wcsncmp-c.c: Move to ...
8424 * sysdeps/s390/wcsncmp-c.c: ... here and adjust ifunc handling.
8425 * sysdeps/s390/multiarch/wcsncmp-vx.S: Move to ...
8426 * sysdeps/s390/wcsncmp-vx.S: ... here and adjust ifunc handling.
8427 * sysdeps/s390/multiarch/wcsncmp.c: Move to ...
8428 * sysdeps/s390/wcsncmp.c: ... here and adjust ifunc handling.
8429 * sysdeps/s390/ifunc-wcsncmp.h: New file.
8430
8431 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
8432
8433 * sysdeps/s390/multiarch/Makefile
8434 (sysdep_routines): Remove wcscmp variants.
8435 * sysdeps/s390/Makefile (sysdep_routines): Add wcscmp variants.
8436 * sysdeps/s390/multiarch/ifunc-impl-list.c
8437 (__libc_ifunc_impl_list): Refactor ifunc handling for wcscmp.
8438 * sysdeps/s390/multiarch/wcscmp-c.c: Move to ...
8439 * sysdeps/s390/wcscmp-c.c: ... here and adjust ifunc handling.
8440 * sysdeps/s390/multiarch/wcscmp-vx.S: Move to ...
8441 * sysdeps/s390/wcscmp-vx.S: ... here and adjust ifunc handling.
8442 * sysdeps/s390/multiarch/wcscmp.c: Move to ...
8443 * sysdeps/s390/wcscmp.c: ... here and adjust ifunc handling.
8444 * sysdeps/s390/ifunc-wcscmp.h: New file.
8445
8446 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
8447
8448 * sysdeps/s390/multiarch/Makefile
8449 (sysdep_routines): Remove wcsncat variants.
8450 * sysdeps/s390/Makefile (sysdep_routines): Add wcsncat variants.
8451 * sysdeps/s390/multiarch/ifunc-impl-list.c
8452 (__libc_ifunc_impl_list): Refactor ifunc handling for wcsncat.
8453 * sysdeps/s390/multiarch/wcsncat-c.c: Move to ...
8454 * sysdeps/s390/wcsncat-c.c: ... here and adjust ifunc handling.
8455 * sysdeps/s390/multiarch/wcsncat-vx.S: Move to ...
8456 * sysdeps/s390/wcsncat-vx.S: ... here and adjust ifunc handling.
8457 * sysdeps/s390/multiarch/wcsncat.c: Move to ...
8458 * sysdeps/s390/wcsncat.c: ... here and adjust ifunc handling.
8459 * sysdeps/s390/ifunc-wcsncat.h: New file.
8460
8461 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
8462
8463 * sysdeps/s390/multiarch/Makefile
8464 (sysdep_routines): Remove wcscat variants.
8465 * sysdeps/s390/Makefile (sysdep_routines): Add wcscat variants.
8466 * sysdeps/s390/multiarch/ifunc-impl-list.c
8467 (__libc_ifunc_impl_list): Refactor ifunc handling for wcscat.
8468 * sysdeps/s390/multiarch/wcscat-c.c: Move to ...
8469 * sysdeps/s390/wcscat-c.c: ... here and adjust ifunc handling.
8470 * sysdeps/s390/multiarch/wcscat-vx.S: Move to ...
8471 * sysdeps/s390/wcscat-vx.S: ... here and adjust ifunc handling.
8472 * sysdeps/s390/multiarch/wcscat.c: Move to ...
8473 * sysdeps/s390/wcscat.c: ... here and adjust ifunc handling.
8474 * sysdeps/s390/ifunc-wcscat.h: New file.
8475
8476 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
8477
8478 * sysdeps/s390/multiarch/Makefile
8479 (sysdep_routines): Remove wcpncpy variants.
8480 * sysdeps/s390/Makefile (sysdep_routines): Add wcpncpy variants.
8481 * sysdeps/s390/multiarch/ifunc-impl-list.c
8482 (__libc_ifunc_impl_list): Refactor ifunc handling for wcpncpy.
8483 * sysdeps/s390/multiarch/wcpncpy-c.c: Move to ...
8484 * sysdeps/s390/wcpncpy-c.c: ... here and adjust ifunc handling.
8485 * sysdeps/s390/multiarch/wcpncpy-vx.S: Move to ...
8486 * sysdeps/s390/wcpncpy-vx.S: ... here and adjust ifunc handling.
8487 * sysdeps/s390/multiarch/wcpncpy.c: Move to ...
8488 * sysdeps/s390/wcpncpy.c: ... here and adjust ifunc handling.
8489 * sysdeps/s390/ifunc-wcpncpy.h: New file.
8490
8491 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
8492
8493 * sysdeps/s390/multiarch/Makefile
8494 (sysdep_routines): Remove wcsncpy variants.
8495 * sysdeps/s390/Makefile (sysdep_routines): Add wcsncpy variants.
8496 * sysdeps/s390/multiarch/ifunc-impl-list.c
8497 (__libc_ifunc_impl_list): Refactor ifunc handling for wcsncpy.
8498 * sysdeps/s390/multiarch/wcsncpy-c.c: Move to ...
8499 * sysdeps/s390/wcsncpy-c.c: ... here and adjust ifunc handling.
8500 * sysdeps/s390/multiarch/wcsncpy-vx.S: Move to ...
8501 * sysdeps/s390/wcsncpy-vx.S: ... here and adjust ifunc handling.
8502 * sysdeps/s390/multiarch/wcsncpy.c: Move to ...
8503 * sysdeps/s390/wcsncpy.c: ... here and adjust ifunc handling.
8504 * sysdeps/s390/ifunc-wcsncpy.h: New file.
8505
8506 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
8507
8508 * sysdeps/s390/multiarch/Makefile
8509 (sysdep_routines): Remove wcpcpy variants.
8510 * sysdeps/s390/Makefile (sysdep_routines): Add wcpcpy variants.
8511 * sysdeps/s390/multiarch/ifunc-impl-list.c
8512 (__libc_ifunc_impl_list): Refactor ifunc handling for wcpcpy.
8513 * sysdeps/s390/multiarch/wcpcpy-c.c: Move to ...
8514 * sysdeps/s390/wcpcpy-c.c: ... here and adjust ifunc handling.
8515 * sysdeps/s390/multiarch/wcpcpy-vx.S: Move to ...
8516 * sysdeps/s390/wcpcpy-vx.S: ... here and adjust ifunc handling.
8517 * sysdeps/s390/multiarch/wcpcpy.c: Move to ...
8518 * sysdeps/s390/wcpcpy.c: ... here and adjust ifunc handling.
8519 * sysdeps/s390/ifunc-wcpcpy.h: New file.
8520
8521 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
8522
8523 * sysdeps/s390/multiarch/Makefile
8524 (sysdep_routines): Remove wcscpy variants.
8525 * sysdeps/s390/Makefile (sysdep_routines): Add wcscpy variants.
8526 * sysdeps/s390/multiarch/ifunc-impl-list.c
8527 (__libc_ifunc_impl_list): Refactor ifunc handling for wcscpy.
8528 * sysdeps/s390/multiarch/wcscpy-c.c: Move to ...
8529 * sysdeps/s390/wcscpy-c.c: ... here and adjust ifunc handling.
8530 * sysdeps/s390/multiarch/wcscpy-vx.S: Move to ...
8531 * sysdeps/s390/wcscpy-vx.S: ... here and adjust ifunc handling.
8532 * sysdeps/s390/multiarch/wcscpy.c: Move to ...
8533 * sysdeps/s390/wcscpy.c: ... here and adjust ifunc handling.
8534 * sysdeps/s390/ifunc-wcscpy.h: New file.
8535
8536 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
8537
8538 * sysdeps/s390/multiarch/Makefile
8539 (sysdep_routines): Remove wcsnlen variants.
8540 * sysdeps/s390/Makefile (sysdep_routines): Add wcsnlen variants.
8541 * sysdeps/s390/multiarch/ifunc-impl-list.c
8542 (__libc_ifunc_impl_list): Refactor ifunc handling for wcsnlen.
8543 * sysdeps/s390/multiarch/wcsnlen-c.c: Move to ...
8544 * sysdeps/s390/wcsnlen-c.c: ... here and adjust ifunc handling.
8545 * sysdeps/s390/multiarch/wcsnlen-vx.S: Move to ...
8546 * sysdeps/s390/wcsnlen-vx.S: ... here and adjust ifunc handling.
8547 * sysdeps/s390/multiarch/wcsnlen.c: Move to ...
8548 * sysdeps/s390/wcsnlen.c: ... here and adjust ifunc handling.
8549 * sysdeps/s390/ifunc-wcsnlen.h: New file.
8550
8551 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
8552
8553 * sysdeps/s390/multiarch/Makefile
8554 (sysdep_routines): Remove wcslen variants.
8555 * sysdeps/s390/Makefile (sysdep_routines): Add wcslen variants.
8556 * sysdeps/s390/multiarch/ifunc-impl-list.c
8557 (__libc_ifunc_impl_list): Refactor ifunc handling for wcslen.
8558 * sysdeps/s390/multiarch/wcslen-c.c: Move to ...
8559 * sysdeps/s390/wcslen-c.c: ... here and adjust ifunc handling.
8560 * sysdeps/s390/multiarch/wcslen-vx.S: Move to ...
8561 * sysdeps/s390/wcslen-vx.S: ... here and adjust ifunc handling.
8562 * sysdeps/s390/multiarch/wcslen.c: Move to ...
8563 * sysdeps/s390/wcslen.c: ... here and adjust ifunc handling.
8564 * sysdeps/s390/ifunc-wcslen.h: New file.
8565
8566 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
8567
8568 * sysdeps/s390/multiarch/Makefile
8569 (sysdep_routines): Remove memrchr variants.
8570 * sysdeps/s390/Makefile (sysdep_routines): Add memrchr variants.
8571 * sysdeps/s390/multiarch/ifunc-impl-list.c
8572 (__libc_ifunc_impl_list): Refactor ifunc handling for memrchr.
8573 * sysdeps/s390/multiarch/memrchr-c.c: Move to ...
8574 * sysdeps/s390/memrchr-c.c: ... here and adjust ifunc handling.
8575 * sysdeps/s390/multiarch/memrchr-vx.S: Move to ...
8576 * sysdeps/s390/memrchr-vx.S: ... here and adjust ifunc handling.
8577 * sysdeps/s390/multiarch/memrchr.c: Move to ...
8578 * sysdeps/s390/memrchr.c: ... here and adjust ifunc handling.
8579 * sysdeps/s390/ifunc-memrchr.h: New file.
8580
8581 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
8582
8583 * sysdeps/s390/multiarch/Makefile
8584 (sysdep_routines): Remove memccpy variants.
8585 * sysdeps/s390/Makefile (sysdep_routines): Add memccpy variants.
8586 * sysdeps/s390/multiarch/ifunc-impl-list.c
8587 (__libc_ifunc_impl_list): Refactor ifunc handling for memccpy.
8588 * sysdeps/s390/multiarch/memccpy-c.c: Move to ...
8589 * sysdeps/s390/memccpy-c.c: ... here and adjust ifunc handling.
8590 * sysdeps/s390/multiarch/memccpy-vx.S: Move to ...
8591 * sysdeps/s390/memccpy-vx.S: ... here and adjust ifunc handling.
8592 * sysdeps/s390/multiarch/memccpy.c: Move to ...
8593 * sysdeps/s390/memccpy.c: ... here and adjust ifunc handling.
8594 * sysdeps/s390/ifunc-memccpy.h: New file.
8595
8596 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
8597
8598 * sysdeps/s390/multiarch/Makefile
8599 (sysdep_routines): Remove rawmemchr variants.
8600 * sysdeps/s390/Makefile (sysdep_routines): Add rawmemchr variants.
8601 * sysdeps/s390/multiarch/ifunc-impl-list.c
8602 (__libc_ifunc_impl_list): Refactor ifunc handling for rawmemchr.
8603 * sysdeps/s390/multiarch/rawmemchr-c.c: Move to ...
8604 * sysdeps/s390/rawmemchr-c.c: ... here and adjust ifunc handling.
8605 * sysdeps/s390/multiarch/rawmemchr-vx.S: Move to ...
8606 * sysdeps/s390/rawmemchr-vx.S: ... here and adjust ifunc handling.
8607 * sysdeps/s390/multiarch/rawmemchr.c: Move to ...
8608 * sysdeps/s390/rawmemchr.c: ... here and adjust ifunc handling.
8609 * sysdeps/s390/ifunc-rawmemchr.h: New file.
8610
8611 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
8612
8613 * sysdeps/s390/multiarch/Makefile
8614 (sysdep_routines): Remove memchr variants.
8615 * sysdeps/s390/Makefile (sysdep_routines): Add memchr variants.
8616 * sysdeps/s390/multiarch/ifunc-impl-list.c
8617 (__libc_ifunc_impl_list): Refactor ifunc handling for memchr.
8618 * sysdeps/s390/multiarch/memchr-vx.S: Move to ...
8619 * sysdeps/s390/memchr-vx.S: ... here and adjust ifunc handling.
8620 * sysdeps/s390/multiarch/memchr.c: Move to ...
8621 * sysdeps/s390/memchr.c: ... here and adjust ifunc handling.
8622 * sysdeps/s390/ifunc-memchr.h: New file.
8623 * sysdeps/s390/s390-64/memchr.S: Move to ...
8624 * sysdeps/s390/memchr-z900.S: ... here and adjust to be usable
8625 for 31/64bit and ifunc handling.
8626 * sysdeps/s390/s390-32/multiarch/memchr.c: Delete file.
8627 * sysdeps/s390/s390-64/multiarch/memchr.c: Likewise.
8628 * sysdeps/s390/s390-32/memchr.S: Likewise.
8629
8630 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
8631
8632 * sysdeps/s390/multiarch/Makefile
8633 (sysdep_routines): Remove strcspn variants.
8634 * sysdeps/s390/Makefile (sysdep_routines): Add strcspn variants.
8635 * sysdeps/s390/multiarch/ifunc-impl-list.c
8636 (__libc_ifunc_impl_list): Refactor ifunc handling for strcspn.
8637 * sysdeps/s390/multiarch/strcspn-c.c: Move to ...
8638 * sysdeps/s390/strcspn-c.c: ... here and adjust ifunc handling.
8639 * sysdeps/s390/multiarch/strcspn-vx.S: Move to ...
8640 * sysdeps/s390/strcspn-vx.S: ... here and adjust ifunc handling.
8641 * sysdeps/s390/multiarch/strcspn.c: Move to ...
8642 * sysdeps/s390/strcspn.c: ... here and adjust ifunc handling.
8643 * sysdeps/s390/ifunc-strcspn.h: New file.
8644
8645 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
8646
8647 * sysdeps/s390/multiarch/Makefile
8648 (sysdep_routines): Remove strpbrk variants.
8649 * sysdeps/s390/Makefile (sysdep_routines): Add strpbrk variants.
8650 * sysdeps/s390/multiarch/ifunc-impl-list.c
8651 (__libc_ifunc_impl_list): Refactor ifunc handling for strpbrk.
8652 * sysdeps/s390/multiarch/strpbrk-c.c: Move to ...
8653 * sysdeps/s390/strpbrk-c.c: ... here and adjust ifunc handling.
8654 * sysdeps/s390/multiarch/strpbrk-vx.S: Move to ...
8655 * sysdeps/s390/strpbrk-vx.S: ... here and adjust ifunc handling.
8656 * sysdeps/s390/multiarch/strpbrk.c: Move to ...
8657 * sysdeps/s390/strpbrk.c: ... here and adjust ifunc handling.
8658 * sysdeps/s390/ifunc-strpbrk.h: New file.
8659
8660 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
8661
8662 * sysdeps/s390/multiarch/Makefile
8663 (sysdep_routines): Remove strspn variants.
8664 * sysdeps/s390/Makefile (sysdep_routines): Add strspn variants.
8665 * sysdeps/s390/multiarch/ifunc-impl-list.c
8666 (__libc_ifunc_impl_list): Refactor ifunc handling for strspn.
8667 * sysdeps/s390/multiarch/strspn-c.c: Move to ...
8668 * sysdeps/s390/strspn-c.c: ... here and adjust ifunc handling.
8669 * sysdeps/s390/multiarch/strspn-vx.S: Move to ...
8670 * sysdeps/s390/strspn-vx.S: ... here and adjust ifunc handling.
8671 * sysdeps/s390/multiarch/strspn.c: Move to ...
8672 * sysdeps/s390/strspn.c: ... here and adjust ifunc handling.
8673 * sysdeps/s390/ifunc-strspn.h: New file.
8674
8675 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
8676
8677 * sysdeps/s390/multiarch/Makefile
8678 (sysdep_routines): Remove strrchr variants.
8679 * sysdeps/s390/Makefile (sysdep_routines): Add strrchr variants.
8680 * sysdeps/s390/multiarch/ifunc-impl-list.c
8681 (__libc_ifunc_impl_list): Refactor ifunc handling for strrchr.
8682 * sysdeps/s390/multiarch/strrchr-c.c: Move to ...
8683 * sysdeps/s390/strrchr-c.c: ... here and adjust ifunc handling.
8684 * sysdeps/s390/multiarch/strrchr-vx.S: Move to ...
8685 * sysdeps/s390/strrchr-vx.S: ... here and adjust ifunc handling.
8686 * sysdeps/s390/multiarch/strrchr.c: Move to ...
8687 * sysdeps/s390/strrchr.c: ... here and adjust ifunc handling.
8688 * sysdeps/s390/ifunc-strrchr.h: New file.
8689
8690 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
8691
8692 * sysdeps/s390/multiarch/Makefile
8693 (sysdep_routines): Remove strchrnul variants.
8694 * sysdeps/s390/Makefile (sysdep_routines): Add strchrnul variants.
8695 * sysdeps/s390/multiarch/ifunc-impl-list.c
8696 (__libc_ifunc_impl_list): Refactor ifunc handling for strchrnul.
8697 * sysdeps/s390/multiarch/strchrnul-c.c: Move to ...
8698 * sysdeps/s390/strchrnul-c.c: ... here and adjust ifunc handling.
8699 * sysdeps/s390/multiarch/strchrnul-vx.S: Move to ...
8700 * sysdeps/s390/strchrnul-vx.S: ... here and adjust ifunc handling.
8701 * sysdeps/s390/multiarch/strchrnul.c: Move to ...
8702 * sysdeps/s390/strchrnul.c: ... here and adjust ifunc handling.
8703 * sysdeps/s390/ifunc-strchrnul.h: New file.
8704
8705 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
8706
8707 * sysdeps/s390/multiarch/Makefile
8708 (sysdep_routines): Remove strchr variants.
8709 * sysdeps/s390/Makefile (sysdep_routines): Add strchr variants.
8710 * sysdeps/s390/multiarch/ifunc-impl-list.c
8711 (__libc_ifunc_impl_list): Refactor ifunc handling for strchr.
8712 * sysdeps/s390/multiarch/strchr-c.c: Move to ...
8713 * sysdeps/s390/strchr-c.c: ... here and adjust ifunc handling.
8714 * sysdeps/s390/multiarch/strchr-vx.S: Move to ...
8715 * sysdeps/s390/strchr-vx.S: ... here and adjust ifunc handling.
8716 * sysdeps/s390/multiarch/strchr.c: Move to ...
8717 * sysdeps/s390/strchr.c: ... here and adjust ifunc handling.
8718 * sysdeps/s390/ifunc-strchr.h: New file.
8719
8720 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
8721
8722 * sysdeps/s390/multiarch/Makefile
8723 (sysdep_routines): Remove strncmp variants.
8724 * sysdeps/s390/Makefile (sysdep_routines): Add strncmp variants.
8725 * sysdeps/s390/multiarch/ifunc-impl-list.c
8726 (__libc_ifunc_impl_list): Refactor ifunc handling for strncmp.
8727 * sysdeps/s390/multiarch/strncmp-c.c: Move to ...
8728 * sysdeps/s390/strncmp-c.c: ... here and adjust ifunc handling.
8729 * sysdeps/s390/multiarch/strncmp-vx.S: Move to ...
8730 * sysdeps/s390/strncmp-vx.S: ... here and adjust ifunc handling.
8731 * sysdeps/s390/multiarch/strncmp.c: Move to ...
8732 * sysdeps/s390/strncmp.c: ... here and adjust ifunc handling.
8733 * sysdeps/s390/ifunc-strncmp.h: New file.
8734
8735 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
8736
8737 * sysdeps/s390/multiarch/Makefile
8738 (sysdep_routines): Remove strcmp variants.
8739 * sysdeps/s390/Makefile (sysdep_routines): Add strcmp variants.
8740 * sysdeps/s390/multiarch/ifunc-impl-list.c
8741 (__libc_ifunc_impl_list): Refactor ifunc handling for strcmp.
8742 * sysdeps/s390/multiarch/strcmp-vx.S: Move to ...
8743 * sysdeps/s390/strcmp-vx.S: ... here and adjust ifunc handling.
8744 * sysdeps/s390/multiarch/strcmp.c: Move to ...
8745 * sysdeps/s390/strcmp.c: ... here and adjust ifunc handling.
8746 * sysdeps/s390/ifunc-strcmp.h: New file.
8747 * sysdeps/s390/s390-64/strcmp.S: Move to ...
8748 * sysdeps/s390/strcmp-z900.S: ... here and adjust to be usable
8749 for 31/64bit and ifunc handling.
8750 * sysdeps/s390/s390-32/multiarch/strcmp.c: Delete file.
8751 * sysdeps/s390/s390-64/multiarch/strcmp.c: Likewise.
8752 * sysdeps/s390/s390-32/strcmp.S: Likewise.
8753
8754 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
8755
8756 * sysdeps/s390/multiarch/Makefile
8757 (sysdep_routines): Remove strncat variants.
8758 * sysdeps/s390/Makefile (sysdep_routines): Add strncat variants.
8759 * sysdeps/s390/multiarch/ifunc-impl-list.c
8760 (__libc_ifunc_impl_list): Refactor ifunc handling for strncat.
8761 * sysdeps/s390/multiarch/strncat-c.c: Move to ...
8762 * sysdeps/s390/strncat-c.c: ... here and adjust ifunc handling.
8763 * sysdeps/s390/multiarch/strncat-vx.S: Move to ...
8764 * sysdeps/s390/strncat-vx.S: ... here and adjust ifunc handling.
8765 * sysdeps/s390/multiarch/strncat.c: Move to ...
8766 * sysdeps/s390/strncat.c: ... here and adjust ifunc handling.
8767 * sysdeps/s390/ifunc-strncat.h: New file.
8768
8769 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
8770
8771 * sysdeps/s390/multiarch/Makefile
8772 (sysdep_routines): Remove strcat variants.
8773 * sysdeps/s390/Makefile (sysdep_routines): Add strcat variants.
8774 * sysdeps/s390/multiarch/ifunc-impl-list.c
8775 (__libc_ifunc_impl_list): Refactor ifunc handling for strcat.
8776 * sysdeps/s390/multiarch/strcat-c.c: Move to ...
8777 * sysdeps/s390/strcat-c.c: ... here and adjust ifunc handling.
8778 * sysdeps/s390/multiarch/strcat-vx.S: Move to ...
8779 * sysdeps/s390/strcat-vx.S: ... here and adjust ifunc handling.
8780 * sysdeps/s390/multiarch/strcat.c: Move to ...
8781 * sysdeps/s390/strcat.c: ... here and adjust ifunc handling.
8782 * sysdeps/s390/ifunc-strcat.h: New file.
8783
8784 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
8785
8786 * sysdeps/s390/multiarch/Makefile
8787 (sysdep_routines): Remove stpncpy variants.
8788 * sysdeps/s390/Makefile (sysdep_routines): Add stpncpy variants.
8789 * sysdeps/s390/multiarch/ifunc-impl-list.c
8790 (__libc_ifunc_impl_list): Refactor ifunc handling for stpncpy.
8791 * sysdeps/s390/multiarch/stpncpy-c.c: Move to ...
8792 * sysdeps/s390/stpncpy-c.c: ... here and adjust ifunc handling.
8793 * sysdeps/s390/multiarch/stpncpy-vx.S: Move to ...
8794 * sysdeps/s390/stpncpy-vx.S: ... here and adjust ifunc handling.
8795 * sysdeps/s390/multiarch/stpncpy.c: Move to ...
8796 * sysdeps/s390/stpncpy.c: ... here and adjust ifunc handling.
8797 * sysdeps/s390/ifunc-stpncpy.h: New file.
8798
8799 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
8800
8801 * sysdeps/s390/multiarch/Makefile
8802 (sysdep_routines): Remove strncpy variants.
8803 * sysdeps/s390/Makefile (sysdep_routines): Add strncpy variants.
8804 * sysdeps/s390/multiarch/ifunc-impl-list.c
8805 (__libc_ifunc_impl_list): Refactor ifunc handling for strncpy.
8806 * sysdeps/s390/multiarch/strncpy-vx.S: Move to ...
8807 * sysdeps/s390/strncpy-vx.S: ... here and adjust ifunc handling.
8808 * sysdeps/s390/multiarch/strncpy.c: Move to ...
8809 * sysdeps/s390/strncpy.c: ... here and adjust ifunc handling.
8810 * sysdeps/s390/ifunc-strncpy.h: New file.
8811 * sysdeps/s390/s390-64/strncpy.S: Move to ...
8812 * sysdeps/s390/s390-64/strncpy-z900.S: ... here
8813 and adjust ifunc handling.
8814 * sysdeps/s390/s390-32/strncpy.S: Move to ...
8815 * sysdeps/s390/s390-32/strncpy-z900.S: ... here
8816 and adjust ifunc handling.
8817 * sysdeps/s390/s390-32/multiarch/strncpy.c: Delete file.
8818 * sysdeps/s390/s390-64/multiarch/strncpy.c: Likewise.
8819
8820 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
8821
8822 * sysdeps/s390/multiarch/Makefile
8823 (sysdep_routines): Remove stpcpy variants.
8824 * sysdeps/s390/Makefile (sysdep_routines): Add stpcpy variants.
8825 * sysdeps/s390/multiarch/ifunc-impl-list.c
8826 (__libc_ifunc_impl_list): Refactor ifunc handling for stpcpy.
8827 * sysdeps/s390/multiarch/stpcpy-c.c: Move to ...
8828 * sysdeps/s390/stpcpy-c.c: ... here and adjust ifunc handling.
8829 * sysdeps/s390/multiarch/stpcpy-vx.S: Move to ...
8830 * sysdeps/s390/stpcpy-vx.S: ... here and adjust ifunc handling.
8831 * sysdeps/s390/multiarch/stpcpy.c: Move to ...
8832 * sysdeps/s390/stpcpy.c: ... here and adjust ifunc handling.
8833 * sysdeps/s390/ifunc-stpcpy.h: New file.
8834
8835 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
8836
8837 * sysdeps/s390/multiarch/Makefile
8838 (sysdep_routines): Remove strcpy variants.
8839 * sysdeps/s390/Makefile (sysdep_routines): Add strcpy variants.
8840 * sysdeps/s390/multiarch/ifunc-impl-list.c
8841 (__libc_ifunc_impl_list): Refactor ifunc handling for strcpy.
8842 * sysdeps/s390/multiarch/strcpy-vx.S: Move to ...
8843 * sysdeps/s390/strcpy-vx.S: ... here and adjust ifunc handling.
8844 * sysdeps/s390/multiarch/strcpy.c: Move to ...
8845 * sysdeps/s390/strcpy.c: ... here and adjust ifunc handling.
8846 * sysdeps/s390/ifunc-strcpy.h: New file.
8847 * sysdeps/s390/s390-64/strcpy.S: Move to ...
8848 * sysdeps/s390/strcpy-z900.S: ... here and adjust to be usable
8849 for 31/64bit and ifunc handling.
8850 * sysdeps/s390/s390-32/multiarch/strcpy.c: Delete file.
8851 * sysdeps/s390/s390-64/multiarch/strcpy.c: Likewise.
8852 * sysdeps/s390/s390-32/strcpy.S: Likewise.
8853
8854 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
8855
8856 * sysdeps/s390/multiarch/Makefile
8857 (sysdep_routines): Remove strnlen variants.
8858 * sysdeps/s390/Makefile (sysdep_routines): Add strnlen variants.
8859 * sysdeps/s390/multiarch/ifunc-impl-list.c
8860 (__libc_ifunc_impl_list): Refactor ifunc handling for strnlen.
8861 * sysdeps/s390/multiarch/strnlen-c.c: Move to ...
8862 * sysdeps/s390/strnlen-c.c: ... here and adjust ifunc handling.
8863 * sysdeps/s390/multiarch/strnlen-vx.S: Move to ...
8864 * sysdeps/s390/strnlen-vx.S: ... here and adjust ifunc handling.
8865 * sysdeps/s390/multiarch/strnlen.c: Move to ...
8866 * sysdeps/s390/strnlen.c: ... here and adjust ifunc handling.
8867 * sysdeps/s390/ifunc-strnlen.h: New file.
8868
8869 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
8870
8871 * sysdeps/s390/multiarch/Makefile
8872 (sysdep_routines): Remove strlen variants.
8873 * sysdeps/s390/Makefile (sysdep_routines): Add strlen variants.
8874 * sysdeps/s390/multiarch/ifunc-impl-list.c
8875 (__libc_ifunc_impl_list): Refactor ifunc handling for strlen.
8876 * sysdeps/s390/multiarch/strlen-c.c: Move to ...
8877 * sysdeps/s390/strlen-c.c: ... here and adjust ifunc handling.
8878 * sysdeps/s390/multiarch/strlen-vx.S: Move to ...
8879 * sysdeps/s390/strlen-vx.S: ... here and adjust ifunc handling.
8880 * sysdeps/s390/multiarch/strlen.c: Move to ...
8881 * sysdeps/s390/strlen.c: ... here and adjust ifunc handling.
8882 * sysdeps/s390/ifunc-strlen.h: New file.
8883
8884 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
8885
8886 * sysdeps/s390/Makefile (sysdep_routines): Add memmem variants.
8887 * sysdeps/s390/multiarch/ifunc-impl-list.c
8888 (__libc_ifunc_impl_list): Add ifunc variants for memmem.
8889 * sysdeps/s390/ifunc-memmem.h: New file.
8890 * sysdeps/s390/memmem.c: Likewise.
8891 * sysdeps/s390/memmem-c.c: Likewise.
8892 * sysdeps/s390/memmem-vx.c: Likewise.
8893
8894 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
8895
8896 * sysdeps/s390/Makefile (sysdep_routines): Add strstr variants.
8897 * sysdeps/s390/multiarch/ifunc-impl-list.c
8898 (__libc_ifunc_impl_list): Add ifunc variants for strstr.
8899 * sysdeps/s390/ifunc-strstr.h: New file.
8900 * sysdeps/s390/strstr.c: Likewise.
8901 * sysdeps/s390/strstr-c.c: Likewise.
8902 * sysdeps/s390/strstr-vx.c: Likewise.
8903
8904 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
8905
8906 * sysdeps/s390/Makefile (sysdep_routines): Add memmove-c.
8907 * sysdeps/s390/ifunc-memcpy.h (HAVE_MEMMOVE_IFUNC,
8908 HAVE_MEMMOVE_IFUNC_AND_VX_SUPPORT, MEMMOVE_DEFAULT,
8909 HAVE_MEMMOVE_C, MEMMOVE_C, HAVE_MEMMOVE_Z13, MEMMOVE_Z13):
8910 New defines.
8911 * sysdeps/s390/memcpy-z900.S: Add z13 memmove implementation.
8912 * sysdeps/s390/memmove-c.c: New file.
8913 * sysdeps/s390/memmove.c: Likewise.
8914 * sysdeps/s390/multiarch/ifunc-impl-list.c
8915 (__libc_ifunc_impl_list): Add ifunc variants for memmove.
8916
8917 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
8918
8919 * config.h.in (HAVE_S390_MIN_Z13_ZARCH_ASM_SUPPORT): New undefine.
8920 * sysdeps/s390/configure.ac: Add check for z13 support.
8921 * sysdeps/s390/configure: Regenerated.
8922
8923 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
8924
8925 * sysdeps/s390/memcopy.h: New file.
8926
8927 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
8928
8929 * sysdeps/s390/s390-32/bcopy.S: Remove.
8930 * sysdeps/s390/s390-64/bcopy.S: Likewise.
8931
8932 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
8933
8934 * sysdeps/s390/ifunc-memcpy.h: New File.
8935 * sysdeps/s390/memcpy.S: Move to ...
8936 * sysdeps/s390/memcpy-z900.S ... here.
8937 Move implementations from memcpy-s390x.s to here.
8938 * sysdeps/s390/multiarch/memcpy-s390x.S: Delete File.
8939 * sysdeps/s390/multiarch/Makefile (sysdep_routines):
8940 Remove memcpy/mempcpy variants.
8941 * sysdeps/s390/Makefile (sysdep_routines):
8942 Add memcpy/mempcpy variants.
8943 * sysdeps/s390/multiarch/ifunc-impl-list.c
8944 (__libc_ifunc_impl_list): Adjust ifunc variants for
8945 memcpy and mempcpy.
8946 * sysdeps/s390/multiarch/memcpy.c: Move ifunc resolver
8947 to ...
8948 * sysdeps/s390/memcpy.c: ... here.
8949 Adjust ifunc variants for memcpy.
8950 * sysdeps/s390/multiarch/mempcpy.c: Move to ...
8951 * sysdeps/s390/mempcpy.c: ... here.
8952 Adjust ifunc variants for mempcpy.
8953 * sysdeps/s390/mempcpy.S: Delete file.
8954
8955 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
8956
8957 * sysdeps/s390/s390-64/memcpy.S: Move to ...
8958 * sysdeps/s390/memcpy.S: ... here.
8959 Adjust to be usable for 31/64bit.
8960 * sysdeps/s390/s390-32/memcpy.S: Delete File.
8961 * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add memcpy.
8962 * sysdeps/s390/s390-32/multiarch/Makefile: Delete file.
8963 * sysdeps/s390/s390-64/multiarch/Makefile: Likewise.
8964 * sysdeps/s390/s390-64/multiarch/memcpy-s390x.S: Move to ...
8965 * sysdeps/s390/multiarch/memcpy-s390x.S: ... here.
8966 Adjust to be usable for 31/64bit.
8967 * sysdeps/s390/s390-32/multiarch/memcpy-s390.S: Delete File.
8968 * sysdeps/s390/s390-64/multiarch/memcpy.c: Move to ...
8969 * sysdeps/s390/multiarch/memcpy.c: ... here.
8970 * sysdeps/s390/s390-32/multiarch/memcpy.c: Delete File.
8971
8972 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
8973
8974 * sysdeps/s390/ifunc-memcmp.h: New File.
8975 * sysdeps/s390/memcmp.S: Move to ...
8976 * sysdeps/s390/memcmp-z900.S ... here.
8977 Move implementations from memcmp-s390x.s to here.
8978 * sysdeps/s390/multiarch/memcmp-s390x.S: Delete File.
8979 * sysdeps/s390/multiarch/Makefile (sysdep_routines):
8980 Remove memcmp variants.
8981 * sysdeps/s390/Makefile (sysdep_routines):
8982 Add memcmp variants.
8983 * sysdeps/s390/multiarch/ifunc-impl-list.c
8984 (__libc_ifunc_impl_list): Adjust ifunc variants for
8985 memcmp.
8986 * sysdeps/s390/multiarch/memcmp.c: Move ifunc resolver
8987 to ...
8988 * sysdeps/s390/memcmp.c: ... here.
8989 Adjust ifunc variants for memcmp.
8990
8991 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
8992
8993 * sysdeps/s390/s390-64/memcmp.S: Move to ...
8994 * sysdeps/s390/memcmp.S: ... here.
8995 Adjust to be usable for 31/64bit.
8996 * sysdeps/s390/s390-32/memcmp.S: Delete File.
8997 * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add memcmp.
8998 * sysdeps/s390/s390-32/multiarch/Makefile (sysdep_routines):
8999 Remove memcmp.
9000 * sysdeps/s390/s390-64/multiarch/Makefile: Likewise.
9001 * sysdeps/s390/s390-64/multiarch/memcmp-s390x.S: Move to ...
9002 * sysdeps/s390/multiarch/memcmp-s390x.S: ... here.
9003 Adjust to be usable for 31/64bit.
9004 * sysdeps/s390/s390-32/multiarch/memcmp-s390.S: Delete File.
9005 * sysdeps/s390/s390-64/multiarch/memcmp.c: Move to ...
9006 * sysdeps/s390/multiarch/memcmp.c: ... here.
9007 * sysdeps/s390/s390-32/multiarch/memcmp.c: Delete File.
9008
9009 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
9010
9011 * sysdeps/s390/s390-32/bzero.S: Delete file.
9012 * sysdeps/s390/s390-64/bzero.S: Likewise.
9013 * sysdeps/s390/Makefile (sysdep_routines): Add bzero.
9014 * sysdeps/s390/bzero.c: New file.
9015 * sysdeps/s390/memset-z900.S: Add bzero entry points.
9016 * sysdeps/s390/ifunc-memset.h: Add bzero function macros.
9017 * sysdeps/s390/multiarch/ifunc-impl-list.c
9018 (__libc_ifunc_impl_list): Add bzero ifunc variants.
9019
9020 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
9021
9022 * sysdeps/s390/ifunc-memset.h: New File.
9023 * sysdeps/s390/memset.S: Move to ...
9024 * sysdeps/s390/memset-z900.S ... here.
9025 Move implementations from memset-s390x.s to here.
9026 * sysdeps/s390/multiarch/memset-s390x.S: Delete File.
9027 * sysdeps/s390/multiarch/Makefile (sysdep_routines):
9028 Remove memset variants.
9029 * sysdeps/s390/Makefile (sysdep_routines):
9030 Add memset variants.
9031 * sysdeps/s390/multiarch/ifunc-impl-list.c
9032 (__libc_ifunc_impl_list): Adjust ifunc variants for
9033 memset.
9034 * sysdeps/s390/multiarch/memset.c: Move ifunc resolver
9035 to ...
9036 * sysdeps/s390/memset.c: ... here.
9037 Adjust ifunc variants for memset.
9038
9039 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
9040
9041 * sysdeps/s390/s390-64/memset.S: Move to ...
9042 * sysdeps/s390/memset.S: ... here.
9043 Adjust to be usable for 31/64bit.
9044 * sysdeps/s390/s390-32/memset.S: Delete File.
9045 * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add memset.
9046 * sysdeps/s390/s390-32/multiarch/Makefile (sysdep_routines):
9047 Remove memset.
9048 * sysdeps/s390/s390-64/multiarch/Makefile: Likewise.
9049 * sysdeps/s390/s390-64/multiarch/memset-s390x.S: Move to ...
9050 * sysdeps/s390/multiarch/memset-s390x.S: ... here.
9051 Adjust to be usable for 31/64bit.
9052 * sysdeps/s390/s390-32/multiarch/memset-s390.S: Delete File.
9053 * sysdeps/s390/s390-64/multiarch/memset.c: Move to ...
9054 * sysdeps/s390/multiarch/memset.c: ... here.
9055 * sysdeps/s390/s390-32/multiarch/memset.c: Delete File.
9056
9057 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
9058
9059 * sysdeps/s390/multiarch/ifunc-resolve.h
9060 (s390_libc_ifunc_init, s390_libc_ifunc,
9061 s390_vx_libc_ifunc2_redirected): Use hwcap instead of dl_hwcap.
9062
9063 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
9064
9065 * config.h.in (HAVE_S390_MIN_Z10_ZARCH_ASM_SUPPORT): New undefine.
9066 * sysdeps/s390/configure.ac: Add check for z10 support.
9067 * sysdeps/s390/configure: Regenerated.
9068
9069 2018-12-18 H.J. Lu <hongjiu.lu@intel.com>
9070
9071 * sysdeps/i386/atomic-machine.h: Merged with ...
9072 * sysdeps/x86_64/atomic-machine.h: To ...
9073 * sysdeps/x86/atomic-machine.h: This. New file.
9074
9075 2018-12-18 Florian Weimer <fweimer@redhat.com>
9076
9077 Rewrite locale/gen-translit.pl in Python.
9078 * locale/Makefile (generated): Add C-translit.h.
9079 (before-compile): Add $(objpfx)C-translit.h.
9080 (C-translit.h): Move to $(objpfx). Create target directory.
9081 Build using Python script.
9082 * locale/gen-translit.py: New file.
9083 * locale/gen-translit.pl: Remove file.
9084 * locale/C-translit.h.in: Change comment character to '#' for
9085 easier parsing without a C preprocessor.
9086 * locale/C-translit.h: Remove generated file.
9087 * manual/install.texi (Tools for Compilation): Do not mention
9088 C-translit.h.
9089 * scripts/build-many-glibcs.py (Context.fix_glibc_timestamps):
9090 Remove locale/C-translit.h.
9091 * scripts/update-copyrights: Likewise.
9092 * INSTALL: Regenerate.
9093
9094 2018-12-18 Florian Weimer <fweimer@redhat.com>
9095
9096 [BZ #23995]
9097 * localedata/locales/bi_VU: Remove executable bit from file.
9098
9099 2018-12-17 Albert ARIBAUD <albert.aribaud@3adev.fr>
9100
9101 * include/time.h
9102 (__localtime64): Add.
9103 * manual/maint.texi: Document Y2038 symbol handling.
9104 * time/localtime.c
9105 (__localtime64): Add.
9106 [__TIMESIZE != 64] (__localtime): Turn into a wrapper.
9107
9108 2018-12-17 Joseph Myers <joseph@codesourcery.com>
9109
9110 * sysdeps/unix/sysv/linux/ia64/sysdep.h (ASM_CLOBBERS_6_COMMON):
9111 Do not clobber r12.
9112
9113 * scripts/glibcextract.py (compare_macro_consts): Take parameters
9114 to allow extra macros from first or second sources.
9115 * sysdeps/unix/sysv/linux/tst-mman-consts.py: New file.
9116 * sysdeps/unix/sysv/linux/Makefile [$(subdir) = misc]
9117 (tests-special): Add $(objpfx)tst-mman-consts.out.
9118 ($(objpfx)tst-mman-consts.out): New makefile target.
9119
9120 2018-12-17 Mao Han <han_mao@c-sky.com>
9121
9122 * sysdeps/unix/sysv/linux/Makefile: Add statx_cp.c.
9123 * sysdeps/unix/sysv/linux/fxstat64.c: Add conditionals for kernel
9124 without stat64 system call support.
9125 * sysdeps/unix/sysv/linux/fxstatat64.c: Likewise.
9126 * sysdeps/unix/sysv/linux/generic/wordsize-32/fxstat.c: Likewise.
9127 * sysdeps/unix/sysv/linux/generic/wordsize-32/fxstatat.c: Likewise.
9128 * sysdeps/unix/sysv/linux/generic/wordsize-32/lxstat.c: Likewise.
9129 * sysdeps/unix/sysv/linux/generic/wordsize-32/lxstat64.c: Likewise.
9130 * sysdeps/unix/sysv/linux/generic/wordsize-32/xstat.c: Likewise.
9131 * sysdeps/unix/sysv/linux/generic/wordsize-32/xstat64.c: Likewise.
9132 * sysdeps/unix/sysv/linux/mips/mips64/statx_cp.c: New file.
9133 * sysdeps/unix/sysv/linux/statx_cp.c: Likewise.
9134 * sysdeps/unix/sysv/linux/statx_cp.h: Likewise.
9135 * sysdeps/unix/sysv/linux/wordsize-64/statx_cp.c: Likewise.
9136
9137 2018-12-15 Paul Eggert <eggert@cs.ucla.edu>
9138
9139 regex: fix storage-exhaustion error
9140 [BZ #18040]
9141 * posix/regexec.c (get_subexp):
9142 Do not continue if storage is exhausted.
9143
9144 2018-12-15 Assaf Gordon <assafgordon@gmail.com>
9145
9146 regex: fix heap-use-after-free error
9147 [BZ #18040]
9148 Problem reported by Saito Takaaki <tails.saito@gmail.com> in
9149 https://debbugs.gnu.org/32592
9150 Call stack get_subexp->get_subexp_sub->clean_state_log_if_needed may
9151 call extend_buffers which reallocates the re_string_t internal buffer.
9152 Local variable 'buf' was not updated in such case, resulting in
9153 use-after-free.
9154 * posix/regexec.c (get_subexp): Update 'buf' after call to
9155 get_subexp_sub.
9156
9157 2018-12-15 Florian Weimer <fweimer@redhat.com>
9158
9159 * support/blob_repeat.c (check_mul_overflow_size_t): New function.
9160 (minimum_stride_size): Use it.
9161 (support_blob_repeat_allocate): Likewise.
9162
9163 2018-12-14 Joseph Myers <joseph@codesourcery.com>
9164
9165 * sysdeps/x86/fpu/bits/mathinline.h (asinh): Remove inline
9166 definition.
9167 (acosh): Likewise.
9168 (atanh): Likewise.
9169
9170 2018-12-14 Florian Weimer <fweimer@redhat.com>
9171
9172 * manual/process.texi (Process Creation Concepts): Remove
9173 documentation of process (ID) lifetime. List more process
9174 creation functions. Reference Process Identification section.
9175 (Process Identification): Add information about process ID
9176 lifetime. Describe Linux thread/task IDs.
9177 * manual/signal.texi (Signaling Another Process): Mention that the
9178 signal is always sent to the process.
9179
9180 2018-12-14 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
9181
9182 * misc/Makefile (tests): Remove tst-efgcvt. Add tst-dbl-efgcvt
9183 and tst-ldbl-efgcvt.
9184 * misc/tst-efgcvt.c: Renamed to misc/tst-efgcvt-template.c.
9185 * misc/tst-efgcvt-template.c: Renamed from misc/tst-efgcvt.c.
9186 (struct testcase, efcvt_func, efcvt_r_func, ecvt_tests)
9187 (fcvt_tests, output_error, output_r_error, do_test): Use the
9188 macros defined in tst-dbl-efgcvt.c and tst-ldbl-efgcvt.c to:
9189 select the type of floating-point variables and arguments; to
9190 produce extra tests for double and conversion specifiers for
9191 printf; and to set the names of called functions.
9192 * misc/tst-dbl-efgcvt.c: New file that defines the macros used
9193 in tst-efgcvt-template.c.
9194 * misc/tst-ldbl-efgcvt.c: Likewise.
9195
9196 2018-12-14 Stefan Liebler <stli@linux.ibm.com>
9197
9198 * nss/Makefile (tst-nss-test3.out): New rule.
9199
9200 2018-12-13 Joseph Myers <joseph@codesourcery.com>
9201
9202 * sysdeps/mach/hurd/i386/init-first.c (_hurd_stack_setup): Do not
9203 clobber sp.
9204
9205 2018-12-13 fanjinke <fanjinke@hygon.cn>
9206
9207 * sysdeps/x86/cpu-features.c (init_cpu_features): Check for
9208 "HygonGenuine".
9209
9210 2018-12-13 Andreas Schwab <schwab@suse.de>
9211
9212 [BZ #23861]
9213 * nptl/pthread_rwlock_common.c: Reindent. Fix typos.
9214 (__pthread_rwlock_rdlock_full): Update expected value for
9215 __readers while waiting on PTHREAD_RWLOCK_RWAITING.
9216 * nptl/tst-rwlock-pwn.c: New file.
9217 * nptl/Makefile (tests): Add tst-rwlock-pwn.
9218
9219 2018-12-12 Joseph Myers <joseph@codesourcery.com>
9220
9221 * sysdeps/x86/fpu/bits/mathinline.h (hypot): Remove inline
9222 definition.
9223
9224 2018-12-12 Leonardo Sandoval <leonardo.sandoval.gonzalez@intel.com>
9225
9226 * benchtests/scripts/compare_bench.py (do_compare): write to
9227 stderr in casestat is not present.
9228 * benchtests/scripts/compare_bench.py (plot_graphs): write to
9229 stderr in case timings field is not present. Also string showing
9230 the output filename goes into the stderr.
9231
9232 2018-12-12 Leonardo Sandoval <leonardo.sandoval.gonzalez@intel.com>
9233
9234 * benchtests/scripts/compare_bench.py (do_compare): Catch KeyError
9235 and ZeroDivisorError exceptions.
9236 * benchtests/scripts/compare_bench.py (compare_runs): Use stats
9237 argument to loop through user provided statistics.
9238 * benchtests/scripts/compare_bench.py (main): Include the --stats
9239 argument.
9240
9241 2018-12-12 Leonardo Sandoval <leonardo.sandoval.gonzalez@intel.com>
9242
9243 * benchtests/scripts/compare_bench.py (compare_runs): Continue
9244 instead of return.
9245
9246 2018-12-12 Florian Weimer <fweimer@redhat.com>
9247
9248 * sysdeps/posix/timespec_get.c: Add missing “any later version”
9249 clause to copyright header.
9250
9251 2018-12-12 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
9252
9253 [BZ #23614]
9254 * sysdeps/powerpc/powerpc64/addmul_1.S (FUNC): Add CFI offset for
9255 registers saved in the stack frame.
9256 * sysdeps/powerpc/powerpc64/lshift.S (__mpn_lshift): Likewise.
9257 * sysdeps/powerpc/powerpc64/mul_1.S (__mpn_mul_1): Likewise.
9258
9259 2018-12-11 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
9260
9261 * include/bits/monetary-ldbl.h: New file.
9262 * include/bits/printf-ldbl.h: Likewise.
9263 * include/bits/stdio-ldbl.h: Likewise.
9264 * include/bits/stdlib-ldbl.h: Likewise.
9265 * include/bits/syslog-ldbl.h: Likewise.
9266 * include/bits/wchar-ldbl.h: Likewise.
9267
9268 2018-12-11 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
9269
9270 * libio/libio.h: Remove redirection for _IO_vfprintf.
9271
9272 2018-12-11 Andreas Schwab <schwab@suse.de>
9273
9274 * Makerules: Remove all references to abilist-pattern.
9275 (update-all-abi): Simplify find expression.
9276
9277 2018-12-11 Szabolcs Nagy <szabolcs.nagy@arm.com>
9278
9279 [BZ #23961]
9280 * math/auto-libm-test-in: Add new test case.
9281 * math/auto-libm-test-out-pow: Regenerated.
9282 * sysdeps/ieee754/flt-32/e_powf.c (__powf): Fix overflow check.
9283
9284 2018-12-10 DJ Delorie <dj@redhat.com>
9285
9286 [BZ #23948]
9287 * support/test-container.c: Move postclean step to before we
9288 change namespaces.
9289
9290 2018-12-10 Joseph Myers <joseph@codesourcery.com>
9291
9292 * scripts/gen-as-const.py (main): Handle --python option.
9293 * scripts/gen-py-const.awk: Remove.
9294 * Makerules (py-const-script): Use gen-as-const.py.
9295 ($(py-const)): Likewise.
9296 * nptl/nptl-printers.py (MutexPrinter.read_status_no_robust): Mask
9297 with 0xffffffff together with ~(PTHREAD_MUTEX_PRIO_CEILING_MASK).
9298 (MutexAttributesPrinter.read_values): Mask with 0xffffffff
9299 together with ~PTHREAD_MUTEXATTR_FLAG_BITS and
9300 ~PTHREAD_MUTEX_NO_ELISION_NP.
9301 * manual/README.pretty-printers: Update reference to
9302 gen-py-const.awk.
9303
9304 * scripts/glibcextract.py: New file.
9305 * scripts/gen-as-const.py: Do not import os.path, re, subprocess
9306 or tempfile. Import glibcexctract.
9307 (compute_c_consts): Remove. Moved to glibcextract.py.
9308 (gen_test): Update reference to compute_c_consts.
9309 (main): Likewise.
9310 * sysdeps/unix/sysv/linux/tst-signal-numbers.py: New file.
9311 * sysdeps/unix/sysv/linux/tst-signal-numbers.sh: Remove.
9312 * sysdeps/unix/sysv/linux/Makefile
9313 ($(objpfx)tst-signal-numbers.out): Use tst-signal-numbers.py.
9314 Redirect stderr as well as stdout.
9315
9316 2018-12-10 Rafael Ávila de Espíndola <rafael@espindo.la>
9317
9318 [BZ #19767]
9319 * sysdeps/unix/sysv/linux/mips/init-first.c: Remove #ifdef SHARED.
9320 * sysdeps/unix/sysv/linux/mips/libc-vdso.h: Remove #ifdef SHARED.
9321 * sysdeps/unix/sysv/linux/mips/mips32/sysdep.h: Define
9322 ALWAYS_USE_VSYSCALL.
9323 * sysdeps/unix/sysv/linux/mips/mips64/n32/sysdep.h: Define
9324 ALWAYS_USE_VSYSCALL.
9325 * sysdeps/unix/sysv/linux/mips/mips64/n64/sysdep.h: Define
9326 ALWAYS_USE_VSYSCALL.
9327
9328 2018-12-10 Florian Weimer <fweimer@redhat.com>
9329
9330 [BZ #23972]
9331 * sysdeps/unix/sysv/linux/getdents64.c (handle_overflow): Check
9332 offset instead of count for clarity. Fix typo in comment.
9333 (__old_getdents64): Keep track of previous offset. Use it to call
9334 handle_overflow.
9335 * sysdeps/unix/sysv/linux/tst-readdir64-compat.c (do_test): Check
9336 that d_off is never zero.
9337
9338 2018-12-10 Andreas Schwab <schwab@suse.de>
9339
9340 * sysdeps/unix/sysv/linux/powerpc/powerpc64/*-le.abilist: Move to
9341 sysdeps/unix/sysv/linux/powerpc/powerpc64/le/*.abilist.
9342 * sysdeps/unix/sysv/linux/powerpc/powerpc64/*.abilist: Move to
9343 sysdeps/unix/sysv/linux/powerpc/powerpc64/be/*.abilist.
9344 * sysdeps/powerpc/Makefile (abilist-pattern): Don't define.
9345
9346 2018-12-10 Joseph Myers <joseph@codesourcery.com>
9347
9348 * timezone/private.h: Update from tzcode 2018g.
9349 * timezone/tzfile.h: Likewise.
9350 * timezone/tzselect.ksh: Likewise.
9351 * timezone/zdump.c: Likewise.
9352 * timezone/zic.c: Likewise.
9353
9354 2018-12-08 Paul Pluzhnikov <ppluzhnikov@google.com>
9355
9356 [BZ #23490]
9357 * sysdeps/unix/sysv/linux/x86/tst-cet-property-2.c
9358 (do_test): Adjust buffer size and fix format.
9359
9360 2018-12-07 DJ Delorie <dj@redhat.com>
9361
9362 [BZ #23907]
9363 * malloc/tst-tcfree3.c: New.
9364 * malloc/Makefile: Add it.
9365
9366 2018-12-07 H.J. Lu <hongjiu.lu@intel.com>
9367
9368 * include/sched.h (__getcpu): Don't use __typeof__ (getcpu).
9369
9370 2018-12-07 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
9371
9372 * libio/libioP.h (SCANF_LDBL_USES_FLOAT128): New macro to be
9373 used as a mask for the mode argument of __vfscanf_internal and
9374 __vfwscanf_internal.
9375 * stdio-common/vfscanf-internal.c
9376 [defined COMPILE_WSCANF && __HAVE_FLOAT128_UNLIKE_LDBL]
9377 (__strtof128_internal): Define to __wcstof128_internal.
9378 [__HAVE_FLOAT128_UNLIKE_LDBL] (__vfscanf_internal): Call
9379 __strtof128_internal or __wcstof128_internal when the format of
9380 long double is the same as _Float128.
9381
9382 2018-12-05 Samuel Thibault <samuel.thibault@ens-lyon.org>
9383
9384 * include/unistd.h (__confstr): Add prototype and hidden prototype.
9385 * posix/confstr.c (confstr): Rename to __confstr.
9386 (__confstr): Add hidden def.
9387 (confstr): Add weak alias for __confstr.
9388 * sysdeps/mach/hurd/spawni.c (__spawni): Call __confstr instead of
9389 confstr.
9390
9391 2018-12-07 H.J. Lu <hongjiu.lu@intel.com>
9392
9393 * NEWS: Mention getcpu.
9394 * include/sched.h (__getcpu): New libc_hidden_proto.
9395 * manual/resource.texi: Document getcpu.
9396 * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Add getcpu.
9397 * sysdeps/unix/sysv/linux/Versions (GLIBC_2.29): Add getcpu.
9398 * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Add getcpu.
9399 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
9400 * sysdeps/unix/sysv/linux/arm/libc.abilist: Likewise.
9401 * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
9402 * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
9403 * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
9404 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
9405 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
9406 * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
9407 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
9408 * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist:
9409 Likewise.
9410 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
9411 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
9412 * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise.
9413 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
9414 Likewise.
9415 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
9416 Likewise.
9417 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist:
9418 Likewise.
9419 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist:
9420 Likewise.
9421 * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist: Likewise.
9422 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
9423 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
9424 * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
9425 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
9426 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
9427 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
9428 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
9429 * sysdeps/unix/sysv/linux/bits/sched.h (getcpu): New prototype.
9430 * sysdeps/unix/sysv/linux/getcpu.c: New file.
9431 * sysdeps/unix/sysv/linux/tst-skeleton-affinity.c (test_size):
9432 Also check getcpu.
9433
9434 2018-12-07 Samuel Thibault <samuel.thibault@ens-lyon.org>
9435
9436 * sysdeps/mach/hurd/spawni.c (child_lookup_under, child_fchdir): New
9437 functions.
9438 (__spawni): Handle spawn_do_fchdir by calling child_fchdir.
9439
9440 2018-12-07 Florian Weimer <fweimer@redhat.com>
9441
9442 [BZ #17405]
9443 * posix/Makefile (routines): Add spawn_faction_addfchdir.
9444 * posix/Versions (GLIBC_2.29): Export
9445 posix_spawn_file_actions_addfchdir_np.
9446 * posix/spawn.h (posix_spawn_file_actions_addfchdir_np): Declare.
9447 * posix/spawn_faction_destroy.c
9448 (__posix_spawn_file_actions_destroy): Handle spawn_do_fchdir.
9449 * posix/spawn_int.h (struct __spawn_action): Add spawn_do_fchdir
9450 and the field action.fchdir_action.
9451 * posix/tst-spawn-chdir.c (add_chdir): New function.
9452 (do_test): Add do_fchdir loop. Call add_chdir.
9453 * sysdeps/posix/spawni.c (__spawni_child): Handle spawn_do_fchdir.
9454 * sysdeps/unix/sysv/linux/spawni.c (__spawni_child): Likewise.
9455 * sysdeps/mach/hurd/i386/libc.abilist (GLIBC_2.29): Add
9456 posix_spawn_file_actions_addfchdir_np.
9457 * sysdeps/unix/sysv/linux/aarch64/libc.abilist (GLIBC_2.29):
9458 Likewise.
9459 * sysdeps/unix/sysv/linux/alpha/libc.abilist (GLIBC_2.29):
9460 Likewise.
9461 * sysdeps/unix/sysv/linux/arm/libc.abilist (GLIBC_2.29): Likewise.
9462 * sysdeps/unix/sysv/linux/hppa/libc.abilist (GLIBC_2.29):
9463 Likewise.
9464 * sysdeps/unix/sysv/linux/i386/libc.abilist (GLIBC_2.29):
9465 Likewise.
9466 * sysdeps/unix/sysv/linux/ia64/libc.abilist (GLIBC_2.29):
9467 Likewise.
9468 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist (GLIBC_2.29):
9469 Likewise.
9470 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist (GLIBC_2.29):
9471 Likewise.
9472 * sysdeps/unix/sysv/linux/microblaze/libc.abilist (GLIBC_2.29):
9473 Likewise.
9474 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist
9475 (GLIBC_2.29): Likewise.
9476 * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist
9477 (GLIBC_2.29): Likewise.
9478 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist
9479 (GLIBC_2.29): Likewise.
9480 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist
9481 (GLIBC_2.29): Likewise.
9482 * sysdeps/unix/sysv/linux/nios2/libc.abilist (GLIBC_2.29):
9483 Likewise.
9484 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist
9485 (GLIBC_2.29): Likewise.
9486 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist
9487 (GLIBC_2.29): Likewise.
9488 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist
9489 (GLIBC_2.29): Likewise.
9490 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist
9491 (GLIBC_2.29): Likewise.
9492 * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist (GLIBC_2.29):
9493 Likewise.
9494 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist (GLIBC_2.29):
9495 Likewise.
9496 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist (GLIBC_2.29):
9497 Likewise.
9498 * sysdeps/unix/sysv/linux/sh/libc.abilist (GLIBC_2.29): Likewise.
9499 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist (GLIBC_2.29):
9500 Likewise.
9501 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist (GLIBC_2.29):
9502 Likewise.
9503 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist (GLIBC_2.29):
9504 Likewise.
9505 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist (GLIBC_2.29):
9506 Likewise.
9507
9508 2018-12-06 Joseph Myers <joseph@codesourcery.com>
9509
9510 * manual/texinfo.tex: Update to version 2018-09-21.20 with
9511 trailing whitespace removed.
9512 * scripts/config.guess: Update to version 2018-11-28.
9513 * scripts/config.sub: Update to version 2018-11-28.
9514 * scripts/install-sh: Update to version 2018-03-11.20.
9515 * scripts/mkinstalldirs: Update to version 2018-03-07.03.
9516 * scripts/move-if-change: Update to version 2018-03-07 03:47.
9517
9518 2018-12-07 Florian Weimer <fweimer@redhat.com>
9519
9520 [BZ #23927]
9521 CVE-2018-19591
9522 * inet/tst-if_index-long.c: New file.
9523 * inet/Makefile (tests): Add tst-if_index-long.
9524
9525 2018-12-07 Florian Weimer <fweimer@redhat.com>
9526
9527 * support/check.h (support_record_failure_is_failed): Declare.
9528 * support/descriptors.h: New file.
9529 * support/support_descriptors.c: Likewise.
9530 * support/tst-support_descriptors.c: Likewise.
9531 * support/support_record_failure.c
9532 (support_record_failure_is_failed): New function.
9533 * support/Makefile (libsupport-routines): Add support_descriptors.
9534 (tests): Add tst-support_descriptors.
9535
9536 2018-12-05 Zack Weinberg <zackw@panix.com>
9537 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
9538
9539 * stdio-common/vfprintf-internal.c
9540 (__vfprintf_internal, __vfwprintf_internal): Don't use __ldbl_is_dbl.
9541 * sysdeps/generic/math_ldbl_opt.h: Remove __ldbl_is_dbl.
9542 * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Remove __ldbl_is_dbl
9543 and __no_long_double.
9544 * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.c: Remove file.
9545 * sysdeps/ieee754/ldbl-opt/Makefile (routines): Remove math_ldbl_opt.
9546 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c: Remove
9547 libc_hidden_proto and libc_hidden_def from all __nldbl_*printf*
9548 and __nldbl_*syslog* functions.
9549 (__nldbl_cleanup, set_no_long_double, clear_no_long_double): Remove.
9550 (__nldbl___asprintf, __nldbl_dprintf, __nldbl_fprintf)
9551 (__nldbl_fwprintf, __nldbl_printf, __nldbl_sprintf)
9552 (__nldbl_vfprintf, __nldbl___vsprintf, __nldbl_obstack_vprintf)
9553 (__ndlbl_obstack_printf, __nldbl_snprintf, __nldbl_swprintf)
9554 (__nldbl_vasprintf, __nldbl_vdprintf, __nldbl_vfwprintf)
9555 (__nldbl_vprintf, __nldbl_vsnprintf, __ndlbl_vswprintf)
9556 (__nldbl_vwprintf, __nldbl_wprintf):
9557 Directly call the appropriate __v*printf_internal routine, passing
9558 PRINTF_LDBL_IS_DBL. Do not mess with __no_long_double. Normalize
9559 variable names.
9560 (__nldbl___fprintf_chk, __nldbl___fwprintf_chk)
9561 (__nldbl___printf_chk, __nldbl___snprintf_chk)
9562 (__nldbl___sprintf_chk, __nldbl___swprintf_chk)
9563 (__nldbl___vfprintf_chk, __nldbl___vfwprintf_chk)
9564 (__nldbl___vprintf_chk, __nldbl___vsnprintf_chk)
9565 (__nldbl___vsprintf_chk, __nldbl___vswprintf_chk)
9566 (__nldbl___vwprintf_chk, __nldbl___wprintf_chk)
9567 (__nldbl___vasprintf_chk, __nldbl___asprintf_chk)
9568 (__nldbl___vdprintf_chk, __nldbl___dprintf_chk)
9569 (__nldbl___obstack_vprintf_chk, __nldbl___obstack_printf_chk):
9570 Likewise, and also pass PRINTF_FORTIFY when appropriate.
9571 (__nldbl_syslog, __nldbl_vsyslog):
9572 Directly call __vsyslog_internal, passing PRINTF_LDBL_IS_DBL.
9573 (__nldbl_syslog_chk): Likewise, and also pass PRINTF_FORTIFY when
9574 appropriate.
9575 (__nldbl_vsyslog_chk): Likewise, and also pass PRINTF_FORTIFY when
9576 appropriate.
9577
9578 2018-12-05 Zack Weinberg <zackw@panix.com>
9579 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
9580
9581 [BZ #11319]
9582 * libio/iovsprintf.c (_IO_str_chk_overflow, libio_vtable):
9583 Moved here from debug/vsprintf_chk.c.
9584 (__vsprintf_internal): Add 'maxlen' argument. Change the setup
9585 and completion logic for the strfile to match exactly what
9586 __vsprintf_chk used to do, except, when maxlen is -1, pass -1 to
9587 _IO_str_init_static_internal instead of maxlen-1.
9588 (__vsprintf): Pass -1 as maxlen to __vsprintf_internal.
9589 * stdio-common/sprintf.c (__sprintf): Pass -1 as maxlen to
9590 __vsprintf_internal.
9591
9592 * debug/vsprintf_chk.c (__vsprintf_chk)
9593 * debug/sprintf_chk.c (__sprintf_chk):
9594 Directly call __vsprintf_internal, passing PRINTF_FORTIFY if
9595 'flags' argument is positive, and slen as maxlen. No need to lock
9596 the FILE and/or construct a temporary FILE. Minimize and normalize
9597 header inclusions and variable names. Do not libc_hidden_def anything.
9598
9599 * debug/asprintf_chk.c (__asprintf_chk)
9600 * debug/dprintf_chk.c (__dprintf_chk)
9601 * debug/fprintf_chk.c (__fprintf_chk)
9602 * debug/fwprintf_chk.c (__fwprintf_chk)
9603 * debug/printf_chk.c (__printf_chk)
9604 * debug/snprintf_chk.c (__snprintf_chk)
9605 * debug/swprintf_chk.c (__swprintf_chk)
9606 * debug/vasprintf_chk.c (__vasprintf_chk)
9607 * debug/vdprintf_chk.c (__vdprintf_chk)
9608 * debug/vfprintf_chk.c (__vfprintf_chk)
9609 * debug/vfwprintf_chk.c (__vfwprintf_chk)
9610 * debug/vprintf_chk.c (__vprintf_chk)
9611 * debug/vsnprintf_chk.c (__vsnprintf_chk)
9612 * debug/vswprintf_chk.c (__vswprintf_chk)
9613 * debug/vwprintf_chk.c (__vwprintf_chk)
9614 * debug/wprintf_chk.c (__wprintf_chk):
9615 Directly call the corresponding vxxprintf_internal function, passing
9616 PRINTF_FORTIFY if 'flag' argument is positive. No need to lock
9617 the FILE and/or construct a temporary FILE. Minimize and normalize
9618 header inclusions and variable names. Do not libc_hidden_def anything.
9619
9620 * debug/obprintf_chk.c (__obstack_printf_chk): Directly call
9621 __obstack_vprintf_internal.
9622 (__obstack_vprintf_chk): Convert into a wrapper that calls
9623 __obstack_vprintf_internal (these two functions already had the
9624 same code) and move to new file...
9625 * debug/vobprintf_chk.c (__obstack_vprintf_chk): ... here. New
9626 file.
9627 * debug/obprintf.c (__obstack_vprintf_internal): Remove the checking of
9628 the flags argument and the setting of _IO_FLAGS2_FORTIFY.
9629 * debug/Makefile (routines): Add vobprintf_chk.
9630
9631 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c
9632 (__nldbl___vsprintf): Pass -1 as maxlen to __vsprintf_internal.
9633 (__nldbl___vfprintf_chk, __nldbl___vsnprintf_chk)
9634 (__nldbl___vsprintf_chk, __nldbl___vswprintf_chk)
9635 (__nldbl___vasprintf_chk, __nldbl___vdprintf_chk)
9636 (__nldbl___obstack_vfprintf_chk):
9637 Directly call the corresponding vxxprintf_internal function,
9638 passing PRINTF_FORTIFY if 'flag' argument is positive. If necessary,
9639 duplicate comparison of slen with 0 or maxlen from the corresponding
9640 non-__nldbl function.
9641
9642 * include/stdio.h (__vsnprintf_chk, __vfprintf_chk, __vasprintf_chk)
9643 (__vdprintf_chk, __obstack_vfprintf_chk): Remove libc_hidden_proto.
9644 * include/wchar.h (__vfwprintf_chk, __vswprintf_chk):
9645 Remove libc_hidden_proto.
9646
9647 * stdio-common/vfprintf-internal.c
9648 (__vfprintf_internal, __vfwprintf_internal):
9649 Do not check _IO_FLAGS2_FORTIFY.
9650 * libio/libio.h (_IO_FLAGS2_FORTIFY): Remove.
9651 * libio/libioP.h: Update prototype of __vsprintf_internal and add
9652 a comment explaining why it has the maxlen argument.
9653 (_IO_acquire_lock_clear_flags2_fct): Remove.
9654 (_IO_acquire_lock_clear_flags2): Remove.
9655 (_IO_release_lock): Remove conditional statement which will
9656 now never execute.
9657 (_IO_acquire_lock): Remove variable which is now unused.
9658 * sysdeps/generic/stdio-lock.h (_IO_acquire_lock_clear_flags2): Remove.
9659 * sysdeps/nptl/stdio-lock.h (_IO_acquire_lock_clear_flags2): Remove.
9660
9661 * stdio-common/Makefile (tests): Add tst-bz11319 and
9662 tst-bz11319-fortify2.
9663 (CFLAGS-tst-bz11319-fortify2.c): New macro.
9664 * stdio-common/tst-bz11319-fortify2.c: New file.
9665 * stdio-common/tst-bz11319.c: Likewise.
9666
9667 2018-12-05 Zack Weinberg <zackw@panix.com>
9668 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
9669
9670 * misc/syslog.c: Include libioP.h, not iolibio.h.
9671 (__vsyslog_internal): New function with the former body of
9672 __vsyslog_chk; takes mode_flags argument same as
9673 __v*printf_internal. Call __vfprintf_internal directly.
9674
9675 (__vsyslog_chk): Now a wrapper around __vsyslog_internal.
9676 Remove libc_hidden_def.
9677 (__syslog, __syslog_chk): Use __vsyslog_internal.
9678 (__vsyslog): Move to just below __syslog. Use __vsyslog_internal.
9679
9680 * include/sys/syslog.h: Add multiple inclusion guard.
9681 Add prototype for __vsyslog_internal.
9682 Remove declaration and libc_hidden_proto for __vsyslog_chk.
9683
9684 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c (__nldbl___vsyslog_chk):
9685 Use __vsyslog_internal.
9686
9687 2018-12-05 Zack Weinberg <zackw@panix.com>
9688 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
9689
9690 * libio/libioP.h (__vfprintf_internal, __vfwprintf_internal)
9691 (__vasprintf_internal, __vdprintf_internal, __obstack_vprintf_internal)
9692 (__vsprintf_internal, __vsnprintf_internal, __vswprintf_internal):
9693 New functions.
9694 (PRINTF_LDBL_IS_DBL, PRINTF_FORTIFY): New constants.
9695 (_IO_vasprintf, _IO_vdprintf, _IO_vsnprintf): Remove prototypes.
9696
9697 * stdio-common/vfprintf-internal.c: Rename from vfprintf.c.
9698 Include wctype.h here if COMPILE_WPRINTF is defined.
9699 Define __vfprintf_internal or __vfwprintf_internal, depending
9700 on COMPILE_WPRINTF.
9701 Temporarily, on entry to this function, update mode_flags
9702 according to the environmental settings corresponding to
9703 PRINTF_LDBL_IS_DBL and PRINTF_FORTIFY.
9704 Throughout, check mode_flags instead of __ldbl_is_dbl and
9705 _IO_FLAGS2_FORTIFY on the destination FILE.
9706 * stdio-common/vfwprintf-internal.c: Rename from vfwprintf.c.
9707 Include vfprintf-internal.c. Don't include wctype.h.
9708 * stdio-common/vfprintf.c: New file. Just define __vfprintf
9709 as a wrapper around __vfprintf_internal, with aliases _IO_vfprintf
9710 and vfprintf.
9711 * stdio-common/vfwprintf.c: New file. Just define __vfwprintf
9712 as a wrapper around __vfwprintf_internal, with aliases _IO_vfwprintf
9713 and vfwprintf.
9714 * stdio-common/Makefile: Add vfprintf-internal and vfwprintf-internal.
9715
9716 * libio/iovdprintf.c (_IO_vdprintf): Rename to __vdprintf_internal
9717 and add mode_flags argument; use __vfprintf_internal.
9718 (__vdprintf): New function. Alias vdprintf to this.
9719 * libio/iovsprintf.c (_IO_vsprintf, __vsprintf): Similarly.
9720 * libio/vasprintf.c (_IO_vasprintf, __vasprintf): Similarly.
9721 * libio/obprintf.c (_IO_obstack_vprintf, __obstack_vprintf): Similarly.
9722 (__obstack_printf): Use __obstack_printf_internal.
9723 * libio/vsnprintf.c (_IO_vsnprintf, ___vsnprintf): Similarly, with
9724 public aliases __vsnprintf and vsnprintf.
9725 Remove use of ldbl_hidden_def, since __vsnprintf is no longer
9726 called internally.
9727 * libio/vswprintf (_IO_vswprintf, __vswprintf): Similarly, with
9728 public aliases _IO_vsprintf and vsprintf.
9729 * libio/swprintf.c (__swprintf): Use __vswprintf_internal.
9730 * stdio-common/asprintf.c (__asprintf): Use __vasprintf_internal.
9731 * stdio-common/dprintf.c (__dprintf): Use __vdprintf_internal.
9732 * stdio-common/snprintf.c (__snprintf): Use __vsprintf_internal.
9733 * stdio-common/sprintf.c (__sprintf): Use __vsprintf_internal.
9734
9735 * debug/obprintf_chk.c, debug/vasprintf_chk.c, debug/vdprintf_chk.c
9736 * debug/vsnprintf_chk.c, debug/vsprintf_chk.c, hurd/vpprintf.c
9737 * stdio-common/fprintf.c, stdio-common/fxprintf.c
9738 * stdio-common/printf.c: Use __vfprintf_internal.
9739
9740 * debug/fwprintf_chk.c, debug/vfwprintf_chk.c, debug/vswprintf_chk.c
9741 * debug/vwprintf_chk.c, debug/wprintf_chk.c, libio/fwprintf.c
9742 * libio/vwprintf.c, libio/wprintf.c: Use __vfwprintf_internal.
9743
9744 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c: Use __vsprintf_internal,
9745 __obstack_vprintf_internal, __vasprintf_internal, __vdprintf_internal,
9746 __vsnprintf_internal, __vswprintf_internal, __vfprintf_internal, and
9747 __vfwprintf_internal.
9748
9749 * libio/libio.h: Remove libc_hidden_proto and declaration for
9750 _IO_vfprintf.
9751 Remove declaration of _IO_vfwprintf.
9752 * libio/iolibio.h: Remove libc_hidden_proto and declaration for
9753 _IO_vsprintf.
9754 Remove declarations of _IO_vswprintf, _IO_obstack_printf, and
9755 _IO_obstack_printf.
9756 * include/stdio.h: Add prototype for __vasprintf.
9757 (__vsnprintf): Remove declaration, because there are no more
9758 internal calls.
9759 * include/wchar.h (__vfwprintf, __vswprintf): Remove
9760 declaration, because there are no more internal calls.
9761
9762 * argp/argp-fmtstream.c (__argp_fmtstream_printf): Use
9763 __vsnprintf_internal, instead of _IO_vsnprintf.
9764 * argp/argp-help.c (__argp_error, __argp_failure): Use
9765 __vasprintf_internal, instead of _IO_vasprintf.
9766 * argp/argp-namefrob.h (__vsnprintf): Do not undefined then
9767 redefine, because there are no more internal calls.
9768
9769 2018-12-05 Zack Weinberg <zackw@panix.com>
9770 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
9771
9772 * stdio-common/vfscanf-internal.c: Don't look at __ldbl_is_dbl.
9773 * sysdeps/ieee754/ldbl-opt/ndlbl-compat.c:
9774 Include libio/strfile.h instead of libioP.h.
9775 (__nldbl_IO_vfscanf, __ndlbl___vfscanf, __nldbl_sscanf)
9776 (__nldbl___vsscanf, __nldbl_vscanf, __nldbl_fscanf)
9777 (__nldbl_scanf, __nldbl_vfwscanf, __nldbl_swscanf)
9778 (__nldbl_vswscanf, __nldbl_vwscanf, __nldbl_fwscanf)
9779 (__nldbl_wscanf): Call __vfscanf_internal / __vfwscanf_internal
9780 directly, passing SCANF_LDBL_IS_DBL. Set up a strfile if
9781 necessary. Do not set __no_long_double. Normalize variable names.
9782 (__nldbl___isoc99_vfscanf, __nldbl___isoc99_sscanf)
9783 (__nldbl___isoc99_vsscanf, __nldbl___isoc99_vscanf)
9784 (__nldbl___isoc99_fscanf, __nldbl___isoc99_scanf)
9785 (__nldbl___isoc99_vfwscanf, __nldbl___isoc99_swscanf)
9786 (__nldbl___isoc99_vswscanf, __nldbl___isoc99_vwscanf)
9787 (__nldbl___isoc99_fwscanf, __nldbl___isoc99_wscanf):
9788 Call __vfscanf_internal / __vfwscanf_internal directly, passing
9789 SCANF_LDBL_IS_DBL | SCANF_ISOC99_A. Set up a strfile if necessary.
9790 Do not set __no_long_double. Normalize variable names.
9791
9792 2018-12-05 Zack Weinberg <zackw@panix.com>
9793 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
9794
9795 * stdio-common/isoc99_scanf.c
9796 * stdio-common/isoc99_fscanf.c
9797 * stdio-common/isoc99_sscanf.c
9798 * stdio-common/isoc99_vscanf.c
9799 * stdio-common/isoc99_vfscanf.c
9800 * stdio-common/isoc99_vsscanf.c
9801 * wcsmbs/isoc99_wscanf.c
9802 * wcsmbs/isoc99_fwscanf.c
9803 * wcsmbs/isoc99_swscanf.c
9804 * wcsmbs/isoc99_vwscanf.c
9805 * wcsmbs/isoc99_vfwscanf.c
9806 * wcsmbs/isoc99_vswscanf.c:
9807 Pass SCANF_ISOC99_A to __vfscanf_internal and/or __vfwscanf_internal.
9808 Do not set _IO_FLAGS2_SCANF_STD on the FILE passed to that function.
9809 No need to lock and unlock the FILE passed to that function.
9810
9811 * stdio-common/vfscanf-internal.c
9812 (__vfscanf_internal, __vfwscanf_internal):
9813 Don't look at _IO_FLAGS2_SCANF_STD.
9814 * libio/libioP.h (_IO_acquire_lock_clear_flags2_fct)
9815 (_IO_release_lock): Don't clear _IO_FLAGS2_SCANF_STD.
9816 * libio/libio.h (_IO_FLAGS2_SCANF_STD): Delete.
9817
9818 2018-12-05 Zack Weinberg <zackw@panix.com>
9819 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
9820
9821 * libio/libioP.h (SCANF_LDBL_IS_DBL, SCANF_ISOC99_A): New constants.
9822 (__vfscanf_internal, __vfwscanf_internal): New function prototypes.
9823 * libio/libio.h: Remove libc_hidden_proto for _IO_vfscanf.
9824 * libio/strfile.h: Add multiple inclusion guard.
9825 (_IO_strfile_read, _IO_strfile_readw): New inline functions.
9826
9827 * sysdeps/generic/math_ldbl_opt.h: Include shlib-compat.h, for
9828 consistency with the other version of this file.
9829 (ldbl_compat_symbol): New macro.
9830 * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h (ldbl_compat_symbol):
9831 New macro.
9832
9833 * stdio-common/vfscanf-internal.c: Rename from vfscanf.c.
9834 Define __vfscanf_internal or __vfwscanf_internal, depending on
9835 COMPILE_WSCANF; don't define any other public symbols.
9836 Remove errval and code to set errp.
9837 Temporarily check __ldbl_is_dbl and _IO_FLAGS2_SCANF_STD as well
9838 as the mode_flags argument.
9839 (encode_error, conv_error, input_error): Don't set errval.
9840 * stdio-common/vfwscanf-internal.c: Rename from vfwscanf.c.
9841 Include vfscanf-internal.c.
9842 * stdio-common/vfscanf.c: New file defining the public entry
9843 point vfscanf, which calls __vfscanf_internal.
9844 * stdio-common/vfwscanf.c: New file defining the public entry
9845 point vfwscanf, which calls __vfwscanf_internal.
9846
9847 * stdio-common/iovfscanf.c: New file.
9848 * stdio-common/iovfwscanf.c: Likewise.
9849
9850 * stdio-common/Makefile (routines): Add vfscanf-internal,
9851 vfwscanf-internal, iovfscanf, iovfwscanf.
9852 * stdio-common/Versions: Mention GLIBC_2.29, so that
9853 it can be used in SHLIB_COMPAT expressions.
9854 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c (__nldbl__IO_vfscanf):
9855 Wrap definition and compat_symbol line in #if SHLIB_COMPAT.
9856 Call __vfscanf_internal, instead of _IO_vfscanf.
9857 (__nldbl___vfscanf): Call __vfscanf_internal, instead of
9858 _IO_vfscanf.
9859 (__nldbl_vfwscanf): Call __vfwscanf_internal, instead of
9860 _IO_vfwscanf.
9861
9862 * libio/iovsscanf.c: Clean up includes, when possible. Use
9863 _IO_strfile_read or _IO_strfile_readw, when needed. Call
9864 __vfscanf_internal or __vfwscanf_internal directly.
9865 * libio/iovswscanf.c: Likewise.
9866 * libio/swscanf.c: Likewise.
9867 * libio/vscanf.c: Likewise.
9868 * libio/vwscanf.c: Likewise.
9869 * libio/wscanf.c: Likewise.
9870 * stdio-common/isoc99_fscanf.c: Likewise.
9871 * stdio-common/isoc99_scanf.c: Likewise.
9872 * stdio-common/isoc99_sscanf.c: Likewise.
9873 * stdio-common/isoc99_vfscanf.c: Likewise.
9874 * stdio-common/isoc99_vscanf.c: Likewise.
9875 * stdio-common/isoc99_vsscanf.c: Likewise.
9876 * stdio-common/scanf.c: Likewise.
9877 * stdio-common/sscanf.c: Likewise.
9878 * wcsmbs/isoc99_fwscanf.c: Likewise.
9879 * wcsmbs/isoc99_swscanf.c: Likewise.
9880 * wcsmbs/isoc99_vfwscanf.c: Likewise.
9881 * wcsmbs/isoc99_vswscanf.c: Likewise.
9882 * wcsmbs/isoc99_vwscanf.c: Likewise.
9883 * wcsmbs/isoc99_wscanf.c: Likewise.
9884
9885 2018-12-05 Albert ARIBAUD <albert.aribaud@3adev.fr>
9886
9887 * include/time.h
9888 (__tz_compute): Replace time_t with __time64_t.
9889 (__tz_convert): Replace time_t* with __time64_t.
9890 (__offtime): Replace time_t* with __time64_t.
9891 * time/gmtime.c
9892 (__gmtime_r): Adjust call to __tz_convert.
9893 (gmtime): Likewise.
9894 * time/localtime.c
9895 (__localtime_r): Likewise.
9896 (localtime): Likewise.
9897 * time/offtime.c: Replace time_t with __time64_t.
9898 * time/tzset.c: Likewise.
9899
9900 2018-12-04 Joseph Myers <joseph@codesourcery.com>
9901
9902 * Makefile ($(objpfx)testroot.pristine/install.stamp): Do not run
9903 dynamic linker unless [$(run-built-tests) = yes].
9904
9905 2018-12-03 DJ Delorie <dj@delorie.com>
9906
9907 * support/test-container.c (check_for_unshare_hints): New.
9908 (main): Call it if unshare fails. Add support for "su" scriptlet
9909 command.
9910
9911 2018-12-03 Joseph Myers <joseph@codesourcery.com>
9912
9913 * scripts/gen-as-const.py (compute_c_consts): Take an argument
9914 'START' to indicate that start text should be output.
9915 (gen_test): Likewise.
9916 (main): Generate 'START' for first symbol or '--' line, or at end
9917 of input if not previously generated.
9918
9919 2018-12-03 Rafael Ávila de Espíndola <rafael@espindo.la>
9920
9921 [BZ #19767]
9922 * sysdeps/unix/sysv/linux/arm/init-first.c: Remove #ifdef SHARED.
9923 * sysdeps/unix/sysv/linux/arm/libc-vdso.h: Remove #ifdef SHARED.
9924 * sysdeps/unix/sysv/linux/arm/sysdep.h: Define
9925 ALWAYS_USE_VSYSCALL.
9926
9927 2018-12-03 Adhemerval Zanella <adhemerval.zanella@linaro.org>
9928
9929 [BZ #23913]
9930 * sysdeps/posix/spawni.c (maybe_script_execute): Increment size of
9931 new_argv by one.
9932
9933 2018-12-03 Carlos O'Donell <carlos@redhat.com>
9934
9935 [BZ #23923]
9936 * locale/programs/localedef.c: Declare boolean hard_links default true.
9937 (options): Add --no-hard-links option.
9938 (parse_opt): Add OPT_NO_HARD_LINKS case and set hard_links to false.
9939 * locale/programs/localedef.h: Declare prototype for hard_links.
9940 * locale/programs/locfile.c (write_locale_data): Don't use hard
9941 links if hard_links is false.
9942
9943 2018-12-03 H.J. Lu <hongjiu.lu@intel.com>
9944
9945 * sysdeps/x86/cacheinfo.c (intel_check_word): Updated for
9946 cpu_features_basic.
9947 (__cache_sysconf): Likewise.
9948 (init_cacheinfo): Likewise.
9949 * sysdeps/x86/cpu-features.c (get_extended_indeces): Also
9950 populate COMMON_CPUID_INDEX_80000007 and
9951 COMMON_CPUID_INDEX_80000008.
9952 (get_common_indices): Also populate COMMON_CPUID_INDEX_D_ECX_1.
9953 Use CPU_FEATURES_CPU_P (cpu_features, XSAVEC) to check if
9954 XSAVEC is available. Set the bit_arch_XXX_Usable bits.
9955 (init_cpu_features): Use _Static_assert on
9956 index_arch_Fast_Unaligned_Load.
9957 __get_cpuid_registers and __get_arch_feature. Updated for
9958 cpu_features_basic. Set stepping in cpu_features.
9959 * sysdeps/x86/cpu-features.h: (FEATURE_INDEX_1): Changed to enum.
9960 (FEATURE_INDEX_2): New.
9961 (FEATURE_INDEX_MAX): Changed to enum.
9962 (COMMON_CPUID_INDEX_D_ECX_1): New.
9963 (COMMON_CPUID_INDEX_80000007): Likewise.
9964 (COMMON_CPUID_INDEX_80000008): Likewise.
9965 (cpuid_registers): Likewise.
9966 (cpu_features_basic): Likewise.
9967 (CPU_FEATURE_USABLE): Likewise.
9968 (bit_arch_XXX_Usable): Likewise.
9969 (cpu_features): Use cpuid_registers and cpu_features_basic.
9970 (bit_arch_XXX): Reweritten.
9971 (bit_cpu_XXX): Likewise.
9972 (index_cpu_XXX): Likewise.
9973 (reg_XXX): Likewise.
9974 * sysdeps/x86/tst-get-cpu-features.c: Include <stdio.h> and
9975 <support/check.h>.
9976 (CHECK_CPU_FEATURE): New.
9977 (CHECK_CPU_FEATURE_USABLE): Likewise.
9978 (cpu_kinds): Likewise.
9979 (do_test): Print vendor, family, model and stepping. Check
9980 HAS_CPU_FEATURE and CPU_FEATURE_USABLE.
9981 (TEST_FUNCTION): Removed.
9982 Include <support/test-driver.c> instead of
9983 "../../test-skeleton.c".
9984 * sysdeps/x86_64/multiarch/sched_cpucount.c (__sched_cpucount):
9985 Check POPCNT instead of POPCOUNT.
9986 * sysdeps/x86_64/multiarch/test-multiarch.c (do_test): Likewise.
9987
9988 2018-12-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
9989
9990 * scripts/gen-as-const.py (main): Avoid emitting empty line when
9991 there is no element in `consts'.
9992
9993 2018-12-01 Florian Weimer <fweimer@redhat.com>
9994
9995 * support/support_capture_subprocess.c
9996 (support_capture_subprocess): Check that pipe descriptors have
9997 expected values. Close original pipe descriptors in subprocess.
9998
9999 2018-12-01 Samuel Thibault <samuel.thibault@ens-lyon.org>
10000
10001 [BZ #23032]
10002 * sysdeps/htl/pt-barrier-init.c (pthread_barrier_init): Fix comparing
10003 attr with __pthread_default_barrierattr.
10004 * sysdeps/htl/pt-cond-init.c (__pthread_cond_init): Fix comparing
10005 attr with __pthread_default_condattr.
10006 * sysdeps/htl/pt-mutex-init.c (_pthread_mutex_init): Fix comparing
10007 attr with __pthread_default_mutexattr.
10008 * sysdeps/htl/pt-rwlock-init.c (_pthread_rwlock_init): Fix comparing
10009 attr with __pthread_default_rwlockattr.
10010
10011 2018-12-01 Kemi Wang <kemi.wang@intel.com>
10012
10013 * manual/tunables.texi (POSIX Thread Tunables): New node.
10014 * nptl/Makefile (libpthread-routines): Add pthread_mutex_conf.
10015 * nptl/nptl-init.c: Include pthread_mutex_conf.h
10016 (__pthread_initialize_minimal_internal) [HAVE_TUNABLES]: Call
10017 __pthread_tunables_init.
10018 * nptl/pthreadP.h (MAX_ADAPTIVE_COUNT): Remove.
10019 (max_adaptive_count): Define.
10020 * nptl/pthread_mutex_conf.c: New file.
10021 * nptl/pthread_mutex_conf.h: New file.
10022 * sysdeps/generic/adaptive_spin_count.h: New file.
10023 * sysdeps/nptl/dl-tunables.list: New file.
10024 * nptl/pthread_mutex_lock.c (__pthread_mutex_lock): Use
10025 max_adaptive_count () not MAX_ADAPTIVE_COUNT.
10026 * nptl/pthread_mutex_timedlock.c (__pthrad_mutex_timedlock):
10027 Likewise.
10028
10029 2018-12-01 Paul Pluzhnikov <ppluzhnikov@google.com>
10030
10031 [BZ #20544]
10032 * stdlib/cxa_atexit.c (__internal_atexit): assert func != NULL.
10033 * stdlib/on_exit.c (__on_exit): Likewise.
10034 * stdlib/Makefile (tests): Add tst-bz20544.
10035 * stdlib/tst-bz20544.c: New test.
10036
10037 2018-11-30 Rafael Ávila de Espíndola <rafael@espindo.la>
10038
10039 [BZ #19767]
10040 * sysdeps/unix/sysv/linux/i386/init-first.c: Don't check SHARED.
10041 * sysdeps/unix/sysv/linux/i386/sysdep.h (ALWAYS_USE_VSYSCALL):
10042 New.
10043
10044 2018-11-30 Florian Weimer <fweimer@redhat.com>
10045
10046 * scripts/abilist.awk: Print "0x0" for size 0. Handle "g"/"D".
10047 Extend error logging.
10048 * sysdeps/mach/hurd/i386/libc.abilist (GLIBC_2.2.6): Adjust _end
10049 symbol.
10050
10051 2018-11-30 Adhemerval Zanella <adhemerval.zanella@linaro.org>
10052
10053 * sysdeps/unix/sysv/linux/spawni.c (__spawni_child): Use
10054 __sigismember instead of sigismember.
10055 * sysdeps/posix/system.c [SIGCANCEL] (cancel_handler_args,
10056 cancel_handler): New definitions.
10057 (do_system): Use posix_spawn instead of fork and execl and remove
10058 reentracy code.
10059 * sysdeps/generic/not-errno.h (__kill_noerrno): New prototype.
10060 * sysdeps/unix/sysv/linux/not-errno.h (__kill_noerrno): Likewise.
10061 * sysdeps/unix/sysv/linux/ia64/system.c: Remove file.
10062 * sysdeps/unix/sysv/linux/s390/system.c: Likewise.
10063 * sysdeps/unix/sysv/linux/sparc/system.c: Likewise.
10064 * sysdeps/unix/sysv/linux/system.c: Likewise.
10065
10066 [BZ #22834]
10067 [BZ #17490]
10068 * NEWS: Add new semantic for atfork with popen and system.
10069 * libio/iopopen.c (_IO_new_proc_open): use posix_spawn instead of
10070 fork and execl.
10071
10072 2018-11-30 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
10073
10074 [BZ #23690]
10075 * elf/dl-runtime.c (_dl_profile_fixup): Guarantee memory
10076 modification order when accessing reloc_result->addr.
10077 * include/link.h (reloc_result): Add field init.
10078 * nptl/Makefile (tests): Add tst-audit-threads.
10079 (modules-names): Add tst-audit-threads-mod1 and
10080 tst-audit-threads-mod2.
10081 Add rules to build tst-audit-threads.
10082 * nptl/tst-audit-threads-mod1.c: New file.
10083 * nptl/tst-audit-threads-mod2.c: Likewise.
10084 * nptl/tst-audit-threads.c: Likewise.
10085 * nptl/tst-audit-threads.h: Likewise.
10086
10087 2018-11-30 Joseph Myers <joseph@codesourcery.com>
10088
10089 * scripts/gen-as-const.py: New file.
10090 * scripts/gen-as-const.awk: Remove.
10091 * Makerules ($(common-objpfx)%.h $(common-objpfx)%.h.d): Use
10092 gen-as-const.py.
10093 ($(objpfx)test-as-const-%.c): Likewise.
10094
10095 2018-11-29 H.J. Lu <hongjiu.lu@intel.com>
10096
10097 * elf/dl-exception.c: Include <_itoa.h>.
10098
10099 2018-11-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
10100
10101 * sysdeps/mach/hurd/fcntl.c (__libc_fcntl): Directly return value
10102 returned by __f_setlk.
10103
10104 2018-11-29 H.J. Lu <hongjiu.lu@intel.com>
10105 Adhemerval Zanella <adhemerval.zanella@linaro.org>
10106
10107 * elf/Makefile (tests-internal): Add tst-create_format1.
10108 * elf/dl-exception.c (_dl_exception_create_format): Support
10109 %x, %lx and %zx.
10110 * elf/tst-create_format1.c: New file.
10111
10112 2018-11-29 Charles-Antoine Couret <charles-antoine.couret@essensium.com>
10113
10114 * argp/argp-fmtstream.c (__argp_fmtstream_update): Use [_LIBC]
10115 conditional on calls to _IO_fwide and putwc_unlocked. (Merge from
10116 gnulib.)
10117 * argp/argp-help.c (__argp_failure): Likewise.
10118
10119 2018-11-29 Mao Han <han_mao@c-sky.com>
10120
10121 * elf/elf.h (EM_CSKY, R_CKCORE_NONE, R_CKCORE_ADDR32)
10122 (R_CKCORE_PCRELIMM8BY4, R_CKCORE_PCRELIMM11BY2, R_CKCORE_PCREL32)
10123 (R_CKCORE_PCRELJSR_IMM11BY2, R_CKCORE_RELATIVE, R_CKCORE_COPY)
10124 (R_CKCORE_GLOB_DAT, R_CKCORE_JUMP_SLOT, R_CKCORE_GOTOFF)
10125 (R_CKCORE_GOTPC, R_CKCORE_GOT32, R_CKCORE_PLT32, R_CKCORE_ADDRGOT)
10126 (R_CKCORE_ADDRPLT, R_CKCORE_PCREL_IMM26BY2, R_CKCORE_PCREL_IMM16BY2)
10127 (R_CKCORE_PCREL_IMM16BY4, R_CKCORE_PCREL_IMM10BY2)
10128 (R_CKCORE_PCREL_IMM10BY4, R_CKCORE_ADDR_HI16, R_CKCORE_ADDR_LO16)
10129 (R_CKCORE_GOTPC_HI16, R_CKCORE_GOTPC_LO16, R_CKCORE_GOTOFF_HI16)
10130 (R_CKCORE_GOTOFF_LO16, R_CKCORE_GOT12, R_CKCORE_GOT_HI16)
10131 (R_CKCORE_GOT_LO16, R_CKCORE_PLT12, R_CKCORE_PLT_HI16)
10132 (R_CKCORE_PLT_LO16, R_CKCORE_ADDRGOT_HI16, R_CKCORE_ADDRGOT_LO16)
10133 (R_CKCORE_ADDRPLT_HI16, R_CKCORE_ADDRPLT_LO16)
10134 (R_CKCORE_PCREL_JSR_IMM26BY2, R_CKCORE_TOFFSET_LO16)
10135 (R_CKCORE_DOFFSET_LO16, R_CKCORE_PCREL_IMM18BY2)
10136 (R_CKCORE_DOFFSET_IMM18, R_CKCORE_DOFFSET_IMM18BY2)
10137 (R_CKCORE_DOFFSET_IMM18BY4, R_CKCORE_GOT_IMM18BY4)
10138 (R_CKCORE_PLT_IMM18BY4, R_CKCORE_PCREL_IMM7BY4, R_CKCORE_TLS_LE32)
10139 (R_CKCORE_TLS_IE32, R_CKCORE_TLS_GD32, R_CKCORE_TLS_LDM32)
10140 (R_CKCORE_TLS_LDO32, R_CKCORE_TLS_DTPMOD32, R_CKCORE_TLS_DTPOFF32)
10141 (R_CKCORE_TLS_TPOFF32): New defines.
10142
10143 2018-11-29 Florian Weimer <fweimer@redhat.com>
10144
10145 * posix/Makefile (before-compile): Remove testcases.h and
10146 ptestcases.h.
10147 (generated): Add testcases.h and ptestcases.h.
10148 (testcases.h, ptestcases.h): Move to $(objpfx).
10149 (runtests.o): Add dependency on testcases.h.
10150 (runptests.o): Add dependency on ptestcases.h.
10151 * posix/testcases.h, posix/ptestcases.h: Remove files.
10152 * scripts/build-many-glibcs.py (Context.fix_glibc_timestamps): Do
10153 not touch posix/testcases.h and posix/ptestcases.h.
10154
10155 2018-11-28 Florian Weimer <fweimer@redhat.com>
10156
10157 support: Add signal support to support_capture_subprocess_check.
10158 * support/capture_subprocess.h (support_capture_subprocess_check):
10159 Adjust comment and rename parameter.
10160 * support/support_capture_subprocess_check.c
10161 (print_actual_status): New function.
10162 (support_capture_subprocess_check): Support negative
10163 status_or_signal. Call print_actual_status.
10164 * support/tst-support_capture_subprocess.c (do_test): Call
10165 support_capture_subprocess_check.
10166 * libio/tst-vtables-common.c (termination_status)
10167 (init_termination_status): Remove.
10168 (check_for_termination): Adjust support_capture_subprocess_check
10169 call.
10170 (do_test): Remove call to init_termination_status.
10171
10172 2018-11-28 Joseph Myers <joseph@codesourcery.com>
10173
10174 * scripts/build-many-glibcs.py (Glibc.build_glibc): Use original
10175 source directory instead of a copy.
10176 (CommandList.create_copy_dir): Remove.
10177
10178 2018-11-28 Stefan Liebler <stli@linux.ibm.com>
10179
10180 * sysdeps/s390/fpu/libm-test-ulps: Regenerated.
10181
10182 2018-11-28 Florian Weimer <fweimer@redhat.com>
10183
10184 * support/support.h (support_quote_string): Do not use str
10185 parameter name.
10186
10187 2018-11-27 Joseph Myers <joseph@codesourcery.com>
10188
10189 * sysdeps/mach/hurd/Makefile ($(common-objpfx)stamp-errnos): Use
10190 $(hurd-objpfx)bits/errno.h-tmp, not $(hurd)/bits/errno.h-tmp.
10191
10192 2018-11-27 Florian Weimer <fweimer@redhat.com>
10193
10194 * support/support.h (support_quote_string): Declare.
10195 * support/support_quote_string.c: New file.
10196 * support/tst-support_quote_string.c: Likewise.
10197 * support/Makefile (libsupport-routines): Add
10198 support_quote_string.
10199 (tests): Add tst-support_quote_string.
10200
10201 2018-11-27 Florian Weimer <fweimer@redhat.com>
10202
10203 [BZ #23927]
10204 CVE-2018-19591
10205 * sysdeps/unix/sysv/linux/if_index.c (__if_nametoindex): Avoid
10206 descriptor leak in case of ENODEV error.
10207
10208 2018-11-27 Rafael Ávila de Espíndola <rafael@espindo.la>
10209
10210 [BZ #19767]
10211 * sysdeps/unix/sysv/linux/aarch64/init-first.c: Remove #ifdef SHARED.
10212 * sysdeps/unix/sysv/linux/aarch64/libc-vdso.h: Remove #ifdef SHARED.
10213 * sysdeps/unix/sysv/linux/aarch64/sysdep.h: Define ALWAYS_USE_VSYSCALL.
10214
10215 2018-11-26 Carlos O'Donell <carlos@redhat.com>
10216
10217 * scripts/abilist.awk: Handle .tdata. Error for unknown combinations.
10218 Error for unknown lines.
10219
10220 2018-11-26 Joseph Myers <joseph@codesourcery.com>
10221
10222 * scripts/build-many-glibcs.py (Context.fix_glibc_timestamps):
10223 Touch additional files.
10224
10225 2018-11-26 Florian Weimer <fweimer@redhat.com>
10226
10227 [BZ #23907]
10228 * malloc/malloc.c (_int_free): Validate tc_idx before checking for
10229 double-frees.
10230
10231 2018-11-26 Rafael Ávila de Espíndola <rafael@espindo.la>
10232
10233 [BZ #19767]
10234 * sysdeps/unix/sysv/linux/powerpc/init-first.c: Remove #ifdef SHARED.
10235 * sysdeps/unix/sysv/linux/powerpc/libc-vdso.h: Remove #ifdef
10236 SHARED. Include sysdep.h.
10237 * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h: Define
10238 ALWAYS_USE_VSYSCALL.
10239 * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h: Define
10240 ALWAYS_USE_VSYSCALL.
10241
10242 2018-11-23 Rafael Ávila de Espíndola <rafael@espindo.la>
10243
10244 [BZ #19767]
10245 * nptl/Makefile (tests-static): Add tst-cond11-static.
10246 (tests): Likewise.
10247 * nptl/tst-cond11-static.c: New File.
10248 * sysdeps/unix/sysv/linux/Makefile (tests-static): Add
10249 tst-affinity-static.
10250 (tests): Likewise.
10251 * sysdeps/unix/sysv/linux/sysdep-vdso.h: Check USE_VSYSCALL
10252 instead of SHARED.
10253 * sysdeps/unix/sysv/linux/sysdep.h (ALWAYS_USE_VSYSCALL): New.
10254 (USE_VSYSCALL): Likewise.
10255 * sysdeps/unix/sysv/linux/tst-affinity-static.c: New file.
10256 * sysdeps/unix/sysv/linux/x86/libc-vdso.h: Check USE_VSYSCALL
10257 instead of SHARED.
10258 * sysdeps/unix/sysv/linux/x86_64/init-first.c: Don't check
10259 SHARED.
10260 * sysdeps/unix/sysv/linux/x86_64/sysdep.h (ALWAYS_USE_VSYSCALL):
10261 New.
10262
10263 2018-11-23 Joseph Myers <joseph@codesourcery.com>
10264
10265 [BZ #23915]
10266 * sysdeps/unix/sysv/linux/arm/kernel-features.h
10267 [__LINUX_KERNEL_VERSION < 0x040700] (__ASSUME_COPY_FILE_RANGE):
10268 Undefine.
10269
10270 2018-11-23 H.J. Lu <hongjiu.lu@intel.com>
10271
10272 * sysdeps/x86/Makefile (tests): Add tst-cet-legacy-1a.
10273 (tst-cet-legacy-1a-ARGS): New.
10274 ($(objpfx)tst-cet-legacy-1a): New target.
10275 * sysdeps/x86/tst-cet-legacy-1a.c: New file.
10276
10277 2018-11-22 Joseph Myers <joseph@codesourcery.com>
10278
10279 * conform/conformtest.py (CompileSubTest.__init__): Set
10280 self.run_early to False.
10281 (ExecuteSubTest.__init__): Likewise.
10282 (HeaderTests.run): Try running all non-optional, non-XFAILed
10283 compilation tests in a single execution of the compiler.
10284
10285 * conform/conformtest.py (CompileSubTest): New class.
10286 (ExecuteSubTest): Likewise.
10287 (ElementTest.run): Rename to gen_subtests. Append tests to
10288 self.subtests instead of running them.
10289 (ConstantTest.run): Likewise.
10290 (SymbolTest.run): Likewise.
10291 (TypeTest.run): Likewise.
10292 (TagTest.run): Likewise.
10293 (FunctionTest.run): Likewise.
10294 (VariableTest.run): Likewise.
10295 (MacroFunctionTest.run): Likewise.
10296 (MacroStrTest.run): Likewise.
10297 (HeaderTests.handle_test_line): Generate subtests for tests.
10298 (HeaderTests.run): Run subtests for tests.
10299
10300 2018-11-21 Szabolcs Nagy <szabolcs.nagy@arm.com>
10301
10302 * math/Versions (GLIBC_2.29): Add pow.
10303 * math/w_pow_compat.c (__pow_compat): Change to versioned compat
10304 symbol.
10305 * math/w_pow.c: New file.
10306 * sysdeps/i386/fpu/w_pow.c: New file.
10307 * sysdeps/ia64/fpu/e_pow.S: Add versioned symbols.
10308 * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Rename to __pow
10309 and add necessary aliases.
10310 * sysdeps/ieee754/dbl-64/w_pow.c: New file.
10311 * sysdeps/m68k/m680x0/fpu/w_pow.c: New file.
10312 * sysdeps/mach/hurd/i386/libm.abilist: Update.
10313 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Update.
10314 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Update.
10315 * sysdeps/unix/sysv/linux/arm/libm.abilist: Update.
10316 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Update.
10317 * sysdeps/unix/sysv/linux/i386/libm.abilist: Update.
10318 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Update.
10319 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Update.
10320 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Update.
10321 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Update.
10322 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Update.
10323 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Update.
10324 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Update.
10325 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Update.
10326 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist: Update.
10327 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Update.
10328 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Update.
10329 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Update.
10330 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Update.
10331 * sysdeps/unix/sysv/linux/sh/libm.abilist: Update.
10332 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Update.
10333 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Update.
10334 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Update.
10335 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Update.
10336 * sysdeps/x86_64/fpu/multiarch/e_pow-fma.c (__ieee754_pow): Rename to
10337 __pow.
10338 * sysdeps/x86_64/fpu/multiarch/e_pow-fma4.c (__ieee754_pow): Likewise.
10339 * sysdeps/x86_64/fpu/multiarch/e_pow.c (__ieee754_pow): Likewise.
10340 * sysdeps/x86_64/fpu/multiarch/w_pow.c: New file.
10341
10342 2018-11-21 Szabolcs Nagy <szabolcs.nagy@arm.com>
10343
10344 * math/Versions (GLIBC_2.29): Add log2.
10345 * math/w_log2_compat.c (__log2_compat): Change to versioned compat
10346 symbol.
10347 * math/w_log2.c: New file.
10348 * sysdeps/i386/fpu/w_log2.c: New file.
10349 * sysdeps/ia64/fpu/e_log2.S: Add versioned symbols.
10350 * sysdeps/ieee754/dbl-64/e_log2.c (__ieee754_log2): Rename to __log2
10351 and add necessary aliases.
10352 * sysdeps/ieee754/dbl-64/w_log2.c: New file.
10353 * sysdeps/m68k/m680x0/fpu/w_log2.c: New file.
10354 * sysdeps/mach/hurd/i386/libm.abilist: Update.
10355 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Update.
10356 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Update.
10357 * sysdeps/unix/sysv/linux/arm/libm.abilist: Update.
10358 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Update.
10359 * sysdeps/unix/sysv/linux/i386/libm.abilist: Update.
10360 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Update.
10361 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Update.
10362 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Update.
10363 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Update.
10364 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Update.
10365 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Update.
10366 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Update.
10367 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Update.
10368 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist: Update.
10369 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Update.
10370 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Update.
10371 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Update.
10372 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Update.
10373 * sysdeps/unix/sysv/linux/sh/libm.abilist: Update.
10374 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Update.
10375 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Update.
10376 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Update.
10377 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Update.
10378
10379 2018-11-21 Szabolcs Nagy <szabolcs.nagy@arm.com>
10380
10381 * math/Versions (GLIBC_2.29): Add log.
10382 * math/w_log_compat.c (__log_compat): Change to versioned compat
10383 symbol.
10384 * math/w_log.c: New file.
10385 * sysdeps/i386/fpu/w_log.c: New file.
10386 * sysdeps/ia64/fpu/e_log.S: Update.
10387 * sysdeps/ieee754/dbl-64/e_log.c (__ieee754_log): Rename to __log
10388 and add necessary aliases.
10389 * sysdeps/ieee754/dbl-64/w_log.c: New file.
10390 * sysdeps/m68k/m680x0/fpu/w_log.c: New file.
10391 * sysdeps/mach/hurd/i386/libm.abilist: Update.
10392 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Update.
10393 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Update.
10394 * sysdeps/unix/sysv/linux/arm/libm.abilist: Update.
10395 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Update.
10396 * sysdeps/unix/sysv/linux/i386/libm.abilist: Update.
10397 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Update.
10398 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Update.
10399 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Update.
10400 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Update.
10401 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Update.
10402 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Update.
10403 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Update.
10404 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Update.
10405 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist: Update.
10406 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Update.
10407 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Update.
10408 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Update.
10409 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Update.
10410 * sysdeps/unix/sysv/linux/sh/libm.abilist: Update.
10411 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Update.
10412 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Update.
10413 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Update.
10414 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Update.
10415 * sysdeps/x86_64/fpu/multiarch/e_log-avx.c (__ieee754_log): Rename to
10416 __log.
10417 * sysdeps/x86_64/fpu/multiarch/e_log-fma.c (__ieee754_log): Likewise.
10418 * sysdeps/x86_64/fpu/multiarch/e_log-fma4.c (__ieee754_log): Likewise.
10419 * sysdeps/x86_64/fpu/multiarch/e_log.c (__ieee754_log): Likewise.
10420 * sysdeps/x86_64/fpu/multiarch/w_log.c: New file.
10421
10422 2018-11-21 Szabolcs Nagy <szabolcs.nagy@arm.com>
10423
10424 * math/Versions (GLIBC_2.29): Add exp and exp2.
10425 * math/w_exp2_compat.c (__exp2_compat): Change to versioned compat
10426 symbol, handle NO_LONG_DOUBLE and LONG_DOUBLE_COMPAT explicitly.
10427 * math/w_exp_compat.c (__exp_compat): Likewise.
10428 * math/w_exp.c: New file.
10429 * math/w_exp2.c: New file.
10430 * sysdeps/i386/fpu/w_exp.c: New file.
10431 * sysdeps/i386/fpu/w_exp2.c: New file.
10432 * sysdeps/ia64/fpu/e_exp.S: Add versioned symbols.
10433 * sysdeps/ia64/fpu/e_exp2.S: Likewise.
10434 * sysdeps/ieee754/dbl-64/e_exp.c (__ieee754_exp): Rename to __exp
10435 and add necessary aliases.
10436 * sysdeps/ieee754/dbl-64/e_exp2.c (__ieee754_exp2): Rename to __exp2
10437 and add necessary aliases.
10438 * sysdeps/ieee754/dbl-64/w_exp.c: New file.
10439 * sysdeps/ieee754/dbl-64/w_exp2.c: New file.
10440 * sysdeps/m68k/m680x0/fpu/w_exp.c: New file.
10441 * sysdeps/m68k/m680x0/fpu/w_exp2.c: New file.
10442 * sysdeps/mach/hurd/i386/libm.abilist: Update.
10443 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Update.
10444 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Update.
10445 * sysdeps/unix/sysv/linux/arm/libm.abilist: Update.
10446 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Update.
10447 * sysdeps/unix/sysv/linux/i386/libm.abilist: Update.
10448 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Update.
10449 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Update.
10450 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Update.
10451 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Update.
10452 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Update.
10453 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Update.
10454 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Update.
10455 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Update.
10456 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist: Update.
10457 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Update.
10458 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Update.
10459 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Update.
10460 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Update.
10461 * sysdeps/unix/sysv/linux/sh/libm.abilist: Update.
10462 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Update.
10463 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Update.
10464 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Update.
10465 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Update.
10466 * sysdeps/x86_64/fpu/multiarch/e_exp-avx.c (__exp1): Remove.
10467 (__ieee754_exp): Rename to __exp.
10468 * sysdeps/x86_64/fpu/multiarch/e_exp-fma.c (__exp1): Remove.
10469 (__ieee754_exp): Rename to __exp.
10470 * sysdeps/x86_64/fpu/multiarch/e_exp-fma4.c (__exp1): Remove.
10471 (__ieee754_exp): Rename to __exp.
10472 * sysdeps/x86_64/fpu/multiarch/e_exp.c (__ieee754_exp): Rename to
10473 __exp.
10474 * sysdeps/x86_64/fpu/multiarch/w_exp.c: New file.
10475
10476 2018-11-20 DJ Delorie <dj@redhat.com>
10477
10478 * malloc/malloc.c (tcache_entry): Add key field.
10479 (tcache_put): Set it.
10480 (tcache_get): Likewise.
10481 (_int_free): Check for double free in tcache.
10482 * malloc/tst-tcfree1.c: New.
10483 * malloc/tst-tcfree2.c: New.
10484 * malloc/Makefile: Run the new tests.
10485 * manual/probes.texi: Document memory_tcache_double_free probe.
10486
10487 * dlfcn/dlerror.c (check_free): Prevent double frees.
10488
10489 2018-11-20 Wilco Dijkstra <wdijkstr@arm.com>
10490
10491 * sysdeps/aarch64/memset.S (MEMSET): Improve non-zero memset loop.
10492
10493 2018-11-20 Joseph Myers <joseph@codesourcery.com>
10494
10495 * conform/conformtest.py (ElementTest.run): Use unique identifiers
10496 in tests. Use names for format arguments.
10497 (ConstantTest.run): Likewise.
10498 (SymbolTest.run): Likewise.
10499 (TypeTest.run): Likewise.
10500 (TagTest.run): Likewise.
10501 (FunctionTest.run): Likewise.
10502 (VariableTest.run): Likewise.
10503 (MacroFunctionTest.run): Likewise.
10504 (MacroStrTest.run): Likewise.
10505 (HeaderTests.__init__): Set self.num_tests.
10506 (HeaderTests.handle_test_line): Set test.num. Increment
10507 self.num_tests.
10508
10509 2018-11-19 Samuel Thibault <samuel.thibault@ens-lyon.org>
10510
10511 * sysdeps/mach/hurd/f_setlk.c: Include <unistd.h>.
10512 (__f_setlk): When whence is SEEK_CUR, use __lseek64 to convert it to
10513 SEEK_SET.
10514
10515 2018-11-19 Mao Han <han_mao@c-sky.com>
10516
10517 * scripts/config.guess: Update to version 2018-08-29.
10518 * scripts/config.sub: Update to version 2018-08-29.
10519
10520 2018-11-19 Florian Weimer <fweimer@redhat.com>
10521
10522 support: Print timestamps in timeout handler.
10523 * support/support_test_main.c (print_timestamp): New function.
10524 (signal_handler): Use it to print the termination time and the
10525 time of the last write to standard output.
10526
10527 2018-11-16 Zack Weinberg <zackw@panix.com>
10528 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
10529
10530 * include/monetary.h (STRFMON_LDBL_IS_DBL): New constant.
10531 (__vstrfmon_l): Rename to __vstrfmon_l_internal and add flags
10532 argument.
10533 * stdlib/strfmon_l.c (__vstrfmon_l): Rename to __vstrfmon_l_internal
10534 and add flags argument. Check flags instead of __ldbl_is_dbl when
10535 deciding whether to set is_long_double.
10536 (__strfmon_l): Call __vstrfmon_l_internal instead of __vstrfmon_l,
10537 passing zero for flags argument.
10538 * stdlib/strfmon.c (strfmon): Same change as made to __strfmon_l.
10539
10540 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c
10541 (__nldbl___vstrfmon, __nldbl___vstrfmon_l)
10542 (__nldbl_strfmon, __nldbl___strfmon_l): Call __vstrfmon_l_internal
10543 directly, passing STRFMON_LDBL_IS_DBL for flags argument. Normalize
10544 variable names. Remove libc_hidden_def/libc_hidden_proto from
10545 __nldbl___vstrfmon and __nldbl___vstrfmon_l, because they are no
10546 longer called from within the library.
10547 * sysdeps/ieee754/ldbl-opt/nldbl-compat.h: Don't use NLDBL_DECL
10548 for __nldbl___vstrfmon_l, declare it explicitly.
10549
10550 * manual/locale.texi: Update a reference to vstrfmon_l in comments.
10551
10552 2018-11-15 Samuel Thibault <samuel.thibault@ens-lyon.org>
10553
10554 * sysdeps/mach/hurd/bits/fcntl.h (F_GETLK64, F_SETLK64, F_SETLKW64): New
10555 macros
10556 [__USE_FILE_OFFSET64] (F_GETLK, F_SETLK, F_SETLKW): Define to F_GETLK64,
10557 F_SETLK64, F_SETLKW64, respectively.
10558 * sysdeps/mach/hurd/f_setlk.c: New file.
10559 * sysdeps/mach/hurd/f_setlk.h: New file.
10560 * sysdeps/mach/hurd/Makefile [$(subdir) = io] (sysdeps_routines): Add
10561 f_setlk.
10562 * sysdeps/mach/hurd/fcntl.c: Include "f_setlk.h".h".
10563 (__libc_fcntl): Move non-flock operations to...
10564 * sysdeps/mach/hurd/vfcntl.c (__libc_vfcntl): ... New file.
10565 * sysdeps/mach/hurd/fcntl.c (fcntl64): Add missing alias.
10566
10567 2018-11-15 Paul Eggert <eggert@cs.ucla.edu>
10568
10569 mktime: DEBUG_MKTIME cleanup
10570 The DEBUG_MKTIME code no longer works in glibc or in Gnulib.
10571 And it’s no longer needed now that glibc and Gnulib both have
10572 their own testing mechanisms for mktime.
10573 * time/mktime.c (DEBUG_MKTIME): Remove. All uses removed.
10574
10575 mktime: fix non-EOVERFLOW errno handling
10576 [BZ#23789]
10577 mktime was not properly reporting failures when the underlying
10578 localtime_r fails with errno != EOVERFLOW; it incorrectly treated
10579 them like EOVERFLOW failures, and set errno to EOVERFLOW.
10580 The problem could happen on non-glibc platforms, with Gnulib.
10581 * time/mktime.c (guess_time_tm): Remove, replacing with ...
10582 (tm_diff): ... this simpler function, which does not change errno.
10583 All callers changed to deal with errno themselves.
10584 (ranged_convert, __mktime_internal): Return failure immediately if
10585 the underlying function reports any failure other than EOVERFLOW.
10586 (__mktime_internal): Set errno to EOVERFLOW if the spring-forward
10587 gap code fails.
10588
10589 mktime: fix bug with Y2038 DST transition
10590 [BZ#23789]
10591 * time/mktime.c (ranged_convert): On 32-bit platforms, don’t
10592 mishandle a DST transition that jumps over the Y2038 boundary.
10593 No such DST transitions are known so this is only a theoretical
10594 bug, but we might as well do things right.
10595
10596 mktime: make more room for overflow
10597 [BZ#23789]
10598 * time/mktime.c (long_int): Now 4⨯ int, not just 3⨯.
10599 This is so that we can add tm_diff results to a previous guess,
10600 which will be useful in a later patch.
10601
10602 mktime: simplify offset guess
10603 [BZ#23789]
10604 * time/mktime.c (__mktime_internal): Omit excess precision.
10605
10606 mktime: new test for mktime failure
10607 [BZ#23789]
10608 Based on a test suggested by Albert Aribaud in:
10609 https://www.sourceware.org/ml/libc-alpha/2018-10/msg00662.html
10610 * time/Makefile (tests): Add bug-mktime4.
10611 * time/bug-mktime4.c: New file.
10612
10613 mktime: fix EOVERFLOW bug
10614 [BZ#23789]
10615 * time/mktime.c [!_LIBC && !DEBUG_MKTIME]:
10616 Include libc-config.h, not config.h, for __set_errno.
10617 (guess_time_tm, __mktime_internal): Set errno to EOVERFLOW on overflow.
10618
10619 2018-11-14 Samuel Thibault <samuel.thibault@ens-lyon.org>
10620
10621 * sysdeps/mach/hurd/dl-sysdep.c (check_no_hidden): Use
10622 __attribute_copy__ to copy attributes from name. Drop static qualifier
10623 to avoid warnings about leaf attribute not having effect on static
10624 functions.
10625
10626 2018-11-13 Florian Weimer <fweimer@redhat.com>
10627
10628 * malloc/malloc.c (fastbin_push_entry): New function.
10629 (fastbin_pop_entry): Likewise. Replaces REMOVE_FB.
10630 (REMOVE_FB): Remove macro.
10631 (_int_malloc): Use fastbin_pop_entry and reindent.
10632 (_int_free): Use fastbin_push_entry.
10633 (malloc_consolidate): Use atomic_exchange_acquire.
10634
10635 2018-11-13 Joseph Myers <joseph@codesourcery.com>
10636
10637 * sysdeps/mips/__longjmp.c (__longjmp): Define alias manually with
10638 alias attribute, not with strong_alias.
10639
10640 * include/libc-symbols.h [SHARED && !NO_HIDDEN && !__ASSEMBLER__]
10641 (__hidden_ver2): New macro. Use old definition of __hidden_ver1
10642 with additional parameter thread.
10643 [SHARED && !NO_HIDDEN && !__ASSEMBLER__] (__hidden_ver1): Define
10644 in terms of __hidden_ver2.
10645 (hidden_tls_def): New macro.
10646 (libc_hidden_tls_def): Likewise.
10647 (rtld_hidden_tls_def): Likewise.
10648 (libm_hidden_tls_def): Likewise.
10649 (libmvec_hidden_tls_def): Likewise.
10650 (libresolv_hidden_tls_def): Likewise.
10651 (librt_hidden_tls_def): Likewise.
10652 (libdl_hidden_tls_def): Likewise.
10653 (libnss_files_hidden_tls_def): Likewise.
10654 (libnsl_hidden_tls_def): Likewise.
10655 (libnss_nisplus_hidden_tls_def): Likewise.
10656 (libutil_hidden_tls_def): Likewise.
10657 (libutil_hidden_tls_def): Likweise.
10658 * sysdeps/powerpc/nofpu/sim-full.c (__sim_exceptions_thread): Use
10659 libc_hidden_tls_def.
10660 (__sim_disabled_exceptions_thread): Likewise.
10661 (__sim_round_mode_thread): Likewise.
10662
10663 * sysdeps/sparc/sparc-ifunc.h [SHARED]
10664 (sparc_ifunc_redirected_hidden_def): Use __attribute_copy__ to
10665 copy attributes from name.
10666
10667 2018-11-12 Joseph Myers <joseph@codesourcery.com>
10668
10669 * sysdeps/arm/arm-ifunc.h [SHARED] (arm_libc_ifunc_hidden_def):
10670 Use __attribute_copy__ to copy attributes from name.
10671
10672 * sysdeps/i386/i686/fpu/multiarch/e_expf.c [SHARED]: Use __THROW
10673 with __hidden_ver1 call.
10674 * sysdeps/i386/i686/fpu/multiarch/e_log2f.c [SHARED]: Likewise.
10675 * sysdeps/i386/i686/fpu/multiarch/e_logf.c [SHARED]: Likewise.
10676 * sysdeps/i386/i686/fpu/multiarch/s_cosf.c: Include <math.h>.
10677 (__cosf): Do not declare here.
10678 * sysdeps/i386/i686/fpu/multiarch/s_sincosf.c: Include <math.h>.
10679 (__sincosf): Do not declare here.
10680 * sysdeps/i386/i686/fpu/multiarch/s_sinf.c: Include <math.h>.
10681 (__sinf): Do not declare here.
10682
10683 * sysdeps/ia64/fpu/sfp-machine.h (__LITTLE_ENDIAN): Remove.
10684 (__BIG_ENDIAN): Likewise.
10685 (__BYTE_ORDER): Likewise.
10686 (strong_alias): Likewise.
10687 (_strong_alias): Likewise.
10688
10689 2018-11-12 Florian Weimer <fweimer@redhat.com>
10690
10691 * malloc/malloc.c (unlink_chunk): Turn the unlink macro into this
10692 function. Move after the definition of in_smallbin_range. Do not
10693 use __builtin_expect for paths that lead to a noreturn function.
10694 Drop remaining __builtin_expect (p->fd_nextsize != NULL, 0)
10695 because it is unclear whether this is in fact an unlikely
10696 condition.
10697 (_int_malloc, _int_free): Adjust.
10698 (malloc_consolidate, _int_realloc): Adjust. Remove bck, fwd
10699 variables.
10700 * malloc/arena.c (heap_trim): Likewise.
10701
10702 2018-11-10 Samuel Thibault <samuel.thibault@ens-lyon.org>
10703
10704 * sysdeps/mach/hurd/spawni.c (__spawni): Add ccwdir port. Test and use
10705 it, free it if needed.
10706 (reauthenticate): Test and use ccwdir.
10707 (child_init_port): In non-resetids case, test and use ccwdir.
10708 (child_chdir): New nested function to set ccwdir.
10709 * hurd/hurd/userlink.h (_hurd_userlink_move): New function.
10710 * hurd/hurd/port.h (_hurd_port_move): New function.
10711 * sysdeps/mach/hurd/spawni.c (NEW_ULINK_TABLE): New macro.
10712 (EXPAND_DTABLE): Use NEW_ULINK_TABLE macro for ulink_dtable.
10713 * hurd/Versions (_hurd_port_move): Export function.
10714 * sysdeps/mach/hurd/i386/libc.abilist (_hurd_port_move): Expect
10715 symbol.
10716 * sysdeps/mach/hurd/spawni.c (__spawni): Use orig_dtablesize instead
10717 of dtablesize for allocating dtable_cloexec.
10718
10719 2018-11-09 Martin Sebor <msebor@redhat.com>
10720
10721 * include/libc-symbols.h (__attribute_copy__): Define macro unless
10722 it's already defined.
10723 (_strong_alias): Use __attribute_copy__.
10724 (_weak_alias, __hidden_ver1, __hidden_nolink2): Same.
10725 * misc/sys/cdefs.h (__attribute_copy__): New macro.
10726 * sysdeps/x86_64/multiarch/memchr.c (memchr): Use __attribute_copy__.
10727 * sysdeps/x86_64/multiarch/memcmp.c (memcmp): Same.
10728 * sysdeps/x86_64/multiarch/mempcpy.c (mempcpy): Same.
10729 * sysdeps/x86_64/multiarch/memset.c (memset): Same.
10730 * sysdeps/x86_64/multiarch/stpcpy.c (stpcpy): Same.
10731 * sysdeps/x86_64/multiarch/strcat.c (strcat): Same.
10732 * sysdeps/x86_64/multiarch/strchr.c (strchr): Same.
10733 * sysdeps/x86_64/multiarch/strcmp.c (strcmp): Same.
10734 * sysdeps/x86_64/multiarch/strcpy.c (strcpy): Same.
10735 * sysdeps/x86_64/multiarch/strcspn.c (strcspn): Same.
10736 * sysdeps/x86_64/multiarch/strlen.c (strlen): Same.
10737 * sysdeps/x86_64/multiarch/strncmp.c (strncmp): Same.
10738 * sysdeps/x86_64/multiarch/strncpy.c (strncpy): Same.
10739 * sysdeps/x86_64/multiarch/strnlen.c (strnlen): Same.
10740 * sysdeps/x86_64/multiarch/strpbrk.c (strpbrk): Same.
10741 * sysdeps/x86_64/multiarch/strrchr.c (strrchr): Same.
10742 * sysdeps/x86_64/multiarch/strspn.c (strspn): Same.
10743
10744 2018-11-09 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
10745
10746 * misc/tst-efgcvt.c: Include support/check.h and
10747 support/test-driver.c. Do not include test-skeleton.c.
10748 (error_count): Remove.
10749 (output_error): Replace increments to error_count with calls to
10750 support_record_failure.
10751 (output_r_error): Likewise.
10752 (special): Likewise.
10753 (do_test): Unconditionally return zero.
10754 (TEST_FUNCTION): Remove.
10755
10756 2018-11-09 Joseph Myers <joseph@codesourcery.com>
10757
10758 * conform/Makefile ($(conformtest-header-tests)): Create $(@D),
10759 not $(@D)/scratch.
10760 ($(linknamespace-header-tests)): Likewise.
10761
10762 * conform/conformtest.py: New file.
10763 * conform/conformtest.pl: Remove.
10764 * conform/GlibcConform.pm: Likewise.
10765 * conform/glibcconform.py (KEYWORDS_C90): New constant.
10766 (KEYWORDS_C99): Likewise.
10767 (KEYWORDS): Likewise.
10768 * conform/Makefile ($(conformtest-header-tests)): Use
10769 conformtest.py instead of conformtest.pl. Do not pass --tmpdir
10770 option. Use --header instead of --headers.
10771 * conform/data/arpa/inet.h-data: Remove trailing semicolons on
10772 function entries.
10773 * conform/data/spawn.h-data: Likewise.
10774 * conform/data/fcntl.h-data (openat): Add space after function
10775 name.
10776 * conform/data/wchar.h-data (wcscasecmp): Likewise.
10777 (wcscasecmp_l): Likewise.
10778 * conform/data/termios.h-data (c_cc): Add space after element
10779 name.
10780
10781 2018-11-08 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
10782
10783 * argp/tst-ldbl-argp.c (do_one_test): Use TEST_COMPARE_STRING,
10784 instead of manually comparing and reporting mismatching strings.
10785 * misc/tst-ldbl-error.c (do_one_test): Likewise.
10786 * misc/tst-ldbl-warn.c (do_one_test): Likewise.
10787
10788 2018-11-08 Joseph Myers <joseph@codesourcery.com>
10789
10790 * sysdeps/unix/sysv/linux/kernel-features.h: Remove comment about
10791 __ASSUME_SOCKETCALL.
10792 * sysdeps/unix/sysv/linux/i386/kernel-features.h
10793 (__ASSUME_SOCKETCALL): Remove.
10794 * sysdeps/unix/sysv/linux/m68k/kernel-features.h
10795 (__ASSUME_SOCKETCALL): Likewise.
10796 * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
10797 (__ASSUME_SOCKETCALL): Likewise.
10798 * sysdeps/unix/sysv/linux/powerpc/kernel-features.h
10799 (__ASSUME_SOCKETCALL): Likewise.
10800 * sysdeps/unix/sysv/linux/s390/kernel-features.h
10801 (__ASSUME_SOCKETCALL): Likewise.
10802 * sysdeps/unix/sysv/linux/sh/kernel-features.h
10803 (__ASSUME_SOCKETCALL): Likewise.
10804 * sysdeps/unix/sysv/linux/sparc/kernel-features.h
10805 (__ASSUME_SOCKETCALL): Likewise.
10806
10807 2018-11-08 H.J. Lu <hongjiu.lu@intel.com>
10808
10809 [BZ #23509]
10810 * sysdeps/x86/dl-prop.h (_dl_process_cet_property_note): Skip
10811 note parsing if a NT_GNU_PROPERTY_TYPE_0 note has been processed.
10812 Update the l_cet field when processing NT_GNU_PROPERTY_TYPE_0 note.
10813 Check multiple NT_GNU_PROPERTY_TYPE_0 notes.
10814 * sysdeps/x86/link_map.h (l_cet): Expand to 3 bits, Add
10815 lc_unknown.
10816
10817 2018-11-08 Alexandra Hájková <ahajkova@redhat.com>
10818
10819 [BZ #17630]
10820 * resolv/tst-resolv-network.c: Add test for getnetbyname.
10821
10822 2018-11-07 Joseph Myers <joseph@codesourcery.com>
10823
10824 [BZ #23867]
10825 * sysdeps/unix/sysv/linux/arm/kernel-features.h
10826 [__LINUX_KERNEL_VERSION < 0x040700] (__ASSUME_MLOCK2): Undefine.
10827 * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
10828 [__LINUX_KERNEL_VERSION < 0x040700] (__ASSUME_MLOCK2): Undefine.
10829
10830 2018-11-07 Adhemerval Zanella <adhemerval.zanella@linaro.org>
10831
10832 * support/support_test_compare_string.c
10833 (support_test_compare_string): Fix printf format.
10834
10835 2018-11-07 Florian Weimer <fweimer@redhat.com>
10836
10837 Implement TEST_COMPARE_STRING.
10838 * support/check.h (TEST_COMPARE_STRING): Define.
10839 (support_test_compare_string): Declare.
10840 * support/Makefile (libsupport-routines): Add
10841 support_test_compare_string.
10842 (tests): Add tst-test_compare_string.
10843 * support/support_test_compare_string.c: New file.
10844 * support/tst-test_compare_string.c: Likewise.
10845
10846 2018-11-07 Andreas Schwab <schwab@suse.de>
10847
10848 [BZ #23864]
10849 * sysdeps/unix/sysv/linux/riscv/kernel-features.h
10850 (__ASSUME_SET_ROBUST_LIST) [__LINUX_KERNEL_VERSION < 0x041400]:
10851 Undef.
10852
10853 2018-11-06 Joseph Myers <joseph@codesourcery.com>
10854
10855 [BZ #23862]
10856 * sysdeps/unix/sysv/linux/sh/kernel-features.h
10857 [__LINUX_KERNEL_VERSION < 0x040800] (__ASSUME_EXECVEAT): Undefine.
10858 [__LINUX_KERNEL_VERSION < 0x040800] (__ASSUME_MLOCK2): Likewise.
10859 [__LINUX_KERNEL_VERSION < 0x040800] (__ASSUME_COPY_FILE_RANGE):
10860 Likewise.
10861
10862 2018-11-06 Florian Weimer <fweimer@redhat.com>
10863
10864 [BZ #17405]
10865 * posix/Makefile (routines): Add spawn_faction_addchdir.
10866 (tests): Add tst-spawn-chdir.
10867 * posix/Versions (GLIBC_2.29): Add
10868 posix_spawn_file_actions_addchdir_np.
10869 * posix/spawn_faction_addchdir.c: New file.
10870 * posix/spawn_faction_destroy.c
10871 (__posix_spawn_file_actions_destroy): Handle spawn_do_chdir.
10872 * posix/spawn.h (posix_spawn_file_actions_addchdir_np): Declare.
10873 * posix/spawn_int.h (struct __spawn_action): Add spawn_do_chdir,
10874 chdir_action.
10875 * posix/tst-spawn-chdir.c: New file.
10876 * sysdeps/posix/spawni.c (__spawni_child): Handle spawn_do_chdir.
10877 * sysdeps/unix/sysv/linux/spawni.c (__spawni_child): Likewise.
10878 * sysdeps/mach/hurd/i386/libc.abilist (GLIBC_2.29): Add
10879 posix_spawn_file_actions_addchdir_np.
10880 * sysdeps/unix/sysv/linux/aarch64/libc.abilist (GLIBC_2.29):
10881 Likewise.
10882 * sysdeps/unix/sysv/linux/alpha/libc.abilist (GLIBC_2.29):
10883 Likewise.
10884 * sysdeps/unix/sysv/linux/arm/libc.abilist (GLIBC_2.29): Likewise.
10885 * sysdeps/unix/sysv/linux/hppa/libc.abilist (GLIBC_2.29):
10886 Likewise.
10887 * sysdeps/unix/sysv/linux/i386/libc.abilist (GLIBC_2.29):
10888 Likewise.
10889 * sysdeps/unix/sysv/linux/ia64/libc.abilist (GLIBC_2.29):
10890 Likewise.
10891 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist (GLIBC_2.29):
10892 Likewise.
10893 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist (GLIBC_2.29):
10894 Likewise.
10895 * sysdeps/unix/sysv/linux/microblaze/libc.abilist (GLIBC_2.29):
10896 Likewise.
10897 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist
10898 (GLIBC_2.29): Likewise.
10899 * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist
10900 (GLIBC_2.29): Likewise.
10901 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist
10902 (GLIBC_2.29): Likewise.
10903 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist
10904 (GLIBC_2.29): Likewise.
10905 * sysdeps/unix/sysv/linux/nios2/libc.abilist (GLIBC_2.29):
10906 Likewise.
10907 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist
10908 (GLIBC_2.29): Likewise.
10909 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist
10910 (GLIBC_2.29): Likewise.
10911 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist
10912 (GLIBC_2.29): Likewise.
10913 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist
10914 (GLIBC_2.29): Likewise.
10915 * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist (GLIBC_2.29):
10916 Likewise.
10917 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist (GLIBC_2.29):
10918 Likewise.
10919 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist (GLIBC_2.29):
10920 Likewise.
10921 * sysdeps/unix/sysv/linux/sh/libc.abilist (GLIBC_2.29): Likewise.
10922 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist (GLIBC_2.29):
10923 Likewise.
10924 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist (GLIBC_2.29):
10925 Likewise.
10926 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist (GLIBC_2.29):
10927 Likewise.
10928 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist (GLIBC_2.29):
10929 Likewise.
10930
10931 2018-11-06 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
10932
10933 * misc/Makefile (tests): Add tst-ldbl-error.
10934 * misc/tst-ldbl-error.c: New file.
10935
10936 2018-11-06 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
10937
10938 * misc/Makefile (tests): Add tst-ldbl-warn.
10939 * misc/tst-ldbl-warn.c: New file.
10940
10941 2018-11-06 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
10942
10943 * argp/Makefile (tests): Add tst-ldbl-argp.
10944 * argp/tst-ldbl-argp.c: New file.
10945
10946 2018-11-05 Arjun Shankar <arjun@redhat.com>
10947
10948 * iconv/gconv_conf.c (__gconv_read_conf): Remove NULL check for
10949 __gconv_path_elem and call __gconv_get_path unconditionally.
10950
10951 2018-11-05 Andreas Schwab <schwab@suse.de>
10952
10953 [BZ #22927]
10954 * resolv/gai_misc.c (__gai_enqueue_request): Don't crash if
10955 creating the first helper thread failed.
10956
10957 2018-11-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
10958
10959 * sysdeps/mach/hurd/msync.c: New file.
10960
10961 2018-11-02 Florian Weimer <fweimer@redhat.com>
10962
10963 * support/shell-container.c (copy_func): Call
10964 support_copy_file_range instead of copy_file_range to support
10965 cross-device copies.
10966
10967 2018-11-02 Florian Weimer <fweimer@redhat.com>
10968
10969 * support/test-container.c: Include <libc-pointer-arith.h> for
10970 ALIGN_UP.
10971
10972 2018-11-01 Zong Li <zong@andestech.com>
10973
10974 * soft-fp/op-8.h (_FP_FRAC_SET_8, _FP_FRAC_ADD_8, _FP_FRAC_SUB_8)
10975 (_FP_FRAC_CLZ_8, _FP_MINFRAC_8, _FP_FRAC_NEGP_8, _FP_FRAC_ZEROP_8)
10976 (_FP_FRAC_HIGHBIT_DW_8, _FP_FRAC_COPY_4_8, _FP_FRAC_COPY_8_4)
10977 (__FP_FRAC_SET_8): Add implementation for RV32 use.
10978
10979 * soft-fp/op-4.h (_FP_FRAC_SUB_3, _FP_FRAC_SUB_4): Use temporary
10980 variable to avoid overlap arguments.
10981
10982 2018-11-01 Joseph Myers <joseph@codesourcery.com>
10983
10984 * posix/bug-regex22.c (main): Use puts with distinct error
10985 messages for unexpected success of re_compile_pattern, not printf
10986 with NULL argument to %s.
10987
10988 * stdio-common/bug22.c: Include <libc-diag.h>.
10989 (do_test): Disable -Wformat-overflow= warnings around fprintf
10990 calls outputting more than INT_MAX characters.
10991 * stdio-common/tst-printf.c: Disable -Wformat-overflow= warnings
10992 around printf call with NULL %s argument.
10993
10994 [BZ #23848]
10995 * sysdeps/unix/sysv/linux/sparc/kernel-features.h [!__arch64__ &&
10996 __LINUX_KERNEL_VERSION < 0x040400] (__ASSUME_SENDMSG_SYSCALL):
10997 Undefine.
10998 [!__arch64__ && __LINUX_KERNEL_VERSION < 0x040400]
10999 (__ASSUME_RECVMSG_SYSCALL): Likewise.
11000 [!__arch64__ && __LINUX_KERNEL_VERSION < 0x040400]
11001 (__ASSUME_SENDTO_SYSCALL): Likewise.
11002 [!__arch64__ && __LINUX_KERNEL_VERSION < 0x040400]
11003 (__ASSUME_ACCEPT_SYSCALL): Undefine under this condition, not just
11004 [!__arch64__].
11005 [!__arch64__ && __LINUX_KERNEL_VERSION < 0x040400]
11006 (__ASSUME_CONNECT_SYSCALL): Likewise.
11007 [!__arch64__ && __LINUX_KERNEL_VERSION < 0x040400]
11008 (__ASSUME_RECVFROM_SYSCALL): Likewise.
11009 [__LINUX_KERNEL_VERSION >= 0x040400] (__ASSUME_BIND_SYSCALL):
11010 Define.
11011 [__LINUX_KERNEL_VERSION >= 0x040400] (__ASSUME_LISTEN_SYSCALL):
11012 Likewise.
11013 [__LINUX_KERNEL_VERSION >= 0x040400]
11014 (__ASSUME_SETSOCKOPT_SYSCALL): Likewise.
11015 * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list (bind):
11016 Remove.
11017 (listen): Likewise.
11018 (setsockopt): Likewise.
11019
11020 2018-11-01 Fredrik Noring <noring@nocrew.org>
11021
11022 * sysdeps/mips/sys/tas.h (_test_and_set): Handle the R5900 CPU
11023 with the ISA override.
11024
11025 2018-10-31 Rafael Ávila de Espíndola <rafael@espindo.la>
11026
11027 * sysdeps/unix/sysv/linux/sysdep-vdso.h: Simplify an #if #else
11028 #endif.
11029
11030 2018-10-31 Samuel Thibault <samuel.thibault@ens-lyon.org>
11031
11032 * manual/errno.texi (EIEIO): Document how translators should
11033 translate the error message.
11034 * sysdeps/mach/hurd/errnos.awk: Avoid printing errnos.d. Avoid
11035 printing trailing whitespaces refused by git.
11036 * sysdeps/gnu/errlist.c (EIEIO): Regenerate.
11037 * sysdeps/mach/hurd/bits/errno.h: Regenerate.
11038 * hurd/Makefile (user-interfaces): Add pci.
11039
11040 2018-10-30 Joseph Myers <joseph@codesourcery.com>
11041
11042 * conform/linknamespace.py: New file.
11043 * conform/linknamespace.pl: Remove file.
11044 * conform/Makefile ($(linknamespace-header-tests)): Use
11045 linknamespace.py instead of linknamespace.pl. Do not use --tmpdir
11046 option.
11047
11048 2018-10-30 Florian Weimer <fweimer@redhat.com>
11049
11050 * stdlib/test-bz22786.c (do_test): Additional free calls to avoid
11051 memory leaks.
11052
11053 2018-10-30 Florian Weimer <fweimer@redhat.com>
11054
11055 * support/blob_repeat.c (allocate_big): Call mkstemp directly.
11056
11057 2018-10-30 Florian Weimer <fweimer@redhat.com>
11058
11059 * stdlib/tst-strtod-overflow.c (do_test): Switch to
11060 support_blob_repeat.
11061
11062 2018-10-30 Florian Weimer <fweimer@redhat.com>
11063
11064 Avoid spurious test failures in stdlib/test-bz22786.
11065 * support/Makefile (libsupport-routines): Add blob_repeat.
11066 (tests): Add tst-support_blob_repeat.
11067 * support/blob_repeat.h: New file.
11068 * support/blob_repeat.c: Likewise.
11069 * support/tst-support_blob_repeat.c: Likewise.
11070 * stdlib/test-bz22786.c (do_test): Replace malloc and memset with
11071 support_blob_repeat_allocate.
11072
11073 2018-10-30 Andreas Schwab <schwab@suse.de>
11074
11075 [BZ #23125]
11076 * sysdeps/riscv/start.S (ENTRY_POINT): Mark ra as undefined.
11077 Don't use tail call.
11078 * elf/tst-unwind-main.c: New file.
11079 * elf/Makefile (tests): Add tst-unwind-main.
11080 (CFLAGS-tst-unwind-main.c): Define.
11081
11082 2018-10-29 Sergi Almacellas Abellana <sergi@koolpi.com>
11083
11084 [BZ #23791]
11085 * localedata/locales/ca_ES (LC_MONETARY): set p_cs_precedes and
11086 n_cs_precedes to 0.
11087 * localedata/locales/ca_ES (LC_MONETARY): set grouping to 3;3
11088
11089 2018-10-29 Joseph Myers <joseph@codesourcery.com>
11090
11091 * conform/glibcconform.py: Do not import shutil.
11092 (list_exported_functions): Use tempfile.TemporaryDirectory instead
11093 of mkdtemp.
11094
11095 * configure.ac (PYTHON_PROG): Use AC_CHECK_PROG_VER. Set
11096 critic_missing for versions before 3.4.
11097 * configure: Regenerated.
11098 * manual/install.texi (Tools for Compilation): Document
11099 requirement for Python to build glibc.
11100 * INSTALL: Regenerated.
11101 * Rules [PYTHON]: Make code unconditional.
11102 * benchtests/Makefile [PYTHON]: Likewise.
11103 * conform/Makefile [PYTHON]: Likewise.
11104 * manual/Makefile [PYTHON]: Likewise.
11105 * math/Makefile [PYTHON]: Likewise.
11106
11107 2018-10-28 Samuel Thibault <samuel.thibault@ens-lyon.org>
11108
11109 * hurd/hurdsig.c (_hurd_interrupted_rpc_timeout): Set to 60000.
11110 * hurd/intr-msg.c (_hurd_intr_rpc_mach_msg): When the server does not
11111 answer to interrupt_operation, return EIEIO instead of EINTR.
11112 * sysdeps/mach/hurd/i386/intr-msg.h (INTR_MSG_TRAP): Make
11113 _hurd_intr_rpc_msg_about_to global point to start of controlled
11114 assembly snippet. Make it check canceled flag.
11115 * hurd/hurdsig.c (_hurdsig_abort_rpcs): Only mutate thread if it passed
11116 the _hurd_intr_rpc_msg_about_to point.
11117 * hurd/intr-msg.c (_hurd_intr_rpc_mach_msg): Remove comment on mutation
11118 issue, remove cancel flag check.
11119
11120 2018-10-26 Joseph Myers <joseph@codesourcery.com>
11121
11122 * scripts/build-many-glibcs.py: Remove compatibility for missing
11123 os.cpu_count and re.fullmatch.
11124
11125 2018-10-26 Szabolcs Nagy <szabolcs.nagy@arm.com>
11126
11127 [BZ #23822]
11128 * sysdeps/ia64/fpu/e_exp2f.S (exp2f): Use WEAK_LIBM_ENTRY.
11129 * sysdeps/ia64/fpu/e_log2f.S (log2f): Likewise.
11130 * sysdeps/ia64/fpu/e_exp2f.S (powf): Likewise.
11131
11132 2018-10-25 Joseph Myers <joseph@codesourcery.com>
11133
11134 * sysdeps/unix/sysv/linux/sys/inotify.h (IN_MASK_CREATE): New
11135 macro.
11136
11137 2018-10-25 Florian Weimer <fweimer@redhat.com>
11138
11139 [BZ #23562]
11140 [BZ #23821]
11141 XFAIL siginfo_t si_band conform test on sparc64.
11142 * sysdeps/unix/sysv/linux/sparc/bits/siginfo-arch.h
11143 (__SI_BAND_TYPE): Only override long int default type on sparc64.
11144 * sysdeps/unix/sysv/linux/sparc/sparc64/Makefile
11145 (conformtest-xfail-conds): Add sparc64-linux.
11146 * conform/data/signal.h-data (siginfo_t): XFAIL si_band test on
11147 sparc64.
11148 * conform/data/sys/wait.h-data (siginfo_t): Likewise.
11149
11150 2018-10-25 Joseph Myers <joseph@codesourcery.com>
11151
11152 * elf/elf.h (NT_MIPS_DSP): New macro.
11153 (NT_MIPS_FP_MODE): Likewise.
11154
11155 2018-10-25 Zong Li <zong@andestech.com>
11156
11157 * elf/Makefile (LDFLAGS-tst-execstack-mod.so): Change variable
11158 name by adding the file extension (.so).
11159
11160 2018-10-25 Samuel Thibault <samuel.thibault@ens-lyon.org>
11161
11162 * sysdeps/mach/hurd/i386/Makefile [$(subdir) = conform]
11163 (test-xfail-ISO11/threads.h/linknamespace,
11164 test-xfail-ISO11/threads.h/conform): Add.
11165
11166 2018-10-24 Joseph Myers <joseph@codesourcery.com>
11167
11168 * math/gen-libm-test.py: Import os.
11169 (ALL_FLOATS_MANUAL): New constant.
11170 (ALL_FLOATS_SUFFIX): Likewise.
11171 (Ulps.all_functions): New function.
11172 (real_all_ulps): Likewise.
11173 (generate_err_table_sub): Likewise.
11174 (generate_err_table): Likewise.
11175 (main): Handle -s and -m options.
11176 * manual/libm-err-tab.pl: Remove.
11177 * manual/Makefile ($(objpfx)stamp-libm-err): Use gen-libm-test.py
11178 instead of libm-err-tab.pl.
11179 [$(PERL) != no]: Change condition to [$(if $(PYTHON),$(PERL),no)
11180 != no].
11181 * manual/install.texi (Tools for Compilation): Document
11182 requirement for Python to build manual.
11183 * INSTALL: Regenerated.
11184
11185 2018-10-24 Albert ARIBAUD <albert.aribaud@3adev.fr>
11186
11187 * bits/time64.h: New file.
11188 * include/time.h: Replace internal_time_t with __time64_t.
11189 * posix/bits/types (__time64_t): Add.
11190 * stdlib/Makefile: Add bits/time64.h to includes.
11191 * time/tzfile.c: Replace internal_time_t with __time64_t.
11192
11193 2018-10-24 Adhemerval Zanella <adhemerval.zanella@linaro.org>
11194
11195 * include/spawn.h (__posix_spawn, posix_spawn_file_actions_addclose,
11196 __posix_spawn_file_actions_adddup2, __posix_spawn_file_actions_destroy,
11197 __posix_spawn_file_actions_init, __posix_spawnattr_init,
11198 __posix_spawnattr_destroy, __posix_spawnattr_setflags,
11199 __posix_spawnattr_setsigdefault, __posix_spawnattr_setsigmask): New
11200 prototype.
11201 * posix/spawn.c (__posix_spawn): Add libc_hidden_def.
11202 * posix/spawn_faction_addclose.c
11203 (__posix_spawn_file_actions_addclose): Add hidden definition.
11204 * posix/spawn_faction_adddup2.c
11205 (__posix_spawn_file_actions_adddup2): Likewise.
11206 * posix/spawn_faction_destroy.c
11207 (__posix_spawn_file_actions_destroy): Likewise.
11208 * posix/spawn_faction_init.c (__posix_spawn_file_actions_init):
11209 Likewise.
11210 * posix/spawnattr_destroy.c (__posix_spawnattr_destroy): Likewise.
11211 * posix/spawnattr_init.c (__posix_spawnattr_init): Likewise.
11212 * posix/spawnattr_setdefault.c (__posix_spawnattr_setsigdefault):
11213 Likewise.
11214 * posix/spawnattr_setflags.c (__posix_spawnattr_setflags): Likewise.
11215 * posix/spawnattr_setsigmask.c (__posix_spawnattr_setsigmask):
11216 Likewise.
11217
11218 2018-10-24 Andreas Schwab <schwab@suse.de>
11219
11220 [BZ #18093]
11221 * elf/dl-cache.c (_dl_load_cache_lookup): Check for truncated old
11222 format cache.
11223 * elf/cache.c (print_cache): Likewise.
11224
11225 2018-10-24 Albert ARIBAUD <albert.aribaud@3adev.fr>
11226
11227 * bits/timesize.h: New file.
11228 * stdlib/Makefile (headers): Add bits/timesize.h.
11229 * sysdeps/unix/sysv/linux/bits/msq-pad.h
11230 (__MSQ_PAD_AFTER_TIME): Use __TIMESIZE instead of __WORDSIZE.
11231 * sysdeps/unix/sysv/linux/bits/sem-pad.h
11232 (__SEM_PAD_AFTER_TIME): Likewise.
11233 * sysdeps/unix/sysv/linux/bits/shm-pad.h
11234 (__SHM_PAD_AFTER_TIME): Likewise.
11235 * sysdeps/unix/sysv/linux/hppa/bits/msq-pad.h
11236 (__MSQ_PAD_BEFORE_TIME): Likewise.
11237 * sysdeps/unix/sysv/linux/hppa/bits/sem-pad.h
11238 (__SEM_PAD_BEFORE_TIME): Likewise.
11239 * sysdeps/unix/sysv/linux/hppa/bits/shm-pad.h
11240 (__SHM_PAD_BEFORE_TIME, __SHM_PAD_BETWEEN_TIME_AND_SEGSZ): Likewise.
11241 * sysdeps/unix/sysv/linux/mips/bits/msq-pad.h
11242 (__MSQ_PAD_AFTER_TIME, __MSQ_PAD_BEFORE_TIME): Likewise.
11243 * sysdeps/unix/sysv/linux/powerpc/bits/msq-pad.h
11244 (__MSQ_PAD_BEFORE_TIME): Likewise.
11245 * sysdeps/unix/sysv/linux/powerpc/bits/sem-pad.h
11246 (__SEM_PAD_BEFORE_TIME): Likewise.
11247 * sysdeps/unix/sysv/linux/powerpc/bits/shm-pad.h
11248 (__SHM_PAD_BEFORE_TIME, __SHM_PAD_BETWEEN_TIME_AND_SEGSZ): Likewise.
11249 * sysdeps/unix/sysv/linux/sparc/bits/msq-pad.h
11250 (__MSQ_PAD_BEFORE_TIME): Likewise.
11251 * sysdeps/unix/sysv/linux/sparc/bits/sem-pad.h
11252 (__SEM_PAD_BEFORE_TIME): Likewise.
11253 * sysdeps/unix/sysv/linux/sparc/bits/shm-pad.h
11254 (__SHM_PAD_BEFORE_TIME): Likewise.
11255 * sysdeps/unix/sysv/linux/x86/bits/msq-pad.h: Delete file.
11256 * sysdeps/unix/sysv/linux/x86/bits/shm-pad.h: Likewise.
11257 * sysdeps/unix/sysv/linux/x86/bits/timesize.h: New file.
11258
11259 2018-10-24 H.J. Lu <hongjiu.lu@intel.com>
11260
11261 * benchtests/Makefile (CPPFLAGS-nonlib): Add -DUSE_RDTSCP if
11262 USE_RDTSCP is defined.
11263 * sysdeps/x86/hp-timing.h (HP_TIMING_NOW): Use RDTSCP if
11264 USE_RDTSCP is defined.
11265
11266 2018-10-23 Adhemerval Zanella <adhemerval.zanella@linaro.org>
11267
11268 * misc/tst-preadvwritev2-common.c (IOV_MAX): Define if not
11269 defined.
11270
11271 [BZ #23709]
11272 * sysdeps/x86/cpu-features.c (init_cpu_features): Set TSX bits
11273 independently of other flags.
11274
11275 2018-10-23 Florian Weimer <fweimer@redhat.com>
11276
11277 * time/tst-mktime2.c (N_STRINGS): Remove.
11278 (set_timezone): New function.
11279 (spring_forward_gap): Call it. Use FAIL_EXIT1.
11280 (mktime_test1): Report localtime failure and check errno value.
11281 Use TEST_COMPARE.
11282 (irix_6_4_bug, bigtime_test): Use TEST_COMPARE.
11283 (do_test): Remove alarm call. Use set_timezone and array_length.
11284
11285 2018-10-23 Andreas Schwab <schwab@suse.de>
11286
11287 * sysdeps/unix/sysv/linux/riscv/setcontext.S (__setcontext)
11288 (__start_context): Use END instead of PSEUDO_END.
11289
11290 2018-10-22 Joseph Myers <joseph@codesourcery.com>
11291
11292 * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
11293 version to 4.19.
11294
11295 * scripts/build-many-glibcs.py (Context.checkout): Default Linux
11296 version to 4.19.
11297
11298 [BZ #23793]
11299 * wcsmbs/c32rtomb.c: New file.
11300 * wcsmbs/mbrtoc32.c: Likewise.
11301 * wcsmbs/tst-c32-state.c: Likewise.
11302 * wcsmbs/mbrtowc.c (mbrtoc32): Do not define as alias.
11303 * wcsmbs/wcrtomb.c (c32rtomb): Likewise.
11304 * wcsmbs/Makefile (routines): Add mbrtoc32 and c32rtomb.
11305 (tests): Add tst-c32-state.
11306 [$(run-built-tests) = yes] ($(objpfx)tst-c32-state.out): Depend on
11307 $(gen-locales).
11308
11309 2018-10-21 H.J. Lu <hongjiu.lu@intel.com>
11310
11311 * sysdeps/x86/hp-timing.h: Don't include <x86intrin.h>.
11312 (HP_TIMING_NOW): Replace _rdtsc with __builtin_ia32_rdtsc.
11313
11314 2018-10-19 Joseph Myers <joseph@codesourcery.com>
11315
11316 [BZ #23794]
11317 * wcsmbs/c16rtomb.c (c16rtomb): Save first character of surrogate
11318 pair and return 0 in that case, and use saved character to
11319 interpret following character.
11320 * wcsmbs/tst-c16-surrogate.c: New file.
11321 * wcsmbs/Makefile (tests): Add tst-c16-surrogate.c.
11322 [$(run-built-tests) = yes] ($(objpfx)tst-c16-surrogate.out):
11323 Depend on $(gen-locales)
11324
11325 2018-10-19 Ilya Yu. Malakhov <malakhov@mcst.ru>
11326
11327 [BZ #23562]
11328 * sysdeps/unix/sysv/linux/bits/types/siginfo_t.h
11329 (struct siginfo_t): Use correct type for si_band.
11330
11331 2018-10-19 Florian Weimer <fweimer@redhat.com>
11332
11333 [BZ #23689]
11334 * resource/bits/types/struct_rusage.h (struct rusage): Update
11335 comment on struct. Remove extraneous field comment.
11336
11337 2018-10-18 David S. Miller <davem@davemloft.net>
11338
11339 * sysdeps/unix/sysv/linux/sparc/init-first.c: New file.
11340 * sysdeps/unix/sysv/linux/sparc/libc-vdso.h: New file.
11341 * sysdeps/unix/sysv/linux/sparc/Makefile: Add dl-vdso to
11342 sysdep_routines in subdir elf.
11343 * sysdeps/unix/sysv/linux/sparc/Versions: Add GLIBC_PRIVATE
11344 version for __vdso_clock_gettime.
11345 * sysdeps/unix/sysv/linux/sparc/sysdep.h (INTERNAL_VSYSCALL_CALL):
11346 Define.
11347 (HAVE_CLOCK_GETTIME_VSYSCALL): Define.
11348 (HAVE_GETTIMEOFDAY_VSYSCALL): Define.
11349
11350 * sysdeps/sparc/fpu/libm-test-ulps: Regenerated.
11351
11352 2018-10-17 H.J. Lu <hongjiu.lu@intel.com>
11353
11354 * sysdeps/i386/init-arch.h: Removed.
11355 * sysdeps/i386/i586/init-arch.h: Likewise.
11356 * sysdeps/i386/i686/init-arch.h: Likewise.
11357 * sysdeps/i386/i686/hp-timing.h: Likewise.
11358 * sysdeps/x86_64/hp-timing.h: Likewise.
11359 * sysdeps/i386/isa.h: New file.
11360 * sysdeps/i386/i586/isa.h: Likewise.
11361 * sysdeps/i386/i686/isa.h: Likewise.
11362 * sysdeps/x86_64/isa.h: Likewise.
11363 * sysdeps/x86/hp-timing.h: New file.
11364 * sysdeps/x86/init-arch.h: Include <isa.h>.
11365
11366 2018-10-17 Joseph Myers <joseph@codesourcery.com>
11367
11368 * math/libm-test-pow.inc (pow_test_data): Do not allow
11369 divide-by-zero exception for pow(+/- 0, -Inf).
11370
11371 2018-10-17 Zack Weinberg <zackw@panix.com>
11372
11373 * manual/job.texi (Job Control is Optional): Remove node, as
11374 job control has not been optional in quite some time.
11375 (Job Control): Mention briefly that systems older than
11376 POSIX.1-2001 might not support job control.
11377 * manual/conf.texi (_POSIX_JOB_CONTROL): Will always be
11378 defined on systems conforming to POSIX.1-2001.
11379
11380 2018-10-17 Arjun Shankar <arjun@redhat.com>
11381
11382 [BZ #22062]
11383 * iconv/gconv_conf.c (__gconv_get_path): Remove locking and fix
11384 indentation.
11385 * (__gconv_read_conf): Mark function static.
11386 * (once): New static variable.
11387 * (__gconv_load_conf): New function.
11388 * iconv/gconv_int.h (__gconv_load_conf): Likewise.
11389 * iconv/gconv_db.c (once): Remove static variable.
11390 * (__gconv_compare_alias): Use __gconv_load_conf instead of
11391 __gconv_read_conf.
11392 * (__gconv_find_transform): Likewise.
11393 * iconv/tst-iconv-mt.c: New test.
11394 * iconv/Makefile: Add tst-iconv_mt.
11395
11396 2018-10-17 Joseph Myers <joseph@codesourcery.com>
11397
11398 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
11399 bits/shm-pad.h.
11400 * sysdeps/unix/sysv/linux/bits/shm.h: Include <bits/shm-pad.h>.
11401 (shmatt_t): Define as __syscall_ulong_t.
11402 (__SHM_PAD_TIME): New macro, depending on [__SHM_PAD_BEFORE_TIME]
11403 and [__SHM_PAD_AFTER_TIME].
11404 (struct shmid_ds): Define time fields using __SHM_PAD_TIME.
11405 Define shm_segsz and associated padding based on
11406 [__SHM_SEGSZ_AFTER_TIME] and [__SHM_PAD_BETWEEN_TIME_AND_SEGSZ].
11407 Use __syscall_ulong_t instead of unsigned long int.
11408 [__USE_MISC] (struct shminfo): Use __syscall_ulong_t instead of
11409 unsigned long int.
11410 [__USE_MISC] (struct shm_info): Likewise.
11411 * sysdeps/unix/sysv/linux/bits/shm-pad.h: New file.
11412 * sysdeps/unix/sysv/linux/hppa/bits/shm-pad.h: Likewise.
11413 * sysdeps/unix/sysv/linux/mips/bits/shm-pad.h: Likewise.
11414 * sysdeps/unix/sysv/linux/powerpc/bits/shm-pad.h: Likewise.
11415 * sysdeps/unix/sysv/linux/sparc/bits/shm-pad.h: Likewise.
11416 * sysdeps/unix/sysv/linux/x86/bits/shm-pad.h: Likewise.
11417 * sysdeps/unix/sysv/linux/hppa/bits/shm.h: Remove.
11418 * sysdeps/unix/sysv/linux/mips/bits/shm.h: Likewise.
11419 * sysdeps/unix/sysv/linux/powerpc/bits/shm.h: Likewise.
11420 * sysdeps/unix/sysv/linux/sparc/bits/shm.h: Likewise.
11421 * sysdeps/unix/sysv/linux/x86/bits/shm.h: Likewise.
11422
11423 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
11424 bits/shmlba.h.
11425 * sysdeps/unix/sysv/linux/bits/shm.h: Include <bits/shmlba.h>.
11426 (SHMLBA): Remove macro.
11427 (__getpagesize): Remove function declaration.
11428 * sysdeps/unix/sysv/linux/hppa/bits/shm.h: Include
11429 <bits/shmlba.h>.
11430 (SHMLBA): Remove macro.
11431 * sysdeps/unix/sysv/linux/mips/bits/shm.h: Include
11432 <bits/shmlba.h>.
11433 (SHMLBA): Remove macro.
11434 * sysdeps/unix/sysv/linux/powerpc/bits/shm.h: Include
11435 <bits/shmlba.h>.
11436 (SHMLBA): Remove macro.
11437 (__getpagesize): Remove function declaration.
11438 * sysdeps/unix/sysv/linux/sparc/bits/shm.h: Include
11439 <bits/shmlba.h>.
11440 (SHMLBA): Remove macro.
11441 (__getshmlba): Remove function declaration.
11442 * sysdeps/unix/sysv/linux/x86/bits/shm.h: Include <bits/shmlba.h>.
11443 (SHMLBA): Remove macro.
11444 (__getpagesize): Remove function declaration.
11445 * sysdeps/unix/sysv/linux/arm/bits/shm.h: Remove file.
11446 * sysdeps/unix/sysv/linux/ia64/bits/shm.h: Likewise.
11447 * sysdeps/unix/sysv/linux/sh/bits/shm.h: Likewise.
11448 * sysdeps/unix/sysv/linux/bits/shmlba.h: New file.
11449 * sysdeps/unix/sysv/linux/arm/bits/shmlba.h: Likewise.
11450 * sysdeps/unix/sysv/linux/hppa/bits/shmlba.h: Likewise.
11451 * sysdeps/unix/sysv/linux/ia64/bits/shmlba.h: Likewise.
11452 * sysdeps/unix/sysv/linux/mips/bits/shmlba.h: Likewise.
11453 * sysdeps/unix/sysv/linux/sh/bits/shmlba.h: Likewise.
11454 * sysdeps/unix/sysv/linux/sparc/bits/shmlba.h: Likewise.
11455
11456 2018-10-17 Stefan Liebler <stli@linux.ibm.com>
11457
11458 [BZ #23275]
11459 * nptl/tst-mutex10.c: New File.
11460 * nptl/Makefile (tests): Add tst-mutex10.
11461 (tst-mutex10-ENV): New variable.
11462 * sysdeps/unix/sysv/linux/s390/force-elision.h: (FORCE_ELISION):
11463 Ensure that elision path is used if elision is available.
11464 * sysdeps/unix/sysv/linux/powerpc/force-elision.h (FORCE_ELISION):
11465 Likewise.
11466 * sysdeps/unix/sysv/linux/x86/force-elision.h: (FORCE_ELISION):
11467 Likewise.
11468 * nptl/pthreadP.h (PTHREAD_MUTEX_TYPE, PTHREAD_MUTEX_TYPE_ELISION)
11469 (PTHREAD_MUTEX_PSHARED): Use atomic_load_relaxed.
11470 * nptl/pthread_mutex_consistent.c (pthread_mutex_consistent): Likewise.
11471 * nptl/pthread_mutex_getprioceiling.c (pthread_mutex_getprioceiling):
11472 Likewise.
11473 * nptl/pthread_mutex_lock.c (__pthread_mutex_lock_full)
11474 (__pthread_mutex_cond_lock_adjust): Likewise.
11475 * nptl/pthread_mutex_setprioceiling.c (pthread_mutex_setprioceiling):
11476 Likewise.
11477 * nptl/pthread_mutex_timedlock.c (__pthread_mutex_timedlock): Likewise.
11478 * nptl/pthread_mutex_trylock.c (__pthread_mutex_trylock): Likewise.
11479 * nptl/pthread_mutex_unlock.c (__pthread_mutex_unlock_full): Likewise.
11480 * sysdeps/nptl/bits/thread-shared-types.h (struct __pthread_mutex_s):
11481 Add comments.
11482 * nptl/pthread_mutex_destroy.c (__pthread_mutex_destroy):
11483 Use atomic_load_relaxed and atomic_store_relaxed.
11484 * nptl/pthread_mutex_init.c (__pthread_mutex_init):
11485 Use atomic_store_relaxed.
11486
11487 2018-10-17 Andreas Schwab <schwab@suse.de>
11488
11489 * benchtests/bench-strtod.c (TIMEOUT): Don't define.
11490 * crypt/badsalttest.c (TIMEOUT): Likewise.
11491 * crypt/sha256c-test.c (TIMEOUT): Likewise.
11492 * dirent/tst-fdopendir.c (TIMEOUT): Likewise.
11493 * io/test-lfs.c (TIMEOUT): Likewise.
11494 * libio/tst-atime.c (TIMEOUT): Likewise.
11495 * localedata/tst-leaks.c (TIMEOUT): Likewise.
11496 * nptl/tst-cancel19.c (TIMEOUT): Likewise.
11497 * nptl/tst-cancel22.c (TIMEOUT): Likewise.
11498 * nptl/tst-cancel25.c (TIMEOUT): Likewise.
11499 * nptl/tst-cancel7.c (TIMEOUT): Likewise.
11500 * nptl/tst-cond-except.c (TIMEOUT): Likewise.
11501 * nptl/tst-cond11.c (TIMEOUT): Likewise.
11502 * nptl/tst-cond14.c (TIMEOUT): Likewise.
11503 * nptl/tst-cond15.c (TIMEOUT): Likewise.
11504 * nptl/tst-cond24.c (TIMEOUT): Likewise.
11505 * nptl/tst-cond25.c (TIMEOUT): Likewise.
11506 * nptl/tst-kill2.c (TIMEOUT): Likewise.
11507 * nptl/tst-kill3.c (TIMEOUT): Likewise.
11508 * nptl/tst-mutex4.c (TIMEOUT): Likewise.
11509 * nptl/tst-mutex5.c (TIMEOUT): Likewise.
11510 * nptl/tst-mutex9.c (TIMEOUT): Likewise.
11511 * nptl/tst-once2.c (TIMEOUT): Likewise.
11512 * nptl/tst-once3.c (TIMEOUT): Likewise.
11513 * nptl/tst-once4.c (TIMEOUT): Likewise.
11514 * nptl/tst-robust8.c (TIMEOUT): Likewise.
11515 * nptl/tst-robust9.c (TIMEOUT): Likewise.
11516 * nptl/tst-rwlock16.c (TIMEOUT): Likewise.
11517 * nptl/tst-sem14.c (TIMEOUT): Likewise.
11518 * nptl/tst-sem6.c (TIMEOUT): Likewise.
11519 * nptl/tst-signal3.c (TIMEOUT): Likewise.
11520 * nptl/tst-spin4.c (TIMEOUT): Likewise.
11521 * nptl/tst-tls3.c (TIMEOUT): Likewise.
11522 * nptl/tst-tls4.c (TIMEOUT): Likewise.
11523 * posix/tst-chmod.c (TIMEOUT): Likewise.
11524 * posix/tst-getaddrinfo4.c (TIMEOUT): Likewise.
11525 * posix/tst-getaddrinfo5.c (TIMEOUT): Likewise.
11526 * posix/tst-preadwrite-common.c (TIMEOUT): Likewise.
11527 * posix/tst-regex2.c (TIMEOUT): Likewise.
11528 * posix/tst-waitid.c (TIMEOUT): Likewise.
11529 * rt/tst-aio.c (TIMEOUT): Likewise.
11530 * rt/tst-aio10.c (TIMEOUT): Likewise.
11531 * rt/tst-aio4.c (TIMEOUT): Likewise.
11532 * rt/tst-aio5.c (TIMEOUT): Likewise.
11533 * rt/tst-aio6.c (TIMEOUT): Likewise.
11534 * rt/tst-aio64.c (TIMEOUT): Likewise.
11535 * rt/tst-aio7.c (TIMEOUT): Likewise.
11536 * rt/tst-aio9.c (TIMEOUT): Likewise.
11537 * rt/tst-clock.c (TIMEOUT): Likewise.
11538 * rt/tst-cpuclock1.c (TIMEOUT): Likewise.
11539 * rt/tst-cpuclock2.c (TIMEOUT): Likewise.
11540 * rt/tst-mqueue2.c (TIMEOUT): Likewise.
11541 * rt/tst-mqueue4.c (TIMEOUT): Likewise.
11542 * rt/tst-mqueue5.c (TIMEOUT): Likewise.
11543 * rt/tst-timer4.c (TIMEOUT): Likewise.
11544 * stdio-common/tst-fseek.c (TIMEOUT): Likewise.
11545 * stdio-common/tst-rndseek.c (TIMEOUT): Likewise.
11546 * stdlib/tst-empty-env.c (TIMEOUT): Likewise.
11547 * sysdeps/wordsize-64/tst-writev.c (TIMEOUT): Likewise.
11548 * time/tst-ftime.c (TIMEOUT): Likewise.
11549 * timezone/tst-tzset.c (TIMEOUT): Likewise.
11550
11551 2018-10-16 Anton Youdkevitch <anton.youdkevitch@bell-sw.com>
11552
11553 * sysdeps/aarch64/multiarch/memcpy_thunderx.S: Remove thunderx2 code.
11554 * sysdeps/aarch64/multiarch/memcpy_thunderx2.S: New implementation
11555 for thunderX2.
11556
11557 2018-10-15 Joseph Myers <joseph@codesourcery.com>
11558
11559 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
11560 bits/sem-pad.h.
11561 * sysdeps/unix/sysv/linux/bits/sem.h: Include <bits/sem-pad.h>
11562 instead of <bits/wordsize.h>.
11563 (__SEM_PAD_TIME): New macro, depending on [__SEM_PAD_BEFORE_TIME]
11564 and [__SEM_PAD_AFTER_TIME].
11565 (struct semid_ds): Define time fields using __SEM_PAD_TIME. Use
11566 __syscall_ulong_t instead of unsigned long int.
11567 * sysdeps/unix/sysv/linux/bits/sem-pad.h: New file.
11568 * sysdeps/unix/sysv/linux/hppa/bits/sem-pad.h: Likewise.
11569 * sysdeps/unix/sysv/linux/mips/bits/sem-pad.h: Likewise.
11570 * sysdeps/unix/sysv/linux/powerpc/bits/sem-pad.h: Likewise.
11571 * sysdeps/unix/sysv/linux/sparc/bits/sem-pad.h: Likewise.
11572 * sysdeps/unix/sysv/linux/x86/bits/sem-pad.h: Likewise.
11573 * sysdeps/unix/sysv/linux/hppa/bits/sem.h: Remove.
11574 * sysdeps/unix/sysv/linux/mips/bits/sem.h: Likewise.
11575 * sysdeps/unix/sysv/linux/powerpc/bits/sem.h: Likewise.
11576 * sysdeps/unix/sysv/linux/sparc/bits/sem.h: Likewise.
11577 * sysdeps/unix/sysv/linux/x86/bits/sem.h: Likewise.
11578
11579 2018-10-14 Paul Eggert <eggert@cs.ucla.edu>
11580
11581 regex: simplify by using intprops.h
11582 [BZ#23744]
11583 * posix/regex_internal.h [_LIBC]: Include intprops.h.
11584 (TYPE_SIGNED, INT_ADD_WRAPV) [_LIBC]: Remove.
11585 intprops.h defines them.
11586
11587 regex: __builtin_expect → __glibc_unlikely
11588 [BZ#23744]
11589 This refactoring was prompted by a problem when the regex code is
11590 used as part of Gnulib and when the builder’s compiler does not grok
11591 __builtin_expect. Problem reported for Gawk by Nelson H.F. Beebe in:
11592 https://lists.gnu.org/r/bug-gnulib/2018-09/msg00137.html
11593 Although this refactoring does not fix the problem directly,
11594 we might as well have Gawk use the now-preferred glibc style for when
11595 __builtin_expect is unavailable.
11596 * posix/regex_internal.h (BE): Remove.
11597 All uses replaced by __glibc_unlikely or __glibc_likely.
11598
11599 2018-10-11 Joseph Myers <joseph@codesourcery.com>
11600
11601 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
11602 bits/msq-pad.h.
11603 * sysdeps/unix/sysv/linux/bits/msq.h: Include <bits/msq-pad.h>
11604 instead of <bits/wordsize.h>.
11605 (msgqnum_t): Define as __syscall_ulong_t.
11606 (msglen_t): Likewise.
11607 (__MSQ_PAD_TIME): New macro, depending on [__MSQ_PAD_BEFORE_TIME]
11608 and [__MSQ_PAD_AFTER_TIME].
11609 (struct msqid_ds): Define time fields using __MSQ_PAD_TIME. Use
11610 __syscall_ulong_t instead of unsigned long int.
11611 * sysdeps/unix/sysv/linux/bits/msq-pad.h: New file.
11612 * sysdeps/unix/sysv/linux/hppa/bits/msq-pad.h: Likewise.
11613 * sysdeps/unix/sysv/linux/mips/bits/msq-pad.h: Likewise.
11614 * sysdeps/unix/sysv/linux/powerpc/bits/msq-pad.h: Likewise.
11615 * sysdeps/unix/sysv/linux/sparc/bits/msq-pad.h: Likewise.
11616 * sysdeps/unix/sysv/linux/x86/bits/msq-pad.h: Likewise.
11617 * sysdeps/unix/sysv/linux/hppa/bits/msq.h: Remove.
11618 * sysdeps/unix/sysv/linux/mips/bits/msq.h: Likewise.
11619 * sysdeps/unix/sysv/linux/powerpc/bits/msq.h: Likewise.
11620 * sysdeps/unix/sysv/linux/sparc/bits/msq.h: Likewise.
11621 * sysdeps/unix/sysv/linux/x86/bits/msq.h: Likewise.
11622
11623 2018-10-10 Joseph Myers <joseph@codesourcery.com>
11624
11625 * sysdeps/unix/sysv/linux/bits/shm.h: Include <bits/wordsize.h>.
11626 (struct shmid_ds): Condition padding after time fields on
11627 [__WORDSIZE == 32].
11628 * sysdeps/unix/sysv/linux/alpha/bits/shm.h: Remove file.
11629 * sysdeps/unix/sysv/linux/generic/bits/shm.h: Likewise.
11630 * sysdeps/unix/sysv/linux/s390/bits/shm.h: Likewise.
11631
11632 * sysdeps/unix/sysv/linux/bits/sem.h: Include <bits/wordsize.h>.
11633 (struct semid_ds): Condition padding after time fields on
11634 [__WORDSIZE == 32].
11635 * sysdeps/unix/sysv/linux/alpha/bits/sem.h: Remove file.
11636 * sysdeps/unix/sysv/linux/generic/bits/sem.h: Likewise.
11637 * sysdeps/unix/sysv/linux/ia64/bits/sem.h: Likewise.
11638 * sysdeps/unix/sysv/linux/s390/bits/sem.h: Likewise.
11639
11640 * sysdeps/unix/sysv/linux/bits/msq.h: Include <bits/wordsize.h>.
11641 (struct msqid_ds): Condition padding after time fields on
11642 [__WORDSIZE == 32].
11643 * sysdeps/unix/sysv/linux/alpha/bits/msq.h: Remove file.
11644 * sysdeps/unix/sysv/linux/generic/bits/msq.h: Likewise.
11645 * sysdeps/unix/sysv/linux/ia64/bits/msq.h: Likewise.
11646 * sysdeps/unix/sysv/linux/s390/bits/msq.h: Likewise.
11647
11648 2018-10-09 Szabolcs Nagy <szabolcs.nagy@arm.com>
11649
11650 * nss/tst-nss-files-hosts-multi.c (TIMEOUT): Define.
11651
11652 2018-10-09 Szabolcs Nagy <szabolcs.nagy@arm.com>
11653
11654 * libio/tst-readline.c (TIMEOUT): Define.
11655
11656 2018-10-08 Paul Eggert <eggert@cs.ucla.edu>
11657
11658 mktime fix for Gnulib + coreutils
11659 [BZ#23745]
11660 This fix affects only Gnulib. Problem discovered when
11661 mktime.c was used as part of Gnulib in bleeding-edge Coreutils.
11662 * time/mktime.c:
11663 (my_tzset) [!_LIBC && !NEED_MKTIME_WORKING && !NEED_MKTIME_WINDOWS]:
11664 Do not define since it is not used. Defining an unused static
11665 function prompts a warning from GCC when Coreutils is configured
11666 with --enable-gcc-warnings.
11667
11668 2018-10-08 Leonardo Sandoval <leonardo.sandoval.gonzalez@intel.com>
11669
11670 * benchtests/scripts/compare_bench.py (main): set float type on
11671 threshold argument.
11672
11673 2018-10-08 Rafał Lużyński <digitalfreak@lingonborough.com>
11674
11675 [BZ #23740]
11676 * localedata/locales/kl_GL (mon): Update, the relative case.
11677 (alt_mon): Add, fill with month names in the nominative case.
11678 (d_t_fmt): Set to "%a %b %d %Y %T %Z".
11679 (d_fmt): Set to "%b %d %Y".
11680
11681 2018-10-04 Joseph Myers <joseph@codesourcery.com>
11682
11683 * sysdeps/unix/sysv/linux/hppa/bits/mman.h: Include
11684 <bits/mman-linux.h>.
11685 (PROT_READ): Don't define here.
11686 (PROT_WRITE): Likewise.
11687 (PROT_EXEC): Likewise.
11688 (PROT_NONE): Likewise.
11689 (PROT_GROWSDOWN): Likewise.
11690 (PROT_GROWSUP): Likewise.
11691 (MAP_SHARED): Likewise.
11692 (MAP_PRIVATE): Likewise.
11693 [__USE_MISC] (MAP_SHARED_VALIDATE): Likewise.
11694 [__USE_MISC] (MAP_FILE): Likewise.
11695 [__USE_MISC] (MAP_ANONYMOUS): Likewise.
11696 [__USE_MISC] (MAP_ANON): Likewise.
11697 [__USE_MISC] (MAP_HUGE_SHIFT): Likewise.
11698 [__USE_MISC] (MAP_HUGE_MASK): Likewise.
11699 (MCL_CURRENT): Likewise.
11700 (MCL_FUTURE): Likewise.
11701 (MCL_ONFAULT): Likewise.
11702 [__USE_MISC] (MADV_NORMAL): Likewise.
11703 [__USE_MISC] (MADV_RANDOM): Likewise.
11704 [__USE_MISC] (MADV_SEQUENTIAL): Likewise.
11705 [__USE_MISC] (MADV_WILLNEED): Likewise.
11706 [__USE_MISC] (MADV_DONTNEED): Likewise.
11707 [__USE_MISC] (MADV_FREE): Likewise.
11708 [__USE_MISC] (MADV_REMOVE): Likewise.
11709 [__USE_MISC] (MADV_DONTFORK): Likewise.
11710 [__USE_MISC] (MADV_DOFORK): Likewise.
11711 [__USE_MISC] (MADV_HWPOISON): Likewise.
11712 [__USE_XOPEN2K] (POSIX_MADV_NORMAL): Likewise.
11713 [__USE_XOPEN2K] (POSIX_MADV_RANDOM): Likewise.
11714 [__USE_XOPEN2K] (POSIX_MADV_SEQUENTIAL): Likewise.
11715 [__USE_XOPEN2K] (POSIX_MADV_WILLNEED): Likewise.
11716 [__USE_XOPEN2K] (POSIX_MADV_DONTNEED): Likewise.
11717 (__MAP_ANONYMOUS): New macro.
11718 [__USE_MISC] (MAP_TYPE): Undefine and redefine after
11719 <bits/mman-linux.h> inclusion.
11720 (MAP_FIXED): Likewise.
11721 (MS_SYNC): Likewise.
11722 (MS_ASYNC): Likewise.
11723 (MS_INVALIDATE): Likewise.
11724 [__USE_MISC] (MADV_MERGEABLE): Likewise.
11725 [__USE_MISC] (MADV_UNMERGEABLE): Likewise.
11726 [__USE_MISC] (MADV_HUGEPAGE): Likewise.
11727 [__USE_MISC] (MADV_NOHUGEPAGE): Likewise.
11728 [__USE_MISC] (MADV_DONTDUMP): Likewise.
11729 [__USE_MISC] (MADV_DODUMP): Likewise.
11730 [__USE_MISC] (MADV_WIPEONFORK): Likewise.
11731 [__USE_MISC] (MADV_KEEPONFORK): Likewise.
11732
11733 [BZ #23735]
11734 * sysdeps/ieee754/ldbl-opt/nldbl-compat.h (NO_MATH_REDIRECT):
11735 Define.
11736 * sysdeps/ieee754/ldbl-opt/test-nldbl-redirect.c: New file.
11737 * sysdeps/ieee754/ldbl-opt/Makefile [$(subdir) = math] (tests):
11738 Add test-nldbl-redirect.
11739 [$(subdir) = math] (CFLAGS-test-nldbl-redirect.c): New variable.
11740 [$(subdir) = math] ($(objpfx)test-nldbl-redirect): Depend on
11741 $(objpfx)libnldbl_nonshared.a.
11742
11743 2018-10-04 Stefan Liebler <stli@linux.ibm.com>
11744
11745 * support/support.h (support_objdir_elf_ldso): New variable.
11746 * support/support_paths.c (support_objdir_elf_ldso): Likewise.
11747 * support/Makefile (CFLAGS-support_paths.c): Add definition
11748 for OBJDIR_ELF_LDSO_PATH.
11749 * support/test-container.c (main): Search for the ld.so
11750 which is also used by the testsuite.
11751
11752 2018-10-02 Rafał Lużyński <digitalfreak@lingonborough.com>
11753
11754 [BZ #20209]
11755 * localedata/locales/kl_GL: (abday): Fix spelling of Sun (Sunday),
11756 should be "sap" rather than "sab".
11757 (day): Fix spelling of Sunday, should be "sapaat" rather than
11758 "sabaat".
11759
11760 2018-10-02 Joseph Myers <joseph@codesourcery.com>
11761
11762 * math/libm-test-fma.inc (fma_test_data): Add more tests.
11763
11764 2018-10-02 Martin Jansa <Martin.Jansa@gmail.com>
11765
11766 [BZ #19444]
11767 * sysdeps/ieee754/soft-fp/s_fdiv.c: Include <libc-diag.h> and use
11768 DIAG_PUSH_NEEDS_COMMENT, DIAG_IGNORE_NEEDS_COMMENT and
11769 DIAG_POP_NEEDS_COMMENT to disable -Wmaybe-uninitialized.
11770
11771 2018-10-02 Adhemerval Zanella <adhemerval.zanella@linaro.org>
11772
11773 * sysdeps/unix/sysv/linux/fd_to_filename.h: Add missing includes.
11774
11775 2018-10-02 H.J. Lu <hongjiu.lu@intel.com>
11776
11777 * sysdeps/unix/sysv/linux/x86/Makefile (CFLAGS-elision-lock.c):
11778 Add -mrtm.
11779 (CFLAGS-elision-unlock.c): Likewise.
11780 (CFLAGS-elision-timed.c): Likewise.
11781 (CFLAGS-elision-trylock.c): Likewise.
11782 * sysdeps/unix/sysv/linux/x86/hle.h: Rewritten.
11783
11784 2018-10-02 Adhemerval Zanella <adhemerval.zanella@linaro.org>
11785
11786 [BZ #21037]
11787 * libio/Makefile (tests): Add tst-memstream4 and tst-wmemstream4.
11788 * libio/freopen.c (freopen): Sync stream before reopen and adjust to
11789 new fd_to_filename interface.
11790 * libio/freopen64.c (freopen64): Likewise.
11791 * libio/tst-memstream.h: New file.
11792 * libio/tst-memstream4.c: Likewise.
11793 * libio/tst-wmemstream4.c: Likewise.
11794 * sysdeps/generic/fd_to_filename.h (fd_to_filename): Change signature.
11795 * sysdeps/unix/sysv/linux/fd_to_filename.h (fd_to_filename): Likewise
11796 and remove internal dynamic allocation.
11797
11798 2018-10-01 Joseph Myers <joseph@codesourcery.com>
11799
11800 * sysdeps/unix/sysv/linux/bits/mman-linux.h [__USE_GNU]
11801 (MREMAP_MAYMOVE): Do not define here.
11802 [__USE_GNU] (MREMAP_FIXED): Likewise.
11803 * sysdeps/unix/sysv/linux/bits/mman-shared.h [__USE_GNU]
11804 (MREMAP_MAYMOVE): Define here instead.
11805 [__USE_GNU] (MREMAP_FIXED): Likewise.
11806 * sysdeps/unix/sysv/linux/hppa/bits/mman.h [__USE_GNU]
11807 (MREMAP_MAYMOVE): Remove.
11808 [__USE_GNU] (MREMAP_FIXED): Likewise.
11809
11810 2018-09-28 Joseph Myers <joseph@codesourcery.com>
11811
11812 * math/fromfp.h: Do not include <math_private.h>.
11813 * math/s_cacosh_template.c: Likewise.
11814 * math/s_casin_template.c: Likewise.
11815 * math/s_casinh_template.c: Likewise.
11816 * math/s_ccos_template.c: Likewise.
11817 * math/s_cproj_template.c: Likewise.
11818 * math/s_fdim_template.c: Likewise.
11819 * math/s_fmaxmag_template.c: Likewise.
11820 * math/s_fminmag_template.c: Likewise.
11821 * math/s_iseqsig_template.c: Likewise.
11822 * math/s_ldexp_template.c: Likewise.
11823 * math/s_nextdown_template.c: Likewise.
11824 * math/w_log1p_template.c: Likewise.
11825 * math/w_scalbln_template.c: Likewise.
11826 * sysdeps/aarch64/fpu/feholdexcpt.c: Likewise.
11827 * sysdeps/aarch64/fpu/fesetround.c: Likewise.
11828 * sysdeps/aarch64/fpu/fgetexcptflg.c: Likewise.
11829 * sysdeps/aarch64/fpu/ftestexcept.c: Likewise.
11830 * sysdeps/aarch64/fpu/s_llrint.c: Likewise.
11831 * sysdeps/aarch64/fpu/s_llrintf.c: Likewise.
11832 * sysdeps/aarch64/fpu/s_lrint.c: Likewise.
11833 * sysdeps/aarch64/fpu/s_lrintf.c: Likewise.
11834 * sysdeps/i386/fpu/s_atanl.c: Likewise.
11835 * sysdeps/i386/fpu/s_f32xaddf64.c: Likewise.
11836 * sysdeps/i386/fpu/s_f32xsubf64.c: Likewise.
11837 * sysdeps/i386/fpu/s_fdim.c: Likewise.
11838 * sysdeps/i386/fpu/s_logbl.c: Likewise.
11839 * sysdeps/i386/fpu/s_rintl.c: Likewise.
11840 * sysdeps/i386/fpu/s_significandl.c: Likewise.
11841 * sysdeps/ia64/fpu/s_matherrf.c: Likewise.
11842 * sysdeps/ia64/fpu/s_matherrl.c: Likewise.
11843 * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
11844 * sysdeps/ieee754/dbl-64/s_cbrt.c: Likewise.
11845 * sysdeps/ieee754/dbl-64/s_fma.c: Likewise.
11846 * sysdeps/ieee754/dbl-64/s_fmaf.c: Likewise.
11847 * sysdeps/ieee754/flt-32/s_cbrtf.c: Likewise.
11848 * sysdeps/ieee754/k_standardf.c: Likewise.
11849 * sysdeps/ieee754/k_standardl.c: Likewise.
11850 * sysdeps/ieee754/ldbl-128ibm/s_copysignl.c: Likewise.
11851 * sysdeps/ieee754/ldbl-64-128/s_finitel.c: Likewise.
11852 * sysdeps/ieee754/ldbl-64-128/s_fpclassifyl.c: Likewise.
11853 * sysdeps/ieee754/ldbl-64-128/s_isinfl.c: Likewise.
11854 * sysdeps/ieee754/ldbl-64-128/s_isnanl.c: Likewise.
11855 * sysdeps/ieee754/ldbl-64-128/s_signbitl.c: Likewise.
11856 * sysdeps/ieee754/ldbl-96/s_cbrtl.c: Likewise.
11857 * sysdeps/ieee754/ldbl-96/s_fma.c: Likewise.
11858 * sysdeps/ieee754/ldbl-96/s_fmal.c: Likewise.
11859 * sysdeps/ieee754/s_signgam.c: Likewise.
11860 * sysdeps/powerpc/power5+/fpu/s_modf.c: Likewise.
11861 * sysdeps/powerpc/power5+/fpu/s_modff.c: Likewise.
11862 * sysdeps/powerpc/power7/fpu/s_logbf.c: Likewise.
11863 * sysdeps/riscv/rv64/rvd/s_ceil.c: Likewise.
11864 * sysdeps/riscv/rv64/rvd/s_floor.c: Likewise.
11865 * sysdeps/riscv/rv64/rvd/s_nearbyint.c: Likewise.
11866 * sysdeps/riscv/rv64/rvd/s_round.c: Likewise.
11867 * sysdeps/riscv/rv64/rvd/s_roundeven.c: Likewise.
11868 * sysdeps/riscv/rv64/rvd/s_trunc.c: Likewise.
11869 * sysdeps/riscv/rvd/s_finite.c: Likewise.
11870 * sysdeps/riscv/rvd/s_fmax.c: Likewise.
11871 * sysdeps/riscv/rvd/s_fmin.c: Likewise.
11872 * sysdeps/riscv/rvd/s_fpclassify.c: Likewise.
11873 * sysdeps/riscv/rvd/s_isinf.c: Likewise.
11874 * sysdeps/riscv/rvd/s_isnan.c: Likewise.
11875 * sysdeps/riscv/rvd/s_issignaling.c: Likewise.
11876 * sysdeps/riscv/rvf/fegetround.c: Likewise.
11877 * sysdeps/riscv/rvf/feholdexcpt.c: Likewise.
11878 * sysdeps/riscv/rvf/fesetenv.c: Likewise.
11879 * sysdeps/riscv/rvf/fesetround.c: Likewise.
11880 * sysdeps/riscv/rvf/feupdateenv.c: Likewise.
11881 * sysdeps/riscv/rvf/fgetexcptflg.c: Likewise.
11882 * sysdeps/riscv/rvf/ftestexcept.c: Likewise.
11883 * sysdeps/riscv/rvf/s_ceilf.c: Likewise.
11884 * sysdeps/riscv/rvf/s_finitef.c: Likewise.
11885 * sysdeps/riscv/rvf/s_floorf.c: Likewise.
11886 * sysdeps/riscv/rvf/s_fmaxf.c: Likewise.
11887 * sysdeps/riscv/rvf/s_fminf.c: Likewise.
11888 * sysdeps/riscv/rvf/s_fpclassifyf.c: Likewise.
11889 * sysdeps/riscv/rvf/s_isinff.c: Likewise.
11890 * sysdeps/riscv/rvf/s_isnanf.c: Likewise.
11891 * sysdeps/riscv/rvf/s_issignalingf.c: Likewise.
11892 * sysdeps/riscv/rvf/s_nearbyintf.c: Likewise.
11893 * sysdeps/riscv/rvf/s_roundevenf.c: Likewise.
11894 * sysdeps/riscv/rvf/s_roundf.c: Likewise.
11895 * sysdeps/riscv/rvf/s_truncf.c: Likewise.
11896 * sysdeps/riscv/rv64/rvd/s_rint.c: Include <stdbool.h> instead of
11897 <math_private.h>.
11898 * sysdeps/riscv/rvf/s_rintf.c: Likewise.
11899
11900 2018-09-28 H.J. Lu <hongjiu.lu@intel.com>
11901
11902 [BZ #23716]
11903 * sysdeps/i386/dl-cet.c: Removed.
11904 * sysdeps/i386/dl-machine.h (_dl_runtime_resolve_shstk): New
11905 prototype.
11906 (_dl_runtime_profile_shstk): Likewise.
11907 (elf_machine_runtime_setup): Use _dl_runtime_profile_shstk or
11908 _dl_runtime_resolve_shstk if SHSTK is enabled by kernel.
11909
11910 2018-09-28 Adhemerval Zanella <adhemerval.zanella@linaro.org>
11911
11912 [BZ #23579]
11913 * misc/tst-preadvwritev2-common.c (do_test_with_invalid_fd,
11914 do_test_with_invalid_iov): New tests.
11915 * misc/tst-preadvwritev2.c, misc/tst-preadvwritev64v2.c (do_test):
11916 Call do_test_with_invalid_fd and do_test_with_invalid_iov.
11917 * sysdeps/unix/sysv/linux/preadv2.c (preadv2): Use fallback code iff
11918 errno is ENOSYS.
11919 * sysdeps/unix/sysv/linux/preadv64v2.c (preadv64v2): Likewise.
11920 * sysdeps/unix/sysv/linux/pwritev2.c (pwritev2): Likewise.
11921 * sysdeps/unix/sysv/linux/pwritev64v2.c (pwritev64v2): Likewise.
11922
11923 2018-09-27 Joseph Myers <joseph@codesourcery.com>
11924
11925 * include/math.h [!_ISOMAC && !(__FINITE_MATH_ONLY__ &&
11926 __FINITE_MATH_ONLY__ > 0) && !NO_MATH_REDIRECT]
11927 (MATH_REDIRECT_BINARY_ARGS): New macro.
11928 [!_ISOMAC && !(__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0)
11929 && !NO_MATH_REDIRECT] (copysign): Redirect using MATH_REDIRECT.
11930 * sysdeps/alpha/fpu/s_copysign.c: Define NO_MATH_REDIRECT before
11931 header inclusion.
11932 * sysdeps/alpha/fpu/s_copysignf.c: Likewise.
11933 * sysdeps/ieee754/dbl-64/s_copysign.c: Likewise.
11934 * sysdeps/ieee754/float128/s_copysignf128.c: Likewise.
11935 * sysdeps/ieee754/flt-32/s_copysignf.c: Likewise.
11936 * sysdeps/ieee754/ldbl-128/s_copysignl.c: Likewise.
11937 * sysdeps/ieee754/ldbl-128ibm/s_copysignl.c: Likewise.
11938 * sysdeps/ieee754/ldbl-96/s_copysignl.c: Likewise.
11939 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_copysign.c:
11940 Likewise.
11941 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_copysignf.c:
11942 Likewise.
11943 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysign.c: Likewise.
11944 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysignf.c: Likewise.
11945 * sysdeps/riscv/rvd/s_copysign.c: Likewise.
11946 * sysdeps/riscv/rvf/s_copysignf.c: Likewise.
11947 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.c:
11948 Likewise.
11949 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf.c:
11950 Likewise.
11951 * sysdeps/generic/math_private_calls.h
11952 [!__MATH_DECLARING_LONG_DOUBLE || !NO_LONG_DOUBLE] (__copysign):
11953 Do not declare and define as an inline function.
11954 * math/divtc3.c (__divtc3): Use copysign functions instead of
11955 __copysign variants.
11956 * math/multc3.c (__multc3): Likewise.
11957 * sysdeps/generic/math-type-macros.h (M_COPYSIGN): Likewise.
11958 * sysdeps/ieee754/dbl-64/e_atan2.c (signArctan2): Likewise.
11959 * sysdeps/ieee754/dbl-64/e_atanh.c (__ieee754_atanh): Likewise.
11960 * sysdeps/ieee754/dbl-64/e_gamma_r.c (__ieee754_gamma_r):
11961 Likewise.
11962 * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_jn): Likewise.
11963 (__ieee754_yn): Likewise.
11964 * sysdeps/ieee754/dbl-64/s_asinh.c (__asinh): Likewise.
11965 * sysdeps/ieee754/dbl-64/s_atan.c (__signArctan): Likewise.
11966 * sysdeps/ieee754/dbl-64/s_scalbln.c (__scalbln): Likewise.
11967 * sysdeps/ieee754/dbl-64/s_scalbn.c (__scalbn): Likewise.
11968 * sysdeps/ieee754/dbl-64/s_sin.c (do_sin): Likewise.
11969 (__sin): Likewise.
11970 * sysdeps/ieee754/dbl-64/s_sincos.c (__sincos): Likewise.
11971 * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c (__nearbyint):
11972 Likewise.
11973 * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbln.c (__scalbln):
11974 Likewise.
11975 * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbn.c (__scalbn):
11976 Likewise.
11977 * sysdeps/ieee754/flt-32/e_atanhf.c (__ieee754_atanhf): Likewise.
11978 * sysdeps/ieee754/flt-32/e_gammaf_r.c (__ieee754_gammaf_r):
11979 Likewise.
11980 * sysdeps/ieee754/flt-32/e_jnf.c (__ieee754_jnf): Likewise.
11981 (__ieee754_ynf): Likewise.
11982 * sysdeps/ieee754/flt-32/s_asinhf.c (__asinhf): Likewise.
11983 * sysdeps/ieee754/flt-32/s_scalbnf.c (__scalbnf): Likewise.
11984 * sysdeps/ieee754/k_standard.c (__kernel_standard): Likewise.
11985 * sysdeps/ieee754/ldbl-128/e_gammal_r.c (__ieee754_gammal_r):
11986 Likewise.
11987 * sysdeps/ieee754/ldbl-128/e_jnl.c (__ieee754_jnl): Likewise.
11988 (__ieee754_ynl): Likewise.
11989 * sysdeps/ieee754/ldbl-128/s_scalblnl.c (__scalblnl): Likewise.
11990 * sysdeps/ieee754/ldbl-128/s_scalbnl.c (__scalbnl): Likewise.
11991 * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (__ieee754_gammal_r):
11992 Likewise.
11993 * sysdeps/ieee754/ldbl-128ibm/e_jnl.c (__ieee754_jnl): Likewise.
11994 (__ieee754_ynl): Likewise.
11995 * sysdeps/ieee754/ldbl-128ibm/s_fmal.c (__fmal): Likewise.
11996 * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c (__scalblnl): Likewise.
11997 * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c (__scalbnl): Likewise.
11998 * sysdeps/ieee754/ldbl-96/e_gammal_r.c (__ieee754_gammal_r):
11999 Likewise.
12000 * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_jnl): Likewise.
12001 (__ieee754_ynl)
12002 * sysdeps/ieee754/ldbl-96/s_asinhl.c (__asinhl): Likewise.
12003 * sysdeps/ieee754/ldbl-96/s_scalblnl.c (__scalblnl): Likewise.
12004 * sysdeps/ieee754/ldbl-opt/nldbl-copysign.c (copysignl): Likewise.
12005 * sysdeps/powerpc/power5+/fpu/s_modf.c (__modf): Likewise.
12006 * sysdeps/powerpc/power5+/fpu/s_modff.c (__modff): Likewise.
12007
12008 * include/math.h [!_ISOMAC && !(__FINITE_MATH_ONLY__ &&
12009 __FINITE_MATH_ONLY__ > 0) && !NO_MATH_REDIRECT] (round): Redirect
12010 using MATH_REDIRECT.
12011 * sysdeps/aarch64/fpu/s_round.c: Define NO_MATH_REDIRECT before
12012 header inclusion.
12013 * sysdeps/aarch64/fpu/s_roundf.c: Likewise.
12014 * sysdeps/ieee754/dbl-64/s_round.c: Likewise.
12015 * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c: Likewise.
12016 * sysdeps/ieee754/float128/s_roundf128.c: Likewise.
12017 * sysdeps/ieee754/flt-32/s_roundf.c: Likewise.
12018 * sysdeps/ieee754/ldbl-128/s_roundl.c: Likewise.
12019 * sysdeps/ieee754/ldbl-96/s_roundl.c: Likewise.
12020 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_round.c: Likewise.
12021 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_roundf.c: Likewise.
12022 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_round.c: Likewise.
12023 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_roundf.c: Likewise.
12024 * sysdeps/riscv/rv64/rvd/s_round.c: Likewise.
12025 * sysdeps/riscv/rvf/s_roundf.c: Likewise.
12026 * sysdeps/ieee754/ldbl-128ibm/s_roundl.c: Likewise.
12027 (round): Redirect to __round.
12028 (__roundl): Call round instead of __round.
12029 * sysdeps/powerpc/fpu/math_private.h [_ARCH_PWR5X] (__round):
12030 Remove macro.
12031 [_ARCH_PWR5X] (__roundf): Likewise.
12032 * sysdeps/ieee754/dbl-64/e_gamma_r.c (gamma_positive): Use round
12033 functions instead of __round variants.
12034 * sysdeps/ieee754/flt-32/e_gammaf_r.c (gammaf_positive): Likewise.
12035 * sysdeps/ieee754/ldbl-128/e_gammal_r.c (gammal_positive):
12036 Likewise.
12037 * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (gammal_positive):
12038 Likewise.
12039 * sysdeps/ieee754/ldbl-96/e_gammal_r.c (gammal_positive):
12040 Likewise.
12041 * sysdeps/x86/fpu/powl_helper.c (__powl_helper): Likewise.
12042 * sysdeps/ieee754/ldbl-128ibm/e_expl.c (lroundl): Redirect to
12043 __lroundl.
12044 (__ieee754_expl): Call roundl instead of __roundl.
12045
12046 2018-09-27 Andreas Schwab <schwab@suse.de>
12047
12048 [BZ #23717]
12049 * stdlib/tst-setcontext9.c (f1a): Make st2 static.
12050 (do_test): Make st1 static.
12051
12052 2018-09-26 Andreas Schwab <schwab@suse.de>
12053
12054 [BZ #23707]
12055 * sysdeps/powerpc/powerpc32/dl-start.S: Add unwind information.
12056 * elf/Makefile (tests): Add tst-unwind-ctor.
12057 (modules-names): Add tst-unwind-ctor-lib.
12058 ($(objpfx)tst-unwind-ctor): Depend on
12059 $(objpfx)tst-unwind-ctor-lib.so.
12060
12061 2018-09-26 Joseph Myers <joseph@codesourcery.com>
12062
12063 * sysdeps/unix/sysv/linux/bits/mman-map-flags-generic.h: New
12064 file. Most contents moved from ....
12065 * sysdeps/unix/sysv/linux/bits/mman.h: ... here. Move contents to
12066 and include <bits/mman-map-flags-generic.h>.
12067 * sysdeps/unix/sysv/linux/Makefile [$(subdir) = misc]
12068 (sysdep_headers): Add bits/mman-map-flags-generic.h.
12069 * sysdeps/unix/sysv/linux/ia64/bits/mman.h: Include
12070 <bits/mman-map-flags-generic.h>.
12071 [__USE_MISC] (MAP_GROWSUP): Only define this macro, not other
12072 macros defined in <bits/mman-map-flags-generic.h>.
12073 * sysdeps/unix/sysv/linux/x86/bits/mman.h: Include
12074 <bits/mman-map-flags-generic.h>.
12075 [__USE_MISC] (MAP_32BIT): Only define this macro, not other macros
12076 defined in <bits/mman-map-flags-generic.h>.
12077
12078 2018-09-26 Andreas Schwab <schwab@suse.de>
12079
12080 * Makefile ($(common-objpfx)testrun.sh): Remove leading space from
12081 output.
12082
12083 2018-09-25 Adam J. Richte <adam_richter2004@yahoo.com>
12084 Adhemerval Zanella <adhemerval.zanella@linaro.org>
12085 Fangrui Song <maskray@google.com>
12086
12087 [BZ #20480]
12088 * config.make.in (have-textrel_ifunc): New define.
12089 * configure.ac: Add check if linker supports textrel relocation with
12090 ifunc.
12091 * elf/Makefile [have-textrel_ifunc == yes] (ifunc-pie-tests): Add
12092 tst-ifunc-textrel.
12093 (CFLAGS-tst-ifunc-textrel.c): New rule.
12094 * elf/dl-reloc.c (_dl_relocate_object): Use all required flags on
12095 DT_TEXTREL segments, not only PROT_READ and PROT_WRITE.
12096 * elf/tst-ifunc-textrel.c: New file.
12097
12098 2018-09-25 Joseph Myers <joseph@codesourcery.com>
12099
12100 * sysdeps/unix/sysv/linux/sys/procfs.h: Include
12101 <bits/procfs-prregset.h>.
12102 (prgregset_t): Define using __prgregset_t.
12103 (prfpregset_t): Define using __prfpregset_t.
12104 * sysdeps/unix/sysv/linux/Makefile [$(subdir) = misc]
12105 (sysdep_headers): Add bits/procfs-prregset.h.
12106 * sysdeps/unix/sysv/linux/bits/procfs-prregset.h: New file.
12107 * sysdeps/unix/sysv/linux/alpha/bits/procfs-prregset.h: Likewise.
12108 * sysdeps/unix/sysv/linux/alpha/bits/procfs.h: Likewise.
12109 * sysdeps/unix/sysv/linux/alpha/sys/procfs.h: Remove file.
12110
12111 * sysdeps/unix/sysv/linux/sys/procfs.h: Include
12112 <bits/procfs-id.h> and <bits/procfs-extra.h>.
12113 (struct elf_prpsinfo): Use __pr_uid_t and __pr_gid_t as types of
12114 pr_uid and pr_gid.
12115 * sysdeps/unix/sysv/linux/Makefile [$(subdir) = misc]
12116 (sysdep_headers): Add bits/procfs-id.h and bits/procfs-extra.h.
12117 * sysdeps/unix/sysv/linux/bits/procfs-extra.h: New file.
12118 * sysdeps/unix/sysv/linux/bits/procfs-id.h: Likewise.
12119 * sysdeps/unix/sysv/linux/arm/bits/procfs-id.h: Likewise.
12120 * sysdeps/unix/sysv/linux/arm/bits/procfs.h: Likewise.
12121 * sysdeps/unix/sysv/linux/m68k/bits/procfs-id.h: Likewise.
12122 * sysdeps/unix/sysv/linux/m68k/bits/procfs.h: Likewise.
12123 * sysdeps/unix/sysv/linux/s390/bits/procfs-extra.h: Likewise.
12124 * sysdeps/unix/sysv/linux/s390/bits/procfs-id.h: Likewise.
12125 * sysdeps/unix/sysv/linux/s390/bits/procfs.h: Likewise.
12126 * sysdeps/unix/sysv/linux/sh/bits/procfs-id.h: Likewise.
12127 * sysdeps/unix/sysv/linux/sh/bits/procfs.h: Likewise.
12128 * sysdeps/unix/sysv/linux/sparc/bits/procfs-extra.h: Likewise.
12129 * sysdeps/unix/sysv/linux/sparc/bits/procfs-id.h: Likewise.
12130 * sysdeps/unix/sysv/linux/sparc/bits/procfs.h: Likewise.
12131 * sysdeps/unix/sysv/linux/x86/bits/procfs-id.h: Likewise.
12132 * sysdeps/unix/sysv/linux/x86/bits/procfs.h: Likewise.
12133 * sysdeps/unix/sysv/linux/arm/sys/procfs.h: Remove file.
12134 * sysdeps/unix/sysv/linux/m68k/sys/procfs.h: Likewise.
12135 * sysdeps/unix/sysv/linux/s390/sys/procfs.h: Likewise.
12136 * sysdeps/unix/sysv/linux/sh/sys/procfs.h: Likewise.
12137 * sysdeps/unix/sysv/linux/sparc/sys/procfs.h: Likewise.
12138 * sysdeps/unix/sysv/linux/x86/sys/procfs.h: Likewise.
12139
12140 * sysdeps/unix/sysv/linux/sys/procfs.h: Replace with file based on
12141 AArch64 version. Include <bits/procfs.h>.
12142 * sysdeps/unix/sysv/linux/Makefile [$(subdir) = misc]
12143 (sysdep_headers): Add bits/procfs.h.
12144 * sysdeps/unix/sysv/linux/bits/procfs.h: New file.
12145 * sysdeps/unix/sysv/linux/aarch64/bits/procfs.h: Likewise.
12146 * sysdeps/unix/sysv/linux/hppa/bits/procfs.h: Likewise.
12147 * sysdeps/unix/sysv/linux/ia64/bits/procfs.h: Likewise.
12148 * sysdeps/unix/sysv/linux/microblaze/bits/procfs.h: Likewise.
12149 * sysdeps/unix/sysv/linux/mips/bits/procfs.h: Likewise.
12150 * sysdeps/unix/sysv/linux/nios2/bits/procfs.h: Likewise.
12151 * sysdeps/unix/sysv/linux/powerpc/bits/procfs.h: Likewise.
12152 * sysdeps/unix/sysv/linux/riscv/bits/procfs.h: Likewise.
12153 * sysdeps/unix/sysv/linux/aarch64/sys/procfs.h: Remove file.
12154 * sysdeps/unix/sysv/linux/hppa/sys/procfs.h: Likewise.
12155 * sysdeps/unix/sysv/linux/ia64/sys/procfs.h: Likewise.
12156 * sysdeps/unix/sysv/linux/microblaze/sys/procfs.h: Likewise.
12157 * sysdeps/unix/sysv/linux/mips/sys/procfs.h: Likewise.
12158 * sysdeps/unix/sysv/linux/nios2/sys/procfs.h: Likewise.
12159 * sysdeps/unix/sysv/linux/powerpc/sys/procfs.h: Likewise.
12160 * sysdeps/unix/sysv/linux/riscv/sys/procfs.h: Likewise.
12161
12162 2018-09-25 Adhemerval Zanella <adhemerval.zanella@linaro.org>
12163
12164 * posix/tst-spawn.c (do_prepare, handle_restart, do_test):
12165 Use libsupport.
12166
12167 2018-09-25 Arjun Shankar <arjun@redhat.com>
12168
12169 * iconv/gconv_int.h (__gconv_path_elem): Remove.
12170 (__gconv_max_path_elem_len): Likewise.
12171 (__gconv_nmodules): Likewise.
12172 (__gconv_get_path): Likewise.
12173 (path_elem): Move to ...
12174 * iconv/gconv_conf.c: ... here.
12175 (__gconv_get_path): Mark function static.
12176 * iconv/gconv_int.h (GCONV_NCHAR_GOAL): Move to ...
12177 * iconv/gconv_open.c: ... here.
12178
12179 2018-09-24 Andreas Schwab <schwab@suse.de>
12180
12181 * scripts/haveversions.awk: New file.
12182 * Makerules ($(common-objpfx)Versions.def)
12183 ($(common-objpfx)Versions.all, $(common-objpfx)Versions.v.i)
12184 ($(common-objpfx)sysd-versions, $(common-objpfx)versions.stmp):
12185 Move rules ...
12186 * Makeconfig ($(common-objpfx)Versions.def)
12187 ($(common-objpfx)Versions.all, $(common-objpfx)Versions.v.i)
12188 ($(common-objpfx)sysd-versions, $(common-objpfx)versions.stmp):
12189 ... here.
12190 ($(common-objpfx)Versions.mk): New rule. Include it.
12191 * nis/Makefile [!have-GLIBC_2.28]: Don't build any targets.
12192 Emit error if build-obsolete-nsl = yes.
12193 * manual/install.texi (Configuring and compiling): Describe
12194 --enable-obsolete-nsl as unavaiable after version 2.28.
12195 * INSTALL: Regenerate.
12196
12197 2018-09-21 Adhemerval Zanella <adhemerval.zanella@linaro.org>
12198
12199 * NEWS: Add note about new TLE support on powerpc64le.
12200 * sysdeps/powerpc/nptl/tcb-offsets.sym (TM_CAPABLE): Remove.
12201 * sysdeps/powerpc/nptl/tls.h (tcbhead_t): Rename tm_capable to
12202 __ununsed1.
12203 (TLS_INIT_TP, TLS_DEFINE_INIT_TP): Remove tm_capable setup.
12204 (THREAD_GET_TM_CAPABLE, THREAD_SET_TM_CAPABLE): Remove macros.
12205 * sysdeps/powerpc/powerpc32/sysdep.h,
12206 sysdeps/powerpc/powerpc64/sysdep.h (ABORT_TRANSACTION_IMPL,
12207 ABORT_TRANSACTION): Remove macros.
12208 * sysdeps/powerpc/sysdep.h (ABORT_TRANSACTION): Likewise.
12209 * sysdeps/unix/sysv/linux/powerpc/elision-conf.c (elision_init): Set
12210 __pthread_force_elision iff PPC_FEATURE2_HTM_NOSC is set.
12211 * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h,
12212 sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h
12213 sysdeps/unix/sysv/linux/powerpc/syscall.S (ABORT_TRANSACTION): Remove
12214 usage.
12215 * sysdeps/unix/sysv/linux/powerpc/not-errno.h: Remove file.
12216
12217 2018-09-21 Rafał Lużyński <digitalfreak@lingonborough.com>
12218
12219 [BZ #10425]
12220 * localedata/locales/it_IT (d_t_fmt): Use "%a %-d %b %Y, %T".
12221 (date_fmt): Use "%a %-d %b %Y, %T, %Z".
12222 * localedata/locales/it_CH (d_t_fmt): Use "%a %-d %b %Y, %T"
12223 which is the same as in it_IT.
12224 (d_fmt): Use "%d.%m.%Y" which is the same as in de_CH.
12225 (date_fmt): Use "%a %-d %b %Y, %T, %Z" which is the same as in it_IT.
12226
12227 2018-09-20 Joseph Myers <joseph@codesourcery.com>
12228
12229 * include/math.h [!_ISOMAC && !(__FINITE_MATH_ONLY__ &&
12230 __FINITE_MATH_ONLY__ > 0) && !NO_MATH_REDIRECT] (trunc): Redirect
12231 using MATH_REDIRECT.
12232 * sysdeps/aarch64/fpu/s_trunc.c: Define NO_MATH_REDIRECT before
12233 header inclusion.
12234 * sysdeps/aarch64/fpu/s_truncf.c: Likewise.
12235 * sysdeps/ieee754/dbl-64/wordsize-64/s_trunc.c: Likewise.
12236 * sysdeps/ieee754/float128/s_truncf128.c: Likewise.
12237 * sysdeps/ieee754/dbl-64/s_trunc.c: Likewise.
12238 * sysdeps/ieee754/flt-32/s_truncf.c: Likewise.
12239 * sysdeps/ieee754/ldbl-128/s_truncl.c: Likewise.
12240 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_trunc.c: Likewise.
12241 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_truncf.c: Likewise.
12242 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_trunc.c: Likewise.
12243 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_truncf.c: Likewise.
12244 * sysdeps/riscv/rv64/rvd/s_trunc.c: Likewise.
12245 * sysdeps/riscv/rvf/s_truncf.c: Likewise.
12246 * sysdeps/sparc/sparc64/fpu/multiarch/s_trunc.c: Likewise.
12247 * sysdeps/sparc/sparc64/fpu/multiarch/s_truncf.c: Likewise.
12248 * sysdeps/x86_64/fpu/multiarch/s_trunc.c: Likewise.
12249 * sysdeps/x86_64/fpu/multiarch/s_truncf.c: Likewise.
12250 * sysdeps/m68k/m680x0/fpu/s_trunc_template.c: Likewise.
12251 * sysdeps/ieee754/ldbl-128ibm/s_truncl.c: Likewise.
12252 (ceil): Redirect to __ceil.
12253 (floor): Redirect to __floor.
12254 (trunc): Redirect to __trunc.
12255 (__truncl): Call trunc instead of __trunc.
12256 * sysdeps/powerpc/fpu/math_private.h [_ARCH_PWR5X] (__trunc):
12257 Remove macro.
12258 [_ARCH_PWR5X] (__truncf): Likewise.
12259 * sysdeps/ieee754/dbl-64/e_gamma_r.c (__ieee754_gamma_r): Use
12260 trunc functions instead of __trunc variants.
12261 * sysdeps/ieee754/flt-32/e_gammaf_r.c (__ieee754_gammaf_r):
12262 Likewise.
12263 * sysdeps/ieee754/ldbl-128/e_gammal_r.c (__ieee754_gammal_r):
12264 Likewise.
12265 * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (__ieee754_gammal_r):
12266 Likewise.
12267 * sysdeps/ieee754/ldbl-96/e_gammal_r.c (__ieee754_gammal_r):
12268 Likewise.
12269
12270 * sysdeps/x86/cpu-features.h [__geode__ || __k6__]: Handle like
12271 [__i586__ || __pentium__].
12272 [__i486__]: Handle explicitly.
12273 (HAS_CPUID): Define to 1 if above macros are undefined.
12274 (HAS_I586): Likewise.
12275 (HAS_I686): Likewise.
12276
12277 2018-09-20 Florian Weimer <fweimer@redhat.com>
12278
12279 * misc/tst-gethostid.c: New file.
12280 * misc/Makefile [$(build-shared)] (tests): Add tst-gethostid.
12281 (tst-gethostid): Link with -ldl.
12282
12283 2018-09-20 Mingli Yu <Mingli.Yu@windriver.com>
12284
12285 * sysdeps/unix/sysv/linux/gethostid.c (gethostid): Check for NULL
12286 value from gethostbyname_r.
12287
12288 2018-09-19 Carlos O'Donell <carlos@redhat.com>
12289
12290 * stdlib/tst-setcontext9.c (f1): Rename to...
12291 (f1a): ... this.
12292 (f1b): New function implementing lower half of f1 in alternate stack.
12293
12294 2018-09-19 Paul Eggert <eggert@cs.ucla.edu>
12295
12296 Fix mktime localtime offset confusion
12297 [BZ #23603]
12298 * include/time.h (__mktime_internal): The localtime offset is now
12299 of type long int instead of time_t. This is the longstanding type
12300 in glibc, and it is more than enough to represent difference
12301 between localtime and gmtime even if it is 32 bits and time_t is
12302 64. Changing it now will let us avoid an unnecessary change when
12303 time_t is widened to 64 bits on 32-bit platforms.
12304 * time/mktime-internal.h (mktime_offset_t): Now long int.
12305
12306 Merge mktime, timegm from upstream Gnulib
12307 [BZ #23603][BZ #16346]
12308 This fixes some obscure problems with integer overflow.
12309 Although it looks scary, it is almost all a byte-for-byte copy
12310 from Gnulib, and the Gnulib code has been tested reasonably well.
12311 * include/intprops.h: New file, copied from Gnulib.
12312 * include/verify.h, time/mktime-internal.h:
12313 New tiny files, simplified from Gnulib.
12314 * time/mktime.c: Copy from Gnulib. This has the following changes:
12315 Do not include config.h if DEBUG_MKTIME is nonzero.
12316 Include stdbool.h, intprops.h, verify.h.
12317 Include string.h only if needed.
12318 Include stdlib.h on MS-Windows.
12319 Include mktime-internal.h.
12320 (DEBUG_MKTIME): Default to 0, and simplify later uses.
12321 (NEED_MKTIME_INTERNAL, NEED_MKTIME_WINDOWS)
12322 (NEED_MKTIME_WORKING): Give default values to pacify -Wundef,
12323 which glibc uses. Default NEED_MKTIME_WORKING to DEBUG_MKTIME, to
12324 simplify later conditionals; default the others to zero. Use
12325 these conditionals to express only the code needed on the current
12326 platform. In uses of these conditionals, explicitly spell out how
12327 _LIBC affects things, so it’s easier to review from a glibc
12328 viewpoint.
12329 (WRAPV): Remove; no longer needed now that we have
12330 systematic overflow checking.
12331 (my_tzset, __tzset) [!_LIBC]: New function and macro, to better
12332 compartmentalize tzset issues. Move system-dependent tzsettish
12333 code here from mktime.
12334 (verify): Remove; now done by verify.h. All uses changed.
12335 (long_int): Use a more-conservative definition, to avoid
12336 integer overflow.
12337 (SHR): Remove, replacing with ...
12338 (shr): New function, which means we needn’t worry about side
12339 effects in args, and conversion analysis is simpler.
12340 (TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT, TYPE_SIGNED, TYPE_MINIMUM)
12341 (TYPE_MAXIMUM, TIME_T_MIN, TIME_T_MAX, TIME_T_MIDPOINT)
12342 (time_t_avg, time_t_add_ok): Remove.
12343 (mktime_min, mktime_max): New constants.
12344 (leapyear, isdst_differ): Use bool for booleans.
12345 (ydhms_diff, guess_time_tm, ranged_convert, __mktime_internal):
12346 Use long_int, not time_t, for mktime differences.
12347 (long_int_avg): New function, replacing time_t_avg.
12348 INT_ADD_WRAPV replaces time_t_add_ok.
12349 (guess_time_tm): 6th arg is now long_int, not time_t const *.
12350 All uses changed.
12351 (convert_time): New function.
12352 (ranged_convert): Use it.
12353 (__mktime_internal): Last arg now points to mktime_offset_t, not
12354 time_t. All uses changed. This is a no-op on glibc, where
12355 mktime_offset_t is always time_t. Use int, not time_t, for UTC
12356 offset guess. Directly check for integer overflow instead of
12357 using a heuristic that works only 99.9...% of the time.
12358 Access *OFFSET only once, to avoid an unlikely race if the
12359 compiler delays a load and if this cascades into a signed integer
12360 overflow.
12361 (mktime): Move tzsettish code to my_tzset, and move
12362 localtime_offset to within mktime so that it doesn’t
12363 need a separate ifdef.
12364 (main) [DEBUG_MKTIME]: Speed up by using localtime_r
12365 instead of localtime.
12366 * time/timegm.c: Copy from Gnulib. This has the following changes:
12367 Include mktime-internal.h.
12368 [!_LIBC]: Include config.h and time.h. Do not include
12369 timegm.h or time_r.h. Make __mktime_internal a macro,
12370 and include mktime-internal.h to get its declaration.
12371 (timegm): Temporary is now mktime_offset_t, not time_t.
12372 This affects only Gnulib.
12373
12374 2018-09-19 Wilco Dijkstra <wdijkstr@arm.com>
12375
12376 [BZ #23637]
12377 * string/test-strstr.c (pr23637): New function.
12378 (test_main): Add tests with longer needles.
12379 * string/strcasestr.c (AVAILABLE): Fix readahead distance.
12380 * string/strstr.c (AVAILABLE): Likewise.
12381
12382 2018-09-19 Szabolcs Nagy <szabolcs.nagy@arm.com>
12383
12384 * sysdeps/ieee754/flt-32/e_powf.c (checkint): Fix documentation.
12385
12386 2018-09-19 Szabolcs Nagy <szabolcs.nagy@arm.com>
12387
12388 * NEWS: Mention pow improvements.
12389 * math/Makefile (type-double-routines): Add e_pow_log_data.
12390 * sysdeps/generic/math_private.h (__exp1): Remove.
12391 * sysdeps/i386/fpu/e_pow_log_data.c: New file.
12392 * sysdeps/ia64/fpu/e_pow_log_data.c: New file.
12393 * sysdeps/ieee754/dbl-64/Makefile (CFLAGS-e_pow.c): Allow fma
12394 contraction.
12395 * sysdeps/ieee754/dbl-64/e_exp.c (__exp1): Remove.
12396 (exp_inline): Remove.
12397 (__ieee754_exp): Only single double input is handled.
12398 * sysdeps/ieee754/dbl-64/e_pow.c: Rewrite.
12399 * sysdeps/ieee754/dbl-64/e_pow_log_data.c: New file.
12400 * sysdeps/ieee754/dbl-64/math_config.h (issignaling_inline): Define.
12401 (__pow_log_data): Define.
12402 * sysdeps/ieee754/dbl-64/upow.h: Remove.
12403 * sysdeps/ieee754/dbl-64/upow.tbl: Remove.
12404 * sysdeps/m68k/m680x0/fpu/e_pow_log_data.c: New file.
12405 * sysdeps/x86_64/fpu/multiarch/Makefile (CFLAGS-e_pow-fma.c): Allow fma
12406 contraction.
12407 (CFLAGS-e_pow-fma4.c): Likewise.
12408
12409 2018-09-18 Paul Eggert <eggert@cs.ucla.edu>
12410
12411 Simplify tzfile fstat failure code
12412 [BZ #21716]
12413 * time/tzfile.c (__tzfile_read): Simplify slightly.
12414
12415 Fix tzfile low-memory assertion failure
12416 [BZ #21716]
12417 * time/tzfile.c (__tzfile_read): Check for memory exhaustion
12418 when registering time zone abbreviations.
12419
12420 2018-09-18 Joseph Myers <joseph@codesourcery.com>
12421
12422 * sysdeps/unix/sysv/linux/bits/mman.h: New file.
12423 * sysdeps/unix/sysv/linux/aarch64/bits/mman.h: Remove.
12424 * sysdeps/unix/sysv/linux/arm/bits/mman.h: Likewise.
12425 * sysdeps/unix/sysv/linux/m68k/bits/mman.h: Likewise.
12426 * sysdeps/unix/sysv/linux/microblaze/bits/mman.h: Likewise.
12427 * sysdeps/unix/sysv/linux/nios2/bits/mman.h: Likewise.
12428 * sysdeps/unix/sysv/linux/riscv/bits/mman.h: Likewise.
12429 * sysdeps/unix/sysv/linux/s390/bits/mman.h: Likewise.
12430 * sysdeps/unix/sysv/linux/sh/bits/mman.h: Likewise.
12431
12432 * sysdeps/ieee754/ldbl-128ibm/s_ceill.c (ceil): Redirect to
12433 __ceil.
12434 (__ceill): Call ceil instead of __ceil.
12435 * sysdeps/ieee754/ldbl-128ibm/s_floorl.c (floor): Redirect to
12436 __floor.
12437 (__floorl): Call floor instead of __floor.
12438
12439 2018-09-17 Joseph Myers <joseph@codesourcery.com>
12440
12441 * include/math.h [!_ISOMAC && !(__FINITE_MATH_ONLY__ &&
12442 __FINITE_MATH_ONLY__ > 0) && !NO_MATH_REDIRECT] (ceil): Redirect
12443 using MATH_REDIRECT.
12444 * sysdeps/aarch64/fpu/s_ceil.c: Define NO_MATH_REDIRECT before
12445 header inclusion.
12446 * sysdeps/aarch64/fpu/s_ceilf.c: Likewise.
12447 * sysdeps/ieee754/dbl-64/s_ceil.c: Likewise.
12448 * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Likewise.
12449 * sysdeps/ieee754/float128/s_ceilf128.c: Likewise.
12450 * sysdeps/ieee754/flt-32/s_ceilf.c: Likewise.
12451 * sysdeps/ieee754/ldbl-128/s_ceill.c: Likewise.
12452 * sysdeps/ieee754/ldbl-128ibm/s_ceill.c: Likewise.
12453 * sysdeps/m68k/m680x0/fpu/s_ceil_template.c: Likewise.
12454 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceil.c: Likewise.
12455 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceilf.c: Likewise.
12456 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceil.c: Likewise.
12457 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceilf.c: Likewise.
12458 * sysdeps/riscv/rv64/rvd/s_ceil.c: Likewise.
12459 * sysdeps/riscv/rvf/s_ceilf.c: Likewise.
12460 * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.c: Likewise.
12461 * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.c: Likewise.
12462 * sysdeps/x86_64/fpu/multiarch/s_ceil.c: Likewise.
12463 * sysdeps/x86_64/fpu/multiarch/s_ceilf.c: Likewise.
12464 * sysdeps/powerpc/fpu/math_private.h [_ARCH_PWR5X] (__ceil):
12465 Remove macro.
12466 * sysdeps/ieee754/dbl-64/e_gamma_r.c (gamma_positive): Use ceil
12467 functions instead of __ceil variants.
12468 * sysdeps/ieee754/flt-32/e_gammaf_r.c (gammaf_positive): Likewise.
12469 * sysdeps/ieee754/ldbl-128/e_gammal_r.c (gammal_positive):
12470 Likewise.
12471 * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (gammal_positive):
12472 Likewise.
12473 * sysdeps/ieee754/ldbl-128ibm/s_truncl.c (__truncl): Likewise.
12474 * sysdeps/ieee754/ldbl-96/e_gammal_r.c (gammal_positive):
12475 Likewise.
12476 * sysdeps/powerpc/power5+/fpu/s_modf.c (__modf): Likewise.
12477 * sysdeps/powerpc/power5+/fpu/s_modff.c (__modff): Likewise.
12478
12479 [BZ #21286]
12480 * sysdeps/unix/sysv/linux/bits/siginfo-consts.h (SI_DETHREAD): New
12481 constant.
12482 [__USE_XOPEN_EXTENDED || __USE_XOPEN2K8] (ILL_BADIADDR): Likewise.
12483 [__USE_XOPEN_EXTENDED || __USE_XOPEN2K8] (FPE_FLTUNK): Likewise.
12484 [__USE_XOPEN_EXTENDED || __USE_XOPEN2K8] (FPE_CONDTRAP): Likewise.
12485 [__USE_XOPEN_EXTENDED || __USE_XOPEN2K8] (SEGV_ACCADI): Likewise.
12486 [__USE_XOPEN_EXTENDED || __USE_XOPEN2K8] (SEGV_ADIDERR): Likewise.
12487 [__USE_XOPEN_EXTENDED || __USE_XOPEN2K8] (SEGV_ADIPERR): Likewise.
12488 [__USE_XOPEN_EXTENDED] (TRAP_BRANCH): Likewise.
12489 [__USE_XOPEN_EXTENDED] (TRAP_HWBKPT): Likewise.
12490 [__USE_XOPEN_EXTENDED] (TRAP_UNK): Likweise.
12491 * sysdeps/unix/sysv/linux/ia64/bits/siginfo-consts-arch.h
12492 (ILL_BADIADDR): Remove constant.
12493 (TRAP_BRANCH): Likewise.
12494 (TRAP_HWBKPT): Likewise.
12495
12496 2018-09-14 Joseph Myers <joseph@codesourcery.com>
12497
12498 [BZ #23656]
12499 * sysdeps/unix/sysv/linux/mips/sys/procfs.h (struct elf_prstatus):
12500 Remove [_MIPS_SIM = _ABIN32] conditional case.
12501 (struct elf_prpsinfo): Likewise.
12502
12503 [BZ #23649]
12504 * sysdeps/unix/sysv/linux/microblaze/sys/procfs.h (struct
12505 elf_prpsinfo): Use unsigned int for pr_uid and pr_gid.
12506 * sysdeps/unix/sysv/linux/mips/sys/procfs.h (struct elf_prpsinfo):
12507 Likewise.
12508 * sysdeps/unix/sysv/linux/nios2/sys/procfs.h (struct
12509 elf_prpsinfo): Likewise.
12510 * sysdeps/unix/sysv/linux/riscv/sys/procfs.h (struct
12511 elf_prpsinfo): Likewise.
12512 * sysdeps/unix/sysv/linux/sys/procfs.h (struct elf_prpsinfo):
12513 Likewise.
12514
12515 * include/math.h [!_ISOMAC && !(__FINITE_MATH_ONLY__ &&
12516 __FINITE_MATH_ONLY__ > 0) && !NO_MATH_REDIRECT] (rint): Redirect
12517 using MATH_REDIRECT.
12518 * sysdeps/aarch64/fpu/s_rint.c: Define NO_MATH_REDIRECT before
12519 header inclusion.
12520 * sysdeps/aarch64/fpu/s_rintf.c: Likewise.
12521 * sysdeps/alpha/fpu/s_rint.c: Likewise.
12522 * sysdeps/alpha/fpu/s_rintf.c: Likewise.
12523 * sysdeps/i386/fpu/s_rintl.c: Likewise.
12524 * sysdeps/ieee754/dbl-64/s_rint.c: Likewise.
12525 * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c: Likewise.
12526 * sysdeps/ieee754/float128/s_rintf128.c: Likewise.
12527 * sysdeps/ieee754/flt-32/s_rintf.c: Likewise.
12528 * sysdeps/ieee754/ldbl-128/s_rintl.c: Likewise.
12529 * sysdeps/ieee754/ldbl-128ibm/s_rintl.c: Likewise.
12530 * sysdeps/m68k/coldfire/fpu/s_rint.c: Likewise.
12531 * sysdeps/m68k/coldfire/fpu/s_rintf.c: Likewise.
12532 * sysdeps/m68k/m680x0/fpu/s_rint.c: Likewise.
12533 * sysdeps/m68k/m680x0/fpu/s_rintf.c: Likewise.
12534 * sysdeps/m68k/m680x0/fpu/s_rintl.c: Likewise.
12535 * sysdeps/powerpc/fpu/s_rint.c: Likewise.
12536 * sysdeps/powerpc/fpu/s_rintf.c: Likewise.
12537 * sysdeps/riscv/rv64/rvd/s_rint.c: Likewise.
12538 * sysdeps/riscv/rvf/s_rintf.c: Likewise.
12539 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.c: Likewise.
12540 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf.c: Likewise.
12541 * sysdeps/sparc/sparc64/fpu/multiarch/s_rint.c: Likewise.
12542 * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf.c: Likewise.
12543 * sysdeps/x86_64/fpu/multiarch/s_rint.c: Likewise.
12544 * sysdeps/x86_64/fpu/multiarch/s_rintf.c: Likewise.
12545 * sysdeps/x86_64/fpu/math_private.h: Remove file.
12546 * math/e_scalb.c (invalid_fn): Use rint functions instead of
12547 __rint variants.
12548 * math/e_scalbf.c (invalid_fn): Likewise.
12549 * math/e_scalbl.c (invalid_fn): Likewise.
12550 * sysdeps/ieee754/dbl-64/e_gamma_r.c (__ieee754_gamma_r):
12551 Likewise.
12552 * sysdeps/ieee754/flt-32/e_gammaf_r.c (__ieee754_gammaf_r):
12553 Likewise.
12554 * sysdeps/ieee754/k_standard.c (__kernel_standard): Likewise.
12555 * sysdeps/ieee754/k_standardl.c (__kernel_standard_l): Likewise.
12556 * sysdeps/ieee754/ldbl-128/e_gammal_r.c (__ieee754_gammal_r):
12557 Likewise.
12558 * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (__ieee754_gammal_r):
12559 Likewise.
12560 * sysdeps/ieee754/ldbl-96/e_gammal_r.c (__ieee754_gammal_r):
12561 Likewise.
12562 * sysdeps/powerpc/powerpc32/fpu/s_llrint.c (__llrint): Likewise.
12563 * sysdeps/powerpc/powerpc32/fpu/s_llrintf.c (__llrintf): Likewise.
12564
12565 * include/math.h [!_ISOMAC && !(__FINITE_MATH_ONLY__ &&
12566 __FINITE_MATH_ONLY__ > 0) && !NO_MATH_REDIRECT] (MATH_REDIRECT):
12567 New macro.
12568 [!_ISOMAC && !(__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0)
12569 && !NO_MATH_REDIRECT] (MATH_REDIRECT_LDBL): Likewise.
12570 [!_ISOMAC && !(__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0)
12571 && !NO_MATH_REDIRECT] (MATH_REDIRECT_F128): Likewise.
12572 [!_ISOMAC && !(__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0)
12573 && !NO_MATH_REDIRECT] (MATH_REDIRECT_UNARY_ARGS): Likewise.
12574 [!_ISOMAC && !(__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0)
12575 && !NO_MATH_REDIRECT] (sqrt): Redirect using MATH_REDIRECT.
12576 [!_ISOMAC && !(__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0)
12577 && !NO_MATH_REDIRECT] (floor): Likewise.
12578 * sysdeps/aarch64/fpu/s_floor.c: Define NO_MATH_REDIRECT before
12579 header inclusion.
12580 * sysdeps/aarch64/fpu/s_floorf.c: Likewise.
12581 * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
12582 * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Likewise.
12583 * sysdeps/ieee754/float128/s_floorf128.c: Likewise.
12584 * sysdeps/ieee754/flt-32/s_floorf.c: Likewise.
12585 * sysdeps/ieee754/ldbl-128/s_floorl.c: Likewise.
12586 * sysdeps/ieee754/ldbl-128ibm/s_floorl.c: Likewise.
12587 * sysdeps/m68k/m680x0/fpu/s_floor_template.c: Likewise.
12588 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floor.c: Likewise.
12589 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floorf.c: Likewise.
12590 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floor.c: Likewise.
12591 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floorf.c: Likewise.
12592 * sysdeps/riscv/rv64/rvd/s_floor.c: Likewise.
12593 * sysdeps/riscv/rvf/s_floorf.c: Likewise.
12594 * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.c: Likewise.
12595 * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.c: Likewise.
12596 * sysdeps/x86_64/fpu/multiarch/s_floor.c: Likewise.
12597 * sysdeps/x86_64/fpu/multiarch/s_floorf.c: Likewise.
12598 * sysdeps/powerpc/fpu/math_private.h [_ARCH_PWR5X] (__floor):
12599 Remove macro.
12600 [_ARCH_PWR5X] (__floorf): Likewise.
12601 * sysdeps/x86_64/fpu/math_private.h [__SSE4_1__] (__floor): Remove
12602 inline function.
12603 [__SSE4_1__] (__floorf): Likewise.
12604 * math/w_lgamma_main.c (LGFUNC (__lgamma)): Use floor functions
12605 instead of __floor variants.
12606 * math/w_lgamma_r_compat.c (__lgamma_r): Likewise.
12607 * math/w_lgammaf_main.c (LGFUNC (__lgammaf)): Likewise.
12608 * math/w_lgammaf_r_compat.c (__lgammaf_r): Likewise.
12609 * math/w_lgammal_main.c (LGFUNC (__lgammal)): Likewise.
12610 * math/w_lgammal_r_compat.c (__lgammal_r): Likewise.
12611 * math/w_tgamma_compat.c (__tgamma): Likewise.
12612 * math/w_tgamma_template.c (M_DECL_FUNC (__tgamma)): Likewise.
12613 * math/w_tgammaf_compat.c (__tgammaf): Likewise.
12614 * math/w_tgammal_compat.c (__tgammal): Likewise.
12615 * sysdeps/ieee754/dbl-64/e_lgamma_r.c (sin_pi): Likewise.
12616 * sysdeps/ieee754/dbl-64/k_rem_pio2.c (__kernel_rem_pio2):
12617 Likewise.
12618 * sysdeps/ieee754/dbl-64/lgamma_neg.c (__lgamma_neg): Likewise.
12619 * sysdeps/ieee754/flt-32/e_lgammaf_r.c (sin_pif): Likewise.
12620 * sysdeps/ieee754/flt-32/lgamma_negf.c (__lgamma_negf): Likewise.
12621 * sysdeps/ieee754/ldbl-128/e_lgammal_r.c (__ieee754_lgammal_r):
12622 Likewise.
12623 * sysdeps/ieee754/ldbl-128/e_powl.c (__ieee754_powl): Likewise.
12624 * sysdeps/ieee754/ldbl-128/lgamma_negl.c (__lgamma_negl):
12625 Likewise.
12626 * sysdeps/ieee754/ldbl-128/s_expm1l.c (__expm1l): Likewise.
12627 * sysdeps/ieee754/ldbl-128ibm/e_lgammal_r.c (__ieee754_lgammal_r):
12628 Likewise.
12629 * sysdeps/ieee754/ldbl-128ibm/e_powl.c (__ieee754_powl): Likewise.
12630 * sysdeps/ieee754/ldbl-128ibm/lgamma_negl.c (__lgamma_negl):
12631 Likewise.
12632 * sysdeps/ieee754/ldbl-128ibm/s_expm1l.c (__expm1l): Likewise.
12633 * sysdeps/ieee754/ldbl-128ibm/s_truncl.c (__truncl): Likewise.
12634 * sysdeps/ieee754/ldbl-96/e_lgammal_r.c (sin_pi): Likewise.
12635 * sysdeps/ieee754/ldbl-96/lgamma_negl.c (__lgamma_negl): Likewise.
12636 * sysdeps/powerpc/power5+/fpu/s_modf.c (__modf): Likewise.
12637 * sysdeps/powerpc/power5+/fpu/s_modff.c (__modff): Likewise.
12638
12639 2018-09-12 Joseph Myers <joseph@codesourcery.com>
12640
12641 * elf/Makefile (modules-names-tests): New variable.
12642
12643 2018-09-12 Szabolcs Nagy <szabolcs.nagy@arm.com>
12644
12645 * NEWS: Mention log2 improvements.
12646 * math/Makefile (type-double-routines): Add e_log2_data.
12647 * sysdeps/i386/fpu/e_log2_data.c: New file.
12648 * sysdeps/ia64/fpu/e_log2_data.c: New file.
12649 * sysdeps/ieee754/dbl-64/e_log2.c: Rewrite.
12650 * sysdeps/ieee754/dbl-64/e_log2_data.c: New file.
12651 * sysdeps/ieee754/dbl-64/math_config.h (__log2_data): Add.
12652 * sysdeps/ieee754/dbl-64/wordsize-64/e_log2.c: Remove.
12653 * sysdeps/m68k/m680x0/fpu/e_log2_data.c: New file.
12654
12655 2018-09-12 Szabolcs Nagy <szabolcs.nagy@arm.com>
12656
12657 * NEWS: Mention log improvement.
12658 * math/Makefile (type-double-routines): Add e_log_data.
12659 * sysdeps/i386/fpu/e_log_data.c: New file.
12660 * sysdeps/ia64/fpu/e_log_data.c: New file.
12661 * sysdeps/ieee754/dbl-64/e_log.c: Rewrite.
12662 * sysdeps/ieee754/dbl-64/e_log_data.c: New file.
12663 * sysdeps/ieee754/dbl-64/math_config.h (__log_data): Add.
12664 * sysdeps/ieee754/dbl-64/ulog.h: Remove.
12665 * sysdeps/ieee754/dbl-64/ulog.tbl: Remove.
12666 * sysdeps/m68k/m680x0/fpu/e_log_data.c: New file.
12667
12668 2018-09-12 H.J. Lu <hongjiu.lu@intel.com>
12669 Xuepeng Guo <xuepeng.guo@intel.com>
12670
12671 [BZ #23606]
12672 * sysdeps/i386/start.S: Include <sysdep.h>
12673 (_start): Use ENTRY/END to insert ENDBR32 at entry when CET is
12674 enabled. Add cfi_undefined (eip).
12675
12676 2018-09-11 Joseph Myers <joseph@codesourcery.com>
12677
12678 * sysdeps/x86_64/fpu/math_private.h (MOVD): Remove macro.
12679 (MOVQ): Likewise.
12680 (EXTRACT_WORDS64): Likewise.
12681 (INSERT_WORDS64): Likewise.
12682 (GET_FLOAT_WORD): Likewise.
12683 (SET_FLOAT_WORD): Likewise.
12684
12685 * scripts/build-many-glibcs.py (Context.__init__): Add full_gcc
12686 argument.
12687 (Config.build_gcc): Use --disable-libsanitizer for first GCC
12688 build, but not for second build if --full-gcc. Use
12689 --enable-languages=all for second build if --full-gcc.
12690 (get_parser): Add --full-gcc option.
12691 (main): Update call to Context.
12692
12693 2018-09-10 Rafał Lużyński <digitalfreak@lingonborough.com>
12694
12695 [BZ #10797]
12696 * localedata/locales/de_CH (mon_thousands_sep): Use "<U2019>" (Right
12697 Single Quotation Mark).
12698 (thousands_sep): Likewise.
12699 * localedata/locales/it_CH (LC_NUMERIC): Use “copy "de_CH"”.
12700 * localedata/locales/it_IT (thousands_sep): Use ".".
12701 (grouping): Use "3;3".
12702
12703 2018-09-10 Joseph Myers <joseph@codesourcery.com>
12704
12705 * scripts/build-many-glibcs.py (Context.add_all_configs): Add
12706 x86_64 and i686 configs using --enable-obsolete-rpc
12707 --enable-obsolete-nsl.
12708
12709 2018-09-06 Stefan Liebler <stli@linux.ibm.com>
12710
12711 * sysdeps/s390/fpu/libm-test-ulps: Regenerated.
12712
12713 2018-09-06 Stefan Liebler <stli@linux.ibm.com>
12714
12715 * sysdeps/unix/sysv/linux/spawni.c (maybe_script_execute):
12716 Increment size of new_argv by one.
12717
12718 2018-09-05 Rafał Lużyński <digitalfreak@lingonborough.com>
12719
12720 [BZ #17426]
12721 * localedata/locales/anp_IN (d_fmt): Use "%-d//%-m//%y".
12722 * localedata/locales/ar_IN (d_fmt): Likewise.
12723 * localedata/locales/bhb_IN (d_fmt): Likewise.
12724 * localedata/locales/bho_IN (d_fmt): Likewise.
12725 * localedata/locales/bn_BD (d_fmt): Likewise.
12726 * localedata/locales/bn_IN (d_fmt): Likewise.
12727 * localedata/locales/doi_IN (d_fmt): Likewise.
12728 * localedata/locales/gu_IN (d_fmt): Likewise.
12729 * localedata/locales/hi_IN (d_fmt): Likewise.
12730 * localedata/locales/hne_IN (d_fmt): Likewise.
12731 * localedata/locales/kn_IN (d_fmt): Likewise.
12732 * localedata/locales/mag_IN (d_fmt): Likewise.
12733 * localedata/locales/mai_IN (d_fmt): Likewise.
12734 * localedata/locales/mjw_IN (d_fmt): Likewise.
12735 * localedata/locales/ml_IN (d_fmt): Likewise.
12736 * localedata/locales/mni_IN (d_fmt): Likewise.
12737 * localedata/locales/mr_IN (d_fmt): Likewise.
12738 * localedata/locales/pa_IN (d_fmt): Likewise.
12739 * localedata/locales/raj_IN (d_fmt): Likewise.
12740 * localedata/locales/sat_IN (d_fmt): Likewise.
12741 * localedata/locales/sd_IN (d_fmt): Likewise.
12742 * localedata/locales/sd_IN@devanagari (d_fmt): Likewise.
12743 * localedata/locales/ta_IN (d_fmt): Likewise.
12744 * localedata/locales/ta_LK (d_fmt): Likewise.
12745 * localedata/locales/tcy_IN (d_fmt): Likewise.
12746 * localedata/locales/ur_IN (d_fmt): Likewise.
12747
12748 * localedata/locales/brx_IN (d_fmt): Use "%-m//%-d//%y".
12749 * localedata/locales/ks_IN (d_fmt): Likewise.
12750 * localedata/locales/ks_IN@devanagari (d_fmt): Likewise.
12751
12752 * localedata/locales/kok_IN (d_fmt): Use "%-d-%-m-%y".
12753 * localedata/locales/ne_NP (d_fmt): Use "%y//%-m//%-d".
12754 * localedata/locales/sa_IN (d_fmt): Use "%-d-%m-%y".
12755 * localedata/locales/te_IN (d_fmt): Use "%d-%m-%y".
12756
12757 2018-09-05 Szabolcs Nagy <szabolcs.nagy@arm.com>
12758
12759 * NEWS: Mention exp and exp2 improvements.
12760 * math/Makefile (libm-support): Remove t_exp.
12761 (type-double-routines): Add math_err and e_exp_data.
12762 * sysdeps/aarch64/libm-test-ulps: Update.
12763 * sysdeps/arm/libm-test-ulps: Update.
12764 * sysdeps/i386/fpu/e_exp_data.c: New file.
12765 * sysdeps/i386/fpu/math_err.c: New file.
12766 * sysdeps/i386/fpu/t_exp.c: Remove.
12767 * sysdeps/ia64/fpu/e_exp_data.c: New file.
12768 * sysdeps/ia64/fpu/math_err.c: New file.
12769 * sysdeps/ia64/fpu/t_exp.c: Remove.
12770 * sysdeps/ieee754/dbl-64/e_exp.c: Rewrite.
12771 * sysdeps/ieee754/dbl-64/e_exp2.c: Rewrite.
12772 * sysdeps/ieee754/dbl-64/e_exp_data.c: New file.
12773 * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Update error bound.
12774 * sysdeps/ieee754/dbl-64/eexp.tbl: Remove.
12775 * sysdeps/ieee754/dbl-64/math_config.h: New file.
12776 * sysdeps/ieee754/dbl-64/math_err.c: New file.
12777 * sysdeps/ieee754/dbl-64/t_exp.c: Remove.
12778 * sysdeps/ieee754/dbl-64/t_exp2.h: Remove.
12779 * sysdeps/ieee754/dbl-64/uexp.h: Remove.
12780 * sysdeps/ieee754/dbl-64/uexp.tbl: Remove.
12781 * sysdeps/m68k/m680x0/fpu/e_exp_data.c: New file.
12782 * sysdeps/m68k/m680x0/fpu/math_err.c: New file.
12783 * sysdeps/m68k/m680x0/fpu/t_exp.c: Remove.
12784 * sysdeps/powerpc/fpu/libm-test-ulps: Update.
12785 * sysdeps/x86_64/fpu/libm-test-ulps: Update.
12786
12787 2018-09-05 Joseph Myers <joseph@codesourcery.com>
12788
12789 * sysdeps/alpha/fpu/math_private.h: Remove.
12790
12791 * sysdeps/generic/math_private.h
12792 [__HAVE_DISTINCT_FLOAT128 && !__GNUC_PREREQ (7, 0)] (__isinff128):
12793 Move this inline function ....
12794 [__HAVE_DISTINCT_FLOAT128] (fabsf128): And this one ....
12795 * include/math.h [!_ISOMAC]: To here....
12796
12797 2018-09-04 Joseph Myers <joseph@codesourcery.com>
12798
12799 * sysdeps/generic/fenv_private.h [FE_ALL_EXCEPT == 0]: Move this
12800 code ....
12801 [!FE_HAVE_ROUNDING_MODES]: And this code ....
12802 * include/fenv.h [!_ISOMAC]: ... to here.
12803 * math/fraiseexcpt.c (__feraiseexcept): Undefine as macro.
12804 (feraiseexcept): Likewise.
12805 * math/fromfp.h: Do not include <fenv_private.h>.
12806 * math/s_cexp_template.c: Likewise.
12807 * math/s_csin_template.c: Likewise.
12808 * math/s_csinh_template.c: Likewise.
12809 * math/s_ctan_template.c: Likewise.
12810 * math/s_ctanh_template.c: Likewise.
12811 * math/s_iseqsig_template.c: Likewise.
12812 * math/w_acos_compat.c: Likewise.
12813 * math/w_acosf_compat.c: Likewise.
12814 * math/w_acosl_compat.c: Likewise.
12815 * math/w_asin_compat.c: Likewise.
12816 * math/w_asinf_compat.c: Likewise.
12817 * math/w_asinl_compat.c: Likewise.
12818 * math/w_j0_compat.c: Likewise.
12819 * math/w_j0f_compat.c: Likewise.
12820 * math/w_j0l_compat.c: Likewise.
12821 * math/w_j1_compat.c: Likewise.
12822 * math/w_j1f_compat.c: Likewise.
12823 * math/w_j1l_compat.c: Likewise.
12824 * math/w_jn_compat.c: Likewise.
12825 * math/w_jnf_compat.c: Likewise.
12826 * math/w_log10_compat.c: Likewise.
12827 * math/w_log10f_compat.c: Likewise.
12828 * math/w_log10l_compat.c: Likewise.
12829 * math/w_log2_compat.c: Likewise.
12830 * math/w_log2f_compat.c: Likewise.
12831 * math/w_log2l_compat.c: Likewise.
12832 * math/w_log_compat.c: Likewise.
12833 * math/w_logf_compat.c: Likewise.
12834 * math/w_logl_compat.c: Likewise.
12835 * sysdeps/ieee754/dbl-64/s_llrint.c: Likewise.
12836 * sysdeps/ieee754/dbl-64/s_llround.c: Likewise.
12837 * sysdeps/ieee754/dbl-64/s_lrint.c: Likewise.
12838 * sysdeps/ieee754/dbl-64/s_lround.c: Likewise.
12839 * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Likewise.
12840 * sysdeps/ieee754/flt-32/s_llrintf.c: Likewise.
12841 * sysdeps/ieee754/flt-32/s_llroundf.c: Likewise.
12842 * sysdeps/ieee754/flt-32/s_lrintf.c: Likewise.
12843 * sysdeps/ieee754/flt-32/s_lroundf.c: Likewise.
12844 * sysdeps/ieee754/k_standardl.c: Likewise.
12845 * sysdeps/ieee754/ldbl-128/e_expl.c: Likewise.
12846 * sysdeps/ieee754/ldbl-128/s_fmal.c: Likewise.
12847 * sysdeps/ieee754/ldbl-128/s_llrintl.c: Likewise.
12848 * sysdeps/ieee754/ldbl-128/s_llroundl.c: Likewise.
12849 * sysdeps/ieee754/ldbl-128/s_lrintl.c: Likewise.
12850 * sysdeps/ieee754/ldbl-128/s_lroundl.c: Likewise.
12851 * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Likewise.
12852 * sysdeps/ieee754/ldbl-128ibm/s_llrintl.c: Likewise.
12853 * sysdeps/ieee754/ldbl-128ibm/s_llroundl.c: Likewise.
12854 * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c: Likewise.
12855 * sysdeps/ieee754/ldbl-128ibm/s_lroundl.c: Likewise.
12856 * sysdeps/ieee754/ldbl-96/s_fma.c: Likewise.
12857 * sysdeps/ieee754/ldbl-96/s_fmal.c: Likewise.
12858 * sysdeps/ieee754/ldbl-96/s_llrintl.c: Likewise.
12859 * sysdeps/ieee754/ldbl-96/s_llroundl.c: Likewise.
12860 * sysdeps/ieee754/ldbl-96/s_lrintl.c: Likewise.
12861 * sysdeps/ieee754/ldbl-96/s_lroundl.c: Likewise.
12862 * math/w_ilogb_template.c: Include <fenv.h> instead of
12863 <fenv_private.h>.
12864 * math/w_llogb_template.c: Likewise.
12865 * sysdeps/powerpc/fpu/e_sqrt.c: Likewise.
12866 * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
12867
12868 2018-09-03 Joseph Myers <joseph@codesourcery.com>
12869
12870 * sysdeps/generic/math_private.h: Do not include <fenv_private.h>.
12871 * math/fromfp.h: Include <fenv_private.h>.
12872 * math/math-narrow.h: Likewise.
12873 * math/s_cexp_template.c: Likewise.
12874 * math/s_csin_template.c: Likewise.
12875 * math/s_csinh_template.c: Likewise.
12876 * math/s_ctan_template.c: Likewise.
12877 * math/s_ctanh_template.c: Likewise.
12878 * math/s_iseqsig_template.c: Likewise.
12879 * math/w_acos_compat.c: Likewise.
12880 * math/w_acosf_compat.c: Likewise.
12881 * math/w_acosl_compat.c: Likewise.
12882 * math/w_asin_compat.c: Likewise.
12883 * math/w_asinf_compat.c: Likewise.
12884 * math/w_asinl_compat.c: Likewise.
12885 * math/w_ilogb_template.c: Likewise.
12886 * math/w_j0_compat.c: Likewise.
12887 * math/w_j0f_compat.c: Likewise.
12888 * math/w_j0l_compat.c: Likewise.
12889 * math/w_j1_compat.c: Likewise.
12890 * math/w_j1f_compat.c: Likewise.
12891 * math/w_j1l_compat.c: Likewise.
12892 * math/w_jn_compat.c: Likewise.
12893 * math/w_jnf_compat.c: Likewise.
12894 * math/w_llogb_template.c: Likewise.
12895 * math/w_log10_compat.c: Likewise.
12896 * math/w_log10f_compat.c: Likewise.
12897 * math/w_log10l_compat.c: Likewise.
12898 * math/w_log2_compat.c: Likewise.
12899 * math/w_log2f_compat.c: Likewise.
12900 * math/w_log2l_compat.c: Likewise.
12901 * math/w_log_compat.c: Likewise.
12902 * math/w_logf_compat.c: Likewise.
12903 * math/w_logl_compat.c: Likewise.
12904 * sysdeps/aarch64/fpu/feholdexcpt.c: Likewise.
12905 * sysdeps/aarch64/fpu/fesetround.c: Likewise.
12906 * sysdeps/aarch64/fpu/fgetexcptflg.c: Likewise.
12907 * sysdeps/aarch64/fpu/ftestexcept.c: Likewise.
12908 * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
12909 * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
12910 * sysdeps/ieee754/dbl-64/e_exp2.c: Likewise.
12911 * sysdeps/ieee754/dbl-64/e_gamma_r.c: Likewise.
12912 * sysdeps/ieee754/dbl-64/e_jn.c: Likewise.
12913 * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
12914 * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
12915 * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
12916 * sysdeps/ieee754/dbl-64/gamma_product.c: Likewise.
12917 * sysdeps/ieee754/dbl-64/lgamma_neg.c: Likewise.
12918 * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
12919 * sysdeps/ieee754/dbl-64/s_fma.c: Likewise.
12920 * sysdeps/ieee754/dbl-64/s_fmaf.c: Likewise.
12921 * sysdeps/ieee754/dbl-64/s_llrint.c: Likewise.
12922 * sysdeps/ieee754/dbl-64/s_llround.c: Likewise.
12923 * sysdeps/ieee754/dbl-64/s_lrint.c: Likewise.
12924 * sysdeps/ieee754/dbl-64/s_lround.c: Likewise.
12925 * sysdeps/ieee754/dbl-64/s_nearbyint.c: Likewise.
12926 * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
12927 * sysdeps/ieee754/dbl-64/s_sincos.c: Likewise.
12928 * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
12929 * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Likewise.
12930 * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c: Likewise.
12931 * sysdeps/ieee754/dbl-64/x2y2m1.c: Likewise.
12932 * sysdeps/ieee754/float128/float128_private.h: Likewise.
12933 * sysdeps/ieee754/flt-32/e_gammaf_r.c: Likewise.
12934 * sysdeps/ieee754/flt-32/e_j1f.c: Likewise.
12935 * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
12936 * sysdeps/ieee754/flt-32/lgamma_negf.c: Likewise.
12937 * sysdeps/ieee754/flt-32/s_llrintf.c: Likewise.
12938 * sysdeps/ieee754/flt-32/s_llroundf.c: Likewise.
12939 * sysdeps/ieee754/flt-32/s_lrintf.c: Likewise.
12940 * sysdeps/ieee754/flt-32/s_lroundf.c: Likewise.
12941 * sysdeps/ieee754/flt-32/s_nearbyintf.c: Likewise.
12942 * sysdeps/ieee754/k_standardl.c: Likewise.
12943 * sysdeps/ieee754/ldbl-128/e_expl.c: Likewise.
12944 * sysdeps/ieee754/ldbl-128/e_gammal_r.c: Likewise.
12945 * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
12946 * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
12947 * sysdeps/ieee754/ldbl-128/gamma_productl.c: Likewise.
12948 * sysdeps/ieee754/ldbl-128/lgamma_negl.c: Likewise.
12949 * sysdeps/ieee754/ldbl-128/s_fmal.c: Likewise.
12950 * sysdeps/ieee754/ldbl-128/s_llrintl.c: Likewise.
12951 * sysdeps/ieee754/ldbl-128/s_llroundl.c: Likewise.
12952 * sysdeps/ieee754/ldbl-128/s_lrintl.c: Likewise.
12953 * sysdeps/ieee754/ldbl-128/s_lroundl.c: Likewise.
12954 * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Likewise.
12955 * sysdeps/ieee754/ldbl-128/x2y2m1l.c: Likewise.
12956 * sysdeps/ieee754/ldbl-128ibm/e_expl.c: Likewise.
12957 * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c: Likewise.
12958 * sysdeps/ieee754/ldbl-128ibm/e_j1l.c: Likewise.
12959 * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
12960 * sysdeps/ieee754/ldbl-128ibm/lgamma_negl.c: Likewise.
12961 * sysdeps/ieee754/ldbl-128ibm/s_fmal.c: Likewise.
12962 * sysdeps/ieee754/ldbl-128ibm/s_llrintl.c: Likewise.
12963 * sysdeps/ieee754/ldbl-128ibm/s_llroundl.c: Likewise.
12964 * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c: Likewise.
12965 * sysdeps/ieee754/ldbl-128ibm/s_lroundl.c: Likewise.
12966 * sysdeps/ieee754/ldbl-128ibm/s_rintl.c: Likewise.
12967 * sysdeps/ieee754/ldbl-128ibm/x2y2m1l.c: Likewise.
12968 * sysdeps/ieee754/ldbl-96/e_gammal_r.c: Likewise.
12969 * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
12970 * sysdeps/ieee754/ldbl-96/gamma_productl.c: Likewise.
12971 * sysdeps/ieee754/ldbl-96/lgamma_negl.c: Likewise.
12972 * sysdeps/ieee754/ldbl-96/s_fma.c: Likewise.
12973 * sysdeps/ieee754/ldbl-96/s_fmal.c: Likewise.
12974 * sysdeps/ieee754/ldbl-96/s_llrintl.c: Likewise.
12975 * sysdeps/ieee754/ldbl-96/s_llroundl.c: Likewise.
12976 * sysdeps/ieee754/ldbl-96/s_lrintl.c: Likewise.
12977 * sysdeps/ieee754/ldbl-96/s_lroundl.c: Likewise.
12978 * sysdeps/ieee754/ldbl-96/x2y2m1l.c: Likewise.
12979 * sysdeps/powerpc/fpu/e_sqrt.c: Likewise.
12980 * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
12981 * sysdeps/riscv/rv64/rvd/s_ceil.c: Likewise.
12982 * sysdeps/riscv/rv64/rvd/s_floor.c: Likewise.
12983 * sysdeps/riscv/rv64/rvd/s_nearbyint.c: Likewise.
12984 * sysdeps/riscv/rv64/rvd/s_round.c: Likewise.
12985 * sysdeps/riscv/rv64/rvd/s_roundeven.c: Likewise.
12986 * sysdeps/riscv/rv64/rvd/s_trunc.c: Likewise.
12987 * sysdeps/riscv/rvd/s_finite.c: Likewise.
12988 * sysdeps/riscv/rvd/s_fmax.c: Likewise.
12989 * sysdeps/riscv/rvd/s_fmin.c: Likewise.
12990 * sysdeps/riscv/rvd/s_fpclassify.c: Likewise.
12991 * sysdeps/riscv/rvd/s_isinf.c: Likewise.
12992 * sysdeps/riscv/rvd/s_isnan.c: Likewise.
12993 * sysdeps/riscv/rvd/s_issignaling.c: Likewise.
12994 * sysdeps/riscv/rvf/fegetround.c: Likewise.
12995 * sysdeps/riscv/rvf/feholdexcpt.c: Likewise.
12996 * sysdeps/riscv/rvf/fesetenv.c: Likewise.
12997 * sysdeps/riscv/rvf/fesetround.c: Likewise.
12998 * sysdeps/riscv/rvf/feupdateenv.c: Likewise.
12999 * sysdeps/riscv/rvf/fgetexcptflg.c: Likewise.
13000 * sysdeps/riscv/rvf/ftestexcept.c: Likewise.
13001 * sysdeps/riscv/rvf/s_ceilf.c: Likewise.
13002 * sysdeps/riscv/rvf/s_finitef.c: Likewise.
13003 * sysdeps/riscv/rvf/s_floorf.c: Likewise.
13004 * sysdeps/riscv/rvf/s_fmaxf.c: Likewise.
13005 * sysdeps/riscv/rvf/s_fminf.c: Likewise.
13006 * sysdeps/riscv/rvf/s_fpclassifyf.c: Likewise.
13007 * sysdeps/riscv/rvf/s_isinff.c: Likewise.
13008 * sysdeps/riscv/rvf/s_isnanf.c: Likewise.
13009 * sysdeps/riscv/rvf/s_issignalingf.c: Likewise.
13010 * sysdeps/riscv/rvf/s_nearbyintf.c: Likewise.
13011 * sysdeps/riscv/rvf/s_roundevenf.c: Likewise.
13012 * sysdeps/riscv/rvf/s_roundf.c: Likewise.
13013 * sysdeps/riscv/rvf/s_truncf.c: Likewise.
13014
13015 2018-08-31 Paul Pluzhnikov <ppluzhnikov@google.com>
13016
13017 [BZ #20271]
13018 * include/stdio.h (__libc_fatal): Mention newline in comment.
13019 * grp/initgroups.c (internal_getgrouplist): Add missing newline.
13020 * nptl/pthread_cond_wait.c (__pthread_cond_wait_common): Likewise.
13021 * nscd/initgrcache.c (addinitgroupsX): Likewise.
13022 * nss/nsswitch.c (__nss_next2): Likewise.
13023 * sysdeps/aarch64/dl-irel.h (elf_irela): Likewise.
13024 * sysdeps/arm/dl-irel.h (elf_irel): Likewise.
13025 * sysdeps/generic/unwind-dw2.c (execute_cfa_program): Likewise.
13026 * sysdeps/i386/dl-irel.h (elf_irel): Likewise.
13027 * sysdeps/powerpc/powerpc32/dl-irel.h (elf_irel): Likewise.
13028 * sysdeps/powerpc/powerpc64/dl-irel.h (elf_irel): Likewise.
13029 * sysdeps/s390/dl-irel.h (elf_irel): Likewise.
13030 * sysdeps/sparc/sparc32/dl-irel.h (elf_irel): Likewise.
13031 * sysdeps/sparc/sparc64/dl-irel.h (elf_irel): Likewise.
13032 * sysdeps/x86_64/dl-irel.h (elf_irel): Likewise.
13033 * sysdeps/nptl/futex-internal.h (futex_wake): Likewise.
13034 * sysdeps/unix/sysv/linux/netlink_assert_response.c
13035 (__netlink_assert_response): Likewise.
13036
13037 2018-08-31 Joseph Myers <joseph@codesourcery.com>
13038
13039 * conform/glibcconform.py: New file.
13040 * conform/list-header-symbols.py: Likewise.
13041 * conform/list-header-symbols.pl: Remove.
13042 * conform/Makefile (tests-special): Only add linknamespace tests
13043 if [PYTHON].
13044 ($(linknamespace-symlists-tests)): Use list-header-symbols.py.
13045
13046 2018-08-31 H.J. Lu <hongjiu.lu@intel.com>
13047
13048 [BZ #23597]
13049 * support/Makefile (libsupport-routines): Add
13050 support_copy_file_range and xcopy_file_range.
13051 * support/support.h: Include <sys/types.h>.
13052 (support_copy_file_range): New prototype.
13053 * support/support_copy_file_range.c: New file. Copied and
13054 modified from io/copy_file_range-compat.c.
13055 * support/test-container.c (copy_one_file): Call xcopy_file_rang
13056 instead of copy_file_range.
13057 * support/xcopy_file_range.c: New file.
13058 * support/xunistd.h (xcopy_file_range): New prototype.
13059
13060 2018-08-30 Carlos O'Donell <carlos@redhat.com>
13061
13062 * elf/tst-dlopen-aout.c: Include support/xthread.h. Use
13063 xpthread_create and xpthread_join.
13064
13065 2018-08-30 Florian Weimer <fweimer@redhat.com>
13066
13067 * stdlib/stdlib.h (reallocarray): Make available under __USE_MISC.
13068
13069 2018-08-30 Stefan Liebler <stli@linux.ibm.com>
13070
13071 * stdlib/test-bz22786.c (do_test): Return EXIT_UNSUPPORTED
13072 if malloc fails.
13073
13074 2018-08-29 Joseph Myers <joseph@codesourcery.com>
13075
13076 * math/gen-libm-test.py (gen_test_args_res): Also treat plus_oflow
13077 and minus_oflow as non-finite.
13078
13079 2018-08-28 Joseph Myers <joseph@codesourcery.com>
13080
13081 * sysdeps/aarch64/fpu/fenv_private.h: New file. Based on ....
13082 * sysdeps/aarch64/fpu/math_private.h: ... this file. All contents
13083 moved to fenv_private.h except for ...
13084 (TOINT_INTRINSICS): Kept in math_private.h.
13085 (roundtoint): Likewise.
13086 (converttoint): Likewise.
13087 * sysdeps/arm/fenv_private.h: Change multiple-include guard to
13088 [ARM_FENV_PRIVATE_H]. Include next <fenv_private.h>.
13089 * sysdeps/arm/math_private.h: Remove.
13090 * sysdeps/generic/fenv_private.h: New file. Contents moved from
13091 ....
13092 * sysdeps/generic/math_private.h: ... this file. Include
13093 <stdbool.h>. Do not include <fenv.h> or <get-rounding-mode.h>.
13094 Include <fenv_private.h>. Remove functions and macros moved to
13095 fenv_private.h.
13096 * sysdeps/i386/fpu/math_private.h: Remove.
13097 * sysdeps/mips/math_private.h: Move to ....
13098 * sysdeps/mips/fpu/fenv_private.h: ... here. Change
13099 multiple-include guard to [MIPS_FENV_PRIVATE_H]. Remove
13100 [__mips_hard_float] conditional. Include next <fenv_private.h>.
13101 * sysdeps/powerpc/fpu/fenv_private.h: Change multiple-include
13102 guard to [POWERPC_FENV_PRIVATE_H]. Include next <fenv_private.h>.
13103 * sysdeps/powerpc/fpu/math_private.h: Do not include
13104 <fenv_private.h>.
13105 * sysdeps/riscv/rvf/math_private.h: Move to ....
13106 * sysdeps/riscv/rvf/fenv_private.h: ... here. Change
13107 multiple-include guard to [RISCV_FENV_PRIVATE_H]. Include next
13108 <fenv_private.h>.
13109 * sysdeps/sparc/fpu/fenv_private.h: Change multiple-include guard
13110 to [SPARC_FENV_PRIVATE_H]. Include next <fenv_private.h>.
13111 * sysdeps/sparc/fpu/math_private.h: Remove.
13112 * sysdeps/i386/fpu/fenv_private.h: Move to ....
13113 * sysdeps/x86/fpu/fenv_private.h: ... here. Change
13114 multiple-include guard to [X86_FENV_PRIVATE_H]. Include next
13115 <fenv_private.h>.
13116 * sysdeps/x86_64/fpu/math_private.h: Do not include
13117 <sysdeps/i386/fpu/fenv_private.h>.
13118
13119 2018-08-28 Florian Weimer <fweimer@redhat.com>
13120
13121 [BZ #23578]
13122 * posix/tst-regcomp-truncated.c: New file.
13123 * posix/Makefile (tests): Add it.
13124 (tst-regcomp-truncated.out): Depend on generated locales.
13125
13126 2018-08-28 Florian Weimer <fweimer@redhat.com>
13127
13128 * support/test-container.c (main): Treat unshare failure with
13129 EPERM as an unsupported test.
13130
13131 2018-08-28 Florian Weimer <fweimer@redhat.com>
13132
13133 [BZ #23520]
13134 nscd: Fix use-after-free in addgetnetgrentX and its callers.
13135 * nscd/netgroupcache.c
13136 (addgetnetgrentX): Add tofreep parameter. Do not free
13137 heap-allocated buffer.
13138 (addinnetgrX): Free buffer allocated bt addgetnetgrentX.
13139 (addgetnetgrentX_ignore): New function.
13140 (addgetnetgrent): Call it.
13141 (readdgetnetgrent): Likewise.
13142
13143 2018-08-28 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
13144
13145 * string/memmem.c: Use memcmp for first match.
13146
13147 2018-08-28 Rafał Lużyński <digitalfreak@lingonborough.com>
13148
13149 [BZ #17426]
13150 * localedata/locales/en_IN (d_fmt): Use "%d/%m/%y".
13151
13152 2018-08-27 DJ Delorie <dj@redhat.com>
13153
13154 * support/Makefile (others): Don't list programs explicitly as a
13155 dependency of "others".
13156
13157 2018-08-27 Joseph Myers <joseph@codesourcery.com>
13158
13159 * sysdeps/generic/math-tests-trap-force.h: New file.
13160 * sysdeps/generic/math-tests.h: Include <math-tests-trap-force.h>.
13161 (EXCEPTION_SET_FORCES_TRAP): Do not define here.
13162 * sysdeps/powerpc/math-tests.h: Remove file.
13163 * sysdeps/powerpc/fpu/math-tests-trap-force.h: New file.
13164
13165 2018-08-27 Martin Kuchta <martin.kuchta@netapp.com>
13166 Torvald Riegel <triegel@redhat.com>
13167
13168 [BZ #23538]
13169 * nptl/pthread_cond_common.c (__condvar_quiesce_and_switch_g1):
13170 Update r to include the set wake-request flag if waiters are
13171 remaining after spinning.
13172
13173 2018-08-27 Joseph Myers <joseph@codesourcery.com>
13174
13175 * sysdeps/gnu/netinet/udp.h (UDP_SEGMENT): New macro.
13176
13177 2018-08-25 Paul Eggert <eggert@cs.ucla.edu>
13178
13179 [BZ #23578]
13180 regex: fix uninitialized memory access
13181 I introduced this bug into gnulib in commit
13182 8335a4d6c7b4448cd0bcb6d0bebf1d456bcfdb17 dated 2006-04-10;
13183 eventually it was merged into glibc. The bug was found by
13184 project-repo <bugs@feusi.co> and reported here:
13185 https://lists.gnu.org/r/sed-devel/2018-08/msg00017.html
13186 Diagnosis and draft fix reported by Assaf Gordon here:
13187 https://lists.gnu.org/r/bug-gnulib/2018-08/msg00071.html
13188 https://lists.gnu.org/r/bug-gnulib/2018-08/msg00142.html
13189 * posix/regex_internal.c (build_wcs_upper_buffer):
13190 Fix bug when mbrtowc returns 0.
13191
13192 2018-08-24 Carlos O'Donell <carlos@redhat.com>
13193
13194 * po/be.po: Update translation.
13195
13196 2018-08-24 DJ Delorie <dj@delorie.com>
13197
13198 * support/Makefile (LDLIBS-links-dso-program): Add -lgcc and
13199 $(libunwind).
13200
13201 2018-08-24 Paul Pluzhnikov <ppluzhnikov@google.com>
13202
13203 [BZ #23400]
13204 * stdlib/test-bz22786.c (do_test): Fix undefined behavior, don't
13205 create temporary files in source tree.
13206
13207 2018-08-24 Joseph Myers <joseph@codesourcery.com>
13208
13209 * sysdeps/generic/math-tests-trap.h: New file.
13210 * sysdeps/generic/math-tests.h: Include <math-tests-trap.h>.
13211 (EXCEPTION_ENABLE_SUPPORTED): Do not define here.
13212 * sysdeps/aarch64/math-tests.h: Remove file.
13213 * sysdeps/arm/math-tests.h: Likewise.
13214 * sysdeps/riscv/math-tests.h: Likewise.
13215 * sysdeps/aarch64/math-tests-trap.h: New file.
13216 * sysdeps/arm/math-tests-trap.h: Likewise.
13217 * sysdeps/riscv/math-tests-trap.h: Likewise.
13218
13219 2018-08-24 Wilco Dijkstra <wdijkstr@arm.com>
13220
13221 * math/Makefile: Remove empty files k_sin(f).c, k_cos(f).c.
13222 Remove unused files e_rem_pio2(f).c, k_rem_pio2f.c.
13223 * sysdeps/i386/fpu/e_rem_pio2.c: Delete file.
13224 * sysdeps/ia64/fpu/e_rem_pio2.c: Likewise.
13225 * sysdeps/ia64/fpu/e_rem_pio2f.c: Likewise.
13226 * sysdeps/ia64/fpu/k_rem_pio2f.c: Likewise.
13227 * sysdeps/ieee754/dbl-64/e_rem_pio2.c: Likewise.
13228 * sysdeps/ieee754/dbl-64/k_cos.c: Likewise.
13229 * sysdeps/ieee754/dbl-64/k_sin.c: Likewise.
13230 * sysdeps/ieee754/flt-32/e_rem_pio2f.c: Likewise.
13231 * sysdeps/ieee754/flt-32/k_cosf.c: Likewise.
13232 * sysdeps/ieee754/flt-32/k_rem_pio2f.c: Likewise.
13233 * sysdeps/ieee754/flt-32/k_sinf.c: Likewise.
13234 * sysdeps/m68k/m680x0/fpu/e_rem_pio2.c: Likewise
13235 * sysdeps/m68k/m680x0/fpu/e_rem_pio2f.c: Likewise
13236 * sysdeps/m68k/m680x0/fpu/k_rem_pio2f.c: Likewise
13237 * sysdeps/powerpc/fpu/e_rem_pio2f.c: Likewise.
13238 * sysdeps/powerpc/fpu/k_rem_pio2f.c: Likewise.
13239
13240 2018-08-23 Joseph Myers <joseph@codesourcery.com>
13241
13242 * sysdeps/generic/math-tests-exceptions.h: New file.
13243 * sysdeps/generic/math-tests.h: Include <math-tests-exceptions.h>.
13244 (EXCEPTION_TESTS_float): Do not define here.
13245 (EXCEPTION_TESTS_double): Likewise.
13246 (EXCEPTION_TESTS_long_double): Likewise.
13247 (EXCEPTION_TESTS_float128): Likewise.
13248 * sysdeps/arm/math-tests.h [__SOFTFP__] (EXCEPTION_TESTS_float):
13249 Likewise.
13250 [__SOFTFP__] (EXCEPTION_TESTS_double): Likewise.
13251 [__SOFTFP__] (EXCEPTION_TESTS_long_double): Likewise.
13252 * sysdeps/arm/nofpu/math-tests-exceptions.h: New file.
13253 * sysdeps/m68k/coldfire/math-tests.h: Remove file.
13254 * sysdeps/mips/math-tests.h: Likewise.
13255 * sysdeps/nios2/math-tests.h: Likewise.
13256 * sysdeps/riscv/math-tests.h [!__riscv_flen]
13257 (EXCEPTION_TESTS_float): Do not define here.
13258 [!__riscv_flen] (EXCEPTION_TESTS_double): Likewise.
13259 [!__riscv_flen] (EXCEPTION_TESTS_long_double): Likewise.
13260 * sysdeps/riscv/nofpu/math-tests-exceptions.h: New file.
13261
13262 2018-08-23 Wilco Dijkstra <wdijkstr@arm.com>
13263
13264 * NEWS: Move optimized sinf entry to 2.29.
13265
13266 2018-08-23 Wilco Dijkstra <wdijkstr@arm.com>
13267
13268 * sysdeps/ieee754/flt-32/s_tanf.c (__tanf): Use fast range reduction.
13269
13270 2018-08-22 DJ Delorie <dj@redhat.com>
13271
13272 * Makefile (testroot.pristine): New rules to initialize the
13273 test-in-container "testroot".
13274 * Makerules (all-testsuite): Add tests-container.
13275 * Rules (tests-expected): Add tests-container.
13276 (binaries-all-tests): Likewise.
13277 (tests-container): New, run these tests in the testroot container.
13278 * support/Makefile (others): Add *-container, support_paths.c,
13279 xmkdirp, and links-dso-program.
13280 * support/links-dso-program-c.c: New.
13281 * support/links-dso-program.cc: New.
13282 * support/test-container.c: New.
13283 * support/shell-container.c: New.
13284 * support/echo-container.c: New.
13285 * support/true-container.c: New.
13286 * support/xmkdirp.c: New.
13287 * support/xsymlink.c: New.
13288 * support/support_paths.c: New.
13289 * support/support.h: Add support paths prototypes.
13290 * support/xunistd.h: Add xmkdirp () and xsymlink ().
13291
13292 * nss/tst-nss-test3.c: Convert to test-in-container.
13293 * nss/tst-nss-test3.root/: New.
13294
13295 2018-08-22 Paul Eggert <eggert@cs.ucla.edu>
13296
13297 regex: port Gnulib code to z/OS POSIX environment
13298 Problem reported by Arnold Robbins in:
13299 https://lists.gnu.org/r/bug-gnulib/2018-08/msg00129.html
13300 * posix/regex_internal.h (__iswalnum, __towlower, __towupper) [!_LIBC]:
13301 Undef.
13302
13303 2018-08-22 Joseph Myers <joseph@codesourcery.com>
13304
13305 * math/test-double-vlen2.h: Don't include <math-tests-rounding.h>.
13306 (ROUNDING_TESTS_double): Remove.
13307 * math/test-double-vlen4.h: Don't include <math-tests-rounding.h>.
13308 (ROUNDING_TESTS_double): Remove.
13309 * math/test-double-vlen8.h: Don't include <math-tests-rounding.h>.
13310 (ROUNDING_TESTS_double): Remove.
13311 * math/test-float-vlen16.h: Don't include <math-tests-rounding.h>.
13312 (ROUNDING_TESTS_float): Remove.
13313 * math/test-float-vlen4.h: Don't include <math-tests-rounding.h>.
13314 (ROUNDING_TESTS_float): Remove.
13315 * math/test-float-vlen8.h: Don't include <math-tests-rounding.h>.
13316 (ROUNDING_TESTS_float): Remove.
13317 * math/libm-test-driver.c (IF_ROUND_INIT_FE_DOWNWARD): Check
13318 !TEST_MATHVEC here.
13319 (IF_ROUND_INIT_FE_TOWARDZERO): Likewise.
13320 (IF_ROUND_INIT_FE_UPWARD): Likewise.
13321
13322 * sysdeps/generic/math-tests-rounding.h: New file.
13323 * sysdeps/generic/math-tests.h: Include <math-tests-rounding.h>.
13324 (ROUNDING_TESTS_float): Do not define here.
13325 (ROUNDING_TESTS_double): Likewise.
13326 (ROUNDING_TESTS_long_double): Likewise.
13327 (ROUNDING_TESTS_float128): Likewise.
13328 * math/test-double-vlen2.h: Include <math-tests-rounding.h>.
13329 (ROUNDING_TESTS_double): Undefine before defining.
13330 * math/test-double-vlen4.h: Include <math-tests-rounding.h>.
13331 (ROUNDING_TESTS_double): Undefine before defining.
13332 * math/test-double-vlen8.h: Include <math-tests-rounding.h>.
13333 (ROUNDING_TESTS_double): Undefine before defining.
13334 * math/test-float-vlen16.h: Include <math-tests-rounding.h>.
13335 (ROUNDING_TESTS_float): Undefine before defining.
13336 * math/test-float-vlen4.h: Include <math-tests-rounding.h>.
13337 (ROUNDING_TESTS_float): Undefine before defining.
13338 * math/test-float-vlen8.h: Include <math-tests-rounding.h>.
13339 (ROUNDING_TESTS_float): Undefine before defining.
13340 * sysdeps/arm/nofpu/math-tests-rounding.h: New file.
13341 * sysdeps/arm/math-tests.h [__SOFTFP__] (ROUNDING_TESTS_float): Do
13342 not define here.
13343 [__SOFTFP__] (ROUNDING_TESTS_double): Likewise.
13344 [__SOFTFP__] (ROUNDING_TESTS_long_double): Likewise.
13345 * sysdeps/riscv/nofpu/math-tests-rounding.h: New file.
13346 * sysdeps/riscv/math-tests.h [!__riscv_flen]
13347 (ROUNDING_TESTS_float): Do not define here.
13348 [!__riscv_flen] (ROUNDING_TESTS_double): Likewise.
13349 [!__risv_flen] (ROUNDING_TESTS_long_double): Likewise.
13350 * sysdeps/m68k/coldfire/math-tests.h [!__mcffpu__]
13351 (ROUNDING_TESTS_float): Likewise.
13352 [!__mcffpu__] (ROUNDING_TESTS_double): Likewise.
13353 [!__mcffpu__] (ROUNDING_TESTS_long_double): Likewise.
13354 * sysdeps/mips/math-tests.h [__mips_soft_float]
13355 (ROUNDING_TESTS_float): Likewise.
13356 [__mips_soft_float] (ROUNDING_TESTS_double): Likewise.
13357 [__mips_soft_float] (ROUNDING_TESTS_long_double): Likewise.
13358 * sysdeps/nios2/math-tests.h (ROUNDING_TESTS_float): Likewise.
13359 (ROUNDING_TESTS_double): Likewise.
13360 (ROUNDING_TESTS_long_double): Likewise.
13361
13362 2018-08-21 Tobias Klauser <tklauser@distanz.ch>
13363
13364 * sysdeps/unix/sysv/linux/bits/socket.h (PF_MAX): Set to 45.
13365 (PF_XDP): New macro.
13366 (AF_XDP): New macro.
13367 (SOL_XDP): New macro.
13368
13369 2018-08-21 Joseph Myers <joseph@codesourcery.com>
13370
13371 * sysdeps/gnu/netinet/tcp.h (TCP_ZEROCOPY_RECEIVE): New macro.
13372 (TCP_INQ): Likewise.
13373 (TCP_CM_INQ): Likewise.
13374 (TCP_REPAIR_ON): Likewise.
13375 (TCP_REPAIR_OFF): Likewise.
13376 (TCP_REPAIR_OFF_NO_WP): Likewise.
13377 (struct tcp_zerocopy_receive): New type.
13378
13379 2018-08-21 Florian Weimer <fweimer@redhat.com>
13380
13381 * support/support.h (support_descriptor_supports_holes): Declare.
13382 * support/Makefile (libsupport-routines): Add
13383 support_descriptor_supports_holes.
13384 * support/support_descriptor_supports_holes.c: New file.
13385 * io/tst-copy_file_range.c: Call support_descriptor_supports_holes
13386 and stop testing if holes are not supported.
13387 * io/test-lfs.c (do_prepare): Likewise.
13388 * sysdeps/unix/sysv/linux/tst-fallocate-common.c (do_prepare):
13389 Likewise.
13390 * timezone/tst-tzset.c (create_tz_file): Likewise.
13391 * misc/tst-preadvwritev-common.c (temp_fd_supports_holes) New
13392 variable.
13393 (do_prepare): Set it.
13394 * misc/tst-preadvwritev64.c (do_test): Use temp_fd_supports_holes.
13395
13396 2018-08-21 Florian Weimer <fweimer@redhat.com>
13397
13398 [BZ #17248]
13399 * Makeconfig (+cflags): Do not sort (and deduplicate).
13400
13401 2018-08-21 Florian Weimer <fweimer@redhat.com>
13402
13403 * debug/readlink_chk.c (__readlink_chk): Always call __readlink.
13404 * sysdeps/unix/sysv/linux/generic/readlink_chk.c: Remove file.
13405
13406 2018-08-20 Florian Weimer <fweimer@redhat.com>
13407
13408 * sysdeps/unix/sysv/linux/generic/readlink_chk.c: Remove
13409 HAVE_INLINED_SYSCALLS conditionals. Use INLINE_SYSCALL_CALL.
13410
13411 2018-08-20 Joseph Myers <joseph@codesourcery.com>
13412
13413 * sysdeps/unix/sysv/linux/sys/signalfd.h (struct
13414 signalfd_siginfo): Add ssi_addr_lsb, ssi_syscall, ssi_call_addr
13415 and ssi_arch members.
13416
13417 * elf/elf.c (NT_VMCOREDD): New macro.
13418 (AT_MINSIGSTKSZ): Likewise.
13419
13420 2018-08-20 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
13421
13422 * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile
13423 (libm-sysdep_routines): Remove s_sinf-ppc64, s_sinf-power8,
13424 s_cosf-ppc64 and s_cosf-power8.
13425 * sysdeps/powerpc/fpu/s_cosf.c: Remove file.
13426 * sysdeps/powerpc/fpu/s_sinf.c: Likewise.
13427 * sysdeps/powerpc/fpu/k_sinf.c: Likewise.
13428 * sysdeps/powerpc/fpu/k_cosf.c: Likewise.
13429 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_cosf-power8.S: Likewise.
13430 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_cosf-ppc64.c: Likewise.
13431 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_cosf.c: Likewise.
13432 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_sinf-power8.S: Likewise.
13433 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_sinf-ppc64.c: Likewise.
13434 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_sinf.c: Likewise.
13435 * sysdeps/powerpc/powerpc64/power8/fpu/s_cosf.S: Likewise.
13436 * sysdeps/powerpc/powerpc64/power8/fpu/s_sinf.S: Likewise.
13437
13438 2018-08-17 Florian Weimer <fweimer@redhat.com>
13439
13440 * sysdeps/s390/fpu/libm-test-ulps: Regenerate.
13441
13442 2018-08-17 Istvan Kurucsai <pistukem@gmail.com>
13443
13444 * malloc/malloc.c (_int_malloc): Additional binning code checks.
13445
13446 2018-08-16 Florian Weimer <fweimer@redhat.com>
13447
13448 * configure.ac: Add --with-nonshared-cflags option.
13449 * config.make.in (extra-nonshared-cflags): Set variable.
13450 * Makeconfig (CFLAGS-.oS): Use it.
13451 * manual/install.texi (Configuring and compiling): Document
13452 --with-nonshared-cflags.
13453 * configure: Regenerate.
13454 * INSTALL: Likewise.
13455
13456 2018-08-16 Florian Weimer <fweimer@redhat.com>
13457
13458 * Makeconfig (ASFLAGS): Always append required assembler flags.
13459
13460 2018-08-16 Moritz Eckert <m.eckert@cs.ucsb.edu>
13461
13462 * malloc/malloc.c (_int_free): Check for corrupt prev_size vs size.
13463 (malloc_consolidate): Likewise.
13464
13465 2018-08-16 Pochang Chen <johnchen902@gmail.com>
13466
13467 * malloc/malloc.c (_int_malloc.c): Verify size of top chunk.
13468
13469 2018-08-16 Siddhesh Poyarekar <siddhesh@sourceware.org>
13470
13471 * benchtests/bench-strlen.c (do_test): Allocate buffers before
13472 every strlen call.
13473
13474 * benchtests/bench-strlen.c: Print performance numbers in json.
13475
13476 2018-08-16 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
13477
13478 * sysdeps/powerpc/powerpc64/multiarch/Makefile
13479 (sysdep_routines): Build strcmp-power9 and strncmp-power9
13480 only for little endian.
13481 * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
13482 (strncmp): Move __strncmp_power9 inside ifdef __LITTLE_ENDIAN__.
13483 (STRCMP): Move __strcmp_power9 inside ifdef __LITTLE_ENDIAN__.
13484 * sysdeps/powerpc/powerpc64/multiarch/strcmp-power9.S:
13485 Add check for little endian.
13486 * sysdeps/powerpc/powerpc64/multiarch/strcmp.c
13487 (__strcmp_power9): Add check for little endian.
13488 * sysdeps/powerpc/powerpc64/multiarch/strncmp-power9.S:
13489 Add check for little endian.
13490 * sysdeps/powerpc/powerpc64/multiarch/strncmp.c
13491 (__strncmp_power9): Add check for little endian.
13492 * sysdeps/powerpc/powerpc64/power9/strcmp.S: Removed ifdef
13493 __LITTLE_ENDIAN__ and moved to sysdeps/powerpc/powerpc64/le/power9.
13494 * sysdeps/powerpc/powerpc64/power9/strncmp.S: Likewise.
13495 * sysdeps/powerpc/powerpc64/le/power9/strcmp.S: New file.
13496 * sysdeps/powerpc/powerpc64/le/power9/strncmp.S: Likewise.
13497
13498 2018-08-15 Siddhesh Poyarekar <siddhesh@sourceware.org>
13499
13500 * sysdeps/aarch64/strlen.S (__strlen): Rename to STRLEN.
13501 [!STRLEN](STRLEN): Set to __strlen.
13502 * sysdeps/aarch64/multiarch/strlen.c: New file.
13503 * sysdeps/aarch64/multiarch/strlen_generic.S: Likewise.
13504 * sysdeps/aarch64/multiarch/strlen_asimd.S: Likewise.
13505 * sysdeps/aarch64/multiarch/ifunc-impl-list.c
13506 (__libc_ifunc_impl_list): Add strlen.
13507 * sysdeps/aarch64/multiarch/Makefile (sysdep_routines): Add
13508 strlen_generic and strlen_asimd.
13509
13510 2018-08-15 Wilco Dijkstra <wdijkstr@arm.com>
13511
13512 * sysdeps/ieee754/flt-32/e_lgammaf_r.c (sin_pif): Use __sinf/__cosf.
13513 * sysdeps/ieee754/flt-32/k_cosf.c (__kernel_cosf): Remove all code.
13514 * sysdeps/ieee754/flt-32/k_sinf.c (__kernel_sinf): Likewise.
13515
13516 2018-08-15 Wilco Dijkstra <wdijkstr@arm.com>
13517
13518 * sysdeps/x86_64/fpu/libm-test-ulps: Regenerate to fix spaces.
13519
13520 2018-08-14 Florian Weimer <fweimer@redhat.com>
13521
13522 [BZ #23519]
13523 * include/stdio.h (__vfxprintf): Declare.
13524 * stdio-common/fxprintf.c (__vfxprintf): New function.
13525 (__fxprintf): Call it.
13526 * misc/err.c (convert_and_print): Remove function.
13527 (vwarnx, vwarn): Call __fxprintf and __vfxprintf.
13528 * misc/error.c [_LIBC] (error_tail): Call __vfxprintf.
13529 * misc/Makefile (tests): Add tst-warn-wide.
13530 * misc/tst-warn-wide.c: New file.
13531
13532 2018-08-14 Wilco Dijkstra <wdijkstr@arm.com>
13533 Szabolcs Nagy <szabolcs.nagy@arm.com>
13534
13535 * NEWS: Mention sinf, cosf, sincosf.
13536 * sysdeps/aarch64/libm-test-ulps: Update ULP for sinf, cosf, sincosf.
13537 * sysdeps/x86_64/fpu/libm-test-ulps: Update ULP for sinf and cosf.
13538 * sysdeps/x86_64/fpu/multiarch/s_sincosf-fma.c: Add definitions of
13539 constants rather than including generic sincosf.h.
13540 * sysdeps/x86_64/fpu/s_sincosf_data.c: Remove.
13541 * sysdeps/ieee754/flt-32/s_cosf.c (cosf): Rewrite.
13542 * sysdeps/ieee754/flt-32/s_sincosf.h (reduced_sin): Remove.
13543 (reduced_cos): Remove.
13544 (sinf_poly): New function.
13545 * sysdeps/ieee754/flt-32/s_sinf.c (sinf): Rewrite.
13546
13547 2018-08-14 Florian Weimer <fweimer@redhat.com>
13548
13549 [BZ #23521]
13550 [BZ #23522]
13551 * nss/nss_files/files-alias.c (get_next_alias): During :include:
13552 processing, bail out if no room, and close the stream before
13553 returning ERANGE.
13554 * nss/Makefile (tests): Add tst-nss-files-alias-leak.
13555 (tst-nss-files-alias-leak): Link with libdl.
13556 (tst-nss-files-alias-leak.out): Depend on nss_files.
13557
13558 * nss/tst-nss-files-alias-leak.c: New file.
13559
13560 2018-08-14 Florian Weimer <fweimer@redhat.com>
13561
13562 * nscd/nscd_conf.c (nscd_parse_file): Deallocate old storage for
13563 server_user, stat_user.
13564
13565 2018-08-13 Joseph Myers <joseph@codesourcery.com>
13566
13567 * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
13568 version to 4.18.
13569 (io_pgetevents): New syscall.
13570 (rseq): Likewise.
13571
13572 * manual/install.texi (Configuring and compiling): Do not list
13573 tools used for testing pretty printers here.
13574 (Tools for Compilation): List Python, PExpect and GDB here.
13575 Update descriptions of uses of Perl and Python.
13576 * INSTALL: Regenerate.
13577
13578 * scripts/build-many-glibcs.py (Context.checkout): Default Linux
13579 version to 4.18.
13580
13581 2018-08-13 Florian Weimer <fweimer@redhat.com>
13582
13583 * misc/error.c (error): Add missing va_end call.
13584 (error_at_line): Likewise.
13585
13586 2018-08-13 Florian Weimer <fweimer@redhat.com>
13587
13588 * stdlib/mbstowcs.c (mbstowcs): Remove outdated comment.
13589
13590 2018-08-11 Siddhesh Poyarekar <siddhesh@sourceware.org>
13591
13592 * benchtests/scripts/benchout.schema.json (properties): Add
13593 new properties.
13594
13595 * benchtests/bench-skeleton.c (main): Add duration and
13596 iterations attributes.
13597
13598 2018-08-10 Paul Eggert <eggert@cs.ucla.edu>
13599
13600 regex: Gnulib unibyte RRI uses bytes not chars
13601 Adjust the non-glibc code to agree with what Gawk needs for
13602 rational range interpretation (RRI) for regular expression ranges.
13603 In unibyte locales, Gawk wants ranges to use the underlying byte
13604 rather than the character code point. This change does not affect
13605 glibc proper.
13606 * posix/regcomp.c (parse_byte) [!LIBC && RE_ENABLE_I18N]:
13607 In unibyte locales, use the byte value rather than
13608 running it through btowc.
13609
13610 2018-08-10 Joseph Myers <joseph@codesourcery.com>
13611
13612 * sysdeps/generic/math-tests-snan.h: New file.
13613 * sysdeps/generic/math-tests.h: Include <math-tests-snan.h>.
13614 (SNAN_TESTS_float): Do not define here.
13615 (SNAN_TESTS_double): Likewise.
13616 (SNAN_TESTS_long_double): Likewise.
13617 (SNAN_TESTS_float128): Likewise.
13618 * sysdeps/i386/fpu/math-tests-snan.h: New file.
13619 * sysdeps/i386/fpu/math-tests.h: Remove file.
13620 * sysdeps/ia64/math-tests-snan.h: New file.
13621 * sysdeps/ia64/math-tests.h: Remove file.
13622 * sysdeps/x86/math-tests.h: Likewise.
13623 * sysdeps/x86_64/fpu/math-tests-snan.h: New file.
13624
13625 2018-08-10 Wilco Dijkstra <wdijkstr@arm.com>
13626 Szabolcs Nagy <szabolcs.nagy@arm.com>
13627
13628 * math/Makefile: Add s_sincosf_data.c.
13629 * sysdeps/ia64/fpu/s_sincosf_data.c: New file.
13630 * sysdeps/ieee754/flt-32/s_sincosf.h (abstop12): Add new function.
13631 (sincosf_poly): Likewise.
13632 (reduce_small): Likewise.
13633 (reduce_large): Likewise.
13634 * sysdeps/ieee754/flt-32/s_sincosf.c (sincosf): Rewrite.
13635 * sysdeps/ieee754/flt-32/s_sincosf_data.c: New file with sincosf data.
13636 * sysdeps/m68k/m680x0/fpu/s_sincosf_data.c: New file.
13637 * sysdeps/x86_64/fpu/s_sincosf_data.c: New file.
13638
13639 2018-08-10 Wilco Dijkstra <wdijkstr@arm.com>
13640 Szabolcs Nagy <szabolcs.nagy@arm.com>
13641
13642 * sysdeps/aarch64/fpu/math_private.h (roundtoint): Use round.
13643 (converttoint): Use lround.
13644 * sysdeps/ieee754/flt-32/math_config.h (roundtoint): Declare and
13645 document the semantics when TOINT_INTRINSICS is set.
13646 (converttoint): Likewise.
13647 (TOINT_RINT): Remove.
13648 (TOINT_SHIFT): Remove.
13649 * sysdeps/ieee754/flt-32/e_expf.c (__expf): Remove the TOINT_RINT code
13650 path.
13651
13652 2018-08-10 Florian Weimer <fweimer@redhat.com>
13653
13654 [BZ #23497]
13655 * sysdeps/unix/sysv/linux/getdents64.c (handle_overflow): New
13656 function.
13657 (__old_getdents64): Use getdents64. Convert entries without
13658 moving them.
13659 * sysdeps/unix/sysv/linux/tst-readdir64-compat.c: New file.
13660 * sysdeps/unix/sysv/linux/Makefile (tests-internal): Add
13661 tst-readdir64-compat.
13662
13663 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
13664
13665 * sysdeps/s390/s390-32/s390-mcount.S (_mcount):
13666 Fix unwind.
13667
13668 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
13669
13670 * sysdeps/s390/s390-64/Versions (__fentry__): Add.
13671 * sysdeps/s390/s390-64/s390x-mcount.S: Move the common
13672 code to s390x-mcount.h and #include it.
13673 * sysdeps/s390/s390-64/s390x-mcount.h: New file.
13674 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist
13675 (__fentry__): Add.
13676
13677 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
13678
13679 * stdlib/Versions: Remove __fentry__.
13680 * sysdeps/i386/Versions: Add __fentry__.
13681 * sysdeps/x86_64/Versions: Add __fentry__.
13682
13683 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
13684
13685 * sysdeps/s390/Makefile: Register the new tests.
13686 * sysdeps/s390/tst-dl-runtime-mod.S: New file.
13687 * sysdeps/s390/tst-dl-runtime-profile-audit.c: New file.
13688 * sysdeps/s390/tst-dl-runtime-profile-noaudit.c: New file.
13689 * sysdeps/s390/tst-dl-runtime-resolve-audit.c: New file.
13690 * sysdeps/s390/tst-dl-runtime-resolve-noaudit.c: New file.
13691 * sysdeps/s390/tst-dl-runtime.c: New file.
13692
13693 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
13694
13695 * sysdeps/s390/s390-64/dl-trampoline.h (_dl_runtime_profile):
13696 Do not clobber R0.
13697
13698 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
13699
13700 * sysdeps/s390/s390-64/dl-trampoline.h (_dl_runtime_resolve):
13701 Do not clobber R0.
13702
13703 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
13704
13705 * sysdeps/s390/s390-32/dl-trampoline.h (_dl_runtime_profile):
13706 Do not clobber R0.
13707
13708 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
13709
13710 * sysdeps/s390/s390-32/dl-trampoline.h (_dl_runtime_resolve):
13711 Do not clobber R0.
13712
13713 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
13714
13715 * sysdeps/s390/s390-64/dl-trampoline.h (_dl_runtime_profile):
13716 Use symbolic offsets for stack variables.
13717
13718 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
13719
13720 * sysdeps/s390/s390-64/dl-trampoline.h (_dl_runtime_resolve):
13721 Use symbolic offsets for stack variables.
13722
13723 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
13724
13725 * sysdeps/s390/s390-32/dl-trampoline.h (_dl_runtime_profile):
13726 Use symbolic offsets for stack variables.
13727
13728 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
13729
13730 * sysdeps/s390/s390-32/dl-trampoline.h (_dl_runtime_resolve):
13731 Use symbolic offsets for stack variables.
13732
13733 2018-08-09 Joseph Myers <joseph@codesourcery.com>
13734
13735 * math/gen-libm-test.py: New file.
13736 * math/gen-libm-test.pl: Remove.
13737 * math/Makefile [$(PERL) != no]: Change condition to [PYTHON].
13738 ($(objpfx)libm-test-ulps.h): Use gen-libm-test.py instead of
13739 gen-libm-test.pl.
13740 ($(libm-test-c-noauto-obj)): Likewise.
13741 ($(libm-test-c-auto-obj)): Likewise.
13742 ($(libm-test-c-narrow-obj)): Likewise.
13743 (regen-ulps): Likewise.
13744 * math/README.libm-test: Update references to gen-libm-test.pl.
13745 * math/libm-test-driver.c (struct test_fj_f_data): Update comment
13746 referencing gen-libm-test.pl.
13747 * math/libm-test-nexttoward.inc (nexttoward_test_data): Likewise.
13748 * math/libm-test-support.c: Likewise.
13749 * math/libm-test-support.h: Likewise.
13750 * sysdeps/generic/libm-test-ulps: Likewise.
13751
13752 2018-08-08 Siddhesh Poyarekar <siddhesh@sourceware.org>
13753
13754 * sysdeps/aarch64/strlen.S [TEST_PAGE_CROSS](MIN_PAGE_SIZE):
13755 Fix value.
13756
13757 2018-08-08 Joseph Myers <joseph@codesourcery.com>
13758
13759 * math/libm-test-nextdown.inc (do_test): Move comment to ....
13760 * math/libm-test-nexttoward.inc (nexttoward_test_data): ... here.
13761
13762 2018-08-08 Samuel Thibault <samuel.thibault@ens-lyon.org>
13763
13764 * htl/Versions (__pthread_getspecific, __pthread_setspecific): Add
13765 symbols.
13766 * sysdeps/htl/pthreadP.h [IS_IN (libpthread)] (__pthread_getspecific,
13767 __pthread_setspecific): Add hidden proto.
13768 * sysdeps/htl/pt-getspecific.c (__pthread_getspecific): Add hidden def.
13769 * sysdeps/htl/pt-setspecific.c (__pthread_setspecific): Add hidden def.
13770
13771 2018-08-07 Siddhesh Poyarekar <siddhesh@sourceware.org>
13772
13773 * benchtests/bench-string.h (buf1_size, buf2_size): New
13774 variables.
13775 (init_sizes): New function.
13776 (test_init): Use it.
13777 (alloc_buf, exit_error): New functions.
13778 (alloc_bufs): Use ALLOC_BUF.
13779 (realloc_bufs): Remove.
13780 * benchtests/bench-memcmp.c (do_test): Adjust.
13781 * benchtests/bench-memset-large.c (do_test): Likewise.
13782 * benchtests/bench-memset-walk.c (do_test): Likewise.
13783 * benchtests/bench-memset.c (do_test): Likewise.
13784 * benchtests/bench-strncmp.c (do_test): Likewise.
13785
13786 2018-08-06 Andreas Schwab <schwab@suse.de>
13787
13788 * sysdeps/riscv/nptl/tls.h (DB_THREAD_SELF): Use REGISTER instead
13789 of CONST_THREAD_AREA.
13790
13791 2018-08-06 H.J. Lu <hongjiu.lu@intel.com>
13792
13793 * sysdeps/x86/cpu-features.h (STATE_SAVE_OFFSET): Removed.
13794 (STATE_SAVE_MASK): Likewise.
13795 Don't check __ASSEMBLER__ to include <cpu-features-offsets.h>.
13796 * sysdeps/x86/sysdep.h (STATE_SAVE_OFFSET): New.
13797 (STATE_SAVE_MASK): Likewise.
13798 * sysdeps/x86_64/dl-trampoline.S: Include <cpu-features-offsets.h>
13799 instead of <cpu-features.h>.
13800
13801 2018-08-03 DJ Delorie <dj@redhat.com>
13802
13803 * sysdeps/riscv/rvf/math_private.h (libc_feholdexcept_setround_riscv):
13804 Move libc_fesetround_riscv after libc_feholdexcept_riscv.
13805
13806 * sysdeps/riscv/rv64/rvd/libm-test-ulps: Update.
13807
13808 2018-08-03 Joseph Myers <joseph@codesourcery.com>
13809
13810 * math/libm-test-ilogb.inc (ilogb_test_data): Use ',' not ';'
13811 after TEST_* calls.
13812 * math/libm-test-llogb.inc (llogb_test_data): Likewise.
13813 * math/libm-test-logb.inc (logb_test_data): Likewise.
13814
13815 2018-08-03 Wilco Dijkstra <wdijkstr@arm.com>
13816
13817 * string/strcasestr.c (STRCASESTR): Simplify and speedup first match.
13818 * string/strstr.c (AVAILABLE): Likewise.
13819
13820 2018-08-03 H.J. Lu <hongjiu.lu@intel.com>
13821
13822 * sysdeps/i386/i686/multiarch/bzero-ia32.S: Don't include
13823 <init-arch.h>.
13824 * sysdeps/x86_64/fpu/multiarch/svml_d_sin8_core-avx2.S: Likewise.
13825 * sysdeps/x86_64/fpu/multiarch/svml_s_expf16_core-avx2.S: Likewise.
13826 * sysdeps/x86_64/multiarch/memset-sse2-unaligned-erms.S: Likewise.
13827
13828 2018-08-03 Carlos O'Donell <carlos@redhat.com>
13829
13830 * po/be.po: Update translation.
13831
13832 * po/be.po: Update translation.
13833
13834 2018-08-03 H.J. Lu <hongjiu.lu@intel.com>
13835
13836 * sysdeps/x86/cpu-features-offsets.sym
13837 (rtld_global_ro_offsetof): Removed.
13838 (CPU_FEATURES_SIZE): Likewise.
13839 (CPUID_OFFSET): Likewise.
13840 (CPUID_SIZE): Likewise.
13841 (CPUID_EAX_OFFSET): Likewise.
13842 (CPUID_EBX_OFFSET): Likewise.
13843 (CPUID_ECX_OFFSET): Likewise.
13844 (CPUID_EDX_OFFSET): Likewise.
13845 (FAMILY_OFFSET): Likewise.
13846 (MODEL_OFFSET): Likewise.
13847 (FEATURE_OFFSET): Likewise.
13848 (FEATURE_SIZ): Likewise.
13849 (COMMON_CPUID_INDEX_1): Likewise.
13850 (COMMON_CPUID_INDEX_7): Likewise.
13851 (FEATURE_INDEX_1): Likewise.
13852 (RTLD_GLOBAL_RO_DL_X86_CPU_FEATURES_OFFSET): Updated.
13853
13854 2018-08-02 Carlos O'Donell <carlos@redhat.com>
13855
13856 * localedata/Makefile (INSTALL-SUPPORTED-LOCALES): Remove.
13857 (INSTALL-SUPPORTED-LOCALE-ARCHIVE): Define.
13858 (INSTALL-SUPPORTED-LOCALE-FILES): Define.
13859 (install-locales): Depend on install-locale-archive.
13860 (install-locale-archive): Define.
13861 (install-locale-files): Define.
13862 (build-one-locale): Define macro.
13863 * manual/install.texi (Running make install): Document.
13864 * manual/INSTALL: Regenerate.
13865
13866 2018-08-02 Siddhesh Poyarekar <siddhesh@sourceware.org>
13867
13868 * benchtests/scripts/compare_strings.py: Import traceback.
13869 (parse_file): Pretty-print error.
13870
13871 * NEWS: Mention the change.
13872 * elf/dl-tunables.list: Rename tune namespace to cpu.
13873 * sysdeps/powerpc/dl-tunables.list: Likewise.
13874 * sysdeps/x86/dl-tunables.list: Likewise.
13875 * sysdeps/aarch64/dl-tunables.list: Rename tune.cpu to
13876 cpu.name.
13877 * elf/dl-hwcaps.c (_dl_important_hwcaps): Adjust.
13878 * elf/dl-hwcaps.h (GET_HWCAP_MASK): Likewise.
13879 * manual/README.tunables: Likewise.
13880 * manual/tunables.texi: Likewise.
13881 * sysdeps/powerpc/cpu-features.c: Likewise.
13882 * sysdeps/unix/sysv/linux/aarch64/cpu-features.c
13883 (init_cpu_features): Likewise.
13884 * sysdeps/x86/cpu-features.c: Likewise.
13885 * sysdeps/x86/cpu-features.h: Likewise.
13886 * sysdeps/x86/cpu-tunables.c: Likewise.
13887 * sysdeps/x86_64/Makefile: Likewise.
13888 * sysdeps/x86/dl-cet.c: Likewise.
13889
13890 2018-08-02 Joseph Myers <joseph@codesourcery.com>
13891
13892 [BZ #23479]
13893 * sysdeps/mips/bits/fenv.h (FE_INEXACT): Define only if
13894 [__mips_hard_float].
13895 (FE_UNDERFLOW): Likewise.
13896 (FE_OVERFLOW): Likewise.
13897 (FE_DIVBYZERO): Likewise.
13898 (FE_INVALID): Likewise.
13899 (FE_ALL_EXCEPT): Define to 0 if [!__mips_hard_float].
13900 (FE_TOWARDZERO): Define only if [__mips_hard_float].
13901 (FE_UPWARD): Likewise.
13902 (FE_DOWNWARD): Likewise.
13903 (__FE_UNDEFINED): Define if [!__mips_hard_float]
13904 (FE_NOMASK_ENV): Define only if [__mips_hard_float].
13905 * sysdeps/mips/mips64/sfp-machine.h (_FP_DECL_EX): Define only if
13906 [__mips_hard_float].
13907 (FP_ROUNDMODE): Likewise.
13908 (FP_RND_NEAREST): Likewise.
13909 (FP_RND_ZERO): Likewise.
13910 (FP_RND_PINF): Likewise.
13911 (FP_RND_MINF): Likewise.
13912 (FP_EX_INVALID): Likewise.
13913 (FP_EX_OVERFLOW): Likewise.
13914 (FP_EX_UNDERFLOW): Likewise.
13915 (FP_EX_DIVZERO): Likewise.
13916 (FP_EX_INEXACT): Likewise.
13917 (FP_INIT_ROUNDMODE): Likewise.
13918 * sysdeps/mips/nofpu/fesetenv.c: New file.
13919 * sysdeps/mips/nofpu/feupdateenv.c: Likewise.
13920
13921 2018-08-01 Joseph Myers <joseph@codesourcery.com>
13922
13923 * math/test-misc.c (do_test) [LDBL_MANT_DIG > DBL_MANT_DIG]: Make
13924 code using FE_UNDERFLOW conditional on [FE_UNDERFLOW], code using
13925 FE_OVERFLOW conditional on [FE_OVERFLOW] and code using FE_UPWARD
13926 conditional on [FE_UPWARD].
13927
13928 2018-08-01 Paul Eggert <eggert@cs.ucla.edu>
13929
13930 regex: fix memory leak in Gnulib
13931 Problem and fix reported by Assaf Gordon in:
13932 https://lists.gnu.org/r/bug-gnulib/2018-07/txtqLKNwBdefE.txt
13933 * posix/regcomp.c (free_charset) [!_LIBC]: Free range_starts and
13934 range_ends members too, as they are defined in 'struct
13935 re_charset_t' even if not _LIBC. This affects only Gnulib.
13936
13937 2018-08-01 H.J. Lu <hongjiu.lu@intel.com>
13938
13939 * sysdeps/x86/cpu-features.c (get_common_indeces): Renamed to
13940 ...
13941 (get_common_indices): This.
13942 (init_cpu_features): Updated.
13943
13944 2018-08-01 Joseph Myers <joseph@codesourcery.com>
13945
13946 * sysdeps/generic/math-tests-snan-payload.h: New file.
13947 * sysdeps/hppa/math-tests-snan-payload.h: Likewise.
13948 * sysdeps/mips/math-tests-snan-payload.h: Likewise.
13949 * sysdeps/riscv/math-tests-snan-payload.h: Likewise.
13950 * sysdeps/generic/math-tests.h: Include
13951 <math-tests-snan-payload.h>.
13952 (SNAN_TESTS_PRESERVE_PAYLOAD): Do not define macro here.
13953 * sysdeps/hppa/math-tests.h: Remove file.
13954 * sysdeps/mips/math-tests.h [!__mips_nan2008]
13955 (SNAN_TESTS_PRESERVE_PAYLOAD): Do not define macro here.
13956 * sysdeps/riscv/math-tests.h (SNAN_TESTS_PRESERVE_PAYLOAD):
13957 Likewise.
13958
13959 * sysdeps/generic/math-tests-snan-cast.h: New file.
13960 * sysdeps/powerpc/math-tests-snan-cast.h: Likewise.
13961 * sysdeps/generic/math-tests.h: Include <math-tests-snan-cast.h>.
13962 (SNAN_TESTS_TYPE_CAST): Do not define macro here.
13963 * sysdeps/powerpc/math-tests.h (SNAN_TESTS_TYPE_CAST): Likewise.
13964
13965 2018-08-01 Carlos O'Donell <carlos@redhat.com>
13966
13967 * version.h (RELEASE): Set to "development".
13968 (VERSION): Set to "2.28.9000".
13969 * NEWS (2.29): New section.
13970
13971 * version.h (RELEASE): Set to "stable".
13972 (VERSION): Set to "2.28".
13973 * include/features.h (__GLIBC_MINOR__): Set to 2.28.
13974 * NEWS: Add the list of bugs fixed in 2.28.
13975
13976 * po/ca.po: Update to latest version.
13977 * po/cs.po: Likewise
13978 * po/da.po: Likewise
13979 * po/el.po: Likewise
13980 * po/eo.po: Likewise
13981 * po/es.po: Likewise
13982 * po/fi.po: Likewise
13983 * po/fr.po: Likewise
13984 * po/gl.po: Likewise
13985 * po/hu.po: Likewise
13986 * po/ia.po: Likewise
13987 * po/id.po: Likewise
13988 * po/it.po: Likewise
13989 * po/ja.po: Likewise
13990 * po/ko.po: Likewise
13991 * po/lt.po: Likewise
13992 * po/nb.po: Likewise
13993 * po/nl.po: Likewise
13994 * po/pt_BR.po: Likewise
13995 * po/ru.po: Likewise
13996 * po/rw.po: Likewise
13997 * po/sk.po: Likewise
13998 * po/sl.po: Likewise
13999 * po/tr.po: Likewise
14000 * po/zh_CN.po: Likewise
14001 * po/zh_TW.po: Likewise
14002
14003 2018-07-31 Samuel Thibault <samuel.thibault@ens-lyon.org>
14004
14005 * sysdeps/mach/hurd/i386/init-first.c (init1): Move ELF hdr and TLS
14006 initialization...
14007 (init): ... before initializing libpthread.
14008
14009 * mach/mach.h (__mach_setup_tls, mach_setup_tls): Add prototypes.
14010 * mach/setup-thread.c (__mach_setup_thread): Move TLS setup to...
14011 (__mach_setup_tls): ... new function.
14012 (mach_setup_tls): New alias.
14013 * hurd/hurdsig.c (_hurdsig_init): Call __mach_setup_tls after
14014 __mach_setup_thread.
14015 * sysdeps/mach/hurd/profil.c (update_waiter): Likewise.
14016 * sysdeps/mach/hurd/setitimer.c (setitimer_locked): Likewise.
14017 * mach/Versions [libc] (mach_setup_tls): Add symbol.
14018 * sysdeps/mach/hurd/i386/libc.abilist (mach_setup_tls): Likewise.
14019
14020 2018-07-31 Carlos O'Donell <carlos@redhat.com>
14021
14022 * manual/install.texi: Update versions.
14023 * INSTALL: Regenerate.
14024
14025 * manual/contrib.texi (Contributors): Update contributions.
14026
14027 2018-07-31 Carlos O'Donell <carlos@redhat.com>
14028
14029 * po/be.po: Update translations.
14030
14031 2018-07-31 Adhemerval Zanella <adhemerval.zanella@linaro.org>
14032
14033 * sysdeps/sh/libm-test-ulps: Update.
14034
14035 2018-07-30 Carlos O'Donell <carlos@redhat.com>
14036
14037 * po/bg.po: Update translations.
14038 * po/de.po: Likewise.
14039 * po/hr.po: Likewise.
14040 * po/pt_BR.po: Likewise.
14041 * po/sv.po: Likewise.
14042 * po/vi.po: Likewise.
14043
14044 2018-07-30 H.J. Lu <hongjiu.lu@intel.com>
14045
14046 [BZ #23467]
14047 * sysdeps/unix/sysv/linux/x86/Makefile (tests): Add
14048 tst-cet-property-1 and tst-cet-property-2 if CET is enabled.
14049 (CFLAGS-tst-cet-property-1.o): New.
14050 (ASFLAGS-tst-cet-property-dep-2.o): Likewise.
14051 ($(objpfx)tst-cet-property-2): Likewise.
14052 ($(objpfx)tst-cet-property-2.out): Likewise.
14053 * sysdeps/unix/sysv/linux/x86/tst-cet-property-1.c: New file.
14054 * sysdeps/unix/sysv/linux/x86/tst-cet-property-2.c: Likewise.
14055 * sysdeps/unix/sysv/linux/x86/tst-cet-property-dep-2.S: Likewise.
14056 * sysdeps/x86/dl-prop.h (_dl_process_cet_property_note): Parse
14057 each property item until GNU_PROPERTY_X86_FEATURE_1_AND is found.
14058
14059 2018-07-30 H.J. Lu <hongjiu.lu@intel.com>
14060
14061 [BZ #23458]
14062 * sysdeps/x86/Makefile (tests): Add tst-get-cpu-features-static.
14063
14064 2018-07-28 Samuel Thibault <samuel.thibault@ens-lyon.org>
14065
14066 * sysdeps/mach/hurd/dl-unistd.h (__access, __brk, __lseek, __read,
14067 __sbrk): Do not set attribute_hidden.
14068 * sysdeps/mach/hurd/not-errno.h: New file.
14069 * sysdeps/mach/hurd/i386/ld.abilist: Update accordingly.
14070 * sysdeps/mach/hurd/i386/localplt.data: Update accordingly.
14071
14072 2018-07-27 Carlos O'Donell <carlos@redhat.com>
14073
14074 * po/uk.po: Update translations.
14075 * po/cs.po: Likewise.
14076 * po/pl.po: Likewise.
14077
14078 2018-07-27 H.J. Lu <hongjiu.lu@intel.com>
14079
14080 * sysdeps/x86/dl-prop.h (_dl_process_cet_property_note): Don't
14081 parse beyond the note end.
14082
14083 2018-07-27 Adhemerval Zanella <adhemerval.zanella@linaro.org>
14084
14085 * sysdeps/unix/sysv/linux/tst-ofdlocks.c: Return unsupported if
14086 kernel does not support OFD locks.
14087 * sysdeps/unix/sysv/linux/tst-ofdlocks-compat.c: Likewise.
14088
14089 2018-07-27 Samuel Thibault <samuel.thibault@ens-lyon.org>
14090
14091 * sysdeps/mach/hurd/Versions (libc): Make __access and
14092 __access_noerrno external so they can override the ld symbols.
14093 (ld): Make __access, __read, __sbrk, __strtoul_internal, __write,
14094 __writev, __open64, __access_noerrno extern so they can be overrided.
14095 * sysdeps/mach/hurd/i386/libc.abilist: Update accordingly.
14096 * sysdeps/mach/hurd/i386/ld.abilist: Update accordingly.
14097
14098 2018-07-26 Carlos O'Donell <carlos@redhat.com>
14099
14100 * po/libc.pot: Regenerate.
14101
14102 2018-07-26 Joseph Myers <joseph@codesourcery.com>
14103
14104 * sysdeps/powerpc/nofpu/libm-test-ulps: Update.
14105
14106 2018-07-26 H.J. Lu <hongjiu.lu@intel.com>
14107
14108 [BZ #23459]
14109 * sysdeps/x86/cpu-features.c (get_extended_indices): New
14110 function.
14111 (init_cpu_features): Call get_extended_indices for both Intel
14112 and AMD CPUs.
14113 * sysdeps/x86/cpu-features.h (COMMON_CPUID_INDEX_80000001):
14114 Remove "for AMD" comment.
14115
14116 2018-07-26 H.J. Lu <hongjiu.lu@intel.com>
14117
14118 [BZ # 23456]
14119 * sysdeps/x86/cpu-features.h (index_cpu_LZCNT): Set to
14120 COMMON_CPUID_INDEX_80000001.
14121
14122 2018-07-26 Stefan Liebler <stli@linux.ibm.com>
14123
14124 * string/tst-xbzero-opt.c (use_test_buffer): New function.
14125 (prepare_test_buffer): Call use_test_buffer as compiler barrier.
14126
14127 2018-07-26 Florian Weimer <fweimer@redhat.com>
14128
14129 * htl/lockfile.c (flockfile, funlockfile, ftrylockfile): Use weak
14130 aliases for symbols not in the implementation namespace.
14131
14132 2018-07-25 Carlos O'Donell <carlos@redhat.com>
14133
14134 [BZ #23393]
14135 * localedata/locales/iso14651_t1_common: Deinterlace uppercase and
14136 lowercase in LATIN script.
14137 * localedata/Makefile (test-input): Add en_US.UTF-8.
14138 * localedata/en_US.UTF-8.in: New file.
14139 * posix/tst-fnmatch.input: Add comments and new tests for en_US.UTF-8,
14140 and restore old tests.
14141 * posix/tst-regexloc.c (do_test): Add back range expression test.
14142
14143 2018-07-25 H.J. Lu <hongjiu.lu@intel.com>
14144
14145 * sysdeps/unix/sysv/linux/ia64/tst-setcontext4.c: New file.
14146
14147 2018-07-25 Adhemerval Zanella <adhemerval.zanella@linaro.org>
14148
14149 * nptl/threads.h: Move to ...
14150 * sysdeps/nptl/threads.h: ... here.
14151 * sysdeps/hurd/stdc-predef.h: New file.
14152
14153 2018-07-25 H.J. Lu <hongjiu.lu@intel.com>
14154
14155 * sysdeps/unix/sysv/linux/x86/Makefile (tests): Add
14156 tst-cet-setcontext-1 if CET is enabled.
14157 (CFLAGS-tst-cet-setcontext-1.c): Add -mshstk.
14158 * sysdeps/unix/sysv/linux/x86/tst-cet-setcontext-1.c: New file.
14159
14160 2018-07-25 Adhemerval Zanella <adhemerval.zanella@linaro.org>
14161
14162 * include/threads.h: Move to ...
14163 * sysdeps/nptl/threads.h: ... here.
14164 * sysdeps/htl/threads.h: New file.
14165 * conform/Makefile (linknamespace-libs-ISO11): Use
14166 static-thread-library instead of linking libpthread.
14167 (linknamespace-libs-XPG4): Revert wrong libcrypt.a addition.
14168
14169 2018-07-25 Florian Weimer <fweimer@redhat.com>
14170
14171 * nptl/tst-mtx-timedlock.c (do_test): Implement carry from
14172 nanoseconds into seconds.
14173 * nptl/tst-cnd-basic.c (signal_parent): Lock and unlock mutex.
14174 (do_test): Likewise.
14175 * nptl/tst-cnd-timedwait.c (signal_parent): Likewise.
14176 (do_test): Likewise. Avoid nanosecond overflow and spurious
14177 timeouts due to system load.
14178 * nptl/tst-cnd-broadcast.c (waiting_threads): New variable.
14179 (child_wait): Increment it.
14180 (do_test): Wait as long as necessary until all expected threads
14181 have arrived.
14182
14183 2018-07-25 Vedvyas Shanbhogue <vedvyas.shanbhogue@intel.com>
14184 H.J. Lu <hongjiu.lu@intel.com>
14185
14186 * sysdeps/unix/sysv/linux/x86/sys/ucontext.h (ucontext_t): Add
14187 __ssp.
14188 * sysdeps/unix/sysv/linux/x86_64/__start_context.S: Include
14189 <asm/prctl.h> and "ucontext_i.h" when shadow stack is enabled.
14190 (__push___start_context): New.
14191 * sysdeps/unix/sysv/linux/x86_64/getcontext.S: Include
14192 <asm/prctl.h>.
14193 (__getcontext): Record the current shadow stack base. Save the
14194 caller's shadow stack pointer and base.
14195 * sysdeps/unix/sysv/linux/x86_64/makecontext.c: Include
14196 <pthread.h>, <libc-pointer-arith.h> and <sys/prctl.h>.
14197 (__push___start_context): New prototype.
14198 (__makecontext): Call __push___start_context to allocate a new
14199 shadow stack, push __start_context onto the new stack as well
14200 as the new shadow stack.
14201 * sysdeps/unix/sysv/linux/x86_64/setcontext.S: Include
14202 <asm/prctl.h>.
14203 (__setcontext): Restore the target shadow stack.
14204 * sysdeps/unix/sysv/linux/x86_64/swapcontext.S: Include
14205 <asm/prctl.h>.
14206 (__swapcontext): Record the current shadow stack base. Save
14207 the caller's shadow stack pointer and base. Restore the target
14208 shadow stack.
14209 * sysdeps/unix/sysv/linux/x86_64/sysdep.h
14210 (STACK_SIZE_TO_SHADOW_STACK_SIZE_SHIFT): New.
14211 * sysdeps/unix/sysv/linux/x86_64/ucontext_i.sym (oSSP): New.
14212
14213 2018-07-25 H.J. Lu <hongjiu.lu@intel.com>
14214
14215 * stdlib/Makefile ((tests): Add tst-setcontext6, tst-setcontext7,
14216 tst-setcontext8 and tst-setcontext9.
14217 * stdlib/tst-setcontext6.c: New file.
14218 * stdlib/tst-setcontext7.c: Likewise.
14219 * stdlib/tst-setcontext8.c: Likewise.
14220 * stdlib/tst-setcontext9.c: Likewise.
14221
14222 2018-07-25 H.J. Lu <hongjiu.lu@intel.com>
14223
14224 * stdlib/Makefile ((tests): Add tst-setcontext5.
14225 * stdlib/tst-setcontext5.c: New file.
14226
14227 2018-07-25 H.J. Lu <hongjiu.lu@intel.com>
14228
14229 * stdlib/Makefile (tests): Add tst-setcontext4.
14230 * stdlib/tst-setcontext4.c: New file.
14231
14232 2018-07-25 H.J. Lu <hongjiu.lu@intel.com>
14233
14234 * stdlib/Makefile (tests): Add tst-swapcontext1.
14235 * stdlib/tst-swapcontext1.c: New test.
14236
14237 2018-07-25 H.J. Lu <hongjiu.lu@intel.com>
14238
14239 * sysdeps/x86/Makefile (tests): Add tst-cet-legacy-1,
14240 tst-cet-legacy-2, tst-cet-legacy-2a, tst-cet-legacy-3,
14241 tst-cet-legacy-4, tst-cet-legacy-4a, tst-cet-legacy-4b
14242 and tst-cet-legacy-4c.
14243 (modules-names): Add tst-cet-legacy-mod-1, tst-cet-legacy-mod-2
14244 and tst-cet-legacy-mod-4.
14245 (CFLAGS-tst-cet-legacy-2.c): New.
14246 (CFLAGS-tst-cet-legacy-mod-1.c): Likewise.
14247 (CFLAGS-tst-cet-legacy-mod-2.c): Likewise.
14248 (CFLAGS-tst-cet-legacy-3.c): Likewise.
14249 (CFLAGS-tst-cet-legacy-4.c): Likewise.
14250 (CFLAGS-tst-cet-legacy-mod-4.c): Likewise.
14251 ($(objpfx)tst-cet-legacy-1): Likewise.
14252 ($(objpfx)tst-cet-legacy-2): Likewise.
14253 ($(objpfx)tst-cet-legacy-2.out): Likewise.
14254 ($(objpfx)tst-cet-legacy-2a): Likewise.
14255 ($(objpfx)tst-cet-legacy-2a.out): Likewise.
14256 ($(objpfx)tst-cet-legacy-4): Likewise.
14257 ($(objpfx)tst-cet-legacy-4.out): Likewise.
14258 ($(objpfx)tst-cet-legacy-4a): Likewise.
14259 ($(objpfx)tst-cet-legacy-4a.out): Likewise.
14260 (tst-cet-legacy-4a-ENV): Likewise.
14261 ($(objpfx)tst-cet-legacy-4b): Likewise.
14262 ($(objpfx)tst-cet-legacy-4b.out): Likewise.
14263 (tst-cet-legacy-4b-ENV): Likewise.
14264 ($(objpfx)tst-cet-legacy-4c): Likewise.
14265 ($(objpfx)tst-cet-legacy-4c.out): Likewise.
14266 (tst-cet-legacy-4c-ENV): Likewise.
14267 * sysdeps/x86/tst-cet-legacy-1.c: New file.
14268 * sysdeps/x86/tst-cet-legacy-2.c: Likewise.
14269 * sysdeps/x86/tst-cet-legacy-2a.c: Likewise.
14270 * sysdeps/x86/tst-cet-legacy-3.c: Likewise.
14271 * sysdeps/x86/tst-cet-legacy-4.c: Likewise.
14272 * sysdeps/x86/tst-cet-legacy-4a.c: Likewise.
14273 * sysdeps/x86/tst-cet-legacy-4b.c: Likewise.
14274 * sysdeps/x86/tst-cet-legacy-4c.c: Likewise.
14275 * sysdeps/x86/tst-cet-legacy-mod-1.c: Likewise.
14276 * sysdeps/x86/tst-cet-legacy-mod-2.c: Likewise.
14277 * sysdeps/x86/tst-cet-legacy-mod-4.c: Likewise.
14278
14279 2018-07-25 H.J. Lu <hongjiu.lu@intel.com>
14280
14281 * sysdeps/i386/nptl/tcb-offsets.sym (SSP_BASE_OFFSET): New.
14282 * sysdeps/i386/nptl/tls.h (tcbhead_t): Replace __glibc_reserved2
14283 with ssp_base.
14284 * sysdeps/x86_64/nptl/tcb-offsets.sym (SSP_BASE_OFFSET): New.
14285 * sysdeps/x86_64/nptl/tls.h (tcbhead_t): Replace __glibc_reserved2
14286 with ssp_base.
14287
14288 2018-07-25 Andreas Schwab <schwab@suse.de>
14289
14290 [BZ #23442]
14291 * locale/weightwc.h (findidx): Handle the case where usrc is a
14292 prefix of cp but one character too short.
14293
14294 2018-07-24 Adhemerval Zanella <adhemerval.zanella@linaro.org>
14295
14296 * NEWS: Add ISO C threads addition.
14297
14298 2018-07-24 Florian Weimer <fweimer@redhat.com>
14299
14300 * sysdeps/unix/sysv/linux/alpha/kernel-features.h
14301 [__LINUX_KERNEL_VERSION < 0x040D00] (__ASSUME_MLOCK2)
14302 (__ASSUME_COPY_FILE_RANGE): Undefine. Kernel support was added in
14303 4.13.
14304
14305 2018-07-24 H.J. Lu <hongjiu.lu@intel.com>
14306
14307 * sysdeps/unix/sysv/linux/x86/include/asm/prctl.h: New file.
14308 * sysdeps/unix/sysv/linux/x86/cpu-features.c: Include
14309 <sys/prctl.h> and <asm/prctl.h>.
14310 (get_cet_status): Call arch_prctl with ARCH_CET_STATUS.
14311 * sysdeps/unix/sysv/linux/x86/dl-cet.h: Include <sys/prctl.h>
14312 and <asm/prctl.h>.
14313 (dl_cet_allocate_legacy_bitmap): Call arch_prctl with
14314 ARCH_CET_LEGACY_BITMAP.
14315 (dl_cet_disable_cet): Call arch_prctl with ARCH_CET_DISABLE.
14316 (dl_cet_lock_cet): Call arch_prctl with ARCH_CET_LOCK.
14317 * sysdeps/x86/libc-start.c: Include <startup.h>.
14318
14319 2018-07-24 Florian Weimer <fweimer@redhat.com>
14320
14321 * sysdeps/unix/sysv/linux/sh/kernel-features.h (__ASSUME_STATX):
14322 Undefine. Suggested by Romain Naour <romain.naour@gmail.com>.
14323
14324 2018-07-24 Rical Jasan <rj@2c3t.io>
14325 Adhemerval Zanella <adhemerval.zanella@linaro.org>
14326 Juan Manuel Torres Palma <jmtorrespalma@gmail.com>
14327
14328 [BZ #14092]
14329 * manual/debug.texi: Update adjacent chapter name.
14330 * manual/probes.texi: Likewise.
14331 * manual/threads.texi (ISO C Threads): New section.
14332 (POSIX Threads): Convert to a section.
14333
14334 2018-07-24 Adhemerval Zanella <adhemerval.zanella@linaro.org>
14335 Juan Manuel Torres Palma <jmtorrespalma@gmail.com>
14336
14337 [BZ# 14092]
14338 * nptl/Makefile (tests): Add new test files.
14339 * nptl/tst-call-once.c : New file. Tests C11 functions and types.
14340 * nptl/tst-cnd-basic.c: Likewise.
14341 * nptl/tst-cnd-broadcast.c: Likewise.
14342 * nptl/tst-cnd-timedwait.c: Likewise.
14343 * nptl/tst-mtx-basic.c: Likewise.
14344 * nptl/tst-mtx-recursive.c: Likewise.
14345 * nptl/tst-mtx-timedlock.c: Likewise.
14346 * nptl/tst-mtx-trylock.c: Likewise.
14347 * nptl/tst-thrd-basic.c: Likewise.
14348 * nptl/tst-thrd-detach.c: Likewise.
14349 * nptl/tst-thrd-sleep.c: Likewise.
14350 * nptl/tst-tss-basic.c: Likewise.
14351
14352 2018-07-24 Adhemerval Zanella <adhemerval.zanella@linaro.org>
14353
14354 [BZ #14092]
14355 * sysdeps/unix/sysv/linux/aarch64/libc.abilist [GLIBC_2.28]
14356 (thrd_current, thrd_equal, thrd_sleep, thrd_yield): Add C11 thread
14357 symbols.
14358 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
14359 * sysdeps/unix/sysv/linux/arm/libc.abilist: Likewise.
14360 * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
14361 * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
14362 * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
14363 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
14364 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
14365 * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
14366 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
14367 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
14368 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
14369 * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise.
14370 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
14371 Likewise.
14372 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
14373 Likewise.
14374 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist:
14375 Likewise.
14376 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist: Likewise.
14377 * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist: Likewise.
14378 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
14379 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
14380 * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
14381 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
14382 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
14383 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
14384 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
14385 * sysdeps/unix/sysv/linux/aarch64/libpthread.abilist [[GLIBC_2.28]
14386 (call_once, cnd_broadcast, cnd_destroy, cnd_init, cnd_signal,
14387 cnd_timedwait, cnd_wait, mtx_destroy, mtx_init, mtx_lock,
14388 mtx_timedlock, mtx_trylock, mtx_unlokc, thrd_create, thrd_detach,
14389 thrd_exit, thrd_join, tss_create, tss_delete, tss_get, tss_set):
14390 Likewise.
14391 * sysdeps/unix/sysv/linux/aarch64/libpthread.abilist: Likewise.
14392 * sysdeps/unix/sysv/linux/alpha/libpthread.abilist: Likewise.
14393 * sysdeps/unix/sysv/linux/arm/libpthread.abilist: Likewise.
14394 * sysdeps/unix/sysv/linux/hppa/libpthread.abilist: Likewise.
14395 * sysdeps/unix/sysv/linux/i386/libpthread.abilist: Likewise.
14396 * sysdeps/unix/sysv/linux/ia64/libpthread.abilist: Likewise.
14397 * sysdeps/unix/sysv/linux/m68k/coldfire/libpthread.abilist: Likewise.
14398 * sysdeps/unix/sysv/linux/m68k/m680x0/libpthread.abilist: Likewise.
14399 * sysdeps/unix/sysv/linux/microblaze/libpthread.abilist: Likewise.
14400 * sysdeps/unix/sysv/linux/mips/mips32/libpthread.abilist: Likewise.
14401 * sysdeps/unix/sysv/linux/mips/mips64/libpthread.abilist: Likewise.
14402 * sysdeps/unix/sysv/linux/nios2/libpthread.abilist: Likewise.
14403 ikewise.
14404 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libpthread.abilist:
14405 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libpthread-le.abilist:
14406 Likewise.
14407 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libpthread.abilist:
14408 Likewise.
14409 * sysdeps/unix/sysv/linux/riscv/rv64/libpthread.abilist: Likewise.
14410 * sysdeps/unix/sysv/linux/s390/s390-32/libpthread.abilist: Likewise.
14411 * sysdeps/unix/sysv/linux/s390/s390-64/libpthread.abilist: Likewise.
14412 * sysdeps/unix/sysv/linux/sh/libpthread.abilist: Likewise.
14413 * sysdeps/unix/sysv/linux/sparc/sparc32/libpthread.abilist: Likewise.
14414 * sysdeps/unix/sysv/linux/sparc/sparc64/libpthread.abilist: Likewise.
14415 * sysdeps/unix/sysv/linux/x86_64/64/libpthread.abilist: Likewise.
14416 * sysdeps/unix/sysv/linux/x86_64/x32/libpthread.abilist: Likewise.
14417
14418 [BZ #14092]
14419 * conform/data/threads.h-data (thread_local): New macro.
14420 (TSS_DTOR_ITERATIONS): Likewise.
14421 (tss_t): New type.
14422 (tss_dtor_t): Likewise.
14423 (tss_create): New function.
14424 (tss_get): Likewise.
14425 (tss_set): Likewise.
14426 (tss_delete): Likewise.
14427 * nptl/Makefile (libpthread-routines): Add tss_create, tss_delete,
14428 tss_get, and tss_set objects.
14429 * nptl/Versions (libpthread) [GLIBC_2.28]: Likewise.
14430 * nptl/tss_create.c: New file.
14431 * nptl/tss_delete.c: Likewise.
14432 * nptl/tss_get.c: Likewise.
14433 * nptl/tss_set.c: Likewise.
14434 * sysdeps/nptl/threads.h (thread_local): New define.
14435 (TSS_DTOR_ITERATIONS): Likewise.
14436 (tss_t): New typedef.
14437 (tss_dtor_t): Likewise.
14438 (tss_create): New prototype.
14439 (tss_get): Likewise.
14440 (tss_set): Likewise.
14441 (tss_delete): Likewise.
14442
14443 [BZ #14092]
14444 * conform/data/threads.h-data (cnd_t): New type.
14445 (cnd_init): New function.
14446 (cnd_signal): Likewise.
14447 (cnd_broadcast): Likewise.
14448 (cnd_wait): Likewise.
14449 (cnd_timedwait): Likewise.
14450 (cnd_destroy): Likewise.
14451 * nptl/Makefile (libpthread-routines): Add cnd_broadcast,
14452 cnd_destroy, cnd_init, cnd_signal, cnd_timedwait, and cnd_wait
14453 object.
14454 * nptl/Versions (libpthread) [GLIBC_2.28]: Likewise.
14455 * nptl/cnd_broadcast.c: New file.
14456 * nptl/cnd_destroy.c: Likewise.
14457 * nptl/cnd_init.c: Likewise.
14458 * nptl/cnd_signal.c: Likewise.
14459 * nptl/cnd_timedwait.c: Likewise.
14460 * nptl/cnd_wait.c: Likewise.
14461 * sysdeps/nptl/threads.h (cnd_t): New type.
14462 (cnd_init): New prototype.
14463 (cnd_signa): Likewise.
14464 (cnd_broadcast): Likewise.
14465 (cnd_wait): Likewise.
14466 (cnd_timedwait): Likewise.
14467 (cnd_destroy): Likewise.
14468
14469 [BZ #14092]
14470 * conform/data/threads.h-data (ONCE_FLAG_INIT): New macro.
14471 (once_flag): New type.
14472 (call_once): New function.
14473 * nptl/Makefile (libpthread-routines): Add call_once object.
14474 * nptl/Versions (libphread) [GLIBC_2.28]: Add call_once symbol.
14475 * nptl/call_once.c: New file.
14476 * sysdeps/nptl/threads.h (ONCE_FLAG_INIT): New define.
14477 (once_flag): New type.
14478 (call_once): New prototype.
14479
14480 [BZ #14092]
14481 * conform/data/threads.h-data (mtx_plain): New constant.
14482 (mtx_recursive): Likewise.
14483 (mtx_timed): Likewise.
14484 (mtx_t): New type.
14485 (mtx_init): New function.
14486 (mtx_lock): Likewise.
14487 (mtx_timedlock): Likewise.
14488 (mtx_trylock): Likewise.
14489 (mtx_unlock): Likewise.
14490 (mtx_destroy): Likewise.
14491 * nptl/Makefile (libpthread-routines): Add mtx_destroy, mtx_init,
14492 mtx_lock, mtx_timedlock, mtx_trylock, and mtx_unlock object.
14493 * nptl/Versions (libpthread) [GLIBC_2.28]): Add mtx_init, mtx_lock,
14494 mtx_timedlock, mtx_trylock, mtx_unlock, and mtx_destroy.
14495 * nptl/mtx_destroy.c: New file.
14496 * nptl/mtx_init.c: Likewise.
14497 * nptl/mtx_lock.c: Likewise.
14498 * nptl/mtx_timedlock.c: Likewise.
14499 * nptl/mtx_trylock.c: Likewise.
14500 * nptl/mtx_unlock.c: Likewise.
14501 * sysdeps/nptl/threads.h (mtx_plain): New enumeration.
14502 (mtx_recursive): Likewise.
14503 (mtx_timed): Likewise.
14504 (mtx_t): New type.
14505 (mtx_init): New prototype.
14506 (mtx_lock): Likewise.
14507 (mtx_timedlock): Likewise.
14508 (mtx_trylock): Likewise.
14509 (mtx_unlock): Likewise.
14510 (mtx_destroy): Likewise.
14511
14512 [BZ #14092]
14513 * conform/Makefile (conformtest-headers-ISO11): Add threads.h.
14514 (linknamespace-libs-ISO11): Add libpthread.a.
14515 * conform/data/threads.h-data: New file: add C11 thrd_* types and
14516 functions.
14517 * include/stdc-predef.h (__STDC_NO_THREADS__): Remove definition.
14518 * nptl/Makefile (headers): Add threads.h.
14519 (libpthread-routines): Add new C11 thread thrd_create, thrd_current,
14520 thrd_detach, thrd_equal, thrd_exit, thrd_join, thrd_sleep, and
14521 thrd_yield.
14522 * nptl/Versions (libpthread) [GLIBC_2.28]): Add new C11 thread
14523 thrd_create, thrd_current, thrd_detach, thrd_equal, thrd_exit,
14524 thrd_join, thrd_sleep, and thrd_yield symbols.
14525 * nptl/descr.h (struct pthread): Add c11 field.
14526 * nptl/pthreadP.h (ATTR_C11_THREAD): New define.
14527 * nptl/pthread_create.c (START_THREAD_DEFN): Call C11 thread start
14528 routine with expected function prototype.
14529 (__pthread_create_2_1): Add C11 threads check based on attribute
14530 value.
14531 * sysdeps/unix/sysdep.h (INTERNAL_SYSCALL_CANCEL): New macro.
14532 * nptl/thrd_create.c: New file.
14533 * nptl/thrd_current.c: Likewise.
14534 * nptl/thrd_detach.c: Likewise.
14535 * nptl/thrd_equal.c: Likewise.
14536 * nptl/thrd_exit.c: Likewise.
14537 * nptl/thrd_join.c: Likewise.
14538 * nptl/thrd_priv.h: Likewise.
14539 * nptl/thrd_sleep.c: Likewise.
14540 * nptl/thrd_yield.c: Likewise.
14541 * include/threads.h: Likewise.
14542
14543 2018-07-24 H.J. Lu <hongjiu.lu@intel.com>
14544
14545 * bits/indirect-return.h: New file.
14546 * misc/sys/cdefs.h (__glibc_has_attribute): New.
14547 * sysdeps/x86/bits/indirect-return.h: Likewise.
14548 * stdlib/Makefile (headers): Add bits/indirect-return.h.
14549 * stdlib/ucontext.h: Include <bits/indirect-return.h>.
14550 (swapcontext): Add __INDIRECT_RETURN.
14551 * string/tst-xbzero-opt.c (ALWAYS_INLINE): New.
14552 (prepare_test_buffer): Use it.
14553
14554 2018-07-24 Andreas Schwab <schwab@suse.de>
14555
14556 [BZ #23448]
14557 * iconvdata/ibm1364.c (MAX_NEEDED_OUTPUT) [FROM_LOOP]: Define.
14558 (MAX_NEEDED_INPUT) [TO_LOOP]: Define.
14559
14560 2018-07-24 H.J. Lu <hongjiu.lu@intel.com>
14561
14562 * sysdeps/unix/sysv/linux/i386/vfork.S (SYSCALL_ERROR_HANDLER):
14563 Redefine if shadow stack is enabled.
14564 (SYSCALL_ERROR_LABEL): Likewise.
14565 (__vfork): Pop shadow stack and jump back to to caller directly
14566 when shadow stack is in use.
14567 * sysdeps/unix/sysv/linux/x86_64/vfork.S (SYSCALL_ERROR_HANDLER):
14568 Redefine if shadow stack is enabled.
14569 (SYSCALL_ERROR_LABEL): Likewise.
14570 (__vfork): Pop shadow stack and jump back to to caller directly
14571 when shadow stack is in use.
14572
14573 2018-07-24 H.J. Lu <hongjiu.lu@intel.com>
14574
14575 * sysdeps/x86_64/tst-quadmod1.S (func): Add endbr64 if IBT is
14576 enabled.
14577 (foo): Likewise.
14578 * sysdeps/x86_64/tst-quadmod2.S (func) : Likewise.
14579 (foo): Likewise.
14580
14581 2018-07-20 Joseph Myers <joseph@codesourcery.com>
14582
14583 * scripts/build-many-glibcs.py (Context.checkout): Default
14584 binutils version to 2.31 branch.
14585
14586 2018-07-20 Zong Li <zong@andestech.com>
14587
14588 * scripts/build-many-glibcs.py (Context.checkout_tar): Change the
14589 URL of gcc's tarball.
14590
14591 2018-07-20 Florian Weimer <fweimer@redhat.com>
14592
14593 [BZ #23396]
14594 * posix/regcomp.c (build_equiv_class): When comparing weights, do
14595 not compare an extra byte after the end of the weights.
14596
14597 2018-07-20 Samuel Thibault <samuel.thibault@ens-lyon.org>
14598
14599 * sysdeps/mach/hurd/i386/tls.h (_hurd_tls_init): Set multiple_threads
14600 to 1.
14601 * sysdeps/hurd/include/hurd/port.h [!_ISOMAC]: Do not declare libc
14602 hidden prototypes.
14603 * sysdeps/mach/include/mach-shortcuts-hidden.h [!_ISOMAC]: Likewise.
14604 * sysdeps/mach/include/mach/mach_traps.h [!_ISOMAC]: Likewise.
14605 * scripts/check-execstack.awk: Consider `xfail' variable containing a
14606 list of libraries whose stack executability is expected.
14607 * elf/Makefile ($(objpfx)check-execstack.out): Pass
14608 $(check-execstack-xfail) to check-execstack.awk through `xfail'
14609 variable.
14610 * sysdeps/mach/hurd/i386/Makefile (check-execstack-xfail): Set to ld.so
14611 libc.so libpthread.so.
14612
14613 2018-07-20 Thomas Schwinge <tschwinge@gnu.org>
14614
14615 * sysdeps/mach/hurd/socket.c (__socket): Handle SOCK_CLOEXEC and
14616 SOCK_NONBLOCK.
14617 * sysdeps/mach/hurd/socketpair.c (__socketpair): Handle SOCK_CLOEXEC
14618 and SOCK_NONBLOCK.
14619 * sysdeps/mach/hurd/pipe2.c: New file, copy from pipe.c. Evolve it to
14620 implement __pipe2.
14621 * sysdeps/mach/hurd/pipe.c (__pipe): Reimplement using __pipe2.
14622
14623 2018-07-19 Leonardo Sandoval <leonardo.sandoval.gonzalez@intel.com>
14624
14625 * benchtests/scripts/compare_bench.py (__main__): use the argparse
14626 library to improve command line parsing.
14627 (__main__): make schema file as optional parameter (--schema),
14628 defaulting to benchtests/scripts/benchout.schema.json.
14629 (main): move out of the parsing stuff to __main_  and leave it
14630 only as caller of main comparison functions.
14631
14632 2018-07-19 H.J. Lu <hongjiu.lu@intel.com>
14633
14634 * NEWS: Add a note for Intel CET status.
14635 * manual/install.texi: Likewise.
14636 * INSTALL: Regenerated.
14637
14638 2018-07-18 Quentin PAGÈS <provaires@quentino.fr>
14639
14640 [BZ #23140]
14641 * localedata/locales/oc_FR (mon): Rename to...
14642 (alt_mon): This, then update October (typo fix).
14643 (mon): New content (genitive case, month names preceded by
14644 "de" or "d’").
14645
14646 [BZ #23422]
14647 * localedata/locales/oc_FR (abday): Update all items.
14648 (day): Update Wednesday and Saturday (typo fixes).
14649 (abmon): Update all items, except May.
14650 (d_fmt): Update "%d.%m.%Y" -> "%d/%m/%Y".
14651 (LC_IDENTIFICATION): Bump the revision number and date.
14652 Keep the "category" entries in alphabetic order.
14653 (LC_ADDRESS): Remove no longer needed comment.
14654 (LC_COLLATE): Use “copy "ca_ES"”.
14655 (LC_NAME): Set the correct values of "name_fmt", "name_mr", and
14656 "name_mrs".
14657
14658 2018-07-18 Joseph Myers <joseph@codesourcery.com>
14659
14660 * grp/tst_fgetgrent.c: Include <unistd.h>.
14661 (main): Use mkstemp instead of tmpnam.
14662 * io/test-utime.c (main): Likewise.
14663 * posix/annexc.c (macrofile): Change to modifiable array.
14664 (main): Remove macrofile here.
14665 (get_null_defines): Use mkstemp instead of tmpnam. Do not remove
14666 macrofile here.
14667 (check_header): Do not remove macrofile here.
14668 * posix/bug-getopt1.c: Include <stdlib.h>.
14669 (do_test): Use mkstemp instead of tmpnam.
14670 * posix/bug-getopt2.c: Include <stdlib.h>.
14671 (do_test): Use mkstemp instead of tmpnam.
14672 * posix/bug-getopt3.c: Include <stdlib.h>.
14673 (do_test): Use mkstemp instead of tmpnam.
14674 * posix/bug-getopt4.c: Include <stdlib.h>.
14675 (do_test): Use mkstemp instead of tmpnam.
14676 * posix/bug-getopt5.c: Include <stdlib.h>.
14677 (do_test): Use mkstemp instead of tmpnam.
14678 * stdio-common/bug7.c: Include <stdlib.h> and <unistd.h>.
14679 (main): Use mkstemp instead of tmpnam.
14680 * stdio-common/tst-fdopen.c: Include <stdlib.h>.
14681 (main): Use mkstemp instead of tmpnam.
14682 * stdio-common/tst-ungetc.c: Include <stdlib.h>.
14683 (main): use mkstemp instead of tmpnam.
14684 * stdlib/isomac.c (macrofile): Change to modifiable array.
14685 (main): Remove macrofile here.
14686 (get_null_defines): Use mkstemp instead of tmpnam. Do not remove
14687 macrofile here.
14688 (check_header): Do not remove macrofile here.
14689
14690 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
14691
14692 * manual/tunables.texi: Document glibc.tune.x86_ibt and
14693 glibc.tune.x86_shstk.
14694
14695 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
14696
14697 * NEWS: Mention --enable-cet.
14698 * manual/install.texi: Document --enable-cet.
14699 * INSTALL: Regenerated.
14700
14701 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
14702
14703 * sysdeps/x86_64/multiarch/memcmp-sse4.S (BRANCH_TO_JMPTBL_ENTRY):
14704 Add _CET_NOTRACK before indirect jump to jump table.
14705
14706 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
14707
14708 * sysdeps/i386/i686/multiarch/memset-sse2-rep.S
14709 (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
14710 to jump table.
14711
14712 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
14713
14714 * sysdeps/i386/i686/multiarch/strcat-sse2.S
14715 (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
14716 to jump table.
14717
14718 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
14719
14720 * sysdeps/i386/i686/multiarch/strcpy-sse2.S
14721 (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
14722 to jump table.
14723
14724 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
14725
14726 * sysdeps/i386/i686/multiarch/memcpy-ssse3.S
14727 (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
14728 to jump table.
14729
14730 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
14731
14732 * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S
14733 (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
14734 to jump table.
14735 (BRANCH_TO_JMPTBL_ENTRY_TAIL): Likewise.
14736
14737 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
14738
14739 * sysdeps/i386/i686/multiarch/memcmp-sse4.S
14740 (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
14741 to jump table.
14742
14743 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
14744
14745 * sysdeps/i386/i686/multiarch/memset-sse2.S
14746 (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
14747 to jump table.
14748
14749 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
14750
14751 * sysdeps/i386/i686/memcmp.S (memcmp): Add _CET_NOTRACK before
14752 indirect jump to jump table.
14753
14754 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
14755
14756 * sysdeps/x86_64/multiarch/memcpy-ssse3.S
14757 (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
14758 to jump table.
14759 (MEMCPY): Likewise.
14760
14761 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
14762
14763 * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S
14764 (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
14765 to jump table.
14766 (MEMCPY): Likewise.
14767
14768 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
14769
14770 * sysdeps/x86_64/multiarch/strcmp-sse42.S (STRCMP_SSE42): Add
14771 _CET_NOTRACK before indirect jump to jump table.
14772
14773 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
14774
14775 * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S
14776 (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
14777 to jump table.
14778
14779 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
14780
14781 * sysdeps/x86_64/strcmp.S (STRCMP): Add _CET_NOTRACK before
14782 indirect jump to jump table.
14783
14784 2018-07-18 Valery Timiriliyev <timiriliyev@gmail.com>
14785
14786 [BZ #22241]
14787 * localedata/Makefile (test-input): Add sah_RU.UTF-8.
14788 (LOCALES): Likewise.
14789 * localedata/SUPPORTED (sah_RU/UTF-8): New entry.
14790 * localedata/locales/sah_RU: New file.
14791 * localedata/sah_RU.UTF-8.in: New file.
14792
14793 2018-07-17 H.J. Lu <hongjiu.lu@intel.com>
14794
14795 * sysdeps/i386/add_n.S: Include <sysdep.h>, instead of
14796 "sysdep.h".
14797 (__mpn_add_n): Save and restore %ebx if IBT is enabed. Add
14798 _CET_ENDBR to indirect jump targets and adjust jump destination
14799 for _CET_ENDBR.
14800 * sysdeps/i386/i686/add_n.S: Include <sysdep.h>, instead of
14801 "sysdep.h".
14802 (__mpn_add_n): Save and restore %ebx if IBT is enabed. Add
14803 _CET_ENDBR to indirect jump targets and adjust jump destination
14804 for _CET_ENDBR.
14805 * sysdeps/i386/sub_n.S: Include <sysdep.h>, instead of
14806 "sysdep.h".
14807 (__mpn_sub_n): Save and restore %ebx if IBT is enabed. Add
14808 _CET_ENDBR to indirect jump targets and adjust jump destination
14809 for _CET_ENDBR.
14810
14811 2018-07-17 H.J. Lu <hongjiu.lu@intel.com>
14812
14813 * sysdeps/x86_64/multiarch/strcmp-sse42.S (STRCMP_SSE42): Add
14814 _CET_ENDBR.
14815
14816 2018-07-17 H.J. Lu <hongjiu.lu@intel.com>
14817
14818 * sysdeps/i386/dl-tlsdesc.S (_dl_tlsdesc_return): Add
14819 _CET_ENDBR.
14820 (_dl_tlsdesc_undefweak): Likewise.
14821 (_dl_tlsdesc_dynamic): Likewise.
14822 (_dl_tlsdesc_resolve_abs_plus_addend): Likewise.
14823 (_dl_tlsdesc_resolve_rel): Likewise.
14824 (_dl_tlsdesc_resolve_rela): Likewise.
14825 (_dl_tlsdesc_resolve_hold): Likewise.
14826 * sysdeps/x86_64/dl-tlsdesc.S (_dl_tlsdesc_return): Likewise.
14827 (_dl_tlsdesc_undefweak): Likewise.
14828 (_dl_tlsdesc_dynamic): Likewise.
14829 (_dl_tlsdesc_resolve_rela): Likewise.
14830 (_dl_tlsdesc_resolve_hold): Likewise.
14831
14832 2018-07-17 H.J. Lu <hongjiu.lu@intel.com>
14833
14834 * sysdeps/i386/crti.S (_init): Add _CET_ENDBR.
14835 (_fini): Likewise.
14836 * sysdeps/x86_64/crti.S (_init): Likewise.
14837 (_fini): Likewise.
14838
14839 2018-07-17 Rafał Lużyński <digitalfreak@lingonborough.com>
14840
14841 [BZ #23140]
14842 * localedata/locales/os_RU (mon): Rename to...
14843 (alt_mon): This.
14844 (mon): Import from CLDR (genitive case).
14845
14846 2018-07-17 H.J. Lu <hongjiu.lu@intel.com>
14847
14848 * sysdeps/x86/cpu-features.c: Always include <dl-cet.h> and
14849 cet-tunables.h> when CET is enabled.
14850
14851 2018-07-16 H.J. Lu <hongjiu.lu@intel.com>
14852
14853 [BZ #21598]
14854 * configure.ac: Add --enable-cet.
14855 * configure: Regenerated.
14856 * elf/Makefille (all-built-dso): Add a comment.
14857 * elf/dl-load.c (filebuf): Moved before "dynamic-link.h".
14858 Include <dl-prop.h>.
14859 (_dl_map_object_from_fd): Call _dl_process_pt_note on PT_NOTE
14860 segment.
14861 * elf/dl-open.c: Include <dl-prop.h>.
14862 (dl_open_worker): Call _dl_open_check.
14863 * elf/rtld.c: Include <dl-prop.h>.
14864 (dl_main): Call _rtld_process_pt_note on PT_NOTE segment. Call
14865 _rtld_main_check.
14866 * sysdeps/generic/dl-prop.h: New file.
14867 * sysdeps/i386/dl-cet.c: Likewise.
14868 * sysdeps/unix/sysv/linux/x86/cpu-features.c: Likewise.
14869 * sysdeps/unix/sysv/linux/x86/dl-cet.h: Likewise.
14870 * sysdeps/x86/cet-tunables.h: Likewise.
14871 * sysdeps/x86/check-cet.awk: Likewise.
14872 * sysdeps/x86/configure: Likewise.
14873 * sysdeps/x86/configure.ac: Likewise.
14874 * sysdeps/x86/dl-cet.c: Likewise.
14875 * sysdeps/x86/dl-procruntime.c: Likewise.
14876 * sysdeps/x86/dl-prop.h: Likewise.
14877 * sysdeps/x86/libc-start.h: Likewise.
14878 * sysdeps/x86/link_map.h: Likewise.
14879 * sysdeps/i386/dl-trampoline.S (_dl_runtime_resolve): Add
14880 _CET_ENDBR.
14881 (_dl_runtime_profile): Likewise.
14882 (_dl_runtime_resolve_shstk): New.
14883 (_dl_runtime_profile_shstk): Likewise.
14884 * sysdeps/linux/x86/Makefile (sysdep-dl-routines): Add dl-cet
14885 if CET is enabled.
14886 (CFLAGS-.o): Add -fcf-protection if CET is enabled.
14887 (CFLAGS-.os): Likewise.
14888 (CFLAGS-.op): Likewise.
14889 (CFLAGS-.oS): Likewise.
14890 (asm-CPPFLAGS): Add -fcf-protection -include cet.h if CET
14891 is enabled.
14892 (tests-special): Add $(objpfx)check-cet.out.
14893 (cet-built-dso): New.
14894 (+$(cet-built-dso:=.note)): Likewise.
14895 (common-generated): Add $(cet-built-dso:$(common-objpfx)%=%.note).
14896 ($(objpfx)check-cet.out): New.
14897 (generated): Add check-cet.out.
14898 * sysdeps/x86/cpu-features.c: Include <dl-cet.h> and
14899 <cet-tunables.h>.
14900 (TUNABLE_CALLBACK (set_x86_ibt)): New prototype.
14901 (TUNABLE_CALLBACK (set_x86_shstk)): Likewise.
14902 (init_cpu_features): Call get_cet_status to check CET status
14903 and update dl_x86_feature_1 with CET status. Call
14904 TUNABLE_CALLBACK (set_x86_ibt) and TUNABLE_CALLBACK
14905 (set_x86_shstk). Disable and lock CET in libc.a.
14906 * sysdeps/x86/cpu-tunables.c: Include <cet-tunables.h>.
14907 (TUNABLE_CALLBACK (set_x86_ibt)): New function.
14908 (TUNABLE_CALLBACK (set_x86_shstk)): Likewise.
14909 * sysdeps/x86/sysdep.h (_CET_NOTRACK): New.
14910 (_CET_ENDBR): Define if not defined.
14911 (ENTRY): Add _CET_ENDBR.
14912 * sysdeps/x86/dl-tunables.list (glibc.tune): Add x86_ibt and
14913 x86_shstk.
14914 * sysdeps/x86_64/dl-trampoline.h (_dl_runtime_resolve): Add
14915 _CET_ENDBR.
14916 (_dl_runtime_profile): Likewise.
14917
14918 2018-07-16 Rogerio A. Cardoso <rcardoso@linux.vnet.ibm.com>
14919
14920 [BZ #21895]
14921 * sysdeps/powerpc/powerpc64/__longjmp-common.S: Remove condition code for
14922 restore r2 on longjmp.
14923 * sysdeps/powerpc/powerpc64/Makefile: Added tst-setjmp-bug21895-static to
14924 test list.
14925 Added rules to build test tst-setjmp-bug21895-static.
14926 Added module setjmp-bug21895 and rules to build a shared object from it.
14927 * sysdeps/powerpc/powerpc64/setjmp-bug21895.c: New test file.
14928 * sysdeps/powerpc/powerpc64/tst-setjmp-bug21895-static.c: New test file.
14929
14930 2018-07-15 Wilco Dijkstra <wdijkstr@arm.com>
14931
14932 * benchtests/bench-strcasestr.c: Rename __strnlen to strnlen.
14933 * benchtests/bench-strstr.c: Likewise.
14934 * string/memmem.c (FASTSEARCH): Define.
14935 * string/str-two-way.h (two_way_short_needle): Minor cleanups.
14936 Add support for FASTSEARCH.
14937 * string/strcasestr.c (AVAILABLE): Use read-ahead __strnlen.
14938 * string/strstr.c (AVAILABLE): Use read-ahead __strnlen.
14939 (FASTSEARCH): Define.
14940 * string/test-strcasestr.c: Rename __strnlen to strnlen.
14941 * string/test-strstr.c: Likewise.
14942
14943 2018-07-15 H.J. Lu <hongjiu.lu@intel.com>
14944
14945 * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S: Undef
14946 SHADOW_STACK_POINTER_OFFSET after including <jmp_buf-ssp.h>.
14947
14948 2018-07-14 Igor Tsimbalist <igor.v.tsimbalist@intel.com>
14949 H.J. Lu <hongjiu.lu@intel.com>
14950
14951 * sysdeps/i386/__longjmp.S: Include <jmp_buf-ssp.h>.
14952 (__longjmp): Restore shadow stack pointer if shadow stack is
14953 enabled, SHADOW_STACK_POINTER_OFFSET is defined and __longjmp
14954 isn't defined for __longjmp_cancel.
14955 * sysdeps/i386/bsd-_setjmp.S: Include <jmp_buf-ssp.h>.
14956 (_setjmp): Save shadow stack pointer if shadow stack is enabled
14957 and SHADOW_STACK_POINTER_OFFSET is defined.
14958 * sysdeps/i386/bsd-setjmp.S: Include <jmp_buf-ssp.h>.
14959 (setjmp): Save shadow stack pointer if shadow stack is enabled
14960 and SHADOW_STACK_POINTER_OFFSET is defined.
14961 * sysdeps/i386/setjmp.S: Include <jmp_buf-ssp.h>.
14962 (__sigsetjmp): Save shadow stack pointer if shadow stack is
14963 enabled and SHADOW_STACK_POINTER_OFFSET is defined.
14964 * sysdeps/unix/sysv/linux/i386/____longjmp_chk.S: Include
14965 <jmp_buf-ssp.h>.
14966 (____longjmp_chk): Restore shadow stack pointer if shadow stack
14967 is enabled and SHADOW_STACK_POINTER_OFFSET is defined.
14968 * sysdeps/unix/sysv/linux/x86/Makefile (gen-as-const-headers):
14969 Remove jmp_buf-ssp.sym.
14970 * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S: Include
14971 <jmp_buf-ssp.h>.
14972 (____longjmp_chk): Restore shadow stack pointer if shadow stack
14973 is enabled and SHADOW_STACK_POINTER_OFFSET is defined.
14974 * sysdeps/x86/Makefile (gen-as-const-headers): Add
14975 jmp_buf-ssp.sym.
14976 * sysdeps/x86/jmp_buf-ssp.sym: New dummy file.
14977 * sysdeps/x86_64/__longjmp.S: Include <jmp_buf-ssp.h>.
14978 (__longjmp): Restore shadow stack pointer if shadow stack is
14979 enabled, SHADOW_STACK_POINTER_OFFSET is defined and __longjmp
14980 isn't defined for __longjmp_cancel.
14981 * sysdeps/x86_64/setjmp.S: Include <jmp_buf-ssp.h>.
14982 (__sigsetjmp): Save shadow stack pointer if shadow stack is
14983 enabled and SHADOW_STACK_POINTER_OFFSET is defined.
14984
14985 2018-07-14 H.J. Lu <hongjiu.lu@intel.com>
14986
14987 [BZ #22563]
14988 * nptl/pthread_create.c: Include <tls-setup.h>.
14989 (__pthread_create_2_1): Call tls_setup_tcbhead.
14990 * sysdeps/generic/tls-setup.h: New file.
14991 * sysdeps/x86/nptl/tls-setup.h: Likewise.
14992 * sysdeps/i386/nptl/tcb-offsets.sym (FEATURE_1_OFFSET): New.
14993 * sysdeps/x86_64/nptl/tcb-offsets.sym (FEATURE_1_OFFSET):
14994 Likewise.
14995 * sysdeps/i386/nptl/tls.h (tcbhead_t): Rename __glibc_reserved1
14996 to feature_1.
14997 * sysdeps/x86_64/nptl/tls.h (tcbhead_t): Likewise.
14998 * sysdeps/x86/sysdep.h (X86_FEATURE_1_IBT): New.
14999 (X86_FEATURE_1_SHSTK): Likewise.
15000 (CET_ENABLED): Likewise.
15001 (IBT_ENABLED): Likewise.
15002 (SHSTK_ENABLED): Likewise.
15003
15004 2018-07-13 Rafał Lużyński <digitalfreak@lingonborough.com>
15005
15006 [BZ #23208]
15007 * localedata/Makefile (test-input): Add dsb_DE.UTF-8.
15008 (LOCALES): Likewise.
15009 * localedata/dsb_DE.UTF-8.in: New file.
15010 * localedata/locales/dsb_DE (LC_COLLATE): Fix syntax error.
15011
15012 2018-07-12 Florian Weimer <fweimer@redhat.com>
15013
15014 * nptl/allocatestack.c [_STACK_GROWS_UP] (allocate_stack): Call
15015 __mprotect, not mprotect.
15016
15017 2018-07-11 Florian Weimer <fweimer@redhat.com>
15018
15019 * io/Makefile (headers): Add bits/statx.h.
15020
15021 2018-07-10 Mike FABIAN <mfabian@redhat.com>
15022
15023 * localedata/charmaps/UTF-8: Use correct Unicode version 11.0.0 in comment.
15024 * localedata/locales/i18n_ctype: Use correct Unicode version in comments
15025 and headers.
15026 * localedata/unicode-gen/utf8_gen.py: Add option to specify Unicode version
15027 * localedata/unicode-gen/Makefile: Use option to specify Unicode version
15028 for utf8_gen.py
15029
15030 2018-07-10 Florian Weimer <fweimer@redhat.com>
15031
15032 * io/Makefile (routines): Add statx.
15033 (tests-internal): Add tst-statx.
15034 * io/Versions (GLIBC_2.28): Export statx.
15035 * io/bits/statx.h: New file.
15036 * io/sys/stat.h [__USE_GNU]: Include it.
15037 * io/fcntl.h [__USE_GNU] (AT_STATX_SYNC_TYPE)
15038 (AT_STATX_SYNC_AS_STAT, AT_STATX_FORCE_SYNC, AT_STATX_DONT_SYNC):
15039 Define.
15040 * io/statx.c: New file.
15041 * io/statx_generic.: Likewise.
15042 * io/tst-statx.: Likewise.
15043 * include/bits/statx.h: Likewise.
15044 * sysdeps/unix/sysv/linux/kernel-features.h
15045 [__LINUX_KERNEL_VERSION >= 0x040B00] (__ASSUME_STATX): Define.
15046 * sysdeps/unix/sysv/linux/alpha/kernel-features.h
15047 [__LINUX_KERNEL_VERSION < 0x040D00] (__ASSUME_STATX): Undefine.
15048 * sysdeps/unix/sysv/linux/ia64/kernel-features.h (__ASSUME_STATX):
15049 Undefine.
15050 * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
15051 [__LINUX_KERNEL_VERSION < 0x040C00] (__ASSUME_STATX): Undefine.
15052 * sysdeps/unix/sysv/linux/statx.c: New file.
15053 * manual/filesys.texi: Note that statx is undocumented.
15054 * sysdeps/**/libc*.abilist: Update.
15055
15056 2018-07-10 Adhemerval Zanella <adhemerval.zanella@linaro.org>
15057
15058 * sysdeps/unix/sysv/linux/tst-ofdlocks-compat.c: Add a comment about
15059 a kernel issue which lead to test failure in some cases.
15060
15061 2018-07-10 Florian Weimer <fweimer@redhat.com>
15062
15063 [BZ #23036]
15064 * posix/regexec.c (check_node_accept_bytes): When comparing
15065 weights, do not compare an extra byte after the end of the
15066 weights.
15067
15068 2018-07-10 Florian Weimer <fweimer@redhat.com>
15069
15070 * libio/readline.c: Fix copyright year.
15071 * libio/tst-readline.c Likewise.
15072 * nss/tst-nss-files-hosts-getent.c: Likewise.
15073
15074 2018-07-06 Florian Weimer <fweimer@redhat.com>
15075
15076 [BZ #18991]
15077 * nss/nss_files/files-XXX.c (internal_getent): Use
15078 __libc_readline_unlocked. Seek back to the start of the line if
15079 parsing failes with ERANGE.
15080 (get_contents_ret, get_contents): Remove.
15081 * nss/tst-nss-files-hosts-getent.c: New file.
15082 * nss/Makefile (tests): Add tst-nss-files-hosts-getent.
15083 (tst-nss-files-hosts-getent): Link with -ldl.
15084
15085 2018-07-06 Florian Weimer <fweimer@redhat.com>
15086
15087 * include/stdio.h (__libc_readline_unlocked): Declare.
15088 (__ftello64, __fseeko64): Declare aliases.
15089 * libio/readline.c: New file.
15090 * libio/tst-readline.c: Likewise.
15091 (routines): Add readline.
15092 (tests-internal): Add tst-readlime.
15093 * libio/Versions (GLIBC_PRIVATE): Export __fseeko64, __ftello64,
15094 __libc_readline_unlocked.
15095 * libio/fseeko.c (__fseeko): Rename from fseeko.
15096 (fseeko): Add alias.
15097 [__OFF_T_MATCHES_OFF64_T] (fseeko64, __fseeko64): Likewise.
15098 * libio/fseeko64.c (__fseeko64): Rename from fseeko64.
15099 (fseeko64): Add alias.
15100 * libio/ftello.c [__OFF_T_MATCHES_OFF64_T] (__ftello64): Add alias.
15101 * libio/ftello64.c (__ftello64): Rename from ftello64.
15102 (ftello64): Add alias.
15103
15104 2018-07-06 Szabolcs Nagy <szabolcs.nagy@arm.com>
15105
15106 * sysdeps/unix/sysv/linux/aarch64/dl-procinfo.h (HWCAP_IMPORTANT): Add
15107 HWCAP_ATOMICS.
15108
15109 2018-07-06 Szabolcs Nagy <szabolcs.nagy@arm.com>
15110
15111 * sysdeps/unix/sysv/linux/aarch64/cpu-features.c (init_cpu_features):
15112 Use dl_hwcap without masking.
15113 * sysdeps/unix/sysv/linux/aarch64/dl-procinfo.h (HWCAP_IMPORTANT):
15114 Remove HWCAP_CPUID.
15115
15116 2018-07-06 Florian Weimer <fweimer@redhat.com>
15117
15118 * conform/conformtest.pl (checknamespace): Escape literal braces
15119 in regular expressions.
15120
15121 2018-07-06 Amit Pawar <amit.pawar@amd.com>
15122
15123 * sysdeps/x86/cpu-features.c (get_common_indeces):
15124 AVX_Fast_Unaligned_Load is enabled when AVX2 is detected.
15125 * sysdeps/x86/cpu-features.c (init_cpu_features):
15126 AVX_Fast_Unaligned_Load is disabled for Excavator core.
15127
15128 2018-07-05 Florian Weimer <fweimer@redhat.com>
15129
15130 * csu/Makefile (CFLAGS-static-reloc.os): Build with stack
15131 protector.
15132 (CFLAGS-elf-init.oS): Likewise.
15133
15134 2018-07-05 Florian Weimer <fweimer@redhat.com>
15135 Carlos O'Donell <carlos@redhat.com>
15136
15137 * debug/Makefile (CFLAGS-stack_chk_fail_local.c): Remove
15138 $(no-stack-protector). stack_chk_fail_local.c can be compiled
15139 with stack protector enabled because there is no risk of infinite
15140 recursion.
15141
15142 2018-07-05 Maciej W. Rozycki <macro@mips.com>
15143
15144 [BZ #19818]
15145 [BZ #23307]
15146 * libc-abis (ABSOLUTE): New ABI.
15147 * sysdeps/unix/sysv/linux/mips/libc-abis (ABSOLUTE): New ABI.
15148 * NEWS: Mention the new ABI.
15149
15150 2018-07-05 Florian Weimer <fweimer@redhat.com>
15151
15152 [BZ # 17662]
15153 * libio/stdio.h [__USE_GNU] (RENAME_NOREPLACE, RENAME_EXCHANGE)
15154 (RENAME_WHITEOUT): Define.
15155 [__USE_GNU] (renameat2): Declare.
15156 * stdio-common/Makefile (routines): Add renameat2.
15157 (tests): Add tst-renameat2.
15158 * stdio-common/Versions (GLIBC_2_28): Export renameat2.
15159 * stdio-common/renameat2.c: New file.
15160 * stdio-common/tst-renameat2.c: Likewise.
15161 * sysdeps/unix/sysv/linux/renameat2.c: Likewise.
15162 * manual/filesys.texi (Temporary Files): Note that renameat2 is
15163 undocumented.
15164 * sysdeps/unix/sysv/linux/kernel-features.h
15165 [__LINUX_KERNEL_VERSION >= 0x030F00] (__ASSUME_RENAMEAT2): Define.
15166 * sysdeps/unix/sysv/linux/alpha/kernel-features.h
15167 [__LINUX_KERNEL_VERSION < 0x031100] (__ASSUME_RENAMEAT2): Undefine.
15168 * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
15169 [__LINUX_KERNEL_VERSION < 0x031100] (__ASSUME_RENAMEAT2): Undefine.
15170 * sysdeps/unix/sysv/linux/sh/kernel-features.h
15171 [__LINUX_KERNEL_VERSION < 0x040800] (__ASSUME_RENAMEAT2): Undefine.
15172 * sysdeps/unix/sysv/linux/sparc/kernel-features.h
15173 [__LINUX_KERNEL_VERSION < 0x031000] (__ASSUME_RENAMEAT2): Undefine.
15174 * include/stdio.h (__renameat): Add alias for renameat.
15175 * stdio-common/renameat.c (__renameat): Rename from renameat.
15176 Add hidden definition and alias.
15177 * sysdeps/unix/sysv/linux/renameat.c: Likewise.
15178 * sysdeps/mach/hurd/renameat.c: Likewise.
15179 * sysdeps/**/libc*.abilist: Add renameat2.
15180
15181 2018-07-04 Adhemerval Zanella <adhemerval.zanella@linaro.org>
15182
15183 * posix/bug-regex33.c: Fix build after regex sync.
15184
15185 2018-07-04 Carlos O'Donell <carlos@redhat.com>
15186
15187 [BZ #23164]
15188 * localedata/tst-langinfo-setlocale.c: New file.
15189 * localedata/tst-langinfo-setlocale-static.c: New file.
15190 * localedata/tst-langinfo-newlocale.c: New file.
15191 * localedata/tst-langinfo-newlocale-static.c: New file.
15192 * localedata/Makefile (test-srcs): Remove tst-langinfo. Add
15193 tst-langinfo-setlocale, tst-langinfo-setlocale-static,
15194 tst-langinfo-newlocale, tst-langinfo-newlocale-static.
15195 (tests-static): Remove tst-langinfo-static. Add
15196 tst-langinfo-newlocale-static, tst-langinfo-setlocale-static.
15197 (tests-special): Remove $(objpfx)tst-langinfo.out,
15198 $(objpfx)tst-langinfo-static.out. Add
15199 $(objpfx)tst-langinfo-setlocale.out,
15200 $(objpfx)tst-langinfo-newlocale.out,
15201 $(objpfx)tst-langinfo-setlocale-static.out,
15202 $(objpfx)tst-langinfo-newlocale-static.out.
15203 ($(objpfx)tst-langinfo.out): Remove.
15204 ($(objpfx)tst-langinfo-static.out): Remove.
15205 ($(objpfx)tst-langinfo-newlocale.out): New target.
15206 ($(objpfx)tst-langinfo-newlocale-static.out): New target.
15207 (test-xfail-tst-langinfo-newlocale-static): Add.
15208 ($(objpfx)tst-langinfo-setlocale.out): New target.
15209 ($(objpfx)tst-langinfo-setlocale-static.out): New target.
15210 * localedata/tst-langinfo.c: Call test_locale.
15211 * localedata/tst-langinfo.sh: Add LC_MONETARY CURRENCY_SYMBOL test
15212 data.
15213
15214 2018-07-04 Florian Weimer <fweimer@redhat.com>
15215
15216 testrun.sh: Implement --tool=strace, --tool=valgrind
15217 * Makefile (testrun-script): Define variable.
15218 (testrun.sh): Use variable.
15219 * manual/install.texi (Tools for Compilation): make 4.0 or later
15220 is required.
15221 * configure.ac: Check for make 4.0 or later.
15222 * INSTALL: Regenerate.
15223 * configure: Likewise.
15224
15225 2018-07-04 Adhemerval Zanella <adhemerval.zanella@linaro.org>
15226
15227 [BZ #23233]
15228 [BZ #21163]
15229 [BZ #18986]
15230 [BZ #13762]
15231 * posix/Makefile (tests): Add bug-regex37 and bug-regex38.
15232 * posix/PCRE.tests: Remove invalid test.
15233 * posix/bug-regex28.c: Fix expected values for used syntax.
15234 * posix/bug-regex37.c: New file.
15235 * posix/bug-regex38.c: Likewise.
15236 * posix/regcomp.c: Sync with gnulib.
15237 * posix/regex.c: Likewise.
15238 * posix/regex.h: Likewise.
15239 * posix/regex_internal.c: Likewise.
15240 * posix/regex_internal.h: Likewise.
15241 * posix/regexec.c: Likewise.
15242
15243 2018-06-26 Mike FABIAN <mfabian@redhat.com>
15244
15245 [BZ #23308]
15246 * unicode-gen/Makefile (UNICODE_VERSION): Set to 11.0.0.
15247 * localedata/unicode-gen/DerivedCoreProperties.txt: Update to Unicode 11.0.0.
15248 * localedata/unicode-gen/EastAsianWidth.txt: likewise.
15249 * localedata/unicode-gen/PropList.txt: likewise.
15250 * localedata/unicode-gen/UnicodeData.txt: likewise.
15251 * localedata/charmaps/UTF-8: Regenerate.
15252 * localedata/locales/i18n_ctype: likewise.
15253 * localedata/locales/tr_TR: likewise.
15254 * localedata/locales/translit_circle: likewise.
15255 * localedata/locales/translit_cjk_compat: likewise.
15256 * localedata/locales/translit_combining: likewise.
15257 * localedata/locales/translit_compat: likewise.
15258 * localedata/locales/translit_font: likewise.
15259 * localedata/locales/translit_fraction: likewise.
15260
15261 2018-07-03 Florian Weimer <fweimer@redhat.com>
15262
15263 [BZ #23363]
15264 * stdio-common/tst-printf.c (DEC, INT, UNS, fp_test): Remove.
15265 * stdio-common/tst-printf.sh: Adjust expected output.
15266 * LICENSES: Update.
15267
15268 2018-07-03 Adhemerval Zanella <adhemerval.zanella@linaro.org>
15269
15270 * sysdeps/mach/hurd/i386/libc.abilist [GLIBC_2.28] (fcntl): Remove
15271 symbol.
15272
15273 2018-07-02 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
15274
15275 * stdio-common/Makefile (test-srcs): Add tst-printfsz-islongdouble.
15276 (tests-special) Add $(objpfx)tst-printfsz-islongdouble.out.
15277 ($(objpfx)tst-printfsz-islongdouble.out): New build and run rule.
15278 * stdio-common/tst-printfsz-islongdouble.c: New file.
15279 * stdio-common/tst-printfsz-islongdouble.sh: Likewise.
15280 * sysdeps/ieee754/ldbl-128ibm-compat/Makefile:
15281 [subdir == stdio-common] (routines): Add ieee128-printf_size.
15282 [subdir == stdio-common] (tests-internal): Add
15283 test-printf-size-ieee128, and test-printf-size-ibm128.
15284 [subdir == stdio-common] (CFLAGS-test-printf-size-ieee128.c)
15285 (CFLAGS-test-printf-size-ibm128.c): New variables.
15286 [subdir == stdio-common] (tests-special): Add
15287 $(objpfx)test-printf-size-ieee128.out and
15288 $(objpfx)test-printf-size-ibm128.out.
15289 [subdir == stdio-common] ($(objpfx)test-printf-size-ieee128.out)
15290 ($(objpfx)test-printf-size-ibm128.out): New build and run rules.
15291 * sysdeps/ieee754/ldbl-128ibm-compat/Versions (libc): Add
15292 __printf_sizeieee128.
15293 * sysdeps/ieee754/ldbl-128ibm-compat/ieee128-printf_size.c:
15294 New file.
15295 * sysdeps/ieee754/ldbl-128ibm-compat/test-printf-size-ibm128.c:
15296 Likewise.
15297 * sysdeps/ieee754/ldbl-128ibm-compat/test-printf-size-ieee128.c:
15298 Likewise.
15299
15300 2018-07-02 Szabolcs Nagy <szabolcs.nagy@arm.com>
15301
15302 * sysdeps/ieee754/flt-32/e_powf.c (__powf): Use uint32_t.
15303 (exp2f_inline): Likewise.
15304 * sysdeps/ieee754/flt-32/math_config.h (__math_oflowf): Likewise.
15305 (__math_uflowf): Likewise.
15306 (__math_may_uflowf): Likewise.
15307 (__math_divzerof): Likewise.
15308 (__math_invalidf): Likewise.
15309 * sysdeps/ieee754/flt-32/math_errf.c (xflowf): Likewise.
15310 (__math_oflowf): Likewise.
15311 (__math_uflowf): Likewise.
15312 (__math_may_uflowf): Likewise.
15313 (__math_divzerof): Likewise.
15314 (__math_invalidf): Likewise.
15315
15316 2018-06-29 DJ Delorie <dj@redhat.com>
15317 Carlos O'Donell <carlos@redhat.com>
15318
15319 [BZ #23329]
15320 * include/libc-symbols.h: Comment the freeres framework.
15321 * include/set-hooks.h: Include libc-symbols.h. Fix comment.
15322 * dlfcn/Makefile (libdl-routines): Add dlfreeres.
15323 * dlfcn/Versions (GLIBC_PRIVATE): Add __libdl_freeres.
15324 * dlfcn/dlerror.c: Include libc-symbols.h
15325 (__dlerror_main_freeres): New function.
15326 * dlfcn/dlfreeres.c: New file.
15327 * dlfcn/sdlfreeres.c: New file.
15328 * include/dlfcn.h: Declare __dlerror_main_freeres.
15329 * malloc/set-freeres.c: Declare __libdl_freeres, and
15330 __libpthread_freeres.
15331 (__libc_subfreeres): Call __libdl_freeres, and __libpthread_freeres if
15332 the releavant libraries are loaded.
15333 * malloc/thread-freeres.c: Add comments.
15334 * nptl/Makefile (libpthread-routines): Add nptlfreeres.
15335 * nptl/Version (GLIBC_PRIVATE): Add __libpthread_freeres.
15336 * nptl/allocatestack.c (__nptl_free_stacks): New function.
15337 (__free_stacks): Rename to...
15338 (free_stacks): ...this. Mark static.
15339 (queue_stack): Call free_stacks.
15340 * nptl/libc_pthread_init.c [SHARED] (freeres_libpthread): Delete.
15341 * nptl/nptl-init.c: Delete delcaration of nptl_freeres.
15342 * sysdeps/nptl/pthread-functions.h (pthread_functions): Remove
15343 ptr_freeres element from struct.
15344 (pthread_functions): Remove .ptr_freeres from struct initializer.
15345 [SHARED] (nptl_freeres): Remove.
15346 * nptl/nptlfreeres.c: New file.
15347 * nptl/pthreadP.h
15348 [IS_IN (libpthread) && SHARED ] (__unwind_freeres): Rename to...
15349 [IS_IN (libpthread)] (__nptl_unwind_freeres): ...this. Mark
15350 attribute_hidden.
15351 (__free_stacks): Rename to...
15352 (__nptl_stacks_freeres): ...this.
15353 (__shm_directory_freeres): Declare.
15354 * nptl/unwind-forcedunwind.c (__unwind_freeres): Rename to...
15355 (__nptl_unwind_freeres): ...this.
15356 * resolv/res-close.c: Add comment.
15357 * resolv/resolv_conf.c: Include libc-symbols.h.
15358 * string/strerror_l.c: Include libc-symbols.h.
15359 * sunrpc/rpc_thread.c: Include libc-symbols.h.
15360 * sysdeps/mach/strerror_l.c: Inlcude libc-symbols.h
15361 * sysdeps/unix/sysv/linux/shm-directory.c (freeit): Rename to...
15362 [IS_IN (libpthread)] (__shm_directory_freeres): ...this.
15363
15364 2018-06-29 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
15365
15366 * stdlib/tst-strfmon_l.c: Add tests for long double.
15367
15368 2018-06-29 Michael Wolf <milupo@sorbzilla.de>
15369
15370 [BZ #23208]
15371 * localedata/SUPPORTED (dsb_DE/UTF-8): New entry.
15372 * localedata/locales/dsb_DE: New file.
15373
15374 2018-06-29 Rafał Lużyński <digitalfreak@lingonborough.com>
15375
15376 [BZ #23140]
15377 * localedata/locales/hy_AM (mon): Synchronize with CLDR (lowercase,
15378 genitive case).
15379 (alt_mon): New entry, import from CLDR (nominative case).
15380
15381 2018-06-29 Sylvain Lesage <severo@rednegra.net>
15382
15383 [BZ #22996]
15384 * localedata/locales/es_BO (LC_PAPER): Change to “copy "en_US"”.
15385
15386 2018-06-29 Siddhesh Poyarekar <siddhesh@sourceware.org>
15387
15388 * sysdeps/aarch64/multiarch/memcpy_falkor.S (__memcpy_falkor):
15389 Use vector registers.
15390
15391 * sysdeps/aarch64/multiarch/memmove_falkor.S
15392 (__memcpy_falkor): Use vector registers.
15393
15394 2018-06-29 Martin Sebor <msebor@redhat.com>
15395
15396 * manual/stdio.texi (Customizing Printf): Mention interaction
15397 with GCC built-ins.
15398
15399 2018-06-29 Maciej W. Rozycki <macro@mips.com>
15400
15401 [BZ #23307]
15402 * elf/dl-lookup.c (check_match): Do not reject a symbol whose
15403 `st_value' is 0 if `st_shndx' is SHN_ABS.
15404 * elf/tst-absolute-zero.c: New file.
15405 * elf/tst-absolute-zero-lib.c: New file.
15406 * elf/tst-absolute-zero-lib.lds: New file.
15407 * elf/Makefile (tests): Add `tst-absolute-zero'.
15408 (modules-names): Add `tst-absolute-zero-lib'.
15409 (LDLIBS-tst-absolute-zero-lib.so): New variable.
15410 ($(objpfx)tst-absolute-zero-lib.so): New dependency.
15411 ($(objpfx)tst-absolute-zero: New dependency.
15412
15413 2018-06-29 Zack Weinberg <zackw@panix.com>
15414
15415 * configure.ac: New command-line option --disable-crypt.
15416 Force --disable-nss-crypt when --disable-crypt is given, with a
15417 warning if it was explicitly enabled.
15418 * configure: Regenerate.
15419 * config.make.in: New boolean substitution variable $(build-crypt).
15420 * Makeconfig: Only include 'crypt' in all-subdirs and rpath-dirs
15421 when $(build-crypt).
15422 * manual/install.texi: Document --disable-crypt.
15423 * INSTALL: Regenerate.
15424
15425 * crypt/Makefile: Remove code conditional on $(crypt-in-libc),
15426 which is never set.
15427 * conform/Makefile: Only include libcrypt.a in
15428 linknamespace-libs-xsi and linknamespace-libs-XPG4
15429 when $(build-crypt).
15430 * elf/Makefile (CFLAGS-tst-linkall-static.c): Only define
15431 USE_CRYPT to 1 when $(build-crypt).
15432 (tst-linkall-static): Only link libcrypt.a when $(build-crypt).
15433 (localplt-built-dso): Only add libcrypt.so when $(build-crypt).
15434 * elf/tst-linkall-static.c: Only include crypt.h when USE_CRYPT.
15435
15436 2018-06-29 Zack Weinberg <zackw@panix.com>
15437
15438 * crypt/crypt.h, posix/unistd.h: Update comments and
15439 prototypes for crypt and crypt_r.
15440
15441 * manual/crypt.texi (Cryptographic Functions): New initial
15442 exposition.
15443 (crypt): Section renamed to 'Passphrase Storage'. Full rewrite.
15444 (Unpredictable Bytes): Improve initial exposition. Clarify error
15445 behavior of getentropy and getrandom.
15446 * manual/examples/genpass.c: Generate a salt using getentropy
15447 instead of the current time. Use hash $5$ (SHA-2-256).
15448 * manual/examples/testpass.c: Demonstrate validation against
15449 hashes generated with three different one-way functions.
15450
15451 * manual/intro.texi: crypt.texi does not need an overview
15452 anymore.
15453
15454 * manual/nss.texi, manual/memory.texi, manual/socket.texi
15455 * manual/terminal.texi: Consistently refer to "passphrases"
15456 * instead of "passwords", and to the "user database" instead
15457 * of the "password database".
15458 * manual/users.texi: Similarly. Add notes about how actual
15459 passphrase hashes are now stored in the shadow database.
15460 Remove 20-year-old junk todo note.
15461
15462 2018-06-29 Zack Weinberg <zackw@panix.com>
15463
15464 * manual/crypt.texi: Use a normal top-level @node declaration.
15465 Move most of the introductory text to the 'crypt' section.
15466 Move the example programs below the @deftypefun for 'crypt_r'.
15467 Move the 'getpass' section...
15468 * manual/terminal.texi: ...here.
15469
15470 2018-06-29 Zack Weinberg <zackw@panix.com>
15471 Florian Weimer <fweimer@redhat.com>
15472
15473 * posix/unistd.h: Do not declare encrypt.
15474 (_XOPEN_CRYPT): Remove macro definition.
15475 (crypt): Declare only for _USE_MISC.
15476 * stdlib/stdlib.h: Do not declare setkey.
15477 * crypt/crypt.h: Do not declare encrypt, setkey, encrypt_r, setkey_r.
15478 * sunrpc/Makefile: Do not install des_crypt.h nor rpc_des.h.
15479
15480 * crypt/crypt-entry.c: Make fcrypt a compat symbol.
15481 * crypt/crypt_util.c: Make encrypt, encrypt_r, setkey, setkey_r
15482 into compat symbols. Don't define initial_perm if it's not
15483 going to be used.
15484 * crypt/cert.c: Link explicitly with the expected versions for
15485 setkey and encrypt. If they are not available at all, mark
15486 the test as unsupported.
15487
15488 * sunrpc/des_crypt.c: Unconditionally block linkage with
15489 cbc_crypt and ecb_crypt for new binaries.
15490 * sunrpc/des_soft.c: Unconditionally block linkage with
15491 des_setparity for new binaries.
15492
15493 * manual/crypt.texi: Remove the entire "DES Encryption"
15494 section. Also remove the paragraph talking about FIPS 140-2
15495 from the introduction.
15496 * manual/string.texi (strfry, memfrob): Revise. Recommend use
15497 of libgcrypt for "real" encryption, not DES.
15498 * manual/conf.texi (Constants for Sysconf): Mention that
15499 _XOPEN_CRYPT is no longer impelemented.
15500
15501 * conform/data/unistd.h-data: Remove crypt function declaration.
15502
15503 2018-06-29 Florian Weimer <fweimer@redhat.com>
15504
15505 [BZ #23351]
15506 * malloc/hooks.c: Update comments on restoring of dumped heaps.
15507 (disallow_malloc_check): Remove variable.
15508 (__malloc_check_init): Adjust.
15509 (malloc_set_state): Update comment.
15510 * malloc/malloc.c (__malloc_get_state, __malloc_set_state): Remove
15511 declarations.
15512
15513 2018-06-29 Rafał Lużyński <digitalfreak@lingonborough.com>
15514
15515 [BZ #23140]
15516 * localedata/locales/ast_ES (mon): Rename to...
15517 (alt_mon): This.
15518 (mon): Import from CLDR (genitive case).
15519
15520 2018-06-29 Daniel Alvarez <dalvarez@redhat.com>
15521 Jakub Sitnicki <jkbs@redhat.com>
15522
15523 [BZ #21812]
15524 * sysdeps/unix/sysv/linux/ifaddrs.c (getifaddrs_internal): Retry
15525 on NLM_F_DUMP_INTR.
15526
15527 2018-06-28 Szabolcs Nagy <szabolcs.nagy@arm.com>
15528
15529 * manual/llio.texi: Remove spurious space.
15530
15531 2018-06-28 Florian Weimer <fweimer@redhat.com>
15532
15533 [BZ #23349]
15534 * time/bits/types/struct_timespec.h: Change header inclusion guard to
15535 _STRUCT_TIMESPEC.
15536
15537 2018-06-28 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
15538
15539 * sysdeps/ieee754/ldbl-128ibm-compat/Versions: Add __strfromieee128,
15540 __strtoieee128, __strtoieee128_l,__wcstoieee128 and __wcstoieee128_l.
15541 * sysdeps/ieee754/ldbl-128ibm-compat/strfromf128.c: New file.
15542 * sysdeps/ieee754/ldbl-128ibm-compat/strtof128.c: New file.
15543 * sysdeps/ieee754/ldbl-128ibm-compat/strtof128_l.c: New file.
15544 * sysdeps/ieee754/ldbl-128ibm-compat/wcstof128.c: New file.
15545 * sysdeps/ieee754/ldbl-128ibm-compat/wcstof128_l.c: New file.
15546
15547 2018-06-27 Maciej W. Rozycki <macro@mips.com>
15548
15549 [BZ #23266]
15550 * nis/nss_nisplus/nisplus-parser.c (_nss_nisplus_parse_pwent):
15551 Copy and null-terminate entries that are not terminated, in
15552 addition to empty ones.
15553
15554 2018-06-27 Florian Weimer <fweimer@redhat.com>
15555
15556 [BZ #18023]
15557 * include/alloca.h (stackinfo_alloca_round, extend_alloca)
15558 (extend_alloca_account): Remove.
15559 * manual/stdio.texi (Variable Arguments Output): Update comment.
15560
15561 2018-06-27 Joseph Myers <joseph@codesourcery.com>
15562
15563 * nptl/sockperf.c: Remove file.
15564
15565 2018-06-27 Florian Weimer <fweimer@redhat.com>
15566
15567 [BZ #18023]
15568 * elf/dl-deps.c (_dl_map_object_deps): Use struct
15569 scratch_buffer instead of extend_alloca.
15570
15571 2018-06-27 Florian Weimer <fweimer@redhat.com>
15572
15573 [BZ #18023]
15574 * sysdeps/unix/sysv/linux/gethostid.c (gethostid): Use struct
15575 scratch_buffer instead of extend_alloca. Update comments.
15576
15577 2018-06-27 Florian Weimer <fweimer@redhat.com>
15578
15579 [BZ #18023]
15580 * posix/wordexp.c (parse_tilde): Use struct scratch_buffer
15581 instead of extend_alloca.
15582
15583 2018-06-26 Joseph Myers <joseph@codesourcery.com>
15584
15585 [BZ #13888]
15586 * posix/Makefile (CFLAGS-tst-spawn3.c): New variable.
15587 * posix/tst-spawn3.c (do_test): Put tst-spwan3.pid in OBJPFX, not
15588 /tmp.
15589 * scripts/test-installation.pl: Put temporary files in build
15590 directory, not /tmp.
15591 * stdio-common/Makefile (CFLAGS-bug3.c): New variable.
15592 (CFLAGS-bug4.c): Likewise.
15593 (CFLAGS-bug5.c): Likewise.
15594 (CFLAGS-test-fseek.c): Likewise.
15595 (CFLAGS-test-popen.c): Likewise.
15596 (CFLAGS-test_rdwr.c): Likewise.
15597 * stdio-common/bug3.c (main): Put temporary file in OBJPFX, not
15598 /tmp.
15599 * stdio-common/bug4.c (main): Likewise.
15600 * stdio-common/bug5.c (main): Likewise.
15601 * stdio-common/test-fseek.c (TESTFILE): Likewise.
15602 * stdio-common/test-popen.c (do_test): Likewise.
15603 * stdio-common/test_rdwr.c (main): Likewise.
15604
15605 2018-06-26 Patsy Franklin <pfrankli@redhat.com>
15606
15607 * nptl/sem_open.c [!__HAVE_64B_ATOMICS] (sem_open): Don't update pad.
15608 (sem_open): Set sem.newsem.pad to zero for valgrind.
15609
15610 2018-06-26 Adhemerval Zanella <adhemerval.zanella@linaro.org>
15611
15612 [BZ #20251]
15613 * NEWS: Mention fcntl64 addition.
15614 * csu/check_fds.c: Replace __fcntl_nocancel by __fcntl64_nocancel.
15615 * login/utmp_file.c: Likewise.
15616 * sysdeps/posix/fdopendir.c: Likewise.
15617 * sysdeps/posix/opendir.c: Likewise.
15618 * sysdeps/unix/pt-fcntl.c: Likewise.
15619 * include/fcntl.h (__libc_fcntl64, __fcntl64,
15620 __fcntl64_nocancel_adjusted): New prototype.
15621 (__fcntl_nocancel_adjusted): Remove prototype.
15622 * io/Makefile (routines): Add fcntl64.
15623 (CFLAGS-fcntl64.c): New rule.
15624 * io/Versions [GLIBC_2.28] (fcntl64): New symbol.
15625 [GLIBC_PRIVATE] (__libc_fcntl): Rename to __libc_fcntl64.
15626 * io/fcntl.h (fcntl64): Add prototype and redirect if
15627 __USE_FILE_OFFSET64 is defined.
15628 * io/fcntl64.c: New file.
15629 * manual/llio.text: Add a note for which commands fcntl acts a
15630 cancellation point.
15631 * nptl/Makefile (CFLAGS-fcntl64.c): New rule.
15632 * sysdeps/mach/hurd/fcntl.c: Alias fcntl to fcntl64 symbols.
15633 * sysdeps/mach/hurd/i386/libc.abilist [GLIBC_2.28] (fcntl, fcntl64):
15634 New symbols.
15635 * sysdeps/unix/sysv/linux/fcntl.c (__libc_fcntl): Fix F_GETLK64,
15636 F_OFD_GETLK, F_SETLK64, F_SETLKW64, F_OFD_SETLK, and F_OFD_SETLKW for
15637 non-LFS case.
15638 * sysdeps/unix/sysv/linux/fcntl64.c: New file.
15639 * sysdeps/unix/sysv/linux/fcntl_nocancel.c (__fcntl_nocancel): Rename
15640 to __fcntl64_nocancel.
15641 (__fcntl_nocancel_adjusted): Rename to __fcntl64_nocancel_adjusted.
15642 * sysdeps/unix/sysv/linux/not-cancel.h (__fcntl_nocancel): Rename
15643 to __fcntl64_nocancel.
15644 * sysdeps/generic/not-cancel.h: Likewise.
15645 * sysdeps/unix/sysv/linux/tst-ofdlocks.c: New file.
15646 * sysdeps/unix/sysv/linux/Makefile (tests): Add tst-ofdlocks.
15647 * sysdeps/unix/sysv/linux/aarch64/libc.abilist [GLIBC_2.28]
15648 (fcntl64): New symbol.
15649 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
15650 * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
15651 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
15652 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist: Likewise.
15653 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist: Likewise.
15654 * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist: Likewise.
15655 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
15656 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
15657 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
15658 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
15659 * sysdeps/unix/sysv/linux/arm/libc.abilist [GLIBC_2.28] (fcntl,
15660 fcntl64): Likewise.
15661 * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
15662 * sysdeps/unix/sysv/linux/i386/libc.abilis: Likewise.
15663 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
15664 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
15665 * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
15666 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
15667 * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist: Likewise.
15668 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
15669 * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise.
15670 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
15671 Likewise.
15672 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
15673 Likewise.
15674 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
15675 * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
15676 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
15677
15678 2018-06-26 Florian Weimer <fweimer@redhat.com>
15679
15680 Run thread shutdown functions in an explicit order.
15681 * malloc/thread-freeres.c (__libc_thread_subfreeres): Remove hook
15682 definition.
15683 (__libc_thread_freeres): Call thread shutdown functions
15684 explicitly.
15685 * include/rpc/rpc.h (__rpc_thread_destroy): Add hidden attribute.
15686 * include/string.h (__strerror_thread_freeres): Declare.
15687 * malloc/arena.c (__malloc_arena_thread_freeres): Renamed from
15688 arena_thread_freeres. No longer static. Remove thread shutdown
15689 hook registration.
15690 * malloc/malloc-internal.h (__malloc_arena_thread_freeres):
15691 Declare.
15692 * resolv/res-close.c (__res_thread_freeres): Renamed from
15693 res_thread_freeres. No longer static. Remove thread shutdown
15694 hook registration.
15695 * resolv/resolv-internal.h (__res_thread_freeres): Declare.
15696 * resolv/resolv_conf.c (freeres): Remove incorrect section
15697 attribute and use libc_freeres_fn.
15698 * string/strerror_l.c (__strerror_thread_freeres): Renamed from
15699 strerror_thread_freeres. No longer static. Remove thread
15700 shutdown hook registration.
15701 * sysdeps/mach/strerror_l.c (__strerror_thread_freeres): Likewise.
15702 * sunrpc/rpc_thread.c (__rpc_thread_destroy): Remove thread
15703 shutdown hook registration.
15704 * Makerules (shlib.lds): Do not provide section boundary symbols
15705 for __libc_thread_subfreeres.
15706 * manual/memory.texi (Basic Allocation): Update comment.
15707
15708 2018-06-26 Florian Weimer <fweimer@redhat.com>
15709
15710 Remove always-defined _RPC_THREAD_SAFE_ macro.
15711 * sunrpc/Makefile (sunrpc-CPPFLAGS, CPPFLAGS, BUILD_CPPFLAGS):
15712 Do not define _RPC_THREAD_SAFE_.
15713 * include/rpc/rpc.h: Remove _RPC_THREAD_SAFE_ preprocessor
15714 conditional.
15715 * sunrpc/clnt_perr.c: Likewise.
15716 * sunrpc/clnt_raw.c: Likewise.
15717 * sunrpc/clnt_simp.c: Likewise.
15718 * sunrpc/key_call.c: Likewise.
15719 * sunrpc/rpc_common.c: Likewise.
15720 * sunrpc/rpc_main.c: Likewise.
15721 * sunrpc/rpc_thread.c: Likewise.
15722 * sunrpc/svc.c: Likewise.
15723 * sunrpc/svc_raw.c: Likewise.
15724 * sunrpc/svc_simple.c: Likewise.
15725 * sumrpc/svcauth_des.c: Likewise.
15726
15727 2018-06-26 Florian Weimer <fweimer@redhat.com>
15728
15729 * libio/Makefile (tests-internal): Add tst-vtables,
15730 tst-vtables-interposed.
15731 * libio/tst-vtables.c: New file.
15732 * libio/tst-vtables-common.c: Likewise.
15733 * libio/tst-vtables-interposed.c: Likewise.
15734
15735 2018-06-26 Florian Weimer <fweimer@redhat.com>
15736
15737 * support/support_test_main.c (support_test_main): Only call
15738 setvbuf if not disables.
15739 * support/test-driver.c (main): Check TEST_NO_SETVBUF.
15740 * support/test-driver.h (struct test_config): Add no_setvbuf member.
15741
15742 2018-06-26 Florian Weimer <fweimer@redhat.com>
15743
15744 [BZ #23313]
15745 * libio/vtables.c (check_stdfiles_vtables): New ELF constructor.
15746
15747 2018-06-25 Florian Weimer <fweimer@redhat.com>
15748
15749 [BZ #18023]
15750 * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn):
15751 Use struct scratch_buffer instead of extend_alloca.
15752
15753 2018-06-25 Florian Weimer <fweimer@redhat.com>
15754
15755 [BZ #18023]
15756 * nss/getent.c (initgroups_keys): Use dynarray instead of
15757 extend_alloca.
15758
15759 2018-06-25 Florian Weimer <fweimer@redhat.com>
15760
15761 [BZ #18023]
15762 * nis/nss_nis/nis-initgroups.c (get_uid, _nss_nis_initgroups_dyn):
15763 Use struct scratch_buffer instead of extend_alloca.
15764
15765 2018-06-25 Florian Weimer <fweimer@redhat.com>
15766
15767 [BZ #18023]
15768 * nss/nss_compat/compat-initgroups.c (getgrent_next_nss): Fall
15769 back to malloc directly, without stack allocations.
15770
15771 2018-06-25 Florian Weimer <fweimer@redhat.com>
15772
15773 [BZ #18023]
15774 * nscd/aicache.c (addhstaiX): Use struct scratch_buffer instead
15775 of extend_alloca.
15776
15777 2018-06-25 Florian Weimer <fweimer@redhat.com>
15778
15779 [BZ #18023]
15780 * nscd/grpcache.c (addgrbyX): Use struct scratch_buffer instead
15781 of extend_alloca.
15782 * nscd/hstcache.c (addhstbyX): Likewise.
15783 * nscd/pwdcache.c (addpwbyX): Likewise.
15784 * nscd/servicescache.c (addservbyX): Likewise.
15785
15786 2018-06-25 Florian Weimer <fweimer@redhat.com>
15787
15788 [BZ #18023]
15789 * nscd/connections.c (read_cmdline): New function.
15790 (restart): Use it. Update comment.
15791
15792 2018-06-25 Rafał Lużyński <digitalfreak@lingonborough.com>
15793
15794 [BZ #23140]
15795 * localedata/locales/csb_PL (mon): Rename to...
15796 (alt_mon): This.
15797 (abmon): Rename to...
15798 (ab_alt_mon): This.
15799 (mon): Add with proper genitive forms, copy from Wikipedia.
15800 (abmon): Likewise.
15801
15802 2018-06-25 Rafał Lużyński <digitalfreak@lingonborough.com>
15803
15804 [BZ #19485]
15805 * localedata/locales/csb_PL (mon): Fix typos:
15806 "łżëkwiôt" -> "łżëkwiat" (April); "lëpinc" -> "lëpińc" (July).
15807 (yesstr): Add, value is "jo".
15808 (nostr): Add, value is "nié".
15809
15810 2018-06-22 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
15811
15812 * sysdeps/m68k/m680x0/fpu/s_log1p.c: Set as the generic file for
15813 all log1p and significand functions on m680x0.
15814 * sysdeps/m68k/m680x0/fpu/s_log1pf.c: Include s_log1p.c instead
15815 of s_significand.c..
15816 * sysdeps/m68k/m680x0/fpu/s_log1pl.c: Likewise.
15817 * sysdeps/m68k/m680x0/fpu/s_significandf.c: Likewise.
15818 * sysdeps/m68k/m680x0/fpu/s_significandl.c: Likewise.
15819 * sysdeps/m68k/m680x0/fpu/s_significand.c: Move all the code to
15820 s_log1p.c and include it..
15821
15822 2018-06-21 Vincent Chen <vincentc@andestech.com>
15823
15824 * elf/elf.h (R_NDS32_NONE): New define.
15825 (R_NDS32_32_RELA): Likewise.
15826 (R_NDS32_COPY): Likewise.
15827 (R_NDS32_GLOB_DAT): Likewise.
15828 (R_NDS32_JUMP_SLOT): Likewise.
15829 (R_NDS32_RELATIVE): Likewise.
15830 (R_NDS32_TLS_TPOFF): Likewise.
15831 (R_NDS32_TLS_DESC): Likewise.
15832
15833 2018-06-21 Mark Wielaard <mark@klomp.org>
15834
15835 * elf/elf.h (R_BPF_MAP_FD): Removed.
15836 (R_BPF_64_64, R_BPF_64_32): New.
15837
15838 2018-06-21 Florian Weimer <fweimer@redhat.com>
15839
15840 [BZ #23253]
15841 * sysdeps/generic/math_private.h (default_libc_feholdsetround_ctx):
15842 Renamed from libc_feholdsetround_ctx.
15843 (default_libc_feresetround_ctx): Renamed from
15844 libc_feresetround_ctx.
15845 (default_libc_feholdsetround_noex_ctx): Renamed from
15846 libc_feholdsetround_noex_ctx.
15847 (default_libc_feresetround_noex_ctx): Renamed from
15848 libc_feresetround_noex_ctx.
15849 [!HAVE_RM_CTX] (libc_feholdsetround_ctx, libc_feresetround_ctx)
15850 (libc_feholdsetround_noex_ctx, libc_feresetround_noex_ctx): Macros
15851 forwardning to the old implementations under the new names.
15852 * sysdeps/i386/fpu/fenv_private.h [__SSE_MATH__]
15853 (libc_feholdexcept_setround_ctx, libc_fesetenv_ctx)
15854 (libc_feupdateenv_ctx, libc_feholdsetround_ctx)
15855 (libc_feresetround_ctx): Forward to default implements for i386
15856 and MATH_SET_BOTH_ROUNDING_MODES.
15857 * sysdeps/i386/Makefile [$(subdir) == math] (CFLAGS-e_gamma_r.c):
15858 Add -DMATH_SET_BOTH_ROUNDING_MODES.
15859
15860 2018-06-20 Joseph Myers <joseph@codesourcery.com>
15861
15862 * string/tst-cmp.c: Include <libc-diag.h>.
15863 (strncmp_max): Disable -Wstringop-overflow= around call to
15864 strncmp.
15865 (strncasecmp_max): Disable -Wstringop-overflow= around call to
15866 strncasecmp.
15867
15868 * string/bug-strpbrk1.c: Include <libc-diag.h>.
15869 (main): Disable -Wunused-value around call to strpbrk.
15870 * string/bug-strspn1.c: Include <libc-diag.h>.
15871 (main): Disable -Wunused-value around call to strspn.
15872
15873 2018-06-20 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
15874 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
15875
15876 * sysdeps/ieee754/ldbl-128ibm-compat/Versions: New file.
15877 * sysdeps/ieee754/ldbl-128ibm-compat/libm-alias-float128.h: New file.
15878
15879 2018-06-20 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
15880
15881 * math/Makefile (libm-calls): Move s_significandF to...
15882 (gen-libm-calls): ... here.
15883 * math/s_significand_template.c: New file.
15884 * math/s_significand.c: Removed.
15885 * math/s_significandf.c: Removed.
15886 * math/s_significandl.c: Removed.
15887 * sysdeps/ieee754/ldbl-opt/s_significand.c: Removed.
15888 * sysdeps/ieee754/ldbl-opt/s_significandl.c: Removed.
15889
15890 * math/e_exp2_template.c (declare_mgen_finite_alias,
15891 declare_mgen_finite_alias_s, declare_mgen_finite_alias_x): Move to...
15892 * sysdeps/generic/math-type-macros.h (declare_mgen_finite_alias,
15893 declare_mgen_finite_alias_s, declare_mgen_finite_alias_x): ... here.
15894
15895 2018-06-20 Florian Weimer <fweimer@redhat.com>
15896
15897 * libio/libioP.h (IO_validate_vtable): Avoid ptrdiff_t overflow.
15898
15899 2018-06-19 Joseph Myers <joseph@codesourcery.com>
15900
15901 [BZ #23280]
15902 * stdio-common/vfscanf.c (_IO_vfscanf_internal): Pass sign of
15903 floating-point number to strtod functions rather than possibly
15904 negating result of those functions.
15905 * stdio-common/tst-scanf-round.c: New file.
15906 * stdio-common/Makefile (tests): Add tst-scanf-round.
15907 ($(objpfx)tst-scanf-round): Depend on $(libm).
15908
15909 2018-06-18 Samuel Thibault <samuel.thibault@ens-lyon.org>
15910
15911 * sysdeps/mach/hurd/localplt.data: Move to...
15912 * sysdeps/mach/hurd/i386/localplt.data: new file. Add + REL
15913 R_386_GLOB_DAT like on Linux i386.
15914
15915 2018-06-18 Joseph Myers <joseph@codesourcery.com>
15916
15917 * sysdeps/unix/sysv/linux/alpha/bits/shm.h [__USE_MISC]
15918 (SHM_STAT_ANY): New macro.
15919 * sysdeps/unix/sysv/linux/arm/bits/shm.h [__USE_MISC]
15920 (SHM_STAT_ANY): Likewise.
15921 * sysdeps/unix/sysv/linux/bits/shm.h [__USE_MISC]
15922 (SHM_STAT_ANY): Likewise.
15923 * sysdeps/unix/sysv/linux/generic/bits/shm.h [__USE_MISC]
15924 (SHM_STAT_ANY): Likewise.
15925 * sysdeps/unix/sysv/linux/hppa/bits/shm.h [__USE_MISC]
15926 (SHM_STAT_ANY): Likewise.
15927 * sysdeps/unix/sysv/linux/ia64/bits/shm.h [__USE_MISC]
15928 (SHM_STAT_ANY): Likewise.
15929 * sysdeps/unix/sysv/linux/mips/bits/shm.h [__USE_MISC]
15930 (SHM_STAT_ANY): Likewise.
15931 * sysdeps/unix/sysv/linux/powerpc/bits/shm.h [__USE_MISC]
15932 (SHM_STAT_ANY): Likewise.
15933 * sysdeps/unix/sysv/linux/s390/bits/shm.h [__USE_MISC]
15934 (SHM_STAT_ANY): Likewise.
15935 * sysdeps/unix/sysv/linux/sh/bits/shm.h [__USE_MISC]
15936 (SHM_STAT_ANY): Likewise.
15937 * sysdeps/unix/sysv/linux/sparc/bits/shm.h [__USE_MISC]
15938 (SHM_STAT_ANY): Likewise.
15939 * sysdeps/unix/sysv/linux/x86/bits/shm.h [__USE_MISC]
15940 (SHM_STAT_ANY): Likewise.
15941
15942 * sysdeps/unix/sysv/linux/alpha/bits/sem.h [__USE_MISC]
15943 (SEM_STAT_ANY): New macro.
15944 * sysdeps/unix/sysv/linux/bits/sem.h [__USE_MISC]
15945 (SEM_STAT_ANY): Likewise.
15946 * sysdeps/unix/sysv/linux/generic/bits/sem.h [__USE_MISC]
15947 (SEM_STAT_ANY): Likewise.
15948 * sysdeps/unix/sysv/linux/hppa/bits/sem.h [__USE_MISC]
15949 (SEM_STAT_ANY): Likewise.
15950 * sysdeps/unix/sysv/linux/ia64/bits/sem.h [__USE_MISC]
15951 (SEM_STAT_ANY): Likewise.
15952 * sysdeps/unix/sysv/linux/mips/bits/sem.h [__USE_MISC]
15953 (SEM_STAT_ANY): Likewise.
15954 * sysdeps/unix/sysv/linux/powerpc/bits/sem.h [__USE_MISC]
15955 (SEM_STAT_ANY): Likewise.
15956 * sysdeps/unix/sysv/linux/s390/bits/sem.h [__USE_MISC]
15957 (SEM_STAT_ANY): Likewise.
15958 * sysdeps/unix/sysv/linux/sparc/bits/sem.h [__USE_MISC]
15959 (SEM_STAT_ANY): Likewise.
15960 * sysdeps/unix/sysv/linux/x86/bits/sem.h [__USE_MISC]
15961 (SEM_STAT_ANY): Likewise.
15962
15963 * sysdeps/unix/sysv/linux/alpha/bits/msq.h [__USE_MISC]
15964 (MSG_STAT_ANY): New macro.
15965 * sysdeps/unix/sysv/linux/bits/msq.h [__USE_MISC]
15966 (MSG_STAT_ANY): Likewise.
15967 * sysdeps/unix/sysv/linux/generic/bits/msq.h [__USE_MISC]
15968 (MSG_STAT_ANY): Likewise.
15969 * sysdeps/unix/sysv/linux/hppa/bits/msq.h [__USE_MISC]
15970 (MSG_STAT_ANY): Likewise.
15971 * sysdeps/unix/sysv/linux/ia64/bits/msq.h [__USE_MISC]
15972 (MSG_STAT_ANY): Likewise.
15973 * sysdeps/unix/sysv/linux/mips/bits/msq.h [__USE_MISC]
15974 (MSG_STAT_ANY): Likewise.
15975 * sysdeps/unix/sysv/linux/powerpc/bits/msq.h [__USE_MISC]
15976 (MSG_STAT_ANY): Likewise.
15977 * sysdeps/unix/sysv/linux/s390/bits/msq.h [__USE_MISC]
15978 (MSG_STAT_ANY): Likewise.
15979 * sysdeps/unix/sysv/linux/sparc/bits/msq.h [__USE_MISC]
15980 (MSG_STAT_ANY): Likewise.
15981 * sysdeps/unix/sysv/linux/x86/bits/msq.h [__USE_MISC]
15982 (MSG_STAT_ANY): Likewise.
15983
15984 * sysdeps/unix/sysv/linux/hppa/bits/mman.h [__USE_MISC]
15985 (MAP_TYPE): Change value to 0x2b.
15986
15987 2018-06-18 Florian Weimer <fweimer@redhat.com>
15988
15989 [BZ #15722]
15990 * sysdeps/unix/sysv/linux/check_pf.c (__check_pf): Create Netlink
15991 socket with SOCK_CLOEXEC.
15992
15993 2018-06-18 Joseph Myers <joseph@codesourcery.com>
15994
15995 [BZ #23303]
15996 * sysdeps/powerpc/powerpc64/le/Makefile
15997 (CFLAGS-tst-strtod-nan-sign.c): Add -mfloat128.
15998 (CFLAGS-tst-wcstod-nan-sign.c): Likewise.
15999 (gnulib-tests): Also add $(f128-loader-link) for
16000 tst-strtod-nan-sign abd tst-wcstod-nan-sign.
16001
16002 2018-06-15 Samuel Thibault <samuel.thibault@ens-lyon.org>
16003
16004 * include/sys/sendfile.h (__sendfile64): Declare hidden prototype.
16005 * sysdeps/mach/hurd/sendfile.c (sendfile): Call __sendfile64 instead
16006 of sendfile.
16007 * sysdeps/mach/hurd/sendfile64.c (sendfile64): Rename to __sendfile64.
16008 (sendfile64): New strong alias.
16009 * sysdeps/mach/hurd/lseek.c: Include <errno.h>.
16010 * sysdeps/mach/hurd/lseek.c (__libc_lseek): Check that the value
16011 returned by __lseek64 can fit off_t, return EOVERFLOW otherwise.
16012 * sysdeps/htl/pthreadP.h (___pthread_get_cleanup_stack): Add hidden
16013 attribute.
16014 * htl/pt-join.c (__pthread_get_cleanup_stack): Define to
16015 ___pthread_get_cleanup_stack.
16016 * sysdeps/mach/hurd/localplt.data (ld.so): Make ref to __open optional.
16017 * sysdeps/mach/include/mach-shortcuts-hidden.h: New file.
16018 * mach/shortcut.awk: Make syscall stubs include
16019 <mach-shortcuts-hidden.h> and add hidden definition.
16020 * sysdeps/mach/include/mach.h: Include <mach-shortcuts-hidden.h>.
16021 (__mach_msg): Add hidden prototype.
16022 * mach/msg.c: Include <mach.h>.
16023 (__mach_msg): Add hidden definition.
16024 * mach/Makefile ($(mach-syscalls:%=$(objpfx))): Add hidden definition.
16025 * sysdeps/mach/include/mach/mach_traps.h (__mach_reply_port,
16026 __mach_thread_self, __mach_task_self, __mach_host_self, __swtch,
16027 __swtch_pri, __thread_switch, __evc_wait): Add hidden prototypes.
16028 * sysdeps/mach/hurd/localplt.data (siglongjmp, longjmp,
16029 __libc_lseek64, _IO_funlockfile): Whitelist PLT references.
16030 * sysdeps/hurd/include/hurd/signal.h (_hurd_self_sigstate): Add hidden
16031 prototype and definition.
16032 * sysdeps/mach/hurd/i386/____longjmp_chk.S (____longjmp_chk): Use
16033 hidden target for _hurd_self_sigstate.
16034
16035 2018-06-15 Joseph Myers <joseph@codesourcery.com>
16036
16037 [BZ #23007]
16038 * stdlib/tst-strtod-nan-sign-main.c: New file.
16039 * stdlib/tst-strtod-nan-sign.c: Likewise.
16040 * wcsmbs/tst-wcstod-nan-sign.c: Likewise.
16041 * stdlib/Makefile (tests): Add tst-strtod-nan-sign.
16042 ($(objpfx)tst-strtod-nan-sign): Depend on $(libm).
16043 * wcsmbs/Makefile (tests) Add tst-wcstod-nan-sign.
16044 ($(objpfx)tst-wcstod-nan-sign): Depend on $(libm).
16045
16046 2018-06-15 Herman ten Brugge <hermantenbrugge@home.nl>
16047
16048 [BZ #23007]
16049 * stdlib/strtod_l.c (____STRTOF_INTERNAL): Return NaN of
16050 appropriate sign.
16051
16052 2018-06-14 Florian Weimer <fweimer@redhat.com>
16053
16054 [BZ #23290]
16055 * localedata/charmaps/IBM273: Map codepoint 0xbc to U+00AF, so
16056 that the result stays within the ISO-8859-1 range.
16057 * iconvdata/ibm273.c (HAS_HOLES): Define as 0 because all 256
16058 characters are defined in IBM273.
16059
16060 2018-06-14 Samuel Thibault <samuel.thibault@ens-lyon.org>
16061
16062 * sysdeps/mach/include/mach/mach_traps.h (__mach_thread_self,
16063 __mach_task_self): Remove attribute_hidden.
16064
16065 2018-06-14 Joseph Myers <joseph@codesourcery.com>
16066
16067 * string/tester.c (test_strncat) [__GNUC_PREREQ (7, 0)]: Also
16068 ignore -Wrestrict for one test.
16069
16070 2018-06-14 Steve Ellcey <sellcey@caviumnetworks.com>
16071 Szabolcs Nagy <szabolcs.nagy@arm.com>
16072
16073 * sysdeps/unix/sysv/linux/aarch64/gettimeofday.c: New file.
16074
16075 2018-06-14 Florian Weimer <fweimer@redhat.com>
16076
16077 * scripts/update-abilist.sh: Accept empty list of files to patch.
16078
16079 2018-06-13 Samuel Thibault <samuel.thibault@ens-lyon.org>
16080
16081 * sysdeps/mach/hurd/i386/Makefile (test-xfail-check-abi-libhurduser,
16082 test-xfail-check-abi-libmachuser): Add.
16083 * sysdeps/mach/hurd/localplt.data (ld.so): Add __open64, rename
16084 __libc_read and __libc_write to __read and __write.
16085 * sysdeps/hurd/include/hurd/port.h: New file.
16086 * mach/mach/mach_traps.h (__mach_reply_port, __mach_thread_self,
16087 __mach_task_self, __mach_host_self, __swtch, __swtch_pri,
16088 __thread_switch, __evc_wait): Move declarations to...
16089 * sysdeps/mach/include/mach/mach_traps.h: ... new file, and add
16090 attribute_hidden.
16091 * sysdeps/mach/hurd/i386/____longjmp_chk.S (____longjmp_chk): Do not
16092 use PLT to call _hurd_self_sigstate.
16093
16094 2018-06-13 Joseph Myers <joseph@codesourcery.com>
16095
16096 [BZ #23279]
16097 * stdlib/strtod_l.c (round_and_return): Handle an exponent of
16098 MAX_EXP as overflowing.
16099 * stdlib/gen-tst-strtod-round.c (string_to_fp): Clear MPFR
16100 overflow flag.
16101 (round_str): Output also whether result overflows in each rounding
16102 mode.
16103 * stdlib/tst-strtod-round-data: Add more tests.
16104 * stdlib/tst-strtod-round-data.h: Regenerated.
16105 * stdlib/tst-strtod-round-skeleton.c (_XNTRY): Update comment.
16106 (TEST): Handle extra arguments for overflow flags.
16107 (struct test_overflow): New type.
16108 [!FE_OVERFLOW] (FE_OVERFLOW): Define to 0.
16109 (GEN_ONE_TEST): Clear all exceptions. Test overflow flag.
16110 (test_in_one_mode): Take argument with overflow information.
16111 (do_test): Update calls to test_in_one_mode.
16112
16113 2018-06-12 Carlos O'Donell <carlos@redhat.com>
16114
16115 * elf/dl-load (_dl_dst_substitute): Correct comment.
16116 (_dl_dst_count): Likewise.
16117
16118 * nptl/pthread_mutex_timedlock.c (__pthread_mutex_timedlock): Call
16119 lll_futex_timed_wait.
16120
16121 2018-06-12 Joseph Myers <joseph@codesourcery.com>
16122
16123 [BZ #23277]
16124 * math/bits/mathcalls.h [__USE_ISOC99] (nan): Do not use __const__
16125 attribute.
16126 * math/test-nan-const.c: New file.
16127 * math/Makefile (tests): Add test-nan-const.
16128 (CFLAGS-test-nan-const.c): New variable.
16129
16130 2018-06-12 H.J. Lu <hongjiu.lu@intel.com>
16131
16132 * benchtests/scripts/compare_strings.py (process_results): Add
16133 funcs argument. Compare only functions which are selected.
16134 (main): Check if base function is among selected functions.
16135 Pass selected functions to process_results.
16136 (__main__): Add -f/--functions argument.
16137
16138 2018-06-12 Minfeng Kang <minfeng.kang@hxt-semitech.com>
16139 Hongbo Zhang <hongbo.zhang@linaro.org>
16140
16141 * sysdeps/aarch64/multiarch/memcpy.c (libc_ifunc): reuse
16142 __memcpy_falkor for phecda core.
16143 * sysdeps/aarch64/multiarch/memmove.c (libc_ifunc): reuse
16144 __memmove_falkor for phecda core.
16145 * sysdeps/aarch64/multiarch/memset.c (libc_ifunc): reuse
16146 __memset_falkor for phecda core.
16147 * sysdeps/unix/sysv/linux/aarch64/cpu-features.c: add MIDR entry
16148 for phecda core.
16149 * sysdeps/unix/sysv/linux/aarch64/cpu-features.h (IS_PHECDA): add
16150 macro to identify phecda core.
16151
16152 2018-06-12 Carlos O'Donell <carlos@redhat.com>
16153 Andreas Schwab <schwab@suse.de>
16154 Dmitry V. Levin <ldv@altlinux.org>
16155 Florian Weimer <fweimer@redhat.com>
16156
16157 [BZ #23102]
16158 [BZ #21942]
16159 [BZ #18018]
16160 [BZ #23259]
16161 CVE-2011-0536
16162 * elf/dl-dst.h: Remove DL_DST_COUNT.
16163 * elf/dl-deps.c (expand_dst): Call _dl_dst_count.
16164 * elf/dl-load.c (is_trusted_path_normalize): Don't handle colons.
16165 (is_dst): Comment. Support ELF gABI.
16166 (_dl_dst_count): Comment. Simplify and count DSTs.
16167 (_dl_dst_substitute): Comment. Support __libc_enable_secure handling.
16168 (expand_dybamic_string_token): Comment. Call _dl_dst_count. Rename
16169 locals.
16170
16171 2018-06-12 Zack Weinberg <zackw@panix.com>
16172
16173 * elf/dl-load.c, elf/dl-misc.c, elf/dl-profile.c, elf/rtld.c
16174 * sysdeps/unix/sysv/linux/dl-sysdep.c
16175 Include not-cancel.h. Use __close_nocancel instead of __close,
16176 __open64_nocancel instead of __open, __read_nocancel instead of
16177 __libc_read, and __write_nocancel instead of __libc_write.
16178
16179 * csu/check_fds.c (check_one_fd)
16180 * sysdeps/posix/fdopendir.c (__fdopendir)
16181 * sysdeps/posix/opendir.c (__alloc_dir): Use __fcntl_nocancel
16182 instead of __fcntl and/or __libc_fcntl.
16183
16184 * sysdeps/unix/sysv/linux/pthread_setname.c (pthread_setname_np)
16185 * sysdeps/unix/sysv/linux/pthread_getname.c (pthread_getname_np)
16186 * sysdeps/unix/sysv/linux/i386/smp.h (is_smp_system):
16187 Use __open64_nocancel instead of __open_nocancel.
16188
16189 * sysdeps/unix/sysv/linux/not-cancel.h: Move all of the
16190 hidden_proto declarations to the end and issue them if either
16191 IS_IN(libc) or IS_IN(rtld).
16192 * sysdeps/unix/sysv/linux/Makefile [subdir=io] (sysdep_routines):
16193 Add close_nocancel, fcntl_nocancel, nanosleep_nocancel,
16194 open_nocancel, open64_nocancel, openat_nocancel, pause_nocancel,
16195 read_nocancel, waitpid_nocancel, write_nocancel.
16196
16197 * io/Versions [GLIBC_PRIVATE]: Add __libc_fcntl,
16198 __fcntl_nocancel, __open64_nocancel, __write_nocancel.
16199 * posix/Versions: Add __nanosleep_nocancel, __pause_nocancel.
16200
16201 * nptl/pt-fcntl.c: New file.
16202 * nptl/Makefile (pthread-compat-wrappers): Remove fcntl.
16203 (libpthread-routines): Add pt-fcntl.
16204 * include/fcntl.h (__fcntl_nocancel_adjusted): New function.
16205 (__libc_fcntl): Remove attribute_hidden.
16206 * sysdeps/unix/sysv/linux/fcntl.c (__libc_fcntl): Call
16207 __fcntl_nocancel_adjusted, not fcntl_common.
16208 (__fcntl_nocancel): Move to new file fcntl_nocancel.c.
16209 (fcntl_common): Rename to __fcntl_nocancel_adjusted; also move
16210 to fcntl_nocancel.c.
16211 * sysdeps/unix/sysv/linux/fcntl_nocancel.c: New file.
16212 * sysdeps/unix/sysv/linux/powerpc/powerpc64/fcntl.c: Remove file.
16213 * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h:
16214 Define FCNTL_ADJUST_CMD here, as a self-contained macro.
16215
16216 * sysdeps/unix/sysv/linux/close.c: Move __close_nocancel to...
16217 * sysdeps/unix/sysv/linux/close_nocancel.c: ...this new file.
16218 * sysdeps/unix/sysv/linux/nanosleep.c: Move __nanosleep_nocancel to...
16219 * sysdeps/unix/sysv/linux/nanosleep_nocancel.c: ...this new file.
16220 * sysdeps/unix/sysv/linux/open.c: Move __open_nocancel to...
16221 * sysdeps/unix/sysv/linux/open_nocancel.c: ...this new file.
16222 * sysdeps/unix/sysv/linux/open64.c: Move __open64_nocancel to...
16223 * sysdeps/unix/sysv/linux/open64_nocancel.c: ...this new file.
16224 * sysdeps/unix/sysv/linux/openat.c: Move __openat_nocancel to...
16225 * sysdeps/unix/sysv/linux/openat_nocancel.c: ...this new file.
16226 * sysdeps/unix/sysv/linux/openat64.c: Move __openat64_nocancel to...
16227 * sysdeps/unix/sysv/linux/openat64_nocancel.c: ...this new file.
16228 * sysdeps/unix/sysv/linux/pause.c: Move __pause_nocancel to...
16229 * sysdeps/unix/sysv/linux/pause_nocancel.c: ...this new file.
16230 * sysdeps/unix/sysv/linux/read.c: Move __read_nocancel to...
16231 * sysdeps/unix/sysv/linux/read_nocancel.c: ...this new file.
16232 * sysdeps/unix/sysv/linux/waitpid.c: Move __waitpid_nocancel to...
16233 * sysdeps/unix/sysv/linux/waitpid_nocancel.c: ...this new file.
16234 * sysdeps/unix/sysv/linux/write.c: Move __write_nocancel to...
16235 * sysdeps/unix/sysv/linux/write_nocancel.c: ...this new file.
16236
16237 * sysdeps/unix/sysv/linux/nios2/Makefile: Don't override
16238 libpthread-routines.
16239 * sysdeps/unix/sysv/linux/nios2/pt-vfork.S: New file which
16240 defines nothing.
16241
16242 * sysdeps/mach/hurd/dl-sysdep.c: Define __read instead of
16243 __libc_read, and __write instead of __libc_write. Define
16244 __open64 in addition to __open.
16245
16246 2018-06-12 H.J. Lu <hongjiu.lu@intel.com>
16247
16248 [BZ #23250]
16249 [BZ #10686]
16250 * sysdeps/i386/nptl/tls.h (tcbhead_t): Change __private_tm[4]
16251 to _private_tm[3] and add __glibc_reserved2.
16252 Add _Static_assert of offset of __private_ss == 0x30.
16253 * sysdeps/x86_64/nptl/tls.h: Add _Static_assert of offset of
16254 __private_ss == 0x40 for ILP32 and == 0x70 for LP64.
16255
16256 2018-06-12 Florian Weimer <fweimer@redhat.com>
16257
16258 x86: Make strncmp usable from rtld.
16259 * sysdeps/i386/i686/multiarch/strncmp-c.c: Only rename strncmp to
16260 __strncmp_ia32 if in libc (and not in rtld).
16261 * sysdeps/x86_64/multiarch/strncmp-sse2.S: Rename strcmp to
16262 strncmp if not in libc (and not to __strncmp_sse2).
16263
16264 2018-06-12 Rafał Lużyński <digitalfreak@lingonborough.com>
16265
16266 [BZ #23140]
16267 * localedata/locales/gd_GB (mon): Rename to...
16268 (alt_mon): This.
16269 (mon): Import from CLDR (genitive case).
16270 * localedata/locales/hsb_DE (mon): Rename to...
16271 (alt_mon): This.
16272 (mon): Import from CLDR (genitive case).
16273 * localedata/locales/wa_BE (mon): Rename to...
16274 (alt_mon): This.
16275 (mon): Add, fill with the proper genitive forms, but CLDR data
16276 is incomplete; completed according to the comments in this file.
16277 (d_t_fmt): Do not use "di" before the month name, no longer needed.
16278
16279 * localedata/locales/wa_BE (country_name): Reword
16280 "Beljike" -> "Beldjike".
16281
16282 2018-06-11 Joseph Myers <joseph@codesourcery.com>
16283
16284 [BZ #23272]
16285 * sysdeps/ieee754/ldbl-96/s_fma.c (__fma): Start by handling all
16286 cases of non-finite arguments.
16287 * math/libm-test-fma.inc (fma_test_data): Add more tests.
16288
16289 2018-06-10 John David Anglin <danglin@gcc.gnu.org>
16290
16291 [BZ #23174]
16292 * sysdeps/unix/sysv/linux/hppa/Makefile: xfail check-execstack.
16293
16294 2018-06-08 Adhemerval Zanella <adhemerval.zanella@linaro.org>
16295
16296 [BZ #23264]
16297 * include/unistd.h (__execvpex): New prototype.
16298 * posix/Makefile (tests): Add tst-spawn4.
16299 (tests-internal): Add tst-spawn4-compat.
16300 * posix/execvpe.c (__execvpe_common, __execvpex): New functions.
16301 * posix/tst-spawn4-compat.c: New file.
16302 * posix/tst-spawn4.c: Likewise.
16303 * sysdeps/unix/sysv/linux/spawni.c (__spawni): Do not interpret invalid
16304 binaries as shell scripts.
16305 * sysdeps/posix/spawni.c (__spawni): Likewise.
16306
16307 2018-06-08 H.J. Lu <hongjiu.lu@intel.com>
16308
16309 [BZ #23145]
16310 * elf/Makefile (tests-special): Add $(objpfx)check-initfini.out.
16311 ($(all-built-dso:=.dynsym): New target.
16312 (common-generated): Add $(all-built-dso:$(common-objpfx)%=%.dynsym).
16313 ($(objpfx)check-initfini.out): New target.
16314 (generated): Add check-initfini.out.
16315 * scripts/check-initfini.awk: New file.
16316 * sysdeps/aarch64/crti.S (_init): Mark as hidden.
16317 (_fini): Likewise.
16318 * sysdeps/alpha/crti.S (_init): Mark as hidden.
16319 (_fini): Likewise.
16320 * sysdeps/arm/crti.S (_init): Mark as hidden.
16321 (_fini): Likewise.
16322 * sysdeps/hppa/crti.S (_init): Mark as hidden.
16323 (_fini): Likewise.
16324 * sysdeps/i386/crti.S (_init): Mark as hidden.
16325 (_fini): Likewise.
16326 * sysdeps/ia64/crti.S (_init): Mark as hidden.
16327 (_fini): Likewise.
16328 * sysdeps/m68k/crti.S (_init): Mark as hidden.
16329 (_fini): Likewise.
16330 * sysdeps/microblaze/crti.S (_init): Mark as hidden.
16331 (_fini): Likewise.
16332 * sysdeps/mips/mips32/crti.S (_init): Mark as hidden.
16333 (_fini): Likewise.
16334 * sysdeps/mips/mips64/n32/crti.S (_init): Mark as hidden.
16335 (_fini): Likewise.
16336 * sysdeps/mips/mips64/n64/crti.S (_init): Mark as hidden.
16337 (_fini): Likewise.
16338 * sysdeps/nios2/crti.S (_init): Mark as hidden.
16339 (_fini): Likewise.
16340 * sysdeps/powerpc/powerpc32/crti.S (_init): Mark as hidden.
16341 (_fini): Likewise.
16342 * sysdeps/powerpc/powerpc64/crti.S (_init): Mark as hidden.
16343 (_fini): Likewise.
16344 * sysdeps/s390/s390-32/crti.S (_init): Mark as hidden.
16345 (_fini): Likewise.
16346 * sysdeps/s390/s390-64/crti.S (_init): Mark as hidden.
16347 (_fini): Likewise.
16348 * sysdeps/sh/crti.S (_init): Mark as hidden.
16349 (_fini): Likewise.
16350 * sysdeps/sparc/crti.S (_init): Mark as hidden.
16351 (_fini): Likewise.
16352 * sysdeps/x86_64/crti.S (_init): Mark as hidden.
16353 (_fini): Likewise.
16354
16355 2018-06-06 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
16356
16357 * sysdeps/powerpc/powerpc64/le/fpu/e_sqrtf128.c
16358 [__HAVE_FLOAT128_UNLIKE_LDBL] (TFtype, TF): Restrict TFtype
16359 and TF redirection to KFtype and KF only when the default
16360 long double type is not the IEEE 128-bit floating point type.
16361
16362 2018-06-05 Joseph Myers <joseph@codesourcery.com>
16363
16364 * sysdeps/unix/sysv/linux/aarch64/bits/hwcap.h (HWCAP_DIT): New
16365 macro.
16366 (HWCAP_USCAT): Likewise.
16367 (HWCAP_ILRCPC): Likewise.
16368 (HWCAP_FLAGM): Likewise.
16369 * sysdeps/unix/sysv/linux/aarch64/dl-procinfo.c (_DL_HWCAP_COUNT):
16370 Increase to 28.
16371 (_dl_aarch64_cap_flags): Add new flag names.
16372
16373 * sysdeps/unix/sysv/linux/aarch64/bits/mman.h [__USE_MISC]
16374 (MAP_FIXED_NOREPLACE): New macro.
16375 * sysdeps/unix/sysv/linux/alpha/bits/mman.h [__USE_MISC]
16376 (MAP_FIXED_NOREPLACE): Likewise.
16377 * sysdeps/unix/sysv/linux/arm/bits/mman.h [__USE_MISC]
16378 (MAP_FIXED_NOREPLACE): Likewise.
16379 * sysdeps/unix/sysv/linux/hppa/bits/mman.h [__USE_MISC]
16380 (MAP_FIXED_NOREPLACE): Likewise.
16381 * sysdeps/unix/sysv/linux/ia64/bits/mman.h [__USE_MISC]
16382 (MAP_FIXED_NOREPLACE): Likewise.
16383 * sysdeps/unix/sysv/linux/m68k/bits/mman.h [__USE_MISC]
16384 (MAP_FIXED_NOREPLACE): Likewise.
16385 * sysdeps/unix/sysv/linux/microblaze/bits/mman.h [__USE_MISC]
16386 (MAP_FIXED_NOREPLACE): Likewise.
16387 * sysdeps/unix/sysv/linux/mips/bits/mman.h [__USE_MISC]
16388 (MAP_FIXED_NOREPLACE): Likewise.
16389 * sysdeps/unix/sysv/linux/nios2/bits/mman.h [__USE_MISC]
16390 (MAP_FIXED_NOREPLACE): Likewise.
16391 * sysdeps/unix/sysv/linux/powerpc/bits/mman.h [__USE_MISC]
16392 (MAP_FIXED_NOREPLACE): Likewise.
16393 * sysdeps/unix/sysv/linux/riscv/bits/mman.h [__USE_MISC]
16394 (MAP_FIXED_NOREPLACE): Likewise.
16395 * sysdeps/unix/sysv/linux/s390/bits/mman.h [__USE_MISC]
16396 (MAP_FIXED_NOREPLACE): Likewise.
16397 * sysdeps/unix/sysv/linux/sh/bits/mman.h [__USE_MISC]
16398 (MAP_FIXED_NOREPLACE): Likewise.
16399 * sysdeps/unix/sysv/linux/sparc/bits/mman.h [__USE_MISC]
16400 (MAP_FIXED_NOREPLACE): Likewise.
16401 * sysdeps/unix/sysv/linux/x86/bits/mman.h [__USE_MISC]
16402 (MAP_FIXED_NOREPLACE): Likewise.
16403
16404 * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
16405 version to 4.17.
16406
16407 2018-06-04 Joseph Myers <joseph@codesourcery.com>
16408
16409 * scripts/build-many-glibcs.py (Context.checkout): Default Linux
16410 version to 4.17
16411
16412 2018-06-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
16413
16414 * bits/shm.h (struct shmid_ds): Make shm_segsz field size_t instead of
16415 int.
16416 * sysdeps/gnu/bits/shm.h (struct shmid_ds): Likewise.
16417
16418 2018-06-01 Leonardo Sandoval <leonardo.sandoval.gonzalez@intel.com>
16419
16420 * benchtests/scripts/compare_string.py: (process_results) Catch
16421 exception in non-existent base_func and catch exception in
16422 non-existent attribute.
16423 (parse_file) Catch exception if input file does not exist.
16424
16425 2018-06-01 Leonardo Sandoval <leonardo.sandoval.gonzalez@intel.com>
16426
16427 * benchtests/scripts/compare_string.py: Add --no-diff and --no-header
16428 options to avoid diff calculation and omit header, respectively.
16429 (main): process --no-diff and --no-header
16430
16431 2018-06-01 Leonardo Sandoval <leonardo.sandoval.gonzalez@intel.com>
16432 H.J. Lu <hongjiu.lu@intel.com>
16433
16434 * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
16435 strcmp-avx2, strncmp-avx2, wcscmp-avx2, wcscmp-sse2, wcsncmp-avx2 and
16436 wcsncmp-sse2.
16437 * sysdeps/x86_64/multiarch/ifunc-impl-list.c
16438 (__libc_ifunc_impl_list): Add tests for __strcmp_avx2,
16439 __strncmp_avx2, __wcscmp_avx2, __wcsncmp_avx2, __wcscmp_sse2
16440 and __wcsncmp_sse2.
16441 * sysdeps/x86_64/multiarch/strcmp.c (OPTIMIZE (avx2)):
16442 (IFUNC_SELECTOR): Return OPTIMIZE (avx2) on AVX 2 machines if
16443 AVX unaligned load is fast and vzeroupper is preferred.
16444 * sysdeps/x86_64/multiarch/strncmp.c: Likewise.
16445 * sysdeps/x86_64/multiarch/strcmp-avx2.S: New file.
16446 * sysdeps/x86_64/multiarch/strncmp-avx2.S: Likewise.
16447 * sysdeps/x86_64/multiarch/wcscmp-avx2.S: Likewise.
16448 * sysdeps/x86_64/multiarch/wcscmp-sse2.S: Likewise.
16449 * sysdeps/x86_64/multiarch/wcscmp.c: Likewise.
16450 * sysdeps/x86_64/multiarch/wcsncmp-avx2.S: Likewise.
16451 * sysdeps/x86_64/multiarch/wcsncmp-sse2.c: Likewise.
16452 * sysdeps/x86_64/multiarch/wcsncmp.c: Likewise.
16453 * sysdeps/x86_64/wcscmp.S (__wcscmp): Add alias only if __wcscmp
16454 is undefined.
16455
16456 2018-06-01 Florian Weimer <fweimer@redhat.com>
16457
16458 * sysdeps/i386/fpu/libm-test-ulps: Update with results from
16459 configuring with --disable-multi-arch, building with
16460 “-march=x86-64 -mtune=generic -mfpmath=sse” and running on a
16461 Haswell-era CPU.
16462
16463 2018-06-01 Florian Weimer <fweimer@redhat.com>
16464
16465 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Update with
16466 results from building with “-march=x86-64 -mtune=generic
16467 -mfpmath=sse” and running on a Haswell-era CPU.
16468
16469 2018-06-01 Joseph Myers <joseph@codesourcery.com>
16470
16471 [BZ #18473]
16472 * soft-fp/sqrttf2.c: Remove file.
16473 * soft-fp/sqrtdf2.c: Move to ....
16474 * sysdeps/powerpc/nofpu/sqrtdf2.c: ... here. Include
16475 <shlib-compat.h>.
16476 (__sqrtdf2): Make conditional on
16477 [SHLIB_COMPAT (libc, GLIBC_2_3_2, GLIBC_2_28)]. Define as compat
16478 symbol.
16479 * soft-fp/sqrtsf2.c: Move to ....
16480 * sysdeps/powerpc/nofpu/sqrtsf2.c: ... here. Include
16481 <shlib-compat.h>.
16482 (__sqrtsf2): Make conditional on
16483 [SHLIB_COMPAT (libc, GLIBC_2_3_2, GLIBC_2_28)]. Define as compat
16484 symbol.
16485 * soft-fp/Makefile (gcc-single-routines): Remove sqrtsf2.
16486 (gcc-double-routines): Remove sqrtdf2.
16487 (gcc-quad-routines): Remove sqrttf2.
16488 * sysdeps/nios2/Makefile [$(subdir) = soft-fp] (sysdep_routines):
16489 Do not filter out sqrtsf2 and sqrtdf2.
16490 * sysdeps/powerpc/nofpu/Makefile [$(subdir) = soft-fp]
16491 (sysdep_routines): Add sqrtsf2 and sqrtdf2.
16492
16493 2018-06-01 Florian Weimer <fweimer@redhat.com>
16494
16495 * sysdeps/generic/libcidn.abilist: Remove file.
16496
16497 2018-06-01 Florian Weimer <fweimer@redhat.com>
16498
16499 [BZ #23236]
16500 * libio/strfile.h (struct _IO_str_fields): Rename members to
16501 discourage their use and add comment.
16502 (_IO_STR_DYNAMIC): Remove unused macro.
16503 * libio/strops.c (_IO_str_init_static_internal): Do not use
16504 callback pointers. Call malloc and free.
16505 (_IO_str_overflow): Do not use callback pointers. Call malloc
16506 and free.
16507 (enlarge_userbuf): Likewise.
16508 (_IO_str_finish): Call free.
16509 * libio/wstrops.c (_IO_wstr_init_static): Initialize
16510 _allocate_buffer_unused.
16511 (_IO_wstr_overflow): Do not use callback pointers. Call malloc
16512 and free.
16513 (enlarge_userbuf): Likewise.
16514 (_IO_wstr_finish): Call free.
16515 * debug/vasprintf_chk.c (__vasprintf_chk): Initialize
16516 _allocate_buffer_unused, _free_buffer_unused.
16517 * libio/memstream.c (__open_memstream): Likewise.
16518 * libio/vasprintf.c (_IO_vasprintf): Likewise.
16519 * libio/wmemstream.c (open_wmemstream): Likewise.
16520
16521 2018-05-30 Paul Pluzhnikov <ppluzhnikov@google.com>
16522
16523 * sysdeps/x86_64/fpu/libm-test-ulps (log_vlen8_avx2): Update for
16524 AMD Ryzen 7 1800X.
16525
16526 2018-05-30 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
16527
16528 * sysdeps/powerpc/powerpc64/le/fpu/multiarch/Makefile: New file to
16529 add w_sqrtf128-power9 and w_sqrtf128-ppc64le to libm-sysdep_routines.
16530 * sysdeps/powerpc/powerpc64/le/fpu/multiarch/w_sqrtf128-power9.c:
16531 New file.
16532 * sysdeps/powerpc/powerpc64/le/fpu/multiarch/w_sqrtf128-ppc64le.c:
16533 Likewise.
16534 * sysdeps/powerpc/powerpc64/le/fpu/multiarch/w_sqrtf128.c: Likewise.
16535
16536 2018-05-29 Florian Weimer <fweimer@redhat.com>
16537
16538 * support/Makefile (libsupport-routines): Add
16539 xpthread_barrierattr_destroy, xpthread_barrierattr_init,
16540 xpthread_barrierattr_setpshared.
16541 * support/xpthread_barrierattr_destroy.c: New file.
16542 * support/xpthread_barrierattr_init.c: Likewise.
16543 * support/xpthread_barrierattr_setpshared.c: Likewise.
16544
16545 2018-05-29 H.J. Lu <hongjiu.lu@intel.com>
16546
16547 [BZ #23206]
16548 * elf/dl-reloc-static-pie.c (_dl_relocate_static_pie): Initialize
16549 _r_debug and update DT_DEBUG for debugger.
16550
16551 2018-05-29 Florian Weimer <fweimer@redhat.com>
16552
16553 * stdlib/Makefile (tst-strtod1i.out): Depend on generated locales.
16554 (tst-strtod5i.out): Likewise.
16555
16556 2018-05-25 Joseph Myers <joseph@codesourcery.com>
16557
16558 * sysdeps/sparc/sparc64/Implies: Remove sparc/sparc64/soft-fp.
16559 * sysdeps/sparc/sparc64/Makefile [$(subdir) = soft-fp]
16560 (sparc64-quad-routines): New variable. Moved from ....
16561 [$(subdir) = soft-fp] (sysdep_routines): Add
16562 $(sparc64-quad-routines). Moved from ....
16563 [$(subdir) = math] (CPPFLAGS): Add -I../soft-fp/. Moved from ....
16564 * sysdeps/sparc/sparc64/soft-fp/Makefile: ... here. Remove file.
16565 * sysdeps/sparc/sparc64/Versions (libc): Add GLIBC_2.2 symbols
16566 moved from ....
16567 * sysdeps/sparc/sparc64/soft-fp/Versions: ... here. Remove file.
16568 * sysdeps/sparc/sparc64/soft-fp/e_ilogbl.c: Remove file.
16569 * sysdeps/sparc/sparc64/soft-fp/qp_add.c: Move to ....
16570 * sysdeps/sparc/sparc64/qp_add.c: ... here.
16571 * sysdeps/sparc/sparc64/soft-fp/qp_cmp.c: Move to ....
16572 * sysdeps/sparc/sparc64/qp_cmp.c: ... here.
16573 * sysdeps/sparc/sparc64/soft-fp/qp_cmpe.c: Move to ....
16574 * sysdeps/sparc/sparc64/qp_cmpe.c: ... here.
16575 * sysdeps/sparc/sparc64/soft-fp/qp_div.c: Move to ....
16576 * sysdeps/sparc/sparc64/qp_div.c: ... here.
16577 * sysdeps/sparc/sparc64/soft-fp/qp_dtoq.c: Move to ....
16578 * sysdeps/sparc/sparc64/qp_dtoq.c: ... here.
16579 * sysdeps/sparc/sparc64/soft-fp/qp_feq.c: Move to ....
16580 * sysdeps/sparc/sparc64/qp_feq.c: ... here.
16581 * sysdeps/sparc/sparc64/soft-fp/qp_fge.c: Move to ....
16582 * sysdeps/sparc/sparc64/qp_fge.c: ... here.
16583 * sysdeps/sparc/sparc64/soft-fp/qp_fgt.c: Move to ....
16584 * sysdeps/sparc/sparc64/qp_fgt.c: ... here.
16585 * sysdeps/sparc/sparc64/soft-fp/qp_fle.c: Move to ....
16586 * sysdeps/sparc/sparc64/qp_fle.c: ... here.
16587 * sysdeps/sparc/sparc64/soft-fp/qp_flt.c: Move to ....
16588 * sysdeps/sparc/sparc64/qp_flt.c: ... here.
16589 * sysdeps/sparc/sparc64/soft-fp/qp_fne.c: Move to ....
16590 * sysdeps/sparc/sparc64/qp_fne.c: ... here.
16591 * sysdeps/sparc/sparc64/soft-fp/qp_itoq.c: Move to ....
16592 * sysdeps/sparc/sparc64/qp_itoq.c: ... here.
16593 * sysdeps/sparc/sparc64/soft-fp/qp_mul.c: Move to ....
16594 * sysdeps/sparc/sparc64/qp_mul.c: ... here.
16595 * sysdeps/sparc/sparc64/soft-fp/qp_neg.S: Move to ....
16596 * sysdeps/sparc/sparc64/qp_neg.S: ... here.
16597 * sysdeps/sparc/sparc64/soft-fp/qp_qtod.c: Move to ....
16598 * sysdeps/sparc/sparc64/qp_qtod.c: ... here.
16599 * sysdeps/sparc/sparc64/soft-fp/qp_qtoi.c: Move to ....
16600 * sysdeps/sparc/sparc64/qp_qtoi.c: ... here.
16601 * sysdeps/sparc/sparc64/soft-fp/qp_qtos.c: Move to ....
16602 * sysdeps/sparc/sparc64/qp_qtos.c: ... here.
16603 * sysdeps/sparc/sparc64/soft-fp/qp_qtoui.c: Move to ....
16604 * sysdeps/sparc/sparc64/qp_qtoui.c: ... here.
16605 * sysdeps/sparc/sparc64/soft-fp/qp_qtoux.c: Move to ....
16606 * sysdeps/sparc/sparc64/qp_qtoux.c: ... here.
16607 * sysdeps/sparc/sparc64/soft-fp/qp_qtox.c: Move to ....
16608 * sysdeps/sparc/sparc64/qp_qtox.c: ... here.
16609 * sysdeps/sparc/sparc64/soft-fp/qp_sqrt.c: Move to ....
16610 * sysdeps/sparc/sparc64/qp_sqrt.c: ... here.
16611 * sysdeps/sparc/sparc64/soft-fp/qp_stoq.c: Move to ....
16612 * sysdeps/sparc/sparc64/qp_stoq.c: ... here.
16613 * sysdeps/sparc/sparc64/soft-fp/qp_sub.c: Move to ....
16614 * sysdeps/sparc/sparc64/qp_sub.c: ... here.
16615 * sysdeps/sparc/sparc64/soft-fp/qp_uitoq.c: Move to ....
16616 * sysdeps/sparc/sparc64/qp_uitoq.c: ... here.
16617 * sysdeps/sparc/sparc64/soft-fp/qp_util.c: Move to ....
16618 * sysdeps/sparc/sparc64/qp_util.c: ... here.
16619 * sysdeps/sparc/sparc64/soft-fp/qp_uxtoq.c: Move to ....
16620 * sysdeps/sparc/sparc64/qp_uxtoq.c: ... here.
16621 * sysdeps/sparc/sparc64/soft-fp/qp_xtoq.c: Move to ....
16622 * sysdeps/sparc/sparc64/qp_xtoq.c: ... here.
16623 * sysdeps/sparc/sparc64/soft-fp/sfp-machine.h: Move to ....
16624 * sysdeps/sparc/sparc64/sfp-machine.h: ... here.
16625
16626 * sysdeps/sparc/sparc32/Implies: Remove sparc/sparc32/soft-fp.
16627 * sysdeps/sparc/sparc32/Makefile [$(subdir) = soft-fp]
16628 (sparc32-quad-routines): New variable. Moved from ....
16629 [$(subdir) = soft-fp] (sysdep_routines): Add
16630 $(sparc32-quad-routines). Moved from ....
16631 * sysdeps/sparc/sparc32/soft-fp/Makefile: ... here. Remove file.
16632 * sysdeps/sparc/sparc32/Versions (libc): Add GLIBC_2.4 symbols
16633 moved from ....
16634 * sysdeps/sparc/sparc32/soft-fp/Versions: ... here. Remove file.
16635 * sysdeps/sparc/sparc32/soft-fp/q_add.c: Move to ....
16636 * sysdeps/sparc/sparc32/q_add.c: ... here.
16637 * sysdeps/sparc/sparc32/soft-fp/q_cmp.c: Move to ....
16638 * sysdeps/sparc/sparc32/q_cmp.c: ... here.
16639 * sysdeps/sparc/sparc32/soft-fp/q_cmpe.c: Move to ....
16640 * sysdeps/sparc/sparc32/q_cmpe.c: ... here.
16641 * sysdeps/sparc/sparc32/soft-fp/q_div.c: Move to ....
16642 * sysdeps/sparc/sparc32/q_div.c: ... here.
16643 * sysdeps/sparc/sparc32/soft-fp/q_dtoq.c: Move to ....
16644 * sysdeps/sparc/sparc32/q_dtoq.c: ... here.
16645 * sysdeps/sparc/sparc32/soft-fp/q_feq.c: Move to ....
16646 * sysdeps/sparc/sparc32/q_feq.c: ... here.
16647 * sysdeps/sparc/sparc32/soft-fp/q_fge.c: Move to ....
16648 * sysdeps/sparc/sparc32/q_fge.c: ... here.
16649 * sysdeps/sparc/sparc32/soft-fp/q_fgt.c: Move to ....
16650 * sysdeps/sparc/sparc32/q_fgt.c: ... here.
16651 * sysdeps/sparc/sparc32/soft-fp/q_fle.c: Move to ....
16652 * sysdeps/sparc/sparc32/q_fle.c: ... here.
16653 * sysdeps/sparc/sparc32/soft-fp/q_flt.c: Move to ....
16654 * sysdeps/sparc/sparc32/q_flt.c: ... here.
16655 * sysdeps/sparc/sparc32/soft-fp/q_fne.c: Move to ....
16656 * sysdeps/sparc/sparc32/q_fne.c: ... here.
16657 * sysdeps/sparc/sparc32/soft-fp/q_itoq.c: Move to ....
16658 * sysdeps/sparc/sparc32/q_itoq.c: ... here.
16659 * sysdeps/sparc/sparc32/soft-fp/q_lltoq.c: Move to ....
16660 * sysdeps/sparc/sparc32/q_lltoq.c: ... here.
16661 * sysdeps/sparc/sparc32/soft-fp/q_mul.c: Move to ....
16662 * sysdeps/sparc/sparc32/q_mul.c: ... here.
16663 * sysdeps/sparc/sparc32/soft-fp/q_neg.c: Move to ....
16664 * sysdeps/sparc/sparc32/q_neg.c: ... here.
16665 * sysdeps/sparc/sparc32/soft-fp/q_qtod.c: Move to ....
16666 * sysdeps/sparc/sparc32/q_qtod.c: ... here.
16667 * sysdeps/sparc/sparc32/soft-fp/q_qtoi.c: Move to ....
16668 * sysdeps/sparc/sparc32/q_qtoi.c: ... here.
16669 * sysdeps/sparc/sparc32/soft-fp/q_qtoll.c: Move to ....
16670 * sysdeps/sparc/sparc32/q_qtoll.c: ... here.
16671 * sysdeps/sparc/sparc32/soft-fp/q_qtos.c: Move to ....
16672 * sysdeps/sparc/sparc32/q_qtos.c: ... here.
16673 * sysdeps/sparc/sparc32/soft-fp/q_qtou.c: Move to ....
16674 * sysdeps/sparc/sparc32/q_qtou.c: ... here.
16675 * sysdeps/sparc/sparc32/soft-fp/q_qtoull.c: Move to ....
16676 * sysdeps/sparc/sparc32/q_qtoull.c: ... here.
16677 * sysdeps/sparc/sparc32/soft-fp/q_sqrt.c: Move to ....
16678 * sysdeps/sparc/sparc32/q_sqrt.c: ... here.
16679 * sysdeps/sparc/sparc32/soft-fp/q_stoq.c: Move to ....
16680 * sysdeps/sparc/sparc32/q_stoq.c: ... here.
16681 * sysdeps/sparc/sparc32/soft-fp/q_sub.c: Move to ....
16682 * sysdeps/sparc/sparc32/q_sub.c: ... here.
16683 * sysdeps/sparc/sparc32/soft-fp/q_ulltoq.c: Move to ....
16684 * sysdeps/sparc/sparc32/q_ulltoq.c: ... here.
16685 * sysdeps/sparc/sparc32/soft-fp/q_util.c: Move to ....
16686 * sysdeps/sparc/sparc32/q_util.c: ... here.
16687 * sysdeps/sparc/sparc32/soft-fp/q_utoq.c: Move to ....
16688 * sysdeps/sparc/sparc32/q_utoq.c: ... here.
16689 * sysdeps/sparc/sparc32/soft-fp/sfp-machine.h: Move to ....
16690 * sysdeps/sparc/sparc32/sfp-machine.h: ... here.
16691
16692 2018-05-24 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
16693 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
16694
16695 * sysdeps/powerpc/Implies: Removed. Previous contents copied to...
16696 * sysdeps/powerpc/powerpc32/Implies-after: ... here.
16697 * sysdeps/powerpc/powerpc64/be/Implies-after: ... here.
16698 * sysdeps/powerpc/powerpc64/le/Implies-before: ... and here.
16699
16700 2018-05-24 Joseph Myers <joseph@codesourcery.com>
16701
16702 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/Implies: Remove
16703 powerpc/soft-fp.
16704 * sysdeps/unix/sysv/linux/powerpc/powerpc32/e500/nofpu/Implies:
16705 Likewise.
16706 * sysdeps/powerpc/soft-fp/sfp-machine.h: Move to ....
16707 * sysdeps/powerpc/nofpu/sfp-machine.h: ... here.
16708
16709 2018-05-24 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
16710
16711 [BZ #23171]
16712 * math/math.h [C++] (iseqsig): Fix parameter type for the long
16713 double version.
16714
16715 2018-05-23 Joseph Myers <joseph@codesourcery.com>
16716
16717 * sysdeps/sh/Implies: Remove sh/soft-fp.
16718 * sysdeps/sh/soft-fp/sfp-machine.h: Move to ....
16719 * sysdeps/sh/sfp-machine.h: ... here.
16720
16721 2018-05-23 H.J. Lu <hongjiu.lu@intel.com>
16722
16723 * sysdeps/x86_64/multiarch/memmove-vec-unaligned-erms.S
16724 (__mempcpy_erms): Skip zero length.
16725 (__memmove_erms): Likewise.
16726 * sysdeps/x86_64/multiarch/memset-vec-unaligned-erms.S
16727 (__memset_erms): Likewise.
16728
16729 2018-05-23 Joseph Myers <joseph@codesourcery.com>
16730
16731 * sysdeps/alpha/Implies: Remove alpha/soft-fp.
16732 * sysdeps/alpha/Makefile [$(subdir) = soft-fp] (sysdep_routines):
16733 Add functions moved from ....
16734 [$(subdir) = math] (CPPFLAGS): Add -I../soft-fp. Moved from ....
16735 * sysdeps/alpha/soft-fp/Makefile: ... here. Remove file.
16736 * sysdeps/alpha/Versions (libc): Add GLIBC_2.3.4 symbols moved
16737 from ....
16738 * sysdeps/alpha/soft-fp/Versions: ... here. Remove file.
16739 * sysdeps/alpha/soft-fp/e_sqrtl.c: Move to ....
16740 * sysdeps/alpha/e_sqrtl.c: ... here.
16741 * sysdeps/alpha/soft-fp/local-soft-fp.h: Move to ....
16742 * sysdeps/alpha/local-soft-fp.h: ... here.
16743 * sysdeps/alpha/soft-fp/ots_add.c: Move to ....
16744 * sysdeps/alpha/ots_add.c: ... here.
16745 * sysdeps/alpha/soft-fp/ots_cmp.c: Move to ....
16746 * sysdeps/alpha/ots_cmp.c: ... here.
16747 * sysdeps/alpha/soft-fp/ots_cmpe.c: Move to ....
16748 * sysdeps/alpha/ots_cmpe.c: ... here.
16749 * sysdeps/alpha/soft-fp/ots_cvtqux.c: Move to ....
16750 * sysdeps/alpha/ots_cvtqux.c: ... here.
16751 * sysdeps/alpha/soft-fp/ots_cvtqx.c: Move to ....
16752 * sysdeps/alpha/ots_cvtqx.c: ... here.
16753 * sysdeps/alpha/soft-fp/ots_cvttx.c: Move to ....
16754 * sysdeps/alpha/ots_cvttx.c: ... here.
16755 * sysdeps/alpha/soft-fp/ots_cvtxq.c: Move to ....
16756 * sysdeps/alpha/ots_cvtxq.c: ... here.
16757 * sysdeps/alpha/soft-fp/ots_cvtxt.c: Move to ....
16758 * sysdeps/alpha/ots_cvtxt.c: ... here.
16759 * sysdeps/alpha/soft-fp/ots_div.c: Move to ....
16760 * sysdeps/alpha/ots_div.c: ... here.
16761 * sysdeps/alpha/soft-fp/ots_mul.c: Move to ....
16762 * sysdeps/alpha/ots_mul.c: ... here.
16763 * sysdeps/alpha/soft-fp/ots_nintxq.c: Move to ....
16764 * sysdeps/alpha/ots_nintxq.c: ... here.
16765 * sysdeps/alpha/soft-fp/ots_sub.c: Move to ....
16766 * sysdeps/alpha/ots_sub.c: ... here.
16767 * sysdeps/alpha/soft-fp/sfp-machine.h: Move to ....
16768 * sysdeps/alpha/sfp-machine.h: ... here.
16769
16770 2018-05-23 Florian Weimer <fweimer@redhat.com>
16771
16772 [BZ #19728]
16773 [BZ #19729]
16774 [BZ #22247]
16775 CVE-2016-6261
16776 CVE-2016-6263
16777 CVE-2017-14062
16778 Switch to extern IDNA implementation (libidn2).
16779 * libidn: Remove subdirectory.
16780 * LICENSES: Do not mention licensing conditions for the removed
16781 libidn code.
16782 * config.h.in (HAVE_LIBIDN): Remove.
16783 * include/dlfcn.h (__libc_dlopen): Update comment.
16784 * include/idna.h: Remove file.
16785 * inet/Makefile (routines): Add idna.
16786 (tests-static, tests-internal): Add tst-idna_name_classify.
16787 (LOCALES): Generate locales for tests.
16788 (tst-idna_name_classify.out): Depend on generated locales.
16789 * inet/idna_name_classify.c: New file.
16790 * inet/tst-idna_name_classify.c: Likewise.
16791 * inet/net-internal.h (__idna_to_dns_encoding)
16792 (__idna_from_dns_encoding): Declare.
16793 * inet/net-internal.h (enum idna_name_classification): Define.
16794 (__idna_name_classify): Declare.
16795 * inet/Versions (GLIBC_PRIVATE): Add __idna_to_dns_encoding,
16796 __idna_from_dns_encoding.
16797 * inet/getnameinfo.c (DEPRECATED_NI_IDN): Define.
16798 (gni_host_inet_name): Call __idna_from_dns_encoding. Use punycode
16799 name as a fallback in case of encoding errors.
16800 (getnameinfo): Use DEPRECATED_NI_IDN.
16801 * inet/idna.c: New file.
16802 * nscd/gai.c: Do not include <libidn/idn-stub.c>.
16803 * resolv/Makefile (tests): Add tst-resolv-ai_idn,
16804 tst-resolv-ai_idn-latin1, tst-resolv-ai_idn-nolibidn2.
16805 (modules-names): Add tst-no-libidn2.
16806 (extra-test-objs): Add tst-no-libidn2.os.
16807 (LDFLAGS-tst-no-libidn2.so): Set soname.
16808 (LOCALES): Set, and generate locales.
16809 (tst-resolv-ai_idn): Link with -ldl -lresolv -lpthread.
16810 (tst-resolv-ai_idn-latin1): Likewise.
16811 (tst-resolv-ai_idn-nolibidn2): Likewise.
16812 (tst-resolv-ai_idn.out): Depend on locales.
16813 (tst-resolv-ai_idn-latin1.out): Depend on locales.
16814 (tst-resolv-ai_idn-nolibidn2.out): Depend on locales and
16815 tst-no-libidn2.so.
16816 * resolv/netdb.h (AI_IDN_ALLOW_UNASSIGNED)
16817 (AI_IDN_USE_STD3_ASCII_RULES, NI_IDN_ALLOW_UNASSIGNED)
16818 (NI_IDN_USE_STD3_ASCII_RULES): Deprecate.
16819 * resolv/tst-resolv-ai_idn.c: New file.
16820 * resolv/tst-resolv-ai_idn-latin1.c: Likewise.
16821 * resolv/tst-resolv-ai_idn-nolibidn2.c: Likewise.
16822 * resolv/tst-no-libidn2.c: Likewise.
16823 * support/support_format_addrinfo.c (format_ai_flags): Do not
16824 handle AI_IDN_ALLOW_UNASSIGNED, AI_IDN_USE_STD3_ASCII_RULES.
16825 * sysdeps/posix/getaddrinfo.c (DEPRECATED_AI_IDN): Define.
16826 (gaih_inet): Call __idna_to_dns_encoding and
16827 __idna_from_dns_encoding, and use the original (punycode) name if
16828 __idna_from_dns_encoding fails due to an encoding error.
16829 (getaddrinfo): Use DEPRECATED_AI_IDN.
16830 * sysdeps/unix/inet/Subdirs (libidn): Remove.
16831 * sysdeps/unix/inet/configure: Remove file.
16832 * sysdeps/unix/inet/configure.ac: Likewise.
16833
16834 2018-05-23 Florian Weimer <fweimer@redhat.com>
16835
16836 Implement allocate_once.
16837 * include/allocate_once.h: New file.
16838 * misc/allocate_once.c: Likewise.
16839 * misc/tst-allocate_once.c: Likewise.
16840 * misc/Makefile (routines): Add allocate_once.
16841 (tests-internal): Add tst-allocate_once.
16842 (generated): Add tst-allocate_once.mtrace,
16843 tst-allocate_once-mem.out.
16844 (tests-special): Add tst-allocate_once-mem.out.
16845 (tst-allocate_once-ENV): Set MALLOC_TRACE.
16846 (tst-allocate_once-mem.out): Call mtrace.
16847 * misc/Versions (GLIBC_PRIVATE): Add __libc_allocate_once_slow.
16848
16849 2018-05-23 H.J. Lu <hongjiu.lu@intel.com>
16850
16851 [BZ #23196]
16852 * string/test-memcpy.c (do_test1): New function.
16853 (test_main): Call it.
16854
16855 2018-05-23 Andreas Schwab <schwab@suse.de>
16856
16857 [BZ #23196]
16858 CVE-2018-11237
16859 * sysdeps/x86_64/multiarch/memmove-avx512-no-vzeroupper.S
16860 (L(preloop_large)): Save initial destination pointer in %r11 and
16861 use it instead of %rax after the loop.
16862 * string/test-mempcpy.c (MIN_PAGE_SIZE): Define.
16863
16864 2018-05-22 Joseph Myers <joseph@codesourcery.com>
16865
16866 * sysdeps/aarch64/Implies: Remove aarch64/soft-fp.
16867 * sysdeps/aarch64/Makefile [$(subdir) = math] (CPPFLAGS): Add
16868 -I../soft-fp. Moved from ....
16869 * sysdeps/aarch64/soft-fp/Makefile: ... here. Remove file.
16870 * sysdeps/aarch64/soft-fp/e_sqrtl.c: Move to ....
16871 * sysdeps/aarch64/e_sqrtl.c: ... here.
16872 * sysdeps/aarch64/soft-fp/sfp-machine.h: Move to ....
16873 * sysdeps/aarch64/sfp-machine.h: ... here.
16874
16875 * sysdeps/ieee754/dbl-64/k_rem_pio2.c (__kernel_rem_pio2): Ignore
16876 -Wmaybe-uninitialized around access to fq[0].
16877 * sysdeps/ieee754/flt-32/k_rem_pio2f.c (__kernel_rem_pio2f):
16878 Likewise.
16879
16880 [BZ #18471]
16881 * sysdeps/unix/make-syscalls.sh (emit_weak_aliases): Use weak
16882 aliases for non-libc case of versioned symbols.
16883 * sysdeps/unix/sysv/linux/lseek64.c: Include <shlib-compat.h>.
16884 (llseek): Define as compat symbol if
16885 [SHLIB_COMPAT (libc, GLIBC_2_0, GLIBC_2_28)], not as weak alias
16886 with link warning.
16887 * sysdeps/unix/sysv/linux/mips/mips64/n32/syscalls.list (llseek):
16888 Make into a compat symbol, disabled for minimum symbol version
16889 GLIBC_2.28 and later.
16890 * sysdeps/unix/sysv/linux/x86_64/x32/llseek.S: Remove file.
16891
16892 2018-05-22 Florian Weimer <fweimer@redhat.com>
16893
16894 * sysdeps/i386/Makefile [$(subdir) == math] (sysdep-CFLAGS): Do
16895 not add -mpreferred-stack-boundary=4.
16896 [$(subdir) == csu] (sysdep-CFLAGS): Likewise.
16897 (stack-align-test-flags): Likewise.
16898 [$(subdir) == stdlib] (CFLAGS-exit.c, CFLAGS-cxa_finalize.c):
16899 Likewise.
16900 [$(subdir) == elf] (CFLAGS-dl-init.c, CFLAGS-dl-fini.c)
16901 (CFLAGS-dl-open.c, CFLAGS-dl-close.c, CFLAGS-dl-error.c): Likewise.
16902 [$(subdir) == dlfcn] (CFLAGS-dlopen.c, CFLAGS-dlopenold.c)
16903 (CFLAGS-dlclose.c, CFLAGS-dlerror.c): Likewise.
16904 * sysdeps/i386/nptl/Makefile [$(subdir) == nptl]
16905 (CFLAGS-pthread_create.c, CFLAGS-tst-align.c)
16906 (CFLAGS-tst-align2.c): Likewise.
16907
16908 2018-05-21 H.J. Lu <hongjiu.lu@intel.com>
16909
16910 * sysdeps/x86/cpu-features.h (bit_arch_Prefer_FSRM): New.
16911 (index_arch_Prefer_FSRM): Likewise.
16912 * sysdeps/x86/cpu-tunables.c (TUNABLE_CALLBACK (set_hwcaps)):
16913 Also check Prefer_FSRM.
16914 * sysdeps/x86_64/multiarch/ifunc-memmove.h (IFUNC_SELECTOR):
16915 Also return OPTIMIZE (erms) for Prefer_FSRM.
16916
16917 2018-05-21 H.J. Lu <hongjiu.lu@intel.com>
16918
16919 * sysdeps/x86/cpu-features.h (bit_cpu_FSRM): New.
16920 (index_cpu_FSRM): Likewise.
16921 (reg_FSRM): Likewise.
16922
16923 2018-05-18 Joseph Myers <joseph@codesourcery.com>
16924
16925 * math/gen-tgmath-tests.py: Import sys.
16926 (Tests.__init__): Initialize macros_seen.
16927 (Tests.add_tests): Add macro to macros_seen. Only generate tests
16928 if requested to do so for this macro.
16929 (Tests.add_all_tests): Take argument for macro for which to
16930 generate tests.
16931 (Tests.check_macro_list): New function.
16932 (main): Handle check-list argument and argument specifying macro
16933 for which to generate tests.
16934 * math/Makefile [PYTHON] (tgmath3-macros): New variable.
16935 [PYTHON] (tgmath3-macro-tests): Likewise.
16936 [PYTHON] (tests): Add $(tgmath3-macro-tests) not test-tgmath3.
16937 [PYTHON] (generated): Add $(addsuffix .c,$(tgmath3-macro-tests))
16938 not test-tgmath3.c.
16939 [PYTHON] (CFLAGS-test-tgmath3.c): Remove.
16940 [PYTHON] ($(tgmath3-macro-tests:%=$(objpfx)%.o): Add -fno-builtin
16941 to CFLAGS.
16942 [PYTHON] ($(objpfx)test-tgmath3.c): Replace rule by....
16943 [PYTHON] ($(foreach
16944 m,$(tgmath3-macros),$(objpfx)test-tgmath3-$(m).c): ... this. New
16945 rule.
16946 [PYTHON] (tests-special): Add
16947 $(objpfx)test-tgmath3-macro-list.out.
16948 [PYTHON] ($(objpfx)test-tgmath3-macro-list.out): New rule.
16949
16950 * sysdeps/unix/sysv/linux/syscalls.list (nfsservctl): Make into a
16951 compat symbol, disabled for minimum symbol version GLIBC_2.28 and
16952 later.
16953
16954 [BZ #22639]
16955 * time/tzset.c (SECSPERDAY): Cast to time_t.
16956 * time/tst-y2039.c: New file.
16957 * time/Makefile (tests): Add tst-y2039.
16958
16959 2018-05-17 Leonardo Sandoval <leonardo.sandoval.gonzalez@intel.com>
16960
16961 * sysdeps/x86_64/multiarch/memmove-vec-unaligned-erms.S
16962 (PREFETCH_ONE_SET): Remove duplicate line.
16963
16964 2018-05-17 Florian Weimer <fweimer@redhat.com>
16965
16966 * sysdeps/generic/math-type-macros-double.h: Include
16967 <math-nan-payload-double.h> after <libm-alias-double.h>.
16968 * sysdeps/generic/math-type-macros-float.h: Include
16969 <math-nan-payload-float.h> after <libm-alias-float.h>.
16970 * sysdeps/generic/math-type-macros-float128.h: Include
16971 <math-nan-payload-float128.h> after <libm-alias-float128.h>.
16972 * sysdeps/generic/math-type-macros-ldouble.h: Include
16973 <math-nan-payload-ldouble.h> after <libm-alias-ldouble.h>.
16974
16975 2018-05-17 Andreas Schwab <schwab@suse.de>
16976
16977 * resolv/res_send.c (__res_context_send): Don't set errno when
16978 returing error after malloc failure.
16979
16980 2018-05-17 H.J. Lu <hongjiu.lu@intel.com>
16981
16982 * nptl/allocatestack.c (allocate_stack): Remove the
16983 !__ASSUME_PRIVATE_FUTEX paths.
16984 * nptl/descr.h (header): Remove the !__ASSUME_PRIVATE_FUTEX path.
16985 * nptl/nptl-init.c (__pthread_initialize_minimal_internal):
16986 Likewise.
16987 * sysdeps/i386/nptl/tcb-offsets.sym (PRIVATE_FUTEX): Removed.
16988 * sysdeps/powerpc/nptl/tcb-offsets.sym (PRIVATE_FUTEX): Likewise.
16989 * sysdeps/sh/nptl/tcb-offsets.sym (PRIVATE_FUTEX): Likewise.
16990 * sysdeps/x86_64/nptl/tcb-offsets.sym (PRIVATE_FUTEX): Likewise.
16991 * sysdeps/i386/nptl/tls.h: (tcbhead_t): Remve the
16992 !__ASSUME_PRIVATE_FUTEX path.
16993 * sysdeps/s390/nptl/tls.h (tcbhead_t): Likewise.
16994 * sysdeps/sparc/nptl/tls.h (tcbhead_t): Likewise.
16995 * sysdeps/x86_64/nptl/tls.h (tcbhead_t): Likewise.
16996 * sysdeps/unix/sysv/linux/i386/lowlevellock.S: Remove the
16997 !__ASSUME_PRIVATE_FUTEX macros.
16998 * sysdeps/unix/sysv/linux/lowlevellock-futex.h: Likewise.
16999 * sysdeps/unix/sysv/linux/x86_64/cancellation.S: Likewise.
17000 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.S: Likewise.
17001 * sysdeps/unix/sysv/linux/kernel-features.h
17002 (__ASSUME_PRIVATE_FUTEX): Removed.
17003
17004 2018-05-17 Joseph Myers <joseph@codesourcery.com>
17005
17006 * math/Makefile (libm-narrow-fns): Add div.
17007 (libm-test-funcs-narrow): Likewise.
17008 * math/Versions (GLIBC_2.28): Add narrowing divide functions.
17009 * math/bits/mathcalls-narrow.h (div): Use __MATHCALL_NARROW.
17010 * math/gen-auto-libm-tests.c (test_functions): Add div.
17011 * math/math-narrow.h (CHECK_NARROW_DIV): New macro.
17012 (NARROW_DIV_ROUND_TO_ODD): Likewise.
17013 (NARROW_DIV_TRIVIAL): Likewise.
17014 * sysdeps/ieee754/float128/float128_private.h (__fdivl): New
17015 macro.
17016 (__ddivl): Likewise.
17017 * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Add fdiv and
17018 ddiv.
17019 (CFLAGS-nldbl-ddiv.c): New variable.
17020 (CFLAGS-nldbl-fdiv.c): Likewise.
17021 * sysdeps/ieee754/ldbl-opt/Versions (GLIBC_2.28): Add
17022 __nldbl_ddivl.
17023 * sysdeps/ieee754/ldbl-opt/nldbl-compat.h (__nldbl_ddivl): New
17024 prototype.
17025 * manual/arith.texi (Misc FP Arithmetic): Document fdiv, fdivl,
17026 ddivl, fMdivfN, fMdivfNx, fMxdivfN and fMxdivfNx.
17027 * math/auto-libm-test-in: Add tests of div.
17028 * math/auto-libm-test-out-narrow-div: New generated file.
17029 * math/libm-test-narrow-div.inc: New file.
17030 * sysdeps/i386/fpu/s_f32xdivf64.c: Likewise.
17031 * sysdeps/ieee754/dbl-64/s_f32xdivf64.c: Likewise.
17032 * sysdeps/ieee754/dbl-64/s_fdiv.c: Likewise.
17033 * sysdeps/ieee754/float128/s_f32divf128.c: Likewise.
17034 * sysdeps/ieee754/float128/s_f64divf128.c: Likewise.
17035 * sysdeps/ieee754/float128/s_f64xdivf128.c: Likewise.
17036 * sysdeps/ieee754/ldbl-128/s_ddivl.c: Likewise.
17037 * sysdeps/ieee754/ldbl-128/s_f64xdivf128.c: Likewise.
17038 * sysdeps/ieee754/ldbl-128/s_fdivl.c: Likewise.
17039 * sysdeps/ieee754/ldbl-128ibm/s_ddivl.c: Likewise.
17040 * sysdeps/ieee754/ldbl-128ibm/s_fdivl.c: Likewise.
17041 * sysdeps/ieee754/ldbl-96/s_ddivl.c: Likewise.
17042 * sysdeps/ieee754/ldbl-96/s_fdivl.c: Likewise.
17043 * sysdeps/ieee754/ldbl-opt/nldbl-ddiv.c: Likewise.
17044 * sysdeps/ieee754/ldbl-opt/nldbl-fdiv.c: Likewise.
17045 * sysdeps/ieee754/soft-fp/s_ddivl.c: Likewise.
17046 * sysdeps/ieee754/soft-fp/s_fdiv.c: Likewise.
17047 * sysdeps/ieee754/soft-fp/s_fdivl.c: Likewise.
17048 * sysdeps/powerpc/fpu/libm-test-ulps: Update.
17049 * sysdeps/mach/hurd/i386/libm.abilist: Likewise.
17050 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
17051 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
17052 * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
17053 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
17054 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
17055 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
17056 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
17057 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
17058 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
17059 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
17060 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
17061 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
17062 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Likewise.
17063 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist: Likewise.
17064 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Likewise.
17065 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Likewise.
17066 * sysdeps/unix/sysv/linux/riscv/rv64/libm.abilist: Likewise.
17067 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
17068 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
17069 * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
17070 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
17071 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
17072 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
17073 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
17074
17075 2018-05-16 Adhemerval Zanella <adhemerval.zanella@linaro.org>
17076
17077 [BZ #23178]
17078 * nscd/nscd-client.h (sendfileall): Remove prototype.
17079 * nscd/connections.c [HAVE_SENDFILE] (sendfileall): Remove function.
17080 (handle_request): Use writeall instead of sendfileall.
17081 * nscd/aicache.c (addhstaiX): Likewise.
17082 * nscd/grpcache.c (cache_addgr): Likewise.
17083 * nscd/hstcache.c (cache_addhst): Likewise.
17084 * nscd/initgrcache.c (addinitgroupsX): Likewise.
17085 * nscd/netgroupcache.c (addgetnetgrentX, addinnetgrX): Likewise.
17086 * nscd/pwdcache.c (cache_addpw): Likewise.
17087 * nscd/servicescache.c (cache_addserv): Likewise.
17088 * sysdeps/unix/sysv/linux/Makefile [$(subdir) == nscd]
17089 (sysdep-CFLAGS): Remove -DHAVE_SENDFILE.
17090 * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_SENDFILE):
17091 Remove define.
17092
17093 2018-05-16 H.J. Lu <hongjiu.lu@intel.com>
17094
17095 * sysdeps/x86_64/multiarch/strncat-c.c (STRNCAT_PRIMARY): Removed.
17096 Include <string/strncat.c>.
17097 * sysdeps/x86_64/multiarch/strncat.c (__strncat): New strong
17098 alias.
17099 (__GI___strncat): New hidden alias.
17100
17101 2018-05-16 Joseph Myers <joseph@codesourcery.com>
17102
17103 * sysdeps/mips/mips32/libm-test-ulps: Update.
17104 * sysdeps/mips/mips64/libm-test-ulps: Likewise.
17105
17106 2018-05-16 Florian Weimer <fweimer@redhat.com>
17107
17108 * support/Makefile (libsupport-routines): Add support_quote_blob,
17109 support_test_compare_blob.
17110 (tests): Add tst-support_quote_blob, tst-test_compare_blob.
17111 * support/check.h (TEST_COMPARE_BLOB): Define.
17112 (support_test_compare_blob): Declare.
17113 * support/support.h (support_quote_blob): Declare.
17114 * support/support_quote_blob.c: New file.
17115 * support/support_test_compare_blob.c: Likewise.
17116 * support/tst-support_quote_blob.c: Likewise.
17117 * support/tst-test_compare_blob.c: Likewise.
17118
17119 2018-05-16 Florian Weimer <fweimer@redhat.com>
17120
17121 * stdlib/strtod_nan.c: Include <math-type-macros-double.h> instead
17122 of <strtod_nan_double.h>.
17123 * stdlib/strtod_nan_main.c (STRTOD_NAN): Use SET_NAN_PAYLOAD
17124 instead of SET_MANTISSA.
17125 * stdlib/strtof_nan.c: Include <math-type-macros-float.h> instead
17126 of include <strtod_nan_float.h>.
17127 * stdlib/strtold_nan.c: Include <math-type-macros-ldouble.h>
17128 instead of <strtod_nan_ldouble.h>.
17129 * stdlib/strtod_nan_double.h: Move to ...
17130 * sysdeps/generic/math-nan-payload-double.h: ... here.
17131 (FLOAT): Remove definition.
17132 (SET_MANTISSA): Rename to ...
17133 (SET_NAN_PAYLOAD): ... this.
17134 * stdlib/strtod_nan_float.h: Move to ...
17135 * sysdeps/generic/math-nan-payload-float.h: ... here.
17136 (FLOAT): Remove definition.
17137 (SET_MANTISSA): Rename to ...
17138 (SET_NAN_PAYLOAD): ... this.
17139 * sysdeps/generic/math-type-macros-double.h: Include
17140 <math-nan-payload-double.h>. Include <math/math-svid-compat.h>
17141 instead of <math-svid-compat.h>.
17142 * sysdeps/generic/math-type-macros-float.h: Include
17143 <math-nan-payload-float.h>. Include <math/math-svid-compat.h>
17144 instead of <math-svid-compat.h>.
17145 * sysdeps/generic/math-type-macros-float128.h: Include
17146 <math-nan-payload-float128.h>.
17147 * sysdeps/generic/math-type-macros-ldouble.h: Include
17148 <math-nan-payload-ldouble.h>. Include <math/math-svid-compat.h>
17149 instead of <math-svid-compat.h>.
17150 * sysdeps/generic/math-type-macros.h: Document SET_NAN_PAYLOAD and
17151 check for definition.
17152 * sysdeps/ieee754/float128/strtod_nan_float128.h: Move to ...
17153 * sysdeps/ieee754/float128/math-nan-payload-float128.h: ... here.
17154 Include <ieee754_float128.h>.
17155 (FLOAT): Remove definition.
17156 (SET_MANTISSA): Rename to ...
17157 (SET_NAN_PAYLOAD): ... this.
17158 * sysdeps/ieee754/float128/strtof128_nan.c: Include
17159 <math-type-macros-float128.h> instead of <strtod_nan_float128.h>.
17160 Do not include <float128_private.h>.
17161 * sysdeps/ieee754/float128/wcstof128_nan.c: Likewise.
17162 * sysdeps/ieee754/ldbl-128/strtod_nan_ldouble.h: Move to ...
17163 * sysdeps/ieee754/ldbl-128/math-nan-payload-ldouble.h: ... here.
17164 (FLOAT): Remove definition.
17165 (SET_MANTISSA): Rename to ...
17166 (SET_NAN_PAYLOAD): ... this.
17167 * sysdeps/ieee754/ldbl-128ibm/strtod_nan_ldouble.h: Move to ...
17168 * sysdeps/ieee754/ldbl-128ibm/math-nan-payload-ldouble.h: ... here.
17169 (FLOAT): Remove definition.
17170 (SET_MANTISSA): Rename to ...
17171 (SET_NAN_PAYLOAD): ... this.
17172 * sysdeps/ieee754/ldbl-96/strtod_nan_ldouble.h: Move to ...
17173 * sysdeps/ieee754/ldbl-96/math-nan-payload-ldouble.h: ... here.
17174 (FLOAT): Remove definition.
17175 (SET_MANTISSA): Rename to ...
17176 (SET_NAN_PAYLOAD): ... this.
17177 * wcsmbs/wcstod_nan.c: Include <math-type-macros-double.h> instead
17178 of "../stdlib/strtod_nan_double.h".
17179 * wcsmbs/wcstof_nan.c: Include <math-type-macros-float.h> instead
17180 of "../stdlib/strtod_nan_float.h".
17181 * wcsmbs/wcstold_nan.c: Include <math-type-macros-ldouble.h>
17182 instead of "../stdlib/strtod_nan_ldouble.h".
17183 * manual/arith.texi (Parsing of Floats): Adjust comment.
17184
17185 2018-05-16 Joseph Myers <joseph@codesourcery.com>
17186
17187 * math/Makefile (libm-narrow-fns): Add mul.
17188 (libm-test-funcs-narrow): Likewise.
17189 * math/Versions (GLIBC_2.28): Add narrowing multiply functions.
17190 * math/bits/mathcalls-narrow.h (mul): Use __MATHCALL_NARROW.
17191 * math/gen-auto-libm-tests.c (test_functions): Add mul.
17192 * math/math-narrow.h (CHECK_NARROW_MUL): New macro.
17193 (NARROW_MUL_ROUND_TO_ODD): Likewise.
17194 (NARROW_MUL_TRIVIAL): Likewise.
17195 * soft-fp/op-common.h (FP_TRUNC_COOKED): Likewise.
17196 * sysdeps/ieee754/float128/float128_private.h (__fmull): New
17197 macro.
17198 (__dmull): Likewise.
17199 * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Add fmul and
17200 dmul.
17201 (CFLAGS-nldbl-dmul.c): New variable.
17202 (CFLAGS-nldbl-fmul.c): Likewise.
17203 * sysdeps/ieee754/ldbl-opt/Versions (GLIBC_2.28): Add
17204 __nldbl_dmull.
17205 * sysdeps/ieee754/ldbl-opt/nldbl-compat.h (__nldbl_dmull): New
17206 prototype.
17207 * manual/arith.texi (Misc FP Arithmetic): Document fmul, fmull,
17208 dmull, fMmulfN, fMmulfNx, fMxmulfN and fMxmulfNx.
17209 * math/auto-libm-test-in: Add tests of mul.
17210 * math/auto-libm-test-out-narrow-mul: New generated file.
17211 * math/libm-test-narrow-mul.inc: New file.
17212 * sysdeps/i386/fpu/s_f32xmulf64.c: Likewise.
17213 * sysdeps/ieee754/dbl-64/s_f32xmulf64.c: Likewise.
17214 * sysdeps/ieee754/dbl-64/s_fmul.c: Likewise.
17215 * sysdeps/ieee754/float128/s_f32mulf128.c: Likewise.
17216 * sysdeps/ieee754/float128/s_f64mulf128.c: Likewise.
17217 * sysdeps/ieee754/float128/s_f64xmulf128.c: Likewise.
17218 * sysdeps/ieee754/ldbl-128/s_dmull.c: Likewise.
17219 * sysdeps/ieee754/ldbl-128/s_f64xmulf128.c: Likewise.
17220 * sysdeps/ieee754/ldbl-128/s_fmull.c: Likewise.
17221 * sysdeps/ieee754/ldbl-128ibm/s_dmull.c: Likewise.
17222 * sysdeps/ieee754/ldbl-128ibm/s_fmull.c: Likewise.
17223 * sysdeps/ieee754/ldbl-96/s_dmull.c: Likewise.
17224 * sysdeps/ieee754/ldbl-96/s_fmull.c: Likewise.
17225 * sysdeps/ieee754/ldbl-opt/nldbl-dmul.c: Likewise.
17226 * sysdeps/ieee754/ldbl-opt/nldbl-fmul.c: Likewise.
17227 * sysdeps/ieee754/soft-fp/s_dmull.c: Likewise.
17228 * sysdeps/ieee754/soft-fp/s_fmul.c: Likewise.
17229 * sysdeps/ieee754/soft-fp/s_fmull.c: Likewise.
17230 * sysdeps/powerpc/fpu/libm-test-ulps: Update.
17231 * sysdeps/mach/hurd/i386/libm.abilist: Likewise.
17232 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
17233 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
17234 * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
17235 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
17236 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
17237 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
17238 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
17239 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
17240 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
17241 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
17242 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
17243 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
17244 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Likewise.
17245 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist: Likewise.
17246 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Likewise.
17247 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Likewise.
17248 * sysdeps/unix/sysv/linux/riscv/rv64/libm.abilist: Likewise.
17249 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
17250 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
17251 * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
17252 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
17253 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
17254 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
17255 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
17256
17257 2018-05-14 H.J. Lu <hongjiu.lu@intel.com>
17258
17259 * sysdeps/i386/crti.S (_init): Replace PREINIT_FUNCTION@PLT
17260 with *%eax in call.
17261
17262 2018-05-14 H.J. Lu <hongjiu.lu@intel.com>
17263
17264 * sysdeps/i386/ldsodefs.h: Removed.
17265 * sysdeps/x86_64/ldsodefs.h: Moved to ...
17266 * sysdeps/x86/ldsodefs.h: This.
17267 (La_i86_regs): New.
17268 (La_i86_retval): Likewise.
17269 (ARCH_PLTENTER_MEMBERS): Add i86_gnu_pltenter.
17270 (ARCH_PLTEXIT_MEMBERS): i86_gnu_pltexit.
17271
17272 2018-05-14 H.J. Lu <hongjiu.lu@intel.com>
17273
17274 * sysdeps/x86_64/multiarch/strlen-avx2.S (STRLEN): Remove the
17275 unnecessary testl.
17276
17277 2018-05-13 Alan Modra <amodra@gmail.com>
17278
17279 * sysdeps/hppa/dl-machine.h (elf_machine_rela): Add
17280 R_PARISC_TLS_DTPOFF32 reloc addend.
17281
17282 2018-05-11 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
17283
17284 * bits/floatn-common.h: Define __HAVE_FLOAT128_UNLIKE_LDBL.
17285 * math/math.h: Restrict the prototype definition for the functions
17286 issignaling(_Float128) and iszero(_Float128); and template
17287 __iseqsig_type<_Float128>, from __HAVE_DISTINCT_FLOAT128 to
17288 __HAVE_FLOAT128_UNLIKE_LDBL.
17289 * sysdeps/powerpc/bits/floatn.h [__HAVE_FLOAT128
17290 && (!__GNUC_PREREQ (7, 0) || defined __cplusplus)
17291 && __LDBL_MANT_DIG__ == 113]: Use long double suffix for
17292 __f128() constants; define the type _Float128 as long double;
17293 and reuse long double in __CFLOAT128.
17294
17295 2018-05-11 Joseph Myers <joseph@codesourcery.com>
17296
17297 * sysdeps/generic/math_private.h: Do not include
17298 <math-barriers.h>.
17299 * stdlib/strtod_l.c: Include <math-barriers.h> instead of
17300 <math_private.h>.
17301 * math/fromfp.h: Include <math-barriers.h>.
17302 * math/math-narrow.h: Likewise.
17303 * math/s_nextafter.c: Likewise.
17304 * math/s_nexttowardf.c: Likewise.
17305 * sysdeps/aarch64/fpu/s_llrint.c: Likewise.
17306 * sysdeps/aarch64/fpu/s_llrintf.c: Likewise.
17307 * sysdeps/aarch64/fpu/s_lrint.c: Likewise.
17308 * sysdeps/aarch64/fpu/s_lrintf.c: Likewise.
17309 * sysdeps/i386/fpu/s_nextafterl.c: Likewise.
17310 * sysdeps/i386/fpu/s_nexttoward.c: Likewise.
17311 * sysdeps/i386/fpu/s_nexttowardf.c: Likewise.
17312 * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
17313 * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
17314 * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
17315 * sysdeps/ieee754/dbl-64/e_exp2.c: Likewise.
17316 * sysdeps/ieee754/dbl-64/e_j0.c: Likewise.
17317 * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
17318 * sysdeps/ieee754/dbl-64/s_expm1.c: Likewise.
17319 * sysdeps/ieee754/dbl-64/s_fma.c: Likewise.
17320 * sysdeps/ieee754/dbl-64/s_fmaf.c: Likewise.
17321 * sysdeps/ieee754/dbl-64/s_log1p.c: Likewise.
17322 * sysdeps/ieee754/dbl-64/s_nearbyint.c: Likewise.
17323 * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c: Likewise.
17324 * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
17325 * sysdeps/ieee754/flt-32/e_j0f.c: Likewise.
17326 * sysdeps/ieee754/flt-32/s_expm1f.c: Likewise.
17327 * sysdeps/ieee754/flt-32/s_log1pf.c: Likewise.
17328 * sysdeps/ieee754/flt-32/s_nearbyintf.c: Likewise.
17329 * sysdeps/ieee754/flt-32/s_nextafterf.c: Likewise.
17330 * sysdeps/ieee754/k_standardl.c: Likewise.
17331 * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
17332 * sysdeps/ieee754/ldbl-128/e_expl.c: Likewise.
17333 * sysdeps/ieee754/ldbl-128/e_powl.c: Likewise.
17334 * sysdeps/ieee754/ldbl-128/s_fmal.c: Likewise.
17335 * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Likewise.
17336 * sysdeps/ieee754/ldbl-128/s_nextafterl.c: Likewise.
17337 * sysdeps/ieee754/ldbl-128/s_nexttoward.c: Likewise.
17338 * sysdeps/ieee754/ldbl-128/s_nexttowardf.c: Likewise.
17339 * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
17340 * sysdeps/ieee754/ldbl-128ibm/s_fmal.c: Likewise.
17341 * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c: Likewise.
17342 * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Likewise.
17343 * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c: Likewise.
17344 * sysdeps/ieee754/ldbl-128ibm/s_rintl.c: Likewise.
17345 * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
17346 * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
17347 * sysdeps/ieee754/ldbl-96/s_fma.c: Likewise.
17348 * sysdeps/ieee754/ldbl-96/s_fmal.c: Likewise.
17349 * sysdeps/ieee754/ldbl-96/s_nexttoward.c: Likewise.
17350 * sysdeps/ieee754/ldbl-96/s_nexttowardf.c: Likewise.
17351 * sysdeps/ieee754/ldbl-opt/s_nexttowardfd.c: Likewise.
17352 * sysdeps/m68k/m680x0/fpu/s_nextafterl.c: Likewise.
17353
17354 2018-05-11 Florian Weimer <fweimer@redhat.com>
17355
17356 Use 64-bit epoch values in the time zone file parser.
17357 * include/time.h (internal_time_t): Define.
17358 (__tzfile_compute): Use it.
17359 * time/tzfile.c (struct leap): Use internal_time_t for epoch
17360 member.
17361 (transitions): Switch to internal_time_t.
17362 (__tzfile_read): Likewise. Remove code dealing with 4-byte time_t
17363 types.
17364 (__tzfile_compute): Use internal_time_t for timer argument. Check
17365 for truncation before calling __offtime.
17366
17367 2018-05-11 Florian Weimer <fweimer@redhat.com>
17368
17369 [BZ #23166]
17370 * include/rpc/clnt.h (rpc_createerr): Declare hidden alias.
17371 * include/rpc/svc.h (svc_pollfd, svc_max_pollfd, svc_fdset):
17372 Likewise.
17373 * sunrpc/rpc_common.c (svc_fdset, rpc_createerr, svc_pollfd)
17374 (svc_max_pollfd): Add nocommon attribute and hidden alias. Do not
17375 export without --enable-obsolete-rpc.
17376 * sunrpc/svcauth_des.c (svcauthdes_stats): Turn into compatibility
17377 symbol. This should not have been exported, ever.
17378
17379 2018-05-11 Rafał Lużyński <digitalfreak@lingonborough.com>
17380
17381 [BZ #23152]
17382 * localedata/locales/gd_GB (abmon): Fix typo in May:
17383 "Mhàrt" -> "Cèit". Adjust the comment according to the change.
17384
17385 2018-05-11 Siddhesh Poyarekar <siddhesh@sourceware.org>
17386
17387 * sysdeps/aarch64/multiarch/memcpy_falkor.S (__memcpy_falkor):
17388 Use multiple registers to copy data in loop tail.
17389
17390 * sysdeps/aarch64/multiarch/memmove_falkor.S
17391 (__memmove_falkor): Use multiple registers to move data in
17392 loop tail.
17393
17394 2018-05-10 Joseph Myers <joseph@codesourcery.com>
17395
17396 * math/math-underflow.h: New file.
17397 * sysdeps/generic/math_private.h: Do not include <float.h>.
17398 (fabs_tg): Remove macro. Moved to math-underflow.h.
17399 (min_of_type_f): Likewise.
17400 (min_of_type_): Likewise.
17401 (min_of_type_l): Likewise.
17402 (min_of_type_f128): Likewise.
17403 (min_of_type): Likewise.
17404 (math_check_force_underflow): Likewise.
17405 (math_check_force_underflow_nonneg): Likewise.
17406 (math_check_force_underflow_complex): Likewise.
17407 * math/e_exp2_template.c: Include <math-underflow.h>.
17408 * math/k_casinh_template.c: Likewise.
17409 * math/s_catan_template.c: Likewise.
17410 * math/s_catanh_template.c: Likewise.
17411 * math/s_ccosh_template.c: Likewise.
17412 * math/s_cexp_template.c: Likewise.
17413 * math/s_clog10_template.c: Likewise.
17414 * math/s_clog_template.c: Likewise.
17415 * math/s_csin_template.c: Likewise.
17416 * math/s_csinh_template.c: Likewise.
17417 * math/s_csqrt_template.c: Likewise.
17418 * math/s_ctan_template.c: Likewise.
17419 * math/s_ctanh_template.c: Likewise.
17420 * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
17421 * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
17422 * sysdeps/ieee754/dbl-64/e_exp2.c: Likewise.
17423 * sysdeps/ieee754/dbl-64/e_gamma_r.c: Likewise.
17424 * sysdeps/ieee754/dbl-64/e_hypot.c: Likewise.
17425 * sysdeps/ieee754/dbl-64/e_j1.c: Likewise.
17426 * sysdeps/ieee754/dbl-64/e_jn.c: Likewise.
17427 * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
17428 * sysdeps/ieee754/dbl-64/e_sinh.c: Likewise.
17429 * sysdeps/ieee754/dbl-64/s_asinh.c: Likewise.
17430 * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
17431 * sysdeps/ieee754/dbl-64/s_erf.c: Likewise.
17432 * sysdeps/ieee754/dbl-64/s_expm1.c: Likewise.
17433 * sysdeps/ieee754/dbl-64/s_log1p.c: Likewise.
17434 * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
17435 * sysdeps/ieee754/dbl-64/s_sincos.c: Likewise.
17436 * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
17437 * sysdeps/ieee754/dbl-64/s_tanh.c: Likewise.
17438 * sysdeps/ieee754/flt-32/e_asinf.c: Likewise.
17439 * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
17440 * sysdeps/ieee754/flt-32/e_gammaf_r.c: Likewise.
17441 * sysdeps/ieee754/flt-32/e_j1f.c: Likewise.
17442 * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
17443 * sysdeps/ieee754/flt-32/e_sinhf.c: Likewise.
17444 * sysdeps/ieee754/flt-32/k_sinf.c: Likewise.
17445 * sysdeps/ieee754/flt-32/k_tanf.c: Likewise.
17446 * sysdeps/ieee754/flt-32/s_asinhf.c: Likewise.
17447 * sysdeps/ieee754/flt-32/s_atanf.c: Likewise.
17448 * sysdeps/ieee754/flt-32/s_erff.c: Likewise.
17449 * sysdeps/ieee754/flt-32/s_expm1f.c: Likewise.
17450 * sysdeps/ieee754/flt-32/s_log1pf.c: Likewise.
17451 * sysdeps/ieee754/flt-32/s_tanhf.c: Likewise.
17452 * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
17453 * sysdeps/ieee754/ldbl-128/e_atanhl.c: Likewise.
17454 * sysdeps/ieee754/ldbl-128/e_expl.c: Likewise.
17455 * sysdeps/ieee754/ldbl-128/e_gammal_r.c: Likewise.
17456 * sysdeps/ieee754/ldbl-128/e_hypotl.c: Likewise.
17457 * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
17458 * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
17459 * sysdeps/ieee754/ldbl-128/e_sinhl.c: Likewise.
17460 * sysdeps/ieee754/ldbl-128/k_sincosl.c: Likewise.
17461 * sysdeps/ieee754/ldbl-128/k_sinl.c: Likewise.
17462 * sysdeps/ieee754/ldbl-128/k_tanl.c: Likewise.
17463 * sysdeps/ieee754/ldbl-128/s_asinhl.c: Likewise.
17464 * sysdeps/ieee754/ldbl-128/s_atanl.c: Likewise.
17465 * sysdeps/ieee754/ldbl-128/s_erfl.c: Likewise.
17466 * sysdeps/ieee754/ldbl-128/s_expm1l.c: Likewise.
17467 * sysdeps/ieee754/ldbl-128/s_log1pl.c: Likewise.
17468 * sysdeps/ieee754/ldbl-128/s_tanhl.c: Likewise.
17469 * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
17470 * sysdeps/ieee754/ldbl-128ibm/e_atanhl.c: Likewise.
17471 * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c: Likewise.
17472 * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c: Likewise.
17473 * sysdeps/ieee754/ldbl-128ibm/e_j1l.c: Likewise.
17474 * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
17475 * sysdeps/ieee754/ldbl-128ibm/e_powl.c: Likewise.
17476 * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c: Likewise.
17477 * sysdeps/ieee754/ldbl-128ibm/k_sincosl.c: Likewise.
17478 * sysdeps/ieee754/ldbl-128ibm/k_sinl.c: Likewise.
17479 * sysdeps/ieee754/ldbl-128ibm/k_tanl.c: Likewise.
17480 * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c: Likewise.
17481 * sysdeps/ieee754/ldbl-128ibm/s_atanl.c: Likewise.
17482 * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Likewise.
17483 * sysdeps/ieee754/ldbl-128ibm/s_fmal.c: Likewise.
17484 * sysdeps/ieee754/ldbl-128ibm/s_tanhl.c: Likewise.
17485 * sysdeps/ieee754/ldbl-96/e_asinl.c: Likewise.
17486 * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
17487 * sysdeps/ieee754/ldbl-96/e_gammal_r.c: Likewise.
17488 * sysdeps/ieee754/ldbl-96/e_hypotl.c: Likewise.
17489 * sysdeps/ieee754/ldbl-96/e_j1l.c: Likewise.
17490 * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
17491 * sysdeps/ieee754/ldbl-96/e_sinhl.c: Likewise.
17492 * sysdeps/ieee754/ldbl-96/k_sinl.c: Likewise.
17493 * sysdeps/ieee754/ldbl-96/k_tanl.c: Likewise.
17494 * sysdeps/ieee754/ldbl-96/s_asinhl.c: Likewise.
17495 * sysdeps/ieee754/ldbl-96/s_erfl.c: Likewise.
17496 * sysdeps/ieee754/ldbl-96/s_tanhl.c: Likewise.
17497 * sysdeps/powerpc/fpu/e_hypot.c: Likewise.
17498 * sysdeps/x86/fpu/powl_helper.c: Likewise.
17499 * sysdeps/ieee754/dbl-64/s_nextup.c: Include <float.h>.
17500 * sysdeps/ieee754/flt-32/s_nextupf.c: Likewise.
17501 * sysdeps/ieee754/ldbl-128/s_nextupl.c: Likewise.
17502 * sysdeps/ieee754/ldbl-128ibm/s_nextupl.c: Likewise.
17503 * sysdeps/ieee754/ldbl-96/s_nextupl.c: Likewise.
17504
17505 2018-05-09 Joseph Myers <joseph@codesourcery.com>
17506
17507 * sysdeps/generic/math-barriers.h: New file.
17508 * sysdeps/generic/math_private.h [!math_opt_barrier]
17509 (math_opt_barrier): Move to math-barriers.h.
17510 [!math_opt_barrier] (math_force_eval): Likewise.
17511 * sysdeps/aarch64/fpu/math-barriers.h: New file.
17512 * sysdeps/aarch64/fpu/math_private.h (math_opt_barrier): Move to
17513 math-barriers.h.
17514 (math_force_eval): Likewise.
17515 * sysdeps/alpha/fpu/math-barriers.h: New file.
17516 * sysdeps/alpha/fpu/math_private.h (math_opt_barrier): Move to
17517 math-barriers.h.
17518 (math_force_eval): Likewise.
17519 * sysdeps/x86/fpu/math-barriers.h: New file.
17520 * sysdeps/i386/fpu/fenv_private.h (math_opt_barrier): Move to
17521 math-barriers.h.
17522 (math_force_eval): Likewise.
17523 * sysdeps/m68k/m680x0/fpu/math_private.h: Move to....
17524 * sysdeps/m68k/m680x0/fpu/math-barriers.h: ... here. Adjust
17525 multiple-include guard for rename.
17526 * sysdeps/powerpc/fpu/math-barriers.h: New file.
17527 * sysdeps/powerpc/fpu/math_private.h (math_opt_barrier): Move to
17528 math-barriers.h.
17529 (math_force_eval): Likewise.
17530
17531 2018-05-09 Paul Pluzhnikov <ppluzhnikov@google.com>
17532
17533 [BZ #22786]
17534 CVE-2018-11236
17535 * stdlib/canonicalize.c (__realpath): Fix overflow in path length
17536 computation.
17537 * stdlib/Makefile (test-bz22786): New test.
17538 * stdlib/test-bz22786.c: New test.
17539
17540 2018-05-09 Joseph Myers <joseph@codesourcery.com>
17541
17542 * include/math-narrow-eval.h: New file. Contents moved from ....
17543 * sysdeps/generic/math_private.h: ... here.
17544 (math_narrow_eval): Remove macro. Moved to math-narrow-eval.h.
17545 [FLT_EVAL_METHOD != 0] (excess_precision): Likewise.
17546 * math/s_fdim_template.c: Include <math-narrow-eval.h>.
17547 * stdlib/strtod_l.c: Likewise.
17548 * sysdeps/i386/fpu/s_f32xaddf64.c: Likewise.
17549 * sysdeps/i386/fpu/s_f32xsubf64.c: Likewise.
17550 * sysdeps/i386/fpu/s_fdim.c: Likewise.
17551 * sysdeps/ieee754/dbl-64/e_cosh.c: Likewise.
17552 * sysdeps/ieee754/dbl-64/e_gamma_r.c: Likewise.
17553 * sysdeps/ieee754/dbl-64/e_j1.c: Likewise.
17554 * sysdeps/ieee754/dbl-64/e_jn.c: Likewise.
17555 * sysdeps/ieee754/dbl-64/e_lgamma_r.c: Likewise.
17556 * sysdeps/ieee754/dbl-64/e_sinh.c: Likewise.
17557 * sysdeps/ieee754/dbl-64/gamma_productf.c: Likewise.
17558 * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Likewise.
17559 * sysdeps/ieee754/dbl-64/lgamma_neg.c: Likewise.
17560 * sysdeps/ieee754/dbl-64/s_erf.c: Likewise.
17561 * sysdeps/ieee754/dbl-64/s_llrint.c: Likewise.
17562 * sysdeps/ieee754/dbl-64/s_lrint.c: Likewise.
17563 * sysdeps/ieee754/flt-32/e_coshf.c: Likewise.
17564 * sysdeps/ieee754/flt-32/e_exp2f.c: Likewise.
17565 * sysdeps/ieee754/flt-32/e_expf.c: Likewise.
17566 * sysdeps/ieee754/flt-32/e_gammaf_r.c: Likewise.
17567 * sysdeps/ieee754/flt-32/e_j1f.c: Likewise.
17568 * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
17569 * sysdeps/ieee754/flt-32/e_lgammaf_r.c: Likewise.
17570 * sysdeps/ieee754/flt-32/e_sinhf.c: Likewise.
17571 * sysdeps/ieee754/flt-32/k_rem_pio2f.c: Likewise.
17572 * sysdeps/ieee754/flt-32/lgamma_negf.c: Likewise.
17573 * sysdeps/ieee754/flt-32/s_erff.c: Likewise.
17574 * sysdeps/ieee754/flt-32/s_llrintf.c: Likewise.
17575 * sysdeps/ieee754/flt-32/s_lrintf.c: Likewise.
17576 * sysdeps/ieee754/ldbl-96/gamma_product.c: Likewise.
17577
17578 2018-05-08 Andreas Schwab <schwab@suse.de>
17579
17580 * sysdeps/nptl/internaltypes.h: Fix comment.
17581
17582 2018-05-07 H.J. Lu <hongjiu.lu@intel.com>
17583
17584 * sysdeps/x86_64/multiarch/memset-vec-unaligned-erms.S
17585 (MEMSET_SYMBOL (__memset, erms)): Mark the debugger symbol as
17586 hidden.
17587
17588 2018-05-07 Siddhesh Poyarekar <siddhesh@sourceware.org>
17589
17590 * benchtests/bench-memcpy-walk.c (test_main): Move declaration
17591 of I into loop header.
17592 * benchtests/bench-memmove-walk.c
17593 (test_main): Likewise.
17594
17595 2018-05-07 Alexandre Oliva <oliva@gnu.org>
17596
17597 Revert:
17598 2018-04-30 Raymond Nicholson <rain1@airmail.cc>
17599 * manual/startup.texi (Aborting a Program): Remove inappropriate joke.
17600
17601 2018-05-05 Paul Pluzhnikov <ppluzhnikov@google.com>
17602
17603 [BZ #20419]
17604 * elf/dl-load.c (open_verify): Fix stack overflow.
17605 * elf/Makefile (tst-big-note): New test.
17606 * elf/tst-big-note-lib.S: New.
17607 * elf/tst-big-note.c: New.
17608
17609 2018-05-04 Joseph Myers <joseph@codesourcery.com>
17610
17611 * scripts/abilist.awk: Ignore absolute symbols.
17612 * sysdeps/mach/hurd/i386/ld.abilist: Remove absolute symbols.
17613 * sysdeps/mach/hurd/i386/libBrokenLocale.abilist: Likewise.
17614 * sysdeps/mach/hurd/i386/libanl.abilist: Likewise.
17615 * sysdeps/mach/hurd/i386/libc.abilist: Likewise.
17616 * sysdeps/mach/hurd/i386/libcrypt.abilist: Likewise.
17617 * sysdeps/mach/hurd/i386/libdl.abilist: Likewise.
17618 * sysdeps/mach/hurd/i386/libm.abilist: Likewise.
17619 * sysdeps/mach/hurd/i386/libnsl.abilist: Likewise.
17620 * sysdeps/mach/hurd/i386/libpthread.abilist: Likewise.
17621 * sysdeps/mach/hurd/i386/libresolv.abilist: Likewise.
17622 * sysdeps/mach/hurd/i386/librt.abilist: Likewise.
17623 * sysdeps/mach/hurd/i386/libutil.abilist: Likewise.
17624 * sysdeps/unix/sysv/linux/aarch64/ld.abilist: Likewise.
17625 * sysdeps/unix/sysv/linux/aarch64/libBrokenLocale.abilist: Likewise.
17626 * sysdeps/unix/sysv/linux/aarch64/libanl.abilist: Likewise.
17627 * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Likewise.
17628 * sysdeps/unix/sysv/linux/aarch64/libcrypt.abilist: Likewise.
17629 * sysdeps/unix/sysv/linux/aarch64/libdl.abilist: Likewise.
17630 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
17631 * sysdeps/unix/sysv/linux/aarch64/libnsl.abilist: Likewise.
17632 * sysdeps/unix/sysv/linux/aarch64/libpthread.abilist: Likewise.
17633 * sysdeps/unix/sysv/linux/aarch64/libresolv.abilist: Likewise.
17634 * sysdeps/unix/sysv/linux/aarch64/librt.abilist: Likewise.
17635 * sysdeps/unix/sysv/linux/aarch64/libthread_db.abilist: Likewise.
17636 * sysdeps/unix/sysv/linux/aarch64/libutil.abilist: Likewise.
17637 * sysdeps/unix/sysv/linux/alpha/ld.abilist: Likewise.
17638 * sysdeps/unix/sysv/linux/alpha/libBrokenLocale.abilist: Likewise.
17639 * sysdeps/unix/sysv/linux/alpha/libanl.abilist: Likewise.
17640 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
17641 * sysdeps/unix/sysv/linux/alpha/libcrypt.abilist: Likewise.
17642 * sysdeps/unix/sysv/linux/alpha/libdl.abilist: Likewise.
17643 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
17644 * sysdeps/unix/sysv/linux/alpha/libnsl.abilist: Likewise.
17645 * sysdeps/unix/sysv/linux/alpha/libpthread.abilist: Likewise.
17646 * sysdeps/unix/sysv/linux/alpha/libresolv.abilist: Likewise.
17647 * sysdeps/unix/sysv/linux/alpha/librt.abilist: Likewise.
17648 * sysdeps/unix/sysv/linux/alpha/libthread_db.abilist: Likewise.
17649 * sysdeps/unix/sysv/linux/alpha/libutil.abilist: Likewise.
17650 * sysdeps/unix/sysv/linux/arm/ld.abilist: Likewise.
17651 * sysdeps/unix/sysv/linux/arm/libBrokenLocale.abilist: Likewise.
17652 * sysdeps/unix/sysv/linux/arm/libanl.abilist: Likewise.
17653 * sysdeps/unix/sysv/linux/arm/libc.abilist: Likewise.
17654 * sysdeps/unix/sysv/linux/arm/libcrypt.abilist: Likewise.
17655 * sysdeps/unix/sysv/linux/arm/libdl.abilist: Likewise.
17656 * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
17657 * sysdeps/unix/sysv/linux/arm/libnsl.abilist: Likewise.
17658 * sysdeps/unix/sysv/linux/arm/libpthread.abilist: Likewise.
17659 * sysdeps/unix/sysv/linux/arm/libresolv.abilist: Likewise.
17660 * sysdeps/unix/sysv/linux/arm/librt.abilist: Likewise.
17661 * sysdeps/unix/sysv/linux/arm/libthread_db.abilist: Likewise.
17662 * sysdeps/unix/sysv/linux/arm/libutil.abilist: Likewise.
17663 * sysdeps/unix/sysv/linux/hppa/ld.abilist: Likewise.
17664 * sysdeps/unix/sysv/linux/hppa/libBrokenLocale.abilist: Likewise.
17665 * sysdeps/unix/sysv/linux/hppa/libanl.abilist: Likewise.
17666 * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
17667 * sysdeps/unix/sysv/linux/hppa/libcrypt.abilist: Likewise.
17668 * sysdeps/unix/sysv/linux/hppa/libdl.abilist: Likewise.
17669 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
17670 * sysdeps/unix/sysv/linux/hppa/libnsl.abilist: Likewise.
17671 * sysdeps/unix/sysv/linux/hppa/libpthread.abilist: Likewise.
17672 * sysdeps/unix/sysv/linux/hppa/libresolv.abilist: Likewise.
17673 * sysdeps/unix/sysv/linux/hppa/librt.abilist: Likewise.
17674 * sysdeps/unix/sysv/linux/hppa/libthread_db.abilist: Likewise.
17675 * sysdeps/unix/sysv/linux/hppa/libutil.abilist: Likewise.
17676 * sysdeps/unix/sysv/linux/i386/ld.abilist: Likewise.
17677 * sysdeps/unix/sysv/linux/i386/libBrokenLocale.abilist: Likewise.
17678 * sysdeps/unix/sysv/linux/i386/libanl.abilist: Likewise.
17679 * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
17680 * sysdeps/unix/sysv/linux/i386/libcrypt.abilist: Likewise.
17681 * sysdeps/unix/sysv/linux/i386/libdl.abilist: Likewise.
17682 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
17683 * sysdeps/unix/sysv/linux/i386/libnsl.abilist: Likewise.
17684 * sysdeps/unix/sysv/linux/i386/libpthread.abilist: Likewise.
17685 * sysdeps/unix/sysv/linux/i386/libresolv.abilist: Likewise.
17686 * sysdeps/unix/sysv/linux/i386/librt.abilist: Likewise.
17687 * sysdeps/unix/sysv/linux/i386/libthread_db.abilist: Likewise.
17688 * sysdeps/unix/sysv/linux/i386/libutil.abilist: Likewise.
17689 * sysdeps/unix/sysv/linux/ia64/ld.abilist: Likewise.
17690 * sysdeps/unix/sysv/linux/ia64/libBrokenLocale.abilist: Likewise.
17691 * sysdeps/unix/sysv/linux/ia64/libanl.abilist: Likewise.
17692 * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
17693 * sysdeps/unix/sysv/linux/ia64/libcrypt.abilist: Likewise.
17694 * sysdeps/unix/sysv/linux/ia64/libdl.abilist: Likewise.
17695 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
17696 * sysdeps/unix/sysv/linux/ia64/libnsl.abilist: Likewise.
17697 * sysdeps/unix/sysv/linux/ia64/libpthread.abilist: Likewise.
17698 * sysdeps/unix/sysv/linux/ia64/libresolv.abilist: Likewise.
17699 * sysdeps/unix/sysv/linux/ia64/librt.abilist: Likewise.
17700 * sysdeps/unix/sysv/linux/ia64/libthread_db.abilist: Likewise.
17701 * sysdeps/unix/sysv/linux/ia64/libutil.abilist: Likewise.
17702 * sysdeps/unix/sysv/linux/m68k/coldfire/ld.abilist: Likewise.
17703 * sysdeps/unix/sysv/linux/m68k/coldfire/libBrokenLocale.abilist:
17704 Likewise.
17705 * sysdeps/unix/sysv/linux/m68k/coldfire/libanl.abilist: Likewise.
17706 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
17707 * sysdeps/unix/sysv/linux/m68k/coldfire/libcrypt.abilist: Likewise.
17708 * sysdeps/unix/sysv/linux/m68k/coldfire/libdl.abilist: Likewise.
17709 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
17710 * sysdeps/unix/sysv/linux/m68k/coldfire/libnsl.abilist: Likewise.
17711 * sysdeps/unix/sysv/linux/m68k/coldfire/libpthread.abilist: Likewise.
17712 * sysdeps/unix/sysv/linux/m68k/coldfire/libresolv.abilist: Likewise.
17713 * sysdeps/unix/sysv/linux/m68k/coldfire/librt.abilist: Likewise.
17714 * sysdeps/unix/sysv/linux/m68k/coldfire/libthread_db.abilist: Likewise.
17715 * sysdeps/unix/sysv/linux/m68k/coldfire/libutil.abilist: Likewise.
17716 * sysdeps/unix/sysv/linux/m68k/m680x0/ld.abilist: Likewise.
17717 * sysdeps/unix/sysv/linux/m68k/m680x0/libBrokenLocale.abilist:
17718 Likewise.
17719 * sysdeps/unix/sysv/linux/m68k/m680x0/libanl.abilist: Likewise.
17720 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
17721 * sysdeps/unix/sysv/linux/m68k/m680x0/libcrypt.abilist: Likewise.
17722 * sysdeps/unix/sysv/linux/m68k/m680x0/libdl.abilist: Likewise.
17723 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
17724 * sysdeps/unix/sysv/linux/m68k/m680x0/libnsl.abilist: Likewise.
17725 * sysdeps/unix/sysv/linux/m68k/m680x0/libpthread.abilist: Likewise.
17726 * sysdeps/unix/sysv/linux/m68k/m680x0/libresolv.abilist: Likewise.
17727 * sysdeps/unix/sysv/linux/m68k/m680x0/librt.abilist: Likewise.
17728 * sysdeps/unix/sysv/linux/m68k/m680x0/libthread_db.abilist: Likewise.
17729 * sysdeps/unix/sysv/linux/m68k/m680x0/libutil.abilist: Likewise.
17730 * sysdeps/unix/sysv/linux/microblaze/ld.abilist: Likewise.
17731 * sysdeps/unix/sysv/linux/microblaze/libBrokenLocale.abilist: Likewise.
17732 * sysdeps/unix/sysv/linux/microblaze/libanl.abilist: Likewise.
17733 * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
17734 * sysdeps/unix/sysv/linux/microblaze/libcrypt.abilist: Likewise.
17735 * sysdeps/unix/sysv/linux/microblaze/libdl.abilist: Likewise.
17736 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
17737 * sysdeps/unix/sysv/linux/microblaze/libnsl.abilist: Likewise.
17738 * sysdeps/unix/sysv/linux/microblaze/libpthread.abilist: Likewise.
17739 * sysdeps/unix/sysv/linux/microblaze/libresolv.abilist: Likewise.
17740 * sysdeps/unix/sysv/linux/microblaze/librt.abilist: Likewise.
17741 * sysdeps/unix/sysv/linux/microblaze/libthread_db.abilist: Likewise.
17742 * sysdeps/unix/sysv/linux/microblaze/libutil.abilist: Likewise.
17743 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
17744 * sysdeps/unix/sysv/linux/mips/mips32/ld.abilist: Likewise.
17745 * sysdeps/unix/sysv/linux/mips/mips32/libBrokenLocale.abilist:
17746 Likewise.
17747 * sysdeps/unix/sysv/linux/mips/mips32/libanl.abilist: Likewise.
17748 * sysdeps/unix/sysv/linux/mips/mips32/libcidn.abilist: Likewise.
17749 * sysdeps/unix/sysv/linux/mips/mips32/libcrypt.abilist: Likewise.
17750 * sysdeps/unix/sysv/linux/mips/mips32/libdl.abilist: Likewise.
17751 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
17752 * sysdeps/unix/sysv/linux/mips/mips32/libnsl.abilist: Likewise.
17753 * sysdeps/unix/sysv/linux/mips/mips32/libnss_compat.abilist: Likewise.
17754 * sysdeps/unix/sysv/linux/mips/mips32/libnss_db.abilist: Likewise.
17755 * sysdeps/unix/sysv/linux/mips/mips32/libnss_dns.abilist: Likewise.
17756 * sysdeps/unix/sysv/linux/mips/mips32/libnss_files.abilist: Likewise.
17757 * sysdeps/unix/sysv/linux/mips/mips32/libnss_hesiod.abilist: Likewise.
17758 * sysdeps/unix/sysv/linux/mips/mips32/libnss_nis.abilist: Likewise.
17759 * sysdeps/unix/sysv/linux/mips/mips32/libnss_nisplus.abilist: Likewise.
17760 * sysdeps/unix/sysv/linux/mips/mips32/libpthread.abilist: Likewise.
17761 * sysdeps/unix/sysv/linux/mips/mips32/libresolv.abilist: Likewise.
17762 * sysdeps/unix/sysv/linux/mips/mips32/librt.abilist: Likewise.
17763 * sysdeps/unix/sysv/linux/mips/mips32/libthread_db.abilist: Likewise.
17764 * sysdeps/unix/sysv/linux/mips/mips32/libutil.abilist: Likewise.
17765 * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist: Likewise.
17766 * sysdeps/unix/sysv/linux/mips/mips64/libBrokenLocale.abilist:
17767 Likewise.
17768 * sysdeps/unix/sysv/linux/mips/mips64/libanl.abilist: Likewise.
17769 * sysdeps/unix/sysv/linux/mips/mips64/libcrypt.abilist: Likewise.
17770 * sysdeps/unix/sysv/linux/mips/mips64/libdl.abilist: Likewise.
17771 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
17772 * sysdeps/unix/sysv/linux/mips/mips64/libnsl.abilist: Likewise.
17773 * sysdeps/unix/sysv/linux/mips/mips64/libpthread.abilist: Likewise.
17774 * sysdeps/unix/sysv/linux/mips/mips64/librt.abilist: Likewise.
17775 * sysdeps/unix/sysv/linux/mips/mips64/libthread_db.abilist: Likewise.
17776 * sysdeps/unix/sysv/linux/mips/mips64/libutil.abilist: Likewise.
17777 * sysdeps/unix/sysv/linux/mips/mips64/n32/ld.abilist: Likewise.
17778 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
17779 * sysdeps/unix/sysv/linux/mips/mips64/n32/libresolv.abilist: Likewise.
17780 * sysdeps/unix/sysv/linux/mips/mips64/n64/ld.abilist: Likewise.
17781 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
17782 * sysdeps/unix/sysv/linux/mips/mips64/n64/libresolv.abilist: Likewise.
17783 * sysdeps/unix/sysv/linux/nios2/ld.abilist: Likewise.
17784 * sysdeps/unix/sysv/linux/nios2/libBrokenLocale.abilist: Likewise.
17785 * sysdeps/unix/sysv/linux/nios2/libanl.abilist: Likewise.
17786 * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise.
17787 * sysdeps/unix/sysv/linux/nios2/libcrypt.abilist: Likewise.
17788 * sysdeps/unix/sysv/linux/nios2/libdl.abilist: Likewise.
17789 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
17790 * sysdeps/unix/sysv/linux/nios2/libnsl.abilist: Likewise.
17791 * sysdeps/unix/sysv/linux/nios2/libpthread.abilist: Likewise.
17792 * sysdeps/unix/sysv/linux/nios2/libresolv.abilist: Likewise.
17793 * sysdeps/unix/sysv/linux/nios2/librt.abilist: Likewise.
17794 * sysdeps/unix/sysv/linux/nios2/libthread_db.abilist: Likewise.
17795 * sysdeps/unix/sysv/linux/nios2/libutil.abilist: Likewise.
17796 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist: Likewise.
17797 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Likewise.
17798 * sysdeps/unix/sysv/linux/powerpc/powerpc32/ld.abilist: Likewise.
17799 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libBrokenLocale.abilist:
17800 Likewise.
17801 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libanl.abilist: Likewise.
17802 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libcrypt.abilist: Likewise.
17803 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libdl.abilist: Likewise.
17804 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libnsl.abilist: Likewise.
17805 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libpthread.abilist:
17806 Likewise.
17807 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libresolv.abilist:
17808 Likewise.
17809 * sysdeps/unix/sysv/linux/powerpc/powerpc32/librt.abilist: Likewise.
17810 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libthread_db.abilist:
17811 Likewise.
17812 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libutil.abilist: Likewise.
17813 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
17814 Likewise.
17815 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
17816 Likewise.
17817 * sysdeps/unix/sysv/linux/powerpc/powerpc64/ld-le.abilist: Likewise.
17818 * sysdeps/unix/sysv/linux/powerpc/powerpc64/ld.abilist: Likewise.
17819 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libBrokenLocale-le.abilist:
17820 Likewise.
17821 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libBrokenLocale.abilist:
17822 Likewise.
17823 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libanl-le.abilist:
17824 Likewise.
17825 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libanl.abilist: Likewise.
17826 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist: Likewise.
17827 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist: Likewise.
17828 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libcrypt-le.abilist:
17829 Likewise.
17830 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libcrypt.abilist: Likewise.
17831 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libdl-le.abilist: Likewise.
17832 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libdl.abilist: Likewise.
17833 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Likewise.
17834 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Likewise.
17835 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libnsl-le.abilist:
17836 Likewise.
17837 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libnsl.abilist: Likewise.
17838 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libpthread-le.abilist:
17839 Likewise.
17840 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libpthread.abilist:
17841 Likewise.
17842 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libresolv-le.abilist:
17843 Likewise.
17844 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libresolv.abilist:
17845 Likewise.
17846 * sysdeps/unix/sysv/linux/powerpc/powerpc64/librt-le.abilist: Likewise.
17847 * sysdeps/unix/sysv/linux/powerpc/powerpc64/librt.abilist: Likewise.
17848 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libthread_db-le.abilist:
17849 Likewise.
17850 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libthread_db.abilist:
17851 Likewise.
17852 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libutil-le.abilist:
17853 Likewise.
17854 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libutil.abilist: Likewise.
17855 * sysdeps/unix/sysv/linux/riscv/rv64/ld.abilist: Likewise.
17856 * sysdeps/unix/sysv/linux/riscv/rv64/libBrokenLocale.abilist:
17857 Likewise.
17858 * sysdeps/unix/sysv/linux/riscv/rv64/libanl.abilist: Likewise.
17859 * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist: Likewise.
17860 * sysdeps/unix/sysv/linux/riscv/rv64/libcrypt.abilist: Likewise.
17861 * sysdeps/unix/sysv/linux/riscv/rv64/libdl.abilist: Likewise.
17862 * sysdeps/unix/sysv/linux/riscv/rv64/libm.abilist: Likewise.
17863 * sysdeps/unix/sysv/linux/riscv/rv64/libnsl.abilist: Likewise.
17864 * sysdeps/unix/sysv/linux/riscv/rv64/libpthread.abilist: Likewise.
17865 * sysdeps/unix/sysv/linux/riscv/rv64/libresolv.abilist: Likewise.
17866 * sysdeps/unix/sysv/linux/riscv/rv64/librt.abilist: Likewise.
17867 * sysdeps/unix/sysv/linux/riscv/rv64/libthread_db.abilist: Likewise.
17868 * sysdeps/unix/sysv/linux/riscv/rv64/libutil.abilist: Likewise.
17869 * sysdeps/unix/sysv/linux/s390/libanl.abilist: Likewise.
17870 * sysdeps/unix/sysv/linux/s390/s390-32/ld.abilist: Likewise.
17871 * sysdeps/unix/sysv/linux/s390/s390-32/libBrokenLocale.abilist:
17872 Likewise.
17873 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
17874 * sysdeps/unix/sysv/linux/s390/s390-32/libcrypt.abilist: Likewise.
17875 * sysdeps/unix/sysv/linux/s390/s390-32/libdl.abilist: Likewise.
17876 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
17877 * sysdeps/unix/sysv/linux/s390/s390-32/libnsl.abilist: Likewise.
17878 * sysdeps/unix/sysv/linux/s390/s390-32/libpthread.abilist: Likewise.
17879 * sysdeps/unix/sysv/linux/s390/s390-32/libresolv.abilist: Likewise.
17880 * sysdeps/unix/sysv/linux/s390/s390-32/librt.abilist: Likewise.
17881 * sysdeps/unix/sysv/linux/s390/s390-32/libthread_db.abilist: Likewise.
17882 * sysdeps/unix/sysv/linux/s390/s390-32/libutil.abilist: Likewise.
17883 * sysdeps/unix/sysv/linux/s390/s390-64/ld.abilist: Likewise.
17884 * sysdeps/unix/sysv/linux/s390/s390-64/libBrokenLocale.abilist:
17885 Likewise.
17886 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
17887 * sysdeps/unix/sysv/linux/s390/s390-64/libcrypt.abilist: Likewise.
17888 * sysdeps/unix/sysv/linux/s390/s390-64/libdl.abilist: Likewise.
17889 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
17890 * sysdeps/unix/sysv/linux/s390/s390-64/libnsl.abilist: Likewise.
17891 * sysdeps/unix/sysv/linux/s390/s390-64/libpthread.abilist: Likewise.
17892 * sysdeps/unix/sysv/linux/s390/s390-64/libresolv.abilist: Likewise.
17893 * sysdeps/unix/sysv/linux/s390/s390-64/librt.abilist: Likewise.
17894 * sysdeps/unix/sysv/linux/s390/s390-64/libthread_db.abilist: Likewise.
17895 * sysdeps/unix/sysv/linux/s390/s390-64/libutil.abilist: Likewise.
17896 * sysdeps/unix/sysv/linux/sh/ld.abilist: Likewise.
17897 * sysdeps/unix/sysv/linux/sh/libBrokenLocale.abilist: Likewise.
17898 * sysdeps/unix/sysv/linux/sh/libanl.abilist: Likewise.
17899 * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
17900 * sysdeps/unix/sysv/linux/sh/libcrypt.abilist: Likewise.
17901 * sysdeps/unix/sysv/linux/sh/libdl.abilist: Likewise.
17902 * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
17903 * sysdeps/unix/sysv/linux/sh/libnsl.abilist: Likewise.
17904 * sysdeps/unix/sysv/linux/sh/libpthread.abilist: Likewise.
17905 * sysdeps/unix/sysv/linux/sh/libresolv.abilist: Likewise.
17906 * sysdeps/unix/sysv/linux/sh/librt.abilist: Likewise.
17907 * sysdeps/unix/sysv/linux/sh/libthread_db.abilist: Likewise.
17908 * sysdeps/unix/sysv/linux/sh/libutil.abilist: Likewise.
17909 * sysdeps/unix/sysv/linux/sparc/sparc32/ld.abilist: Likewise.
17910 * sysdeps/unix/sysv/linux/sparc/sparc32/libBrokenLocale.abilist:
17911 Likewise.
17912 * sysdeps/unix/sysv/linux/sparc/sparc32/libanl.abilist: Likewise.
17913 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
17914 * sysdeps/unix/sysv/linux/sparc/sparc32/libcrypt.abilist: Likewise.
17915 * sysdeps/unix/sysv/linux/sparc/sparc32/libdl.abilist: Likewise.
17916 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
17917 * sysdeps/unix/sysv/linux/sparc/sparc32/libnsl.abilist: Likewise.
17918 * sysdeps/unix/sysv/linux/sparc/sparc32/libpthread.abilist: Likewise.
17919 * sysdeps/unix/sysv/linux/sparc/sparc32/libresolv.abilist: Likewise.
17920 * sysdeps/unix/sysv/linux/sparc/sparc32/librt.abilist: Likewise.
17921 * sysdeps/unix/sysv/linux/sparc/sparc32/libthread_db.abilist: Likewise.
17922 * sysdeps/unix/sysv/linux/sparc/sparc32/libutil.abilist: Likewise.
17923 * sysdeps/unix/sysv/linux/sparc/sparc64/ld.abilist: Likewise.
17924 * sysdeps/unix/sysv/linux/sparc/sparc64/libBrokenLocale.abilist:
17925 Likewise.
17926 * sysdeps/unix/sysv/linux/sparc/sparc64/libanl.abilist: Likewise.
17927 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
17928 * sysdeps/unix/sysv/linux/sparc/sparc64/libcrypt.abilist: Likewise.
17929 * sysdeps/unix/sysv/linux/sparc/sparc64/libdl.abilist: Likewise.
17930 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
17931 * sysdeps/unix/sysv/linux/sparc/sparc64/libnsl.abilist: Likewise.
17932 * sysdeps/unix/sysv/linux/sparc/sparc64/libpthread.abilist: Likewise.
17933 * sysdeps/unix/sysv/linux/sparc/sparc64/libresolv.abilist: Likewise.
17934 * sysdeps/unix/sysv/linux/sparc/sparc64/librt.abilist: Likewise.
17935 * sysdeps/unix/sysv/linux/sparc/sparc64/libthread_db.abilist: Likewise.
17936 * sysdeps/unix/sysv/linux/sparc/sparc64/libutil.abilist: Likewise.
17937 * sysdeps/unix/sysv/linux/x86_64/64/ld.abilist: Likewise.
17938 * sysdeps/unix/sysv/linux/x86_64/64/libBrokenLocale.abilist: Likewise.
17939 * sysdeps/unix/sysv/linux/x86_64/64/libanl.abilist: Likewise.
17940 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
17941 * sysdeps/unix/sysv/linux/x86_64/64/libcrypt.abilist: Likewise.
17942 * sysdeps/unix/sysv/linux/x86_64/64/libdl.abilist: Likewise.
17943 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
17944 * sysdeps/unix/sysv/linux/x86_64/64/libnsl.abilist: Likewise.
17945 * sysdeps/unix/sysv/linux/x86_64/64/libpthread.abilist: Likewise.
17946 * sysdeps/unix/sysv/linux/x86_64/64/libresolv.abilist: Likewise.
17947 * sysdeps/unix/sysv/linux/x86_64/64/librt.abilist: Likewise.
17948 * sysdeps/unix/sysv/linux/x86_64/64/libthread_db.abilist: Likewise.
17949 * sysdeps/unix/sysv/linux/x86_64/64/libutil.abilist: Likewise.
17950 * sysdeps/unix/sysv/linux/x86_64/libmvec.abilist: Likewise.
17951 * sysdeps/unix/sysv/linux/x86_64/x32/ld.abilist: Likewise.
17952 * sysdeps/unix/sysv/linux/x86_64/x32/libBrokenLocale.abilist: Likewise.
17953 * sysdeps/unix/sysv/linux/x86_64/x32/libanl.abilist: Likewise.
17954 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
17955 * sysdeps/unix/sysv/linux/x86_64/x32/libcrypt.abilist: Likewise.
17956 * sysdeps/unix/sysv/linux/x86_64/x32/libdl.abilist: Likewise.
17957 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
17958 * sysdeps/unix/sysv/linux/x86_64/x32/libnsl.abilist: Likewise.
17959 * sysdeps/unix/sysv/linux/x86_64/x32/libpthread.abilist: Likewise.
17960 * sysdeps/unix/sysv/linux/x86_64/x32/libresolv.abilist: Likewise.
17961 * sysdeps/unix/sysv/linux/x86_64/x32/librt.abilist: Likewise.
17962 * sysdeps/unix/sysv/linux/x86_64/x32/libthread_db.abilist: Likewise.
17963 * sysdeps/unix/sysv/linux/x86_64/x32/libutil.abilist: Likewise.
17964
17965 2018-05-04 Stefan Liebler <stli@linux.vnet.ibm.com>
17966
17967 [BZ #23137]
17968 * sysdeps/nptl/lowlevellock.h (lll_wait_tid):
17969 Use atomic_load_acquire to load __tid.
17970
17971 2018-05-02 H.J. Lu <hongjiu.lu@intel.com>
17972
17973 * sysdeps/unix/sysv/linux/x86_64/swapcontext.S (__swapcontext):
17974 Restore the pointer into %rdx, after syscall and use %rdx,
17975 instead of %rsi, to restore context.
17976
17977 2018-05-02 H.J. Lu <hongjiu.lu@intel.com>
17978
17979 * sysdeps/unix/sysv/linux/x86_64/setcontext.S (__setcontext):
17980 Pop the pointer into %rdx after syscall and use %rdx, instead
17981 of %rsi, to restore context.
17982
17983 2018-05-02 H.J. Lu <hongjiu.lu@intel.com>
17984
17985 * nptl/pthread_create.c (START_THREAD_DEFN): Clear previous
17986 handlers after setjmp.
17987 * setjmp/longjmp.c (__libc_longjmp): Don't define alias if
17988 defined.
17989 * sysdeps/unix/sysv/linux/x86/setjmpP.h: Include
17990 <libc-pointer-arith.h>.
17991 (_JUMP_BUF_SIGSET_BITS_PER_WORD): New.
17992 (_JUMP_BUF_SIGSET_NSIG): Changed to 96.
17993 (_JUMP_BUF_SIGSET_NWORDS): Changed to use ALIGN_UP and
17994 _JUMP_BUF_SIGSET_BITS_PER_WORD.
17995 * sysdeps/x86/Makefile (sysdep_routines): Add __longjmp_cancel.
17996 * sysdeps/x86/__longjmp_cancel.S: New file.
17997 * sysdeps/x86/longjmp.c: Likewise.
17998 * sysdeps/x86/nptl/pt-longjmp.c: Likewise.
17999
18000 2018-05-02 Adhemerval Zanella <adhemerval.zanella@linaro.org>
18001
18002 * NEWS: Add ustat.h deprecation entry.
18003 * bits/ustat.h: Remove file.
18004 * misc/sys/ustat.h: Likewise.
18005 * misc/ustat.h: Likewise.
18006 * sysdeps/unix/sysv/linux/generic/ustat.c: Likewise.
18007 * misc/Makefile (headers): Remove ustat.h and sys/ustat.h.
18008 * misc/ustat.c (__ustat): Rename to __old_ustat and export only in
18009 compatibility mode.
18010 * sysdeps/unix/sysv/linux/ustat.c (__ustat): Likewise.
18011 * sysdeps/unix/sysv/linux/mips/ustat.c: Define DEV_TO_KDEV and use
18012 generic Linux implementation.
18013
18014 2018-04-30 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
18015
18016 * math/w_exp_compat.c: Replace hidden_def with libm_hidden_def..
18017 * math/w_expl_compat.c: Likewise.
18018 * math/w_exp_template.c: Likewise. Remove hidden_def_x.
18019
18020 2018-04-30 Raymond Nicholson <rain1@airmail.cc>
18021
18022 * manual/startup.texi (Aborting a Program): Remove inappropriate joke.
18023
18024 2018-04-27 Adhemerval Zanella <adhemerval.zanella@linaro.org>
18025
18026 * sysdeps/unix/sysv/linux/arm/readahead.c: Remove file.
18027 * sysdeps/unix/sysv/linux/mips/mips32/readahead.c: Likewise.
18028 * sysdeps/unix/sysv/linux/mips/mips64/n32/syscalls.list (readahead):
18029 Remove.
18030 * sysdeps/unix/sysv/linux/mips/mips64/n64/syscalls.list: Likewise.
18031 * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list: Likewise.
18032 * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Likewise.
18033 * sysdeps/unix/sysv/linux/readahead.c (__readahead): Assume
18034 __NR_readahead existence, and use INLINE_SYSCALL_CALL, __ALIGNMENT_ARG,
18035 and SYSCALL_LL64.
18036
18037 2018-04-27 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
18038
18039 * math/e_exp2_template.c: Replace M_SUF (M_LN2) with M_MLIT (M_LN2).
18040
18041 * math/w_acos_template.c: Replace M_SUF (fabs) with M_FABS.
18042 * math/w_asin_template.c: Likewise.
18043 * math/w_atanh_template.c: Likewise.
18044
18045 2018-04-27 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
18046
18047 * sysdeps/powerpc/preconfigure [machine == powerpc64] (machine): Define
18048 to powerpc/powerpc64/be for big-endian.
18049 [machine == powerpc64le]: Define to powerpc/powerpc64/le for
18050 little-endian.
18051
18052 * sysdeps/powerpc/powerpc64/power4/Implies: Move to powerpc64/be.
18053 * sysdeps/powerpc/powerpc64/power4/fpu/Implies: Likewise.
18054 * sysdeps/powerpc/powerpc64/power4/fpu/multiarch/Implies: Likewise.
18055 * sysdeps/powerpc/powerpc64/power4/multiarch/Implies: Likewise.
18056 * sysdeps/powerpc/powerpc64/power5+/Implies: Likewise.
18057 * sysdeps/powerpc/powerpc64/power5+/fpu/Implies: Likewise.
18058 * sysdeps/powerpc/powerpc64/power5+/fpu/multiarch/Implies: Likewise.
18059 * sysdeps/powerpc/powerpc64/power5+/multiarch/Implies: Likewise.
18060 * sysdeps/powerpc/powerpc64/power5/Implies: Likewise.
18061 * sysdeps/powerpc/powerpc64/power5/fpu/Implies: Likewise.
18062 * sysdeps/powerpc/powerpc64/power5/fpu/multiarch/Implies: Likewise.
18063 * sysdeps/powerpc/powerpc64/power5/multiarch/Implies: Likewise.
18064 * sysdeps/powerpc/powerpc64/power6/Implies: Likewise.
18065 * sysdeps/powerpc/powerpc64/power6/fpu/Implies: Likewise.
18066 * sysdeps/powerpc/powerpc64/power6/fpu/multiarch/Implies: Likewise.
18067 * sysdeps/powerpc/powerpc64/power6/multiarch/Implies: Likewise.
18068 * sysdeps/powerpc/powerpc64/power6x/Implies: Likewise.
18069 * sysdeps/powerpc/powerpc64/power6x/fpu/Implies: Likewise.
18070 * sysdeps/powerpc/powerpc64/power6x/fpu/multiarch/Implies: Likewise.
18071 * sysdeps/powerpc/powerpc64/power6x/multiarch/Implies: Likewise.
18072 * sysdeps/powerpc/powerpc64/power7/Implies: Likewise.
18073 * sysdeps/powerpc/powerpc64/power7/fpu/Implies: Likewise.
18074 * sysdeps/powerpc/powerpc64/power7/fpu/multiarch/Implies: Likewise.
18075 * sysdeps/powerpc/powerpc64/power7/multiarch/Implies: Likewise.
18076 * sysdeps/powerpc/powerpc64/power8/Implies: Likewise.
18077 * sysdeps/powerpc/powerpc64/power8/fpu/Implies: Likewise.
18078 * sysdeps/powerpc/powerpc64/power8/fpu/multiarch/Implies: Likewise.
18079 * sysdeps/powerpc/powerpc64/power8/multiarch/Implies: Likewise.
18080 * sysdeps/powerpc/powerpc64/power9/Implies: Likewise.
18081 * sysdeps/powerpc/powerpc64/power9/fpu/Implies: Likewise.
18082 * sysdeps/powerpc/powerpc64/power9/fpu/multiarch/Implies: Likewise.
18083 * sysdeps/powerpc/powerpc64/power9/multiarch/Implies: Likewise.
18084
18085 * sysdeps/powerpc/powerpc64/be/power4/Implies: Move from powerpc64 and
18086 adjusted to imply powerpc64 and older processors on powerpc64/be.
18087 * sysdeps/powerpc/powerpc64/be/power4/fpu/Implies: Likewise.
18088 * sysdeps/powerpc/powerpc64/be/power4/fpu/multiarch/Implies: Likewise.
18089 * sysdeps/powerpc/powerpc64/be/power4/multiarch/Implies: Likewise.
18090 * sysdeps/powerpc/powerpc64/be/power5+/Implies: Likewise.
18091 * sysdeps/powerpc/powerpc64/be/power5+/fpu/Implies: Likewise.
18092 * sysdeps/powerpc/powerpc64/be/power5+/fpu/multiarch/Implies: Likewise.
18093 * sysdeps/powerpc/powerpc64/be/power5+/multiarch/Implies: Likewise.
18094 * sysdeps/powerpc/powerpc64/be/power5/Implies: Likewise.
18095 * sysdeps/powerpc/powerpc64/be/power5/fpu/Implies: Likewise.
18096 * sysdeps/powerpc/powerpc64/be/power5/fpu/multiarch/Implies: Likewise.
18097 * sysdeps/powerpc/powerpc64/be/power5/multiarch/Implies: Likewise.
18098 * sysdeps/powerpc/powerpc64/be/power6/Implies: Likewise.
18099 * sysdeps/powerpc/powerpc64/be/power6/fpu/Implies: Likewise.
18100 * sysdeps/powerpc/powerpc64/be/power6/fpu/multiarch/Implies: Likewise.
18101 * sysdeps/powerpc/powerpc64/be/power6/multiarch/Implies: Likewise.
18102 * sysdeps/powerpc/powerpc64/be/power6x/Implies: Likewise.
18103 * sysdeps/powerpc/powerpc64/be/power6x/fpu/Implies: Likewise.
18104 * sysdeps/powerpc/powerpc64/be/power6x/fpu/multiarch/Implies: Likewise.
18105 * sysdeps/powerpc/powerpc64/be/power6x/multiarch/Implies: Likewise.
18106 * sysdeps/powerpc/powerpc64/be/power7/Implies: Likewise.
18107 * sysdeps/powerpc/powerpc64/be/power7/fpu/Implies: Likewise.
18108 * sysdeps/powerpc/powerpc64/be/power7/fpu/multiarch/Implies: Likewise.
18109 * sysdeps/powerpc/powerpc64/be/power7/multiarch/Implies: Likewise.
18110 * sysdeps/powerpc/powerpc64/be/power8/Implies: Likewise.
18111 * sysdeps/powerpc/powerpc64/be/power8/fpu/Implies: Likewise.
18112 * sysdeps/powerpc/powerpc64/be/power8/fpu/multiarch/Implies: Likewise.
18113 * sysdeps/powerpc/powerpc64/be/power8/multiarch/Implies: Likewise.
18114 * sysdeps/powerpc/powerpc64/be/power9/Implies: Likewise.
18115 * sysdeps/powerpc/powerpc64/be/power9/fpu/Implies: Likewise.
18116 * sysdeps/powerpc/powerpc64/be/power9/fpu/multiarch/Implies: Likewise.
18117 * sysdeps/powerpc/powerpc64/be/power9/multiarch/Implies: Likewise.
18118
18119 * sysdeps/powerpc/powerpc64/970/Implies: Move to powerpc64/be.
18120 * sysdeps/powerpc/powerpc64/be/970/Implies: Move from powerpc64/be.
18121 * sysdeps/powerpc/powerpc64/be/a2/Implies: New file.
18122 * sysdeps/powerpc/powerpc64/be/cell/Implies: Likewise.
18123
18124 * sysdeps/powerpc/powerpc64/be/Implies: New file.
18125 * sysdeps/powerpc/powerpc64/be/fpu/Implies: Likewise.
18126 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/Implies: Likewise.
18127 * sysdeps/powerpc/powerpc64/be/multiarch/Implies: Likewise.
18128
18129 * sysdeps/powerpc/powerpc64le/Implies: Move to powerpc64/le.
18130 * sysdeps/powerpc/powerpc64le/Implies-before: Likewise.
18131 * sysdeps/powerpc/powerpc64le/Makefile: Likewise.
18132 * sysdeps/powerpc/powerpc64le/configure: Likewise.
18133 * sysdeps/powerpc/powerpc64le/configure.ac: Likewise.
18134 * sysdeps/powerpc/powerpc64le/fpu/Implies: Likewise.
18135 * sysdeps/powerpc/powerpc64le/fpu/e_sqrtf128.c: Likewise.
18136 * sysdeps/powerpc/powerpc64le/fpu/multiarch/Implies: Likewise.
18137 * sysdeps/powerpc/powerpc64le/fpu/sfp-machine.h: Likewise.
18138 * sysdeps/powerpc/powerpc64le/multiarch/Implies: Likewise.
18139 * sysdeps/powerpc/powerpc64le/power9/fpu/e_sqrtf128.c: Likewise.
18140
18141 * sysdeps/powerpc/powerpc64/le/Implies: Move from powerpc64le.
18142 * sysdeps/powerpc/powerpc64/le/Implies-before: Likewise.
18143 * sysdeps/powerpc/powerpc64/le/Makefile: Likewise.
18144 * sysdeps/powerpc/powerpc64/le/configure: Likewise.
18145 * sysdeps/powerpc/powerpc64/le/configure.ac: Likewise.
18146 * sysdeps/powerpc/powerpc64/le/fpu/Implies: Likewise.
18147 * sysdeps/powerpc/powerpc64/le/fpu/e_sqrtf128.c: Likewise.
18148 * sysdeps/powerpc/powerpc64/le/fpu/multiarch/Implies: Likewise.
18149 * sysdeps/powerpc/powerpc64/le/fpu/sfp-machine.h: Likewise.
18150 * sysdeps/powerpc/powerpc64/le/multiarch/Implies: Likewise.
18151 * sysdeps/powerpc/powerpc64/le/power9/fpu/e_sqrtf128.c: Likewise.
18152
18153 * sysdeps/powerpc/powerpc64le/power7/Implies: Move to powerpc64/le.
18154 * sysdeps/powerpc/powerpc64le/power7/fpu/Implies: Likewise.
18155 * sysdeps/powerpc/powerpc64le/power7/fpu/multiarch/Implies: Likewise.
18156 * sysdeps/powerpc/powerpc64le/power7/multiarch/Implies: Likewise.
18157 * sysdeps/powerpc/powerpc64le/power8/Implies: Likewise.
18158 * sysdeps/powerpc/powerpc64le/power8/fpu/Implies: Likewise.
18159 * sysdeps/powerpc/powerpc64le/power8/fpu/multiarch/Implies: Likewise.
18160 * sysdeps/powerpc/powerpc64le/power8/multiarch/Implies: Likewise.
18161 * sysdeps/powerpc/powerpc64le/power9/Implies: Likewise.
18162 * sysdeps/powerpc/powerpc64le/power9/fpu/Implies: Likewise.
18163 * sysdeps/powerpc/powerpc64le/power9/fpu/multiarch/Implies: Likewise.
18164 * sysdeps/powerpc/powerpc64le/power9/multiarch/Implies: Likewise.
18165
18166 * sysdeps/powerpc/powerpc64/le/power7/Implies: Move from powerpc64le
18167 and adjusted to imply olders processors.
18168 * sysdeps/powerpc/powerpc64/le/power7/fpu/Implies: Likewise.
18169 * sysdeps/powerpc/powerpc64/le/power7/fpu/multiarch/Implies: Likewise.
18170 * sysdeps/powerpc/powerpc64/le/power7/multiarch/Implies: Likewise.
18171 * sysdeps/powerpc/powerpc64/le/power8/Implies: Likewise.
18172 * sysdeps/powerpc/powerpc64/le/power8/fpu/Implies: Likewise.
18173 * sysdeps/powerpc/powerpc64/le/power8/fpu/multiarch/Implies: Likewise.
18174 * sysdeps/powerpc/powerpc64/le/power8/multiarch/Implies: Likewise.
18175 * sysdeps/powerpc/powerpc64/le/power9/Implies: Likewise.
18176 * sysdeps/powerpc/powerpc64/le/power9/fpu/Implies: Likewise.
18177 * sysdeps/powerpc/powerpc64/le/power9/fpu/multiarch/Implies: Likewise.
18178 * sysdeps/powerpc/powerpc64/le/power9/multiarch/Implies: Likewise.
18179
18180 * sysdeps/unix/sysv/linux/powerpc/powerpc64le/Implies: Move to
18181 powerpc64/le.
18182 * sysdeps/unix/sysv/linux/powerpc/powerpc64le/float128-abi.h: Likewise.
18183 * sysdeps/unix/sysv/linux/powerpc/powerpc64le/fpu/Implies: Likewise.
18184
18185 * sysdeps/unix/sysv/linux/powerpc/powerpc64/le/Implies: Move from
18186 powerpc64le.
18187 * sysdeps/unix/sysv/linux/powerpc/powerpc64/le/float128-abi.h: Likewise.
18188 * sysdeps/unix/sysv/linux/powerpc/powerpc64/le/fpu/Implies: Likewise.
18189
18190 * sysdeps/unix/sysv/linux/powerpc/powerpc64/970/Implies: Move to
18191 powerpc64/be.
18192 * sysdeps/unix/sysv/linux/powerpc/powerpc64/a2/Implies: Likewise.
18193 * sysdeps/unix/sysv/linux/powerpc/powerpc64/cell/Implies: Likewise.
18194 * sysdeps/unix/sysv/linux/powerpc/powerpc64/cell/fpu/Implies: Likewise.
18195
18196 * sysdeps/unix/sysv/linux/powerpc/powerpc64/be/970/Implies: Move from
18197 powerpc64 and adjusted.
18198 * sysdeps/unix/sysv/linux/powerpc/powerpc64/be/a2/Implies: Likewise.
18199 * sysdeps/unix/sysv/linux/powerpc/powerpc64/be/cell/Implies: Likewise.
18200 * sysdeps/unix/sysv/linux/powerpc/powerpc64/be/cell/fpu/Implies:
18201 Likewise.
18202
18203 2018-04-27 Joseph Myers <joseph@codesourcery.com>
18204
18205 * sysdeps/tile: Remove.
18206 * sysdeps/unix/sysv/linux/tile: Likewise.
18207 * README (tilegx-*-linux-gnu): Remove from list of supported
18208 configurations.
18209 * manual/contrib.texi (Contributors): Mention Chris Metcalf's
18210 contribution of support for generic Linux kernel syscall
18211 interface.
18212 * scripts/build-many-glibcs.py (Context.add_all_configs): Remove
18213 tilegx configurations.
18214 (Config.install_linux_headers): Do not handle tile.
18215 * sysdeps/unix/sysv/linux/aarch64/ldsodefs.h: Do not mention Tile
18216 in comment.
18217 * sysdeps/unix/sysv/linux/nios2/Makefile: Likewise.
18218 * sysdeps/unix/sysv/linux/posix_fadvise.c: Likewise.
18219 [__ASSUME_FADVISE64_64_NO_ALIGN] (__ALIGNMENT_ARG): Remove
18220 conditional undefine and redefine.
18221 * sysdeps/unix/sysv/linux/posix_fadvise64.c: Do not mention Tile
18222 in comment.
18223 [__ASSUME_FADVISE64_64_NO_ALIGN] (__ALIGNMENT_ARG): Remove
18224 conditional undefine and redefine.
18225
18226 2018-04-26 Aurelien Jarno <aurelien@aurel32.net>
18227
18228 * signal/tst-sigaction.c: New file to test BZ #23069.
18229 * signal/Makefile (tests): Fix indentation. Add tst-sigaction.
18230
18231 2018-04-26 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
18232
18233 [BZ #22766]
18234 * include/dlfcn.h [__libc_dl_open]: Replace RTLD_LAZY with RTLD_NOW.
18235 * sysdeps/gnu/unwind-resume.c (__lib_gcc_s_init): Replace
18236 __libc_dlopen_mode() using RTLD_NOW with __libc_dlopen.
18237 * sysdeps/nptl/unwind-forcedunwind.c: Likewise.
18238
18239 2018-04-25 Adhemerval Zanella <adhemerval.zanella@linaro.org>
18240
18241 * sysdeps/unix/sysv/linux/getdirentries.c (getdirentries): Build iff
18242 _DIRENT_MATCHES_DIRENT64 is not defined.
18243 * sysdeps/unix/sysv/linux/getdirentries64.c (getdirentries64): Open
18244 implementation and alias to getdirentries if _DIRENT_MATCHES_DIRENT64
18245 is defined.
18246 * sysdeps/unix/sysv/linux/wordsize-64/getdirentries.c: Remove file.
18247 * sysdeps/unix/sysv/linux/wordsize-64/getdirentries64.c: Remove file.
18248
18249 2018-04-25 Joseph Myers <joseph@codesourcery.com>
18250
18251 * scripts/build-many-glibcs.py (Context.checkout): Default GCC
18252 version to GCC 8 branch.
18253
18254 2018-04-24 Joseph Myers <joseph@codesourcery.com>
18255
18256 * sysdeps/mach/hurd/dl-sysdep.c: Include <not-errno.h>.
18257 (check_no_hidden): Use type of original function when declaring
18258 alias.
18259
18260 * sysdeps/unix/sysv/linux/sys/ptrace.h
18261 (PTRACE_SECCOMP_GET_METADATA): New enum value and macro.
18262 * sysdeps/unix/sysv/linux/bits/ptrace-shared.h
18263 (struct __ptrace_seccomp_metadata): New type.
18264 * sysdeps/unix/sysv/linux/aarch64/sys/ptrace.h
18265 (PTRACE_SECCOMP_GET_METADATA): Likewise.
18266 * sysdeps/unix/sysv/linux/arm/sys/ptrace.h
18267 (PTRACE_SECCOMP_GET_METADATA): Likewise.
18268 * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h
18269 (PTRACE_SECCOMP_GET_METADATA): Likewise.
18270 * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h
18271 (PTRACE_SECCOMP_GET_METADATA): Likewise.
18272 * sysdeps/unix/sysv/linux/s390/sys/ptrace.h
18273 (PTRACE_SECCOMP_GET_METADATA): Likewise.
18274 * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h
18275 (PTRACE_SECCOMP_GET_METADATA): Likewise.
18276 * sysdeps/unix/sysv/linux/tile/sys/ptrace.h
18277 (PTRACE_SECCOMP_GET_METADATA): Likewise.
18278 * sysdeps/unix/sysv/linux/x86/sys/ptrace.h
18279 (PTRACE_SECCOMP_GET_METADATA): Likewise.
18280
18281 2018-04-23 Adhemerval Zanella <adhemerval.zanella@linaro.org>
18282
18283 * dirent/alphasort.c (alphasort): Build iff _DIRENT_MATCHES_DIRENT64 is
18284 defined.
18285 * dirent/versionsort.c (versionsort): Likewise.
18286 * dirent/alphasort64.c (alphasort64): Build regardless and alias to
18287 alphasort if _DIRENT_MATCHES_DIRENT64 is defined.
18288 * dirent/versionsort64.c (versionsort64): Likewise.
18289 * sysdeps/unix/sysv/linux/i386/alphasort64.c: Remove file.
18290 * sysdeps/unix/sysv/linux/arm/alphasort64.c: Likewise.
18291 * sysdeps/unix/sysv/linux/arm/versionsort64.c: Likewise.
18292 * sysdeps/unix/sysv/linux/m68k/alphasort64.c: Likewise.
18293 * sysdeps/unix/sysv/linux/m68k/versionsort64.c: Likewise.
18294 * sysdeps/unix/sysv/linux/s390/s390-32/alphasort64.c: Likewise.
18295 * sysdeps/unix/sysv/linux/s390/s390-32/versionsort64.c: Likewise.
18296 * sysdeps/unix/sysv/linux/i386/versionsort64.c: Likewise.
18297 * sysdeps/unix/sysv/linux/alphasort64.c: New file.
18298 * sysdeps/unix/sysv/linux/versionsort64.c: Likewise.
18299 * sysdeps/unix/sysv/linux/powerpc/powerpc32/alphasort64.c: Likewise.
18300 * sysdeps/unix/sysv/linux/powerpc/powerpc32/versionsort64.c: Likewise.
18301 * sysdeps/unix/sysv/linux/sparc/sparc32/alphasort64.c: Likewise.
18302 * sysdeps/unix/sysv/linux/sparc/sparc32/versionsort64.c: Likewise.
18303
18304 2018-04-23 Joseph Myers <joseph@codesourcery.com>
18305
18306 * elf/elf.h (NT_PPC_PKEY): New macro.
18307
18308 2018-04-23 Dragan Stanojevic - Nevidljivi <invisible@hidden-city.net>
18309
18310 [BZ #23094]
18311 * localedata/locales/hr_HR: fix thousands_sep and
18312 mon_thousands_sep
18313
18314 2018-04-20 Joseph Myers <joseph@codesourcery.com>
18315
18316 * sysdeps/unix/sysv/linux/alpha/bits/termios.h [__USE_MISC]
18317 (XTABS): Define to TAB3.
18318
18319 2018-04-20 Adhemerval Zanella <adhemerval.zanella@linaro.org>
18320
18321 * sysdeps/hppa/fpu/libm-test-ulps: Update.
18322
18323 * dirent/scandir-tail-common.c: New file.
18324 * dirent/scandir-tail.c: Use scandir-tail-common.c.
18325 (__scandir_tail): Build iff _DIRENT_MATCHES_DIRENT64 is not defined.
18326 * dirent/scandir.c: Use scandir-tail-common.c.
18327 * dirent/scandirat.c: Likewise.
18328 * dirent/scandir64-tail.c: Use scandir-tail-common.c.
18329 * dirent/scandir64.c (scandir64): Always build and alias to scandir
18330 if _DIRENT_MATCHES_DIRENT64 is defined.
18331 * dirent/scandirat64.c (scandirat64): Likewise.
18332 * include/dirent.h (__scandir_tail): Only define iff
18333 _DIRENT_MATCHES_DIRENT64 is not defined.
18334 (__scandir64_tail): Define regardless.
18335 (__scandirat, scandirat64): Remove libc_hidden_proto.
18336 * sysdeps/unix/sysv/linux/arm/scandir64.c: Remove file.
18337 * sysdeps/unix/sysv/linux/m68k/scandir64.c: Likewise.
18338 * sysdeps/unix/sysv/linux/powerpc/powerpc32/scandir64.c: Likewise.
18339 * sysdeps/unix/sysv/linux/s390/s390-32/scandir64.c: Likewise.
18340 * sysdeps/unix/sysv/linux/i386/scandir64.c: Likewise.
18341 * sysdeps/unix/sysv/linux/sparc/sparc32/scandir64.c: Likewise.
18342 * sysdeps/unix/sysv/linux/scandir64.c: New file.
18343
18344 2018-04-20 Joseph Myers <joseph@codesourcery.com>
18345
18346 * sysdeps/unix/sysv/linux/aarch64/bits/hwcap.h (HWCAP_ASIMDFHM):
18347 New macro.
18348 * sysdeps/unix/sysv/linux/aarch64/dl-procinfo.c (_DL_HWCAP_COUNT):
18349 Increase to 24.
18350 (_dl_aarch64_cap_flags): Add asimdfhm.
18351
18352 2018-04-19 Chung-Lin Tang <cltang@codesourcery.com>
18353
18354 * sysdeps/nios2/libm-test-ulps: Update.
18355
18356 2018-04-19 Adhemerval Zanella <adhemerval.zanella@linaro.org>
18357
18358 * sysdeps/unix/sysv/linux/mips/mips64/getdents64.c (__getdents64):
18359 Only alias to __getdents for _DIRENT_MATCHES_DIRENT64.
18360
18361 * sysdeps/unix/sysv/linux/alpha/getdents.c: Add comments with alpha
18362 requirements.
18363 (_DIRENT_MATCHES_DIRENT64): Undef
18364 * sysdeps/unix/sysv/linux/alpha/getdents64.c: Likewise.
18365 * sysdeps/unix/sysv/linux/arm/getdents64.c: Remove file.
18366 * sysdeps/unix/sysv/linux/generic/getdents.c: Likewise.
18367 * sysdeps/unix/sysv/linux/generic/getdents64.c: Likewise.
18368 * sysdeps/unix/sysv/linux/generic/wordsize-32/getdents.c: Likewise.
18369 * sysdeps/unix/sysv/linux/getdents.c: Simplify implementation by
18370 use getdents64 syscalls as base.
18371 * sysdeps/unix/sysv/linux/getdents64.c: Likewise and add compatibility
18372 symbol if required.
18373 * sysdeps/unix/sysv/linux/hppa/getdents64.c: Likewise.
18374 * sysdeps/unix/sysv/linux/i386/getdents64.c: Likewise.
18375 * sysdeps/unix/sysv/linux/m68k/getdents64.c: Likewise.
18376 * sysdeps/unix/sysv/linux/powerpc/getdents64.c: Likewise.
18377 * sysdeps/unix/sysv/linux/s390/s390-32/getdents64.c: Likewise.
18378 * sysdeps/unix/sysv/linux/sparc/sparc32/getdents64.c: Likewise.
18379 * sysdeps/unix/sysv/linux/wordsize-64/getdents.c: Likewise.
18380 * sysdeps/unix/sysv/linux/wordsize-64/getdents64.c: Likewise.
18381 * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
18382 (__get_clockfreq_via_proc_openprom): Use __getdents64.
18383 * sysdeps/unix/sysv/linux/mips/mips64/getdents64.c: New file.
18384
18385 2018-04-19 Stefan Liebler <stli@linux.vnet.ibm.com>
18386
18387 * scripts/test_printers_common.py (init_test): Disable lock elision.
18388
18389 2018-04-19 Stefan Liebler <stli@linux.vnet.ibm.com>
18390
18391 * math/test-tgmath.c (count_double, count_float,
18392 count_ldouble, count_cdouble, count_cfloat,
18393 count_cldouble): Use volatile int.
18394
18395 2018-04-19 Samuel Thibault <samuel.thibault@ens-lyon.org>
18396
18397 * sysdeps/mach/hurd/i386/Makefile [$(subdir) = conform]
18398 (conformtest-xfail-conds): Add i386-gnu.
18399 * conform/data/fcntl.h-data (flock.l_type, flock.l_whence): XFAIL on
18400 i386-gnu.
18401 * conform/data/sys/ipc.h-data (ipc_perm.uid, ipc_perm.gid,
18402 ipc_perm.cuid, ipc_perm.cgid): Likewise.
18403 * conform/data/sys/msg.h-data (msqid_ds.msg_lspid,
18404 msqid_ds.msg_lrpid): Likewise.
18405 * conform/data/sys/shm.h-data (shmid_ds.shm_lpid, shmid_ds.shm_cpid):
18406 Likewise.
18407 * conform/data/sys/stat.h-data (stat.st_dev): Likewise.
18408 * conform/data/sys/statvfs.h-data (statvfs.f_fsid): Likewise.
18409 * sysdeps/mach/hurd/bits/statvfs.h (struct statvfs): Make f_bsize,
18410 f_namemax, f_frsize, and f_flag fields unsigned long int instead of
18411 unsigned int.
18412 (struct statvfs64): Likewise.
18413 * sysdeps/mach/hurd/bits/statfs.h (struct statfs, struct statfs64):
18414 Likewise.
18415 * bits/in.h [!__USE_MISC]: Do not define struct ip_opts.
18416 * conform/data/netinet/in.h-data: Allow sin_ and sin6_ prefix.
18417 * sysdeps/gnu/bits/msq.h (struct msqid_ds): Use __wait_queue struct
18418 instead of wait_queue.
18419 * sysdeps/gnu/bits/shm.h (struct shmid_ds): Use __vm_area_struct
18420 instead of vm_area_struct.
18421 * bits/sched.h: Include <bits/types/struct_sched_param.h> and move
18422 struct sched_param definition to it.
18423 * sysdeps/unix/sysv/linux/bits/sched.h: Likewise.
18424 * bits/types/struct_sched_param.h: New file.
18425 * sysdeps/htl/bits/types/struct___pthread_attr.h: Include
18426 <bits/types/struct_sched_param.h> instead of <sched.h>.
18427 * posix/Makefile (headers): Add bits/types/struct_sched_param.h.
18428 * sysdeps/pthread/bits/types/sigevent_t.h: New file, based on the
18429 generic version but include <bits/pthreadtypes.h> to make struct
18430 sigevent's sigev_notify_attributes field a pthread_attr_t*.
18431 * bits/types/siginfo_t.h: Remove siginfo struct name, unused and
18432 non-compliant.
18433 * bits/termios.h [__USE_XOPEN || __USE_XOPEN2K8] (IXANY): Define.
18434 [__USE_XOPEN && !__USE_XOPEN2K] (IUCLC, OLCUC): Define.
18435 [__USE_XOPEN] (OFDEL): New macro.
18436 [__USE_XOPEN && !__USE_XOPEN2K] (XCASE): New macro.
18437 * bits/resource.h (RLIM_SAVED_MAX, RLIM_SAVED_CUR): New macros.
18438 * sysdeps/hurd/include/hurd.h [!_ISOMAC]: Do not declare libc hidden
18439 prototypes.
18440 * sysdeps/hurd/include/hurd/fd.h [!_ISOMAC]: Likewise.
18441 * sysdeps/hurd/include/hurd/signal.h [!_ISOMAC]: Likewise.
18442 * sysdeps/arm/sys/ucontext.h: Remove fpregset struct name, unused and
18443 non-compliant.
18444 * sysdeps/i386/sys/ucontext.h: Likewise.
18445 * sysdeps/m68k/sys/ucontext.h: Likewise.
18446 * sysdeps/mips/sys/ucontext.h: Likewise.
18447 * sysdeps/unix/sysv/linux/hppa/sys/ucontext.h: Likewise.
18448 * sysdeps/mach/hurd/i386/Makefile
18449 (test-xfail-POSIX/fcntl.h/conform): Add.
18450 (test-xfail-POSIX/signal.h/conform): Add.
18451 (test-xfail-POSIX/semaphore.h/conform): Add.
18452 (test-xfail-POSIX/regex.h/conform): Add.
18453 (test-xfail-POSIX/aio.h/conform): Add.
18454 (test-xfail-POSIX/mqueue.h/conform): Add.
18455 (test-xfail-POSIX/sys/types.h/conform): Add.
18456 (test-xfail-UNIX98/fcntl.h/conform): Add.
18457 (test-xfail-UNIX98/netdb.h/conform): Add.
18458 (test-xfail-UNIX98/signal.h/conform): Add.
18459 (test-xfail-UNIX98/semaphore.h/conform): Add.
18460 (test-xfail-UNIX98/regex.h/conform): Add.
18461 (test-xfail-UNIX98/aio.h/conform): Add.
18462 (test-xfail-UNIX98/ftw.h/conform): Add.
18463 (test-xfail-UNIX98/mqueue.h/conform): Add.
18464 (test-xfail-UNIX98/netinet/in.h/conform): Add.
18465 (test-xfail-UNIX98/sys/wait.h/conform): Add.
18466 (test-xfail-UNIX98/sys/sem.h/conform): Add.
18467 (test-xfail-UNIX98/sys/uio.h/conform): Add.
18468 (test-xfail-UNIX98/sys/socket.h/conform): Add.
18469 (test-xfail-UNIX98/sys/types.h/conform): Add.
18470 (test-xfail-UNIX98/stdlib.h/conform): Add.
18471 (test-xfail-UNIX98/arpa/inet.h/conform): Add.
18472 (test-xfail-POSIX2008/fcntl.h/conform): Add.
18473 (test-xfail-POSIX2008/netdb.h/conform): Add.
18474 (test-xfail-POSIX2008/signal.h/conform): Add.
18475 (test-xfail-POSIX2008/semaphore.h/conform): Add.
18476 (test-xfail-POSIX2008/regex.h/conform): Add.
18477 (test-xfail-POSIX2008/aio.h/conform): Add.
18478 (test-xfail-POSIX2008/mqueue.h/conform): Add.
18479 (test-xfail-POSIX2008/netinet/in.h/conform): Add.
18480 (test-xfail-POSIX2008/sys/wait.h/conform): Add.
18481 (test-xfail-POSIX2008/sys/socket.h/conform): Add.
18482 (test-xfail-POSIX2008/sys/types.h/conform): Add.
18483 (test-xfail-POSIX2008/arpa/inet.h/conform): Add.
18484 (test-xfail-XOPEN2K/fcntl.h/conform): Add.
18485 (test-xfail-XOPEN2K/netdb.h/conform): Add.
18486 (test-xfail-XOPEN2K/signal.h/conform): Add.
18487 (test-xfail-XOPEN2K/semaphore.h/conform): Add.
18488 (test-xfail-XOPEN2K/regex.h/conform): Add.
18489 (test-xfail-XOPEN2K/aio.h/conform): Add.
18490 (test-xfail-XOPEN2K/ftw.h/conform): Add.
18491 (test-xfail-XOPEN2K/mqueue.h/conform): Add.
18492 (test-xfail-XOPEN2K/netinet/in.h/conform): Add.
18493 (test-xfail-XOPEN2K/sys/wait.h/conform): Add.
18494 (test-xfail-XOPEN2K/sys/sem.h/conform): Add.
18495 (test-xfail-XOPEN2K/sys/uio.h/conform): Add.
18496 (test-xfail-XOPEN2K/sys/socket.h/conform): Add.
18497 (test-xfail-XOPEN2K/sys/types.h/conform): Add.
18498 (test-xfail-XOPEN2K/stdlib.h/conform): Add.
18499 (test-xfail-XOPEN2K/arpa/inet.h/conform): Add.
18500 (test-xfail-XOPEN2K8/fcntl.h/conform): Add.
18501 (test-xfail-XOPEN2K8/netdb.h/conform): Add.
18502 (test-xfail-XOPEN2K8/signal.h/conform): Add.
18503 (test-xfail-XOPEN2K8/semaphore.h/conform): Add.
18504 (test-xfail-XOPEN2K8/regex.h/conform): Add.
18505 (test-xfail-XOPEN2K8/aio.h/conform): Add.
18506 (test-xfail-XOPEN2K8/ftw.h/conform): Add.
18507 (test-xfail-XOPEN2K8/mqueue.h/conform): Add.
18508 (test-xfail-XOPEN2K8/netinet/in.h/conform): Add.
18509 (test-xfail-XOPEN2K8/sys/wait.h/conform): Add.
18510 (test-xfail-XOPEN2K8/sys/sem.h/conform): Add.
18511 (test-xfail-XOPEN2K8/sys/uio.h/conform): Add.
18512 (test-xfail-XOPEN2K8/sys/socket.h/conform): Add.
18513 (test-xfail-XOPEN2K8/sys/types.h/conform): Add.
18514 (test-xfail-XOPEN2K8/stdlib.h/conform): Add.
18515 (test-xfail-XOPEN2K8/arpa/inet.h/conform): Add.
18516 * conform/data/signal.h-data (SA_SIGINFO, SA_NOCLDWAIT): XFAIL on
18517 i386-gnu.
18518 * conform/data/sys/wait.h-data (WIFCONTINUED, WEXITED, WSTOPPED,
18519 WCONTINUED, WNOWAIT): XFAIL on i386-gnu.
18520
18521 2018-04-18 Joseph Myers <joseph@codesourcery.com>
18522
18523 * scripts/build-many-glibcs.py (Context.add_all_configs): Use
18524 --enable-obsolete for powerpc-linux-gnuspe.
18525
18526 2018-04-18 Samuel Thibault <samuel.thibault@ens-lyon.org>
18527
18528 * conform/data/sys/un.h-data: Allow sun_ prefix.
18529 * sysdeps/mach/include/lock-intern.h: Do not declare libc hidden
18530 prototypes.
18531 * sysdeps/mach/include/mach.h: Likewise.
18532 * sysdeps/mach/include/mach/mig_support.h: Likewise.
18533 * sysdeps/mach/include/mach_error.h: Likewise.
18534
18535 2018-04-16 Adhemerval Zanella <adhemerval.zanella@linaro.org>
18536
18537 * sysdeps/arm/armv6t2/memchr.S (memchr): Remove ARM code path.
18538 * sysdeps/arm/armv6t2/strlen.S (memchr): Likewise.
18539 * sysdeps/arm/armv7/multiarch/memchr_neon.S (memchr): Likewise.
18540 * sysdeps/arm/armv7/strcmp.S (strcmp): Likewise.
18541
18542 2018-04-16 Andreas Schwab <schwab@suse.de>
18543
18544 [BZ #19527]
18545 * iconvdata/gconv-modules (ARMSCII8//, ShiftJISX0213//): New aliases.
18546
18547 2018-04-15 Patrick McGehearty <patrick.mcgehearty@oracle.com>
18548
18549 * sysdeps/ieee754/dbl-64/e_exp.c: faster __ieee754_exp()
18550 * sysdeps/ieee754/dbl-64/eexp.tbl: New file for e_exp.c
18551
18552 2018-04-12 DJ Delorie <dj@redhat.com>
18553
18554 * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
18555 version to 4.16.
18556
18557 2018-04-12 Stefan Liebler <stli@linux.vnet.ibm.com>
18558
18559 * sysdeps/unix/sysv/linux/s390/kernel_sigaction.h
18560 (struct kernel_sigaction): Use the same definition on 31bit as is used
18561 on 64bit.
18562
18563 2018-04-09 Florian Weimer <fweimer@redhat.com>
18564
18565 [BZ #23037]
18566 * resolv/res_send.c (send_dg): Use designated initializers instead
18567 of assignment to zero-initialize other fields of struct mmsghdr.
18568
18569 2018-04-06 Adhemerval Zanella <adhemerval.zanella@linaro.org>
18570
18571 * sysdeps/posix/readdir.c (__READDIR, __GETDENTS, DIRENTY_TYPE,
18572 __READDIR_ALIAS): Undefine after usage.
18573 * sysdeps/posix/readdir_r.c (__READDIR_R, __GETDENTS, DIRENT_TYPE,
18574 __READDIR_R_ALIAS): Likewise.
18575 * sysdeps/unix/sysv/linux/arm/readdir64.c: Remove file.
18576 * sysdeps/unix/sysv/linux/arm/readdir64_r.c: Likewise.
18577 * sysdeps/unix/sysv/linux/m68k/readdir64.c: Likewise.
18578 * sysdeps/unix/sysv/linux/m68k/readdir64_r.c: Likewise.
18579 * sysdeps/unix/sysv/linux/powerpc/readdir64.c: Likewise.
18580 * sysdeps/unix/sysv/linux/powerpc/readdir64_r.c: Likewise.
18581 * sysdeps/unix/sysv/linux/i386/readdir64.c: Likewise.
18582 * sysdeps/unix/sysv/linux/i386/readdir64_r.c: Likewise.
18583 * sysdeps/unix/sysv/linux/s390/s390-32/readdir64.c: Likewise.
18584 * sysdeps/unix/sysv/linux/s390/s390-32/readdir64_r.c: Likewise.
18585 * sysdeps/unix/sysv/linux/sparc/sparc32/readdir64.c: Likewise.
18586 * sysdeps/unix/sysv/linux/sparc/sparc32/readdir64_r.c: Likewise.
18587 * sysdeps/unix/sysv/linux/wordsize-64/readdir.c: Likewise.
18588 * sysdeps/unix/sysv/linux/wordsize-64/readdir64.c: Likewise.
18589 * sysdeps/unix/sysv/linux/wordsize-64/readdir64_r.c: Likewise.
18590 * sysdeps/unix/sysv/linux/wordsize-64/readdir_r.c: Likewise.
18591 * sysdeps/unix/sysv/linux/readdir.c: New file.
18592 * sysdeps/unix/sysv/linux/readdir_r.c: Likewise.
18593 * sysdeps/unix/sysv/linux/readdir64.c: Add compat symbol if required.
18594 * sysdeps/unix/sysv/linux/readdir64_r.c: Likewise.
18595
18596 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Update.
18597
18598 2018-04-06 Andreas Schwab <schwab@linux-m68k.org>
18599
18600 * manual/charset.texi (Converting a Character): Fix typo.
18601
18602 2018-04-05 Adhemerval Zanella <adhemerval.zanella@linaro.org>
18603
18604 * sysdeps/sparc/fpu/libm-test-ulps: Update.
18605
18606 * sysdeps/arm/libm-test-ulps: Update.
18607
18608 * sysdeps/unix/sysv/linux/aarch64/sigaction.c: Use default Linux version
18609 as base implementation.
18610 * sysdeps/unix/sysv/linux/arm/sigaction.c: Likewise.
18611 * sysdeps/unix/sysv/linux/i386/sigaction.c: Likewise.
18612 * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c: Likewise.
18613 * sysdeps/unix/sysv/linux/sparc/sparc64/sigaction.c: Likewise.
18614 * sysdeps/unix/sysv/linux/x86_64/sigaction.c: Likewise.
18615 * sysdeps/unix/sysv/linux/alpha/kernel_sigaction.h: Add include guards,
18616 remove unrequired definitions and update comments.
18617 * sysdeps/unix/sysv/linux/kernel_sigaction.h: Likewise.
18618 * sysdeps/unix/sysv/linux/mips/kernel_sigaction.h: Likewise.
18619 * sysdeps/unix/sysv/linux/ia64/kernel_sigaction.h: New file.
18620 * sysdeps/unix/sysv/linux/m68k/kernel_sigaction.h: Likewise.
18621 * sysdeps/unix/sysv/linux/nios2/kernel_sigaction.h: Likewise.
18622 * sysdeps/unix/sysv/linux/powerpc/kernel_sigaction: Likewise.
18623 * sysdeps/unix/sysv/linux/s390/kernel_sigaction.h: Likewise.
18624 * sysdeps/unix/sysv/linux/sh/kernel_sigaction.h: Likewise.
18625 * sysdeps/unix/sysv/linux/sparc/kernel_sigaction.h: Likewise.
18626 * sysdeps/unix/sysv/linux/tile/kernel_sigaction.h: Likewise.
18627 * sysdeps/unix/sysv/linux/ia64/sigaction.c: Remove file.
18628 * sysdeps/unix/sysv/linux/mips/sigaction.c: Likewise.
18629 * sysdeps/unix/sysv/linux/s390/s390-64/sigaction.c: Likewise.
18630 * sysdeps/unix/sysv/linux/sigaction.c: Add STUB, SET_SA_RESTORER,
18631 and RESET_SA_RESTORER hooks.
18632
18633 2018-04-05 Stefan Liebler <stli@linux.vnet.ibm.com>
18634
18635 * sysdeps/s390/fpu/libm-test-ulps: Regenerated.
18636
18637 2018-04-05 Florian Weimer <fweimer@redhat.com>
18638
18639 * manual/examples/mbstouwcs.c (mbstouwcs): Fix loop termination,
18640 integer overflow, memory leak on error, and indeterminate errno
18641 value. Add a null wide character to terminate the result string.
18642 * manual/charset.texi (Converting a Character): Mention embedded
18643 null bytes in the mbrtowc input string. Explain what happens in
18644 the -2 result case. Do not claim that mbrtowc is simple or
18645 obvious to use. Adjust the description of the code example. Use
18646 @code, not @var, for concrete variables.
18647
18648 2018-04-05 Florian Weimer <fweimer@redhat.com>
18649
18650 * manual/examples/mbstouwcs.c: New file.
18651 * manual/charset.texi (Converting a Character): Include it.
18652
18653 2018-04-05 Samuel Thibault <samuel.thibault@ens-lyon.org>
18654
18655 * include/dirent.h (dirfd): Add hidden proto.
18656 * dirent/dirfd.c (dirfd): Add hidden def.
18657 * sysdeps/mach/hurd/dirfd.c (dirfd): Add hidden def.
18658 * sysdeps/posix/dirfd.c (dirfd): Add hidden def.
18659
18660 2018-04-04 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
18661
18662 * sysdeps/powerpc/fpu/libm-test-ulps: Increase double-precision
18663 sin, cos and sincos to 1 ULP.
18664
18665 2018-04-04 Maciej W. Rozycki <macro@mips.com>
18666
18667 [BZ #19818]
18668 * sysdeps/generic/ldsodefs.h (SYMBOL_ADDRESS): Handle SHN_ABS
18669 symbols.
18670 * elf/dl-addr.c (determine_info): Ignore SHN_ABS symbols.
18671 * elf/tst-absolute-sym.c: New file.
18672 * elf/tst-absolute-sym-lib.c: New file.
18673 * elf/tst-absolute-sym-lib.lds: New file.
18674 * elf/Makefile (tests): Add `tst-absolute-sym'.
18675 (modules-names): Add `tst-absolute-sym-lib'.
18676 (LDLIBS-tst-absolute-sym-lib.so): New variable.
18677 ($(objpfx)tst-absolute-sym-lib.so): New dependency.
18678 ($(objpfx)tst-absolute-sym): New dependency.
18679
18680 [BZ #19818]
18681 * sysdeps/generic/ldsodefs.h (LOOKUP_VALUE_ADDRESS): Add `set'
18682 parameter.
18683 (SYMBOL_ADDRESS): New macro.
18684 [!ELF_FUNCTION_PTR_IS_SPECIAL] (DL_SYMBOL_ADDRESS): Use
18685 SYMBOL_ADDRESS for symbol address calculation.
18686 * elf/dl-runtime.c (_dl_fixup): Likewise.
18687 (_dl_profile_fixup): Likewise.
18688 * elf/dl-symaddr.c (_dl_symbol_address): Likewise.
18689 * elf/rtld.c (dl_main): Likewise.
18690 * sysdeps/aarch64/dl-machine.h (elf_machine_rela): Likewise.
18691 * sysdeps/alpha/dl-machine.h (elf_machine_rela): Likewise.
18692 * sysdeps/arm/dl-machine.h (elf_machine_rel): Likewise.
18693 (elf_machine_rela): Likewise.
18694 * sysdeps/hppa/dl-machine.h (elf_machine_rela): Likewise.
18695 * sysdeps/hppa/dl-symaddr.c (_dl_symbol_address): Likewise.
18696 * sysdeps/i386/dl-machine.h (elf_machine_rel): Likewise.
18697 (elf_machine_rela): Likewise.
18698 * sysdeps/ia64/dl-machine.h (elf_machine_rela): Likewise.
18699 * sysdeps/m68k/dl-machine.h (elf_machine_rela): Likewise.
18700 * sysdeps/microblaze/dl-machine.h (elf_machine_rela): Likewise.
18701 * sysdeps/mips/dl-machine.h (ELF_MACHINE_BEFORE_RTLD_RELOC):
18702 Likewise.
18703 (elf_machine_reloc): Likewise.
18704 (elf_machine_got_rel): Likewise.
18705 * sysdeps/mips/dl-trampoline.c (__dl_runtime_resolve): Likewise.
18706 * sysdeps/nios2/dl-machine.h (elf_machine_rela): Likewise.
18707 * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela):
18708 Likewise.
18709 * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
18710 Likewise.
18711 * sysdeps/riscv/dl-machine.h (elf_machine_rela): Likewise.
18712 * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela):
18713 Likewise.
18714 * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela):
18715 Likewise.
18716 * sysdeps/sh/dl-machine.h (elf_machine_rela): Likewise.
18717 * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela):
18718 Likewise.
18719 * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela):
18720 Likewise.
18721 * sysdeps/tile/dl-machine.h (elf_machine_rela): Likewise.
18722 * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Likewise.
18723
18724 2018-04-04 Zack Weinberg <zackw@panix.com>
18725
18726 * sysdeps/generic/internal-signals.h: Include signal.h,
18727 sigsetops.h, and stdbool.h.
18728 (__libc_signal_block_all): Actually block all signals.
18729 (__libc_signal_block_app): Likewise.
18730 (__libc_signal_restore_set): Actually restore the signal mask.
18731
18732 2018-04-04 Florian Weimer <fweimer@redhat.com>
18733
18734 inet: Actually build and run tst-deadline.
18735 * inet/Makefile (tests-internal): Add tst-deadline and do not
18736 overwrite the variable.
18737 (tests-static-internal): Remove variable.
18738
18739 2018-04-03 H.J. Lu <hongjiu.lu@intel.com>
18740
18741 [BZ #22947]
18742 * bits/uio-ext.h (RWF_APPEND): New.
18743 * sysdeps/unix/sysv/linux/bits/uio-ext.h (RWF_APPEND): Likewise.
18744 * manual/llio.texi: Document RWF_APPEND.
18745 * misc/tst-preadvwritev2-common.c (RWF_APPEND): New.
18746 (RWF_SUPPORTED): Add RWF_APPEND.
18747
18748 2018-04-03 Adhemerval Zanella <adhemerval.zanella@linaro.org>
18749
18750 [BZ #22391]
18751 * nptl/sigaction.c (__sigaction): Use __is_internal_signal to
18752 check for internal nptl signals.
18753 * nptl/sigaction.c (__sigaction): Likewise.
18754 * signal/sigaddset.c (sigaddset): Likewise.
18755 * signal/sigdelset.c (sigdelset): Likewise.
18756 * sysdeps/posix/signal.c (__bsd_signal): Likewise.
18757 * sysdeps/posix/sigset.c (sigset): Call and check sigaddset return
18758 value.
18759 * signal/sigfillset.c (sigfillset): User __clear_internal_signals
18760 to filter out internal nptl signals.
18761 * signal/tst-sigset.c (do_test): Check ech signal indidually and
18762 also check realtime signals using standard macros.
18763 * sysdeps/generic/internal-signals.h (__clear_internal_signals,
18764 __is_internal_signal, __libc_signal_block_all,
18765 __libc_signal_block_app, __libc_signal_restore_set): New functions.
18766 * sysdeps/nptl/sigfillset.c: Remove file.
18767 * sysdeps/unix/sysv/linux/internal-signals.h (__is_internal_signal):
18768 Change return to bool.
18769 (__clear_internal_signals): Remove SIGTIMER clean since it is
18770 equal to SIGCANEL on Linux.
18771 * sysdeps/unix/sysv/linux/sigtimedwait.c (__sigtimedwait): Assume
18772 signal set was constructed using standard functions.
18773
18774 2018-04-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
18775
18776 * sysdeps/mach/hurd/if_index.c (__if_nametoindex): Return ENODEV if
18777 ifname is too long.
18778 * hurd/hurdsig.c (interrupted_reply_port_location): Use
18779 DIAG_IGNORE_NEEDS_COMMENT to silence warning with GCC 6 and before.
18780 * sysdeps/mach/hurd/i386/exc2signal.c (_hurd_exception2signal): Add
18781 hidden def.
18782 * mach/spin-lock.c (__mutex_unlock): Add hidden def.
18783 * signal/sigaddset.c: Include <sigsetopts.h>.
18784 * signal/sigdelset.c: Likewise.
18785
18786 2018-04-03 Wilco Dijkstra <wdijkstr@arm.com>
18787
18788 * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Cleanup ifdefs.
18789 (__cos): Likewise.
18790 * sysdeps/ieee754/dbl-64/s_sin.c (__sincos): Refactor using the same
18791 logic as sin and cos.
18792
18793 2018-04-03 Wilco Dijkstra <wdijkstr@arm.com>
18794
18795 * sysdeps/ieee754/dbl-64/s_sin.c (do_sin): Use TAYLOR_SIN for small
18796 inputs. Return correct sign.
18797 (do_sincos): Remove small input check before do_sin, let do_sin set
18798 the sign.
18799 (__sin): Likewise.
18800 (__cos): Likewise.
18801
18802 2018-04-03 Wilco Dijkstra <wdijkstr@arm.com>
18803
18804 * sysdeps/ieee754/dbl-64/s_sin.c (TAYLOR_SLOW): Remove.
18805 (do_cos_slow): Likewise.
18806 (do_sin_slow): Likewise.
18807 (reduce_and_compute): Likewise.
18808 (slow): Likewise.
18809 (slow1): Likewise.
18810 (slow2): Likewise.
18811 (sloww): Likewise.
18812 (sloww1): Likewise.
18813 (sloww2): Likewise.
18814 (bslow): Likewise.
18815 (bslow1): Likewise.
18816 (bslow2): Likewise.
18817 (cslow2): Likewise.
18818
18819 2018-04-03 Wilco Dijkstra <wdijkstr@arm.com>
18820
18821 * sysdeps/ieee754/dbl-64/s_sin.c (TAYLOR_SIN): Remove cor parameter.
18822 (do_cos): Remove corp parameter and calculations.
18823 (do_sin): Likewise.
18824 (do_sincos): Remove cor variable.
18825 (__sin): Use do_sincos for huge inputs.
18826 (__cos): Likewise.
18827 * sysdeps/ieee754/dbl-64/s_sincos.c (__sincos): Likewise.
18828 (reduce_and_compute_sincos): Remove unused function.
18829
18830 2018-04-03 Wilco Dijkstra <wdijkstr@arm.com>
18831
18832 * sysdeps/ieee754/dbl-64/s_sin.c (reduce_sincos_1): Rename to
18833 reduce_sincos, improve accuracy to 136 bits.
18834 (do_sincos_1): Rename to do_sincos, remove fallbacks to slow functions.
18835 (__sin): Use improved reduction and simplified do_sincos calculation.
18836 (__cos): Likewise.
18837 * sysdeps/ieee754/dbl-64/s_sincos.c (__sincos): Likewise.
18838
18839 2018-04-03 Wilco Dijkstra <wdijkstr@arm.com>
18840
18841 * sysdeps/ieee754/dbl-64/s_sin.c (reduce_sincos_2): Remove function.
18842 (do_sincos_2): Likewise.
18843 (__sin): Remove middle range reduction case.
18844 (__cos): Likewise.
18845 * sysdeps/ieee754/dbl-64/s_sincos.c (__sincos): Remove middle range
18846 reduction case.
18847
18848 2018-04-03 Wilco Dijkstra <wdijkstr@arm.com>
18849
18850 * sysdeps/aarch64/libm-test-ulps: Update ULP for sin, cos, sincos.
18851 * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Remove slow paths for small
18852 inputs.
18853 (__cos): Likewise.
18854 * sysdeps/x86_64/fpu/libm-test-ulps: Update ULP for sin, cos, sincos.
18855
18856 2018-04-03 Joseph Myers <joseph@codesourcery.com>
18857
18858 * scripts/build-many-glibcs.py (Context.checkout): Default Linux
18859 version to 4.16
18860
18861 2018-04-03 Adhemerval Zanella <adhemerval.zanella@linaro.org>
18862
18863 * sysdeps/posix/opendir.c (o_directory_works, tryopen_o_directory):
18864 Remove definitions.
18865 (opendir_oflags): Use O_DIRECTORY regardless.
18866 (__opendir, __opendirat): Remove need_isdir_precheck usage.
18867 * sysdeps/unix/sysv/linux/opendir.c: Remove file.
18868
18869 2018-04-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
18870
18871 * sysdeps/mach/hurd/bits/local_lim.h (_POSIX_THREAD_KEYS_MAX,
18872 _POSIX_THREAD_DESTRUCTOR_ITERATIONS, _POSIX_THREAD_THREADS_MAX): Define
18873 macros.
18874 * sysdeps/mach/hurd/bits/posix_opt.h (_POSIX_THREADS,
18875 _POSIX_THREAD_ATTR_STACKSIZE, _POSIX_THREAD_ATTR_STACKADDR,
18876 _POSIX_SEMAPHORES, _POSIX_READER_WRITER_LOCKS, _POSIX_TIMEOUTS,
18877 _POSIX_SPIN_LOCKS, _POSIX_BARRIERS): Define macros to 200809L.
18878 * sysdeps/mach/hurd/net/if_ppp.h: Remove file.
18879 * sysdeps/mach/hurd/Makefile (sysdep_headers): Remove net/if_ppp.h.
18880
18881 * htl/Makefile: Bump licence to LGPL 2.1+.
18882 * htl/alloca_cutoff.c: Likewise.
18883 * htl/cthreads-compat.c: Likewise.
18884 * htl/lockfile.c: Likewise.
18885 * htl/pt-alloc.c: Likewise.
18886 * htl/pt-cancel.c: Likewise.
18887 * htl/pt-cleanup.c: Likewise.
18888 * htl/pt-create.c: Likewise.
18889 * htl/pt-dealloc.c: Likewise.
18890 * htl/pt-detach.c: Likewise.
18891 * htl/pt-exit.c: Likewise.
18892 * htl/pt-getattr.c: Likewise.
18893 * htl/pt-initialize.c: Likewise.
18894 * htl/pt-internal.h: Likewise.
18895 * htl/pt-join.c: Likewise.
18896 * htl/pt-self.c: Likewise.
18897 * htl/pt-setcancelstate.c: Likewise.
18898 * htl/pt-setcanceltype.c: Likewise.
18899 * htl/pt-sigmask.c: Likewise.
18900 * htl/pt-spin-inlines.c: Likewise.
18901 * htl/pt-testcancel.c: Likewise.
18902 * htl/pt-yield.c: Likewise.
18903 * htl/tests/test-1.c: Likewise.
18904 * htl/tests/test-10.c: Likewise.
18905 * htl/tests/test-11.c: Likewise.
18906 * htl/tests/test-12.c: Likewise.
18907 * htl/tests/test-13.c: Likewise.
18908 * htl/tests/test-14.c: Likewise.
18909 * htl/tests/test-15.c: Likewise.
18910 * htl/tests/test-16.c: Likewise.
18911 * htl/tests/test-17.c: Likewise.
18912 * htl/tests/test-2.c: Likewise.
18913 * htl/tests/test-3.c: Likewise.
18914 * htl/tests/test-4.c: Likewise.
18915 * htl/tests/test-5.c: Likewise.
18916 * htl/tests/test-6.c: Likewise.
18917 * htl/tests/test-7.c: Likewise.
18918 * htl/tests/test-8.c: Likewise.
18919 * htl/tests/test-9.c: Likewise.
18920 * htl/tests/test-__pthread_destroy_specific-skip.c: Likewise.
18921 * sysdeps/htl/bits/cancelation.h: Likewise.
18922 * sysdeps/htl/bits/pthread-np.h: Likewise.
18923 * sysdeps/htl/bits/pthread.h: Likewise.
18924 * sysdeps/htl/bits/pthreadtypes.h: Likewise.
18925 * sysdeps/htl/bits/semaphore.h: Likewise.
18926 * sysdeps/htl/bits/types/__pthread_key.h: Likewise.
18927 * sysdeps/htl/bits/types/struct___pthread_attr.h: Likewise.
18928 * sysdeps/htl/bits/types/struct___pthread_barrier.h: Likewise.
18929 * sysdeps/htl/bits/types/struct___pthread_barrierattr.h: Likewise.
18930 * sysdeps/htl/bits/types/struct___pthread_cond.h: Likewise.
18931 * sysdeps/htl/bits/types/struct___pthread_condattr.h: Likewise.
18932 * sysdeps/htl/bits/types/struct___pthread_mutex.h: Likewise.
18933 * sysdeps/htl/bits/types/struct___pthread_mutexattr.h: Likewise.
18934 * sysdeps/htl/bits/types/struct___pthread_once.h: Likewise.
18935 * sysdeps/htl/bits/types/struct___pthread_rwlock.h: Likewise.
18936 * sysdeps/htl/bits/types/struct___pthread_rwlockattr.h: Likewise.
18937 * sysdeps/htl/old_pt-atfork.c: Likewise.
18938 * sysdeps/htl/pt-atfork.c: Likewise.
18939 * sysdeps/htl/pt-attr-destroy.c: Likewise.
18940 * sysdeps/htl/pt-attr-getdetachstate.c: Likewise.
18941 * sysdeps/htl/pt-attr-getguardsize.c: Likewise.
18942 * sysdeps/htl/pt-attr-getinheritsched.c: Likewise.
18943 * sysdeps/htl/pt-attr-getschedparam.c: Likewise.
18944 * sysdeps/htl/pt-attr-getschedpolicy.c: Likewise.
18945 * sysdeps/htl/pt-attr-getscope.c: Likewise.
18946 * sysdeps/htl/pt-attr-getstack.c: Likewise.
18947 * sysdeps/htl/pt-attr-getstackaddr.c: Likewise.
18948 * sysdeps/htl/pt-attr-getstacksize.c: Likewise.
18949 * sysdeps/htl/pt-attr-init.c: Likewise.
18950 * sysdeps/htl/pt-attr-setdetachstate.c: Likewise.
18951 * sysdeps/htl/pt-attr-setguardsize.c: Likewise.
18952 * sysdeps/htl/pt-attr-setinheritsched.c: Likewise.
18953 * sysdeps/htl/pt-attr-setschedparam.c: Likewise.
18954 * sysdeps/htl/pt-attr-setschedpolicy.c: Likewise.
18955 * sysdeps/htl/pt-attr-setscope.c: Likewise.
18956 * sysdeps/htl/pt-attr-setstack.c: Likewise.
18957 * sysdeps/htl/pt-attr-setstackaddr.c: Likewise.
18958 * sysdeps/htl/pt-attr-setstacksize.c: Likewise.
18959 * sysdeps/htl/pt-attr.c: Likewise.
18960 * sysdeps/htl/pt-barrier-destroy.c: Likewise.
18961 * sysdeps/htl/pt-barrier-init.c: Likewise.
18962 * sysdeps/htl/pt-barrier-wait.c: Likewise.
18963 * sysdeps/htl/pt-barrier.c: Likewise.
18964 * sysdeps/htl/pt-barrierattr-destroy.c: Likewise.
18965 * sysdeps/htl/pt-barrierattr-getpshared.c: Likewise.
18966 * sysdeps/htl/pt-barrierattr-init.c: Likewise.
18967 * sysdeps/htl/pt-barrierattr-setpshared.c: Likewise.
18968 * sysdeps/htl/pt-cond-brdcast.c: Likewise.
18969 * sysdeps/htl/pt-cond-destroy.c: Likewise.
18970 * sysdeps/htl/pt-cond-init.c: Likewise.
18971 * sysdeps/htl/pt-cond-signal.c: Likewise.
18972 * sysdeps/htl/pt-cond-timedwait.c: Likewise.
18973 * sysdeps/htl/pt-cond-wait.c: Likewise.
18974 * sysdeps/htl/pt-cond.c: Likewise.
18975 * sysdeps/htl/pt-condattr-destroy.c: Likewise.
18976 * sysdeps/htl/pt-condattr-getclock.c: Likewise.
18977 * sysdeps/htl/pt-condattr-getpshared.c: Likewise.
18978 * sysdeps/htl/pt-condattr-init.c: Likewise.
18979 * sysdeps/htl/pt-condattr-setclock.c: Likewise.
18980 * sysdeps/htl/pt-condattr-setpshared.c: Likewise.
18981 * sysdeps/htl/pt-destroy-specific.c: Likewise.
18982 * sysdeps/htl/pt-equal.c: Likewise.
18983 * sysdeps/htl/pt-getconcurrency.c: Likewise.
18984 * sysdeps/htl/pt-getcpuclockid.c: Likewise.
18985 * sysdeps/htl/pt-getschedparam.c: Likewise.
18986 * sysdeps/htl/pt-getspecific.c: Likewise.
18987 * sysdeps/htl/pt-init-specific.c: Likewise.
18988 * sysdeps/htl/pt-key-create.c: Likewise.
18989 * sysdeps/htl/pt-key-delete.c: Likewise.
18990 * sysdeps/htl/pt-key.h: Likewise.
18991 * sysdeps/htl/pt-mutex-destroy.c: Likewise.
18992 * sysdeps/htl/pt-mutex-getprioceiling.c: Likewise.
18993 * sysdeps/htl/pt-mutex-init.c: Likewise.
18994 * sysdeps/htl/pt-mutex-lock.c: Likewise.
18995 * sysdeps/htl/pt-mutex-setprioceiling.c: Likewise.
18996 * sysdeps/htl/pt-mutex-timedlock.c: Likewise.
18997 * sysdeps/htl/pt-mutex-trylock.c: Likewise.
18998 * sysdeps/htl/pt-mutex-unlock.c: Likewise.
18999 * sysdeps/htl/pt-mutexattr-destroy.c: Likewise.
19000 * sysdeps/htl/pt-mutexattr-getprioceiling.c: Likewise.
19001 * sysdeps/htl/pt-mutexattr-getprotocol.c: Likewise.
19002 * sysdeps/htl/pt-mutexattr-getpshared.c: Likewise.
19003 * sysdeps/htl/pt-mutexattr-gettype.c: Likewise.
19004 * sysdeps/htl/pt-mutexattr-init.c: Likewise.
19005 * sysdeps/htl/pt-mutexattr-setprioceiling.c: Likewise.
19006 * sysdeps/htl/pt-mutexattr-setprotocol.c: Likewise.
19007 * sysdeps/htl/pt-mutexattr-setpshared.c: Likewise.
19008 * sysdeps/htl/pt-mutexattr-settype.c: Likewise.
19009 * sysdeps/htl/pt-mutexattr.c: Likewise.
19010 * sysdeps/htl/pt-once.c: Likewise.
19011 * sysdeps/htl/pt-rwlock-attr.c: Likewise.
19012 * sysdeps/htl/pt-rwlock-destroy.c: Likewise.
19013 * sysdeps/htl/pt-rwlock-init.c: Likewise.
19014 * sysdeps/htl/pt-rwlock-rdlock.c: Likewise.
19015 * sysdeps/htl/pt-rwlock-timedrdlock.c: Likewise.
19016 * sysdeps/htl/pt-rwlock-timedwrlock.c: Likewise.
19017 * sysdeps/htl/pt-rwlock-tryrdlock.c: Likewise.
19018 * sysdeps/htl/pt-rwlock-trywrlock.c: Likewise.
19019 * sysdeps/htl/pt-rwlock-unlock.c: Likewise.
19020 * sysdeps/htl/pt-rwlock-wrlock.c: Likewise.
19021 * sysdeps/htl/pt-rwlockattr-destroy.c: Likewise.
19022 * sysdeps/htl/pt-rwlockattr-getpshared.c: Likewise.
19023 * sysdeps/htl/pt-rwlockattr-init.c: Likewise.
19024 * sysdeps/htl/pt-rwlockattr-setpshared.c: Likewise.
19025 * sysdeps/htl/pt-setconcurrency.c: Likewise.
19026 * sysdeps/htl/pt-setschedparam.c: Likewise.
19027 * sysdeps/htl/pt-setschedprio.c: Likewise.
19028 * sysdeps/htl/pt-setspecific.c: Likewise.
19029 * sysdeps/htl/pt-spin.c: Likewise.
19030 * sysdeps/htl/pt-startup.c: Likewise.
19031 * sysdeps/htl/pthread.h: Likewise.
19032 * sysdeps/htl/sem-close.c: Likewise.
19033 * sysdeps/htl/sem-destroy.c: Likewise.
19034 * sysdeps/htl/sem-getvalue.c: Likewise.
19035 * sysdeps/htl/sem-init.c: Likewise.
19036 * sysdeps/htl/sem-open.c: Likewise.
19037 * sysdeps/htl/sem-post.c: Likewise.
19038 * sysdeps/htl/sem-timedwait.c: Likewise.
19039 * sysdeps/htl/sem-trywait.c: Likewise.
19040 * sysdeps/htl/sem-unlink.c: Likewise.
19041 * sysdeps/htl/sem-wait.c: Likewise.
19042 * sysdeps/hurd/htl/pt-kill.c: Likewise.
19043 * sysdeps/i386/htl/pt-machdep.h: Likewise.
19044 * sysdeps/mach/htl/pt-block.c: Likewise.
19045 * sysdeps/mach/htl/pt-spin.c: Likewise.
19046 * sysdeps/mach/htl/pt-stack-alloc.c: Likewise.
19047 * sysdeps/mach/htl/pt-thread-alloc.c: Likewise.
19048 * sysdeps/mach/htl/pt-thread-start.c: Likewise.
19049 * sysdeps/mach/htl/pt-thread-terminate.c: Likewise.
19050 * sysdeps/mach/htl/pt-timedblock.c: Likewise.
19051 * sysdeps/mach/htl/pt-wakeup.c: Likewise.
19052 * sysdeps/mach/hurd/htl/bits/pthread-np.h: Likewise.
19053 * sysdeps/mach/hurd/htl/bits/types/struct___pthread_mutex.h: Likewise.
19054 * sysdeps/mach/hurd/htl/pt-attr-setstackaddr.c: Likewise.
19055 * sysdeps/mach/hurd/htl/pt-attr-setstacksize.c: Likewise.
19056 * sysdeps/mach/hurd/htl/pt-docancel.c: Likewise.
19057 * sysdeps/mach/hurd/htl/pt-hurd-cond-timedwait.c: Likewise.
19058 * sysdeps/mach/hurd/htl/pt-hurd-cond-wait.c: Likewise.
19059 * sysdeps/mach/hurd/htl/pt-mutex-consistent.c: Likewise.
19060 * sysdeps/mach/hurd/htl/pt-mutex-destroy.c: Likewise.
19061 * sysdeps/mach/hurd/htl/pt-mutex-getprioceiling.c: Likewise.
19062 * sysdeps/mach/hurd/htl/pt-mutex-init.c: Likewise.
19063 * sysdeps/mach/hurd/htl/pt-mutex-lock.c: Likewise.
19064 * sysdeps/mach/hurd/htl/pt-mutex-setprioceiling.c: Likewise.
19065 * sysdeps/mach/hurd/htl/pt-mutex-timedlock.c: Likewise.
19066 * sysdeps/mach/hurd/htl/pt-mutex-transfer-np.c: Likewise.
19067 * sysdeps/mach/hurd/htl/pt-mutex-trylock.c: Likewise.
19068 * sysdeps/mach/hurd/htl/pt-mutex-unlock.c: Likewise.
19069 * sysdeps/mach/hurd/htl/pt-mutex.h: Likewise.
19070 * sysdeps/mach/hurd/htl/pt-mutexattr-destroy.c: Likewise.
19071 * sysdeps/mach/hurd/htl/pt-mutexattr-getprioceiling.c: Likewise.
19072 * sysdeps/mach/hurd/htl/pt-mutexattr-getprotocol.c: Likewise.
19073 * sysdeps/mach/hurd/htl/pt-mutexattr-getpshared.c: Likewise.
19074 * sysdeps/mach/hurd/htl/pt-mutexattr-getrobust.c: Likewise.
19075 * sysdeps/mach/hurd/htl/pt-mutexattr-gettype.c: Likewise.
19076 * sysdeps/mach/hurd/htl/pt-mutexattr-init.c: Likewise.
19077 * sysdeps/mach/hurd/htl/pt-mutexattr-setprioceiling.c: Likewise.
19078 * sysdeps/mach/hurd/htl/pt-mutexattr-setprotocol.c: Likewise.
19079 * sysdeps/mach/hurd/htl/pt-mutexattr-setpshared.c: Likewise.
19080 * sysdeps/mach/hurd/htl/pt-mutexattr-setrobust.c: Likewise.
19081 * sysdeps/mach/hurd/htl/pt-mutexattr-settype.c: Likewise.
19082 * sysdeps/mach/hurd/htl/pt-sigstate-destroy.c: Likewise.
19083 * sysdeps/mach/hurd/htl/pt-sigstate-init.c: Likewise.
19084 * sysdeps/mach/hurd/htl/pt-sigstate.c: Likewise.
19085 * sysdeps/mach/hurd/htl/pt-sysdep.c: Likewise.
19086 * sysdeps/mach/hurd/htl/pt-sysdep.h: Likewise.
19087 * sysdeps/mach/hurd/i386/htl/pt-machdep.c: Likewise.
19088 * sysdeps/mach/hurd/i386/htl/pt-setup.c: Likewise.
19089
19090 * NEWS: Announce that glibc now builds unpatched on GNU/Hurd.
19091 * README: Remove the mention of out-of-tree patches needed for
19092 GNU/Hurd.
19093
19094 * sysdeps/mach/hurd/bits/stat.h [!__USE_MISC && __USE_ATFILE]
19095 (UTIME_NOW, UTIME_OMIT): Define macros.
19096
19097 * htl/cthreads-compat.c (__cthread_detach): Call __pthread_detach
19098 instead of pthread_detach.
19099 (__cthread_fork): Call __pthread_create instead of pthread_create.
19100 (__cthread_keycreate): Call __pthread_key_create instead of
19101 pthread_key_create.
19102 (__cthread_getspecific): Call __pthread_getspecific instead of
19103 pthread_getspecific.
19104 (__cthread_setspecific): Call __pthread_setspecific instead of
19105 pthread_setspecific.
19106 * htl/pt-alloc.c (__pthread_alloc): Call __pthread_mutex_lock and
19107 __pthread_mutex_unlock instead of pthread_mutex_lock and
19108 pthread_mutex_unlock.
19109 * htl/pt-cleanup.c (__pthread_get_cleanup_stack): Rename to
19110 ___pthread_get_cleanup_stack.
19111 (__pthread_get_cleanup_stack): New strong alias.
19112 * htl/pt-create.c: Include <pthreadP.h>.
19113 (entry_point): Call __pthread_exit instead of pthread_exit.
19114 (pthread_create): Rename to __pthread_create.
19115 (pthread_create): New strong alias.
19116 * htl/pt-detach.c (pthread_detach): Rename to __pthread_detach.
19117 (pthread_detach): New strong alias.
19118 (__pthread_detach): Call __pthread_cond_broadcast instead of
19119 pthread_cond_broadcast.
19120 * htl/pt-exit.c: Include <pthreadP.h>.
19121 (__pthread_exit): Call __pthread_setcancelstate and
19122 ___pthread_get_cleanup_stack instead of pthread_setcancelstate and
19123 __pthread_get_cleanup_stack.
19124 * htl/pt-testcancel.c: Include <pthreadP.h>.
19125 (pthread_testcancel): Call __pthread_exit instead of pthread_exit.
19126 * sysdeps/htl/pt-attr-getstack.c: Include <pthreadP.h>
19127 (__pthread_attr_getstack): Call __pthread_attr_getstackaddr and
19128 __pthread_attr_getstacksize instead of pthread_attr_getstackaddr and
19129 pthread_attr_getstacksize.
19130 * sysdeps/htl/pt-attr-getstackaddr.c (pthread_attr_getstackaddr):
19131 Rename to __pthread_attr_getstackaddr.
19132 (pthread_attr_getstackaddr): New strong alias.
19133 * sysdeps/htl/pt-attr-getstacksize.c (pthread_attr_getstacksize):
19134 Rename to __pthread_attr_getstacksize.
19135 (pthread_attr_getstacksize): New strong alias.
19136 * sysdeps/htl/pt-attr-setstack.c: Include <pthreadP.h>.
19137 (pthread_attr_setstack): Rename to __pthread_attr_setstack.
19138 (pthread_attr_setstack): New strong alias.
19139 (__pthread_attr_setstack): Call __pthread_attr_getstacksize,
19140 __pthread_attr_setstacksize and __pthread_attr_setstackaddr instead of
19141 pthread_attr_getstacksize, pthread_attr_setstacksize and
19142 pthread_attr_setstackaddr.
19143 * sysdeps/htl/pt-attr-setstackaddr.c (pthread_attr_setstackaddr):
19144 Rename to __pthread_attr_setstackaddr.
19145 (pthread_attr_setstackaddr): New strong alias.
19146 * sysdeps/htl/pt-attr-setstacksize.c (pthread_attr_setstacksize):
19147 Rename to __pthread_attr_setstacksize.
19148 (pthread_attr_setstacksize): New strong alias.
19149 * sysdeps/htl/pt-cond-timedwait.c: Include <pthreadP.h>.
19150 (__pthread_cond_timedwait_internal): Use __pthread_exit instead of
19151 pthread_exit.
19152 * sysdeps/htl/pt-key-create.c: Include <pthreadP.h>.
19153 (__pthread_key_create): New hidden def.
19154 * sysdeps/htl/pt-key.h: Include <pthreadP.h>.
19155 * sysdeps/htl/pthreadP.h (_pthread_mutex_init,
19156 __pthread_cond_broadcast, __pthread_create, __pthread_detach,
19157 __pthread_exit, __pthread_key_create, __pthread_getspecific,
19158 __pthread_setspecific, __pthread_setcancelstate,
19159 __pthread_attr_getstackaddr, __pthread_attr_setstackaddr,
19160 __pthread_attr_getstacksize, __pthread_attr_setstacksize,
19161 __pthread_attr_setstack, ___pthread_get_cleanup_stack): New
19162 declarations.
19163 (__pthread_key_create, _pthread_mutex_init): New hidden declarations.
19164 * sysdeps/mach/hurd/htl/pt-attr-setstackaddr.c
19165 (pthread_attr_setstackaddr): Rename to __pthread_attr_setstackaddr.
19166 (pthread_attr_setstackaddr): New strong alias.
19167 * sysdeps/mach/hurd/htl/pt-attr-setstacksize.c
19168 (pthread_attr_setstacksize): Rename to __pthread_attr_setstacksize.
19169 (pthread_attr_setstacksize): New strong alias.
19170 * sysdeps/mach/hurd/htl/pt-docancel.c: Include <pthreadP.h>.
19171 (call_exit): Call __pthread_exit instead of pthread_exit.
19172 * sysdeps/mach/hurd/htl/pt-mutex-init.c: Include <pthreadP.h>.
19173 (_pthread_mutex_init): New hidden definition.
19174 * sysdeps/mach/hurd/htl/pt-sysdep.c: Include <pthreadP.h>.
19175 (_init_routine): Call __pthread_attr_init and __pthread_attr_setstack
19176 instead of pthread_attr_init and pthread_attr_setstack.
19177
19178 * hurd/hurdauth.c (_S_msg_add_auth): Call __vm_allocate and
19179 __vm_deallocate instead of vm_allocate and vm_deallocate.
19180 * hurd/hurdmsg.c (_S_msg_set_env_variable): Call __setenv instead of
19181 setenv.
19182 * hurd/hurdprio.c (_hurd_priority_which_map): Call __geteuid instead
19183 of geteuid.
19184 * hurd/path-lookup.c (file_name_path_scan): Call __strdup instead of
19185 strdup.
19186 * hurd/siginfo.c: Include <libioP.h>.
19187 (_hurd_siginfo_handler): Call _IO_puts instead of puts.
19188 * hurd/xattr.c (_hurd_xattr_get, _hurd_xattr_set): Call __munmap instead of
19189 munmap.
19190 * mach/devstream.c: Include <libioP.h>.
19191 (dealloc_ref): Call __mach_port_deallocate instead of
19192 mach_port_deallocate.
19193 (mach_open_devstream): Call _IO_fopencookie instead of fopencookie.
19194 Call __mach_port_deallocate instead of mach_port_deallocate.
19195 * stdlib/canonicalize.c (__realpath): Call __pathconf instead of
19196 pathconf.
19197 * sysdeps/mach/hurd/ifreq.c (__ifreq): Call __munmap instead of
19198 munmap.
19199 * sysdeps/mach/hurd/ifreq.h (__if_freereq): Likewise.
19200 * sysdeps/mach/hurd/ptrace.c (ptrace): Call __kill instead of kill.
19201 * sysdeps/mach/hurd/sendfile64.c (sendfile64): Call __munmap instead
19202 of munmap.
19203 * sysdeps/mach/hurd/socketpair.c (__socketpair): Call __close instead
19204 of close.
19205 * sysdeps/posix/clock_getres.c (realtime_getres): Call __sysconf
19206 instead of sysconf.
19207 * sysdeps/pthread/timer_gettime.c (timer_gettime): Call
19208 __clock_gettime instead of clock_gettime.
19209 * sysdeps/pthread/timer_routines.c (thread_func): Likewise.
19210 * sysdeps/pthread/timer_settime.c (timer_settime): Likewise.
19211 * sysdeps/unix/bsd/gtty.c (gtty): Call __ioctl instead of ioctl.
19212 * sysdeps/unix/bsd/stty.c (stty): Likewise.
19213 * sysdeps/unix/bsd/tcflow.c (tcflow): Call __tcgetattr instead of
19214 tcgetattr.
19215 * sysdeps/unix/clock_nanosleep.c (__clock_nanosleep): Call
19216 __clock_gettime and __nanosleep instead of clock_gettime and
19217 nanosleep.
19218 * hurd/catch-signal.c (hurd_catch_signal): Rename to
19219 __hurd_catch_signal.
19220 (hurd_catch_signal): New strong alias.
19221 (hurd_safe_memset, hurd_safe_copyout, hurd_safe_copyin): Call
19222 __hurd_catch_signal instead of hurd_catch_signal.
19223 * hurd/exc2signal.c (_hurd_exception2signal): Add hidden def.
19224 * hurd/hurdexec.c (_hurd_init): Add hidden def.
19225 * hurd/hurdinit.c (_hurd_init): Add hidden def.
19226 * hurd/hurdsig.c: Include <mach/mig_support.h>.
19227 (_hurd_thread_sigstate): Add hidden def.
19228 (_hurd_internal_post_signal): Use __mutex_unlock instead of
19229 mutex_unlock.
19230 * hurd/intern-fd.c (_hurd_intern_fd): Add hidden def.
19231 * hurd/intr-msg.c (_hurd_intr_rpc_mach_msg): Add hidden def.
19232 * hurd/path-lookup.c (hurd_file_name_path_lookup): Rename to
19233 __hurd_file_name_path_lookup.
19234 (hurd_file_name_path_lookup): New strong alias.
19235 (file_name_path_lookup): Call __hurd_file_name_path_lookup instead of
19236 hurd_file_name_path_lookup.
19237 * mach/errstring.c (mach_error_type): Add hidden def.
19238 * mach/msg-destroy.c (__mach_msg_destroy): Add hidden def.
19239 * mach/mutex-init.c (__mutex_init): Add hidden def.
19240 * mach/spin-lock.c (__spin_lock_locked, __spin_lock, __spin_unlock,
19241 __spin_try_lock, __mutex_lock, __mutex_trylock): Add hidden defs.
19242 * mach/spin-solid.c (__spin_lock_solid): Add hidden def.
19243 * sysdeps/mach/hurd/getcwd.c
19244 (_hurd_canonicalize_directory_name_internal): Rename to
19245 __hurd_canonicalize_directory_name_internal.
19246 (_hurd_canonicalize_directory_name_internal): New strong alias.
19247 (__canonicalize_directory_name_internal, __getcwd): Call
19248 __hurd_canonicalize_directory_name_internal instead of
19249 _hurd_canonicalize_directory_name_internal.
19250 * sysdeps/mach/hurd/mig-reply.c: Include <mach/mig_support.h>.
19251 (__mig_get_reply_port, __mig_dealloc_reply_port, __mig_init): Add
19252 hidden defs.
19253 * sysdeps/hurd/include/hurd.h: New file.
19254 * sysdeps/hurd/include/hurd/fd.h: New file.
19255 * sysdeps/hurd/include/hurd/signal.h: New file.
19256 * sysdeps/mach/include/lock-intern.h: New file.
19257 * sysdeps/mach/include/mach.h: New file.
19258 * sysdeps/mach/include/mach/mig_support.h: New file.
19259 * sysdeps/mach/include/mach_error.h: New file.
19260 * sysdeps/hurd/include/hurd/signal.h (_hurd_raise_signal): Add hidden
19261 prototype.
19262 * hurd/hurd-raise.c (_hurd_raise_signal): Add hidden def.
19263 * hurd/Makefile ($(inlines:%=$(objpfx)%.c): Define
19264 _HEADER_H_HIDDEN_DEF macro.
19265 * sysdeps/hurd/include/hurd/fd.h (_hurd_fd_error,
19266 _hurd_fd_error_signal): Add hidden prototype.
19267 [_HURD_FD_H_HIDDEN_DEF] (_hurd_fd_error, _hurd_fd_error_signal): Add
19268 hidden def.
19269 * libio/iolibio.h (_IO_puts): New hidden prototype.
19270 * libio/ioputs.c (_IO_puts): New hidden def.
19271 * sysdeps/mach/hurd/localplt.data: New file.
19272
19273 2018-04-02 Agustina Arzille <avarzille@riseup.net>
19274 Amos Jeffries <squid3@treenet.co.nz>
19275 David Michael <fedora.dm0@gmail.com>
19276 Marco Gerards <marco@gnu.org>
19277 Marcus Brinkmann <marcus@gnu.org>
19278 Neal H. Walfield <neal@gnu.org>
19279 Pino Toscano <toscano.pino@tiscali.it>
19280 Richard Braun <rbraun@sceen.net>
19281 Roland McGrath <roland@gnu.org>
19282 Samuel Thibault <samuel.thibault@ens-lyon.org>
19283 Thomas DiModica <ricinwich@yahoo.com>
19284 Thomas Schwinge <tschwinge@gnu.org>
19285
19286 * htl: New directory.
19287 * sysdeps/htl: New directory.
19288 * sysdeps/hurd/htl: New directory.
19289 * sysdeps/i386/htl: New directory.
19290 * sysdeps/mach/htl: New directory.
19291 * sysdeps/mach/hurd/htl: New directory.
19292 * sysdeps/mach/hurd/i386/htl: New directory.
19293 * nscd/Depend, resolv/Depend, rt/Depend: Add htl dependency.
19294 * sysdeps/mach/hurd/i386/Implies: Add mach/hurd/i386/htl imply.
19295 * sysdeps/mach/hurd/i386/libpthread.abilist: New file.
19296
19297 2018-04-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
19298
19299 * sysdeps/pthread/timer_routines.c (__timer_thread_start): Block all
19300 signals in thread created for runing timers.
19301
19302 2018-04-01 Florian Weimer <fweimer@redhat.com>
19303
19304 * support/support_format_addrinfo.c (support_format_addrinfo):
19305 Include unknown error number in formatted result.
19306
19307 2018-03-29 Florian Weimer <fweimer@redhat.com>
19308
19309 * sysdeps/unix/sysv/linux/i386/tst-bz21269.c (do_test): Also
19310 capture SIGBUS.
19311
19312 2018-03-27 Adhemerval Zanella <adhemerval.zanella@linaro.org>
19313
19314 * sysdeps/unix/sysv/linux/arch-fork.h [__ASSUME_CLONE_BACKWARDS]
19315 (arch_fork): Issue INLINE_CLONE_SYSCALL if defined.
19316 * sysdeps/unix/sysv/linux/sparc/kernel-features.h
19317 (__ASSUME_CLONE_BACKWARDS): Define.
19318
19319 2018-03-27 Jesse Hathaway <jesse@mbuki-mvuki.org>
19320
19321 [BZ #23024]
19322 * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid): Return
19323 early when linux sentinel value is set.
19324
19325 2018-03-27 Samuel Thibault <samuel.thibault@ens-lyon.org>
19326
19327 * sysdeps/mach/hurd/bits/posix_opt.h (_POSIX_MEMLOCK): Define.
19328
19329 2018-03-27 Andreas Schwab <schwab@suse.de>
19330
19331 [BZ #23005]
19332 * resolv/res_send.c (__res_context_send): Return ENOMEM if
19333 allocation of private copy of nsaddr_list fails.
19334
19335 2018-03-26 Joseph Myers <joseph@codesourcery.com>
19336
19337 [BZ #16552]
19338 * sysdeps/unix/sysv/linux/generic/umount.c: Move to ....
19339 * sysdeps/unix/sysv/linux/umount.c: ... here.
19340 * sysdeps/unix/sysv/linux/arm/umount.c: Remove file.
19341 * sysdeps/unix/sysv/linux/hppa/umount.c: Likewise.
19342 * sysdeps/unix/sysv/linux/ia64/umount.c: Likewise.
19343 * sysdeps/unix/sysv/linux/mips/mips64/umount.c: Likewise.
19344 * sysdeps/unix/sysv/linux/powerpc/powerpc64/umount.c: Likewise.
19345 * sysdeps/unix/sysv/linux/umount.S: Likewise.
19346 * sysdeps/unix/sysv/linux/x86_64/umount.c: Likewise.
19347
19348 2018-03-26 Andreas Schwab <schwab@suse.de>
19349
19350 * elf/elf.h (R_RISCV_BRANCH, R_RISCV_JAL, R_RISCV_CALL)
19351 (R_RISCV_CALL_PLT, R_RISCV_GOT_HI20, R_RISCV_TLS_GOT_HI20)
19352 (R_RISCV_TLS_GD_HI20, R_RISCV_PCREL_HI20, R_RISCV_PCREL_LO12_I)
19353 (R_RISCV_PCREL_LO12_S, R_RISCV_HI20, R_RISCV_LO12_I)
19354 (R_RISCV_LO12_S, R_RISCV_TPREL_HI20, R_RISCV_TPREL_LO12_I)
19355 (R_RISCV_TPREL_LO12_S, R_RISCV_TPREL_ADD, R_RISCV_ADD8)
19356 (R_RISCV_ADD16, R_RISCV_ADD32, R_RISCV_ADD64, R_RISCV_SUB8)
19357 (R_RISCV_SUB16, R_RISCV_SUB32, R_RISCV_SUB64)
19358 (R_RISCV_GNU_VTINHERIT, R_RISCV_GNU_VTENTRY, R_RISCV_ALIGN)
19359 (R_RISCV_RVC_BRANCH, R_RISCV_RVC_JUMP, R_RISCV_RVC_LUI)
19360 (R_RISCV_GPREL_I, R_RISCV_GPREL_S, R_RISCV_TPREL_I)
19361 (R_RISCV_TPREL_S, R_RISCV_RELAX, R_RISCV_SUB6, R_RISCV_SET6)
19362 (R_RISCV_SET8, R_RISCV_SET16, R_RISCV_SET32, R_RISCV_32_PCREL)
19363 (R_RISCV_NUM): Define.
19364
19365 2018-03-25 Samuel Thibault <samuel.thibault@ens-lyon.org>
19366
19367 * include/errno.h [IS_IN(rtld) && !RTLD_PRIVATE_ERRNO]: Do not use the
19368 TLS declaration of errno.
19369 * sysdeps/generic/libc-start.h [!SHARED] (ARCH_SETUP_TLS): Define to
19370 __libc_setup_tls.
19371 * sysdeps/unix/sysv/linux/powerpc/libc-start.h [!SHARED]
19372 (ARCH_SETUP_TLS): Likewise.
19373 * sysdeps/mach/hurd/libc-start.h: New file copied from
19374 sysdeps/generic/libc-start.h, but define ARCH_SETUP_TLS to empty.
19375 * csu/libc-start.c [!SHARED] (LIBC_START_MAIN): Call ARCH_SETUP_TLS
19376 instead of __libc_setup_tls.
19377 * sysdeps/mach/hurd/i386/init-first.c [!SHARED] (init1): Call
19378 __libc_setup_tls before initializing libpthread and running _hurd_init
19379 which starts the signal thread.
19380 * sysdeps/generic/ldsodefs.h [SHARED] (__pthread_initialize_minimal):
19381 Declare function.
19382 * sysdeps/mach/hurd/bits/errno.h: Regenerate.
19383
19384 2018-03-24 H.J. Lu <hongjiu.lu@intel.com>
19385
19386 [BZ #22998]
19387 * elf/Makefile (tests): Add $(tests-execstack-$(have-z-execstack))
19388 after it is defined.
19389
19390 2018-03-23 Andrew Senkevich <andrew.senkevich@intel.com>
19391 Max Horn <max@quendi.de>
19392
19393 [BZ #22644]
19394 CVE-2017-18269
19395 * sysdeps/i386/i686/multiarch/memcpy-sse2-unaligned.S: Fixed
19396 branch conditions.
19397 * string/test-memmove.c (do_test2): New testcase.
19398
19399 2018-03-22 Joseph Myers <joseph@codesourcery.com>
19400
19401 * sysdeps/generic/frame.h: Remove file.
19402 * sysdeps/arm/frame.h: Likewise.
19403 * sysdeps/hppa/frame.h: Likewise.
19404 * sysdeps/generic/sigcontextinfo.h (SIGCONTEXT_EXTRA_ARGS): Remove
19405 macro.
19406 (GET_FRAME): Likewise.
19407 (GET_STACK): Likewise.
19408 (CALL_SIGHANDLER): Likewise.
19409 * sysdeps/mach/hurd/i386/sigcontextinfo.h (SIGCONTEXT_EXTRA_ARGS):
19410 Likewise.
19411 (GET_FRAME): Likewise.
19412 (GET_STACK): Likewise.
19413 (CALL_SIGHANDLER): Likewise.
19414 * sysdeps/unix/sysv/linux/alpha/sigcontextinfo.h
19415 (SIGCONTEXT_EXTRA_ARGS): Likewise.
19416 (GET_FRAME): Likewise.
19417 (GET_STACK): Likewise.
19418 (CALL_SIGHANDLER): Likewise.
19419 * sysdeps/unix/sysv/linux/arm/sigcontextinfo.h
19420 (SIGCONTEXT_EXTRA_ARGS): Likewise.
19421 (GET_FRAME): Likewise.
19422 (GET_STACK): Likewise.
19423 (ADVANCE_STACK_FRAME): Likewise.
19424 (CALL_SIGHANDLER): Likewise.
19425 * sysdeps/unix/sysv/linux/i386/sigcontextinfo.h
19426 (SIGCONTEXT_EXTRA_ARGS): Likewise.
19427 (GET_FRAME): Likewise.
19428 (GET_STACK): Likewise.
19429 (CALL_SIGHANDLER): Likewise.
19430 * sysdeps/unix/sysv/linux/ia64/sigcontextinfo.h
19431 (SIGCONTEXT_EXTRA_ARGS): Likewise.
19432 (GET_FRAME): Likewise.
19433 (GET_STACK): Likewise.
19434 (CALL_SIGHANDLER): Likewise.
19435 * sysdeps/unix/sysv/linux/m68k/sigcontextinfo.h
19436 (SIGCONTEXT_EXTRA_ARGS): Likewise.
19437 (GET_FRAME): Likewise.
19438 (GET_STACK): Likewise.
19439 (CALL_SIGHANDLER): Likewise.
19440 * sysdeps/unix/sysv/linux/microblaze/sigcontextinfo.h
19441 (SIGCONTEXT_EXTRA_ARGS): Likewise.
19442 (GET_FRAME): Likewise.
19443 (GET_STACK): Likewise.
19444 (CALL_SIGHANDLER): Likewise.
19445 * sysdeps/unix/sysv/linux/mips/sigcontextinfo.h
19446 (SIGCONTEXT_EXTRA_ARGS): Likewise.
19447 (GET_FRAME): Likewise.
19448 (GET_STACK): Likewise.
19449 (CALL_SIGHANDLER): Likewise.
19450 * sysdeps/unix/sysv/linux/powerpc/sigcontextinfo.h
19451 (SIGCONTEXT_EXTRA_ARGS): Likewise.
19452 (GET_FRAME): Likewise.
19453 (GET_STACK): Likewise.
19454 (CALL_SIGHANDLER): Likewise.
19455 * sysdeps/unix/sysv/linux/riscv/sigcontextinfo.h
19456 (SIGCONTEXT_EXTRA_ARGS): Likewise.
19457 (GET_FRAME): Likewise.
19458 (GET_STACK): Likewise.
19459 (CALL_SIGHANDLER): Likewise.
19460 * sysdeps/unix/sysv/linux/s390/sigcontextinfo.h
19461 (SIGCONTEXT_EXTRA_ARGS): Likewise.
19462 (GET_FRAME): Likewise.
19463 (GET_STACK): Likewise.
19464 (CALL_SIGHANDLER): Likewise.
19465 * sysdeps/unix/sysv/linux/sh/sigcontextinfo.h
19466 (SIGCONTEXT_EXTRA_ARGS): Likewise.
19467 (GET_FRAME): Likewise.
19468 (GET_STACK): Likewise.
19469 (CALL_SIGHANDLER): Likewise.
19470 * sysdeps/unix/sysv/linux/sparc/sparc32/sigcontextinfo.h
19471 (SIGCONTEXT_EXTRA_ARGS): Likewise.
19472 (FIRST_FRAME_POINTER): Likewise.
19473 (ADVANCE_STACK_FRAME): Likewise.
19474 (GET_STACK): Likewise.
19475 (GET_FRAME): Likewise.
19476 (CALL_SIGHANDLER): Likewise.
19477 * sysdeps/unix/sysv/linux/sparc/sparc64/sigcontextinfo.h
19478 (SIGCONTEXT_EXTRA_ARGS): Likewise.
19479 (ADVANCE_STACK_FRAME): Likewise.
19480 (GET_STACK): Likewise.
19481 (GET_FRAME): Likewise.
19482 (CALL_SIGHANDLER): Likewise.
19483 * sysdeps/unix/sysv/linux/tile/sigcontextinfo.h
19484 (SIGCONTEXT_EXTRA_ARGS): Likewise.
19485 (GET_FRAME): Likewise.
19486 (GET_STACK): Likewise.
19487 (CALL_SIGHANDLER): Likewise.
19488 * sysdeps/unix/sysv/linux/x86_64/sigcontextinfo.h
19489 (SIGCONTEXT_EXTRA_ARGS): Likewise.
19490 (GET_FRAME): Likewise.
19491 (GET_STACK): Likewise.
19492 (CALL_SIGHANDLER): Likewise.
19493
19494 2018-03-21 Joseph Myers <joseph@codesourcery.com>
19495
19496 * sysdeps/x86_64/backtrace.c: Move to ....
19497 * debug/backtrace.c: ... here.
19498 * sysdeps/aarch64/backtrace.c: Remove file.
19499 * sysdeps/alpha/backtrace.c: Likewise.
19500 * sysdeps/hppa/backtrace.c: Likewise.
19501 * sysdeps/ia64/backtrace.c: Likewise.
19502 * sysdeps/mips/backtrace.c: Likewise.
19503 * sysdeps/nios2/backtrace.c: Likewise.
19504 * sysdeps/riscv/backtrace.c: Likewise.
19505 * sysdeps/sh/backtrace.c: Likewise.
19506 * sysdeps/tile/backtrace.c: Likewise.
19507
19508 2018-03-20 Joseph Myers <joseph@codesourcery.com>
19509
19510 [BZ #22987]
19511 * sysdeps/powerpc/bits/mathinline.h (fdim): Remove inline
19512 function.
19513 (fdimf): Likewise.
19514 * sysdeps/sparc/fpu/bits/mathinline.h: Remove file.
19515
19516 [BZ #17343]
19517 * stdlib/random_r.c (__random_r): Use unsigned arithmetic for
19518 possibly overflowing computations.
19519
19520 2018-03-20 Samuel Thibault <samuel.thibault@ens-lyon.org>
19521
19522 * manual/errno.texi (EOWNERDEAD, ENOTRECOVERABLE): Remove errno
19523 values from Linux-specific section now that it is in the GNU section.
19524 * sysdeps/gnu/errlist.c: Regenerate.
19525
19526 2018-03-20 Joseph Myers <joseph@codesourcery.com>
19527
19528 * math/Makefile (libm-narrow-fns): Add sub.
19529 (libm-test-funcs-narrow): Likewise.
19530 * math/Versions (GLIBC_2.28): Add narrowing subtract functions.
19531 * math/bits/mathcalls-narrow.h (sub): Use __MATHCALL_NARROW.
19532 * math/gen-auto-libm-tests.c (test_functions): Add sub.
19533 * math/math-narrow.h (CHECK_NARROW_SUB): New macro.
19534 (NARROW_SUB_ROUND_TO_ODD): Likewise.
19535 (NARROW_SUB_TRIVIAL): Likewise.
19536 * sysdeps/ieee754/float128/float128_private.h (__fsubl): New
19537 macro.
19538 (__dsubl): Likewise.
19539 * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Add fsub and
19540 dsub.
19541 (CFLAGS-nldbl-dsub.c): New variable.
19542 (CFLAGS-nldbl-fsub.c): Likewise.
19543 * sysdeps/ieee754/ldbl-opt/Versions (GLIBC_2.28): Add
19544 __nldbl_dsubl.
19545 * sysdeps/ieee754/ldbl-opt/nldbl-compat.h (__nldbl_dsubl): New
19546 prototype.
19547 * manual/arith.texi (Misc FP Arithmetic): Document fsub, fsubl,
19548 dsubl, fMsubfN, fMsubfNx, fMxsubfN and fMxsubfNx.
19549 * math/auto-libm-test-in: Add tests of sub.
19550 * math/auto-libm-test-out-narrow-sub: New generated file.
19551 * math/libm-test-narrow-sub.inc: New file.
19552 * sysdeps/i386/fpu/s_f32xsubf64.c: Likewise.
19553 * sysdeps/ieee754/dbl-64/s_f32xsubf64.c: Likewise.
19554 * sysdeps/ieee754/dbl-64/s_fsub.c: Likewise.
19555 * sysdeps/ieee754/float128/s_f32subf128.c: Likewise.
19556 * sysdeps/ieee754/float128/s_f64subf128.c: Likewise.
19557 * sysdeps/ieee754/float128/s_f64xsubf128.c: Likewise.
19558 * sysdeps/ieee754/ldbl-128/s_dsubl.c: Likewise.
19559 * sysdeps/ieee754/ldbl-128/s_f64xsubf128.c: Likewise.
19560 * sysdeps/ieee754/ldbl-128/s_fsubl.c: Likewise.
19561 * sysdeps/ieee754/ldbl-128ibm/s_dsubl.c: Likewise.
19562 * sysdeps/ieee754/ldbl-128ibm/s_fsubl.c: Likewise.
19563 * sysdeps/ieee754/ldbl-96/s_dsubl.c: Likewise.
19564 * sysdeps/ieee754/ldbl-96/s_fsubl.c: Likewise.
19565 * sysdeps/ieee754/ldbl-opt/nldbl-dsub.c: Likewise.
19566 * sysdeps/ieee754/ldbl-opt/nldbl-fsub.c: Likewise.
19567 * sysdeps/ieee754/soft-fp/s_dsubl.c: Likewise.
19568 * sysdeps/ieee754/soft-fp/s_fsub.c: Likewise.
19569 * sysdeps/ieee754/soft-fp/s_fsubl.c: Likewise.
19570 * sysdeps/powerpc/fpu/libm-test-ulps: Update.
19571 * sysdeps/mach/hurd/i386/libm.abilist: Likewise.
19572 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
19573 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
19574 * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
19575 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
19576 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
19577 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
19578 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
19579 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
19580 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
19581 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
19582 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
19583 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
19584 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Likewise.
19585 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist: Likewise.
19586 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Likewise.
19587 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Likewise.
19588 * sysdeps/unix/sysv/linux/riscv/rv64/libm.abilist: Likewise.
19589 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
19590 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
19591 * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
19592 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
19593 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
19594 * sysdeps/unix/sysv/linux/tile/tilegx32/libm.abilist: Likewise.
19595 * sysdeps/unix/sysv/linux/tile/tilegx64/libm.abilist: Likewise.
19596 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
19597 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
19598
19599 2018-03-19 Joseph Myers <joseph@codesourcery.com>
19600
19601 [BZ #20079]
19602 * elf/elf.h (SHT_X86_64_UNWIND): New macro.
19603
19604 2018-03-19 Wilco Dijkstra <wdijkstr@arm.com>
19605
19606 * benchtests/bench-timing.h (attribute_hidden): Undefine.
19607
19608 2018-03-18 Richard Braun <rbraun@sceen.net>
19609
19610 * sysdeps/mach/hurd/i386/tls.h (_hurd_tls_init): Use a temporary
19611 thread reference.
19612
19613 2018-03-18 Agustina Arzille <avarzille@riseup.net>
19614
19615 * sysdeps/mach/libc-lock.h (__libc_cleanup_frame): Define structure.
19616 (__libc_cleanup_fct): Define function.
19617 (__libc_cleanup_region_start, __libc_cleanup_region_end,
19618 __libc_cleanup_end): Rewrite implementation using
19619 __attribute__ ((__cleanup__)).
19620 (__libc_cleanup_push, __libc_cleanup_pop): New macros.
19621 * hurd/Makefile (routines): Add hurdlock.
19622 * hurd/Versions (GLIBC_PRIVATE): Added new entry to export the above
19623 interface.
19624 (HURD_CTHREADS_0.3): Remove __libc_getspecific.
19625 * hurd/hurdpid.c: Include <lowlevellock.h>
19626 (_S_msg_proc_newids): Use lll_wait to synchronize.
19627 * hurd/hurdsig.c: (reauth_proc): Use __mutex_lock and __mutex_unlock.
19628 * hurd/setauth.c: Include <hurdlock.h>, use integer for synchronization.
19629 * mach/Makefile (lock-headers): Remove machine-lock.h.
19630 * mach/lock-intern.h: Include <lowlevellock.h> instead of
19631 <machine-lock.h>.
19632 (__spin_lock_t): New type.
19633 (__SPIN_LOCK_INITIALIZER): New macro.
19634 (__spin_lock, __spin_unlock, __spin_try_lock, __spin_lock_locked,
19635 __mutex_init, __mutex_lock_solid, __mutex_unlock_solid, __mutex_lock,
19636 __mutex_unlock, __mutex_trylock): Use lll to implement locks.
19637 * mach/mutex-init.c: Include <lowlevellock.h> instead of <cthreads.h>.
19638 (__mutex_init): Initialize with lll.
19639 * manual/errno.texi (EOWNERDEAD, ENOTRECOVERABLE): New errno values.
19640 * sysdeps/mach/Makefile: Add libmachuser as dependencies for libs
19641 needing lll.
19642 * sysdeps/mach/hurd/bits/errno.h: Regenerate.
19643 * sysdeps/mach/hurd/cthreads.c (__libc_getspecific): Remove function.
19644 * sysdeps/mach/hurd/bits/libc-lock.h: Remove file.
19645 * sysdeps/mach/hurd/setpgid.c: Include <lowlevellock.h>.
19646 (__setpgid): Use lll for synchronization.
19647 * sysdeps/mach/hurd/setsid.c: Likewise with __setsid.
19648 * sysdeps/mach/bits/libc-lock.h: Include <tls.h> and <lowlevellock.h>
19649 instead of <cthreads.h>.
19650 (_IO_lock_inexpensive): New macro
19651 (__libc_lock_recursive_t, __rtld_lock_recursive_t): New structures.
19652 (__libc_lock_self0): New declaration.
19653 (__libc_lock_owner_self): New macro.
19654 (__libc_key_t): Remove type.
19655 (_LIBC_LOCK_INITIALIZER): New macro.
19656 (__libc_lock_define_initialized, __libc_lock_init, __libc_lock_fini,
19657 __libc_lock_fini_recursive, __rtld_lock_fini_recursive,
19658 __libc_lock_lock, __libc_lock_trylock, __libc_lock_unlock,
19659 __libc_lock_define_initialized_recursive,
19660 __rtld_lock_define_initialized_recursive,
19661 __libc_lock_init_recursive, __libc_lock_trylock_recursive,
19662 __libc_lock_lock_recursive, __libc_lock_unlock_recursive,
19663 __rtld_lock_initialize, __rtld_lock_trylock_recursive,
19664 __rtld_lock_lock_recursive, __rtld_lock_unlock_recursive
19665 __libc_once_define, __libc_mutex_unlock): Reimplement with lll.
19666 (__libc_lock_define_recursive, __rtld_lock_define_recursive,
19667 _LIBC_LOCK_RECURSIVE_INITIALIZER, _RTLD_LOCK_RECURSIVE_INITIALIZER):
19668 New macros.
19669 Include <libc-lockP.h> to reimplement libc_key* with pthread_key*.
19670 * hurd/hurdlock.c: New file.
19671 * hurd/hurdlock.h: New file.
19672 * mach/lowlevellock.h: New file
19673
19674 2018-03-18 Samuel Thibault <samuel.thibault@ens-lyon.org>
19675
19676 * sysdeps/mach/hurd/cthreads.c: Include <cthreads.h>.
19677 * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Return ELOOP
19678 when opening a symlink with O_NOFOLLOW.
19679 * hurd/hurdlookup.c (__hurd_file_name_lookup): Do not append '/' to
19680 path when flags contains O_NOFOLLOW.
19681 * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Return ENOTDIR
19682 if flags contains O_DIRECTORY and the result is a directory.
19683 * sysdeps/mach/hurd/i386/init-first.c (init): Also find ELF headers by
19684 oneself when the pointer given in D is nul (as set by ext2fs).
19685 * sysdeps/mach/hurd/mlockall.c: New file.
19686 * sysdeps/mach/hurd/munlockall.c: New file.
19687
19688 2018-03-17 Samuel Thibault <samuel.thibault@ens-lyon.org>
19689
19690 * hurd/hurdsig.c: Include <pthread.h>.
19691 (_hurdsig_init): Call pthread_getattr_np and pthread_attr_getstack to
19692 get the signal thread stack layout.
19693 * hurd/Makefile (headers): Remove threadvar.h.
19694 (inline-headers): Remove threadvar.h.
19695 * hurd/Versions (GLIBC_2.0: Remove __hurd_sigthread_stack_base,
19696 __hurd_sigthread_stack_end, __hurd_sigthread_variables,
19697 __hurd_threadvar_max, __hurd_errno_location.
19698 (HURD_CTHREADS_0.3): Add pthread_getattr_np, pthread_attr_getstack.
19699 * hurd/hurd/signal.h: Do not include <hurd/threadvar.h>.
19700 (_hurd_self_sigstate): Use THREAD_SELF to get _hurd_sigstate.
19701 (_HURD_SIGNAL_H_EXTERN_INLINE): Use THREAD_SELF to get _hurd_sigstate,
19702 unless TLS is not initialized yet, in which case we do not need a
19703 critical section yet anyway.
19704 * hurd/hurd/threadvar.h: Include <tls.h>, do not include
19705 <machine-sp.h>.
19706 (__hurd_sigthread_variables, __hurd_threadvar_max): Remove variables
19707 declarations.
19708 (__hurd_threadvar_index): Remove enum.
19709 (_HURD_THREADVAR_H_EXTERN_INLINE): Remove macro.
19710 (__hurd_threadvar_location_from_sp,__hurd_threadvar_location): Remove
19711 inlines.
19712 (__hurd_reply_port0): New variable declaration.
19713 (__hurd_local_reply_port): New macro.
19714 * hurd/hurdsig.c (__hurd_sigthread_variables): Remove variable.
19715 (interrupted_reply_port_location): Add thread_t parameter. Use it
19716 with THREAD_TCB to access thread-local variables.
19717 (_hurdsig_abort_rpcs): Pass ss->thread to
19718 interrupted_reply_port_location.
19719 (_hurd_internal_post_signal): Likewise.
19720 (_hurdsig_init): Use presence of cthread_fork instead of
19721 __hurd_threadvar_stack_mask to start signal thread by hand.
19722 Remove signal thread threadvar initialization.
19723 * hurd/hurdstartup.c: Do not include <hurd/threadvar.h>
19724 * hurd/sigunwind.c: Include <hurd/threadvar.h>
19725 (_hurdsig_longjmp_from_handler): Use __hurd_local_reply_port instead
19726 of threadvar.
19727 * sysdeps/mach/hurd/Versions (libc.GLIBC_PRIVATE): Add
19728 __libc_lock_self0.
19729 (ld.GLIBC_2.0): Remove __hurd_sigthread_stack_base,
19730 __hurd_sigthread_stack_end, __hurd_sigthread_variables.
19731 (ld.GLIBC_PRIVATE): Add __libc_lock_self0.
19732 * sysdeps/mach/hurd/cthreads.c: Add __libc_lock_self0.
19733 * sysdeps/mach/hurd/dl-sysdep.c (errno, __hurd_sigthread_stack_base,
19734 __hurd_sigthread_stack_end, __hurd_sigthread_variables, threadvars,
19735 __hurd_threadvar_stack_offset, __hurd_threadvar_stack_mask): Do not
19736 define variables.
19737 * sysdeps/mach/hurd/errno-loc.c: Do not include <errno.h> and
19738 <hurd/threadvar.h>.
19739 [IS_IN(rtld)] (rtld_errno): New variable.
19740 [IS_IN(rtld)] (__errno_location): New weak function.
19741 [!IS_IN(rtld)]: Include "../../../csu/errno-loc.c".
19742 * sysdeps/mach/hurd/errno.c: Remove file.
19743 * sysdeps/mach/hurd/fork.c: Include <hurd/threadvar.h>
19744 (__fork): Remove THREADVAR_SPACE macro and its use.
19745 * sysdeps/mach/hurd/i386/init-first.c (__hurd_threadvar_max): Remove
19746 variable.
19747 (init): Do not initialize threadvar.
19748 * sysdeps/mach/hurd/i386/libc.abilist (__hurd_threadvar_max): Remove
19749 symbol.
19750 * sysdeps/mach/hurd/i386/sigreturn.c (__sigreturn): Use
19751 __hurd_local_reply_port instead of threadvar.
19752 * sysdeps/mach/hurd/i386/tls.h (tcbhead_t): Add reply_port and
19753 _hurd_sigstate fields.
19754 (HURD_DESC_TLS, __LIBC_NO_TLS, THREAD_TCB): New macro.
19755 * sysdeps/mach/hurd/i386/trampoline.c: Remove outdated comment.
19756 * sysdeps/mach/hurd/libc-lock.h: Do not include <hurd/threadvar.h>.
19757 (__libc_lock_owner_self): Use &__libc_lock_self0 and THREAD_SELF
19758 instead of threadvar.
19759 * sysdeps/mach/hurd/libc-tsd.h: Remove file.
19760 * sysdeps/mach/hurd/mig-reply.c (GETPORT, reply_port): Remove macros.
19761 (use_threadvar, global_reply_port): Remove variables.
19762 (__hurd_reply_port0): New variable.
19763 (__mig_get_reply_port): Use __hurd_local_reply_port and
19764 __hurd_reply_port0 instead of threadvar.
19765 (__mig_dealloc_reply_port): Likewise.
19766 (__mig_init): Do not initialize threadvar.
19767 * sysdeps/mach/hurd/profil.c: Fix comment.
19768 * hurd/Versions (HURD_CTHREADS_0.3): Rename weak refs cthread_fork,
19769 cthread_detach, pthread_getattr_np, pthread_attr_getstack,
19770 cthread_keycreate, cthread_getspecific, cthread_setspecific to
19771 __cthread_fork, __cthread_detach, __pthread_getattr_np,
19772 __pthread_attr_getstack, __cthread_keycreate, __cthread_getspecific,
19773 __cthread_setspecific.
19774 * hurd/hurdsig.c (_hurdsig_init): Use __cthread_fork,
19775 __cthread_detach, __pthread_getattr_np, __pthread_attr_getstack,
19776 __cthread_t instead of cthread_fork, cthread_detach,
19777 pthread_getattr_np, pthread_attr_getstack.
19778 * sysdeps/mach/hurd/cthreads.c (cthread_keycreate): Rename to
19779 __cthread_keycreate.
19780 (cthread_getspecific): Rename to __cthread_getspecific.
19781 (cthread_setspecific): Rename to __cthread_setspecific.
19782 (__libc_getspecific): Use __cthread_getspecific instead of
19783 cthread_getspecific.
19784 * sysdeps/mach/hurd/libc-lock.h (__libc_key_create): Use
19785 __cthread_keycreate instead of cthread_keycreate.
19786 (__libc_setspecific): Use __cthread_setspecific instead of
19787 cthread_setspecific.
19788 * sysdeps/mach/libc-lock.h (__libc_key_create, __libc_setspecific):
19789 Likewise.
19790 * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Always include
19791 <dl-sysdep.h>. Test for value of RTLD_PRIVATE_ERRNO instead of
19792 testing whether it is defined.
19793
19794 2018-03-16 Samuel Thibault <samuel.thibault@ens-lyon.org>
19795
19796 * sysdeps/generic/thread_state.h (MACHINE_NEW_THREAD_STATE_FLAVOR):
19797 Define macro.
19798 * sysdeps/mach/thread_state.h (MACHINE_THREAD_STATE_FIX_NEW): New macro.
19799 * sysdeps/mach/i386/thread_state.h
19800 (MACHINE_NEW_THREAD_STATE_FLAVOR): New macro, defined to
19801 i386_THREAD_STATE.
19802 (MACHINE_THREAD_STATE_FLAVOR): Define to i386_REGS_SEGS_STATE instead of
19803 i386_THREAD_STATE.
19804 (MACHINE_THREAD_STATE_FIX_NEW): New macro, reads segments.
19805
19806 * sysdeps/mach/hurd/i386/trampoline.c (_hurd_setup_sighandler): Use
19807 i386_REGS_SEGS_STATE instead of i386_THREAD_STATE.
19808
19809 * sysdeps/mach/hurd/i386/tls.h (TCB_ALIGNMENT, HURD_SEL_LDT): New
19810 macros.
19811 (_hurd_tls_fork): Add original thread parameter, Duplicate existing LDT
19812 descriptor instead of creating a new one.
19813 (_hurd_tls_new): New function, creates a new descriptor and updates tcb.
19814
19815 * mach/setup-thread.c: Include <ldsodefs.h>.
19816 (__mach_setup_thread): Call _dl_allocate_tls, pass
19817 MACHINE_NEW_THREAD_STATE_FLAVOR to __thread_set_state instead of
19818 MACHINE_THREAD_STATE_FLAVOR, before getting
19819 MACHINE_THREAD_STATE_FLAVOR, calling _hurd_tls_new, and setting
19820 MACHINE_THREAD_STATE_FLAVOR with the result.
19821 * hurd/hurdfault.c (_hurdsig_fault_init): Call
19822 MACHINE_THREAD_STATE_FIX_NEW.
19823 * sysdeps/mach/hurd/fork.c (__fork): Call _hurd_tls_fork for sigthread
19824 too. Add original thread parameter.
19825
19826 2018-03-16 Joseph Myers <joseph@codesourcery.com>
19827
19828 * sysdeps/x86/fpu/bits/mathinline.h [__USE_MISC] (__finite):
19829 Remove inline function.
19830
19831 * sysdeps/i386/fpu/libm-test-ulps: Update.
19832 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
19833
19834 2018-03-16 Wilco Dijkstra <wdijkstr@arm.com>
19835
19836 * sysdeps/m68k/m680x0/fpu/mathimpl.h (__ieee754_sqrt): Revert previous
19837 commit.
19838
19839 2018-03-15 Joseph Myers <joseph@codesourcery.com>
19840
19841 * sysdeps/x86/fpu/bits/mathinline.h [__FAST_MATH__]
19842 (__sincos_code): Remove define and undefine.
19843 [__FAST_MATH__] (__sincos): Remove inline function.
19844 [__FAST_MATH__] (__sincosf): Remove inline function.
19845 [__FAST_MATH__] (__sincosl): Remove inline function.
19846 (__atan2l): Remove inline functions.
19847 [!__GNUC_PREREQ (3, 4)] (__atan2_code): Remove macro.
19848 [!__GNUC_PREREQ (3, 4) && __FAST_MATH__] (atan2): Remove inline
19849 function.
19850 (floor): Remove inline function.
19851 (ceil): Likewise.
19852 [__FAST_MATH__] (__ldexp_code): Remove macro.
19853 [__FAST_MATH__] (ldexp): Remove inline function.
19854 [__FAST_MATH__ && __USE_ISOC99] (ldexpf): Likewise.
19855 [__FAST_MATH__ && __USE_ISOC99] (ldexpl): Likewise.
19856 [__FAST_MATH__ && __USE_ISOC99] (rint): Likewise.
19857 [__USE_ISOC99] (__lrint_code): Remove macro.
19858 [__USE_ISOC99] (__llrint_code): Likewise.
19859 [__USE_ISOC99] (lrintf): Remove inline function.
19860 [__USE_ISOC99] (lrint): Likewise.
19861 [__USE_ISOC99] (lrintl): Likewise.
19862 [__USE_ISOC99] (llrint): Likewise.
19863 [__USE_ISOC99] (llrintf): Likewise.
19864 [__USE_ISOC99] (llrintl): Likewise.
19865
19866 2018-03-15 Wilco Dijkstra <wdijkstr@arm.com>
19867
19868 * sysdeps/aarch64/fpu/math_private.h (__ieee754_sqrt): Remove.
19869 (__ieee754_sqrtf): Remove.
19870 * sysdeps/alpha/fpu/math_private.h (__ieee754_sqrt): Remove.
19871 (__ieee754_sqrtf): Remove.
19872 * sysdeps/generic/math-type-macros.h (M_SQRT): Use sqrt.
19873 * sysdeps/m68k/m680x0/fpu/mathimpl.h (__ieee754_sqrt): Remove.
19874 * sysdeps/powerpc/fpu/math_private.h (__ieee754_sqrt): Remove.
19875 (__ieee754_sqrtf): Remove.
19876 * sysdeps/s390/fpu/bits/mathinline.h: Remove file.
19877 * sysdeps/sparc/fpu/bits/mathinline.h (sqrt) Remove.
19878 (sqrtf): Remove.
19879 (sqrtl): Remove.
19880 (__ieee754_sqrt): Remove.
19881 (__ieee754_sqrtf): Remove.
19882 (__ieee754_sqrtl): Remove.
19883 * sysdeps/m68k/m680x0/fpu/mathimpl.h (__ieee754_sqrt): Remove.
19884 * sysdeps/x86/fpu/math_private.h (__ieee754_sqrt): Remove.
19885 * sysdeps/x86_64/fpu/math_private.h (__ieee754_sqrt): Remove.
19886 (__ieee754_sqrtf): Remove.
19887 (__ieee754_sqrtl): Remove.
19888
19889 2018-03-15 Wilco Dijkstra <wdijkstr@arm.com>
19890
19891 * sysdeps/ieee754/dbl-64/e_acosh.c (__ieee754_acosh): Use sqrt.
19892 * sysdeps/ieee754/dbl-64/e_gamma_r.c (gamma_positive): Likewise.
19893 * sysdeps/ieee754/dbl-64/e_hypot.c (__ieee754_hypot): Likewise.
19894 * sysdeps/ieee754/dbl-64/e_j0.c (__ieee754_j0): Likewise.
19895 * sysdeps/ieee754/dbl-64/e_j1.c (__ieee754_j1): Likewise.
19896 * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_jn): Likewise.
19897 * sysdeps/ieee754/dbl-64/s_asinh.c (__asinh): Likewise.
19898 * sysdeps/ieee754/dbl-64/wordsize-64/e_acosh.c (__ieee754_acosh):
19899 Likewise.
19900 * sysdeps/ieee754/flt-32/e_acosf.c (__ieee754_acosf): Likewise.
19901 * sysdeps/ieee754/flt-32/e_acoshf.c (__ieee754_acoshf): Likewise.
19902 * sysdeps/ieee754/flt-32/e_asinf.c (__ieee754_asinf): Likewise.
19903 * sysdeps/ieee754/flt-32/e_gammaf_r.c (gammaf_positive): Likewise.
19904 * sysdeps/ieee754/flt-32/e_hypotf.c (__ieee754_hypotf): Likewise.
19905 * sysdeps/ieee754/flt-32/e_j0f.c (__ieee754_j0f): Likewise.
19906 * sysdeps/ieee754/flt-32/e_j1f.c (__ieee754_j1f): Likewise.
19907 * sysdeps/ieee754/flt-32/e_powf.c (__ieee754_powf): Likewise.
19908 * sysdeps/ieee754/flt-32/s_asinhf.c (__asinhf): Likewise.
19909 * sysdeps/ieee754/ldbl-128/e_acoshl.c (__ieee754_acoshl): Use sqrtl.
19910 * sysdeps/ieee754/ldbl-128/e_acosl.c (__ieee754_acosl): Likewise.
19911 * sysdeps/ieee754/ldbl-128/e_asinl.c (__ieee754_asinl): Likewise.
19912 * sysdeps/ieee754/ldbl-128/e_gammal_r.c (gammal_positive): Likewise.
19913 * sysdeps/ieee754/ldbl-128/e_hypotl.c (__ieee754_hypotl): Likewise.
19914 * sysdeps/ieee754/ldbl-128/e_j0l.c (__ieee754_j0l): Likewise.
19915 * sysdeps/ieee754/ldbl-128/e_j1l.c (__ieee754_j1l): Likewise.
19916 * sysdeps/ieee754/ldbl-128/e_jnl.c (__ieee754_jnl): Likewise.
19917 * sysdeps/ieee754/ldbl-128/e_powl.c (__ieee754_powl): Likewise.
19918 * sysdeps/ieee754/ldbl-128/s_asinhl.c (__ieee754_asinhl): Likewise.
19919 * sysdeps/ieee754/ldbl-128ibm/e_acoshl.c (__ieee754_acoshl): Likewise.
19920 * sysdeps/ieee754/ldbl-128ibm/e_acosl.c (__ieee754_acosl): Likewise.
19921 * sysdeps/ieee754/ldbl-128ibm/e_asinl.c (__ieee754_asinl): Likewise.
19922 * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (gammal_positive): Likewise.
19923 * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c (__ieee754_hypotl): Likewise.
19924 * sysdeps/ieee754/ldbl-128ibm/e_j0l.c (__ieee754_j0l): Likewise.
19925 * sysdeps/ieee754/ldbl-128ibm/e_j1l.c (__ieee754_j1l): Likewise
19926 * sysdeps/ieee754/ldbl-128ibm/e_jnl.c (__ieee754_jnl): Likewise.
19927 * sysdeps/ieee754/ldbl-128ibm/e_powl.c (__ieee754_powl): Likewise.
19928 * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c (__ieee754_asinhl): Likewise.
19929 * sysdeps/ieee754/ldbl-96/e_acoshl.c (__ieee754_acoshl): Use sqrtl.
19930 * sysdeps/ieee754/ldbl-96/e_asinl.c (__ieee754_asinl): Likewise.
19931 * sysdeps/ieee754/ldbl-96/e_gammal_r.c (gammal_positive): Likewise.
19932 * sysdeps/ieee754/ldbl-96/e_hypotl.c (__ieee754_hypotl): Likewise.
19933 * sysdeps/ieee754/ldbl-96/e_j0l.c (__ieee754_j0l): Likewise.
19934 * sysdeps/ieee754/ldbl-96/e_j1l.c (__ieee754_j1l): Likewise.
19935 * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_jnl): Likewise.
19936 * sysdeps/ieee754/ldbl-96/s_asinhl.c (__ieee754_asinhl): Likewise.
19937 * sysdeps/m68k/m680x0/fpu/e_pow.c (__ieee754_pow): Likewise.
19938 * sysdeps/powerpc/fpu/e_hypot.c (__ieee754_hypot): Likewise.
19939 * sysdeps/powerpc/fpu/e_hypotf.c (__ieee754_hypotf): Likewise.
19940
19941 2018-03-15 Wilco Dijkstra <wdijkstr@arm.com>
19942
19943 * include/math.h (sqrt): Declare with asm redirect.
19944 (sqrtf): Likewise.
19945 (sqrtl): Likewise.
19946 (sqrtf128): Likewise.
19947 * Makeconfig: Add -fno-math-errno for libc/libm, but build testsuite,
19948 nonlib and libnldbl with -fmath-errno.
19949 * math/w_sqrt_compat.c: Define NO_MATH_REDIRECT.
19950 * math/w_sqrt_template.c: Likewise.
19951 * math/w_sqrtf_compat.c: Likewise.
19952 * math/w_sqrtl_compat.c: Likewise.
19953 * sysdeps/i386/fpu/w_sqrt.c: Likewise.
19954 * sysdeps/i386/fpu/w_sqrt_compat.c: Likewise.
19955 * sysdeps/generic/math-type-macros-float128.h: Remove math.h and
19956 complex.h.
19957
19958 2018-03-15 Wilco Dijkstra <wdijkstr@arm.com>
19959
19960 * benchtests/Makefile: Define _ISOMAC.
19961 * benchtests/bench-strcoll.c: Add missing sys/stat.h include.
19962 * benchtests/bench-string.h: Define inhibit_loop_to_libcall macro.
19963 * benchtests/bench-strstr.c: Define empty libc_hidden_builtin_def.
19964 * benchtests/bench-strtok.c (oldstrtok): Use rawmemchr.
19965 * benchtests/bench-timing.h: Define attribute_hidden.
19966
19967 2018-03-15 Siddhesh Poyarekar <siddhesh@sourceware.org>
19968
19969 * sysdeps/aarch64/strncmp.S (strncmp): Use lsr instead of
19970 mov + lsr.
19971
19972 2018-03-15 Rafał Lużyński <digitalfreak@lingonborough.com>
19973
19974 [BZ #22963]
19975 * localedata/locales/cs_CZ (mon): Rename to...
19976 (alt_mon): This.
19977 (mon): Import from CLDR (genitive case).
19978
19979 2018-03-15 Rafał Lużyński <digitalfreak@lingonborough.com>
19980
19981 [BZ #22937]
19982 * localedata/locales/el_CY (abmon): Rename to...
19983 (ab_alt_mon): This.
19984 (abmon): Import from CLDR (abbreviated genitive case).
19985 * localedata/locales/el_GR (abmon): Rename to...
19986 (ab_alt_mon): This.
19987 (abmon): Import from CLDR (abbreviated genitive case).
19988
19989 2018-03-15 Rafał Lużyński <digitalfreak@lingonborough.com>
19990
19991 [BZ #22932]
19992 * localedata/locales/lt_LT (abmon): Synchronize with CLDR.
19993
19994 2018-03-15 Robert Buj <robert.buj@gmail.com>
19995
19996 [BZ #22848]
19997 * localedata/locales/ca_ES (abmon): Rename to...
19998 (ab_alt_mon): This, then synchronize with CLDR (nominative case).
19999 (mon): Rename to...
20000 (alt_mon): This.
20001 (abmon): Import from CLDR (genitive case, month names preceded by
20002 "de" or "d’").
20003 (mon): Likewise.
20004 (abday): Synchronize with CLDR.
20005 (d_t_fmt): Likewise.
20006 (d_fmt): Likewise.
20007 (am_pm): Likewise.
20008
20009 (LC_TIME): Improve indentation.
20010 (LC_TELEPHONE): Likewise.
20011 (LC_NAME): Likewise.
20012 (LC_ADDRESS): Likewise.
20013
20014 2018-03-14 Joseph Myers <joseph@codesourcery.com>
20015
20016 * sysdeps/x86/fpu/bits/mathinline.h [!__GNUC_PREREQ (3, 4)]
20017 (lrintf): Remove definitions used only with old GCC.
20018 [!__GNUC_PREREQ (3, 4)] (lrint): Likewise.
20019 [!__GNUC_PREREQ (3, 4)] (llrintf): Likewise.
20020 [!__GNUC_PREREQ (3, 4)] (llrint): Likewise.
20021 [!__GNUC_PREREQ (3, 4)] (fmaxf): Likewise.
20022 [!__GNUC_PREREQ (3, 4)] (fmax): Likewise.
20023 [!__GNUC_PREREQ (3, 4)] (fminf): Likewise.
20024 [!__GNUC_PREREQ (3, 4)] (fmin): Likewise.
20025 [!__GNUC_PREREQ (3, 4)] (rint): Likewise.
20026 [!__GNUC_PREREQ (3, 4)] (rintf): Likewise.
20027 [!__GNUC_PREREQ (3, 4)] (nearbyint): Likewise.
20028 [!__GNUC_PREREQ (3, 4)] (nearbyintf): Likewise.
20029 [!__GNUC_PREREQ (3, 4)] (ceil): Likewise.
20030 [!__GNUC_PREREQ (3, 4)] (ceilf): Likewise.
20031 [!__GNUC_PREREQ (3, 4)] (floor): Likewise.
20032 [!__GNUC_PREREQ (3, 4)] (floorf): Likewise.
20033 [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (tan): Likewise.
20034 [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (fmod): Likewise.
20035 [__FAST_MATH__ && !__GNUC_PREREQ (3, 4)] (sin): Likewise.
20036 [__FAST_MATH__ && !__GNUC_PREREQ (3, 4)] (cos): Likewise.
20037 [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (log10): Likewise.
20038 [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (asin): Likewise.
20039 [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (acos): Likewise.
20040 [__FAST_MATH__ && !__GNUC_PREREQ (3, 4)] (atan): Likewise.
20041 [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (log1p): Likewise.
20042 [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (logb): Likewise.
20043 [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (log2): Likewise.
20044 [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (drem): Likewise.
20045 [__FAST_MATH__] (__M_SQRT2): Remove macro.
20046
20047 2018-03-14 Siddhesh Poyarekar <siddhesh@sourceware.org>
20048
20049 * sysdeps/aarch64/strncmp.S (strncmp): Use a separate shift
20050 instruction to unbreak builds with binutils 2.26 and older.
20051
20052 2018-03-13 Siddhesh Poyarekar <siddhesh@sourceware.org>
20053
20054 * sysdeps/aarch64/strncmp.S (count): New macro.
20055 (strncmp): Store misaligned length in SRC1 in COUNT.
20056 (mutual_align): Adjust.
20057 (misaligned8): Load dword at a time when it is safe.
20058
20059 2018-03-12 Zack Weinberg <zackw@panix.com>
20060
20061 [BZ #1190]
20062 [BZ #19476]
20063 * libio/fileops.c (_IO_new_file_underflow): Return EOF immediately
20064 if the _IO_EOF_SEEN bit is already set; update commentary.
20065 * libio/oldfileops.c (_IO_old_file_underflow): Likewise.
20066 * libio/wfileops.c (_IO_wfile_underflow): Likewise.
20067
20068 * support/support_openpty.c, support/tty.h: New files.
20069 * support/Makefile (libsupport-routines): Add support_openpty.
20070
20071 * libio/tst-fgetc-after-eof.c, wcsmbs/test-fgetwc-after-eof.c:
20072 New test cases.
20073 * libio/Makefile (tests): Add tst-fgetc-after-eof.
20074 * wcsmbs/Makefile (tests): Add tst-fgetwc-after-eof.
20075
20076 2018-03-12 Dmitry V. Levin <ldv@altlinux.org>
20077
20078 * po/pt_BR.po: Update translations.
20079
20080 2018-03-12 David Michael <fedora.dm0@gmail.com>
20081
20082 * sysdeps/mach/hurd/reboot.c: Include <hurd/paths.h>
20083 (reboot): Lookup _SERVERS_STARTUP instead of calling proc_getmsgport to
20084 get a port to the startup server.
20085
20086 2018-03-11 Zack Weinberg <zackw@panix.com>
20087
20088 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c: Include math.h
20089 before nldbl-compat.h.
20090
20091 2018-03-10 Zack Weinberg <zackw@panix.com>
20092
20093 * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Don't include
20094 math.h or math_private.h.
20095
20096 * sysdeps/alpha/fpu/s_isnan.c
20097 * sysdeps/ieee754/ldbl-128ibm/s_ceill.c
20098 * sysdeps/ieee754/ldbl-128ibm/s_floorl.c
20099 * sysdeps/ieee754/ldbl-128ibm/s_llrintl.c
20100 * sysdeps/ieee754/ldbl-128ibm/s_llroundl.c
20101 * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c
20102 * sysdeps/ieee754/ldbl-128ibm/s_lroundl.c
20103 * sysdeps/ieee754/ldbl-128ibm/s_rintl.c
20104 * sysdeps/ieee754/ldbl-128ibm/s_roundl.c
20105 * sysdeps/ieee754/ldbl-128ibm/s_truncl.c
20106 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/e_hypot.c
20107 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/e_hypotf.c:
20108 * sysdeps/powerpc/powerpc64/fpu/multiarch/e_expf.c
20109 * sysdeps/powerpc/powerpc64/fpu/multiarch/e_hypot.c
20110 * sysdeps/powerpc/powerpc64/fpu/multiarch/e_hypotf.c:
20111 Include math_private.h.
20112
20113 * sysdeps/ieee754/ldbl-64-128/s_finitel.c
20114 * sysdeps/ieee754/ldbl-64-128/s_fpclassifyl.c
20115 * sysdeps/ieee754/ldbl-64-128/s_isinfl.c
20116 * sysdeps/ieee754/ldbl-64-128/s_isnanl.c
20117 * sysdeps/ieee754/ldbl-64-128/s_signbitl.c
20118 * sysdeps/powerpc/power7/fpu/s_logb.c:
20119 Include math.h and math_private.h.
20120
20121 * sysdeps/unix/sysv/linux/alpha/clone.S (__clone): Wrap manual
20122 uses of $at in .set noat / .set at.
20123
20124 2018-03-10 H.J. Lu <hongjiu.lu@intel.com>
20125
20126 * include/setjmp.h (__libc_longjmp): Remove libc_hidden_proto.
20127 * setjmp/longjmp.c (__libc_longjmp): Remove libc_hidden_def.
20128 * sysdeps/s390/longjmp.c (__libc_longjmp): Likewise.
20129 * sysdeps/unix/sysv/linux/sparc/sparc64/longjmp.S (__libc_longjmp):
20130 Likewise.
20131
20132 2018-03-09 Florian Weimer <fweimer@redhat.com>
20133
20134 * malloc/malloc.c (prev_size, set_prev_size, prev_chunk): Fix typo
20135 in comment.
20136
20137 2018-03-09 Aurelien Jarno <aurelien@aurel32.net>
20138
20139 [BZ #22919]
20140 * sysdeps/unix/sysv/linux/sparc/sparc32/setcontext.S (__startcontext):
20141 Add nop before __startcontext, add explaining comments.
20142
20143 2018-03-07 Adhemerval Zanella <adhemerval.zanella@linaro.org>
20144
20145 [BZ #22926]
20146 * sysdeps/powerpc/powerpc32/sysdep.h (ABORT_TRANSACTION_IMPL): Define
20147 empty for __SPE__.
20148 * sysdeps/powerpc/sysdep.h (ABORT_TRANSACTION): Likewise.
20149 * sysdeps/unix/sysv/linux/powerpc/elision-lock.c (__lll_lock_elision):
20150 Do not build hardware transactional code for __SPE__.
20151 * sysdeps/unix/sysv/linux/powerpc/elision-trylock.c
20152 (__lll_trylock_elision): Likewise.
20153 * sysdeps/unix/sysv/linux/powerpc/elision-unlock.c
20154 (__lll_unlock_elision): Likewise.
20155
20156 * sysdeps/nptl/fork.c (ARCH_FORK): Replace by arch_fork.
20157 * sysdeps/unix/sysv/linux/alpha/arch-fork.h: Remove file.
20158 * sysdeps/unix/sysv/linux/riscv/arch-fork.h: Likewise.
20159 * sysdeps/unix/sysv/linux/aarch64/arch-fork.h: Likewise.
20160 * sysdeps/unix/sysv/linux/arm/arch-fork.h: Likewise.
20161 * sysdeps/unix/sysv/linux/hppa/arch-fork.h: Likewise.
20162 * sysdeps/unix/sysv/linux/i386/arch-fork.h: Likewise.
20163 * sysdeps/unix/sysv/linux/ia64/arch-fork.h: Likewise.
20164 * sysdeps/unix/sysv/linux/m68k/arch-fork.h: Likewise.
20165 * sysdeps/unix/sysv/linux/microblaze/arch-fork.h: Likewise.
20166 * sysdeps/unix/sysv/linux/mips/arch-fork.h: Likewise.
20167 * sysdeps/unix/sysv/linux/nios2/arch-fork.h: Likewise.
20168 * sysdeps/unix/sysv/linux/powerpc/arch-fork.h: Likewise.
20169 * sysdeps/unix/sysv/linux/s390/arch-fork.h: Likewise.
20170 * sysdeps/unix/sysv/linux/sh/arch-fork.h: Likewise.
20171 * sysdeps/unix/sysv/linux/sparc/arch-fork.h: Likewise.
20172 * sysdeps/unix/sysv/linux/tile/arch-fork.h: Likewise.
20173 * sysdeps/unix/sysv/linux/x86_64/arch-fork.h: Likewise.
20174 * sysdeps/unix/sysv/linux/arch-fork.h (arch_fork): New function.
20175 * sysdeps/unix/sysv/linux/aarch64/kernel-features.h: New file.
20176 * sysdeps/unix/sysv/linux/riscv/kernel-features.h: Likewise.
20177 * sysdeps/unix/sysv/linux/arm/kernel-features.h
20178 (__ASSUME_CLONE_BACKWARDS): Define.
20179 * sysdeps/unix/sysv/linux/createthread.c (ARCH_CLONE): Define to
20180 __clone2 if __NR_clone2 is defined.
20181 * sysdeps/unix/sysv/linux/hppa/kernel-features.h
20182 (__ASSUME_CLONE_BACKWARDS): Likewise.
20183 * sysdeps/unix/sysv/linux/i386/kernel-features.h
20184 (__ASSUME_CLONE_BACKWARDS): Likewise.
20185 * sysdeps/unix/sysv/linux/ia64/kernel-features.h
20186 (__ASSUME_CLONE2): Likewise.
20187 * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
20188 (__ASSUME_CLONE_BACKWARDS3): Likewise.
20189 * sysdeps/unix/sysv/linux/kernel-features.h: Document possible clone
20190 variants and the define architecture can use.
20191 (__ASSUME_CLONE_DEFAULT): Define as default.
20192 * sysdeps/unix/sysv/linux/mips/kernel-features.h
20193 (__ASSUME_CLONE_BACKWARDS): Likewise.
20194 * sysdeps/unix/sysv/linux/powerpc/kernel-features.h
20195 (__ASSUME_CLONE_BACKWARDS): Likewise.
20196 * sysdeps/unix/sysv/linux/s390/kernel-features.h
20197 (__ASSUME_CLONE_BACKWARDS2): Likewise.
20198
20199 2018-03-06 Siddhesh Poyarekar <siddhesh@sourceware.org>
20200
20201 * sysdeps/aarch64/memcmp.S (more16): Fix loop16 branch target.
20202
20203 * sysdeps/aarch64/memcmp.S: Widen comparison to 16 bytes at a
20204 time.
20205
20206 * benchtests/bench-strncmp.c (test_main): Remove 0 length tests.
20207 (do_test_limit): Likewise.
20208
20209 * benchtests/bench-strncmp.c (do_test_limit): Reallocate buffers
20210 for every implementation.
20211 (do_test): Likewise.
20212
20213 * benchtests/bench-strncmp.c: Convert output to json.
20214
20215 2018-03-06 Samuel Thibault <samuel.thibault@ens-lyon.org>
20216
20217 * io/futimens.c: Add missing start-of-file descriptive comment.
20218 * io/utime.c: Likewise.
20219 * misc/futimesat.c: Likewise.
20220 * misc/utimes.c: Likewise.
20221 * sysdeps/mach/hurd/futimesat.c: Likewise.
20222 * sysdeps/mach/hurd/utimes.c: Likewise.
20223 * sysdeps/posix/utime.c: Likewise.
20224 * sysdeps/posix/utimes.c: Likewise.
20225 * sysdeps/unix/sysv/linux/futimesat.c: Likewise.
20226 * sysdeps/unix/sysv/linux/generic/futimesat.c: Likewise.
20227 * sysdeps/unix/sysv/linux/generic/utimes.c: Likewise.
20228 * sysdeps/unix/sysv/linux/utimes.c: Likewise.
20229
20230 2018-03-05 Samuel Thibault <samuel.thibault@ens-lyon.org>
20231
20232 * sysdeps/mach/hurd/utime-helper.c (hurd_futimens): Rename function to
20233 hurd_futimes.
20234 * sysdeps/mach/hurd/utimes.c (__utimes): Update call accordingly.
20235 * sysdeps/mach/hurd/lutimes.c (__lutimes): Likewise.
20236 * sysdeps/mach/hurd/futimens.c: Include "utime-helper.c".
20237 (__futimens): Move implementation to...
20238 * sysdeps/mach/hurd/utime-helper.c (utime_ts_from_tspec,
20239 utime_tvalue_from_tspec): ... new helper functions.
20240 (hurd_futimens): New function.
20241 * sysdeps/mach/hurd/futimesat.c: New file.
20242 * sysdeps/mach/hurd/utimensat.c: New file.
20243
20244 2018-03-05 Flávio Cruz <flaviocruz@gmail.com>
20245
20246 * sysdeps/mach/hurd/bits/stat.h [__USE_ATFILE] (UTIME_NOW,
20247 UTIME_OMIT): New macros.
20248 * sysdeps/mach/hurd/futimens.c (__futimens): Try to use __file_utimens
20249 before reverting to converting time spec to time value and calling
20250 __file_utimes.
20251 * sysdeps/mach/hurd/utime-helper.c: New file.
20252 * sysdeps/mach/hurd/futimes.c: Include "utime-helper.c".
20253 (__futimes): Try to use utime_ts_from_tval and __file_utimens before
20254 reverting to utime_tvalue_from_tval and __file_utimes.
20255 * sysdeps/mach/hurd/lutimes.c: Include "utime-helper.c".
20256 (__lutimes): Just call hurd_futimens after lookup.
20257 * sysdeps/mach/hurd/utimes.c: Likewise.
20258
20259 2018-03-05 Samuel Thibault <samuel.thibault@ens-lyon.org>
20260
20261 * bits/sigaction.h: Add include guard.
20262 * sysdeps/unix/sysv/linux/alpha/bits/sigaction.h: Likewise.
20263 * sysdeps/unix/sysv/linux/bits/sigaction.h: Likewise.
20264 * sysdeps/unix/sysv/linux/hppa/bits/sigaction.h: Likewise.
20265 * sysdeps/unix/sysv/linux/ia64/bits/sigaction.h: Likewise.
20266 * sysdeps/unix/sysv/linux/mips/bits/sigaction.h: Likewise.
20267 * sysdeps/unix/sysv/linux/s390/bits/sigaction.h: Likewise.
20268 * sysdeps/unix/sysv/linux/sparc/bits/sigaction.h: Likewise.
20269 * sysdeps/unix/sysv/linux/tile/bits/sigaction.h: Likewise.
20270 * hurd/hurd/signal.h: Include <bits/sigaction.h>.
20271
20272 2018-03-05 Joseph Myers <joseph@codesourcery.com>
20273
20274 * iconv/loop.c (UNICODE_TAG_HANDLER): Disable
20275 -Wmaybe-uninitialized for -Os.
20276 * sysdeps/s390/multiarch/8bit-generic.c (BODY): Add comment about
20277 this disabling.
20278
20279 2018-03-03 Adhemerval Zanella <adhemerval.zanella@linaro.org>
20280
20281 * bits/dirent.h (__INO_T_MATCHES_INO64_T): Define regardless whether
20282 __INO_T_MATCHES_INO64_T is defined.
20283 * sysdeps/unix/sysv/linux/bits/dirent.h: Likewise.
20284 * dirent/alphasort.c: Check _DIRENT_MATCHES_DIRENT64 value instead
20285 of definition.
20286 * dirent/alphasort64.c: Likewise.
20287 * dirent/scandir.c: Likewise.
20288 * dirent/scandir64-tail.c: Likewise.
20289 * dirent/scandir64.c: Likewise.
20290 * dirent/scandirat.c: Likewise.
20291 * dirent/scandirat64.c: Likewise.
20292 * dirent/versionsort.c: Likewise.
20293 * dirent/versionsort64.c: Likewise.
20294 * include/dirent.h: Likewise.
20295
20296 * nptl/tst-cancel4-common.h (set_socket_buffer): New function.
20297 * nptl/tst-cancel4-common.c (do_test): Call set_socket_buffer
20298 for socketpair endpoint.
20299 * nptl/tst-cancel4.c (tf_send): Call set_socket_buffer and use
20300 WRITE_BUFFER_SIZE as buffer size for sending socket.
20301 (tf_sendto): Use SOCK_STREAM instead of SOCK_DGRAM and fix an
20302 issue on system where send is implemented with sendto syscall.
20303 * sysdeps/unix/sysv/linux/mips/mips64/Makefile [$(subdir) = socket]
20304 (CFLAGS-recv.c, CFLAGS-send.c): Remove rules.
20305 [$(subdir) = nptl] (CFLAGS-recv.c, CFLAGS-send.c): Likewise.
20306 * sysdeps/unix/sysv/linux/riscv/rv64/Makefile: Remove file.
20307
20308 [BZ #21269]
20309 * sysdeps/unix/sysv/linux/i386/Makefile (tests): Add tst-bz21269.
20310 * sysdeps/unix/sysv/linux/i386/sigaction.c (SET_SA_RESTORER): Clear
20311 sa_restorer for vDSO case.
20312 * sysdeps/unix/sysv/linux/i386/tst-bz21269.c: New file.
20313
20314 2018-03-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
20315
20316 * scripts/check-installed-headers.sh: Ignore Hurd and Mach headers.
20317 * hurd/hurd/id.h: Include <hurd/hurd_types.h>
20318 * hurd/hurd/ioctl.h: Include <mach/port.h>
20319 * hurd/hurd/lookup.h: Include <hurd/hurd_types.h>
20320 * mach/Makefile ($(objpfx)mach-shortcuts.h): Make it include
20321 <mach/mach_types.h> and <mach/message.h>.
20322 (headers): Move mach/param.h to bits/mach/param.h.
20323 * sysdeps/mach/i386/mach/param.h: Move file to ...
20324 * sysdeps/mach/i386/bits/mach/param.h: ... here. Update path in #error.
20325 * sysdeps/mach/hurd/bits/param.h: Include <bits/mach/param.h> instead
20326 of <mach/param.h>.
20327 * hurd/hurd/port.h: Do not include <hurd/signal.h>.
20328 * hurd/hurd/userlink.h [!defined __USE_EXTERN_INLINES ||
20329 !defined _LIBC || !IS_IN (libc)]: Do not include <hurd/signal.h>.
20330 * hurd/hurd/fd.h (_hurd_fd_error): Fix struct initializer to be
20331 trivial, for C++ conformity.
20332 * sysdeps/mach/hurd/dl-sysdep.c: Include <mach/machine/vm_param.h>.
20333 * mach/Machrules ($(patsubst %,$(objpfx)%.h,$(user-interfaces)):
20334 Process mig output through $(migheadersed).
20335 * hurd/Makefile (migheadersed): Define variable.
20336 * mach/mach/mig_support.h [defined __USE_GNU]: Do not #error out.
20337 * scripts/check-installed-headers.sh: Do not ignore Hurd and Mach
20338 headers.
20339 * hurd/hurd.h: Include <bits/types/sigset_t.h>
20340 * hurd/hurd/fd.h: Include <sys/select.h> and <bits/types/sigset_t.h>
20341 (_hurd_fd_read, _hurd_fd_write): Use __loff_t instead of loff_t.
20342 * hurd/hurd/signal.h: Include <bits/types/stack_t.h> and
20343 <bits/types/sigset_t.h>.
20344 [!defined __USE_GNU]: Do not #error out.
20345 (struct hurd_sigstate): Use _NSIG instead of NSIG.
20346 * hurd/hurd/sigpreempt.h (__need_size_t): Define.
20347 Include <stddef.h> and <bits/types/sigset_t.h>
20348 (struct hurd_signal_preemptor, hurd_catch_signal): Use __sighandler_t
20349 instead of sighandler_t.
20350 * stdlib/errno.h (error_t): Move definition to...
20351 * bits/types/error_t.h: ... new header.
20352 * stdlib/Makefile (headers): Add bits/types/error_t.h.
20353 * sysdeps/mach/hurd/bits/errno.h (error_t): Move definition to...
20354 * sysdeps/mach/hurd/bits/types/error_t.h: ... new header.
20355 * sysdeps/mach/hurd/errnos.awk (error_t): Likewise.
20356 * hurd/hurd.h: Include <bits/types/error_t.h>
20357 * hurd/hurd/fd.h: Include <bits/types/error_t.h>
20358 * hurd/hurd/id.h: Include <errno.h> and <bits/types/error_t.h>
20359 * hurd/hurd/lookup.h: Include <errno.h> and <bits/types/error_t.h>
20360 * hurd/hurd/resource.h: Include <bits/types/error_t.h>
20361 * hurd/hurd/signal.h: Include <bits/types/error_t.h>
20362 * hurd/hurd/sigpreempt.h: Include <bits/types/error_t.h>
20363 * sysdeps/mach/hurd/futimens.c: New file.
20364
20365 2018-03-03 Andreas Schwab <schwab@linux-m68k.org>
20366
20367 [BZ #22918]
20368 * nss/nsswitch.h (DEFINE_DATABASE): Don't define __nss_*_database.
20369 * nss/nsswitch.c (DEFINE_DATABASE): Define __nss_*_database here.
20370 * nscd/gai.c (__nss_hosts_database): Readd definition.
20371 * posix/tst-rfc3484.c (__nss_hosts_database): Likewise.
20372 * posix/tst-rfc3484-3.c (__nss_hosts_database): Likewise.
20373 * posix/tst-rfc3484-2.c (__nss_hosts_database): Likewise.
20374
20375 2018-03-02 Joseph Myers <joseph@codesourcery.com>
20376
20377 * sysdeps/powerpc/ifunc-sel.h (ifunc_sel): Make always_inline.
20378 (ifunc_one): Likewise.
20379
20380 2018-03-01 DJ Delorie <dj@delorie.com>
20381
20382 [BZ #22342]
20383 * nscd/netgroupcache.c (addinnetgrX): Include trailing NUL in
20384 key value.
20385
20386 2018-03-01 Maciej W. Rozycki <macro@mips.com>
20387
20388 * nptl_db/td_ta_thr_iter.c (iterate_thread_list): Remove
20389 `match_pid' parameter.
20390 (td_ta_thr_iter): Update accordingly.
20391
20392 2018-03-01 Florian Weimer <fweimer@redhat.com>
20393
20394 * nptl/Makefile (install-lib-ldscripts): Remove.
20395 (install): Remove rule.
20396 ($(inst_libdir)/libpthread.so): Likewise.
20397
20398 2018-03-01 Mike FABIAN <mfabian@redhat.com>
20399
20400 [BZ #22896]
20401 * localedata/locales/an_ES: update month and day names,
20402 improve d_fmt, improve postal_fmt, add country_post,
20403 add country_isbn
20404
20405 2018-03-01 Mike FABIAN <mfabian@redhat.com>
20406
20407 * localedata/locales/bg_BG (LC_COLLATE): The comment mentioned
20408 Ukrainian instead of Bulgarian.
20409
20410 2018-03-01 Florian Weimer <fweimer@redhat.com>
20411
20412 * nptl/Makefile (libpthread.so): Drop libpthread_nonshared.a
20413 reference.
20414
20415 2018-03-01 Florian Weimer <fweimer@redhat.com>
20416
20417 Move pthread_atfork to libc. Remove libpthread_nonshared.a.
20418 * nptl/Makefile (routines): Add pthread_atfork.
20419 (static-only-routines): Set to pthread_atfork.
20420 (libpthread-routines): Remove pthread_atfork.
20421 (libpthread-static-only-routines): Remove.
20422 (install): Update comment.
20423 (libpthread.so): Do not install libpthread_nonshared.a.
20424 (tests): Do not link with libpthread_nonshared.a.
20425 (generated): Remove libpthread_nonshared.a.
20426 * nptl/pthread_atfork.c (pthread_atfork): Turn into weak alias.
20427 * sysdeps/nptl/Makeconfig (shared-thread-library): Do not link
20428 with libpthread_nonshared.a.
20429
20430 2018-02-28 Joseph Myers <joseph@codesourcery.com>
20431
20432 [BZ #22902]
20433 * sysdeps/i386/fpu/fenv_private.h [!__x86_64__]
20434 (libc_feholdexcept_setroundf128): New macro.
20435 [!__x86_64__] (libc_feupdateenv_testf128): Likewise.
20436
20437 [BZ #15105]
20438 * sysdeps/wordsize-32/strtoumax.c (strtoumax): Use
20439 libc_hidden_def.
20440 * sysdeps/wordsize-64/strtoumax.c (strtoumax): Likewise.
20441 * include/inttypes.h: New file.
20442
20443 2018-02-27 Joseph Myers <joseph@codesourcery.com>
20444
20445 * locale/weightwc.h (findidx): Ignore -Wmaybe-uninitialized for
20446 -Os in two more places.
20447
20448 2018-02-27 Mike FABIAN <mfabian@redhat.com>
20449
20450 See this bug https://sourceware.org/bugzilla/show_bug.cgi?id=22898
20451 * localedata/cmn_TW.UTF-8.in: Remove the lines which cannot
20452 be sorted correctly at the moment because of a bug.
20453
20454 2018-02-27 Mike FABIAN <mfabian@redhat.com>
20455
20456 [BZ #22550] - es_ES locale (and other es_* locales): collation should
20457 treat ñ as a primary different character, sync the collation
20458 for Spanish with CLDR.
20459 [BZ #21547] - Tibetan script collation broken (Dzongkha and Tibetan).
20460 * localedata/Makefile: Add new test files.
20461 * localedata/lv_LV.UTF-8.in: Adapt test file to new collation order.
20462 * localedata/sv_SE.ISO-8859-1.in: Adapt test file to new
20463 collation order.
20464 * localedata/uk_UA.UTF-8.in: Adapt test file to new collation order.
20465 * localedata/am_ET.UTF-8.in: New test file.
20466 * localedata/az_AZ.UTF-8.in: Likewise.
20467 * localedata/be_BY.UTF-8.in: Likewise.
20468 * localedata/ber_DZ.UTF-8.in: Likewise.
20469 * localedata/ber_MA.UTF-8.in: Likewise.
20470 * localedata/bg_BG.UTF-8.in: Likewise.
20471 * localedata/br_FR.UTF-8.in: Likewise.
20472 * localedata/cmn_TW.UTF-8.in: Likewise.
20473 * localedata/crh_UA.UTF-8.in: Likewise.
20474 * localedata/csb_PL.UTF-8.in: Likewise.
20475 * localedata/cv_RU.UTF-8.in: Likewise.
20476 * localedata/cy_GB.UTF-8.in: Likewise.
20477 * localedata/dz_BT.UTF-8.in: Likewise.
20478 * localedata/eo.UTF-8.in: Likewise.
20479 * localedata/es_ES.UTF-8.in: Likewise.
20480 * localedata/fa_IR.UTF-8.in: Likewise.
20481 * localedata/fi_FI.UTF-8.in: Likewise.
20482 * localedata/fil_PH.UTF-8.in: Likewise.
20483 * localedata/fur_IT.UTF-8.in: Likewise.
20484 * localedata/gez_ER.UTF-8@abegede.in: Likewise.
20485 * localedata/ha_NG.UTF-8.in: Likewise.
20486 * localedata/ig_NG.UTF-8.in: Likewise.
20487 * localedata/ik_CA.UTF-8.in: Likewise.
20488 * localedata/kk_KZ.UTF-8.in: Likewise.
20489 * localedata/ku_TR.UTF-8.in: Likewise.
20490 * localedata/ky_KG.UTF-8.in: Likewise.
20491 * localedata/ln_CD.UTF-8.in: Likewise.
20492 * localedata/mi_NZ.UTF-8.in: Likewise.
20493 * localedata/ml_IN.UTF-8.in: Likewise.
20494 * localedata/mn_MN.UTF-8.in: Likewise.
20495 * localedata/mr_IN.UTF-8.in: Likewise.
20496 * localedata/mt_MT.UTF-8.in: Likewise.
20497 * localedata/nb_NO.UTF-8.in: Likewise.
20498 * localedata/om_KE.UTF-8.in: Likewise.
20499 * localedata/os_RU.UTF-8.in: Likewise.
20500 * localedata/ps_AF.UTF-8.in: Likewise.
20501 * localedata/ro_RO.UTF-8.in: Likewise.
20502 * localedata/ru_RU.UTF-8.in: Likewise.
20503 * localedata/sc_IT.UTF-8.in: Likewise.
20504 * localedata/se_NO.UTF-8.in: Likewise.
20505 * localedata/sq_AL.UTF-8.in: Likewise.
20506 * localedata/sv_SE.UTF-8.in: Likewise.
20507 * localedata/szl_PL.UTF-8.in: Likewise.
20508 * localedata/tg_TJ.UTF-8.in: Likewise.
20509 * localedata/tk_TM.UTF-8.in: Likewise.
20510 * localedata/tt_RU.UTF-8.in: Likewise.
20511 * localedata/tt_RU.UTF-8@iqtelif.in: Likewise.
20512 * localedata/ug_CN.UTF-8.in: Likewise.
20513 * localedata/uz_UZ.UTF-8.in: Likewise.
20514 * localedata/vi_VN.UTF-8.in: Likewise.
20515 * localedata/yi_US.UTF-8.in: Likewise.
20516 * localedata/yo_NG.UTF-8.in: Likewise.
20517 * localedata/zh_CN.UTF-8.in: Likewise.
20518 * localedata/locales/am_ET: Adapt collation rules to new iso14651_t1_common
20519 file and fix bugs in the collation.
20520 * localedata/locales/az_AZ: Likewise.
20521 * localedata/locales/be_BY: Likewise.
20522 * localedata/locales/ber_DZ: Likewise.
20523 * localedata/locales/ber_MA: Likewise.
20524 * localedata/locales/bg_BG: Likewise.
20525 * localedata/locales/br_FR: Likewise.
20526 * localedata/locales/br_FR@euro: Likewise.
20527 * localedata/locales/ca_ES: Likewise.
20528 * localedata/locales/cns11643_stroke: Likewise.
20529 * localedata/locales/crh_UA: Likewise.
20530 * localedata/locales/cs_CZ: Likewise.
20531 * localedata/locales/csb_PL: Likewise.
20532 * localedata/locales/cv_RU: Likewise.
20533 * localedata/locales/cy_GB: Likewise.
20534 * localedata/locales/da_DK: Likewise.
20535 * localedata/locales/dz_BT: Likewise.
20536 * localedata/locales/en_CA: Likewise.
20537 * localedata/locales/eo: Likewise.
20538 * localedata/locales/es_CU: Likewise.
20539 * localedata/locales/es_EC: Likewise.
20540 * localedata/locales/es_ES: Likewise.
20541 * localedata/locales/es_US: Likewise.
20542 * localedata/locales/et_EE: Likewise.
20543 * localedata/locales/fa_IR: Likewise.
20544 * localedata/locales/fi_FI: Likewise.
20545 * localedata/locales/fil_PH: Likewise.
20546 * localedata/locales/fur_IT: Likewise.
20547 * localedata/locales/gez_ER@abegede: Likewise.
20548 * localedata/locales/ha_NG: Likewise.
20549 * localedata/locales/hr_HR: Likewise.
20550 * localedata/locales/hsb_DE: Likewise.
20551 * localedata/locales/hu_HU: Likewise.
20552 * localedata/locales/ig_NG: Likewise.
20553 * localedata/locales/ik_CA: Likewise.
20554 * localedata/locales/is_IS: Likewise.
20555 * localedata/locales/iso14651_t1_pinyin: Likewise.
20556 * localedata/locales/kk_KZ: Likewise.
20557 * localedata/locales/ku_TR: Likewise.
20558 * localedata/locales/ky_KG: Likewise.
20559 * localedata/locales/ln_CD: Likewise.
20560 * localedata/locales/lt_LT: Likewise.
20561 * localedata/locales/lv_LV: Likewise.
20562 * localedata/locales/mi_NZ: Likewise.
20563 * localedata/locales/ml_IN: Likewise.
20564 * localedata/locales/mn_MN: Likewise.
20565 * localedata/locales/mr_IN: Likewise.
20566 * localedata/locales/mt_MT: Likewise.
20567 * localedata/locales/nb_NO: Likewise.
20568 * localedata/locales/om_KE: Likewise.
20569 * localedata/locales/os_RU: Likewise.
20570 * localedata/locales/pl_PL: Likewise.
20571 * localedata/locales/ps_AF: Likewise.
20572 * localedata/locales/ro_RO: Likewise.
20573 * localedata/locales/ru_RU: Likewise.
20574 * localedata/locales/ru_UA: Likewise.
20575 * localedata/locales/sc_IT: Likewise.
20576 * localedata/locales/se_NO: Likewise.
20577 * localedata/locales/si_LK: Likewise.
20578 * localedata/locales/sq_AL: Likewise.
20579 * localedata/locales/sv_FI: Likewise.
20580 * localedata/locales/sv_FI@euro: Likewise.
20581 * localedata/locales/sv_SE: Likewise.
20582 * localedata/locales/szl_PL: Likewise.
20583 * localedata/locales/tg_TJ: Likewise.
20584 * localedata/locales/ti_ER: Likewise.
20585 * localedata/locales/tk_TM: Likewise.
20586 * localedata/locales/tl_PH: Likewise.
20587 * localedata/locales/tr_TR: Likewise.
20588 * localedata/locales/tt_RU: Likewise.
20589 * localedata/locales/tt_RU@iqtelif: Likewise.
20590 * localedata/locales/ug_CN: Likewise.
20591 * localedata/locales/uk_UA: Likewise.
20592 * localedata/locales/uz_UZ: Likewise.
20593 * localedata/locales/uz_UZ@cyrillic: Likewise.
20594 * localedata/locales/vi_VN: Likewise.
20595 * localedata/locales/yi_US: Likewise.
20596 * localedata/locales/yo_NG: Likewise.
20597
20598 2018-02-27 Mike FABIAN <mfabian@redhat.com>
20599
20600 * gen-locales.mk: Make test files which contain @ modifiers in their
20601 name work.
20602 * localedata/gen-locale.sh: Likewise.
20603
20604 2018-02-27 Mike FABIAN <mfabian@redhat.com>
20605
20606 * posix/tst-fnmatch.input: Fix results for range expressions
20607 for non C locales.
20608 * posix/tst-regexloc.c: Do not use a range expression for
20609 de_DE.ISO-8859-1 locale.
20610
20611 2018-02-27 Mike FABIAN <mfabian@redhat.com>
20612
20613 * posix/bug-regex5.c: Fix test case because with the new
20614 iso14651_t1_common file, the da_DK locale now has 6 collating elements
20615 in the ISO-8859-1 range instead of 4 with the old iso14651_t1_common
20616 file.
20617
20618 2018-02-27 Mike FABIAN <mfabian@redhat.com>
20619
20620 * localedata/da_DK.ISO-8859-1.in: In the new iso14651_t1_common file
20621 downloaded from ISO, the collation order of @-. and space has changed.
20622 Therefore, this test file needed to be adapted.
20623 * localedata/fr_CA.UTF-8.in: Likewise.
20624 * localedata/fr_FR.UTF-8.in: Likewise.
20625 * localedata/uk_UA.UTF-8.in: Likewise.
20626
20627 2018-02-27 Mike FABIAN <mfabian@redhat.com>
20628
20629 * localedata/cs_CZ.UTF-8.in: adapt this test file to the collation
20630 order of ȥ in the new iso14651_t1_common file.
20631 * localedata/pl_PL.UTF-8.in: Likewise.
20632
20633 2018-02-27 Mike FABIAN <mfabian@redhat.com>
20634
20635 * localedata/locales/iso14651_t1_common: Add sections for various
20636 scripts to the iso14651_t1_common file.
20637
20638 2018-02-27 Mike FABIAN <mfabian@redhat.com>
20639
20640 * localedata/locales/iso14651_t1_common: Use the code point of a
20641 character in the fourth collation level instead of IGNORE for all
20642 entries which have IGNORE on all 4 levels.
20643
20644 2018-02-27 Mike FABIAN <mfabian@redhat.com>
20645
20646 * localedata/locales/iso14651_t1_common: Add some convenient collation
20647 symbols like <AFTER-A>, <BEFORE-A> to make tailoring easier using
20648 rules similar to those in CLDR.
20649
20650 2018-02-27 Mike FABIAN <mfabian@redhat.com>
20651
20652 * localedata/locales/iso14651_t1_common: The new version of this
20653 file downloaded from ISO contained several syntax errors which
20654 are fixed by this patch.
20655
20656 2018-02-27 Mike FABIAN <mfabian@redhat.com>
20657
20658 * localedata/locales/iso14651_t1_common: replace all <U.....>
20659 with <U000.....> because glibc understands only 4 digit or 8 digit
20660
20661 2018-02-27 Mike FABIAN <mfabian@redhat.com>
20662
20663 * localedata/locales/iso14651_t1_common: Necessary changes
20664 to make the file downloaded from ISO usable by glibc.
20665
20666 2018-02-27 Mike FABIAN <mfabian@redhat.com>
20667
20668 [BZ #14095]
20669 * localedata/locales/iso14651_t1_common: Update file to
20670 latest version from ISO (ISO14651_2016_TABLE1_en.txt).
20671
20672 2018-02-27 Samuel Thibault <samuel.thibault@ens-lyon.org>
20673
20674 * sysdeps/pthread/timer_routines.c: Include <timer_routines.h> instead
20675 of <nptl/pthreadP.h>
20676 (thread_attr_compare): Move function to...
20677 [!defined DELAYTIMER_MAX] (DELAYTIMER_MAX): Define to INT_MAX.
20678 * sysdeps/nptl/timer_routines.h: ... new header.
20679 * sysdeps/mach/hurd/gai_misc.h: New file.
20680
20681 2018-02-26 Joseph Myers <joseph@codesourcery.com>
20682
20683 * string/strcoll_l.c: Include <libc-diag.h>.
20684 (STRCOLL): Ignore -Wmaybe-uninitialized for -Os around
20685 declarations of seq1 and seq2.
20686
20687 [BZ #15105]
20688 * stdlib/atoi.c (atoi): Use libc_hidden_def.
20689 * include/stdlib.h [!_ISOMAC] (atoi): Use libc_hidden_proto.
20690
20691 2018-02-26 Dmitry V. Levin <ldv@altlinux.org>
20692
20693 [BZ #22433]
20694 [BZ #22807]
20695 * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h (__ptrace_request): Add
20696 PTRACE_GETREGS, PTRACE_SETREGS, PTRACE_GETFPREGS, PTRACE_SETFPREGS,
20697 PTRACE_GETVRREGS, PTRACE_SETVRREGS, PTRACE_GETEVRREGS,
20698 PTRACE_SETEVRREGS, PTRACE_GETREGS64, PTRACE_SETREGS64,
20699 PTRACE_GET_DEBUGREG, PTRACE_SET_DEBUGREG, PTRACE_GETVSRREGS,
20700 PTRACE_SETVSRREGS, and PTRACE_SINGLEBLOCK.
20701
20702 2018-02-26 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
20703
20704 * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Undefine Linux
20705 macros used in __ptrace_request.
20706
20707 2018-02-23 H.J. Lu <hongjiu.lu@intel.com>
20708
20709 [BZ #22792]
20710 * Makerules ($(common-objpfx)%.h): Pass -DGEN_AS_CONST_HEADERS
20711 to $(CC).
20712 * sysdeps/unix/sysv/linux/i386/lowlevellock.h: Include
20713 <tcb-offsets.h> only if GEN_AS_CONST_HEADERS isn't defined.
20714 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h: Don't include
20715 <tcb-offsets.h>.
20716
20717 2018-02-23 Joseph Myers <joseph@codesourcery.com>
20718
20719 [BZ #15105]
20720 * ctype/ctype.c (tolower): Use libc_hidden_def.
20721 (toupper): Likewise.
20722 * include/ctype.h [!_ISOMAC] (tolower): Use libc_hidden_proto.
20723 [!_ISOMAC] (toupper): Likewise.
20724
20725 2018-02-23 Mike FABIAN <mfabian@redhat.com>
20726
20727 * localedata/Makefile: Remove --quiet argument when
20728 installing locales
20729
20730 2018-02-23 Mike FABIAN <mfabian@redhat.com>
20731
20732 [BZ #17438]
20733 * localedata/locales/pt_BR (LC_TIME): use / instead of -
20734 in d_fmt.
20735 * localedata/locales/pt_PT (LC_TIME): likewise
20736
20737 2018-02-23 Mike FABIAN <mfabian@redhat.com>
20738
20739 [BZ #22646]
20740 * localedata/locales/es_CL (LC_TIME): copy "es_BO".
20741 * localedata/locales/es_CU (LC_TIME): copy "es_BO".
20742 * localedata/locales/es_EC (LC_TIME): copy "es_BO".
20743
20744 2018-02-22 Adhemerval Zanella <adhemerval.zanella@linaro.org>
20745
20746 * sysdeps/sparc/fpu/libm-test-ulps: Update.
20747
20748 * nptl/Makefile (routines): Remove unregister-atfork.
20749 * nptl/register-atfork.c (fork_handler_pool): Remove variable.
20750 (fork_handler_alloc): Remove function.
20751 (fork_handlers, fork_handler_init): New variables.
20752 (__fork_lock): Rename to atfork_lock.
20753 (__register_atfork, __unregister_atfork, libc_freeres_fn): Rewrite
20754 to use a dynamic array to add/remove atfork handlers.
20755 * sysdeps/nptl/fork.c (__libc_fork): Likewise.
20756 * sysdeps/nptl/fork.h (__fork_lock, __fork_handlers, __linkin_atfork):
20757 Remove declaration.
20758 (fork_handler): Remove next, refcntr, and need_signal member.
20759 (__run_fork_handler_type): New enum.
20760 (__run_fork_handlers): New prototype.
20761 * nptl/register-atfork.c: Remove file.
20762 * sysdeps/nptl/libc-lockP.h (__libc_atfork): Remove declaration.
20763
20764 * sysdeps/nptl/nptl-signals.h: Move to ...
20765 * sysdeps/generic/internal-signals.h: ... here. Adjust internal
20766 comments.
20767 * sysdeps/unix/sysv/linux/internal-signals.h: Add include guards.
20768 (__nptl_is_internal_signal): Rename to __is_internal_signal and remove
20769 unnecessary check for SIGTIMER.
20770 (__nptl_clear_internal_signals): Rename to __clear_internal_signals and
20771 remove unnecessary removal of SIGTIMER.
20772 * sysdeps/unix/sysv/linux/raise.c: Adjust nptl-signal.h to
20773 include-signals.h rename.
20774 * nptl/pthreadP.h: Likewise.
20775 * sysdeps/unix/sysv/linux/spawni.c (__spawni_child): Call
20776 __is_internal_signal instead of __nptl_is_internal_signal.
20777
20778 2018-02-22 Andrew Waterman <andrew@sifive.com>
20779
20780 [BZ # 22884]
20781 * sysdeps/riscv/rvd/s_fmax.c (__fmax): Handle sNaNs correctly.
20782 * sysdeps/riscv/rvd/s_fmin.c (__fmin): Likewise.
20783 * sysdeps/riscv/rvf/s_fmaxf.c (__fmaxf): Likewise.
20784 * sysdeps/riscv/rvf/s_fminf.c (__fminf): Likewise.
20785
20786 2018-02-22 DJ Delorie <dj@delorie.com>
20787
20788 * sysdeps/riscv/tls-macros.h: Do not initialize $gp.
20789
20790 2018-02-22 Siddhesh Poyarekar <siddhesh@sourceware.org>
20791
20792 * sysdeps/aarch64/strcmp.S (do_misaligned): Jump back to
20793 do_misaligned, not misaligned8.
20794
20795 2018-02-22 Steve Ellcey <sellcey@cavium.com>
20796
20797 * sysdeps/aarch64/multiarch/Makefile (sysdep_routines):
20798 Add memcpy_thunderx2.
20799 * sysdeps/aarch64/multiarch/ifunc-impl-list.c (MAX_IFUNC):
20800 Increment to 4.
20801 (__libc_ifunc_impl_list): Add __memcpy_thunderx2.
20802 * sysdeps/aarch64/multiarch/memcpy.c (libc_ifunc): Add IS_THUNDERX2
20803 and IS_THUNDERX2PA checks.
20804 * sysdeps/aarch64/multiarch/memcpy_thunderx.S (USE_THUNDERX2):
20805 Use macro to set name appropriately.
20806 (memcpy): Use USE_THUNDERX2 macro to modify prefetches.
20807 * sysdeps/aarch64/multiarch/memcpy_thunderx2.S: New file.
20808 * sysdeps/unix/sysv/linux/aarch64/cpu-features.h (IS_THUNDERX2PA):
20809 New macro.
20810 (IS_THUNDERX2): New macro.
20811
20812 2018-02-22 Stefan Liebler <stli@linux.vnet.ibm.com>
20813
20814 * sysdeps/s390/fpu/libm-test-ulps: Regenerated.
20815
20816 2018-02-21 Zack Weinberg <zackw@panix.com>
20817
20818 * libio/libio.h (_IO_pos_BAD, _IO_pos_0, _IO_pos_adjust):
20819 Define here, unconditionally.
20820 * libio/iolibio.h (_IO_pos_BAD): Don't define here.
20821 * libio/libioP.h: Remove #if 0 blocks.
20822 (_IO_pos_BAD, _IO_pos_0, _IO_pos_adjust): Don't define here.
20823 (_IO_va_start, COERCE_FILE, MAYBE_SET_EINVAL): Don't define.
20824 (CHECK_FILE): Don't use MAYBE_SET_EINVAL or COERCE_FILE. Fix style.
20825
20826 * libio/clearerr.c, libio/fputc.c, libio/getchar.c:
20827 Assume weak_alias is always defined.
20828
20829 * libio/fileops.c, libio/genops.c, libio/oldfileops.c
20830 * libio/oldpclose.c, libio/pclose.c, libio/wfileops.c:
20831 Remove #if 0 and #ifdef TODO blocks.
20832 Assume text_set_element is always defined.
20833
20834 * libio/iofdopen.c, libio/iogetdelim.c, libio/oldiofdopen.c
20835 Use __set_errno (EINVAL) instead of MAYBE_SET_EINVAL.
20836 * libio/tst-mmap-eofsync.c: Make #if 1 block unconditional.
20837
20838 * libio/libio.h (_IOS_ATEND, _IOS_APPEND, _IOS_TRUNC)
20839 (_IOS_NOCREATE, _IOS_NOREPLACE, _IOS_BIN, _OLD_STDIO_MAGIC)
20840 (_IO_SKIPWS, _IO_LEFT, _IO_RIGHT, _IO_INTERNAL, _IO_DEC)
20841 (_IO_OCT, _IO_HEX, _IO_SHOWBASE, _IO_SHOWPOINT, _IO_UPPERCASE)
20842 (_IO_SHOWPOS, _IO_SCIENTIFIC, _IO_FIXED, _IO_UNITBUF, _IO_STDIO)
20843 (_IO_DONT_CLOSE, _IO_BOOLALPHA, _IO_BAD_SEEN): Remove, unused.
20844 Reformat bit flags for _flags field to make occupancy clearer.
20845 Update commentary.
20846 * libio/bits/types/struct_FILE.h (_IO_EOF_SEEN, _IO_ERR_SEEN):
20847 Keep definitions consistent with those in libio/libio.h.
20848
20849 * libio/libio.h (_IO_file_flags): Remove macro.
20850 All uses changed to _flags.
20851
20852 * libio/libio.h (_IO_UNIFIED_JUMPTABLES, _STDIO_USES_IOSTREAM)
20853 (__HAVE_COLUMN, _IO_BE): Don't define.
20854 (_IO_peekc_unlocked, _IO_getwc_unlocked, _IO_putwc_unlocked)
20855 (_IO_fwide_maybe_incompatible): Use __glibc_unlikely.
20856 * libio/libioP.h (EOF): Don't define.
20857 * libio/iofdopen.c, libio/iofopen.c, libio/iopopen.c
20858 * libio/iovdprintf.c, libio/oldiofdopen.c, libio/oldiofopen.c
20859 * libio/oldiopopen.c, debug/vdprintf_chk.c: Remove #if block
20860 testing _IO_UNIFIED_JUMPTABLES.
20861
20862 * libio/libio.h (_IO_FILE): Delete; all uses changed to FILE.
20863 (_IO_fpos_t): Delete; all uses changed to __fpos_t.
20864 (_IO_fpos64_t): Delete; all uses changed to __fpos64_t.
20865 (_IO_size_t): Delete; all uses changed to size_t.
20866 (_IO_ssize_t): Delete; all uses changed to ssize_t or __ssize_t.
20867 (_IO_off_t): Delete; all uses changed to off_t.
20868 (_IO_off64_t): Delete; all uses changed to off64_t.
20869 (_IO_pid_t): Delete; all uses changed to pid_t.
20870 (_IO_uid_t): Delete; all uses changed to uid_t.
20871 (_IO_wint_t): Delete; all uses changed to wint_t.
20872 (_IO_va_list): Delete; all uses changed to va_list or __gnuc_va_list.
20873 (_IO_BUFSIZ): Delete; all uses changed to BUFSIZ.
20874 (_IO_cookie_io_functions_t): Delete; all uses changed to
20875 cookie_io_functions_t.
20876 (__io_read_fn): Delete; all uses changed to cookie_read_function_t.
20877 (__io_write_fn): Delete; all uses changed to cookie_write_function_t.
20878 (__io_seek_fn): Delete; all uses changed to cookie_seek_function_t.
20879 (__io_close_fn): Delete: all uses changed to cookie_close_function_t.
20880
20881 * libio/iofopncook.c: Remove unnecessary forward declarations.
20882 * libio/iolibio.h: Correct outdated commentary.
20883 * malloc/malloc.c (__malloc_stats): Remove unnecessary casts.
20884 * stdio-common/fxprintf.c (__fxprintf_nocancel):
20885 Remove unnecessary casts.
20886 * stdio-common/getline.c: Use _IO_getdelim directly.
20887 Don't redefine ssize_t.
20888 * stdio-common/printf_fp.c, stdio_common/printf_fphex.c
20889 * stdio-common/printf_size.c: Don't redefine size_t or FILE.
20890 Remove outdated comments.
20891 * stdio-common/vfscanf.c: Don't redefine va_list.
20892
20893 * libio/iolibio.h, libio/libioP.h: Remove extern "C".
20894 * libio/libio.h: Remove __BEGIN_DECLS and __END_DECLS.
20895 Remove preprocessor conditionals on _LIBC and __USE_GNU,
20896 which are always true, and __cplusplus, which is always false.
20897
20898 2018-02-21 Joseph Myers <joseph@codesourcery.com>
20899
20900 [BZ #15105]
20901 [BZ #19463]
20902 * libio/fputc_u.c (fputc_unlocked): Use libc_hidden_def.
20903 * libio/putc_u.c (putc_unlocked): Rename to __putc_unlocked and
20904 define as weak alias of __putc_unlocked. Use libc_hidden_weak.
20905 * include/stdio.h [!_ISOMAC] (fputc_unlocked): Use
20906 libc_hidden_proto.
20907 [!_ISOMAC] (putc_unlocked): Likewise.
20908 [!_ISOMAC] (__putc_unlocked): Declare as hidden function, and
20909 define inline if [__USE_EXTERN_INLINES].
20910 * misc/syslog.c (__vsyslog_chk): Call __putc_unlocked instead of
20911 putc_unlocked.
20912
20913 [BZ #15105]
20914 [BZ #19463]
20915 * libio/getc_u.c (getc_unlocked): Use libc_hidden_weak.
20916 * include/stdio.h [!_ISOMAC] (__getc_unlocked): Use
20917 attribute_hidden, and define inline if [__USE_EXTERN_INLINES].
20918 [!_ISOMAC] (getc_unlocked): Use libc_hidden_proto.
20919 * misc/getttyent.c (__getttyent): Call __getc_unlocked instead of
20920 getc_unlocked.
20921 * time/tzfile.c (__tzfile_read): Likewise.
20922
20923 2018-02-21 Mike FABIAN <mfabian@redhat.com>
20924
20925 [BZ #22517]
20926 * localedata/locales/et_EE (LC_COLLATE): add missing “reorder-end”
20927
20928 2018-02-21 Rical Jasan <ricaljasan@pacific.net>
20929
20930 * io/fcntl.h: Fix a typo in a comment.
20931
20932 2018-02-21 Rical Jasan <ricaljasan@pacific.net>
20933
20934 [BZ #22862]
20935 * include/features.h: Add _ISOC11_SOURCE to test for whether to
20936 define _DEFAULT_SOURCE.
20937 * manual/creature.texi (_DEFAULT_SOURCE): Improve documentation.
20938
20939 2018-02-21 Florian Weimer <fweimer@redhat.com>
20940
20941 [BZ #20890]
20942 * elf/cache.c (save_cache): Call fsync on temporary file before
20943 renaming it.
20944 (save_aux_cache): Call fdatasync on temporary file before renaming
20945 it.
20946
20947 2018-02-21 Florian Weimer <fweimer@redhat.com>
20948
20949 [BZ #22787]
20950 * include/caller.h: Remove file.
20951 * elf/dl-caller.c: Likewise.
20952 * elf/Makefile (dl-routines): Remove dl-caller.
20953 (shared-only-routines): Do not add dl-caller.
20954 * elf/dl-load.c (_dl_map_object_from_fd): Do not call
20955 __check_caller.
20956 * elf/dl-open.c (struct dl_open_args): Remove caller_dl_open
20957 member.
20958 (dl_open_worker): Do not call __check_caller.
20959 (_dl_open): Do not set caller_dl_open member.
20960 * elf/rtld.c (_rtld_global_ro): Do not initialize
20961 _dl_check_caller member.
20962 * sysdeps/generic/ldsodefs.h (rtld_global): Remove
20963 _dl_check_caller member.
20964 (_dl_check_caller): Remove declaration.
20965 * sysdeps/unix/sysv/linux/dl-execstack.c
20966 (_dl_make_stack_executable): Do not call __check_caller.
20967
20968 2018-02-21 Samuel Thibault <samuel.thibault@ens-lyon.org>
20969
20970 * sysdeps/mach/hurd/dl-sysdep.c (_dl_random): New variable.
20971 * sysdeps/mach/hurd/sysdep-cancel.h: New file.
20972
20973 2018-02-20 Rical Jasan <ricaljasan@pacific.net>
20974
20975 * manual/creature.texi (_ISOC99_SOURCE): Update the dated
20976 description.
20977
20978 2018-02-20 Rical Jasan <ricaljasan@pacific.net>
20979
20980 [BZ #16335]
20981 * manual/creature.texi (_POSIX_C_SOURCE): Document special values
20982 of 199606L, 200112L, and 200809L.
20983 (_XOPEN_SOURCE): Document special values of 600 and 700.
20984 (_ISOC11_SOURCE): Document macro.
20985 (_ATFILE_SOURCE): Likewise.
20986 (_FORTIFY_SOURCE): Likewise.
20987
20988 2018-02-19 Joseph Myers <joseph@codesourcery.com>
20989
20990 [BZ #15105]
20991 [BZ #19463]
20992 * libio/ferror_u.c (ferror_unlocked): Rename to __ferror_unlocked
20993 and define as weak alias of __ferror_unlocked. Use
20994 libc_hidden_weak.
20995 * include/stdio.h [!_ISOMAC] (ferror_unlocked): Use
20996 libc_hidden_proto.
20997 [!_ISOMAC] (__ferror_unlocked) New declaration, and inline
20998 function if [__USE_EXTERN_INLINES].
20999 * time/getdate.c (__getdate_r): Call __ferror_unlocked instead of
21000 ferror_unlocked.
21001
21002 2018-02-19 Rical Jasan <ricaljasan@pacific.net>
21003
21004 [BZ #6889]
21005 * manual/filesys.texi (get_current_dir_name): Clarify behaviour.
21006
21007 2018-02-18 Aurelien Jarno <aurelien@aurel32.net>
21008
21009 [BZ #22818]
21010 * posix/tst-glob_lstat_compat.c [__alpha__] (glob): Access
21011 the GLIBC_2.1 version.
21012
21013 2018-02-18 Aurelien Jarno <aurelien@aurel32.net>
21014
21015 [BZ #21508]
21016 * catgets/xopen-msg.awk: Ignore POT-Creation-Date line.
21017 * intl/Makefile ($(objpfx)tst-gettext-de.po): Generate
21018 intl/tst-gettext-de.po from po/de.po by removing the
21019 POT-Creation-Date line.
21020 ($(objpfx)msgs.h): Depend on $(objpfx)tst-gettext-de.po instead of
21021 ../po/de.po.
21022 * intl/tst-gettext.sh: Use ${objpfx}tst-gettext-de.po instead of
21023 ../po/de.po.
21024
21025 2018-02-17 Samuel Thibault <samuel.thibault@ens-lyon.org>
21026
21027 * mach/Makefile (headers): Add mach/param.h.
21028 * sysdeps/mach/hurd/bits/param.h: Include <mach/param.h>.
21029 * sysdeps/mach/i386/mach/param.h: New file, defines EXEC_PAGESIZE
21030 * sysdeps/mach/hurd/ptsname.c: Include <sys/stat.h>.
21031 (__ptsname_r): Move implementation to...
21032 (__ptsname_internal): ... new function. Add filling the STP
21033 structure.
21034
21035 2018-02-17 John David Anglin <danglin@gcc.gnu.org>
21036
21037 * sysdeps/hppa/fpu/libm-test-ulps (pow): Increase double and
21038 idouble to 1 ULP.
21039
21040 2018-02-16 Rical Jasan <ricaljasan@pacific.net>
21041
21042 * manual/platform.texi (__riscv_flush_icache): Fix @deftypefun
21043 syntax.
21044
21045 2018-02-16 Stefan Liebler <stli@linux.vnet.ibm.com>
21046
21047 * nptl/Makefile (tst-mutex8-ENV): Delete.
21048 * nptl/tst-mutex8.c (check_type):
21049 Add runtime check if mutex will be elided.
21050
21051 2018-02-15 Joseph Myers <joseph@codesourcery.com>
21052
21053 [BZ #20980]
21054 [BZ #21234]
21055 * manual/install.texi (Configuring and compiling): Describe
21056 passing CC and CFLAGS on configure command line, not as
21057 environment variables. Use @code markup on those variables.
21058 Specify what options go in CC and what go in CFLAGS. Note the
21059 requirement to compile with optimization.
21060 * INSTALL: Regenerated.
21061
21062 [BZ #18124]
21063 * sysdeps/hppa/bsd-setjmp.S: Include <sysdep.h>.
21064 (setjmp): Use HIDDEN_JUMPTARGET with __sigsetjmp.
21065 * sysdeps/unix/sysv/linux/hppa/getcontext.S (__getcontext): Call
21066 __sigprocmask instead of sigprocmask.
21067 * sysdeps/unix/sysv/linux/hppa/setcontext.S (__setcontext):
21068 Likewise.
21069 * sysdeps/unix/sysv/linux/hppa/localplt.data: Remove entries for
21070 __sigsetjmp and sigprocmask.
21071
21072 [BZ #15105]
21073 * include/argz.h (argz_next): Use libc_hidden_proto.
21074 (__argz_next): Likewise.
21075 * string-argz-next.c (__argz_next): Use libc_hidden_def.
21076 (argz_next): Use libc_hidden_weak.
21077
21078 [BZ #15105]
21079 * include/sys/socket.h [!_ISOMAC] (__cmsg_nxthdr): Use
21080 libc_hidden_proto.
21081 * sysdeps/unix/sysv/linux/cmsg_nxthdr.c (__cmsg_nxthdr): Use
21082 libc_hidden_def.
21083
21084 [BZ #15105]
21085 * include/stdio.h [!_ISOMAC && IS_IN (libc)] (fputs): Use
21086 libc_hidden_proto.
21087 * libio/iofputs.c (fputs): Use libc_hidden_weak.
21088
21089 [BZ #15105]
21090 [BZ #19463]
21091 * libio/feof_u.c (feof_unlocked): Rename to __feof_unlocked and
21092 define as weak alias of __feof_unlocked. Use libc_hidden_weak.
21093 * include/stdio.h (feof_unlocked): Use libc_hidden_proto.
21094 (__feof_unlocked): New declaration, and inline function if
21095 [__USE_EXTERN_INLINES].
21096 * iconv/gconv_conf.c (read_conf_file): Call __feof_unlocked
21097 instead of feof_unlocked.
21098 * intl/localealias.c [_LIBC] (FEOF): Likewise.
21099 * nss/nsswitch.c (nss_parse_file): Likewise.
21100 * sysdeps/unix/sysv/linux/readonly-area.c (__readonly_area):
21101 Likewise.
21102 * time/getdate.c (__getdate_r): Likewise.
21103 * sysdeps/posix/getaddrinfo.c [IS_IN (libc)] (feof_unlocked):
21104 Define as macro to call __feof_unlocked.
21105
21106 2018-02-15 Wilco Dijkstra <wdijkstr@arm.com>
21107
21108 * sysdeps/aarch64/fpu/fpu_control.h: Use <> in include.
21109
21110 2018-02-15 Wilco Dijkstra <wdijkstr@arm.com>
21111
21112 * math/Makefile: Remove mpexp.c and mplog.c
21113 * sysdeps/i386/fpu/mpexp.c: Delete file.
21114 * sysdeps/i386/fpu/mplog.c: Likewise.
21115 * sysdeps/ia64/fpu/mpexp.c: Likewise.
21116 * sysdeps/ia64/fpu/mplog.c: Likewise.
21117 * sysdeps/ieee754/dbl-64/e_exp.c: Remove mention of mpexp and mplog.
21118 * sysdeps/ieee754/dbl-64/mpa.h (__pow_mp): Remove unused function.
21119 * sysdeps/ieee754/dbl-64/mpexp.c: Delete file.
21120 * sysdeps/ieee754/dbl-64/mplog.c: Likewise.
21121 * sysdeps/m68k/m680x0/fpu/mpexp.c: Likewise.
21122 * sysdeps/m68k/m680x0/fpu/mplog.c: Likewise.
21123 * sysdeps/x86_64/fpu/multiarch/Makefile: Remove mpexp* and mplog*.
21124 * sysdeps/x86_64/fpu/multiarch/e_log-avx.c: Remove unused defines.
21125 * sysdeps/x86_64/fpu/multiarch/e_log-fma.c: Likewise.
21126 * sysdeps/x86_64/fpu/multiarch/e_log-fma4.c: Likewise.
21127 * sysdeps/x86_64/fpu/multiarch/mpexp-avx.c: Delete file.
21128 * sysdeps/x86_64/fpu/multiarch/mpexp-fma.c: Likewise.
21129 * sysdeps/x86_64/fpu/multiarch/mpexp-fma4.c: Likewise.
21130 * sysdeps/x86_64/fpu/multiarch/mplog-avx.c: Likewise.
21131 * sysdeps/x86_64/fpu/multiarch/mplog-fma.c: Likewise.
21132 * sysdeps/x86_64/fpu/multiarch/mplog-fma4.c: Likewise.
21133
21134 2018-02-15 Stefan Liebler <stli@linux.vnet.ibm.com>
21135
21136 * sysdeps/s390/fpu/libm-test-ulps: Regenerated.
21137
21138 2018-02-14 Adhemerval Zanella <adhemerval.zanella@linaro.org>
21139
21140 * sysdeps/sh/libm-test-ulps: Update.
21141
21142 2018-02-12 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
21143
21144 * sysdeps/powerpc/fpu/libm-test-ulps (pow): Increase double and
21145 idouble to 1 ULP.
21146
21147 2018-02-12 Zack Weinberg <zackw@panix.com>
21148
21149 [BZ #19239]
21150 * posix/sys/types.h: Don't include sys/sysmacros.h.
21151 * misc/sys/sysmacros.h: Remove the conditional deprecation
21152 warnings for the macros defined by this header.
21153
21154 2018-02-12 Szabolcs Nagy <szabolcs.nagy@arm.com>
21155
21156 * manual/probes.texi: Remove slowexp probes.
21157 * math/Makefile: Remove slowexp.
21158 * sysdeps/generic/math_private.h (__slowexp): Remove.
21159 * sysdeps/ieee754/dbl-64/e_exp.c (__ieee754_exp): Remove __slowexp and
21160 document error bounds.
21161 * sysdeps/i386/fpu/slowexp.c: Remove.
21162 * sysdeps/ia64/fpu/slowexp.c: Remove.
21163 * sysdeps/ieee754/dbl-64/slowexp.c: Remove.
21164 * sysdeps/ieee754/dbl-64/uexp.h (err_0): Remove.
21165 * sysdeps/m68k/m680x0/fpu/slowexp.c: Remove.
21166 * sysdeps/powerpc/power4/fpu/Makefile (CPPFLAGS-slowexp.c): Remove.
21167 * sysdeps/x86_64/fpu/multiarch/Makefile: Remove slowexp-fma.
21168 * sysdeps/x86_64/fpu/multiarch/e_exp-avx.c (__slowexp): Remove.
21169 * sysdeps/x86_64/fpu/multiarch/e_exp-fma.c (__slowexp): Remove.
21170 * sysdeps/x86_64/fpu/multiarch/e_exp-fma4.c (__slowexp): Remove.
21171 * sysdeps/x86_64/fpu/multiarch/slowexp-avx.c: Remove.
21172 * sysdeps/x86_64/fpu/multiarch/slowexp-fma.c: Remove.
21173 * sysdeps/x86_64/fpu/multiarch/slowexp-fma4.c: Remove.
21174
21175 2018-02-12 Wilco Dijkstra <wdijkstr@arm.com>
21176
21177 [BZ #13932]
21178 * sysdeps/ieee754/dbl-64/uexp.h (err_1): Remove.
21179 * benchtests/pow-inputs: Update comment for slow path cases.
21180 * manual/probes.texi (slowpow_p10): Delete removed probe.
21181 (slowpow_p10): Likewise.
21182 * math/Makefile: Remove halfulp.c and slowpow.c.
21183 * sysdeps/aarch64/libm-test-ulps: Set ULP of pow to 1.
21184 * sysdeps/generic/math_private.h (__exp1): Remove error argument.
21185 (__halfulp): Remove.
21186 (__slowpow): Remove.
21187 * sysdeps/i386/fpu/halfulp.c: Delete file.
21188 * sysdeps/i386/fpu/slowpow.c: Likewise.
21189 * sysdeps/ia64/fpu/halfulp.c: Likewise.
21190 * sysdeps/ia64/fpu/slowpow.c: Likewise.
21191 * sysdeps/ieee754/dbl-64/e_exp.c (__exp1): Remove error argument,
21192 improve comments and add error analysis.
21193 * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Add error analysis.
21194 (power1): Remove function:
21195 (log1): Remove error argument, add error analysis.
21196 (my_log2): Remove function.
21197 * sysdeps/ieee754/dbl-64/halfulp.c: Delete file.
21198 * sysdeps/ieee754/dbl-64/slowpow.c: Likewise.
21199 * sysdeps/m68k/m680x0/fpu/halfulp.c: Likewise.
21200 * sysdeps/m68k/m680x0/fpu/slowpow.c: Likewise.
21201 * sysdeps/powerpc/power4/fpu/Makefile: Remove CPPFLAGS-slowpow.c.
21202 * sysdeps/x86_64/fpu/libm-test-ulps: Set ULP of pow to 1.
21203 * sysdeps/x86_64/fpu/multiarch/Makefile: Remove slowpow-fma.c,
21204 slowpow-fma4.c, halfulp-fma.c, halfulp-fma4.c.
21205 * sysdeps/x86_64/fpu/multiarch/e_pow-fma.c (__slowpow): Remove define.
21206 * sysdeps/x86_64/fpu/multiarch/e_pow-fma4.c (__slowpow): Likewise.
21207 * sysdeps/x86_64/fpu/multiarch/halfulp-fma.c: Delete file.
21208 * sysdeps/x86_64/fpu/multiarch/halfulp-fma4.c: Likewise.
21209 * sysdeps/x86_64/fpu/multiarch/slowpow-fma.c: Likewise.
21210 * sysdeps/x86_64/fpu/multiarch/slowpow-fma4.c: Likewise.
21211
21212 2018-02-11 Samuel Thibault <samuel.thibault@ens-lyon.org>
21213
21214 * nscd/connections.c (RWLOCK_INITIALIZER): Define to
21215 PTHREAD_RWLOCK_WRITER_NONRECURSIVE_INITIALIZER_NP or
21216
21217 2018-02-10 Dmitry V. Levin <ldv@altlinux.org>
21218
21219 [BZ #22433]
21220 * sysdeps/unix/sysv/linux/aarch64/sys/ptrace.h (__ptrace_request):
21221 Remove arm-specific PTRACE_GET_THREAD_AREA, PTRACE_GETHBPREGS,
21222 and PTRACE_SETHBPREGS.
21223
21224 2018-02-10 Zack Weinberg <zackw@panix.com>
21225
21226 [BZ #22830]
21227 * malloc/malloc.c (__malloc_stats): Restore stderr->_flags2
21228 correctly.
21229 * malloc/tst-malloc-stats-cancellation.c: New test case.
21230 * malloc/Makefile: Add new test case.
21231
21232 2018-02-10 Wilco Dijkstra <wdijkstr@arm.com>
21233
21234 * sysdeps/aarch64/fpu/fpu_control.h: Add features.h to fix build error.
21235
21236 2018-02-10 Joseph Myers <joseph@codesourcery.com>
21237
21238 * math/Makefile (libm-narrow-fns): Add add.
21239 (libm-test-funcs-narrow): Likewise.
21240 * math/Versions (GLIBC_2.28): Add narrowing add functions.
21241 * math/bits/mathcalls-narrow.h (add): Use __MATHCALL_NARROW .
21242 * math/gen-auto-libm-tests.c (test_functions): Add add.
21243 * math/math-narrow.h (CHECK_NARROW_ADD): New macro.
21244 (NARROW_ADD_ROUND_TO_ODD): Likewise.
21245 (NARROW_ADD_TRIVIAL): Likewise.
21246 * sysdeps/ieee754/float128/float128_private.h (__faddl): New
21247 macro.
21248 (__daddl): Likewise.
21249 * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Add fadd and
21250 dadd.
21251 (CFLAGS-nldbl-dadd.c): New variable.
21252 (CFLAGS-nldbl-fadd.c): Likewise.
21253 * sysdeps/ieee754/ldbl-opt/Versions (GLIBC_2.28): Add
21254 __nldbl_daddl.
21255 * sysdeps/ieee754/ldbl-opt/nldbl-compat.h (__nldbl_daddl): New
21256 prototype.
21257 * manual/arith.texi (Misc FP Arithmetic): Document fadd, faddl,
21258 daddl, fMaddfN, fMaddfNx, fMxaddfN and fMxaddfNx.
21259 * math/auto-libm-test-in: Add tests of add.
21260 * math/auto-libm-test-out-narrow-add: New generated file.
21261 * math/libm-test-narrow-add.inc: New file.
21262 * sysdeps/i386/fpu/s_f32xaddf64.c: Likewise.
21263 * sysdeps/ieee754/dbl-64/s_f32xaddf64.c: Likewise.
21264 * sysdeps/ieee754/dbl-64/s_fadd.c: Likewise.
21265 * sysdeps/ieee754/float128/s_f32addf128.c: Likewise.
21266 * sysdeps/ieee754/float128/s_f64addf128.c: Likewise.
21267 * sysdeps/ieee754/float128/s_f64xaddf128.c: Likewise.
21268 * sysdeps/ieee754/ldbl-128/s_daddl.c: Likewise.
21269 * sysdeps/ieee754/ldbl-128/s_f64xaddf128.c: Likewise.
21270 * sysdeps/ieee754/ldbl-128/s_faddl.c: Likewise.
21271 * sysdeps/ieee754/ldbl-128ibm/s_daddl.c: Likewise.
21272 * sysdeps/ieee754/ldbl-128ibm/s_faddl.c: Likewise.
21273 * sysdeps/ieee754/ldbl-96/s_daddl.c: Likewise.
21274 * sysdeps/ieee754/ldbl-96/s_faddl.c: Likewise.
21275 * sysdeps/ieee754/ldbl-opt/nldbl-dadd.c: Likewise.
21276 * sysdeps/ieee754/ldbl-opt/nldbl-fadd.c: Likewise.
21277 * sysdeps/ieee754/soft-fp/s_daddl.c: Likewise.
21278 * sysdeps/ieee754/soft-fp/s_fadd.c: Likewise.
21279 * sysdeps/ieee754/soft-fp/s_faddl.c: Likewise.
21280 * sysdeps/powerpc/fpu/libm-test-ulps: Update.
21281 * sysdeps/mach/hurd/i386/libm.abilist: Likewise.
21282 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
21283 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
21284 * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
21285 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
21286 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
21287 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
21288 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
21289 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
21290 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
21291 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
21292 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
21293 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
21294 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Likewise.
21295 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist: Likewise.
21296 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Likewise.
21297 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Likewise.
21298 * sysdeps/unix/sysv/linux/riscv/rv64/libm.abilist: Likewise.
21299 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
21300 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
21301 * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
21302 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
21303 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
21304 * sysdeps/unix/sysv/linux/tile/tilegx32/libm.abilist: Likewise.
21305 * sysdeps/unix/sysv/linux/tile/tilegx64/libm.abilist: Likewise.
21306 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
21307 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
21308
21309 * sysdeps/powerpc/powerpc64le/Makefile [$(subdir) = math]
21310 (f128-pairs): New variable.
21311 [$(subdir) = math] ($(foreach suf,$(all-object-suffixes),$(foreach
21312 pair,$(f128-pairs),$(objpfx)test-$(pair)%$(suf)))): Add -mfloat128
21313 to CFLAGS.
21314 [$(subdir) = math] ($(foreach pair,$(f128-pairs),test-$(pair)%)):
21315 Also make tests add $(f128-loader-link) to gnulib-tests.
21316
21317 2018-02-09 DJ Delorie <dj@redhat.com>
21318
21319 [BZ #22827]
21320 * sysdeps/unix/sysv/linux/riscv/readelflib.c (process_elf_file): Use
21321 64-bit ELF type for 64-bit ELF objects.
21322
21323 2018-02-09 Joseph Myers <joseph@codesourcery.com>
21324
21325 * math/libm-test-driver.c (snan_tests_arg): New variable.
21326 * math/libm-test-support.h (snan_tests_arg): New declaration.
21327 * math/libm-test-support.c (enable_test): Check snan_tests_arg.
21328
21329 * math/Makefile (test-type-pairs): New variable.
21330 (test-type-pairs-f64xf128-yes): Likewise.
21331 (tests): Add test-narrow-macros.
21332 (libm-test-funcs-narrow): New variable.
21333 (libm-test-c-narrow): Likewise.
21334 (generated): Add $(libm-test-c-narrow).
21335 (libm-tests-base-narrow): New variable.
21336 (libm-tests-narrow): Likewise.
21337 (libm-tests): Add $(libm-tests-narrow).
21338 (libm-tests-for-type): Handle $(libm-tests-narrow).
21339 (libm-test-c-narrow-obj): New variable.
21340 ($(libm-test-c-narrow-obj)): New rule.
21341 ($(foreach t,$(libm-tests-narrow),$(objpfx)$(t).c)): Likewise.
21342 ($(foreach f,$(libm-test-funcs-narrow),$(objpfx)$(o)-$(f).o)): Use
21343 $(o-iterator) to set dependencies and CFLAGS.
21344 * math/gen-auto-libm-tests.c: Document use for narrowing
21345 functions.
21346 (output_for_one_input_case): Take argument NARROW.
21347 (generate_output): Likewise. Update call to
21348 output_for_one_input_case.
21349 (main): Take --narrow option. Update call to generate_output.
21350 * math/gen-libm-test.pl (_apply_lit): Take macro name as argument.
21351 (apply_lit): Update call to _apply_lit.
21352 (apply_arglit): New function.
21353 (parse_args): Handle "a" arguments.
21354 (parse_auto_input): Handle format names using ":".
21355 * math/README.libm-test: Document "a" parameter type.
21356 * math/libm-test-support.h (ARG_TYPE_MIN): New macro.
21357 (ARG_TYPE_TRUE_MIN): Likewise.
21358 (ARG_TYPE_MAX): Likwise.
21359 (ARG_MIN_EXP): Likewise.
21360 (ARG_MAX_EXP): Likewise.
21361 (ARG_MANT_DIG): Likewise.
21362 (TEST_COND_arg_ibm128): Likewise.
21363 (TEST_COND_ibm128_libgcc): Define conditional on [ARG_FLOAT].
21364 (TEST_COND_arg_fmt): New macro.
21365 (init_max_error): Update prototype.
21366 * math/libm-test-support.c (test_ibm128): New variable.
21367 (init_max_error): Take argument testing_ibm128 and set test_ibm128
21368 instead of using [TEST_COND_ibm128] conditional.
21369 (test_exceptions): Use test_ibm128 instead of TEST_COND_ibm128.
21370 * math/libm-test-driver.c (STR_ARG_FLOAT): New macro.
21371 [TEST_NARROW] (TEST_MSG): New definition.
21372 (arg_plus_zero): New macro.
21373 (arg_minus_zero): Likewise.
21374 (arg_plus_infty): Likewise.
21375 (arg_minus_infty): Likewise.
21376 (arg_qnan_value_pl): Likewise.
21377 (arg_qnan_value): Likewise.
21378 (arg_snan_value_pl): Likewise.
21379 (arg_snan_value): Likewise.
21380 (arg_max_value): Likewise.
21381 (arg_min_value): Likewise.
21382 (arg_min_subnorm_value): Likewise.
21383 [ARG_FLOAT] (struct test_aa_f_data): New struct type.
21384 (RUN_TEST_LOOP_aa_f): New macro.
21385 (TEST_SUFF): New macro.
21386 (TEST_SUFF_STR): Likewise.
21387 [!TEST_MATHVEC] (VEC_SUFF): Don't define.
21388 (TEST_COND_any_ibm128): New macro.
21389 (START): Use TEST_SUFF and TEST_SUFF_STR in initializer for
21390 this_func. Update call to init_max_error.
21391 * math/test-double.h (FUNC_NARROW_PREFIX): New macro.
21392 * math/test-float.h (FUNC_NARROW_PREFIX): Likewise.
21393 * math/test-float128.h (FUNC_NARROW_PREFIX): Likewise.
21394 * math/test-float32.h (FUNC_NARROW_PREFIX): Likewise.
21395 * math/test-float32x.h (FUNC_NARROW_PREFIX): Likewise.
21396 * math/test-float64.h (FUNC_NARROW_PREFIX): Likewise.
21397 * math/test-float64x.h (FUNC_NARROW_PREFIX): Likewise.
21398 * math/test-math-scalar.h (TEST_NARROW): Likewise.
21399 * math/test-math-vector.h (TEST_NARROW): Likewise.
21400 * math/test-arg-double.h: New file.
21401 * math/test-arg-float128.h: Likewise.
21402 * math/test-arg-float32x.h: Likewise.
21403 * math/test-arg-float64.h: Likewise.
21404 * math/test-arg-float64x.h: Likewise.
21405 * math/test-arg-ldouble.h: Likewise.
21406 * math/test-math-narrow.h: Likewise.
21407 * math/test-narrow-macros.c: Likewise.
21408 * sysdeps/ieee754/ldbl-opt/test-narrow-macros-ldbl-64.c: Likewise.
21409 * sysdeps/ieee754/ldbl-opt/Makefile (tests): Add
21410 test-narrow-macros-ldbl-64.
21411 (CFLAGS-test-narrow-macros-ldbl-64.c): New variable.
21412
21413 * math/bits/mathcalls-narrow.h: New file.
21414 * include/bits/mathcalls-narrow.h: Likewise.
21415 * math/math-narrow.h: Likewise.
21416 * math/math.h (__MATHCALL_NARROW_ARGS_1): New macro.
21417 (__MATHCALL_NARROW_ARGS_2): Likewise.
21418 (__MATHCALL_NARROW_ARGS_3): Likewise.
21419 (__MATHCALL_NARROW_NORMAL): Likewise.
21420 (__MATHCALL_NARROW_REDIR): Likewise.
21421 (__MATHCALL_NARROW): Likewise.
21422 [__GLIBC_USE (IEC_60559_BFP_EXT)]: Repeatedly include
21423 <bits/mathcalls-narrow.h> with _Mret_, _Marg_ and __MATHCALL_NAME
21424 defined.
21425 [__GLIBC_USE (IEC_60559_TYPES_EXT)]: Likewise.
21426 * math/Makefile (headers): Add bits/mathcalls-narrow.h.
21427 (libm-narrow-fns): New variable.
21428 (libm-narrow-types-basic): Likewise.
21429 (libm-narrow-types-ldouble-yes): Likewise.
21430 (libm-narrow-types-float128-yes): Likewise.
21431 (libm-narrow-types-float128-alias-yes): Likewise.
21432 (libm-narrow-types): Likewise.
21433 (libm-routines): Add narrowing functions.
21434 * sysdeps/i386/fpu/fenv_private.h [__x86_64__]
21435 (libc_feholdexcept_setroundf128): New macro.
21436 [__x86_64__] (libc_feupdateenv_testf128): Likewise.
21437 * sysdeps/ieee754/float128/float128_private.h: Include
21438 <math/math-narrow.h>.
21439 [libc_feholdexcept_setroundf128] (libc_feholdexcept_setroundl):
21440 Undefine and redefine.
21441 [libc_feupdateenv_testf128] (libc_feupdateenv_testl): Likewise.
21442 (libm_alias_float_ldouble): Undefine and redefine.
21443 (libm_alias_double_ldouble): Likewise.
21444
21445 * math/Makefile [$(PERL) != no] (libm-test-incs): Remove variable.
21446
21447 2018-02-09 Wilco Dijkstra <wdijkstr@arm.com>
21448
21449 * sysdeps/aarch64/fpu/fpu_control.h: Use builtins for accessing
21450 FPCR/FPSR.
21451
21452 2018-02-09 Rical Jasan <ricaljasan@pacific.net>
21453
21454 * manual/creature.texi: Convert references to gcc.info to gcc.
21455 * manual/stdio.texi: Likewise.
21456 * manual/string.texi: Likewise.
21457
21458 2018-02-07 Joseph Myers <joseph@codesourcery.com>
21459
21460 [BZ #17979]
21461 * posix/bits/types.h (__int_least8_t): New typedef.
21462 (__uint_least8_t): Likewise.
21463 (__int_least16_t): Likewise.
21464 (__uint_least16_t): Likewise.
21465 (__int_least32_t): Likewise.
21466 (__uint_least32_t): Likewise.
21467 (__int_least64_t): Likewise.
21468 (__uint_least64_t): Likewise.
21469 * sysdeps/generic/stdint.h (int_least8_t): Define using
21470 __int_least8_t.
21471 (int_least16_t): Define using __int_least16_t.
21472 (int_least32_t): Define using __int_least32_t.
21473 (int_least64_t): Define using __int_least64_t.
21474 (uint_least8_t): Define using __uint_least8_t.
21475 (uint_least16_t): Define using __uint_least16_t.
21476 (uint_least32_t): Define using __uint_least32_t.
21477 (uint_least64_t): Define using __uint_least64_t.
21478 * wcsmbs/uchar.h: Include <bits/types.h>.
21479 (char16_t): Define using __uint_least16_t conditional only on
21480 [!__USE_ISOCXX11].
21481 (char32_t): Define using __uint_least32_t conditional only on
21482 [!__USE_ISOCXX11].
21483 * wcsmbs/test-char-types.c: New file.
21484 * wcsmbs/Makefile (tests): Add test-char-types.
21485
21486 * scripts/build-many-glibcs.py (Context.checkout): Default MPFR
21487 version to 4.0.1.
21488
21489 2018-02-07 Zack Weinberg <zackw@panix.com>
21490
21491 * bits/_G_config.h: Move back to sysdeps/generic/_G_config.h.
21492 Delete all contents except for definitions of _G_HAVE_MMAP and
21493 _G_HAVE_MREMAP. Add commentary explaining those two symbols.
21494 * sysdeps/unix/sysv/linux/bits/_G_config.h: Move back to
21495 sysdeps/unix/sysv/linux/_G_config.h. Make same content
21496 change as above.
21497
21498 * libio/libio.h: Don't include bits/_G_config.h here.
21499 Include stddef.h with __need_wchar_t defined. Include
21500 bits/types/__mbstate_t.h, bits/types/wint_t.h, and gconv.h.
21501 Define _IO_iconv_t here, directly.
21502 Don't define _IO_HAVE_ST_BLKSIZE.
21503 * libio/libioP.h: Include _G_config.h here. Move include of
21504 shlib-compat.h up with rest of includes. Simplify conditionals
21505 controlling definition of _IO_JUMPS_OFFSET.
21506
21507 * csu/init.c: Remove always-true #if around entire file.
21508 Don't include stdio.h. Set _IO_stdin_used to hardwired
21509 constant 0x20001, and update commentary.
21510 * include/stdio.h, sysdeps/ieee754/ldbl-opt/nldbl-compat.h:
21511 Replace all uses of _G_va_list with __gnuc_va_list.
21512 * libio/filedoalloc.c: Use #if defined _STATBUF_ST_BLKSIZE
21513 instead of #if _IO_HAVE_ST_BLKSIZE.
21514 * libio/fileops.c: Test _G_HAVE_MREMAP with #if, not #ifdef.
21515 * libio/iofdopen.c, libio/iofopen.c: Test _G_HAVE_MMAP with #if,
21516 not #ifdef.
21517
21518 * libio/bits/libio.h: Move back to libio/libio.h and adjust
21519 multiple-include guard to match.
21520 Merge contents of libio/bits/libio-ldbl.h and include/libio.h
21521 into this file.
21522 Remove preprocessor conditionals that are always true and/or
21523 redundant to other preprocessor conditionals in the same nest.
21524 Include shlib-compat.h unconditionally.
21525 Error out if _LIBC is not defined, or if _ISOMAC is defined,
21526 or if _IO_MTSAFE_IO is defined but _IO_lock_t_defined is not
21527 defined after including stdio.h.
21528 Use __BEGIN_DECLS/__END_DECLS.
21529
21530 * libio/bits/libio-ldbl.h, include/bits/libio.h: Delete file.
21531 * include/stdio.h, libio/iolibio.h, libio/libioP.h: Include
21532 libio.h as <libio/libio.h> rather than as <bits/libio.h>.
21533
21534 2018-02-07 Zack Weinberg <zackw@panix.com>
21535
21536 * libio/bits/types/__fpos_t.h, libio/bits/types/__fpos64_t.h:
21537 New single-type headers split from _G_config.h.
21538 * libio/bits/types/cookie_io_functions_t.h
21539 * libio/bits/types/struct_FILE.h
21540 New single-type headers split from libio.h.
21541
21542 * libio/Makefile: Install the above new headers. Don't install
21543 libio.h, _G_config.h, bits/libio.h, bits/_G_config.h, or
21544 bits/libio-ldbl.h.
21545 * libio/_G_config.h, libio/libio.h: Delete file.
21546
21547 * libio/bits/libio.h: Remove improper-inclusion guard.
21548 Include stdio.h and don't repeat anything that it does.
21549 Define _IO_fpos_t as __fpos_t, _IO_fpos64_t as __fpos64_t,
21550 _IO_BUFSIZ as BUFSIZ, _IO_va_list as __gnuc_va_list,
21551 __io_read_fn as cookie_read_function_t,
21552 __io_write_fn as cookie_write_function_t,
21553 __io_seek_fn as cookie_seek_function_t,
21554 __io_close_fn as cookie_close_function_t,
21555 and _IO_cookie_io_functions_t as cookie_io_functions_t.
21556 Define _STDIO_USES_IOSTREAM, __HAVE_COLUMN, and _IO_file_flags
21557 here, in the "compatibility defines" section. Remove an #if 0
21558 block. Use the "body" macros from bits/types/struct_FILE.h to
21559 define _IO_getc_unlocked, _IO_putc_unlocked, _IO_feof_unlocked,
21560 and _IO_ferror_unlocked.
21561 Move prototypes of __uflow and __overflow...
21562
21563 * libio/stdio.h: ...here. Don't include bits/libio.h.
21564 Don't define _STDIO_USES_IOSTREAM. Get __gnuc_va_list
21565 directly from stdarg.h. Include bits/types/__fpos_t.h,
21566 bits/types/__fpos64_t.h, bits/types/struct_FILE.h,
21567 and, when __USE_GNU, bits/types/cookie_io_functions_t.h.
21568 Use __gnuc_va_list, not _G_va_list; __fpos_t, not _G_fpos_t;
21569 __fpos64_t, not _G_fpos64_t; FILE, not struct _IO_FILE;
21570 cookie_io_functions_t, not _IO_cookie_io_functions_t;
21571 __ssize_t, not _IO_ssize_t. Unconditionally define
21572 BUFSIZ as 8192 and EOF as (-1).
21573
21574 * libio/bits/stdio.h: Add multiple-include guard. Use the "body"
21575 macros from bits/types/struct_FILE.h instead of _IO_* macros
21576 from libio.h; use __gnuc_va_list instead of va_list and __ssize_t
21577 instead of _IO_ssize_t.
21578 * libio/bits/stdio2.h: Similarly.
21579
21580 * libio/iolibio.h: Add multiple-include guard.
21581 Include bits/libio.h after stdio.h.
21582 * libio/libioP.h: Add multiple-include guard.
21583 Include stdio.h and bits/libio.h before iolibio.h.
21584
21585 * include/bits/types/__fpos_t.h, include/bits/types/__fpos64_t.h
21586 * include/bits/types/cookie_io_functions_t.h
21587 * include/bits/types/struct_FILE.h: New wrappers.
21588
21589 * bits/_G_config.h, sysdeps/unix/sysv/linux/_G_config.h:
21590 Get definitions of _G_fpos_t and _G_fpos64_t from
21591 bits/types/__fpos_t.h and bits/types/__fpos64_t.h
21592 respectively. Remove improper-inclusion guards.
21593
21594 * conform/data/stdio.h-data: Update expectations of va_list.
21595 * scripts/check-installed-headers.sh: Remove special case for
21596 libio.h and _G_config.h.
21597
21598 2018-02-07 Joseph Myers <joseph@codesourcery.com>
21599
21600 [BZ #15105]
21601 [BZ #19463]
21602 * include/sys/sysmacros.h [!_ISOMAC]
21603 (__SYSMACROS_NEED_IMPLEMENTATION): Define macro.
21604 [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC]
21605 (_SYS_SYSMACROS_H_WRAPPER): Likewise.
21606 [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC] (gnu_dev_major): Use
21607 libc_hidden_proto.
21608 [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC] (gnu_dev_minor): Likewise.
21609 [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC] (gnu_dev_makedev):
21610 Likewise.
21611 [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC] (__SYSMACROS_DECL_TEMPL):
21612 Undefine and redefine to add use __gnu_dev_ prefix.
21613 [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC] (__SYSMACROS_IMPL_TEMPL):
21614 Likewise.
21615 [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC] (__gnu_dev_major): Declare
21616 and define as hidden inline function.
21617 [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC] (__gnu_dev_minor):
21618 Likewise.
21619 [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC] (__gnu_dev_makedev):
21620 Likewise.
21621 * misc/makedev.c (OUT_OF_LINE_IMPL_TEMPL): Use __gnu_dev_ prefix.
21622 (gnu_dev_major): Use weak_alias and libc_hidden_weak.
21623 (gnu_dev_minor): Likewise.
21624 (gnu_dev_makedev): Likewise.
21625 * csu/check_fds.c (check_one_fd): Use __gnu_dev_makedev instead of
21626 makedev.
21627 * posix/wordexp.c (exec_comm_child): Likewise.
21628 * sysdeps/mach/hurd/xmknodat.c (__xmknodat): Use __gnu_dev_minor
21629 instead of minor and __gnu_dev_major instead of major.
21630 * sysdeps/unix/sysv/linux/device-nrs.h (DEV_TTY_P): Use
21631 __gnu_dev_major instead of major.
21632 * sysdeps/unix/sysv/linux/pathconf.c (distinguish_extX): Use
21633 __gnu_dev_major instead of gnu_dev_major and __gnu_dev_minor
21634 instead of gnu_dev_minor.
21635 * sysdeps/unix/sysv/linux/ptsname.c (MASTER_P): Likewise.
21636 (SLAVE_P): Likewise.
21637 (__ptsname_internal): Use __gnu_dev_minor instead of minor.
21638 * sysdeps/unix/sysv/linux/ttyname.h (is_pty): Use __gnu_dev_major
21639 instead of major.
21640
21641 [BZ #21313]
21642 * locale/weight.h (findidx): Disable -Wmaybe-uninitialized for -Os
21643 in another place.
21644 * locale/weightwc.h (findidx): Likewise.
21645
21646 2018-02-07 Wilco Dijkstra <wdijkstr@arm.com>
21647
21648 * manual/probes.texi (slowlog): Delete documentation of removed probe.
21649 (slowlog_inexact): Likewise
21650 * sysdeps/ieee754/dbl-64/e_log.c (__ieee754_log): Remove slow paths.
21651 * sysdeps/ieee754/dbl-64/ulog.h: Remove unused declarations.
21652
21653 2018-02-07 Igor Gnatenko <ignatenko@redhat.com>
21654
21655 [BZ #22797]
21656 * sysdeps/unix/sysv/linux/bits/mman-shared.h (pkey_get): Add
21657 missing second underscore to parameter name.
21658
21659 2018-02-06 Joseph Myers <joseph@codesourcery.com>
21660
21661 [BZ #14508]
21662 [BZ #15512]
21663 [BZ #17082]
21664 [BZ #20530]
21665 * bits/byteswap.h: Update file comment. Do not include
21666 <bits/byteswap-16.h>.
21667 (__bswap_constant_16): Cast result to __uint16_t. Use signed 0xff
21668 constant.
21669 (__bswap_16): Define as inline function.
21670 (__bswap_constant_32): Reformat definition.
21671 (__bswap_32): Always define as inline function, not macro, using
21672 __uint32_t. Use __builtin_bswap32 if [__GNUC_PREREQ (4, 3)],
21673 otherwise __bswap_constant_32.
21674 (__bswap_constant_64): Reformat definition. Do not use
21675 __extension__ here.
21676 (__bswap_64): Always define as inline function, not macro. Use
21677 __extension__ on function definition. Use __builtin_bswap64 if
21678 [__GNUC_PREREQ (4, 3)], otherwise __bswap_constant_64.
21679 * string/test-endian-file-scope.c: New file.
21680 * string/test-endian-sign-conversion.c: Likewise.
21681 * string/Makefile (headers): Remove bits/byteswap-16.h.
21682 (tests): Add test-endian-file-scope and
21683 test-endian-sign-conversion.
21684 (CFLAGS-test-endian-sign-conversion.c): New variable.
21685 * bits/byteswap-16.h: Remove file.
21686 * sysdeps/ia64/bits/byteswap-16.h: Likewise.
21687 * sysdeps/ia64/bits/byteswap.h: Likewise.
21688 * sysdeps/m68k/bits/byteswap.h: Likewise.
21689 * sysdeps/s390/bits/byteswap-16.h: Likewise.
21690 * sysdeps/s390/bits/byteswap.h: Likewise.
21691 * sysdeps/tile/bits/byteswap.h: Likewise.
21692 * sysdeps/x86/bits/byteswap-16.h: Likewise.
21693 * sysdeps/x86/bits/byteswap.h: Likewise.
21694
21695 [BZ #17721]
21696 * misc/sys/cdefs.h [!__GNUC__ && (__cplusplus || (__STDC_VERSION__
21697 && __STDC_VERSION__ >= 199901L))] (__inline): Define to inline.
21698 [!__GNUC_PREREQ (2,92) && __STDC_VERSION__ && __STDC_VERSION__ >=
21699 199901L] (__restrict): Define to restrict.
21700
21701 [BZ #19667]
21702 * string/testcopy.c: Include <support/support.h>. Do not include
21703 <malloc.h>. Use <support/test-driver.c>.
21704 (main): Rename to do_test. Make static. Use xmalloc instead of
21705 malloc.
21706
21707 [BZ #13575]
21708 * posix/bits/posix1_lim.h: Include <bits/wordsize.h>.
21709 [!SSIZE_MAX && !(__WORDSIZE == 64 || __WORDSIZE32_SIZE_ULONG)]
21710 (SSIZE_MAX): Define to INT_MAX.
21711 * posix/test-ssize-max.c: New file.
21712 * posix/Makefile (tests): Add test-ssize-max.
21713
21714 [BZ #19668]
21715 * sysdeps/powerpc/fpu/tst-setcontext-fpscr.c: Include
21716 <support/support.h>. Do not include <malloc.h>.
21717 (query_auxv): Use xmalloc instead of malloc.
21718
21719 [BZ #14553]
21720 * posix/sys/types.h (loff_t): Only define for [__USE_MISC].
21721 * sysdeps/unix/sysv/linux/sys/quota.h (dqoff): Use __loff_t
21722 instead of loff_t.
21723
21724 2018-02-06 Florian Weimer <fweimer@redhat.com>
21725
21726 [BZ #18023]
21727 * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
21728 Use scratch_buffer instead of extend_alloca.
21729
21730 2018-02-06 Zack Weinberg <zackw@panix.com>
21731
21732 * libio/stdio.h: Don't define getc or putc as macros.
21733 * libio/bits/stdio.h (getchar, putchar): Use getc and putc,
21734 not _IO_getc and _IO_putc.
21735
21736 * stdio-common/tstgetln.c: Don't redefine FILE, va_list, or BUFSIZ.
21737 * stdio-common/tstgetln.c: Don't redefine ssize_t.
21738
21739 2018-02-06 Joseph Myers <joseph@codesourcery.com>
21740
21741 * sysdeps/gnu/netinet/tcp.h (TCP_FASTOPEN_KEY): New macro.
21742 (TCP_FASTOPEN_NO_COOKIE): Likewise.
21743
21744 * sysdeps/unix/sysv/linux/bits/in.h (IPV6_FREEBIND): New macro.
21745
21746 [BZ #14890]
21747 * elf/elf.h (NT_PRFPREG): New macro.
21748 (NT_S390_VXRS_LOW): Likewise.
21749 (NT_S390_VXRS_HIGH): Likewise.
21750 (NT_S390_GS_CB): Likewise.
21751 (NT_S390_GS_BC): Likewise.
21752 (NT_S390_RI_CB): Likewise.
21753
21754 * sysdeps/unix/sysv/linux/aarch64/bits/mman.h [__USE_MISC]
21755 (MAP_SYNC): New macro.
21756 * sysdeps/unix/sysv/linux/arm/bits/mman.h [__USE_MISC] (MAP_SYNC):
21757 Likewise.
21758 * sysdeps/unix/sysv/linux/ia64/bits/mman.h [__USE_MISC]
21759 (MAP_SYNC): Likewise.
21760 * sysdeps/unix/sysv/linux/m68k/bits/mman.h [__USE_MISC]
21761 (MAP_SYNC): Likewise.
21762 * sysdeps/unix/sysv/linux/microblaze/bits/mman.h [__USE_MISC]
21763 (MAP_SYNC): Likewise.
21764 * sysdeps/unix/sysv/linux/nios2/bits/mman.h [__USE_MISC]
21765 (MAP_SYNC): Likewise.
21766 * sysdeps/unix/sysv/linux/riscv/bits/mman.h [__USE_MISC]
21767 (MAP_SYNC): Likewise.
21768 * sysdeps/unix/sysv/linux/s390/bits/mman.h [__USE_MISC]
21769 (MAP_SYNC): Likewise.
21770 * sysdeps/unix/sysv/linux/sh/bits/mman.h [__USE_MISC] (MAP_SYNC):
21771 Likewise.
21772 * sysdeps/unix/sysv/linux/x86/bits/mman.h [__USE_MISC] (MAP_SYNC):
21773 Likewise.
21774
21775 * sysdeps/unix/sysv/linux/bits/mman-linux.h [__USE_MISC]
21776 (MAP_SHARED_VALIDATE): New macro.
21777 * sysdeps/unix/sysv/linux/hppa/bits/mman.h [__USE_MISC]
21778 (MAP_SHARED_VALIDATE): Likewise.
21779
21780 2018-02-05 H.J. Lu <hongjiu.lu@intel.com>
21781
21782 * elf/dl-addr.c (determine_info): Use ADDRIDX with DT_GNU_HASH.
21783 * elf/dl-lookup.c (_dl_setup_hash): Likewise.
21784 * elf/get-dynamic-info.h (elf_get_dynamic_info): Likewise.
21785
21786 2018-02-05 H.J. Lu <hongjiu.lu@intel.com>
21787
21788 * elf/elf.h (DT_SYMTAB_SHNDX): New. Set to 34.
21789 (DT_NUM): Updated to 35.
21790
21791 2018-02-05 H.J. Lu <hongjiu.lu@intel.com>
21792
21793 * sysdeps/i386/dl-machine.h (elf_machine_rel): Replace
21794 __builtin_expect with __glibc_likely and __glibc_unlikely.
21795 (elf_machine_rela): Likewise.
21796 (elf_machine_lazy_rel): Likewise.
21797
21798 2018-02-05 H.J. Lu <hongjiu.lu@intel.com>
21799
21800 * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Replace
21801 __builtin_expect with __glibc_likely and __glibc_unlikely.
21802 (elf_machine_lazy_rel): Likewise.
21803
21804 2018-02-05 H.J. Lu <hongjiu.lu@intel.com>
21805
21806 [BZ #22638]
21807 * sysdeps/sparc/sparc32/start.S (_start): Check PIC instead of
21808 SHARED.
21809 * sysdeps/sparc/sparc64/start.S (_start): Likewise.
21810
21811 2018-02-05 Andreas Schwab <schwab@suse.de>
21812
21813 [BZ #22761]
21814 * assert/assert-perr.c (__assert_perror_fail): Append %n to format
21815 string.
21816
21817 2018-02-04 Samuel Thibault <samuel.thibault@ens-lyon.org>
21818
21819 * stdlib/test-atexit-race-common.c [!defined PTHREAD_STACK_MIN]: Do
21820 not check against PTHREAD_STACK_MIN.
21821
21822 2018-02-02 Sean McKean <smckean83@gmail.com>
21823
21824 [BZ #22735]
21825 * time/time.h (clock): Reference CLOCKS_PER_SEC in comment.
21826
21827 2018-02-02 Florian Weimer <fweimer@redhat.com>
21828
21829 [BZ #22753]
21830 * sysdeps/posix/preadv2.c (preadv2): Handle offset == -1.
21831 * sysdeps/posix/preadv64v2.c (preadv64v2): Likewise.
21832 * sysdeps/posix/pwritev2.c (pwritev2): Likewise.
21833 * sysdeps/posix/pwritev64v2.c (pwritev64v2): Likweise.
21834 * sysdeps/unix/sysv/linux/preadv2.c (preadv2): Likewise.
21835 * sysdeps/unix/sysv/linux/preadv64v2.c (preadv64v2): Likewise.
21836 * sysdeps/unix/sysv/linux/pwritev2.c (pwritev2): Likewise.
21837 * sysdeps/unix/sysv/linux/pwritev64v2.c (pwritev64v2): Likweise.
21838 * manual/llio.texi (Scatter-Gather): Mention offset -1.
21839 * misc/tst-preadvwritev-common.c (do_test_without_offset): New.
21840 * misc/tst-preadvwritev2.c (do_test): Call it.
21841 * misc/tst-preadvwritev64v2.c (do_test): Likewise.
21842
21843 2018-02-02 Siddhesh Poyarekar <siddhesh@sourceware.org>
21844
21845 * sysdeps/aarch64/memcmp.S: Use L() macro for labels.
21846
21847 * benchtests/bench-memcmp.c: Print json instead of plain text.
21848
21849 * benchtests/bench-memcmp.c (do_test): Call realloc_buf for
21850 every test run.
21851
21852 2018-02-01 Joseph Myers <joseph@codesourcery.com>
21853
21854 * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
21855 version to 4.15.
21856 (s390_sthyi): New syscall.
21857
21858 * sysdeps/generic/ldbl-classify-compat.h: New file.
21859 * sysdeps/arm/ldbl-classify-compat.h: Likewise.
21860 * sysdeps/m68k/coldfire/ldbl-classify-compat.h: Likewise.
21861 * sysdeps/microblaze/ldbl-classify-compat.h: Likewise.
21862 * sysdeps/mips/ldbl-classify-compat.h: Likewise.
21863 * sysdeps/nios2/ldbl-classify-compat.h: Likewise.
21864 * sysdeps/sh/ldbl-classify-compat.h: Likewise.
21865 * sysdeps/ieee754/dbl-64/s_finite.c: Include
21866 <ldbl-classify-compat.h>.
21867 [LDBL_CLASSIFY_COMPAT]: Test value, not whether defined.
21868 * sysdeps/ieee754/dbl-64/s_isinf.c: Include
21869 <ldbl-classify-compat.h>.
21870 [LDBL_CLASSIFY_COMPAT]: Test value, not whether defined.
21871 * sysdeps/ieee754/dbl-64/s_isnan.c: Include
21872 <ldbl-classify-compat.h>.
21873 [LDBL_CLASSIFY_COMPAT]: Test value, not whether defined.
21874 * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: Include
21875 <ldbl-classify-compat.h>.
21876 [LDBL_CLASSIFY_COMPAT]: Test value, not whether defined.
21877 * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf.c: Include
21878 <ldbl-classify-compat.h>.
21879 [LDBL_CLASSIFY_COMPAT]: Test value, not whether defined.
21880 * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Include
21881 <ldbl-classify-compat.h>.
21882 [LDBL_CLASSIFY_COMPAT]: Test value, not whether defined.
21883 * sysdeps/arm/math_private.h (LDBL_CLASSIFY_COMPAT): Remove macro.
21884 * sysdeps/mips/math_private.h (LDBL_CLASSIFY_COMPAT): Likewise.
21885 * sysdeps/m68k/coldfire/math_private.h: Remove file.
21886 * sysdeps/microblaze/math_private.h: Likewise.
21887 * sysdeps/nios2/math_private.h: Likewise.
21888 * sysdeps/sh/math_private.h: Likewise.
21889
21890 * sysdeps/m68k/coldfire/fpu/math_private.h: Move to ....
21891 * sysdeps/m68k/coldfire/math_private.h: ... here.
21892 * sysdeps/m68k/coldfire/nofpu/math_private.h: Remove file.
21893 * sysdeps/tile/math_private.h: Likewise.
21894 * sysdeps/microblaze/math_private.h (libc_feholdexcept_setround):
21895 Remove macro.
21896 * sysdeps/nios2/math_private.h (libc_feholdexcept_setround):
21897 Likewise.
21898
21899 * sysdeps/m68k/coldfire/nofpu/math_private.h (libc_fesetround):
21900 Remove macro.
21901 (libc_fetestexcept): Likewise.
21902 (libc_feupdateenv_test): Likewise.
21903 * sysdeps/microblaze/math_private.h (libc_fesetround): Likewise.
21904 (libc_fetestexcept): Likewise.
21905 (libc_feupdateenv_test): Likewise.
21906 * sysdeps/nios2/math_private.h (libc_fesetround): Likewise.
21907 (libc_fetestexcept): Likewise.
21908 (libc_feupdateenv_test): Likewise.
21909 * sysdeps/tile/math_private.h (libc_fesetround): Likewise.
21910 (libc_fetestexcept): Likewise.
21911 (libc_feupdateenv_test): Likewise.
21912
21913 * sysdeps/generic/math_private.h
21914 [!FE_HAVE_ROUNDING_MODES && FE_ALL_EXCEPT == 0] (feholdexcept):
21915 New inline function.
21916 [!FE_HAVE_ROUNDING_MODES && FE_ALL_EXCEPT == 0] (__feholdexcept):
21917 Likewise.
21918
21919 * include/fenv.h [!_ISOMAC && !FE_TONEAREST]: Give #error.
21920 [!_ISOMAC] (FE_HAVE_ROUNDING_MODES): New macro.
21921 * sysdeps/generic/math_private.h
21922 [!FE_HAVE_ROUNDING_MODES && FE_ALL_EXCEPT == 0] (fegetenv): New
21923 inline function.
21924 [!FE_HAVE_ROUNDING_MODES && FE_ALL_EXCEPT == 0] (__fegetenv):
21925 Likewise.
21926 [!FE_HAVE_ROUNDING_MODES && FE_ALL_EXCEPT == 0] (fesetenv):
21927 Likewise.
21928 [!FE_HAVE_ROUNDING_MODES && FE_ALL_EXCEPT == 0] (__fesetenv):
21929 Likewise.
21930 [!FE_HAVE_ROUNDING_MODES && FE_ALL_EXCEPT == 0] (feupdateenv):
21931 Likewise.
21932 [!FE_HAVE_ROUNDING_MODES && FE_ALL_EXCEPT == 0] (__feupdateenv):
21933 Likewise.
21934 [!FE_HAVE_ROUNDING_MODES] (fegetround): Likewise.
21935 [!FE_HAVE_ROUNDING_MODES] (__fegetround): Likewise.
21936 [!FE_HAVE_ROUNDING_MODES] (fesetround): Likewise.
21937 [!FE_HAVE_ROUNDING_MODES] (__fesetround): Likewise.
21938 * sysdeps/tile/math_private.h (fegetenv): Remove inline function.
21939 (__fegetenv): Likewise.
21940 (fesetenv): Likewise.
21941 (__fesetenv): Likewise.
21942 (feupdateenv): Likewise.
21943 (__feupdateenv): Likewise.
21944 (fegetround): Likewise.
21945 (__fegetround): Likewise.
21946 (fesetround): Likewise.
21947 (__fesetround): Likewise.
21948
21949 * sysdeps/generic/math_private.h [FE_ALL_EXCEPT == 0]
21950 (feraiseexcept): New macro.
21951 [FE_ALL_EXCEPT == 0] (__feraiseexcept): Likewise.
21952 * sysdeps/m68k/coldfire/nofpu/math_private.h (feraiseexcept):
21953 Remove macro.
21954 (__feraiseexcept): Likewise.
21955 (feclearexcept): Likewise.
21956 * sysdeps/microblaze/math_private.h (feraiseexcept): Likewise.
21957 (__feraiseexcept): Likewise.
21958 (feclearexcept): Likewise.
21959 * sysdeps/nios2/math_private.h (feraiseexcept): Likewise.
21960 (__feraiseexcept): Likewise.
21961 (feclearexcept): Likewise.
21962 * sysdeps/tile/math_private.h (feraiseexcept): Likewise.
21963 (__feraiseexcept): Likewise.
21964 (feclearexcept): Likewise.
21965 (fetestexcept): Likewise.
21966
21967 * sysdeps/m68k/coldfire/math-tests.h: New file.
21968
21969 * sysdeps/m68k/fpu/bits/fenv.h: Move to ....
21970 * sysdeps/m68k/bits/fenv.h: ... here.
21971 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_INEXACT): Do
21972 not define.
21973 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_DIVBYZERO):
21974 Likewise.
21975 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_UNDERFLOW):
21976 Likewise.
21977 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_OVERFLOW):
21978 Likewise.
21979 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_INVALID):
21980 Likewise.
21981 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_ALL_EXCEPT):
21982 Define to 0.
21983 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__]
21984 (__FE_UNDEFINED): New enum constant.
21985 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_TOWARDZERO):
21986 Do not define.
21987 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_DOWNWARD):
21988 Likewise.
21989 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_UPWARD):
21990 Likewise.
21991 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (fenv_t): Define
21992 to match generic bits/fenv.h.
21993 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_NOMASK_ENV):
21994 Do not define.
21995
21996 * soft-fp/double.h (union _FP_UNION_D): Do not use attribute
21997 packed on bits.
21998 * soft-fp/extended.h (union _FP_UNION_E): Likewise.
21999 * soft-fp/half.h (union _FP_UNION_H): Likewise.
22000 * soft-fp/quad.h (union _FP_UNION_Q): Likewise.
22001 * soft-fp/single.h (union _FP_UNION_S): Likewise.
22002
22003 2018-02-01 Carlos O'Donell <carlos@redhat.com>
22004 Ramin Seyed-Moussavi <lordrasmus@gmail.com>
22005 Joseph Myers <joseph@codesourcery.com>
22006
22007 [BZ #21314]
22008 * sysdeps/ieee754/dbl-64/s_log1p.c: Include <libc-diag.h>.
22009 (__log1p): Disable -Wmaybe-uninitialized for -Os around
22010 computation using c.
22011 * sysdeps/ieee754/flt-32/s_log1pf.c: Include <libc-diag.h>.
22012 (__log1pf): Disable -Wmaybe-uninitialized for -Os around
22013 computation using c.
22014
22015 2018-02-01 Dmitry V. Levin <ldv@altlinux.org>
22016
22017 * version.h (RELEASE): Set to "development".
22018 (VERSION): Set to "2.27.9000".
22019 * NEWS (2.28): New section.
22020
22021 * version.h (RELEASE): Set to "stable".
22022 (VERSION): Set to "2.27".
22023 * include/features.h (__GLIBC_MINOR__): Set to 2.27.
22024
22025 * NEWS: Add the list of bugs fixed in 2.27.
22026
22027 2018-02-01 Adhemerval Zanella <adhemerval.zanella@linaro.org>
22028
22029 * stdlib/test-atexit-race-common.c (do_test): Check stack size
22030 against PTHREAD_STACK_MIN.
22031
22032 2018-02-01 Dmitry V. Levin <ldv@altlinux.org>
22033
22034 * manual/contrib.texi (Palmer Dabbelt, Arjun Shankar, Florian Weimer):
22035 New entries.
22036 (Rafał Lużyński, Andreas Schwab): Update.
22037
22038 2018-02-01 Rafał Lużyński <digitalfreak@lingonborough.com>
22039
22040 [BZ #10871]
22041 * NEWS: List the languages which actually use the alternative
22042 months feature in this release. Also explain that "alt_mon" and
22043 "ab_alt_mon" are optional.
22044
22045 2018-01-31 Il'ya Malakhov <ilmalakhov@yandex.ru>
22046
22047 [BZ #22765]
22048 * crypt/badsalttest.c (do_test): Set cd.initialized to 0.
22049
22050 2018-01-31 Dmitry V. Levin <ldv@altlinux.org>
22051
22052 * manual/install.texi (Tools for Compilation): Update the newest
22053 versions of gcc, binutils, texinfo, gawk, bison, and sed.
22054 * INSTALL: Regenerated.
22055
22056 2018-01-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
22057
22058 * sysdeps/pthread/allocalim.h (__libc_use_alloca): Use __glibc_likely
22059 instead of __builtin_expect.
22060
22061 2018-01-30 Florian Weimer <fweimer@redhat.com>
22062
22063 * nss/bug17079.c (do_test): Use nss_files only for reading passwd
22064 data.
22065 * nss/tst-nss-getpwent.c (do_test): Likewise.
22066
22067 2018-01-30 Rafał Lużyński <digitalfreak@lingonborough.com>
22068
22069 [BZ #10871]
22070 * localedata/locales/hr_HR (mon): Rename to...
22071 (alt_mon): This.
22072 (mon): Import from CLDR (genitive case).
22073 (d_t_fmt): Update the comment.
22074
22075 2018-01-29 Andreas Schwab <schwab@linux-m68k.org>
22076
22077 * sysdeps/posix/fpathconf.c (__fpathconf): Verify the values of
22078 _POSIX_CHOWN_RESTRICTED, _POSIX_NO_TRUNC, _POSIX_VDISABLE.
22079 * sysdeps/posix/pathconf.c (__pathconf): Likewise.
22080
22081 2018-01-29 Samuel Thibault <samuel.thibault@ens-lyon.org>
22082
22083 * mach/Versions: Fix version when __mach_host_self_ was added.
22084 * hurd/Versions: Fix version when _hurd_exec_paths was added.
22085 * sysdeps/mach/hurd/i386/ld.abilist: New file.
22086 * sysdeps/mach/hurd/i386/libBrokenLocale.abilist: New file.
22087 * sysdeps/mach/hurd/i386/libanl.abilist: New file.
22088 * sysdeps/mach/hurd/i386/libc.abilist: New file.
22089 * sysdeps/mach/hurd/i386/libcrypt.abilist: New file.
22090 * sysdeps/mach/hurd/i386/libdl.abilist: New file.
22091 * sysdeps/mach/hurd/i386/libm.abilist: New file.
22092 * sysdeps/mach/hurd/i386/libnsl.abilist: New file.
22093 * sysdeps/mach/hurd/i386/libresolv.abilist: New file.
22094 * sysdeps/mach/hurd/i386/librt.abilist: New file.
22095 * sysdeps/mach/hurd/i386/libutil.abilist: New file.
22096 * sysdeps/pthread/allocalim.h (__libc_use_alloca): Commute operands of
22097 || to respect codestyle.
22098 * libio/tst-memstream3.c (_FWRITE): Rename to FWRITE_FUNC.
22099 (do_test_bz20181): Rename accordingly.
22100 * malloc/malloc.c: Include <assert.h>.
22101 (assert): Do not define.
22102 [!defined NDEBUG] (__assert_fail): Define to __malloc_assert.
22103 * bits/fcntl.h: Fix comment for FREAD and FWRITE.
22104 * sysdeps/mach/hurd/bits/fcntl.h: Likewise.
22105 * sysdeps/mach/hurd/hp-timing.h: New file.
22106 * sysdeps/mach/hurd/i386/tlsdesc.sym: New file.
22107
22108 2018-01-29 Darius Rad <darius@bluespec.com>
22109
22110 * sysdeps/unix/sysv/linux/riscv/ipc_priv.h: New file.
22111
22112 2018-01-29 Palmer Dabbelt <palmer@sifive.com>
22113
22114 * sysdeps/init_array/crti.S (.section .init_array): Add
22115 PREINIT_FUNCTION when defined.
22116 * manual/math.texi: RISC-V supports _Float128 and _Float64x.
22117 * config.h.in: Regenerate.
22118 * manual/platform.texi: Add RISC-V documenation for
22119 __riscv_flush_icache.
22120 * sysdeps/riscv/__longjmp.S: New file.
22121 * sysdeps/riscv/backtrace.c: Likewise.
22122 * sysdeps/riscv/bits/endian.h: Likewise.
22123 * sysdeps/riscv/bits/setjmp.h: Likewise.
22124 * sysdeps/riscv/bits/wordsize.h: Likewise.
22125 * sysdeps/riscv/bsd-_setjmp.c: Likewise.
22126 * sysdeps/riscv/bsd-setjmp.c: Likewise.
22127 * sysdeps/riscv/dl-trampoline.S: Likewise.
22128 * sysdeps/riscv/gccframe.h: Likewise.
22129 * sysdeps/riscv/jmpbuf-offsets.h: Likewise.
22130 * sysdeps/riscv/jmpbuf-unwind.h: Likewise.
22131 * sysdeps/riscv/machine-gmon.h: Likewise.
22132 * sysdeps/riscv/memusage.h: Likewise.
22133 * sysdeps/riscv/setjmp.S: Likewise.
22134 * sysdeps/riscv/sys/asm.h: Likewise.
22135 * sysdeps/riscv/tls-macros.h: Likewise.
22136 * sysdeps/riscv/dl-tls.h: New file.
22137 * sysdeps/riscv/libc-tls.c: Likewise.
22138 * sysdeps/riscv/nptl/tcb-offsets.sym: Likewise.
22139 * sysdeps/riscv/nptl/tls.h: Likewise.
22140 * sysdeps/riscv/stackinfo.h: Likewise.
22141 * sysdeps/riscv/bits/fenv.h: New file.
22142 * sysdeps/riscv/e_sqrtl.c: Likewise.
22143 * sysdeps/riscv/fpu_control.h: Likewise.
22144 * sysdeps/riscv/math-tests.h: Likewise.
22145 * sysdeps/riscv/nofpu/Implies: Likewise.
22146 * sysdeps/riscv/sfp-machine.h: Likewise.
22147 * sysdeps/riscv/tininess.h: Likewise.
22148 * sysdeps/riscv/rv64/rvd/s_ceil.c: New file.
22149 * sysdeps/riscv/rv64/rvd/s_floor.c: Likewise.
22150 * sysdeps/riscv/rv64/rvd/s_llrint.c: Likewise.
22151 * sysdeps/riscv/rv64/rvd/s_llround.c: Likewise.
22152 * sysdeps/riscv/rv64/rvd/s_lrint.c: Likewise.
22153 * sysdeps/riscv/rv64/rvd/s_lround.c: Likewise.
22154 * sysdeps/riscv/rv64/rvd/s_nearbyint.c: Likewise.
22155 * sysdeps/riscv/rv64/rvd/s_rint.c: Likewise.
22156 * sysdeps/riscv/rv64/rvd/s_round.c: Likewise.
22157 * sysdeps/riscv/rv64/rvd/s_roundeven.c: Likewise.
22158 * sysdeps/riscv/rv64/rvd/s_trunc.c: Likewise.
22159 * sysdeps/riscv/rv64/rvf/s_llrintf.c: Likewise.
22160 * sysdeps/riscv/rv64/rvf/s_llroundf.c: Likewise.
22161 * sysdeps/riscv/rv64/rvf/s_lrintf.c: Likewise.
22162 * sysdeps/riscv/rv64/rvf/s_lroundf.c: Likewise.
22163 * sysdeps/riscv/rvd/e_sqrt.c: Likewise.
22164 * sysdeps/riscv/rvd/s_copysign.c: Likewise.
22165 * sysdeps/riscv/rvd/s_finite.c: Likewise.
22166 * sysdeps/riscv/rvd/s_fma.c: Likewise.
22167 * sysdeps/riscv/rvd/s_fmax.c: Likewise.
22168 * sysdeps/riscv/rvd/s_fmin.c: Likewise.
22169 * sysdeps/riscv/rvd/s_fpclassify.c: Likewise.
22170 * sysdeps/riscv/rvd/s_isinf.c: Likewise.
22171 * sysdeps/riscv/rvd/s_isnan.c: Likewise.
22172 * sysdeps/riscv/rvd/s_issignaling.c: Likewise.
22173 * sysdeps/riscv/rvf/e_sqrtf.c: Likewise.
22174 * sysdeps/riscv/rvf/fclrexcpt.c: Likewise.
22175 * sysdeps/riscv/rvf/fegetenv.c: Likewise.
22176 * sysdeps/riscv/rvf/fegetmode.c: Likewise.
22177 * sysdeps/riscv/rvf/fegetround.c: Likewise.
22178 * sysdeps/riscv/rvf/feholdexcpt.c: Likewise.
22179 * sysdeps/riscv/rvf/fesetenv.c: Likewise.
22180 * sysdeps/riscv/rvf/fesetexcept.c: Likewise.
22181 * sysdeps/riscv/rvf/fesetmode.c: Likewise.
22182 * sysdeps/riscv/rvf/fesetround.c: Likewise.
22183 * sysdeps/riscv/rvf/feupdateenv.c: Likewise.
22184 * sysdeps/riscv/rvf/fgetexcptflg.c: Likewise.
22185 * sysdeps/riscv/rvf/fraiseexcpt.c: Likewise.
22186 * sysdeps/riscv/rvf/fsetexcptflg.c: Likewise.
22187 * sysdeps/riscv/rvf/ftestexcept.c: Likewise.
22188 * sysdeps/riscv/rvf/get-rounding-mode.h: Likewise.
22189 * sysdeps/riscv/rvf/math_private.h: Likewise.
22190 * sysdeps/riscv/rvf/s_ceilf.c: Likewise.
22191 * sysdeps/riscv/rvf/s_copysignf.c: Likewise.
22192 * sysdeps/riscv/rvf/s_finitef.c: Likewise.
22193 * sysdeps/riscv/rvf/s_floorf.c: Likewise.
22194 * sysdeps/riscv/rvf/s_fmaf.c: Likewise.
22195 * sysdeps/riscv/rvf/s_fmaxf.c: Likewise.
22196 * sysdeps/riscv/rvf/s_fminf.c: Likewise.
22197 * sysdeps/riscv/rvf/s_fpclassifyf.c: Likewise.
22198 * sysdeps/riscv/rvf/s_isinff.c: Likewise.
22199 * sysdeps/riscv/rvf/s_isnanf.c: Likewise.
22200 * sysdeps/riscv/rvf/s_issignalingf.c: Likewise.
22201 * sysdeps/riscv/rvf/s_nearbyintf.c: Likewise.
22202 * sysdeps/riscv/rvf/s_rintf.c: Likewise.
22203 * sysdeps/riscv/rvf/s_roundevenf.c: Likewise.
22204 * sysdeps/riscv/rvf/s_roundf.c: Likewise.
22205 * sysdeps/riscv/rvf/s_truncf.c: Likewise.
22206 * sysdeps/riscv/nptl/bits/pthreadtypes-arch.h: New file.
22207 * sysdeps/riscv/nptl/bits/semaphore.h: Likewise.
22208 * sysdeps/riscv/nptl/libc-lowlevellock.c: Likewise.
22209 * sysdeps/unix/sysv/linux/riscv/atomic-machine.h: Likewise.
22210 * sysdeps/riscv/nptl/nptl-sysdep.S: New file.
22211 * sysdeps/unix/sysv/linux/riscv/arch-fork.h: Likewise.
22212 * sysdeps/unix/sysv/linux/riscv/clone.S: Likewise.
22213 * sysdeps/unix/sysv/linux/riscv/profil-counter.h: Likewise.
22214 * sysdeps/unix/sysv/linux/riscv/pt-vfork.S: Likewise.
22215 * sysdeps/unix/sysv/linux/riscv/syscall.c: Likewise.
22216 * sysdeps/unix/sysv/linux/riscv/sysdep.S: Likewise.
22217 * sysdeps/unix/sysv/linux/riscv/sysdep.h: Likewise.
22218 * sysdeps/unix/sysv/linux/riscv/vfork.S: Likewise.
22219 * sysdeps/riscv/nptl/pthread-offsets.h: New file.
22220 * sysdeps/riscv/nptl/pthreaddef.h: Likewise.
22221 * sysdeps/unix/sysv/linux/riscv/bits/fcntl.h: Likewise.
22222 * sysdeps/unix/sysv/linux/riscv/bits/mman.h: Likewise.
22223 * sysdeps/unix/sysv/linux/riscv/bits/sigcontext.h: Likewise.
22224 * sysdeps/unix/sysv/linux/riscv/dl-cache.h: Likewise.
22225 * sysdeps/unix/sysv/linux/riscv/flush-icache.c: Likewise.
22226 * sysdeps/unix/sysv/linux/riscv/getcontext.S: Likewise.
22227 * sysdeps/unix/sysv/linux/riscv/init-first.c: Likewise.
22228 * sysdeps/unix/sysv/linux/riscv/libc-vdso.h: Likewise.
22229 * sysdeps/unix/sysv/linux/riscv/makecontext.c: Likewise.
22230 * sysdeps/unix/sysv/linux/riscv/readelflib.c: Likewise.
22231 * sysdeps/unix/sysv/linux/riscv/register-dump.h: Likewise.
22232 * sysdeps/unix/sysv/linux/riscv/setcontext.S: Likewise.
22233 * sysdeps/unix/sysv/linux/riscv/sigcontextinfo.h: Likewise.
22234 * sysdeps/unix/sysv/linux/riscv/swapcontext.S: Likewise.
22235 * sysdeps/unix/sysv/linux/riscv/sys/cachectl.h: Likewise.
22236 * sysdeps/unix/sysv/linux/riscv/sys/procfs.h: Likewise.
22237 * sysdeps/unix/sysv/linux/riscv/sys/ucontext.h: Likewise.
22238 * sysdeps/unix/sysv/linux/riscv/sys/user.h: Likewise.
22239 * sysdeps/unix/sysv/linux/riscv/ucontext-macros.h: Likewise.
22240 * sysdeps/unix/sysv/linux/riscv/ucontext_i.sym: Likewise.
22241 * sysdeps/unix/sysv/linux/riscv/dl-static.c: New file.
22242 * sysdeps/unix/sysv/linux/riscv/ldconfig.h: Likewise.
22243 * sysdeps/unix/sysv/linux/riscv/ldsodefs.h: Likewise.
22244 * sysdeps/riscv/nofpu/libm-test-ulps: New file.
22245 * sysdeps/riscv/nofpu/libm-test-ulps-name: Likewise.
22246 * sysdeps/riscv/rv64/rvd/libm-test-ulps: Likewise.
22247 * sysdeps/riscv/rv64/rvd/libm-test-ulps-name: Likewise.
22248 * sysdeps/unix/sysv/linux/riscv/localplt.data: Likewise.
22249 * sysdeps/unix/sysv/linux/riscv/rv64/c++-types.data: Likewise.
22250 * sysdeps/unix/sysv/linux/riscv/rv64/ld.abilist: Likewise.
22251 * sysdeps/unix/sysv/linux/riscv/rv64/libanl.abilist: Likewise.
22252 * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist: Likewise.
22253 * sysdeps/unix/sysv/linux/riscv/rv64/libdl.abilist: Likewise.
22254 * sysdeps/unix/sysv/linux/riscv/rv64/libm.abilist: Likewise.
22255 * sysdeps/unix/sysv/linux/riscv/rv64/libnsl.abilist: Likewise.
22256 * sysdeps/unix/sysv/linux/riscv/rv64/librt.abilist: Likewise.
22257 * sysdeps/unix/sysv/linux/riscv/rv64/libutil.abilist: Likewise.
22258 * sysdeps/riscv/Implies: New file.
22259 * sysdeps/riscv/Makefile: Likewise.
22260 * sysdeps/riscv/configure: Likewise.
22261 * sysdeps/riscv/configure.ac: Likewise.
22262 * sysdeps/riscv/nptl/Makefile: Likewise.
22263 * sysdeps/riscv/preconfigure: Likewise.
22264 * sysdeps/riscv/rv64/Implies-after: Likewise.
22265 * sysdeps/riscv/rv64/rvd/Implies: Likewise.
22266 * sysdeps/riscv/rv64/rvf/Implies: Likewise.
22267 * sysdeps/unix/sysv/linux/riscv/Implies: Likewise.
22268 * sysdeps/unix/sysv/linux/riscv/Makefile: Likewise.
22269 * sysdeps/unix/sysv/linux/riscv/Versions: Likewise.
22270 * sysdeps/unix/sysv/linux/riscv/configure: Likewise.
22271 * sysdeps/unix/sysv/linux/riscv/configure.ac: Likewise.
22272 * sysdeps/unix/sysv/linux/riscv/ldd-rewrite.sed: Likewise.
22273 * sysdeps/unix/sysv/linux/riscv/rv64/Implies: Likewise.
22274 * sysdeps/unix/sysv/linux/riscv/rv64/Makefile: Likewise.
22275 * sysdeps/unix/sysv/linux/riscv/shlib-versions: Likewise.
22276 * scripts/build-many-glibcs.py (Context): Add RISC-V targets.
22277 (Config): Likewise.
22278
22279 2018-01-29 Florian Weimer <fweimer@redhat.com>
22280
22281 [BZ #22701]
22282 * include/rpcsvc/nislib.h (__nis_default_ttl): Add
22283 libnsl_hidden_proto.
22284 * include/rpcsvc/yp.h (yp_xdrall): Declare with
22285 libnsl_hidden_proto.
22286 * include/rpcsvc/ypclnt.h (yp_maplist): Likewise.
22287 * nis/Makefile (libnsl-routines): Add nss-default only for
22288 build-obsolete-nsl.
22289 * nis/nis_defaults.c (__nis_default_ttl): Add
22290 libnsl_hidden_nolink_def.
22291 * nis/rpcsvc/ypclnt.h (yp_maplist): Remove #ifdef'ed-out
22292 declaration.
22293 * nis/yp_xdr.c (xdr_ypall): Add libnsl_hidden_nolink_def.
22294 * nis/ypclnt.c (yp_maplist): Likewise.
22295
22296 2018-01-29 Romain Naour <romain.naour@gmail.com> (tiny change)
22297
22298 * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
22299 (__ASSUME_COPY_FILE_RANGE) [__LINUX_KERNEL_VERSION < 0x040A00]: Undef.
22300
22301 2018-01-29 Joseph Myers <joseph@codesourcery.com>
22302
22303 * scripts/build-many-glibcs.py (Context.git_checkout): Use git
22304 clean -dxfq for git updates when replacing sources.
22305
22306 * scripts/build-many-glibcs.py (Config.build_gcc): Use
22307 --disable-libcilkrts unconditionally, not just for the final GCC
22308 build for Hurd.
22309
22310 * scripts/build-many-glibcs.py (Context.checkout): Default Linux
22311 version to 4.15.
22312
22313 2018-01-29 Rafał Lużyński <digitalfreak@lingonborough.com>
22314
22315 [BZ #10871]
22316 * localedata/locales/lt_LT (alt_mon): Import from CLDR (nominative
22317 case).
22318
22319 2018-01-29 Rafał Lużyński <digitalfreak@lingonborough.com>
22320
22321 [BZ #10871]
22322 * localedata/locales/be_BY (mon): Rename to...
22323 (alt_mon): This, then synchronize with CLDR (nominative case).
22324 (abmon): Rename to...
22325 (ab_alt_mon): This, then synchronize with CLDR (nominative case).
22326 (mon): Import from CLDR (genitive case).
22327 (abmon): Likewise.
22328 * localedata/locales/be_BY@latin (mon): Rename to...
22329 (alt_mon): This.
22330 (mon): Add, proper genitive forms provided by Viktar Siarheichyk.
22331
22332 * localedata/locales/be_BY@latin (lang_name): Reworded to
22333 "biełaruskaja mova".
22334
22335 2018-01-29 Rafał Lużyński <digitalfreak@lingonborough.com>
22336
22337 [BZ #10871]
22338 * localedata/locales/el_CY (mon): Renamed to...
22339 (alt_mon): This.
22340 (mon): Import from CLDR (genitive case).
22341 * localedata/locales/el_GR: Likewise.
22342
22343 2018-01-29 Rafał Lużyński <digitalfreak@lingonborough.com>
22344
22345 [BZ #10871]
22346 * localedata/locales/ru_RU (mon): Rename to...
22347 (alt_mon): This.
22348 (abmon): Rename to...
22349 (ab_alt_mon): This.
22350 (mon): Import from CLDR (genitive case).
22351 (abmon): Copy from the old content except the 5th month which is
22352 now in the genitive case, even when abbreviated.
22353 * localedata/locales/ru_UA: Likewise.
22354 * time/tst-strptime.c (day_tests): Add an actual example of
22355 a difference between %b and %Ob in Russian.
22356
22357 2018-01-27 Samuel Thibault <samuel.thibault@ens-lyon.org>
22358
22359 * sysdeps/mach/hurd/xmknodat.c: Include <sys/sysmacros.h>.
22360 * sysdeps/mach/hurd/profil.c: Reuse `a' variable instead of introducing
22361 a `c' variable.
22362 * resolv/res-close.c: Include <stdlib.h>.
22363 * sysdeps/generic/not-cancel.h: Include <fcntl.h>, <unistd.h>,
22364 <sys/wait.h>, <time.h>, <sys/uio.h>.
22365 (NOT_CANCEL_H): Add inclusion guard.
22366 * sysdeps/generic/sigset-cvt-mask.h: Include <sigsetops.h>.
22367 * sysdeps/generic/sigsetops.h (__sigemptyset, __sigfillset,
22368 __sigandset, __sigorset, __sigaddset, __sigdelset): Make them really
22369 return 0.
22370 * sysdeps/mach/hurd/dl-sysdep.c (_dl_sysdep_start): Cast
22371 vm_address_t * to ElfW(Addr) * for dl_main parameter.
22372 * sysdeps/pthread/posix-timer.h (timer_ptr2id): Cast to timer_t
22373 instead of void *.
22374 * sysdeps/pthread/timer_create.c (timer_create): Do not use
22375 timer_ptr2id to cast struct timer_node * to void *.
22376 * scripts/build-many-glibcs.py [os == gnu] (build_gcc): Pass
22377 --disable-libcilkrts to gcc configure.
22378 (checkout_vcs): Add mig and gnumach repository URLs, run autoreconf,
22379 and make them the default for now.
22380 * sysdeps/mach/hurd/Makefile [$(subdir)==nis]: Add
22381 -DUSE_BINDINGDIR=1 to CFLAGS-ypclnt.c.
22382 * mach/Machrules (MIGFLAGS): Do not set -DMACH_IPC_COMPAT=0.
22383 * mach/mach/mach_traps.h: Drop comment about MACH_IPC_COMPAT.
22384 * sysdeps/mach/hurd/fork.c (__fork): Drop special casing
22385 MACH_IPC_COMPAT.
22386 * sysdeps/mach/hurd/dl-sysdep.c (_exit): Call LOSE and abort() if
22387 __task_terminate would ever return successfully.
22388 * sysdeps/mach/hurd/profil.c (special_profil_failure): Move variable
22389 to global scope.
22390 * sysdeps/mach/pagecopy.h (PAGE_THRESHOLD): Rename to
22391 PAGE_COPY_THRESHOLD and set to benchmarked 16384.
22392 * sysdeps/mach/hurd/getresgid.c (__getresgid): Set result from
22393 critical section to make code simpler and avoid warning.
22394 * sysdeps/mach/hurd/getresuid.c (__getresuid): Set result from
22395 critical section to make code simpler and avoid warning.
22396 * sysdeps/mach/hurd/spawni.c (__spawni): Make relpath and abspath
22397 const char * instead of char *.
22398 * hurd/hurd/lookup.h (__hurd_file_name_lookup, hurd_file_name_lookup,
22399 __hurd_file_name_split, hurd_file_name_split,
22400 __hurd_directory_name_split, hurd_directory_name_split,
22401 __hurd_file_name_lookup_retry, hurd_file_name_lookup_retry,
22402 hurd_file_name_path_lookup): Make lookup function parameter take a
22403 const char *name instead of char *name.
22404 * hurd/hurdlookup.c (__hurd_file_name_lookup, __hurd_file_name_split,
22405 __hurd_directory_name_split): Likewise.
22406 * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Likewise.
22407 * hurd/path-lookup.c (hurd_file_name_path_lookup): Likewise.
22408 * sysdeps/mach/hurd/check_native.c: New file.
22409 * sysdeps/mach/hurd/check_pf.c: New file.
22410 * nscd/gai.c (__getifaddrs): Define macro to getifaddrs.
22411 (__freeifaddrs): Define macro to freeifaddrs.
22412 * sysdeps/mach/hurd/libhurduser.abilist: New file.
22413 * sysdeps/mach/libmachuser.abilist: New file.
22414 * libio/tst-memstream3.c (FWRITE): Rename to _FWRITE.
22415 (do_test_bz20181): Rename accordingly.
22416 * libio/tst-wmemstream3.c (FWRITE): Rename accordingly.
22417 * io/tst-copy_file_range.c [!defined CLONE_NEWNS]: Do not include
22418 <sys/mount.h>.
22419 * hurd/hurd.h (__hurd_fail): Always declare function, and provide inline
22420 version only if __USE_EXTERN_INLINES is defined.
22421 * hurd/hurd/fd.h (_hurd_fd_error_signal, _hurd_fd_error, __hurd_dfail,
22422 __hurd_sockfail): Likewise.
22423 (_hurd_fd_get): Always declare functions, and provide inline versions
22424 only if __USE_EXTERN_INLINES and _LIBC are defined and IS_IN(libc).
22425 * hurd/hurd/port.h (_hurd_port_init, _hurd_port_locked_get,
22426 _hurd_port_get, _hurd_port_free, _hurd_port_locked_set,
22427 _hurd_port_set): Always declare functions, and provide inline versions
22428 only if __USE_EXTERN_INLINES and _LIBC are defined and
22429 IS_IN(libc).
22430 * hurd/hurd/signal.h (_hurd_self_sigstate, _hurd_critical_section_lock,
22431 _hurd_critical_section_unlock): Likewise.
22432 * hurd/hurd/threadvar.h (__hurd_threadvar_location_from_sp,
22433 * __hurd_threadvar_location): Likewise.
22434 * hurd/hurd/userlink.h (_hurd_userlink_link, _hurd_userlink_unlink,
22435 _hurd_userlink_clear): Likewise.
22436 * mach/lock-intern.h (__spin_lock_init, __spin_lock, __mutex_lock,
22437 __mutex_unlock, __mutex_trylock): Always declare functions, and provide
22438 inline versions only if __USE_EXTERN_INLINES and _LIBC are defined.
22439 * mach/mach/mig_support.h (__mig_strncpy): Likewise.
22440 * sysdeps/generic/machine-lock.h (__spin_unlock, __spin_try_lock,
22441 __spin_lock_locked): Likewise.
22442 * sysdeps/mach/i386/machine-lock.h (__spin_unlock, __spin_try_lock,
22443 __spin_lock_locked): Likewise.
22444 * mach/spin-lock.c (__USE_EXTERN_INLINES): Define to 1.
22445 * hurd/Versions (libc: GLIBC_2.27): Add _hurd_fd_error_signal,
22446 _hurd_fd_error, __hurd_dfail, __hurd_sockfail, _hurd_port_locked_set,
22447 __hurd_threadvar_location_from_sp, __hurd_threadvar_location,
22448 _hurd_userlink_link, _hurd_userlink_unlink, _hurd_userlink_clear.
22449 * sysdeps/mach/hurd/bits/posix_opt.h (_POSIX_CHOWN_RESTRICTED,
22450 _POSIX_NO_TRUNC): Define to 0.
22451 * sysdeps/pthread/allocalim.h [!defined PTHREAD_STACK_MIN]: Do not
22452 check size against PTHREAD_STACK_MIN.
22453 * hurd/hurd/signal.h [__USE_EXTERN_INLINES][_LIBC][IS_IN(libc) ||
22454 IS_IN(libpthread)]: Include <sigsetops.h>.
22455 * mach/Makefile (user-interfaces): Add mach/gnumach.
22456 * sysdeps/mach/configure.ac (mach_interface_list): Add gnumach.
22457 * sysdeps/mach/configure (mach_interface_list): Regenerate.
22458 * sysdeps/mach/hurd/bits/posix_opt.h (_POSIX_VDISABLE): Set to '\0'
22459 instead of invalid -1.
22460 * sysdeps/mach/hurd/net/ethernet.h: Include <stdint.h>.
22461 * sysdeps/mach/hurd/net/if_arp.h: Include <stdint.h>.
22462 * sysdeps/mach/hurd/net/if_ppp.h: Do not include non-existing
22463 <net/ppp_defs.h>.
22464
22465 2018-01-27 Thomas Schwinge <tschwinge@gnu.org>
22466
22467 * hurd/fcntl-internal.h: New file.
22468
22469 2018-01-27 James Clarke <jrtc27@jrtc27.com>
22470
22471 * sysdeps/hppa/fpu/libm-test-ulps: Update.
22472
22473 * sysdeps/alpha/fpu/libm-test-ulps: Update.
22474
22475 2018-01-26 Andreas Schwab <schwab@linux-m68k.org>
22476
22477 [BZ #22701]
22478 * nis/Makefile (libnsl-inhibit-o) [$(build-obsolete-nsl) != yes]:
22479 Build only shared objects.
22480
22481 2018-01-26 Carlos O'Donell <carlos@redhat.com>
22482
22483 * README: Update for hppa.
22484
22485 2018-01-26 Patrick McGehearty <patrick.mcgehearty@oracle.com>
22486
22487 * sysdeps/sparc/fpu/libm-test-ulps: Update
22488 cpow, ctan, ctanh, j0, j1, y0, yn ulps.
22489
22490 2018-01-26 Carlos O'Donell <carlos@redhat.com>
22491
22492 Revert:
22493
22494 2017-12-19 H.J. Lu <hongjiu.lu@intel.com>
22495
22496 [BZ #22563]
22497 * sysdeps/i386/nptl/tcb-offsets.sym (FEATURE_1_OFFSET): New.
22498 * sysdeps/i386/nptl/tls.h (tcbhead_t): Add feature_1.
22499 * sysdeps/x86_64/nptl/tcb-offsets.sym (FEATURE_1_OFFSET): New.
22500 * sysdeps/x86_64/nptl/tls.h (tcbhead_t): Rename __glibc_unused1
22501 to feature_1.
22502
22503 2017-12-19 H.J. Lu <hongjiu.lu@intel.com>
22504
22505 [BZ #22563]
22506 * bits/types/__cancel_jmp_buf_tag.h: New file.
22507 * sysdeps/unix/sysv/linux/x86/bits/types/__cancel_jmp_buf_tag.h
22508 * sysdeps/unix/sysv/linux/x86/pthreaddef.h: Likewise.
22509 * sysdeps/unix/sysv/linux/x86/nptl/pthreadP.h: Likewise.
22510 * nptl/Makefile (headers): Add
22511 bits/types/__cancel_jmp_buf_tag.h.
22512 * nptl/descr.h [NEED_SAVED_MASK_IN_CANCEL_JMP_BUF]
22513 (pthread_unwind_buf): Add saved_mask to cancel_jmp_buf.
22514 * sysdeps/nptl/pthread.h: Include
22515 <bits/types/__cancel_jmp_buf_tag.h>.
22516 (__pthread_unwind_buf_t): Use struct __cancel_jmp_buf_tag with
22517 __cancel_jmp_buf.
22518 * sysdeps/unix/sysv/linux/hppa/pthread.h: Likewise.
22519
22520 2018-01-25 Rafał Lużyński <digitalfreak@lingonborough.com>
22521
22522 [BZ #10871]
22523 * localedata/locales/uk_UA (mon): Renamed to...
22524 (alt_mon): This.
22525 (alt_digits): "0" removed and then renamed to...
22526 (mon): This.
22527 (date_fmt): Definition changed not to use the alternative
22528 digits hack.
22529
22530 2018-01-25 Palmer Dabbelt <palmer@sifive.com>
22531
22532 * elf/cache.c (print_entry): Add FLAG_RISCV_FLOAT_ABI_SOFT and
22533 FLAG_RISCV_FLOAT_ABI_DOUBLE.
22534 * elf/elf.h (EF_RISCV_RVC): New define.
22535 (EF_RISCV_FLOAT_ABI): Likewise.
22536 (EF_RISCV_FLOAT_ABI_SOFT): Likewise.
22537 (EF_RISCV_FLOAT_ABI_SINGLE): Likewise.
22538 (EF_RISCV_FLOAT_ABI_DOUBLE): Likewise.
22539 (EF_RISCV_FLOAT_ABI_QUAD): Likewise.
22540 * sysdeps/generic/ldconfig.h (FLAG_RISCV_FLOAT_ABI_SOFT): New
22541 define.
22542 (FLAG_RISCV_FLOAT_ABI_DOUBLE): Likewise.
22543
22544 2018-01-25 Andreas Schwab <schwab@suse.de>
22545
22546 * aclocal.m4 (LIBC_SLIBDIR_RTLDDIR): Consistently put arguments in
22547 single quotes.
22548 * sysdeps/gnu/configure: Regenerate.
22549 * sysdeps/unix/sysv/linux/aarch64/configure: Regenerate.
22550 * sysdeps/unix/sysv/linux/mips/configure: Regenerate.
22551 * sysdeps/unix/sysv/linux/powerpc/powerpc64/configure: Regenerate.
22552 * sysdeps/unix/sysv/linux/s390/s390-64/configure: Regenerate.
22553 * sysdeps/unix/sysv/linux/sparc/sparc64/configure: Regenerate.
22554 * sysdeps/unix/sysv/linux/tile/configure: Regenerate.
22555 * sysdeps/unix/sysv/linux/x86_64/64/configure: Regenerate.
22556 * sysdeps/unix/sysv/linux/x86_64/x32/configure: Regenerate.
22557
22558 2018-01-25 Samuel Thibault <samuel.thibault@ens-lyon.org>
22559
22560 * scripts/build-many-glibcs.py (checkout_vcs): Add hurd repository
22561 URL, and run autoconf, make it the default for now.
22562
22563 2018-01-24 Joseph Myers <joseph@codesourcery.com>
22564
22565 * scripts/build-many-glibcs.py (Context.add_all_configs): Add
22566 soft-float ColdFire configuration.
22567
22568 * sysdeps/unix/sysv/linux/m68k/localplt.data: Move to ....
22569 * sysdeps/unix/sysv/linux/m68k/m680x0/localplt.data: ... here.
22570 * sysdeps/unix/sysv/linux/m68k/coldfire/localplt.data: New file.
22571
22572 * sysdeps/m68k/coldfire/nofpu/math_private.h: New file. Based on
22573 MicroBlaze file.
22574
22575 * sysdeps/unix/sysv/linux/m68k/coldfire/jmp_buf-macros.h: Move to
22576 ....
22577 * sysdeps/unix/sysv/linux/m68k/coldfire/fpu/jmp_buf-macros.h:
22578 ... here.
22579 * sysdeps/unix/sysv/linux/m68k/coldfire/nofpu/jmp_buf-macros.h:
22580 New file.
22581
22582 * sysdeps/unix/sysv/linux/m68k/jmp_buf-macros.h: Move to ....
22583 * sysdeps/unix/sysv/linux/m68k/m680x0/jmp_buf-macros.h: ... here.
22584 * sysdeps/unix/sysv/linux/m68k/coldfire/jmp_buf-macros.h: New
22585 file.
22586
22587 2018-01-24 Szabolcs Nagy <szabolcs.nagy@arm.com>
22588
22589 [BZ #22742]
22590 * sysdeps/unix/sysv/linux/aarch64/sys/ucontext.h (__glibc_reserved1):
22591 Rename to __reserved and add comment.
22592 * sysdeps/unix/sysv/linux/aarch64/ucontext_i.sym (__glibc_reserved1):
22593 Rename to __reserved.
22594
22595 2018-01-24 Joseph Myers <joseph@codesourcery.com>
22596
22597 * scripts/build-many-glibcs.py (Context.add_all_configs): Add
22598 i686-gnu configurations.
22599 (Context.run_builds): Include mig, gnumach and hurd in components
22600 considered.
22601 (Context.checkout): Add mig, gnumach and hurd to components.
22602 (Context.checkout_tar): Add URL mappings for mig, gnumach and
22603 hurd.
22604 (Context.bot_cycle): Check for changes to mig, gnumach and hurd.
22605 (Config.build): Install gnumach headers, build mig and install
22606 hurd headers for 'gnu' OS.
22607 (Config.install_gnumach_headers): New function.
22608 (Config.install_hurd_headers): Likewise.
22609 (Glibc.build_glibc): Do not use /usr for 'gnu' OS. Specifiy MIG
22610 when building for 'gnu' OS.
22611
22612 2018-01-23 Tobias Klauser <tklauser@distanz.ch>
22613
22614 * manual/tunables.texi (Hardware Capability Tunables): Fix
22615 spelling.
22616
22617 2018-01-22 Rical Jasan <ricaljasan@pacific.net>
22618
22619 * manual/locale.texi (ALTMON_1, ALTMON_2, ALTMON_3, ALTMON_4)
22620 (ALTMON_5, ALTMON_6, ALTMON_7, ALTMON_8, ALTMON_9, ALTMON_10)
22621 (ALTMON_11, ALTMON_12): Improve documentation.
22622 * manual/time.texi (strftime): Likewise.
22623
22624 2018-01-22 Rafał Lużyński <digitalfreak@lingonborough.com>
22625
22626 [BZ #10871]
22627 * localedata/locales/pl_PL: Alternative month names added,
22628 primary month names are genitive now.
22629 * time/tst-strptime.c (day_tests): Actually use a genitive case
22630 of a month name in Polish language.
22631
22632 2018-01-22 Rafał Lużyński <digitalfreak@lingonborough.com>
22633
22634 [BZ #10871]
22635 * manual/locale.texi: Document ALTMON_1..12 constants for
22636 nl_langinfo. Specify when to use ALTMON instead of MON.
22637 * manual/time.texi (strftime, strptime): Document GNU extension
22638 permitting O modifier with %B and %b. Specify when to use
22639 %OB instead of %B.
22640
22641 2018-01-22 Rafał Lużyński <digitalfreak@lingonborough.com>
22642
22643 [BZ #10871]
22644 * locale/C-time.c (_nl_C_LC_TIME): Add abbreviated alternative month
22645 names, define them as the same as abbreviated month names explicitly.
22646 * locale/categories.def (LC_TIME): Add ab_alt_mon and wide-ab_alt_mon.
22647 * locale/langinfo.h: (_NL_ABALTMON_1, _NL_ABALTMON_2, _NL_ABALTMON_3,
22648 _NL_ABALTMON_4, _NL_ABALTMON_5, _NL_ABALTMON_6, _NL_ABALTMON_7,
22649 _NL_ABALTMON_8, _NL_ABALTMON_9, _NL_ABALTMON_10, _NL_ABALTMON_11,
22650 _NL_ABALTMON_12, _NL_WABALTMON_1, _NL_WABALTMON_2, _NL_WABALTMON_3,
22651 _NL_WABALTMON_4, _NL_WABALTMON_5, _NL_WABALTMON_6, _NL_WABALTMON_7,
22652 _NL_WABALTMON_8, _NL_WABALTMON_9, _NL_WABALTMON_10, _NL_WABALTMON_11,
22653 _NL_WABALTMON_12): New enum constants.
22654 * locale/programs/ld-time.c (struct locale_time_t): Add ab_alt_mon,
22655 wab_alt_mon, and ab_alt_mon_defined members.
22656 (time_output): Output ab_alt_mon and wab_alt_mon members.
22657 (time_read): Read them, initialize them as copies of abmon and wabmon
22658 respectively if they are missing, initialize ab_alt_mon_defined.
22659 * locale/programs/locfile-kw.gperf (ab_alt_mon): Define.
22660 * locale/programs/locfile-kw.h: Regenerate.
22661 * locale/programs/locfile-token.h (tok_ab_alt_mon): New enum constant.
22662 * time/Makefile [$(run-built-tests) = yes] (LOCALES): Add es_ES.UTF-8
22663 and ru_RU.UTF-8.
22664 * time/strftime_l.c (a_altmonth, aam_len): New macros.
22665 [!COMPILE_WIDE] (ABALTMON_1): New macro.
22666 (__strftime_internal): Handle %Ob and %Oh formats.
22667 * time/strptime_l.c [_LIBC] (ab_alt_month_name): New macro.
22668 (__strptime_internal): Handle %Ob and %Oh formats.
22669 * time/tst-strptime.c (day_tests): Add more tests to parse different
22670 forms of month names including the new %Ob format specifier.
22671
22672 2018-01-22 Rafał Lużyński <digitalfreak@lingonborough.com>
22673
22674 [BZ #10871]
22675 * locale/C-time.c (_nl_C_LC_TIME): Add alternative month names,
22676 define them as the same as primary full month names explicitly.
22677 * locale/categories.def (LC_TIME): Add alt_mon and wide-alt_mon.
22678 * locale/langinfo.h (__ALTMON_1, __ALTMON_2, __ALTMON_3, __ALTMON_4,
22679 __ALTMON_5, __ALTMON_6, __ALTMON_7, __ALTMON_8, __ALTMON_9, __ALTMON_10,
22680 __ALTMON_11, __ALTMON_12, _NL_WALTMON_1, _NL_WALTMON_2, _NL_WALTMON_3,
22681 _NL_WALTMON_4, _NL_WALTMON_5, _NL_WALTMON_6, _NL_WALTMON_7,
22682 _NL_WALTMON_8, _NL_WALTMON_9, _NL_WALTMON_10, _NL_WALTMON_11,
22683 _NL_WALTMON_12): New enum constants.
22684 [__USE_GNU] (ALTMON_1, ALTMON_2, ALTMON_3, ALTMON_4, ALTMON_5, ALTMON_6,
22685 ALTMON_7, ALTMON_8, ALTMON_9, ALTMON_10, ALTMON_11, ALTMON_12): New
22686 macros.
22687 * locale/programs/ld-time.c (struct locale_time_t): Add alt_mon,
22688 walt_mon, and alt_mon_defined members.
22689 (time_output): Output alt_mon and walt_mon members.
22690 (time_read): Read them, initialize them as copies of mon and wmon
22691 respectively if they are missing, initialize alt_mon_defined.
22692 * locale/programs/locfile-kw.gperf (alt_mon): Define.
22693 * locale/programs/locfile-kw.h: Regenerate.
22694 * locale/programs/locfile-token.h (tok_alt_mon): New enum constant.
22695 * localedata/tst-langinfo.c (map): Add tests for the new constants
22696 ALTMON_1 .. ALTMON_12.
22697 * time/Makefile [$(run-built-tests) = yes] (LOCALES): Add fr_FR.UTF-8
22698 and pl_PL.UTF-8.
22699 * time/strftime_l.c (f_altmonth): New macro.
22700 (__strftime_internal): Handle %OB format.
22701 * time/strptime_l.c [_LIBC] (alt_month_name): New macro.
22702 (__strptime_internal): Handle %OB format.
22703 * time/tst-strptime.c (day_tests): Add tests to parse different forms
22704 of month names including the new %OB format specifier.
22705
22706 2018-01-19 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
22707
22708 [BZ #22685]
22709 * sysdeps/powerpc/powerpc32/sysdep.h (ABORT_TRANSACTION_IMPL): Renamed
22710 from ABORT_TRANSACTION.
22711 (ABORT_TRANSACTION): Redirect to ABORT_TRANSACTION_IMPL.
22712 * sysdeps/powerpc/powerpc64/sysdep.h (ABORT_TRANSACTION,
22713 ABORT_TRANSACTION_IMPL): Likewise.
22714 * sysdeps/unix/sysv/linux/powerpc/not-errno.h: New file. Reuse
22715 Linux code, but remove the code that aborts transactions.
22716
22717 2018-01-19 Samuel Thibault <samuel.thibault@ens-lyon.org>
22718
22719 * sysdeps/generic/netinet/if_ether.h: Include <stdint.h>.
22720
22721 2018-01-19 Rafał Lużyński <digitalfreak@lingonborough.com>
22722
22723 * localedata/locales/gu_IN (LC_IDENTIFICATION): Fix an obvious typo
22724 in date: "2004-14-09" should be "2004-09-14".
22725 * localedata/locales/lo_LA: Fix an obvious typo in date in the header:
22726 "2003-15-09" should be "2003-09-15".
22727
22728 2018-01-18 Arjun Shankar <arjun@redhat.com>
22729
22730 [BZ #22343]
22731 [BZ #22774]
22732 CVE-2018-6485
22733 CVE-2018-6551
22734 * malloc/malloc.c (checked_request2size): call REQUEST_OUT_OF_RANGE
22735 after padding.
22736 (_int_memalign): check for integer overflow before calling
22737 _int_malloc.
22738 * malloc/tst-malloc-too-large.c: New test.
22739 * malloc/Makefile: Add tst-malloc-too-large.
22740
22741 2018-01-18 Rafał Lużyński <digitalfreak@lingonborough.com>
22742
22743 * localedata/locales/bho_NP (LC_IDENTIFICATION): Fix an obvious typo
22744 in date: "2017-24-07" should be "2017-07-24".
22745 * localedata/locales/mai_IN: Likewise.
22746 * localedata/locales/mai_NP: Likewise.
22747
22748 2018-01-17 Dmitry V. Levin <ldv@altlinux.org>
22749
22750 * po/ru.po: Update translations.
22751
22752 2018-01-17 Joseph Myers <joseph@codesourcery.com>
22753
22754 [BZ #22719]
22755 * sysdeps/hppa/backtrace.c: New file.
22756
22757 2018-01-17 H.J. Lu <hongjiu.lu@intel.com>
22758
22759 [BZ #22715]
22760 * sysdeps/x86_64/dl-trampoline.h (_dl_runtime_profile): Properly
22761 align La_x86_64_retval to VEC_SIZE.
22762
22763 2018-01-16 Joseph Myers <joseph@codesourcery.com>
22764
22765 * sysdeps/x86_64/backtrace.c: Include <gnu/lib-names.h>.
22766 (init): Use LIBGCC_S_SO not hardcoded "libgcc_s.so.1".
22767
22768 2018-01-16 Florian Weimer <fweimer@redhat.com>
22769
22770 * nptl/Makefile [$(have-cxx-thread_local)] (tests-unsupported):
22771 Move tst-thread-exit-clobber ...
22772 [$(CXX)] (tests-unsupported): ... to here.
22773
22774 2018-01-16 Szabolcs Nagy <szabolcs.nagy@arm.com>
22775
22776 * sysdeps/unix/sysv/linux/aarch64/bits/hwcap.h (HWCAP_SHA3): Define.
22777 (HWCAP_SM3, HWCAP_SM4, HWCAP_ASIMDDP, HWCAP_SHA512, HWCAP_SVE): Define.
22778 * sysdeps/unix/sysv/linux/aarch64/dl-procinfo.c
22779 (_dl_aarch64_cap_flags): Update.
22780 (_DL_HWCAP_COUNT): Update.
22781
22782 2018-01-16 Szabolcs Nagy <szabolcs.nagy@arm.com>
22783
22784 * sysdeps/unix/sysv/linux/aarch64/dl-procinfo.h
22785 (_DL_HWCAP_LAST): Remove.
22786 (_DL_HWCAP_COUNT): Move to ...
22787 * sysdeps/unix/sysv/linux/aarch64/dl-procinfo.c
22788 (_DL_HWCAP_COUNT): ... here.
22789
22790 2018-01-16 Florian Weimer <fweimer@redhat.com>
22791
22792 * nptl/Makefile (CFLAGS-tst-minstack-throw.o): Compile in C++11
22793 mode with GNU extensions.
22794
22795 2018-01-15 Alan Hayward <alan.hayward@arm.com>
22796
22797 * elf/elf.h (NT_ARM_SVE): Define.
22798
22799 2018-01-15 Florian Weimer <fweimer@redhat.com>
22800
22801 [BZ #22636]
22802 * nptl/tst-minstack-throw.cc: New file.
22803 * nptl/Makefile (tests): Add tst-minstack-throw.
22804 (LDLIBS-tst-minstack-throw): Link with libstdc++.
22805 [!CXX] (tests-unsupported): Add tst-minstack-throw.
22806
22807 2018-01-15 Joseph Myers <joseph@codesourcery.com>
22808
22809 * scripts/build-many-glibcs.py (Context.checkout): Default
22810 binutils version to 2.30 branch, MPFR version to 4.0.0 and MPC
22811 version to 1.1.0.
22812
22813 2018-01-13 Carlos O'Donell <carlos@redhat.com>
22814
22815 [BZ #22707]
22816 * elf/elf.h (DF_1_STUB): Define.
22817 (DF_1_PIE): Define.
22818
22819 2018-01-12 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
22820
22821 [BZ #22697]
22822 * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S (__llround):
22823 Do not add 0.5 to integer or out-of-range arguments.
22824
22825 2018-01-12 Dmitry V. Levin <ldv@altlinux.org>
22826
22827 * po/bg.po: Update translations.
22828 * po/cs.po: Likewise.
22829 * po/de.po: Likewise.
22830 * po/ko.po: Likewise.
22831 * po/pl.po: Likewise.
22832 * po/sv.po: Likewise.
22833 * po/uk.po: Likewise.
22834 * po/vi.po: Likewise.
22835
22836 2018-01-12 Szabolcs Nagy <szabolcs.nagy@arm.com>
22837
22838 * aarch64/start.S (_start): Use __wrap_main.
22839 (__wrap_main): New local symbol.
22840
22841 2018-01-12 Dmitry V. Levin <ldv@altlinux.org>
22842
22843 [BZ #22679]
22844 CVE-2018-1000001
22845 * sysdeps/unix/sysv/linux/getcwd.c (__getcwd): Fall back to
22846 generic_getcwd if the path returned by getcwd syscall is not absolute.
22847 * io/tst-getcwd-abspath.c: New test.
22848 * io/Makefile (tests): Add tst-getcwd-abspath.
22849
22850 2018-01-12 Istvan Kurucsai <pistukem@gmail.com>
22851
22852 * malloc/malloc.c (malloc_consolidate): Add size check.
22853
22854 2018-01-12 Florian Weimer <fweimer@redhat.com>
22855
22856 * support/write_message.c (write_message): Preserve errno.
22857 * support/check.c (print_failure): Likewise.
22858 * support/support_test_verify_impl.c (support_test_verify_impl):
22859 Likewise.
22860 * support/support_test_compare_failure.c
22861 (support_test_compare_failure): Likewise.
22862
22863 2018-01-12 Florian Weimer <fweimer@redhat.com>
22864
22865 [BZ #22701]
22866 * nis/Makefile (install-lib-ldscripts, $(inst_libdir)/libnsl.so):
22867 Prevent installation of libnsl.so.
22868 (libnsl-inhibit-o): Do not build (or install) static libraries.
22869
22870 2018-01-12 Egmont Koblinger <egmont@gmail.com>
22871
22872 [BZ #22657]
22873 * localedata/locales/hu_HU (d_t_fmt): Avoid a leading space
22874 before the day number which may produce a double space.
22875 (date_fmt): Likewise.
22876
22877 2018-01-12 Joseph Myers <joseph@codesourcery.com>
22878
22879 * sysdeps/s390/fpu/feholdexcpt.c (__feholdexcept): Call __fegetenv
22880 instead of fegetenv.
22881
22882 2018-01-11 Joseph Myers <joseph@codesourcery.com>
22883
22884 [BZ #22702]
22885 * sysdeps/generic/math_private.h (libc_feresetround_noex): Update
22886 comment to say exceptions are discarded.
22887 (libc_feholdsetround_noex_ctx): Use __feholdexcept instead of
22888 __fegetenv.
22889 (SET_RESTORE_ROUND_NOEX): Update comment to say non-stop mode must
22890 be enabled.
22891
22892 2018-01-11 Florian Weimer <fweimer@redhat.com>
22893
22894 * sysdeps/gnu/unwind-resume.c (__libgcc_s_init): Update comment
22895 and error message.
22896
22897 2018-01-11 Florian Weimer <fweimer@redhat.com>
22898
22899 [BZ #22636]
22900 * nptl/Makefile (tests): Add tst-minstack-cancel, tst-minstack-exit.
22901 * nptl/tst-minstack-cancel.c, nptl/tst-minstack-exit.c: New files.
22902
22903 2018-01-10 Joseph Myers <joseph@codesourcery.com>
22904
22905 [BZ #22693]
22906 * sysdeps/ieee754/ldbl-128ibm/s_log1pl.c (__log1pl): Handle
22907 negative arguments in test for NaN or infinity argument.
22908
22909 2018-01-10 Dmitry V. Levin <ldv@altlinux.org>
22910
22911 * po/libc.pot: Regenerate.
22912
22913 2018-01-10 Florian Weimer <fweimer@redhat.com>
22914
22915 [BZ #22636]
22916 * sysdeps/nptl/unwind-forcedunwind.c (pthread_cancel_init): Open
22917 libgcc.so with RTLD_NOW, to avoid lazy binding during unwind.
22918
22919 2018-01-10 Samuel Thibault <samuel.thibault@ens-lyon.org>
22920
22921 * hurd/hurd/fd.h: Include <fcntl.h>
22922 (__hurd_at_flags): New function.
22923 * hurd/lookup-at.c (__file_name_lookup_at): Replace flag computation
22924 with call to __hurd_at_flags.
22925 * include/unistd.h (__faccessat, __faccessat_noerrno): Add declaration.
22926 * sysdeps/mach/hurd/access.c (access_common): Move implementation to
22927 __faccessat
22928 (hurd_fail_seterrno, hurd_fail_noerrno): Move to sysdeps/mach/hurd/faccessat.c.
22929 (__access_noerrno): Use __faccessat_common instead of access_common.
22930 (__access): Likewise.
22931 * sysdeps/mach/hurd/euidaccess.c (__euidaccess): Replace implementation
22932 with a call to __faccessat.
22933 * sysdeps/mach/hurd/faccessat.c (faccessat): Rename into...
22934 (__faccessat_common): ... this. Move implementation of __access into it when
22935 AT_FLAGS does not contain AT_EACCESS. Make it call __hurd_at_flags, add
22936 reauthenticate_cwdir_at helper to implement AT mechanism.
22937 (__faccessat_noerrno): New function, just calls __faccessat_common.
22938 (__faccessat): New function, just calls __faccessat_common.
22939 (faccessat): Define weak alias.
22940
22941 2018-01-10 Joseph Myers <joseph@codesourcery.com>
22942
22943 [BZ #22691]
22944 * sysdeps/powerpc/nofpu/Makefile [$(subdir) = math]
22945 (CFLAGS-s_fmaxmagl.c): New variable.
22946 [$(subdir) = math] (CFLAGS-s_fminmagl.c: Likewise.
22947
22948 [BZ #22690]
22949 * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c (__lrintl): Use unsigned
22950 long int for arguments of possibly overflowing addition or
22951 subtraction.
22952 * sysdeps/ieee754/ldbl-128ibm/s_lroundl.c (__lroundl): Likewise.
22953
22954 2018-01-09 Joseph Myers <joseph@codesourcery.com>
22955
22956 [BZ #22688]
22957 * sysdeps/powerpc/nofpu/Makefile [$(subdir) = math]
22958 (CFLAGS-e_remainderl.c): New variable.
22959
22960 [BZ #22687]
22961 * sysdeps/powerpc/nofpu/Makefile (CFLAGS-s_cacosl.c): New
22962 variable.
22963 (CFLAGS-s_cacoshl.c): Likewise.
22964 (CFLAGS-s_casinhl.c): Likewise.
22965 (CFLAGS-s_catanl.c): Likewise.
22966 (CFLAGS-s_catanhl.c): Likewise.
22967 (CFLAGS-s_cexpl.c): Likewise.
22968 (CFLAGS-s_ccoshl.c): Add -fsignaling-nans.
22969 (CFLAGS-s_csinhl.c): Likewise.
22970 (CFLAGS-s_clogl.c): Likewise.
22971 (CFLAGS-s_clog10l.c): Likewise.
22972 (CFLAGS-s_csinl.c): Likewise.
22973 (CFLAGS-s_csqrtl.c): Likewise.
22974
22975 2017-01-09 Emilio Pozuelo Monfort <pochu27@gmail.com>
22976 2017-01-09 Svante Signell <svante.signell@gmail.com>
22977
22978 * hurd/hurdexec.c (_hurd_exec): Deprecate function.
22979 (_hurd_exec_paths): New function.
22980 * hurd/hurd.h (_hurd_exec): Deprecate function.
22981 (_hurd_exec_paths): Declare function.
22982 * hurd/Versions: Export _hurd_exec_paths.
22983 * sysdeps/mach/hurd/execve.c: Include <stdlib.h> and <stdio.h>
22984 (__execve): Use __getcwd to build absolute path, and use
22985 _hurd_exec_paths instead of _hurd_exec.
22986 * sysdeps/mach/hurd/spawni.c: Likewise.
22987 * sysdeps/mach/hurd/fexecve.c: Use _hurd_exec_paths instead of
22988 _hurd_exec.
22989
22990 2018-01-08 Dmitry V. Levin <ldv@altlinux.org>
22991
22992 * sysdeps/unix/sysv/linux/tst-ttyname.c (do_in_chroot_1): Skip the
22993 test instead of failing in case of ENOENT returned by posix_openpt.
22994
22995 2018-01-08 Florian Weimer <fweimer@redhat.com>
22996
22997 resolv: Support binary labels in test framework.
22998 * support/resolv_test.c (struct to_be_freed): Remove.
22999 (struct compressed_name): New.
23000 (allocate_compressed_name, ascii_tolower)
23001 (compare_compressed_name): New functions.
23002 (struct resolv_response_builder): Update type of
23003 compression_offsets for use with tsearch. Rempve to_be_freed.
23004 (response_push_pointer_to_free): Remove function.
23005 (resolv_response_add_name): Rewrite using struct compressed_name
23006 and tsearch instead of hsearch_r.
23007 (response_builder_allocate): Remove initialization of
23008 compression_offsets.
23009 (response_builder_free): Update for removal of to_be_freed. Use
23010 tdestroy instead of hdestroy_r.
23011 * resolv/Makefile (tests): Add tst-resolv-binary.
23012 (tst-resolv-binary): Link with -lresolv -lpthread.
23013
23014 2018-01-08 Florian Weimer <fweimer@redhat.com>
23015
23016 * support/check.h (TEST_COMPARE): Allow sign mismatch at compile
23017 time. Pass positive flag instead of negative flag to
23018 support_test_compare_failure.
23019 (support_test_compare_failure): Change negative parameter to
23020 positive.
23021 * support/support_test_compare_failure.c (report)
23022 (support_test_compare_failure): Likewise.
23023 * support/tst-test_compare.c (return_ssize_t, return_int): New.
23024 (do_test): Check int/size_t, ssize_t/size_t comparisons.
23025
23026 2018-01-08 Szabolcs Nagy <szabolcs.nagy@arm.com>
23027
23028 [BZ #22637]
23029 * nptl/descr.h (stackblock, stackblock_size): Update comments.
23030 * nptl/allocatestack.c (allocate_stack): Add guardsize to stacksize.
23031 * nptl/nptl-init.c (__pthread_get_minstack): Remove guardsize from
23032 stacksize.
23033 * nptl/pthread_getattr_np.c (pthread_getattr_np): Likewise.
23034
23035 2018-01-08 H.J. Lu <hongjiu.lu@intel.com>
23036
23037 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
23038 Add s_sincosf-sse2 and s_sincosf-fma.
23039 (CFLAGS-s_sincosf-fma.c): New.
23040 * sysdeps/x86_64/fpu/multiarch/s_sincosf-fma.c: New file.
23041 * sysdeps/x86_64/fpu/multiarch/s_sincosf-sse2.S: Likewise.
23042 * sysdeps/x86_64/fpu/multiarch/s_sincosf.c: Likewise.
23043 * sysdeps/x86_64/fpu/s_sincosf.S: Don't add alias if
23044 __sincosf is defined.
23045
23046 2018-01-08 Florian Weimer <fweimer@redhat.com>
23047
23048 * nptl/tst-thread-exit-clobber.cc: New file.
23049 * nptl/Makefile (CFLAGS-tst-thread-exit-clobber.o): Compile in
23050 C++11 mode.
23051 (LDLIBS-tst-thread-exit-clobber): Link with libstdc++.
23052 (tests): Add tst-thread-exit-clobber.
23053 [!CXX] (tests-unsupported): Add tst-thread-exit-clobber.
23054
23055 2018-01-08 Florian Weimer <fweimer@redhat.com>
23056
23057 * support/check.h (support_static_assert): Define.
23058 (TEST_COMPARE): Use it.
23059
23060 2018-01-07 Aurelien Jarno <aurelien@aurel32.net>
23061
23062 * sysdeps/unix/sysv/linux/getrlimit64 (getrlimit64)
23063 [!__RLIM_T_MATCHES_RLIM64_T]
23064 [!SHLIB_COMPAT (libc, GLIBC_2_1, GLIBC_2_2)]: Define as weak alias of
23065 __getrlimit64. Add libc_hidden_weak.
23066
23067 2018-01-06 Palmer Dabbelt <palmer@sifive.com>
23068
23069 * elf/elf.h (R_RISCV_NONE): New define.
23070 (R_RISCV_32): Likewise.
23071 (R_RISCV_64): Likewise.
23072 (R_RISCV_RELATIVE): Likewise.
23073 (R_RISCV_COPY): Likewise.
23074 (R_RISCV_JUMP_SLOT): Likewise.
23075 (R_RISCV_TLS_DTPMOD32): Likewise.
23076 (R_RISCV_TLS_DTPMOD64): Likewise.
23077 (R_RISCV_TLS_DTPREL32): Likewise.
23078 (R_RISCV_TLS_DTPREL64): Likewise.
23079 (R_RISCV_TLS_TPREL32): Likewise.
23080 (R_RISCV_TLS_TPREL64): Likewise.
23081 * Makerules (make-link-multidir): Make directories before linking into
23082 them.
23083 * sysdeps/unix/sysv/linux/dl-vdso.h (VDSO_NAME_LINUX_4_15): New
23084 define.
23085 (VDSO_HASH_LINUX_4_15): Likewise.
23086 * scripts/build-many-glibcs.py (class Glibc): Strip shared objects
23087 in subdirectories of lib.
23088 * nptl/Makefile (/librt.so): Always depend on
23089 "$(shared-thread-library)".
23090
23091 2018-01-06 Samuel Thibault <samuel.thibault@ens-lyon.org>
23092
23093 * sysdeps/mach/hurd/i386/jmp_buf-macros.h: New file.
23094 * sysdeps/i386/dl-tlsdesc.S (_dl_tlsdesc_dynamic) [NO_RTLD_HIDDEN]: Call
23095 JUMPTARGET (___tls_get_addr) instead of HIDDEN_JUMPTARGET
23096 (___tls_get_addr).
23097 * sysdeps/x86_64/dl-tlsdesc.S (_dl_tlsdesc_dynamic): Likewise.
23098 * sysdeps/i386/fpu/libm-test-ulps: Regenerated for GCC 7 with
23099 "-O2 -march=i686".
23100 * posix/tst-glob_symlinks.c [!PATH_MAX]: Define PATH_MAX macro.
23101 * sysdeps/gnu/glob64.c (__glob): Define macro instead of glob macro.
23102 (__glob64): Define GLIBC_2_27 versioned symbol instead of glob64.
23103 * sysdeps/gnu/glob-lstat-compat.c: New file.
23104 * sysdeps/gnu/glob64-lstat-compat.c: New file.
23105 * sysdeps/posix/pwritev_common.c: Add PROT_READ to __mmap prot.
23106
23107 2018-01-05 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
23108
23109 * sysdeps/powerpc/powerpc64/dl-machine.c (_dl_reloc_overflow):
23110 Reserve 16 chars to reloc_addr before calling _itoa_word.
23111
23112 2018-01-05 Aurelien Jarno <aurelien@aurel32.net>
23113
23114 [BZ #22678]
23115 * sysdeps/unix/sysv/linux/prlimit.c (prlimit): Translate
23116 old_rlimit from RLIM64_INFINITY to RLIM_INFINITY.
23117
23118 * sysdeps/unix/sysv/linux/tst-rlimit-infinity.c: New file.
23119 * sysdeps/unix/sysv/linux/Makefile (tests): Add tst-rlimit-infinity.
23120
23121 * resource/tst-getrlimit.c: Add copyright header.
23122
23123 2018-01-05 Aurelien Jarno <aurelien@aurel32.net>
23124 Adhemerval Zanella <adhemerval.zanella@linaro.org>
23125
23126 * sysdeps/unix/sysv/linux/getrlimit64.c [USE_VERSIONED_RLIMIT]: Do not
23127 define getrlimit and getrlimit64 as weak aliases of __getrlimit64.
23128 Define __GI_getrlimit64 as weak alias of __getrlimit64.
23129 [__RLIM_T_MATCHES_RLIM64_T]: Do not redefine SHLIB_COMPAT, use #elif
23130 instead.
23131 * sysdeps/unix/sysv/linux/setrlimit64.c [USE_VERSIONED_RLIMIT]: Do not
23132 define setrlimit and setrlimit64 as weak aliases of __setrlimit64.
23133 * sysdeps/unix/sysv/linux/alpha/bits/resource.h (RLIM_INFINITY,
23134 RLIM64_INFINITY): Fix values to match the kernel ones.
23135 * sysdeps/unix/sysv/linux/alpha/getrlimit64.c: Define
23136 USE_VERSIONED_RLIMIT. Rename __getrlimit64 into __old_getrlimit64 and
23137 provide it as getrlimit@@GLIBC_2_0 and getrlimit64@@GLIBC_2_1. Add a
23138 __getrlimit64 function and provide it as getrlimit@@GLIBC_2_27 and
23139 getrlimit64@@GLIBC_2_27.
23140 * sysdeps/unix/sysv/linux/alpha/setrlimit64.c: Ditto with setrlimit
23141 and setrlimit64.
23142 * sysdeps/unix/sysv/linux/alpha/libc.abilist (GLIBC_2.27): Add
23143 getrlimit, setrlimit, getrlimit64 and setrlimit64.
23144 * sysdeps/unix/sysv/linux/alpha/Versions (libc): Add getrlimit,
23145 setrlimit, getrlimit64 and setrlimit64.
23146
23147 2018-01-05 Aurelien Jarno <aurelien@aurel32.net>
23148
23149 [BZ #22648]
23150 * sysdeps/unix/sysv/linux/alpha/getrlimit64.c: New file.
23151 * sysdeps/unix/sysv/linux/alpha/setrlimit64.c: Ditto.
23152
23153 2018-01-04 Joseph Myers <joseph@codesourcery.com>
23154
23155 * malloc/tst-malloc-tcache-leak.c (TIMEOUT): Define to 50.
23156 * posix/tst-glob-tilde.c (TIMEOUT): Define to 200.
23157 * resolv/tst-resolv-res_ninit.c (TIMEOUT): Define to 50.
23158
23159 2018-01-03 Adhemerval Zanella <adhemerval.zanella@linaro.org>
23160
23161 [BZ #15479]
23162 [BZ #22666]
23163 * sysdeps/alpha/fpu/s_trunc.c: Remove file.
23164 * sysdeps/alpha/fpu/s_truncf.c: Likewise.
23165
23166 [BZ #15479]
23167 [BZ #22665]
23168 * sysdeps/alpha/fpu/s_ceil.c: Remove file.
23169 * sysdeps/alpha/fpu/s_ceilf.c: Likewise.
23170 * sysdeps/alpha/fpu/s_floor.c: Likewise.
23171 * sysdeps/alpha/fpu/s_floorf.c: Likewise.
23172
23173 2018-01-04 Florian Weimer <fweimer@redhat.com>
23174
23175 [BZ #22667]
23176 * sysdeps/unix/sysv/linux/i386/makecontext.S (__makecontext):
23177 Align the stack before calling exit.
23178 * stdlib/tst-makecontext-align.c: New file.
23179 * stdlib/Makefile (tests): Add tst-makecontext-align.
23180
23181 2018-01-04 Florian Weimer <fweimer@redhat.com>
23182
23183 Add support for calling dlvsym from libc.so.
23184 * include/dlfcn.h (__libc_dlvsym): Declare.
23185 * elf/Makefile (tests-static-internal): Add
23186 tst-libc_dlvsym-static.
23187 (tests-internal): Add tst-libc_dlvsym.
23188 (modules-names): Add tst-libc_dlvsym-dso.
23189 (tst-libc_dlvsym, tst-libc_dlvsym-static): Link with libdl.
23190 (tst-libc_dlvsym-dso.so): Link with libdl, libsupport.
23191 (tst-libc_dlvsym.out, tst-libc_dlvsym-static.out): The shared
23192 object tst-libc_dlvsym-dso.so needs to be built before running
23193 these tests.
23194 (tst-libc_dlvsym-static-ENV): Set LD_LIBRARY_PATH.
23195 * elf/Versions: Export __libc_dlvsym.
23196 * elf/dl-libc.c (struct do_dlvsym_args): New.
23197 (do_dlvsym, __libc_dlvsym): New functions.
23198 (struct dl_open_hook, _dl_open_hook): Add dlvsym member.
23199 (_dl_open_hook2): New variable.
23200 (__libc_register_dl_open_hook): Set it.
23201 * elf/tst-libc_dlvsym-dso.c: New file.
23202 * elf/tst-libc_dlvsym-static.c: Likewise.
23203 * elf/tst-libc_dlvsym.c: Likewise.
23204 * elf/tst-libc_dlvsym.h: Likewise.
23205
23206 2018-01-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
23207
23208 * support/support_enter_mount_namespace.c [!CLONE_NEWNS]: Do not
23209 include <sys/mount.h>.
23210
23211 2018-01-02 Wilco Dijkstra <wdijkstr@arm.com>
23212
23213 * math/math.h (math_errhandling): Set to 0 with __FAST_MATH__.
23214 Add __NO_MATH_ERRNO__ check.
23215
23216 2018-01-02 Joseph Myers <joseph@codesourcery.com>
23217
23218 * sysdeps/mips/mips32/libm-test-ulps: Update.
23219 * sysdeps/mips/mips64/libm-test-ulps: Likewise.
23220
23221 2018-01-02 Florian Weimer <fweimer@redhat.com>
23222
23223 * misc/tst-pselect.c: Add copyright header.
23224
23225 2018-01-02 Aurelien Jarno <aurelien@aurel32.net>
23226
23227 * sysdeps/unix/sysv/linux/alpha/getrlimit64.c: Fix a typo in the
23228 comment.
23229 * sysdeps/unix/sysv/linux/alpha/setrlimit64.c: Fix a typo in the
23230 comment.
23231 (settrlimit): Rename into setrlimit.
23232 (__sttrlimit): Rename into __setrlimit.
23233
23234 * sysdeps/unix/sysv/linux/alpha/getrlimit64.c (__old_getrlimit64):
23235 Drop __RLIM_T_MATCHES_RLIM64_T conditional as __old_getrlimit64 is
23236 never defined in that case.
23237
23238 2018-01-02 Joseph Myers <joseph@codesourcery.com>
23239
23240 * sysdeps/powerpc/nofpu/libm-test-ulps: Update.
23241
23242 * sysdeps/arm/libm-test-ulps: Update.
23243
23244 * math/Makefile (run-regen-ulps): Add $(objpfx) to test name here.
23245 (regen-ulps): Use $(libm-tests) not $^ in shell loop.
23246
23247 2018-01-02 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
23248
23249 * NEWS: Add cosf and sincosf to list of optimized functions.
23250
23251 2018-01-02 Aurelien Jarno <aurelien@aurel32.net>
23252
23253 [BZ #22660]
23254 * sysdeps/alpha/fpu/s_fmax.S: Remove file.
23255 * sysdeps/alpha/fpu/s_fmaxf.S: Likewise.
23256 * sysdeps/alpha/fpu/s_fmin.S: Likewise.
23257 * sysdeps/alpha/fpu/s_fminf.S: Likewise.
23258
23259 2018-01-01 Dmitry V. Levin <ldv@altlinux.org>
23260
23261 [BZ #22433]
23262 * sysdeps/unix/sysv/linux/arm/sys/ptrace.h: New file.
23263
23264 * elf/dl-load.c (decompose_rpath): Check for rpath emptiness before
23265 making a copy of it.
23266
23267 2018-01-01 Joseph Myers <joseph@codesourcery.com>
23268
23269 * manual/texinfo.tex: Update to version 2017-12-26.21 with
23270 trailing whitespace removed.
23271 * scripts/config.guess: Update to version 2018-01-01.
23272 * scripts/config.sub: Update to version 2018-01-01.
23273 * scripts/move-if-change: Update from gnulib.
23274
23275 * NEWS: Update copyright dates.
23276 * catgets/gencat.c (print_version): Likewise.
23277 * csu/version.c (banner): Likewise.
23278 * debug/catchsegv.sh: Likewise.
23279 * debug/pcprofiledump.c (print_version): Likewise.
23280 * debug/xtrace.sh (do_version): Likewise.
23281 * elf/ldconfig.c (print_version): Likewise.
23282 * elf/ldd.bash.in: Likewise.
23283 * elf/pldd.c (print_version): Likewise.
23284 * elf/sotruss.sh: Likewise.
23285 * elf/sprof.c (print_version): Likewise.
23286 * iconv/iconv_prog.c (print_version): Likewise.
23287 * iconv/iconvconfig.c (print_version): Likewise.
23288 * locale/programs/locale.c (print_version): Likewise.
23289 * locale/programs/localedef.c (print_version): Likewise.
23290 * login/programs/pt_chown.c (print_version): Likewise.
23291 * malloc/memusage.sh (do_version): Likewise.
23292 * malloc/memusagestat.c (print_version): Likewise.
23293 * malloc/mtrace.pl: Likewise.
23294 * manual/libc.texinfo: Likewise.
23295 * nptl/version.c (banner): Likewise.
23296 * nscd/nscd.c (print_version): Likewise.
23297 * nss/getent.c (print_version): Likewise.
23298 * nss/makedb.c (print_version): Likewise.
23299 * posix/getconf.c (main): Likewise.
23300 * scripts/test-installation.pl: Likewise.
23301 * sysdeps/unix/sysv/linux/lddlibc4.c (main): Likewise.
23302
23303 * All files with FSF copyright notices: Update copyright dates
23304 using scripts/update-copyrights.
23305 * locale/programs/charmap-kw.h: Regenerated.
23306 * locale/programs/locfile-kw.h: Likewise.
23307
23308 2017-12-31 Zack Weinberg <zackw@panix.com>
23309
23310 * libio/bits/libio-ldbl.h: Correct check for improper
23311 inclusion. Add own multiple include guard.
23312
23313 2017-12-30 Aurelien Jarno <aurelien@aurel32.net>
23314 Dmitry V. Levin <ldv@altlinux.org>
23315
23316 [BZ #22625]
23317 CVE-2017-16997
23318 * elf/dl-load.c (fillin_rpath): Check for empty tokens before dynamic
23319 string token expansion. Check for NULL pointer or empty string possibly
23320 returned by expand_dynamic_string_token.
23321 (decompose_rpath): Check for empty path after dynamic string
23322 token expansion.
23323
23324 2017-12-29 Dmitry V. Levin <ldv@altlinux.org>
23325
23326 [BZ #22433]
23327 * sysdeps/unix/sysv/linux/x86/sys/ptrace.h: New file.
23328
23329 * sysdeps/unix/sysv/linux/sys/ptrace.h (__ptrace_request): Add comments
23330 about PTRACE_PEEKSIGINFO, PTRACE_GETSIGMASK, PTRACE_SETSIGMASK, and
23331 PTRACE_SECCOMP_GET_FILTER. Update comments about PTRACE_SINGLESTEP
23332 and PTRACE_SYSCALL.
23333 * sysdeps/unix/sysv/linux/aarch64/sys/ptrace.h: Likewise.
23334 * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Likewise.
23335 * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
23336 * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
23337 * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
23338 * sysdeps/unix/sysv/linux/tile/sys/ptrace.h: Likewise.
23339
23340 * sysdeps/unix/sysv/linux/sys/ptrace.h: Include <bits/ptrace-shared.h>.
23341 (__ptrace_setoptions, __ptrace_eventcodes, __ptrace_peeksiginfo_args,
23342 __ptrace_peeksiginfo_flags, ptrace): Move to ...
23343 * sysdeps/unix/sysv/linux/bits/ptrace-shared.h: ... new file.
23344 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
23345 bits/ptrace-shared.h.
23346 * sysdeps/unix/sysv/linux/aarch64/sys/ptrace.h: Include
23347 <bits/ptrace-shared.h>.
23348 (__ptrace_setoptions, __ptrace_eventcodes, __ptrace_peeksiginfo_args,
23349 __ptrace_peeksiginfo_flags, ptrace): Remove.
23350 * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Likewise.
23351 * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
23352 * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
23353 * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
23354 * sysdeps/unix/sysv/linux/tile/sys/ptrace.h: Likewise.
23355
23356 2017-12-29 Aurelien Jarno <aurelien@aurel32.net>
23357
23358 [BZ #17804]
23359 * dirent/scandir-tail.c (SCANDIR_TAIL): Move __set_errno (0) at the
23360 end of the loop. Improve comments.
23361
23362 2017-12-29 Zack Weinberg <zackw@panix.com>
23363
23364 [BZ #22615]
23365 * manual/errno.texi (Checking for Errors): Explicitly say that errno
23366 might be set on success.
23367
23368 2017-12-29 Aurelien Jarno <aurelien@aurel32.net>
23369
23370 [BZ #22611]
23371 * malloc/tst-realloc.c (do_test): Remove the test checking that errno
23372 is unchanged on success.
23373
23374 2017-12-27 Dmitry V. Levin <ldv@altlinux.org>
23375
23376 * elf/dl-dst.h (DL_DST_COUNT): Remove is_path argument, all callers
23377 updated.
23378 * elf/dl-load.c (is_dst, _dl_dst_count, _dl_dst_substitute,
23379 expand_dynamic_string_token): Likewise.
23380 * sysdeps/generic/ldsodefs.h (_dl_dst_count, _dl_dst_substitute): Remove
23381 is_path argument.
23382
23383 * elf/dl-load.c (is_dst): Remove checks that is_path is set and name
23384 contains ':'.
23385
23386 * elf/dl-load.c (_dl_dst_substitute): Remove checks that is_path
23387 is set and name contains ':', and all code depending on these checks.
23388
23389 2017-12-24 Zack Weinberg <zackw@panix.com>
23390
23391 * libio/libio.h, libio/_G_config.h: New stub headers which issue a
23392 deprecation warning and then include <bits/libio.h>, <bits/_G_config.h>
23393 respectively.
23394 * libio/libio.h: Rename the original version of this file to
23395 libio/bits/libio.h. Error out if not included by stdio.h or the
23396 stub libio.h.
23397 * include/libio.h: Move to include/bits. Forward to libio/bits/libio.h.
23398 * sysdeps/generic/_G_config.h: Move to top-level bits/. Error out
23399 if not included by bits/libio.h or the stub _G_config.h.
23400 * sysdeps/unix/sysv/linux/_G_config.h: Move to
23401 sysdeps/unix/sysv/linux/bits. Error out if not included by
23402 bits/libio.h or the stub _G_config.h.
23403 * libio/stdio.h: Include bits/libio.h, not libio.h.
23404 * libio/Makefile: Install bits/libio.h and bits/_G_config.h as
23405 well as libio.h and _G_config.h.
23406
23407 * csu/init.c, libio/fmemopen.c, libio/iolibio.h, libio/oldfmemopen.c
23408 * libio/strfile.h, stdio-common/vfscanf.c
23409 * sysdeps/pthread/flockfile.c, sysdeps/pthread/funlockfile.c
23410 Include stdio.h, not _G_config.h nor libio.h.
23411 * libio/iofgetpos.c: Also rename fgetpos64 out of the way.
23412 * libio/iofsetpos.c: Also rename fsetpos64 out of the way.
23413
23414 * scripts/check-installed-headers.sh: Skip libio.h and _G_config.h.
23415
23416 2017-12-23 Dmitry V. Levin <ldv@altlinux.org>
23417
23418 [BZ #22347]
23419 * stdlib/getrandom.c (getrandom): Fix comment.
23420 * sysdeps/unix/sysv/linux/getrandom.c (getrandom): Likewise.
23421
23422 2017-12-23 Aurelien Jarno <aurelien@aurel32.net>
23423
23424 [BZ #21161]
23425 * manual/arith.texi (strtoul): Fix a typo.
23426
23427 [BZ #22596]
23428 * manual/arith.texi (finite): Fix the description of the return
23429 value.
23430
23431 2017-12-22 Eric Blake <ebb9@byu.net>
23432
23433 Avoid gcc warnings on cygwin
23434 * posix/regex_internal.c (re_string_reconstruct) [!RE_ENABLE_I18N]:
23435 * posix/regexec.c (check_arrival_add_next_nodes) [!RE_ENABLE_I18N]:
23436 Avoid unused variable.
23437
23438 2017-12-22 Florian Weimer <fweimer@redhat.com>
23439
23440 * io/Makefile (routines): Add copy_file_range.
23441 (tests): Add tst-copy_file_range.
23442 (tests-static, tests-internal): Add tst-copy_file_range-compat.
23443 * io/Versions (GLIBC_2.27): Export copy_file_range.
23444 * io/copy_file_range-compat.c: New file.
23445 * io/copy_file_range.c: Likewise.
23446 * io/tst-copy_file_range-compat.c: Likewise.
23447 * io/tst-copy_file_range.c: Likewise.
23448 * manual/llio.texi (Copying File Data): New section.
23449 * posix/unistd.h [__USE_GNU] (copy_file_range): Declare.
23450 * support/Makefile (libsupport-routines): Add support-xfstat,
23451 xftruncate, xlseek.
23452 * support/support-xfstat.c: New file.
23453 * support/xftruncate.c: Likewise.
23454 * support/xlseek.c: Likewise.
23455 * support/xunistd.h (xfstat, xftruncate, xlseek): Declare.
23456 * sysdeps/unix/sysv/linux/**.abilist: Update.
23457 * sysdeps/unix/sysv/linux/copy_file_range.c: New file.
23458
23459 2017-12-21 Szabolcs Nagy <szabolcs.nagy@arm.com>
23460
23461 * scripts/build-many-glibcs.py (Context.add_all_configs): Add
23462 disable-multi-arch variant to aarch64-linux-gnu.
23463
23464 2017-12-20 Joseph Myers <joseph@codesourcery.com>
23465
23466 * manual/texinfo.tex: Update to version 2017-12-18.20 with
23467 trailing whitespace removed.
23468 * scripts/config.guess: Update to version 2017-12-17.
23469 * scripts/config.sub: Update to version 2017-11-23.
23470 * scripts/install-sh: Update to version 2017-09-23.17.
23471 * scripts/move-if-change: Update to version 2017-09-13 06:45.
23472
23473 2017-12-20 Adhemerval Zanella <adhemerval.zanella@linaro.org>
23474
23475 * sysdeps/tile/__longjmp.S (__longjmp): Use lowercase instructions.
23476 * sysdeps/tile/__tls_get_addr.S (__tls_get_addr): Likewise.
23477 * sysdeps/tile/_mcount.S (__mcount): Likewise.
23478 * sysdeps/tile/crti.S (_init, _fini): Likewise.
23479 * sysdeps/tile/crtn.S: Likewise.
23480 * sysdeps/tile/dl-start.S (_start): Likewise.
23481 * sysdeps/tile/dl-trampoline.S: Likewise.
23482 * sysdeps/tile/setjmp.S (__sigsetjmp): Likewise.
23483 * sysdeps/tile/start.S (_start): Likewise.
23484 * sysdeps/unix/sysv/linux/tile/clone.S (_clone): Likewise.
23485 * sysdeps/unix/sysv/linux/tile/getcontext.S (__getcontext): Likewise.
23486 * sysdeps/unix/sysv/linux/tile/ioctl.S (__ioctl): Likewise.
23487 * sysdeps/unix/sysv/linux/tile/setcontext.S (__setcontext): Likewise.
23488 * sysdeps/unix/sysv/linux/tile/swapcontext.S (__swapcontext): Likewise.
23489 * sysdeps/unix/sysv/linux/tile/syscall.S (syscall): Likewise.
23490 * sysdeps/unix/sysv/linux/tile/vfork.S (__vfork): Likewise.
23491
23492 * stdlib/bug-getcontext.c (do_test): Remove tilepro mention in
23493 comment.
23494 * sysdeps/tile/preconfigure: Remove tilegx folder.
23495 * sysdeps/tile/tilegx/Implies: Move definitions to ...
23496 * sysdeps/tile/Implies: ... here.
23497 * sysdeps/tile/tilegx/Makefile: Move rules to ...
23498 * sysdeps/tile/Makefile: ... here.
23499 * sysdeps/tile/tilegx/atomic-machine.h: Move definitions to ...
23500 * sysdeps/tile/atomic-machine.h: ... here. Add include guards.
23501 * sysdeps/tile/tilegx/bits/wordsize.h: Move to ...
23502 * sysdeps/tile/bits/wordsize.h: ... here.
23503 * sysdeps/tile/tilegx/*: Move to ...
23504 * sysdeps/tile/*: ... here.
23505 * sysdeps/tile/tilegx/tilegx32/Implies: Move to ...
23506 * sysdeps/tile/tilegx32/Implies: ... here.
23507 * sysdeps/tile/tilegx/tilegx64/Implies: Move to ...
23508 * sysdeps/tile/tilegx64/Implies: ... here.
23509 * sysdeps/unix/sysv/linux/tile/tilegx/Makefile: Move definitions
23510 to ...
23511 * sysdeps/unix/sysv/linux/tile/Makefile: ... here.
23512 * sysdeps/unix/sysv/linux/tile/tilegx/*: Move to ...
23513 * sysdeps/unix/sysv/linux/tile/*: ... here.
23514 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/*: Move to ...
23515 * sysdeps/unix/sysv/linux/tile/tilegx32/*: ... here.
23516 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/*: Move to ...
23517 * sysdeps/unix/sysv/linux/tile/tilegx64/*: ... here.
23518
23519 * README: Remove tilepro-*-linux-gnu from supported architecture.
23520 * scripts/build-many-glibcs.py: Likewise.
23521 * sysdeps/tile/__tls_get_addr.S (__tls_get_addr): Likewise.
23522 * sysdeps/tile/crti.S (PREINIT_FUNCTION): Likewise.
23523 * sysdeps/tile/dl-machine.h (ELF_MACHINE_NAME,
23524 elf_machine_matches_host, elf_machine_dynamic,
23525 elf_machine_load_address, elf_machine_runtime_setup, reloc_howto
23526 howto, elf_machine_rela): Likewise.
23527 * sysdeps/tile/dl-start.S (_start): Likewise.
23528 * sysdeps/tile/memcmp.c (DBLALIGN, REVBYTES): Likewise.
23529 * sysdeps/tile/memcopy.h (MEMCPY_OK_FOR_FWD_MEMMOVE,
23530 MEMCPY_OK_FOR_FWD_MEMMOVE, op_t): Likewise.
23531 * sysdeps/tile/nptl/pthread_spin_lock.c (TNS, CMPTNS): Likewise.
23532 * sysdeps/tile/nptl/pthread_spin_trylock.c (TNS): Likewise.
23533 * sysdeps/tile/nptl/pthread_spin_unlock.c (pthread_spin_unlock):
23534 Likewise.
23535 * sysdeps/tile/nptl/tls.h (DB_THREAD_SELF): Likewise.
23536 * sysdeps/tile/preconfigure: Likewise.
23537 * sysdeps/tile/stackguard-macros.h (STACK_CHK_GUARD,
23538 POINTER_CHK_GUARD): Likewise.
23539 * sysdeps/tile/stackinfo.h (__stackinfo_sub): Likewise.
23540 * sysdeps/tile/start.S (_start): Likewise.
23541 * sysdeps/tile/tls-macros.h (TLS_GD_OFFSET, TLS_IE_OFFSET, _TLS_LE):
23542 Likewise.
23543 * sysdeps/tile/sysdep.h (REGSIZE): Likewise.
23544 (LD, LD4U, ST, ST4, BNEZ, BEQZ, BEQZT, BGTZ, CMPEQI, CMPEQ, CMOVEQZ,
23545 CMOVNEZ): Remove.
23546 * sysdeps/unix/sysv/linux/tile/bits/environments.h
23547 (__ILP32_OFF32_CFLAGS, __ILP32_OFFBIG_CFLAGS, __ILP32_OFF32_LDFLAGS,
23548 __ILP32_OFFBIG_LDFLAGS, __LP64_OFF64_CFLAGS, __LP64_OFF64_LDFLAGS):
23549 Likewise.
23550 * sysdeps/tile/wordcopy.c (DBLALIGN): Likewise.
23551 * sysdeps/tile/tilepro/Implies: Remove file.
23552 * sysdeps/tile/tilepro/atomic-machine.h: Likewise.
23553 * sysdeps/tile/tilepro/bits/wordsize.h: Likewise.
23554 * sysdeps/tile/tilepro/memchr.c: Likewise.
23555 * sysdeps/tile/tilepro/memcpy.S: Likewise.
23556 * sysdeps/tile/tilepro/memset.c: Likewise.
23557 * sysdeps/tile/tilepro/memusage.h: Likewise.
23558 * sysdeps/tile/tilepro/rawmemchr.c: Likewise.
23559 * sysdeps/tile/tilepro/strchr.c: Likewise.
23560 * sysdeps/tile/tilepro/strchrnul.c: Likewise.
23561 * sysdeps/tile/tilepro/strlen.c: Likewise.
23562 * sysdeps/tile/tilepro/strrchr.c: Likewise.
23563 * sysdeps/unix/sysv/linux/tile/tilepro/Implies: Likewise.
23564 * sysdeps/unix/sysv/linux/tile/tilepro/c++-types.data: Likewise.
23565 * sysdeps/unix/sysv/linux/tile/tilepro/jmp_buf-macros.h: Likewise.
23566 * sysdeps/unix/sysv/linux/tile/tilepro/ld.abilist: Likewise.
23567 * sysdeps/unix/sysv/linux/tile/tilepro/ldconfig.h: Likewise.
23568 * sysdeps/unix/sysv/linux/tile/tilepro/libBrokenLocale.abilist:
23569 Likewise.
23570 * sysdeps/unix/sysv/linux/tile/tilepro/libanl.abilist: Likewise.
23571 * sysdeps/unix/sysv/linux/tile/tilepro/libc.abilist: Likewise.
23572 * sysdeps/unix/sysv/linux/tile/tilepro/libcrypt.abilist: Likewise.
23573 * sysdeps/unix/sysv/linux/tile/tilepro/libdl.abilist: Likewise.
23574 * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
23575 * sysdeps/unix/sysv/linux/tile/tilepro/libnsl.abilist: Likewise.
23576 * sysdeps/unix/sysv/linux/tile/tilepro/libpthread.abilist: Likewise.
23577 * sysdeps/unix/sysv/linux/tile/tilepro/libresolv.abilist: Likewise.
23578 * sysdeps/unix/sysv/linux/tile/tilepro/librt.abilist: Likewise.
23579 * sysdeps/unix/sysv/linux/tile/tilepro/libthread_db.abilist: Likewise.
23580 * sysdeps/unix/sysv/linux/tile/tilepro/libutil.abilist: Likewise.
23581 * sysdeps/unix/sysv/linux/tile/tilepro/register-dump.h: Likewise.
23582 * sysdeps/unix/sysv/linux/tile/sysconf.c (linux_sysconf): Remove
23583 tilepro mention in comment.
23584
23585 * nptl/Makefile (libpthread-routines): Add pthread_join_common.
23586 * nptl/pthreadP.h (__pthread_timedjoin_ex): New prototype.
23587 * nptl/pthread_join_common.c: New file: common function used on
23588 pthread_join, pthread_timedjoin_np, pthread_tryjoin_np.
23589 * nptl/pthread_join.c (pthread_join): Use __pthread_timedjoin_ex.
23590 * nptl/pthread_tryjoin.c (pthread_tryjoin): Likewise.
23591 * nptl/pthread_timedjoin.c (pthread_timedjoin_np): Likewise.
23592 (cleanup): Move definition to pthread_join_common.c.
23593 * sysdeps/unix/sysv/linux/i386/lowlevellock.h (__lll_timedwait_tid):
23594 Remove superflous checks.
23595 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h (__lll_timedwait_tid):
23596 Likewise.
23597
23598 2017-12-20 Szabolcs Nagy <szabolcs.nagy@arm.com>
23599
23600 * sysdeps/aarch64/libm-test-ulps: Update.
23601
23602 2017-12-20 Adhemerval Zanella <adhemerval.zanella@linaro.org>
23603
23604 * sysdeps/aarch64/memset.S (MEMSET): Define.
23605
23606 2017-12-20 Florian Weimer <fweimer@redhat.com>
23607
23608 [BZ #22635]
23609 nptl: Provide full implementation of pthread_self in libc.so.
23610 * nptl/Makefile (routines): Add pthread_self.
23611 (libpthread-routines): Replace pthread_self with
23612 compat-pthread_self.
23613 * nptl/forward.c (pthread_self): Remove.
23614 * nptl/nptl-init.c (pthread_functions): Do not initialize
23615 ptr_pthread_self.
23616 * nptl/pthread_self.c (pthread_self): Remove weak alias.
23617 * nptl/compat-pthread_self.c: New file.
23618 * sysdeps/nptl/pthread-functions.h (struct pthread_functions):
23619 Remove ptr_pthread_self.
23620
23621 2017-12-19 Arnold D. Robbins <arnold@skeeve.com>
23622
23623 * posix/regcomp.c: Fix spelling in comments.
23624 * posix/regex.h: Likewise.
23625 * posix/regex_internal.c: Likewise.
23626 * posix/regexec.c: Likewise.
23627
23628 2017-12-19 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
23629
23630 [BZ #22377]
23631 * math/Makefile [C++] (tests): Add test for iseqsig.
23632 * math/math.h [C++] (iseqsig): New implementation, which does
23633 not rely on __MATH_TG/__builtin_types_compatible_p.
23634 * math/test-math-iseqsig.cc: New file.
23635 * sysdeps/powerpc/powerpc64le/Makefile
23636 (CFLAGS-test-math-iseqsig.cc): New variable.
23637
23638 2017-12-19 Dmitry V. Levin <ldv@altlinux.org>
23639
23640 * elf/dl-load.c (is_trusted_path): Remove.
23641 (fillin_rpath): Remove check_trusted argument and its use,
23642 all callers changed.
23643
23644 2017-12-19 H.J. Lu <hongjiu.lu@intel.com>
23645
23646 [BZ #22630]
23647 * Makeconfig (link-pie-before-libc): Replace -pie with
23648 $(if $($(@F)-no-pie),$(no-pie-ldflag),-pie).
23649 * elf/Makefile (LDFLAGS-tst-dlopen-aout): Removed.
23650 (tst-dlopen-aout-no-pie): New.
23651 (LDFLAGS-tst-prelink): Removed.
23652 (tst-prelink-no-pie): New.
23653 (LDFLAGS-tst-main1): Removed.
23654 (tst-main1-no-pie): New.
23655 * gmon/Makefile (LDFLAGS-tst-gmon): Removed.
23656 (tst-gmon-no-pie): New.
23657
23658 2017-12-19 H.J. Lu <hongjiu.lu@intel.com>
23659
23660 * manual/install.texi: Document that --enable-static-pie
23661 implies PIE.
23662 * INSTALL: Regenerated.
23663
23664 2017-12-19 Bernd Edlinger <bernd.edlinger@hotmail.de>
23665
23666 [BZ #21309]
23667 * sysdeps/ieee754/dbl-64/e_pow.c (checkint): Make m and n
23668 unsigned.
23669
23670 2017-12-19 Joseph Myers <joseph@codesourcery.com>
23671
23672 Revert:
23673
23674 2017-12-19 Joseph Myers <joseph@codesourcery.com>
23675
23676 * sysdeps/x86_64/fpu/libm-test-ulps: Update.
23677
23678 2017-12-19 Patrick McGehearty <patrick.mcgehearty@oracle.com>
23679
23680 * sysdeps/ieee754/dbl-64/e_exp.c: Include <math-svid-compat.h> and
23681 <errno.h>. Include "eexp.tbl".
23682 (half): New constant.
23683 (one): Likewise.
23684 (__ieee754_exp): Rewrite.
23685 (__slowexp): Remove prototype.
23686 * sysdeps/ieee754/dbl-64/eexp.tbl: New file.
23687 * sysdeps/ieee754/dbl-64/slowexp.c: Remove file.
23688 * sysdeps/i386/fpu/slowexp.c: Likewise.
23689 * sysdeps/ia64/fpu/slowexp.c: Likewise.
23690 * sysdeps/m68k/m680x0/fpu/slowexp.c: Likewise.
23691 * sysdeps/x86_64/fpu/multiarch/slowexp-avx.c: Likewise.
23692 * sysdeps/x86_64/fpu/multiarch/slowexp-fma.c: Likewise.
23693 * sysdeps/x86_64/fpu/multiarch/slowexp-fma4.c: Likewise.
23694 * sysdeps/generic/math_private.h (__slowexp): Remove prototype.
23695 * sysdeps/ieee754/dbl-64/e_pow.c: Remove mention of slowexp.c in
23696 comment.
23697 * sysdeps/powerpc/power4/fpu/Makefile [$(subdir) = math]
23698 (CPPFLAGS-slowexp.c): Remove variable.
23699 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
23700 Remove slowexp-fma, slowexp-fma4 and slowexp-avx.
23701 (CFLAGS-slowexp-fma.c): Remove variable.
23702 (CFLAGS-slowexp-fma4.c): Likewise.
23703 (CFLAGS-slowexp-avx.c): Likewise.
23704 * sysdeps/x86_64/fpu/multiarch/e_exp-avx.c (__slowexp): Do not
23705 define as macro.
23706 * sysdeps/x86_64/fpu/multiarch/e_exp-fma.c (__slowexp): Likewise.
23707 * sysdeps/x86_64/fpu/multiarch/e_exp-fma4.c (__slowexp): Likewise.
23708 * math/Makefile (type-double-routines): Remove slowexp.
23709 * manual/probes.texi (slowexp_p6): Remove.
23710 (slowexp_p32): Likewise.
23711
23712 2017-12-19 Adhemerval Zanella <adhemerval.zanella@linaro.org>
23713
23714 * lib/glob.c (glob): Use a 'char *', not a 'void *', in pointer
23715 arithmetic.
23716
23717 * lib/glob.c (glob): Do not pass NULL to mempcpy.
23718
23719 2017-12-19 Joseph Myers <joseph@codesourcery.com>
23720
23721 * sysdeps/x86_64/fpu/libm-test-ulps: Update.
23722
23723 2017-12-19 Patrick McGehearty <patrick.mcgehearty@oracle.com>
23724
23725 * sysdeps/ieee754/dbl-64/e_exp.c: Include <math-svid-compat.h> and
23726 <errno.h>. Include "eexp.tbl".
23727 (half): New constant.
23728 (one): Likewise.
23729 (__ieee754_exp): Rewrite.
23730 (__slowexp): Remove prototype.
23731 * sysdeps/ieee754/dbl-64/eexp.tbl: New file.
23732 * sysdeps/ieee754/dbl-64/slowexp.c: Remove file.
23733 * sysdeps/i386/fpu/slowexp.c: Likewise.
23734 * sysdeps/ia64/fpu/slowexp.c: Likewise.
23735 * sysdeps/m68k/m680x0/fpu/slowexp.c: Likewise.
23736 * sysdeps/x86_64/fpu/multiarch/slowexp-avx.c: Likewise.
23737 * sysdeps/x86_64/fpu/multiarch/slowexp-fma.c: Likewise.
23738 * sysdeps/x86_64/fpu/multiarch/slowexp-fma4.c: Likewise.
23739 * sysdeps/generic/math_private.h (__slowexp): Remove prototype.
23740 * sysdeps/ieee754/dbl-64/e_pow.c: Remove mention of slowexp.c in
23741 comment.
23742 * sysdeps/powerpc/power4/fpu/Makefile [$(subdir) = math]
23743 (CPPFLAGS-slowexp.c): Remove variable.
23744 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
23745 Remove slowexp-fma, slowexp-fma4 and slowexp-avx.
23746 (CFLAGS-slowexp-fma.c): Remove variable.
23747 (CFLAGS-slowexp-fma4.c): Likewise.
23748 (CFLAGS-slowexp-avx.c): Likewise.
23749 * sysdeps/x86_64/fpu/multiarch/e_exp-avx.c (__slowexp): Do not
23750 define as macro.
23751 * sysdeps/x86_64/fpu/multiarch/e_exp-fma.c (__slowexp): Likewise.
23752 * sysdeps/x86_64/fpu/multiarch/e_exp-fma4.c (__slowexp): Likewise.
23753 * math/Makefile (type-double-routines): Remove slowexp.
23754 * manual/probes.texi (slowexp_p6): Remove.
23755 (slowexp_p32): Likewise.
23756
23757 2017-12-19 Adhemerval Zanella <adhemerval.zanella@linaro.org>
23758 James Clarke <jrtc27@jrtc27.com>
23759
23760 [BZ #22603]
23761 * sysdeps/ia64/memchr.S (__memchr): Avoid overflow in pointer
23762 addition.
23763
23764 2017-12-19 Adhemerval Zanella <adhemerval.zanella@linaro.org>
23765
23766 [BZ #22605]
23767 * sysdeps/unix/sysv/linux/sh/clone.S (__clone): Fix exit return
23768 code.
23769
23770 2017-12-19 H.J. Lu <hongjiu.lu@intel.com>
23771
23772 [BZ #22563]
23773 * sysdeps/i386/nptl/tcb-offsets.sym (FEATURE_1_OFFSET): New.
23774 * sysdeps/i386/nptl/tls.h (tcbhead_t): Add feature_1.
23775 * sysdeps/x86_64/nptl/tcb-offsets.sym (FEATURE_1_OFFSET): New.
23776 * sysdeps/x86_64/nptl/tls.h (tcbhead_t): Rename __glibc_unused1
23777 to feature_1.
23778
23779 2017-12-19 H.J. Lu <hongjiu.lu@intel.com>
23780
23781 [BZ #22563]
23782 * bits/types/__cancel_jmp_buf_tag.h: New file.
23783 * sysdeps/unix/sysv/linux/x86/bits/types/__cancel_jmp_buf_tag.h
23784 * sysdeps/unix/sysv/linux/x86/pthreaddef.h: Likewise.
23785 * sysdeps/unix/sysv/linux/x86/nptl/pthreadP.h: Likewise.
23786 * nptl/Makefile (headers): Add
23787 bits/types/__cancel_jmp_buf_tag.h.
23788 * nptl/descr.h [NEED_SAVED_MASK_IN_CANCEL_JMP_BUF]
23789 (pthread_unwind_buf): Add saved_mask to cancel_jmp_buf.
23790 * sysdeps/nptl/pthread.h: Include
23791 <bits/types/__cancel_jmp_buf_tag.h>.
23792 (__pthread_unwind_buf_t): Use struct __cancel_jmp_buf_tag with
23793 __cancel_jmp_buf.
23794 * sysdeps/unix/sysv/linux/hppa/pthread.h: Likewise.
23795
23796 2017-12-18 H.J. Lu <hongjiu.lu@intel.com>
23797
23798 * scripts/build-many-glibcs.py (Context.add_all_configs): Add
23799 --enable-static-pie variants to x86_64, x32 and i686.
23800
23801 2017-12-19 Joseph Myers <joseph@codesourcery.com>
23802
23803 [BZ #22631]
23804 * sysdeps/m68k/m680x0/fpu/bits/mathinline.h (__m81_defun): Add
23805 argument for attrubutes. All callers changed.
23806 (__inline_mathop1): Likewise. All callers changed.
23807 (__inline_mathop): Likewise. All callers changed.
23808 [__USE_MISC] (scalbn): Use __inline_forward instead of
23809 __inline_forward_c.
23810 [__USE_ISOC99] (scalbln): Likewise.
23811 [__USE_ISOC99] (nearbyint): Likewise.
23812 [__USE_ISOC99] (lrint): Likewise.
23813 [__USE_MISC] (scalbnf): Likewise.
23814 [__USE_ISOC99] (scalblnf): Likewise.
23815 [__USE_ISOC99] (nearbyintf): Likewise.
23816 [__USE_ISOC99] (lrintf): Likewise.
23817 [__USE_MISC] (scalbnl): Likewise.
23818 [__USE_ISOC99] (scalblnl): Likewise.
23819 [__USE_ISOC99] (nearbyintl): Likewise.
23820 [__USE_ISOC99] (lrintl): Likewise.
23821 * sysdeps/m68k/m680x0/fpu/mathimpl.h: All callers of
23822 __inline_mathop and __m81_defun changed.
23823
23824 * scripts/build-many-glibcs.py (Context.add_all_configs): Specify
23825 CPU or FPU for ARM hard-float configurations.
23826
23827 2017-12-18 Joseph Myers <joseph@codesourcery.com>
23828
23829 * nptl/tst-attr3.c: Include <libc-diag.h>.
23830 (do_test) [__GNUC_PREREQ (7, 0)]: Ignore -Wrestrict for two tests.
23831
23832 * posix/tst-glob_symlinks.c (do_test): Increase size of buf.
23833
23834 * string/tester.c (test_strncat): Also disable -Warray-bounds
23835 warnings for two tests.
23836
23837 2017-12-18 H.J. Lu <hongjiu.lu@intel.com>
23838
23839 [BZ #22614]
23840 * Makeconfig (no-pie-ldflag): Set to -no-pie only if
23841 $(cc-pie-default) == yes.
23842 * config.make.in (cc-pie-default): New.
23843 * configure.ac (libc_cv_pie_default): Renamed to ...
23844 (libc_cv_cc_pie_default): This.
23845 (libc_cv_pie_default): Set to $libc_cv_cc_pie_default.
23846 * configure: Regenerated.
23847
23848 2017-12-18 Florian Weimer <fweimer@redhat.com>
23849
23850 [BZ #20204]
23851 ld.so: Harden dl-libc/libdl hooks.
23852 * sysdeps/generic/ldsodefs.h (_dl_init_all_dirs): Update comment.
23853 (rtld_active): New function.
23854 * dlfcn/dladdr.c (__dladdr): Call it.
23855 * dlfcn/dladdr1.c (__dladdr1): Likewise.
23856 * dlfcn/dlclose.c (__dlcose): Likewise.
23857 * dlfcn/dlerror.c (__dlerror): Likewise.
23858 * dlfcn/dlinfo.c (__dlinfo): Likewise.
23859 * dlfcn/dlmopen.c (__dlmopen): Likewise.
23860 * dlfcn/dlopen.c (__dlopen): Likewise.
23861 * dlfcn/dlopenold.c (__dlopen_nocheck): Likewise.
23862 * dlfcn/dlsym.c (__dlsym): Likewise.
23863 * dlfcn/dlvsym.c (__dlvsym): Likewise.
23864 * libio/vtables.c (_IO_vtable_check): Likewise.
23865 * elf/dl-libc.c (__libc_dlopen_mode, __libc_dlsym)
23866 (__libc_dlclose): Likewise.
23867 * elf/rtld.c (dl_main): Update comment on the _dl_init_all_dirs
23868 assignment.
23869
23870 2017-12-18 Joseph Myers <joseph@codesourcery.com>
23871
23872 [BZ #22446]
23873 * nscd/connections.c (handle_request) [SO_PEERCRED]: Use separate
23874 buffers for readlink input and output.
23875
23876 2017-12-18 Sergei Trofimovich <slyfox@gentoo.org>
23877
23878 [BZ #22624]
23879 * sysdeps/mips/setjmp_aux.c (__sigsetjmp_aux): Use
23880 inhibit_stack_protector.
23881
23882 [BZ #22624]
23883 * sysdeps/mips/mips64/setjmp_aux.c (__sigsetjmp_aux): Use
23884 inhibit_stack_protector.
23885
23886 2017-12-18 Dmitry V. Levin <ldv@altlinux.org>
23887
23888 [BZ #22627]
23889 * elf/dl-load.c (_dl_init_paths): Remove _dl_dst_substitute preparatory
23890 code and invocation.
23891
23892 2017-12-18 Szabolcs Nagy <szabolcs.nagy@arm.com>
23893
23894 * sysdeps/aarch64/start.S (_start): Handle PIC && !SHARED case.
23895
23896 2017-12-16 Aurelien Jarno <aurelien@aurel32.net>
23897
23898 [BZ #22505]
23899 * elf/ldconfig.c (main): Call setlocale to force LC_COLLATE to C.
23900
23901 2017-12-16 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
23902
23903 * sysdeps/s390/fpu/libm-test-ulps: Update.
23904
23905 2017-12-16 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
23906
23907 * sysdeps/powerpc/fpu/libm-test-ulps: Update.
23908
23909 2017-12-16 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
23910
23911 * sysdeps/ieee754/flt-32/s_cosf.c: Move reduced() and
23912 constants to s_sincosf.h file.
23913 * sysdeps/ieee754/flt-32/s_sinf.c: Likewise.
23914 * sysdeps/ieee754/flt-32/s_sincosf.c: New
23915 implementation.
23916 * sysdeps/ieee754/flt-32/s_sincosf.h:
23917 New file.
23918
23919 2017-12-12 Carlos O'Donell <carlos@redhat.com>
23920
23921 [BZ #14681]
23922 * elf/tst-leaks1.c (do_test): Call one dlopen with $ORIGIN expansion
23923 before mtrace.
23924
23925 2017-12-15 H.J. Lu <hongjiu.lu@intel.com>
23926
23927 [BZ #19574]
23928 * INSTALL: Regenerated.
23929 * Makeconfig (real-static-start-installed-name): New.
23930 (pic-default): Updated for --enable-static-pie.
23931 (pie-default): New for --enable-static-pie.
23932 (default-pie-ldflag): Likewise.
23933 (+link-static-before-libc): Replace $(DEFAULT-LDFLAGS-$(@F))
23934 with $(if $($(@F)-no-pie),$(no-pie-ldflag),$(default-pie-ldflag)).
23935 Replace $(static-start-installed-name) with
23936 $(real-static-start-installed-name).
23937 (+prectorT): Updated for --enable-static-pie.
23938 (+postctorT): Likewise.
23939 (CFLAGS-.o): Add $(pie-default).
23940 (CFLAGS-.op): Likewise.
23941 * NEWS: Mention --enable-static-pie.
23942 * config.h.in (ENABLE_STATIC_PIE): New.
23943 * configure.ac (--enable-static-pie): New configure option.
23944 (have-no-dynamic-linker): New LIBC_CONFIG_VAR.
23945 (have-static-pie): Likewise.
23946 Enable static PIE if linker supports --no-dynamic-linker.
23947 (ENABLE_STATIC_PIE): New AC_DEFINE.
23948 (enable-static-pie): New LIBC_CONFIG_VAR.
23949 * configure: Regenerated.
23950 * csu/Makefile (omit-deps): Add r$(start-installed-name) and
23951 gr$(start-installed-name) for --enable-static-pie.
23952 (extra-objs): Likewise.
23953 (install-lib): Likewise.
23954 (extra-objs): Add static-reloc.o and static-reloc.os
23955 ($(objpfx)$(start-installed-name)): Also depend on
23956 $(objpfx)static-reloc.o.
23957 ($(objpfx)r$(start-installed-name)): New.
23958 ($(objpfx)g$(start-installed-name)): Also depend on
23959 $(objpfx)static-reloc.os.
23960 ($(objpfx)gr$(start-installed-name)): New.
23961 * csu/libc-start.c (LIBC_START_MAIN): Call _dl_relocate_static_pie
23962 in libc.a.
23963 * csu/libc-tls.c (__libc_setup_tls): Add main_map->l_addr to
23964 initimage.
23965 * csu/static-reloc.c: New file.
23966 * elf/Makefile (routines): Add dl-reloc-static-pie.
23967 (elide-routines.os): Likewise.
23968 (DEFAULT-LDFLAGS-tst-tls1-static-non-pie): Removed.
23969 (tst-tls1-static-non-pie-no-pie): New.
23970 * elf/dl-reloc-static-pie.c: New file.
23971 * elf/dl-support.c (_dl_get_dl_main_map): New function.
23972 * elf/dynamic-link.h (ELF_DURING_STARTUP): Also check
23973 STATIC_PIE_BOOTSTRAP.
23974 * elf/get-dynamic-info.h (elf_get_dynamic_info): Likewise.
23975 * gmon/Makefile (tests): Add tst-gmon-static-pie.
23976 (tests-static): Likewise.
23977 (DEFAULT-LDFLAGS-tst-gmon-static): Removed.
23978 (tst-gmon-static-no-pie): New.
23979 (CFLAGS-tst-gmon-static-pie.c): Likewise.
23980 (CRT-tst-gmon-static-pie): Likewise.
23981 (tst-gmon-static-pie-ENV): Likewise.
23982 (tests-special): Likewise.
23983 ($(objpfx)tst-gmon-static-pie.out): Likewise.
23984 (clean-tst-gmon-static-pie-data): Likewise.
23985 ($(objpfx)tst-gmon-static-pie-gprof.out): Likewise.
23986 * gmon/tst-gmon-static-pie.c: New file.
23987 * manual/install.texi: Document --enable-static-pie.
23988 * sysdeps/generic/ldsodefs.h (_dl_relocate_static_pie): New.
23989 (_dl_get_dl_main_map): Likewise.
23990 * sysdeps/i386/configure.ac: Check if linker supports static PIE.
23991 * sysdeps/x86_64/configure.ac: Likewise.
23992 * sysdeps/i386/configure: Regenerated.
23993 * sysdeps/x86_64/configure: Likewise.
23994 * sysdeps/mips/Makefile (ASFLAGS-.o): Add $(pie-default).
23995 (ASFLAGS-.op): Likewise.
23996
23997 2017-12-15 Joseph Myers <joseph@codesourcery.com>
23998
23999 * io/Makefile (tst-open-tmpfile-ARGS): New variable.
24000 * posix/tst-mmap-offset.c (fname): Use /tmp.
24001 * stdlib/tst-setcontext3.sh (tempfile): Use ${objpfx}.
24002
24003 2017-12-15 Steve Ellcey <sellcey@cavium.com>
24004
24005 * nscd/dbg_log.c (dbg_log): Increase msg buffer size.
24006
24007 2017-12-15 Thomas Schwinge <thomas@codesourcery.com>
24008
24009 * sysdeps/mach/hurd/dl-sysdep.c (__access_noerrno): Don't set
24010 errno.
24011
24012 2017-12-15 Joseph Myers <joseph@codesourcery.com>
24013
24014 * scripts/build-many-glibcs.py (Context.add_all_configs): Use
24015 --with-float=hard for arm-linux-gnueabihf configurations.
24016
24017 [BZ #14121]
24018 * po/Makefile (generated): Add $(ALL_LINGUAS:%=%.mo).
24019 (%.mo): Change to $(objpfx)%.mo. Use $(make-target-directory).
24020 ($(mo-installed)): Use $(objpfx)%.mo.
24021 (realclean): Remove rule.
24022
24023 * po/Makefile (linguas): Remove rule and dependencies.
24024 (linguas.mo): Likewise.
24025 (.PHONY): Do not depend on linguas and linguas.mo.
24026 (podir): Remove variable.
24027 (pofiles): Likewise.
24028 [$(pofiles)] (%.po): Remove rule.
24029
24030 * sysdeps/sparc/sparc32/Makefile
24031 ($(divrem:%=$(sysdep_dir)/sparc/sparc32/%.S)): Do not include
24032 start-of-line whitespace in argument of echo.
24033 * sysdeps/sparc/sparc32/divrem.m4: Avoid generating lines starting
24034 with whitespace. Generate __wrap_.udiv alias.
24035 * sysdeps/sparc/sparc32/rem.S: Regenerated.
24036 * sysdeps/sparc/sparc32/sdiv.S: Likewise.
24037 * sysdeps/sparc/sparc32/udiv.S: Likewise.
24038 * sysdeps/sparc/sparc32/urem.S: Likewise.
24039
24040 2017-12-15 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
24041
24042 * sysdeps/powerpc/powerpc64/power8/strcpy.S: Use vectors
24043 for aligned inputs.
24044
24045 2017-12-14 Siddhesh Poyarekar <siddhesh@sourceware.org>
24046
24047 * benchtests/bench-strcmp.c: Print output in JSON format.
24048
24049 * elf/dl-tunables.list: Remove redundant SXID_ERASE.
24050
24051 2017-12-14 Florian Weimer <fweimer@redhat.com>
24052
24053 [BZ #22607]
24054 CVE-2017-1000409
24055 * elf/dl-load.c (_dl_init_paths): Compute number of components in
24056 the expanded path string.
24057
24058 2017-12-14 Florian Weimer <fweimer@redhat.com>
24059
24060 [BZ #22606]
24061 CVE-2017-1000408
24062 * elf/dl-load.c (system_dirs): Update comment.
24063 (nsystem_dirs_len): Use array_length.
24064 (_dl_init_paths): Use nsystem_dirs_len to compute the array size.
24065
24066 2017-12-14 Florian Weimer <fweimer@redhat.com>
24067
24068 Simplify compiling most of support/ outside of glibc.
24069 * support/check_addrinfo.c: Include <string.h>.
24070 * support/check_dns_packet.c: Likewise.
24071 * support/check_hostent.c: Likewise.
24072 * support/support_can_chroot.c: Include <support/xunistd.h>.
24073 * support/support_format_addrinfo.c: Include <stdlib.h>
24074 * support/support_format_dns_packet.c: Include <stdbool.h>.
24075 * support/support_format_hostent.c: Include <stdlib.h>.
24076 * support/support_format_netent.c: Likewise.
24077 * support/support_write_string.c: Include <support/xunistd.h>.
24078 * support/xdlfcn.c: Include <stddef.h>.
24079
24080 2017-12-14 H.J. Lu <hongjiu.lu@intel.com>
24081
24082 * sysdeps/x86_64/fpu/s_cosf.S: Removed.
24083
24084 2017-12-14 Patrick McGehearty <patrick.mcgehearty@oracle.com>
24085 Adhemerval Zanella <adhemerval.zanella@linaro.org>
24086
24087 * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile
24088 (sysdeps_routines): Add memset-niagara7.
24089 * sysdeps/sparc/sparc64/multiarch/Makefile (sysdes_rotuines):
24090 Likewise.
24091 * sysdeps/sparc/sparc32/sparcv9/multiarch/memset-niagara7.S: New
24092 file.
24093 * sysdeps/sparc/sparc64/multiarch/memset-niagara7.S: Likewise.
24094 * sysdeps/sparc/sparc64/multiarch/ifunc-impl-list.c
24095 (__libc_ifunc_impl_list): Add __bzero_niagara7 and __memset_niagara7.
24096 * sysdeps/sparc/sparc64/multiarch/ifunc-memset.h (IFUNC_SELECTOR):
24097 Add niagara7 option.
24098 * NEWS: Mention sparc m7 optimized memcpy, mempcpy, memmove, and
24099 memset.
24100
24101 * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile
24102 (sysdeps_routines): Add memcpy-memmove-niagara7 and memmove-ultra1.
24103 * sysdeps/sparc/sparc64/multiarch/Makefile (sysdeps_routines):
24104 Likewise.
24105 * sysdeps/sparc/sparc32/sparcv9/multiarch/memcpy-memmove-niagara7.S:
24106 New file.
24107 * sysdeps/sparc/sparc32/sparcv9/multiarch/memmove-ultra1.S: Likewise.
24108 * sysdeps/sparc/sparc32/sparcv9/multiarch/rtld-memmove.c: Likewise.
24109 * sysdeps/sparc/sparc64/multiarch/ifunc-impl-list.c
24110 (__libc_ifunc_impl_list): Add __memcpy_niagara7, __mempcpy_niagara7,
24111 and __memmove_niagara7.
24112 * sysdeps/sparc/sparc64/multiarch/ifunc-memcpy.h (IFUNC_SELECTOR):
24113 Add niagara7 option.
24114 * sysdeps/sparc/sparc64/multiarch/memmove.c: New file.
24115 * sysdeps/sparc/sparc64/multiarch/ifunc-memmove.h: Likewise.
24116 * sysdeps/sparc/sparc64/multiarch/memcpy-memmove-niagara7.S: Likewise.
24117 * sysdeps/sparc/sparc64/multiarch/memmove-ultra1.S: Likewise.
24118 * sysdeps/sparc/sparc64/multiarch/rtld-memmove.c: Likewise.
24119
24120 2017-12-14 Jose E. Marchesi <jose.marchesi@oracle.com>
24121
24122 * sysdeps/sparc/sparc32/sparcv9/memmove.S: New file.
24123 * sysdeps/sparc/sparc32/sparcv9/rtld-memmove.c: Likewise.
24124 * sysdeps/sparc/sparc64/memmove.S: Likewise.
24125 * sysdeps/sparc/sparc64/rtld-memmove.c: Likewise.
24126
24127 * sysdeps/sparc/bits/hwcap.h (HWCAP_SPARC_ADP): Defined.
24128 * sysdeps/sparc/dl-procinfo.c: Added "adp" to the
24129 _dl_sparc_cap_flags array.
24130 * sysdeps/sparc/dl-procinfo.h (_DL_HWCAP_COUNT): Increment.
24131
24132 2017-12-13 Siddhesh Poyarekar <siddhesh@sourceware.org>
24133
24134 * sysdeps/aarch64/strcmp.S (misaligned8): Compare dword at a
24135 time whenever possible.
24136
24137 2017-12-12 Carlos O'Donell <carlos@redhat.com>
24138
24139 * elf/Makefile [$(nss-crypt)$(static-nss-crypt) == yesno]
24140 (CFLAGS-tst-linkall-static.c): Undefine USE_CRYPT first.
24141
24142 2017-12-12 Joseph Myers <joseph@codesourcery.com>
24143
24144 * soft-fp/fmadf4.c: Move to ....
24145 * sysdeps/ieee754/soft-fp/s_fma.c: ... here.
24146 * soft-fp/fmasf4.c: Move to ....
24147 * sysdeps/ieee754/soft-fp/s_fmaf.c: ... here.
24148 * soft-fp/fmatf4.c: Move to ....
24149 * sysdeps/ieee754/soft-fp/s_fmal.c: ... here.
24150 * sysdeps/ieee754/soft-fp/Makefile: New file.
24151 * sysdeps/arm/preconfigure.ac: Define with_fp_cond.
24152 * sysdeps/arm/preconfigure: Regenerated.
24153 * sysdeps/arm/nofpu/Implies: New file.
24154 * sysdeps/arm/s_fma.c: Remove file.
24155 * sysdeps/arm/s_fmaf.c: Likewise.
24156 * sysdeps/m68k/coldfire/nofpu/Implies: New file.
24157 * sysdeps/m68k/coldfire/nofpu/s_fma.c: Remove file.
24158 * sysdeps/m68k/coldfire/nofpu/s_fmaf.c: Likewise.
24159 * sysdeps/microblaze/Implies: Add ieee754/soft-fp.
24160 * sysdeps/microblaze/s_fma.c: Remove file.
24161 * sysdeps/microblaze/s_fmaf.c: Likewise.
24162 * sysdeps/mips/mips32/nofpu/Implies: New file.
24163 * sysdeps/mips/mips64/n32/fpu/s_fma.c: Likewise.
24164 * sysdeps/mips/mips64/n32/nofpu/Implies: Likewise.
24165 * sysdeps/mips/mips64/n64/fpu/s_fma.c: Likewise.
24166 * sysdeps/mips/mips64/n64/nofpu/Implies: Likewise.
24167 * sysdeps/mips/ieee754/s_fma.c: Remove file.
24168 * sysdeps/mips/ieee754/s_fmaf.c: Likewise.
24169 * sysdeps/mips/ieee754/s_fmal.c: Update include for move of fmal
24170 implementation.
24171 * sysdeps/nios2/Implies: Add ieee754/soft-fp.
24172 * sysdeps/nios2/s_fma.c: Remove file.
24173 * sysdeps/nios2/s_fmaf.c: Likewise.
24174 * sysdeps/sh/nofpu/Implies: New file.
24175 * sysdeps/sh/s_fma.c: Remove file.
24176 * sysdeps/sh/s_fmaf.c: Likewise.
24177 * sysdeps/tile/Implies: Add ieee754/soft-fp.
24178 * sysdeps/tile/s_fma.c: Remove file.
24179 * sysdeps/tile/s_fmaf.c: Likewise.
24180
24181 2017-12-12 H.J. Lu <hongjiu.lu@intel.com>
24182
24183 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
24184 Add s_cosf-sse2 and s_cosf-fma.
24185 (CFLAGS-s_cosf-fma.c): New.
24186 * sysdeps/x86_64/fpu/multiarch/s_cosf-fma.c: New file.
24187 * sysdeps/x86_64/fpu/multiarch/s_cosf-sse2.c: Likewise.
24188 * sysdeps/x86_64/fpu/multiarch/s_cosf.c: Likewise.
24189
24190 2017-12-12 Steve Ellcey <sellcey@cavium.com>
24191
24192 * nscd/nscd.h (init_traced_file): Change strncpy to memcpy.
24193
24194 2017-12-12 Adhemerval Zanella <adhemerval.zanella@linaro.org>
24195
24196 * libio/Makefile (tests): Add tst-bz22415.
24197 (tst-bz22415-ENV): New rule.
24198 (generated): Add tst-bz22415.mtrace and tst-bz22415.check.
24199 (tests-special): Add tst-bz22415-mem.out.
24200 ($(objpfx)tst-bz22415-mem.out): New rule.
24201 * libio/fileops.c (_IO_new_file_seekoff): Call _IO_free_backup_area
24202 in case of a successful seek operation.
24203 * libio/wfileops.c (_IO_wfile_seekoff): Likewise.
24204 (_IO_wfile_overflow): Call _IO_free_wbackup_area in case a write
24205 buffer is required.
24206 * libio/tst-bz22415.c: New test.
24207
24208 * sysdeps/ia64/fpu/libm-test-ulps: Update.
24209
24210 2017-12-12 James Clarke <jrtc27@jrtc27.com>
24211
24212 * sysdeps/unix/sysv/linux/ia64/ipc_priv.h: New file defining
24213 __IPC_64 to 0 to avoid IPC_64 being set.
24214
24215 2017-12-12 Szabolcs Nagy <szabolcs.nagy@arm.com>
24216
24217 [BZ #22593]
24218 * math/bits/mathcalls.h (nextafter): Remove const.
24219 (nexttoward): Likewise.
24220
24221 2017-12-12 Joseph Myers <joseph@codesourcery.com>
24222
24223 * configure.ac (--with-fp): Remove configure option.
24224 (with_fp_cond): New variable.
24225 (libc_cv_with_fp): New configure test. Use this variable instead
24226 of with_fp.
24227 * configure: Regenerated.
24228 * config.make.in (with-fp): Use @libc_cv_with_fp@.
24229 * manual/install.texi (Configuring and compiling): Remove
24230 --without-fp.
24231 * INSTALL: Regenerated.
24232 * sysdeps/m68k/preconfigure (with_fp_cond): Define for ColdFire.
24233 * sysdeps/mips/preconfigure (with_fp_cond): Define.
24234 * sysdeps/powerpc/preconfigure (with_fp_cond): Define for 32-bit.
24235 * sysdeps/sh/preconfigure (with_fp_cond): Define.
24236 * scripts/build-many-glibcs.py (Context.add_all_configs): Do not
24237 use --without-fp to configure glibc.
24238
24239 2017-12-12 Rical Jasan <ricaljasan@pacific.net>
24240
24241 * manual/locale.texi (nl_langinfo): Fix a typo.
24242
24243 2017-12-12 Aurelien Jarno <aurelien@aurel32.net>
24244
24245 [BZ #22588]
24246 * manual/conf.texi (SC_SSIZE_MAX): Rename into _SC_SSIZE_MAX.
24247
24248 2017-12-11 H.J. Lu <hongjiu.lu@intel.com>
24249
24250 * argp/Makefile (CFLAGS-argp-help.c): Replace = with +=.
24251 (CFLAGS-argp-parse.c): Likewise.
24252 (CFLAGS-argp-fmtstream.c): Likewise.
24253 * crypt/Makefile (CPPFLAGS-sha256-crypt.c): Likewise.
24254 (CPPFLAGS-sha512-crypt.c): Likewise.
24255 (CPPFLAGS-md5-crypt.c): Likewise.
24256 * debug/Makefile (CFLAGS-stack_chk_fail.c): Likewise.
24257 (CFLAGS-stack_chk_fail_local.c): Likewise.
24258 (CFLAGS-backtrace.c): Likewise.
24259 (CFLAGS-sprintf_chk.c): Likewise.
24260 (CFLAGS-snprintf_chk.c): Likewise.
24261 (CFLAGS-vsprintf_chk.c): Likewise.
24262 (CFLAGS-vsnprintf_chk.c): Likewise.
24263 (CFLAGS-asprintf_chk.c): Likewise.
24264 (CFLAGS-vasprintf_chk.c): Likewise.
24265 (CFLAGS-obprintf_chk.c): Likewise.
24266 (CFLAGS-dprintf_chk.c): Likewise.
24267 (CFLAGS-vdprintf_chk.c): Likewise.
24268 (CFLAGS-printf_chk.c): Likewise.
24269 (CFLAGS-fprintf_chk.c): Likewise.
24270 (CFLAGS-vprintf_chk.c): Likewise.
24271 (CFLAGS-vfprintf_chk.c): Likewise.
24272 (CFLAGS-gets_chk.c): Likewise.
24273 (CFLAGS-fgets_chk.c): Likewise.
24274 (CFLAGS-fgets_u_chk.c): Likewise.
24275 (CFLAGS-fread_chk.c): Likewise.
24276 (CFLAGS-fread_u_chk.c): Likewise.
24277 (CFLAGS-swprintf_chk.c): Likewise.
24278 (CFLAGS-vswprintf_chk.c): Likewise.
24279 (CFLAGS-wprintf_chk.c): Likewise.
24280 (CFLAGS-fwprintf_chk.c): Likewise.
24281 (CFLAGS-vwprintf_chk.c): Likewise.
24282 (CFLAGS-vfwprintf_chk.c): Likewise.
24283 (CFLAGS-fgetws_chk.c): Likewise.
24284 (CFLAGS-fgetws_u_chk.c): Likewise.
24285 (CFLAGS-read_chk.c): Likewise.
24286 (CFLAGS-pread_chk.c): Likewise.
24287 (CFLAGS-pread64_chk.c): Likewise.
24288 (CFLAGS-recv_chk.c): Likewise.
24289 (CFLAGS-recvfrom_chk.c): Likewise.
24290 (CFLAGS-tst-longjmp_chk.c): Likewise.
24291 (CPPFLAGS-tst-longjmp_chk.c): Likewise.
24292 (CFLAGS-tst-longjmp_chk2.c): Likewise.
24293 (CPPFLAGS-tst-longjmp_chk2.c): Likewise.
24294 (CFLAGS-tst-longjmp_chk3.c): Likewise.
24295 (CPPFLAGS-tst-longjmp_chk3.c): Likewise.
24296 (CFLAGS-tst-chk1.c): Likewise.
24297 (CFLAGS-tst-chk2.c): Likewise.
24298 (CFLAGS-tst-chk3.c): Likewise.
24299 (CFLAGS-tst-chk4.cc): Likewise.
24300 (CFLAGS-tst-chk5.cc): Likewise.
24301 (CFLAGS-tst-chk6.cc): Likewise.
24302 (CFLAGS-tst-lfschk1.c): Likewise.
24303 (CFLAGS-tst-lfschk2.c): Likewise.
24304 (CFLAGS-tst-lfschk3.c): Likewise.
24305 (CFLAGS-tst-lfschk4.cc): Likewise.
24306 (CFLAGS-tst-lfschk5.cc): Likewise.
24307 (CFLAGS-tst-lfschk6.cc): Likewise.
24308 (CFLAGS-tst-ssp-1.c): Likewise.
24309 * dirent/Makefile (CFLAGS-scandir.c): Likewise.
24310 (CFLAGS-scandir64.c): Likewise.
24311 (CFLAGS-scandir-tail.c): Likewise.
24312 (CFLAGS-scandir64-tail.c): Likewise.
24313 * elf/Makefile (CPPFLAGS-dl-tunables.c): Likewise.
24314 (CFLAGS-dl-tunables.c): Likewise.
24315 (CFLAGS-dl-runtime.c): Likewise.
24316 (CFLAGS-dl-lookup.c): Likewise.
24317 (CFLAGS-dl-iterate-phdr.c): Likewise.
24318 (CFLAGS-vismain.c): Likewise.
24319 (CFLAGS-tst-linkall-static.c): Likewise.
24320 (CFLAGS-tst-linkall-static.c): Likewise.
24321 (CPPFLAGS-dl-load.c): Likewise.
24322 (CFLAGS-ldconfig.c): Likewise.
24323 (CFLAGS-dl-cache.c): Likewise.
24324 (CFLAGS-cache.c): Likewise.
24325 (CFLAGS-rtld.c): Likewise.
24326 (CFLAGS-multiload.c): Likewise.
24327 (CFLAGS-filtmod1.c): Likewise.
24328 (CFLAGS-tst-align.c): Likewise.
24329 (CFLAGS-tst-align2.c): Likewise.
24330 (CFLAGS-tst-alignmod.c): Likewise.
24331 (CFLAGS-tst-alignmod2.c): Likewise.
24332 (CPPFLAGS-tst-execstack.c): Likewise.
24333 (CFLAGS-tst-ptrguard1-static.c): Likewise.
24334 (CFLAGS-tst-latepthreadmod.c): Likewise.
24335 * grp/Makefile (CFLAGS-getgrgid_r.c): Likewise.
24336 (CFLAGS-getgrnam_r.c): Likewise.
24337 (CFLAGS-getgrent_r.c): Likewise.
24338 (CFLAGS-getgrent.c): Likewise.
24339 (CFLAGS-fgetgrent.c): Likewise.
24340 (CFLAGS-fgetgrent_r.c): Likewise.
24341 (CFLAGS-putgrent.c): Likewise.
24342 (CFLAGS-initgroups.c): Likewise.
24343 (CFLAGS-getgrgid.c): Likewise.
24344 * gshadow/Makefile (CFLAGS-getsgent_r.c): Likewise.
24345 (CFLAGS-getsgent.c): Likewise.
24346 (CFLAGS-fgetsgent.c): Likewise.
24347 (CFLAGS-fgetsgent_r.c): Likewise.
24348 (CFLAGS-putsgent.c): Likewise.
24349 (CFLAGS-getsgnam.c): Likewise.
24350 (CFLAGS-getsgnam_r.c): Likewise.
24351 * iconv/Makefile (CFLAGS-iconv_prog.c): Likewise.
24352 (CFLAGS-iconv_charmap.c): Likewise.
24353 (CFLAGS-dummy-repertoire.c): Likewise.
24354 (CFLAGS-charmap.c): Likewise.
24355 (CFLAGS-linereader.c): Likewise.
24356 (CFLAGS-simple-hash.c): Likewise.
24357 (CFLAGS-gconv_conf.c): Likewise.
24358 (CFLAGS-iconvconfig.c): Likewise.
24359 * inet/Makefile (CFLAGS-gethstbyad_r.c): Likewise.
24360 (CFLAGS-gethstbyad.c): Likewise.
24361 (CFLAGS-gethstbynm_r.c): Likewise.
24362 (CFLAGS-gethstbynm.c): Likewise.
24363 (CFLAGS-gethstbynm2_r.c): Likewise.
24364 (CFLAGS-gethstbynm2.c): Likewise.
24365 (CFLAGS-gethstent_r.c): Likewise.
24366 (CFLAGS-gethstent.c): Likewise.
24367 (CFLAGS-rcmd.c): Likewise.
24368 (CFLAGS-getnetbynm_r.c): Likewise.
24369 (CFLAGS-getnetbynm.c): Likewise.
24370 (CFLAGS-getnetbyad_r.c): Likewise.
24371 (CFLAGS-getnetbyad.c): Likewise.
24372 (CFLAGS-getnetent_r.c): Likewise.
24373 (CFLAGS-getnetent.c): Likewise.
24374 (CFLAGS-getaliasent_r.c): Likewise.
24375 (CFLAGS-getaliasent.c): Likewise.
24376 (CFLAGS-getrpcent_r.c): Likewise.
24377 (CFLAGS-getrpcent.c): Likewise.
24378 (CFLAGS-getservent_r.c): Likewise.
24379 (CFLAGS-getservent.c): Likewise.
24380 (CFLAGS-getprtent_r.c): Likewise.
24381 (CFLAGS-getprtent.c): Likewise.
24382 (CFLAGS-either_ntoh.c): Likewise.
24383 (CFLAGS-either_hton.c): Likewise.
24384 (CFLAGS-getnetgrent.c): Likewise.
24385 (CFLAGS-getnetgrent_r.c): Likewise.
24386 (CFLAGS-tst-checks-posix.c): Likewise.
24387 (CFLAGS-tst-sockaddr.c): Likewise.
24388 * intl/Makefile (CFLAGS-tst-gettext.c): Likewise.
24389 (CFLAGS-tst-translit.c): Likewise.
24390 (CFLAGS-tst-gettext2.c): Likewise.
24391 (CFLAGS-tst-codeset.c): Likewise.
24392 (CFLAGS-tst-gettext3.c): Likewise.
24393 (CFLAGS-tst-gettext4.c): Likewise.
24394 (CFLAGS-tst-gettext5.c): Likewise.
24395 (CFLAGS-tst-gettext6.c): Likewise.
24396 * io/Makefile (CFLAGS-open.c): Likewise.
24397 (CFLAGS-open64.c): Likewise.
24398 (CFLAGS-creat.c): Likewise.
24399 (CFLAGS-creat64.c): Likewise.
24400 (CFLAGS-fcntl.c): Likewise.
24401 (CFLAGS-poll.c): Likewise.
24402 (CFLAGS-ppoll.c): Likewise.
24403 (CFLAGS-lockf.c): Likewise.
24404 (CFLAGS-statfs.c): Likewise.
24405 (CFLAGS-fstatfs.c): Likewise.
24406 (CFLAGS-statvfs.c): Likewise.
24407 (CFLAGS-fstatvfs.c): Likewise.
24408 (CFLAGS-fts.c): Likewise.
24409 (CFLAGS-fts64.c): Likewise.
24410 (CFLAGS-ftw.c): Likewise.
24411 (CFLAGS-ftw64.c): Likewise.
24412 (CFLAGS-lockf.c): Likewise.
24413 (CFLAGS-posix_fallocate.c): Likewise.
24414 (CFLAGS-posix_fallocate64.c): Likewise.
24415 (CFLAGS-fallocate.c): Likewise.
24416 (CFLAGS-fallocate64.c): Likewise.
24417 (CFLAGS-read.c): Likewise.
24418 (CFLAGS-write.c): Likewise.
24419 (CFLAGS-test-stat.c): Likewise.
24420 (CFLAGS-test-lfs.c): Likewise.
24421 * libio/Makefile (CFLAGS-fileops.c): Likewise.
24422 (CFLAGS-fputc.c): Likewise.
24423 (CFLAGS-fputwc.c): Likewise.
24424 (CFLAGS-freopen64.c): Likewise.
24425 (CFLAGS-freopen.c): Likewise.
24426 (CFLAGS-fseek.c): Likewise.
24427 (CFLAGS-fseeko64.c): Likewise.
24428 (CFLAGS-fseeko.c): Likewise.
24429 (CFLAGS-ftello64.c): Likewise.
24430 (CFLAGS-ftello.c): Likewise.
24431 (CFLAGS-fwide.c): Likewise.
24432 (CFLAGS-genops.c): Likewise.
24433 (CFLAGS-getc.c): Likewise.
24434 (CFLAGS-getchar.c): Likewise.
24435 (CFLAGS-getwc.c): Likewise.
24436 (CFLAGS-getwchar.c): Likewise.
24437 (CFLAGS-iofclose.c): Likewise.
24438 (CFLAGS-iofflush.c): Likewise.
24439 (CFLAGS-iofgetpos64.c): Likewise.
24440 (CFLAGS-iofgetpos.c): Likewise.
24441 (CFLAGS-iofgets.c): Likewise.
24442 (CFLAGS-iofgetws.c): Likewise.
24443 (CFLAGS-iofputs.c): Likewise.
24444 (CFLAGS-iofputws.c): Likewise.
24445 (CFLAGS-iofread.c): Likewise.
24446 (CFLAGS-iofsetpos64.c): Likewise.
24447 (CFLAGS-iofsetpos.c): Likewise.
24448 (CFLAGS-ioftell.c): Likewise.
24449 (CFLAGS-iofwrite.c): Likewise.
24450 (CFLAGS-iogetdelim.c): Likewise.
24451 (CFLAGS-iogetline.c): Likewise.
24452 (CFLAGS-iogets.c): Likewise.
24453 (CFLAGS-iogetwline.c): Likewise.
24454 (CFLAGS-ioputs.c): Likewise.
24455 (CFLAGS-ioseekoff.c): Likewise.
24456 (CFLAGS-ioseekpos.c): Likewise.
24457 (CFLAGS-iosetbuffer.c): Likewise.
24458 (CFLAGS-iosetvbuf.c): Likewise.
24459 (CFLAGS-ioungetc.c): Likewise.
24460 (CFLAGS-ioungetwc.c): Likewise.
24461 (CFLAGS-oldfileops.c): Likewise.
24462 (CFLAGS-oldiofclose.c): Likewise.
24463 (CFLAGS-oldiofgetpos64.c): Likewise.
24464 (CFLAGS-oldiofgetpos.c): Likewise.
24465 (CFLAGS-oldiofsetpos64.c): Likewise.
24466 (CFLAGS-oldiofsetpos.c): Likewise.
24467 (CFLAGS-peekc.c): Likewise.
24468 (CFLAGS-putc.c): Likewise.
24469 (CFLAGS-putchar.c): Likewise.
24470 (CFLAGS-putwc.c): Likewise.
24471 (CFLAGS-putwchar.c): Likewise.
24472 (CFLAGS-rewind.c): Likewise.
24473 (CFLAGS-wfileops.c): Likewise.
24474 (CFLAGS-wgenops.c): Likewise.
24475 (CFLAGS-oldiofopen.c): Likewise.
24476 (CFLAGS-iofopen.c): Likewise.
24477 (CFLAGS-iofopen64.c): Likewise.
24478 (CFLAGS-oldtmpfile.c): Likewise.
24479 (CFLAGS-tst_putwc.c): Likewise.
24480 * locale/Makefile (CFLAGS-md5.c): Likewise.
24481 (CFLAGS-charmap.c): Likewise.
24482 (CFLAGS-locfile.c): Likewise.
24483 (CFLAGS-charmap-dir.c): Likewise.
24484 * login/Makefile (CFLAGS-grantpt.c): Likewise.
24485 (CFLAGS-getpt.c): Likewise.
24486 (CFLAGS-pt_chown.c): Likewise.
24487 * malloc/Makefile (CFLAGS-mcheck-init.c): Likewise.
24488 (CFLAGS-obstack.c): Likewise.
24489 * math/Makefile (CFLAGS-test-tgmath3.c): Likewise.
24490 (CFLAGS-test-double-vlen4-wrappers.c): Likewise.
24491 (CFLAGS-test-double-vlen8-wrappers.c): Likewise.
24492 (CFLAGS-test-float-vlen8-wrappers.c): Likewise.
24493 (CFLAGS-test-float-vlen16-wrappers.c): Likewise.
24494 (CFLAGS-test-tgmath.c): Likewise.
24495 (CFLAGS-test-tgmath2.c): Likewise.
24496 (CFLAGS-test-tgmath-ret.c): Likewise.
24497 (CFLAGS-test-powl.c): Likewise.
24498 (CFLAGS-test-snan.c): Likewise.
24499 (CFLAGS-test-signgam-finite.c): Likewise.
24500 (CFLAGS-test-signgam-finite-c99.c): Likewise.
24501 (CFLAGS-test-signgam-finite-c11.c): Likewise.
24502 (CFLAGS-test-signgam-uchar.c): Likewise.
24503 (CFLAGS-test-signgam-uchar-init.c): Likewise.
24504 (CFLAGS-test-signgam-uchar-static.c): Likewise.
24505 (CFLAGS-test-signgam-uchar-init-static.c): Likewise.
24506 (CFLAGS-test-signgam-uint.c): Likewise.
24507 (CFLAGS-test-signgam-uint-init.c): Likewise.
24508 (CFLAGS-test-signgam-uint-static.c): Likewise.
24509 (CFLAGS-test-signgam-uint-init-static.c): Likewise.
24510 (CFLAGS-test-signgam-ullong.c): Likewise.
24511 (CFLAGS-test-signgam-ullong-init.c): Likewise.
24512 (CFLAGS-test-signgam-ullong-static.c): Likewise.
24513 (CFLAGS-test-signgam-ullong-init-static.c): Likewise.
24514 (CFLAGS-test-math-cxx11.cc): Likewise.
24515 (CFLAGS-test-math-isinff.cc): Likewise.
24516 (CFLAGS-test-math-iszero.cc): Likewise.
24517 (CFLAGS-test-math-issignaling.cc): Likewise.
24518 (CFLAGS-test-math-iscanonical.cc): Likewise.
24519 (CFLAGS-test-iszero-excess-precision.c): Likewise.
24520 (CFLAGS-test-iseqsig-excess-precision.c): Likewise.
24521 (CFLAGS-test-flt-eval-method.c): Likewise.
24522 (CFLAGS-test-fe-snans-always-signal.c): Likewise.
24523 (CFLAGS-test-finite-macros.c): Likewise.
24524 * misc/Makefile (CFLAGS-select.c): Likewise.
24525 (CFLAGS-tsearch.c): Likewise.
24526 (CFLAGS-lsearch.c): Likewise.
24527 (CFLAGS-pselect.c): Likewise.
24528 (CFLAGS-readv.c): Likewise.
24529 (CFLAGS-writev.c): Likewise.
24530 (CFLAGS-preadv.c): Likewise.
24531 (CFLAGS-preadv64.c): Likewise.
24532 (CFLAGS-pwritev.c): Likewise.
24533 (CFLAGS-pwritev64.c): Likewise.
24534 (CFLAGS-preadv2.c): Likewise.
24535 (CFLAGS-preadv64v2.c): Likewise.
24536 (CFLAGS-pwritev2.c): Likewise.
24537 (CFLAGS-pwritev64v2.c): Likewise.
24538 (CFLAGS-usleep.c): Likewise.
24539 (CFLAGS-syslog.c): Likewise.
24540 (CFLAGS-error.c): Likewise.
24541 (CFLAGS-getpass.c): Likewise.
24542 (CFLAGS-mkstemp.c): Likewise.
24543 (CFLAGS-mkstemp64.c): Likewise.
24544 (CFLAGS-getsysstats.c): Likewise.
24545 (CFLAGS-getusershell.c): Likewise.
24546 (CFLAGS-err.c): Likewise.
24547 (CFLAGS-tst-tsearch.c): Likewise.
24548 (CFLAGS-msync.c): Likewise.
24549 (CFLAGS-fdatasync.c): Likewise.
24550 (CFLAGS-fsync.c): Likewise.
24551 * nptl/Makefile (CFLAGS-nptl-init.c): Likewise.
24552 (CFLAGS-unwind.c): Likewise.
24553 (CFLAGS-unwind-forcedunwind.c): Likewise.
24554 (CFLAGS-pthread_cancel.c): Likewise.
24555 (CFLAGS-pthread_setcancelstate.c): Likewise.
24556 (CFLAGS-pthread_setcanceltype.c): Likewise.
24557 (CFLAGS-cancellation.c): Likewise.
24558 (CFLAGS-libc-cancellation.c): Likewise.
24559 (CFLAGS-pthread_exit.c): Likewise.
24560 (CFLAGS-forward.c): Likewise.
24561 (CFLAGS-pthread_testcancel.c): Likewise.
24562 (CFLAGS-pthread_join.c): Likewise.
24563 (CFLAGS-pthread_timedjoin.c): Likewise.
24564 (CFLAGS-pthread_once.c): Likewise.
24565 (CFLAGS-pthread_cond_wait.c): Likewise.
24566 (CFLAGS-sem_wait.c): Likewise.
24567 (CFLAGS-sem_timedwait.c): Likewise.
24568 (CFLAGS-fcntl.c): Likewise.
24569 (CFLAGS-lockf.c): Likewise.
24570 (CFLAGS-pread.c): Likewise.
24571 (CFLAGS-pread64.c): Likewise.
24572 (CFLAGS-pwrite.c): Likewise.
24573 (CFLAGS-pwrite64.c): Likewise.
24574 (CFLAGS-wait.c): Likewise.
24575 (CFLAGS-waitpid.c): Likewise.
24576 (CFLAGS-sigwait.c): Likewise.
24577 (CFLAGS-msgrcv.c): Likewise.
24578 (CFLAGS-msgsnd.c): Likewise.
24579 (CFLAGS-tcdrain.c): Likewise.
24580 (CFLAGS-open.c): Likewise.
24581 (CFLAGS-open64.c): Likewise.
24582 (CFLAGS-pause.c): Likewise.
24583 (CFLAGS-recv.c): Likewise.
24584 (CFLAGS-send.c): Likewise.
24585 (CFLAGS-accept.c): Likewise.
24586 (CFLAGS-sendto.c): Likewise.
24587 (CFLAGS-connect.c): Likewise.
24588 (CFLAGS-recvfrom.c): Likewise.
24589 (CFLAGS-recvmsg.c): Likewise.
24590 (CFLAGS-sendmsg.c): Likewise.
24591 (CFLAGS-close.c): Likewise.
24592 (CFLAGS-read.c): Likewise.
24593 (CFLAGS-write.c): Likewise.
24594 (CFLAGS-nanosleep.c): Likewise.
24595 (CFLAGS-sigsuspend.c): Likewise.
24596 (CFLAGS-msync.c): Likewise.
24597 (CFLAGS-fdatasync.c): Likewise.
24598 (CFLAGS-fsync.c): Likewise.
24599 (CFLAGS-pt-system.c): Likewise.
24600 (CFLAGS-tst-cleanup2.c): Likewise.
24601 (CFLAGS-tst-cleanupx2.c): Likewise.
24602 (CFLAGS-flockfile.c): Likewise.
24603 (CFLAGS-ftrylockfile.c): Likewise.
24604 (CFLAGS-funlockfile.c): Likewise.
24605 (CFLAGS-tst-initializers1.c): Likewise.
24606 (CFLAGS-tst-initializers1-c89.c): Likewise.
24607 (CFLAGS-tst-initializers1-c99.c): Likewise.
24608 (CFLAGS-tst-initializers1-c11.c): Likewise.
24609 (CFLAGS-tst-initializers1-gnu89.c): Likewise.
24610 (CFLAGS-tst-initializers1-gnu99.c): Likewise.
24611 (CFLAGS-tst-initializers1-gnu11.c): Likewise.
24612 * nscd/Makefile (CFLAGS-nscd_getpw_r.c): Likewise.
24613 (CFLAGS-nscd_getgr_r.c): Likewise.
24614 (CFLAGS-nscd_gethst_r.c): Likewise.
24615 (CFLAGS-nscd_getai.c): Likewise.
24616 (CFLAGS-nscd_initgroups.c): Likewise.
24617 * posix/Makefile (CFLAGS-getaddrinfo.c): Likewise.
24618 (CFLAGS-pause.c): Likewise.
24619 (CFLAGS-pread.c): Likewise.
24620 (CFLAGS-pread64.c): Likewise.
24621 (CFLAGS-pwrite.c): Likewise.
24622 (CFLAGS-pwrite64.c): Likewise.
24623 (CFLAGS-sleep.c): Likewise.
24624 (CFLAGS-wait.c): Likewise.
24625 (CFLAGS-waitid.c): Likewise.
24626 (CFLAGS-waitpid.c): Likewise.
24627 (CFLAGS-getopt.c): Likewise.
24628 (CFLAGS-wordexp.c): Likewise.
24629 (CFLAGS-sysconf.c): Likewise.
24630 (CFLAGS-pathconf.c): Likewise.
24631 (CFLAGS-fpathconf.c): Likewise.
24632 (CFLAGS-spawn.c): Likewise.
24633 (CFLAGS-spawnp.c): Likewise.
24634 (CFLAGS-spawni.c): Likewise.
24635 (CFLAGS-glob.c): Likewise.
24636 (CFLAGS-glob64.c): Likewise.
24637 (CFLAGS-getconf.c): Likewise.
24638 (CFLAGS-nanosleep.c): Likewise.
24639 * pwd/Makefile (CFLAGS-getpwent_r.c): Likewise.
24640 (CFLAGS-getpwent.c): Likewise.
24641 (CFLAGS-getpw.c): Likewise.
24642 (CFLAGS-fgetpwent_r.c): Likewise.
24643 * resolv/Makefile (CFLAGS-res_hconf.c): Likewise.
24644 * rt/Makefile (CFLAGS-aio_suspend.c): Likewise.
24645 (CFLAGS-mq_timedreceive.c): Likewise.
24646 (CFLAGS-mq_timedsend.c): Likewise.
24647 (CFLAGS-clock_nanosleep.c): Likewise.
24648 (CFLAGS-librt-cancellation.c): Likewise.
24649 * shadow/Makefile (CFLAGS-getspent_r.c): Likewise.
24650 (CFLAGS-getspent.c): Likewise.
24651 (CFLAGS-fgetspent.c): Likewise.
24652 (CFLAGS-fgetspent_r.c): Likewise.
24653 (CFLAGS-putspent.c): Likewise.
24654 (CFLAGS-getspnam.c): Likewise.
24655 (CFLAGS-getspnam_r.c): Likewise.
24656 * signal/Makefile (CFLAGS-sigpause.c): Likewise.
24657 (CFLAGS-sigsuspend.c): Likewise.
24658 (CFLAGS-sigtimedwait.c): Likewise.
24659 (CFLAGS-sigwait.c): Likewise.
24660 (CFLAGS-sigwaitinfo.c): Likewise.
24661 (CFLAGS-sigreturn.c): Likewise.
24662 * stdio-common/Makefile (CFLAGS-vfprintf.c): Likewise.
24663 (CFLAGS-vfwprintf.c): Likewise.
24664 (CFLAGS-tmpfile.c): Likewise.
24665 (CFLAGS-tmpfile64.c): Likewise.
24666 (CFLAGS-tempname.c): Likewise.
24667 (CFLAGS-psignal.c): Likewise.
24668 (CFLAGS-vprintf.c): Likewise.
24669 (CFLAGS-cuserid.c): Likewise.
24670 (CFLAGS-errlist.c): Likewise.
24671 (CFLAGS-siglist.c): Likewise.
24672 (CFLAGS-scanf15.c): Likewise.
24673 (CFLAGS-scanf17.c): Likewise.
24674 * stdlib/Makefile (CFLAGS-bsearch.c): Likewise.
24675 (CFLAGS-msort.c): Likewise.
24676 (CFLAGS-qsort.c): Likewise.
24677 (CFLAGS-system.c): Likewise.
24678 (CFLAGS-fmtmsg.c): Likewise.
24679 (CFLAGS-strfmon.c): Likewise.
24680 (CFLAGS-strfmon_l.c): Likewise.
24681 (CFLAGS-strfromd.c): Likewise.
24682 (CFLAGS-strfromf.c): Likewise.
24683 (CFLAGS-strfroml.c): Likewise.
24684 (CFLAGS-tst-bsearch.c): Likewise.
24685 (CFLAGS-tst-qsort.c): Likewise.
24686 (CFLAGS-tst-makecontext2.c): Likewise.
24687 * sunrpc/Makefile (CFLAGS-xbootparam_prot.c): Likewise.
24688 (CFLAGS-xnlm_prot.c): Likewise.
24689 (CFLAGS-xrstat.c): Likewise.
24690 (CFLAGS-xyppasswd.c): Likewise.
24691 (CFLAGS-xklm_prot.c): Likewise.
24692 (CFLAGS-xrex.c): Likewise.
24693 (CFLAGS-xsm_inter.c): Likewise.
24694 (CFLAGS-xmount.c): Likewise.
24695 (CFLAGS-xrusers.c): Likewise.
24696 (CFLAGS-xspray.c): Likewise.
24697 (CFLAGS-xnfs_prot.c): Likewise.
24698 (CFLAGS-xrquota.c): Likewise.
24699 (CFLAGS-xkey_prot.c): Likewise.
24700 (CFLAGS-auth_unix.c): Likewise.
24701 (CFLAGS-key_call.c): Likewise.
24702 (CFLAGS-pmap_rmt.c): Likewise.
24703 (CFLAGS-clnt_perr.c): Likewise.
24704 (CFLAGS-openchild.c): Likewise.
24705 * sysvipc/Makefile (CFLAGS-msgrcv.c): Likewise.
24706 (CFLAGS-msgsnd.c): Likewise.
24707 * termios/Makefile (CFLAGS-tcdrain.c): Likewise.
24708 * time/Makefile (CFLAGS-tzfile.c): Likewise.
24709 (CFLAGS-tzset.c): Likewise.
24710 (CFLAGS-getdate.c): Likewise.
24711 (CFLAGS-test_time.c): Likewise.
24712 (CPPFLAGS-tst-tzname.c): Likewise.
24713 * timezone/Makefile (CFLAGS-zdump.c): Likewise.
24714 (CFLAGS-zic.c): Likewise.
24715 * wcsmbs/Makefile (CFLAGS-wcwidth.c): Likewise.
24716 (CFLAGS-wcswidth.c): Likewise.
24717 (CFLAGS-wcstol.c): Likewise.
24718 (CFLAGS-wcstoul.c): Likewise.
24719 (CFLAGS-wcstoll.c): Likewise.
24720 (CFLAGS-wcstoull.c): Likewise.
24721 (CFLAGS-wcstod.c): Likewise.
24722 (CFLAGS-wcstold.c): Likewise.
24723 (CFLAGS-wcstof128.c): Likewise.
24724 (CFLAGS-wcstof.c): Likewise.
24725 (CFLAGS-wcstol_l.c): Likewise.
24726 (CFLAGS-wcstoul_l.c): Likewise.
24727 (CFLAGS-wcstoll_l.c): Likewise.
24728 (CFLAGS-wcstoull_l.c): Likewise.
24729 (CFLAGS-wcstod_l.c): Likewise.
24730 (CFLAGS-wcstold_l.c): Likewise.
24731 (CFLAGS-wcstof128_l.c): Likewise.
24732 (CFLAGS-wcstof_l.c): Likewise.
24733 (CPPFLAGS-tst-wchar-h.c): Likewise.
24734 (CPPFLAGS-wcstold_l.c): Likewise.
24735
24736 2017-12-11 Paul A. Clarke <pc@us.ibm.com>
24737
24738 * sysdeps/ieee754/flt-32/s_cosf.c: New implementation.
24739
24740 2017-12-11 Adhemerval Zanella <azanella@linux.vnet.ibm.com>
24741 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
24742
24743 * manual/tunables.texi (Hardware Capability Tunables): Document
24744 glibc.tune.cached_memopt.
24745 * sysdeps/powerpc/cpu-features.c: New file.
24746 * sysdeps/powerpc/cpu-features.h: New file.
24747 * sysdeps/powerpc/dl-procinfo.c [!IS_IN(ldconfig)]: Add
24748 _dl_powerpc_cpu_features.
24749 * sysdeps/powerpc/dl-tunables.list: New file.
24750 * sysdeps/powerpc/ldsodefs.h: Include cpu-features.h.
24751 * sysdeps/powerpc/powerpc32/power4/multiarch/init-arch.h
24752 (INIT_ARCH): Initialize use_aligned_memopt.
24753 * sysdeps/powerpc/powerpc64/dl-machine.h [defined(SHARED &&
24754 IS_IN(rtld))]: Restrict dl_platform_init availability and
24755 initialize CPU features used by tunables.
24756 * sysdeps/powerpc/powerpc64/multiarch/Makefile (sysdep_routines):
24757 Add memcpy-power8-cached.
24758 * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c: Add
24759 __memcpy_power8_cached.
24760 * sysdeps/powerpc/powerpc64/multiarch/memcpy.c: Likewise.
24761 * sysdeps/powerpc/powerpc64/multiarch/memcpy-power8-cached.S:
24762 New file.
24763
24764 2017-12-11 H.J. Lu <hongjiu.lu@intel.com>
24765
24766 * string/Makefile (CFLAGS-inl-tester.c): Replace = with +=.
24767 (CFLAGS-noinl-tester.c): Likewise.
24768 (CFLAGS-tst-strlen.c): Likewise.
24769 (CFLAGS-stratcliff.c): Likewise.
24770 (CFLAGS-test-ffs.c): Likewise.
24771 (CFLAGS-tst-inlcall.c): Likewise.
24772 (CFLAGS-tst-xbzero-opt.c): Likewise.
24773 (CFLAGS-memcpy.c): Likewise.
24774 (CFLAGS-wordcopy.c): Likewise.
24775
24776 2017-12-11 Stefan Liebler <stli@linux.vnet.ibm.com>
24777
24778 * sysdeps/s390/s390-64/dl-trampoline.h (_dl_runtime_resolve):
24779 Store r15 on stack and add cfi rule.
24780 * sysdeps/s390/s390-32/dl-trampoline.h (_dl_runtime_resolve):
24781 Likewise.
24782
24783 2017-12-10 Aurelien Jarno <aurelien@aurel32.net>
24784
24785 [BZ #22577]
24786 * elf/rtld.c (init_tls): Add missing new line to the _dl_fatal_printf
24787 call.
24788
24789 2017-12-07 H.J. Lu <hongjiu.lu@intel.com>
24790
24791 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
24792 Add s_sinf-sse2 and s_sinf-fma.
24793 (CFLAGS-s_sinf-fma.c): New.
24794 * sysdeps/x86_64/fpu/multiarch/s_sinf-fma.c: New file.
24795 * sysdeps/x86_64/fpu/multiarch/s_sinf-sse2.c: Likewise.
24796 * sysdeps/x86_64/fpu/multiarch/s_sinf.c: Likewise.
24797
24798 2017-12-07 H.J. Lu <hongjiu.lu@intel.com>
24799
24800 * sysdeps/x86_64/fpu/s_sinf.S: Removed.
24801
24802 2017-12-07 Joseph Myers <joseph@codesourcery.com>
24803
24804 [BZ #22568]
24805 * math/s_ctan_template.c (M_DECL_FUNC (__ctan)): Set imaginary
24806 part of result to imaginary part of argument if it is zero and the
24807 real part of the argument is not finite.
24808 * math/s_ctanh_template.c (M_DECL_FUNC (__ctanh)): Set real part
24809 of result to real part of argument if it is zero and the imaginary
24810 part of the argument is not finite.
24811
24812 2017-12-07 Mike FABIAN <mfabian@redhat.com>
24813
24814 [BZ #22524]
24815 * localedata/Makefile: Add lt_LT.UTF-8 to test-input
24816 and to the list of locales to be built for testing.
24817 * localedata/lt_LT.UTF-8.in: New file for testing the collation.
24818 * localedata/locales/lt_LT (LC_COLLATE): Use “copy "iso14651_t1"”
24819 and build the collation rules upon that.
24820
24821 2017-12-07 Joseph Myers <joseph@codesourcery.com>
24822
24823 * bits/floatn-common.h (__HAVE_FLOAT32): Define to 1.
24824 * manual/math.texi (Mathematics): Document support for _Float32.
24825 * math/Makefile (test-types): Add float32.
24826 * math/Versions (GLIBC_2.27): Add _Float32 functions.
24827 * stdlib/Versions (GLIBC_2.27): Likewise.
24828 * wcsmbs/Versions (GLIBC_2.27): Likewise.
24829 * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Update.
24830 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
24831 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
24832 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
24833 * sysdeps/unix/sysv/linux/arm/libc.abilist: Likewise.
24834 * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
24835 * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
24836 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
24837 * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
24838 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
24839 * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
24840 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
24841 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
24842 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
24843 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
24844 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
24845 * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
24846 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
24847 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
24848 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
24849 * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist:
24850 Likewise.
24851 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
24852 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
24853 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
24854 * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise.
24855 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
24856 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
24857 Likewise.
24858 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist:
24859 Likewise.
24860 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
24861 Likewise.
24862 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
24863 Likewise.
24864
24865 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist:
24866 Likewise.
24867 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist:
24868 Likewise.
24869 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist:
24870 Likewise.
24871 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist:
24872 Likewise.
24873 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
24874 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
24875 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
24876 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
24877 * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
24878 * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
24879 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
24880 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
24881 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
24882 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
24883 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libc.abilist:
24884 Likewise.
24885 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist:
24886 Likewise.
24887 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libc.abilist:
24888 Likewise.
24889 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist:
24890 Likewise.
24891 * sysdeps/unix/sysv/linux/tile/tilepro/libc.abilist: Likewise.
24892 * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
24893 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
24894 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
24895 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
24896 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
24897 * sysdeps/i386/fpu/libm-test-ulps: Likewise.
24898 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
24899
24900 2017-12-06 Joseph Myers <joseph@codesourcery.com>
24901
24902 * stdlib/strtof.c: Include <bits/floatn.h>
24903 [__HAVE_FLOAT32 && !__HAVE_DISTINCT_FLOAT32] (strtof32): Define
24904 and later undefine as macro. Define as weak alias if
24905 [!USE_WIDE_CHAR].
24906 [__HAVE_FLOAT32 && !__HAVE_DISTINCT_FLOAT32] (wcstof32): Define
24907 and later undefine as macro. Define as weak alias if
24908 [USE_WIDE_CHAR].
24909 * stdlib/strtof_l.c: Include <bits/floatn.h>
24910 [__HAVE_FLOAT32 && !__HAVE_DISTINCT_FLOAT32] (strtof32_l): Define
24911 and later undefine as macro. Define as weak alias if
24912 [!USE_WIDE_CHAR].
24913 [__HAVE_FLOAT32 && !__HAVE_DISTINCT_FLOAT32] (wcstof32_l): Define
24914 and later undefine as macro. Define as weak alias if
24915 [USE_WIDE_CHAR].
24916
24917 * stdlib/strfromf.c: Include <bits/floatn.h>.
24918 [__HAVE_FLOAT32 && !__HAVE_DISTINCT_FLOAT32] (strfromf32): Define
24919 and later undefine as macro and define as weak alias.
24920
24921 * math/test-float32.h: New file.
24922
24923 * sysdeps/generic/libm-alias-float.h: Include <bits/floatn.h>.
24924 [__HAVE_FLOAT32 && !__HAVE_DISTINCT_FLOAT32]
24925 (libm_alias_float_other_r): Create f32 alias.
24926 (libm_alias_float_r): Use semicolon before call to
24927 libm_alias_float_other_r.
24928
24929 * sysdeps/ia64/fpu/e_exp2f.S (__exp2f): Use exp2 not __exp2 as
24930 second argument to libm_alias_float_other.
24931 * sysdeps/ia64/fpu/e_log2f.S (__log2f): Use log2 not __log2 as
24932 second argument to libm_alias_float_other.
24933 * sysdeps/ia64/fpu/e_powf.S (__powf): Use pow not __pow as second
24934 argument to libm_alias_float_other.
24935
24936 [BZ #22561]
24937 * math/s_cacosh_template.c (M_DECL_FUNC (__cacosh)): Use pi/2 for
24938 real part of result for argument 0 + i * NaN.
24939 * math/libm-test-cacosh.inc (cacosh_test_data): Update expected
24940 results for tests of 0 + i * NaN.
24941
24942 2017-12-06 Adhemerval Zanella <adhemerval.zanella@linaro.org>
24943
24944 * sysdeps/alpha/fpu/libm-test-ulps: Update.
24945
24946 2017-12-06 David S. Miller <davem@davemloft.net>
24947
24948 * sysdeps/sparc/fpu/libm-test-ulps: Update
24949 exp_{downward,towardzero,upward} ulps.
24950
24951 2017-12-06 Joseph Myers <joseph@codesourcery.com>
24952
24953 * sysdeps/ieee754/ldbl-96/e_j1l.c (qone): Don't make local
24954 variables static.
24955
24956 * sysdeps/ieee754/ldbl-128/e_j0l.c (Y0_2N): Make const.
24957 (Y0_2D): Likewise.
24958 * sysdeps/ieee754/ldbl-128/e_j1l.c (Y0_2N): Likewise.
24959 (Y0_2D): Likewise.
24960 * sysdeps/ieee754/ldbl-128ibm/e_j0l.c (Y0_2N): Likewise.
24961 (Y0_2D): Likewise.
24962 * sysdeps/ieee754/ldbl-128ibm/e_j1l.c (Y0_2N): Likewise.
24963 (Y0_2D): Likewise.
24964
24965 2017-12-06 Mike FABIAN <mfabian@redhat.com>
24966
24967 [BZ #22515]
24968 * localedata/Makefile: Add hsb_DE.UTF-8 to test-input
24969 and to the list of locales to be built for testing.
24970 * localedata/hsb_DE.UTF-8.in: New file for testing the collation.
24971 * localedata/locales/hsb_DE (LC_COLLATE): Use “copy "iso14651_t1"”
24972 and build the collation rules upon that.
24973
24974 2017-12-06 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
24975
24976 * NEWS: Add sinf to list of optimized functions.
24977
24978 2017-12-06 Joseph Myers <joseph@codesourcery.com>
24979
24980 * bits/floatn-common.h (__HAVE_FLOAT64): Define to 1.
24981 (__HAVE_FLOAT32X): Likewise.
24982 * manual/math.texi (Mathematics): Document support for _Float64
24983 and _Float32x.
24984 * math/Makefile (test-types): Add float64 and float32x.
24985 * math/Versions (GLIBC_2.27): Add _Float64 and _Float32x
24986 functions.
24987 * stdlib/Versions (GLIBC_2.27): Likewise.
24988 * wcsmbs/Versions (GLIBC_2.27): Likewise.
24989 * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Update.
24990 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
24991 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
24992 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
24993 * sysdeps/unix/sysv/linux/arm/libc.abilist: Likewise.
24994 * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
24995 * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
24996 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
24997 * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
24998 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
24999 * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
25000 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
25001 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
25002 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
25003 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
25004 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
25005 * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
25006 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
25007 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
25008 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
25009 * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist:
25010 Likewise.
25011 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
25012 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
25013 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
25014 * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise.
25015 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
25016 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
25017 Likewise.
25018 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist:
25019 Likewise.
25020 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
25021 Likewise.
25022 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
25023 Likewise.
25024 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist:
25025 Likewise.
25026 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist:
25027 Likewise.
25028 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist:
25029 Likewise.
25030 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist:
25031 Likewise.
25032 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
25033 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
25034 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
25035 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
25036 * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
25037 * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
25038 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
25039 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
25040 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
25041 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
25042 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libc.abilist:
25043 Likewise.
25044 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist:
25045 Likewise.
25046 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libc.abilist:
25047 Likewise.
25048 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist:
25049 Likewise.
25050 * sysdeps/unix/sysv/linux/tile/tilepro/libc.abilist: Likewise.
25051 * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
25052 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
25053 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
25054 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
25055 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
25056 * sysdeps/i386/fpu/libm-test-ulps: Likewise.
25057 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
25058
25059 2017-12-05 Joseph Myers <joseph@codesourcery.com>
25060
25061 * bits/floatn-common.h: Include <bits/long-double.h>.
25062 [__HAVE_FLOAT64 && (!__GNUC_PREREQ (7, 0) || defined __cplusplus)
25063 && __NO_LONG_DOUBLE_MATH] (__f64): Use suffix 'l'.
25064 [__HAVE_FLOAT64 && (!__GNUC_PREREQ (7, 0) || defined __cplusplus)
25065 && __NO_LONG_DOUBLE_MATH] (__CFLOAT64): Use _Complex long double.
25066 [__HAVE_FLOAT64 && (!__GNUC_PREREQ (7, 0) || defined __cplusplus)
25067 && __NO_LONG_DOUBLE_MATH] (_Float64): Use long double.
25068 [__HAVE_FLOAT64 && !__GNUC_PREREQ (7, 0) && __NO_LONG_DOUBLE_MATH]
25069 (__builtin_huge_valf64): Use __builtin_huge_vall.
25070 [__HAVE_FLOAT64 && !__GNUC_PREREQ (7, 0) && __NO_LONG_DOUBLE_MATH]
25071 (__builtin_inff64): Use __builtin_infl.
25072 [__HAVE_FLOAT64 && !__GNUC_PREREQ (7, 0) && __NO_LONG_DOUBLE_MATH]
25073 (__builtin_nanf64): Use __builtin_nanl.
25074 [__HAVE_FLOAT64 && !__GNUC_PREREQ (7, 0) && __NO_LONG_DOUBLE_MATH]
25075 (__builtin_nansf64): Use __builtin_nansl.
25076
25077 2017-12-05 Rogerio A. Cardoso <rcardoso@linux.vnet.ibm.com>
25078 Paul E. Murphy <murphyp@linux.vnet.ibm.com>
25079 Carlos O'Donell <carlos@redhat.com>
25080
25081 * elf/dl-tunables.list: Add elision parameters.
25082 * manual/tunables.texi: Add entries about elision tunable.
25083 * sysdeps/unix/sysv/linux/powerpc/elision-conf.c:
25084 Add callback functions to dynamically enable/disable elision.
25085 Add multiple callbacks functions to set elision parameters.
25086 Deleted __libc_enable_secure check.
25087 * sysdeps/unix/sysv/linux/s390/elision-conf.c: Likewise.
25088 * sysdeps/unix/sysv/linux/x86/elision-conf.c: Likewise.
25089 * configure: Regenerated.
25090 * configure.ac: Option enable_lock_elision was deleted.
25091 * config.h.in: ENABLE_LOCK_ELISION flag was deleted.
25092 * config.make.in: Remove references to enable_lock_elision.
25093 * manual/install.texi: Elision configure option was removed.
25094 * INSTALL: Regenerated to remove enable_lock_elision.
25095 * nptl/Makefile:
25096 Disable elision so it can verify error case for destroying a mutex.
25097 * sysdeps/powerpc/nptl/elide.h:
25098 Cleanup ENABLE_LOCK_ELISION check.
25099 Deleted macros for the case when ENABLE_LOCK_ELISION was not defined.
25100 * sysdeps/s390/configure: Regenerated.
25101 * sysdeps/s390/configure.ac: Remove references to enable_lock_elision..
25102 * nptl/tst-mutex8.c:
25103 Deleted all #ifndef ENABLE_LOCK_ELISION from the test.
25104 * sysdeps/powerpc/powerpc32/sysdep.h:
25105 Deleted all ENABLE_LOCK_ELISION checks.
25106 * sysdeps/powerpc/powerpc64/sysdep.h: Likewise.
25107 * sysdeps/powerpc/sysdep.h: Likewise.
25108 * sysdeps/s390/nptl/bits/pthreadtypes-arch.h: Likewise.
25109 * sysdeps/unix/sysv/linux/powerpc/force-elision.h: Likewise.
25110 * sysdeps/unix/sysv/linux/s390/elision-conf.h: Likewise.
25111 * sysdeps/unix/sysv/linux/s390/force-elision.h: Likewise.
25112 * sysdeps/unix/sysv/linux/s390/lowlevellock.h: Likewise.
25113 * sysdeps/unix/sysv/linux/s390/Makefile: Remove references to
25114 enable-lock-elision.
25115
25116 2017-12-05 Joseph Myers <joseph@codesourcery.com>
25117
25118 * stdlib/strtod.c: Include <bits/floatn.h>.
25119 (BUILD_DOUBLE): New macro.
25120 [BUILD_DOUBLE && __HAVE_FLOAT64 && !__HAVE_DISTINCT_FLOAT64]
25121 (strtof64): Define and later undefine as macro. Define as weak
25122 alias if [!USE_WIDE_CHAR].
25123 [BUILD_DOUBLE && __HAVE_FLOAT64 && !__HAVE_DISTINCT_FLOAT64]
25124 (wcstof64): Define and later undefine as macro. Define as weak
25125 alias if [USE_WIDE_CHAR].
25126 [BUILD_DOUBLE && __HAVE_FLOAT32X && !__HAVE_DISTINCT_FLOAT32X]
25127 (strtof32x): Define and later undefine as macro. Define as weak
25128 alias if [!USE_WIDE_CHAR].
25129 [BUILD_DOUBLE && __HAVE_FLOAT32X && !__HAVE_DISTINCT_FLOAT32X]
25130 (wcstof32x): Define and later undefine as macro. Define as weak
25131 alias if [USE_WIDE_CHAR].
25132 * stdlib/strtod_l.c: Include <bits/floatn.h>.
25133 (BUILD_DOUBLE): New macro.
25134 [BUILD_DOUBLE && __HAVE_FLOAT64 && !__HAVE_DISTINCT_FLOAT64]
25135 (strtof64_l): Define and later undefine as macro. Define as weak
25136 alias if [!USE_WIDE_CHAR].
25137 [BUILD_DOUBLE && __HAVE_FLOAT64 && !__HAVE_DISTINCT_FLOAT64]
25138 (wcstof64_l): Define and later undefine as macro. Define as weak
25139 alias if [USE_WIDE_CHAR].
25140 [BUILD_DOUBLE && __HAVE_FLOAT32X && !__HAVE_DISTINCT_FLOAT32X]
25141 (strtof32x_l): Define and later undefine as macro. Define as weak
25142 alias if [!USE_WIDE_CHAR].
25143 [BUILD_DOUBLE && __HAVE_FLOAT32X && !__HAVE_DISTINCT_FLOAT32X]
25144 (wcstof32x_l): Define and later undefine as macro. Define as weak
25145 alias if [USE_WIDE_CHAR].
25146
25147 2017-12-05 Adhemerval Zanella <adhemerval.zanella@linaro.org>
25148
25149 * sysdeps/ieee754/flt-32/s_sinf.c (ones): Define as double.
25150 (reduced): Use ones as double instead of integer.
25151
25152 2017-12-05 Szabolcs Nagy <szabolcs.nagy@arm.com>
25153
25154 * sysdeps/ieee754/flt-32/s_sinf.c (sinf): Use isless.
25155
25156 2017-12-05 Joseph Myers <joseph@codesourcery.com>
25157
25158 * stdlib/strfromd.c: Include <bits/floatn.h>.
25159 [__HAVE_FLOAT64 && !__HAVE_DISTINCT_FLOAT64] (strfromf64): Define
25160 and later undefine as macro and define as weak alias.
25161 [__HAVE_FLOAT32X && !__HAVE_DISTINCT_FLOAT32X] (strfromf32x):
25162 Likewise.
25163
25164 * math/test-float32x.h: New file.
25165 * math/test-float64.h: Likewise.
25166
25167 * sysdeps/generic/libm-alias-double.h: Include <bits/floatn.h>.
25168 (libm_alias_double_other_r_f64): New macro.
25169 (libm_alias_double_other_r_f32x): Likewise.
25170 (libm_alias_double_other_r): Use libm_alias_double_other_r_f64 and
25171 libm_alias_double_other_r_f32x.
25172 (libm_alias_double_r): Use semicolon before call to
25173 libm_alias_double_other_r.
25174 * sysdeps/ieee754/ldbl-opt/libm-alias-double.h: Include
25175 <bits/floatn.h>.
25176 (libm_alias_double_other_r_f64): New macro.
25177 (libm_alias_double_other_r_f32x): Likewise.
25178 (libm_alias_double_other_r): Use libm_alias_double_other_r_f64 and
25179 libm_alias_double_other_r_f32x.
25180
25181 2017-12-05 H.J. Lu <hongjiu.lu@intel.com>
25182
25183 * sysdeps/ieee754/flt-32/s_sinf.c (reduced): Replace long with
25184 int.
25185 (SINF_FUNC): Likewise. Replace floor with simple casts.
25186
25187 2017-12-05 Mike FABIAN <mfabian@redhat.com>
25188
25189 [BZ #22517]
25190 * localedata/Makefile: Add et_EE.UTF-8 to test-input
25191 and to the list of locales to be built for testing.
25192 * localedata/et_EE.UTF-8.in: New file for testing the collation.
25193 * localedata/locales/et_EE (LC_COLLATE): Use “copy "iso14651_t1"”
25194 and build the collation rules upon that.
25195
25196 2017-12-05 Chris Metcalf <cmetcalf@mellanox.com>
25197
25198 * sysdeps/tile/tilegx/string-endian.h (VECOP): Provide working
25199 replacements for __insn_xxx builtins for v1cmpeq, v1cmpltu,
25200 v1cmpne, v1add, v1shru, v1shl (register and immediate versions).
25201 * sysdeps/tile/tilegx/memchr.c (__memchr): Use VECOP function
25202 instead of __insn__xxx.
25203 * sysdeps/tile/tilegx/rawmemchr.c (__rawmemchr): Likewise.
25204 * sysdeps/tile/tilegx/strstr.c (strcasechr): Likewise.
25205 * sysdeps/tile/tilegx/strrchr.c (strrchr): Likewise.
25206 * sysdeps/tile/tilegx/strlen.c (strlen): Likewise.
25207 * sysdeps/tile/tilegx/strchrnul.c (__strchrnul): Likewise.
25208 * sysdeps/tile/tilegx/strchr.c (strchr): Likewise.
25209
25210 2017-12-05 Florian Weimer <fweimer@redhat.com>
25211
25212 Linux: Implement interfaces for memory protection keys
25213 * support/Makefile (libsupport-routines): Add xraise, xsigaction,
25214 xsignal, xsysconf.
25215 * support/xsignal.h (xraise, xsignal, xsigaction): Declare.
25216 * support/xunistd.h (xsysconf): Declare.
25217 * support/xraise.c: New file.
25218 * support/xsigaction.c: Likewise.
25219 * support/xsignal.c: Likewise.
25220 * support/xsysconf.c: Likewise.
25221 * sysdeps/unix/sysv/linux/Makefile [misc] (routines): Add
25222 pkey_set, pkey_get, pkey_mprotect.
25223 [misc] (tests): Add tst-pkey.
25224 (tst-pkey): Link with -lpthread.
25225 * sysdeps/unix/sysv/linux/Versions (GLIBC_2.27): Add pkey_alloc,
25226 pkey_free, pkey_set, pkey_get, pkey_mprotect.
25227 * sysdeps/unix/sysv/linux/bits/mman-linux.h (PKEY_DISABLE_ACCESS)
25228 (PKEY_DISABLE_WRITE): Define.
25229 (pkey_alloc, pkey_free, pkey_set, pkey_get, pkey_mprotect):
25230 Declare.
25231 * sysdeps/unix/sysv/linux/bits/siginfo-consts.h (SEGV_BNDERR)
25232 (SEGV_PKUERR): Add.
25233 * sysdeps/unix/sysv/linux/pkey_get.c: New file.
25234 * sysdeps/unix/sysv/linux/pkey_set.c: Likewise.
25235 * sysdeps/unix/sysv/linux/pkey_mprotect.c: Likewise.
25236 * sysdeps/unix/sysv/linux/syscalls.list (pkey_alloc, pkey_free):
25237 Add.
25238 * sysdeps/unix/sysv/linux/tst-pkey.c: New file.
25239 * sysdeps/unix/sysv/linux/x86/arch-pkey.h: Likewise.
25240 * sysdeps/unix/sysv/linux/x86/pkey_get.c: Likewise.
25241 * sysdeps/unix/sysv/linux/x86/pkey_set.c: Likewise.
25242 * sysdeps/unix/sysv/linux/**.abilist: Update.
25243
25244 2017-12-05 Florian Weimer <fweimer@redhat.com>
25245
25246 * support/tst-test_compare.c (subprocess): Use long long instead
25247 of long argument for consistent type width across 32-bit and
25248 64-bit architectures.
25249 (do_test): Adjust expected output.
25250
25251 2017-12-05 Joseph Myers <joseph@codesourcery.com>
25252
25253 * sysdeps/powerpc/fpu/s_cosf.c: Include <libm-alias-float.h>.
25254 (cosf): Define using libm_alias_float.
25255 * sysdeps/powerpc/fpu/s_fabs.S: Include <libm-alias-float.h>.
25256 (fabsf): Define using libm_alias_float.
25257 * sysdeps/powerpc/fpu/s_fmaf.S: Include <libm-alias-float.h>.
25258 (fmaf): Define using libm_alias_float.
25259 * sysdeps/powerpc/fpu/s_rintf.c: Include <libm-alias-float.h>.
25260 (rintf): Define using libm_alias_float.
25261 * sysdeps/powerpc/fpu/s_sinf.c: Include <libm-alias-float.h>.
25262 (sinf): Define using libm_alias_float.
25263 * sysdeps/powerpc/power5+/fpu/s_modff.c: Include
25264 <libm-alias-float.h>.
25265 (modff): Define using libm_alias_float.
25266 * sysdeps/powerpc/power7/fpu/s_logbf.c: Include
25267 <libm-alias-float.h>.
25268 (logbf): Define using libm_alias_float.
25269 * sysdeps/powerpc/powerpc32/fpu/s_ceilf.S: Include
25270 <libm-alias-float.h>.
25271 (ceilf): Define using libm_alias_float.
25272 * sysdeps/powerpc/powerpc32/fpu/s_copysign.S: Include
25273 <libm-alias-float.h>.
25274 (copysignf): Define using libm_alias_float.
25275 * sysdeps/powerpc/powerpc32/fpu/s_floorf.S: Include
25276 <libm-alias-float.h>.
25277 (floorf): Define using libm_alias_float.
25278 * sysdeps/powerpc/powerpc32/fpu/s_llrintf.c: Include
25279 <libm-alias-float.h>.
25280 (llrintf): Define using libm_alias_float.
25281 * sysdeps/powerpc/powerpc32/fpu/s_llroundf.c: Include
25282 <libm-alias-float.h>.
25283 (llroundf): Define using libm_alias_float.
25284 * sysdeps/powerpc/powerpc32/fpu/s_lrint.S: Include
25285 <libm-alias-float.h>.
25286 (lrintf): Define using libm_alias_float.
25287 * sysdeps/powerpc/powerpc32/fpu/s_lround.S: Include
25288 <libm-alias-float.h>.
25289 (lroundf): Define using libm_alias_float.
25290 * sysdeps/powerpc/powerpc32/fpu/s_nearbyintf.S: Include
25291 <libm-alias-float.h>.
25292 (nearbyintf): Define using libm_alias_float.
25293 * sysdeps/powerpc/powerpc32/fpu/s_rintf.S: Include
25294 <libm-alias-float.h>.
25295 (rintf): Define using libm_alias_float.
25296 * sysdeps/powerpc/powerpc32/fpu/s_roundf.S: Include
25297 <libm-alias-float.h>.
25298 (roundf): Define using libm_alias_float.
25299 * sysdeps/powerpc/powerpc32/fpu/s_truncf.S: Include
25300 <libm-alias-float.h>.
25301 (truncf): Define using libm_alias_float.
25302 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceilf.c:
25303 Include <libm-alias-float.h>.
25304 (ceilf): Define using libm_alias_float.
25305 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_copysignf.c:
25306 Include <libm-alias-float.h>.
25307 (copysignf): Define using libm_alias_float.
25308 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floorf.c:
25309 Include <libm-alias-float.h>.
25310 (floorf): Define using libm_alias_float.
25311 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llrintf.c:
25312 Include <libm-alias-float.h>.
25313 (llrintf): Define using libm_alias_float.
25314 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llroundf.c:
25315 Include <libm-alias-float.h>.
25316 (llroundf): Define using libm_alias_float.
25317 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logbf.c:
25318 Include <libm-alias-float.h>.
25319 (logbf): Define using libm_alias_float.
25320 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lrintf.c:
25321 Include <libm-alias-float.h>.
25322 (lrintf): Define using libm_alias_float.
25323 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lroundf.c:
25324 Include <libm-alias-float.h>.
25325 (lroundf): Define using libm_alias_float.
25326 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_modff.c:
25327 Include <libm-alias-float.h>.
25328 (modff): Define using libm_alias_float.
25329 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_roundf.c:
25330 Include <libm-alias-float.h>.
25331 (roundf): Define using libm_alias_float.
25332 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_truncf.c:
25333 Include <libm-alias-float.h>.
25334 (truncf): Define using libm_alias_float.
25335 * sysdeps/powerpc/powerpc32/power4/fpu/s_llrintf.S: Include
25336 <libm-alias-float.h>.
25337 (llrintf): Define using libm_alias_float.
25338 * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S: Include
25339 <libm-alias-float.h>.
25340 (llroundf): Define using libm_alias_float.
25341 * sysdeps/powerpc/powerpc32/power5+/fpu/s_ceilf.S: Include
25342 <libm-alias-float.h>.
25343 (ceilf): Define using libm_alias_float.
25344 * sysdeps/powerpc/powerpc32/power5+/fpu/s_floorf.S: Include
25345 <libm-alias-float.h>.
25346 (floorf): Define using libm_alias_float.
25347 * sysdeps/powerpc/powerpc32/power5+/fpu/s_llround.S: Include
25348 <libm-alias-float.h>.
25349 (llroundf): Define using libm_alias_float.
25350 * sysdeps/powerpc/powerpc32/power5+/fpu/s_lround.S: Include
25351 <libm-alias-float.h>.
25352 (lroundf): Define using libm_alias_float.
25353 * sysdeps/powerpc/powerpc32/power5+/fpu/s_roundf.S: Include
25354 <libm-alias-float.h>.
25355 (roundf): Define using libm_alias_float.
25356 * sysdeps/powerpc/powerpc32/power5+/fpu/s_truncf.S: Include
25357 <libm-alias-float.h>.
25358 (truncf): Define using libm_alias_float.
25359 * sysdeps/powerpc/powerpc32/power6/fpu/s_copysign.S: Include
25360 <libm-alias-float.h>.
25361 (copysignf): Define using libm_alias_float.
25362 * sysdeps/powerpc/powerpc32/power6/fpu/s_llrintf.S: Include
25363 <libm-alias-float.h>.
25364 (llrintf): Define using libm_alias_float.
25365 * sysdeps/powerpc/powerpc32/power6/fpu/s_llround.S: Include
25366 <libm-alias-float.h>.
25367 (llroundf): Define using libm_alias_float.
25368 * sysdeps/powerpc/powerpc32/power6x/fpu/s_lrint.S: Include
25369 <libm-alias-float.h>.
25370 (lrintf): Define using libm_alias_float.
25371 * sysdeps/powerpc/powerpc32/power6x/fpu/s_lround.S: Include
25372 <libm-alias-float.h>.
25373 (lroundf): Define using libm_alias_float.
25374 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceilf.c: Include
25375 <libm-alias-float.h>.
25376 (ceilf): Define using libm_alias_float.
25377 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysignf.c: Include
25378 <libm-alias-float.h>.
25379 (copysignf): Define using libm_alias_float.
25380 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_cosf.c: Include
25381 <libm-alias-float.h>.
25382 (cosf): Define using libm_alias_float.
25383 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floorf.c: Include
25384 <libm-alias-float.h>.
25385 (floorf): Define using libm_alias_float.
25386 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrintf.c: Include
25387 <libm-alias-float.h>.
25388 (llrintf): Define using libm_alias_float.
25389 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llroundf.c: Include
25390 <libm-alias-float.h>.
25391 (llroundf): Define using libm_alias_float.
25392 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logbf.c: Include
25393 <libm-alias-float.h>.
25394 (logbf): Define using libm_alias_float.
25395 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modff.c: Include
25396 <libm-alias-float.h>.
25397 (modff): Define using libm_alias_float.
25398 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_roundf.c: Include
25399 <libm-alias-float.h>.
25400 (roundf): Define using libm_alias_float.
25401 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_sinf.c: Include
25402 <libm-alias-float.h>.
25403 (sinf): Define using libm_alias_float.
25404 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_truncf.c: Include
25405 <libm-alias-float.h>.
25406 (truncf): Define using libm_alias_float.
25407 * sysdeps/powerpc/powerpc64/fpu/s_ceilf.S: Include
25408 <libm-alias-float.h>.
25409 (ceilf): Define using libm_alias_float.
25410 * sysdeps/powerpc/powerpc64/fpu/s_copysign.S: Include
25411 <libm-alias-float.h>.
25412 (copysignf): Define using libm_alias_float.
25413 * sysdeps/powerpc/powerpc64/fpu/s_floorf.S: Include
25414 <libm-alias-float.h>.
25415 (floorf): Define using libm_alias_float.
25416 * sysdeps/powerpc/powerpc64/fpu/s_llrint.S: Include
25417 <libm-alias-float.h>.
25418 (llrintf): Define using libm_alias_float.
25419 * sysdeps/powerpc/powerpc64/fpu/s_llroundf.S: Include
25420 <libm-alias-float.h>.
25421 (llroundf): Define using libm_alias_float.
25422 * sysdeps/powerpc/powerpc64/fpu/s_nearbyintf.S: Include
25423 <libm-alias-float.h>.
25424 (nearbyintf): Define using libm_alias_float.
25425 * sysdeps/powerpc/powerpc64/fpu/s_rintf.S: Include
25426 <libm-alias-float.h>.
25427 (rintf): Define using libm_alias_float.
25428 * sysdeps/powerpc/powerpc64/fpu/s_roundf.S: Include
25429 <libm-alias-float.h>.
25430 (roundf): Define using libm_alias_float.
25431 * sysdeps/powerpc/powerpc64/fpu/s_truncf.S: Include
25432 <libm-alias-float.h>.
25433 (truncf): Define using libm_alias_float.
25434 * sysdeps/powerpc/powerpc64/power5+/fpu/s_ceilf.S: Include
25435 <libm-alias-float.h>.
25436 (ceilf): Define using libm_alias_float.
25437 * sysdeps/powerpc/powerpc64/power5+/fpu/s_floorf.S: Include
25438 <libm-alias-float.h>.
25439 (floorf): Define using libm_alias_float.
25440 * sysdeps/powerpc/powerpc64/power5+/fpu/s_llround.S: Include
25441 <libm-alias-float.h>.
25442 (llroundf): Define using libm_alias_float.
25443 * sysdeps/powerpc/powerpc64/power5+/fpu/s_roundf.S: Include
25444 <libm-alias-float.h>.
25445 (roundf): Define using libm_alias_float.
25446 * sysdeps/powerpc/powerpc64/power5+/fpu/s_truncf.S: Include
25447 <libm-alias-float.h>.
25448 (truncf): Define using libm_alias_float.
25449 * sysdeps/powerpc/powerpc64/power6/fpu/s_copysign.S: Include
25450 <libm-alias-float.h>.
25451 (copysignf): Define using libm_alias_float.
25452 * sysdeps/powerpc/powerpc64/power6x/fpu/s_llrint.S: Include
25453 <libm-alias-float.h>.
25454 (llrintf): Define using libm_alias_float.
25455 * sysdeps/powerpc/powerpc64/power6x/fpu/s_llround.S: Include
25456 <libm-alias-float.h>.
25457 (llroundf): Define using libm_alias_float.
25458 * sysdeps/powerpc/powerpc64/power8/fpu/s_cosf.S: Include
25459 <libm-alias-float.h>.
25460 (cosf): Define using libm_alias_float.
25461 * sysdeps/powerpc/powerpc64/power8/fpu/s_llrint.S: Include
25462 <libm-alias-float.h>.
25463 (llrintf): Define using libm_alias_float.
25464 * sysdeps/powerpc/powerpc64/power8/fpu/s_llround.S: Include
25465 <libm-alias-float.h>.
25466 (llroundf): Define using libm_alias_float.
25467 * sysdeps/powerpc/powerpc64/power8/fpu/s_sinf.S: Include
25468 <libm-alias-float.h>.
25469 (sinf): Define using libm_alias_float.
25470
25471 2017-12-04 Florian Weimer <fweimer@redhat.com>
25472
25473 * support/check.h (TEST_COMPARE): Define.
25474 (support_test_compare_failure): Declare.
25475 * support/Makefile (libsupport-routines): Add
25476 support_test_compare_failure.
25477 (tests): Add tst-test_compare.
25478 * support /support_test_compare_failure.c: New file.
25479 * support/tst-test_compare.c: Likewise.
25480
25481 2017-12-04 Mike FABIAN <mfabian@redhat.com>
25482
25483 [BZ #22527]
25484 * localedata/locales/tr_TR (LC_COLLATE): Base collation rules
25485 on iso14651_t1. A test file localedata/tr_TR.UTF-8.in is already
25486 available, this rewrite of the collation rules does reproduce
25487 the test file in the same order.
25488
25489 2017-12-04 Mike FABIAN <mfabian@redhat.com>
25490
25491 [BZ #10580]
25492 * localedata/locales/hr_HR (LC_TIME): Use two letters for the
25493 digraphs in the month and day names. Using single code points for
25494 digraphs is deprecated. While there are dedicated Unicode
25495 codepoints, for the digraphs, these are included for backwards
25496 compatibility and modern texts use a sequence of Basic Latin
25497 characters. See: https://www.unicode.org/faq/ligature_digraph.html
25498 This makes the month and day names agree exactly with CLDR now,
25499 CLDR does not use the single code points for the digraphs either.
25500
25501 2017-12-04 Chris Metcalf <cmetcalf@mellanox.com>
25502
25503 * sysdeps/tile/libm-test-ulps: Update ca{cos,sin,tan}{,h} ulps.
25504
25505 2017-12-04 Joseph Myers <joseph@codesourcery.com>
25506
25507 * sysdeps/ieee754/flt-32/s_sinf.c (SINF_FUNC): Use __floor instead
25508 of floor.
25509
25510 2017-12-04 Siddhesh Poyarekar <siddhesh@sourceware.org>
25511
25512 * sysdeps/aarch64/multiarch/memcpy_generic.S (__GI_memcpy):
25513 Define only for libc.so.
25514
25515 2017-12-04 Stefan Liebler <stli@linux.vnet.ibm.com>
25516
25517 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h
25518 (INTERNAL_VSYSCALL_CALL, CLOBBER_0, CLOBBER_1, CLOBBER_2,
25519 CLOBBER_3, CLOBBER_4, CLOBBER_5, CLOBBER_6,
25520 INTERNAL_VSYSCALL_NO_SYSCALL_FALLBACK): Remove.
25521 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h: Likewise.
25522
25523 2017-12-04 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
25524
25525 [BZ #5997]
25526 * sysdeps/ieee754/flt-32/s_sinf.c: New implementation.
25527
25528 2017-12-02 John David Anglin <danglin@gcc.gnu.org>
25529
25530 [BZ libc/19170]
25531 * sysdeps/hppa/crti.S: Declare PREINIT_FUNCTION weak_extern when
25532 PREINIT_FUNCTION_WEAK is nonzero.
25533 (gmon_initializer): New function. Put procedure label for it in
25534 .init_array section.
25535 (_init): Don't call PREINIT_FUNCTION.
25536 * sysdeps/hppa/crtn.S (__gmon_start__): Remove.
25537 * sysdeps/hppa/dl-lookupcfg.h (DL_FIXUP_MAKE_VALUE): Create null fixup
25538 value when map argument is null.
25539
25540 * sysdeps/hppa/dl-fptr.c (elf_machine_resolve): Remove unnecessary
25541 depi instruction from PIC pc-relative sequence.
25542 * sysdeps/hppa/dl-fptr.h (ELF_MACHINE_LOAD_ADDRESS): Likewise.
25543 * sysdeps/hppa/dl-machine.h (elf_machine_dynamic): Likewise.
25544 (elf_machine_load_address): Likewise.
25545 (elf_machine_runtime_setup): Likewise.
25546
25547 2017-12-02 Joseph Myers <joseph@codesourcery.com>
25548
25549 * sysdeps/powerpc/power7/fpu/s_logb.c: Include
25550 <libm-alias-double.h>.
25551 (logb): Define using libm_alias_double.
25552 * sysdeps/powerpc/powerpc32/fpu/s_copysign.S: Include
25553 <libm-alias-double.h>.
25554 (copysign): Define using libm_alias_double.
25555 * sysdeps/powerpc/powerpc32/fpu/s_llrint.c: Include
25556 <libm-alias-double.h>.
25557 (llrint): Define using libm_alias_double.
25558 * sysdeps/powerpc/powerpc32/fpu/s_llround.c: Include
25559 <libm-alias-double.h>.
25560 (llround): Define using libm_alias_double.
25561 * sysdeps/powerpc/powerpc32/fpu/s_lrint.S: Include
25562 <libm-alias-double.h>.
25563 (lrint): Define using libm_alias_double.
25564 * sysdeps/powerpc/powerpc32/fpu/s_lround.S: Include
25565 <libm-alias-double.h>.
25566 (lround): Define using libm_alias_double.
25567 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_copysign.c:
25568 Include <libm-alias-double.h>.
25569 (copysign): Define using libm_alias_double.
25570 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llrint.c:
25571 Include <libm-alias-double.h>.
25572 (llrint): Define using libm_alias_double.
25573 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llround.c:
25574 Include <libm-alias-double.h>.
25575 (llround): Define using libm_alias_double.
25576 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logb.c: Include
25577 <libm-alias-double.h>.
25578 (logb): Define using libm_alias_double.
25579 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lrint.c:
25580 Include <libm-alias-double.h>.
25581 (lrint): Define using libm_alias_double.
25582 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lround.c:
25583 Include <libm-alias-double.h>.
25584 (lround): Define using libm_alias_double.
25585 * sysdeps/powerpc/powerpc32/power4/fpu/s_llrint.S: Include
25586 <libm-alias-double.h>.
25587 (llrint): Define using libm_alias_double.
25588 * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S: Include
25589 <libm-alias-double.h>.
25590 (llround): Define using libm_alias_double.
25591 * sysdeps/powerpc/powerpc32/power5+/fpu/s_llround.S: Include
25592 <libm-alias-double.h>.
25593 (llround): Define using libm_alias_double.
25594 * sysdeps/powerpc/powerpc32/power5+/fpu/s_lround.S: Include
25595 <libm-alias-double.h>.
25596 (lround): Define using libm_alias_double.
25597 * sysdeps/powerpc/powerpc32/power6/fpu/s_copysign.S: Include
25598 <libm-alias-double.h>.
25599 (copysign): Define using libm_alias_double.
25600 * sysdeps/powerpc/powerpc32/power6/fpu/s_llrint.S: Include
25601 <libm-alias-double.h>.
25602 (llrint): Define using libm_alias_double.
25603 * sysdeps/powerpc/powerpc32/power6/fpu/s_llround.S: Include
25604 <libm-alias-double.h>.
25605 (llround): Define using libm_alias_double.
25606 * sysdeps/powerpc/powerpc32/power6x/fpu/s_lrint.S: Include
25607 <libm-alias-double.h>.
25608 (lrint): Define using libm_alias_double.
25609 * sysdeps/powerpc/powerpc32/power6x/fpu/s_lround.S: Include
25610 <libm-alias-double.h>.
25611 (lround): Define using libm_alias_double.
25612 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysign.c: Include
25613 <libm-alias-double.h>.
25614 (copysign): Define using libm_alias_double.
25615 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint.c: Include
25616 <libm-alias-double.h>.
25617 (llrint): Define using libm_alias_double.
25618 (lrint): Likewise.
25619 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround.c: Include
25620 <libm-alias-double.h>.
25621 (llround): Define using libm_alias_double.
25622 (lround): Likewise.
25623 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logb.c: Include
25624 <libm-alias-double.h>.
25625 (logb): Define using libm_alias_double.
25626 * sysdeps/powerpc/powerpc64/fpu/s_copysign.S: Include
25627 <libm-alias-double.h>.
25628 (copysign): Define using libm_alias_double.
25629 * sysdeps/powerpc/powerpc64/fpu/s_llrint.S: Include
25630 <libm-alias-double.h>.
25631 (llrint): Define using libm_alias_double.
25632 (lrint): Likewise.
25633 * sysdeps/powerpc/powerpc64/fpu/s_llround.S: Include
25634 <libm-alias-double.h>.
25635 (llround): Define using libm_alias_double.
25636 (lround): Likewise.
25637 * sysdeps/powerpc/powerpc64/power5+/fpu/s_llround.S: Include
25638 <libm-alias-double.h>.
25639 (llround): Define using libm_alias_double.
25640 (lround): Likewise.
25641 * sysdeps/powerpc/powerpc64/power6/fpu/s_copysign.S: Include
25642 <libm-alias-double.h>.
25643 (copysign): Define using libm_alias_double.
25644 * sysdeps/powerpc/powerpc64/power6x/fpu/s_llrint.S: Include
25645 <libm-alias-double.h>.
25646 (llrint): Define using libm_alias_double.
25647 (lrint): Likewise.
25648 * sysdeps/powerpc/powerpc64/power6x/fpu/s_llround.S: Include
25649 <libm-alias-double.h>.
25650 (llround): Define using libm_alias_double.
25651 (lround): Likewise.
25652 * sysdeps/powerpc/powerpc64/power8/fpu/s_llrint.S: Include
25653 <libm-alias-double.h>.
25654 (llrint): Define using libm_alias_double.
25655 (lrint): Likewise.
25656 * sysdeps/powerpc/powerpc64/power8/fpu/s_llround.S: Include
25657 <libm-alias-double.h>.
25658 (llround): Define using libm_alias_double.
25659 (lround): Likewise.
25660
25661 2017-12-01 Joseph Myers <joseph@codesourcery.com>
25662
25663 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround.c
25664 [LONG_DOUBLE_COMPAT(libm, GLIBC_2_1)] (lroundl): Do not define
25665 compat symbol based on llround.
25666
25667 * sysdeps/powerpc/power7/fpu/s_logb.c
25668 [LONG_DOUBLE_COMPAT (libm, GLIBC_2_0)] (logbl): Define as compat
25669 symbol based on __logb, not on logb.
25670 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logb.c
25671 [LONG_DOUBLE_COMPAT (libm, GLIBC_2_0)] (logbl): Likewise.
25672 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logb.c
25673 [LONG_DOUBLE_COMPAT (libm, GLIBC_2_0)] (logbl): Likewise.
25674
25675 * sysdeps/powerpc/fpu/s_rint.c: Include <libm-alias-double.h>.
25676 (rint): Define using libm_alias_double.
25677 * sysdeps/powerpc/power5+/fpu/s_modf.c: Include
25678 <libm-alias-double.h>.
25679 (modf): Define using libm_alias_double.
25680 * sysdeps/powerpc/powerpc32/fpu/s_ceil.S: Include
25681 <libm-alias-double.h>.
25682 (ceil): Define using libm_alias_double.
25683 * sysdeps/powerpc/powerpc32/fpu/s_floor.S: Include
25684 <libm-alias-double.h>.
25685 (floor): Define using libm_alias_double.
25686 * sysdeps/powerpc/powerpc32/fpu/s_nearbyint.S: Include
25687 <libm-alias-double.h>.
25688 (nearbyint): Define using libm_alias_double.
25689 * sysdeps/powerpc/powerpc32/fpu/s_rint.S: Include
25690 <libm-alias-double.h>.
25691 (rint): Define using libm_alias_double.
25692 * sysdeps/powerpc/powerpc32/fpu/s_round.S: Include
25693 <libm-alias-double.h>.
25694 (round): Define using libm_alias_double.
25695 * sysdeps/powerpc/powerpc32/fpu/s_trunc.S: Include
25696 <libm-alias-double.h>.
25697 (trunc): Define using libm_alias_double.
25698 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceil.c: Include
25699 <libm-alias-double.h>.
25700 (ceil): Define using libm_alias_double.
25701 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floor.c:
25702 Include <libm-alias-double.h>.
25703 (floor): Define using libm_alias_double.
25704 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_modf.c: Include
25705 <libm-alias-double.h>.
25706 (modf): Define using libm_alias_double.
25707 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_round.c:
25708 Include <libm-alias-double.h>.
25709 (round): Define using libm_alias_double.
25710 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_trunc.c:
25711 Include <libm-alias-double.h>.
25712 (trunc): Define using libm_alias_double.
25713 * sysdeps/powerpc/powerpc32/power5+/fpu/s_ceil.S: Include
25714 <libm-alias-double.h>.
25715 (ceil): Define using libm_alias_double.
25716 * sysdeps/powerpc/powerpc32/power5+/fpu/s_floor.S: Include
25717 <libm-alias-double.h>.
25718 (floor): Define using libm_alias_double.
25719 * sysdeps/powerpc/powerpc32/power5+/fpu/s_round.S: Include
25720 <libm-alias-double.h>.
25721 (round): Define using libm_alias_double.
25722 * sysdeps/powerpc/powerpc32/power5+/fpu/s_trunc.S: Include
25723 <libm-alias-double.h>.
25724 (trunc): Define using libm_alias_double.
25725 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceil.c: Include
25726 <libm-alias-double.h>.
25727 (ceil): Define using libm_alias_double.
25728 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floor.c: Include
25729 <libm-alias-double.h>.
25730 (floor): Define using libm_alias_double.
25731 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modf.c: Include
25732 <libm-alias-double.h>.
25733 (modf): Define using libm_alias_double.
25734 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_round.c: Include
25735 <libm-alias-double.h>.
25736 (round): Define using libm_alias_double.
25737 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_trunc.c: Include
25738 <libm-alias-double.h>.
25739 (trunc): Define using libm_alias_double.
25740 * sysdeps/powerpc/powerpc64/fpu/s_ceil.S: Include
25741 <libm-alias-double.h>.
25742 (ceil): Define using libm_alias_double.
25743 * sysdeps/powerpc/powerpc64/fpu/s_floor.S: Include
25744 <libm-alias-double.h>.
25745 (floor): Define using libm_alias_double.
25746 * sysdeps/powerpc/powerpc64/fpu/s_nearbyint.S: Include
25747 <libm-alias-double.h>.
25748 (nearbyint): Define using libm_alias_double.
25749 * sysdeps/powerpc/powerpc64/fpu/s_rint.S: Include
25750 <libm-alias-double.h>.
25751 (rint): Define using libm_alias_double.
25752 * sysdeps/powerpc/powerpc64/fpu/s_round.S: Include
25753 <libm-alias-double.h>.
25754 (round): Define using libm_alias_double.
25755 * sysdeps/powerpc/powerpc64/fpu/s_trunc.S: Include
25756 <libm-alias-double.h>.
25757 (trunc): Define using libm_alias_double.
25758 * sysdeps/powerpc/powerpc64/power5+/fpu/s_ceil.S: Include
25759 <libm-alias-double.h>.
25760 (ceil): Define using libm_alias_double.
25761 * sysdeps/powerpc/powerpc64/power5+/fpu/s_floor.S: Include
25762 <libm-alias-double.h>.
25763 (floor): Define using libm_alias_double.
25764 * sysdeps/powerpc/powerpc64/power5+/fpu/s_round.S: Include
25765 <libm-alias-double.h>.
25766 (round): Define using libm_alias_double.
25767 * sysdeps/powerpc/powerpc64/power5+/fpu/s_trunc.S: Include
25768 <libm-alias-double.h>.
25769 (trunc): Define using libm_alias_double.
25770
25771 * sysdeps/powerpc/fpu/s_fabs.S: Include <libm-alias-double.h>.
25772 (fabs): Define using libm_alias_double.
25773 * sysdeps/powerpc/fpu/s_fma.S: Include <libm-alias-double.h>.
25774 (fma): Define using libm_alias_double.
25775 * sysdeps/powerpc/powerpc32/fpu/s_fabs.S: Remove file.
25776 * sysdeps/powerpc/powerpc32/fpu/s_fma.S: Likewise.
25777 * sysdeps/powerpc/powerpc64/fpu/s_fabs.S: Likewise.
25778 * sysdeps/powerpc/powerpc64/fpu/s_fma.S: Likewise.
25779
25780 2017-12-01 Adhemerval Zanella <adhemerval.zanella@linaro.org>
25781
25782 * sysdeps/unix/sysv/linux/x86_64/x32/getcpu.c: Remove file.
25783
25784 * sysdeps/sparc/sparc-ifunc.h (SPARC_ASM_IFUNC_DFLT,
25785 SPARC_ASM_IFUNC1, SPARC_ASM_IFUNC2, SET, SPARC_ASM_VIS2_IFUNC,
25786 SPARC_ASM_VIS3_IFUNC, SPARC_ASM_VIS3_VIS2_IFUNC): Remove macros.
25787
25788 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.c: Fix build
25789 due redirect macro.
25790
25791 2017-12-01 Andreas Schwab <schwab@linux-m68k.org>
25792
25793 * intl/Makefile ($(objpfx)plural.c): Add $(make-target-directory).
25794
25795 2017-12-01 Adhemerval Zanella <adhemerval.zanella@linaro.org>
25796
25797 * sysdeps/sparc/sparc64/cpu_relax.c: New file.
25798 * sysdeps/sparc/sparc32/sparcv9/cpu_relax.c: Likewise.
25799 * sysdeps/sparc/sparc64/cpu_relax.S: Remove file.
25800 * sysdeps/sparc/sparc32/sparcv9/cpu_relax.S: Likewise.
25801
25802 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile
25803 (libm-sysdep_routines): Add s_nearbyintf-generic and
25804 s_nearbyint-generic.
25805 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyint-generic.S:
25806 New file.
25807 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyint.c: Likewise.
25808 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyintf-generic.S:
25809 Likewise.
25810 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyintf.c:
25811 Likewise.
25812 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyint.S: Remove
25813 file.
25814 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyintf.S:
25815 Likewise.
25816
25817 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile
25818 (libm-sysdep_routines): Add s_rintf-generic and s_rint-generic.
25819 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint-generic.S: New
25820 file.
25821 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.c: Likewise.
25822 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf-generic.S:
25823 Likewise.
25824 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf.c: Likewise.
25825 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: Remove file.
25826 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf.S: Likewise.
25827
25828 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile
25829 (libm-sysdep_routines): Add s_llrintf-generic and s_llrint-generic.
25830 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint-generic.S: New
25831 file.
25832 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.c: Likewise.
25833 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf-generic.S:
25834 Likewise.
25835 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.c: Likewise.
25836 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S: Remove file.
25837 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.S: Likewise.
25838
25839 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile
25840 (libm-sysdep_routines): Add s_fabsf-generic and s_fabs-generic.
25841 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs-generic.S: New
25842 file.
25843 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.c: Likewise.
25844 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf-generic.S:
25845 Likewise.
25846 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf.c: Likewise.
25847 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.S: Remove file.
25848 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf.S: Likewise.
25849
25850 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile
25851 (sysdep_calls): New rule.
25852 (sysdep_routines): Use sysdep_calls as base.
25853 (libm-sysdep_routines): Add generic rule for symbols shared with
25854 libc. Add s_copysign-generic and s_copysign-generic objects.
25855 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign-generic.S:
25856 New file.
25857 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.c: Likewise.
25858 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf-generic.S:
25859 Likewise.
25860 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf.c: Likewise.
25861 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.S: Remove file.
25862 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf.S: Likewise.
25863
25864 2017-12-01 Mike FABIAN <mfabian@redhat.com>
25865
25866 [BZ #22519]
25867 * localedata/Makefile: Add is_IS.UTF-8 to test-input and to
25868 the list of locales to be built for testing.
25869 * localedata/is_IS.UTF-8.in: New file.
25870 * localedata/locales/is_IS (LC_COLLATE): Base collation rules
25871 on iso14651_t1.
25872
25873 2017-12-01 Joseph Myers <joseph@codesourcery.com>
25874
25875 * sysdeps/powerpc/powerpc32/e500/nofpu/s_fabsf.S: Include
25876 <libm-alias-float.h>.
25877 (fabsf): Define using libm_alias_float.
25878
25879 2017-11-30 H.J. Lu <hongjiu.lu@intel.com>
25880
25881 * sysdeps/mips/dl-machine.h (elf_machine_reloc): Expand MIN.
25882
25883 2017-11-30 Joseph Myers <joseph@codesourcery.com>
25884
25885 * sysdeps/m68k/coldfire/fpu/s_fabsf.c: Include
25886 <libm-alias-float.h>.
25887 (fabsf): Define using libm_alias_float.
25888 * sysdeps/m68k/coldfire/fpu/s_lrintf.c: Include
25889 <libm-alias-float.h>.
25890 (lrintf): Define using libm_alias_float.
25891 * sysdeps/m68k/coldfire/fpu/s_rintf.c: Include
25892 <libm-alias-float.h>.
25893 (rintf): Define using libm_alias_float.
25894
25895 * sysdeps/m68k/coldfire/fpu/s_fabs.c: Include
25896 <libm-alias-double.h>.
25897 (fabs): Define using libm_alias_double.
25898 * sysdeps/m68k/coldfire/fpu/s_lrint.c: Include
25899 <libm-alias-double.h>.
25900 (lrint): Define using libm_alias_double.
25901 * sysdeps/m68k/coldfire/fpu/s_rint.c: Include
25902 <libm-alias-double.h>.
25903 (rint): Define using libm_alias_double.
25904
25905 * sysdeps/m68k/m680x0/fpu/s_atan_template.c: New file.
25906 * sysdeps/m68k/m680x0/fpu/s_ceil_template.c: Likewise.
25907 * sysdeps/m68k/m680x0/fpu/s_cos_template.c: Likewise.
25908 * sysdeps/m68k/m680x0/fpu/s_expm1_template.c: Likewise.
25909 * sysdeps/m68k/m680x0/fpu/s_fabs_template.c: Likewise.
25910 * sysdeps/m68k/m680x0/fpu/s_floor_template.c: Likewise.
25911 * sysdeps/m68k/m680x0/fpu/s_frexp_template.c: Likewise.
25912 * sysdeps/m68k/m680x0/fpu/s_lrint_template.c: Likewise.
25913 * sysdeps/m68k/m680x0/fpu/s_modf_template.c: Likewise.
25914 * sysdeps/m68k/m680x0/fpu/s_nearbyint_template.c: Likewise.
25915 * sysdeps/m68k/m680x0/fpu/s_remquo_template.c: Likewise.
25916 * sysdeps/m68k/m680x0/fpu/s_rint_template.c: Likewise.
25917 * sysdeps/m68k/m680x0/fpu/s_sin_template.c: Likewise.
25918 * sysdeps/m68k/m680x0/fpu/s_sincos_template.c: Likewise.
25919 * sysdeps/m68k/m680x0/fpu/s_tan_template.c: Likewise.
25920 * sysdeps/m68k/m680x0/fpu/s_tanh_template.c: Likewise.
25921 * sysdeps/m68k/m680x0/fpu/s_trunc_template.c: Likewise.
25922 * sysdeps/m68k/m680x0/fpu/s_atan.c: Reimplement to use
25923 s_atan_template.c.
25924 * sysdeps/m68k/m680x0/fpu/s_atanf.c: Likewise.
25925 * sysdeps/m68k/m680x0/fpu/s_atanl.c: Likewise.
25926 * sysdeps/m68k/m680x0/fpu/s_ceil.c: Reimplement to use
25927 s_ceil_template.c.
25928 * sysdeps/m68k/m680x0/fpu/s_ceilf.c: Likewise.
25929 * sysdeps/m68k/m680x0/fpu/s_ceill.c: Likewise.
25930 * sysdeps/m68k/m680x0/fpu/s_cos.c: Reimplement to use
25931 s_cos_template.c.
25932 * sysdeps/m68k/m680x0/fpu/s_cosf.c: Likewise.
25933 * sysdeps/m68k/m680x0/fpu/s_cosl.c: Likewise.
25934 * sysdeps/m68k/m680x0/fpu/s_expm1.c: Reimplement to use
25935 s_expm1_template.c.
25936 * sysdeps/m68k/m680x0/fpu/s_expm1f.c: Likewise.
25937 * sysdeps/m68k/m680x0/fpu/s_expm1l.c: Likewise.
25938 * sysdeps/m68k/m680x0/fpu/s_fabs.c: Reimplement to use
25939 s_fabs_template.c.
25940 * sysdeps/m68k/m680x0/fpu/s_fabsf.c: Likewise.
25941 * sysdeps/m68k/m680x0/fpu/s_fabsl.c: Likewise.
25942 * sysdeps/m68k/m680x0/fpu/s_floor.c: Reimplement to use
25943 s_floor_template.c.
25944 * sysdeps/m68k/m680x0/fpu/s_floorf.c: Likewise.
25945 * sysdeps/m68k/m680x0/fpu/s_floorl.c: Likewise.
25946 * sysdeps/m68k/m680x0/fpu/s_frexp.c: Reimplement to use
25947 s_frexp_template.c.
25948 * sysdeps/m68k/m680x0/fpu/s_frexpf.c: Likewise.
25949 * sysdeps/m68k/m680x0/fpu/s_lrint.c: Reimplement to use
25950 s_lrint_template.c.
25951 * sysdeps/m68k/m680x0/fpu/s_lrintf.c: Likewise.
25952 * sysdeps/m68k/m680x0/fpu/s_lrintl.c: Likewise.
25953 * sysdeps/m68k/m680x0/fpu/s_modf.c: Reimplement to use
25954 s_modf_template.c.
25955 * sysdeps/m68k/m680x0/fpu/s_modff.c: Likewise.
25956 * sysdeps/m68k/m680x0/fpu/s_modfl.c: Likewise.
25957 * sysdeps/m68k/m680x0/fpu/s_nearbyint.c: Reimplement to use
25958 s_nearbyint_template.c.
25959 * sysdeps/m68k/m680x0/fpu/s_nearbyintf.c: Likewise.
25960 * sysdeps/m68k/m680x0/fpu/s_nearbyintl.c: Likewise.
25961 * sysdeps/m68k/m680x0/fpu/s_remquo.c: Reimplement to use
25962 s_remquo_template.c.
25963 * sysdeps/m68k/m680x0/fpu/s_remquof.c: Likewise.
25964 * sysdeps/m68k/m680x0/fpu/s_remquol.c: Likewise.
25965 * sysdeps/m68k/m680x0/fpu/s_rint.c: Reimplement to use
25966 s_rint_template.c.
25967 * sysdeps/m68k/m680x0/fpu/s_rintf.c: Likewise.
25968 * sysdeps/m68k/m680x0/fpu/s_rintl.c: Likewise.
25969 * sysdeps/m68k/m680x0/fpu/s_sin.c: Reimplement to use
25970 s_sin_template.c.
25971 * sysdeps/m68k/m680x0/fpu/s_sinf.c: Likewise.
25972 * sysdeps/m68k/m680x0/fpu/s_sinl.c: Likewise.
25973 * sysdeps/m68k/m680x0/fpu/s_sincos.c: Reimplement to use
25974 s_sincos_template.c.
25975 * sysdeps/m68k/m680x0/fpu/s_sincosf.c: Likewise.
25976 * sysdeps/m68k/m680x0/fpu/s_sincosl.c: Likewise.
25977 * sysdeps/m68k/m680x0/fpu/s_tan.c: Reimplement to use
25978 s_tan_template.c.
25979 * sysdeps/m68k/m680x0/fpu/s_tanf.c: Likewise.
25980 * sysdeps/m68k/m680x0/fpu/s_tanl.c: Likewise.
25981 * sysdeps/m68k/m680x0/fpu/s_tanh.c: Reimplement to use
25982 s_tanh_template.c.
25983 * sysdeps/m68k/m680x0/fpu/s_tanhf.c: Likewise.
25984 * sysdeps/m68k/m680x0/fpu/s_tanhl.c: Likewise.
25985 * sysdeps/m68k/m680x0/fpu/s_trunc.c: Reimplement to use
25986 s_trunc_template.c.
25987 * sysdeps/m68k/m680x0/fpu/s_truncf.c: Likewise.
25988 * sysdeps/m68k/m680x0/fpu/s_truncl.c: Likewise.
25989 * sysdeps/m68k/m680x0/fpu/s_significand.c: Reimplement based on
25990 s_atan.c instead of including s_atan.c.
25991 * sysdeps/m68k/m680x0/fpu/s_significandf.c: Reimplement based on
25992 s_atanf.c instead of including s_atanf.c.
25993 * sysdeps/m68k/m680x0/fpu/s_significandl.c: Reimplement based on
25994 s_atanl.c instead of including s_atanl.c.
25995 * sysdeps/m68k/m680x0/fpu/s_log1p.c: Include s_significand.c
25996 instead of s_atan.c.
25997 * sysdeps/m68k/m680x0/fpu/s_log1pf.c: Include s_significandf.c
25998 instead of s_atanf.c.
25999 * sysdeps/m68k/m680x0/fpu/s_log1pl.c: Include s_significandl.c
26000 instead of s_atanl.c.
26001
26002 * scripts/update-copyrights: Do not handle intl/plural.c
26003 specially.
26004
26005 2017-11-30 Juro Bystricky <juro.bystricky@linux.intel.com>
26006
26007 [BZ #22432]
26008 * configure.ac (BISON): Require to be present.
26009 * configure: Regenerated.
26010 * intl/Makefile (generated): Add plural.c.
26011 [$(BISON) != no]: Make code unconditional.
26012 (plural.c): Change rule to $(objpfx)plural.c.
26013 ($(objpfx)plural.o): Depend on $(objpfx)plural.c.
26014 * intl/plural.c: Remove.
26015 * manual/install.texi (Tools for Compilation): Document bison as
26016 required.
26017 * INSTALL: Regenerated.
26018
26019 2017-11-30 Joseph Myers <joseph@codesourcery.com>
26020
26021 * sysdeps/m68k/m680x0/fpu/s_llrint.c: Include
26022 <libm-alias-double.h>.
26023 (llrint): Define using libm_alias_double.
26024 * sysdeps/m68k/m680x0/fpu/s_llrintf.c: Include
26025 <libm-alias-float.h>.
26026 (llrintf): Define using libm_alias_float.
26027 * sysdeps/m68k/m680x0/fpu/s_llrintl.c: Include
26028 <libm-alias-ldouble.h>.
26029 (llrintl): Define using libm_alias_ldouble.
26030
26031 * sysdeps/m68k/m680x0/fpu/s_ccosh_template.c (ccosh): Use
26032 declare_mgen_alias instead of weak_alias.
26033 * sysdeps/m68k/m680x0/fpu/s_cexp_template.c (cexp): Likewise.
26034 * sysdeps/m68k/m680x0/fpu/s_csin_template.c (csin): Likewise.
26035 * sysdeps/m68k/m680x0/fpu/s_csinh_template.c (csinh): Likewise.
26036
26037 2017-11-30 Adhemerval Zanella <adhemerval.zanella@linaro.org>
26038
26039 * sysdeps/sparc/sparc64/multiarch/Makefile (sysdep_routines):
26040 Add add_n-generic.
26041 * sysdeps/sparc/sparc64/multiarch/add_n-generic.S: New file.
26042 * sysdeps/sparc/sparc64/multiarch/add_n.c: Likewise.
26043 * sysdeps/sparc/sparc64/multiarch/add_n.S: Remove file.
26044
26045 * sysdeps/sparc/sparc64/multiarch/Makefile (sysdep_routines):
26046 Add submul_1-generic.
26047 * sysdeps/sparc/sparc64/multiarch/submul_1-generic.S: New file.
26048 * sysdeps/sparc/sparc64/multiarch/submul_1.c: Likewise.
26049 * sysdeps/sparc/sparc64/multiarch/submul_1.S: Remove file.
26050
26051 * sysdeps/sparc/sparc64/multiarch/Makefile (sysdep_routines):
26052 Add addmul_1-generic.
26053 * sysdeps/sparc/sparc64/multiarch/addmul_1-generic.S: New file.
26054 * sysdeps/sparc/sparc64/multiarch/addmul_1.c: Likewise.
26055 * sysdeps/sparc/sparc64/multiarch/addmul_1.S: Remove file.
26056
26057 * sysdeps/sparc/sparc64/multiarch/Makefile (sysdep_routines):
26058 Add sub_n-generic.
26059 * sysdeps/sparc/sparc64/multiarch/sub_n-generic.S: New file.
26060 * sysdeps/sparc/sparc64/multiarch/sub_n.c: Likewise.
26061 * sysdeps/sparc/sparc64/multiarch/sub_n.S: Remove file.
26062
26063 * sysdeps/sparc/sparc64/multiarch/Makefile (sysdep_routines):
26064 Add mul_1-generic.
26065 * sysdeps/sparc/sparc64/multiarch/mul_1-generic.S: New file.
26066 * sysdeps/sparc/sparc64/multiarch/mul_1.c: Likewise.
26067 * sysdeps/sparc/sparc64/multiarch/mul_1.S: Remove file.
26068
26069 2017-11-30 Mike FABIAN <mfabian@redhat.com>
26070
26071 According to CLDR, collation rules for Serbian and Bosnian
26072 should be the same as for Croatian.
26073
26074 [BZ #22534]
26075 * localedata/Makefile: Add sr_RS.UTF-8 and bs_BA.UTF-8 to test-input
26076 and to the list of locales to be built for testing.
26077 * localedata/bs_BA.UTF-8.in: New file (same as hr_HR.UTF-8.in).
26078 * localedata/sr_RS.UTF-8.in: New file (same as hr_HR.UTF-8.in).
26079 * localedata/locales/bs_BA (LC_COLLATE): Use “copy "hr_HR"”.
26080 * localedata/locales/sr_RS (LC_COLLATE): Use “copy "hr_HR"”.
26081
26082 2017-11-30 Mike FABIAN <mfabian@redhat.com>
26083
26084 * localedata/locales/hr_HR (LC_COLLATE): Fix collation
26085 to make test case pass.
26086 * localedata/hr_HR.UTF-8.in: Add more test strings.
26087
26088 2017-11-30 Mike FABIAN <mfabian@redhat.com>
26089
26090 * stdlib/tst-strfmon_l.c: Fix testcase. Needed because of [BZ #10580]
26091
26092 2017-11-30 Dragan Stanojević - Nevidljivi <invisible@hidden-city.net>
26093
26094 * localedata/Makefile: Add hr_HR.UTF-8 to test-input and to
26095 the list of locales to built for testing.
26096 * localedata/hr_HR.UTF-8.in: New file.
26097
26098 2017-11-30 Dragan Stanojević - Nevidljivi <invisible@hidden-city.net>
26099
26100 [BZ #10580]
26101 * localedata/locales/hr_HR (LC_COLLATE): Base collation rules on
26102 iso14651_t1.
26103 * localedata/locales/hr_HR (LC_TIME): Sync month and day names with
26104 CLDR (except use ligatures for the digraphs, CLDR does not use
26105 the ligatures), add first_workday, some fixes in the date and time
26106 formats.
26107 * localedata/locales/hr_HR (LC_CTYPE): Add transliteration rules
26108 for Đ and đ.
26109 * localedata/locales/hr_HR (LC_MONETARY): Change currency_symbol to
26110 lower case. p_cs_precedes and n_cs_precedes should be 0 instead of 1.
26111 Add int_p_cs_precedes and int_n_cs_precedes.
26112 * localedata/locales/hr_HR (LC_NUMERIC): Change thousands_sep to
26113 "<U202F>" (NARROW NO-BREAK SPACE) and grouping to 3;3 (Agrees with
26114 LC_MONETARY now).
26115 * localedata/locales/hr_HR (LC_TELEPHONE): Add tel_dom_fmt.
26116 * localedata/locales/hr_HR (LC_NAME): Add name_mr, name_mrs, and
26117 name_miss.
26118 * localedata/locales/hr_HR (LC_ADDRESS): Add country_post, country_isbn,
26119 and lang_lib. Change postal_fmt.
26120
26121 2017-11-30 H.J. Lu <hongjiu.lu@intel.com>
26122
26123 * debug/longjmp_chk.c: Include <setjmpP.h> instead of
26124 <setjmp.h>.
26125 * setjmp/longjmp.c: Include <setjmpP.h> instead of <setjmp.h>.
26126 (__libc_siglongjmp): Cast &env[0].__saved_mask to "sigset_t *".
26127 * setjmp/sigjmp.c: Include <setjmpP.h> instead of <setjmp.h>.
26128 (__sigjmp_save): Cast &env[0].__saved_mask to "sigset_t *".
26129 * sysdeps/generic/setjmpP.h: New file.
26130 * sysdeps/unix/sysv/linux/x86/jmp_buf-ssp.sym: Likewise.
26131 * sysdeps/unix/sysv/linux/x86/setjmpP.h: Likewise.
26132 * sysdeps/unix/sysv/linux/x86/tst-saved_mask-1.c: Likewise.
26133 * sysdeps/unix/sysv/linux/x86/Makefile (gen-as-const-headers):
26134 Add jmp_buf-ssp.sym.
26135 (tests): Add tst-saved_mask-1.
26136
26137 2017-11-30 Arjun Shankar <arjun@redhat.com>
26138
26139 [BZ #22375]
26140 CVE-2017-17426
26141 * malloc/malloc.c (__libc_malloc): Use checked_request2size
26142 instead of request2size.
26143
26144 2017-11-30 Joseph Myers <joseph@codesourcery.com>
26145
26146 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S
26147 (__lllrint): Remove alias.
26148 (lllrint): Likewise.
26149 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.S
26150 (__lllrintf): Likewise.
26151 (lllrintf): Likewise.
26152
26153 * sysdeps/sparc/sparc32/fpu/s_copysignf.S: Include
26154 <libm-alias-float.h>.
26155 (copysignf): Define using libm_alias_float.
26156 * sysdeps/sparc/sparc32/fpu/s_fabsf.S: Include
26157 <libm-alias-float.h>.
26158 (fabsf): Define using libm_alias_float.
26159 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf.S:
26160 Include <libm-alias-float.h>.
26161 (copysignf): Define using libm_alias_float.
26162 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf.S: Include
26163 <libm-alias-float.h>.
26164 (fabsf): Define using libm_alias_float.
26165 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdimf.c: Include
26166 <libm-alias-float.h>.
26167 (fdimf): Define using libm_alias_float.
26168 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaf.c: Include
26169 <libm-alias-float.h>.
26170 (fmaf): Define using libm_alias_float.
26171 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.S: Include
26172 <libm-alias-float.h>.
26173 (llrintf): Define using libm_alias_float.
26174 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyintf.S:
26175 Include <libm-alias-float.h>.
26176 (nearbyintf): Define using libm_alias_float.
26177 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf.S: Include
26178 <libm-alias-float.h>.
26179 (rintf): Define using libm_alias_float.
26180 * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrintf.S: Include
26181 <libm-alias-float.h>.
26182 (llrintf): Define using libm_alias_float.
26183 * sysdeps/sparc/sparc32/sparcv9/fpu/s_lrintf.S: Include
26184 <libm-alias-float.h>.
26185 (lrintf): Define using libm_alias_float.
26186 * sysdeps/sparc/sparc32/sparcv9/fpu/s_nearbyintf.S: Include
26187 <libm-alias-float.h>.
26188 (nearbyintf): Define using libm_alias_float.
26189 * sysdeps/sparc/sparc32/sparcv9/fpu/s_rintf.S: Include
26190 <libm-alias-float.h>.
26191 (rintf): Define using libm_alias_float.
26192 * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.c: Include
26193 <libm-alias-float.h>.
26194 (ceilf): Define using libm_alias_float.
26195 * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.c: Include
26196 <libm-alias-float.h>.
26197 (floorf): Define using libm_alias_float.
26198 * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaf.c: Include
26199 <libm-alias-float.h>.
26200 (fmaf): Define using libm_alias_float.
26201 * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf.c: Include
26202 <libm-alias-float.h>.
26203 (lrintf): Define using libm_alias_float.
26204 (llrintf): Likewise.
26205 * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyintf.c: Include
26206 <libm-alias-float.h>.
26207 (nearbyintf): Define using libm_alias_float.
26208 * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf.c: Include
26209 <libm-alias-float.h>.
26210 (rintf): Define using libm_alias_float.
26211 * sysdeps/sparc/sparc64/fpu/multiarch/s_truncf.c: Include
26212 <libm-alias-float.h>.
26213 (truncf): Define using libm_alias_float.
26214 * sysdeps/sparc/sparc64/fpu/s_copysignf.S: Include
26215 <libm-alias-float.h>.
26216 (copysignf): Define using libm_alias_float.
26217 * sysdeps/sparc/sparc64/fpu/s_fabsf.c: Include
26218 <libm-alias-float.h>.
26219 (fabsf): Define using libm_alias_float.
26220 * sysdeps/sparc/sparc64/fpu/s_lrintf.S: Include
26221 <libm-alias-float.h>.
26222 (lrintf): Define using libm_alias_float.
26223 (llrintf): Likewise.
26224 * sysdeps/sparc/sparc64/fpu/s_nearbyintf.S: Include
26225 <libm-alias-float.h>.
26226 (nearbyintf): Define using libm_alias_float.
26227 * sysdeps/sparc/sparc64/fpu/s_rintf.S: Include
26228 <libm-alias-float.h>.
26229 (rintf): Define using libm_alias_float.
26230
26231 2017-11-29 Joseph Myers <joseph@codesourcery.com>
26232
26233 * sysdeps/sparc/sparc32/fpu/s_copysign.S: Include
26234 <libm-alias-double.h>.
26235 (copysign): Define using libm_alias_double.
26236 * sysdeps/sparc/sparc32/fpu/s_fabs.S: Include
26237 <libm-alias-double.h>.
26238 (fabs): Define using libm_alias_double.
26239 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.S:
26240 Include <libm-alias-double.h>.
26241 (copysign): Define using libm_alias_double.
26242 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.S: Include
26243 <libm-alias-double.h>.
26244 (fabs): Define using libm_alias_double.
26245 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdim.c: Include
26246 <libm-alias-double.h>.
26247 (fdim): Define using libm_alias_double.
26248 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fma.c: Include
26249 <libm-alias-double.h>.
26250 (fma): Define using libm_alias_double.
26251 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S: Include
26252 <libm-alias-double.h>.
26253 (llrint): Define using libm_alias_double.
26254 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyint.S:
26255 Include <libm-alias-double.h>.
26256 (nearbyint): Define using libm_alias_double.
26257 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: Include
26258 <libm-alias-double.h>.
26259 (rint): Define using libm_alias_double.
26260 * sysdeps/sparc/sparc32/sparcv9/fpu/s_fabs.S: Include
26261 <libm-alias-double.h>.
26262 (fabs): Define using libm_alias_double.
26263 * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrint.S: Include
26264 <libm-alias-double.h>.
26265 (llrint): Define using libm_alias_double.
26266 * sysdeps/sparc/sparc32/sparcv9/fpu/s_nearbyint.S: Include
26267 <libm-alias-double.h>.
26268 (nearbyint): Define using libm_alias_double.
26269 * sysdeps/sparc/sparc32/sparcv9/fpu/s_rint.S: Include
26270 <libm-alias-double.h>.
26271 (rint): Define using libm_alias_double.
26272 * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.c: Include
26273 <libm-alias-double.h>.
26274 (ceil): Define using libm_alias_double.
26275 * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.c: Include
26276 <libm-alias-double.h>.
26277 (floor): Define using libm_alias_double.
26278 * sysdeps/sparc/sparc64/fpu/multiarch/s_fma.c: Include
26279 <libm-alias-double.h>.
26280 (fma): Define using libm_alias_double.
26281 * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint.c: Include
26282 <libm-alias-double.h>.
26283 (lrint): Define using libm_alias_double.
26284 (llrint): Likewise.
26285 * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyint.c: Include
26286 <libm-alias-double.h>.
26287 (nearbyint): Define using libm_alias_double.
26288 * sysdeps/sparc/sparc64/fpu/multiarch/s_rint.c: Include
26289 <libm-alias-double.h>.
26290 (rint): Define using libm_alias_double.
26291 * sysdeps/sparc/sparc64/fpu/multiarch/s_trunc.c: Include
26292 <libm-alias-double.h>.
26293 (trunc): Define using libm_alias_double.
26294 * sysdeps/sparc/sparc64/fpu/s_copysign.S: Include
26295 <libm-alias-double.h>.
26296 (copysign): Define using libm_alias_double.
26297 * sysdeps/sparc/sparc64/fpu/s_fabs.c: Include
26298 <libm-alias-double.h>.
26299 (fabs): Define using libm_alias_double.
26300 * sysdeps/sparc/sparc64/fpu/s_lrint.S: Include
26301 <libm-alias-double.h>.
26302 (lrint): Define using libm_alias_double.
26303 (llrint): Likewise.
26304 * sysdeps/sparc/sparc64/fpu/s_nearbyint.S: Include
26305 <libm-alias-double.h>.
26306 (nearbyint): Define using libm_alias_double.
26307 * sysdeps/sparc/sparc64/fpu/s_rint.S: Include
26308 <libm-alias-double.h>.
26309 (rint): Define using libm_alias_double.
26310
26311 [BZ #22229]
26312 * sysdeps/sparc/sparc32/sparcv9/fpu/s_fabs.S: Include
26313 <math_ldbl_opt.h>.
26314 (fabsl): Define as compat symbol at version GLIBC_2_0 for libm.
26315
26316 * scripts/build-many-glibcs.py (Context.add_all_configs): Add
26317 SPARC --disable-multi-arch glibc variants.
26318
26319 * sysdeps/x86_64/fpu/multiarch/e_exp2f.c: Include
26320 <libm-alias-float.h>.
26321 (exp2f): Define using libm_alias_float, or libm_alias_float_other
26322 if [SHARED].
26323 * sysdeps/x86_64/fpu/multiarch/e_expf.c: Include
26324 <libm-alias-float.h>.
26325 (exp2f): Define using libm_alias_float, or libm_alias_float_other
26326 if [SHARED].
26327 * sysdeps/x86_64/fpu/multiarch/e_log2f.c: Include
26328 <libm-alias-float.h>.
26329 (exp2f): Define using libm_alias_float, or libm_alias_float_other
26330 if [SHARED].
26331 * sysdeps/x86_64/fpu/multiarch/e_logf.c: Include
26332 <libm-alias-float.h>.
26333 (exp2f): Define using libm_alias_float, or libm_alias_float_other
26334 if [SHARED].
26335 * sysdeps/x86_64/fpu/multiarch/e_powf.c: Include
26336 <libm-alias-float.h>.
26337 (exp2f): Define using libm_alias_float, or libm_alias_float_other
26338 if [SHARED].
26339 * sysdeps/x86_64/fpu/multiarch/s_ceilf.c: Include
26340 <libm-alias-float.h>.
26341 (ceilf): Define using libm_alias_float.
26342 * sysdeps/x86_64/fpu/multiarch/s_floorf.c: Include
26343 <libm-alias-float.h>.
26344 (floorf): Define using libm_alias_float.
26345 * sysdeps/x86_64/fpu/multiarch/s_fmaf.c: Include
26346 <libm-alias-float.h>.
26347 (fmaf): Define using libm_alias_float.
26348 * sysdeps/x86_64/fpu/multiarch/s_nearbyintf.c: Include
26349 <libm-alias-float.h>.
26350 (nearbyintf): Define using libm_alias_float.
26351 * sysdeps/x86_64/fpu/multiarch/s_rintf.c: Include
26352 <libm-alias-float.h>.
26353 (rintf): Define using libm_alias_float.
26354 * sysdeps/x86_64/fpu/multiarch/s_truncf.c: Include
26355 <libm-alias-float.h>.
26356 (truncf): Define using libm_alias_float.
26357 * sysdeps/x86_64/fpu/s_copysignf.S: Include <libm-alias-float.h>.
26358 (copysignf): Define using libm_alias_float.
26359 * sysdeps/x86_64/fpu/s_cosf.S: Include <libm-alias-float.h>.
26360 (cosf): Define using libm_alias_float.
26361 * sysdeps/x86_64/fpu/s_fabsf.c: Include <libm-alias-float.h>.
26362 (fabsf): Define using libm_alias_float.
26363 * sysdeps/x86_64/fpu/s_fmaxf.S: Include <libm-alias-float.h>.
26364 (fmaxf): Define using libm_alias_float.
26365 * sysdeps/x86_64/fpu/s_fminf.S: Include <libm-alias-float.h>.
26366 (fminf): Define using libm_alias_float.
26367 * sysdeps/x86_64/fpu/s_llrintf.S: Include <libm-alias-float.h>.
26368 (llrintf): Define using libm_alias_float.
26369 [!__ILP32__] (lrintf): Likewise.
26370 * sysdeps/x86_64/fpu/s_sincosf.S: Include <libm-alias-float.h>.
26371 (sincosf): Define using libm_alias_float.
26372 * sysdeps/x86_64/fpu/s_sinf.S: Include <libm-alias-float.h>.
26373 (sinf): Define using libm_alias_float.
26374 * sysdeps/x86_64/x32/fpu/s_lrintf.S: Include <libm-alias-float.h>.
26375 (lrintf): Define using libm_alias_float.
26376
26377 * sysdeps/x86_64/fpu/multiarch/s_atan.c: Include
26378 <libm-alias-double.h>.
26379 (atan): Define using libm_alias_double.
26380 * sysdeps/x86_64/fpu/multiarch/s_ceil.c: Include
26381 <libm-alias-double.h>.
26382 (ceil): Define using libm_alias_double.
26383 * sysdeps/x86_64/fpu/multiarch/s_floor.c: Include
26384 <libm-alias-double.h>.
26385 (floor): Define using libm_alias_double.
26386 * sysdeps/x86_64/fpu/multiarch/s_fma.c: Include
26387 <libm-alias-double.h>.
26388 (fma): Define using libm_alias_double.
26389 * sysdeps/x86_64/fpu/multiarch/s_nearbyint.c: Include
26390 <libm-alias-double.h>.
26391 (nearbyint): Define using libm_alias_double.
26392 * sysdeps/x86_64/fpu/multiarch/s_rint.c: Include
26393 <libm-alias-double.h>.
26394 (rint): Define using libm_alias_double.
26395 * sysdeps/x86_64/fpu/multiarch/s_sin.c: Include
26396 <libm-alias-double.h>.
26397 (sin): Define using libm_alias_double.
26398 (cos): Likewise.
26399 * sysdeps/x86_64/fpu/multiarch/s_tan.c: Include
26400 <libm-alias-double.h>.
26401 (tan): Define using libm_alias_double.
26402 * sysdeps/x86_64/fpu/multiarch/s_trunc.c: Include
26403 <libm-alias-double.h>.
26404 (trunc): Define using libm_alias_double.
26405 * sysdeps/x86_64/fpu/s_copysign.S: Include <libm-alias-double.h>.
26406 (copysign): Define using libm_alias_double.
26407 * sysdeps/x86_64/fpu/s_fabs.c: Include <libm-alias-double.h>.
26408 (fabs): Define using libm_alias_double.
26409 * sysdeps/x86_64/fpu/s_fmax.S: Include <libm-alias-double.h>.
26410 (fmax): Define using libm_alias_double.
26411 * sysdeps/x86_64/fpu/s_fmin.S: Include <libm-alias-double.h>.
26412 (fmin): Define using libm_alias_double.
26413 * sysdeps/x86_64/fpu/s_llrint.S: Include <libm-alias-double.h>.
26414 (llrint): Define using libm_alias_double.
26415 [!__ILP32__] (lrint): Likewise.
26416 * sysdeps/x86_64/x32/fpu/s_lrint.S: Include <libm-alias-double.h>.
26417 (lrint): Define using libm_alias_double.
26418
26419 2017-11-29 Adhemerval Zanella <adhemerval.zanella@linaro.org>
26420
26421 * sysdeps/sparc/sparc64/fpu/multiarch/Makefile
26422 (libm-sysdep_routines): Add s_rintf-generic and s_rint-generic
26423 objects.
26424 * sysdeps/sparc/sparc64/fpu/multiarch/s_rint-generic.S: New file.
26425 * sysdeps/sparc/sparc64/fpu/multiarch/s_rint.c: Likewise.
26426 * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf-generic.S: Likewise.
26427 * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf.c: Likewise.
26428 * sysdeps/sparc/sparc64/fpu/multiarch/s_rint.S: Remove file.
26429 * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf.S: Likewise.
26430
26431 * sysdeps/sparc/sparc64/fpu/multiarch/Makefile
26432 (libm-sysdep_routines): Add s_lrint-generic and s_lrintf-generic
26433 objects.
26434 * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint-generic.S: New file.
26435 * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint.c: Likewise.
26436 * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf-generic.S: Likewise.
26437 * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf.c: Likewise.
26438 * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint.S: Remove file.
26439 * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf.S: Likewise.
26440
26441 * sysdeps/sparc/sparc64/fpu/multiarch/Makefile
26442 (libm-sysdep_routines): Add s_nearbyint-generic and
26443 s_nearbyintf-generic objects.
26444 * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyint-generic.S: New file.
26445 * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyint.c: Likewise.
26446 * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyintf-generic.S: Likewise.
26447 * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyintf.c: Likewise.
26448 * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyint.S: Remove file.
26449 * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyintf.S: Likewise.
26450
26451 * sysdeps/sparc/sparc64/fpu/multiarch/Makefile (sysdeps_calls):
26452 Add s_finitef-generic and s_finite-generic objects.
26453 * sysdeps/sparc/sparc64/fpu/multiarch/s_finite-generic.S: New file.
26454 * sysdeps/sparc/sparc64/fpu/multiarch/s_finite.c: Likewise.
26455 * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef-generic.S: Likewise.
26456 * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef.c: Likewise.
26457 * sysdeps/sparc/sparc64/fpu/multiarch/s_finite.S: Remove file.
26458 * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef.S: Remove file.
26459
26460 * sysdeps/sparc/sparc64/fpu/multiarch/Makefile (sysdeps_calls):
26461 Add s_isinff-generic and s_isinf-generic objects.
26462 * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf-generic.S: New file.
26463 * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf.c: Likewise.
26464 * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff-generic.S: Likewise.
26465 * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff.c: Likewise.
26466 * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf.S: Remove file.
26467 * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff.S: Likewise.
26468
26469 * sysdeps/sparc/sparc64/fpu/multiarch/Makefile (sysdeps_calls):
26470 Add s_isnanf-generic and s_isnan-generic objects.
26471 * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan-generic.S: New file.
26472 * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf-generic.S: Likewise.
26473 * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan.c: Likewise.
26474 * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf.c: Likewise.
26475 * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan.S: Remove file.
26476 * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf.S: Likewise.
26477
26478 * sysdeps/sparc/sparc-ifunc.h (sparc_libm_ifunc_redirected): New
26479 macro.
26480 * sysdeps/sparc/sparc64/fpu/multiarch/Makefile (sysdep_calls): New
26481 rule.
26482 (sysdep_routines): Use sysdep_calls as base.
26483 (libm-sysdep_routines): Add generic rule for symbols shared with
26484 libc. Add s_signbit-generic and s_signbitf-generic objects.
26485 * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit.c: New file.
26486 * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf.c: Likewise.
26487 * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit-generic.S: Likewise.
26488 * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf-generic.S: Likewise.
26489 * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit.S: Remove file.
26490 * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf.S: Likewise.
26491
26492 2017-11-29 Joseph Myers <joseph@codesourcery.com>
26493
26494 * sysdeps/ia64/fpu/libm-symbols.h: Include <libm-alias-float.h>.
26495 * sysdeps/ia64/fpu/e_acosf.S (acosf): Use libm_alias_float_other.
26496 * sysdeps/ia64/fpu/e_acoshf.S (acoshf): Likewise.
26497 * sysdeps/ia64/fpu/e_asinf.S (asinf): Likewise.
26498 * sysdeps/ia64/fpu/e_atan2f.S (atan2f): Likewise.
26499 * sysdeps/ia64/fpu/e_atanhf.S (atanhf): Likewise.
26500 * sysdeps/ia64/fpu/e_coshf.S (coshf): Likewise.
26501 * sysdeps/ia64/fpu/e_exp10f.S (exp10f): Likewise.
26502 * sysdeps/ia64/fpu/e_exp2f.S (exp2f): Likewise.
26503 * sysdeps/ia64/fpu/e_expf.S (expf): Likewise.
26504 * sysdeps/ia64/fpu/e_fmodf.S (fmodf): Likewise.
26505 * sysdeps/ia64/fpu/e_hypotf.S (hypotf): Likewise.
26506 * sysdeps/ia64/fpu/e_lgammaf_r.c (lgammaf_r): Define using
26507 libm_alias_float_r.
26508 * sysdeps/ia64/fpu/e_log2f.S (log2f): Use libm_alias_float_other.
26509 * sysdeps/ia64/fpu/e_logf.S (log10f): Likewise.
26510 (logf): Likewise.
26511 * sysdeps/ia64/fpu/e_powf.S (powf): Likewise.
26512 * sysdeps/ia64/fpu/e_remainderf.S (remainderf): Likewise.
26513 * sysdeps/ia64/fpu/e_sinhf.S (sinhf): Likewise.
26514 * sysdeps/ia64/fpu/e_sqrtf.S (sqrtf): Likewise.
26515 * sysdeps/ia64/fpu/libm_sincosf.S (sincosf): Likewise.
26516 * sysdeps/ia64/fpu/s_asinhf.S (asinhf): Likewise.
26517 * sysdeps/ia64/fpu/s_atanf.S (atanf): Likewise.
26518 * sysdeps/ia64/fpu/s_cbrtf.S (cbrtf): Likewise.
26519 * sysdeps/ia64/fpu/s_ceilf.S (ceilf): Likewise.
26520 * sysdeps/ia64/fpu/s_copysign.S (copysignf): Define using
26521 libm_alias_float.
26522 * sysdeps/ia64/fpu/s_cosf.S (sinf): Use libm_alias_float_other.
26523 (cosf): Likewise.
26524 * sysdeps/ia64/fpu/s_erfcf.S (erfcf): Likewise.
26525 * sysdeps/ia64/fpu/s_erff.S (erff): Likewise.
26526 * sysdeps/ia64/fpu/s_expm1f.S (expm1f): Likewise.
26527 * sysdeps/ia64/fpu/s_fabsf.S (fabsf): Likewise.
26528 * sysdeps/ia64/fpu/s_fdimf.S (fdimf): Likewise.
26529 * sysdeps/ia64/fpu/s_floorf.S (floorf): Likewise.
26530 * sysdeps/ia64/fpu/s_fmaf.S (fmaf): Likewise.
26531 * sysdeps/ia64/fpu/s_fmaxf.S (fmaxf): Likewise.
26532 * sysdeps/ia64/fpu/s_frexpf.c (frexpf): Likewise.
26533 * sysdeps/ia64/fpu/s_ldexpf.c (ldexpf): Likewise.
26534 * sysdeps/ia64/fpu/s_log1pf.S (log1pf): Likewise.
26535 * sysdeps/ia64/fpu/s_logbf.S (logbf): Likewise.
26536 * sysdeps/ia64/fpu/s_modff.S (modff): Likewise.
26537 * sysdeps/ia64/fpu/s_nearbyintf.S (nearbyintf): Likewise.
26538 * sysdeps/ia64/fpu/s_nextafterf.S (nextafterf): Likewise.
26539 * sysdeps/ia64/fpu/s_rintf.S (rintf): Likewise.
26540 * sysdeps/ia64/fpu/s_roundf.S (roundf): Likewise.
26541 * sysdeps/ia64/fpu/s_scalblnf.c (scalblnf): Likewise.
26542 * sysdeps/ia64/fpu/s_scalbnf.c (scalbnf): Define using
26543 libm_alias_float.
26544 * sysdeps/ia64/fpu/s_tanf.S (tanf): Use libm_alias_float_other.
26545 * sysdeps/ia64/fpu/s_tanhf.S (tanhf): Likewise.
26546 * sysdeps/ia64/fpu/s_truncf.S (truncf): Likewise.
26547 * sysdeps/ia64/fpu/w_lgammaf_main.c
26548 [BUILD_LGAMMA && !USE_AS_COMPAT] (lgammaf): Likewise.
26549 * sysdeps/ia64/fpu/w_tgammaf_compat.S (tgammaf): Likewise.
26550
26551 2017-11-28 Mike FABIAN <mfabian@redhat.com>
26552 Alexandre Oliva <aoliva@redhat.com>
26553
26554 [BZ #17750]
26555 * Makefile: add fr_CA.UTF-8 to test-input and LOCALES.
26556 * localedata/fr_CA.UTF-8.in: New file with test data for backward
26557 accents sorting.
26558 * localedata/fr_FR.UTF-8.in: Fix test data for forward accents
26559 sorting.
26560 * localedata/locales/cs_CZ (LC_COLLATE): Remove “define DIACRIT_FORWARD”
26561 * localedata/locales/de_DE (LC_COLLATE): Likewise.
26562 * localedata/locales/hu_HU (LC_COLLATE): Likewise.
26563 * localedata/locales/lb_LU (LC_COLLATE): Likewise.
26564 * localedata/locales/yuw_PG (LC_COLLATE): Likewise.
26565 * localedata/locales/fr_CA (LC_COLLATE): Add “define DIACRIT_BACKWARD”
26566 * localedata/locales/iso14651_t1_common: Use “ifdef DIACRIT_FORWARD”
26567 instead of “ifdef DIACRIT_BACKWARD”.
26568
26569 2017-11-29 Adhemerval Zanella <adhemerval.zanella@linaro.org>
26570
26571 * config.h.in (HAVE_AS_VIS3_SUPPORT): Remove check for VIS3 support.
26572 * sysdeps/sparc/configure.ac (HAVE_AS_VIS3_SUPPORT): Likewise.
26573 * sysdeps//sparc/sparc32/sparcv9/fpu/multiarch/s_fdim.c: Likewise.
26574 * sysdeps//sparc/sparc32/sparcv9/fpu/multiarch/s_fdimf.c: Likewise.
26575 * sysdeps//sparc/sparc32/sparcv9/fpu/multiarch/s_fma.c: Likewise.
26576 * sysdeps//sparc/sparc32/sparcv9/fpu/multiarch/s_fmaf.c: Likewise.
26577 * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.c: Likewise.
26578 * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.c: Likewise.
26579 * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.c: Likewise.
26580 * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.c: Likewise.
26581 * sysdeps/sparc/sparc64/fpu/multiarch/s_fma.c: Likewise.
26582 * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaf.c: Likewise.
26583 * sysdeps/sparc/sparc64/fpu/multiarch/s_trunc.c: Likewise.
26584 * sysdeps/sparc/sparc64/fpu/multiarch/s_truncf.c: Likewise.
26585 * sysdeps/sparc/sparc-ifunc.h [!HAVE_AS_VIS3_SUPPORT]
26586 (SPARC_ASM_VIS3_IFUNC, SPARC_ASM_VIS3_VIS2_IFUNC): Remove macros.
26587 * sysdeps/sparc/sparc32/sparcv9/Makefile [$(have-as-vis3) != yes]
26588 (ASFLAGS.o, ASFLAGS-.os, ASFLAGS-.op, ASFLAGS-.oS): Remove rules.
26589 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile
26590 ($(have-as-vis3) == yes): Remove conditional.
26591 * sysdeps/sparc/sparc64/Makefile (($(have-as-vis3) == yes)):
26592 Likewise.
26593 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdim-generic.c: New
26594 file.
26595 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdimf-generic.c: New
26596 file.
26597 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fma-generic.c: New
26598 file.
26599 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaf-generic.c: New
26600 file.
26601 * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil-generic.c: New file.
26602 * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf-generic.c: New file.
26603 * sysdeps/sparc/sparc64/fpu/multiarch/s_floor-generic.c: New file.
26604 * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf-generic.c: New file.
26605 * sysdeps/sparc/sparc64/fpu/multiarch/s_fma-generic.c: New file.
26606 * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaf-generic.c: New file.
26607 * sysdeps/sparc/sparc64/fpu/multiarch/s_trunc-generic.c: New file.
26608 * sysdeps/sparc/sparc64/fpu/multiarch/s_truncf-generic.c: New file.
26609
26610 2017-11-29 Joseph Myers <joseph@codesourcery.com>
26611
26612 * sysdeps/ia64/fpu/libm-symbols.h: Include <libm-alias-double.h>.
26613 * sysdeps/ia64/fpu/e_acos.S (acos): Use libm_alias_double_other.
26614 * sysdeps/ia64/fpu/e_acosh.S (acosh): Likewise.
26615 * sysdeps/ia64/fpu/e_asin.S (asin): Likewise.
26616 * sysdeps/ia64/fpu/e_atan2.S (atan2): Likewise.
26617 * sysdeps/ia64/fpu/e_atanh.S (atanh): Likewise.
26618 * sysdeps/ia64/fpu/e_cosh.S (cosh): Likewise.
26619 * sysdeps/ia64/fpu/e_exp.S (exp): Likewise.
26620 * sysdeps/ia64/fpu/e_exp10.S (exp10): Likewise.
26621 * sysdeps/ia64/fpu/e_exp2.S (exp2): Likewise.
26622 * sysdeps/ia64/fpu/e_fmod.S (fmod): Likewise.
26623 * sysdeps/ia64/fpu/e_hypot.S (hypot): Likewise.
26624 * sysdeps/ia64/fpu/e_lgamma_r.c (lgamma_r): Define using
26625 libm_alias_double_r.
26626 * sysdeps/ia64/fpu/e_log.S (log10): Use libm_alias_double_other.
26627 (log): Likewise.
26628 * sysdeps/ia64/fpu/e_log2.S (log2): Likewise.
26629 * sysdeps/ia64/fpu/e_pow.S (pow): Likewise.
26630 * sysdeps/ia64/fpu/e_remainder.S (remainder): Likewise.
26631 * sysdeps/ia64/fpu/e_sinh.S (sinh): Likewise.
26632 * sysdeps/ia64/fpu/e_sqrt.S (sqrt): Likewise.
26633 * sysdeps/ia64/fpu/libm_sincos.S (sincos): Likewise.
26634 * sysdeps/ia64/fpu/s_asinh.S (asinh): Likewise.
26635 * sysdeps/ia64/fpu/s_atan.S (atan): Likewise.
26636 * sysdeps/ia64/fpu/s_cbrt.S (cbrt): Likewise.
26637 * sysdeps/ia64/fpu/s_ceil.S (ceil): Likewise.
26638 * sysdeps/ia64/fpu/s_copysign.S (copysign): Define using
26639 libm_alias_double.
26640 * sysdeps/ia64/fpu/s_cos.S (sin): Use libm_alias_double_other.
26641 (cos): Likewise.
26642 * sysdeps/ia64/fpu/s_erf.S (erf): Likewise.
26643 * sysdeps/ia64/fpu/s_erfc.S (erfc): Likewise.
26644 * sysdeps/ia64/fpu/s_expm1.S (expm1): Likewise.
26645 * sysdeps/ia64/fpu/s_fabs.S (fabs): Likewise.
26646 * sysdeps/ia64/fpu/s_fdim.S (fdim): Likewise.
26647 * sysdeps/ia64/fpu/s_floor.S (floor): Likewise.
26648 * sysdeps/ia64/fpu/s_fma.S (fma): Likewise.
26649 * sysdeps/ia64/fpu/s_fmax.S (fmax): Likewise.
26650 * sysdeps/ia64/fpu/s_frexp.c (frexp): Likewise.
26651 * sysdeps/ia64/fpu/s_ldexp.c (ldexp): Likewise.
26652 * sysdeps/ia64/fpu/s_log1p.S (log1p): Likewise.
26653 * sysdeps/ia64/fpu/s_logb.S (logb): Likewise.
26654 * sysdeps/ia64/fpu/s_modf.S (modf): Likewise.
26655 * sysdeps/ia64/fpu/s_nearbyint.S (nearbyint): Likewise.
26656 * sysdeps/ia64/fpu/s_nextafter.S (nextafter): Likewise.
26657 * sysdeps/ia64/fpu/s_rint.S (rint): Likewise.
26658 * sysdeps/ia64/fpu/s_round.S (round): Likewise.
26659 * sysdeps/ia64/fpu/s_scalbn.c (scalbn): Define using
26660 libm_alias_double.
26661 * sysdeps/ia64/fpu/s_tan.S (tan): Use libm_alias_double_other.
26662 * sysdeps/ia64/fpu/s_tanh.S (tanh): Likewise.
26663 * sysdeps/ia64/fpu/s_trunc.S (trunc): Likewise.
26664 * sysdeps/ia64/fpu/w_lgamma_main.c
26665 [BUILD_LGAMMA && !USE_AS_COMPAT] (lgamma): Likewise.
26666 * sysdeps/ia64/fpu/w_tgamma_compat.S (tgamma): Likewise.
26667
26668 2017-11-28 John David Anglin <danglin@gcc.gnu.org>
26669
26670 * sysdeps/hppa/start.S (_start): Check PIC instead of SHARED. Load
26671 address of $global$ into %dp register earlier. Use pc-relative
26672 instruction sequence for PIC case.
26673
26674 2017-11-28 Joseph Myers <joseph@codesourcery.com>
26675
26676 * sysdeps/i386/fpu/s_asinhf.S: Include <libm-alias-float.h>.
26677 (asinhf): Define using libm_alias_float.
26678 * sysdeps/i386/fpu/s_atanf.S: Include <libm-alias-float.h>.
26679 (atanf): Define using libm_alias_float.
26680 * sysdeps/i386/fpu/s_cbrtf.S: Include <libm-alias-float.h>.
26681 (cbrtf): Define using libm_alias_float.
26682 * sysdeps/i386/fpu/s_ceilf.S: Include <libm-alias-float.h>.
26683 (ceilf): Define using libm_alias_float.
26684 * sysdeps/i386/fpu/s_copysignf.S: Include <libm-alias-float.h>.
26685 (copysignf): Define using libm_alias_float.
26686 * sysdeps/i386/fpu/s_expm1f.S: Include <libm-alias-float.h>.
26687 (expm1f): Define using libm_alias_float.
26688 * sysdeps/i386/fpu/s_fabsf.S: Include <libm-alias-float.h>.
26689 (fabsf): Define using libm_alias_float.
26690 * sysdeps/i386/fpu/s_floorf.S: Include <libm-alias-float.h>.
26691 (floorf): Define using libm_alias_float.
26692 * sysdeps/i386/fpu/s_fmaxf.S: Include <libm-alias-float.h>.
26693 (fmaxf): Define using libm_alias_float.
26694 * sysdeps/i386/fpu/s_fminf.S: Include <libm-alias-float.h>.
26695 (fminf): Define using libm_alias_float.
26696 * sysdeps/i386/fpu/s_frexpf.S: Include <libm-alias-float.h>.
26697 (frexpf): Define using libm_alias_float.
26698 * sysdeps/i386/fpu/s_llrintf.S: Include <libm-alias-float.h>.
26699 (llrintf): Define using libm_alias_float.
26700 * sysdeps/i386/fpu/s_logbf.S: Include <libm-alias-float.h>.
26701 (logbf): Define using libm_alias_float.
26702 * sysdeps/i386/fpu/s_lrintf.S: Include <libm-alias-float.h>.
26703 (lrintf): Define using libm_alias_float.
26704 * sysdeps/i386/fpu/s_nearbyintf.S: Include <libm-alias-float.h>.
26705 (nearbyintf): Define using libm_alias_float.
26706 * sysdeps/i386/fpu/s_remquof.S: Include <libm-alias-float.h>.
26707 (remquof): Define using libm_alias_float.
26708 * sysdeps/i386/fpu/s_rintf.S: Include <libm-alias-float.h>.
26709 (rintf): Define using libm_alias_float.
26710 * sysdeps/i386/fpu/s_truncf.S: Include <libm-alias-float.h>.
26711 (truncf): Define using libm_alias_float.
26712 * sysdeps/i386/i686/fpu/multiarch/e_exp2f.c: Include
26713 <libm-alias-float.h>.
26714 (exp2f): Define using libm_alias_float, or libm_alias_float_other
26715 if [SHARED].
26716 * sysdeps/i386/i686/fpu/multiarch/e_expf.c: Include
26717 <libm-alias-float.h>.
26718 (expf): Define using libm_alias_float, or libm_alias_float_other
26719 if [SHARED].
26720 * sysdeps/i386/i686/fpu/multiarch/e_log2f.c: Include
26721 <libm-alias-float.h>.
26722 (log2f): Define using libm_alias_float, or libm_alias_float_other
26723 if [SHARED].
26724 * sysdeps/i386/i686/fpu/multiarch/e_logf.c: Include
26725 <libm-alias-float.h>.
26726 (logf): Define using libm_alias_float, or libm_alias_float_other
26727 if [SHARED].
26728 * sysdeps/i386/i686/fpu/multiarch/e_powf.c: Include
26729 <libm-alias-float.h>.
26730 (powf): Define using libm_alias_float, or libm_alias_float_other
26731 if [SHARED].
26732 * sysdeps/i386/i686/fpu/multiarch/s_cosf.c: Include
26733 <libm-alias-float.h>.
26734 (cosf): Define using libm_alias_float.
26735 * sysdeps/i386/i686/fpu/multiarch/s_sincosf.c: Include
26736 <libm-alias-float.h>.
26737 (sincosf): Define using libm_alias_float.
26738 * sysdeps/i386/i686/fpu/multiarch/s_sinf.c: Include
26739 <libm-alias-float.h>.
26740 (sinf): Define using libm_alias_float.
26741 * sysdeps/i386/i686/fpu/s_fmaxf.S: Include <libm-alias-float.h>.
26742 (fmaxf): Define using libm_alias_float.
26743 * sysdeps/i386/i686/fpu/s_fminf.S: Include <libm-alias-float.h>.
26744 (fminf): Define using libm_alias_float.
26745 * sysdeps/i386/i686/multiarch/s_fmaf.c: Include
26746 <libm-alias-float.h>.
26747 (fmaf): Define using libm_alias_float.
26748
26749 * sysdeps/i386/fpu/s_asinh.S: Include <libm-alias-double.h>.
26750 (asinh): Define using libm_alias_double.
26751 * sysdeps/i386/fpu/s_atan.S: Include <libm-alias-double.h>.
26752 (atan): Define using libm_alias_double.
26753 * sysdeps/i386/fpu/s_cbrt.S: Include <libm-alias-double.h>.
26754 (cbrt): Define using libm_alias_double.
26755 * sysdeps/i386/fpu/s_ceil.S: Include <libm-alias-double.h>.
26756 (ceil): Define using libm_alias_double.
26757 * sysdeps/i386/fpu/s_copysign.S: Include <libm-alias-double.h>.
26758 (copysign): Define using libm_alias_double.
26759 * sysdeps/i386/fpu/s_expm1.S: Include <libm-alias-double.h>.
26760 (expm1): Define using libm_alias_double.
26761 * sysdeps/i386/fpu/s_fabs.S: Include <libm-alias-double.h>.
26762 (fabs): Define using libm_alias_double.
26763 * sysdeps/i386/fpu/s_fdim.c: Include <libm-alias-double.h>.
26764 (fdim): Define using libm_alias_double.
26765 * sysdeps/i386/fpu/s_floor.S: Include <libm-alias-double.h>.
26766 (floor): Define using libm_alias_double.
26767 * sysdeps/i386/fpu/s_fmax.S: Include <libm-alias-double.h>.
26768 (fmax): Define using libm_alias_double.
26769 * sysdeps/i386/fpu/s_fmin.S: Include <libm-alias-double.h>.
26770 (fmin): Define using libm_alias_double.
26771 * sysdeps/i386/fpu/s_frexp.S: Include <libm-alias-double.h>.
26772 (frexp): Define using libm_alias_double.
26773 * sysdeps/i386/fpu/s_llrint.S: Include <libm-alias-double.h>.
26774 (llrint): Define using libm_alias_double.
26775 * sysdeps/i386/fpu/s_logb.S: Include <libm-alias-double.h>.
26776 (logb): Define using libm_alias_double.
26777 * sysdeps/i386/fpu/s_lrint.S: Include <libm-alias-double.h>.
26778 (lrint): Define using libm_alias_double.
26779 * sysdeps/i386/fpu/s_nearbyint.S: Include <libm-alias-double.h>.
26780 (nearbyint): Define using libm_alias_double.
26781 * sysdeps/i386/fpu/s_remquo.S: Include <libm-alias-double.h>.
26782 (remquo): Define using libm_alias_double.
26783 * sysdeps/i386/fpu/s_rint.S: Include <libm-alias-double.h>.
26784 (rint): Define using libm_alias_double.
26785 * sysdeps/i386/fpu/s_trunc.S: Include <libm-alias-double.h>.
26786 (trunc): Define using libm_alias_double.
26787 * sysdeps/i386/i686/fpu/s_fmax.S: Include <libm-alias-double.h>.
26788 (fmax): Define using libm_alias_double.
26789 * sysdeps/i386/i686/fpu/s_fmin.S: Include <libm-alias-double.h>.
26790 (fmin): Define using libm_alias_double.
26791 * sysdeps/i386/i686/multiarch/s_fma.c: Include <libm-alias-double.h>.
26792 (fma): Define using libm_alias_double.
26793
26794 2017-11-28 H.J. Lu <hongjiu.lu@intel.com>
26795
26796 [BZ #22370]
26797 * elf/dl-hwcaps.c (ROUND): Removed.
26798 (_dl_important_hwcaps): Replace ROUND with ELF_NOTE_DESC_OFFSET
26799 and ELF_NOTE_NEXT_OFFSET.
26800 * elf/dl-load.c (ROUND): Removed.
26801 (open_verify): Replace ROUND with ELF_NOTE_NEXT_OFFSET.
26802 * elf/readelflib.c (ROUND): Removed.
26803 (process_elf_file): Replace ROUND with ELF_NOTE_NEXT_OFFSET.
26804 * include/elf.h [!_ISOMAC]: Include <libc-pointer-arith.h>.
26805 [!_ISOMAC] (ELF_NOTE_DESC_OFFSET): New.
26806 [!_ISOMAC] (ELF_NOTE_NEXT_OFFSET): Likewise.
26807
26808 2017-11-28 Joseph Myers <joseph@codesourcery.com>
26809
26810 * sysdeps/s390/fpu/s_fmaf.c: Include <libm-alias-float.h>.
26811 [!__fmaf] (fmaf): Define using libm_alias_float.
26812
26813 * sysdeps/s390/fpu/s_fma.c: Include <libm-alias-double.h>.
26814 [!__fma] (fma): Define using libm_alias_double.
26815 * sysdeps/unix/sysv/linux/s390/fpu/s_fma.c: Remove.
26816
26817 2017-11-28 Mike FABIAN <mfabian@redhat.com>
26818
26819 [BZ #22336]
26820 * localedata/locales/cs_CZ (LC_COLLATE): Use “copy "iso14651_t1"”
26821 and implement the collation rules for cs from CLDR on top of that.
26822 * Makefile: Add cs_CZ.UTF-8 to test-input.
26823 * cs_CZ.UTF-8.in: New file with test data to test the Czech sorting.
26824
26825 2017-11-28 Siddhesh Poyarekar <siddhesh@sourceware.org>
26826
26827 * localedata/Makefile (LOCALES): Remove duplicate cs_CZ.UTF-8.
26828
26829 2017-11-28 Victor Rodriguez <victor.rodriguez.bahena@intel.com>
26830 Icarus Sparry <icarus.w.sparry@intel.com>
26831
26832 * benchtests/Makefile:Add BENCHSET to allow subsets of
26833 benchmarks to be run.
26834 * benchtests/README: Add documentation for: Running subsets of
26835 benchmarks.
26836
26837 2017-11-28 Victor Rodriguez <victor.rodriguez.bahena@intel.com>
26838
26839 * benchtests/scripts/benchout.schema.json: Fix regex to accept a wider
26840 range of tests names.
26841
26842 * benchtests/scripts/benchout.schema.json: Add throughput as accepted
26843 result from property and remove "max", min" and "mean" from
26844 required properties based on benchtests/bench-skeleton.c.
26845
26846 2017-11-28 Florian Weimer <fweimer@redhat.com>
26847
26848 [BZ #20826]
26849 Turn posix/tst-getaddrinfo4, posix/tst-getaddrinfo5 into xtests
26850 due to Internet requirement.
26851 * posix/Makefile (tests): Remove tst-getaddrinfo4,
26852 tst-getaddrinfo5.
26853 (xtests): Add tst-getaddrinfo4, tst-getaddrinfo5.
26854
26855 2017-11-28 Adhemerval Zanella <adhemerval.zanella@linaro.org>
26856
26857 * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile
26858 [$(subdir) = string] (sysdep_routines): Add memset-ultra1.
26859 * sysdeps/sparc/sparc64/multiarch/Makefile [$(subdir) = string]
26860 (sysdep_routines): Add memset-ultra1.
26861 * sysdeps/sparc/sparc32/sparcv9/multiarch/memset-ultra1.S: New
26862 file.
26863 * sysdeps/sparc/sparc32/sparcv9/multiarch/memset.c: Likewise.
26864 * sysdeps/sparc/sparc32/sparcv9/multiarch/bzero.c: Likewise.
26865 * sysdeps/sparc/sparc64/multiarch/ifunc-memset.h: Likewise.
26866 * sysdeps/sparc/sparc64/multiarch/memset-ultra1.S: Likewise.
26867 * sysdeps/sparc/sparc64/multiarch/memset.c: Likewise.
26868 * sysdeps/sparc/sparc64/multiarch/bzero.c: Likewise.
26869 * sysdeps/sparc/sparc32/sparcv9/multiarch/memset.S: Remove file.
26870 * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
26871
26872 * sysdeps/sparc/sparc32/sparcv9/multiarch/memcpy-ultra1.S: New
26873 file.
26874 * sysdeps/sparc/sparc32/sparcv9/multiarch/memcpy.c: Likewise.
26875 * sysdeps/sparc/sparc32/sparcv9/multiarch/mempcpy.c: Likewise.
26876 * sysdeps/sparc/sparc64/multiarch/ifunc-memcpy.h: Likewise.
26877 * sysdeps/sparc/sparc64/multiarch/memcpy-ultra1.S: Likewise.
26878 * sysdeps/sparc/sparc64/multiarch/memcpy.c: Likewise.
26879 * sysdeps/sparc/sparc64/multiarch/mempcpy.c: Likewise.
26880 * sysdeps/sparc/sparc-ifunc.h (sparc_libc_ifunc_redirected): New
26881 macro.
26882 * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile
26883 [$(subdir) = string] (sysdep_routines): Add memcpy-ultra1.
26884 * sysdeps/sparc/sparc64/multiarch/Makefile [$(subdir) = string]
26885 (sysdep_routines): Add memcpy-ultra1.
26886 * sysdeps/sparc/sparc64/multiarch/memcpy.S: Remove file.
26887 * sysdeps/sparc/sparc32/sparcv9/multiarch/memcpy.S: Likewise.
26888
26889 2017-11-28 Joseph Myers <joseph@codesourcery.com>
26890
26891 * sysdeps/alpha/fpu/cfloat-compat.h: Include <libm-alias-float.h>.
26892 (cfloat_versions): Take function argument without trailing 'f'.
26893 Call libm_alias_float_other.
26894 * sysdeps/alpha/fpu/cabsf.c: Update call to cfloat_versions.
26895 * sysdeps/alpha/fpu/cargf.c: Likewise.
26896 * sysdeps/alpha/fpu/cimagf.c: Likewise.
26897 * sysdeps/alpha/fpu/conjf.c: Likewise.
26898 * sysdeps/alpha/fpu/crealf.c: Likewise.
26899 * sysdeps/alpha/fpu/s_cacosf.c: Likewise.
26900 * sysdeps/alpha/fpu/s_cacoshf.c: Likewise.
26901 * sysdeps/alpha/fpu/s_casinf.c: Likewise.
26902 * sysdeps/alpha/fpu/s_casinhf.c: Likewise.
26903 * sysdeps/alpha/fpu/s_catanf.c: Likewise.
26904 * sysdeps/alpha/fpu/s_catanhf.c: Likewise.
26905 * sysdeps/alpha/fpu/s_ccosf.c: Likewise.
26906 * sysdeps/alpha/fpu/s_ccoshf.c: Likewise.
26907 * sysdeps/alpha/fpu/s_cexpf.c: Likewise.
26908 * sysdeps/alpha/fpu/s_clogf.c: Likewise.
26909 * sysdeps/alpha/fpu/s_cpowf.c: Likewise.
26910 * sysdeps/alpha/fpu/s_cprojf.c: Likewise.
26911 * sysdeps/alpha/fpu/s_csinf.c: Likewise.
26912 * sysdeps/alpha/fpu/s_csinhf.c: Likewise.
26913 * sysdeps/alpha/fpu/s_csqrtf.c: Likewise.
26914 * sysdeps/alpha/fpu/s_ctanf.c: Likewise.
26915 * sysdeps/alpha/fpu/s_ctanhf.c: Likewise.
26916 * sysdeps/alpha/fpu/s_clog10f.c: Include <libm-alias-float.h>.
26917 (clog10f): Use libm_alias_float_other.
26918 * sysdeps/alpha/fpu/s_ceilf.c: Include <libm-alias-float.h>.
26919 (ceilf): Define using libm_alias_float.
26920 * sysdeps/alpha/fpu/s_copysignf.c: Include <libm-alias-float.h>.
26921 (copysignf): Define using libm_alias_float.
26922 * sysdeps/alpha/fpu/s_fabsf.c: Include <libm-alias-float.h>.
26923 (fabsf): Define using libm_alias_float.
26924 * sysdeps/alpha/fpu/s_floorf.c: Include <libm-alias-float.h>.
26925 (floorf): Define using libm_alias_float.
26926 * sysdeps/alpha/fpu/s_fmax.S: Include <libm-alias-float.h>.
26927 (fmaxf): Define using libm_alias_float.
26928 * sysdeps/alpha/fpu/s_fmin.S: Include <libm-alias-float.h>.
26929 (fminf): Define using libm_alias_float.
26930 * sysdeps/alpha/fpu/s_lrintf.c: Include <libm-alias-float.h>.
26931 (lrintf): Define using libm_alias_float.
26932 (llrintf): Likewise.
26933 * sysdeps/alpha/fpu/s_lroundf.c: Include <libm-alias-float.h>.
26934 (lroundf): Define using libm_alias_float.
26935 (llroundf): Likewise.
26936 * sysdeps/alpha/fpu/s_rintf.c: Include <libm-alias-float.h>.
26937 (rintf): Define using libm_alias_float.
26938 * sysdeps/alpha/fpu/s_truncf.c: Include <libm-alias-float.h>.
26939 (truncf): Define using libm_alias_float.
26940
26941 * sysdeps/aarch64/fpu/s_ceilf.c: Include <libm-alias-float.h>.
26942 (ceilf): Define using libm_alias_float.
26943 * sysdeps/aarch64/fpu/s_floorf.c: Include <libm-alias-float.h>.
26944 (floorf): Define using libm_alias_float.
26945 * sysdeps/aarch64/fpu/s_fmaf.c: Include <libm-alias-float.h>.
26946 (fmaf): Define using libm_alias_float.
26947 * sysdeps/aarch64/fpu/s_fmaxf.c: Include <libm-alias-float.h>.
26948 (fmaxf): Define using libm_alias_float.
26949 * sysdeps/aarch64/fpu/s_fminf.c: Include <libm-alias-float.h>.
26950 (fminf): Define using libm_alias_float.
26951 * sysdeps/aarch64/fpu/s_llrintf.c: Include <libm-alias-float.h>.
26952 (llrintf): Define using libm_alias_float.
26953 * sysdeps/aarch64/fpu/s_llroundf.c: Include <libm-alias-float.h>.
26954 (llroundf): Define using libm_alias_float.
26955 * sysdeps/aarch64/fpu/s_lrintf.c: Include <libm-alias-float.h>.
26956 (lrintf): Define using libm_alias_float.
26957 * sysdeps/aarch64/fpu/s_lroundf.c: Include <libm-alias-float.h>.
26958 (lroundf): Define using libm_alias_float.
26959 * sysdeps/aarch64/fpu/s_nearbyintf.c: Include
26960 <libm-alias-float.h>.
26961 (nearbyintf): Define using libm_alias_float.
26962 * sysdeps/aarch64/fpu/s_rintf.c: Include <libm-alias-float.h>.
26963 (rintf): Define using libm_alias_float.
26964 * sysdeps/aarch64/fpu/s_roundf.c: Include <libm-alias-float.h>.
26965 (roundf): Define using libm_alias_float.
26966 * sysdeps/aarch64/fpu/s_truncf.c: Include <libm-alias-float.h>.
26967 (truncf): Define using libm_alias_float.
26968
26969 * sysdeps/alpha/fpu/s_ceil.c: Include <libm-alias-double.h>.
26970 (ceil): Define using libm_alias_double.
26971 * sysdeps/alpha/fpu/s_copysign.c: Include <libm-alias-double.h>.
26972 (copysign): Define using libm_alias_double.
26973 * sysdeps/alpha/fpu/s_fabs.c: Include <libm-alias-double.h>.
26974 (fabs): Define using libm_alias_double.
26975 * sysdeps/alpha/fpu/s_floor.c: Include <libm-alias-double.h>.
26976 (floor): Define using libm_alias_double.
26977 * sysdeps/alpha/fpu/s_fmax.S: Include <libm-alias-double.h>.
26978 (fmax): Define using libm_alias_double.
26979 * sysdeps/alpha/fpu/s_fmin.S: Include <libm-alias-double.h>.
26980 (fmin): Define using libm_alias_double.
26981 * sysdeps/alpha/fpu/s_lrint.c: Include <libm-alias-double.h>.
26982 (lrint): Define using libm_alias_double.
26983 (llrint): Likewise.
26984 * sysdeps/alpha/fpu/s_lround.c: Include <libm-alias-double.h>.
26985 (lround): Define using libm_alias_double.
26986 (llround): Likewise.
26987 * sysdeps/alpha/fpu/s_rint.c: Include <libm-alias-double.h>.
26988 (rint): Define using libm_alias_double.
26989 * sysdeps/alpha/fpu/s_trunc.c: Include <libm-alias-double.h>.
26990 (trunc): Define using libm_alias_double.
26991
26992 * sysdeps/ieee754/ldbl-opt/libm-alias-double.h
26993 (libm_alias_double_r): Add semicolon after weak_alias call.
26994
26995 2017-11-27 Joseph Myers <joseph@codesourcery.com>
26996
26997 * sysdeps/aarch64/fpu/s_ceil.c: Include <libm-alias-double.h>.
26998 (ceil): Define using libm_alias_double.
26999 * sysdeps/aarch64/fpu/s_floor.c: Include <libm-alias-double.h>.
27000 (floor): Define using libm_alias_double.
27001 * sysdeps/aarch64/fpu/s_fma.c: Include <libm-alias-double.h>.
27002 (fma): Define using libm_alias_double.
27003 * sysdeps/aarch64/fpu/s_fmax.c: Include <libm-alias-double.h>.
27004 (fmax): Define using libm_alias_double.
27005 * sysdeps/aarch64/fpu/s_fmin.c: Include <libm-alias-double.h>.
27006 (fmin): Define using libm_alias_double.
27007 * sysdeps/aarch64/fpu/s_llrint.c: Include <libm-alias-double.h>.
27008 (llrint): Define using libm_alias_double.
27009 * sysdeps/aarch64/fpu/s_llround.c: Include <libm-alias-double.h>.
27010 (llround): Define using libm_alias_double.
27011 * sysdeps/aarch64/fpu/s_lrint.c: Include <libm-alias-double.h>.
27012 (lrint): Define using libm_alias_double.
27013 * sysdeps/aarch64/fpu/s_lround.c: Include <libm-alias-double.h>.
27014 (lround): Define using libm_alias_double.
27015 * sysdeps/aarch64/fpu/s_nearbyint.c: Include <libm-alias-double.h>.
27016 (nearbyint): Define using libm_alias_double.
27017 * sysdeps/aarch64/fpu/s_rint.c: Include <libm-alias-double.h>.
27018 (rint): Define using libm_alias_double.
27019 * sysdeps/aarch64/fpu/s_round.c: Include <libm-alias-double.h>.
27020 (round): Define using libm_alias_double.
27021 * sysdeps/aarch64/fpu/s_trunc.c: Include <libm-alias-double.h>.
27022 (trunc): Define using libm_alias_double.
27023
27024 2017-11-27 Florian Weimer <fweimer@redhat.com>
27025
27026 * sysdeps/unix/sysv/linux/mlock2.c: New file.
27027 * sysdeps/unix/sysv/linux/tst-mlock2.c: Likewise.
27028 * sysdeps/unix/sysv/linux/Makefile (routines): Add mlock2.
27029 (tests): Add tst-mlock2.
27030 * sysdeps/unix/sysv/linux/Versions (GLIBC_2.27): Export mlock2.
27031 * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_MLOCK2)
27032 [__LINUX_KERNEL_VERSION >= 4.4]: Define.
27033 * sysdeps/unix/sysv/linux/libc**.abilist: Update.
27034 * manual/memory.texi (Page Lock Functions): Move @end deftypefun
27035 for mlock. Document mlock2.
27036
27037 2017-11-27 Joseph Myers <joseph@codesourcery.com>
27038
27039 * sysdeps/ia64/Makeconfig (float64x-alias-fcts): New variable.
27040 * sysdeps/ieee754/float128/Makeconfig (float64x-alias-fcts):
27041 Likewise.
27042 * sysdeps/ieee754/ldbl-128/Makeconfig (float64x-alias-fcts):
27043 Likewise.
27044 * sysdeps/x86/Makeconfig: New file.
27045 * bits/floatn-common.h (__HAVE_FLOAT64X): Remove macro.
27046 (__HAVE_FLOAT64X_LONG_DOUBLE): Likewise.
27047 * bits/floatn.h (__HAVE_FLOAT64X): New macro.
27048 (__HAVE_FLOAT64X_LONG_DOUBLE): Likewise.
27049 * sysdeps/ia64/bits/floatn.h (__HAVE_FLOAT64X): Likewise.
27050 (__HAVE_FLOAT64X_LONG_DOUBLE): Likewise.
27051 * sysdeps/ieee754/ldbl-128/bits/floatn.h (__HAVE_FLOAT64X):
27052 Likewise.
27053 (__HAVE_FLOAT64X_LONG_DOUBLE): Likewise.
27054 * sysdeps/mips/ieee754/bits/floatn.h (__HAVE_FLOAT64X): Likewise.
27055 (__HAVE_FLOAT64X_LONG_DOUBLE): Likewise.
27056 * sysdeps/powerpc/bits/floatn.h (__HAVE_FLOAT64X): Likewise.
27057 (__HAVE_FLOAT64X_LONG_DOUBLE): Likewise.
27058 * sysdeps/x86/bits/floatn.h (__HAVE_FLOAT64X): Likewise.
27059 (__HAVE_FLOAT64X_LONG_DOUBLE): Likewise.
27060 * manual/math.texi (Mathematics): Document support for _Float64x.
27061 * math/Versions (GLIBC_2.27): Add _Float64x functions.
27062 * stdlib/Versions (GLIBC_2.27): Likewise.
27063 * wcsmbs/Versions (GLIBC_2.27): Likewise.
27064 * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Update.
27065 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
27066 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
27067 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
27068 * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
27069 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
27070 * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
27071 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
27072 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
27073 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
27074 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
27075 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist:
27076 Likewise.
27077 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist:
27078 Likewise.
27079 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
27080 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
27081 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
27082 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
27083 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
27084 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
27085 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
27086 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
27087 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
27088 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
27089 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
27090 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
27091 * sysdeps/i386/fpu/libm-test-ulps: Likewise.
27092 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
27093
27094 2017-11-27 Andreas Schwab <schwab@suse.de>
27095
27096 * elf/Makefile (dl-routines): Add dl-sort-maps.
27097 * elf/dl-sort-maps.c: New file.
27098 * sysdeps/generic/ldsodefs.h (_dl_sort_fini): Don't declare.
27099 (_dl_sort_maps): Declare.
27100 * elf/dl-fini.c (_dl_sort_fini): Remove.
27101 (_dl_fini): Use _dl_sort_maps instead of _dl_sort_fini.
27102 * elf/dl-close.c (_dl_close_worker): Likewise.
27103 * elf/dl-deps.c (_dl_map_object_deps): Use _dl_sort_maps instead of
27104 open-coding it.
27105 * elf/dl-open.c (dl_open_worker): Likewise.
27106
27107 2017-11-24 Joseph Myers <joseph@codesourcery.com>
27108
27109 * sysdeps/ieee754/float128/s_fromfpf128.c (fromfpf128): Define
27110 using libm_alias_float128.
27111 * sysdeps/ieee754/float128/s_fromfpxf128.c (fromfpxf128):
27112 Likewise.
27113 * sysdeps/ieee754/float128/s_setpayloadf128.c (setpayloadf128):
27114 Likewise.
27115 * sysdeps/ieee754/float128/s_setpayloadsigf128.c
27116 (setpayloadsigf128): Likewise.
27117 * sysdeps/ieee754/float128/s_ufromfpf128.c (ufromfpf128):
27118 Likewise.
27119 * sysdeps/ieee754/float128/s_ufromfpxf128.c (ufromfpxf128):
27120 Likewise.
27121
27122 * sysdeps/powerpc/powerpc64le/Makefile ($(foreach
27123 suf,$(all-object-suffixes),$(objpfx)test-float64x%$(suf))): Add
27124 -mfloat128 to CFLAGS.
27125 ($(foreach
27126 suf,$(all-object-suffixes),$(objpfx)test-ifloat64x%$(suf))):
27127 Likewise.
27128 (CFLAGS-libm-test-support-float64x.c): New variable.
27129 ($(objpfx)test-float64x% $(objpfx)test-ifloat64x%): Add
27130 $(f128-loader-link) to gnulib-tests.
27131
27132 * sysdeps/generic/libm-alias-float128.h: Include <bits/floatn.h>.
27133 (libm_alias_float128_other_r): If
27134 [__HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE], define f64x
27135 alias.
27136 (libm_alias_float128_r): Add semicolon after weak_alias call.
27137 * sysdeps/generic/libm-alias-ldouble.h
27138 (libm_alias_ldouble_other_r_f128): New macro.
27139 (libm_alias_ldouble_other_r_f64x): Likewise.
27140 (libm_alias_ldouble_other_r): Use libm_alias_ldouble_other_r_f128
27141 and libm_alias_ldouble_other_r_f64x.
27142 (libm_alias_ldouble_r): Add semicolon after weak_alias call.
27143 * sysdeps/ieee754/ldbl-opt/libm-alias-ldouble.h
27144 (libm_alias_ldouble_other_r_f128): New macro.
27145 (libm_alias_ldouble_other_r_f64x): Likewise.
27146 (libm_alias_ldouble_other_r): Use libm_alias_ldouble_other_r_f128
27147 and libm_alias_ldouble_other_r_f64x.
27148
27149 * stdlib/strfroml.c: Always include <stdlib.h>.
27150 [__HAVE_FLOAT64X_LONG_DOUBLE] (strfromf64x): Define and later
27151 undefine as macro and define as weak alias.
27152 * sysdeps/ieee754/float128/strfromf128.c: Include <bits/floatn.h>.
27153 [__HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE]: Include
27154 <stdlib.h>.
27155 [__HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE] (strfromf64x):
27156 Define and later undefine as macro and define as weak alias.
27157
27158 * stdlib/strtold.c [__HAVE_FLOAT64X_LONG_DOUBLE] (strtof64x):
27159 Define and later undefine as macro. Define as weak alias if
27160 [!USE_WIDE_CHAR].
27161 [__HAVE_FLOAT64X_LONG_DOUBLE] (wcstof64x): Define and later
27162 undefine as macro. Define as weak alias if [USE_WIDE_CHAR].
27163 * sysdeps/ieee754/float128/strtof128.c: Include <bits/floatn.h>.
27164 [__HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE] (strtof64x):
27165 Define and later undefine as macro. Define as weak alias if
27166 [!USE_WIDE_CHAR].
27167 [__HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE] (wcstof64x):
27168 Define and later undefine as macro. Define as weak alias if
27169 [USE_WIDE_CHAR].
27170 * sysdeps/ieee754/float128/strtof128_l.c
27171 [__HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE] (strtof64x_l):
27172 Define and later undefine as macro. Define as weak alias if
27173 [!USE_WIDE_CHAR].
27174 [__HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE] (wcstof64x_l):
27175 Define and later undefine as macro. Define as weak alias if
27176 [USE_WIDE_CHAR].
27177 * sysdeps/ieee754/ldbl-128/strtold_l.c
27178 [__HAVE_FLOAT64X_LONG_DOUBLE] (strtof64x_l): Define and later
27179 undefine as macro. Define as weak alias if [!USE_WIDE_CHAR].
27180 [__HAVE_FLOAT64X_LONG_DOUBLE] (wcstof64x_l): Define and later
27181 undefine as macro. Define as weak alias if [USE_WIDE_CHAR].
27182 * sysdeps/ieee754/ldbl-64-128/strtold_l.c
27183 [__HAVE_FLOAT64X_LONG_DOUBLE] (strtof64x_l): Define and later
27184 undefine as macro. Define as weak alias if [!USE_WIDE_CHAR].
27185 [__HAVE_FLOAT64X_LONG_DOUBLE] (wcstof64x_l): Define and later
27186 undefine as macro. Define as weak alias if [USE_WIDE_CHAR].
27187 * sysdeps/ieee754/ldbl-96/strtold_l.c
27188 [__HAVE_FLOAT64X_LONG_DOUBLE] (strtof64x_l): Define and later
27189 undefine as macro. Define as weak alias if [!USE_WIDE_CHAR].
27190 [__HAVE_FLOAT64X_LONG_DOUBLE] (wcstof64x_l): Define and later
27191 undefine as macro. Define as weak alias if [USE_WIDE_CHAR].
27192
27193 * math/test-float64x.h: New file.
27194 * math/Makefile (type-float64x-yes): New variable.
27195 (test-types): Add $(type-float64x-$(float64x-alias-fcts)).
27196
27197 * sysdeps/generic/math_private.h (min_of_type_f): Make into a
27198 function-like macro.
27199 (min_of_type_): Likewise.
27200 (min_of_type_l): Likewise.
27201 (min_of_type_f128): Likewise.
27202 (min_of_type): Pass () as last argument of __MATH_TG.
27203
27204 * stdlib/tst-strtod-round-skeleton.c
27205 (__STDC_WANT_IEC_60559_TYPES_EXT__): Define before including
27206 headers.
27207
27208 * math/gen-tgmath-tests.py (Type.init_types): Pass suffix argument
27209 for combinations of long double with _Float64 and _Float64x.
27210
27211 * bits/libm-simd-decl-stubs.h (__DECL_SIMD_cosf16): New macro.
27212 (__DECL_SIMD_cosf32): Likewise.
27213 (__DECL_SIMD_cosf64): Likewise.
27214 (__DECL_SIMD_cosf32x): Likewise.
27215 (__DECL_SIMD_cosf64x): Likewise.
27216 (__DECL_SIMD_cosf128x): Likewise.
27217 (__DECL_SIMD_sinf16): Likewise.
27218 (__DECL_SIMD_sinf32): Likewise.
27219 (__DECL_SIMD_sinf64): Likewise.
27220 (__DECL_SIMD_sinf32x): Likewise.
27221 (__DECL_SIMD_sinf64x): Likewise.
27222 (__DECL_SIMD_sinf128x): Likewise.
27223 (__DECL_SIMD_sincosf16): Likewise.
27224 (__DECL_SIMD_sincosf32): Likewise.
27225 (__DECL_SIMD_sincosf64): Likewise.
27226 (__DECL_SIMD_sincosf32x): Likewise.
27227 (__DECL_SIMD_sincosf64x): Likewise.
27228 (__DECL_SIMD_sincosf128x): Likewise.
27229 (__DECL_SIMD_logf16): Likewise.
27230 (__DECL_SIMD_logf32): Likewise.
27231 (__DECL_SIMD_logf64): Likewise.
27232 (__DECL_SIMD_logf32x): Likewise.
27233 (__DECL_SIMD_logf64x): Likewise.
27234 (__DECL_SIMD_logf128x): Likewise.
27235 (__DECL_SIMD_expf16): Likewise.
27236 (__DECL_SIMD_expf32): Likewise.
27237 (__DECL_SIMD_expf64): Likewise.
27238 (__DECL_SIMD_expf32x): Likewise.
27239 (__DECL_SIMD_expf64x): Likewise.
27240 (__DECL_SIMD_expf128x): Likewise.
27241 (__DECL_SIMD_powf16): Likewise.
27242 (__DECL_SIMD_powf32): Likewise.
27243 (__DECL_SIMD_powf64): Likewise.
27244 (__DECL_SIMD_powf32x): Likewise.
27245 (__DECL_SIMD_powf64x): Likewise.
27246 (__DECL_SIMD_powf128x): Likewise.
27247
27248 * stdlib/Versions (libc): Move entries for wcstof128 and
27249 wcstof128_l to ....
27250 * wcsmbs/Versions (libc): ... here.
27251 Include <float128-abi.h>.
27252
27253 2017-11-24 Florian Weimer <fweimer@redhat.com>
27254
27255 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
27256 bits/mman-shared.h.
27257 * sysdeps/unix/sysv/linux/bits/mman-linux.h: Include
27258 <bits/mman-shared.h>.
27259 (MFD_CLOEXEC, MFD_ALLOW_SEALING, MFD_HUGETLB, memfd_create): Move
27260 to ...
27261 * sysdeps/unix/sysv/linux/bits/mman-shared.h: ... this new file.
27262 Add #ifndef guard for the MFD_* constants based on MFD_CLOEXEC.
27263 * sysdeps/unix/sysv/linux/hppa/bits/mman.h: Include
27264 <bits/mman-shared.h>.
27265
27266 2017-11-24 Adhemerval Zanella <adhemerval.zanella@linaro.org>
27267
27268 [BZ #22457]
27269 * sysdeps/posix/preadv_common.c (PREADV): Use mmap/munmap instead of
27270 posix_memalign/free.
27271 * sysdeps/posix/pwritev_common.c (PWRITEV): Likewise.
27272
27273 2017-11-22 Mike FABIAN <mfabian@redhat.com>
27274
27275 [BZ #22469]
27276 * localedata/locales/pl_PL (LC_COLLATE): Use “copy "iso14651_t1"”
27277 and implement the collation rules for pl from CLDR on top of that.
27278 * Makefile: Add pl_PL.UTF-8 to test-input and to the list
27279 of locales to be built for testing.
27280 * pl_PL.UTF-8.in: New file with test data to test the Polish sorting.
27281
27282 2017-11-23 Joseph Myers <joseph@codesourcery.com>
27283
27284 * sysdeps/ia64/fpu/libm-symbols.h: Include <libm-alias-ldouble.h>.
27285 * sysdeps/ia64/fpu/e_acoshl.S (acoshl): Use
27286 libm_alias_ldouble_other.
27287 * sysdeps/ia64/fpu/e_acosl.S (acosl): Likewise.
27288 * sysdeps/ia64/fpu/e_asinl.S (asinl): Likewise.
27289 * sysdeps/ia64/fpu/e_atanhl.S (atanhl): Likewise.
27290 * sysdeps/ia64/fpu/e_coshl.S (coshl): Likewise.
27291 * sysdeps/ia64/fpu/e_exp10l.S (exp10l): Likewise.
27292 * sysdeps/ia64/fpu/e_exp2l.S (exp2l): Likewise.
27293 * sysdeps/ia64/fpu/e_fmodl.S (fmodl): Likewise.
27294 * sysdeps/ia64/fpu/e_hypotl.S (hypotl): Likewise.
27295 * sysdeps/ia64/fpu/e_lgammal_r.c (lgammal_r): Define using
27296 libm_alias_ldouble_r.
27297 * sysdeps/ia64/fpu/e_log2l.S (log2l): Use
27298 libm_alias_ldouble_other.
27299 * sysdeps/ia64/fpu/e_logl.S (logl): Likewise.
27300 (log10l): Likewise.
27301 * sysdeps/ia64/fpu/e_powl.S (powl): Likewise.
27302 * sysdeps/ia64/fpu/e_remainderl.S (remainderl): Likewise.
27303 * sysdeps/ia64/fpu/e_sinhl.S (sinhl): Likewise.
27304 * sysdeps/ia64/fpu/e_sqrtl.S (sqrtl): Likewise.
27305 * sysdeps/ia64/fpu/libm_sincosl.S (sincosl): Likewise.
27306 * sysdeps/ia64/fpu/s_asinhl.S (asinhl): Likewise.
27307 * sysdeps/ia64/fpu/s_atanl.S (atanl): Likewise.
27308 (atan2l): Likewise.
27309 * sysdeps/ia64/fpu/s_cbrtl.S (cbrtl): Likewise.
27310 * sysdeps/ia64/fpu/s_ceill.S (ceill): Likewise.
27311 * sysdeps/ia64/fpu/s_copysign.S (copysignl): Define using
27312 libm_alias_ldouble.
27313 * sysdeps/ia64/fpu/s_cosl.S (sinl): Use libm_alias_ldouble_other.
27314 (cosl): Likewise.
27315 * sysdeps/ia64/fpu/s_erfcl.S (erfcl): Likewise.
27316 * sysdeps/ia64/fpu/s_erfl.S (erfl): Likewise.
27317 * sysdeps/ia64/fpu/s_expm1l.S (expm1l): Likewise.
27318 (expl): Likewise.
27319 * sysdeps/ia64/fpu/s_fabsl.S (fabsl): Likewise.
27320 * sysdeps/ia64/fpu/s_fdiml.S (fdiml): Likewise.
27321 * sysdeps/ia64/fpu/s_floorl.S (floorl): Likewise.
27322 * sysdeps/ia64/fpu/s_fmal.S (fmal): Likewise.
27323 * sysdeps/ia64/fpu/s_fmaxl.S (fmaxl): Likewise.
27324 * sysdeps/ia64/fpu/s_frexpl.c (frexpl): Likewise.
27325 * sysdeps/ia64/fpu/s_ldexpl.c (ldexpl): Likewise.
27326 * sysdeps/ia64/fpu/s_log1pl.S (log1pl): Likewise.
27327 * sysdeps/ia64/fpu/s_logbl.S (logbl): Likewise.
27328 * sysdeps/ia64/fpu/s_modfl.S (modfl): Likewise.
27329 * sysdeps/ia64/fpu/s_nearbyintl.S (nearbyintl): Define using
27330 libm_alias_ldouble.
27331 * sysdeps/ia64/fpu/s_nextafterl.S (nextafterl): Use
27332 libm_alias_ldouble_other.
27333 * sysdeps/ia64/fpu/s_rintl.S (rintl): Likewise.
27334 * sysdeps/ia64/fpu/s_roundl.S (roundl): Likewise.
27335 * sysdeps/ia64/fpu/s_scalbnl.c (scalbnl): Define using
27336 libm_alias_ldouble.
27337 * sysdeps/ia64/fpu/s_tanhl.S (tanhl): Use
27338 libm_alias_ldouble_other.
27339 * sysdeps/ia64/fpu/s_tanl.S (tanl): Likewise.
27340 * sysdeps/ia64/fpu/s_truncl.S (truncl): Likewise.
27341 * sysdeps/ia64/fpu/w_lgammal_main.c
27342 [BUILD_LGAMMA && !USE_AS_COMPAT] (lgammal): Likewise.
27343 * sysdeps/ia64/fpu/w_tgammal_compat.S (tgammal): Likewise.
27344
27345 2017-11-23 Florian Weimer <fweimer@redhat.com>
27346
27347 * malloc/malloc.c (tcache_thread_shutdown): Rename from
27348 tcache_thread_freeres. Define for USE_TCACHE and !USE_TCACHE
27349 alike. Remove freeres marker.
27350 * malloc/arena.c (arena_thread_freeres): Call
27351 tcache_thread_shutdown.
27352
27353 2017-11-23 Florian Weimer <fweimer@redhat.com>
27354
27355 [BZ #22459]
27356 Export nscd hash function as __nss_hash.
27357 * include/nss.h (__nss_hash): Declare.
27358 * nis/nis_hash.c (__nis_hash): Call __nss_hash. Turn into compat
27359 symbol.
27360 * nscd/Makefile (aux, nscd-modules): Remove nscd_hash.
27361 * nscd/cache.c (cache_search, cache_add): Call __nss_hash instead
27362 of __nscd_hash.
27363 * nscd/nscd_helper.c (__nscd_cache_search): Likewise.
27364 * nscd/nscd_hash.h, nscd/nscd_hash.c: Remove files.
27365 * nss/Makefiles (routines): Add nss_hash.
27366 * nss/Versions (GLIBC_PRIVATE): Export __nss_hash.
27367 * nss/nss_hash.c: Rename from nis/nis_hash.c.
27368 (__nss_hash): Rename from __nis_hash. Define hidden alias.
27369 * nis/rpcsvc/nislib.h (__nis_hash): Remove declaration.
27370
27371 2017-11-23 Florian Weimer <fweimer@redhat.com>
27372
27373 [BZ #22478]
27374 * sysdeps/unix/sysv/linux/sigwait.c (__sigwait): Retry on EINTR.
27375 Return error code, not -1.
27376 * signal/tst-sigwait-eintr.c: New file.
27377 * signal/Makefile (tests): Add tst-sigwait-eintr.
27378
27379 2017-11-23 Florian Weimer <fweimer@redhat.com>
27380
27381 Linux: Add memfd_create system call wrapper
27382 * sysdeps/unix/sysv/linux/Makefile [misc] (tests): Add
27383 tst-memfd_create.
27384 * sysdeps/unix/sysv/linux/bits/mman-linux.h [__USE_GNU]
27385 (MFD_CLOEXEC, MFD_ALLOW_SEALING): Define.
27386 [__USE_GNU] (memfd_create): Declare.
27387 * sysdeps/unix/sysv/linux/Versions (GLIBC_2.27): Add memfd_create.
27388 * sysdeps/unix/sysv/linux/syscalls.list (memfd_create): Add.
27389 * sysdeps/unix/sysv/linux/tst-memfd_create.c: New file.
27390 * sysdeps/unix/sysv/linux/**.abilist: Update.
27391 * manual/llio.texi (Memory-mapped I/O): Document memfd_create.
27392
27393 2017-11-22 Joseph Myers <joseph@codesourcery.com>
27394
27395 * localedata/gen-locale.sh: Fix typo in variable name.
27396
27397 * resolv/res_debug.c (p_secstodate): Condition definition on
27398 [SHLIB_COMPAT (libresolv, GLIBC_2_0, GLIBC_2_27)]. Define
27399 directly as __p_secstodate, and as a compat symbol. Do not use
27400 libresolv_hidden_def.
27401 * resolv/resolv.h (p_secstodate): Remove macro and function
27402 declaration.
27403 * resolv/ns_print.c (ns_sprintrrf): Print times with %lu, not
27404 using p_secstodate.
27405 * include/resolv.h (__p_secstodate): Do not use
27406 libresolv_hidden_proto.
27407 * resolv/Makefile (tests): Move tst-p_secstodate to ....
27408 (tests-internal): ... here.
27409 * resolv/tst-p_secstodate.c: Include <shlib-compat.h>. Condition
27410 all contents on [TEST_COMPAT (libresolv, GLIBC_2_0, GLIBC_2_27)]
27411 and declare and use __p_secstodate and use compat_symbol_reference
27412 in that case.
27413 [!TEST_COMPAT (libresolv, GLIBC_2_0, GLIBC_2_27)] (do_test): Add
27414 implementation returning 77.
27415
27416 [BZ #22463]
27417 * resolv/res_debug.c: Include <libc-diag.h>.
27418 (p_secstodate): Assert time_t at least as wide as u_long. On
27419 overflow, use integer seconds since the epoch as output, or use
27420 "<overflow>" as output and set errno to EOVERFLOW if integer
27421 seconds since the epoch would be 14 or more characters.
27422 (p_secstodate) [__GNUC_PREREQ (7, 0)]: Disable -Wformat-overflow=
27423 for sprintf call.
27424 * resolv/tst-p_secstodate.c: New file.
27425 * resolv/Makefile (tests): Add tst-p_secstodate.
27426 ($(objpfx)tst-p_secstodate): Depend on $(objpfx)libresolv.so.
27427
27428 * sysdeps/sparc/sparc64/soft-fp/s_frexpl.c: Remove file.
27429 * sysdeps/sparc/sparc64/soft-fp/s_scalblnl.c: Likewise.
27430 * sysdeps/sparc/sparc64/soft-fp/s_scalbnl.c: Likewise.
27431
27432 2017-11-22 Paul Eggert <eggert@cs.ucla.edu>
27433
27434 * posix/regcomp.c (init_word_char): Add comments.
27435
27436 2017-11-22 Joseph Myers <joseph@codesourcery.com>
27437
27438 [BZ #22447]
27439 * sysdeps/unix/getlogin_r.c (__getlogin_r): Use __strnlen not
27440 strlen to compute length of ut_user and set trailing NUL byte of
27441 result explicitly.
27442
27443 2017-11-21 Mike FABIAN <mfabian@redhat.com>
27444
27445 [BZ #15537]
27446 * localedata/locales/lv_LV (LC_COLLATE): Fix collation by
27447 using “copy "iso14651_t1"” and then implementing the
27448 collation rules for lv from CLDR on top of that.
27449 * Makefile: Add lv_LV.UTF-8 to test-input and to the list
27450 of locales to be built for testing.
27451 * lv_LV.UTF-8.in: New file with test data to test the Latvian
27452 sorting.
27453
27454 2017-11-21 Joseph Myers <joseph@codesourcery.com>
27455
27456 * sysdeps/unix/sysv/linux/hppa/bits/mman.h
27457 [__USE_MISC] (MADV_SPACEAVAIL): Remove macro.
27458 [__USE_MISC] (MADV_VPS_PURGE): Likewise.
27459 [__USE_MISC] (MADV_VPS_INHERIT): Likewise.
27460 [__USE_MISC] (MADV_HWPOISON): New macro.
27461 [__USE_MISC] (MADV_SOFT_OFFLINE): Likewise.
27462
27463 2017-11-21 Adhemerval Zanella <adhemerval.zanella@linaro.org>
27464
27465 * nptl/pthreadP.h (ASSERT_PTHREAD_INTERNAL_SIZE): Add workarond for
27466 -Wmissing-braces on GCC 4.9.
27467
27468 2017-11-21 Stefan Liebler <stli@linux.vnet.ibm.com>
27469
27470 * sysdeps/s390/s390-64/start.S (_start): Add cfi information for r14.
27471 * sysdeps/s390/s390-32/start.S (_start): Likewise
27472 * sysdeps/unix/sysv/linux/s390/s390-64/clone.S
27473 (thread_start): Likewise.
27474 * sysdeps/unix/sysv/linux/s390/s390-32/clone.S
27475 (thread_start): Likewise.
27476 * sysdeps/unix/sysv/linux/s390/s390-64/__makecontext_ret.S
27477 (__makecontext_ret): Likewise.
27478 * sysdeps/unix/sysv/linux/s390/s390-32/__makecontext_ret.S
27479 (__makecontext_ret): Likewise.
27480
27481 2017-11-21 Stefan Liebler <stli@linux.vnet.ibm.com>
27482
27483 * include/wchar.h (__wcsnlen, __wcscat, __wcsncpy, __wcpncpy,
27484 __wcschrnul): Remove attribute_hidden.
27485
27486 2017-11-20 Paul Eggert <eggert@cs.ucla.edu>
27487
27488 regex: don't assume uint64_t or uint32_t
27489 This avoids -Werror=overflow errors for 32-bit systems in
27490 the 64-bit case. Problem reported by Joseph Myers in:
27491 https://sourceware.org/ml/libc-alpha/2017-11/msg00694.html
27492 Also, when this code is used in Gnulib it ports to platforms
27493 that lack uint64_t and uint32_t. The C standard doesn't guarantee
27494 them, and on some 32-bit compilers there is no uint64_t.
27495 Problem reported by Gianluigi Tiesi in:
27496 http://lists.gnu.org/archive/html/bug-gnulib/2012-03/msg00154.html
27497 * posix/regcomp.c (init_word_char): Don't assume that the types
27498 uint64_t and uint32_t exist. Adapted from Gnulib patch
27499 2012-05-27T06:40:00!eggert@cs.ucla.edu. See:
27500 https://git.savannah.gnu.org/cgit/gnulib.git/commit/?id=252b52457da7887667c036d18cc5169777615bb0
27501
27502 2017-11-20 Siddhesh Poyarekar <siddhesh@sourceware.org>
27503
27504 * sysdeps/aarch64/memset-reg.h: New file.
27505 * sysdeps/aarch64/memset.S: Use it.
27506 (__memset): Rename to MEMSET macro.
27507 [ZVA_MACRO]: Use zva_macro.
27508 * sysdeps/aarch64/multiarch/Makefile (sysdep_routines):
27509 Add memset_generic and memset_falkor.
27510 * sysdeps/aarch64/multiarch/ifunc-impl-list.c
27511 (__libc_ifunc_impl_list): Add memset ifuncs.
27512 * sysdeps/aarch64/multiarch/init-arch.h (INIT_ARCH): New
27513 local variable zva_size.
27514 * sysdeps/aarch64/multiarch/memset.c: New file.
27515 * sysdeps/aarch64/multiarch/memset_generic.S: New file.
27516 * sysdeps/aarch64/multiarch/memset_falkor.S: New file.
27517 * sysdeps/aarch64/multiarch/rtld-memset.S: New file.
27518 * sysdeps/unix/sysv/linux/aarch64/cpu-features.c
27519 (DCZID_DZP_MASK): New macro.
27520 (DCZID_BS_MASK): Likewise.
27521 (init_cpu_features): Read and set zva_size.
27522 * sysdeps/unix/sysv/linux/aarch64/cpu-features.h
27523 (struct cpu_features): New member zva_size.
27524
27525 * benchtests/bench-memcpy-walk.c (START_SIZE): Set to 128.
27526 * benchtests/bench-memmove-walk.c (START_SIZE): Likewise.
27527 * benchtests/bench-memset-walk.c (START_SIZE): Likewise.
27528
27529 * benchtests/bench-memcpy-walk.c (do_one_test): Copy only
27530 backwards. Fix timing computation.
27531 * benchtests/bench-memmove-walk.c (do_one_test): Likewise.
27532 * benchtests/bench-memset-walk.c (do_one_test): Walk backwards
27533 on memset by N at a time. Fix timing computation.
27534
27535 2017-11-20 Florian Weimer <fweimer@redhat.com>
27536
27537 * manual/llio.texi (Memory-mapped I/O): Document MAP_HUGETLB,
27538 MADV_HUGEPAGE, MADV_NOHUGEPAGE.
27539
27540 2017-11-19 Florian Weimer <fweimer@redhat.com>
27541
27542 manual: Document mprotect
27543 * manual/memory.texi (Memory Protection): New section.
27544 * manual/llio.texi (Memory-mapped I/O): Remove duplicate
27545 documentation of PROT_* flags and reference the Memory Protection
27546 section instead.
27547
27548 2017-11-19 Florian Weimer <fweimer@redhat.com>
27549
27550 * manual/llio.texi (I/O Primitives): Move preadv, preadv64,
27551 pwritev, pwritev64, preadv2, preadv64v2, pwritev2, pwritev64v2 ...
27552 (Scatter-Gather): ... to here. Remove misleading comment.
27553
27554 2017-11-18 Christian Brauner <christian.brauner@ubuntu.com>
27555
27556 * support/support_become_root.c (setup_uid_gid_mapping): Fix comment
27557 style.
27558
27559 * support/support_become_root.c (setup_uid_gid_mapping): Don't fail
27560 when /proc/<pid>/setgroups does not exist.
27561
27562 2017-11-18 Florian Weimer <fweimer@redhat.com>
27563
27564 * sysdeps/unix/sysv/linux/tst-ttyname.c
27565 (become_root_in_mount_ns): Remove.
27566 (do_in_chroot_1): Call support_enter_mount_namespace.
27567 (do_in_chroot_2): Likewise.
27568 (do_test): Call support_become_root early.
27569
27570 2017-11-18 Florian Weimer <fweimer@redhat.com>
27571
27572 * support/namespace.h (support_enter_mount_namespace): Declare.
27573 * support/support_enter_mount_namespace.c: New file.
27574 * support/Makefile (libsupport-routines): Add
27575 support_enter_mount_namespace.
27576
27577 2017-11-18 Florian Weimer <fweimer@redhat.com>
27578
27579 * support/temp_file.c (support_create_temp_directory): Use
27580 test_dir and do not rely on the presence of the XXXXXX suffix.
27581 * support/temp_file.h (support_create_temp_directory): Update
27582 comment.
27583 * support/tst-xreadlink.c (do_test): Adjust.
27584 * support/support_chroot.c (support_chroot_create): Likewise.
27585
27586 2017-11-17 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
27587
27588 * sysdeps/powerpc/bits/hwcap.h (PPC_FEATURE2_HTM_NO_SUSPEND): New
27589 macro.
27590 * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_cap_flags): Add
27591 htm-no-suspend.
27592
27593 2017-11-17 Joseph Myers <joseph@codesourcery.com>
27594
27595 * sysdeps/x86_64/fpu/e_expl.S: Include <libm-alias-ldouble.h>.
27596 [USE_AS_EXPM1L] (expm1l): Define using libm_alias_ldouble.
27597 * sysdeps/x86_64/fpu/s_ceill.S: Include <libm-alias-ldouble.h>.
27598 (ceill): Define using libm_alias_ldouble.
27599 * sysdeps/x86_64/fpu/s_copysignl.S: Include
27600 <libm-alias-ldouble.h>.
27601 (copysignl): Define using libm_alias_ldouble.
27602 * sysdeps/x86_64/fpu/s_fabsl.S: Include <libm-alias-ldouble.h>.
27603 (fabsl): Define using libm_alias_ldouble.
27604 * sysdeps/x86_64/fpu/s_floorl.S: Include <libm-alias-ldouble.h>.
27605 (floorl): Define using libm_alias_ldouble.
27606 * sysdeps/x86_64/fpu/s_fmaxl.S: Include <libm-alias-ldouble.h>.
27607 (fmaxl): Define using libm_alias_ldouble.
27608 * sysdeps/x86_64/fpu/s_fminl.S: Include <libm-alias-ldouble.h>.
27609 (fminl): Define using libm_alias_ldouble.
27610 * sysdeps/x86_64/fpu/s_llrintl.S: Include <libm-alias-ldouble.h>.
27611 (llrintl): Define using libm_alias_ldouble.
27612 (lrintl): Likewise.
27613 * sysdeps/x86_64/fpu/s_nearbyintl.S: Include
27614 <libm-alias-ldouble.h>.
27615 (nearbyintl): Define using libm_alias_ldouble.
27616 * sysdeps/x86_64/fpu/s_truncl.S: Include <libm-alias-ldouble.h>.
27617 (truncl): Define using libm_alias_ldouble.
27618 * sysdeps/x86_64/x32/fpu/s_lrintl.S: Include
27619 <libm-alias-ldouble.h>.
27620 (lrintl): Define using libm_alias_ldouble.
27621
27622 * sysdeps/i386/fpu/e_expl.S: Include <libm-alias-ldouble.h>.
27623 [USE_AS_EXPM1L] (expm1l): Define using libm_alias_ldouble.
27624 * sysdeps/i386/fpu/s_asinhl.S: Include <libm-alias-ldouble.h>.
27625 (asinhl): Define using libm_alias_ldouble.
27626 * sysdeps/i386/fpu/s_atanl.c: Include <libm-alias-ldouble.h>.
27627 (atanl): Define using libm_alias_ldouble.
27628 * sysdeps/i386/fpu/s_cbrtl.S: Include <libm-alias-ldouble.h>.
27629 (cbrtl): Define using libm_alias_ldouble.
27630 * sysdeps/i386/fpu/s_ceill.S: Include <libm-alias-ldouble.h>.
27631 (ceill): Define using libm_alias_ldouble.
27632 * sysdeps/i386/fpu/s_copysignl.S: Include <libm-alias-ldouble.h>.
27633 (copysignl): Define using libm_alias_ldouble.
27634 * sysdeps/i386/fpu/s_fabsl.S: Include <libm-alias-ldouble.h>.
27635 (fabsl): Define using libm_alias_ldouble.
27636 * sysdeps/i386/fpu/s_floorl.S: Include <libm-alias-ldouble.h>.
27637 (floorl): Define using libm_alias_ldouble.
27638 * sysdeps/i386/fpu/s_fmaxl.S: Include <libm-alias-ldouble.h>.
27639 (fmaxl): Define using libm_alias_ldouble.
27640 * sysdeps/i386/fpu/s_fminl.S: Include <libm-alias-ldouble.h>.
27641 (fminl): Define using libm_alias_ldouble.
27642 * sysdeps/i386/fpu/s_frexpl.S: Include <libm-alias-ldouble.h>.
27643 (frexpl): Define using libm_alias_ldouble.
27644 * sysdeps/i386/fpu/s_llrintl.S: Include <libm-alias-ldouble.h>.
27645 (llrintl): Define using libm_alias_ldouble.
27646 * sysdeps/i386/fpu/s_logbl.c: Include <libm-alias-ldouble.h>.
27647 (logbl): Define using libm_alias_ldouble.
27648 * sysdeps/i386/fpu/s_lrintl.S: Include <libm-alias-ldouble.h>.
27649 (lrintl): Define using libm_alias_ldouble.
27650 * sysdeps/i386/fpu/s_nearbyintl.S: Include <libm-alias-ldouble.h>.
27651 (nearbyintl): Define using libm_alias_ldouble.
27652 * sysdeps/i386/fpu/s_nextafterl.c: Include <libm-alias-ldouble.h>.
27653 (nextafterl): Define using libm_alias_ldouble.
27654 * sysdeps/i386/fpu/s_remquol.S: Include <libm-alias-ldouble.h>.
27655 (remquol): Define using libm_alias_ldouble.
27656 * sysdeps/i386/fpu/s_rintl.c: Include <libm-alias-ldouble.h>.
27657 (rintl): Define using libm_alias_ldouble.
27658 * sysdeps/i386/fpu/s_truncl.S: Include <libm-alias-ldouble.h>.
27659 (truncl): Define using libm_alias_ldouble.
27660 * sysdeps/i386/i686/fpu/s_fmaxl.S: Include <libm-alias-ldouble.h>.
27661 (fmaxl): Define using libm_alias_ldouble.
27662 * sysdeps/i386/i686/fpu/s_fminl.S: Include <libm-alias-ldouble.h>.
27663 (fminl): Define using libm_alias_ldouble.
27664
27665 * bits/floatn-common.h [!__ASSEMBLER]: Disable everything related
27666 to C syntax instead of availability and properties of types.
27667 * bits/floatn.h [!__ASSEMBLER]: Likewise.
27668 * sysdeps/ia64/bits/floatn.h [!__ASSEMBLER]: Likewise.
27669 * sysdeps/ieee754/ldbl-128/bits/floatn.h [!__ASSEMBLER]: Likewise.
27670 * sysdeps/mips/ieee754/bits/floatn.h [!__ASSEMBLER]: Likewise.
27671 * sysdeps/powerpc/bits/floatn.h [!__ASSEMBLER]: Likewise.
27672 * sysdeps/x86/bits/floatn.h [!__ASSEMBLER]: Likewise.
27673
27674 2017-11-17 Florian Weimer <fweimer@redhat.com>
27675
27676 support_become_root: Enable file creation in namespaces.
27677 * support/support_become_root.c (setup_mapping): New function.
27678 (support_become_root): Call it.
27679
27680 2017-11-17 Joseph Myers <joseph@codesourcery.com>
27681
27682 * sysdeps/unix/sysv/linux/aarch64/bits/hwcap.h (HWCAP_DCPOP): New
27683 macro.
27684
27685 2017-11-16 Adhemerval Zanella <adhemerval.zanella@linaro.org>
27686
27687 * sysdeps/aarch64/fpu/Makefile (CFLAGS-s_fmax.c, CFLAGS-s_fmaxf.c,
27688 CFLAGS-s_fmin.c, CFLAGS-s_fminf.c): New rule: add -ffinite-math-only.
27689
27690 2017-11-16 Joseph Myers <joseph@codesourcery.com>
27691
27692 * sysdeps/unix/sysv/linux/net/if_arp.h (ARPHRD_RAWIP): New macro.
27693
27694 * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
27695 version to 4.14.
27696
27697 2017-11-16 Siddhesh Poyarekar <siddhesh@sourceware.org>
27698
27699 * INSTALL: Fix botched up regeneration.
27700
27701 * NEWS: Update sourceare link to https.
27702 * configure.ac: Likewise.
27703 * crypt/md5test-giant.c: Likewise.
27704 * dlfcn/bug-atexit1.c: Likewise.
27705 * dlfcn/bug-atexit2.c: Likewise.
27706 * localedata/README: Likewise.
27707 * malloc/tst-mallocfork.c: Likewise.
27708 * manual/install.texi: Likewise.
27709 * nptl/tst-pthread-getattr.c: Likewise.
27710 * stdio-common/tst-fgets.c: Likewise.
27711 * stdio-common/tst-fwrite.c: Likewise.
27712 * sunrpc/Makefile: Likewise.
27713 * sysdeps/arm/armv7/multiarch/memcpy_impl.S: Likewise.
27714 * wcsmbs/tst-mbrtowc2.c: Likewise.
27715 * configure: Regenerate.
27716 * INSTALL: Regenerate.
27717
27718 2017-11-15 Martin Sebor <msebor@redhat.com>
27719
27720 * misc/sys/cdefs.h (__attribute_nonstring__): New macro.
27721 * sysdeps/gnu/bits/utmp.h (struct utmp): Use it.
27722 * sysdeps/unix/sysv/linux/s390/bits/utmp.h (struct utmp): Same.
27723
27724 2017-11-15 Luke Shumaker <lukeshu@parabola.nu>
27725
27726 [BZ #22145]
27727 * sysdeps/unix/sysv/linux/tst-ttyname.c: New file.
27728 * sysdeps/unix/sysv/linux/Makefile: Add tst-ttyname to tests.
27729
27730 [BZ #22145]
27731 * sysdeps/unix/sysv/linux/ttyname.c (ttyname):
27732 Defer is_pty check until end of the function.
27733 * sysdeps/unix/sysv/linux/ttyname_r.c (__ttyname_r): Likewise.
27734
27735 [BZ #22145]
27736 * sysdeps/unix/sysv/linux/ttyname.h (is_mytty): New function.
27737 * sysdeps/unix/sysv/linux/ttyname.c (getttyname): Call is_mytty.
27738 (ttyname): Likewise.
27739 * sysdeps/unix/sysv/linux/ttyname_r.c (getttyname_r): Likewise.
27740 (__ttyname_r): Likewise.
27741
27742 * sysdeps/unix/sysv/linux/ttyname.h (is_pty): Change return type from
27743 int to bool.
27744
27745 * sysdeps/unix/sysv/linux/ttyname.h (is_pty): Update doc reference.
27746
27747 * manual/terminal.texi (Is It a Terminal):
27748 Mention ENODEV for ttyname and ttyname_r.
27749
27750 2017-11-15 Joseph Myers <joseph@codesourcery.com>
27751
27752 * sysdeps/unix/sysv/linux/bits/socket.h (MSG_ZEROCOPY): New enum
27753 constant and macro.
27754
27755 * sysdeps/unix/sysv/linux/bits/mman-linux.h
27756 [__USE_MISC] (MADV_WIPEONFORK): New macro.
27757 [__USE_MISC] (MADV_KEEPONFORK): Likewise.
27758 * sysdeps/unix/sysv/linux/hppa/bits/mman.h
27759 [__USE_MISC] (MADV_WIPEONFORK): Likewise.
27760 [__USE_MISC] (MADV_KEEPONFORK): Likewise.
27761
27762 2017-11-15 Adhemerval Zanella <adhemerval.zanella@linaro.org>
27763
27764 * signal/sigrelse.c (sigrelse): Optimize implementation.
27765
27766 * sysdeps/posix/sigpause.c (do_sigpause): Remove.
27767 (__sigpause): Rely on __sigsuspend to implement single thread
27768 optimization. Add LIBC_CANCEL_HANDLED for cancellation marking.
27769
27770 2017-11-15 Joseph Myers <joseph@codesourcery.com>
27771
27772 * scripts/build-many-glibcs.py (Context.checkout): Default Linux
27773 kernel version to 4.14.
27774
27775 2017-11-15 Steve Ellcey <sellcey@cavium.com>
27776
27777 [BZ #22442]
27778 * sysdeps/unix/sysv/linux/if_index.c (__if_nametoindex):
27779 Check if ifname is too long.
27780
27781 2017-11-15 Luke Shumaker <lukeshu@parabola.nu>
27782
27783 * sysdeps/unix/sysv/linux/epoll_wait.c: Include <sysdep-cancel.h>.
27784
27785 2017-11-15 Mike FABIAN <mfabian@redhat.com>
27786
27787 * localedata/locales/ka_GE (LC_MESSAGES): Add “X” back to yesexpr,
27788 was accidentally lost.
27789
27790 2017-11-15 Mike FABIAN <mfabian@redhat.com>
27791
27792 * localedata/locales/az_IR: Add standard copyright header.
27793
27794 2017-11-15 Florian Weimer <fweimer@redhat.com>
27795
27796 [BZ #22439]
27797 * malloc/malloc.c (__malloc_info): Count all heaps in an arena,
27798 not just the top one. Output a new "subheaps" statistic.
27799
27800 2017-11-15 Florian Weimer <fweimer@redhat.com>
27801
27802 [BZ #22408]
27803 * malloc/malloc.c (__malloc_info): Obtain arena heap statistics
27804 under the per-arena lock.
27805 * malloc/Makefile (tests): Add tst-malloc_info.
27806 (tst-malloc_info): Link with libpthread.
27807 * malloc/tst-malloc_info.c: New file.
27808
27809 2017-11-15 Joseph Myers <joseph@codesourcery.com>
27810
27811 [BZ #21660]
27812 * math/tgmath.h (__HAVE_BUILTIN_TGMATH): New macro.
27813 [__HAVE_BUILTIN_TGMATH] (__TG_F16_ARG): Likewise.
27814 [__HAVE_BUILTIN_TGMATH] (__TG_F32_ARG): Likewise.
27815 [__HAVE_BUILTIN_TGMATH] (__TG_F64_ARG): Likewise.
27816 [__HAVE_BUILTIN_TGMATH] (__TG_F128_ARG): Likewise.
27817 [__HAVE_BUILTIN_TGMATH] (__TG_F32X_ARG): Likewise.
27818 [__HAVE_BUILTIN_TGMATH] (__TG_F64X_ARG): Likewise.
27819 [__HAVE_BUILTIN_TGMATH] (__TG_F128X_ARG): Likewise.
27820 [__HAVE_BUILTIN_TGMATH] (__TGMATH_FUNCS): Likewise.
27821 [__HAVE_BUILTIN_TGMATH] (__TGMATH_RCFUNCS): Likewise.
27822 [__HAVE_BUILTIN_TGMATH] (__TGMATH_1): Likewise.
27823 [__HAVE_BUILTIN_TGMATH] (__TGMATH_2): Likewise.
27824 [__HAVE_BUILTIN_TGMATH] (__TGMATH_2STD): Likewise.
27825 [__HAVE_BUILTIN_TGMATH] (__TGMATH_3): Likewise.
27826 [__HAVE_BUILTIN_TGMATH] (__TGMATH_1C): Likewise.
27827 [__HAVE_BUILTIN_TGMATH] (__TGMATH_2C): Likewise.
27828 (__tgml): Make conditional on [!__HAVE_BUILTIN_TGMATH].
27829 (__floating_type): Likewise.
27830 (__real_integer_type): Likewise.
27831 (__complex_integer_type): Likewise.
27832 (__expr_is_real): Likewise.
27833 (__tgmath_real_type_sub): Likewise.
27834 (__tgmath_real_type): Likewise.
27835 (__tgmath_complex_type_sub): Likewise.
27836 (__tgmath_complex_type): Likewise.
27837 (__TGMATH_F128): Likewise.
27838 (__TGMATH_CF128): Likewise.
27839 [__HAVE_BUILTIN_TGMATH] (__TGMATH_UNARY_REAL_ONLY): Define using
27840 new macros.
27841 [__HAVE_BUILTIN_TGMATH] (__TGMATH_UNARY_REAL_RET_ONLY): Likewise.
27842 [__HAVE_BUILTIN_TGMATH] (__TGMATH_BINARY_FIRST_REAL_ONLY):
27843 Likewise.
27844 [__HAVE_BUILTIN_TGMATH] (__TGMATH_BINARY_FIRST_REAL_STD_ONLY):
27845 Likewise.
27846 [__HAVE_BUILTIN_TGMATH] (__TGMATH_BINARY_REAL_ONLY): Likewise.
27847 [__HAVE_BUILTIN_TGMATH] (__TGMATH_BINARY_REAL_STD_ONLY): Likewise.
27848 [__HAVE_BUILTIN_TGMATH] (__TGMATH_BINARY_REAL_RET_ONLY): Likewise.
27849 [__HAVE_BUILTIN_TGMATH] (__TGMATH_TERNARY_FIRST_SECOND_REAL_ONLY):
27850 Likewise.
27851 [__HAVE_BUILTIN_TGMATH] (__TGMATH_TERNARY_REAL_ONLY): Likewise.
27852 [__HAVE_BUILTIN_TGMATH] (__TGMATH_TERNARY_FIRST_REAL_RET_ONLY):
27853 Likewise.
27854 [__HAVE_BUILTIN_TGMATH] (__TGMATH_UNARY_REAL_IMAG): Likewise.
27855 [__HAVE_BUILTIN_TGMATH] (__TGMATH_UNARY_IMAG): Likewise.
27856 [__HAVE_BUILTIN_TGMATH] (__TGMATH_UNARY_REAL_IMAG_RET_REAL):
27857 Likewise.
27858 [__HAVE_BUILTIN_TGMATH] (__TGMATH_BINARY_REAL_IMAG): Likewise.
27859 (__TGMATH_UNARY_REAL_IMAG_RET_REAL_SAME): New macro.
27860 (carg): Use __TGMATH_UNARY_REAL_IMAG_RET_REAL_SAME.
27861 (cimag): Likewise.
27862 (creal): Likewise.
27863
27864 2017-11-14 Joseph Myers <joseph@codesourcery.com>
27865
27866 * string/tester.c (test_stpncpy): Disable -Wstringop-truncation
27867 for stpncpy calls for GCC 8.
27868 (test_strncat): Disable -Wstringop-truncation warning for strncat
27869 calls for GCC 8. Disable -Wstringop-overflow= warning for one
27870 strncat call for GCC 7.
27871 (test_strncpy): Disable -Wstringop-truncation warning for strncpy
27872 calls for GCC 8.
27873 (test_memcmp): Use memcpy instead of strncpy for calls not copying
27874 trailing NUL.
27875
27876 * string/bug-strncat1.c: Include <libc-diag.h>.
27877 (main): Disable -Wstringop-truncation for strncat call for GCC 8.
27878
27879 2017-11-13 Claude Paroz <claude@2xlibre.net>
27880
27881 [BZ #22387]
27882 * localedata/locales/aa_DJ: Improved readibility by replacing
27883 <Uxxxx> sequences in the ASCII printable range by their ASCII
27884 character equivalents.
27885 * localedata/locales/aa_ER: Likewise.
27886 * localedata/locales/aa_ER@saaho: Likewise.
27887 * localedata/locales/aa_ET: Likewise.
27888 * localedata/locales/af_ZA: Likewise.
27889 * localedata/locales/agr_PE: Likewise.
27890 * localedata/locales/ak_GH: Likewise.
27891 * localedata/locales/am_ET: Likewise.
27892 * localedata/locales/anp_IN: Likewise.
27893 * localedata/locales/ar_AE: Likewise.
27894 * localedata/locales/ar_BH: Likewise.
27895 * localedata/locales/ar_DZ: Likewise.
27896 * localedata/locales/ar_EG: Likewise.
27897 * localedata/locales/ar_IN: Likewise.
27898 * localedata/locales/ar_IQ: Likewise.
27899 * localedata/locales/ar_JO: Likewise.
27900 * localedata/locales/ar_KW: Likewise.
27901 * localedata/locales/ar_LB: Likewise.
27902 * localedata/locales/ar_LY: Likewise.
27903 * localedata/locales/ar_MA: Likewise.
27904 * localedata/locales/ar_OM: Likewise.
27905 * localedata/locales/ar_QA: Likewise.
27906 * localedata/locales/ar_SA: Likewise.
27907 * localedata/locales/ar_SD: Likewise.
27908 * localedata/locales/ar_SS: Likewise.
27909 * localedata/locales/ar_SY: Likewise.
27910 * localedata/locales/ar_TN: Likewise.
27911 * localedata/locales/ar_YE: Likewise.
27912 * localedata/locales/as_IN: Likewise.
27913 * localedata/locales/ast_ES: Likewise.
27914 * localedata/locales/ayc_PE: Likewise.
27915 * localedata/locales/az_AZ: Likewise.
27916 * localedata/locales/az_IR: Likewise.
27917 * localedata/locales/be_BY: Likewise.
27918 * localedata/locales/be_BY@latin: Likewise.
27919 * localedata/locales/bem_ZM: Likewise.
27920 * localedata/locales/ber_DZ: Likewise.
27921 * localedata/locales/ber_MA: Likewise.
27922 * localedata/locales/bg_BG: Likewise.
27923 * localedata/locales/bhb_IN: Likewise.
27924 * localedata/locales/bho_IN: Likewise.
27925 * localedata/locales/bi_VU: Likewise.
27926 * localedata/locales/bn_BD: Likewise.
27927 * localedata/locales/bn_IN: Likewise.
27928 * localedata/locales/bo_CN: Likewise.
27929 * localedata/locales/bo_IN: Likewise.
27930 * localedata/locales/br_FR: Likewise.
27931 * localedata/locales/brx_IN: Likewise.
27932 * localedata/locales/bs_BA: Likewise.
27933 * localedata/locales/byn_ER: Likewise.
27934 * localedata/locales/ca_AD: Likewise.
27935 * localedata/locales/ca_ES: Likewise.
27936 * localedata/locales/ca_FR: Likewise.
27937 * localedata/locales/ca_IT: Likewise.
27938 * localedata/locales/ce_RU: Likewise.
27939 * localedata/locales/chr_US: Likewise.
27940 * localedata/locales/cmn_TW: Likewise.
27941 * localedata/locales/crh_UA: Likewise.
27942 * localedata/locales/cs_CZ: Likewise.
27943 * localedata/locales/csb_PL: Likewise.
27944 * localedata/locales/cv_RU: Likewise.
27945 * localedata/locales/cy_GB: Likewise.
27946 * localedata/locales/da_DK: Likewise.
27947 * localedata/locales/de_AT: Likewise.
27948 * localedata/locales/de_BE: Likewise.
27949 * localedata/locales/de_CH: Likewise.
27950 * localedata/locales/de_DE: Likewise.
27951 * localedata/locales/de_IT: Likewise.
27952 * localedata/locales/de_LI: Likewise.
27953 * localedata/locales/de_LU: Likewise.
27954 * localedata/locales/doi_IN: Likewise.
27955 * localedata/locales/dv_MV: Likewise.
27956 * localedata/locales/dz_BT: Likewise.
27957 * localedata/locales/el_CY: Likewise.
27958 * localedata/locales/el_GR: Likewise.
27959 * localedata/locales/en_AG: Likewise.
27960 * localedata/locales/en_AU: Likewise.
27961 * localedata/locales/en_BW: Likewise.
27962 * localedata/locales/en_CA: Likewise.
27963 * localedata/locales/en_DK: Likewise.
27964 * localedata/locales/en_GB: Likewise.
27965 * localedata/locales/en_HK: Likewise.
27966 * localedata/locales/en_IE: Likewise.
27967 * localedata/locales/en_IL: Likewise.
27968 * localedata/locales/en_IN: Likewise.
27969 * localedata/locales/en_NG: Likewise.
27970 * localedata/locales/en_NZ: Likewise.
27971 * localedata/locales/en_PH: Likewise.
27972 * localedata/locales/en_SG: Likewise.
27973 * localedata/locales/en_US: Likewise.
27974 * localedata/locales/en_ZA: Likewise.
27975 * localedata/locales/en_ZM: Likewise.
27976 * localedata/locales/en_ZW: Likewise.
27977 * localedata/locales/eo: Likewise.
27978 * localedata/locales/es_AR: Likewise.
27979 * localedata/locales/es_BO: Likewise.
27980 * localedata/locales/es_CL: Likewise.
27981 * localedata/locales/es_CO: Likewise.
27982 * localedata/locales/es_CR: Likewise.
27983 * localedata/locales/es_CU: Likewise.
27984 * localedata/locales/es_DO: Likewise.
27985 * localedata/locales/es_EC: Likewise.
27986 * localedata/locales/es_ES: Likewise.
27987 * localedata/locales/es_GT: Likewise.
27988 * localedata/locales/es_HN: Likewise.
27989 * localedata/locales/es_MX: Likewise.
27990 * localedata/locales/es_NI: Likewise.
27991 * localedata/locales/es_PA: Likewise.
27992 * localedata/locales/es_PE: Likewise.
27993 * localedata/locales/es_PR: Likewise.
27994 * localedata/locales/es_PY: Likewise.
27995 * localedata/locales/es_SV: Likewise.
27996 * localedata/locales/es_US: Likewise.
27997 * localedata/locales/es_UY: Likewise.
27998 * localedata/locales/es_VE: Likewise.
27999 * localedata/locales/et_EE: Likewise.
28000 * localedata/locales/eu_ES: Likewise.
28001 * localedata/locales/eu_ES@euro: Likewise.
28002 * localedata/locales/fa_IR: Likewise.
28003 * localedata/locales/ff_SN: Likewise.
28004 * localedata/locales/fi_FI: Likewise.
28005 * localedata/locales/fil_PH: Likewise.
28006 * localedata/locales/fo_FO: Likewise.
28007 * localedata/locales/fr_BE: Likewise.
28008 * localedata/locales/fr_CA: Likewise.
28009 * localedata/locales/fr_CH: Likewise.
28010 * localedata/locales/fr_FR: Likewise.
28011 * localedata/locales/fr_LU: Likewise.
28012 * localedata/locales/fur_IT: Likewise.
28013 * localedata/locales/fy_DE: Likewise.
28014 * localedata/locales/fy_NL: Likewise.
28015 * localedata/locales/ga_IE: Likewise.
28016 * localedata/locales/gd_GB: Likewise.
28017 * localedata/locales/gez_ER: Likewise.
28018 * localedata/locales/gez_ET: Likewise.
28019 * localedata/locales/gl_ES: Likewise.
28020 * localedata/locales/gu_IN: Likewise.
28021 * localedata/locales/gv_GB: Likewise.
28022 * localedata/locales/ha_NG: Likewise.
28023 * localedata/locales/hak_TW: Likewise.
28024 * localedata/locales/he_IL: Likewise.
28025 * localedata/locales/hi_IN: Likewise.
28026 * localedata/locales/hif_FJ: Likewise.
28027 * localedata/locales/hne_IN: Likewise.
28028 * localedata/locales/hr_HR: Likewise.
28029 * localedata/locales/hsb_DE: Likewise.
28030 * localedata/locales/ht_HT: Likewise.
28031 * localedata/locales/hu_HU: Likewise.
28032 * localedata/locales/hy_AM: Likewise.
28033 * localedata/locales/i18n: Likewise.
28034 * localedata/locales/ia_FR: Likewise.
28035 * localedata/locales/id_ID: Likewise.
28036 * localedata/locales/ig_NG: Likewise.
28037 * localedata/locales/ik_CA: Likewise.
28038 * localedata/locales/is_IS: Likewise.
28039 * localedata/locales/it_CH: Likewise.
28040 * localedata/locales/it_IT: Likewise.
28041 * localedata/locales/iu_CA: Likewise.
28042 * localedata/locales/ja_JP: Likewise.
28043 * localedata/locales/ka_GE: Likewise.
28044 * localedata/locales/kk_KZ: Likewise.
28045 * localedata/locales/kl_GL: Likewise.
28046 * localedata/locales/kn_IN: Likewise.
28047 * localedata/locales/ko_KR: Likewise.
28048 * localedata/locales/kok_IN: Likewise.
28049 * localedata/locales/ks_IN: Likewise.
28050 * localedata/locales/ks_IN@devanagari: Likewise.
28051 * localedata/locales/ku_TR: Likewise.
28052 * localedata/locales/kw_GB: Likewise.
28053 * localedata/locales/ky_KG: Likewise.
28054 * localedata/locales/lb_LU: Likewise.
28055 * localedata/locales/lg_UG: Likewise.
28056 * localedata/locales/li_BE: Likewise.
28057 * localedata/locales/li_NL: Likewise.
28058 * localedata/locales/lij_IT: Likewise.
28059 * localedata/locales/ln_CD: Likewise.
28060 * localedata/locales/lo_LA: Likewise.
28061 * localedata/locales/lt_LT: Likewise.
28062 * localedata/locales/lv_LV: Likewise.
28063 * localedata/locales/lzh_TW: Likewise.
28064 * localedata/locales/mag_IN: Likewise.
28065 * localedata/locales/mai_IN: Likewise.
28066 * localedata/locales/mg_MG: Likewise.
28067 * localedata/locales/mhr_RU: Likewise.
28068 * localedata/locales/mi_NZ: Likewise.
28069 * localedata/locales/mk_MK: Likewise.
28070 * localedata/locales/ml_IN: Likewise.
28071 * localedata/locales/mn_MN: Likewise.
28072 * localedata/locales/mni_IN: Likewise.
28073 * localedata/locales/mr_IN: Likewise.
28074 * localedata/locales/ms_MY: Likewise.
28075 * localedata/locales/mt_MT: Likewise.
28076 * localedata/locales/my_MM: Likewise.
28077 * localedata/locales/nan_TW: Likewise.
28078 * localedata/locales/nan_TW@latin: Likewise.
28079 * localedata/locales/nb_NO: Likewise.
28080 * localedata/locales/nds_DE: Likewise.
28081 * localedata/locales/nds_NL: Likewise.
28082 * localedata/locales/ne_NP: Likewise.
28083 * localedata/locales/nhn_MX: Likewise.
28084 * localedata/locales/niu_NU: Likewise.
28085 * localedata/locales/niu_NZ: Likewise.
28086 * localedata/locales/nl_AW: Likewise.
28087 * localedata/locales/nl_BE: Likewise.
28088 * localedata/locales/nl_NL: Likewise.
28089 * localedata/locales/nn_NO: Likewise.
28090 * localedata/locales/nr_ZA: Likewise.
28091 * localedata/locales/nso_ZA: Likewise.
28092 * localedata/locales/oc_FR: Likewise.
28093 * localedata/locales/om_ET: Likewise.
28094 * localedata/locales/om_KE: Likewise.
28095 * localedata/locales/or_IN: Likewise.
28096 * localedata/locales/os_RU: Likewise.
28097 * localedata/locales/pa_IN: Likewise.
28098 * localedata/locales/pa_PK: Likewise.
28099 * localedata/locales/pap_AW: Likewise.
28100 * localedata/locales/pap_CW: Likewise.
28101 * localedata/locales/pl_PL: Likewise.
28102 * localedata/locales/ps_AF: Likewise.
28103 * localedata/locales/pt_BR: Likewise.
28104 * localedata/locales/pt_PT: Likewise.
28105 * localedata/locales/quz_PE: Likewise.
28106 * localedata/locales/raj_IN: Likewise.
28107 * localedata/locales/ro_RO: Likewise.
28108 * localedata/locales/ru_RU: Likewise.
28109 * localedata/locales/ru_UA: Likewise.
28110 * localedata/locales/rw_RW: Likewise.
28111 * localedata/locales/sa_IN: Likewise.
28112 * localedata/locales/sat_IN: Likewise.
28113 * localedata/locales/sc_IT: Likewise.
28114 * localedata/locales/sd_IN: Likewise.
28115 * localedata/locales/sd_IN@devanagari: Likewise.
28116 * localedata/locales/se_NO: Likewise.
28117 * localedata/locales/sgs_LT: Likewise.
28118 * localedata/locales/shs_CA: Likewise.
28119 * localedata/locales/si_LK: Likewise.
28120 * localedata/locales/sid_ET: Likewise.
28121 * localedata/locales/sk_SK: Likewise.
28122 * localedata/locales/sl_SI: Likewise.
28123 * localedata/locales/sm_WS: Likewise.
28124 * localedata/locales/so_DJ: Likewise.
28125 * localedata/locales/so_ET: Likewise.
28126 * localedata/locales/so_KE: Likewise.
28127 * localedata/locales/so_SO: Likewise.
28128 * localedata/locales/sq_AL: Likewise.
28129 * localedata/locales/sq_MK: Likewise.
28130 * localedata/locales/sr_ME: Likewise.
28131 * localedata/locales/sr_RS: Likewise.
28132 * localedata/locales/sr_RS@latin: Likewise.
28133 * localedata/locales/ss_ZA: Likewise.
28134 * localedata/locales/st_ZA: Likewise.
28135 * localedata/locales/sv_FI: Likewise.
28136 * localedata/locales/sv_SE: Likewise.
28137 * localedata/locales/sw_KE: Likewise.
28138 * localedata/locales/sw_TZ: Likewise.
28139 * localedata/locales/szl_PL: Likewise.
28140 * localedata/locales/ta_IN: Likewise.
28141 * localedata/locales/ta_LK: Likewise.
28142 * localedata/locales/tcy_IN: Likewise.
28143 * localedata/locales/te_IN: Likewise.
28144 * localedata/locales/tg_TJ: Likewise.
28145 * localedata/locales/th_TH: Likewise.
28146 * localedata/locales/the_NP: Likewise.
28147 * localedata/locales/ti_ER: Likewise.
28148 * localedata/locales/ti_ET: Likewise.
28149 * localedata/locales/tig_ER: Likewise.
28150 * localedata/locales/tk_TM: Likewise.
28151 * localedata/locales/tl_PH: Likewise.
28152 * localedata/locales/tn_ZA: Likewise.
28153 * localedata/locales/to_TO: Likewise.
28154 * localedata/locales/tpi_PG: Likewise.
28155 * localedata/locales/tr_CY: Likewise.
28156 * localedata/locales/tr_TR: Likewise.
28157 * localedata/locales/ts_ZA: Likewise.
28158 * localedata/locales/tt_RU: Likewise.
28159 * localedata/locales/tt_RU@iqtelif: Likewise.
28160 * localedata/locales/ug_CN: Likewise.
28161 * localedata/locales/uk_UA: Likewise.
28162 * localedata/locales/unm_US: Likewise.
28163 * localedata/locales/ur_IN: Likewise.
28164 * localedata/locales/ur_PK: Likewise.
28165 * localedata/locales/uz_UZ: Likewise.
28166 * localedata/locales/uz_UZ@cyrillic: Likewise.
28167 * localedata/locales/ve_ZA: Likewise.
28168 * localedata/locales/vi_VN: Likewise.
28169 * localedata/locales/wa_BE: Likewise.
28170 * localedata/locales/wae_CH: Likewise.
28171 * localedata/locales/wal_ET: Likewise.
28172 * localedata/locales/wo_SN: Likewise.
28173 * localedata/locales/xh_ZA: Likewise.
28174 * localedata/locales/yi_US: Likewise.
28175 * localedata/locales/yo_NG: Likewise.
28176 * localedata/locales/yue_HK: Likewise.
28177 * localedata/locales/yuw_PG: Likewise.
28178 * localedata/locales/zh_CN: Likewise.
28179 * localedata/locales/zh_HK: Likewise.
28180 * localedata/locales/zh_SG: Likewise.
28181 * localedata/locales/zh_TW: Likewise.
28182 * localedata/locales/zu_ZA: Likewise.
28183
28184 2017-11-13 Florian Weimer <fweimer@redhat.com>
28185
28186 * support/next_to_fault.h, support/next_to_fault.c: New files.
28187 * support/Makefile (libsupport-routines): Add next_to_fault.
28188 * resolv/tst-inet_pton.c (struct next_to_fault)
28189 (next_to_fault_allocate, next_to_fault_free): Remove.
28190 (run_one_test): Switch to <support/next_to_fault.h> interfaces.
28191
28192 2017-11-13 H.J. Lu <hongjiu.lu@intel.com>
28193
28194 * elf/dl-support.c: Include <dl-procruntime.c>.
28195 * include/link.h: Include <link_map.h>.
28196 * sysdeps/generic/dl-procruntime.c: New file.
28197 * sysdeps/generic/link_map.h: Likewise.
28198 * sysdeps/generic/ldsodefs.h: Include <dl-procruntime.c> in
28199 the writable ld.so namespace.
28200
28201 2017-11-12 Paul Eggert <eggert@cs.ucla.edu>
28202
28203 timezone: pacify GCC -Wstringop-truncation
28204 Problem reported by Martin Sebor in:
28205 https://sourceware.org/ml/libc-alpha/2017-11/msg00336.html
28206 * timezone/zic.c (writezone): Use memcpy, not strncpy.
28207
28208 2017-11-12 Florian Weimer <fweimer@redhat.com>
28209
28210 * support/Makefile (libsupport-routines): Add xreadlink, xstrndup,
28211 tst-xreadlink.
28212 (tests): Add tst-xreadlink.
28213 * support/support.h (xstrndup): Declare.
28214 * support/xunistd.h (xunlink, xreadlink): Declare.
28215 * support/temp_file.h (support_create_temp_directory): Declare.
28216 * support/temp_file.c (support_create_temp_directory): New function.
28217 * support/support_chroot.c (support_chroot_create): Use it.
28218 * support/xreadlink.c: New file.
28219 * support/xstrndup.c: Likewise.
28220 * support/xunlink.c: Likewise.
28221 * support/tst-xreadlink.c: Likewise.
28222
28223 2017-11-11 John David Anglin <danglin@gcc.gnu.org>
28224
28225 * sysdeps/hppa/fpu/libm-test-ulps: Update clog10_downward ulps.
28226
28227 2017-11-11 Florian Weimer <fweimer@redhat.com>
28228
28229 [BZ #22409]
28230 [BZ #22412]
28231 * resolv/res_comp.c (printable_string, binary_hnok)
28232 (binary_leading_dash): New functions.
28233 (res_hnok): Reimplement using these functions and ns_name_pton.
28234 (res_ownok): Likewise.
28235 (res_mailok): Reimplement using printable_string, ns_name_pton and
28236 binary_hnok.
28237 (res_dnok): Reimplement using printable_string and ns_name_pton.
28238 * resolv/tst-res_hnok.c (tests): Add additional tests.
28239 (LETTERDIGITS, PRINTABLE): Define.
28240 (do_test): Adjust one_char results.
28241
28242 2017-11-11 Florian Weimer <fweimer@redhat.com>
28243
28244 [BZ #22413]
28245 * resolv/ns_name.c (ns_name_pton): Treat trailing backslash as error.
28246 * resolv/tst-ns_name_pton.c (tests): Add trailing backslash tests.
28247
28248 2017-11-11 Florian Weimer <fweimer@redhat.com>
28249
28250 * resolv/tst-ns_name_pton.c: New file.
28251 * resolv/Makefile (tests): Add tst-ns_name_pton.
28252 (tst-ns_name_pton): Link against libresolv.
28253
28254 2017-11-11 Florian Weimer <fweimer@redhat.com>
28255
28256 * resolv/tst-res_hnok.c: New file.
28257 * resolv/Makefile (tests): Add tst-res_hnok.
28258 (tst-res_hnok): Link against libresolv.
28259
28260 2017-11-11 Florian Weimer <fweimer@redhat.com>
28261
28262 * resolv/tst-resolv-network.c: Use test framework instead explicit
28263 main function.
28264
28265 2017-11-09 H.J. Lu <hongjiu.lu@intel.com>
28266
28267 * include/setjmp.h [!_ISOMAC]: Include <stddef.h> and
28268 <jmp_buf-macros.h>.
28269 [!_ISOMAC] (STR_HELPER): New.
28270 [!_ISOMAC] (STR): Likewise.
28271 [!_ISOMAC] (TEST_SIZE): Likewise.
28272 [!_ISOMAC] (TEST_ALIGN): Likewise.
28273 [!_ISOMAC] (TEST_OFFSET): Likewise.
28274 [!_ISOMAC] Add _Static_assert to check sizes, alignments and
28275 field offsets of jmp_buf as well as sigjmp_buf.
28276 * sysdeps/unix/sysv/linux/aarch64/jmp_buf-macros.h: Likewise.
28277 * sysdeps/unix/sysv/linux/alpha/jmp_buf-macros.h: Likewise.
28278 * sysdeps/unix/sysv/linux/arm/jmp_buf-macros.h: Likewise.
28279 * sysdeps/unix/sysv/linux/hppa/jmp_buf-macros.h: Likewise.
28280 * sysdeps/unix/sysv/linux/i386/jmp_buf-macros.h: Likewise.
28281 * sysdeps/unix/sysv/linux/ia64/jmp_buf-macros.h: Likewise.
28282 * sysdeps/unix/sysv/linux/m68k/jmp_buf-macros.h: Likewise.
28283 * sysdeps/unix/sysv/linux/microblaze/jmp_buf-macros.h: Likewise.
28284 * sysdeps/unix/sysv/linux/mips/mips32/jmp_buf-macros.h: Likewise.
28285 * sysdeps/unix/sysv/linux/mips/mips64/n32/jmp_buf-macros.h:
28286 Likewise.
28287 * sysdeps/unix/sysv/linux/mips/mips64/n64/jmp_buf-macros.h:
28288 Likewise.
28289 * sysdeps/unix/sysv/linux/nios2/jmp_buf-macros.h: Likewise.
28290 * sysdeps/unix/sysv/linux/powerpc/powerpc32/jmp_buf-macros.h:
28291 Likewise.
28292 * sysdeps/unix/sysv/linux/powerpc/powerpc64/jmp_buf-macros.h:
28293 Likewise.
28294 * sysdeps/unix/sysv/linux/s390/s390-32/jmp_buf-macros.h: Likewise.
28295 * sysdeps/unix/sysv/linux/s390/s390-64/jmp_buf-macros.h: Likewise.
28296 * sysdeps/unix/sysv/linux/sh/jmp_buf-macros.h: Likewise.
28297 * sysdeps/unix/sysv/linux/sparc/sparc32/jmp_buf-macros.h: Likewise.
28298 * sysdeps/unix/sysv/linux/sparc/sparc64/jmp_buf-macros.h: Likewise.
28299 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/jmp_buf-macros.h:
28300 Likewise.
28301 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/jmp_buf-macros.h:
28302 Likewise.
28303 * sysdeps/unix/sysv/linux/tile/tilepro/jmp_buf-macros.h: Likewise.
28304 * sysdeps/unix/sysv/linux/x86_64/64/jmp_buf-macros.h: Likewise.
28305 * sysdeps/unix/sysv/linux/x86_64/x32/jmp_buf-macros.h: Likewise.
28306
28307 2017-11-07 Joseph Myers <joseph@codesourcery.com>
28308
28309 * include/float.h
28310 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
28311 && __HAVE_FLOAT32] (FLT32_MANT_DIG): New macro.
28312 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
28313 && __HAVE_FLOAT32] (FLT32_DECIMAL_DIG): Likewise.
28314 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
28315 && __HAVE_FLOAT32] (FLT32_DIG): Likewise.
28316 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
28317 && __HAVE_FLOAT32] (FLT32_MIN_EXP): Likewise.
28318 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
28319 && __HAVE_FLOAT32] (FLT32_MIN_10_EXP): Likewise.
28320 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
28321 && __HAVE_FLOAT32] (FLT32_MAX_EXP): Likewise.
28322 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
28323 && __HAVE_FLOAT32] (FLT32_MAX_10_EXP): Likewise.
28324 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
28325 && __HAVE_FLOAT32] (FLT32_MAX): Likewise.
28326 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
28327 && __HAVE_FLOAT32] (FLT32_EPSILON): Likewise.
28328 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
28329 && __HAVE_FLOAT32] (FLT32_MIN): Likewise.
28330 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
28331 && __HAVE_FLOAT32] (FLT32_TRUE_MIN): Likewise.
28332 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
28333 && __HAVE_FLOAT64] (FLT64_MANT_DIG): Likewise.
28334 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
28335 && __HAVE_FLOAT64] (FLT64_DECIMAL_DIG): Likewise.
28336 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
28337 && __HAVE_FLOAT64] (FLT64_DIG): Likewise.
28338 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
28339 && __HAVE_FLOAT64] (FLT64_MIN_EXP): Likewise.
28340 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
28341 && __HAVE_FLOAT64] (FLT64_MIN_10_EXP): Likewise.
28342 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
28343 && __HAVE_FLOAT64] (FLT64_MAX_EXP): Likewise.
28344 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
28345 && __HAVE_FLOAT64] (FLT64_MAX_10_EXP): Likewise.
28346 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
28347 && __HAVE_FLOAT64] (FLT64_MAX): Likewise.
28348 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
28349 && __HAVE_FLOAT64] (FLT64_EPSILON): Likewise.
28350 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
28351 && __HAVE_FLOAT64] (FLT64_MIN): Likewise.
28352 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
28353 && __HAVE_FLOAT64] (FLT64_TRUE_MIN): Likewise.
28354 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
28355 && __HAVE_FLOAT32X] (FLT32X_MANT_DIG): Likewise.
28356 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
28357 && __HAVE_FLOAT32X] (FLT32X_DECIMAL_DIG): Likewise.
28358 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
28359 && __HAVE_FLOAT32X] (FLT32X_DIG): Likewise.
28360 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
28361 && __HAVE_FLOAT32X] (FLT32X_MIN_EXP): Likewise.
28362 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
28363 && __HAVE_FLOAT32X] (FLT32X_MIN_10_EXP): Likewise.
28364 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
28365 && __HAVE_FLOAT32X] (FLT32X_MAX_EXP): Likewise.
28366 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
28367 && __HAVE_FLOAT32X] (FLT32X_MAX_10_EXP): Likewise.
28368 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
28369 && __HAVE_FLOAT32X] (FLT32X_MAX): Likewise.
28370 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
28371 && __HAVE_FLOAT32X] (FLT32X_EPSILON): Likewise.
28372 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
28373 && __HAVE_FLOAT32X] (FLT32X_MIN): Likewise.
28374 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
28375 && __HAVE_FLOAT32X] (FLT32X_TRUE_MIN): Likewise.
28376 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
28377 && __HAVE_FLOAT64X] (FLT64X_MANT_DIG): Likewise.
28378 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
28379 && __HAVE_FLOAT64X] (FLT64X_DECIMAL_DIG): Likewise.
28380 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
28381 && __HAVE_FLOAT64X] (FLT64X_DIG): Likewise.
28382 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
28383 && __HAVE_FLOAT64X] (FLT64X_MIN_EXP): Likewise.
28384 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
28385 && __HAVE_FLOAT64X] (FLT64X_MIN_10_EXP): Likewise.
28386 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
28387 && __HAVE_FLOAT64X] (FLT64X_MAX_EXP): Likewise.
28388 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
28389 && __HAVE_FLOAT64X] (FLT64X_MAX_10_EXP): Likewise.
28390 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
28391 && __HAVE_FLOAT64X] (FLT64X_MAX): Likewise.
28392 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
28393 && __HAVE_FLOAT64X] (FLT64X_EPSILON): Likewise.
28394 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
28395 && __HAVE_FLOAT64X] (FLT64X_MIN): Likewise.
28396 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
28397 && __HAVE_FLOAT64X] (FLT64X_TRUE_MIN): Likewise.
28398
28399 * stdlib/tst-strtod.h (F16): New macro.
28400 (F32): Likewise.
28401 (F64): Likewise.
28402 (F32X): Likewise.
28403 (F64X): Likewise.
28404 (F128X): Likewise.
28405 (IF_FLOAT16): Likewise.
28406 (IF_FLOAT32): Likewise.
28407 (IF_FLOAT64): Likewise.
28408 (IF_FLOAT32X): Likewise.
28409 (IF_FLOAT64X): Likewise.
28410 (IF_FLOAT128X): Likewise.
28411 (GEN_TEST_STRTOD_FOREACH): Conditionally call macros for _Float16,
28412 _Float32, _Float64, _Float32x, _Float64x and _Float128x.
28413 (STRTOD_TEST_FOREACH): Likewise.
28414 * stdlib/tst-strtod-round-skeleton.c (CHOOSE_f32): New macro.
28415 (CHOOSE_f64): Likewise.
28416 (CHOOSE_f32x): Likewise.
28417 (CHOOSE_f64x): Likewise.
28418
28419 2017-11-07 Andreas Schwab <schwab@suse.de>
28420
28421 * nptl/Makefile (tests-internal): Remove tst-typesizes.
28422
28423 2017-11-07 Mike FABIAN <mfabian@redhat.com>
28424
28425 [BZ #22403]
28426 * localedata/locales/mfe_MU (LC_TIME): Fix wrong d_fmt, / needs
28427 to be escaped.
28428 * localedata/locales/miq_NI (LC_TIME): Fix wrong d_fmt, / needs
28429 to be escaped.
28430
28431 2017-11-07 Claude Paroz <claude@2xlibre.net>
28432
28433 [BZ #22403]
28434 * localedata/locales/an_ES (LC_TIME): Fix wrong d_fmt, / needs
28435 to be escaped.
28436 * localedata/locales/kab_DZ (LC_TIME): Fix wrong d_fmt, / needs
28437 to be escaped.
28438 * localedata/locales/om_ET (LC_TIME): Fix wrong d_fmt, / needs
28439 to be escaped.
28440
28441 2017-11-07 Adhemerval Zanella <adhemerval.zanella@linaro.org>
28442
28443 [BZ #22298]
28444 * nptl/allocatestack.c (allocate_stack): Check if
28445 __PTHREAD_MUTEX_HAVE_PREV is non-zero, instead if
28446 __PTHREAD_MUTEX_HAVE_PREV is defined.
28447 * nptl/descr.h (pthread): Likewise.
28448 * nptl/nptl-init.c (__pthread_initialize_minimal_internal):
28449 Likewise.
28450 * nptl/pthread_create.c (START_THREAD_DEFN): Likewise.
28451 * sysdeps/nptl/fork.c (__libc_fork): Likewise.
28452 * sysdeps/nptl/pthread.h (PTHREAD_MUTEX_INITIALIZER): Likewise.
28453 * sysdeps/nptl/bits/thread-shared-types.h
28454 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION): New
28455 defines.
28456 (__pthread_internal_list): Check __PTHREAD_MUTEX_USE_UNION instead
28457 of __WORDSIZE for internal layout.
28458 (__pthread_mutex_s): Check __PTHREAD_MUTEX_NUSERS_AFTER_KIND instead
28459 of __WORDSIZE for internal __nusers layout and __PTHREAD_MUTEX_USE_UNION
28460 instead of __WORDSIZE whether to use an union for __spins and __list
28461 fields.
28462 (__PTHREAD_MUTEX_HAVE_PREV): Define also for __PTHREAD_MUTEX_USE_UNION
28463 case.
28464 * sysdeps/aarch64/nptl/bits/pthreadtypes-arch.h
28465 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION): New
28466 defines.
28467 * sysdeps/alpha/nptl/bits/pthreadtypes-arch.h
28468 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
28469 Likewise.
28470 * sysdeps/arm/nptl/bits/pthreadtypes-arch.h
28471 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
28472 Likewise.
28473 * sysdeps/hppa/nptl/bits/pthreadtypes-arch.h
28474 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
28475 Likewise.
28476 * sysdeps/ia64/nptl/bits/pthreadtypes-arch.h
28477 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
28478 Likewise.
28479 * sysdeps/m68k/nptl/bits/pthreadtypes-arch.h
28480 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
28481 Likewise.
28482 * sysdeps/microblaze/nptl/bits/pthreadtypes-arch.h
28483 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
28484 Likewise.
28485 * sysdeps/mips/nptl/bits/pthreadtypes-arch.h
28486 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
28487 Likewise.
28488 * sysdeps/nios2/nptl/bits/pthreadtypes-arch.h
28489 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
28490 Likewise.
28491 * sysdeps/powerpc/nptl/bits/pthreadtypes-arch.h
28492 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
28493 Likewise.
28494 * sysdeps/s390/nptl/bits/pthreadtypes-arch.h
28495 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
28496 Likewise.
28497 * sysdeps/sh/nptl/bits/pthreadtypes-arch.h
28498 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
28499 Likewise.
28500 * sysdeps/sparc/nptl/bits/pthreadtypes-arch.h
28501 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
28502 Likewise.
28503 * sysdeps/tile/nptl/bits/pthreadtypes-arch.h
28504 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
28505 Likewise.
28506 * sysdeps/x86/nptl/bits/pthreadtypes-arch.h
28507 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
28508 Likewise.
28509
28510 * nptl/pthreadP.h (ASSERT_TYPE_SIZE, ASSERT_PTHREAD_INTERNAL_SIZE):
28511 New macros.
28512 * nptl/pthread_attr_init.c (__pthread_mutex_init): Add build time
28513 checks for expected input type size.
28514 * nptl/pthread_barrier_init.c (__pthread_barrier_init): Likewise.
28515 * nptl/pthread_barrierattr_init.c (pthread_barrierattr_init):
28516 Likewise.
28517 * nptl/pthread_cond_init.c (__pthread_cond_init): Likewise.
28518 * nptl/pthread_condattr_init.c (__pthread_condattr_init): Likewise.
28519 * nptl/pthread_mutex_init.c (__pthread_mutex_init): Likewise.
28520 * nptl/pthread_mutexattr_init.c (__pthread_mutexattr_init): Likewise.
28521 * nptl/pthread_rwlock_init.c (__pthread_rwlock_init): Likewise.
28522 * nptl/pthread_rwlockattr_init.c (pthread_rwlockattr_init): Likewise.
28523 * nptl/sem_init.c (__new_sem_init, __old_sem_init): Likewise
28524 * nptl/pthread_attr_destroy.c (__pthread_attr_destroy): Remove
28525 superflous runtime assert check.
28526 * nptl/pthread_attr_getaffinity.c (__pthread_attr_getaffinity_new):
28527 Likewise.
28528 * nptl/pthread_attr_getdetachstate.c (__pthread_attr_getdetachstate):
28529 Likewise.
28530 * nptl/pthread_attr_getguardsize.c (pthread_attr_getguardsize):
28531 Likewise.
28532 * nptl/pthread_attr_getinheritsched.c (__pthread_attr_getinheritsched):
28533 Likewise.
28534 * nptl/pthread_attr_getschedparam.c (__pthread_attr_getschedparam):
28535 Likewise.
28536 * nptl/pthread_attr_getschedpolicy.c (__pthread_attr_getschedpolicy):
28537 Likewise.
28538 * nptl/pthread_attr_getscope.c (__pthread_attr_getscope): Likewise.
28539 * nptl/pthread_attr_getstack.c (__pthread_attr_getstack): Likewise.
28540 * nptl/pthread_attr_getstackaddr.c (__pthread_attr_getstackaddr):
28541 Likewise.
28542 * nptl/pthread_attr_getstacksize.c (__pthread_attr_getstacksize):
28543 Likewise.
28544 * nptl/pthread_attr_setaffinity.c (__pthread_attr_setaffinity_new):
28545 Likewise.
28546 * nptl/pthread_attr_setdetachstate.c (__pthread_attr_setdetachstate):
28547 Likewise.
28548 * nptl/pthread_attr_setguardsize.c (pthread_attr_setguardsize):
28549 Likewise.
28550 * nptl/pthread_attr_setinheritsched.c
28551 (__pthread_attr_setinheritsched): Likewise.
28552 * nptl/pthread_attr_setschedparam.c (__pthread_attr_setschedparam):
28553 Likewise.
28554 * nptl/pthread_attr_setschedpolicy.c (__pthread_attr_setschedpolicy):
28555 Likewise.
28556 * nptl/pthread_attr_setscope.c (__pthread_attr_setscope): Likewise.
28557 * nptl/pthread_attr_setstack.c (__pthread_attr_setstack,
28558 __old_pthread_attr_setstack): Likewise.
28559 * nptl/pthread_attr_setstackaddr.c (__pthread_attr_setstackaddr):
28560 Likewise.
28561 * nptl/pthread_attr_setstacksize.c (__pthread_attr_setstacksize):
28562 Likewise.
28563 * nptl/pthread_getattr_default_np.c (pthread_getattr_default_np):
28564 Likewise.
28565 * nptl/pthread_mutex_lock.c (__pthread_mutex_lock): Likewise.
28566 * nptl/pthread_setattr_default_np.c (pthread_setattr_default_np):
28567 Likewise.
28568 * nptl/tst-typesizes.c: Remove file.
28569
28570 * nptl/pthreadP.h (ASSERT_PTHREAD_STRING,
28571 ASSERT_PTHREAD_INTERNAL_OFFSET): New macro.
28572 * nptl/pthread_mutex_init.c (__pthread_mutex_init): Add build time
28573 checks for internal pthread_mutex_t offsets.
28574 * sysdeps/aarch64/nptl/pthread-offsets.h
28575 (__PTHREAD_MUTEX_NUSERS_OFFSET, __PTHREAD_MUTEX_KIND_OFFSET,
28576 __PTHREAD_MUTEX_SPINS_OFFSET, __PTHREAD_MUTEX_ELISION_OFFSET,
28577 __PTHREAD_MUTEX_LIST_OFFSET): New macro.
28578 * sysdeps/alpha/nptl/pthread-offsets.h: Likewise.
28579 * sysdeps/arm/nptl/pthread-offsets.h: Likewise.
28580 * sysdeps/hppa/nptl/pthread-offsets.h: Likewise.
28581 * sysdeps/i386/nptl/pthread-offsets.h: Likewise.
28582 * sysdeps/ia64/nptl/pthread-offsets.h: Likewise.
28583 * sysdeps/m68k/nptl/pthread-offsets.h: Likewise.
28584 * sysdeps/microblaze/nptl/pthread-offsets.h: Likewise.
28585 * sysdeps/mips/nptl/pthread-offsets.h: Likewise.
28586 * sysdeps/nios2/nptl/pthread-offsets.h: Likewise.
28587 * sysdeps/powerpc/nptl/pthread-offsets.h: Likewise.
28588 * sysdeps/s390/nptl/pthread-offsets.h: Likewise.
28589 * sysdeps/sh/nptl/pthread-offsets.h: Likewise.
28590 * sysdeps/sparc/nptl/pthread-offsets.h: Likewise.
28591 * sysdeps/tile/nptl/pthread-offsets.h: Likewise.
28592 * sysdeps/x86_64/nptl/pthread-offsets.h: Likewise.
28593
28594 2017-11-07 Florian Weimer <fweimer@redhat.com>
28595
28596 * bits/mman-linux.h: Move ...
28597 * sysdeps/unix/sysv/linux/bits/mman-linux.h: ... here. Update
28598 comment.
28599 * sysdeps/unix/sysv/linux/bits/Makefile (sysdep_headers): Remove
28600 outdated comment.
28601
28602 2017-11-07 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
28603
28604 * sysdeps/powerpc/powerpc64/multiarch/strcasestr-power8.S (STRNLEN):
28605 Redefine STRNLEN as __strnlen_power8.
28606
28607 2017-11-06 Adhemerval Zanella <adhemerval.zanella@linaro.org>
28608
28609 * signal/sighold.c (sighold): Optimize implementation.
28610
28611 * sysdeps/unix/sysv/linux/sigqueue.c (__sigqueue): Asssume
28612 __NR_rt_sigqueueinfo.
28613
28614 * sysdeps/unix/sysv/linux/Versions (libc) [GLIBC_PRIVATE]: Add
28615 __sigtimedwait.
28616 * sysdeps/unix/sysv/linux/sigtimedwait.c: Simplify includes and
28617 assume __NR_rt_sigtimedwait.
28618 * sysdeps/unix/sysv/linux/sigwait.c (__sigwait): Call __sigtimedwait
28619 and add LIBC_CANCEL_HANDLED for cancellation marking.
28620 * sysdeps/unix/sysv/linux/sigwaitinfo.c (__sigwaitinfo): Likewise.
28621
28622 * sysdeps/arm/armv7/multiarch/Makefile [$(subdir) = string]
28623 (sysdeps_routines): Add memchr_noneon.
28624 * sysdeps/arm/armv7/multiarch/ifunc-memchr.h: New file.
28625 * sysdeps/arm/armv7/multiarch/memchr_noneon.S: Likewise.
28626 * sysdeps/arm/armv7/multiarch/rtld-memchr.S: Likewise.
28627 * sysdeps/arm/armv7/multiarch/memchr.S: Remove file.
28628 * sysdeps/arm/armv7/multiarch/memchr.c: New file.
28629 * sysdeps/arm/armv7/multiarch/memchr_impl.S: Move to ...
28630 * sysdeps/arm/armv7/multiarch/memchr_neon.S: ... here.
28631
28632 * sysdeps/arm/arm-ifunc.h: New file.
28633 * sysdeps/arm/armv7/multiarch/ifunc-memcpy.h: Likewise.
28634 * sysdeps/arm/armv7/multiarch/memcpy.c: Likewise.
28635 * sysdeps/arm/armv7/multiarch/memcpy_arm.S: Likewise.
28636 * sysdeps/arm/armv7/multiarch/rtld-memcpy.S: Likewise.
28637 * sysdeps/arm/armv7/multiarch/memcpy_neon.S [!__ARM_NEON__]
28638 (__memcpy_neon): Avoid create hidden alias.
28639 * sysdeps/arm/armv7/multiarch/memcpy_vfp.S [!__ARM_NEON_]
28640 (__memcpy_vfp): Likewise.
28641 * sysdeps/arm/armv7/multiarch/Makefile [$(subdir) = string]
28642 (sysdep_routines): Add memcpy_arm.
28643 * sysdeps/arm/armv7/multiarch/memcpy.S: Remove file.
28644
28645 2017-11-06 H.J. Lu <hongjiu.lu@intel.com>
28646
28647 [BZ #22362]
28648 * Makerules (make-link-multidir): New.
28649 * config.make.in (multidir): New.
28650 * configure.ac (libc_cv_multidir): New. AC_SUBST.
28651 * configure: Regenerated.
28652 * csu/Makefile [$(multidir) != .](multilib-extra-objs): New.
28653 [$(multidir) != .](extra-objs): Add $(multilib-extra-objs).
28654 [$(multidir) != .]($(addprefix $(objpfx)$(multidir)/, $(install-lib))):
28655 New target.
28656
28657 2017-11-06 Joseph Myers <joseph@codesourcery.com>
28658
28659 [BZ #22402]
28660 * sysdeps/powerpc/bits/floatn.h: Include <bits/long-double.h>.
28661 [__NO_LONG_DOUBLE_MATH] (__HAVE_FLOAT128): Define to 0.
28662
28663 2017-11-04 Mike FABIAN <mfabian@redhat.com>
28664
28665 * localedata/locales/tpi_PG (LC_TIME): Fix wrong d_fmt, / needs
28666 to be escaped.
28667
28668 2017-11-04 Florian Weimer <fweimer@redhat.com>
28669
28670 * manual/llio.texi (Open-time Flags): Document O_TMPFILE.
28671
28672 2017-11-03 Joseph Myers <joseph@codesourcery.com>
28673
28674 * math/math.h [__HAVE_DISTINCT_FLOAT16
28675 || __HAVE_DISTINCT_FLOAT32 || __HAVE_DISTINCT_FLOAT64
28676 || __HAVE_DISTINCT_FLOAT32X || __HAVE_DISTINCT_FLOAT64X
28677 || __HAVE_DISTINCT_FLOAT128X]: Use #error.
28678 [__NO_LONG_DOUBLE_MATH && __HAVE_DISTINCT_FLOAT128]: Likewise.
28679 [__HAVE_DISTINCT_FLOAT128 && !__HAVE_GENERIC_SELECTION
28680 && __HAVE_FLOATN_NOT_TYPEDEF]: Likewise.
28681 [__HAVE_DISTINCT_FLOAT128 && __HAVE_GENERIC_SELECTION]
28682 (__MATH_TG_F32): New macro.
28683 [__HAVE_DISTINCT_FLOAT128 && __HAVE_GENERIC_SELECTION]
28684 (__MATH_TG_F64X): Likewise.
28685 [__HAVE_DISTINCT_FLOAT128 && __HAVE_GENERIC_SELECTION]
28686 (__MATH_TG): Use __MATH_TG_F32 and __MATH_TG_F64X.
28687
28688 2017-11-03 Dmitry V. Levin <ldv@altlinux.org>
28689
28690 * po/de.po: Update translations.
28691 * po/ru.po: Likewise.
28692
28693 2017-11-03 Florian Weimer <fweimer@redhat.com>
28694
28695 * manual/filesys.texi (Hard Links): Document linkat.
28696
28697 2017-11-03 Joseph Myers <joseph@codesourcery.com>
28698
28699 * math/tgmath.h [__HAVE_DISTINCT_FLOAT16
28700 || __HAVE_DISTINCT_FLOAT32 || __HAVE_DISTINCT_FLOAT64
28701 || __HAVE_DISTINCT_FLOAT32X || __HAVE_DISTINCT_FLOAT64X
28702 || __HAVE_DISTINCT_FLOAT128X]: Use #error.
28703 [__HAVE_DISTINCT_FLOAT128 && __GLIBC_USE (IEC_60559_TYPES_EXT)
28704 && __HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE
28705 && __HAVE_FLOATN_NOT_TYPEDEF] (__TGMATH_F128): Handle _Float64x
28706 the same as _Float128.
28707 [__HAVE_DISTINCT_FLOAT128 && __GLIBC_USE (IEC_60559_TYPES_EXT)
28708 && __HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE
28709 && __HAVE_FLOATN_NOT_TYPEDEF] (__TGMATH_CF128): Likewise.
28710
28711 * stdlib/stdlib.h
28712 [__HAVE_FLOAT16 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (strtof16):
28713 Declare.
28714 [__HAVE_FLOAT32 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (strtof32):
28715 Likewise.
28716 [__HAVE_FLOAT64 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (strtof64):
28717 Likewise.
28718 [__HAVE_FLOAT32X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
28719 (strtof32x): Likewise.
28720 [__HAVE_FLOAT64X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
28721 (strtof64x): Likewise.
28722 [__HAVE_FLOAT128X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
28723 (strtof128x): Likewise.
28724 [__HAVE_FLOAT16 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
28725 (strfromf16): Likewise.
28726 [__HAVE_FLOAT32 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
28727 (strfromf32): Likewise.
28728 [__HAVE_FLOAT64 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
28729 (strfromf64): Likewise.
28730 [__HAVE_FLOAT32X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
28731 (strfromf32x): Likewise.
28732 [__HAVE_FLOAT64X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
28733 (strfromf64x): Likewise.
28734 [__HAVE_FLOAT128X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
28735 (strfromf128x): Likewise.
28736 [__USE_GNU && __HAVE_FLOAT16] (strtof16_l): Likewise.
28737 [__USE_GNU && __HAVE_FLOAT32] (strtof32_l): Likewise.
28738 [__USE_GNU && __HAVE_FLOAT64] (strtof64_l): Likewise.
28739 [__USE_GNU && __HAVE_FLOAT32X] (strtof32x_l): Likewise.
28740 [__USE_GNU && __HAVE_FLOAT64X] (strtof64x_l): Likewise.
28741 [__USE_GNU && __HAVE_FLOAT128X] (strtof128x_l): Likewise.
28742
28743 2017-11-03 Richard Henderson <rth@twiddle.net>
28744
28745 * sysdeps/unix/sysv/linux/aarch64/sysconf.c: New file.
28746
28747 2017-11-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
28748
28749 * sysdeps/aarch64/dl-tlsdesc.S (_dl_tlsdesc_dynamic): Optimize.
28750
28751 2017-11-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
28752
28753 * sysdeps/arm/dl-machine.h (elf_machine_runtime_setup): Remove
28754 DT_TLSDESC_GOT initialization.
28755 * sysdeps/arm/dl-tlsdesc.S (_dl_tlsdesc_lazy_resolver): Remove.
28756 (_dl_tlsdesc_resolve_hold): Likewise.
28757 * sysdeps/aarch64/dl-tlsdesc.h (_dl_tlsdesc_lazy_resolver): Remove.
28758 (_dl_tlsdesc_resolve_hold): Likewise.
28759 * sysdeps/aarch64/tlsdesc.c (_dl_tlsdesc_lazy_resolver_fixup): Remove.
28760 (_dl_tlsdesc_resolve_hold_fixup): Likewise.
28761
28762 2017-11-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
28763
28764 * sysdeps/arm/dl-machine.h (elf_machine_rel): Remove volatile.
28765
28766 2017-11-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
28767
28768 [BZ #18572]
28769 * sysdeps/arm/dl-machine.h (elf_machine_lazy_rel): Do symbol binding
28770 non-lazily for R_ARM_TLS_DESC.
28771
28772 2017-11-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
28773
28774 [BZ #17078]
28775 * sysdeps/arm/dl-machine.h (elf_machine_rela): Remove the
28776 R_ARM_TLS_DESC case.
28777 (elf_machine_lazy_rel): Remove the prelink check.
28778
28779 2017-11-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
28780
28781 * sysdeps/aarch64/dl-machine.h (elf_machine_runtime_setup): Remove
28782 DT_TLSDESC_GOT initialization.
28783 * sysdeps/aarch64/dl-tlsdesc.S (_dl_tlsdesc_return_lazy): Remove.
28784 (_dl_tlsdesc_resolve_rela): Likewise.
28785 (_dl_tlsdesc_resolve_hold): Likewise.
28786 (_dl_tlsdesc_undefweak): Remove ldar.
28787 (_dl_tlsdesc_dynamic): Likewise.
28788 * sysdeps/aarch64/dl-tlsdesc.h (_dl_tlsdesc_return_lazy): Remove.
28789 (_dl_tlsdesc_resolve_rela): Likewise.
28790 (_dl_tlsdesc_resolve_hold): Likewise.
28791 * sysdeps/aarch64/tlsdesc.c (_dl_tlsdesc_resolve_rela_fixup): Remove.
28792 (_dl_tlsdesc_resolve_hold_fixup): Likewise.
28793 (_dl_tlsdesc_resolve_rela): Likewise.
28794 (_dl_tlsdesc_resolve_hold): Likewise.
28795
28796 2017-11-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
28797
28798 * sysdeps/aarch64/dl-machine.h (elf_machine_lazy_rel): Do symbol
28799 binding and initialization non-lazily for R_AARCH64_TLSDESC.
28800
28801 2017-11-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
28802
28803 * elf/tlsdeschtab.h (_dl_tls_resolve_early_return_p): Mark unused.
28804 (_dl_tlsdesc_wake_up_held_fixups): Likewise.
28805
28806 2017-11-02 Joseph Myers <joseph@codesourcery.com>
28807
28808 * wcsmbs/wchar.h [__HAVE_FLOAT16 && __USE_GNU] (wcstof16):
28809 Declare.
28810 [__HAVE_FLOAT32 && __USE_GNU] (wcstof32): Likewise.
28811 [__HAVE_FLOAT64 && __USE_GNU] (wcstof64): Likewise.
28812 [__HAVE_FLOAT32X && __USE_GNU] (wcstof32x): Likewise.
28813 [__HAVE_FLOAT64X && __USE_GNU] (wcstof64x): Likewise.
28814 [__HAVE_FLOAT128X && __USE_GNU] (wcstof128x): Likewise.
28815 [__HAVE_FLOAT16 && __USE_GNU] (wcstof16_l): Likewise.
28816 [__HAVE_FLOAT32 && __USE_GNU] (wcstof32_l): Likewise.
28817 [__HAVE_FLOAT64 && __USE_GNU] (wcstof64_l): Likewise.
28818 [__HAVE_FLOAT32X && __USE_GNU] (wcstof32x_l): Likewise.
28819 [__HAVE_FLOAT64X && __USE_GNU] (wcstof64x_l): Likewise.
28820 [__HAVE_FLOAT128X && __USE_GNU] (wcstof128x_l): Likewise.
28821
28822 2017-11-02 Mike FABIAN <mfabian@redhat.com>
28823
28824 [BZ #22382]
28825 * localedata/locales/tpi_PG (LC_TIME): Fix syntax error.
28826 * localedata/locales/tpi_PG: Add standard header.
28827
28828 2017-11-02 Florian Weimer <fweimer@redhat.com>
28829
28830 test-errno-linux: quotactl can fail with EPERM in containers.
28831 * sysdeps/unix/sysv/linux/test-errno-linux.c
28832 (LIST, LIST_FORWARD): New macros.
28833 (check_error_in_list): New function.
28834 (test_wrp_rv): Accept list of permitted error codes.
28835 (test_wrp_rv2): Remove.
28836 (test_wrp): Call test_wrp_rv with list of error codes.
28837 (test_wrp2): Accept list of error codes.
28838 (do_test): Adjust. Allow EPERM for quotactl.
28839
28840 2017-11-02 Florian Weimer <fweimer@redhat.com>
28841
28842 * stdio-common/bug16.c (do_test): Use array_length.
28843 * stdio-common/errlist.c (_sys_nerr): Likewise.
28844 * stdio-common/printf_fp.c (PRINTF_FP_FETCH): Likewise.
28845 * stdio-common/printf_fphex.c (__printf_fphex): Use array_end.
28846 * stdio-common/psiginfo.c (psiginfo): Use array_length.
28847 * stdio-common/test-vfprintf.c (nlocs): Remove definition.
28848 (do_test): Use array_length.
28849 * stdio-common/tst-fphex.c (do_test): Use array_end, array_length.
28850 * stdio-common/tst-long-dbl-fphex.c (do_test): Use array_length.
28851 * stdio-common/tst-printf-round.c (do_test): Likewise.
28852 * stdio-common/tst-swprintf.c (nbuf): Remove definition.
28853 (CHECK): Use array_length.
28854 * stdio-common/tstdiomisc.c (t3, F): Likewise.
28855 * stdio-common/tstscanf.c (main): Likewise.
28856 * stdio-common/vfprintf.c (process_string_arg): Likewise.
28857
28858 2017-11-02 Florian Weimer <fweimer@redhat.com>
28859
28860 Add array_length and array_end macros.
28861 * include/array_length.h: New file.
28862
28863 2017-11-02 Florian Weimer <fweimer@redhat.com>
28864
28865 [BZ #22332]
28866 * posix/tst-glob-tilde.c (do_noescape): New variable.
28867 (one_test): Process it.
28868 (do_test): Set do_noescape. Add unescaping test case.
28869
28870 2017-11-01 Joseph Myers <joseph@codesourcery.com>
28871
28872 * math/complex.h
28873 [(__HAVE_DISTINCT_FLOAT16 || (__HAVE_FLOAT16 && !_LIBC))
28874 && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Include <bits/cmathcalls.h>
28875 with appropriate macros defined and undefined.
28876 [(__HAVE_DISTINCT_FLOAT32 || (__HAVE_FLOAT32 && !_LIBC))
28877 && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Likewise.
28878 [(__HAVE_DISTINCT_FLOAT64 || (__HAVE_FLOAT64 && !_LIBC))
28879 && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Likewise.
28880 [(__HAVE_DISTINCT_FLOAT32X || (__HAVE_FLOAT32X && !_LIBC))
28881 && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Likewise.
28882 [(__HAVE_DISTINCT_FLOAT64X || (__HAVE_FLOAT64X && !_LIBC))
28883 && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Likewise.
28884 [(__HAVE_DISTINCT_FLOAT128X || (__HAVE_FLOAT128X && !_LIBC))
28885 && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Likewise.
28886
28887 * math/complex.h
28888 [(__HAVE_DISTINCT_FLOAT128 || (__HAVE_FLOAT128 && !LIBC))
28889 && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Move conditional code after
28890 that for long double. Do not condition define and undefine of
28891 _Mdouble_complex_ on [__CFLOAT128].
28892
28893 2017-11-01 H.J. Lu <hongjiu.lu@intel.com>
28894
28895 * sysdeps/i386/sysdep.h: Include <sysdeps/x86/sysdep.h> instead
28896 of <sysdeps/generic/sysdep.h>.
28897 (ALIGNARG): Removed.
28898 (ASM_SIZE_DIRECTIVE): Likewise.
28899 (ENTRY): Likewise.
28900 (END): Likewise.
28901 (ENTRY_CHK): Likewise.
28902 (END_CHK): Likewise.
28903 (syscall_error): Likewise.
28904 (mcount): Likewise.
28905 (PSEUDO_END): Likewise.
28906 (L): Likewise.
28907 (atom_text_section): Likewise.
28908 * sysdeps/x86/sysdep.h: New file.
28909 * sysdeps/x86_64/sysdep.h: Include <sysdeps/x86/sysdep.h> instead
28910 of <sysdeps/generic/sysdep.h>.
28911 (ALIGNARG): Removed.
28912 (ASM_SIZE_DIRECTIVE): Likewise.
28913 (ENTRY): Likewise.
28914 (END): Likewise.
28915 (ENTRY_CHK): Likewise.
28916 (END_CHK): Likewise.
28917 (syscall_error): Likewise.
28918 (mcount): Likewise.
28919 (PSEUDO_END): Likewise.
28920 (L): Likewise.
28921 (atom_text_section): Likewise.
28922
28923 2017-10-31 Rafał Lużyński <digitalfreak@lingonborough.com>
28924
28925 * localedata/unicode-gen/gen_unicode_ctype.py (output_head):
28926 category of LC_CTYPE set to "i18n:2012".
28927 * localedata/locales/i18n_ctype: Regenerate.
28928
28929 2017-10-31 Yury Norov <ynorov@caviumnetworks.com>
28930
28931 * sysdeps/unix/sysv/linux/sigprocmask.c: Remove useless #ifdefs.
28932 * sysdeps/unix/sysv/linux/sigtimedwait.c: Likewise.
28933 * sysdeps/unix/sysv/linux/sigwait.c: Likewise.
28934 * sysdeps/unix/sysv/linux/sigwaitinfo.c: Likewise.
28935
28936 * sysdeps/unix/sysv/linux/ia64/sigpending.c: Remove file.
28937 * sysdeps/unix/sysv/linux/s390/s390-64/sigpending.c: Likewise.
28938 * sysdeps/unix/sysv/linux/sparc/sparc64/sigpending.c: Likewise.
28939 * sysdeps/unix/sysv/linux/x86_64/sigpending.c: Likewise.
28940
28941 2017-10-31 Joseph Myers <joseph@codesourcery.com>
28942
28943 * math/complex.h
28944 [__HAVE_FLOAT16 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (CMPLXF16):
28945 New macro.
28946 [__HAVE_FLOAT32 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (CMPLXF32):
28947 Likewise.
28948 [__HAVE_FLOAT64 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (CMPLXF64):
28949 Likewise.
28950 [__HAVE_FLOAT32X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
28951 (CMPLXF32X): Likewise.
28952 [__HAVE_FLOAT64X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
28953 (CMPLXF64X): Likewise.
28954 [__HAVE_FLOAT128X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
28955 (CMPLXF128X): Likewise.
28956
28957 * math/math.h
28958 [__FLT_EVAL_METHOD__ == 0 || __FLT_EVAL_METHOD__ == 32]
28959 (__MATH_EVAL_FMT2): Define to add 0.0f.
28960
28961 2017-10-31 Alan Modra <amodra@gmail.com>
28962
28963 * sysdeps/powerpc/powerpc64/fpu/multiarch/e_expf-power8.S: Don't
28964 include sysdep.h.
28965 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceilf-power5+.S: Likewise.
28966 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceilf-ppc64.S: Likewise.
28967 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_cosf-power8.S: Likewise.
28968 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_cosf-ppc64.c: Likewise.
28969 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finite-power7.S: Likewise.
28970 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finite-power8.S: Likewise.
28971 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floor-power5+.S: Likewise.
28972 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floor-ppc64.S: Likewise.
28973 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_roundf-power5+.S: Likewise.
28974 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_roundf-ppc64.S: Likewise.
28975 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_sinf-power8.S: Likewise.
28976 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_sinf-ppc64.c: Likewise.
28977 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_truncf-power5+.S: Likewise.
28978 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_truncf-ppc64.S: Likewise.
28979 * sysdeps/powerpc/powerpc64/multiarch/memchr-power7.S: Likewise.
28980 * sysdeps/powerpc/powerpc64/multiarch/memchr-power8.S: Likewise.
28981 * sysdeps/powerpc/powerpc64/multiarch/memcmp-power4.S: Likewise.
28982 * sysdeps/powerpc/powerpc64/multiarch/memcmp-power7.S: Likewise.
28983 * sysdeps/powerpc/powerpc64/multiarch/memcmp-power8.S: Likewise.
28984 * sysdeps/powerpc/powerpc64/multiarch/memcpy-a2.S: Likewise.
28985 * sysdeps/powerpc/powerpc64/multiarch/memcpy-cell.S: Likewise.
28986 * sysdeps/powerpc/powerpc64/multiarch/memcpy-power4.S: Likewise.
28987 * sysdeps/powerpc/powerpc64/multiarch/memcpy-power6.S: Likewise.
28988 * sysdeps/powerpc/powerpc64/multiarch/memcpy-power7.S: Likewise.
28989 * sysdeps/powerpc/powerpc64/multiarch/memcpy-ppc64.S: Likewise.
28990 * sysdeps/powerpc/powerpc64/multiarch/memmove-power7.S: Likewise.
28991 * sysdeps/powerpc/powerpc64/multiarch/mempcpy-power7.S: Likewise.
28992 * sysdeps/powerpc/powerpc64/multiarch/memrchr-power7.S: Likewise.
28993 * sysdeps/powerpc/powerpc64/multiarch/memrchr-power8.S: Likewise.
28994 * sysdeps/powerpc/powerpc64/multiarch/memset-power4.S: Likewise.
28995 * sysdeps/powerpc/powerpc64/multiarch/memset-power6.S: Likewise.
28996 * sysdeps/powerpc/powerpc64/multiarch/memset-power7.S: Likewise.
28997 * sysdeps/powerpc/powerpc64/multiarch/memset-power8.S: Likewise.
28998 * sysdeps/powerpc/powerpc64/multiarch/rawmemchr-power7.S: Likewise.
28999 * sysdeps/powerpc/powerpc64/multiarch/stpcpy-power8.S: Likewise.
29000 * sysdeps/powerpc/powerpc64/multiarch/stpncpy-power7.S: Likewise.
29001 * sysdeps/powerpc/powerpc64/multiarch/stpncpy-power8.S: Likewise.
29002 * sysdeps/powerpc/powerpc64/multiarch/strcasecmp-power7.S: Likewise.
29003 * sysdeps/powerpc/powerpc64/multiarch/strcasecmp-power8.S: Likewise.
29004 * sysdeps/powerpc/powerpc64/multiarch/strcasecmp_l-power7.S: Likewise.
29005 * sysdeps/powerpc/powerpc64/multiarch/strcasestr-power8.S: Likewise.
29006 * sysdeps/powerpc/powerpc64/multiarch/strchr-power7.S: Likewise.
29007 * sysdeps/powerpc/powerpc64/multiarch/strchr-power8.S: Likewise.
29008 * sysdeps/powerpc/powerpc64/multiarch/strchr-ppc64.S: Likewise.
29009 * sysdeps/powerpc/powerpc64/multiarch/strchrnul-power7.S: Likewise.
29010 * sysdeps/powerpc/powerpc64/multiarch/strchrnul-power8.S: Likewise.
29011 * sysdeps/powerpc/powerpc64/multiarch/strcmp-power7.S: Likewise.
29012 * sysdeps/powerpc/powerpc64/multiarch/strcmp-power8.S: Likewise.
29013 * sysdeps/powerpc/powerpc64/multiarch/strcmp-power9.S: Likewise.
29014 * sysdeps/powerpc/powerpc64/multiarch/strcmp-ppc64.S: Likewise.
29015 * sysdeps/powerpc/powerpc64/multiarch/strcpy-power8.S: Likewise.
29016 * sysdeps/powerpc/powerpc64/multiarch/strcspn-power8.S: Likewise.
29017 * sysdeps/powerpc/powerpc64/multiarch/strlen-power7.S: Likewise.
29018 * sysdeps/powerpc/powerpc64/multiarch/strlen-power8.S: Likewise.
29019 * sysdeps/powerpc/powerpc64/multiarch/strlen-ppc64.S: Likewise.
29020 * sysdeps/powerpc/powerpc64/multiarch/strncase-power8.S: Likewise.
29021 * sysdeps/powerpc/powerpc64/multiarch/strncmp-power4.S: Likewise.
29022 * sysdeps/powerpc/powerpc64/multiarch/strncmp-power7.S: Likewise.
29023 * sysdeps/powerpc/powerpc64/multiarch/strncmp-power8.S: Likewise.
29024 * sysdeps/powerpc/powerpc64/multiarch/strncmp-power9.S: Likewise.
29025 * sysdeps/powerpc/powerpc64/multiarch/strncmp-ppc64.S: Likewise.
29026 * sysdeps/powerpc/powerpc64/multiarch/strncpy-power7.S: Likewise.
29027 * sysdeps/powerpc/powerpc64/multiarch/strncpy-power8.S: Likewise.
29028 * sysdeps/powerpc/powerpc64/multiarch/strnlen-power7.S: Likewise.
29029 * sysdeps/powerpc/powerpc64/multiarch/strnlen-power8.S: Likewise.
29030 * sysdeps/powerpc/powerpc64/multiarch/strrchr-power7.S: Likewise.
29031 * sysdeps/powerpc/powerpc64/multiarch/strrchr-power8.S: Likewise.
29032 * sysdeps/powerpc/powerpc64/multiarch/strspn-power8.S: Likewise.
29033 * sysdeps/powerpc/powerpc64/multiarch/strstr-power7.S: Likewise.
29034
29035 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floorf-ppc64.S: Don't
29036 include sysdep.h and math_ldbl_opt.h.
29037
29038 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceil-power5+.S: Don't
29039 include sysdep.h and math_ldbl_opt.h. Include shlib-compat.h.
29040 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceil-ppc64.S: Likewise.
29041 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysign-power6.S: Likewise.
29042 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysign-ppc64.S: Likewise.
29043 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floorf-power5+.S: Likewise.
29044 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinf-power7.S: Likewise.
29045 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinf-power8.S: Likewise.
29046 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power5.S: Likewise.
29047 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power6.S: Likewise.
29048 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power6x.S: Likewise.
29049 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power7.S: Likewise.
29050 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power8.S: Likewise.
29051 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-ppc64.S: Likewise.
29052 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint-power6x.S: Likewise.
29053 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint-power8.S: Likewise.
29054 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint-ppc64.S: Likewise.
29055 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround-power5+.S: Likewise.
29056 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround-power6x.S: Likewise.
29057 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround-power8.S: Likewise.
29058 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround-ppc64.S: Likewise.
29059 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llroundf-ppc64.S: Likewise.
29060 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_round-power5+.S: Likewise.
29061 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_round-ppc64.S: Likewise.
29062 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_trunc-power5+.S: Likewise.
29063 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_trunc-ppc64.S: Likewise.
29064
29065 2017-10-31 Alan Modra <amodra@gmail.com>
29066
29067 * sysdeps/powerpc/powerpc64/multiarch/strncase_l-power7.c: Include
29068 string/strncase_l.c, not string/strncase.c.
29069 (USE_IN_EXTENDED_LOCALE_MODEL): Don't define.
29070 (libc_hidden_def): Redefine.
29071
29072 2017-10-31 Alan Modra <amodra@gmail.com>
29073
29074 * sysdeps/powerpc/powerpc64/multiarch/strcasecmp_l-power7.S:
29075 (__STRCMP, STRCMP, __strcasecmp_l): Define.
29076 (__strcasecmp): Don't define.
29077
29078 2017-10-31 Alan Modra <amodra@gmail.com>
29079
29080 * sysdeps/powerpc/powerpc64/multiarch/strcmp-power8.S: Wrap in
29081 IS_IN (libc).
29082 * sysdeps/powerpc/powerpc64/multiarch/strcmp-power9.S: Likewise.
29083 * sysdeps/powerpc/powerpc64/multiarch/strncmp-power8.S: Likewise.
29084 * sysdeps/powerpc/powerpc64/multiarch/strncmp-power9.S: Likewise.
29085
29086 2017-10-31 Alan Modra <amodra@gmail.com>
29087
29088 * sysdeps/powerpc/powerpc64/multiarch/stpncpy-power8.S: Don't define
29089 USE_AS_STPNCPY.
29090
29091 2017-10-31 Alan Modra <amodra@gmail.com>
29092
29093 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-ppc64.S (hidden_def):
29094 Redefine only when SHARED.
29095
29096 2017-10-30 Joseph Myers <joseph@codesourcery.com>
29097
29098 * math/math.h [__HAVE_DISTINCT_FLOAT16 || (__HAVE_FLOAT16 && !_LIBC)]:
29099 Include <bits/math-finite.h> with appropriate macros defined and
29100 undefined.
29101 [__HAVE_DISTINCT_FLOAT32 || (__HAVE_FLOAT32 && !_LIBC)]: Likewise.
29102 [__HAVE_DISTINCT_FLOAT64 || (__HAVE_FLOAT64 && !_LIBC)]: Likewise.
29103 [__HAVE_DISTINCT_FLOAT32X || (__HAVE_FLOAT32X && !_LIBC)]: Likewise.
29104 [__HAVE_DISTINCT_FLOAT64X || (__HAVE_FLOAT64X && !_LIBC)]: Likewise.
29105 [__HAVE_DISTINCT_FLOAT128X || (__HAVE_FLOAT128X && !_LIBC)]: Likewise.
29106
29107 * math/math.h [!_Mfloat_] (_Mfloat_): Do not define.
29108 [!_Mlong_double_] (_Mlong_double_): Likewise.
29109 [!_Mfloat16_] (_Mfloat16_): Likewise.
29110 [!_Mfloat32_] (_Mfloat32_): Likewise.
29111 [!_Mfloat64_] (_Mfloat64_): Likewise.
29112 [!_Mfloat128_] (_Mfloat128_): Likewise.
29113 [!_Mfloat32x_] (_Mfloat32x_): Likewise.
29114 [!_Mfloat64x_] (_Mfloat64x_): Likewise.
29115 [!_Mfloat128x_] (_Mfloat128x_): Likewise.
29116 (_Mdouble_): Define without indirection through those macros.
29117 * math/complex.h [!_Mfloat_] (_Mfloat_): Do not define.
29118 [!_Mfloat128_] (_Mfloat128_): Likewise.
29119 [_Mlong_double_] (_Mlong_double_): Likewise.
29120 (_Mdouble_): Define without indirection through those macros.
29121 * math/Makefile [$(long-double-fcts) != yes] (math-CPPFLAGS): Do
29122 not add -D_Mlong_double_=double.
29123 * include/math.h [_ISOMAC] (_Mlong_double_): Do not undefine.
29124 * math/test-signgam-finite-c99.c (_Mlong_double_): Likewise.
29125
29126 2017-10-30 H.J. Lu <hongjiu.lu@intel.com>
29127
29128 * sysdeps/x86/libc-start.c: Add /* !SHARED */.
29129
29130 2017-10-30 H.J. Lu <hongjiu.lu@intel.com>
29131
29132 * sysdeps/x86/libc-start.c: Reformat.
29133
29134 2017-10-30 H.J. Lu <hongjiu.lu@intel.com>
29135
29136 [BZ #22353]
29137 * sysdeps/i386/i586/strcpy.S (STRCPY): Use conditional branches.
29138 (1): Renamed to ...
29139 (L(Src0)): This.
29140 (L(Src1)): New.
29141 (L(Src2)): Likewise.
29142 (L(1)): Renamed to ...
29143 (L(Src3)): This.
29144
29145 2017-10-30 Joseph Myers <joseph@codesourcery.com>
29146
29147 * math/math.h [__HAVE_FLOAT16 && __USE_GNU] (M_Ef16): New macro.
29148 [__HAVE_FLOAT16 && __USE_GNU] (M_LOG2Ef16): Likewise.
29149 [__HAVE_FLOAT16 && __USE_GNU] (M_LOG10Ef16): Likewise.
29150 [__HAVE_FLOAT16 && __USE_GNU] (M_LN2f16): Likewise.
29151 [__HAVE_FLOAT16 && __USE_GNU] (M_LN10f16): Likewise.
29152 [__HAVE_FLOAT16 && __USE_GNU] (M_PIf16): Likewise.
29153 [__HAVE_FLOAT16 && __USE_GNU] (M_PI_2f16): Likewise.
29154 [__HAVE_FLOAT16 && __USE_GNU] (M_PI_4f16): Likewise.
29155 [__HAVE_FLOAT16 && __USE_GNU] (M_1_PIf16): Likewise.
29156 [__HAVE_FLOAT16 && __USE_GNU] (M_2_PIf16): Likewise.
29157 [__HAVE_FLOAT16 && __USE_GNU] (M_2_SQRTPIf16): Likewise.
29158 [__HAVE_FLOAT16 && __USE_GNU] (M_SQRT2f16): Likewise.
29159 [__HAVE_FLOAT16 && __USE_GNU] (M_SQRT1_2f16): Likewise.
29160 [__HAVE_FLOAT32 && __USE_GNU] (M_Ef32): Likewise.
29161 [__HAVE_FLOAT32 && __USE_GNU] (M_LOG2Ef32): Likewise.
29162 [__HAVE_FLOAT32 && __USE_GNU] (M_LOG10Ef32): Likewise.
29163 [__HAVE_FLOAT32 && __USE_GNU] (M_LN2f32): Likewise.
29164 [__HAVE_FLOAT32 && __USE_GNU] (M_LN10f32): Likewise.
29165 [__HAVE_FLOAT32 && __USE_GNU] (M_PIf32): Likewise.
29166 [__HAVE_FLOAT32 && __USE_GNU] (M_PI_2f32): Likewise.
29167 [__HAVE_FLOAT32 && __USE_GNU] (M_PI_4f32): Likewise.
29168 [__HAVE_FLOAT32 && __USE_GNU] (M_1_PIf32): Likewise.
29169 [__HAVE_FLOAT32 && __USE_GNU] (M_2_PIf32): Likewise.
29170 [__HAVE_FLOAT32 && __USE_GNU] (M_2_SQRTPIf32): Likewise.
29171 [__HAVE_FLOAT32 && __USE_GNU] (M_SQRT2f32): Likewise.
29172 [__HAVE_FLOAT32 && __USE_GNU] (M_SQRT1_2f32): Likewise.
29173 [__HAVE_FLOAT64 && __USE_GNU] (M_Ef64): Likewise.
29174 [__HAVE_FLOAT64 && __USE_GNU] (M_LOG2Ef64): Likewise.
29175 [__HAVE_FLOAT64 && __USE_GNU] (M_LOG10Ef64): Likewise.
29176 [__HAVE_FLOAT64 && __USE_GNU] (M_LN2f64): Likewise.
29177 [__HAVE_FLOAT64 && __USE_GNU] (M_LN10f64): Likewise.
29178 [__HAVE_FLOAT64 && __USE_GNU] (M_PIf64): Likewise.
29179 [__HAVE_FLOAT64 && __USE_GNU] (M_PI_2f64): Likewise.
29180 [__HAVE_FLOAT64 && __USE_GNU] (M_PI_4f64): Likewise.
29181 [__HAVE_FLOAT64 && __USE_GNU] (M_1_PIf64): Likewise.
29182 [__HAVE_FLOAT64 && __USE_GNU] (M_2_PIf64): Likewise.
29183 [__HAVE_FLOAT64 && __USE_GNU] (M_2_SQRTPIf64): Likewise.
29184 [__HAVE_FLOAT64 && __USE_GNU] (M_SQRT2f64): Likewise.
29185 [__HAVE_FLOAT64 && __USE_GNU] (M_SQRT1_2f64): Likewise.
29186 [__HAVE_FLOAT32X && __USE_GNU] (M_Ef32x): Likewise.
29187 [__HAVE_FLOAT32X && __USE_GNU] (M_LOG2Ef32x): Likewise.
29188 [__HAVE_FLOAT32X && __USE_GNU] (M_LOG10Ef32x): Likewise.
29189 [__HAVE_FLOAT32X && __USE_GNU] (M_LN2f32x): Likewise.
29190 [__HAVE_FLOAT32X && __USE_GNU] (M_LN10f32x): Likewise.
29191 [__HAVE_FLOAT32X && __USE_GNU] (M_PIf32x): Likewise.
29192 [__HAVE_FLOAT32X && __USE_GNU] (M_PI_2f32x): Likewise.
29193 [__HAVE_FLOAT32X && __USE_GNU] (M_PI_4f32x): Likewise.
29194 [__HAVE_FLOAT32X && __USE_GNU] (M_1_PIf32x): Likewise.
29195 [__HAVE_FLOAT32X && __USE_GNU] (M_2_PIf32x): Likewise.
29196 [__HAVE_FLOAT32X && __USE_GNU] (M_2_SQRTPIf32x): Likewise.
29197 [__HAVE_FLOAT32X && __USE_GNU] (M_SQRT2f32x): Likewise.
29198 [__HAVE_FLOAT32X && __USE_GNU] (M_SQRT1_2f32x): Likewise.
29199 [__HAVE_FLOAT64X && __USE_GNU] (M_Ef64x): Likewise.
29200 [__HAVE_FLOAT64X && __USE_GNU] (M_LOG2Ef64x): Likewise.
29201 [__HAVE_FLOAT64X && __USE_GNU] (M_LOG10Ef64x): Likewise.
29202 [__HAVE_FLOAT64X && __USE_GNU] (M_LN2f64x): Likewise.
29203 [__HAVE_FLOAT64X && __USE_GNU] (M_LN10f64x): Likewise.
29204 [__HAVE_FLOAT64X && __USE_GNU] (M_PIf64x): Likewise.
29205 [__HAVE_FLOAT64X && __USE_GNU] (M_PI_2f64x): Likewise.
29206 [__HAVE_FLOAT64X && __USE_GNU] (M_PI_4f64x): Likewise.
29207 [__HAVE_FLOAT64X && __USE_GNU] (M_1_PIf64x): Likewise.
29208 [__HAVE_FLOAT64X && __USE_GNU] (M_2_PIf64x): Likewise.
29209 [__HAVE_FLOAT64X && __USE_GNU] (M_2_SQRTPIf64x): Likewise.
29210 [__HAVE_FLOAT64X && __USE_GNU] (M_SQRT2f64x): Likewise.
29211 [__HAVE_FLOAT64X && __USE_GNU] (M_SQRT1_2f64x): Likewise.
29212 [__HAVE_FLOAT128X && __USE_GNU]: Use #error.
29213
29214 2017-10-30 Florian Weimer <fweimer@redhat.com>
29215
29216 * elf/ldconfig.c (search_dir): Assume that _DIRENT_HAVE_D_TYPE is
29217 always defined.
29218 * io/tst-mkdirat.c (do_test): Likewise.
29219 * io/tst-mkfifoat.c (do_test): Likewise.
29220 * io/tst-mknodat.c (do_test): Likewise.
29221 * locale/programs/charmap-dir.c (charmap_readdir): Likewise.
29222 * locale/programs/locale.c (select_dirs): Likewise.
29223 * locale/programs/locarchive.c (add_locales_to_archive): Likewise.
29224 * posix/bug-glob2.c (my_readdir): Likewise.
29225 * posix/tst-dir.c (main): Likewise.
29226 * posix/tst-glob_lstat_compat.c (my_readdir): Likewise.
29227 * posix/tst-gnuglob-skeleton.c (my_readdir): Likewise.
29228
29229 2017-10-30 Florian Weimer <fweimer@redhat.com>
29230
29231 * string/strings.h (ffsl, ffsll): Declare under __USE_MISC, not
29232 just __USE_GNU.
29233
29234 2017-10-30 Florian Weimer <fweimer@redhat.com>
29235
29236 * posix/tst-gnuglob-skeleton.c: Renamed from tst-gnuglob.c.
29237 Convert to support/test-driver.c.
29238 (GLOB_FUNC, GLOB_TYPE, GLOBFREE_FUNC, DIRENT_STRUCT, STAT_STRUCT):
29239 New macro parameters.
29240 (PRINTF): Remove macro. Use test_verbose conditionals instead.
29241 * posix/tst-gnuglob.c: New file.
29242 * posix/tst-gnuglob64.c: Likewise.
29243 * posix/Makefile (tests): Add tst-gnuglob64.
29244
29245 2017-10-30 Michal Ostrowski <ostrowski.michal@gmail.com>
29246
29247 [BZ #19485]
29248 * localedata/locales/csb_PL (LC_TIME): Fix “abmon” for March
29249 and use a better translation for March in “mon”.
29250 * localedata/locales/csb_PL: Use more ASCII to improve the
29251 readability of the source.
29252
29253 2017-10-30 Mike FABIAN <mfabian@redhat.com>
29254
29255 [BZ #13953]
29256 * localedata/locales/km_KH: Use ASCII as much
29257 as possible for better readability of the source and
29258 remove useless comments.
29259 * localedata/locales/km_KH (LC_TIME): Remove era stuff, it
29260 was commented out and apparently wrong anyway because it was
29261 using Lao characters. If Buddhist era should be used
29262 for km_KH, a native speaker should write the correct formaat
29263 for Khmer.
29264 * localedata/locales/km_KH (LC_TIME): Add first_weekday 1
29265 (According to CLDR, the first weekday for Cambodia is Sunday).
29266 * localedata/locales/km_KH (LC_NAME): Remove name_mr and name_mrs
29267 (These were using Lao characters which must be wrong. If we get
29268 the correct data from a native speaker, we could add it back, until
29269 then it is better not to have name_mr and name_mrs at all than
29270 having it wrong).
29271
29272 2017-10-27 Rafał Lużyński <digitalfreak@lingonborough.com>
29273
29274 * locale/loadlocale.c: Correct size of
29275 _nl_value_type_LC_<category> arrays.
29276
29277 2017-10-27 Joseph Myers <joseph@codesourcery.com>
29278
29279 * math/math.h [__HAVE_DISTINCT_FLOAT16 || (__HAVE_FLOAT16 && !_LIBC)]:
29280 Include <bits/mathcalls-helper-functions.h> and <bits/mathcalls.h>
29281 with appropriate macros defined and undefined.
29282 [__HAVE_DISTINCT_FLOAT32 || (__HAVE_FLOAT32 && !_LIBC)]: Likewise.
29283 [__HAVE_DISTINCT_FLOAT64 || (__HAVE_FLOAT64 && !_LIBC)]: Likewise.
29284 [__HAVE_DISTINCT_FLOAT32X || (__HAVE_FLOAT32X && !_LIBC)]: Likewise.
29285 [__HAVE_DISTINCT_FLOAT64X || (__HAVE_FLOAT64X && !_LIBC)]: Likewise.
29286 [__HAVE_DISTINCT_FLOAT128X || (__HAVE_FLOAT128X && !_LIBC)]: Likewise.
29287
29288 2017-10-27 H.J. Lu <hongjiu.lu@intel.com>
29289
29290 * sysdeps/i386/fpu/libm-test-ulps: Regenerated for GCC 7 with
29291 "-O2 -march=i586".
29292
29293 2017-10-27 Mike FABIAN <mfabian@redhat.com>
29294
29295 * localedata/locales/tt_RU (LC_MESSAGES): Start yesstr and nostr
29296 with lowercase letters to make it agree with CLDR.
29297
29298 2017-10-27 Mike FABIAN <mfabian@redhat.com>
29299
29300 [BZ #15260]
29301 * localedata/locales/doi_IN (LC_MESSAGES): Match only for the
29302 first letters of yesstr and nostr in yesexpr and noexpr,
29303 not for the full words.
29304 * localedata/locales/hne_IN (LC_MESSAGES): Likewise.
29305 * localedata/locales/kok_IN (LC_MESSAGES): Likewise.
29306 * localedata/locales/mr_IN (LC_MESSAGES): Likewise.
29307 * localedata/locales/sat_IN (LC_MESSAGES): Likewise.
29308 * localedata/locales/km_KH (LC_MESSAGES): Match also for the
29309 first letters of yesstr and nostr in yesexpr and noexpr,
29310 until now only English was matched in yesexpr and noexpr.
29311 * localedata/locales/tl_PH (LC_MESSAGES): Use “copy "fil_PH"”
29312 instead of “copy "en_US"”. CLDR has yesstr and nostr data for
29313 fil but not for tl. As tl and fil are very similar, using fil
29314 is probably better than using English.
29315
29316 2017-10-27 Thierry Vignaud <thierry.vignaud@gmail.com>
29317
29318 [BZ #21706]
29319 * localedata/locales/br_FR (LC_MESSAGES): Use all lowercase
29320 in yesstr and nostr.
29321
29322 2017-10-26 Joseph Myers <joseph@codesourcery.com>
29323
29324 * math/math.h [__HAVE_FLOAT16 && __GLIBC_USE
29325 (IEC_60559_TYPES_EXT)] (SNANF16): New macro.
29326 [__HAVE_FLOAT32 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (SNANF32):
29327 Likewise.
29328 [__HAVE_FLOAT64 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (SNANF64):
29329 Likewise.
29330 [__HAVE_FLOAT32X && __GLIBC_USE (IEC_60559_TYPES_EXT)] (SNANF32X):
29331 Likewise.
29332 [__HAVE_FLOAT64X && __GLIBC_USE (IEC_60559_TYPES_EXT)] (SNANF64X):
29333 Likewise.
29334 [__HAVE_FLOAT128X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
29335 (SNANF128X): Likewise.
29336
29337 * math/math.h [__HAVE_FLOAT16 && __GLIBC_USE
29338 (IEC_60559_TYPES_EXT)] (HUGE_VAL_F16): New macro.
29339 [__HAVE_FLOAT32 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
29340 (HUGE_VAL_F32): Likewise.
29341 [__HAVE_FLOAT64 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
29342 (HUGE_VAL_F64): Likewise.
29343 [__HAVE_FLOAT32X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
29344 (HUGE_VAL_F32X): Likewise.
29345 [__HAVE_FLOAT64X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
29346 (HUGE_VAL_F64X): Likewise.
29347 [__HAVE_FLOAT128X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
29348 (HUGE_VAL_F128X): Likewise.
29349
29350 2017-10-26 Thierry Vignaud <thierry.vignaud@gmail.com>
29351
29352 * localedata/locales/br_FR (LC_IDENTIFICATON): Add
29353 Thierry Vignaud <thierry.vignaud@gmail.com> as the contact
29354 for the br_FR locale.
29355
29356 2017-10-26 Thierry Vignaud <thierry.vignaud@gmail.com>
29357
29358 [BZ #21706]
29359 * localedata/locales/br_FR (LC_MESSAGES): Fix nostr.
29360
29361 2017-10-25 Carlos O'Donell <carlos@redhat.com>
29362
29363 * locale/programs/record-status.h: Define globals, and function
29364 prototypes. Move function bodies...
29365 * locale/programs/record-status.c: ... to here. New file.
29366 * iconv/Makefile (iconv_prog-modules): Add record-status.
29367 * locale/Makefile (lib-modules): Likewise.
29368 * iconv/iconv_prog.c: Remove verbose.
29369 * iconv/iconv_prog.h: Include record-status.h (defines verbose).
29370 * locale/programs/charmap.c (charmap_read): If warn_ascii is true then
29371 record a warning about ASCII compatibility.
29372 * locale/programs/ld-monetary.c (monetary_finish): If
29373 warn_int_curr_symbol is true then record a warning about the symbol
29374 not being in our ISO 4217 list.
29375 * locale/programs/locale.c: Include record-status.h. Remove verbose.
29376 * locale/programs/localedef.c: Include ctype.h. Remove delcaration of
29377 verbose, recorded_warning_count, recorded_error_count, and be_quiet.
29378 (OPT_NO_WARN): Define.
29379 (OPT_WARN): Define.
29380 (options): Add entry for --no-warnings, and --warnings.
29381 (set_warnings): New function to enable/disable warnings.
29382 (parse_opt): Call set_warnings for OPT_NO_WARN and OPT_WARN.
29383 * locale/programs/localedef.h: Remove warn_int_curr_symbol.
29384 * localedata/gen-locale.sh: Default flags to `--quiet -c'.
29385 Add `--no-warnings=ascii' to locales using SHIFT_JIS or SHIFT_JIXX0213.
29386 Pass flags to generate_locale.
29387 (generate_locale): Accept new flag argument and pass it to localedef
29388 invocation.
29389 * localedata/Makefile (INSTALL-SUPPORTED-LOCALES): Use
29390 --no-warnings=ascii for SHIFT_JIS and SHIFT_JISX0213 charmaps.
29391
29392 * localedata/Makefile (test-input-data): Use full file name.
29393 * localedata/da_DK.in: Rename to...
29394 * localedata/da_DK.ISO-8859-1.in: ...this.
29395 * localedata/de_DE.in: Rename to...
29396 * localedata/de_DE.ISO-8859-1.in: ...this.
29397 * localedata/en_US.in: Rename to...
29398 * localedata/en_US.ISO-8859-1.in: ...this.
29399 * localedata/fr_FR.in: Rename to...
29400 * localedata/fr_FR.UTF-8.in: ... this.
29401 * localedata/hr_HR.in: Rename to...
29402 * localedata/hr_HR.ISO-8859-2.in: ...this.
29403 * localedata/hu_HU.in: Rename to...
29404 * localedata/hu_HU.UTF-8.in: ...this.
29405 * localedata/si_LK.in: Rename to...
29406 * localedata/si_LK.UTF-8.in: ...this.
29407 * localedata/sv_SE.in: Rename to...
29408 * localedata/sv_SE.ISO-8859-1.in: ...this.
29409 * localedata/tr_TR.in: Rename to...
29410 * localedata/tr_TR.UTF-8.in: ...this.
29411 * localedata/uk_UA.in: Rename to...
29412 * localedata/uk_UA.UTF-8.in: ...this.
29413 * localedata/sort-test.sh: Test file is locale name with the
29414 suffix.
29415
29416 * localedata/unicode-gen/Makefile (check_i18n): Rename to
29417 check_i18n_ctype. Depend on i18n_ctype-report. Check i18n_ctype-report
29418 file.
29419 * localedata/locales/i18n_ctype: Regenerate.
29420 * localedata/locales/tr_TR: Likewise.
29421 * localedata/locales/translit_circle: Likewise.
29422 * localedata/locales/translit_cjk_compat: Likewise.
29423 * localedata/locales/translit_combining: Likewise.
29424 * localedata/locales/translit_compat: Likewise.
29425 * localedata/locales/translit_font: Likewise.
29426 * localedata/locales/translit_fraction: Likewise.
29427
29428 2017-10-25 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
29429
29430 * sysdeps/powerpc/powerpc64/power7/memcpy.S: Replace
29431 lxvd2x/stxvd2x with lvx/stvx.
29432 * sysdeps/powerpc/powerpc64/power7/memmove.S: Likewise.
29433
29434 2017-10-25 H.J. Lu <hongjiu.lu@intel.com>
29435
29436 * include/alloc_buffer.h: Replace "if if " with "if " in
29437 comments.
29438 * sysdeps/mips/memcpy.S: Likkewise.
29439 * sysdeps/mips/memset.S: Likewise.
29440 * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf16_core_avx512.S:
29441 Likewise.
29442 * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf4_core_sse4.S:
29443 Likewise.
29444 * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf8_core_avx2.S:
29445 Likewise.
29446
29447 2017-10-25 Mike FABIAN <mfabian@redhat.com>
29448
29449 [BZ #15261]
29450 * localedata/locales/cmn_TW (LC_MESSAGES): Add fullwidth yYnN to
29451 yesexpr and noexpr.
29452 * localedata/locales/hak_TW (LC_MESSAGES): Likewise.
29453 * localedata/locales/ko_KR (LC_MESSAGES): Likewise.
29454 * localedata/locales/lzh_TW (LC_MESSAGES): Likewise.
29455 * localedata/locales/nan_TW (LC_MESSAGES): Likewise.
29456 * localedata/locales/zh_CN (LC_MESSAGES): Likewise.
29457 * localedata/locales/zh_HK (LC_MESSAGES): Likewise.
29458 * localedata/locales/zh_TW (LC_MESSAGES): Likewise.
29459
29460 2017-10-25 Mike FABIAN <mfabian@redhat.com>
29461
29462 * localedata/locales/am_ET (LC_MESSAGES): Sync with CLDR.
29463 * localedata/locales/az_AZ (LC_MESSAGES): Likewise.
29464 * localedata/locales/el_GR (LC_MESSAGES): Likewise.
29465 * localedata/locales/ha_NG (LC_MESSAGES): Likewise.
29466 * localedata/locales/ln_CD (LC_MESSAGES): Likewise.
29467 * localedata/locales/mfe_MU (LC_MESSAGES): Likewise.
29468 * localedata/locales/ml_IN (LC_MESSAGES): Likewise.
29469 * localedata/locales/mt_MT (LC_MESSAGES): Likewise.
29470 * localedata/locales/os_RU (LC_MESSAGES): Likewise.
29471 * localedata/locales/tg_TJ (LC_MESSAGES): Likewise.
29472 * localedata/locales/tt_RU (LC_MESSAGES): Likewise.
29473 * localedata/locales/wo_SN (LC_MESSAGES): Likewise.
29474
29475 2017-10-25 Mike FABIAN <mfabian@redhat.com>
29476
29477 * localedata/locales/aa_ET (LC_MESSAGES): Use ASCII as much
29478 as possible for better readability of the source.
29479 * localedata/locales/af_ZA (LC_MESSAGES): Likewise.
29480 * localedata/locales/ak_GH (LC_MESSAGES): Likewise.
29481 * localedata/locales/am_ET (LC_MESSAGES): Likewise.
29482 * localedata/locales/anp_IN (LC_MESSAGES): Likewise.
29483 * localedata/locales/ar_EG (LC_MESSAGES): Likewise.
29484 * localedata/locales/as_IN (LC_MESSAGES): Likewise.
29485 * localedata/locales/ast_ES (LC_MESSAGES): Likewise.
29486 * localedata/locales/ayc_PE (LC_MESSAGES): Likewise.
29487 * localedata/locales/az_AZ (LC_MESSAGES): Likewise.
29488 * localedata/locales/az_IR (LC_MESSAGES): Likewise.
29489 * localedata/locales/be_BY (LC_MESSAGES): Likewise.
29490 * localedata/locales/be_BY@latin (LC_MESSAGES): Likewise.
29491 * localedata/locales/bem_ZM (LC_MESSAGES): Likewise.
29492 * localedata/locales/ber_MA (LC_MESSAGES): Likewise.
29493 * localedata/locales/bg_BG (LC_MESSAGES): Likewise.
29494 * localedata/locales/bhb_IN (LC_MESSAGES): Likewise.
29495 * localedata/locales/bi_VU (LC_MESSAGES): Likewise.
29496 * localedata/locales/bo_CN (LC_MESSAGES): Likewise.
29497 * localedata/locales/br_FR (LC_MESSAGES): Likewise.
29498 * localedata/locales/bs_BA (LC_MESSAGES): Likewise.
29499 * localedata/locales/ca_ES (LC_MESSAGES): Likewise.
29500 * localedata/locales/ce_RU (LC_MESSAGES): Likewise.
29501 * localedata/locales/crh_UA (LC_MESSAGES): Likewise.
29502 * localedata/locales/cs_CZ (LC_MESSAGES): Likewise.
29503 * localedata/locales/csb_PL (LC_MESSAGES): Likewise.
29504 * localedata/locales/cv_RU (LC_MESSAGES): Likewise.
29505 * localedata/locales/cy_GB (LC_MESSAGES): Likewise.
29506 * localedata/locales/da_DK (LC_MESSAGES): Likewise.
29507 * localedata/locales/de_DE (LC_MESSAGES): Likewise.
29508 * localedata/locales/dv_MV (LC_MESSAGES): Likewise.
29509 * localedata/locales/dz_BT (LC_MESSAGES): Likewise.
29510 * localedata/locales/el_GR (LC_MESSAGES): Likewise.
29511 * localedata/locales/en_CA (LC_MESSAGES): Likewise.
29512 * localedata/locales/en_US (LC_MESSAGES): Likewise.
29513 * localedata/locales/es_ES (LC_MESSAGES): Likewise.
29514 * localedata/locales/et_EE (LC_MESSAGES): Likewise.
29515 * localedata/locales/eu_ES (LC_MESSAGES): Likewise.
29516 * localedata/locales/fa_IR (LC_MESSAGES): Likewise.
29517 * localedata/locales/ff_SN (LC_MESSAGES): Likewise.
29518 * localedata/locales/fi_FI (LC_MESSAGES): Likewise.
29519 * localedata/locales/fil_PH (LC_MESSAGES): Likewise.
29520 * localedata/locales/fo_FO (LC_MESSAGES): Likewise.
29521 * localedata/locales/fr_BE (LC_MESSAGES): Likewise.
29522 * localedata/locales/fr_CH (LC_MESSAGES): Likewise.
29523 * localedata/locales/fr_FR (LC_MESSAGES): Likewise.
29524 * localedata/locales/fr_LU (LC_MESSAGES): Likewise.
29525 * localedata/locales/fur_IT (LC_MESSAGES): Likewise.
29526 * localedata/locales/fy_DE (LC_MESSAGES): Likewise.
29527 * localedata/locales/ga_IE (LC_MESSAGES): Likewise.
29528 * localedata/locales/gd_GB (LC_MESSAGES): Likewise.
29529 * localedata/locales/gl_ES (LC_MESSAGES): Likewise.
29530 * localedata/locales/gu_IN (LC_MESSAGES): Likewise.
29531 * localedata/locales/gv_GB (LC_MESSAGES): Likewise.
29532 * localedata/locales/ha_NG (LC_MESSAGES): Likewise.
29533 * localedata/locales/hak_TW (LC_MESSAGES): Likewise.
29534 * localedata/locales/he_IL (LC_MESSAGES): Likewise.
29535 * localedata/locales/hif_FJ (LC_MESSAGES): Likewise.
29536 * localedata/locales/hne_IN (LC_MESSAGES): Likewise.
29537 * localedata/locales/hr_HR (LC_MESSAGES): Likewise.
29538 * localedata/locales/hsb_DE (LC_MESSAGES): Likewise.
29539 * localedata/locales/ht_HT (LC_MESSAGES): Likewise.
29540 * localedata/locales/hu_HU (LC_MESSAGES): Likewise.
29541 * localedata/locales/hy_AM (LC_MESSAGES): Likewise.
29542 * localedata/locales/ia_FR (LC_MESSAGES): Likewise.
29543 * localedata/locales/id_ID (LC_MESSAGES): Likewise.
29544 * localedata/locales/ig_NG (LC_MESSAGES): Likewise.
29545 * localedata/locales/ik_CA (LC_MESSAGES): Likewise.
29546 * localedata/locales/is_IS (LC_MESSAGES): Likewise.
29547 * localedata/locales/it_CH (LC_MESSAGES): Likewise.
29548 * localedata/locales/it_IT (LC_MESSAGES): Likewise.
29549 * localedata/locales/iu_CA (LC_MESSAGES): Likewise.
29550 * localedata/locales/ja_JP (LC_MESSAGES): Likewise.
29551 * localedata/locales/kk_KZ (LC_MESSAGES): Likewise.
29552 * localedata/locales/kl_GL (LC_MESSAGES): Likewise.
29553 * localedata/locales/ko_KR (LC_MESSAGES): Likewise.
29554 * localedata/locales/ks_IN (LC_MESSAGES): Likewise.
29555 * localedata/locales/ku_TR (LC_MESSAGES): Likewise.
29556 * localedata/locales/kw_GB (LC_MESSAGES): Likewise.
29557 * localedata/locales/ky_KG (LC_MESSAGES): Likewise.
29558 * localedata/locales/lb_LU (LC_MESSAGES): Likewise.
29559 * localedata/locales/lg_UG (LC_MESSAGES): Likewise.
29560 * localedata/locales/li_NL (LC_MESSAGES): Likewise.
29561 * localedata/locales/lij_IT (LC_MESSAGES): Likewise.
29562 * localedata/locales/ln_CD (LC_MESSAGES): Likewise.
29563 * localedata/locales/lo_LA (LC_MESSAGES): Likewise.
29564 * localedata/locales/lt_LT (LC_MESSAGES): Likewise.
29565 * localedata/locales/lv_LV (LC_MESSAGES): Likewise.
29566 * localedata/locales/lzh_TW (LC_MESSAGES): Likewise.
29567 * localedata/locales/mg_MG (LC_MESSAGES): Likewise.
29568 * localedata/locales/mhr_RU (LC_MESSAGES): Likewise.
29569 * localedata/locales/mi_NZ (LC_MESSAGES): Likewise.
29570 * localedata/locales/mk_MK (LC_MESSAGES): Likewise.
29571 * localedata/locales/ml_IN (LC_MESSAGES): Likewise.
29572 * localedata/locales/mn_MN (LC_MESSAGES): Likewise.
29573 * localedata/locales/ms_MY (LC_MESSAGES): Likewise.
29574 * localedata/locales/mt_MT (LC_MESSAGES): Likewise.
29575 * localedata/locales/my_MM (LC_MESSAGES): Likewise.
29576 * localedata/locales/nan_TW (LC_MESSAGES): Likewise.
29577 * localedata/locales/nan_TW@latin (LC_MESSAGES): Likewise.
29578 * localedata/locales/nb_NO (LC_MESSAGES): Likewise.
29579 * localedata/locales/nds_DE (LC_MESSAGES): Likewise.
29580 * localedata/locales/nds_NL (LC_MESSAGES): Likewise.
29581 * localedata/locales/ne_NP (LC_MESSAGES): Likewise.
29582 * localedata/locales/nhn_MX (LC_MESSAGES): Likewise.
29583 * localedata/locales/niu_NU (LC_MESSAGES): Likewise.
29584 * localedata/locales/nl_NL (LC_MESSAGES): Likewise.
29585 * localedata/locales/nn_NO (LC_MESSAGES): Likewise.
29586 * localedata/locales/nr_ZA (LC_MESSAGES): Likewise.
29587 * localedata/locales/nso_ZA (LC_MESSAGES): Likewise.
29588 * localedata/locales/oc_FR (LC_MESSAGES): Likewise.
29589 * localedata/locales/om_ET (LC_MESSAGES): Likewise.
29590 * localedata/locales/or_IN (LC_MESSAGES): Likewise.
29591 * localedata/locales/os_RU (LC_MESSAGES): Likewise.
29592 * localedata/locales/pa_IN (LC_MESSAGES): Likewise.
29593 * localedata/locales/pa_PK (LC_MESSAGES): Likewise.
29594 * localedata/locales/pap_AW (LC_MESSAGES): Likewise.
29595 * localedata/locales/pap_CW (LC_MESSAGES): Likewise.
29596 * localedata/locales/pl_PL (LC_MESSAGES): Likewise.
29597 * localedata/locales/ps_AF (LC_MESSAGES): Likewise.
29598 * localedata/locales/pt_BR (LC_MESSAGES): Likewise.
29599 * localedata/locales/quz_PE (LC_MESSAGES): Likewise.
29600 * localedata/locales/raj_IN (LC_MESSAGES): Likewise.
29601 * localedata/locales/ro_RO (LC_MESSAGES): Likewise.
29602 * localedata/locales/ru_RU (LC_MESSAGES): Likewise.
29603 * localedata/locales/ru_UA (LC_MESSAGES): Likewise.
29604 * localedata/locales/rw_RW (LC_MESSAGES): Likewise.
29605 * localedata/locales/sa_IN (LC_MESSAGES): Likewise.
29606 * localedata/locales/sc_IT (LC_MESSAGES): Likewise.
29607 * localedata/locales/sd_IN@devanagari (LC_MESSAGES): Likewise.
29608 * localedata/locales/se_NO (LC_MESSAGES): Likewise.
29609 * localedata/locales/sgs_LT (LC_MESSAGES): Likewise.
29610 * localedata/locales/si_LK (LC_MESSAGES): Likewise.
29611 * localedata/locales/sk_SK (LC_MESSAGES): Likewise.
29612 * localedata/locales/sl_SI (LC_MESSAGES): Likewise.
29613 * localedata/locales/sm_WS (LC_MESSAGES): Likewise.
29614 * localedata/locales/so_DJ (LC_MESSAGES): Likewise.
29615 * localedata/locales/sq_AL (LC_MESSAGES): Likewise.
29616 * localedata/locales/sr_RS (LC_MESSAGES): Likewise.
29617 * localedata/locales/sr_RS@latin (LC_MESSAGES): Likewise.
29618 * localedata/locales/ss_ZA (LC_MESSAGES): Likewise.
29619 * localedata/locales/st_ZA (LC_MESSAGES): Likewise.
29620 * localedata/locales/sv_SE (LC_MESSAGES): Likewise.
29621 * localedata/locales/sw_KE (LC_MESSAGES): Likewise.
29622 * localedata/locales/szl_PL (LC_MESSAGES): Likewise.
29623 * localedata/locales/tcy_IN (LC_MESSAGES): Likewise.
29624 * localedata/locales/tg_TJ (LC_MESSAGES): Likewise.
29625 * localedata/locales/th_TH (LC_MESSAGES): Likewise.
29626 * localedata/locales/the_NP (LC_MESSAGES): Likewise.
29627 * localedata/locales/ti_ER (LC_MESSAGES): Likewise.
29628 * localedata/locales/tk_TM (LC_MESSAGES): Likewise.
29629 * localedata/locales/tn_ZA (LC_MESSAGES): Likewise.
29630 * localedata/locales/to_TO (LC_MESSAGES): Likewise.
29631 * localedata/locales/tr_TR (LC_MESSAGES): Likewise.
29632 * localedata/locales/ts_ZA (LC_MESSAGES): Likewise.
29633 * localedata/locales/tt_RU (LC_MESSAGES): Likewise.
29634 * localedata/locales/tt_RU@iqtelif (LC_MESSAGES): Likewise.
29635 * localedata/locales/uk_UA (LC_MESSAGES): Likewise.
29636 * localedata/locales/unm_US (LC_MESSAGES): Likewise.
29637 * localedata/locales/ur_IN (LC_MESSAGES): Likewise.
29638 * localedata/locales/ur_PK (LC_MESSAGES): Likewise.
29639 * localedata/locales/uz_UZ (LC_MESSAGES): Likewise.
29640 * localedata/locales/uz_UZ@cyrillic (LC_MESSAGES): Likewise.
29641 * localedata/locales/ve_ZA (LC_MESSAGES): Likewise.
29642 * localedata/locales/vi_VN (LC_MESSAGES): Likewise.
29643 * localedata/locales/wa_BE (LC_MESSAGES): Likewise.
29644 * localedata/locales/wo_SN (LC_MESSAGES): Likewise.
29645 * localedata/locales/xh_ZA (LC_MESSAGES): Likewise.
29646 * localedata/locales/yi_US (LC_MESSAGES): Likewise.
29647 * localedata/locales/yo_NG (LC_MESSAGES): Likewise.
29648 * localedata/locales/yue_HK (LC_MESSAGES): Likewise.
29649 * localedata/locales/zh_CN (LC_MESSAGES): Likewise.
29650 * localedata/locales/zh_HK (LC_MESSAGES): Likewise.
29651 * localedata/locales/zh_TW (LC_MESSAGES): Likewise.
29652 * localedata/locales/zu_ZA (LC_MESSAGES): Likewise.
29653
29654 2017-10-25 Mike FABIAN <mfabian@redhat.com>
29655
29656 * localedata/locales/brx_IN (LC_MESSAGES): Fix yesexpr and noexpr
29657 (Use first letters of yesstr and nostr correctly instead of using
29658 full words).
29659
29660 2017-10-25 Mike FABIAN <mfabian@redhat.com>
29661
29662 * localedata/locales/ta_IN (LC_MESSAGES): Fix yesexpr and noexpr
29663 (Use first letters of yesstr and nostr correctly).
29664
29665 2017-10-25 Mike FABIAN <mfabian@redhat.com>
29666
29667 * localedata/locales/hi_IN (LC_MESSAGES): In yesexpr and noexpr,
29668 also check for the first characters of yesstr and nostr.
29669 * localedata/locales/kn_IN (LC_MESSAGES): Likewise.
29670 * localedata/locales/ks_IN@devanagari (LC_MESSAGES): Likewise.
29671
29672 2017-10-25 Mike FABIAN <mfabian@redhat.com>
29673
29674 * localedata/locales/cmn_TW (LC_MESSAGES): In yesexpr and noexpr,
29675 also check for Chinese characters.
29676
29677 2017-10-25 Mike FABIAN <mfabian@redhat.com>
29678
29679 * localedata/locales/chr_US (LC_MESSAGES): In yesexpr and noexpr,
29680 match also for the contents of yesstr and nostr. As the first letter
29681 of yesstr and nostr is equal, checking only for the first letter
29682 is not enough.
29683
29684 2017-10-25 Mike FABIAN <mfabian@redhat.com>
29685
29686 * localedata/locales/ber_DZ (LC_MESSAGES): Use copy "kab_DZ",
29687 it is the same according to Belkacem Mohammed <belkacem77@gmail.com>.
29688
29689 2017-10-25 Mike FABIAN <mfabian@redhat.com>
29690
29691 * localedata/locales/kab_DZ (LC_IDENTIFICATION): Add e-mail
29692 of main contributor.
29693
29694 2017-10-25 Mike FABIAN <mfabian@redhat.com>
29695
29696 * localedata/locales/zh_SG (LC_MESSAGES): Use copy "zh_CN"
29697 instead of using English.
29698
29699 2017-10-25 Mike FABIAN <mfabian@redhat.com>
29700
29701 * localedata/locales/ug_CN (LC_MESSAGES): Fix noexpr and yesexpr
29702 by including the first letters of nostr and yesexpr in the regexp.
29703 Also make it more readable by using ASCII where possible.
29704
29705 2017-10-25 Mike FABIAN <mfabian@redhat.com>
29706
29707 * localedata/locales/te_IN (LC_MESSAGES): Fix noexpr by including
29708 the first letter of nostr in the regexp. It agrees with CLDR now.
29709 Also make it more readable by using ASCII where possible.
29710
29711 2017-10-24 Mike FABIAN <mfabian@redhat.com>
29712
29713 * localedata/locales/km_KH (LC_MESSAGES): Fix yestr and nostr.
29714 The yesstr and nostr apparently came from CLDR. And CLDR has a bug there:
29715 these strings contain a U+17D6 (which somewhat looks like a colon)
29716 instead of a real colon to separate the full words for “yes”
29717 and “no” from the single letter responses.
29718
29719 2017-10-24 Mike FABIAN <mfabian@redhat.com>
29720
29721 * localedata/locales/ka_GE (LC_MESSAGES): Fix yesexp to make
29722 it agree with CLDR (include the first letter of yesstr).
29723 Also make it more readable by using ASCII where possible.
29724
29725 2017-10-24 Mike FABIAN <mfabian@redhat.com>
29726
29727 * localedata/locales/mr_IN (LC_MESSAGES): Fix yesstr and nostr
29728 and improve yesexpr and noexpr. The yesstr and nostr apparently
29729 came from CLDR. And CLDR has a bug there: these strings contain
29730 a U+0903 (which looks like a colon) instead of a real colon
29731 to separate the full words for “yes” and “no” from the single
29732 letter responses.
29733
29734 2017-10-24 Mike FABIAN <mfabian@redhat.com>
29735
29736 * localedata/locales/bn_BD (LC_MESSAGES): Use only the first
29737 letters of the full yesstr and nostr in yesexpr and noexpr.
29738
29739 2017-10-24 Mike FABIAN <mfabian@redhat.com>
29740
29741 * localedata/locales/an_ES (LC_MESSAGES): Add yesstr and nostr.
29742 * localedata/locales/an_ES (LC_ADDRESS): Add lang_term and lang_lib.
29743 * localedata/locales/an_ES: Make source more readable by using ASCII
29744 where possible.
29745
29746 2017-10-24 Mike FABIAN <mfabian@redhat.com>
29747
29748 [BZ #20952]
29749 * localedata/locales/yuw_PG: New file.
29750 * localedata/SUPPORTED: Add yuw_PG/UTF-8.
29751 * locale/iso-639.def: Add Yau (Uruwa).
29752
29753 2017-10-23 Wilco Dijkstra <wdijkstr@arm.com>
29754
29755 * malloc/malloc.c (_int_malloc): Add SINGLE_THREAD_P path.
29756
29757 2017-10-23 Wilco Dijkstra <wdijkstr@arm.com>
29758
29759 * malloc/malloc.c (__libc_malloc): Add SINGLE_THREAD_P path.
29760 (__libc_realloc): Likewise.
29761 (_mid_memalign): Likewise.
29762 (__libc_calloc): Likewise.
29763
29764 2017-10-23 Mike FABIAN <mfabian@redhat.com>
29765
29766 * localedata/locales/tpi_PG (LC_MESSAGES): Fix yesexpr and noexpr
29767 by adding the generic +1 and -0 as in all other locales.
29768 * localedata/locales/tpi_PG (LC_TIME): Fix some typos in the month and
29769 day names and make it more readable by using ASCII where possible.
29770
29771 2017-10-24 Joseph Myers <joseph@codesourcery.com>
29772
29773 * sysdeps/x86/fpu/fix-fp-int-compare-invalid.h
29774 (FIX_COMPARE_INVALID): Define to 0 if [__GNUC_PREREQ (8, 0)].
29775
29776 2017-10-23 Adhemerval Zanella <adhemerval.zanella@linaro.org>
29777
29778 * sysdeps/unix/sysv/linux/spawni.c (__spawnix): Use 0 instead of
29779 WNOHANG in waitpid call.
29780
29781 2017-10-23 Siddhesh Poyarekar <siddhesh@sourceware.org>
29782
29783 * manual/conf.texi (_SC_LEVEL1_DCACHE_LINESIZE,
29784 _SC_LEVEL1_ICACHE_LINESIZE): Document aarch64 caveat.
29785
29786 * manual/conf.texi (_SC_LEVEL1_ICACHE_SIZE,
29787 _SC_LEVEL1_ICACHE_ASSOC, _SC_LEVEL1_ICACHE_LINESIZE,
29788 _SC_LEVEL1_DCACHE_SIZE, _SC_LEVEL1_DCACHE_ASSOC,
29789 _SC_LEVEL1_DCACHE_LINESIZE, _SC_LEVEL2_CACHE_SIZE,
29790 _SC_LEVEL2_CACHE_ASSOC, _SC_LEVEL2_CACHE_LINESIZE,
29791 _SC_LEVEL3_CACHE_SIZE, _SC_LEVEL3_CACHE_ASSOC,
29792 _SC_LEVEL3_CACHE_LINESIZE, _SC_LEVEL4_CACHE_SIZE,
29793 _SC_LEVEL4_CACHE_ASSOC, _SC_LEVEL4_CACHE_LINESIZE): New
29794 variables.
29795
29796 2017-10-23 Michael Collison <michael.collison@arm.com>
29797
29798 * sysdeps/aarch64/fpu/e_sqrt.c (ieee754_sqrt): Replace asm statements
29799 with __builtin_sqrt.
29800 * sysdeps/aarch64/fpu/e_sqrtf.c (ieee754_sqrtf): Replace asm statements
29801 with __builtin_sqrtf.
29802 * sysdeps/aarch64/fpu/s_ceil.c (__ceil): Replace asm statements
29803 with __builtin_ceil.
29804 * sysdeps/aarch64/fpu/s_ceilf.c (__ceilf): Replace asm statements
29805 with __builtin_ceilf.
29806 * sysdeps/aarch64/fpu/s_floor.c (__floor): Replace asm statements
29807 with __builtin_floor.
29808 * sysdeps/aarch64/fpu/s_floorf.c (__floorf): Replace asm statements
29809 with __builtin_floorf.
29810 * sysdeps/aarch64/fpu/s_fma.c (__fma): Replace asm statements
29811 with __builtin_fma.
29812 * sysdeps/aarch64/fpu/s_fmaf.c (__fmaf): Replace asm statements
29813 with __builtin_fmaf.
29814 * sysdeps/aarch64/fpu/s_fmax.c (__fmax): Replace asm statements
29815 with __builtin_fmax.
29816 * sysdeps/aarch64/fpu/s_fmaxf.c (__fmaxf): Replace asm statements
29817 with __builtin_fmaxf.
29818 * sysdeps/aarch64/fpu/s_fmin.c (__fmin): Replace asm statements
29819 with __builtin_fmin.
29820 * sysdeps/aarch64/fpu/s_fminf.c (__fminf): Replace asm statements
29821 with __builtin_fminf.
29822 * sysdeps/aarch64/fpu/s_frint.c: Delete file.
29823 * sysdeps/aarch64/fpu/s_frintf.c: Delete file.
29824 * sysdeps/aarch64/fpu/s_llrint.c (__llrint): Replace asm statements
29825 with builtin_rint and conversion to int.
29826 * sysdeps/aarch64/fpu/s_llrintf.c (__llrintf): Likewise.
29827 * sysdeps/aarch64/fpu/s_llround.c (__llround): Replace asm statements
29828 with builtin_llround.
29829 * sysdeps/aarch64/fpu/s_llroundf.c (__llroundf): Likewise.
29830 * sysdeps/aarch64/fpu/s_lrint.c (__lrint): Replace asm statements
29831 with builtin_rint and conversion to long int.
29832 * sysdeps/aarch64/fpu/s_lrintf.c (__lrintf): Likewise.
29833 * sysdeps/aarch64/fpu/s_lround.c (__lround): Replace asm statements
29834 with builtin_lround.
29835 * sysdeps/aarch64/fpu/s_lroundf.c (__lroundf): Replace asm statements
29836 with builtin_lroundf.
29837 * sysdeps/aarch64/fpu/s_nearbyint.c (__nearbyint): Replace asm
29838 statements with __builtin_nearbyint.
29839 * sysdeps/aarch64/fpu/s_nearbyintf.c (__nearbyintf): Replace asm
29840 statements with __builtin_nearbyintf.
29841 * sysdeps/aarch64/fpu/s_rint.c (__rint): Replace asm statements
29842 with __builtin_rint.
29843 * sysdeps/aarch64/fpu/s_rintf.c (__rintf): Replace asm statements
29844 with __builtin_rintf.
29845 * sysdeps/aarch64/fpu/s_round.c (__round): Replace asm statements
29846 with __builtin_round.
29847 * sysdeps/aarch64/fpu/s_roundf.c (__roundf): Replace asm statements
29848 with __builtin_roundf.
29849 * sysdeps/aarch64/fpu/s_trunc.c (__trunc): Replace asm statements
29850 with __builtin_trunc.
29851 * sysdeps/aarch64/fpu/s_truncf.c (__truncf): Replace asm statements
29852 with __builtin_truncf.
29853 * sysdeps/aarch64/fpu/Makefile: Build e_sqrt[f].c with -fno-math-errno,
29854 and s_l[l]round[f].c too.
29855
29856 2017-10-23 Alan Modra <amodra@gmail.com>
29857
29858 * sysdeps/powerpc/powerpc64/power8/strncpy.S: Move LR cfi.
29859 Adjust stack after restoring regs. Add missing LR cfi_restore.
29860
29861 2017-10-23 Alan Modra <amodra@gmail.com>
29862
29863 * sysdeps/powerpc/powerpc64/power7/strncpy.S: Decrease FRAMESIZE.
29864 Move LR save and frame setup/teardown and LR restore to
29865 immediately around memset call. Provide cfi.
29866
29867 2017-10-22 H.J. Lu <hongjiu.lu@intel.com>
29868
29869 * sysdeps/i386/fpu/e_powf.S: Removed.
29870 * sysdeps/i386/fpu/e_powf_log2_data.c: Likewise.
29871 * sysdeps/i386/fpu/w_powf.c: Likewise.
29872 * sysdeps/i386/fpu/libm-test-ulps: Updated for generic e_powf.c.
29873 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
29874 * sysdeps/i386/i686/fpu/multiarch/Makefile (libm-sysdep_routines):
29875 Add e_powf-sse2.
29876 (CFLAGS-e_powf-sse2.c): New.
29877 * sysdeps/i386/i686/fpu/multiarch/e_powf-sse2.c: New file.
29878 * sysdeps/i386/i686/fpu/multiarch/e_powf.c: Likewise.
29879
29880 2017-10-22 H.J. Lu <hongjiu.lu@intel.com>
29881
29882 * sysdeps/i386/fpu/e_log2f.S: Removed.
29883 * sysdeps/i386/fpu/e_log2f_data.c: Likewise.
29884 * sysdeps/i386/fpu/w_log2f.c: Likewise.
29885 * sysdeps/i386/fpu/libm-test-ulps: Updated for generic e_log2f.c.
29886 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
29887 * sysdeps/i386/i686/fpu/multiarch/Makefile (libm-sysdep_routines):
29888 Add e_log2f-sse2.
29889 (CFLAGS-e_log2f-sse2.c): New.
29890 * sysdeps/i386/i686/fpu/multiarch/e_log2f-sse2.c: New file.
29891 * sysdeps/i386/i686/fpu/multiarch/e_log2f.c: Likewise.
29892
29893 2017-10-22 H.J. Lu <hongjiu.lu@intel.com>
29894
29895 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
29896 Add e_powf-fma.
29897 (CFLAGS-e_powf-fma.c): New.
29898 * sysdeps/x86_64/fpu/multiarch/e_powf-fma.c: New file.
29899 * sysdeps/x86_64/fpu/multiarch/e_powf.c: Likewise.
29900
29901 2017-10-22 H.J. Lu <hongjiu.lu@intel.com>
29902
29903 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
29904 Add e_log2f-fma.
29905 (CFLAGS-e_log2f-fma.c): New.
29906 * sysdeps/x86_64/fpu/multiarch/e_log2f-fma.c: New file.
29907 * sysdeps/x86_64/fpu/multiarch/e_log2f.c: Likewise.
29908
29909 2017-10-22 H.J. Lu <hongjiu.lu@intel.com>
29910
29911 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
29912 Add e_logf-fma.
29913 (CFLAGS-e_logf-fma.c): New.
29914 * sysdeps/x86_64/fpu/multiarch/e_logf-fma.c: New file.
29915 * sysdeps/x86_64/fpu/multiarch/e_logf.c: Likewise.
29916
29917 2017-10-22 H.J. Lu <hongjiu.lu@intel.com>
29918
29919 * sysdeps/i386/fpu/e_logf.S: Removed.
29920 * sysdeps/i386/fpu/e_logf_data.c: Likewise.
29921 * sysdeps/i386/fpu/w_logf.c: Likewise.
29922 * sysdeps/i386/i686/fpu/e_logf.S: Likewise.
29923 * sysdeps/i386/fpu/libm-test-ulps: Updated for generic e_logf.c.
29924 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
29925 * sysdeps/i386/i686/fpu/multiarch/Makefile (libm-sysdep_routines):
29926 Add e_logf-sse2.
29927 (CFLAGS-e_logf-sse2.c): New.
29928 * sysdeps/i386/i686/fpu/multiarch/e_logf-sse2.c: New file.
29929 * sysdeps/i386/i686/fpu/multiarch/e_logf.c: Likewise.
29930
29931 2017-10-22 H.J. Lu <hongjiu.lu@intel.com>
29932
29933 * sysdeps/i386/fpu/e_exp2f.S: Removed.
29934 * sysdeps/i386/fpu/w_exp2f.c: Likewise.
29935 * sysdeps/i386/fpu/libm-test-ulps: Updated for generic e_exp2f.c.
29936 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
29937 * sysdeps/i386/i686/fpu/multiarch/Makefile (libm-sysdep_routines):
29938 Add e_exp2f-sse2.
29939 (CFLAGS-e_exp2f-sse2.c): New.
29940 * sysdeps/i386/i686/fpu/multiarch/e_exp2f-sse2.c: New file.
29941 * sysdeps/i386/i686/fpu/multiarch/e_exp2f.c: Likewise.
29942
29943 2017-10-22 H.J. Lu <hongjiu.lu@intel.com>
29944
29945 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
29946 Add e_exp2f-fma.
29947 (CFLAGS-e_exp2f-fma.c): New.
29948 * sysdeps/x86_64/fpu/multiarch/e_exp2f-fma.c: New file.
29949 * sysdeps/x86_64/fpu/multiarch/e_exp2f.c: Likewise.
29950
29951 2017-10-22 H.J. Lu <hongjiu.lu@intel.com>
29952
29953 * sysdeps/i386/fpu/e_exp2f_data.c: Removed.
29954 * sysdeps/i386/fpu/e_expf.S: Likewise.
29955 * sysdeps/i386/fpu/math_errf.c: Likewise.
29956 * sysdeps/i386/fpu/w_expf.c: Likewise.
29957 * sysdeps/i386/i686/fpu/multiarch/e_expf-ia32.S: Likewise.
29958 * sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.S: Likewise.
29959 * sysdeps/i386/i686/fpu/multiarch/w_expf.c: Likewise.
29960 * sysdeps/i386/fpu/libm-test-ulps: Updated for generic e_expf.c.
29961 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
29962 * sysdeps/i386/i686/fpu/multiarch/Makefile (libm-sysdep_routines):
29963 Remove e_expf-ia32.
29964 (CFLAGS-e_expf-sse2.c): New.
29965 * sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.c: New file.
29966 * sysdeps/i386/i686/fpu/multiarch/e_expf.c: Rewritten.
29967
29968 2017-10-22 H.J. Lu <hongjiu.lu@intel.com>
29969
29970 * sysdeps/x86_64/fpu/e_expf.S: Removed.
29971 * sysdeps/x86_64/fpu/multiarch/e_expf-fma.S: Likewise.
29972 * sysdeps/x86_64/fpu/w_expf.c: Likewise.
29973 * sysdeps/x86_64/fpu/libm-test-ulps: Updated for generic
29974 e_expf.c.
29975 * sysdeps/x86_64/fpu/multiarch/Makefile (CFLAGS-e_expf-fma.c):
29976 New.
29977 * sysdeps/x86_64/fpu/multiarch/e_expf-fma.c: New file.
29978 * sysdeps/x86_64/fpu/multiarch/e_expf.c (__redirect_ieee754_expf):
29979 Renamed to ...
29980 (__redirect_expf): This.
29981 (SYMBOL_NAME): Changed to expf.
29982 (__ieee754_expf): Renamed to ...
29983 (__expf): This.
29984 (__GI___expf): This.
29985 (__ieee754_expf): Add strong_alias.
29986 (__expf_finite): Likewise.
29987 (__expf): New.
29988 Include <sysdeps/ieee754/flt-32/e_expf.c>.
29989
29990 2017-10-22 Paul Eggert <eggert@cs.ucla.edu>
29991
29992 [BZ #22332]
29993 * posix/glob.c (__glob): Fix buffer overflow during GLOB_TILDE
29994 unescaping.
29995
29996 2017-10-21 Florian Weimer <fweimer@redhat.com>
29997
29998 * posix/Makefile (tests): Add tst-glob-tilde.
29999 (tests-special): Add tst-glob-tilde-mem.out
30000 (tst-glob-tilde-ENV): Set MALLOC_TRACE.
30001 (tst-glob-tilde-mem.out): Add mtrace check.
30002 * posix/tst-glob-tilde.c: New file.
30003
30004 2017-10-20 Joseph Myers <joseph@codesourcery.com>
30005
30006 * bits/floatn-common.h: New file.
30007 * math/Makefile (headers): Add bits/floatn-common.h.
30008 * bits/floatn.h: Include <bits/floatn-common.h>.
30009 * sysdeps/ia64/bits/floatn.h: Likewise.
30010 * sysdeps/ieee754/ldbl-128/bits/floatn.h: Likewise.
30011 * sysdeps/mips/ieee754/bits/floatn.h: Likewise.
30012 * sysdeps/powerpc/bits/floatn.h: Likewise.
30013 * sysdeps/x86/bits/floatn.h: Likewise.
30014
30015 2017-10-20 Adhemerval Zanella <adhemerval.zanella@linaro.org>
30016
30017 * configure.ac (libc_cv_gcc_incompatbile_alias): New define:
30018 indicates whether compiler emits an warning for alias for
30019 functions with incompatible types.
30020
30021 [BZ #22273]
30022 * sysdeps/unix/sysv/linux/spawni.c (__spawnix): Handle the case where
30023 the auxiliary process is terminated by a signal before calling _exit
30024 or execve.
30025
30026 2017-10-20 H.J. Lu <hongjiu.lu@intel.com>
30027
30028 [BZ #21265]
30029 * sysdeps/x86/cpu-features-offsets.sym (XSAVE_STATE_SIZE_OFFSET):
30030 New.
30031 * sysdeps/x86/cpu-features.c: Include <libc-pointer-arith.h>.
30032 (get_common_indeces): Set xsave_state_size, xsave_state_full_size
30033 and bit_arch_XSAVEC_Usable if needed.
30034 (init_cpu_features): Remove bit_arch_Use_dl_runtime_resolve_slow
30035 and bit_arch_Use_dl_runtime_resolve_opt.
30036 * sysdeps/x86/cpu-features.h (bit_arch_Use_dl_runtime_resolve_opt):
30037 Removed.
30038 (bit_arch_Use_dl_runtime_resolve_slow): Likewise.
30039 (bit_arch_Prefer_No_AVX512): Updated.
30040 (bit_arch_MathVec_Prefer_No_AVX512): Likewise.
30041 (bit_arch_XSAVEC_Usable): New.
30042 (STATE_SAVE_OFFSET): Likewise.
30043 (STATE_SAVE_MASK): Likewise.
30044 [__ASSEMBLER__]: Include <cpu-features-offsets.h>.
30045 (cpu_features): Add xsave_state_size and xsave_state_full_size.
30046 (index_arch_Use_dl_runtime_resolve_opt): Removed.
30047 (index_arch_Use_dl_runtime_resolve_slow): Likewise.
30048 (index_arch_XSAVEC_Usable): New.
30049 * sysdeps/x86/cpu-tunables.c (TUNABLE_CALLBACK (set_hwcaps)):
30050 Support XSAVEC_Usable. Remove Use_dl_runtime_resolve_slow.
30051 * sysdeps/x86_64/Makefile (tst-x86_64-1-ENV): New if tunables
30052 is enabled.
30053 * sysdeps/x86_64/dl-machine.h (elf_machine_runtime_setup):
30054 Replace _dl_runtime_resolve_sse, _dl_runtime_resolve_avx,
30055 _dl_runtime_resolve_avx_slow, _dl_runtime_resolve_avx_opt,
30056 _dl_runtime_resolve_avx512 and _dl_runtime_resolve_avx512_opt
30057 with _dl_runtime_resolve_fxsave, _dl_runtime_resolve_xsave and
30058 _dl_runtime_resolve_xsavec.
30059 * sysdeps/x86_64/dl-trampoline.S (DL_RUNTIME_UNALIGNED_VEC_SIZE):
30060 Removed.
30061 (DL_RUNTIME_RESOLVE_REALIGN_STACK): Check STATE_SAVE_ALIGNMENT
30062 instead of VEC_SIZE.
30063 (REGISTER_SAVE_BND0): Removed.
30064 (REGISTER_SAVE_BND1): Likewise.
30065 (REGISTER_SAVE_BND3): Likewise.
30066 (REGISTER_SAVE_RAX): Always defined to 0.
30067 (VMOV): Removed.
30068 (_dl_runtime_resolve_avx): Likewise.
30069 (_dl_runtime_resolve_avx_slow): Likewise.
30070 (_dl_runtime_resolve_avx_opt): Likewise.
30071 (_dl_runtime_resolve_avx512): Likewise.
30072 (_dl_runtime_resolve_avx512_opt): Likewise.
30073 (_dl_runtime_resolve_sse): Likewise.
30074 (_dl_runtime_resolve_sse_vex): Likewise.
30075 (USE_FXSAVE): New.
30076 (_dl_runtime_resolve_fxsave): Likewise.
30077 (USE_XSAVE): Likewise.
30078 (_dl_runtime_resolve_xsave): Likewise.
30079 (USE_XSAVEC): Likewise.
30080 (_dl_runtime_resolve_xsavec): Likewise.
30081 * sysdeps/x86_64/dl-trampoline.h (_dl_runtime_resolve_avx512):
30082 Removed.
30083 (_dl_runtime_resolve_avx512_opt): Likewise.
30084 (_dl_runtime_resolve_avx): Likewise.
30085 (_dl_runtime_resolve_avx_opt): Likewise.
30086 (_dl_runtime_resolve_sse): Likewise.
30087 (_dl_runtime_resolve_sse_vex): Likewise.
30088 (_dl_runtime_resolve_fxsave): New.
30089 (_dl_runtime_resolve_xsave): Likewise.
30090 (_dl_runtime_resolve_xsavec): Likewise.
30091
30092 2017-10-20 Paul Eggert <eggert@cs.ucla.edu>
30093
30094 [BZ #22320]
30095 CVE-2017-15670
30096 * posix/glob.c (__glob): Fix one-byte overflow.
30097
30098 2017-10-20 Wilco Dijkstra <wdijkstr@arm.com>
30099
30100 * malloc/malloc.c (sysdep-cancel.h): Add include.
30101
30102 2017-10-20 Wilco Dijkstra <wdijkstr@arm.com>
30103
30104 * malloc/malloc.c (_int_free): Add SINGLE_THREAD_P fast paths.
30105
30106 2017-10-20 Will Hawkins <hawkinsw@borlaugic.com>
30107
30108 * resolv/Makefile [$(build-shared)$(have-thread-library) == yesyes]
30109 (tests): Remove $(objpfx)ga_test depdendency.
30110 * resolv/ga_test.c: Remove file.
30111
30112 2017-10-20 Mike FABIAN <mfabian@redhat.com>
30113
30114 [BZ #18812]
30115 * localedata/SUPPORTED: Add kab_DZ/UTF-8.
30116 * localedata/locales/kab_DZ: New file.
30117
30118 2017-10-20 H.J. Lu <hongjiu.lu@intel.com>
30119
30120 * sysdeps/m68k/dl-machine.h (elf_machine_load_address): Use
30121 _dl_relocate_static_pie instead of _dl_start to compute load
30122 address in static PIE.
30123
30124 2017-10-20 H.J. Lu <hongjiu.lu@intel.com>
30125
30126 * sysdeps/m68k/start.S (_start): Check PIC instead of SHARED.
30127
30128 2017-10-20 Mike FABIAN <mfabian@redhat.com>
30129
30130 [BZ #13605]
30131 * localedata/SUPPORTED: Add shn_MM/UTF-8.
30132 * localedata/locales/shn_MM: New file.
30133
30134 2017-10-20 Florian Weimer <fweimer@redhat.com>
30135
30136 [BZ #22321]
30137 sysconf: Fix missing definition of UIO_MAXIOV on Linux.
30138 * sysdeps/posix/sysconf.c: Include <sys/uio.h>.
30139 * sysdeps/unix/sysv/linux/Makefile (tests): Add tst-sysconf-iov_max.
30140 (tst-sysconf-iov_max): Link with tst-sysconf-iov_max-uapi.o.
30141 * sysdeps/unix/sysv/linux/tst-sysconf-iov_max.c: New file.
30142 * sysdeps/unix/sysv/linux/tst-sysconf-iov_max-uapi.c: Likewise.
30143
30144 2017-10-19 H.J. Lu <hongjiu.lu@intel.com>
30145
30146 * sysdeps/i386/fpu/libm-test-ulps: Regenerated.
30147
30148 2017-10-19 Joseph Myers <joseph@codesourcery.com>
30149
30150 * sysdeps/mips/ieee754/bits/floatn.h: New file.
30151
30152 [BZ #22322]
30153 * sysdeps/mips/bits/long-double.h: Move to ....
30154 * sysdeps/mips/ieee754/bits/long-double.h: ... here.
30155
30156 2017-10-19 Wilco Dijkstra <wdijkstr@arm.com>
30157
30158 * malloc/malloc.c (_int_free): Fix deadlock bug in consistency check.
30159
30160 2017-10-19 Valery Reznic <valery_reznic@yahoo.com>
30161 H.J. Lu <hongjiu.lu@intel.com>
30162
30163 [BZ #22299]
30164 * sysdeps/x86/cpu-features.c (init_cpu_features): Don't set
30165 GLRO(dl_platform) to NULL.
30166 * sysdeps/x86_64/Makefile (tests): Add tst-platform-1.
30167 (modules-names): Add tst-platformmod-1 and
30168 x86_64/tst-platformmod-2.
30169 (CFLAGS-tst-platform-1.c): New.
30170 (CFLAGS-tst-platformmod-1.c): Likewise.
30171 (CFLAGS-tst-platformmod-2.c): Likewise.
30172 (LDFLAGS-tst-platformmod-2.so): Likewise.
30173 ($(objpfx)tst-platform-1): Likewise.
30174 ($(objpfx)tst-platform-1.out): Likewise.
30175 (tst-platform-1-ENV): Likewise.
30176 ($(objpfx)x86_64/tst-platformmod-2.os): Likewise.
30177 * sysdeps/x86_64/tst-platform-1.c: New file.
30178 * sysdeps/x86_64/tst-platformmod-1.c: Likewise.
30179 * sysdeps/x86_64/tst-platformmod-2.c: Likewise.
30180
30181 2017-10-19 Mike FABIAN <mfabian@redhat.com>
30182
30183 [BZ #13994]
30184 * locale/iso-639.def: Add Karbi.
30185 * localedata/SUPPORTED: Add mjw_IN/UTF-8.
30186 * localedata/locales/mjw_IN: New file.
30187
30188 2017-10-18 Joseph Myers <joseph@codesourcery.com>
30189
30190 * sysdeps/ieee754/ldbl-128/Makeconfig: New file.
30191 * sysdeps/ieee754/ldbl-128/bits/floatn.h: Likewise.
30192 * sysdeps/ieee754/ldbl-128/float128-abi.h: Likewise.
30193 * sysdeps/generic/libm-alias-ldouble.h: Include <bits/floatn.h>.
30194 [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128]
30195 (libm_alias_ldouble_other_r): Also create _Float128 alias.
30196 * sysdeps/ieee754/ldbl-opt/libm-alias-ldouble.h: Include
30197 <bits/floatn.h>.
30198 [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128]
30199 (libm_alias_ldouble_other_r): Also create _Float128 alias.
30200 * manual/math.texi (Mathematics): Document additional architecture
30201 support for _Float128.
30202 * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Update.
30203 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
30204 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
30205 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
30206 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
30207 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
30208 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
30209 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
30210 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
30211 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
30212 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
30213 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
30214 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
30215 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
30216 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
30217
30218 2017-10-18 Renlin Li <renlin.li@arm.com>
30219
30220 * sysdeps/aarch64/dl-machine.h (elf_machine_load_address): Use
30221 _DYNAMIC symbol to calculate load address.
30222
30223 2017-10-18 Paul A. Clarke <pc@us.ibm.com>
30224
30225 * sysdeps/powerpc/fpu/fenv_private.h (_FPU_MASK_TRAPS_RN):
30226 (_FPU_MASK_FRAC_INEX_RET_CC): Fix masks to more properly handle
30227 summary bits.
30228 (_FPU_MASK_RN): Expand _FPU_MASK_RN to 64bit hex.
30229 (_FPU_MASK_NOT_RN_NI): Treat bit 52 (left-to-right) as reserved.
30230
30231 2017-10-18 Mike FABIAN <mfabian@redhat.com>
30232
30233 [BZ #16777]
30234 * localedata/locales/pl_PL (LC_MONETARY): Use U+202F as mon_thousands_sep
30235 and improve readability by using more ASCII.
30236 * localedata/locales/pl_PL (LC_NUMERIC): Use U+202F as thousands_sep
30237 and improve readability by using more ASCII.
30238
30239 2017-10-18 Wilco Dijkstra <wdijkstr@arm.com>
30240
30241 * malloc/malloc.c (malloc_state): Use int for have_fastchunks since
30242 not all targets support atomics on bool.
30243
30244 2017-10-17 Joseph Myers <joseph@codesourcery.com>
30245
30246 * include/float.h [!__GNUC_PREREQ (7, 0) && __HAVE_FLOAT128 &&
30247 __GLIBC_USE (IEC_60559_TYPES_EXT)] (FLT128_MAX): Define using
30248 __f128.
30249 [!__GNUC_PREREQ (7, 0) && __HAVE_FLOAT128 && __GLIBC_USE
30250 (IEC_60559_TYPES_EXT)] (FLT128_EPSILON): Likewise.
30251 [!__GNUC_PREREQ (7, 0) && __HAVE_FLOAT128 && __GLIBC_USE
30252 (IEC_60559_TYPES_EXT)] (FLT128_MIN): Likewise.
30253 [!__GNUC_PREREQ (7, 0) && __HAVE_FLOAT128 && __GLIBC_USE
30254 (IEC_60559_TYPES_EXT)] (FLT128_TRUE_MIN): Likewise.
30255
30256 2017-10-17 Adhemerval Zanella <adhemerval.zanella@linaro.org>
30257
30258 * bits/uio-ext.h (RWF_HIPRI, RWF_DSYNC, RWF_SYNC, RWF_NOWAIT): New
30259 defines.
30260
30261 2017-10-17 Wilco Dijkstra <wdijkstr@arm.com>
30262
30263 [BZ #22159]
30264 * malloc/arena.c (ptmalloc_init): Call malloc_init_state.
30265 * malloc/malloc.c (do_check_free_chunk): Fix build bug.
30266 (do_check_remalloced_chunk): Fix build bug.
30267 (do_check_malloc_state): Add assert that checks arena->top.
30268 (malloc_consolidate): Remove initialization.
30269 (int_mallinfo): Remove call to malloc_consolidate.
30270 (__libc_mallopt): Clarify why malloc_consolidate is needed.
30271
30272 2017-10-17 Wilco Dijkstra <wdijkstr@arm.com>
30273
30274 * malloc/malloc.c (FASTCHUNKS_BIT): Remove.
30275 (have_fastchunks): Remove.
30276 (clear_fastchunks): Remove.
30277 (set_fastchunks): Remove.
30278 (malloc_state): Add have_fastchunks.
30279 (malloc_init_state): Use have_fastchunks.
30280 (do_check_malloc_state): Remove incorrect invariant checks.
30281 (_int_malloc): Use have_fastchunks.
30282 (_int_free): Likewise.
30283 (malloc_consolidate): Likewise.
30284
30285 2017-10-17 Wilco Dijkstra <wdijkstr@arm.com>
30286
30287 * malloc/malloc.c (tcache_put): Inline.
30288 (tcache_get): Inline.
30289
30290 2017-10-17 Jordi Mallach <jordi@gnu.org>
30291
30292 Aurelien Jarno <aurelien@aurel32.net>
30293 [BZ #2522]
30294 * localedata/locales/ca_ES@valencia: New file.
30295 * localedata/SUPPORTED: Add ca_ES@valencia/UTF-8.
30296
30297 2017-10-17 Romain Naour <romain.naour@gmail.com> (tiny change)
30298
30299 [BZ #22296]
30300 * math/math.h: Let signbit use the builtin in C++ mode with gcc
30301 < 6.x
30302
30303 2017-10-17 Adhemerval Zanella <adhemerval.zanella@linaro.org>
30304
30305 * scripts/build-many-glibcs.py (Context.add_all_configs):
30306 Add arm-linux-gnueabihf multiarch extra_glibcs.
30307
30308 * sysdeps/generic/ifunc-init.h: New file.
30309 * sysdeps/x86/init-arch.h: Use generic ifunc-init.h.
30310
30311 2017-10-17 Mike FABIAN <mfabian@redhat.com>
30312
30313 [BZ #22019]
30314 * localedata/locales/el_GR: Set n_cs_precedes to 0.
30315 * localedata/locales/el_CY: copy "el_GR" because it is identical.
30316 * stdlib/tst-strfmon_l.c: adapt test case.
30317
30318 2017-10-16 Joseph Myers <joseph@codesourcery.com>
30319
30320 * sysdeps/generic/float128-abi.h: New file.
30321 * sysdeps/ieee754/float128/Versions (FLOAT128_VERSION): Move
30322 non-__prefixed symbols to ....
30323 * math/Versions: ... here. Include <float128-abi.h>.
30324 * stdlib/Versions ... and here. Include <float128-abi.h>
30325
30326 2017-10-16 Florian Weimer <fweimer@redhat.com>
30327
30328 * version.h (VERSION): Switch to ".9000" as the development
30329 version suffix.
30330
30331 2017-10-16 Florian Weimer <fweimer@redhat.com>
30332
30333 [BZ #22050]
30334 * malloc/mcheck-init.c (__malloc_initialize_hook): Use
30335 compat_symbol_reference to access non-default version.
30336
30337 2017-10-16 Florian Weimer <fweimer@redhat.com>
30338
30339 * malloc/Makefile (others-extras): Set to mcheck-init.o.
30340
30341 2017-10-16 Carlos O'Donell <carlos@redhat.com>
30342
30343 * include/shlib-compat.h (compat_symbol_reference): Update
30344 comment.
30345
30346 2017-10-16 Joseph Myers <joseph@codesourcery.com>
30347
30348 * math/Makefile (test-types): Add
30349 $(type-float128-$(float128-alias-fcts)).
30350 * math/test-float128.h (TYPE_STR): Define conditional on
30351 [FLT128_MANT_DIG == LDBL_MANT_DIG].
30352 (ULP_IDX): Likewise.
30353 (ULP_I_IDX): Likewise.
30354
30355 * stdlib/strtold.c: Include <bits/floatn.h>
30356 [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128] (strtof128): Define
30357 and later undefine as macro. Define as weak alias if
30358 [!USE_WIDE_CHAR].
30359 [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128] (wcstof128): Define
30360 and later undefine as macro. Define as weak alias if
30361 [USE_WIDE_CHAR].
30362 * sysdeps/ieee754/ldbl-128/strtold_l.c [__HAVE_FLOAT128 &&
30363 !__HAVE_DISTINCT_FLOAT128] (strtof128_l): Define and later
30364 undefine as macro. Define as weak alias if [!USE_WIDE_CHAR].
30365 [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128] (wcstof128_l):
30366 Define and later undefine as macro. Define as weak alias if
30367 [USE_WIDE_CHAR].
30368 * sysdeps/ieee754/ldbl-64-128/strtold_l.c: Include
30369 <bits/floatn.h>.
30370 [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128] (strtof128_l):
30371 Define and later undefine as macro. Define as weak alias if
30372 [!USE_WIDE_CHAR].
30373 [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128] (wcstof128_l):
30374 Define and later undefine as macro. Define as weak alias if
30375 [USE_WIDE_CHAR].
30376
30377 2017-10-15 Carlos O'Donell <carlos@redhat.com>
30378
30379 * localedata/collate-test.c (allocate_arrays): Don't use \n in
30380 record_verbose messages.
30381
30382 2017-10-15 H.J. Lu <hongjiu.lu@intel.com>
30383
30384 [BZ #22052]
30385 * malloc/hooks.c (realloc_check): Use DIAG_IGNORE_NEEDS_COMMENT
30386 to silence -O3 -Wall warning with GCC 7.
30387
30388 2017-10-14 H.J. Lu <hongjiu.lu@intel.com>
30389
30390 * Makeconfig (+link-static-before-libc): Use the first of
30391 $(CRT-$(@F)) and $(csu-objpfx)$(static-start-installed-name).
30392 * gmon/Makefile (tests): Add tst-gmon-static.
30393 (tests-static): Likewise.
30394 (CFLAGS-tst-gmon-static.c): New.
30395 (CRT-tst-gmon-static): Likewise.
30396 (DEFAULT-LDFLAGS-tst-gmon-static): Likewise.
30397 (tst-gmon-static-ENV): Likewise.
30398 (tests-special): Likewise.
30399 ($(objpfx)tst-gmon-static.out): Likewise.
30400 (clean-tst-gmon-static-data): Likewise.
30401 ($(objpfx)tst-gmon-static-gprof.out): Likewise.
30402 * gmon/tst-gmon-static-gprof.sh: New file.
30403 * gmon/tst-gmon-static.c: Likewise.
30404
30405 2017-10-13 Carlos O'Donell <carlos@redhat.com>
30406
30407 [BZ #22295]
30408 * locale/programs/linereader.c (get_string): Don't warn on
30409 non-symbolic character.
30410
30411 [BZ #22294]
30412 * locale/programs/ld-monetary.c (monetary_finish): Allow ""
30413 int_curr_symbol.
30414
30415 [BZ #22292]
30416 * locale/programs/record-status.h: New file
30417 * locale/programs/locale.c: Add comment.
30418 * locale/programs/charmap-dir.c: Don't include error.h.
30419 (charmap_opendir): Use record_error.
30420 * locale/programs/charmap.c: Don't include error.h.
30421 (charmap_read): Use record_error, and record_warning.
30422 (parse_charmap): Likewise.
30423 * locale/programs/ld-address.c: Don't include error.h.
30424 (address_finish): Use record_error, and record_warning.
30425 * locale/programs/ld-collate.c: Don't include error.h.
30426 (collate_finish): Use record_error, and record_error_at_line.
30427 * locale/programs/ld-ctype.c (ctype_finish): Use record_error.
30428 (ctype_class_new): Likewise.
30429 (ctype_map_new): Likewise.
30430 (set_one_default): Likewise.
30431 (set_class_defaults): Likewise.
30432 (translit_flatten): Likewise.
30433 (allocate_arrays): Use record_error, and record_verbose.
30434 * locale/programs/ld-identification.c: Don't include error.h.
30435 (indentation_finish): Use record_error and record_warning.
30436 * locale/programs/ld-measurement.c: Don't include error.h.
30437 (measurement_finish): Use record_error.
30438 * locale/programs/ld-messages.c
30439 (message_finish): Likewise.
30440 * locale/programs/ld-monetary.c
30441 (monetary_finish): Likewise.
30442 * locale/programs/ld-name.c (name_finish): Use record_error
30443 and record_warning.
30444 * locale/programs/ld-numeric.c
30445 (numeric_finish): Use record_error.
30446 * locale/programs/ld-paper.c: Don't include error.h.
30447 (paper_finish): Use record_error.
30448 * locale/programs/ld-telephone.c: Don't include error.h.
30449 (telephone_finish): Use record_error.
30450 * locale/programs/ld-time.c (time_finish): Likewise.
30451 * locale/programs/linereader.h (lr_error): Make inline func.
30452 * locale/programs/localedef.c: Define recorded_warning_count,
30453 and recorded_error_count.
30454 (main): Use record_error. Use recorded_error_count and
30455 recorded_warning_count to issue correct error returns.
30456 (add_to_readlist): Use record_error.
30457 (find_locale): Likewise.
30458 (load_locale): Likewise.
30459 * locale/programs/localedef.h: Remove be_quiet
30460 and WITH_CUR_LOCALE.
30461 * locale/programs/locarchive.c (compare_from_file): Use
30462 record_error.
30463 * locale/programs/locfile.c (write_locale_data): Use
30464 record_error.
30465 * locale/programs/repertoire.c: Dont include error.h.
30466 (repertoire_complain): Use record_error.
30467 * localedata/tst-fmon.sh: Expect failures from localedef.
30468 * localedata/tst-locale.sh: Likewise.
30469 * localedata/gen-locale.sh: Expect failures from SHIFT_JIS.
30470
30471 * localedata/unicode-gen/Makefile (GENERATED): Use i18n_ctype.
30472 (REPORTS): Likewise.
30473 (check): Likewise.
30474 (i18n): Rename to...
30475 (i18n_ctype): ...this.
30476 (i18n-report): Rename to...
30477 (i18n_ctype-report): ...this.
30478 * localedata/locales/i18n_ctype: Regenerate.
30479 * localedata/locales/i18n: copy i18n_ctype.
30480
30481 2017-10-13 Joseph Myers <joseph@codesourcery.com>
30482
30483 * stdlib/strfroml.c: Include <bits/floatn.h>.
30484 [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128] (strfromf128):
30485 Define before include of <stdlib.h> and undefine afterwards, then
30486 define as weak alias.
30487
30488 * sysdeps/ieee754/ldbl-64-128/s_nextafterl.c (weak_alias):
30489 Undefine and restore default definition. Use
30490 libm_alias_ldouble_other.
30491
30492 2017-10-13 Peter Zelezny <peter.zelezny@dektech.com.au>
30493
30494 [BZ #22153]
30495 * nptl/allocatestack.c (__nptl_setxid_error): Preserve error code
30496 in coredumps.
30497
30498 2017-10-13 James Clarke <jrtc27@jrtc27.com>
30499
30500 * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela):
30501 Assign sym_map to be map for local symbols, as TLS relocations
30502 use sym_map to determine whether the symbol is defined and to
30503 extract the TLS information.
30504 * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Likewise.
30505 * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Likewise.
30506
30507 2017-10-13 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
30508
30509 [BZ #22189]
30510 * sysdeps/powerpc/fpu/math_private.h (math_opt_barrier):
30511 (math_force_eval): Add powerpc version.
30512
30513 [BZ #22142]
30514 * stdio-common/tst-printf.c (fp_test): Add tests for DBL_MAX and
30515 -DBL_MAX.
30516 (do_test): Likewise.
30517 * stdio-common/tst-printf.sh: Likewise.
30518 * sysdeps/powerpc/powerpc64/power7/add_n.S: Invert the initial
30519 ifdef clause in order to set the carry bit right. Replace r0 by
30520 0 without changing the behavior.
30521
30522 2017-10-13 Joseph Myers <joseph@codesourcery.com>
30523
30524 * sysdeps/sparc/sparc32/fpu/s_fabsl.c: Include
30525 <libm-alias-ldouble.h>.
30526 (fabsl): Define using libm_alias_ldouble.
30527 * sysdeps/sparc/sparc64/fpu/s_fabsl.c: Include
30528 <libm-alias-ldouble.h>.
30529 (fabsl): Define using libm_alias_ldouble.
30530
30531 * sysdeps/ieee754/ldbl-opt/w_lgamma_compatl.c [BUILD_LGAMMA]:
30532 Remove conditional code.
30533
30534 * sysdeps/ieee754/ldbl-opt/s_clog10l.c (__clog10l__internal):
30535 Rename to __clog10_internal_l.
30536 (__clog10_internal_l): Define aliases using
30537 libm_alias_ldouble_other instead of using libm_alias_ldouble_other
30538 with __clog10.
30539
30540 2017-10-13 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
30541
30542 * benchtests/Makefile (bench-math): Add sinf, cosf and sincosf.
30543 * benchtests/sincosf-inputs: New file.
30544 * benchtests/cosf-inputs: New file.
30545 * benchtests/sinf-inputs: New file.
30546
30547 2017-10-12 Szabolcs Nagy <szabolcs.nagy@arm.com>
30548
30549 * posix/tst-spawn.c (do_test): Wait for both children.
30550
30551 2017-10-12 H.J. Lu <hongjiu.lu@intel.com>
30552
30553 [BZ #22284]
30554 * gmon/Makefile [$(have-fpie)$(build-shared) == yesyes] (tests,
30555 tests-pie): Add tst-gmon-pie.
30556 (CFLAGS-tst-gmon-pie.c): New.
30557 (CRT-tst-gmon-pie): Likewise.
30558 (tst-gmon-pie-ENV): Likewise.
30559 [$(have-fpie)$(build-shared) == yesyes] (tests-special): Likewise.
30560 ($(objpfx)tst-gmon-pie.out): Likewise.
30561 (clean-tst-gmon-pie-data): Likewise.
30562 ($(objpfx)tst-gmon-pie-gprof.out): Likewise.
30563 * gmon/gmon.c [PIC]: Include <link.h>.
30564 [PIC] (callback): New function.
30565 (write_hist): Add an argument for load address. Subtract load
30566 address from PCs.
30567 (write_call_graph): Likewise.
30568 (write_gmon): Call __dl_iterate_phdr to get load address, pass
30569 it to write_hist and write_call_graph.
30570 * gmon/tst-gmon-pie.c: New file.
30571
30572 2017-10-11 Joseph Myers <joseph@codesourcery.com>
30573
30574 * math/Makefile (test-types-basic): New variable.
30575 (test-types): Likewise.
30576 (libm-test-support): Use $(test-types) instead of $(types).
30577 (libm-tests-base-normal): Likewise.
30578 (libm-tests-base-finite): Likewise.
30579 (libm-tests-base-inline): Likewise.
30580 (generated): Likewise.
30581 ($(objpfx)libm-test-support-$(t).c): Likewise.
30582 (libm-tests-for-type iterator): Likewise.
30583 (libm-test-support iterator): Likewise.
30584 * math/libm-test-support.c (ulp_i_idx): Use ULP_I_IDX.
30585 (ulp_idx): Use ULP_IDX.
30586 * math/test-ldouble.h: Include <float.h>.
30587 (TYPE_STR): Define conditional on [LDBL_MANT_DIG == DBL_MANT_DIG].
30588 (ULP_IDX): New macro.
30589 (ULP_I_IDX): Likewise.
30590 * math/test-double.h (ULP_IDX): Likewise.
30591 (ULP_I_IDX): Likewise.
30592 * math/test-float.h (ULP_IDX): Likewise.
30593 (ULP_I_IDX): Likewise.
30594 * math/test-float128.h (ULP_IDX): Likewise.
30595 (ULP_I_IDX): Likewise.
30596
30597 2017-10-11 Adhemerval Zanella <adhemerval.zanella@linaro.org>
30598
30599 * sysdeps/unix/sysv/linux/aarch64/sysdep-cancel.h: Remove file.
30600 * sysdeps/unix/sysv/linux/alpha/sysdep-cancel.h: Likewise.
30601 * sysdeps/unix/sysv/linux/arm/sysdep-cancel.h: Likewise.
30602 * sysdeps/unix/sysv/linux/hppa/sysdep-cancel.h: Likewise.
30603 * sysdeps/unix/sysv/linux/mips/sysdep-cancel.h: Likewise.
30604 * sysdeps/unix/sysv/linux/nios2/sysdep-cancel.h: Likewise.
30605 * sysdeps/unix/sysv/linux/powerpc/sysdep-cancel.h: Likewise.
30606 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep-cancel.h: Likewise.
30607 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep-cancel.h: Likewise.
30608 * sysdeps/unix/sysv/linux/sh/sysdep-cancel.h: Likewise.
30609 * sysdeps/unix/sysv/linux/sparc/sysdep-cancel.h: Likewise.
30610 * sysdeps/unix/sysv/linux/tile/sysdep-cancel.h: Likewise.
30611 * sysdeps/unix/sysv/linux/x86_64/sysdep-cancel.h: Likewise.
30612 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h
30613 (SINGLE_THREAD_BY_GLOBAL): Define.
30614 * sysdeps/unix/sysv/linux/aarch64/sysdep.h (SINGLE_THREAD_BY_GLOBAL):
30615 Likewise.
30616 * sysdeps/unix/sysv/linux/alpha/sysdep.h (SINGLE_THREAD_BY_GLOBAL):
30617 Likewise.
30618 * sysdeps/unix/sysv/linux/arm/sysdep.h (SINGLE_THREAD_BY_GLOBAL):
30619 Likewise.
30620 * sysdeps/unix/sysv/linux/hppa/sysdep.h (SINGLE_THREAD_BY_GLOBAL):
30621 Likewise.
30622 * sysdeps/unix/sysv/linux/microblaze/sysdep.h
30623 (SINGLE_THREAD_BY_GLOBAL): Likewise.
30624 * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SINGLE_THREAD_BY_GLOBAL):
30625 Likewise.
30626
30627 2017-10-11 Andreas Schwab <schwab@suse.de>
30628
30629 * nis/Makefile (aux): Remove.
30630 * nscd/Makefile (aux): Add nscd_hash.
30631 (nscd-modules): Likewise.
30632 ($(objpfx)nscd): Don't depend on libnsl.
30633 * nscd/nscd_hash.c: New file.
30634 * nscd/nscd_hash.h: Likewise.
30635 * nscd/cache.c: Include "nscd_hash.h" instead of <rpcsvc/nis.h>.
30636 (cache_search, cache_add): Use __nscd_hash instead of __nis_hash.
30637 * nscd/nscd_helper.c: Include <sys/param.h> and "nscd_hash.h"
30638 instead of <nis/rpcsvc/nis.h>.
30639 (__nscd_cache_search): Use __nscd_hash instead of __nis_hash.
30640
30641 2017-10-11 Florian Weimer <fweimer@redhat.com>
30642
30643 [BZ #22078]
30644 Avoid large NSS buffers with many addresses, aliases.
30645 * nss/nss_files/files-hosts.c (gethostbyname3_multi): Rewrite
30646 using dynarrays and struct alloc_buffer.
30647 * nss/Makefile (tests): Add tst-nss-files-hosts-multi.
30648 (tst-nss-files-hosts-multi): Link with -ldl.
30649 * nss/tst-nss-files-hosts-multi.c: New file.
30650
30651 2017-10-11 Florian Weimer <fweimer@redhat.com>
30652
30653 [BZ #18023]
30654 * nss/nss_files/files-hosts.c (gethostbyname3_multi): Use struct
30655 scratch_buffer. Eliminate gotos.
30656
30657 2017-10-11 Joseph Myers <joseph@codesourcery.com>
30658
30659 * sysdeps/ieee754/ldbl-opt/s_clog10l.c: Use
30660 libm_alias_ldouble_other.
30661 * sysdeps/ieee754/ldbl-opt/w_exp10l_compat.c (weak_alias): Do not
30662 undefine and redefine.
30663 [LIBM_SVID_COMPAT && !LONG_DOUBLE_COMPAT (libm, GLIBC_2_1)]
30664 (exp10l): Do not define here.
30665 * sysdeps/ieee754/ldbl-opt/w_lgamma_compatl.c [BUILD_LGAMMA]
30666 (weak_alias): Undefine and redefine.
30667 [BUILD_LGAMMA]: Use libm_alias_ldouble_other.
30668 * sysdeps/ieee754/ldbl-opt/w_remainderl_compat.c
30669 [LIBM_SVID_COMPAT] (weak_alias): Undefine and redefine here.
30670 [LIBM_SVID_COMPAT]: Use libm_alias_ldouble_other.
30671
30672 * soft-fp/fmadf4.c: Include <libm-alias-double.h>.
30673 [!__fma] (fma): Define using libm_alias_double.
30674 * soft-fp/fmasf4.c: Include <libm-alias-float.h>.
30675 [!__fmaf] (fmaf): Define using libm_alias_float.
30676 * soft-fp/fmatf4.c: Include <libm-alias-ldouble.h>.
30677 (fmal): Define using libm_alias_ldouble.
30678
30679 2017-10-10 Joseph Myers <joseph@codesourcery.com>
30680
30681 * sysdeps/generic/libm-alias-double.h (libm_alias_double_other_r):
30682 New macro.
30683 (libm_alias_double_other): Likewise.
30684 (libm_alias_double_r): Use libm_alias_double_other_r.
30685 * sysdeps/generic/libm-alias-float.h (libm_alias_float_other_r):
30686 New macro.
30687 (libm_alias_float_other): Likewise.
30688 (libm_alias_float_r): Use libm_alias_float_other_r.
30689 * sysdeps/generic/libm-alias-float128.h
30690 (libm_alias_float128_other_r): New macro.
30691 (libm_alias_float128_other): Likewise.
30692 (libm_alias_float128_r): Use libm_alias_float128_other_r.
30693 * sysdeps/generic/libm-alias-ldouble.h
30694 (libm_alias_ldouble_other_r): New macro.
30695 (libm_alias_ldouble_other): Likewise.
30696 (libm_alias_ldouble_r): Use libm_alias_ldouble_other_r.
30697 * sysdeps/ieee754/ldbl-opt/libm-alias-double.h
30698 (libm_alias_double_other_r): New macro.
30699 (libm_alias_double_other): Likewise.
30700 (libm_alias_double_r): Use libm_alias_double_other_r.
30701 * sysdeps/ieee754/ldbl-opt/libm-alias-ldouble.h
30702 (libm_alias_ldouble_other_r): New macro.
30703 (libm_alias_ldouble_other): Likewise.
30704 (libm_alias_ldouble_r): Use libm_alias_ldouble_other_r.
30705 * math/w_lgamma_main.c: Include <libm-alias-double.h>.
30706 [!USE_AS_COMPAT]: Use libm_alias_double_other.
30707 * math/w_lgammaf_main.c: Include <libm-alias-float.h>.
30708 [!USE_AS_COMPAT]: Use libm_alias_float_other.
30709 * math/w_lgammal_main.c: Include <libm-alias-ldouble.h>.
30710 [!USE_AS_COMPAT]: Use libm_alias_ldouble_other.
30711 * math/w_exp2f.c: Use libm_alias_float_other.
30712 * math/w_expf.c: Likewise.
30713 * math/w_log2f.c: Likewise.
30714 * math/w_logf.c: Likewise.
30715 * math/w_powf.c: Likewise.
30716 * sysdeps/ieee754/flt-32/e_exp2f.c: Include <libm-alias-float.h>.
30717 [!__exp2f]: Use libm_alias_float_other.
30718 * sysdeps/ieee754/flt-32/e_expf.c: Include <libm-alias-float.h>.
30719 [!__expf]: Use libm_alias_float_other.
30720 * sysdeps/ieee754/flt-32/e_log2f.c: Include <libm-alias-float.h>.
30721 [!__log2f]: Use libm_alias_float_other.
30722 * sysdeps/ieee754/flt-32/e_logf.c: Include <libm-alias-float.h>.
30723 [!__logf]: Use libm_alias_float_other.
30724 * sysdeps/ieee754/flt-32/e_powf.c: Include <libm-alias-float.h>.
30725 [!__powf]: Use libm_alias_float_other.
30726
30727 2017-10-10 Florian Weimer <fweimer@redhat.com>
30728
30729 * nss/nss_files/files-hosts.c (gethostbyname3_multi): New
30730 function.
30731 (_nss_files_gethostbyname3_r): Call it.
30732
30733 2017-10-09 Joseph Myers <joseph@codesourcery.com>
30734
30735 * sysdeps/generic/math-type-macros.h [!declare_mgen_alias]: Give
30736 error. Remove default definition of declare_mgen_alias.
30737 [!declare_mgen_alias_r]: Likewise.
30738 * sysdeps/generic/math-type-macros-double.h
30739 [!declare_mgen_alias_r] (declare_mgen_alias_r): New macro.
30740 * sysdeps/generic/math-type-macros-float.h [!declare_mgen_alias_r]
30741 (declare_mgen_alias_r): Likewise.
30742 * sysdeps/generic/math-type-macros-float128.h
30743 [!declare_mgen_alias_r] (declare_mgen_alias_r): Likewise.
30744 * sysdeps/generic/math-type-macros-ldouble.h
30745 [!declare_mgen_alias_r] (declare_mgen_alias_r): Likewise.
30746 * math/w_lgamma_r_template.c (declare_mgen_alias_r_x): Remove
30747 macro.
30748 (declare_mgen_alias_r_s): Likewise.
30749 (declare_mgen_alias_r): Likewise.
30750 * math/w_lgamma_r_compat.c: Include <libm-alias-double.h>.
30751 (lgamma_r): Define using libm_alias_double_r.
30752 * math/w_lgammaf_r_compat.c: Include <libm-alias-float.h>.
30753 (lgammaf_r): Define using libm_alias_float_r.
30754 * math/w_lgammal_r_compat.c: Include <libm-alias-ldouble.h>.
30755 (lgammal_r): Define using libm_alias_ldouble_r.
30756 * sysdeps/ieee754/ldbl-opt/w_lgamma_r_compat.c: Remove file.
30757 * sysdeps/ieee754/ldbl-opt/w_lgammal_r_compat.c: Likewise.
30758
30759 2017-10-09 Adhemerval Zanella <adhemerval.zanella@linaro.org>
30760
30761 * lib/glob.c (__glob_pattern_type): Remove now-spurious
30762 extern declaration.
30763
30764 2017-10-09 Joseph Myers <joseph@codesourcery.com>
30765
30766 * sysdeps/ieee754/ldbl-opt/w_scalbln.c: Remove file.
30767
30768 2017-10-09 Jonathan Wakely <jwakely@redhat.com>
30769
30770 [BZ #21326]
30771 * include/features.h [__cplusplus >= 201703] (__USE_ISOC11): Define.
30772 [__cplusplus >= 201103] (__USE_ISOC99): Define.
30773 * math/Makefile (test-math-cxx11): New test.
30774 * math/test-math-cxx11.cc: New file.
30775
30776 2017-10-08 Christian Brauner <christian.brauner@ubuntu.com>
30777
30778 * login/openpty.c (openpty): Close slave pty file descriptor on error.
30779
30780 * login/openpty.c (openpty): If defined, use the TIOCGPTPEER ioctl()
30781 call to allocate the slave pty file descriptor.
30782
30783 2017-10-06 Joseph Myers <joseph@codesourcery.com>
30784
30785 * sysdeps/ieee754/ldbl-128/s_fma.c: Include <libm-alias-double.h>.
30786 [!__fma] (fma): Define using libm_alias_double.
30787 * sysdeps/ieee754/ldbl-96/s_fma.c: Include <libm-alias-double.h>.
30788 [!__fma] (fma): Define using libm_alias_double.
30789
30790 * sysdeps/ieee754/float128/float128_private.h: Include
30791 <libm-alias-ldouble.h> and <libm-alias-float128.h>.
30792 (libm_alias_ldouble_r): Undefine and redefine.
30793 * sysdeps/ieee754/ldbl-128/s_asinhl.c: Include
30794 <libm-alias-ldouble.h>.
30795 (asinhl): Define using libm_alias_ldouble.
30796 * sysdeps/ieee754/ldbl-128/s_atanl.c: Include
30797 <libm-alias-ldouble.h>.
30798 (atanl): Define using libm_alias_ldouble.
30799 * sysdeps/ieee754/ldbl-128/s_cbrtl.c: Include
30800 <libm-alias-ldouble.h>.
30801 (cbrtl): Define using libm_alias_ldouble.
30802 * sysdeps/ieee754/ldbl-128/s_ceill.c: Include
30803 <libm-alias-ldouble.h>.
30804 (ceill): Define using libm_alias_ldouble.
30805 * sysdeps/ieee754/ldbl-128/s_copysignl.c: Include
30806 <libm-alias-ldouble.h>.
30807 (copysignl): Define using libm_alias_ldouble.
30808 * sysdeps/ieee754/ldbl-128/s_cosl.c: Include
30809 <libm-alias-ldouble.h>.
30810 (cosl): Define using libm_alias_ldouble.
30811 * sysdeps/ieee754/ldbl-128/s_erfl.c: Include
30812 <libm-alias-ldouble.h>.
30813 (erfl): Define using libm_alias_ldouble.
30814 (erfcl): Likewise.
30815 * sysdeps/ieee754/ldbl-128/s_expm1l.c: Include
30816 <libm-alias-ldouble.h>.
30817 (expm1l): Define using libm_alias_ldouble.
30818 * sysdeps/ieee754/ldbl-128/s_fabsl.c: Include
30819 <libm-alias-ldouble.h>.
30820 (fabsl): Define using libm_alias_ldouble.
30821 * sysdeps/ieee754/ldbl-128/s_floorl.c: Include
30822 <libm-alias-ldouble.h>.
30823 (floorl): Define using libm_alias_ldouble.
30824 * sysdeps/ieee754/ldbl-128/s_fmal.c: Include
30825 <libm-alias-ldouble.h>.
30826 (fmal): Define using libm_alias_ldouble.
30827 * sysdeps/ieee754/ldbl-128/s_frexpl.c: Include
30828 <libm-alias-ldouble.h>.
30829 (frexpl): Define using libm_alias_ldouble.
30830 * sysdeps/ieee754/ldbl-128/s_fromfpl.c (fromfpl): Define using
30831 libm_alias_ldouble.
30832 * sysdeps/ieee754/ldbl-128/s_fromfpl_main.c: Include
30833 <libm-alias-ldouble.h>.
30834 * sysdeps/ieee754/ldbl-128/s_fromfpxl.c (fromfpxl): Define using
30835 libm_alias_ldouble.
30836 * sysdeps/ieee754/ldbl-128/s_getpayloadl.c: Include
30837 <libm-alias-ldouble.h>.
30838 (getpayloadl): Define using libm_alias_ldouble.
30839 * sysdeps/ieee754/ldbl-128/s_llrintl.c: Include
30840 <libm-alias-ldouble.h>.
30841 (llrintl): Define using libm_alias_ldouble.
30842 * sysdeps/ieee754/ldbl-128/s_llroundl.c: Include
30843 <libm-alias-ldouble.h>.
30844 (llroundl): Define using libm_alias_ldouble.
30845 * sysdeps/ieee754/ldbl-128/s_logbl.c: Include
30846 <libm-alias-ldouble.h>.
30847 (logbl): Define using libm_alias_ldouble.
30848 * sysdeps/ieee754/ldbl-128/s_lrintl.c: Include
30849 <libm-alias-ldouble.h>.
30850 (lrintl): Define using libm_alias_ldouble.
30851 * sysdeps/ieee754/ldbl-128/s_lroundl.c: Include
30852 <libm-alias-ldouble.h>.
30853 (lroundl): Define using libm_alias_ldouble.
30854 * sysdeps/ieee754/ldbl-128/s_modfl.c: Include
30855 <libm-alias-ldouble.h>.
30856 (modfl): Define using libm_alias_ldouble.
30857 * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Include
30858 <libm-alias-ldouble.h>.
30859 (nearbyintl): Define using libm_alias_ldouble.
30860 * sysdeps/ieee754/ldbl-128/s_nextafterl.c: Include
30861 <libm-alias-ldouble.h>.
30862 (nextafterl): Define using libm_alias_ldouble.
30863 * sysdeps/ieee754/ldbl-128/s_nextupl.c: Include
30864 <libm-alias-ldouble.h>.
30865 (nextupl): Define using libm_alias_ldouble.
30866 * sysdeps/ieee754/ldbl-128/s_remquol.c: Include
30867 <libm-alias-ldouble.h>.
30868 (remquol): Define using libm_alias_ldouble.
30869 * sysdeps/ieee754/ldbl-128/s_rintl.c: Include
30870 <libm-alias-ldouble.h>.
30871 (rintl): Define using libm_alias_ldouble.
30872 * sysdeps/ieee754/ldbl-128/s_roundevenl.c: Include
30873 <libm-alias-ldouble.h>.
30874 (roundevenl): Define using libm_alias_ldouble.
30875 * sysdeps/ieee754/ldbl-128/s_roundl.c: Include
30876 <libm-alias-ldouble.h>.
30877 (roundl): Define using libm_alias_ldouble.
30878 * sysdeps/ieee754/ldbl-128/s_setpayloadl.c (setpayloadl): Define
30879 using libm_alias_ldouble.
30880 * sysdeps/ieee754/ldbl-128/s_setpayloadl_main.c: Include
30881 <libm-alias-ldouble.h>.
30882 * sysdeps/ieee754/ldbl-128/s_setpayloadsigl.c (setpayloadsigl):
30883 Define using libm_alias_ldouble.
30884 * sysdeps/ieee754/ldbl-128/s_sincosl.c: Include
30885 <libm-alias-ldouble.h>.
30886 (sincosl): Define using libm_alias_ldouble.
30887 * sysdeps/ieee754/ldbl-128/s_sinl.c: Include
30888 <libm-alias-ldouble.h>.
30889 (sinl): Define using libm_alias_ldouble.
30890 * sysdeps/ieee754/ldbl-128/s_tanhl.c: Include
30891 <libm-alias-ldouble.h>.
30892 (tanhl): Define using libm_alias_ldouble.
30893 * sysdeps/ieee754/ldbl-128/s_tanl.c: Include
30894 <libm-alias-ldouble.h>.
30895 (tanl): Define using libm_alias_ldouble.
30896 * sysdeps/ieee754/ldbl-128/s_totalorderl.c: Include
30897 <libm-alias-ldouble.h>.
30898 (totalorderl): Define using libm_alias_ldouble.
30899 * sysdeps/ieee754/ldbl-128/s_totalordermagl.c: Include
30900 <libm-alias-ldouble.h>.
30901 (totalordermagl): Define using libm_alias_ldouble.
30902 * sysdeps/ieee754/ldbl-128/s_truncl.c: Include
30903 <libm-alias-ldouble.h>.
30904 (truncl): Define using libm_alias_ldouble.
30905 * sysdeps/ieee754/ldbl-128/s_ufromfpl.c (ufromfpl): Define using
30906 libm_alias_ldouble.
30907 * sysdeps/ieee754/ldbl-128/s_ufromfpxl.c (ufromfpxl): Define using
30908 libm_alias_ldouble.
30909 * sysdeps/ieee754/ldbl-64-128/s_copysignl.c: Include
30910 <libm-alias-ldouble.h>.
30911 (weak_alias): Do not undefine and redefine.
30912 [IS_IN (libc)] (libm_alias_ldouble): Undefine and redefine.
30913 (copysignl): Define with long_double_symbol only if [IS_IN
30914 (libc)].
30915 * sysdeps/ieee754/ldbl-64-128/s_frexpl.c: Include
30916 <libm-alias-ldouble.h>.
30917 (weak_alias): Do not undefine and redefine.
30918 [IS_IN (libc)] (libm_alias_ldouble): Undefine and redefine.
30919 (frexpl): Define with long_double_symbol only if [IS_IN (libc)].
30920 * sysdeps/ieee754/ldbl-64-128/s_modfl.c: Include
30921 <libm-alias-ldouble.h>.
30922 (weak_alias): Do not undefine and redefine.
30923 [IS_IN (libc)] (libm_alias_ldouble): Undefine and redefine.
30924 (modfl): Define with long_double_symbol only if [IS_IN (libc)].
30925 * sysdeps/ieee754/ldbl-64-128/s_asinhl.c: Remove file.
30926 * sysdeps/ieee754/ldbl-64-128/s_atanl.c: Likewise.
30927 * sysdeps/ieee754/ldbl-64-128/s_cbrtl.c: Likewise.
30928 * sysdeps/ieee754/ldbl-64-128/s_ceill.c: Likewise.
30929 * sysdeps/ieee754/ldbl-64-128/s_cosl.c: Likewise.
30930 * sysdeps/ieee754/ldbl-64-128/s_erfl.c: Likewise.
30931 * sysdeps/ieee754/ldbl-64-128/s_expm1l.c: Likewise.
30932 * sysdeps/ieee754/ldbl-64-128/s_fabsl.c: Likewise.
30933 * sysdeps/ieee754/ldbl-64-128/s_floorl.c: Likewise.
30934 * sysdeps/ieee754/ldbl-64-128/s_fmal.c: Likewise.
30935 * sysdeps/ieee754/ldbl-64-128/s_llrintl.c: Likewise.
30936 * sysdeps/ieee754/ldbl-64-128/s_llroundl.c: Likewise.
30937 * sysdeps/ieee754/ldbl-64-128/s_logbl.c: Likewise.
30938 * sysdeps/ieee754/ldbl-64-128/s_lrintl.c: Likewise.
30939 * sysdeps/ieee754/ldbl-64-128/s_lroundl.c: Likewise.
30940 * sysdeps/ieee754/ldbl-64-128/s_nearbyintl.c: Likewise.
30941 * sysdeps/ieee754/ldbl-64-128/s_remquol.c: Likewise.
30942 * sysdeps/ieee754/ldbl-64-128/s_rintl.c: Likewise.
30943 * sysdeps/ieee754/ldbl-64-128/s_roundl.c: Likewise.
30944 * sysdeps/ieee754/ldbl-64-128/s_sincosl.c: Likewise.
30945 * sysdeps/ieee754/ldbl-64-128/s_sinl.c: Likewise.
30946 * sysdeps/ieee754/ldbl-64-128/s_tanhl.c: Likewise.
30947 * sysdeps/ieee754/ldbl-64-128/s_tanl.c: Likewise.
30948 * sysdeps/ieee754/ldbl-64-128/s_truncl.c: Likewise.
30949
30950 2017-10-06 Carlos O'Donell <carlos@redhat.com>
30951
30952 [BZ #22111]
30953 * malloc/malloc.c (tcache_shutting_down): Use bool type.
30954 (tcache_thread_freeres): Set tcache_shutting_down before
30955 freeing the tcache.
30956 * malloc/Makefile (tests): Add tst-malloc-tcache-leak.
30957 * malloc/tst-malloc-tcache-leak.c: New file.
30958
30959 2017-10-06 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
30960
30961 * sysdeps/powerpc/powerpc64/multiarch/memrchr-ppc64.c: Revert
30962 back to powerpc32 file.
30963 * sysdeps/powerpc/powerpc64/multiarch/memrchr.c
30964 (memrchr): Add __memrchr_power8 to ifunc list.
30965 * sysdeps/powerpc/powerpc64/power8/memrchr.S: Mask
30966 extra bytes for unaligned inputs.
30967
30968 2017-10-06 Joseph Myers <joseph@codesourcery.com>
30969
30970 * sysdeps/ieee754/ldbl-64-128/e_ilogbl.c: Remove file.
30971 * sysdeps/ieee754/ldbl-64-128/s_log1pl.c: Likewise.
30972 * sysdeps/ieee754/ldbl-64-128/s_scalblnl.c: Likewise.
30973 * sysdeps/ieee754/ldbl-64-128/s_scalbnl.c: Likewise.
30974 * sysdeps/ieee754/ldbl-64-128/w_scalblnl.c: Likewise.
30975
30976 2017-10-05 Joseph Myers <joseph@codesourcery.com>
30977
30978 * sysdeps/arm/libm-test-ulps: Update.
30979
30980 * sysdeps/ieee754/ldbl-96/s_asinhl.c: Include
30981 <libm-alias-ldouble.h>.
30982 (asinhl): Define using libm_alias_ldouble.
30983 * sysdeps/ieee754/ldbl-96/s_cbrtl.c: Include
30984 <libm-alias-ldouble.h>.
30985 (cbrtl): Define using libm_alias_ldouble.
30986 * sysdeps/ieee754/ldbl-96/s_copysignl.c: Include
30987 <libm-alias-ldouble.h>.
30988 (copysignl): Define using libm_alias_ldouble.
30989 * sysdeps/ieee754/ldbl-96/s_cosl.c: Include
30990 <libm-alias-ldouble.h>.
30991 (cosl): Define using libm_alias_ldouble.
30992 * sysdeps/ieee754/ldbl-96/s_erfl.c: Include
30993 <libm-alias-ldouble.h>.
30994 (erfl): Define using libm_alias_ldouble.
30995 (erfcl): Likewise.
30996 * sysdeps/ieee754/ldbl-96/s_fmal.c: Include
30997 <libm-alias-ldouble.h>.
30998 (fmal): Define using libm_alias_ldouble.
30999 * sysdeps/ieee754/ldbl-96/s_frexpl.c: Include
31000 <libm-alias-ldouble.h>.
31001 (frexpl): Define using libm_alias_ldouble.
31002 * sysdeps/ieee754/ldbl-96/s_fromfpl.c (fromfpl): Define using
31003 libm_alias_ldouble.
31004 * sysdeps/ieee754/ldbl-96/s_fromfpl_main.c: Include
31005 <libm-alias-ldouble.h>.
31006 * sysdeps/ieee754/ldbl-96/s_fromfpxl.c (fromfpxl): Define using
31007 libm_alias_ldouble.
31008 * sysdeps/ieee754/ldbl-96/s_getpayloadl.c: Include
31009 <libm-alias-ldouble.h>.
31010 (getpayloadl): Define using libm_alias_ldouble.
31011 * sysdeps/ieee754/ldbl-96/s_llrintl.c: Include
31012 <libm-alias-ldouble.h>.
31013 (llrintl): Define using libm_alias_ldouble.
31014 * sysdeps/ieee754/ldbl-96/s_llroundl.c: Include
31015 <libm-alias-ldouble.h>.
31016 (llroundl): Define using libm_alias_ldouble.
31017 * sysdeps/ieee754/ldbl-96/s_lrintl.c: Include
31018 <libm-alias-ldouble.h>.
31019 (lrintl): Define using libm_alias_ldouble.
31020 * sysdeps/ieee754/ldbl-96/s_lroundl.c: Include
31021 <libm-alias-ldouble.h>.
31022 (lroundl): Define using libm_alias_ldouble.
31023 * sysdeps/ieee754/ldbl-96/s_modfl.c: Include
31024 <libm-alias-ldouble.h>.
31025 (modfl): Define using libm_alias_ldouble.
31026 * sysdeps/ieee754/ldbl-96/s_nextupl.c: Include
31027 <libm-alias-ldouble.h>.
31028 (nextupl): Define using libm_alias_ldouble.
31029 * sysdeps/ieee754/ldbl-96/s_remquol.c: Include
31030 <libm-alias-ldouble.h>.
31031 (remquol): Define using libm_alias_ldouble.
31032 * sysdeps/ieee754/ldbl-96/s_roundevenl.c: Include
31033 <libm-alias-ldouble.h>.
31034 (roundevenl): Define using libm_alias_ldouble.
31035 * sysdeps/ieee754/ldbl-96/s_roundl.c: Include
31036 <libm-alias-ldouble.h>.
31037 (roundl): Define using libm_alias_ldouble.
31038 * sysdeps/ieee754/ldbl-96/s_setpayloadl.c (setpayloadl): Define
31039 using libm_alias_ldouble.
31040 * sysdeps/ieee754/ldbl-96/s_setpayloadl_main.c: Include
31041 <libm-alias-ldouble.h>.
31042 * sysdeps/ieee754/ldbl-96/s_setpayloadsigl.c: Include
31043 <libm-alias-ldouble.h>.
31044 (setpayloadsigl): Define using libm_alias_ldouble.
31045 * sysdeps/ieee754/ldbl-96/s_sincosl.c: Include
31046 <libm-alias-ldouble.h>.
31047 (sincosl): Define using libm_alias_ldouble.
31048 * sysdeps/ieee754/ldbl-96/s_sinl.c: Include
31049 <libm-alias-ldouble.h>.
31050 (sinl): Define using libm_alias_ldouble.
31051 * sysdeps/ieee754/ldbl-96/s_tanhl.c: Include
31052 <libm-alias-ldouble.h>.
31053 (tanhl): Define using libm_alias_ldouble.
31054 * sysdeps/ieee754/ldbl-96/s_tanl.c: Include
31055 <libm-alias-ldouble.h>.
31056 (tanl): Define using libm_alias_ldouble.
31057 * sysdeps/ieee754/ldbl-96/s_totalorderl.c: Include
31058 <libm-alias-ldouble.h>.
31059 (totalorderl): Define using libm_alias_ldouble.
31060 * sysdeps/ieee754/ldbl-96/s_totalordermagl.c: Include
31061 <libm-alias-ldouble.h>.
31062 (totalordermagl): Define using libm_alias_ldouble.
31063 * sysdeps/ieee754/ldbl-96/s_ufromfpl.c (ufromfpl): Define using
31064 libm_alias_ldouble.
31065 * sysdeps/ieee754/ldbl-96/s_ufromfpxl.c (ufromfpxl): Define using
31066 libm_alias_ldouble.
31067
31068 2017-10-05 Siddhesh Poyarekar <siddhesh@sourceware.org>
31069
31070 * sysdeps/aarch64/multiarch/Makefile (sysdep_routines): Add
31071 memmove_falkor.
31072 * sysdeps/aarch64/multiarch/ifunc-impl-list.c
31073 (__libc_ifunc_impl_list): Likewise.
31074 * sysdeps/aarch64/multiarch/memmove.c: Likewise.
31075 * sysdeps/aarch64/multiarch/memmove_falkor.S: New file.
31076
31077 * benchtests/bench-memmove-walk.c: New file.
31078 * benchtests/Makefile (string-benchset): Add it.
31079
31080 * benchtests/bench-memset-walk.c: New file.
31081 * benchtests/Makefile (string-benchset): Add it.
31082
31083 * benchtests/bench-memcpy-walk.c: New file.
31084 * benchtests/Makefile (string-benchset): Add it.
31085
31086 2017-10-05 Florian Weimer <fweimer@redhat.com>
31087
31088 nscd: Eliminate compilation time dependency in the build output.
31089 * nscd/nscd_stat.c (STATDATA_VERSION)
31090 (STATDATA_VERSION_SELINUX_FLAG, STATDATA_VERSION_FLAGS)
31091 (STATDATA_VERSION_FULL): New macro definitions.
31092 (compilation): Remove.
31093 (struct statdata): Adjust version member.
31094 (send_stats): Set version from STATDATA_VERSION_FULL.
31095 (receive_print_stats): Verify version against STATDATA_VERSION_FULL.
31096
31097 2017-10-05 Joseph Myers <joseph@codesourcery.com>
31098
31099 * configure.ac (--enable-add-ons): Remove option.
31100 (machine): Do not mention add-ons in comment.
31101 (LIBC_PRECONFIGURE): Likewise.
31102 (add_ons): Remove variable and sanity checks and logic to locate
31103 add-ons.
31104 (add_ons_automatic): Remove variable.
31105 (configured_add_ons): Likewise.
31106 (add_ons_sfx): Likewise.
31107 (add_ons_pfx): Likewise.
31108 (add_on_subdirs): Likewise.
31109 (sysnames_add_ons): Likewise. Remove loop over add-ons and
31110 consideration of add-ons in Implies handling.
31111 (sysdeps_add_ons): Likewise.
31112 * configure: Regenerated.
31113 * libidn/configure.ac: Remove.
31114 * libidn/configure: Likewise.
31115 * sysdeps/unix/inet/configure.ac: New file.
31116 * sysdeps/unix/inet/configure: New generated file.
31117 * sysdeps/unix/inet/Subdirs: Add libidn.
31118 * Makeconfig (sysdeps-srcdirs): Remove variable.
31119 (+sysdep_dirs): Do not include $(sysdeps-srcdirs).
31120 ($(common-objpfx)config.status): Do not depend on add-on files.
31121 ($(common-objpfx)shlib-versions.v.i): Do not mention add-ons in
31122 comment.
31123 (all-subdirs): Do not include $(add-on-subdirs).
31124 * Makefile (dist-prepare): Do not use $(sysdeps-add-ons).
31125 * config.make.in (add-ons): Remove variable.
31126 (add-on-subdirs): Likewise.
31127 (sysdeps-add-ons): Likewise.
31128 * manual/Makefile (add-chapters): Remove.
31129 ($(objpfx)texis): Do not depend on $(add-chapters).
31130 (nonexamples): Do not handle $(add-chapters).
31131 (examples): Do not handle $(add-ons).
31132 (chapters.% top-menu.%): Do not pass '$(add-chapters)' to
31133 libc-texinfo.sh.
31134 * manual/install.texi (Installation): Do not mention add-ons.
31135 (--enable-add-ons): Do not document configure option.
31136 * INSTALL: Regenerated.
31137 * manual/libc-texinfo.sh: Do not handle $2 add-ons argument.
31138 * manual/maint.texi (Hierarchy Conventions): Do not mention
31139 add-ons.
31140 * scripts/build-many-glibcs.py (Glibc.build_glibc): Do not use
31141 --enable-add-ons.
31142 * scripts/gen-sorted.awk: Do not handle Subdirs files from
31143 add-ons.
31144 * scripts/test-installation.pl: Do not handle glibc-compat add-on.
31145 * sysdeps/nptl/Makeconfig: Do not mention add-ons in comment.
31146
31147 2017-10-05 Andreas Schwab <schwab@suse.de>
31148
31149 [BZ #15142]
31150 * libio/genops.c (_IO_list_all_stamp): Delete. All uses removed.
31151 (_IO_flush_all_lockp): Always lock list_all_lock.
31152 (_IO_flush_all_linebuffered): Likewise.
31153 (_IO_unbuffer_all): Likewise.
31154
31155 2017-10-05 Florian Weimer <fweimer@redhat.com>
31156
31157 [BZ #15436]
31158 Do not flush stdio streams on abort.
31159 * stdlib/abort.c (fflush): Remove macro definition.
31160 (abort): Remove stages related to stdio flushing.
31161
31162 2017-10-05 Florian Weimer <fweimer@redhat.com>
31163
31164 * gmon/Makefile (CFLAGS-tst-gmon.c): Add -fno-omit-frame-pointer.
31165
31166 2017-10-05 Stefan Liebler <stli@linux.vnet.ibm.com>
31167
31168 * sysdeps/s390/fpu/libm-test-ulps: Regenerated.
31169
31170 2017-10-05 Florian Weimer <fweimer@redhat.com>
31171
31172 * support/support_format_hostent.c (support_format_hostent): Add
31173 more error information for NETDB_INTERNAL.
31174
31175 2017-10-04 H.J. Lu <hongjiu.lu@intel.com>
31176
31177 * config.h.in (NO_HIDDEN_EXTERN_FUNC_IN_PIE): New.
31178 * include/libc-symbols.h (__hidden_proto_hiddenattr): Add check
31179 for PIC and NO_HIDDEN_EXTERN_FUNC_IN_PIE.
31180 * sysdeps/i386/configure.ac (NO_HIDDEN_EXTERN_FUNC_IN_PIE): New
31181 AC_DEFINE if multi-arch is enabled.
31182 * sysdeps/i386/configure: Regenerated.
31183
31184 2017-10-04 H.J. Lu <hongjiu.lu@intel.com>
31185
31186 * Makeconfig (+link-static-before-libc): Use
31187 $(DEFAULT-LDFLAGS-$(@F)).
31188 * elf/Makefile (CRT-tst-tls1-static-non-pie): New.
31189 (LDFLAGS-tst-tls1-static-non-pie): Renamed to ...
31190 (DEFAULT-LDFLAGS-tst-tls1-static-non-pie): This.
31191
31192 2017-10-04 H.J. Lu <hongjiu.lu@intel.com>
31193
31194 * elf/Makefile (tests): Add tst-main1.
31195 (modules-names): Add tst-main1mod.
31196 ($(objpfx)tst-main1): New.
31197 (CRT-tst-main1): Likewise.
31198 (LDFLAGS-tst-main1): Likewise.
31199 (LDLIBS-tst-main1): Likewise.
31200 (tst-main1mod.so-no-z-defs): Likewise.
31201 * elf/tst-main1.c: New file.
31202 * elf/tst-main1mod.c: Likewise.
31203
31204 2017-10-04 H.J. Lu <hongjiu.lu@intel.com>
31205
31206 * math/test-math-iscanonical.cc (do_test): Return errors != 0.
31207
31208 2017-10-04 Joseph Myers <joseph@codesourcery.com>
31209
31210 * sysdeps/ieee754/dbl-64/s_fma.c: Include <libm-alias-double.h>.
31211 (fma): Define using libm_alias_double.
31212 * sysdeps/ieee754/ldbl-opt/s_fma.c: Remove file.
31213 * sysdeps/sparc/sparc32/fpu/s_fma.c: Do not include
31214 <math_ldbl_opt.h>.
31215 (fmal): Do not define as compat symbol here.
31216 * sysdeps/alpha/fpu/s_fma.c: New file.
31217
31218 2017-10-04 Szabolcs Nagy <szabolcs.nagy@arm.com>
31219
31220 * sysdeps/aarch64/dl-machine.h (elf_machine_rela): Expand MIN.
31221
31222 2017-10-04 Joseph Myers <joseph@codesourcery.com>
31223
31224 [BZ #22229]
31225 * sysdeps/sparc/sparc32/fpu/s_copysign.S: Include
31226 <math_ldbl_opt.h>
31227 (copysignl): Define as compat symbol at version GLIBC_2_0 for libm
31228 and libc.
31229 * sysdeps/sparc/sparc32/fpu/s_fabs.S: Include <math_ldbl_opt.h>.
31230 (fabsl): Define as compat symbol at version GLIBC_2_0 for libm.
31231 * sysdeps/sparc/sparc32/fpu/s_fma.c: Include <math_ldbl_opt.h>.
31232 (fmal): Define as compat symbol at version GLIBC_2_1 for libm.
31233 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.S:
31234 Include <math_ldbl_opt.h>
31235 (copysignl): Define as compat symbol at version GLIBC_2_0 for libm
31236 and libc.
31237 (compat_symbol): Undefine and redefine.
31238 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.S: Include
31239 <math_ldbl_opt.h>
31240 (fabsl): Define as compat symbol at version GLIBC_2_0 for libm.
31241 (compat_symbol): Undefine and redefine.
31242 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fma.c
31243 [HAVE_AS_VIS3_SUPPORT]: Include <math_ldbl_opt.h>.
31244 [HAVE_AS_VIS3_SUPPORT] (fmal): Define as compat symbol at version
31245 GLIBC_2_1 for libm.
31246 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Add
31247 GLIBC_2.0 copysignl symbol.
31248 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Add
31249 GLIBC_2.0 copysignl and fabsl and GLIBC_2.1 fmal symbols.
31250
31251 * sysdeps/alpha/fpu/s_nearbyint.c: Remove file.
31252
31253 2017-10-04 Florian Weimer <fweimer@redhat.com>
31254
31255 * scripts/check-local-headers.sh: Ignore nspr4 header file
31256 directory in addition to nspr.
31257
31258 2017-10-04 Guido Trentalancia <guido@trentalancia.net>
31259
31260 [BZ #17956]
31261 * configure.ac (--enable-nss-crypt): Use NSPR include directory.
31262 * configure: Regenerate.
31263 * crypt/Makefile (nss-cpp-flags): New variable.
31264 (CPPFLAGS-sha256-crypt.c, CPPFLAGS-sha512-crypt.c)
31265 (CPPFLAGS-md5-crypt.c): Use it.
31266 * scripts/check-local-headers.sh: Ignore nspr header file
31267 directory.
31268
31269 2017-10-04 Andreas Schwab <schwab@suse.de>
31270
31271 * nis/Makefile (services): Remove compat.
31272 (libnss_compat-routines, libnss_compat-inhibit-o): Don't define.
31273 ($(objpfx)libnss_compat.so): Remove rule.
31274 * nis/Versions (libnss_compat): Remove.
31275 * nss/Makefile (services): Add compat.
31276 (libnss_compat-routines, libnss_compat-inhibit-o): Define.
31277 * nss/Versions (libnss_compat): Define.
31278 * nss/nss_compat/compat-grp.c: Moved here from nis/nss_compat.
31279 Don't include <rpc/types.h>. Replace bool_t by bool.
31280 * nss/nss_compat/compat-initgroups.c: Likewise.
31281 * nss/nss_compat/compat-pwd.c: Likewise. Include "nisdomain.h"
31282 instead of <rpcsrv/ypclnt.h>.
31283 (getpwent_next_nss_netgr): Use __nss_get_default_domain instead of
31284 yp_get_default_domain.
31285 * nss/nss_compat/compat-pwd.c: Likewise.
31286 (getspent_next_nss_netgr): Use __nss_get_default_domain instead of
31287 yp_get_default_domain.
31288 * nss/nss_compat/nisdomain.c: New file.
31289 * nss/nss_compat/nisdomain.h: Likewise.
31290
31291 2017-10-04 Szabolcs Nagy <szabolcs.nagy@arm.com>
31292
31293 [BZ #22244]
31294 * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_yn): Fix x == 0 case.
31295 * sysdeps/ieee754/flt-32/e_jnf.c (__ieee754_ynf): Likewise.
31296
31297 2017-10-04 Szabolcs Nagy <szabolcs.nagy@arm.com>
31298
31299 [BZ #22243]
31300 * sysdeps/ieee754/dbl-64/wordsize-64/e_log10.c (__ieee754_log10): Use fabs.
31301 * sysdeps/ieee754/dbl-64/wordsize-64/e_log2.c (__ieee754_log2): Likewise.
31302
31303 2017-10-03 H.J. Lu <hongjiu.lu@intel.com>
31304
31305 * sysdeps/i386/start.S: Replace "leal main@GOT(%ebx), %eax" with
31306 "movl main@GOTOFF(%ebx), %eax".
31307
31308 2017-10-03 H.J. Lu <hongjiu.lu@intel.com>
31309
31310 * sysdeps/i386/dl-machine.h (elf_machine_load_address): Don't
31311 allow undefined _DYNAMIC in PIE libc.a.
31312 * sysdeps/x86_64/dl-machine.h (elf_machine_load_address):
31313 Likewse.
31314
31315 2017-10-03 H.J. Lu <hongjiu.lu@intel.com>
31316
31317 * sysdeps/mips/dl-machine.h (elf_machine_load_address): Don't
31318 check _DYNAMIC.
31319
31320 2017-10-03 H.J. Lu <hongjiu.lu@intel.com>
31321
31322 * sysdeps/arm/dl-machine.h (elf_machine_load_address): Don't
31323 check _DYNAMIC.
31324
31325 2017-10-03 H.J. Lu <hongjiu.lu@intel.com>
31326
31327 * math/test-math-iscanonical.cc (error): Replace bool with int.
31328
31329 2017-10-03 Joseph Myers <joseph@codesourcery.com>
31330
31331 * sysdeps/ieee754/dbl-64/s_modf.c: Include <libm-alias-double.h>.
31332 (modf): Define using libm_alias_double, only if [!__modf].
31333 * sysdeps/ieee754/dbl-64/wordsize-64/s_modf.c: Include
31334 <libm-alias-double.h>.
31335 (modf): Define using libm_alias_double, only if [!__modf].
31336 * sysdeps/ieee754/ldbl-opt/s_modf.c (modfl): Only define libc
31337 compat symbol here.
31338 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_modf-ppc32.c
31339 (weak_alias): Do not undefine and redefine.
31340 (strong_alias): Likewise.
31341 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modf-ppc64.c
31342 (weak_alias): Likewise.
31343 (strong_alias): Likewise.
31344
31345 * sysdeps/ieee754/dbl-64/s_logb.c: Include <libm-alias-double.h>.
31346 (logb): Define using libm_alias_double, only if [!__logb].
31347 * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c: Include
31348 <libm-alias-double.h>.
31349 (logb): Define using libm_alias_double, only if [!__logb].
31350 * sysdeps/ieee754/ldbl-opt/s_logb.c: Remove file.
31351 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logb-ppc32.c
31352 (weak_alias): Do not undefine and redefine.
31353 (strong_alias): Likewise.
31354 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logb-ppc64.c
31355 (weak_alias): Likewise.
31356 (strong_alias): Likewise.
31357
31358 2017-10-03 H.J. Lu <hongjiu.lu@intel.com>
31359
31360 * sysdeps/unix/sysv/linux/tile/sysdep.h (SYSCALL_ERROR_NAME):
31361 Check SHARED instead PIC.
31362
31363 2017-10-03 Joseph Myers <joseph@codesourcery.com>
31364
31365 * sysdeps/ieee754/dbl-64/s_fmaf.c: Include <libm-alias-float.h>.
31366 [!__fmaf] (fmaf): Define using libm_alias_float.
31367
31368 * sysdeps/ieee754/dbl-64/s_frexp.c: Include <libm-alias-double.h>.
31369 (frexp): Define using libm_alias_double.
31370 * sysdeps/ieee754/dbl-64/wordsize-64/s_frexp.c: Include
31371 <libm-alias-double.h>.
31372 (frexp): Define using libm_alias_double.
31373 * sysdeps/ieee754/ldbl-opt/s_frexp.c (frexpl): Only define libc
31374 compat symbol here.
31375
31376 2017-10-03 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
31377
31378 [BZ #22235]
31379 * math/math.h: Trivial fix for unbalanced parentheses in comment.
31380 * math/Makefile [CXX] (tests): Add test-math-iscanonical.cc.
31381 (CFLAGS-test-math-iscanonical.cc): New variable.
31382 * math/test-math-iscanonical.cc: New file.
31383 * sysdeps/ieee754/ldbl-96/bits/iscanonical.h (iscanonical):
31384 Provide a C++ implementation based on function overloading,
31385 rather than using __MATH_TG, which uses C-only builtins.
31386 * sysdeps/ieee754/ldbl-128ibm/bits/iscanonical.h (iscanonical):
31387 Likewise.
31388 * sysdeps/powerpc/powerpc64le/Makefile
31389 (CFLAGS-test-math-iscanonical.cc): New variable.
31390
31391 2017-10-03 Joseph Myers <joseph@codesourcery.com>
31392
31393 * sysdeps/ieee754/dbl-64/s_ceil.c: Include <libm-alias-double.h>.
31394 (ceil): Define using libm_alias_double.
31395 * sysdeps/ieee754/dbl-64/s_floor.c: Include <libm-alias-double.h>.
31396 (floor): Define using libm_alias_double.
31397 * sysdeps/ieee754/dbl-64/s_llround.c: Include
31398 <libm-alias-double.h>.
31399 (llround): Define using libm_alias_double.
31400 * sysdeps/ieee754/dbl-64/s_lround.c: Include
31401 <libm-alias-double.h>.
31402 (lround): Define using libm_alias_double.
31403 * sysdeps/ieee754/dbl-64/s_nearbyint.c: Include
31404 <libm-alias-double.h>.
31405 (nearbyint): Define using libm_alias_double.
31406 * sysdeps/ieee754/dbl-64/s_remquo.c: Include
31407 <libm-alias-double.h>.
31408 (remquo): Define using libm_alias_double.
31409 * sysdeps/ieee754/dbl-64/s_rint.c: Include <libm-alias-double.h>.
31410 (rint): Define using libm_alias_double.
31411 * sysdeps/ieee754/dbl-64/s_round.c: Include <libm-alias-double.h>.
31412 (round): Define using libm_alias_double.
31413 * sysdeps/ieee754/dbl-64/s_trunc.c: Include <libm-alias-double.h>.
31414 (trunc): Define using libm_alias_double.
31415 * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Include
31416 <libm-alias-double.h>.
31417 (ceil): Define using libm_alias_double.
31418 * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Include
31419 <libm-alias-double.h>.
31420 (floor): Define using libm_alias_double.
31421 * sysdeps/ieee754/dbl-64/wordsize-64/s_llround.c: Include
31422 <libm-alias-double.h>.
31423 (llround): Define using libm_alias_double.
31424 [_LP64] (lround): Likewise.
31425 * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Include
31426 <libm-alias-double.h>.
31427 [!_LP64] (lround): Define using libm_alias_double.
31428 * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c: Include
31429 <libm-alias-double.h>.
31430 (nearbyint): Define using libm_alias_double.
31431 * sysdeps/ieee754/dbl-64/wordsize-64/s_remquo.c: Include
31432 <libm-alias-double.h>.
31433 (remquo): Define using libm_alias_double.
31434 * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c: Include
31435 <libm-alias-double.h>.
31436 (rint): Define using libm_alias_double.
31437 * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c: Include
31438 <libm-alias-double.h>.
31439 (round): Define using libm_alias_double.
31440 * sysdeps/ieee754/dbl-64/wordsize-64/s_trunc.c: Include
31441 <libm-alias-double.h>.
31442 (trunc): Define using libm_alias_double.
31443 * sysdeps/ieee754/ldbl-opt/s_ceil.c: Remove file.
31444 * sysdeps/ieee754/ldbl-opt/s_floor.c: Likewise.
31445 * sysdeps/ieee754/ldbl-opt/s_llround.c: Likewise.
31446 * sysdeps/ieee754/ldbl-opt/s_lround.c: Likewise.
31447 * sysdeps/ieee754/ldbl-opt/s_nearbyint.c: Likewise.
31448 * sysdeps/ieee754/ldbl-opt/s_remquo.c: Likewise.
31449 * sysdeps/ieee754/ldbl-opt/s_rint.c: Likewise.
31450 * sysdeps/ieee754/ldbl-opt/s_round.c: Likewise.
31451 * sysdeps/ieee754/ldbl-opt/s_trunc.c: Likewise.
31452
31453 2017-10-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
31454
31455 * math/w_remainder.c: New file.
31456 * math/w_remainderf.c: New file.
31457 * math/w_remainderl.c: New file.
31458
31459 2017-10-03 H.J. Lu <hongjiu.lu@intel.com>
31460
31461 * elf/rtld.c (BOOTSTRAP_MAP): New.
31462 (RESOLVE_MAP): Replace (&bootstrap_map) with BOOTSTRAP_MAP.
31463 * sysdeps/hppa/dl-machine.h (ELF_MACHINE_BEFORE_RTLD_RELOC):
31464 Likewise.
31465 * sysdeps/ia64/dl-machine.h (ELF_MACHINE_BEFORE_RTLD_RELOC):
31466 Likewise.
31467 * sysdeps/mips/dl-machine.h (ELF_MACHINE_BEFORE_RTLD_RELOC):
31468 Likewise.
31469
31470 2017-10-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
31471
31472 * include/libc-symbols.h [NO_RTLD_HIDDEN] (rtld_hidden_proto,
31473 rtld_hidden_tls_proto, rtld_hidden_def, rtld_hidden_weak,
31474 rtld_hidden_rtld_hidden_ver, data_def, rtld_hidden_data_weak,
31475 rtld_hidden_data_ver): Define to empty.
31476 * include/assert.h [IS_IN(rtld) && NO_RTLD_HIDDEN] (__assert_fail,
31477 __assert_perror_fail): Likewise.
31478 * include/dirent.h [IS_IN(rtld) && NO_RTLD_HIDDEN]
31479 (__rewinddir): Likewise.
31480 * include/libc-internal.h [IS_IN(rtld) && NO_RTLD_HIDDEN]
31481 (__profile_frequency): Likewise.
31482 * include/setjmp.h (__sigsetjmp): Likewise.
31483 * include/signal.h [IS_IN(rtld) && NO_RTLD_HIDDEN] (__sigaction,
31484 __libc_sigaction): Likewise.
31485 * include/stdlib.h [NO_RTLD_HIDDEN] (unsetenv, __strtoul_internal): Do
31486 not set hidden attribute.
31487 * include/string.h [IS_IN(rtld) && NO_RTLD_HIDDEN] (__stpcpy, __strdup,
31488 __strerror_t, __strsep_g, memchr, memcmp, memcpy, memmove, memset,
31489 rawmemchr, stpcpy, strchr, strcmp, strlen, strnlen, strsep): Likewise.
31490 * include/sys/stat.h [IS_IN(rtld) && NO_RTLD_HIDDEN] (__fxstat,
31491 __fxstat64, __lxstat, __lxstat64, __xstat, __xstat64,
31492 __fxstatat64): Likewise.
31493 * include/sys/utsname.h [IS_IN(rtld) && NO_RTLD_HIDDEN]
31494 (__uname): Likewise.
31495 * include/sysdeps/generic/_itoa.h [IS_IN(rtld) && NO_RTLD_HIDDEN]
31496 (_itoa_upper_digits, _itoa_lower_digits): Likewise.
31497 * sysdeps/mach/hurd/configure.ac (NO_HIDDEN): Do not set.
31498 (NO_RTLD_HIDDEN): Set.
31499 * sysdeps/mach/hurd/configure: Refresh.
31500 * config.h.in: Refresh.
31501
31502 2017-10-02 Joseph Myers <joseph@codesourcery.com>
31503
31504 * sysdeps/ieee754/dbl-64/s_atan.c: Include <libm-alias-double.h>.
31505 (atan): Define using libm_alias_double.
31506 * sysdeps/ieee754/dbl-64/s_tan.c: Include <libm-alias-double.h>.
31507 (tan): Define using libm_alias_double.
31508 * sysdeps/ieee754/ldbl-opt/s_atan.c: Remove file.
31509 * sysdeps/ieee754/ldbl-opt/s_tan.c: Likewise.
31510
31511 * sysdeps/ieee754/dbl-64/s_atan.c (atan): Rename to __atan and
31512 define as weak alias of __atan. Do not define any aliases if
31513 [__atan].
31514 [NO_LONG_DOUBLE] (__atanl): Define as strong alias of __atan.
31515 [NO_LONG_DOUBLE] (atanl): Define as weak alias of __atanl.
31516 * sysdeps/ieee754/dbl-64/s_tan.c (tan): Rename to __tan and define
31517 as weak alias of __tan. Do not define any aliases if [__tan].
31518 [NO_LONG_DOUBLE] (__tanl): Define as strong alias of __tan.
31519 [NO_LONG_DOUBLE] (tanl): Define as weak alias of __tanl.
31520 * sysdeps/x86_64/fpu/multiarch/s_atan-avx.c (atan): Rename to
31521 __atan.
31522 * sysdeps/x86_64/fpu/multiarch/s_atan-fma.c (atan): Likewise.
31523 * sysdeps/x86_64/fpu/multiarch/s_atan-fma4.c (atan): Likewise.
31524 * sysdeps/x86_64/fpu/multiarch/s_atan.c (atan): Rename to __atan
31525 and define as weak alias of __atan.
31526 * sysdeps/x86_64/fpu/multiarch/s_tan-avx.c (tan): Rename to
31527 __atan.
31528 * sysdeps/x86_64/fpu/multiarch/s_tan-fma.c (tan): Likewise.
31529 * sysdeps/x86_64/fpu/multiarch/s_tan-fma4.c (tan): Likewise.
31530 * sysdeps/x86_64/fpu/multiarch/s_tan.c (tan): Rename to __tan and
31531 define as weak alias of __tan.
31532
31533 2017-10-02 Szabolcs Nagy <szabolcs.nagy@arm.com>
31534
31535 * math/w_lgamma.c: New file.
31536 * math/w_lgammaf.c: New file.
31537 * math/w_lgammal.c: New file.
31538
31539 2017-10-02 Szabolcs Nagy <szabolcs.nagy@arm.com>
31540
31541 * sysdeps/ieee754/flt-32/e_log2f.c (__log2f): Define without wrapper.
31542 * sysdeps/ieee754/flt-32/e_logf.c (__logf): Likewise
31543 * sysdeps/ieee754/flt-32/e_powf.c (__powf): Likewise
31544 * sysdeps/ieee754/flt-32/w_log2f.c: New file.
31545 * sysdeps/ieee754/flt-32/w_logf.c: New file.
31546 * sysdeps/ieee754/flt-32/w_powf.c: New file.
31547 * sysdeps/i386/fpu/w_log2f.c: New file.
31548 * sysdeps/i386/fpu/w_logf.c: New file.
31549 * sysdeps/i386/fpu/w_powf.c: New file.
31550 * sysdeps/m68k/m680x0/fpu/w_log2f.c: New file.
31551 * sysdeps/m68k/m680x0/fpu/w_logf.c: New file.
31552 * sysdeps/m68k/m680x0/fpu/w_powf.c: New file.
31553
31554 2017-10-02 Szabolcs Nagy <szabolcs.nagy@arm.com>
31555 H.J. Lu <hongjiu.lu@intel.com>
31556
31557 * sysdeps/ieee754/flt-32/e_exp2f.c (__exp2f): Define without wrapper.
31558 * sysdeps/ieee754/flt-32/e_expf.c (__expf): Likewise
31559 * sysdeps/ieee754/flt-32/w_exp2f.c: New file.
31560 * sysdeps/ieee754/flt-32/w_expf.c: New file.
31561 * sysdeps/powerpc/powerpc64/fpu/multiarch/e_expf-ppc64.c: Update for
31562 the new expf code.
31563 * sysdeps/powerpc/powerpc64/fpu/multiarch/w_expf.c: New file.
31564 * sysdeps/powerpc/powerpc64/power8/fpu/w_expf.c: New file.
31565 * sysdeps/m68k/m680x0/fpu/w_exp2f.c: New file.
31566 * sysdeps/m68k/m680x0/fpu/w_expf.c: New file.
31567 * sysdeps/i386/fpu/w_exp2f.c: New file.
31568 * sysdeps/i386/fpu/w_expf.c: New file.
31569 * sysdeps/i386/i686/fpu/multiarch/w_expf.c: New file.
31570 * sysdeps/x86_64/fpu/w_expf.c: New file.
31571
31572 2017-10-02 Szabolcs Nagy <szabolcs.nagy@arm.com>
31573
31574 * math/Versions (logf): New libm symbol at GLIBC_2.27.
31575 (log2f): Likewise.
31576 (powf): Likewise.
31577 * math/w_log2f.c: New file.
31578 * math/w_logf.c: New file.
31579 * math/w_powf.c: New file.
31580 * math/w_log2f_compat.c (__log2f_compat): For compat symbol only.
31581 * math/w_logf_compat.c (__logf_compat): Likewise.
31582 * math/w_powf_compat.c (__powf_compat): Likewise.
31583 * sysdeps/ia64/fpu/e_log2f.S: Add versioned symbols.
31584 * sysdeps/ia64/fpu/e_logf.S: Likewise.
31585 * sysdeps/ia64/fpu/e_powf.S: Likewise.
31586 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Update.
31587 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
31588 * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
31589 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
31590 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
31591 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
31592 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
31593 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
31594 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
31595 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
31596 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
31597 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
31598 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist:
31599 Likewise.
31600 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
31601 Likewise.
31602 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist:
31603 Likewise.
31604 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist:
31605 Likewise.
31606 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
31607 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
31608 * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
31609 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
31610 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
31611 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist:
31612 Likewise.
31613 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist:
31614 Likewise.
31615 * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
31616 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
31617 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
31618
31619 2017-10-02 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
31620
31621 * sysdeps/powerpc/powerpc64/multiarch/Makefile
31622 (sysdep_routines): Add memrchr_power8.
31623 * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
31624 (memrchr): Add __memrchr_power8 to list of memrchr functions.
31625 * sysdeps/powerpc/powerpc64/multiarch/memrchr-power8.S:
31626 New file.
31627 * sysdeps/powerpc/powerpc64/multiarch/memrchr.c
31628 (memrchr): Add __memrchr_power8 to ifunc list.
31629 * sysdeps/powerpc/powerpc64/power8/memrchr.S: New file.
31630
31631 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
31632
31633 [BZ #18822]
31634 * sysdeps/unix/sysv/linux/posix_fadvise64.c
31635 (__posix_fadvise64_l64): Add Add libc_hidden_proto and
31636 libc_hidden_def.
31637 * sysdeps/unix/sysv/linux/posix_fallocate64.c
31638 (__posix_fallocate64_l64): Likewise.
31639
31640 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
31641
31642 [BZ #18822]
31643 * sysdeps/unix/sysv/linux/sched_setaffinity.c
31644 (__sched_setaffinity_new): Add libc_hidden_proto and
31645 libc_hidden_def.
31646
31647 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
31648
31649 [BZ #18822]
31650 * include/glob.h (__glob64): Add libc_hidden_proto.
31651 * sysdeps/unix/sysv/linux/glob64.c (__glob64): Add
31652 libc_hidden_def.
31653
31654 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
31655
31656 [BZ #18822]
31657 * sysdeps/unix/sysv/linux/getrlimit64.c (__new_getrlimit): Add
31658 attribute_hidden.
31659
31660 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
31661
31662 [BZ #18822]
31663 * stdlib/exit.h (__new_exitfn): Add attribute_hidden.
31664
31665 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
31666
31667 [BZ #18822]
31668 * mon/gmon.c (__moncontrol): Add libc_hidden_proto and
31669 libc_hidden_def.
31670
31671 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
31672
31673 [BZ #18822]
31674 * csu/version.c (__libc_print_version): Add attribute_hidden.
31675
31676 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
31677
31678 [BZ #18822]
31679 * include/libc-internal.h (__init_misc): Add attribute_hidden.
31680
31681 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
31682
31683 [BZ #18822]
31684 * include/fpu_control.h (__setfpucw): Add attribute_hidden.
31685
31686 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
31687
31688 [BZ #18822]
31689 * nscd/nscd_helper.c (__nis_hash): New prototype.
31690
31691 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
31692
31693 [BZ #18822]
31694 * include/termios.h (__tcgetattr): Add libc_hidden_proto.
31695 * sysdeps/unix/bsd/tcgetattr.c (__tcgetattr): Add
31696 libc_hidden_def.
31697 * sysdeps/unix/sysv/linux/tcgetattr.c (__tcgetattr): Likewise.
31698 * termios/tcgetattr.c (__tcgetattr): Likewise.
31699
31700 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
31701
31702 [BZ #18822]
31703 * include/sys/resource.h (__setrlimit): Add libc_hidden_proto.
31704 * resource/setrlimit.c (__setrlimit): Add libc_hidden_def.
31705 * sysdeps/mach/hurd/setrlimit.c (__setrlimit): Likewise.
31706 * sysdeps/unix/sysv/linux/setrlimit.c (__setrlimit): Likewise.
31707 * sysdeps/unix/sysv/linux/setrlimit64.c (__GI___setrlimit): New.
31708
31709 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
31710
31711 [BZ #18822]
31712 * include/monetary.h (__vstrfmon_l): Add attribute_hidden.
31713
31714 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
31715
31716 [BZ #18822]
31717 * include/sched.h (__sched_setparam): Add libc_hidden_proto.
31718 * posix/sched_setp.c (__sched_setparam): Add libc_hidden_def.
31719
31720 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
31721
31722 [BZ #18822]
31723 * intl/hash-string.h (__hash_string): Add attribute_hidden.
31724
31725 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
31726
31727 [BZ #18822]
31728 * include/mntent.h (__hasmntopt): Add libc_hidden_proto.
31729 * misc/mntent_r.c (__hasmntopt): Add libc_hidden_def.
31730
31731 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
31732
31733 [BZ #18822]
31734 * include/ifreq.h: New file.
31735 * sysdeps/generic/ifreq.h (__if_nextreq): Removed.
31736 (__ifreq): Likewise.
31737 * sysdeps/mach/hurd/ifreq.h (__if_nextreq): Removed.
31738 (__ifreq): Likewise.
31739
31740 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
31741
31742 [BZ #18822]
31743 * include/idna.h: New file.
31744 * inet/getnameinfo.c: Include <idna.h> instead of
31745 <libidn/idna.h>.
31746 (__idna_to_unicode_lzlz): Removed.
31747 * sysdeps/posix/getaddrinfo.c: Include <idna.h> instead of
31748 <libidn/idna.h>.
31749 (__idna_to_ascii_lz): Removed.
31750 (__idna_to_unicode_lzlz): Likewise.
31751
31752 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
31753
31754 [BZ #18822]
31755 * include/plural-exp.h: New file.
31756 * intl/plural-exp.c: Include <plural-exp.h> instead of
31757 "plural-exp.h".
31758
31759 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
31760
31761 [BZ #18822]
31762 * sysdeps/unix/sysv/linux/getsourcefilter.c: Include
31763 "getsourcefilter.h".
31764 * sysdeps/unix/sysv/linux/getsourcefilter.h: New file.
31765 * sysdeps/unix/sysv/linux/setsourcefilter.c: Include
31766 "getsourcefilter.h".
31767 (__get_sol): Removed.
31768
31769 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
31770
31771 [BZ #18822]
31772 * elf/dl-iteratephdr.c (hidden_proto (__dl_iterate_phdr)): Moved
31773 to ...
31774 * include/link.h (hidden_proto (__dl_iterate_phdr)): Here.
31775
31776 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
31777
31778 [BZ #18822]
31779 * sysdeps/unix/sysv/linux/getpt.c (__bsd_getpt): Add
31780 attribute_hidden.
31781
31782 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
31783
31784 [BZ #18822]
31785 * libio/iolibio.h (__fopen_maybe_mmap): Add attribute_hidden.
31786
31787 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
31788
31789 [BZ #18822]
31790 * include/search.h (__tdestroy): Add libc_hidden_proto.
31791 * misc/tsearch.c (__tdestroy): Add libc_hidden_def.
31792
31793 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
31794
31795 [BZ #18822]
31796 * include/assert.h (__assert_fail_base): Add attribute_hidden.
31797
31798 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
31799
31800 [BZ #18822]
31801 * sysdeps/unix/sysv/linux/include/sys/sysinfo.h (__sysinfo): Add
31802 attribute_hidden.
31803
31804 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
31805
31806 [BZ #18822]
31807 * include/signal.h (__kill): Add libc_hidden_proto.
31808 (__sigblock): Likewise.
31809 (__sigprocmask): Likewise.
31810 (__sigaltstack): Likewise.
31811 * signal/kill.c (__kill): Add libc_hidden_def.
31812 * signal/sigblock.c (__sigblock): Likewise.
31813 * signal/sigprocmask.c (__sigprocmask): Likewise.
31814 * sysdeps/mach/hurd/kill.c (__kill): Likewise.
31815 * sysdeps/mach/hurd/sigaltstack.c (__sigaltstack): Likewise.
31816 * sysdeps/mach/hurd/sigprocmask.c (__sigprocmask): Likewise.
31817 * sysdeps/posix/sigblock.c (__sigblock): Likewise.
31818 * sysdeps/unix/sysv/linux/alpha/sigprocmask.c (__sigprocmask):
31819 Likewise.
31820 * sysdeps/unix/sysv/linux/ia64/sigprocmask.c (__sigprocmask):
31821 Likewise.
31822 * sysdeps/unix/sysv/linux/s390/s390-64/sigprocmask.c
31823 (__sigprocmask): Likewise.
31824 * sysdeps/unix/sysv/linux/sigprocmask.c (__sigprocmask):
31825 Likewise.
31826 * /sysdeps/unix/sysv/linux/sparc/sparc64/sigprocmask.c
31827 (__sigprocmask): Likewise.
31828 * sysdeps/unix/sysv/linux/x86_64/sigprocmask.c (__sigprocmask):
31829 Likewise.
31830
31831 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
31832
31833 [BZ #18822]
31834 * include/string.h (__strsep): Add libc_hidden_proto.
31835 * string/strsep.c (__strsep): Add libc_hidden_def.
31836
31837 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
31838
31839 [BZ #18822]
31840 * posix/spawn_int.h (__posix_spawn_file_actions_realloc): Add
31841 attribute_hidden.
31842 (__spawni): Likewise.
31843
31844 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
31845
31846 [BZ #18822]
31847 * include/sys/mman.h (__mremap): Add libc_hidden_proto.
31848 * sysdeps/unix/sysv/linux/m68k/mremap.S (__mremap): Add
31849 libc_hidden_def.
31850
31851 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
31852
31853 [BZ #18822]
31854 * include/malloc.h (__malloc_check_init): Add attribute_hidden.
31855
31856 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
31857
31858 [BZ #18822]
31859 * include/sys/ioctl.h (__ioctl): Add libc_hidden_proto.
31860 * misc/ioctl.c (__ioctl): Add libc_hidden_def.
31861 * sysdeps/mach/hurd/ioctl.c (__ioctl): Likewise.
31862 * sysdeps/unix/sysv/linux/aarch64/ioctl.S (__ioctl): Likewise.
31863 * sysdeps/unix/sysv/linux/mips/mips64/n64/ioctl.S (__ioctl):
31864 Likewise.
31865 * sysdeps/unix/sysv/linux/powerpc/ioctl.c (__ioctl): Likewise.
31866 * sysdeps/unix/sysv/linux/tile/tilegx/ioctl.S (__ioctl): Likewise.
31867
31868 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
31869
31870 [BZ #18822]
31871 * intl/gettextP.h (__dcngettext): Add attribute_hidden.
31872 (__dcigettext): Likewise.
31873
31874 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
31875
31876 [BZ #18822]
31877 * include/sys/sysinfo.h (__get_nprocs_conf): Add
31878 libc_hidden_proto.
31879 (__get_nprocs): Likewise.
31880 (__get_phys_pages): Likewise.
31881 (__get_avphys_pages): Likewise.
31882 (__get_child_max): Add attribute_hidden.
31883 * misc/getsysstats.c (__get_nprocs_conf): Add libc_hidden_def.
31884 (__get_nprocs): Likewise.
31885 (__get_phys_pages): Likewise.
31886 (__get_avphys_pages): Likewise.
31887 * sysdeps/mach/getsysstats.c (__get_nprocs_conf): Add
31888 libc_hidden_def.
31889 (__get_nprocs): Likewise.
31890 (__get_phys_pages): Likewise.
31891 (__get_avphys_pages): Likewise.
31892 * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Add
31893 libc_hidden_def.
31894 (__get_nprocs_conf): Likewise.
31895 (__get_phys_pages): Likewise.
31896 (__get_avphys_pages): Likewise.
31897
31898 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
31899
31900 [BZ #18822]
31901 * sysdeps/unix/sysv/linux/netlinkaccess.h (__netlink_open): Add
31902 attribute_hidden.
31903 (__netlink_close): Likewise.
31904 (__netlink_free_handle): Likewise.
31905 (__netlink_request): Likewise.
31906
31907 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
31908
31909 [BZ #18822]
31910 * include/rpc/rpc.h (__rpc_thread_variables): Add
31911 attribute_hidden.
31912 (__rpc_thread_svc_cleanup): Likewise.
31913 (__rpc_thread_clnt_cleanup): Likewise.
31914 (__rpc_thread_key_cleanup): Likewise.
31915
31916 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
31917
31918 [BZ #18822]
31919 * include/sys/uio.h (__readv): Add libc_hidden_proto.
31920 (__writev): Likewise.
31921 * misc/readv.c (__readv): Add libc_hidden_def.
31922 * misc/writev.c (__writev): Likewise.
31923 * sysdeps/posix/readv.c (__readv): Likewise.
31924 * sysdeps/posix/writev.c (__writev): Likewise.
31925 * sysdeps/unix/sysv/linux/readv.c: Include <sys/uio.h>.
31926 (__readv): Likewise.
31927 * sysdeps/unix/sysv/linux/writev.c: Include <sys/uio.h>.
31928 (__writev): Likewise.
31929
31930 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
31931
31932 [BZ #18822]
31933 * include/regex.h (__re_compile_fastmap): Add attribute_hidden.
31934 (__regcomp): Add libc_hidden_proto.
31935 (__regexec): Likewise.
31936 (__regfree): Likewise.
31937 * posix/regcomp.c (__regcomp): Add libc_hidden_def.
31938 (__regfree): Likewise.
31939 * posix/regexec.c (__regexec): Likewise.
31940
31941 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
31942
31943 [BZ #18822]
31944 * include/utmp.h (__updwtmp): Add libc_hidden_proto.
31945 (__getutent): Likewise.
31946 (__getutid): Likewise.
31947 (__getutline): Likewise.
31948 (__pututline): Likewise.
31949 (__getutent_r): Likewise.
31950 (__getutid_r): Likewise.
31951 (__getutline_r): Likewise.
31952 (__utmpname): Add attribute_hidden.
31953 (__setutent): Likewise.
31954 (__endutent): Likewise.
31955 * login/getutent.c (__getutent): Add libc_hidden_def.
31956 * login/getutent_r.c (__getutent_r): Likewise.
31957 (__pututline): Likewise.
31958 * login/getutid.c (__getutid): Likewise.
31959 * login/getutid_r.c (__getutid_r): Likewise.
31960 * login/getutline.c (__getutline): Likewise.
31961 * login/getutline_r.c (__getutline_r): Likewise.
31962 * login/updwtmp.c (__updwtmp): Likewise.
31963
31964 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
31965
31966 [BZ #18822]
31967 * include/dirent.h (__opendir): Always add attribute_hidden.
31968 (__fdopendir): Likewise.
31969 (__closedir): Likewise.
31970 (__readdir): Likewise.
31971 (__readdir64): Add libc_hidden_proto.
31972 * sysdeps/mach/hurd/readdir64.c (__readdir64): Add libc_hidden_def.
31973 * sysdeps/unix/sysv/linux/i386/readdir64.c (__readdir64): Likewise.
31974 * sysdeps/unix/sysv/linux/readdir64.c (__readdir64): Likewise.
31975 * sysdeps/unix/sysv/linux/wordsize-64/readdir.c (__GI___readdir64):
31976 New alias.
31977
31978 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
31979
31980 [BZ #18822]
31981 * include/aliases.h (__getaliasbyname_r): Add attribute_hidden.
31982 * include/netdb.h (__gethostbyaddr_r): Likewise.
31983 (__gethostbyname_r): Likewise.
31984 (__gethostbyname2_r): Likewise.
31985 (__getnetbyaddr_r): Likewise.
31986 (__getnetbyname_r): Likewise.
31987 (__getservbyname_r): Likewise.
31988 (__getservbyport_r): Likewise.
31989 (__getprotobyname_r): Likewise.
31990 (__getprotobynumber_r): Likewise.
31991 (__getnetgrent_r): Likewise.
31992 * include/rpc/netdb.h (__getrpcbyname_r): Likewise.
31993 (__getrpcbynumber_r): Likewise.
31994 * nss/getXXbyYY.c (INTERNAL (REENTRANT_NAME)): Likewise.
31995
31996 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
31997
31998 [BZ #18822]
31999 * include/stdio.h (__fcloseall): Add attribute_hidden.
32000 (__getline): Likewise.
32001 (__path_search): Likewise.
32002 (__gen_tempname): Likewise.
32003 (__libc_message): Likewise.
32004 (__flockfile): Likewise.
32005 (__funlockfile): Likewise.
32006 (__fxprintf): Likewise.
32007 (__fxprintf_nocancel): Likewise.
32008
32009 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
32010
32011 [BZ #18822]
32012 * include/gshadow.h (__fgetsgent_r): Add attribute_hidden.
32013 (__sgetsgent_r): Likewise.
32014
32015 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
32016
32017 [BZ #18822]
32018 * include/sys/statfs.h (__fstatfs): Add attribute_hidden.
32019 (__statfs64): Likewise.
32020 (__fstatfs64): Likewise.
32021 * include/sys/statvfs.h (__statvfs64): Likewise.
32022 (__fstatvfs64): Likewise.
32023 * sysdeps/unix/sysv/linux/pathconf.h (__statfs_link_max): Likewise.
32024 (__statfs_filesize_max): Likewise.
32025 (__statfs_symlinks): Likewise.
32026 (__statfs_chown_restricted): Likewise.
32027
32028 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
32029
32030 [BZ #18822]
32031 * include/time.h (__tzstring): Add attribute_hidden.
32032 (__tzfile_read): Likewise.
32033 (__tzfile_compute): Likewise.
32034 (__tzfile_default): Likewise.
32035 (__tzset_parse_tz): Likewise.
32036 (__offtime): Likewise.
32037 (__asctime_r): Likewise.
32038 (__tzset): Likewise.
32039 (__tz_convert): Likewise.
32040 (__getdate_r): Likewise.
32041 (__getclktck): Likewise.
32042
32043 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
32044
32045 [BZ #18822]
32046 * nscd/nscd-client.h (__nscd_get_map_ref): Add attribute_hidden.
32047 (__nscd_unmap): Likewise.
32048 (__nscd_cache_search): Likewise.
32049 (__nscd_get_nl_timestamp): Likewise.
32050 (__nscd_getpwnam_r): Likewise.
32051 (__nscd_getpwuid_r): Likewise.
32052 (__nscd_getgrnam_r): Likewise.
32053 (__nscd_getgrgid_r): Likewise.
32054 (__nscd_gethostbyname_r): Likewise.
32055 (__nscd_gethostbyname2_r): Likewise.
32056 (__nscd_gethostbyaddr_r): Likewise.
32057 (__nscd_getai): Likewise.
32058 (__nscd_getgrouplist): Likewise.
32059 (__nscd_getservbyname_r): Likewise.
32060 (__nscd_getservbyport_r): Likewise.
32061 (__nscd_innetgr): Likewise.
32062 (__nscd_setnetgrent): Likewise.
32063
32064 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
32065
32066 [BZ #18822]
32067 * include/gmp.h: Declare internal functions only if _ISOMAC is
32068 undefined.
32069 (__mpn_extract_double): Add attribute_hidden.
32070 (__mpn_extract_long_double): Likewise.
32071 (__mpn_extract_float128): Likewise.
32072 (__mpn_construct_float): Likewise.
32073 (__mpn_construct_double): Likewise.
32074 (__mpn_construct_long_double): Likewise.
32075 (__mpn_construct_float128): Likewise.
32076 (mpn_add_1): Likewise.
32077 (mpn_addmul_1): Likewise.
32078 (mpn_add_n): Likewise.
32079 (mpn_cmp): Likewise.
32080 (mpn_divrem): Likewise.
32081 (mpn_lshift): Likewise.
32082 (mpn_mul): Likewise.
32083 (mpn_mul_1): Likewise.
32084 (mpn_rshift): Likewise.
32085 (mpn_sub_1): Likewise.
32086 (mpn_submul_1): Likewise.
32087 (mpn_sub_n): Likewise.
32088
32089 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
32090
32091 [BZ #18822]
32092 * include/wchar.h (__wcsnlen): Add attribute_hidden.
32093 (__wcscat): Likewise.
32094 (__btowc): Likewise.
32095 (__wcrtomb): Likewise.
32096 (__mbsrtowcs): Likewise.
32097 (__wcsrtombs): Likewise.
32098 (__mbsnrtowcs): Likewise.
32099 (__wcsnrtombs): Likewise.
32100 (__wcsncpy): Likewise.
32101 (__wcpncpy): Likewise.
32102 (__wmemcpy): Likewise.
32103 (__wmempcpy): Likewise.
32104 (__wmemmove): Likewise.
32105 (__wcschrnul): Likewise.
32106 (__vfwscanf): Likewise.
32107 (__vswprintf): Likewise.
32108 (__fwprintf): Likewise.
32109 (__vfwprintf): Likewise.
32110
32111 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
32112
32113 [BZ #18822]
32114 * include/grp.h (__fgetgrent_r): Add attribute_hidden.
32115 (__getgrgid_r): Likewise.
32116 (__getgrnam_r): Likewise.
32117 * include/pwd.h (__getpwuid_r): Likewise.
32118 (__getpwnam_r): Likewise.
32119 (__fgetpwent_r): Likewise.
32120 * include/shadow.h (__getspnam_r): Likewise.
32121 (__sgetspent_r): Likewise.
32122 (__fgetspent_r): Likewise.
32123
32124 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
32125
32126 [BZ #18822]
32127 * include/unistd.h (__access): Add attribute_hidden.
32128 (__lseek64): Likewise.
32129 (__libc_pread64): Likewise.
32130 (__pipe2): Likewise.
32131 (__sleep): Likewise.
32132 (__chdir): Likewise.
32133 (__fchdir): Likewise.
32134 (__getcwd): Likewise.
32135 (__rmdir): Likewise.
32136 (__execvpe): Likewise.
32137 (__execve): Likewise.
32138 (__setsid): Likewise.
32139 (__getuid): Likewise.
32140 (__geteuid): Likewise.
32141 (__getgid): Likewise.
32142 (__getegid): Likewise.
32143 (__getgroups): Likewise.
32144 (__group_member): Likewise.
32145 (__ttyname_r): Likewise.
32146 (__isatty): Likewise.
32147 (__readlink): Likewise.
32148 (__unlink): Likewise.
32149 (__gethostname): Likewise.
32150 (__profil): Likewise.
32151 (__getdtablesize): Likewise.
32152 (__brk): Likewise.
32153 (__ftruncate): Likewise.
32154 (__ftruncate64): Likewise.
32155
32156 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
32157
32158 [BZ #18822]
32159 * argp/argp-fmtstream.c: Include <argp-fmtstream.h>.
32160 * argp/argp-fs-xinl.c: Likewise.
32161 * argp/argp-help.c: Include <argp.h> and <argp-fmtstream.h>.
32162 * argp/argp-parse.c: Include <argp.h>.
32163 * argp/argp-xinl.c: Likewise.
32164 * include/argp-fmtstream.h: New file.
32165 * include/argp.h (__argp_error): Add attribute_hidden.
32166 (__argp_failure): Likewise.
32167 (__argp_input): Likewise.
32168 (__argp_state_help): Likewise.
32169
32170 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
32171
32172 [BZ #18822]
32173 * include/wchar.h (____wcstof_l_internal): New prototype.
32174 (____wcstod_l_internal): Likewise.
32175 (____wcstold_l_internal): Likewise.
32176 (____wcstol_l_internal): Likewise.
32177 (____wcstoul_l_internal): Likewise.
32178 (____wcstoll_l_internal): Likewise.
32179 (____wcstoull_l_internal): Likewise.
32180 (____wcstof128_l_internal): Likewise.
32181 * sysdeps/ieee754/float128/wcstof128.c
32182 (____wcstof128_l_internal): Removed.
32183 * sysdeps/ieee754/float128/wcstof128_l.c
32184 (____wcstof128_l_internal): Likewise.
32185 * wcsmbs/wcstod.c (____wcstod_l_internal): Likewise.
32186 * wcsmbs/wcstod_l.c (____wcstod_l_internal): Likewise.
32187 * wcsmbs/wcstof.c (____wcstof_l_internal): Likewise.
32188 * wcsmbs/wcstof_l.c (____wcstof_l_internal): Likewise.
32189 * wcsmbs/wcstol_l.c (____wcstol_l_internal): Likewise.
32190 * wcsmbs/wcstold.c (____wcstold_l_internal): Likewise.
32191 * wcsmbs/wcstold_l.c (____wcstold_l_internal): Likewise.
32192 * wcsmbs/wcstoll_l.c (____wcstoll_l_internal): Likewise.
32193 * wcsmbs/wcstoul_l.c (____wcstoul_l_internal): Likewise.
32194 * wcsmbs/wcstoull_l.c (____wcstoull_l_internal): Likewise.
32195
32196 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
32197
32198 [BZ #18822]
32199 * sysdeps/unix/sysv/linux/fstatvfs.c: Include "internal_statvfs.h"
32200 instead of <sys/statvfs.h>.
32201 (__internal_statvfs): Removed.
32202 * sysdeps/unix/sysv/linux/fstatvfs64.c Include "internal_statvfs.h"
32203 instead of <sys/statvfs.h>.
32204 (__internal_statvfs64): Removed.
32205 * sysdeps/unix/sysv/linux/internal_statvfs.c: Include
32206 "internal_statvfs.h" instead of <sys/statvfs.h>.
32207 * sysdeps/unix/sysv/linux/internal_statvfs.h: New file.
32208 * sysdeps/unix/sysv/linux/statvfs.c Include "internal_statvfs.h"
32209 instead of <sys/statvfs.h>.
32210 (__internal_statvfs): Removed.
32211 * sysdeps/unix/sysv/linux/statvfs64.c Include "internal_statvfs.h"
32212 instead of <sys/statvfs.h>.
32213 (__internal_statvfs64): Removed.
32214
32215 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
32216
32217 [BZ #18822]
32218 * iconv/gconv_int.h (__gconv_open): Add attribute_hidden.
32219 (__gconv_close): Likewise.
32220 (__gconv): Likewise.
32221 (__gconv_find_transform): Likewise.
32222 (__gconv_lookup_cache): Likewise.
32223 (__gconv_compare_alias_cache): Likewise.
32224 (__gconv_load_cache): Likewise.
32225 (__gconv_get_path): Likewise.
32226 (__gconv_close_transform): Likewise.
32227 (__gconv_release_cache): Likewise.
32228 (__gconv_find_shlib): Likewise.
32229 (__gconv_release_shlib): Likewise.
32230 (__gconv_get_builtin_trans): Likewise.
32231 (__gconv_compare_alias): Likewise.
32232 * include/dlfcn.h (_dlerror_run): Likewise.
32233 * include/stdio.h (__fortify_fail_abort): Likewise.
32234 * include/time.h (__tz_compute): Likewise.
32235 (__strptime_internal): Likewise.
32236 * intl/gettextP.h (_nl_find_domain): Likewise.
32237 (_nl_load_domain): Likewise.
32238 (_nl_find_msg): Likewise.
32239 * intl/plural-exp.h (FREE_EXPRESSION): Likewise.
32240 (EXTRACT_PLURAL_EXPRESSION): Likewise.
32241 * locale/coll-lookup.h (__collidx_table_lookup): Likewise.
32242 * resolv/gai_misc.h (__gai_enqueue_request): Likewise.
32243 (__gai_find_request): Likewise.
32244 (__gai_remove_request): Likewise.
32245 (__gai_notify): Likewise.
32246 (__gai_notify_only): Likewise.
32247 * sysdeps/generic/aio_misc.h (__aio_sigqueue): Likewise.
32248 * sysdeps/generic/ldsodefs.h (_dl_fini): Likewise.
32249 (_dl_non_dynamic_init): Likewise.
32250 (_dl_aux_init): Likewise.
32251 * sysdeps/i386/machine-gmon.h (mcount_internal): Likewise.
32252 * sysdeps/unix/sysv/linux/i386/olddirent.h (__old_getdents64):
32253 Likewise.
32254 * wcsmbs/wcsmbsload.h (__wcsmbs_load_conv): Likewise.
32255 (__wcsmbs_clone_conv): Likewise.
32256 (__wcsmbs_named_conv): Likewise.
32257
32258 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
32259
32260 [BZ #18822]
32261 * include/stdlib.h (__random): Add attribute_hidden.
32262 (__random_r): Likewise.
32263 (__srandom_r): Likewise.
32264 (__initstate_r): Likewise.
32265 (__setstate_r): Likewise.
32266 (__erand48_r): Likewise.
32267 (__nrand48_r): Likewise.
32268 (__jrand48_r): Likewise.
32269 (__srand48_r): Likewise.
32270 (__seed48_r): Likewise.
32271 (__lcong48_r): Likewise.
32272 (__drand48_iterate): Likewise.
32273 (__setenv): Likewise.
32274 (__unsetenv): Likewise.
32275 (__clearenv): Likewise.
32276 (__ptsname_r): Likewise.
32277 (__posix_openpt): Likewise.
32278 (__add_to_environ): Likewise.
32279 (__realpath): Add libc_hidden_proto.
32280 (__ecvt_r): Likewise.
32281 (__fcvt_r): Likewise.
32282 (__qecvt_r): Likewise.
32283 (__qfcvt_r): Likewise.
32284 * misc/efgcvt_r.c (cvt_symbol_1): Add libc_hidden_def (local).
32285 * stdlib/canonicalize.c (__realpath): Add libc_hidden_def.
32286
32287 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
32288
32289 [BZ #18822]
32290 * include/stdlib.h (__ptsname_internal): Add attribute_hidden.
32291 * include/time.h (__mktime_internal): Likewise.
32292 * libio/iolibio.h (__fopen_internal): Likewise.
32293
32294 2017-10-01 John David Anglin <danglin@gcc.gnu.org>
32295
32296 * sysdeps/unix/sysv/linux/hppa/getcontext.S (__getcontext): Save return
32297 pointer in frame.
32298 * sysdeps/unix/sysv/linux/hppa/setcontext.S (__setcontext): Likewise.
32299 Correct offset used to restore PIC register.
32300
32301 2017-09-30 John David Anglin <danglin@gcc.gnu.org>
32302
32303 [BZ libc/22165]
32304 * sysdeps/unix/sysv/linux/hppa/getcontext.S (__getcontext): Use PIC
32305 code to load address of __getcontext_ret when generating PIC code.
32306
32307 2017-09-30 H.J. Lu <hongjiu.lu@intel.com>
32308
32309 * elf/Makefile (tests-static-internal): Add
32310 tst-tls1-static-non-pie.
32311 (LDFLAGS-tst-tls1-static-non-pie): New.
32312 * elf/tst-tls1-static-non-pie.c: New file.
32313
32314 2017-09-29 Joseph Myers <joseph@codesourcery.com>
32315
32316 * sysdeps/ieee754/dbl-64/s_asinh.c: Include <libm-alias-double.h>.
32317 (asinh): Define using libm_alias_double.
32318 * sysdeps/ieee754/dbl-64/s_cbrt.c: Include <libm-alias-double.h>.
32319 (cbrt): Define using libm_alias_double.
32320 * sysdeps/ieee754/dbl-64/s_copysign.c: Include
32321 <libm-alias-double.h>.
32322 (copysign): Define using libm_alias_double.
32323 * sysdeps/ieee754/dbl-64/s_erf.c: Include <libm-alias-double.h>.
32324 (erf): Define using libm_alias_double.
32325 (erfc): Likewise.
32326 * sysdeps/ieee754/dbl-64/s_expm1.c: Include <libm-alias-double.h>.
32327 (expm1): Define using libm_alias_double.
32328 * sysdeps/ieee754/dbl-64/s_fabs.c: Include <libm-alias-double.h>.
32329 (fabs): Define using libm_alias_double.
32330 * sysdeps/ieee754/dbl-64/s_fromfp.c (fromfp): Define using
32331 libm_alias_double.
32332 * sysdeps/ieee754/dbl-64/s_fromfp_main.c: Include
32333 <libm-alias-double.h>.
32334 * sysdeps/ieee754/dbl-64/s_fromfpx.c (fromfpx): Define using
32335 libm_alias_double.
32336 * sysdeps/ieee754/dbl-64/s_getpayload.c: Include
32337 <libm-alias-double.h>.
32338 (getpayload): Define using libm_alias_double.
32339 * sysdeps/ieee754/dbl-64/s_llrint.c: Include
32340 <libm-alias-double.h>.
32341 (llrint): Define using libm_alias_double.
32342 * sysdeps/ieee754/dbl-64/s_lrint.c: Include <libm-alias-double.h>.
32343 (lrint): Define using libm_alias_double.
32344 * sysdeps/ieee754/dbl-64/s_nextup.c: Include
32345 <libm-alias-double.h>.
32346 (nextup): Define using libm_alias_double.
32347 * sysdeps/ieee754/dbl-64/s_roundeven.c: Include
32348 <libm-alias-double.h>.
32349 (roundeven): Define using libm_alias_double.
32350 * sysdeps/ieee754/dbl-64/s_setpayload.c (setpayload): Define using
32351 libm_alias_double.
32352 * sysdeps/ieee754/dbl-64/s_setpayload_main.c: Include
32353 <libm-alias-double.h>.
32354 * sysdeps/ieee754/dbl-64/s_setpayloadsig.c (setpayloadsig): Define
32355 using libm_alias_double.
32356 * sysdeps/ieee754/dbl-64/s_sin.c: Include <libm-alias-double.h>.
32357 (cos): Define using libm_alias_double.
32358 (sin): Likewise.
32359 * sysdeps/ieee754/dbl-64/s_sincos.c: Include
32360 <libm-alias-double.h>.
32361 (sincos): Define using libm_alias_double.
32362 * sysdeps/ieee754/dbl-64/s_tanh.c: Include <libm-alias-double.h>.
32363 (tanh): Define using libm_alias_double.
32364 * sysdeps/ieee754/dbl-64/s_totalorder.c: Include
32365 <libm-alias-double.h>.
32366 (totalorder): Define using libm_alias_double.
32367 * sysdeps/ieee754/dbl-64/s_totalordermag.c: Include
32368 <libm-alias-double.h>.
32369 (totalordermag): Define using libm_alias_double.
32370 * sysdeps/ieee754/dbl-64/s_ufromfp.c (ufromfp): Define using
32371 libm_alias_double.
32372 * sysdeps/ieee754/dbl-64/s_ufromfpx.c (ufromfpx): Define using
32373 libm_alias_double.
32374 * sysdeps/ieee754/dbl-64/wordsize-64/s_getpayload.c: Include
32375 <libm-alias-double.h>.
32376 (getpayload): Define using libm_alias_double.
32377 * sysdeps/ieee754/dbl-64/wordsize-64/s_roundeven.c: Include
32378 <libm-alias-double.h>.
32379 (roundeven): Define using libm_alias_double.
32380 * sysdeps/ieee754/dbl-64/wordsize-64/s_setpayload_main.c: Include
32381 <libm-alias-double.h>.
32382 * sysdeps/ieee754/dbl-64/wordsize-64/s_totalorder.c: Include
32383 <libm-alias-double.h>.
32384 (totalorder): Define using libm_alias_double.
32385 * sysdeps/ieee754/dbl-64/wordsize-64/s_totalordermag.c: Include
32386 <libm-alias-double.h>.
32387 (totalordermag): Define using libm_alias_double.
32388 * sysdeps/ieee754/ldbl-opt/s_copysign.c (copysignl): Only define
32389 libc compat symbol here.
32390 * sysdeps/ieee754/ldbl-opt/s_asinh.c: Remove file.
32391 * sysdeps/ieee754/ldbl-opt/s_cbrt.c: Likewise.
32392 * sysdeps/ieee754/ldbl-opt/s_erf.c: Likewise.
32393 * sysdeps/ieee754/ldbl-opt/s_expm1.c: Likewise.
32394 * sysdeps/ieee754/ldbl-opt/s_fabs.c: Likewise.
32395 * sysdeps/ieee754/ldbl-opt/s_llrint.c: Likewise.
32396 * sysdeps/ieee754/ldbl-opt/s_lrint.c: Likewise.
32397 * sysdeps/ieee754/ldbl-opt/s_sin.c: Likewise.
32398 * sysdeps/ieee754/ldbl-opt/s_sincos.c: Likewise.
32399 * sysdeps/ieee754/ldbl-opt/s_tanh.c: Likewise.
32400
32401 2017-09-29 H.J. Lu <hongjiu.lu@intel.com>
32402
32403 * sysdeps/arm/dl-machine.h (elf_machine_load_address): Use
32404 _dl_relocate_static_pie instead of _dl_start to compute load
32405 address in static PIE. Return 0 if _DYNAMIC is undefined for
32406 static executable.
32407
32408 2017-09-29 H.J. Lu <hongjiu.lu@intel.com>
32409
32410 * sysdeps/mips/dl-machine.h (elf_machine_dynamic): Return 0 if
32411 _DYNAMIC is undefined for static executable.
32412
32413 2017-09-29 H.J. Lu <hongjiu.lu@intel.com>
32414
32415 * sysdeps/arm/start.S (_start): Check PIC instead of SHARED.
32416
32417 2017-09-29 Joseph Myers <joseph@codesourcery.com>
32418
32419 * sysdeps/x86_64/fpu/libm-test-ulps: Update.
32420
32421 2017-09-29 Wilco Dijkstra <wdijkstr@arm.com>
32422
32423 * sysdeps/ieee754/dbl-64/e_lgamma_r.c
32424 (__ieee754_lgamma_r): Use fabs rather than __fabs.
32425 * sysdeps/ieee754/dbl-64/e_log10.c (__ieee754_log10): Likewise.
32426 * sysdeps/ieee754/dbl-64/e_log2.c (__ieee754_log2): Likewise.
32427 * sysdeps/ieee754/flt-32/e_lgammaf_r.c
32428 (__ieee754_lgammaf_r): Use fabsf rather than __fabsf.
32429 * sysdeps/ieee754/flt-32/e_log10f.c (__ieee754_log10f): Likewise.
32430 * sysdeps/ieee754/flt-32/e_log2f.c (__ieee754_log2f): Likewise.
32431 * sysdeps/ieee754/ldbl-128/e_lgammal_r.c
32432 (__ieee754_lgammal_r): Use fabsl rather than __fabsl.
32433 * sysdeps/ieee754/ldbl-128/e_log10l.c (__ieee754_log10l): Likewise.
32434 * sysdeps/ieee754/ldbl-128/e_log2l.c (__ieee754_log2l): Likewise.
32435 * sysdeps/ieee754/ldbl-128ibm/e_lgammal_r.c
32436 (__ieee754_lgammal_r): Use fabsl rather than __fabsl.
32437 * sysdeps/ieee754/ldbl-128ibm/e_log10l.c (__ieee754_log10l): Likewise.
32438 * sysdeps/ieee754/ldbl-128ibm/e_log2l.c (__ieee754_log2l): Likewise.
32439 * sysdeps/powerpc/nofpu/Makefile: Add -fno-builtin-fabsl for BZ #29253.
32440
32441 2017-09-29 Wilco Dijkstra <wdijkstr@arm.com>
32442
32443 * math/bits/cmathcalls.h (cimag): Remove inline.
32444 (creal): Remove inline.
32445 (conj): Remove inline.
32446
32447 2017-09-29 Szabolcs Nagy <szabolcs.nagy@arm.com>
32448
32449 * math/Makefile (type-float-routines): Add e_powf_log2_data.
32450 * sysdeps/ieee754/flt-32/e_powf.c: New implementation.
32451 * sysdeps/ieee754/flt-32/e_powf_log2_data.c: New file.
32452 * sysdeps/ieee754/flt-32/math_config.h (__powf_log2_data): Define.
32453 (issignalingf_inline): Likewise.
32454 (POWF_LOG2_TABLE_BITS): Likewise.
32455 (POWF_LOG2_POLY_ORDER): Likewise.
32456 (POWF_SCALE_BITS): Likewise.
32457 (POWF_SCALE): Likewise.
32458 * sysdeps/i386/fpu/e_powf_log2_data.c: New file.
32459 * sysdeps/ia64/fpu/e_powf_log2_data.c: New file.
32460 * sysdeps/m68k/m680x0/fpu/e_powf_log2_data.c: New file.
32461
32462 2017-09-29 Szabolcs Nagy <szabolcs.nagy@arm.com>
32463
32464 * math/Makefile (type-float-routines): Add e_log2f_data.
32465 * sysdeps/ieee754/flt-32/e_log2f.c: New implementation.
32466 * sysdeps/ieee754/flt-32/e_log2f_data.c: New file.
32467 * sysdeps/ieee754/flt-32/math_config.h (__log2f_data): Define.
32468 (LOG2F_TABLE_BITS, LOG2F_POLY_ORDER): Define.
32469 * sysdeps/i386/fpu/e_log2f_data.c: New file.
32470 * sysdeps/ia64/fpu/e_log2f_data.c: New file.
32471 * sysdeps/m68k/m680x0/fpu/e_log2f_data.c: New file.
32472
32473 2017-09-29 Szabolcs Nagy <szabolcs.nagy@arm.com>
32474
32475 * math/Makefile (type-float-routines): Add e_logf_data.
32476 * sysdeps/ieee754/flt-32/e_logf.c: New implementation.
32477 * sysdeps/ieee754/flt-32/e_logf_data.c: New file.
32478 * sysdeps/ieee754/flt-32/math_config.h (__logf_data): Define.
32479 (LOGF_TABLE_BITS, LOGF_POLY_ORDER): Define.
32480 * sysdeps/i386/fpu/e_logf_data.c: New file.
32481 * sysdeps/ia64/fpu/e_logf_data.c: New file.
32482 * sysdeps/m68k/m680x0/fpu/e_logf_data.c: New file.
32483
32484 2017-09-28 H.J. Lu <hongjiu.lu@intel.com>
32485
32486 * sysdeps/i386/dl-machine.h (elf_machine_load_address): Allow
32487 undefined _DYNAMIC in PIE libc.a.
32488 * sysdeps/x86_64/dl-machine.h (elf_machine_load_address):
32489 Likewse.
32490
32491 2017-09-28 Wilco Dijkstra <wdijkstr@arm.com>
32492
32493 * sysdeps/alpha/fpu/bits/mathinline.h: Delete file.
32494 * sysdeps/ia64/fpu/bits/mathinline.h: Delete file.
32495 * sysdeps/m68k/coldfire/fpu/bits/mathinline.h: Delete file.
32496 * sysdeps/m68k/m680x0/fpu/bits/mathinline.h: (__signbitf): Remove.
32497 (__signbit): Remove.
32498 (__signbitl): Remove.
32499 * sysdeps/powerpc/bits/mathinline.h (__signbitf): Remove.
32500 (__signbit): Remove.
32501 (__signbitl): Remove.
32502 * sysdeps/s390/fpu/bits/mathinline.h: (__signbitf): Remove.
32503 (__signbit): Remove.
32504 (__signbitl): Remove.
32505 * sysdeps/sparc/fpu/bits/mathinline.h (__signbitf): Remove.
32506 (__signbit): Remove.
32507 (__signbitl): Remove.
32508 * sysdeps/tile/bits/mathinline.h: Delete file.
32509 * sysdeps/x86/fpu/bits/mathinline.h (__signbitf): Remove.
32510 (__signbit): Remove.
32511 (__signbitl): Remove.
32512
32513 2017-09-28 Wilco Dijkstra <wdijkstr@arm.com>
32514
32515 * math/math.h: Improve handling of C99 isgreater macros.
32516 * sysdeps/alpha/fpu/bits/mathinline.h: Remove isgreater macros.
32517 * sysdeps/m68k/m680x0/fpu/bits/mathinline.h: Likewise.
32518 * sysdeps/powerpc/bits/mathinline.h: Likewise.
32519 * sysdeps/sparc/fpu/bits/mathinline.h: Likewise.
32520 * sysdeps/x86/fpu/bits/mathinline.h: Likewise.
32521
32522 2017-09-28 Szabolcs Nagy <szabolcs.nagy@arm.com>
32523
32524 * sysdeps/aarch64/libm-test-ulps: Update.
32525
32526 2017-09-28 Joseph Myers <joseph@codesourcery.com>
32527
32528 [BZ #22225]
32529 * sysdeps/ieee754/dbl-64/s_nearbyint.c (__nearbyint): Use
32530 math_opt_barrier on argument when doing arithmetic on it.
32531 * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c (__nearbyint):
32532 Likewise. Use math_force_eval not math_opt_barrier after
32533 arithmetic.
32534 * sysdeps/ieee754/flt-32/s_nearbyintf.c (__nearbyintf): Use
32535 math_opt_barrier on argument when doing arithmetic on it.
32536 * sysdeps/ieee754/ldbl-128/s_nearbyintl.c (__nearbyintl):
32537 Likewise.
32538
32539 2017-09-27 H.J. Lu <hongjiu.lu@intel.com>
32540
32541 * sysdeps/unix/sysv/linux/ifaddrs.c (__getifaddrs): Add
32542 libc_hidden_def.
32543 (__freeifaddrs): Likewise.
32544
32545 2017-09-27 Samuel Thibault <samuel.thibault@ens-lyon.org>
32546
32547 * include/dirent.h (__dirfd): New declaration.
32548 * dirent/dirfd.c (dirfd): Rename to __dirfd, and redefine as weak
32549 alias.
32550 * sysdeps/posix/dirfd/dirfd.c (dirfd): Likewise.
32551 * sysdeps/mach/hurd/dirfd.c (dirfd): Likewise.
32552 * io/ftw.c (open_dir_stream, ftw_dir): Use __dirfd instead of dirfd.
32553 * include/unistd.h (__revoke): New declaration.
32554 * misc/revoke.c (revoke): Rename to __revoke, and redefine as weak
32555 alias.
32556 * sysdeps/mach/hurd/revoke.c (revoke): Likewise.
32557 * sysdeps/unix/bsd/unlockpt.c (unlockpt): Use __revoke instead of
32558 revoke.
32559 * include/dirent.h (__seekdir): New declaration.
32560 * sysdeps/mach/hurd/seekdir.c (seekdir): Rename to __seekdir and
32561 redefine as weak alias.
32562 * sysdeps/mach/hurd/rewinddir.c (__rewinddir): Use __seekdir instead
32563 of seekdir.
32564 * include/ifaddrs.h (__getifaddrs, __freeifaddrs): New declarations,
32565 and use libc_hidden_def on them.
32566 * inet/ifaddrs.c (__getifaddrs, __freeifaddrs): Use libc_hidden_def on
32567 them.
32568 * sysdeps/gnu/ifaddrs.c (__getifaddrs, __freeifaddrs): Likewise.
32569 * inet/check_pf.c (__check_pf): Use __getifaddrs and __freeifaddrs
32570 instead of getifaddrs and freeifaddrs.
32571
32572 2017-09-26 H.J. Lu <hongjiu.lu@intel.com>
32573
32574 [BZ #18822]
32575 * dlfcn/modatexit.c (foo): Remove __dso_handle check.
32576 * dlfcn/modcxaatexit.c: Include <dso_handle.h>.
32577 (__dso_handle): Remove declaration.
32578 * dlfcn/tstatexit.c (__dso_handle): Removed.
32579 (main): Don't check __dso_handle.
32580 * dlfcn/tstcxaatexit.c (__dso_handle): Removed.
32581 (main): Don't check __dso_handle.
32582 * include/dso_handle.h: New file.
32583 * malloc/mtrace.c: Include <dso_handle.h>.
32584 (mtrace): Pass __dso_handle directly.
32585 * nptl/pthread_atfork.c: Include <dso_handle.h>.
32586 (__dso_handle): Remove declaration.
32587 (__pthread_atfork): Pass __dso_handle directly.
32588 * nptl/tst-atfork2mod.c: Include <dso_handle.h>.
32589 (__dso_handle): Removed.
32590 * posix/wordexp-test.c: Include <dso_handle.h>.
32591 (__dso_handle): Remove declaration.
32592 (__app_register_atfork): Pass __dso_handle directly.
32593 * stdlib/at_quick_exit.c: Include <dso_handle.h>.
32594 (__dso_handle): Remove declaration.
32595 (at_quick_exit): Pass __dso_handle directly.
32596 * stdlib/atexit.c: Include <dso_handle.h>.
32597 (__dso_handle): Remove declaration.
32598 (atexit): Pass __dso_handle directly.
32599 * stdlib/tst-tls-atexit-lib.c: Include <dso_handle.h>.
32600 (__dso_handle): Removed.
32601
32602 2017-09-26 Joseph Myers <joseph@codesourcery.com>
32603
32604 * sysdeps/unix/make-syscalls.sh: Use __ifunc to define symbols
32605 using VDSO.
32606
32607 2017-09-26 Alexey Makhalov <amakhalov@vmware.com>
32608
32609 * elf/dl-tunables.c (do_tunable_update_val): Range checking fix.
32610 * scripts/gen-tunables.awk: Set unspecified minval and/or maxval
32611 values to correct default value for given type.
32612
32613 2017-09-26 H.J. Lu <hongjiu.lu@intel.com>
32614
32615 [BZ #22101]
32616 * elf/Makefile (tests): Add tst-debug1.
32617 ($(objpfx)tst-debug1): New.
32618 ($(objpfx)tst-debug1.out): Likewise.
32619 ($(objpfx)tst-debug1mod1.so): Likewise.
32620 * elf/dl-load.c (_dl_map_object_from_fd): Skip PT_DYNAMIC segment
32621 with p_filesz == 0.
32622 * elf/tst-debug1.c: New file.
32623
32624 2017-09-26 Joseph Myers <joseph@codesourcery.com>
32625
32626 * sysdeps/sparc/sparc-ifunc.h [!__ASSEMBLER__] (sparc_libm_ifunc):
32627 Define using __ifunc.
32628
32629 2017-09-26 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
32630
32631 * sysdeps/powerpc/fpu/libm-test-ulps: Regenerate expf() and
32632 exp2f() values.
32633
32634 2017-09-26 Joseph Myers <joseph@codesourcery.com>
32635
32636 [BZ #22156]
32637 * sysdeps/ia64/stackinfo.h (DEFAULT_STACK_PERMS): Likewise.
32638
32639 2017-09-26 Florian Weimer <fweimer@redhat.com>
32640
32641 * resolv/Makefile (tests-internal): Fix typo in comment.
32642
32643 2017-09-26 Florian Weimer <fweimer@redhat.com>
32644
32645 * resolv/nss_dns/dns-host.c: Fix typo in comment.
32646
32647 2017-09-25 Adhemerval Zanella <adhemerval.zanella@linaro.org>
32648
32649 * lib/malloc/scratch_buffer.h (struct scratch_buffer):
32650 Use an union instead of a max_align_t array for __space,
32651 so that __space is the same size on all platforms.
32652 * malloc/scratch_buffer_grow_preserve.c
32653 (__libc_scratch_buffer_grow_preserve): Likewise.
32654
32655 [BZ #22183]
32656 * include/gnu-versions.h (_GNU_GLOB_INTERFACE_VERSION): Increase
32657 version to 2.
32658 * posix/Makefile (routines): Add glob-lstat-compat and
32659 glob64-lstat-compat.
32660 * posix/Versions (GLIBC_2.27, glob, glob64): Add symbol version.
32661 * posix/glob-lstat-compat.c: New file.
32662 * posix/glob64-lstat-compat.c: Likewise.
32663 * posix/tst-glob_lstat_compat.c: Likewise.
32664 * sysdeps/unix/sysv/linux/glob-lstat-compat.c: Likewise.
32665 * sysdeps/unix/sysv/linux/alpha/glob-lstat-compat.c: Likewise.
32666 * sysdeps/unix/sysv/linux/glob64-lstat-compat.c: Likewise.
32667 * sysdeps/unix/sysv/linux/s390/s390-32/glob64-lstat-compat.c:
32668 Likewise.
32669 * sysdeps/unix/sysv/linux/alpha/glob.c: Remove file.
32670 * sysdeps/unix/sysv/linux/s390/s390-32/glob64.c: Likewise.
32671 * posix/glob.c (glob_lstat): New function.
32672 (glob): Rename to __glob and add versioned symbol to 2.27.
32673 (glob_in_dir): Use glob_lstat.
32674 * posix/glob64.c (glob64): Add GLOB_ATTRIBUTE.
32675 * sysdeps/unix/sysv/linux/arm/libc.abilist: Likewise.
32676 * sysdeps/unix/sysv/linux/glob.c (glob): Add versioned symbol for
32677 2.27.
32678 * sysdeps/unix/sysv/linux/glob64.c (glob64): Likewise.
32679 * sysdeps/unix/sysv/linux/oldglob.c (GLOB_NO_LSTAT): Define.
32680 * sysdeps/unix/sysv/linux/alpha/oldglob.c (__old_glob): Do not use
32681 gl_lstat on glob call.
32682 * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Add GLIBC_2.27 glob
32683 and glob64 symbols.
32684 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
32685 * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
32686 * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
32687 * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
32688 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
32689 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
32690 * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
32691 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
32692 * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist: Likewise.
32693 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
32694 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
32695 * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise.
32696 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
32697 Likewise.
32698 * sysdeps/unix/linux/powerpc/powerpc32/nofpu/libc.abilist: Likewise.
32699 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist: Likewise.
32700 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
32701 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
32702 * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
32703 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
32704 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
32705 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libc.abilist: Likewise.
32706 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libc.abilist: Likewise.
32707 * sysdeps/unix/sysv/linux/tile/tilepro/libc.abilist: Likewise.
32708 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
32709 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
32710
32711 2017-09-25 H.J. Lu <hongjiu.lu@intel.com>
32712
32713 * configure.ac (AS): Require binutils 2.25 or later.
32714 * configure: Regenerated.
32715
32716 2017-09-25 Paul Pluzhnikov <ppluzhnikov@google.com>
32717
32718 [BZ #22207]
32719 * stdlib/test-atexit-race-common.c (do_test): Minimize required
32720 VM size.
32721
32722 2017-09-25 DJ Delorie <dj@redhat.com>
32723
32724 [BZ #22161]
32725 * nscd/netgroupcache.c (addinnetgrX): Release read lock after
32726 resetting timeout.
32727
32728 2017-09-25 Stefan Liebler <stli@linux.vnet.ibm.com>
32729
32730 * sysdeps/ieee754/dbl-64/sincos32.h
32731 [SINCCOS32_H]: Remove define.
32732 [SINCOS32_H]: Define.
32733
32734 2017-09-25 Szabolcs Nagy <szabolcs.nagy@arm.com>
32735
32736 * math/Versions (expf): New libm symbol at GLIBC_2.27.
32737 (exp2f): Likewise.
32738 * math/w_exp2f.c: New file.
32739 * math/w_expf.c: New file.
32740 * math/w_exp2f_compat.c (__exp2f_compat): For compat symbol only.
32741 * math/w_expf_compat.c (__expf_compat): Likewise.
32742 * sysdeps/ia64/fpu/e_exp2f.S: Add versioned symbols.
32743 * sysdeps/ia64/fpu/e_expf.S: Likewise.
32744 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Update.
32745 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
32746 * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
32747 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
32748 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
32749 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
32750 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
32751 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
32752 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
32753 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
32754 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
32755 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
32756 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist:
32757 Likewise.
32758 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
32759 Likewise.
32760 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist:
32761 Likewise.
32762 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist:
32763 Likewise.
32764 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
32765 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
32766 * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
32767 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
32768 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
32769 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist:
32770 Likewise.
32771 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist:
32772 Likewise.
32773 * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
32774 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
32775 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
32776
32777 2017-09-25 Szabolcs Nagy <szabolcs.nagy@arm.com>
32778
32779 * math/Makefile (type-float-routines): Add math_errf and e_exp2f_data.
32780 * sysdeps/aarch64/fpu/math_private.h (TOINT_INTRINSICS): Define.
32781 (roundtoint, converttoint): Likewise.
32782 * sysdeps/ieee754/flt-32/e_expf.c: New implementation.
32783 * sysdeps/ieee754/flt-32/e_exp2f.c: New implementation.
32784 * sysdeps/ieee754/flt-32/e_exp2f_data.c: New file.
32785 * sysdeps/ieee754/flt-32/math_config.h: New file.
32786 * sysdeps/ieee754/flt-32/math_errf.c: New file.
32787 * sysdeps/ieee754/flt-32/t_exp2f.h: Remove.
32788 * sysdeps/i386/fpu/e_exp2f_data.c: New file.
32789 * sysdeps/i386/fpu/math_errf.c: New file.
32790 * sysdeps/ia64/fpu/e_exp2f_data.c: New file.
32791 * sysdeps/ia64/fpu/math_errf.c: New file.
32792 * sysdeps/m68k/m680x0/fpu/e_exp2f_data.c: New file.
32793 * sysdeps/m68k/m680x0/fpu/math_errf.c: New file.
32794
32795 2017-09-24 Samuel Thibault <samuel.thibault@ens-lyon.org>
32796
32797 * sysdeps/mach/hurd/dl-sysdep.c (check_no_hidden): New macro.
32798 (__open, __close, __libc_read, __libc_write, __writev, __libc_lseek64,
32799 __mmap, __fxstat64, __xstat64, __access, __access_noerrno, __getpid,
32800 __getcwd, __sbrk, __strtoul_internal, _exit, abort): Use check_no_hidden
32801 to make sure that these symbols are defined.
32802 * sysdeps/mach/hurd/bits/socket.h: Include <bits/wordsize.h> instead
32803 of <limits.h>
32804 (__need_NULL): Do not define.
32805 (__ss_aligntype): Use __WORDSIZE instead of ULONG_MAX to determine
32806 alignment.
32807 [!__USE_MISC] (pseudo_AF_XTP, pseudo_AF_RTIP, pseudo_AF_PIP,
32808 CMGROUP_MAX, cmsgcred): Do not define.
32809 (CMSG_FIRSTHDR, __cmsg_nxthdr): Use (struct cmsghdr *) 0 instead of
32810 NULL.
32811 * bits/socket.h: Likewise.
32812 * sysdeps/unix/clock_gettime.c (realtime_gettime, __clock_gettime): Use
32813 __gettimeofday instead of gettimeofday.
32814 * sysdeps/unix/clock_settime.c (__clock_settime): Use __settimeofday
32815 instead of settimeofday.
32816
32817 2017-09-22 Joseph Myers <joseph@codesourcery.com>
32818
32819 * sysdeps/ieee754/flt-32/s_asinhf.c: Include <libm-alias-float.h>.
32820 (asinhf): Define using libm_alias_float.
32821 * sysdeps/ieee754/flt-32/s_atanf.c: Include <libm-alias-float.h>.
32822 (atanf): Define using libm_alias_float.
32823 * sysdeps/ieee754/flt-32/s_cbrtf.c: Include <libm-alias-float.h>.
32824 (cbrtf): Define using libm_alias_float.
32825 * sysdeps/ieee754/flt-32/s_ceilf.c: Include <libm-alias-float.h>.
32826 (ceilf): Define using libm_alias_float.
32827 * sysdeps/ieee754/flt-32/s_copysignf.c: Include
32828 <libm-alias-float.h>.
32829 (copysignf): Define using libm_alias_float.
32830 * sysdeps/ieee754/flt-32/s_cosf.c: Include <libm-alias-float.h>.
32831 (cosf): Define using libm_alias_float.
32832 * sysdeps/ieee754/flt-32/s_erff.c: Include <libm-alias-float.h>.
32833 (erff): Define using libm_alias_float.
32834 (erfcf): Likewise.
32835 * sysdeps/ieee754/flt-32/s_expm1f.c: Include <libm-alias-float.h>.
32836 (expm1f): Define using libm_alias_float.
32837 * sysdeps/ieee754/flt-32/s_fabsf.c: Include <libm-alias-float.h>.
32838 (fabsf): Define using libm_alias_float.
32839 * sysdeps/ieee754/flt-32/s_floorf.c: Include <libm-alias-float.h>.
32840 (floorf): Define using libm_alias_float.
32841 * sysdeps/ieee754/flt-32/s_frexpf.c: Include <libm-alias-float.h>.
32842 (frexpf): Define using libm_alias_float.
32843 * sysdeps/ieee754/flt-32/s_fromfpf.c (fromfpf): Define using
32844 libm_alias_float.
32845 * sysdeps/ieee754/flt-32/s_fromfpf_main.c: Include
32846 <libm-alias-float.h>.
32847 * sysdeps/ieee754/flt-32/s_fromfpxf.c (fromfpxf): Define using
32848 libm_alias_float.
32849 * sysdeps/ieee754/flt-32/s_getpayloadf.c: Include
32850 <libm-alias-float.h>.
32851 (getpayloadf): Define using libm_alias_float.
32852 * sysdeps/ieee754/flt-32/s_llrintf.c: Include
32853 <libm-alias-float.h>.
32854 (llrintf): Define using libm_alias_float.
32855 * sysdeps/ieee754/flt-32/s_llroundf.c: Include
32856 <libm-alias-float.h>.
32857 (llroundf): Define using libm_alias_float.
32858 * sysdeps/ieee754/flt-32/s_logbf.c: Include <libm-alias-float.h>.
32859 (logbf): Define using libm_alias_float.
32860 * sysdeps/ieee754/flt-32/s_lrintf.c: Include <libm-alias-float.h>.
32861 (lrintf): Define using libm_alias_float.
32862 * sysdeps/ieee754/flt-32/s_lroundf.c: Include <libm-alias-float.h>.
32863 (lroundf): Define using libm_alias_float.
32864 * sysdeps/ieee754/flt-32/s_modff.c: Include <libm-alias-float.h>.
32865 (modff): Define using libm_alias_float.
32866 * sysdeps/ieee754/flt-32/s_nearbyintf.c: Include
32867 <libm-alias-float.h>.
32868 (nearbyintf): Define using libm_alias_float.
32869 * sysdeps/ieee754/flt-32/s_nextafterf.c: Include
32870 <libm-alias-float.h>.
32871 (nextafterf): Define using libm_alias_float.
32872 * sysdeps/ieee754/flt-32/s_nextupf.c: Include
32873 <libm-alias-float.h>.
32874 (nextupf): Define using libm_alias_float.
32875 * sysdeps/ieee754/flt-32/s_remquof.c: Include
32876 <libm-alias-float.h>.
32877 (remquof): Define using libm_alias_float.
32878 * sysdeps/ieee754/flt-32/s_rintf.c: Include <libm-alias-float.h>.
32879 (rintf): Define using libm_alias_float.
32880 * sysdeps/ieee754/flt-32/s_roundevenf.c: Include
32881 <libm-alias-float.h>.
32882 (roundevenf): Define using libm_alias_float.
32883 * sysdeps/ieee754/flt-32/s_roundf.c: Include <libm-alias-float.h>.
32884 (roundf): Define using libm_alias_float.
32885 * sysdeps/ieee754/flt-32/s_setpayloadf.c (setpayloadf): Define
32886 using libm_alias_float.
32887 * sysdeps/ieee754/flt-32/s_setpayloadf_main.c: Include
32888 <libm-alias-float.h>.
32889 * sysdeps/ieee754/flt-32/s_setpayloadsigf.c (setpayloadsigf):
32890 Define using libm_alias_float.
32891 * sysdeps/ieee754/flt-32/s_sincosf.c: Include
32892 <libm-alias-float.h>.
32893 (sincosf): Define using libm_alias_float.
32894 * sysdeps/ieee754/flt-32/s_sinf.c: Include <libm-alias-float.h>.
32895 (sinf): Define using libm_alias_float.
32896 * sysdeps/ieee754/flt-32/s_tanf.c: Include <libm-alias-float.h>.
32897 (tanf): Define using libm_alias_float.
32898 * sysdeps/ieee754/flt-32/s_tanhf.c: Include <libm-alias-float.h>.
32899 (tanhf): Define using libm_alias_float.
32900 * sysdeps/ieee754/flt-32/s_totalorderf.c: Include
32901 <libm-alias-float.h>.
32902 (totalorderf): Define using libm_alias_float.
32903 * sysdeps/ieee754/flt-32/s_totalordermagf.c: Include
32904 <libm-alias-float.h>.
32905 (totalordermagf): Define using libm_alias_float.
32906 * sysdeps/ieee754/flt-32/s_truncf.c: Include <libm-alias-float.h>.
32907 (truncf): Define using libm_alias_float.
32908 * sysdeps/ieee754/flt-32/s_ufromfpf.c (ufromfpf): Define using
32909 libm_alias_float.
32910 * sysdeps/ieee754/flt-32/s_ufromfpxf.c (ufromfpxf): Define using
32911 libm_alias_float.
32912
32913 2017-09-22 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
32914
32915 [BZ #22146]
32916 math/math.h: Let fpclassify use the builtin in C++ mode, even
32917 when optimazing for size.
32918
32919 2017-09-22 Joseph Myers <joseph@codesourcery.com>
32920
32921 * csu/Makefile (generated): Do not add version-info.h.
32922 (before-compile): Likewise.
32923 (all-Banner-files): Remove variable.
32924 ($(objpfx)version-info.h): Remove rule.
32925 * csu/version.c (banner): Do not include "version-info.h".
32926 * libidn/Banner: Remove.
32927 * manual/contrib.texi (Simon Josefsson): New entry.
32928
32929 2017-09-21 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
32930
32931 * sysdeps/ieee754/ldbl-128/e_lgammal_r.c (__ieee754_lgammal_r):
32932 Remove conditionals on LDBL_MANT_DIG.
32933 * sysdeps/ieee754/ldbl-128ibm/e_lgammal_r.c
32934 (__ieee754_lgammal_r): Likewise.
32935
32936 2017-09-21 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
32937
32938 * sysdeps/ieee754/ldbl-128ibm/e_expl.c: Remove definitions of
32939 _Float128 and L().
32940 * sysdeps/ieee754/ldbl-128ibm/e_j0l.c: Remove definitions of
32941 _Float128 and L(). Replace _Float128 with long double and L(x)
32942 with xL, throughout the file.
32943 * sysdeps/ieee754/ldbl-128ibm/e_j1l.c: Likewise.
32944 * sysdeps/ieee754/ldbl-128ibm/e_lgammal_r.c: Likewise.
32945 * sysdeps/ieee754/ldbl-128ibm/s_cbrtl.c: Likewise.
32946 * sysdeps/ieee754/ldbl-128ibm/t_expl.h: Likewise.
32947
32948 2017-09-21 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
32949
32950 * sysdeps/ieee754/ldbl-128ibm/e_expl.c: Include tables from
32951 sysdeps/ieee754/ldbl-128ibm.
32952 * sysdeps/ieee754/ldbl-128ibm/e_j0l.c: Copy contents from the
32953 equivalent implementation in sysdeps/ieee754/ldbl-128/ instead
32954 of including it. Keep _Float128 and L() intact. These will be
32955 reviewed by a separate patch.
32956 * sysdeps/ieee754/ldbl-128ibm/e_j1l.c: Likewise.
32957 * sysdeps/ieee754/ldbl-128ibm/e_lgammal_r.c: Likewise.
32958 * sysdeps/ieee754/ldbl-128ibm/s_cbrtl.c: Likewise.
32959 * sysdeps/ieee754/ldbl-128ibm/t_expl.h: Likewise.
32960
32961 2017-09-21 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
32962
32963 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finite.c
32964 (__finitef128): Define to __redirect___finitef128.
32965 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinf.c
32966 (__isinff128): Define to __redirect___isinff128.
32967 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan.c
32968 (__isnanf128): Define to __redirect___isnanf128.
32969
32970 2017-09-21 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
32971
32972 * sysdeps/powerpc/powerpc64le/Makefile
32973 (CFLAGS-tst-strtod-nan-locale.c): New variable.
32974 (CFLAGS-tst-wcstod-nan-locale.c): New variable.
32975
32976 2017-09-21 Paul Pluzhnikov <ppluzhnikov@google.com>
32977 Carlos O'Donell <carlos@redhat.com>
32978
32979 [BZ #22180]
32980 * stdlib/Makefile (tests): Add test-dlclose-exit-race.
32981 * stdlib/test-dlclose-exit-race.c: New file.
32982 * stdlib/test-dlclose-exit-race-helper.c: New file.
32983 * stdlib/exit.c (__run_exit_handlers): Mark slot as free.
32984
32985 2017-09-21 Joseph Myers <joseph@codesourcery.com>
32986
32987 * crypt/Banner: Remove file.
32988 * nptl/Banner: Likewise.
32989 * resolv/Banner: Likewise.
32990 * soft-fp/Banner: Likewise.
32991 * nptl/Makefile ($(objpfx)banner.h): Remove rule.
32992 ($(objpfx)version.d): Remove dependency on banner.h.
32993 ($(objpfx)version.os): Likewise.
32994 * nptl/version.c (banner): Do not include banner.h.
32995 * manual/contrib.texi: Update entries for Richard Henderson, Jakub
32996 Jelinek and BIND code.
32997
32998 2017-09-20 Paul Pluzhnikov <ppluzhnikov@google.com>
32999 Carlos O'Donell <carlos@redhat.com>
33000
33001 * support/xdlfcn.h: New file.
33002 * support/xdlfcn.c: New file.
33003 * support/Makefile (libsupport-routines): Add xdlfcn.
33004 * stdlib/tst-tls-atexit.c: Use xdlopen, xdlsym, xdlclose.
33005
33006 2017-09-20 Joseph Myers <joseph@codesourcery.com>
33007
33008 [BZ #20142]
33009 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
33010 Add s_trunc-c, s_truncf-c, s_trunc-sse4_1 and s_truncf-sse4_1.
33011 * sysdeps/x86_64/fpu/multiarch/s_trunc-c.c: New file.
33012 * sysdeps/x86_64/fpu/multiarch/s_trunc-sse4_1.S: Likewise.
33013 * sysdeps/x86_64/fpu/multiarch/s_trunc.c: Likewise.
33014 * sysdeps/x86_64/fpu/multiarch/s_truncf-c.c: Likewise.
33015 * sysdeps/x86_64/fpu/multiarch/s_truncf-sse4_1.S: Likewise.
33016 * sysdeps/x86_64/fpu/multiarch/s_truncf.c: Likewise.
33017
33018 2017-09-20 Paul Pluzhnikov <ppluzhnikov@google.com>
33019 Ricky Zhou <rickyz@google.com>
33020 Anoop V Chakkalakkal <anoop.vijayan@in.ibm.com>
33021
33022 [BZ #14333]
33023 * stdlib/cxa_atexit.c (__internal_atexit): Use __exit_funcs_lock.
33024 Remove atomics.
33025 (__new_exitfn): Fail registration when we finished at_exit processing.
33026 * stdlib/cxa_finalize.c (__cxa_finalize): Likewise.
33027 * stdlib/on_exit.c (__on_exit): Likewise.
33028 * stdlib/exit.c (__exit_funcs_done): New variable.
33029 (__run_exit_handlers): Use __exit_funcs_lock.
33030 * stdlib/exit.h (__exit_funcs_lock, __exit_funcs_done): New
33031 declarations.
33032 * stdlib/Makefile (test-atexit-race, test-quick_at_exit-race)
33033 (test-cxa_atexit-race, test-on_exit-race): New tests.
33034 * stdlib/test-atexit-race-common.c: New file.
33035 * stdlib/test-atexit-race.c: New file.
33036 * stdlib/test-at_quick_exit-race.c: New file.
33037 * stdlib/test-cxa_atexit-race.c: New file.
33038 * stdlib/test-on_exit-race.c: New file.
33039
33040 2017-09-20 Szabolcs Nagy <szabolcs.nagy@arm.com>
33041
33042 * benchtests/Makefile: Add exp2f and log2f benchmarks.
33043 * benchtests/exp2f-inputs: Copy of expf-inputs.
33044 * benchtests/log2f-inputs: Copy of logf-inputs.
33045
33046 2017-09-19 Joseph Myers <joseph@codesourcery.com>
33047
33048 * sysdeps/unix/sysv/linux/fexecve.c (fexecve) [__NR_execveat]:
33049 Explicitly take address of first element of array arguments in
33050 call to INLINE_SYSCALL.
33051
33052 2017-09-19 Andreas Schwab <schwab@suse.de>
33053
33054 [BZ #22134]
33055 * sysdeps/unix/sysv/linux/fexecve.c (fexecve) [__NR_execveat]: Try
33056 execveat first.
33057 [!__ASSUME_EXECVEAT]: Fall back to /proc if execveat is
33058 unimplemented.
33059 * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_EXECVEAT)
33060 [__LINUX_KERNEL_VERSION >= 0x031300]: Define.
33061 * sysdeps/unix/sysv/linux/alpha/kernel-features.h
33062 (__ASSUME_EXECVEAT) [__LINUX_KERNEL_VERSION < 0x040200]: Undef.
33063 * sysdeps/unix/sysv/linux/hppa/kernel-features.h
33064 (__ASSUME_EXECVEAT) [__LINUX_KERNEL_VERSION < 0x040000]: Undef.
33065 * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
33066 (__ASSUME_EXECVEAT) [__LINUX_KERNEL_VERSION < 0x040000]: Undef.
33067 * posix/Makefile (tests): Add tst-fexecve.
33068 * posix/tst-fexecve.c: New file.
33069
33070 2017-09-19 Wilco Dijkstra <wdijkstr@arm.com>
33071
33072 * benchtests/Makefile: Add logf benchmark.
33073 * benchtests/logf-inputs: Add reduced trace from wrf_r.
33074
33075 2017-09-19 Wilco Dijkstra <wdijkstr@arm.com>
33076
33077 * benchtests/Makefile: Add expf benchmark.
33078 * benchtests/expf-inputs: Add reduced trace from wrf_r.
33079
33080 2017-09-19 Wilco Dijkstra <wdijkstr@arm.com>
33081
33082 * csu/Makefile: Add -funwind-tables to libc-start.c.
33083 * debug/Makefile: Add -funwind-tables to backtrace.c.
33084 * sysdeps/aarch64/Makefile: Remove CFLAGS-backtrace.c.
33085 * sysdeps/arm/Makefile: Likewise.
33086 * sysdeps/i386/Makefile: Likewise.
33087 * sysdeps/m68k/Makefile: Likewise.
33088 * sysdeps/mips/Makefile: Likewise.
33089 * sysdeps/nios2/Makefile: Likewise.
33090 * sysdeps/sh/Makefile: Likewise.
33091 * sysdeps/sparc/Makefile: Likewise.
33092
33093 2017-09-19 Joseph Myers <joseph@codesourcery.com>
33094
33095 * benchtests/Makefile (bench-math): Add trunc and truncf.
33096 (CFLAGS-bench-trunc.c): New variable.
33097 (CFLAGS-bench-truncf.c): Likewise.
33098 * benchtests/trunc-inputs: New file.
33099 * benchtests/truncf-inputs: Likewise.
33100
33101 2017-09-19 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
33102
33103 * sysdeps/powerpc/powerpc64/power8/memset.S: Avoid misaligned stores.
33104
33105 2017-09-18 Joseph Myers <joseph@codesourcery.com>
33106
33107 * sysdeps/ieee754/ldbl-opt/w_exp10l_compat.c [LIBM_SVID_COMPAT &&
33108 !LONG_DOUBLE_COMPAT (libm, GLIBC_2_1)] (weak_alias): Undefine and
33109 redefine.
33110 [LIBM_SVID_COMPAT && !LONG_DOUBLE_COMPAT (libm, GLIBC_2_1)]
33111 (exp10l): Define as weak alias.
33112 * sysdeps/ieee754/ldbl-opt/w_remainderl_compat.c [LIBM_SVID_COMPAT
33113 && !LONG_DOUBLE_COMPAT (libm, GLIBC_2_0)] (weak_alias): Undefine
33114 and redefine.
33115 [LIBM_SVID_COMPAT && !LONG_DOUBLE_COMPAT (libm, GLIBC_2_0)]
33116 (remainderl): Define as weak alias.
33117
33118 * math/s_fmal.c: Include <libm-alias-ldouble.h>.
33119 (fmal): Define using libm_alias_ldouble.
33120 * math/w_acoshl_compat.c: Include <libm-alias-ldouble.h>.
33121 (acoshl): Define using libm_alias_ldouble.
33122 * math/w_acosl_compat.c: Include <libm-alias-ldouble.h>.
33123 (acosl): Define using libm_alias_ldouble.
33124 * math/w_asinl_compat.c: Include <libm-alias-ldouble.h>.
33125 (asinl): Define using libm_alias_ldouble.
33126 * math/w_atan2l_compat.c: Include <libm-alias-ldouble.h>.
33127 (atan2l): Define using libm_alias_ldouble.
33128 * math/w_atanhl_compat.c: Include <libm-alias-ldouble.h>.
33129 (atanhl): Define using libm_alias_ldouble.
33130 * math/w_coshl_compat.c: Include <libm-alias-ldouble.h>.
33131 (coshl): Define using libm_alias_ldouble.
33132 * math/w_exp10l_compat.c: Include <libm-alias-ldouble.h>.
33133 (exp10l): Define using libm_alias_ldouble.
33134 * math/w_exp2l_compat.c: Include <libm-alias-ldouble.h>.
33135 (exp2l): Define using libm_alias_ldouble.
33136 * math/w_expl_compat.c: Include <libm-alias-ldouble.h>.
33137 (expl): Define using libm_alias_ldouble.
33138 * math/w_fmodl_compat.c: Include <libm-alias-ldouble.h>.
33139 (fmodl): Define using libm_alias_ldouble.
33140 * math/w_hypotl_compat.c: Include <libm-alias-ldouble.h>.
33141 (hypotl): Define using libm_alias_ldouble.
33142 * math/w_j0l_compat.c: Include <libm-alias-ldouble.h>.
33143 (j0l): Define using libm_alias_ldouble.
33144 (y0l): Likewise.
33145 * math/w_j1l_compat.c: Include <libm-alias-ldouble.h>.
33146 (j1l): Define using libm_alias_ldouble.
33147 (y1l): Likewise.
33148 * math/w_jnl_compat.c: Include <libm-alias-ldouble.h>.
33149 (jnl): Define using libm_alias_ldouble.
33150 (ynl): Likewise.
33151 * math/w_log10l_compat.c: Include <libm-alias-ldouble.h>.
33152 (log10l): Define using libm_alias_ldouble.
33153 * math/w_log2l_compat.c: Include <libm-alias-ldouble.h>.
33154 (log2l): Define using libm_alias_ldouble.
33155 * math/w_logl_compat.c: Include <libm-alias-ldouble.h>.
33156 (logl): Define using libm_alias_ldouble.
33157 * math/w_powl_compat.c: Include <libm-alias-ldouble.h>.
33158 (powl): Define using libm_alias_ldouble.
33159 * math/w_remainderl_compat.c: Include <libm-alias-ldouble.h>.
33160 (remainderl): Define using libm_alias_ldouble.
33161 * math/w_sinhl_compat.c: Include <libm-alias-ldouble.h>.
33162 (sinhl): Define using libm_alias_ldouble.
33163 * math/w_sqrtl_compat.c: Include <libm-alias-ldouble.h>.
33164 (sqrtl): Define using libm_alias_ldouble.
33165 * math/w_tgammal_compat.c: Include <libm-alias-ldouble.h>.
33166 (tgammal): Define using libm_alias_ldouble.
33167 * sysdeps/ieee754/ldbl-opt/w_exp10l_compat.c [LIBM_SVID_COMPAT]
33168 (exp10l): Do not use long_double_symbol here.
33169 * sysdeps/ieee754/ldbl-opt/w_remainderl_compat.c
33170 [LIBM_SVID_COMPAT] (remainderl): Likewise.
33171 * sysdeps/ieee754/ldbl-opt/s_fmal.c: Remove.
33172 * sysdeps/ieee754/ldbl-opt/w_acoshl_compat.c: Likewise.
33173 * sysdeps/ieee754/ldbl-opt/w_acosl_compat.c: Likewise.
33174 * sysdeps/ieee754/ldbl-opt/w_asinl_compat.c: Likewise.
33175 * sysdeps/ieee754/ldbl-opt/w_atan2l_compat.c: Likewise.
33176 * sysdeps/ieee754/ldbl-opt/w_atanhl_compat.c: Likewise.
33177 * sysdeps/ieee754/ldbl-opt/w_coshl_compat.c: Likewise.
33178 * sysdeps/ieee754/ldbl-opt/w_expl_compat.c: Likewise.
33179 * sysdeps/ieee754/ldbl-opt/w_fmodl_compat.c: Likewise.
33180 * sysdeps/ieee754/ldbl-opt/w_hypotl_compat.c: Likewise.
33181 * sysdeps/ieee754/ldbl-opt/w_j0l_compat.c: Likewise.
33182 * sysdeps/ieee754/ldbl-opt/w_j1l_compat.c: Likewise.
33183 * sysdeps/ieee754/ldbl-opt/w_jnl_compat.c: Likewise.
33184 * sysdeps/ieee754/ldbl-opt/w_log10l_compat.c: Likewise.
33185 * sysdeps/ieee754/ldbl-opt/w_log2l_compat.c: Likewise.
33186 * sysdeps/ieee754/ldbl-opt/w_logl_compat.c: Likewise.
33187 * sysdeps/ieee754/ldbl-opt/w_powl_compat.c: Likewise.
33188 * sysdeps/ieee754/ldbl-opt/w_sinhl_compat.c: Likewise.
33189 * sysdeps/ieee754/ldbl-opt/w_sqrtl_compat.c: Likewise.
33190 * sysdeps/ieee754/ldbl-opt/w_tgammal_compat.c: Likewise.
33191
33192 2017-09-18 Wang Boshi <wangboshi@huawei.com> (tiny change)
33193
33194 * sysdeps/aarch64/start.S: Use MOVL instead of literal pools.
33195 * sysdeps/aarch64/sysdep.h (MOVL): Add MOVL macro.
33196
33197 2017-09-17 Samuel Thibault <samuel.thibault@ens-lyon.org>
33198
33199 * io/read.c (read): Add libc_hidden_weak.
33200 * sysdeps/mach/hurd/read.c (read): Likewise.
33201 * io/write.c (write): Likewise.
33202 * sysdeps/mach/hurd/write.c (write): Likewise.
33203 * io/pread64.c (__pread64): Likewise.
33204 * sysdeps/mach/hurd/pread64.c (__pread64): Likewise.
33205 * posix/pread64.c (__pread64): Add libc_hidden_def.
33206
33207 2017-09-16 Siddhesh Poyarekar <siddhesh@sourceware.org>
33208
33209 * benchtests/scripts/compare_strings.py: New option -g.
33210 (draw_graph): Print a message that a graph is being generated.
33211 (process_results): Generate graph only if -g is passed.
33212 (main): Process option -g.
33213
33214 * benchtests/scripts/compare_strings.py (process_results):
33215 Better spacing for output.
33216
33217 * benchtests/scripts/compare_strings.py: Use argparse.
33218 * benchtests/README: Document existence of compare_strings.py.
33219
33220 2017-09-15 Joseph Myers <joseph@codesourcery.com>
33221
33222 * math/s_fma.c: Include <libm-alias-double.h>.
33223 (fma): Define using libm_alias_double.
33224 * math/s_nextafter.c: Include <libm-alias-double.h>.
33225 (nextafter): Define using libm_alias_double.
33226 * math/w_acos_compat.c: Include <libm-alias-double.h>.
33227 (acos): Define using libm_alias_double.
33228 * math/w_acosh_compat.c: Include <libm-alias-double.h>.
33229 (aocsh): Define using libm_alias_double.
33230 * math/w_asin_compat.c: Include <libm-alias-double.h>.
33231 (asin): Define using libm_alias_double.
33232 * math/w_atan2_compat.c: Include <libm-alias-double.h>.
33233 (atan2): Define using libm_alias_double.
33234 * math/w_atanh_compat.c: Include <libm-alias-double.h>.
33235 (atanh): Define using libm_alias_double.
33236 * math/w_cosh_compat.c: Include <libm-alias-double.h>.
33237 (cosh): Define using libm_alias_double.
33238 * math/w_exp10_compat.c: Include <libm-alias-double.h>.
33239 (exp10): Define using libm_alias_double.
33240 * math/w_exp2_compat.c: Include <libm-alias-double.h>.
33241 (exp2): Define using libm_alias_double.
33242 * math/w_exp_compat.c: Include <libm-alias-double.h>.
33243 (exp): Define using libm_alias_double.
33244 * math/w_fmod_compat.c: Include <libm-alias-double.h>.
33245 (fmod): Define using libm_alias_double.
33246 * math/w_hypot_compat.c: Include <libm-alias-double.h>.
33247 (hypot): Define using libm_alias_double.
33248 * math/w_j0_compat.c: Include <libm-alias-double.h>.
33249 (j0): Define using libm_alias_double.
33250 (y0): Likewise.
33251 * math/w_j1_compat.c: Include <libm-alias-double.h>.
33252 (j1): Define using libm_alias_double.
33253 (y1): Likewise.
33254 * math/w_jn_compat.c: Include <libm-alias-double.h>.
33255 (jn): Define using libm_alias_double.
33256 (yn): Likewise.
33257 * math/w_log10_compat.c: Include <libm-alias-double.h>.
33258 (log10): Define using libm_alias_double.
33259 * math/w_log2_compat.c: Include <libm-alias-double.h>.
33260 (log2): Define using libm_alias_double.
33261 * math/w_log_compat.c: Include <libm-alias-double.h>.
33262 (log): Define using libm_alias_double.
33263 * math/w_pow_compat.c: Include <libm-alias-double.h>.
33264 (pow): Define using libm_alias_double.
33265 * math/w_remainder_compat.c: Include <libm-alias-double.h>.
33266 (remainder): Define using libm_alias_double.
33267 * math/w_sinh_compat.c: Include <libm-alias-double.h>.
33268 (sinh): Define using libm_alias_double.
33269 * math/w_sqrt_compat.c: Include <libm-alias-double.h>.
33270 (sqrt): Define using libm_alias_double.
33271 * math/w_tgamma_compat.c: Include <libm-alias-double.h>.
33272 (tgamma): Define using libm_alias_double.
33273 * sysdeps/ieee754/ldbl-opt/s_nextafter.c [LONG_DOUBLE_COMPAT(libm,
33274 GLIBC_2_0)] (nextafterl): Do not define compat symbol here.
33275 * sysdeps/ieee754/ldbl-opt/w_exp10_compat.c
33276 [LONG_DOUBLE_COMPAT(libm, GLIBC_2_1)] (exp10l): Likewise.
33277 * sysdeps/ieee754/ldbl-opt/w_remainder_compat.c
33278 [LONG_DOUBLE_COMPAT(libm, GLIBC_2_0)] (remainderl): Likewise.
33279 * sysdeps/ieee754/ldbl-opt/w_acos_compat.c: Remove.
33280 * sysdeps/ieee754/ldbl-opt/w_acosh_compat.c: Likewise.
33281 * sysdeps/ieee754/ldbl-opt/w_asin_compat.c: Likewise.
33282 * sysdeps/ieee754/ldbl-opt/w_atan2_compat.c: Likewise.
33283 * sysdeps/ieee754/ldbl-opt/w_atanh_compat.c: Likewise.
33284 * sysdeps/ieee754/ldbl-opt/w_cosh_compat.c: Likewise.
33285 * sysdeps/ieee754/ldbl-opt/w_exp_compat.c: Likewise.
33286 * sysdeps/ieee754/ldbl-opt/w_fmod_compat.c: Likewise.
33287 * sysdeps/ieee754/ldbl-opt/w_hypot_compat.c: Likewise.
33288 * sysdeps/ieee754/ldbl-opt/w_j0_compat.c: Likewise.
33289 * sysdeps/ieee754/ldbl-opt/w_j1_compat.c: Likewise.
33290 * sysdeps/ieee754/ldbl-opt/w_jn_compat.c: Likewise.
33291 * sysdeps/ieee754/ldbl-opt/w_log10_compat.c: Likewise.
33292 * sysdeps/ieee754/ldbl-opt/w_log2_compat.c: Likewise.
33293 * sysdeps/ieee754/ldbl-opt/w_log_compat.c: Likewise.
33294 * sysdeps/ieee754/ldbl-opt/w_pow_compat.c: Likewise.
33295 * sysdeps/ieee754/ldbl-opt/w_sinh_compat.c: Likewise.
33296 * sysdeps/ieee754/ldbl-opt/w_sqrt_compat.c: Likewise.
33297 * sysdeps/ieee754/ldbl-opt/w_tgamma_compat.c: Likewise.
33298
33299 * math/e_acoshl.c: Remove.
33300 * math/e_acosl.c: Likewise.
33301 * math/e_asinl.c: Likewise.
33302 * math/e_atan2l.c: Likewise.
33303 * math/e_atanhl.c: Likewise.
33304 * math/e_coshl.c: Likewise.
33305 * math/e_expl.c: Likewise.
33306 * math/e_fmodl.c: Likewise.
33307 * math/e_gammal_r.c: Likewise.
33308 * math/e_hypotl.c: Likewise.
33309 * math/e_j0l.c: Likewise.
33310 * math/e_j1l.c: Likewise.
33311 * math/e_jnl.c: Likewise.
33312 * math/e_lgammal_r.c: Likewise.
33313 * math/e_log10l.c: Likewise.
33314 * math/e_log2l.c: Likewise.
33315 * math/e_logl.c: Likewise.
33316 * math/e_powl.c: Likewise.
33317 * math/e_rem_pio2l.c: Likewise.
33318 * math/e_sinhl.c: Likewise.
33319 * math/e_sqrtf128.c: Likewise.
33320 * math/e_sqrtl.c: Likewise.
33321 * math/k_cosl.c: Likewise.
33322 * math/k_sinl.c: Likewise.
33323 * math/k_tanl.c: Likewise.
33324 * math/s_asinhl.c: Likewise.
33325 * math/s_atanl.c: Likewise.
33326 * math/s_cbrtl.c: Likewise.
33327 * math/s_erfl.c: Likewise.
33328 * math/s_expm1l.c: Likewise.
33329 * math/s_log1pl.c: Likewise.
33330 * math/s_tanhl.c: Likewise.
33331
33332 2017-09-15 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
33333
33334 [BZ #21745]
33335 * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile:
33336 [$(subdir) = math] (sysdep_calls): New variable. Has the
33337 previous contents of sysdep_routines, but re-sorted..
33338 [$(subdir) = math] (sysdep_routines): Re-use the contents from
33339 sysdep_calls.
33340 [$(subdir) = math] (libm-sysdep_routines): Remove the functions
33341 defined in sysdep_calls and replace by the respective m_* names.
33342 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-ppc64.S:
33343 (compat_symbol): Undefine to avoid duplicated compat symbols in
33344 libc.
33345
33346 2017-09-15 Joseph Myers <joseph@codesourcery.com>
33347
33348 * math/s_fmaf.c: Include <libm-alias-float.h>.
33349 (fmaf): Define using libm_alias_float.
33350 * math/w_acosf_compat.c: Include <libm-alias-float.h>.
33351 (acosf): Define using libm_alias_float.
33352 * math/w_acoshf_compat.c: Include <libm-alias-float.h>.
33353 (acoshf): Define using libm_alias_float.
33354 * math/w_asinf_compat.c: Include <libm-alias-float.h>.
33355 (asinf): Define using libm_alias_float.
33356 * math/w_atan2f_compat.c: Include <libm-alias-float.h>.
33357 (atan2f): Define using libm_alias_float.
33358 * math/w_atanhf_compat.c: Include <libm-alias-float.h>.
33359 (atanhf): Define using libm_alias_float.
33360 * math/w_coshf_compat.c: Include <libm-alias-float.h>.
33361 (coshf): Define using libm_alias_float.
33362 * math/w_exp10f_compat.c: Include <libm-alias-float.h>.
33363 (exp10f): Define using libm_alias_float.
33364 * math/w_fmodf_compat.c: Include <libm-alias-float.h>.
33365 (fmodf): Define using libm_alias_float.
33366 * math/w_hypotf_compat.c: Include <libm-alias-float.h>.
33367 (hypotf): Define using libm_alias_float.
33368 * math/w_j0f_compat.c: Include <libm-alias-float.h>.
33369 (j0f): Define using libm_alias_float.
33370 (y0f): Likewise.
33371 * math/w_j1f_compat.c: Include <libm-alias-float.h>.
33372 (j1f): Define using libm_alias_float.
33373 (y1f): Likewise.
33374 * math/w_jnf_compat.c: Include <libm-alias-float.h>.
33375 (jnf): Define using libm_alias_float.
33376 (ynf): Likewise.
33377 * math/w_log10f_compat.c: Include <libm-alias-float.h>.
33378 (log10f): Define using libm_alias_float.
33379 * math/w_log2f_compat.c: Include <libm-alias-float.h>.
33380 (log2f): Define using libm_alias_float.
33381 * math/w_logf_compat.c: Include <libm-alias-float.h>.
33382 (logf): Define using libm_alias_float.
33383 * math/w_powf_compat.c: Include <libm-alias-float.h>.
33384 (powf): Define using libm_alias_float.
33385 * math/w_remainderf_compat.c: Include <libm-alias-float.h>.
33386 (remainderf): Define using libm_alias_float.
33387 * math/w_sinhf_compat.c: Include <libm-alias-float.h>.
33388 (sinhf): Define using libm_alias_float.
33389 * math/w_sqrtf_compat.c: Include <libm-alias-float.h>.
33390 (sqrtf): Define using libm_alias_float.
33391 * math/w_tgammaf_compat.c: Include <libm-alias-float.h>.
33392 (tgammaf): Define using libm_alias_float.
33393
33394 2017-09-14 Joseph Myers <joseph@codesourcery.com>
33395
33396 * include/math.h (roundeven): Change hidden_proto call to
33397 __roundeven.
33398 * math/w_j0_compat.c (j0): Rename to __j0 and define as weak
33399 alias.
33400 [NO_LONG_DOUBLE] (__j0l): New strong alias.
33401 (y0): Rename to __y0 and define as weak alias.
33402 [NO_LONG_DOUBLE] (__y0l): New strong alias.
33403 * math/w_j0f_compat.c (j0f): Rename to __j0f and define as weak
33404 alias.
33405 (y0f): Rename to __y0f and define as weak alias.
33406 * math/w_j1_compat.c (j1): Rename to __j1 and define as weak
33407 alias.
33408 [NO_LONG_DOUBLE] (__j1l): New strong alias.
33409 (y1): Rename to __y1 and define as weak alias.
33410 [NO_LONG_DOUBLE] (__y1l): New strong alias.
33411 * math/w_j1f_compat.c (j1f): Rename to __j1f and define as weak
33412 alias.
33413 (y1f): Rename to __y1f and define as weak alias.
33414 * math/w_jn_compat.c (jn): Rename to __jn and define as weak
33415 alias.
33416 [NO_LONG_DOUBLE] (__jnl): New strong alias.
33417 (yn): Rename to __yn and define as weak alias.
33418 [NO_LONG_DOUBLE] (__ynl): New strong alias.
33419 * math/w_jnf_compat.c (jnf): Rename to __jnf and define as weak
33420 alias.
33421 (ynf): Rename to __ynf and define as weak alias.
33422 * sysdeps/ieee754/dbl-64/s_fromfp.c (FUNC): Define to __fromfp.
33423 (fromfp): Define as weak alias.
33424 [NO_LONG_DOUBLE] (__fromfpl): New strong alias.
33425 * sysdeps/ieee754/dbl-64/s_fromfpx.c (FUNC): Define to __fromfpx.
33426 (fromfpx): Define as weak alias.
33427 [NO_LONG_DOUBLE] (__fromfpxl): New strong alias.
33428 * sysdeps/ieee754/dbl-64/s_getpayload.c (getpayload): Rename to
33429 __getpayload and define as weak alias.
33430 [NO_LONG_DOUBLE] (__getpayloadl): New strong alias.
33431 * sysdeps/ieee754/dbl-64/s_roundeven.c (roundeven): Rename to
33432 __roundeven and define as weak alias.
33433 [NO_LONG_DOUBLE] (__roundevenl): New strong alias.
33434 * sysdeps/ieee754/dbl-64/s_setpayload.c (FUNC): Define to
33435 __setpayload.
33436 (setpayload): Define as weak alias.
33437 [NO_LONG_DOUBLE] (__setpayloadl): New strong alias.
33438 * sysdeps/ieee754/dbl-64/s_setpayloadsig.c (FUNC): Define to
33439 __setpayloadsig.
33440 (setpayloadsig): Define as weak alias.
33441 [NO_LONG_DOUBLE] (__setpayloadsigl): New strong alias.
33442 * sysdeps/ieee754/dbl-64/s_totalorder.c (totalorder): Rename to
33443 __totalorder and define as weak alias.
33444 [NO_LONG_DOUBLE] (__totalorderl): New strong alias.
33445 * sysdeps/ieee754/dbl-64/s_totalordermag.c (totalordermag): Rename
33446 to __totalordermag and define as weak alias.
33447 [NO_LONG_DOUBLE] (__totalordermagl): New strong alias.
33448 * sysdeps/ieee754/dbl-64/s_ufromfp.c (FUNC): Define to __ufromfp.
33449 (ufromfp): Define as weak alias.
33450 [NO_LONG_DOUBLE] (__ufromfpl): New strong alias.
33451 * sysdeps/ieee754/dbl-64/s_ufromfpx.c (FUNC): Define to
33452 __ufromfpx.
33453 (ufromfpx): Define as weak alias.
33454 [NO_LONG_DOUBLE] (__ufromfpxl): New strong alias.
33455 * sysdeps/ieee754/dbl-64/wordsize-64/s_getpayload.c (getpayload):
33456 Rename to __getpayload and define as weak alias.
33457 [NO_LONG_DOUBLE] (__getpayloadl): New strong alias.
33458 * sysdeps/ieee754/dbl-64/wordsize-64/s_roundeven.c (roundeven):
33459 Rename to __roundeven and define as weak alias.
33460 [NO_LONG_DOUBLE] (__roundevenl): New strong alias.
33461 * sysdeps/ieee754/dbl-64/wordsize-64/s_totalorder.c (totalorder):
33462 Rename to __totalorder and define as weak alias.
33463 [NO_LONG_DOUBLE] (__totalorderl): New strong alias.
33464 * sysdeps/ieee754/dbl-64/wordsize-64/s_totalordermag.c
33465 (totalordermag): Rename to __totalordermag and define as weak
33466 alias.
33467 [NO_LONG_DOUBLE] (__totalordermagl): New strong alias.
33468 * sysdeps/ieee754/float128/float128_private.h (__getpayloadl): New
33469 macro.
33470 (__roundevenl): Likewise.
33471 (__totalorderl): Likewise.
33472 (__totalordermagl): Likewise
33473 * sysdeps/ieee754/float128/s_fromfpf128.c (FUNC): Define to
33474 __fromfpf128.
33475 (fromfpf128): Define as weak alias.
33476 * sysdeps/ieee754/float128/s_fromfpxf128.c (FUNC): Define to
33477 __fromfpxf128.
33478 (fromfpxf128): Define as weak alias.
33479 * sysdeps/ieee754/float128/s_setpayloadf128.c (FUNC): Define to
33480 __setpayloadf128.
33481 (setpayloadf128): Define as weak alias.
33482 * sysdeps/ieee754/float128/s_setpayloadsigf128.c (FUNC): Define to
33483 __setpayloadsigf128.
33484 (setpayloadsigf128): Define as weak alias.
33485 * sysdeps/ieee754/float128/s_ufromfpf128.c (FUNC): Define to
33486 __ufromfpf128.
33487 (ufromfpf128): Define as weak alias.
33488 * sysdeps/ieee754/float128/s_ufromfpxf128.c (FUNC): Define to
33489 __ufromfpxf128.
33490 (ufromfpxf128): Define as weak alias.
33491 * sysdeps/ieee754/flt-32/s_fromfpf.c (FUNC): Define to __fromfpf.
33492 (fromfpf): Define as weak alias.
33493 * sysdeps/ieee754/flt-32/s_fromfpxf.c (FUNC): Define to
33494 __fromfpxf.
33495 (fromfpxf): Define as weak alias.
33496 * sysdeps/ieee754/flt-32/s_getpayloadf.c (getpayloadf): Rename to
33497 __getpayloadf and define as weak alias.
33498 * sysdeps/ieee754/flt-32/s_roundevenf.c (roundevenf): Rename to
33499 __roundevenf and define as weak alias.
33500 * sysdeps/ieee754/flt-32/s_setpayloadf.c (FUNC): Define to
33501 __setpayloadf.
33502 (setpayloadf): Define as weak alias.
33503 * sysdeps/ieee754/flt-32/s_setpayloadsigf.c (FUNC): Define to
33504 __setpayloadsigf.
33505 (setpayloadsigf): Define as weak alias.
33506 * sysdeps/ieee754/flt-32/s_totalorderf.c (totalorderf): Rename to
33507 __totalorderf and define as weak alias.
33508 * sysdeps/ieee754/flt-32/s_totalordermagf.c (totalordermagf):
33509 Rename to __totalordermagf and define as weak alias.
33510 * sysdeps/ieee754/flt-32/s_ufromfpf.c (FUNC): Define to
33511 __ufromfpf.
33512 (ufromfpf): Define as weak alias.
33513 * sysdeps/ieee754/flt-32/s_ufromfpxf.c (FUNC): Define to
33514 __ufromfpxf.
33515 (ufromfpxf): Define as weak alias.
33516 * sysdeps/ieee754/ldbl-128/s_fromfpl.c (FUNC): Define to
33517 __fromfpl.
33518 (fromfpl): Define as weak alias.
33519 * sysdeps/ieee754/ldbl-128/s_fromfpxl.c (FUNC): Define to
33520 __fromfpxl.
33521 (fromfpxl): Define as weak alias.
33522 * sysdeps/ieee754/ldbl-128/s_getpayloadl.c (getpayloadl): Rename
33523 to __getpayloadl and define as weak alias.
33524 * sysdeps/ieee754/ldbl-128/s_roundevenl.c (roundevenl): Rename to
33525 __roundevenl and define as weak alias.
33526 * sysdeps/ieee754/ldbl-128/s_setpayloadl.c (FUNC): Define to
33527 __setpayloadl.
33528 (setpayloadl): Define as weak alias.
33529 * sysdeps/ieee754/ldbl-128/s_setpayloadsigl.c (FUNC): Define to
33530 __setpayloadsigl.
33531 (setpayloadsigl): Define as weak alias.
33532 * sysdeps/ieee754/ldbl-128/s_totalorderl.c (totalorderl): Rename
33533 to __totalorderl and define as weak alias.
33534 * sysdeps/ieee754/ldbl-128/s_totalordermagl.c (totalordermagl):
33535 Rename to __totalordermagl and define as weak alias.
33536 * sysdeps/ieee754/ldbl-128/s_ufromfpl.c (FUNC): Define to
33537 __ufromfpl.
33538 (ufromfpl): Define as weak alias.
33539 * sysdeps/ieee754/ldbl-128/s_ufromfpxl.c (FUNC): Define to
33540 __ufromfpxl.
33541 (ufromfpxl): Define as weak alias.
33542 * sysdeps/ieee754/ldbl-128ibm/s_fromfpl.c (FUNC): Define to
33543 __fromfpl.
33544 (fromfpl): Define as weak alias.
33545 * sysdeps/ieee754/ldbl-128ibm/s_fromfpxl.c (FUNC): Define to
33546 __fromfpxl.
33547 (fromfpxl): Define as weak alias.
33548 * sysdeps/ieee754/ldbl-128ibm/s_getpayloadl.c (getpayloadl):
33549 Rename to __getpayloadl and define as weak alias.
33550 * sysdeps/ieee754/ldbl-128ibm/s_roundevenl.c (roundevenl): Rename
33551 to __roundevenl and define as weak alias. Call __roundeven
33552 instead of roundeven.
33553 * sysdeps/ieee754/ldbl-128ibm/s_setpayloadl.c (FUNC): Define to
33554 __setpayloadl.
33555 (setpayloadl): Define as weak alias.
33556 * sysdeps/ieee754/ldbl-128ibm/s_setpayloadsigl.c (FUNC): Define to
33557 __setpayloadsigl.
33558 (setpayloadsigl): Define as weak alias.
33559 * sysdeps/ieee754/ldbl-128ibm/s_totalorderl.c (totalorderl):
33560 Rename to __totalorderl and define as weak alias.
33561 * sysdeps/ieee754/ldbl-128ibm/s_totalordermagl.c (totalordermagl):
33562 Rename to __totalordermagl and define as weak alias.
33563 * sysdeps/ieee754/ldbl-128ibm/s_ufromfpl.c (FUNC): Define to
33564 __ufromfpl.
33565 (ufromfpl): Define as weak alias.
33566 * sysdeps/ieee754/ldbl-128ibm/s_ufromfpxl.c (FUNC): Define to
33567 __ufromfpxl.
33568 (ufromfpxl): Define as weak alias.
33569 * sysdeps/ieee754/ldbl-96/s_fromfpl.c (FUNC): Define to
33570 __fromfpl.
33571 (fromfpl): Define as weak alias.
33572 * sysdeps/ieee754/ldbl-96/s_fromfpxl.c (FUNC): Define to
33573 __fromfpxl.
33574 (fromfpxl): Define as weak alias.
33575 * sysdeps/ieee754/ldbl-96/s_getpayloadl.c (getpayloadl): Rename to
33576 __getpayloadl and define as weak alias.
33577 * sysdeps/ieee754/ldbl-96/s_roundevenl.c (roundevenl): Rename to
33578 __roundevenl and define as weak alias.
33579 * sysdeps/ieee754/ldbl-96/s_setpayloadl.c (FUNC): Define to
33580 __setpayloadl.
33581 (setpayloadl): Define as weak alias.
33582 * sysdeps/ieee754/ldbl-96/s_setpayloadsigl.c (FUNC): Define to
33583 __setpayloadsigl.
33584 (setpayloadsigl): Define as weak alias.
33585 * sysdeps/ieee754/ldbl-96/s_totalorderl.c (totalorderl): Rename to
33586 __totalorderl and define as weak alias.
33587 * sysdeps/ieee754/ldbl-96/s_totalordermagl.c (totalordermagl):
33588 Rename to __totalordermagl and define as weak alias.
33589 * sysdeps/ieee754/ldbl-96/s_ufromfpl.c (FUNC): Define to
33590 __ufromfpl.
33591 (ufromfpl): Define as weak alias.
33592 * sysdeps/ieee754/ldbl-96/s_ufromfpxl.c (FUNC): Define to
33593 __ufromfpxl.
33594 (ufromfpxl): Define as weak alias.
33595
33596 2017-09-14 Siddhesh Poyarekar <siddhesh@sourceware.org>
33597
33598 * benchtests/bench-string.h (realloc_bufs): New function.
33599 (test_init): Call it.
33600 * benchtests/bench-memset-large.c (do_test): Likewise.
33601 * benchtests/bench-memset.c (do_test): Likewise.
33602
33603 * benchtests/bench-memset-large.c: Print output in JSON
33604 format.
33605 * benchtests/bench-memset.c: Likewise.
33606
33607 2017-09-14 Mike FABIAN <mfabian@redhat.com>
33608
33609 [BZ #21084]
33610 * benchtests/strcoll-inputs/filelist#en_US.UTF-8: Add IBM858 and ibm858.c.
33611 * iconvdata/Makefile: Add IBM858.
33612 * iconvdata/gconv-modules: Likewise.
33613 * iconvdata/tst-tables.sh: Likewise.
33614 * iconvdata/ibm858.c: New file.
33615 * localedata/charmaps/IBM858: Likewise.
33616
33617 2017-09-14 Akhilesh Kumar <akhilesh.k@samsung.com>
33618
33619 [BZ #22023]
33620 * locales/niu_NZ (LC_TIME): copy "niu_NU".
33621 * locales/niu_NZ (LC_MESSAGES): copy "niu_NU".
33622
33623 2017-09-14 Mike FABIAN <mfabian@redhat.com>
33624
33625 [BZ #22112]
33626 * localedata/locales/az_AZ(LC_TELEPHONE): Fix int_select
33627 and add tel_int_fmt.
33628
33629 2017-09-14 Joseph Myers <joseph@codesourcery.com>
33630
33631 * sysdeps/generic/libm-alias-float128.h: New file.
33632 * sysdeps/generic/math-type-macros-float128.h: Include
33633 <libm-alias-float128.h>.
33634 [!declare_mgen_alias] (declare_mgen_alias): Define macro.
33635
33636 2017-09-13 Joseph Myers <joseph@codesourcery.com>
33637
33638 * sysdeps/generic/libm-alias-ldouble.h: New file.
33639 * sysdeps/ieee754/ldbl-opt/libm-alias-ldouble.h: Likewise.
33640 * sysdeps/ieee754/ldbl-opt/math-type-macros-ldouble.h: Remove.
33641 * sysdeps/generic/math-type-macros-ldouble.h: Include
33642 <libm-alias-ldouble.h>.
33643 [!declare_mgen_alias] (declare_mgen_alias): Define to use
33644 libm_alias_ldouble.
33645
33646 2017-09-13 Szabolcs Nagy <szabolcs.nagy@arm.com>
33647
33648 * sysdeps/ieee754/dbl-64/w_exp_compat.c: Move to...
33649 * math/w_exp_compat.c: ... here.
33650 * sysdeps/ieee754/flt-32/w_expf_compat.c: Move to...
33651 * math/w_expf_compat.c: ... here.
33652 * sysdeps/ieee754/ldbl-128/w_expl_compat.c: Move to...
33653 * math/w_expl_compat.c: ... here.
33654 * sysdeps/ieee754/ldbl-128ibm/w_expl_compat.c: Remove.
33655 * sysdeps/ieee754/ldbl-96/w_expl_compat.c: Remove.
33656 * sysdeps/ieee754/ldbl-opt/w_exp_compat.c: Use the new path.
33657 * sysdeps/ieee754/ldbl-opt/w_expl_compat.c: Likewise.
33658
33659 2017-09-13 Joseph Myers <joseph@codesourcery.com>
33660
33661 * math/w_scalbln_template.c (strong_alias): Do not undefine and
33662 redefine.
33663 * sysdeps/ieee754/ldbl-opt/s_ldexp.c (declare_mgen_alias): Remove
33664 macro.
33665 (ldexpl): Only define as compat symbol for libc, not libm.
33666 (scalbnl): Define as compat symbol for libc here.
33667 * sysdeps/ieee754/ldbl-opt/s_ldexpl.c (declare_mgen_alias): Only
33668 define for [IS_IN (libc)].
33669 (__ldexpl_2): Remove alias.
33670 (ldexpl): Only define with long_double_symbol if [IS_IN (libc)].
33671 (scalbnl): Likewise. Use __wrap_scalbnl not __ldexpl_2 as base
33672 name in long_double_symbol call.
33673 * sysdeps/ieee754/ldbl-opt/s_log1p.c: Remove file.
33674 * sysdeps/ieee754/ldbl-opt/s_scalbln.c: Likewise.
33675 * sysdeps/ieee754/ldbl-opt/s_scalbn.c: Likewise.
33676 * sysdeps/ieee754/ldbl-opt/w_log1p.c: Likewise.
33677 * sysdeps/ieee754/ldbl-opt/w_scalbln.c (declare_mgen_alias):
33678 Remove macro.
33679 [IS_IN (libc) && LONG_DOUBLE_COMPAT (libc, GLIBC_2_1)] (scalblnl):
33680 Define as compat symbol.
33681
33682 2017-09-13 Adhemerval Zanella <adhemerval.zanella@linaro.org>
33683
33684 * sysdeps/unix/sysv/linux/s390/s390-32/oldglob.c: New file.
33685 * sysdeps/unix/sysv/linux/alpha/Makefile
33686 [$(subdir) = csu] (sysdep_routines): Remove rule.
33687
33688 2017-09-13 Joseph Myers <joseph@codesourcery.com>
33689
33690 * sysdeps/generic/libm-alias-double.h: New file.
33691 * sysdeps/ieee754/ldbl-opt/libm-alias-double.h: Likewise.
33692 * sysdeps/generic/math-type-macros-double.h: Include
33693 <libm-alias-double.h>.
33694 [declare_mgen_alias] (declare_mgen_alias): Define to use
33695 libm_alias_double.
33696 * sysdeps/generic/math-type-macros.h [!M_LIBM_NEED_COMPAT]
33697 (M_LIBM_NEED_COMPAT): Remove macro.
33698 [!M_LIBM_NEED_COMPAT] (declare_mgen_libm_compat): Likewise.
33699 * sysdeps/ieee754/ldbl-opt/math-type-macros-double.h: Remove.
33700 * math/cabs_template.c [M_LIBM_NEED_COMPAT]: Remove conditional
33701 code.
33702 * math/carg_template.c [M_LIBM_NEED_COMPAT]: Likewise.
33703 * math/cimag_template.c [M_LIBM_NEED_COMPAT]: Likewise.
33704 * math/conj_template.c [M_LIBM_NEED_COMPAT]: Likewise.
33705 * math/creal_template.c [M_LIBM_NEED_COMPAT]: Likewise.
33706 * math/s_cacos_template.c [M_LIBM_NEED_COMPAT]: Likewise.
33707 * math/s_cacosh_template.c [M_LIBM_NEED_COMPAT]: Likewise.
33708 * math/s_casin_template.c [M_LIBM_NEED_COMPAT]: Likewise.
33709 * math/s_casinh_template.c [M_LIBM_NEED_COMPAT]: Likewise.
33710 * math/s_catan_template.c [M_LIBM_NEED_COMPAT]: Likewise.
33711 * math/s_catanh_template.c [M_LIBM_NEED_COMPAT]: Likewise.
33712 * math/s_ccos_template.c [M_LIBM_NEED_COMPAT]: Likewise.
33713 * math/s_ccosh_template.c [M_LIBM_NEED_COMPAT]: Likewise.
33714 * math/s_cexp_template.c [M_LIBM_NEED_COMPAT]: Likewise.
33715 * math/s_clog10_template.c [M_LIBM_NEED_COMPAT]: Likewise.
33716 * math/s_clog_template.c [M_LIBM_NEED_COMPAT]: Likewise.
33717 * math/s_cpow_template.c [M_LIBM_NEED_COMPAT]: Likewise.
33718 * math/s_cproj_template.c [M_LIBM_NEED_COMPAT]: Likewise.
33719 * math/s_csin_template.c [M_LIBM_NEED_COMPAT]: Likewise.
33720 * math/s_csinh_template.c [M_LIBM_NEED_COMPAT]: Likewise.
33721 * math/s_csqrt_template.c [M_LIBM_NEED_COMPAT]: Likewise.
33722 * math/s_ctan_template.c [M_LIBM_NEED_COMPAT]: Likewise.
33723 * math/s_ctanh_template.c [M_LIBM_NEED_COMPAT]: Likewise.
33724 * math/s_fdim_template.c [M_LIBM_NEED_COMPAT]: Likewise.
33725 * math/s_fmax_template.c [M_LIBM_NEED_COMPAT]: Likewise.
33726 * math/s_fmin_template.c [M_LIBM_NEED_COMPAT]: Likewise.
33727 * math/s_nan_template.c [M_LIBM_NEED_COMPAT]: Likewise.
33728 * math/w_ilogb_template.c [M_LIBM_NEED_COMPAT]: Likewise.
33729 * sysdeps/ieee754/ldbl-opt/s_clog10.c: New file.
33730 * sysdeps/ieee754/ldbl-opt/s_ldexp.c (M_LIBM_NEED_COMPAT): Remove
33731 macro.
33732 (declare_mgen_alias): New macro.
33733 * sysdeps/ieee754/ldbl-opt/w_log1p.c: New file.
33734 * sysdeps/ieee754/ldbl-opt/w_scalbln.c: Likewise.
33735 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdim-vis3.c
33736 (M_LIBM_NEED_COMPAT): Remove macro.
33737 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdim.c
33738 [HAVE_AS_VIS3_SUPPORT]: Include <math_ldbl_opt.h> and
33739 <first-versions.h>.
33740 [HAVE_AS_VIS3_SUPPORT && LONG_DOUBLE_COMPAT (libm,
33741 FIRST_VERSION_libm_fdiml)]: Define fdiml as compat symbol.
33742
33743 2017-09-12 Joseph Myers <joseph@codesourcery.com>
33744
33745 * sysdeps/generic/math-type-macros.h [!declare_mgen_alias_2]
33746 (declare_mgen_alias_2): Remove.
33747 * sysdeps/generic/math-type-macros-double.h
33748 [NO_LONG_DOUBLE && !declare_mgen_alias_2] (declare_mgen_alias_2):
33749 Likewise.
33750 * math/s_ldexp_template.c (M_SUF (__wrap_scalbn)): Define strong
33751 alias.
33752 (ldexp): Define with declare_mgen_alias.
33753 (scalbn): Likewise.
33754
33755 2017-09-12 Steve Ellcey <sellcey@cavium.com>
33756
33757 * grp/initgroups.c: Include config.h.
33758 (DEFAULT_CONFIG): New macro.
33759 (internal_getgrouplist): Use DEFAULT_CONFIG.
33760 * nscd/initgrcache.c (addinitgroupsX): Likewise.
33761 * nss/nsswitch.c (__nss_disable_nscd): Likewise.
33762 (DEFAULT_DEFCONFIG): New macro.
33763 (__nss_database_lookup): Use DEFAULT_DEFCONFIG.
33764 * nss/grp-lookup.c: Include config.h
33765 (DEFAULT_CONFIG): Set definition based on LINK_OBSOLETE_NSL.
33766 * nss/pwd-lookup.c (DEFAULT_CONFIG): Likewise.
33767 * nss/spwd-lookup.c (DEFAULT_CONFIG): Likewise.
33768 * manual/nss.texi: Update default values section.
33769
33770 2017-09-12 H.J. Lu <hongjiu.lu@intel.com>
33771
33772 [BZ #21967]
33773 * sysdeps/x86/cpu-features.h (bit_arch_MathVec_Prefer_No_AVX512):
33774 New.
33775 (index_arch_MathVec_Prefer_No_AVX512): Likewise.
33776 * sysdeps/x86/cpu-tunables.c (TUNABLE_CALLBACK (set_hwcaps)):
33777 Handle MathVec_Prefer_No_AVX512.
33778 * sysdeps/x86_64/fpu/multiarch/ifunc-mathvec-avx512.h
33779 (IFUNC_SELECTOR): Return AVX2 version if MathVec_Prefer_No_AVX512
33780 is set.
33781
33782 2017-09-12 Samuel Thibault <samuel.thibault@ens-lyon.org>
33783
33784 * posix/sched_primax.c (__sched_get_priority_max): Add
33785 libc_hidden_def.
33786 * posix/sched_primin.c (__sched_get_priority_min): Likewise.
33787 * sysdeps/mach/hurd/mmap.c (__mmap): Likewise.
33788 * sysdeps/mach/hurd/mmap64.c (__mmap64): Likewise.
33789 * sysdeps/mach/hurd/mprotect.c (__mprotect): Likewise.
33790 * sysdeps/mach/hurd/munmap.c (__munmap): Likewise.
33791 * sysdeps/mach/hurd/dl-sysdep.c (__GI___getpid,
33792 __GI___strtoul_internal, __GI_____strtoul_internal, __GI___chk_fail,
33793 __GI___fortify_fail, __GI___assert_fail, __GI___assert_perror_fail):
33794 Add aliases.
33795
33796 2017-09-11 Joseph Myers <joseph@codesourcery.com>
33797
33798 * sysdeps/generic/libm-alias-float.h: New file.
33799 * sysdeps/generic/math-type-macros-float.h: Include
33800 <libm-alias-float.h>.
33801 [!declare_mgen_alias] (declare_mgen_alias): Define macro.
33802
33803 2017-09-11 H.J. Lu <hongjiu.lu@intel.com>
33804
33805 [BZ #22093]
33806 * sysdeps/x86/cpu-features.c (init_cpu_features): Initialize
33807 GLRO(dl_hwcap) to HWCAP_X86_64 for x86-64.
33808 * sysdeps/x86/dl-hwcap.h (HWCAP_COUNT): Updated.
33809 (HWCAP_IMPORTANT): Likewise.
33810 (HWCAP_X86_64): New enum.
33811 (HWCAP_X86_AVX512_1): Updated.
33812 * sysdeps/x86/dl-procinfo.c (_dl_x86_hwcap_flags): Add "x86_64".
33813 * sysdeps/x86_64/Makefile (tests): Add tst-x86_64-1.
33814 (modules-names): Add x86_64/tst-x86_64mod-1.
33815 (LDFLAGS-tst-x86_64mod-1.so): New.
33816 ($(objpfx)tst-x86_64-1): Likewise.
33817 ($(objpfx)x86_64/tst-x86_64mod-1.os): Likewise.
33818 (tst-x86_64-1-clean): Likewise.
33819 * sysdeps/x86_64/tst-x86_64-1.c: New file.
33820 * sysdeps/x86_64/tst-x86_64mod-1.c: Likewise.
33821
33822 2017-09-11 Siddhesh Poyarekar <siddhesh@sourceware.org>
33823
33824 * po/sv.po: Update translations.
33825 * po/fr.po: Likewise.
33826
33827 2017-09-10 Samuel Thibault <samuel.thibault@ens-lyon.org>
33828
33829 * sunrpc/tst-udp-timeout.c (test_udp_server): Increase timeout to 2.5
33830 seconds.
33831 * sunrpc/tst-udp-nonblocking.c (do_test): Increase timeout to 0.75
33832 seconds.
33833 * elf/rtld-Rules: Fix $(error) use.
33834
33835 2017-09-09 Mike FABIAN <mfabian@redhat.com>
33836
33837 [BZ #14925]
33838 * libio/tst-widetext.input: Change “Bengali” to “Bangla”.
33839 * locale/iso-639.def: Change “Bengali” to “Bangla”.
33840 * localedata/locales/bn_BD: “Bengali” was still used in some
33841 comments. Change it to “Bangla”.
33842
33843 2017-09-08 Markus Trippelsdorf <markus@trippelsdorf.de>
33844
33845 * sysdeps/x86_64/fpu/libm-test-ulps: Update for AMD Ryzen.
33846
33847 2017-09-08 Steve Ellcey <sellcey@cavium.com>
33848
33849 * manual/tunables.texi (glibc.tune.cpu): Add thunderx2t99 and
33850 thunderx2t99p1 to list of cpu names.
33851 * sysdeps/unix/sysv/linux/aarch64/cpu-features.c (cpu_list):
33852 Add thunderx2t99 and thunderx2t99p1 entries to cpu_list.
33853
33854 2017-09-08 Steve Ellcey <sellcey@cavium.com>
33855
33856 * sysdeps/unix/sysv/linux/aarch64/cpu-features.c (get_midr_from_mcpu):
33857 Use strcmp instead of tunable_is_name.
33858
33859 2017-09-08 Joseph Myers <joseph@codesourcery.com>
33860
33861 * sysdeps/unix/sysv/linux/bits/fcntl-linux.h [__USE_GNU]
33862 (F_GET_RW_HINT): New macro.
33863 [__USE_GNU] (F_SET_RW_HINT): Likewise.
33864 [__USE_GNU] (F_GET_FILE_RW_HINT): Likewise.
33865 [__USE_GNU] (F_SET_FILE_RW_HINT): Likewise.
33866 [__USE_GNU] (RWF_WRITE_LIFE_NOT_SET): Likewise.
33867 [__USE_GNU] (RWH_WRITE_LIFE_NONE): Likewise.
33868 [__USE_GNU] (RWH_WRITE_LIFE_SHORT): Likewise.
33869 [__USE_GNU] (RWH_WRITE_LIFE_MEDIUM): Likewise.
33870 [__USE_GNU] (RWH_WRITE_LIFE_LONG): Likewise.
33871 [__USE_GNU] (RWH_WRITE_LIFE_EXTREME): Likewise.
33872
33873 * sysdeps/unix/sysv/linux/bits/fcntl-linux.h [__USE_GNU]
33874 (F_ADD_SEALS): New macro.
33875 [__USE_GNU] (F_GET_SEALS): Likewise.
33876 [__USE_GNU] (F_SEAL_SEAL): Likewise.
33877 [__USE_GNU] (F_SEAL_SHRINK): Likewise.
33878 [__USE_GNU] (F_SEAL_GROW): Likewise.
33879 [__USE_GNU] (F_SEAL_WRITE): Likewise.
33880
33881 2017-09-08 Adhemerval Zanella <adhemerval.zanella@linaro.org>
33882
33883 * posix/glob_internal.h (GLOBPAT_NONE, GLOBPAT_SPECIAL)
33884 (GLOBPAT_BACKSLASH, GLOBPAT_BRACKET): New constants.
33885 * posix/glob_internal.h (__glob_pattern_type):
33886 * posix/glob.c (glob):
33887 * posix/glob_pattern_p.c (__glob_pattern_p):
33888 Use them.
33889
33890 * sysdeps/unix/sysv/linux/arm/glob64.c: Remove file.
33891 * sysdeps/unix/sysv/linux/i386/glob64.c: Likewise.
33892 * sysdeps/unix/sysv/linux/m68k/glob64.c: Likewise.
33893 * sysdeps/unix/sysv/linux/mips/mips64/n64/glob64.c: Likewise.
33894 * sysdeps/unix/sysv/linux/mips/mips64/n64/globfree64.c: Likewise.
33895 * sysdeps/unix/sysv/linux/powerpc/powerpc32/glob64.c: Likewise.
33896 * sysdeps/unix/sysv/linux/sparc/sparc32/glob64.c: Likewise.
33897 * sysdeps/unix/sysv/linux/wordsize-64/glob64.c: Likewise.
33898 * sysdeps/unix/sysv/linux/wordsize-64/globfree64.c: Likewise.
33899 * sysdeps/unix/sysv/linux/x86_64/x32/glob.c: Likewise.
33900 * sysdeps/unix/sysv/linux/x86_64/x32/globfree.c: Likewise.
33901 * sysdeps/wordsize-64/glob.c: Likewise.
33902 * sysdeps/wordsize-64/glob64.c: Likewise.
33903 * sysdeps/wordsize-64/globfree.c: Likewise.
33904 * sysdeps/wordsize-64/globfree64.c: Likewise.
33905 * sysdeps/unix/sysv/linux/glob.c: New file.
33906 * sysdeps/unix/sysv/linux/glob64.c: Likewise.
33907 * sysdeps/unix/sysv/linux/globfree.c: Likewise.
33908 * sysdeps/unix/sysv/linux/globfree64.c: Likewise.
33909 * sysdeps/unix/sysv/linux/s390/s390-32/glob64.c: Likewise.
33910 * sysdeps/unix/sysv/linux/oldglob.c [SHLIB_COMPAT]: Also
33911 adds !GLOB_NO_OLD_VERSION as an extra condition.
33912 * sysdeps/unix/sysv/linux/i386/alphasort64.c: Include olddirent.h
33913 using relative path instead of absolute one.
33914 * sysdeps/unix/sysv/linux/i386/getdents64.c: Likewise.
33915 * sysdeps/unix/sysv/linux/i386/readdir64.c: Likewise.
33916 * sysdeps/unix/sysv/linux/i386/readdir64_r.c: Likewise.
33917 * sysdeps/unix/sysv/linux/i386/versionsort64.c: Likewise.
33918 * sysdeps/unix/sysv/linux/i386/olddirent.h: Move to ...
33919 * sysdeps/unix/sysv/linux//olddirent.h: ... here.
33920
33921 [BZ #1062]
33922 * posix/glob.c (GET_LOGIN_NAME_MAX): Remove.
33923 (glob): Use the same scratch buffer for both getlogin_r and
33924 getpwnam_r. Don’t require preallocation of the login name. This
33925 simplifies storage allocation, and corrects the handling of
33926 long login names.
33927
33928 [BZ #1062]
33929 * posix/glob.c (glob): Port recent patches to platforms
33930 lacking getpwnam_r.
33931 (glob): Fix longstanding misuse of errno after getpwnam_r, which
33932 returns an error number rather than setting errno.
33933
33934 * include/scratch_buffer.h (scratch_buffer): Use a C99 align method
33935 instead of GCC extension.
33936 * malloc/scratch_buffer_grow.c [!_LIBC]: Include libc-config.h.
33937 * malloc/scratch_buffer_grow_preserve.c [!_LIBC]: Likewise.
33938 * malloc/scratch_buffer_set_array_size.c [!_LIBC]: Likewise.
33939
33940 [BZ #866]
33941 [BZ #1062]
33942 * posix/Makefile (tests): Remove bug-glob1 and tst-glob_symlinks.
33943 * posix/bug-glob1.c: Remove file.
33944 * posix/tst-glob_symlinks.c: New file.
33945 * posix/glob.c (__lstat64): New macro.
33946 (is_dir): New function.
33947 (glob, glob_in_dir): Match symlinks even if they are dangling.
33948 (link_stat, link_exists_p): Remove. All uses removed.
33949
33950 [BZ #1062]
33951 [BZ #19971]
33952 * posix/glob.c (struct readdir_result): Remove skip_entry member.
33953 (readdir_result_skip_entry, D_INO_TO_RESULT): Remove.
33954 All uses removed.
33955
33956 [BZ #1062]
33957 CVE-2017-15671
33958 * posix/Makefile (routines): Add globfree, globfree64, and
33959 glob_pattern_p.
33960 * posix/flexmember.h: New file.
33961 * posix/glob_internal.h: Likewise.
33962 * posix/glob_pattern_p.c: Likewise.
33963 * posix/globfree.c: Likewise.
33964 * posix/globfree64.c: Likewise.
33965 * sysdeps/gnu/globfree64.c: Likewise.
33966 * sysdeps/unix/sysv/linux/alpha/globfree.c: Likewise.
33967 * sysdeps/unix/sysv/linux/mips/mips64/n64/globfree64.c: Likewise.
33968 * sysdeps/unix/sysv/linux/oldglob.c: Likewise.
33969 * sysdeps/unix/sysv/linux/wordsize-64/globfree64.c: Likewise.
33970 * sysdeps/unix/sysv/linux/x86_64/x32/globfree.c: Likewise.
33971 * sysdeps/wordsize-64/globfree.c: Likewise.
33972 * sysdeps/wordsize-64/globfree64.c: Likewise.
33973 * posix/glob.c (HAVE_CONFIG_H): Use !_LIBC instead.
33974 [NDEBUG): Remove comments.
33975 (GLOB_ONLY_P, _AMIGA, VMS): Remove define.
33976 (dirent_type): New type. Use uint_fast8_t not
33977 uint8_t, as C99 does not require uint8_t.
33978 (DT_UNKNOWN, DT_DIR, DT_LNK): New macros.
33979 (struct readdir_result): Use dirent_type. Do not define skip_entry
33980 unless it is needed; this saves a byte on platforms lacking d_ino.
33981 (readdir_result_type, readdir_result_skip_entry):
33982 New functions, replacing ...
33983 (readdir_result_might_be_symlink, readdir_result_might_be_dir):
33984 these functions, which were removed. This makes the callers
33985 easier to read. All callers changed.
33986 (D_INO_TO_RESULT): Now empty if there is no d_ino.
33987 (size_add_wrapv, glob_use_alloca): New static functions.
33988 (glob, glob_in_dir): Check for size_t overflow in several places,
33989 and fix some size_t checks that were not quite right.
33990 Remove old code using SHELL since Bash no longer
33991 uses this.
33992 (glob, prefix_array): Separate MS code better.
33993 (glob_in_dir): Remove old Amiga and VMS code.
33994 (globfree, __glob_pattern_type, __glob_pattern_p): Move to
33995 separate files.
33996 (glob_in_dir): Do not rely on undefined behavior in accessing
33997 struct members beyond their bounds. Use a flexible array member
33998 instead
33999 (link_stat): Rename from link_exists2_p and return -1/0 instead of
34000 0/1. Caller changed.
34001 (glob): Fix memory leaks.
34002 * posix/glob64 (globfree64): Move to separate file.
34003 * sysdeps/gnu/glob64.c (NO_GLOB_PATTERN_P): Remove define.
34004 (globfree64): Remove hidden alias.
34005 * sysdeps/unix/sysv/linux/Makefile (sysdeps_routines): Add
34006 oldglob.
34007 * sysdeps/unix/sysv/linux/alpha/glob.c (__new_globfree): Move to
34008 separate file.
34009 * sysdeps/unix/sysv/linux/i386/glob64.c (NO_GLOB_PATTERN_P): Remove
34010 define.
34011 Move compat code to separate file.
34012 * sysdeps/wordsize-64/glob.c (globfree): Move definitions to
34013 separate file.
34014
34015 2017-09-07 H.J. Lu <hongjiu.lu@intel.com>
34016
34017 * resolv/tst-resolv-qtypes.c (domain): Changed to
34018 "const char domain[] =".
34019
34020 2017-09-07 Joseph Myers <joseph@codesourcery.com>
34021
34022 * scripts/build-many-glibcs.py (Context.checkout): Default MPFR
34023 version to 3.1.6.
34024
34025 * sysdeps/gnu/netinet/tcp.h (TCP_ULP): New macro.
34026 (TCP_MD5SIG_EXT): Likewise.
34027 (TCP_MD5SIG_FLAG_PREFIX): Likewise.
34028 (struct tcp_md5sig): Replace __tcpm_pad1 by tcpm_flags and
34029 tcpm_prefixlen. Rename __tcpm_pad2 to __tcpm_pad.
34030
34031 * sysdeps/unix/sysv/linux/bits/socket.h (SOL_TLS): New macro.
34032
34033 2017-09-07 Mike FABIAN <mfabian@redhat.com>
34034
34035 * localedata/locales/om_ET (LC_TIME): use ASCII for better readability.
34036
34037 2017-09-07 Akhilesh Kumar <akhilesh.k@samsung.com>
34038
34039 [BZ #22100]
34040 * localedata/locales/om_KE (LC_TIME): copy "om_ET".
34041
34042 2017-09-07 Samuel Thibault <samuel.thibault@ens-lyon.org>
34043
34044 * hurd/get-host.c (_hurd_get_host_config): Also check that more == 0
34045 before assuming that the file is empty. Avoid testing buffer content
34046 when nread == 0.
34047
34048 2017-09-06 Adhemerval Zanella <adhemerval.zanella@linaro.org>
34049
34050 [BZ #18858]
34051 * sysdeps/i386/i686/multiarch/strncpy.c (_HAVE_STRING_ARCH_strncpy):
34052 Remove define.
34053 * sysdeps/x86_64/multiarch/stpcpy.c (_HAVE_STRING_ARCH_stpcpy):
34054 Likewise.
34055 * sysdeps/x86_64/multiarch/strcspn.c (_HAVE_STRING_ARCH_strcspn):
34056 Likewise.
34057 * sysdeps/x86_64/multiarch/strncat.c (_HAVE_STRING_ARCH_strncat):
34058 Likewise.
34059 * sysdeps/x86_64/multiarch/strncpy.c (_HAVE_STRING_ARCH_strncpy):
34060 Likewise.
34061 * sysdeps/x86_64/multiarch/strpbrk.c (_HAVE_STRING_ARCH_strpbrk):
34062 Likewise.
34063 * sysdeps/x86_64/multiarch/strspn.c (_HAVE_STRING_ARCH_strspn):
34064 Likewise.
34065
34066 2017-09-06 Florian Weimer <fweimer@redhat.com>
34067
34068 * malloc/dynarray_emplace_enlarge.c
34069 (__libc_dynarray_emplace_enlarge): Add missing else.
34070
34071 2017-09-06 Florian Weimer <fweimer@redhat.com>
34072
34073 [BZ #22096]
34074 * resolv/resolv_conf.c (__resolv_conf_attach): Do not free conf in
34075 case of failure to obtain the global conf object.
34076
34077 2017-09-06 Florian Weimer <fweimer@redhat.com>
34078
34079 [BZ #22095]
34080 * resolv/res_init.c (res_vinit_1): Avoid memory leak in case of
34081 dynarray allocation failure.
34082
34083 2017-09-06 Florian Weimer <fweimer@redhat.com>
34084
34085 Remove dead PTR IPv4-to-IPv6 mapping code from nss_dns.
34086 * resolv/nss_dns/dns-host.c (getanswer_r): Remove dead code.
34087 * resolv/tst-res_use_inet6.c (response_ptr_v4, response_ptr_v6):
34088 New functions.
34089 (response): Call them. Add 'p', '6' flag processing.
34090 (test_reverse): New function.
34091 (test_get2_any): Call it.
34092 (test_no_inet6): Add 'p' test.
34093 (test_inet6): Likewise.
34094
34095 2017-09-06 Florian Weimer <fweimer@redhat.com>
34096
34097 Enhance tst-res_use_inet6 to test IPv4-to-IPv6 address mapping.
34098 * resolv/tst-res_use_inet6.c (response): Process flags embedded in
34099 the QNAME.
34100 (test_gai): Adjust query names. Add additional tests.
34101 (test_get2_any, test_get2_no_inet6, test_get2_inet6): Split from
34102 test_get2. Adjust query names. Add additional tests.
34103 (test_no_inet6): New function, extracted from threadfunc.
34104 (threadfunc): Call test_get2_any, test_get2_inet6, test_no_inet6.
34105 Add additional tests.
34106
34107 2017-09-06 Mike FABIAN <mfabian@redhat.com>
34108
34109 [BZ #22070]
34110 * localedata/unicode-gen/utf8_gen.py: Set the width for
34111 characters with Prepended_Concatenation_Mark property to 1
34112 * localedata/charmaps/UTF-8: Updated using the improved script.
34113
34114 2017-09-06 Mike FABIAN <mfabian@redhat.com>
34115
34116 [BZ #21750]
34117 * localedata/unicode-gen/utf8_gen.py: Improve the script to
34118 use the range notation for all ranges of neighbouring characters
34119 with the same width.
34120
34121 2017-09-05 Joseph Myers <joseph@codesourcery.com>
34122
34123 * sysdeps/generic/math-type-macros-double.h: Include
34124 <math-svid-compat.h>.
34125 (__USE_WRAPPER_TEMPLATE): Define to !LIBM_SVID_COMPAT.
34126 * sysdeps/generic/math-type-macros-float.h: Include
34127 <math-svid-compat.h>.
34128 (__USE_WRAPPER_TEMPLATE): Define to !LIBM_SVID_COMPAT.
34129 * sysdeps/generic/math-type-macros-ldouble.h: Include
34130 <math-svid-compat.h>.
34131 (__USE_WRAPPER_TEMPLATE): Define to !LIBM_SVID_COMPAT.
34132 * math/lgamma-compat.h (BUILD_LGAMMA): Include LIBM_SVID_COMPAT
34133 condition.
34134 * math/w_acos_compat.c: Condition contents on [LIBM_SVID_COMPAT].
34135 * math/w_acosf_compat.c: Likewise.
34136 * math/w_acosh_compat.c: Likewise.
34137 * math/w_acoshf_compat.c: Likewise.
34138 * math/w_acoshl_compat.c: Likewise.
34139 * math/w_acosl_compat.c: Likewise.
34140 * math/w_asin_compat.c: Likewise.
34141 * math/w_asinf_compat.c: Likewise.
34142 * math/w_asinl_compat.c: Likewise.
34143 * math/w_atan2_compat.c: Likewise.
34144 * math/w_atan2f_compat.c: Likewise.
34145 * math/w_atan2l_compat.c: Likewise.
34146 * math/w_atanh_compat.c: Likewise.
34147 * math/w_atanhf_compat.c: Likewise.
34148 * math/w_atanhl_compat.c: Likewise.
34149 * math/w_cosh_compat.c: Likewise.
34150 * math/w_coshf_compat.c: Likewise.
34151 * math/w_coshl_compat.c: Likewise.
34152 * math/w_exp10_compat.c: Likewise.
34153 * math/w_exp10f_compat.c: Likewise.
34154 * math/w_exp10l_compat.c: Likewise.
34155 * math/w_exp2_compat.c: Likewise.
34156 * math/w_exp2f_compat.c: Likewise.
34157 * math/w_exp2l_compat.c: Likewise.
34158 * math/w_fmod_compat.c: Likewise.
34159 * math/w_fmodf_compat.c: Likewise.
34160 * math/w_fmodl_compat.c: Likewise.
34161 * math/w_hypot_compat.c: Likewise.
34162 * math/w_hypotf_compat.c: Likewise.
34163 * math/w_hypotl_compat.c: Likewise.
34164 * math/w_j0_compat.c: Likewise.
34165 * math/w_j0f_compat.c: Likewise.
34166 * math/w_j0l_compat.c: Likewise.
34167 * math/w_j1_compat.c: Likewise.
34168 * math/w_j1f_compat.c: Likewise.
34169 * math/w_j1l_compat.c: Likewise.
34170 * math/w_jn_compat.c: Likewise.
34171 * math/w_jnf_compat.c: Likewise.
34172 * math/w_jnl_compat.c: Likewise.
34173 * math/w_lgamma_r_compat.c: Likewise.
34174 * math/w_lgammaf_r_compat.c: Likewise.
34175 * math/w_lgammal_r_compat.c: Likewise.
34176 * math/w_log10_compat.c: Likewise.
34177 * math/w_log10f_compat.c: Likewise.
34178 * math/w_log10l_compat.c: Likewise.
34179 * math/w_log2_compat.c: Likewise.
34180 * math/w_log2f_compat.c: Likewise.
34181 * math/w_log2l_compat.c: Likewise.
34182 * math/w_log_compat.c: Likewise.
34183 * math/w_logf_compat.c: Likewise.
34184 * math/w_logl_compat.c: Likewise.
34185 * math/w_pow_compat.c: Likewise.
34186 * math/w_powf_compat.c: Likewise.
34187 * math/w_powl_compat.c: Likewise.
34188 * math/w_remainder_compat.c: Likewise.
34189 * math/w_remainderf_compat.c: Likewise.
34190 * math/w_remainderl_compat.c: Likewise.
34191 * math/w_sinh_compat.c: Likewise.
34192 * math/w_sinhf_compat.c: Likewise.
34193 * math/w_sinhl_compat.c: Likewise.
34194 * math/w_sqrt_compat.c: Likewise.
34195 * math/w_sqrtf_compat.c: Likewise.
34196 * math/w_sqrtl_compat.c: Likewise.
34197 * math/w_tgamma_compat.c: Likewise.
34198 * math/w_tgammaf_compat.c: Likewise.
34199 * math/w_tgammal_compat.c: Likewise.
34200 * math/w_scalb_compat.c (sysv_scalb): Condition definition on
34201 [LIBM_SVID_COMPAT].
34202 (__scalb): Condition call to sysv_scalb on [LIBM_SVID_COMPAT].
34203 * math/w_scalbf_compat.c (sysv_scalbf): Condition definition on
34204 [LIBM_SVID_COMPAT].
34205 (__scalbf): Condition call to sysv_scalbf on [LIBM_SVID_COMPAT].
34206 * math/w_scalbl_compat.c (sysv_scalbl): Condition definition on
34207 [LIBM_SVID_COMPAT].
34208 (__scalbl): Condition call to sysv_scalbl on [LIBM_SVID_COMPAT].
34209 * sysdeps/i386/fpu/w_sqrt.c: New file.
34210 * sysdeps/ia64/fpu/w_acos.c: Likewise.
34211 * sysdeps/ia64/fpu/w_acosf.c: Likewise.
34212 * sysdeps/ia64/fpu/w_acosh.c: Likewise.
34213 * sysdeps/ia64/fpu/w_acoshf.c: Likewise.
34214 * sysdeps/ia64/fpu/w_acoshl.c: Likewise.
34215 * sysdeps/ia64/fpu/w_acosl.c: Likewise.
34216 * sysdeps/ia64/fpu/w_asin.c: Likewise.
34217 * sysdeps/ia64/fpu/w_asinf.c: Likewise.
34218 * sysdeps/ia64/fpu/w_asinl.c: Likewise.
34219 * sysdeps/ia64/fpu/w_atan2.c: Likewise.
34220 * sysdeps/ia64/fpu/w_atan2f.c: Likewise.
34221 * sysdeps/ia64/fpu/w_atan2l.c: Likewise.
34222 * sysdeps/ia64/fpu/w_atanh.c: Likewise.
34223 * sysdeps/ia64/fpu/w_atanhf.c: Likewise.
34224 * sysdeps/ia64/fpu/w_atanhl.c: Likewise.
34225 * sysdeps/ia64/fpu/w_cosh.c: Likewise.
34226 * sysdeps/ia64/fpu/w_coshf.c: Likewise.
34227 * sysdeps/ia64/fpu/w_coshl.c: Likewise.
34228 * sysdeps/ia64/fpu/w_exp.c: Likewise.
34229 * sysdeps/ia64/fpu/w_exp10.c: Likewise.
34230 * sysdeps/ia64/fpu/w_exp10f.c: Likewise.
34231 * sysdeps/ia64/fpu/w_exp10l.c: Likewise.
34232 * sysdeps/ia64/fpu/w_exp2.c: Likewise.
34233 * sysdeps/ia64/fpu/w_exp2f.c: Likewise.
34234 * sysdeps/ia64/fpu/w_exp2l.c: Likewise.
34235 * sysdeps/ia64/fpu/w_expf.c: Likewise.
34236 * sysdeps/ia64/fpu/w_expl.c: Likewise.
34237 * sysdeps/ia64/fpu/w_fmod.c: Likewise.
34238 * sysdeps/ia64/fpu/w_fmodf.c: Likewise.
34239 * sysdeps/ia64/fpu/w_fmodl.c: Likewise.
34240 * sysdeps/ia64/fpu/w_hypot.c: Likewise.
34241 * sysdeps/ia64/fpu/w_hypotf.c: Likewise.
34242 * sysdeps/ia64/fpu/w_hypotl.c: Likewise.
34243 * sysdeps/ia64/fpu/w_lgamma_r.c: Likewise.
34244 * sysdeps/ia64/fpu/w_lgammaf_r.c: Likewise.
34245 * sysdeps/ia64/fpu/w_lgammal_r.c: Likewise.
34246 * sysdeps/ia64/fpu/w_log.c: Likewise.
34247 * sysdeps/ia64/fpu/w_log10.c: Likewise.
34248 * sysdeps/ia64/fpu/w_log10f.c: Likewise.
34249 * sysdeps/ia64/fpu/w_log10l.c: Likewise.
34250 * sysdeps/ia64/fpu/w_log2.c: Likewise.
34251 * sysdeps/ia64/fpu/w_log2f.c: Likewise.
34252 * sysdeps/ia64/fpu/w_log2l.c: Likewise.
34253 * sysdeps/ia64/fpu/w_logf.c: Likewise.
34254 * sysdeps/ia64/fpu/w_logl.c: Likewise.
34255 * sysdeps/ia64/fpu/w_pow.c: Likewise.
34256 * sysdeps/ia64/fpu/w_powf.c: Likewise.
34257 * sysdeps/ia64/fpu/w_powl.c: Likewise.
34258 * sysdeps/ia64/fpu/w_remainder.c: Likewise.
34259 * sysdeps/ia64/fpu/w_remainderf.c: Likewise.
34260 * sysdeps/ia64/fpu/w_remainderl.c: Likewise.
34261 * sysdeps/ia64/fpu/w_sinh.c: Likewise.
34262 * sysdeps/ia64/fpu/w_sinhf.c: Likewise.
34263 * sysdeps/ia64/fpu/w_sinhl.c: Likewise.
34264 * sysdeps/ia64/fpu/w_sqrt.c: Likewise.
34265 * sysdeps/ia64/fpu/w_sqrtf.c: Likewise.
34266 * sysdeps/ia64/fpu/w_sqrtl.c: Likewise.
34267 * sysdeps/ia64/fpu/w_tgamma.c: Likewise.
34268 * sysdeps/ia64/fpu/w_tgammaf.c: Likewise.
34269 * sysdeps/ia64/fpu/w_tgammal.c: Likewise.
34270 * sysdeps/ieee754/dbl-64/w_exp_compat.c: Condition contents on
34271 [LIBM_SVID_COMPAT].
34272 * sysdeps/ieee754/flt-32/w_expf_compat.c: Likewise.
34273 * sysdeps/ieee754/k_standard.c: Likewise.
34274 * sysdeps/ieee754/k_standardf.c: Likewise.
34275 * sysdeps/ieee754/k_standardl.c: Likewise.
34276 * sysdeps/ieee754/ldbl-128/w_expl_compat.c: Likewise.
34277 * sysdeps/ieee754/ldbl-128ibm/w_expl_compat.c: Likewise.
34278 * sysdeps/ieee754/ldbl-96/w_expl_compat.c: Likewise.
34279 * sysdeps/ieee754/ldbl-64-128/w_expl_compat.c: Condition
34280 long_double_symbol call on [LIBM_SVID_COMPAT].
34281 * sysdeps/ieee754/ldbl-opt/w_acoshl_compat.c: Likewise.
34282 * sysdeps/ieee754/ldbl-opt/w_acosl_compat.c: Likewise.
34283 * sysdeps/ieee754/ldbl-opt/w_asinl_compat.c: Likewise.
34284 * sysdeps/ieee754/ldbl-opt/w_atan2l_compat.c: Likewise.
34285 * sysdeps/ieee754/ldbl-opt/w_atanhl_compat.c: Likewise.
34286 * sysdeps/ieee754/ldbl-opt/w_coshl_compat.c: Likewise.
34287 * sysdeps/ieee754/ldbl-opt/w_fmodl_compat.c: Likewise.
34288 * sysdeps/ieee754/ldbl-opt/w_hypotl_compat.c: Likewise.
34289 * sysdeps/ieee754/ldbl-opt/w_j0l_compat.c: Likewise.
34290 * sysdeps/ieee754/ldbl-opt/w_j1l_compat.c: Likewise.
34291 * sysdeps/ieee754/ldbl-opt/w_jnl_compat.c: Likewise.
34292 * sysdeps/ieee754/ldbl-opt/w_lgammal_r_compat.c: Likewise.
34293 * sysdeps/ieee754/ldbl-opt/w_log10l_compat.c: Likewise.
34294 * sysdeps/ieee754/ldbl-opt/w_log2l_compat.c: Likewise.
34295 * sysdeps/ieee754/ldbl-opt/w_logl_compat.c: Likewise.
34296 * sysdeps/ieee754/ldbl-opt/w_powl_compat.c: Likewise.
34297 * sysdeps/ieee754/ldbl-opt/w_remainderl_compat.c: Likewise.
34298 * sysdeps/ieee754/ldbl-opt/w_sinhl_compat.c: Likewise.
34299 * sysdeps/ieee754/ldbl-opt/w_sqrtl_compat.c: Likewise.
34300 * sysdeps/ieee754/ldbl-opt/w_tgammal_compat.c: Likewise.
34301 * sysdeps/ieee754/ldbl-opt/w_exp10l_compat.c: Condition
34302 long_double_symbol and compat_symbol calls on [LIBM_SVID_COMPAT].
34303
34304 2017-09-05 Steve Ellcey <sellcey@cavium.com>
34305
34306 * include/shlib-compat.h (TEST_COMPAT): New Macro.
34307 * malloc/tst-mallocstate.c: Convert from test-skeleton
34308 to test-driver. Ifdef code using TEST_COMPAT macro.
34309 * math/test-matherr-2.c: Ifdef test using TEST_COMPAT macro.
34310 * math/test-matherr.c: Likewise.
34311
34312 2017-09-05 Joseph Myers <joseph@codesourcery.com>
34313
34314 [BZ #22086]
34315 * debug/pcprofiledump.c (main): Use byte-swapped mask when
34316 comparing word with byte-swapped constant.
34317
34318 2017-09-05 Chris Leonard <cjlhomeaddress@gmail.com>
34319
34320 [BZ #20498]
34321 * locale/iso-639.def: add Miskito.
34322 * localedata/SUPPORTED: Add miq_NI/UTF-8.
34323 * localedata/locales/miq_NI: New file.
34324
34325 2017-09-04 H.J. Lu <hongjiu.lu@intel.com>
34326
34327 [BZ #18822]
34328 * include/sys/stat.h (__chmod): Add libc_hidden_proto.
34329 (__mkdir): Likewise.
34330 * io/chmod.c (__chmod): Add libc_hidden_def.
34331 * io/mkdir.c (__mkdir): Likewise.
34332 * sysdeps/mach/hurd/chmod.c (__chmod): Likewise.
34333 * sysdeps/mach/hurd/mkdir.c (__mkdir): Likewise.
34334 * sysdeps/unix/sysv/linux/generic/chmod.c (__chmod): Likewise.
34335 * sysdeps/unix/sysv/linux/generic/mkdir.c (__mkdir): Likewise.
34336
34337 2017-09-04 Joseph Myers <joseph@codesourcery.com>
34338
34339 * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
34340 version to 4.13.
34341
34342 [BZ #22082]
34343 * math/bits/math-finite.h (exp10): Redirect if [__GLIBC_USE
34344 (IEC_60559_FUNCS_EXT)], not [__USE_GNU].
34345
34346 2017-09-04 Florian Weimer <fweimer@redhat.com>
34347
34348 * math/math.h: Issue warning if log is defined.
34349
34350 2017-09-04 Joseph Myers <joseph@codesourcery.com>
34351
34352 * scripts/build-many-glibcs.py (Context.checkout): Default Linux
34353 kernel version to 4.13.
34354
34355 2017-09-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
34356
34357 * sysdeps/generic/sigsetops.h: Remove spurious #endif.
34358 (__sigismember, __sigaddset, __sigdelset): Fix referencing set
34359 parameter.
34360 * sysdeps/mach/hurd/bits/socket.h: Include <sys/types.h> instead of
34361 just <bits/types.h>.
34362 * sysdeps/posix/preadv2.c: Use off_t instead of OFF_T.
34363 * sysdeps/posix/preadv64v2.c: Use off64_t instead of OFF_T.
34364 * sysdeps/posix/pwritev2.c: Use off_t instead of OFF_T.
34365 * sysdeps/posix/pwritev64v2.c: Use off64_t instead of OFF_T.
34366 * misc/preadv2.c: Include <errno.h>.
34367 * misc/preadv64v2.c: Include <errno.h>.
34368 * misc/pwritev2.c: Include <errno.h>.
34369 * misc/pwritev64v2.c: Include <errno.h>.
34370 * sysdeps/posix/preadv2.c: Include <errno.h>.
34371 * sysdeps/posix/preadv64v2.c: Include <errno.h>.
34372 Fix <unistd.h> inclusion.
34373 * sysdeps/posix/pwritev2.c: Include <errno.h>.
34374 * sysdeps/posix/pwritev64v2.c: Include <errno.h>.
34375 * sysdeps/mach/hurd/dl-sysdep.c (__access_noerrno, __sbrk,
34376 __strtoul_internal): New functions.
34377 * sysdeps/posix/pause.c: Include <sigsetops.h>.
34378 * sysdeps/posix/system.c: Include <sigsetops.h>.
34379 * sysdeps/mach/hurd/i386/Makefile
34380 [$(subdir) = csu] (sysdep_routines): New rule: divdi3 object.
34381 [$(subdir) = csu] (sysdep-only-routines): Likewise.
34382 [$(subdir) = csu] (CFLAGS-divdi3.c): Likewise.
34383 * sysdeps/x86/fpu/include/bits/fenv.h [NO_HIDDEN]: Redirect
34384 __feraiseexcept_renamed to feraiseexcept instead of
34385 __GI_feraiseexcept.
34386 * sysdeps/mach/hurd/i386/Implies: Add mach/hurd/x86.
34387 * sysdeps/mach/hurd/x86/dl-sysdep.c: New file.
34388 * misc/tst-preadvwritev2-common.c (RWF_HIPRI, RWF_DSYNC, RWF_SYNC,
34389 RWF_NOWAIT): Define to 0 if undefined already.
34390 (do_test_with_invalid_flags): Set invalid_flag to 2 if RWF_SUPPORTED
34391 boils down to 0.
34392 * resolv/tst-resolv-res_init-skeleton.c (run_res_init)
34393 [!CLONE_NEWUTS]: Fail as unsupported if hostname is not NULL.
34394
34395 2017-09-01 Joseph Myers <joseph@codesourcery.com>
34396
34397 * manual/math.texi (pow10): Do not document.
34398 (pow10f): Likewise.
34399 (pow10l): Likewise.
34400 * math/bits/mathcalls.h [__USE_GNU] (pow10): Do not declare.
34401 * math/bits/math-finite.h [__USE_GNU] (pow10): Likewise.
34402 * math/libm-test-exp10.inc (pow10_test): Remove.
34403 (do_test): Do not call pow10.
34404 * math/w_exp10_compat.c (pow10): Make into compat symbol.
34405 [NO_LONG_DOUBLE] (pow10l): Likewise.
34406 * math/w_exp10f_compat.c (pow10f): Likewise.
34407 * math/w_exp10l_compat.c (pow10l): Likewise.
34408 * sysdeps/ia64/fpu/e_exp10.S: Include <shlib-compat.h>.
34409 (pow10): Make into compat symbol.
34410 * sysdeps/ia64/fpu/e_exp10f.S: Include <shlib-compat.h>.
34411 (pow10f): Make into compat symbol.
34412 * sysdeps/ia64/fpu/e_exp10l.S: Include <shlib-compat.h>.
34413 (pow10l): Make into compat symbol.
34414 * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Remove
34415 pow10.
34416 (CFLAGS-nldbl-pow10.c): Remove variable..
34417 * sysdeps/ieee754/ldbl-opt/nldbl-pow10.c: Remove file.
34418 * sysdeps/ieee754/ldbl-opt/w_exp10_compat.c (pow10l): Condition on
34419 [SHLIB_COMPAT (libm, GLIBC_2_1, GLIBC_2_27)].
34420 * sysdeps/ieee754/ldbl-opt/w_exp10l_compat.c (compat_symbol):
34421 Undefine and redefine.
34422 (pow10l): Make into compat symbol.
34423 * sysdeps/aarch64/libm-test-ulps: Remove pow10 ulps.
34424 * sysdeps/alpha/fpu/libm-test-ulps: Likewise.
34425 * sysdeps/arm/libm-test-ulps: Likewise.
34426 * sysdeps/hppa/fpu/libm-test-ulps: Likewise.
34427 * sysdeps/i386/fpu/libm-test-ulps: Likewise.
34428 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
34429 * sysdeps/microblaze/libm-test-ulps: Likewise.
34430 * sysdeps/mips/mips32/libm-test-ulps: Likewise.
34431 * sysdeps/mips/mips64/libm-test-ulps: Likewise.
34432 * sysdeps/nios2/libm-test-ulps: Likewise.
34433 * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
34434 * sysdeps/powerpc/nofpu/libm-test-ulps: Likewise.
34435 * sysdeps/s390/fpu/libm-test-ulps: Likewise.
34436 * sysdeps/sh/libm-test-ulps: Likewise.
34437 * sysdeps/sparc/fpu/libm-test-ulps: Likewise.
34438 * sysdeps/tile/libm-test-ulps: Likewise.
34439 * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
34440
34441 2017-09-01 Paul Pluzhnikov <ppluzhnikov@google.com>
34442
34443 * stdlib/tst-atexit-common.c (crumbs): Ensure correct size.
34444
34445 2017-09-01 H.J. Lu <hongjiu.lu@intel.com>
34446
34447 * posix/tst-regex.c (do_test): Replace "../ChangeLog.8" with
34448 "../ChangeLog.old/ChangeLog.8".
34449 * posix/tst-regex2.c (do_test): Replace "../ChangeLog.14" with
34450 "../ChangeLog.old/ChangeLog.14".
34451
34452 2017-09-01 H.J. Lu <hongjiu.lu@intel.com>
34453
34454 * manual/contrib.texi: Credit Ulrich Drepper for the POSIX
34455 Threads Library.
34456
34457 2017-09-01 Joseph Myers <joseph@codesourcery.com>
34458
34459 * sysdeps/unix/sysv/linux/gentempfd.c: Include <string.h>.
34460
34461 2017-09-01 H.J. Lu <hongjiu.lu@intel.com>
34462
34463 * csu/version.c (banner): Remove "by Roland McGrath et al.".
34464 * nptl/Banner: Remove "by Ulrich Drepper et al.".
34465
34466 2017-09-01 Paul Pluzhnikov <ppluzhnikov@google.com>
34467
34468 * stdlib/tst-atexit-common.c (do_test): Test support for at least
34469 32 atexit handlers.
34470
34471 2017-09-01 Zack Weinberg <zackw@panix.com>
34472
34473 * math/math.h (HUGE_VAL): Improve commentary.
34474
34475 2017-09-01 Adhemerval Zanella <adhemerval.zanella@linaro.org>
34476 Andreas Schwab <schwab@suse.de>
34477
34478 [BZ #21530]
34479 * include/stdio.h (__gen_tempfd): New function.
34480 * stdio-common/Makefile (routines): Add gentempfd.
34481 * stdio-common/gentempfd.c: New file.
34482 * sysdeps/unix/sysv/linux/gentempfd.c: Likewise.
34483 * stdio-common/tmpfile.c (tmpfile): First try to use a system specific
34484 unnamed file first.
34485
34486 2017-09-01 Florian Weimer <fweimer@redhat.com>
34487
34488 [BZ #21915]
34489 [BZ #21922]
34490 * sysdeps/posix/getaddrinfo.c (gethosts): Look at NSS function
34491 result to determine success or failure, not the errno value.
34492 * nss/Makefile (tests): Add tst-nss-files-hosts-erange.
34493 (tst-nss-files-hosts-erange): Link with -ldl.
34494 * nss/tst-nss-files-hosts-erange.c: New file.
34495 * nss/tst-resolv-basic.c (response): Handle nodata.example.
34496 (do_test): Add NO_DATA tests.
34497 * resolv/tst-resolv-basic.c (test_nodata_nxdomain): New function.
34498 (do_test): Call it.
34499
34500 2017-09-01 Florian Weimer <fweimer@redhat.com>
34501
34502 [BZ #21922]
34503 * sysdeps/posix/getaddrinfo.c (gaih_inet): Report EAI_NODATA error
34504 coming from gethostbyname2_r.
34505
34506 2017-09-01 Florian Weimer <fweimer@redhat.com>
34507
34508 * support/namespace.h (struct support_chroot_configuration): Add
34509 hosts, host_conf.
34510 (struct support_chroot): Add path_hosts, path_host_conf.
34511 * support/support_chroot.c (write_file): New function.
34512 (support_chroot_create): Call it to process /etc/resolv.conf,
34513 /etc/hosts, /etc/host.conf.
34514 (support_chroot_free): Update.
34515
34516 2017-09-01 Florian Weimer <fweimer@redhat.com>
34517
34518 * sysdeps/posix/getaddrinfo.c (gaih_inet): Only use h_errno if
34519 status indicates it is set.
34520
34521 2017-09-01 Florian Weimer <fweimer@redhat.com>
34522
34523 [BZ #20532]
34524 * sysdeps/posix/getaddrinfo.c (gaih_inet): Make reporting of NSS
34525 function lookup failures more reliable.
34526
34527 2017-09-01 Florian Weimer <fweimer@redhat.com>
34528
34529 * sysdeps/posix/getaddrinfo.c (gethosts): Use h_errno directly.
34530 (getcanonname): Likewise.
34531 (gaih_inet): Likewise.
34532
34533 2017-09-01 Florian Weimer <fweimer@redhat.com>
34534
34535 * sysdeps/posix/getaddrinfo.c (gethosts): Use errno directly.
34536 (getcanonname): Likewise.
34537 (gaih_inet): Likewise.
34538
34539 2017-08-31 Steve Ellcey <sellcey@cavium.com>
34540 Richard Henderson <rth@twiddle.net>
34541
34542 * sysdeps/aarch64/fpu/s_llrint.c (OREG_SIZE): New macro.
34543 * sysdeps/aarch64/fpu/s_llround.c (OREG_SIZE): Likewise.
34544 * sysdeps/aarch64/fpu/s_llrintf.c (OREGS, IREGS): Remove.
34545 (IREG_SIZE, OREG_SIZE): New macros.
34546 * sysdeps/aarch64/fpu/s_llroundf.c: (OREGS, IREGS): Remove.
34547 (IREG_SIZE, OREG_SIZE): New macros.
34548 * sysdeps/aarch64/fpu/s_lrintf.c (IREGS): Remove.
34549 (IREG_SIZE): New macro.
34550 * sysdeps/aarch64/fpu/s_lroundf.c (IREGS): Remove.
34551 (IREG_SIZE): New macro.
34552 * sysdeps/aarch64/fpu/s_lrint.c (get-rounding-mode.h, stdint.h):
34553 New includes.
34554 (IREG_SIZE, OREG_SIZE): Initialize if not already set.
34555 (OREGS, IREGS): Set based on IREG_SIZE and OREG_SIZE.
34556 (__CONCATX): Handle exceptions correctly on large values that may
34557 set FE_INVALID.
34558 * sysdeps/aarch64/fpu/s_lround.c (IREG_SIZE, OREG_SIZE):
34559 Initialize if not already set.
34560 (OREGS, IREGS): Set based on IREG_SIZE and OREG_SIZE.
34561
34562 2017-08-31 Adhemerval Zanella <adhemerval.zanella@linaro.org>
34563
34564 * sysdeps/generic/not-cancel.h (NO_CANCELLATION): Remove macro.
34565 * sysdeps/unix/sysv/linux/aarch64/sysdep-cancel.h (NO_CANCELLATION):
34566 Likewise.
34567 * sysdeps/unix/sysv/linux/alpha/sysdep-cancel.h (NO_CANCELLATION):
34568 Likewise.
34569 * sysdeps/unix/sysv/linux/arm/sysdep-cancel.h (NO_CANCELLATION):
34570 Likewise.
34571 * sysdeps/unix/sysv/linux/hppa/sysdep-cancel.h (NO_CANCELLATION):
34572 Likewise.
34573 * sysdeps/unix/sysv/linux/i386/sysdep-cancel.h (NO_CANCELLATION):
34574 Likewise.
34575 * sysdeps/unix/sysv/linux/ia64/sysdep-cancel.h (NO_CANCELLATION):
34576 Likewise.
34577 * sysdeps/unix/sysv/linux/m68k/sysdep-cancel.h (NO_CANCELLATION):
34578 Likewise.
34579 * sysdeps/unix/sysv/linux/microblaze/sysdep-cancel.h
34580 (NO_CANCELLATION): Likewise.
34581 * sysdeps/unix/sysv/linux/mips/sysdep-cancel.h (NO_CANCELLATION):
34582 Likewise.
34583 * sysdeps/unix/sysv/linux/nios2/sysdep-cancel.h (NO_CANCELLATION):
34584 Likewise.
34585 * sysdeps/unix/sysv/linux/powerpc/sysdep-cancel.h (NO_CANCELLATION):
34586 Likewise.
34587 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep-cancel.h
34588 (NO_CANCELLATION): Likewise.
34589 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep-cancel.h
34590 (NO_CANCELLATION): Likewise.
34591 * sysdeps/unix/sysv/linux/sh/sysdep-cancel.h (NO_CANCELLATION):
34592 Likewise
34593 * sysdeps/unix/sysv/linux/sparc/sysdep-cancel.h (NO_CANCELLATION):
34594 Likewise.
34595 * sysdeps/unix/sysv/linux/tile/sysdep-cancel.h (NO_CANCELLATION):
34596 Likewise.
34597 * sysdeps/unix/sysv/linux/x86_64/sysdep-cancel.h (NO_CANCELLATION):
34598 Likewise.
34599 * sysdeps/unix/sysv/linux/not-cancel.h (__fcntl_nocancel): Add
34600 hidden prototype.
34601 * sysdeps/unix/sysv/linux/fcntl.c (__fcntl_nocancel): Define only
34602 for !IS_IN (rtld) and remove NO_CANCELLATION usage.
34603
34604 2017-08-31 Steve Ellcey <sellcey@cavium.com>
34605
34606 * sysdeps/aarch64/dl-irel.h: (elf_ifunc_invoke): Change argument type
34607 in resolver call.
34608
34609 2017-08-31 Florian Weimer <fweimer@redhat.com>
34610
34611 * include/libc-symbols.h (internal_function): Remove.
34612
34613 2017-08-31 Florian Weimer <fweimer@redhat.com>
34614
34615 * stdlib/fmtmsg.c (internal_addseverity): Remove
34616 internal_function.
34617
34618 2017-08-31 Florian Weimer <fweimer@redhat.com>
34619
34620 * stdio-common/printf_fp.c (group_number): Remove
34621 internal_function.
34622 * stdio-common/vfprintf.c (buffered_vfprintf): Likewise.
34623
34624 2017-08-31 Florian Weimer <fweimer@redhat.com>
34625
34626 * posix/fnmatch.c (internal_function): Remove definition.
34627 * posix/fnmatch_loop.c (FCT, EXT, END): Remove internal_function.
34628 * posix/regcomp.c (peek_token, init_word_char)
34629 (duplicate_node_closure, fetch_token, peek_token)
34630 (peek_token_bracket, build_range_exp, build_collating_symbol):
34631 Likewise.
34632 * posix/regex_internal.c (re_string_construct_common)
34633 (create_ci_newstate, create_cd_newstate, re_string_allocate)
34634 (re_string_construct, re_string_realloc_buffers, build_wcs_buffer)
34635 (build_wcs_upper_buffer, re_string_skip_chars, build_upper_buffer)
34636 (re_string_translate_buffer, re_string_reconstruct)
34637 (re_string_peek_byte_case, re_string_fetch_byte_case)
34638 (re_string_destruct, re_string_context_at, re_node_set_alloc)
34639 (re_node_set_init_1, re_node_set_init_2, re_node_set_init_copy)
34640 (re_node_set_add_intersect, re_node_set_init_union)
34641 (re_node_set_merge, re_node_set_insert, re_node_set_insert_last)
34642 (re_node_set_compare, re_node_set_contains, re_node_set_remove_at)
34643 (re_dfa_add_node, calc_state_hash, re_acquire_state)
34644 (re_acquire_state_context): Likewise.
34645 * posix/regex_internal.h (internal_function): Remove definition.
34646 (re_string_realloc_buffers, build_wcs_buffer)
34647 (build_wcs_upper_buffer, build_upper_buffer)
34648 (re_string_translate_buffer, re_string_context_at)
34649 (re_string_char_size_at, re_string_wchar_at)
34650 (re_string_elem_size_at): Likewise.
34651 * posix/regexec.c (match_ctx_init, match_ctx_clean)
34652 (match_ctx_free, match_ctx_add_entry, search_cur_bkref_entry)
34653 (match_ctx_add_subtop, match_ctx_add_sublast, sift_ctx_init)
34654 (re_search_internal, re_search_2_stub, re_search_stub)
34655 (re_copy_regs, prune_impossible_nodes, check_matching)
34656 (check_halt_state_context, update_regs, push_fail_stack, set_regs)
34657 (free_fail_stack_return, sift_states_iter_mb)
34658 (sift_states_backward, build_sifted_states)
34659 (update_cur_sifted_state, add_epsilon_src_nodes, check_dst_limits)
34660 (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos)
34661 (check_subexp_limits, sift_states_bkref, merge_state_array)
34662 (find_recover_state, transit_state, merge_state_with_log)
34663 (check_subexp_matching_top, transit_state_sb, transit_state_sb)
34664 (transit_state_mb, transit_state_bkref, get_subexp)
34665 (get_subexp_sub, find_subexp_node, check_arrival)
34666 (check_arrival_add_next_nodes, check_arrival_expand_ecl)
34667 (check_arrival_expand_ecl_sub, expand_bkref_cache, build_trtable)
34668 (check_node_accept_bytes, find_collation_sequence_value)
34669 (group_nodes_into_DFAstates, check_node_accept, extend_buffers)
34670 (acquire_init_state_context, check_halt_node_context)
34671 (proceed_next_node, pop_fail_stack, clean_state_log_if_needed)
34672 (sub_epsilon_src_nodes): Likewise.
34673 * posix/spawn_int.h (__spawn_valid_fd): Likewise.
34674 * posix/spawn_valid_fd (__spawn_valid_fd): Likewise.
34675 * posix/wordexp.c (parse_dollars, parse_backtick, parse_dquote)
34676 (eval_expr, w_addmem, w_addstr, w_addword, parse_backslash)
34677 (parse_qtd_backslash, parse_tilde, do_parse_glob, parse_glob)
34678 (parse_squote, eval_expr_val, eval_expr_multdiv, parse_arith)
34679 (exec_comm_child, exec_comm, parse_comm, parse_param): Likewise.
34680 * sysdeps/posix/ttyname.c (getttyname): Likewise.
34681 * sysdeps/posix/ttyname_r.c (getttyname_r): Likewise.
34682 * sysdeps/unix/sysv/linux/preadv.c (__atomic_preadv_replacement)
34683 (PREADV): Likewise.
34684 * sysdeps/unix/sysv/linux/preadv64.c (__atomic_preadv64_replacement)
34685 (PREADV): Likewise.
34686 * sysdeps/unix/sysv/linux/pwritev.c (__atomic_pwritev_replacement)
34687 (PWRITEV): Likewise.
34688 * sysdeps/unix/sysv/linux/pwritev64.c (__atomic_pwritev64_replacement)
34689 (PWRITEV): Likewise.
34690 * sysdeps/unix/sysv/linux/ttyname.c (getttyname): Likewise.
34691 * sysdeps/unix/sysv/linux/ttyname_r.c (getttyname_r): Likewise.
34692
34693 2017-08-31 Florian Weimer <fweimer@redhat.com>
34694
34695 * nptl/allocatestack.c (change_stack_perm, __deallocate_stack)
34696 (setxid_mark_thread, setxid_unmark_thread, setxid_signal_thread):
34697 Remove internal_function.
34698 * nptl/cancellation.c (__pthread_disable_asynccancel): Likewise.
34699 * nptl/libc_pthread_init.c (__libc_pthread_init): Likewise.
34700 * nptl/pthreadP.h (__find_in_stack_list, __free_tcb)
34701 (__deallocate_stack, __libc_pthread_init)
34702 (__pthread_mutex_cond_lock, __pthread_mutex_cond_lock_adjust)
34703 (__pthread_mutex_unlock_usercnt, __pthread_disable_asynccancel)
34704 (__libc_disable_asynccancel, __librt_disable_asynccancel):
34705 Likewise.
34706 * nptl/pthread_create.c (__find_in_stack_list, __free_tcb): Likewise.
34707 * nptl/pthread_mutex_cond_lock.c (__pthread_mutex_lock): Likewise.
34708 * nptl/pthread_mutex_lock.c (__pthread_mutex_cond_lock_adjust):
34709 Likewise.
34710 * nptl/pthread_mutex_unlock.c (__pthread_mutex_unlock_full)
34711 (__pthread_mutex_unlock_usercnt): Likewise.
34712
34713 2017-08-31 Florian Weimer <fweimer@redhat.com>
34714
34715 * io/fts.c (fts_alloc, fts_build, fts_lfree, fts_load)
34716 (fts_maxarglen, fts_padjust, fts_palloc, fts_sort, fts_stat)
34717 (fts_safe_changedir): Remove internal_function.
34718 * io/ftw.c (internal_function): Remove definition.
34719 (ftw_dir, process_entry, ftw_startup): Remove internal_function.
34720
34721 2017-08-31 Florian Weimer <fweimer@redhat.com>
34722
34723 * inet/deadline.c (__deadline_current_time)
34724 (__deadline_from_timeval, __deadline_to_ms): Remove
34725 internal_function.
34726 * inet/getnameinfo.c (nrl_domainname): Likewise.
34727 * inet/getnetgrent_r.c (__internal_setnetgrent_reuse): Likewise.
34728 * inet/inet6_option.c (add_pad): Likewise.
34729 * inet/net-internal.h (__deadline_current_time)
34730 (__deadline_from_timeval, __deadline_to_ms): Likewise.
34731 * inet/rcmd.c (__checkhost_sa, __icheckuser): Likewise.
34732 * sysdeps/mach/hurd/if_index.c (__protocol_available): Likewise.
34733 * sysdeps/unix/sysv/linux/ifaddrs.c (map_newlink): Likewise.
34734
34735 2017-08-31 Joseph Myers <joseph@codesourcery.com>
34736
34737 * math/math.h [__USE_ISOC99] (NAN): Define directly here. Do not
34738 include <bits/nan.h>.
34739 * math/Makefile (headers): Remove bits/nan.h.
34740 * bits/nan.h: Remove.
34741 * sysdeps/ieee754/bits/nan.h: Likewise.
34742 * sysdeps/mips/bits/nan.h: Likewise.
34743
34744 * math/math.h [__USE_ISOC99] (INFINITY): Define directly here. Do
34745 not include <bits/inf.h>.
34746 * math/Makefile (headers): Remove bits/inf.h.
34747 * bits/inf.h: Remove.
34748 * sysdeps/ieee754/bits/inf.h: Likewise.
34749
34750 * math/math.h: Do not include bits/huge_val.h, bits/huge_valf.h,
34751 bits/huge_vall.h or bits/huge_val_flt128.h.
34752 (HUGE_VAL): Define directly here.
34753 [__USE_ISOC99] (HUGE_VALF): Likewise.
34754 [__USE_ISOC99] (HUGE_VALL): Likewise.
34755 [__HAVE_FLOAT128 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
34756 (HUGE_VAL_F128): Likewise.
34757 * math/Makefile (headers): Remove bits/huge_val.h,
34758 bits/huge_valf.h, bits/huge_vall.h and bits/huge_val_flt128.h.
34759 * bits/huge_val.h: Remove.
34760 * bits/huge_val_flt128.h: Likewise.
34761 * bits/huge_valf.h: Likewise.
34762 * bits/huge_vall.h: Likewise.
34763 * sysdeps/ia64/bits/huge_vall.h: Likewise.
34764 * sysdeps/ieee754/bits/huge_val.h: Likewise.
34765 * sysdeps/ieee754/bits/huge_valf.h: Likewise.
34766 * sysdeps/m68k/m680x0/bits/huge_vall.h: Likewise.
34767 * sysdeps/sh/bits/huge_val.h: Likewise.
34768 * sysdeps/sparc/bits/huge_vall.h: Likewise.
34769 * sysdeps/x86/bits/huge_vall.h: Likewise.
34770
34771 2017-08-31 Florian Weimer <fweimer@redhat.com>
34772
34773 * elf/dl-addr-obj.c (_dl_addr_inside_object): Remove
34774 internal_function.
34775 * elf/dl-cache.c (_dl_cache_libcmp, _dl_load_cache_lookup):
34776 Likewise.
34777 * elf/dl-debug.c (_dl_debug_initialize): Likewise.
34778 * elf/dl-deps.c (_dl_build_local_scope, _dl_map_object_deps): Likewise.
34779 * elf/dl-environ.c (_dl_next_ld_env_entry): Likewise.
34780 * elf/dl-execstack.c (_dl_make_stack_executable): Likewise.
34781 * elf/dl-fini.c (_dl_sort_fini): Likewise.
34782 * elf/dl-hwcaps.c (_dl_important_hwcaps): Likewise.
34783 * elf/dl-libc.c (dlerror_run): Likewise.
34784 * elf/dl-load.c (add_name_to_object, decompose_rpath)
34785 (_dl_init_paths, _dl_map_object, _dl_rtld_di_serinfo): Likewise.
34786 * elf/dl-lookup.c (add_dependency, _dl_debug_bindings)
34787 (_dl_lookup_symbol_x, _dl_setup_hash, _dl_debug_bindings):
34788 Likewise.
34789 * elf/dl-misc.c (_dl_sysdep_read_whole_file, _dl_name_match_p)
34790 (_dl_higher_prime_number, _dl_strtoul): Likewise.
34791 * elf/dl-object.c (_dl_add_to_namespace_list, _dl_new_object): Likewise.
34792 * elf/dl-profile.c (_dl_start_profile): Likewise.
34793 * elf/dl-reloc.c (_dl_try_allocate_static_tls)
34794 (_dl_allocate_static_tls, _dl_protect_relro, _dl_reloc_bad_type):
34795 Likewise.
34796 * elf/dl-support.c (_dl_aux_init, _dl_non_dynamic_init): Likewise.
34797 * elf/dl-sym.c (_dl_tls_symaddr, do_sym): Likewise.
34798 * elf/dl-sysdep.c (_dl_sysdep_start_cleanup, _dl_show_auxv): Likewise.
34799 * elf/dl-tls.c (_dl_next_tls_modid, _dl_count_modids)
34800 (_dl_determine_tlsoffset, allocate_dtv, _dl_get_tls_static_info)
34801 (_dl_allocate_tls_storage): Likewise.
34802 * elf/dl-version.c (match_symbol, _dl_check_map_versions)
34803 (_dl_check_all_versions): Likewise.
34804 * elf/dynamic-link.h (_dl_try_allocate_static_tls): Likewise.
34805 * elf/tlsdeschtab.h (_dl_make_tlsdesc_dynamic): Likewise.
34806 * elf/tst-_dl_addr_inside_object.c (_dl_addr_inside_object): Likewise.
34807 * sysdeps/aarch64/dl-tlsdesc.h (_dl_make_tlsdesc_dynamic): Likewise.
34808 * sysdeps/aarch64/tlsdesc.c (_dl_unmap): Likewise.
34809 * sysdeps/arm/dl-lookupcfg.h (_dl_unmap): Likewise.
34810 * sysdeps/arm/dl-machine.h (elf_machine_load_address): Remove
34811 internal_function from __dl_start.
34812 * sysdeps/arm/dl-tlsdesc.h (_dl_unmap): Remove internal_function.
34813 * sysdeps/generic/dl-cache.h (_dl_cache_libcmp): Likewise.
34814 * sysdeps/generic/ldsodefs.h (_dl_name_match_p)
34815 (_dl_higher_prime_number, _dl_strtoul, _dl_map_object)
34816 (_dl_map_object_deps, _dl_setup_hash, _dl_rtld_di_serinfo)
34817 (_dl_lookup_symbol_x, _dl_add_to_namespace_list, _dl_new_object)
34818 (_dl_protect_relro, _dl_reloc_bad_type, _dl_check_all_versions)
34819 (_dl_check_map_versions, _dl_sort_fini, _dl_debug_initialize)
34820 (_dl_init_paths, _dl_start_profile, _dl_show_auxv)
34821 (_dl_next_ld_env_entry, _dl_important_hwcaps)
34822 (_dl_load_cache_lookup, _dl_sysdep_read_whole_file)
34823 (_dl_sysdep_start_cleanup, _dl_next_tls_modid, _dl_count_modids)
34824 (_dl_determine_tlsoffset, _dl_get_tls_static_info)
34825 (_dl_allocate_static_tls, _dl_allocate_tls_storage)
34826 (_dl_addr_inside_object, _dl_non_dynamic_init, _dl_aux_init):
34827 Likewise.
34828 (struct rtld_global_ro): Remove internal_function from the
34829 _dl_lookup_symbol_x member.
34830 (_dl_symbol_value): Remove. No longer defined anywhere.
34831 * sysdeps/i386/dl-lookupcfg.h (_dl_unmap): Remove
34832 internal_function.
34833 * sysdeps/i386/dl-tlsdesc.h (_dl_make_tlsdesc_dynamic): Likewise.
34834 * sysdeps/i386/tlsdesc.c (_dl_unmap): Likewise.
34835 * sysdeps/mach/hurd/dl-sysdep.c (_dl_show_auxv): Likewise.
34836 * sysdeps/nios2/dl-init.c (_dl_nios2_get_gp_value): Likewise.
34837 * sysdeps/tile/dl-lookupcfg.h (_dl_unmap): Likewise.
34838 * sysdeps/tile/dl-machine.h (_dl_after_load): Likewise.
34839 * sysdeps/tile/dl-runtime.c (_dl_after_load, _dl_unmap): Likewise.
34840 * sysdeps/unix/sysv/linux/dl-vdso.c (_dl_vdso_vsym): Likewise.
34841 * sysdeps/unix/sysv/linux/dl-vdso.h (_dl_vdso_vsym): Likewise.
34842 * sysdeps/x86_64/dl-lookupcfg.h (_dl_unmap): Likewise.
34843 * sysdeps/x86_64/dl-tlsdesc.h (_dl_make_tlsdesc_dynamic): Likewise.
34844 * sysdeps/x86_64/tlsdesc.c (_dl_unmap): Likewise.
34845
34846 2017-08-31 Florian Weimer <fweimer@redhat.com>
34847
34848 * gmon/gmon.c (write_hist, write_call_graph, write_bb_counts):
34849 Remove internal_function.
34850 * sysdeps/arm/machine-gmon.h (mcount_internal, _MCOUNT_DECL):
34851 Likewise.
34852 * sysdeps/sparc/machine-gmon.h (mcount_internal, _MCOUNT_DECL):
34853 Likewise.
34854
34855 2017-08-31 Florian Weimer <fweimer@redhat.com>
34856
34857 * dlfcn/dlerror.c (_dlerror_run): Remove internal_function.
34858 * elf/dl-sym.c (_dl_vsym, _dl_sym): Likewise.
34859 * include/dlfcn.h (_dl_sym, _dl_vsym, _dlerror_run): Likewise.
34860
34861 2017-08-31 Florian Weimer <fweimer@redhat.com>
34862
34863 * resolv/gai_misc.c (__gai_find_request, __gai_remove_request)
34864 (__gai_enqueue_request): Remove internal_function.
34865 * resolv/gai_misc.h (__gai_enqueue_request, __gai_find_request)
34866 (__gai_remove_request, __gai_notify, __gai_notify_only)
34867 (__gai_sigqueue): Likewise.
34868 * resolv/gai_notify.c (__gai_notify_only, __gai_notify): Likewise.
34869 * resolv/gai_sigqueue.c (__gai_sigqueue): Likewise.
34870 * resolv/inet_ntop.c (inet_ntop4, inet_ntop6): Likewise.
34871 * sysdeps/unix/sysv/linux/gai_sigqueue.c (__gai_sigqueue):
34872 Likewise.
34873
34874 2017-08-31 Florian Weimer <fweimer@redhat.com>
34875
34876 * dirent/scandir-tail.c (SCANDIR_TAIL): Remove internal_function.
34877 * include/dirent.h (__opendirat, __getdents, __getdents64)
34878 (__alloc_dir, __scandir_tail, __scandir64_tail): Likewise.
34879 * sysdeps/posix/opendir.c (__opendirat, __alloc_dir): Likewise.
34880 * sysdeps/mach/hurd/opendir.c (__opendirat): Likewise.
34881 * sysdeps/unix/sysv/linux/i386/olddirent.h (__old_getdents64):
34882 Likewise.
34883 * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS): Likewise.
34884
34885 2017-08-31 Florian Weimer <fweimer@redhat.com>
34886
34887 * sysdeps/unix/sysv/linux/getcwd.c (generic_getcwd): Remove
34888 internal_function.
34889 (GETCWD_RETURN_TYPE): Likewise.
34890
34891 2017-08-31 Florian Weimer <fweimer@redhat.com>
34892
34893 * include/time.h (__tz_compute, __strptime_internal): Remove
34894 internal_function.
34895 * time/strptime_l.c (__strptime_internal): Likewise.
34896 * time/tzset.c (compute_change, update_vars, __tz_compute): Likewise.
34897
34898 2017-08-31 Florian Weimer <fweimer@redhat.com>
34899
34900 * iconv/gconv.c (__gconv): Remove internal_function.
34901 * iconv/gconv_builtin.c (__gconv_get_builtin_trans): Likewise.
34902 * iconv/gconv_cache.c (__gconv_load_cache, find_module_idx)
34903 (find_module, __gconv_compare_alias_cache, __gconv_lookup_cache)
34904 (__gconv_release_cache): Likewise.
34905 * iconv/gconv_close.c (__gconv_close): Likewise.
34906 * iconv/gconv_conf.c (detect_conflict, insert_module, add_module)
34907 (read_conf_file, __gconv_get_path): Likewise.
34908 * iconv/gconv_db.c (derivation_lookup, add_derivation)
34909 (__gconv_release_step, gen_steps, increment_counter)
34910 (find_derivation, __gconv_compare_alias, __gconv_find_transform)
34911 (__gconv_close_transform, free_modules_db): Likewise.
34912 * iconv/gconv_dl.c (__gconv_find_shlib, __gconv_release_shlib):
34913 Likewise.
34914 * iconv/gconv_int.h (__gconv_open, __gconv_close, __gconv)
34915 (__gconv_find_transform, __gconv_lookup_cache)
34916 (__gconv_release_step, __gconv_load_cache, __gconv_get_path)
34917 (__gconv_close_transform, __gconv_release_cache)
34918 (__gconv_loaded_object, __gconv_release_shlib)
34919 (__gconv_compare_alias): Likewise.
34920 * iconv/gconv_open.c (__gconv_open): Likewise.
34921 * iconv/iconv_prog.c (print_known_names, add_known_names): Likewise.
34922 * iconv/iconvconfig.c (add_module): Likewise.
34923 * intl/dcigettext.c (plural_lookup, guess_category_value)
34924 (category_to_name, get_output_charset, _nl_find_msg): Likewise.
34925 * intl/eval-plural.h (plural_eval): Likewise.
34926 * intl/finddomain.c (_nl_find_domain): Likewise.
34927 * intl/gettextP.h (_nl_unload_domain, _nl_find_domain)
34928 (_nl_load_domain, _nl_find_msg): Likewise.
34929 (internal_function): Remove definition.
34930 * intl/loadinfo.h (internal_function): Likewise.
34931 * intl/loadmsgcat.c (_nl_load_domain, _nl_unload_domain): Remove
34932 internal_function.
34933 * intl/localealias.c (internal_function): Remove definition.
34934 (read_alias_file): Remove internal_function.
34935 * intl/plural-exp.c (EXTRACT_PLURAL_EXPRESSION): Likewise.
34936 * intl/plural-exp.h (internal_function): Remove definition.
34937 (FREE_EXPRESSION, EXTRACT_PLURAL_EXPRESSION): Remove
34938 internal_function.
34939 * intl/plural.c: Regenerate.
34940 * intl/plural.y (FREE_EXPRESSION): Remove internal_function.
34941 * locale/coll-lookup.c (__collidx_table_lookup)
34942 (__collseq_table_lookup): Likewise.
34943 * locale/coll-lookup.h (__collidx_table_lookup)
34944 (__collseq_table_lookup): Likewise.
34945 * locale/findlocale.c (_nl_find_locale, _nl_remove_locale): Likewise.
34946 * locale/loadarchive.c (_nl_load_locale_from_archive): Likewise.
34947 * locale/loadlocale.c (_nl_intern_locale_data, _nl_load_locale)
34948 (_nl_unload_locale): Likewise.
34949 * locale/localeinfo.h (struct __locale_data): Remove
34950 internal_function from cleanup member.
34951 (_nl_find_locale, _nl_load_locale, _nl_unload_locale)
34952 (_nl_remove_locale, _nl_load_locale_from_archive)
34953 (_nl_intern_locale_data, _nl_get_era_entry, _nl_select_era_entry)
34954 (_nl_get_alt_digit, _nl_get_walt_digit, _nl_parse_alt_digit)
34955 (_nl_cleanup_time): Remove internal_function.
34956 * time/alt_digit.c (_nl_get_alt_digit, _nl_get_walt_digit)
34957 (_nl_parse_alt_digit): Likewise.
34958 * time/era.c (_nl_init_era_entries, _nl_get_era_entry)
34959 (_nl_select_era_entry): Likewise.
34960 * time/lc-time-cleanup.c (_nl_cleanup_time): Likewise.
34961 * wcsmbs/wcsmbsload.c (__wcsmbs_load_conv, __wcsmbs_clone_conv)
34962 (__wcsmbs_named_conv, _nl_cleanup_ctype): Likewise.
34963 * wcsmbs/wcsmbsload.h (__wcsmbs_load_conv, __wcsmbs_clone_conv)
34964 (__wcsmbs_named_conv, _nl_cleanup_ctype): Likewise.
34965
34966 2017-08-31 Florian Weimer <fweimer@redhat.com>
34967
34968 * rt/aio_sigqueue.c (__aio_sigqueue): Remove internal_function.
34969 * sysdeps/generic/aio_misc.h (__aio_sigqueue): Likewise.
34970 * sysdeps/pthread/aio_misc.c (__aio_free_request, __aio_find_req)
34971 (__aio_find_req_fd, __aio_remove_request, __aio_enqueue_request):
34972 Likewise.
34973 * sysdeps/pthread/aio_misc.h (__aio_enqueue_request)
34974 (__aio_find_req, __aio_find_req_fd, __aio_free_request)
34975 (__aio_notify, __aio_notify_only, __aio_sigqueue): Likewise.
34976 * sysdeps/pthread/aio_notify.c (__aio_notify_only, __aio_notify):
34977 Likewise.
34978 * sysdeps/unix/sysv/linux/aio_sigqueue.c (__aio_sigqueue): Likewise.
34979
34980 2017-08-31 Florian Weimer <fweimer@redhat.com>
34981
34982 * misc/getttyent.c (skip, value): Remove internal_function.
34983 * misc/syslog.c (openlog_internal): Likewise.
34984 * misc/tsearch.c (trecurse, tdestroy_recurse): Likewise.
34985
34986 2017-08-31 Florian Weimer <fweimer@redhat.com>
34987
34988 * include/nss.h (__nss_valid_field, __nss_valid_list_field)
34989 (__nss_rewrite_field): Remove internal_function.
34990 * nscd/nscd_getgr_r.c (nscd_getgr_r): Likewise.
34991 * nscd/nscd_gethst_r.c (nscd_gethst_r): Likewise.
34992 * nscd/nscd_getpw_r.c (nscd_getpw_r): Likewise.
34993 * nss/nsswitch.c (nss_parse_file, nss_getline)
34994 (nss_parse_service_list, nss_new_service): Likewise.
34995 * nss/rewrite_field.c (__nss_rewrite_field): Likewise.
34996 * nss/valid_field.c (__nss_valid_field): Likewise.
34997 * nss/valid_list_field.c (__nss_valid_list_field): Likewise.
34998
34999 2017-08-31 Florian Weimer <fweimer@redhat.com>
35000
35001 * malloc/arena.c (__malloc_fork_lock_parent)
35002 (__malloc_fork_unlock_parent, __malloc_fork_unlock_child)
35003 (next_env_entry, new_heap, heap_trim, arena_get2): Remove
35004 internal_function from defintions.
35005 * malloc/hooks.c (mem2mem_check, mem2chunk_check): Likewise.
35006 * malloc/malloc-internal.h (__malloc_fork_lock_parent)
35007 (__malloc_fork_unlock_parent, __malloc_fork_unlock_child): Remove
35008 internal_function from declarations.
35009 * malloc/malloc.c (internal_function): Do not define.
35010 (mem2mem_check): Remove internal_function from declaration.
35011 (munmap_chunk, mremap_chunk): Remove internal_function.
35012 * malloc/mtrace.c (tr_where): Likewise.
35013
35014 2017-08-31 Florian Weimer <fweimer@redhat.com>
35015
35016 * include/rpc/pmap_clnt.h (__get_socket): Remove
35017 internal_function.
35018 * sunrpc/auth_des.c (synchronize): Likewise.
35019 * sunrpc/auth_unix.c (marshal_new_auth): Likewise.
35020 * sunrpc/clnt_perr.c (auth_errmsg): Likewise.
35021 * sunrpc/des_impl.c (des_encrypt, des_set_key): Likewise.
35022 * sunrpc/key_call.c (key_call_keyenvoy, key_call_socket)
35023 (key_call): Likewise.
35024 * sunrpc/pm_getport.c (__get_socket): Likewise.
35025 * sunrpc/pmap_rmt.c (getbroadcastnets): Likewise.
35026 * sunrpc/svc_unix.c (makefd_xprt): Likewise.
35027 * sunrpc/svc_tcp.c (makefd_xprt): Likewise.
35028 * sunrpc/svcauth_des.c (cache_init, cache_spot, cache_ref)
35029 (invalidate): Likewise.
35030 * sunrpc/xcrypt.c (hexval, hex2bin, bin2hex): Likewise.
35031 * sunrpc/xdr_rec.c (fix_buf_size, skip_input_bytes, flush_out)
35032 (set_input_fragment, get_input_bytes): Likewise.
35033
35034 2017-08-31 Florian Weimer <fweimer@redhat.com>
35035
35036 * malloc/malloc.c (_int_free): Remove locked variable and related
35037 asserts.
35038
35039 2017-08-31 H.J. Lu <hongjiu.lu@intel.com>
35040
35041 [BZ #22051]
35042 * Makerules (build-module-helper-objlist): Filter out
35043 $(elf-objpfx)sofini.os.
35044 (build-shlib-objlist): Append $(elf-objpfx)sofini.os if it is
35045 needed.
35046
35047 2017-08-31 Florian Weimer <fweimer@redhat.com>
35048
35049 * libio/fcloseall.c: Assume weak_alias is defined.
35050 * libio/feof.c: Likewise.
35051 * libio/fileno.c: Likewise.
35052 * libio/fileops.c: Assume _LIBC, errno, __set_errno are defined.
35053 (_POSIX_SOURCE, open, lseek, read, write): Remove macro
35054 definitions.
35055 (_IO_file_open): Call __open directly.
35056 (_IO_new_file_sync): Assume ESPIPE is defined.
35057 (_IO_file_seekoff_maybe_mmap): Call __read directly.
35058 (_IO_new_file_write): Call __write directly.
35059 * libio/ftello.c (__ftello): Assume EIO, EOVERFLOW are defined.
35060 * libio/ftello64.c (__ftello64): Assume EIO is defined.
35061 * libio/genops.c: Assume _LIBC is defined.
35062 (save_for_backup): Remove internal_function.
35063 * libio/getc.c: Assume weak_alias is defined.
35064 * libio/getwc.c: Likewise.
35065 * libio/iofclose.c: Assume _LIBC is defined.
35066 * libio/iofdopen.c: Likewise.
35067 (_IO_fcntl): Remove macro definition.
35068 (_IO_new_fdopen): Assume F_GETFL, F_SETFL, O_ACCMODE are defined.
35069 Call __fcntl directly.
35070 * libio/iofflush.c: Assume weak_alias is defined.
35071 * libio/iofgetpos.c (_IO_new_fgetpos): Assume EIO, EOVERFLOW are
35072 defined.
35073 * libio/iofgetpos64.c (_IO_new_fgetpos64): Assume EIO is defined.
35074 * libio/iofgets.c: Likewise.
35075 * libio/iofopen.c: Assume _LIBC is defined.
35076 * libio/iofopen64.c: Assume _LIBC, weak_alias are defined.
35077 * libio/iofputs.c: Assume weak_alias is defined.
35078 * libio/iofread.c: Likewise.
35079 * libio/iofsetpos.c (_IO_new_fsetpos): Assume EIO is defined.
35080 * libio/iofsetpos64.c (_IO_new_fsetpos64): Likewise.
35081 * libio/ioftell.c: Assume weak_alias is defined.
35082 (_IO_ftell): Assume EIO, EOVERFLOW are defined.
35083 * libio/iofwide.c: Assume _LIBC is defined.
35084 (_IO_fwide): Drop SHARED conditional because it is implied by
35085 SHLIB_COMPAT.
35086 * libio/iofwrite.c: Assume weak_alias is defined.
35087 * libio/iogetdelim.c: Likewise.
35088 * libio/iogets.c: Assume _LIBC, weak_alias are defined.
35089 * libio/iogetwline.c (wmemcpy): Remove macro definition.
35090 (_IO_getwline): Call __wmemcpy directly.
35091 * libio/iopopen.c: Assume _LIBC is defined.
35092 (_POSIX_SOURCE, _IO_fork, _IO_dup2, _IO_waitpid, _IO_execl)
35093 (_IO_close): Remove macro definitions.
35094 (_IO_new_proc_open): Call __fork, __dup2, __close_nocancel, execl,
35095 _exit directly.
35096 (_IO_new_proc_close): Call __close_nocancel, __waitpid_nocancel
35097 directly.
35098 * libio/ioputs.c: Assume weak_alias is defined.
35099 * libio/ioseekoff.c: Assume errno, __set_errno are defined.
35100 * libio/iosetbuffer.c: Assume weak_alias is defined.
35101 * libio/iosetvbuf.c: Likewise.
35102 * libio/ioungetc.c: Likewise.
35103 * libio/libioP.h: Assume _LIBC, __GLIBC__, libc_hidden_proto,
35104 libc_hidden_def, libc_hidden_weak, NULL are defined.
35105 (mmap, munmap, ftruncate, OS_FSTAT): Remove macro definitions.
35106 * libio/oldfilepos.c: Assume _LIBC, errno, __set_errno are
35107 defined.
35108 (_POSIX_SOURCE, open, lseek, read, write): Remove macro
35109 definitions.
35110 (_IO_old_file_init_internal): Drop SHARED conditional because it
35111 is implied by SHLIB_COMPAT.
35112 (_IO_old_file_fopen): Call __open directly.
35113 (_IO_old_file_sync): Assume ESPIPE is defined.
35114 (_IO_old_file_write): Call __write directly.
35115 * libio/oldfdopen.c (_IO_fcntl): Remove macro definition.
35116 (_IO_old_fdopen): Assume F_GETFL, O_ACCMODE, F_SETFL are defined.
35117 Call __fcntl directly.
35118 * libio/oldiofgetpos.c: Assume weak_alias is defined.
35119 (_IO_old_fgetpos): Assume EIO is defined.
35120 * libio/oldiofgetpos64.c: Assume weak_alias is defined.
35121 (_IO_old_fgetpos64): Assume EIO is defined.
35122 * libio/oldiofsetpos.c: Assume weak_alias is defined.
35123 (_IO_old_fsetpos): Assume EIO is defined.
35124 * libio/oldiofsetpos64.c: Assume weak_alias is defined.
35125 (_IO_old_fsetpos64): Assume EIO is defined.
35126 * libio/oldiopopen.c: Assume _LIBC is defined.
35127 (_POSIX_SOURCE, _IO_fork, _IO_dup2, _IO_waitpid, _IO_execl)
35128 (_IO_close): Remove macro definitions.
35129 (_IO_old_proc_open): Call __pipe, __close, __dup2, execl, _exit
35130 directly.
35131 (_IO_old_proc_close): Call __close, __waitpid directly.
35132 * libio/put.c: Assume weak_alias is defined.
35133 * libio/stdfiles.c: Assume _LIBC is defined.
35134 * libio/stdio.c: Likewise.
35135 * libio/wfileops.c: Likewise.
35136 (_IO_wfile_sync): Assume ESPIPE is defined.
35137 * libio/wgenops.c: Assume _LIBC is defined.
35138 (save_for_wbackup): Remove internal_function.
35139
35140 2017-08-31 Florian Weimer <fweimer@redhat.com>
35141
35142 * malloc/malloc.c (top_check): Change return type to void. Remove
35143 internal_function.
35144 * malloc/hooks.c (top_check): Likewise.
35145 (malloc_check, realloc_check, memalign_check): Adjust.
35146
35147 2017-08-30 Joseph Myers <joseph@codesourcery.com>
35148
35149 [BZ #21457]
35150 * sysdeps/arm/sys/ucontext.h: Do not include <bits/sigcontext.h>.
35151 * sysdeps/generic/sys/ucontext.h: Add comment about use of struct
35152 sigcontext and namespace requirements.
35153 * sysdeps/i386/sys/ucontext.h: Do not include <bits/sigcontext.h>.
35154 * sysdeps/m68k/sys/ucontext.h: Likewise.
35155 * sysdeps/mips/sys/ucontext.h: Likewise. Include <bits/types.h>.
35156 * sysdeps/unix/sysv/linux/aarch64/sys/ucontext.h: Do not include
35157 <bits/sigcontext.h>.
35158 (__ctx): Define earlier.
35159 (mcontext_t): Define structure contents rather than using struct
35160 sigcontext.
35161 * sysdeps/unix/sysv/linux/aarch64/ucontext_i.sym (oEXTENSION): Use
35162 __glibc_reserved1 instead of __reserved.
35163 * sysdeps/unix/sysv/linux/alpha/sys/ucontext.h: Do not include
35164 <bits/sigcontext.h>.
35165 (__ctx): Define earlier.
35166 (mcontext_t): Define structure contents rather than using struct
35167 sigcontext.
35168 * sysdeps/unix/sysv/linux/alpha/ucontext-offsets.sym: Use
35169 mcontext_t instead of struct sigcontext.
35170 * sysdeps/unix/sysv/linux/arm/sys/ucontext.h: Do not include
35171 <bits/sigcontext.h>.
35172 (__ctx): Define earlier.
35173 (mcontext_t): Define structure contents rather than using struct
35174 sigcontext.
35175 * sysdeps/unix/sysv/linux/hppa/sys/ucontext.h: Do not include
35176 <bits/sigcontext.h>.
35177 (__ctx): Define earlier.
35178 (mcontext_t): Define structure contents rather than using struct
35179 sigcontext.
35180 * sysdeps/unix/sysv/linux/ia64/makecontext.c (__makecontext): Use
35181 mcontext_t instead of struct sigcontext.
35182 * sysdeps/unix/sysv/linux/ia64/sigcontext-offsets.sym: Use
35183 mcontext_t instead of struct sigcontext.
35184 * sysdeps/unix/sysv/linux/ia64/sys/ucontext.h: Do not include
35185 <bits/sigcontext.h>.
35186 (__ctx): New macro.
35187 (struct __ia64_fpreg_mcontext): New type.
35188 (mcontext_t): Define structure contents rather than using struct
35189 sigcontext.
35190 (_SC_GR0_OFFSET): Use mcontext_t instead of struct sigcontext.
35191 (uc_sigmask): Define using __ctx.
35192 (uc_stack): Likewise.
35193 * sysdeps/unix/sysv/linux/ia64/sys/procfs.h: Include
35194 <bits/sigcontext.h>.
35195 * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Likewise.
35196 * sysdeps/unix/sysv/linux/m68k/sys/ucontext.h: Do not include
35197 <bits/sigcontext.h>.
35198 * sysdeps/unix/sysv/linux/microblaze/sys/ucontext.h: New file.
35199 * sysdeps/unix/sysv/linux/mips/sys/ucontext.h: Do not include
35200 <bits/sigcontext.h>.
35201 * sysdeps/unix/sysv/linux/nios2/sys/ucontext.h: Do not include
35202 <bits/sigcontext.h>.
35203 * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h: Do not include
35204 <bits/sigcontext.h>.
35205 * sysdeps/unix/sysv/linux/s390/sys/ucontext.h: Do not include
35206 <bits/sigcontext.h>.
35207 * sysdeps/unix/sysv/linux/sh/sys/ucontext.h: Do not include
35208 <bits/sigcontext.h>.
35209 * sysdeps/unix/sysv/linux/sparc/sys/ucontext.h: Do not include
35210 <bits/sigcontext.h>.
35211 * sysdeps/unix/sysv/linux/tile/sys/ucontext.h: Do not include
35212 <bits/sigcontext.h>.
35213 (__ctx): Define earlier.
35214 (mcontext_t): Define structure contents rather than using struct
35215 sigcontext.
35216 * sysdeps/unix/sysv/linux/x86/sys/ucontext.h: Do not include
35217 <bits/sigcontext.h>. Include <bits/types.h>.
35218 * conform/Makefile (test-xfail-XPG42/signal.h/conform): Remove.
35219 (test-xfail-XPG42/sys/wait.h/conform): Likewise.
35220 (test-xfail-XPG42/ucontext.h/conform): Likewise.
35221 (test-xfail-UNIX98/signal.h/conform): Likewise.
35222 (test-xfail-UNIX98/sys/wait.h/conform): Likewise.
35223 (test-xfail-UNIX98/ucontext.h/conform): Likewise.
35224 (test-xfail-XOPEN2K/signal.h/conform): Likewise.
35225 (test-xfail-XOPEN2K/sys/wait.h/conform): Likewise.
35226 (test-xfail-XOPEN2K/ucontext.h/conform): Likewise.
35227 (test-xfail-POSIX2008/signal.h/conform): Likewise.
35228 (test-xfail-POSIX2008/sys/wait.h/conform): Likewise.
35229 (test-xfail-XOPEN2K8/signal.h/conform): Likewise.
35230 (test-xfail-XOPEN2K8/sys/wait.h/conform): Likewise.
35231
35232 2017-08-30 Florian Weimer <fweimer@redhat.com>
35233
35234 * malloc/dynarray_emplace_enlarge.c
35235 (__libc_dynarray_emplace_enlarge): Set errno on overflow.
35236 * malloc/dynarray_resize.c (__libc_dynarray_resize): Likewise.
35237 * malloc/tst-dynarray.c (test_long_overflow): New function.
35238 (do_test): Call it.
35239
35240 2017-08-30 Florian Weimer <fweimer@redhat.com>
35241
35242 * malloc/malloc.c (ARENA_CORRUPTION_BIT, arena_is_corrupt)
35243 (set_arena_corrupt): Remove definitions.
35244 (mtrim): Do not check for corrupt arena.
35245 * malloc/arena.c (arena_lock, reused_arena, arena_get_retry):
35246 Likewise.
35247
35248 2017-08-30 Florian Weimer <fweimer@redhat.com>
35249
35250 [BZ #21754]
35251 * malloc/arena.c (TUNABLE_CALLBACK set_mallopt_check): Do not set
35252 check_action.
35253 (ptmalloc_init): Do not set or use check_action.
35254 * malloc/hooks.c (malloc_check_get_size, realloc_check): Adjust
35255 call to malloc_printerr. Remove return statement.
35256 (free_check): Likewise. Remove arena unlock.
35257 (top_check): Update comment. Adjust call to malloc_printerr.
35258 Remove heap repair code.
35259 * malloc/malloc.c (unlink): Adjust calls to malloc_printerr.
35260 (DEFAULT_CHECK_ACTION, check_action): Remove definitions.
35261 (sysmalloc): Adjust call to malloc_printerr.
35262 (munmap_chunk, __libc_realloc): Likewise. Remove return
35263 statement.
35264 (_int_malloc, int_realloc): Likewise. Remove errstr variable.
35265 Remove errout label and corresponding gotos.
35266 (_int_free): Likewise. Remove arena unlock.
35267 (do_set_mallopt_check): Do not set check_action.
35268 (malloc_printerr): Adjust parameter list. Do not mark arena as
35269 corrupt.
35270 * manual/memory.texi (Malloc Tunable Parameters): Remove TODO
35271 comment.
35272 * manual/probes.texi (Memory Allocation Probes): Remove
35273 memory_mallopt_check_action.
35274
35275 2017-08-30 Steve Ellcey <sellcey@cavium.com>
35276
35277 * sysdeps/unix/sysv/linux/aarch64/makecontext.c (__makecontext):
35278 Use pointer to uint64_t instead of long int for sp.
35279
35280 2017-08-30 Florian Weimer <fweimer@redhat.com>
35281
35282 [BZ #21754]
35283 * malloc/malloc.c (malloc_printerr): Always terminate the process,
35284 without printing a backtrace. Do not leak any information in the
35285 error message.
35286 * manual/memory.texi (Heap Consistency Checking): Update.
35287 * manual/tunables.texi (Memory Allocation Tunables): Likewise.
35288
35289 2017-08-30 Florian Weimer <fweimer@redhat.com>
35290
35291 Do not scale NPTL tests with available number of CPUs.
35292 * nptl/tst-cond16.c (count): Set to constant value of 8.
35293 * nptl/tst-cond18.c (count): Likewise.
35294
35295 2017-08-29 Joseph Myers <joseph@codesourcery.com>
35296
35297 [BZ #22035]
35298 * sysdeps/m68k/m680x0/fpu/bits/mathinline.h (__inline_functions):
35299 Define to take a second argument that is a macro that
35300 concatentates a suffix, not the suffix itself.
35301 (__CONCAT_d): New macro.
35302 (__CONCAT_f): Likewise.
35303 (__CONCAT_l): Likewise.
35304
35305 2017-08-29 Paul Pluzhnikov <ppluzhnikov@google.com>
35306
35307 * stdlib/tst-atexit-common.c (do_test): Test handler inheritance
35308 by child.
35309
35310 2017-08-29 Adhemerval Zanella <adhemerval.zanella@linaro.org>
35311 Aurelien Jarno <aurelien@aurel32.net>
35312 Maciej W. Rozycki <macro@imgtec.com>
35313
35314 [BZ #21956]
35315 * sysdeps/unix/sysv/linux/mips/mips32/mips16/Makefile
35316 [subdir = misc] (sysdep_routines): Remove `mips16-syscall5',
35317 `mips16-syscall6' and `mips16-syscall7'.
35318 (CFLAGS-mips16-syscall5.c, CFLAGS-mips16-syscall6.c)
35319 (CFLAGS-mips16-syscall7.c): Remove.
35320 * sysdeps/unix/sysv/linux/mips/mips32/mips16/Versions (libc):
35321 Remove `__mips16_syscall5', `__mips16_syscall6' and
35322 `__mips16_syscall7'.
35323 * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall0.c
35324 (__mips16_syscall0): Rename `__mips16_syscall_return' to
35325 `__mips_syscall_return'.
35326 * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall1.c
35327 (__mips16_syscall1): Likewise.
35328 * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall2.c
35329 (__mips16_syscall2): Likewise.
35330 * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall3.c
35331 (__mips16_syscall3): Likewise.
35332 * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall4.c
35333 (__mips16_syscall4): Likewise.
35334 * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall5.c:
35335 Remove.
35336 * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall6.c:
35337 Remove.
35338 * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall7.c:
35339 Remove.
35340 * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall.h
35341 (__mips16_syscall5): Expand to `__mips_syscall5' rather than
35342 `__mips16_syscall5'. Remove prototype.
35343 (__mips16_syscall6): Expand to `__mips_syscall6' rather than
35344 `__mips16_syscall6'. Remove prototype.
35345 (__mips16_syscall7): Expand to `__mips_syscall7' rather than
35346 `__mips16_syscall7'. Remove prototype.
35347 (__nomips16, __mips16_syscall_return): Move to...
35348 * sysdeps/unix/sysv/linux/mips/mips32/sysdep.h
35349 (__nomips16, __mips_syscall_return): ... here.
35350 [__mips16] (INTERNAL_SYSCALL_NCS): Rename
35351 `__mips16_syscall_return' to `__mips_syscall_return'.
35352 [__mips16] (INTERNAL_SYSCALL_MIPS16): Pass `number' to
35353 `internal_syscall##nr'.
35354 [!__mips16] (INTERNAL_SYSCALL): Pass `SYS_ify (name)' to
35355 `internal_syscall##nr'.
35356 (FORCE_FRAME_POINTER): Remove.
35357 (__mips_syscall5): New prototype.
35358 (internal_syscall5): Rewrite to call `__mips_syscall5'.
35359 (__mips_syscall6): New prototype.
35360 (internal_syscall6): Rewrite to call `__mips_syscall6'.
35361 (__mips_syscall7): New prototype.
35362 (internal_syscall7): Rewrite to call `__mips_syscall7'.
35363 * sysdeps/unix/sysv/linux/mips/mips32/mips-syscall5.S: New file.
35364 * sysdeps/unix/sysv/linux/mips/mips32/mips-syscall6.S: New file.
35365 * sysdeps/unix/sysv/linux/mips/mips32/mips-syscall7.S: New file.
35366 * sysdeps/unix/sysv/linux/mips/mips32/Makefile [subdir = misc]
35367 (sysdep_routines): Add libc-do-syscall.
35368 * sysdeps/unix/sysv/linux/mips/mips32/Versions (libc): Add
35369 `__mips_syscall5', `__mips_syscall6' and `__mips_syscall7'.
35370
35371 2017-08-29 Adhemerval Zanella <adhemerval.zanella@linaro.org>
35372
35373 [BZ #21672]
35374 * nptl/allocatestack.c [_STACK_GROWS_DOWN] (setup_stack_prot):
35375 Set to use !NEED_SEPARATE_REGISTER_STACK as well.
35376 (advise_stack_range): New function.
35377 * nptl/pthread_create.c (START_THREAD_DEFN): Move logic to mark
35378 stack non required to advise_stack_range at allocatestack.c
35379
35380 2017-08-29 Szabolcs Nagy <szabolcs.nagy@arm.com>
35381
35382 * sysdeps/unix/sysv/linux/aarch64/sys/procfs.h: Use __uint64_t.
35383
35384 2017-08-29 Florian Weimer <fweimer@redhat.com>
35385
35386 [BZ #22026]
35387 * iconv/gconv_db.c (gen_steps): Decrement step_cnt after resetting
35388 __end_fct. Mangle __end_fct after setting it to NULL.
35389 * iconv/Makefile (tests): Add tst-gconv-init-failure.
35390 (modules-names, modules-names-tests): Add
35391 tst-gconv-init-failure-mod.
35392 (gconv-modules): New target.
35393 (tst-gconv-init-failure-mod.so): Link against libsupport.
35394 (tst-gconv-init-failure): Depend on gconv-modules,
35395 tst-gconv-init-failure-mod.so.
35396 * iconv/tst-gconv-init-failure-mod.c: New file.
35397 * iconv/tst-gconv-init-failure.c: Likewise.
35398 * iconv/test-gconv-modules: Likewise.
35399
35400 2017-08-29 Florian Weimer <fweimer@redhat.com>
35401
35402 [BZ #22025]
35403 * iconv/gconv_db.c (free_derivation): Remove redundant
35404 parentheses.
35405 (gen_steps): Unconditionally mangle __btowc_fct after
35406 initialization.
35407 (increment_counter): Likewise. Do not call init_fct for internal
35408 modules.
35409
35410 2017-08-29 Joseph Myers <joseph@codesourcery.com>
35411
35412 [BZ #22028]
35413 * math/math.h [__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0]
35414 (_MSUF_): Remove macro.
35415 [__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0] (_MSUFTO_):
35416 Likewise.
35417 [__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0]
35418 (__REDIRFROM_X): New macro.
35419 [__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0] (__REDIRTO_X):
35420 Likewise.
35421 * math/bits/math-finite.h (__REDIRFROM_X): Remove macro.
35422 (__REDIRTO_X): Likewise.
35423 (__MATH_REDIRCALL): Do not pass _MSUF_ or _MSUFTO_ macro
35424 arguments.
35425 (__MATH_REDIRCALL_2): Likewise.
35426 (__MATH_REDIRCALL_INTERNAL): Likewise.
35427 (__REDIRFROM (lgamma, , _MSUF_)): Likewise.
35428 (__REDIRFROM (gamma, , _MSUF_)): Likweise.
35429 (__REDIRFROM (__gamma, _r_finite, _MSUF_)): Likewise.
35430 (__REDIRFROM (tgamma, , _MSUF_)): Likewise.
35431 * math/test-finite-macros.c: New file.
35432 * math/Makefile (tests): Add test-finite-macros.
35433 (CFLAGS-test-finite-macros.c): New variable.
35434
35435 2017-08-29 Patsy Franklin <pfrankli@redhat.com>
35436 Jeff Law <law@redhat.com>
35437
35438 [BZ #22025]
35439 Mangle NULL pointers in iconv/gconv.
35440 * iconv/gconv_cache.c (find_module): Demangle init_fct before
35441 checking for NULL. Mangle __btowc_fct if init_fct is non-NULL.
35442 * iconv/gconv_db.c (free_derivation): Check that __shlib_handle
35443 is non-NULL before demangling the end_fct. Check for NULL
35444 end_fct after demangling.
35445 (__gconv_release_step): Demangle the end_fct before checking
35446 it for NULL. Remove assert on __shlibc_handle != NULL.
35447 (gen_steps): Don't check btowc_fct for NULL before mangling.
35448 Demangle init_fct before checking for NULL.
35449 (increment_counter): Likewise.
35450 * gconv_dl.c (__gconv_find_shlib): Don't check init_fct or
35451 end_fct for NULL before mangling.
35452 * wcsmbs/btowc.c (__btowc): Demangle btowc_fct before checking
35453 for NULL.
35454
35455 2017-08-29 Akhilesh Kumar <akhilesh.k@samsung.com>
35456
35457 [BZ #21971]
35458 * locale/iso-639.def: add Morisyen.
35459
35460 2017-08-28 Gabriel F. T. Gomes <gftg@linux.vnet.ibm.com>
35461
35462 [BZ #21930]
35463 * math/math.h [defined __cplusplus && defined __SUPPORT_SNAN__]
35464 (iszero): New C++ implementation that does not use
35465 fpclassify/__MATH_TG/__builtin_types_compatible_p, when
35466 signaling nans are enabled, since __builtin_types_compatible_p
35467 is a C-only feature.
35468 * math/test-math-iszero.cc: When __HAVE_DISTINCT_FLOAT128 is
35469 defined, include ieee754_float128.h for access to the union and
35470 member ieee854_float128.ieee.
35471 [__HAVE_DISTINCT_FLOAT128] (do_test): Call check_float128.
35472 [__HAVE_DISTINCT_FLOAT128] (check_float128): New function.
35473 * sysdeps/powerpc/powerpc64le/Makefile [subdir == math]
35474 (CXXFLAGS-test-math-iszero.cc): Add -mfloat128 to the build
35475 options of test-math-zero on powerpc64le.
35476
35477 2017-08-28 H.J. Lu <hongjiu.lu@intel.com>
35478
35479 * sysdeps/x86_64/fpu/multiarch/e_expf.c (__redirect_ieee754_expf):
35480 Change double to float.
35481
35482 2017-08-28 Joseph Myers <joseph@codesourcery.com>
35483
35484 * math/math-svid-compat.h [!__ASSEMBLER__]: Make code
35485 unconditional.
35486 * sysdeps/ieee754/s_lib_version.c [!defined SHARED]: Remove
35487 conditional code; define contents only for [LIBM_SVID_COMPAT].
35488
35489 2017-08-28 Florian Weimer <fweimer@redhat.com>
35490
35491 * sysdeps/unix/sysv/linux/aarch64/Makefile (abi-lp64-options)
35492 (abi-lp64_be-options): Remove.
35493 * sysdeps/unix/sysv/linux/arm/Makefile (abi-soft-options)
35494 (abi-hard-options): Likewise.
35495 * sysdeps/unix/sysv/linux/mips/Makefile(abi-o32_soft-options)
35496 (abi-o32_hard-options, abi-o32_soft_2008-options)
35497 (abi-o32_hard_2008-options, abi-n32_soft-options)
35498 (abi-n32_hard-options, abi-n32_soft_2008-options)
35499 (abi-n32_hard_2008-options, abi-n64_soft-options)
35500 (abi-n64_hard-options, abi-n64_soft_2008-options)
35501 (abi-n64_hard_2008-options): Likewise.
35502 * sysdeps/unix/sysv/linux/powerpc/Makefile (abi-32-options)
35503 (abi-64-v1-options, abi-64-v2-options): Likewise.
35504 * sysdeps/unix/sysv/linux/s390/Makefile (abi-32-options)
35505 (abi-64-options): Likewise.
35506 * sysdeps/unix/sysv/linux/sparc/Makefile (abi-32-options)
35507 (abi-64-options): Likewise.
35508 * sysdeps/unix/sysv/linux/tile/tilegx/Makefile (abi-32-options)
35509 (abi-64-options): Likewise.
35510 * sysdeps/unix/sysv/linux/x86/Makefile (abi-32-options)
35511 (abi-64-options, abi-x32-options): Likewise.
35512
35513 2017-08-28 Florian Weimer <fweimer@redhat.com>
35514
35515 Store supported list of SYS_* system calls in the source tree.
35516 * sysdeps/unix/sysv/linux/Makefile [$(subdir) = misc]
35517 (bits/syscall.h): Generate from list file.
35518 [$(subdir) = misc] (before-compile): Add bits/syscall.h.
35519 [$(subdir) = misc] (tests): Add tst-syscall-list.
35520 [$(subdir) = misc] (tests-special): Add tst-syscall-list.out
35521 [$(subdir) = misc] (tst-syscall-list-macros.list)
35522 [$(subdir) = misc] (tst-syscall-list-nr.list)
35523 (tst-syscall-list-sys.list): Helper targets for new
35524 tst-syscall-list test.
35525 [$(subdir) = misc] (tst-syscall-list.out): Run test script
35526 tst-syscall-list.sh.
35527 [$(subdir) = misc] (bits/syscall%h, bits/syscall%d): Remove
35528 target. Do not include bits/syscall.d.
35529 [$(subdir) = misc] (generated): Do not update.
35530 * sysdeps/unix/sysv/linux/syscall-names.list: New file.
35531 * sysdeps/unix/sysv/linux/gen-syscall-h.awk: Likewise.
35532 * sysdeps/unix/sysv/linux/filter-nr-syscalls.awk: Likewise.
35533 * sysdeps/unix/sysv/linux/tst-syscall-list.sh: Likewise.
35534
35535 2017-08-27 Paul Pluzhnikov <ppluzhnikov@google.com>
35536
35537 * stdlib/Makefile (tst-atexit, tst-at_quick_exit): New tests.
35538 (tst-cxa_atexit, tst-on_exit): Likewise.
35539 * stdlib/Makefile (tests): Add tst-atexit, tst-at_quick_exit,
35540 tst-cxa_atexit, and tst-on_exit.
35541 * stdlib/tst-atexit-common.c: New file.
35542 * stdlib/tst-atexit.c: New file.
35543 * stdlib/tst-at_quick_exit.c: New file.
35544 * stdlib/tst-cxa_atexit.c: New file.
35545 * stdlib/tst-on_exit.c: New file.
35546
35547 2017-08-27 Samuel Thibault <samuel.thibault@ens-lyon.org>
35548
35549 * sysdeps/mach/hurd/bits/sysmacros.h: New file.
35550 * mach/stack_chk_fail_local.c: New file.
35551 * hurd/stack_chk_fail_local.c: New file.
35552 * mach/Machrules ($(interface-library)-routines): Add
35553 stack_chk_fail_local.
35554 * mach/Makefile (CFLAGS-mach_init.o, CFLAGS-RPC_vm_statistics.o,
35555 CFLAGS-RPC_vm_map.o, CFLAGS-RPC_vm_protect.o,
35556 CFLAGS-RPC_i386_set_gdt.o, CFLAGS-RPC_i386_set_ldt.o,
35557 CFLAGS-RPC_task_get_special_port.o): Add $(no-stack-protector).
35558 * hurd/Makefile (CFLAGS-hurdstartup.o,
35559 CFLAGS-RPC_exec_startup_get_info.o): Add $(no-stack-protector).
35560
35561 2017-08-25 H.J. Lu <hongjiu.lu@intel.com>
35562
35563 * sysdeps/x86/cpu-features.h [__ASSEMBLER__]
35564 (index_cpu_*, index_arch_*): Removed.
35565
35566 2017-08-25 Szabolcs Nagy <szabolcs.nagy@arm.com>
35567
35568 * sysdeps/unix/sysv/linux/aarch64/sys/procfs.h (elf_greg_t):
35569 Use uint64_t instead of unsigned long.
35570
35571 2017-08-25 Joseph Myers <joseph@codesourcery.com>
35572
35573 * math/tgmath.h [__HAVE_FLOAT128]: Change conditional to
35574 [__HAVE_DISTINCT_FLOAT128].
35575
35576 * math/math.h (_MSUFTO_): Define and undefine for each inclusion
35577 of <bits/math-finite.h>.
35578 (__MATH_DECLARING_LDOUBLE): Do not define and undefine for each
35579 inclusion of <bits/math-finite.h>.
35580 * math/bits/math-finite.h (__REDIRTO_X): Do not define
35581 conditionally on [__MATH_DECLARING_LDOUBLE && defined
35582 __NO_LONG_DOUBLE_MATH].
35583 (__MATH_REDIRCALL): Use _MSUFTO_ in __REDIRTO call.
35584 (__MATH_REDIRCALL_2): Likewise.
35585 (__MATH_REDIRCALL_INTERNAL): Likewise.
35586 (__REDIRFROM (lgamma, , _MSUF_)): Likewise.
35587 (__REDIRFROM (gamma, , _MSUF_)): Likewise.
35588 (__REDIRFROM (tgamma, , _MSUF_)): Likewise.
35589
35590 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrt_compat-power5.S:
35591 Remove file.
35592 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrt_compat-ppc32.S:
35593 Likewise.
35594 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrt_compat.c:
35595 Likewise.
35596 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrtf_compat-power5.S:
35597 Likewise.
35598 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrtf_compat-ppc32.S:
35599 Likewise.
35600 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrtf_compat.c:
35601 Likewise.
35602 * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt_compat.S: Likewise.
35603 * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrtf_compat.S: Likewise.
35604 * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrt_compat.S: Likewise.
35605 * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrtf_compat.S: Likewise.
35606 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile
35607 (libm-sysdep-routines): Remove w_sqrt_compat-power5,
35608 w_sqrt_compat-ppc32, w_sqrtf_compat-power5 and
35609 w_sqrtf_compat-ppc32.
35610
35611 2017-08-24 Gabriel F. T. Gomes <gftg@linux.vnet.ibm.com>
35612
35613 * math/math.h [defined __cplusplus] (issignaling): In the long
35614 double case, call __issignalingl only if __NO_LONG_DOUBLE_MATH
35615 is not defined. Call __issignaling, otherwise.
35616
35617 2017-08-24 Adhemerval Zanella <adhemerval.zanella@linaro.org>
35618
35619 * sysdeps/unix/make-syscalls.sh: Remove cancellable tagging for
35620 syscall definitions and replace __builtin_expect with __glibc_likely.
35621 * sysdeps/unix/syscall-template.S: Update comment about cancellable
35622 syscall.
35623 (SYSCALL_CANCELLABLE): Removedefinition
35624 * sysdeps/unix/sysv/linux/aarch64/sysdep-cancel.h (PSEUDO): Remove
35625 definition.
35626 (PSEUDO_END): Likewise.
35627 [IS_IN (libpthread)] (CENABLE): Likewise.
35628 [IS_IN (libpthread)] (CDISABLE): Likewise.
35629 [IS_IN (libc)] (CENABLE): Likewise.
35630 [IS_IN (libc)] (CENABLE): Likewise.
35631 [IS_IN (librt)] (CDISABLE): Likewise.
35632 [IS_IN (librt)] (CDISABLE): Likewise.
35633 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
35634 * sysdeps/unix/sysv/linux/alpha/sysdep-cancel.h (PSEUDO): Remove
35635 definition.
35636 (PSEUDO_END): Likewise.
35637 [IS_IN (libpthread)] (__local_enable_asynccancel): Likewise.
35638 [IS_IN (libpthread)] (__local_disable_asynccancel): Likewise.
35639 [IS_IN (libc)] (__local_enable_asynccancel): Likewise.
35640 [IS_IN (libc)] (__local_enable_asynccancel): Likewise.
35641 [IS_IN (librt)] (__local_disable_asynccancel): Likewise.
35642 [IS_IN (librt)] (__local_disable_asynccancel): Likewise.
35643 (CENABLE): Likewise.
35644 (CDISABLE): Likewise.
35645 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
35646 * sysdeps/unix/sysv/linux/arm/sysdep-cancel.h (PSEUDO): Remove
35647 defintion.
35648 (PSEUDO_END): Likewise.
35649 [IS_IN (libpthread)] (CENABLE): Likewise.
35650 [IS_IN (libpthread)] (CDISABLE): Likewise.
35651 [IS_IN (libc)] (CENABLE): Likewise.
35652 [IS_IN (libc)] (CENABLE): Likewise.
35653 [IS_IN (librt)] (CDISABLE): Likewise.
35654 [IS_IN (librt)] (CDISABLE): Likewise.
35655 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
35656 * sysdeps/unix/sysv/linux/hppa/sysdep-cancel.h (PSEUDO): Remove
35657 definition.
35658 (PSEUDO_END): Likewise.
35659 [IS_IN (libpthread)] (CENABLE): Likewise.
35660 [IS_IN (libpthread)] (CDISABLE): Likewise.
35661 [IS_IN (libc)] (CENABLE): Likewise.
35662 [IS_IN (libc)] (CENABLE): Likewise.
35663 [IS_IN (librt)] (CDISABLE): Likewise.
35664 [IS_IN (librt)] (CDISABLE): Likewise.
35665 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
35666 * sysdeps/unix/sysv/linux/i386/sysdep-cancel.h (PSEUDO): Remove
35667 definition.
35668 (PSEUDO_END): Likewise.
35669 [IS_IN (libpthread)] (CENABLE): Likewise.
35670 [IS_IN (libpthread)] (CDISABLE): Likewise.
35671 [IS_IN (libc)] (CENABLE): Likewise.
35672 [IS_IN (libc)] (CENABLE): Likewise.
35673 [IS_IN (librt)] (CDISABLE): Likewise.
35674 [IS_IN (librt)] (CDISABLE): Likewise.
35675 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
35676 * sysdeps/unix/sysv/linux/ia64/sysdep-cancel.h (PSEUDO): Remove
35677 definition.
35678 (PSEUDO_END): Likewise.
35679 [IS_IN (libpthread)] (CENABLE): Likewise.
35680 [IS_IN (libpthread)] (CDISABLE): Likewise.
35681 [IS_IN (libc)] (CENABLE): Likewise.
35682 [IS_IN (libc)] (CENABLE): Likewise.
35683 [IS_IN (librt)] (CDISABLE): Likewise.
35684 [IS_IN (librt)] (CDISABLE): Likewise.
35685 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
35686 * sysdeps/unix/sysv/linux/m68k/sysdep-cancel.h (PSEUDO): Remove
35687 definition.
35688 (PSEUDO_END): Likewise.
35689 [IS_IN (libpthread)] (CENABLE): Likewise.
35690 [IS_IN (libpthread)] (CDISABLE): Likewise.
35691 [IS_IN (libc)] (CENABLE): Likewise.
35692 [IS_IN (libc)] (CENABLE): Likewise.
35693 [IS_IN (librt)] (CDISABLE): Likewise.
35694 [IS_IN (librt)] (CDISABLE): Likewise.
35695 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
35696 * sysdeps/unix/sysv/linux/microblaze/sysdep-cancel.h (PSEUDO): Remove
35697 definition.
35698 (PSEUDO_END): Likewise.
35699 [IS_IN (libpthread)] (CENABLE): Likewise.
35700 [IS_IN (libpthread)] (CDISABLE): Likewise.
35701 [IS_IN (libc)] (CENABLE): Likewise.
35702 [IS_IN (libc)] (CENABLE): Likewise.
35703 [IS_IN (librt)] (CDISABLE): Likewise.
35704 [IS_IN (librt)] (CDISABLE): Likewise.
35705 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
35706 * sysdeps/unix/sysv/linux/mips/mips64/sysdep-cancel.h (PSEUDO):
35707 Remove 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 (SINGLE_THREAD_P): Likewise.
35716 * sysdeps/unix/sysv/linux/mips/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/nios2/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/sysv/linux/powerpc/powerpc32/sysdep-cancel.h: Remove file.
35737 * sysdeps/sysv/linux/powerpc/powerpc64/sysdep-cancel.h: Likewise.
35738 * sysdeps/unix/sysv/linux/powerpc/sysdep-cancel.h: New file.
35739 * sysdeps/unix/sysv/linux/s390/s390-32/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/s390/s390-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 * sysdeps/unix/sysv/linux/sh/sysdep-cancel.h (PSEUDO): Remove
35760 definition.
35761 (PSEUDO_END): Likewise.
35762 [IS_IN (libpthread)] (CENABLE): Likewise.
35763 [IS_IN (libpthread)] (CDISABLE): Likewise.
35764 [IS_IN (libc)] (CENABLE): Likewise.
35765 [IS_IN (libc)] (CENABLE): Likewise.
35766 [IS_IN (librt)] (CDISABLE): Likewise.
35767 [IS_IN (librt)] (CDISABLE): Likewise.
35768 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
35769 * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep-cancel.h: Remove file.
35770 * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep-cancel.h: Likewise.
35771 * sysdeps/unix/sysv/linux/sparc/sysdep-cancel.h: New file.
35772 * sysdeps/unix/sysv/linux/tile/sysdep-cancel.h (PSEUDO): Remove
35773 definition.
35774 (PSEUDO_END): Likewise.
35775 [IS_IN (libpthread)] (CENABLE): Likewise.
35776 [IS_IN (libpthread)] (CDISABLE): Likewise.
35777 [IS_IN (libc)] (CENABLE): Likewise.
35778 [IS_IN (libc)] (CENABLE): Likewise.
35779 [IS_IN (librt)] (CDISABLE): Likewise.
35780 [IS_IN (librt)] (CDISABLE): Likewise.
35781 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
35782 * sysdeps/unix/sysv/linux/x86_64/sysdep-cancel.h (PSEUDO): Remove
35783 definition.
35784 (PSEUDO_END): Likewise.
35785 [IS_IN (libpthread)] (CENABLE): Likewise.
35786 [IS_IN (libpthread)] (CDISABLE): Likewise.
35787 [IS_IN (libc)] (CENABLE): Likewise.
35788 [IS_IN (libc)] (CENABLE): Likewise.
35789 [IS_IN (librt)] (CDISABLE): Likewise.
35790 [IS_IN (librt)] (CDISABLE): Likewise.
35791 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
35792
35793 2017-08-24 Szabolcs Nagy <szabolcs.nagy@arm.com>
35794
35795 * sysdeps/ieee754/dbl-64/Makefile: Don't override CFLAGS.
35796
35797 2017-08-23 H.J. Lu <hongjiu.lu@intel.com>
35798
35799 * sysdeps/x86_64/fpu/libm-test-ulps: Regenerated.
35800
35801 2017-08-23 H.J. Lu <hongjiu.lu@intel.com>
35802
35803 [BZ #21982]
35804 * string/stratcliff.c (do_test): Declare size, nchars, inner,
35805 middle and outer with size_t instead of int. Repleace %d and
35806 %Zd with %zu in printf. Update "MAX (0, nchars - 128)" and
35807 "MAX (outer, nchars - 64)" to support unsigned outer and
35808 nchars. Also exit loop when outer == 0.
35809
35810 2017-08-23 Adhemerval Zanella <adhemerval.zanella@linaro.org>
35811
35812 * include/fcntl.h (__fcntl_nocancel): Remove definition.
35813 * include/signal.h (__sigsuspend_nocancel): Likewise.
35814 * include/time.h (__nanosleep_nocancel): Likewise.
35815 * sysdeps/generic/not-cancel.h (__fcntl_nocancel): New macro.
35816 * login/utmp_file.c: Include non cancellable syscall header.
35817 * sysdeps/unix/sysv/linux/not-cancel.h (__fcntl_nocancel): New
35818 prototype.
35819
35820 2017-08-23 H.J. Lu <hongjiu.lu@intel.com>
35821
35822 * sysdeps/x86_64/fpu/svml_d_sincos8_core.S: Replace AVX512F
35823 .byte sequences with AVX512F instructions.
35824 * sysdeps/x86_64/fpu/svml_d_wrapper_impl.h: Likewise.
35825 * sysdeps/x86_64/fpu/svml_s_sincosf16_core.S: Likewise.
35826 * sysdeps/x86_64/fpu/svml_s_wrapper_impl.h: Likewise.
35827 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos8_core_avx512.S:
35828 Likewise.
35829 * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf16_core_avx512.S:
35830 Likewise.
35831
35832 2017-08-22 Szabolcs Nagy <szabolcs.nagy@arm.com>
35833 Steve Ellcey <sellcey@cavium.com>
35834
35835 * sysdeps/aarch64/dl-tlsdesc.S (_dl_tlsdesc_dynamic):
35836 Use PTR_REG macro in cmp instruction.
35837
35838 2017-08-22 Gabriel F. T. Gomes <gftg@linux.vnet.ibm.com>
35839
35840 * include/libc-symbols.h: [!defined HAVE_GCC_IFUNC] (__ifunc):
35841 Change the return type of the ifunc resolver to match the return
35842 type of the target function.
35843
35844 2017-08-22 Adhemerval Zanella <adhemerval.zanella@linaro.org>
35845
35846 * sysdeps/unix/sysv/linux/x86_64/syscalls.list (pread64): Remove.
35847 (preadv64): Likewise.
35848 (pwrite64(: Likewise.
35849 (pwritev64): Likewise.
35850
35851 * sysdeps/unix/sysv/linux/x86_64/sysdep.h
35852 (INTERNAL_SYSCALL_NCS_TYPES): Remove define.
35853 (LOAD_ARGS_0): Likewise.
35854 (LOAD_ARGS_1): Likewise.
35855 (LOAD_ARGS_2): Likewise.
35856 (LOAD_ARGS_3): Likewise.
35857 (LOAD_ARGS_4): Likewise.
35858 (LOAD_ARGS_5): Likewise.
35859 (LOAD_ARGS_6): Likewise.
35860 (LOAD_REGS_0): Likewise.
35861 (LOAD_REGS_1): Likewise.
35862 (LOAD_REGS_2): Likewise.
35863 (LOAD_REGS_3): Likewise.
35864 (LOAD_REGS_4): Likewise.
35865 (LOAD_REGS_5): Likewise.
35866 (LOAD_REGS_6): Likewise.
35867 (ASM_ARGS_0): Likewise.
35868 (ASM_ARGS_1): Likewise.
35869 (ASM_ARGS_2): Likewise.
35870 (ASM_ARGS_3): Likewise.
35871 (ASM_ARGS_4): Likewise.
35872 (ASM_ARGS_5): Likewise.
35873 (ASM_ARGS_6): Likewise.
35874 (LOAD_ARGS_TYPES_1): Likewise.
35875 (LOAD_ARGS_TYPES_2): Likewise.
35876 (LOAD_ARGS_TYPES_3): Likewise.
35877 (LOAD_ARGS_TYPES_4): Likewise.
35878 (LOAD_ARGS_TYPES_5): Likewise.
35879 (LOAD_ARGS_TYPES_6): Likewise.
35880 (LOAD_REGS_TYPES_1): Likewise.
35881 (LOAD_REGS_TYPES_2): Likewise.
35882 (LOAD_REGS_TYPES_3): Likewise.
35883 (LOAD_REGS_TYPES_4): Likewise.
35884 (LOAD_REGS_TYPES_5): Likewise.
35885 (LOAD_REGS_TYPES_6): Likewise.
35886 (TYPEFY): New define.
35887 (ARGIFY): Likewise.
35888 (internal_syscall0): Likewise.
35889 (internal_syscall1): Likewise.
35890 (internal_syscall2): Likewise.
35891 (internal_syscall3): Likewise.
35892 (internal_syscall4): Likewise.
35893 (internal_syscall5): Likewise.
35894 (internal_syscall6): Likewise.
35895 * sysdeps/unix/sysv/linux/x86_64/x32/times.c
35896 (INTERNAL_SYSCALL_NCS): Remove define.
35897 (internal_syscall1): Add define.
35898
35899 2017-08-22 Gabriel F. T. Gomes <gftg@linux.vnet.ibm.com>
35900
35901 * math/w_remainder_compat.c: Remove duplicate inclusion of
35902 math-svid-compat.h.
35903 * math/w_remainderf_compat.c: Likewise.
35904 * math/w_remainderl_compat.c: Likewise.
35905
35906 2017-08-22 Gabriel F. T. Gomes <gftg@linux.vnet.ibm.com>
35907
35908 * sysdeps/powerpc/fpu/libm-test-ulps: Update.
35909
35910 2017-08-22 Joseph Myers <joseph@codesourcery.com>
35911
35912 [BZ #21684]
35913 * math/tgmath.h (__floating_type): Simplify definitions.
35914 (__real_integer_type): New macro.
35915 (__complex_integer_type): Likewise.
35916 (__expr_is_real): Likewise.
35917 (__tgmath_real_type_sub): Update comment to describe handling of
35918 complex types.
35919 (__tgmath_complex_type_sub): New macro.
35920 (__tgmath_complex_type): Likewise.
35921 [__HAVE_FLOAT128 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
35922 (__TGMATH_CF128): Use __expr_is_real.
35923 (__TGMATH_UNARY_REAL_IMAG): Use __tgmath_complex_type and
35924 __expr_is_real.
35925 (__TGMATH_BINARY_REAL_IMAG): Likewise.
35926 (__TGMATH_UNARY_REAL_IMAG_RET_REAL): Use __expr_is_real.
35927 * math/gen-tgmath-tests.py (Type.create_type): Create complex
35928 integer types.
35929
35930 2017-08-22 Adhemerval Zanella <adhemerval.zanella@linaro.org>
35931
35932 * sysdeps/generic/not-cancel.h (sigsuspend_not_cancel): Remove
35933 macro.
35934 * sysdeps/mach/hurd/sigsuspend.c (sigsuspend_not_cancel): Remove
35935 alias.
35936 * sysdeps/unix/sysv/linux/not-cancel.h (sigsuspend_not_cancel):
35937 Likewise.
35938
35939 * nptl/pthread_mutex_timedlock.c (__pthread_mutex_timedlock): Replace
35940 nanosleep_not_cancel with __nanosleep_nocancel.
35941 * sysdeps/generic/not-cancel.h (nanosleep_not_cancel): Remove macro.
35942 (__nanosleep_nocancel): New macro.
35943 * sysdeps/unix/sysv/linux/nanosleep.c (__nanosleep_nocancel): New
35944 function.
35945 * sysdeps/unix/sysv/linux/not-cancel.h (nanosleep_not_cancel): Remove
35946 macro.
35947 (__nanosleep_nocancel): New prototype.
35948
35949 * nptl/pthread_mutex_lock.c (__pthread_mutex_lock_full): Replace
35950 pause_not_cancel with __pause_nocancel.
35951 * sysdeps/generic/not-cancel.h (pause_not_cancel): Remove macro.
35952 (__pause_nocancel): New macro.
35953 * sysdeps/unix/sysv/linux/not-cancel.h (pause_not_cancel): Remove
35954 macro.
35955 (__pause_nocancel): New prototype.
35956 * sysdeps/unix/sysv/linux/pause.c (__pause_nocancel): New function.
35957
35958 2017-08-22 Martin Sebor <msebor@redhat.com>
35959
35960 * include/libc-symbols.h (__ifunc_resolver): Declare resolver
35961 to return a pointer to the same type as the target function.
35962
35963 2017-08-22 H.J. Lu <hongjiu.lu@intel.com>
35964
35965 [BZ #18822]
35966 [BZ #21986]
35967 * include/printf.h (__printf_fphex): Add attribute_hidden.
35968 (__guess_grouping): New prototype.
35969 * stdio-common/printf_fp.c (__guess_grouping): Removed.
35970 * stdio-common/reg-printf.c (__register_printf_specifier): Add
35971 libc_hidden_proto and libc_hidden_def.
35972 * stdlib/strfmon_l.c (__guess_grouping): Removed.
35973 (__vstrfmon_l): Remove the third argument passed to
35974 __guess_grouping.
35975
35976 2017-08-22 Gabriel F. T. Gomes <gftg@linux.vnet.ibm.com>
35977
35978 * math/math.h [defined __cplusplus] (issignaling): Provide a C++
35979 definition for issignaling that does not rely on __MATH_TG,
35980 since __MATH_TG uses __builtin_types_compatible_p, which is only
35981 available in C mode.
35982 (CFLAGS-test-math-issignaling.cc): New variable.
35983 * math/Makefile [CXX] (tests): Add test-math-issignaling.
35984 * math/test-math-issignaling.cc: New test for C++ implementation
35985 of type-generic issignaling.
35986 * sysdeps/powerpc/powerpc64le/Makefile [subdir == math]
35987 (CXXFLAGS-test-math-issignaling.cc): Add -mfloat128 to the build
35988 options of test-math-issignaling on powerpc64le.
35989
35990 2017-08-22 H.J. Lu <hongjiu.lu@intel.com>
35991
35992 * include/libc-symbols.h (__hidden_proto_hiddenattr): New for
35993 building libc.a.
35994 (hidden_proto): Likewise.
35995 (hidden_tls_proto): Likewise.
35996 (__hidden_proto): Likewise.
35997
35998 2017-08-22 Florian Weimer <fweimer@redhat.com>
35999
36000 math: Statically link tests of internal functionality.
36001 * math/Makefile (tests): Remove atest-exp, atest-sincos,
36002 atest-exp2.
36003 (tests-static): Add atest-exp, atest-sincos, atest-exp2.
36004 (gmp-objs): Remove assignment.
36005 (atest-exp, atest-sincos, atest-exp2): Remove targets.
36006
36007 2017-08-22 Joseph Myers <joseph@codesourcery.com>
36008
36009 [BZ #21987]
36010 * sysdeps/unix/sysv/linux/sparc/bits/long-double.h: Remove file
36011 and copy to ...
36012 * sysdeps/unix/sysv/linux/sparc/sparc32/bits/long-double.h:
36013 ... here.
36014 * sysdeps/unix/sysv/linux/sparc/sparc64/bits/long-double.h:
36015 ... and here.
36016
36017 * assert/Makefile [$(have-cxx-thread_local)]: Move conditional
36018 variable definitions above inclusion of ../Rules.
36019
36020 2017-08-21 Joseph Myers <joseph@codesourcery.com>
36021
36022 * sysdeps/ieee754/k_standard.c (__kernel_standard): Add default
36023 case calling __builtin_unreachable.
36024
36025 2017-08-21 Adhemerval Zanella <adhemerval.zanella@linaro.org>
36026
36027 * libio/ioopen.c (_IO_waitpid): Replace waitpid_not_cancel with
36028 __waitpid_nocancel.
36029 * sysdeps/generic/not-cancel.h (waitpid_not_cancel): Remove macro.
36030 (__waitpid_nocancel): New macro.
36031 * sysdeps/unix/sysv/linux/not-cancel.h (waitpid_not_cancel): Remove
36032 macro.
36033 (__waitpid_nocancel): Replace macro with a function.
36034 * sysdeps/unix/sysv/linux/waitpid.c (__waitpid_nocancel): New
36035 function.
36036
36037 * login/utmp_file.c (timeout_handler): Replace fcntl_not_cancel with
36038 __fcntl_nocancel.
36039 * sysdeps/generic/not-cancel.h (fcntl_not_cancel): Remove macro.
36040 * sysdeps/unix/sysv/linux/not-cancel.h (fcntl_not_cancel): Likewise.
36041
36042 * gmon/gmon.c (write_hist): Replace writev_not_cancel_no_status with
36043 __writev_nocancel_nostatus.
36044 (write_call_graph): Likewise.
36045 (write_bb_counts): Likewise.
36046 * resolv/herror.c (herror): Likewise.
36047 * sysdeps/generic/not-cancel.h (writev_not_cancel_no_status): Remove
36048 macro.
36049 (__writev_nocancel_nostatus): New macro.
36050 * sysdeps/unix/sysv/linux/not-cancel.h (writev_not_cancel_no_status):
36051 Remove macro.
36052 (__writev_nocancel_nostatus): New function.
36053
36054 2017-08-21 Joseph Myers <joseph@codesourcery.com>
36055
36056 Revert:
36057 2017-08-21 H.J. Lu <hongjiu.lu@intel.com>
36058
36059 * include/libc-symbols.h (__hidden_proto_hiddenattr): New for
36060 building libc.a.
36061 (hidden_proto): Likewise.
36062 (hidden_tls_proto): Likewise.
36063 (__hidden_proto): Likewise.
36064
36065 [BZ #21973]
36066 * sysdeps/sparc/sparc32/fpu/w_sqrt_compat.S: Remove file.
36067 * sysdeps/sparc/sparc32/fpu/w_sqrtf_compat.S: Likewise.
36068 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt_compat-vis3.S:
36069 Likewise.
36070 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt_compat.S:
36071 Likewise.
36072 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf_compat-vis3.S:
36073 Likewise.
36074 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf_compat.S:
36075 Likewise.
36076 * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrt_compat.S : Likewise.
36077 * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrtf_compat.S: Likewise.
36078 * sysdeps/sparc/sparc64/fpu/w_sqrt_compat.S: Likewise.
36079 * sysdeps/sparc/sparc64/fpu/w_sqrtf_compat.S: Likewise.
36080 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Add
36081 GLIBC_2.0 sqrtl symbol.
36082
36083 * math/math.h [__USE_MISC] (_LIB_VERSION_TYPE): Remove.
36084 [__USE_MISC] (_LIB_VERSION): Likewise.
36085 [__USE_MISC] (struct exception): Likewise.
36086 [__USE_MISC] (matherr): Likewise.
36087 [__USE_MISC] (DOMAIN): Likewise.
36088 [__USE_MISC] (SING): Likewise.
36089 [__USE_MISC] (OVERFLOW): Likewise.
36090 [__USE_MISC] (UNDERFLOW): Likewise.
36091 [__USE_MISC] (TLOSS): Likewise.
36092 [__USE_MISC] (PLOSS): Likewise.
36093 [__USE_MISC] (HUGE): Likewise.
36094 [__USE_XOPEN] (MAXFLOAT): Define even if [__USE_MISC].
36095 * math/math-svid-compat.h: New file.
36096 * conform/linknamespace.pl (@whitelist): Remove matherr, matherrf
36097 and matherrl.
36098 * include/math.h [!_ISOMAC] (__matherr): Remove.
36099 * manual/arith.texi (FP Exceptions): Do not document matherr.
36100 * math/Makefile (tests): Change test-matherr to test-matherr-3.
36101 (tests-internal): New variable.
36102 (install-lib): Do not add libieee.a.
36103 (non-lib.a): Likewise.
36104 (extra-objs): Do not add libieee.a and ieee-math.o.
36105 (CPPFLAGS-s_lib_version.c): Remove variable.
36106 ($(objpfx)libieee.a): Remove rule.
36107 ($(addprefix $(objpfx), $(tests-internal)): Depend on $(libm).
36108 * math/ieee-math.c: Remove.
36109 * math/libm-test-support.c (matherr): Remove.
36110 * math/test-matherr.c: Use <support/test-driver.c>. Add copyright
36111 and license notices. Include <math-svid-compat.h> and
36112 <shlib-compat.h>.
36113 (matherr): Undefine as macro. Use compat_symbol_reference.
36114 (_LIB_VERSION): Likewise.
36115 * math/test-matherr-2.c: New file.
36116 * math/test-matherr-3.c: Likewise.
36117 * sysdeps/generic/math_private.h (__kernel_standard): Remove
36118 declaration.
36119 (__kernel_standard_f): Likewise.
36120 (__kernel_standard_l): Likewise.
36121 * sysdeps/ieee754/s_lib_version.c: Do not include <math.h> or
36122 <math_private.h>. Include <math-svid-compat.h>.
36123 (_LIB_VERSION): Undefine as macro.
36124 (_LIB_VERSION_INTERNAL): Always initialize to _POSIX_. Define
36125 only if [LIBM_SVID_COMPAT || !defined SHARED]. If
36126 [LIBM_SVID_COMPAT], use compat_symbol.
36127 * sysdeps/ieee754/s_matherr.c: Do not include <math.h> or
36128 <math_private.h>. Include <math-svid-compat.h>.
36129 (matherr): Undefine as macro.
36130 (__matherr): Define only if [LIBM_SVID_COMPAT]. Use
36131 compat_symbol.
36132 * sysdeps/ia64/fpu/libm_error.c: Include <math-svid-compat.h>.
36133 [_LIBC && LIBM_SVID_COMPAT] (matherrf): Use
36134 compat_symbol_reference.
36135 [_LIBC && LIBM_SVID_COMPAT] (matherrl): Likewise.
36136 [_LIBC && !LIBM_SVID_COMPAT] (matherrf): Define as macro.
36137 [_LIBC && !LIBM_SVID_COMPAT] (matherrl): Likewise.
36138 * sysdeps/ia64/fpu/libm_support.h: Include <math-svid-compat.h>.
36139 (MATHERR_D): Remove declaration.
36140 [!_LIBC] (_LIB_VERSION_TYPE): Likewise
36141 [!LIBM_BUILD] (_LIB_VERSIONIMF): Likewise.
36142 [LIBM_BUILD] (pmatherrf): Likewise.
36143 [LIBM_BUILD] (pmatherr): Likewise.
36144 [LIBM_BUILD] (pmatherrl): Likewise.
36145 (DOMAIN): Likewise.
36146 (SING): Likewise.
36147 (OVERFLOW): Likewise.
36148 (UNDERFLOW): Likewise.
36149 (TLOSS): Likewise.
36150 (PLOSS): Likewise.
36151 * sysdeps/ia64/fpu/s_matherrf.c: Include <math-svid-compat.h>.
36152 (__matherrf): Define only if [LIBM_SVID_COMPAT]. Use
36153 compat_symbol.
36154 * sysdeps/ia64/fpu/s_matherrl.c: Include <math-svid-compat.h>.
36155 (__matherrl): Define only if [LIBM_SVID_COMPAT]. Use
36156 compat_symbol.
36157 * math/lgamma-compat.h: Include <math-svid-compat.h>.
36158 * math/w_acos_compat.c: Likewise.
36159 * math/w_acosf_compat.c: Likewise.
36160 * math/w_acosh_compat.c: Likewise.
36161 * math/w_acoshf_compat.c: Likewise.
36162 * math/w_acoshl_compat.c: Likewise.
36163 * math/w_acosl_compat.c: Likewise.
36164 * math/w_asin_compat.c: Likewise.
36165 * math/w_asinf_compat.c: Likewise.
36166 * math/w_asinl_compat.c: Likewise.
36167 * math/w_atan2_compat.c: Likewise.
36168 * math/w_atan2f_compat.c: Likewise.
36169 * math/w_atan2l_compat.c: Likewise.
36170 * math/w_atanh_compat.c: Likewise.
36171 * math/w_atanhf_compat.c: Likewise.
36172 * math/w_atanhl_compat.c: Likewise.
36173 * math/w_cosh_compat.c: Likewise.
36174 * math/w_coshf_compat.c: Likewise.
36175 * math/w_coshl_compat.c: Likewise.
36176 * math/w_exp10_compat.c: Likewise.
36177 * math/w_exp10f_compat.c: Likewise.
36178 * math/w_exp10l_compat.c: Likewise.
36179 * math/w_exp2_compat.c: Likewise.
36180 * math/w_exp2f_compat.c: Likewise.
36181 * math/w_exp2l_compat.c: Likewise.
36182 * math/w_fmod_compat.c: Likewise.
36183 * math/w_fmodf_compat.c: Likewise.
36184 * math/w_fmodl_compat.c: Likewise.
36185 * math/w_hypot_compat.c: Likewise.
36186 * math/w_hypotf_compat.c: Likewise.
36187 * math/w_hypotl_compat.c: Likewise.
36188 * math/w_j0_compat.c: Likewise.
36189 * math/w_j0f_compat.c: Likewise.
36190 * math/w_j0l_compat.c: Likewise.
36191 * math/w_j1_compat.c: Likewise.
36192 * math/w_j1f_compat.c: Likewise.
36193 * math/w_j1l_compat.c: Likewise.
36194 * math/w_jn_compat.c: Likewise.
36195 * math/w_jnf_compat.c: Likewise.
36196 * math/w_jnl_compat.c: Likewise.
36197 * math/w_lgamma_main.c: Likewise.
36198 * math/w_lgamma_r_compat.c: Likewise.
36199 * math/w_lgammaf_main.c: Likewise.
36200 * math/w_lgammaf_r_compat.c: Likewise.
36201 * math/w_lgammal_main.c: Likewise.
36202 * math/w_lgammal_r_compat.c: Likewise.
36203 * math/w_log10_compat.c: Likewise.
36204 * math/w_log10f_compat.c: Likewise.
36205 * math/w_log10l_compat.c: Likewise.
36206 * math/w_log2_compat.c: Likewise.
36207 * math/w_log2f_compat.c: Likewise.
36208 * math/w_log2l_compat.c: Likewise.
36209 * math/w_log_compat.c: Likewise.
36210 * math/w_logf_compat.c: Likewise.
36211 * math/w_logl_compat.c: Likewise.
36212 * math/w_pow_compat.c: Likewise.
36213 * math/w_powf_compat.c: Likewise.
36214 * math/w_powl_compat.c: Likewise.
36215 * math/w_remainder_compat.c: Likewise.
36216 * math/w_remainderf_compat.c: Likewise.
36217 * math/w_remainderl_compat.c: Likewise.
36218 * math/w_scalb_compat.c: Likewise.
36219 * math/w_scalbf_compat.c: Likewise.
36220 * math/w_scalbl_compat.c: Likewise.
36221 * math/w_sinh_compat.c: Likewise.
36222 * math/w_sinhf_compat.c: Likewise.
36223 * math/w_sinhl_compat.c: Likewise.
36224 * math/w_sqrt_compat.c: Likewise.
36225 * math/w_sqrtf_compat.c: Likewise.
36226 * math/w_sqrtl_compat.c: Likewise.
36227 * math/w_tgamma_compat.c: Likewise.
36228 * math/w_tgammaf_compat.c: Likewise.
36229 * math/w_tgammal_compat.c: Likewise.
36230 * sysdeps/ieee754/dbl-64/w_exp_compat.c: Likewise.
36231 * sysdeps/ieee754/flt-32/w_expf_compat.c: Likewise.
36232 * sysdeps/ieee754/k_standard.c: Likewise.
36233 * sysdeps/ieee754/k_standardf.c: Likewise.
36234 * sysdeps/ieee754/k_standardl.c: Likewise.
36235 * sysdeps/ieee754/ldbl-128/w_expl_compat.c: Likewise.
36236 * sysdeps/ieee754/ldbl-128ibm/w_expl_compat.c: Likewise.
36237 * sysdeps/ieee754/ldbl-96/w_expl_compat.c: Likewise.
36238 * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt_compat.S: Likewise.
36239 * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrtf_compat.S: Likewise.
36240 * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrt_compat.S: Likewise.
36241 * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrtf_compat.S: Likewise.
36242 * sysdeps/sparc/sparc32/fpu/w_sqrt_compat.S: Likewise.
36243 * sysdeps/sparc/sparc32/fpu/w_sqrtf_compat.S: Likewise.
36244 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt_compat-vis3.S:
36245 Likewise.
36246 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf_compat-vis3.S:
36247 Likewise.
36248 * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrt_compat.S: Likewise.
36249 * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrtf_compat.S: Likewise.
36250 * sysdeps/sparc/sparc64/fpu/w_sqrt_compat.S: Likewise.
36251 * sysdeps/sparc/sparc64/fpu/w_sqrtf_compat.S: Likewise.
36252
36253 2017-08-21 Florian Weimer <fweimer@redhat.com>
36254
36255 [BZ #21864]
36256 Do not compile benchmark helper objects with -DMODULE_NAME=libc.
36257 * benchtests/Makefile (others-extras): Set to $(bench-extra-objs).
36258 Move before inclusion of ../Rules.
36259
36260 2017-08-21 Florian Weimer <fweimer@redhat.com>
36261
36262 [BZ #21972]
36263 * assert/assert.h (assert): Use static_cast (bool) for C++.
36264 Use the ternary operator in the warning branch for GNU C.
36265 * assert/Makefile (tests): Add tst-assert-c++, tst-assert-g++.
36266 (CFLAGS-tst-assert-c++.o): Compile in C++11 mode.
36267 (CFLAGS-tst-assert-g++.o): Compile in GnU C++11 mode.
36268 (LDLIBS-tst-assert-c++, LDLIBS-tst-assert-g++): Link with libstdc++.
36269 * assert/tst-assert-c++.cc, assert/tst-assert-g++.cc: New files.
36270
36271 2017-08-21 H.J. Lu <hongjiu.lu@intel.com>
36272
36273 [BZ #18822]
36274 * sysdeps/unix/sysv/linux/x86_64/init-first.c
36275 (__syscall_clock_gettime): Add attribute_hidden.
36276 * sysdeps/unix/sysv/linux/x86_64/makecontext.c
36277 (__start_context): Likewise.
36278
36279 2017-08-21 H.J. Lu <hongjiu.lu@intel.com>
36280
36281 * include/libc-symbols.h (__hidden_proto_hiddenattr): New for
36282 building libc.a.
36283 (hidden_proto): Likewise.
36284 (hidden_tls_proto): Likewise.
36285 (__hidden_proto): Likewise.
36286
36287 2017-08-21 H.J. Lu <hongjiu.lu@intel.com>
36288
36289 * include/libc-symbols.h (attribute_hidden): Enable hidden
36290 visibility in libc.a compiled with PIE.
36291
36292 2017-08-21 H.J. Lu <hongjiu.lu@intel.com>
36293
36294 [BZ #18822]
36295 * sysdeps/unix/sysv/linux/x86/libc-vdso.h (VDSO_SYMBOL(getcpu)):
36296 Add attribute_hidden.
36297
36298 2017-08-21 H.J. Lu <hongjiu.lu@intel.com>
36299
36300 [BZ #21864]
36301 * Makerules (all-nonlib): Add $(others-extras).
36302 * catgets/Makefile (others-extras): New.
36303 * elf/Makefile (others-extras): Likewise.
36304 * nss/Makefile (others-extras): Likewise.
36305
36306 2017-08-21 H.J. Lu <hongjiu.lu@intel.com>
36307
36308 [BZ #18822]
36309 * csu/libc-start.c (__libc_multiple_libcs): Removed.
36310 * elf/dl-open.c: Include <libc-internal.h>.
36311 (__libc_multiple_libcs): Removed.
36312 * elf/dl-sysdep.c: Include <libc-internal.h> instead of
36313 <hp-timing.h>.
36314 * include/libc-internal.h (__libc_multiple_libcs): New.
36315 * misc/sbrk.c: Include <libc-internal.h>.
36316 (__libc_multiple_libcs): Removed.
36317
36318 2017-08-21 H.J. Lu <hongjiu.lu@intel.com>
36319
36320 [BZ #18822]
36321 * grp/initgroups.c (__nss_group_database): Removed.
36322 (__nss_initgroups_database): Likewise.
36323 * nscd/gai.c (__nss_hosts_database): Likewise.
36324 * nss/XXX-lookup.c (DATABASE_NAME_SYMBOL): Likewise.
36325 * posix/tst-rfc3484-2.c (__nss_hosts_database): Likewise.
36326 * posix/tst-rfc3484-3.c (__nss_hosts_database): Likewise.
36327 * posix/tst-rfc3484.c (__nss_hosts_database): Likewise.
36328 * sysdeps/posix/getaddrinfo.c (__nss_hosts_database): Likewise.
36329 * nss/getXXent.c (INTERNAL (REENTRANT_GETNAME)): Add
36330 attribute_hidden.
36331 * nss/nsswitch.c (__nss_database_custom): Define only if
36332 USE_NSCD is defined.
36333 (__nss_configure_lookup): Use __nss_database_custom only if
36334 USE_NSCD is defined.
36335 * nss/nsswitch.h (__nss_database_custom): Declare only if
36336 USE_NSCD is defined. Add attribute_hidden.
36337 (__nss_setent): Add attribute_hidden.
36338 (__nss_endent): Likewise.
36339 (__nss_getent_r): Likewise.
36340 (__nss_getent): Likewise.
36341 (DEFINE_DATABASE): Declare __nss_##arg##_database.
36342
36343 2017-08-20 H.J. Lu <hongjiu.lu@intel.com>
36344
36345 [BZ #18822]
36346 * sysdeps/unix/sysv/linux/i386/glob64.c (__old_glob64): Add
36347 libc_hidden_proto and libc_hidden_def.
36348
36349 2017-08-20 H.J. Lu <hongjiu.lu@intel.com>
36350
36351 [BZ #18822]
36352 * sysdeps/unix/sysv/linux/i386/olddirent.h (__old_readdir64):
36353 Add libc_hidden_proto.
36354 * sysdeps/unix/sysv/linux/i386/readdir64.c (__old_readdir64):
36355 Add libc_hidden_def.
36356
36357 2017-08-20 H.J. Lu <hongjiu.lu@intel.com>
36358
36359 [BZ #21974]
36360 * gmon/Makefile (routines): Remove bb_init_func and
36361 bb_exit_func.
36362 (elide-routines.os): Removed.
36363 * gmon/bb_exit_func.c: Likewise.
36364 * gmon/bb_init_func.c: Likewise.
36365 * include/sys/gmon.h (__bb): Likewise.
36366 (__bb_init_func): Likewise.
36367 (__bb_exit_func): Likewise.
36368 * sysdeps/alpha/bb_init_func.S: Likewise.
36369
36370 2017-08-20 H.J. Lu <hongjiu.lu@intel.com>
36371
36372 * debug/longjmp_chk.c (____longjmp_chk): Moved to ...
36373 * include/setjmp.h (____longjmp_chk): Here. Add
36374 attribute_hidden.
36375
36376 2017-08-19 H.J. Lu <hongjiu.lu@intel.com>
36377
36378 [BZ #18822]
36379 * sysdeps/x86_64/multiarch/strcspn-c.c (STRCSPN_SSE2): Add
36380 attribute_hidden.
36381 (__strspn_sse2): Likewise.
36382
36383 2017-08-18 Adhemerval Zanella <adhemerval.zanella@linaro.org>
36384
36385 * sysdeps/generic/not-cancel.h (close_not_cancel): Remove macro.
36386 (close_not_cancel_no_status): Likewise.
36387 (__close_nocancel): New macro.
36388 (__close_nocancel_nostatus): Likewise.
36389 * sysdeps/unix/sysv/linux/not-cancel.h (__close_nocancel): Remove
36390 macro.
36391 (close_not_cancel): Likewise.
36392 (close_not_cancel_no_status): Likewise.
36393 (__close_nocancel): New prototype.
36394 (__close_nocancel_nostatus): New function.
36395 * sysdeps/unix/sysv/linux/close.c (__close_nocancel): New function.
36396 * catgets/open_catalog.c (__open_catalog): Replace
36397 close_not_cancel{_no_status) with __close_nocancel{_nostatus}.
36398 * gmon/gmon.c (write_gmon): Likewise.
36399 * iconv/gconv_cache.c (__gconv_load_cache): Likewise.
36400 * intl/loadmsgcat.c (close): Likewise.
36401 * io/ftw.c (open_dir_stream): Likewise.
36402 (ftw_startup): Likewise.
36403 * libio/fileops.c (_IO_file_open): Likewise.
36404 (_IO_file_close_mmap): Likewise.
36405 (_IO_file_close): Likewise.
36406 * libio/iopopen.c (_IO_dup2): Likewise.
36407 * locale/loadarchive.c (_nl_load_locale_from_archive): Likewise.
36408 * locale/loadlocale.c (_nl_load_locale): Likewise.
36409 * login/utmp_file.c (pututline_file): Likewise.
36410 (endutent_file): Likewise.
36411 * misc/daemon.c (daemon): Likewise.
36412 * nscd/nscd_getai.c (__nscd_getai): Likewise.
36413 * nscd/nscd_getgr_r.c (nscd_getgr_r): Likewise.
36414 * nscd/nscd_gethst_r.c (nscd_gethst_r): Likewise.
36415 * nscd/nscd_getpw_r.c (nscd_getpw_r): Likewise.
36416 * nscd/nscd_getserv_r.c (nscd_getserv_r): Likewise.
36417 * nscd/nscd_helper.c (open_socket): Likewise.
36418 (__nscd_open_socket): Likewise.
36419 * nscd/nscd_initgroups.c (__nscd_getgrouplist): Likewise.
36420 * nscd/nscd_netgroup.c (__nscd_setnetgrent): Likewise.
36421 (__nscd_innetgr): Likewise.
36422 * nss/nss_db/db-open.c (internal_setent): Likewise.
36423 * resolv/res-close.c (__res_iclose): Likewise.
36424 * sunrpc/pm_getmaps.c (pmap_getmaps): Likewise.
36425 * sysdeps/posix/closedir.c (__closedir): Likewise.
36426 * sysdeps/posix/getaddrinfo.c (getaddrinfo): Likewise.
36427 * sysdeps/posix/getcwd.c (__getcwd): Likewise.
36428 * sysdeps/posix/opendir.c (tryopen_o_directory): Likewise.
36429 (opendir_tail): Likewise.
36430 * sysdeps/posix/spawni.c (__spawni_child): Likewise.
36431 * sysdeps/unix/sysv/linux/check_native.c (__check_native): Likewise.
36432 * sysdeps/unix/sysv/linux/check_pf.c (__check_pf): Likewise.
36433 * sysdeps/unix/sysv/linux/fips-private.h (fips_enabled_p): Likewise.
36434 * sysdeps/unix/sysv/linux/gethostid.c (sethostid): Likewise.
36435 (gethostid): Likewise.
36436 * sysdeps/unix/sysv/linux/getloadavg.c (getloadavg): Likewise.
36437 * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
36438 Likewise.
36439 * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Likewise.
36440 * sysdeps/unix/sysv/linux/grantpt.c (close_all_fds): Likewise.
36441 * sysdeps/unix/sysv/linux/i386/smp.h (is_smp_system): Likewise.
36442 * sysdeps/unix/sysv/linux/ia64/has_cpuclock.c (has_cpuclock):
36443 Likewise.
36444 * sysdeps/unix/sysv/linux/if_index.c (__if_nametoindex): Likewise.
36445 * sysdeps/unix/sysv/linux/libc_fatal.c (backtrace_and_maps): Likewise.
36446 * sysdeps/unix/sysv/linux/malloc-sysdep.h (check_may_shrink_heap):
36447 Likewise.
36448 * sysdeps/unix/sysv/linux/mq_notify.c (init_mq_netlink): Likewise.
36449 * sysdeps/unix/sysv/linux/pthread_getname.c (pthread_getname_np):
36450 Likewise.
36451 * sysdeps/unix/sysv/linux/pthread_setname.c (pthread_setname_np):
36452 Likewise.
36453 * sysdeps/unix/sysv/linux/spawni.c (__spawni_child): Likewise.
36454 * sysdeps/unix/sysv/linux/sysconf.c (__sysconf): Likewise.
36455 * sysdeps/unix/sysv/linux/Versions (libc) [GLIBC_PRIVATE]: Add
36456 __close_nocancel.
36457
36458 * sysdeps/generic/not-cancel.h (openat_not_cancel): Remove macro.
36459 (openat_not_cancel_3): Likewise.
36460 (openat64_not_cancel_3): Likewise).
36461 (openat_not_cancel_3): Likewise).
36462 * sysdeps/unix/sysv/linux/not-cancel.h (openat_not_cancel): Remove
36463 macro.
36464 (openat_not_cancel_3): Likewise.
36465 (openat64_not_cancel): Likewise.
36466 (openat64_not_cancel_3): Likewise.
36467 * sysdeps/unix/sysv/linux/openat.c (__openat_nocancel): New function.
36468 * sysdeps/unix/sysv/linux/openat64.c (__openat64_nocancel): Likewise.
36469 * io/ftw.c (open_dir_stream): Replace openat{64}_not_cancel{_3} with
36470 __open{64}_nocancel.
36471 * sysdeps/mach/hurd/opendir.c (__opendirat): Likewise.
36472 * sysdeps/posix/getcwd.c (__getcwd): Likewise.
36473 * sysdeps/posix/opendir.c (__opendirat): Likewise.
36474
36475 2017-08-18 H.J. Lu <hongjiu.lu@intel.com>
36476
36477 [BZ #18822]
36478 * include/argz.h (__argz_create_sep): New function prototype.
36479 (__argz_append): Likewise.
36480 (__argz_add): Likewise.
36481 (__argz_add_sep): Likewise.
36482 (__argz_delete): Likewise.
36483 (__argz_insert): Likewise.
36484 (__argz_replace): Likewise.
36485 * string/argz.h (__argz_create_sep): Removed.
36486 (__argz_append): Likewise.
36487 (__argz_add): Likewise.
36488 (__argz_add_sep): Likewise.
36489 (__argz_delete): Likewise.
36490 (__argz_insert): Likewise.
36491 (__argz_replace): Likewise.
36492
36493 2017-08-18 H.J. Lu <hongjiu.lu@intel.com>
36494
36495 * elf/elf.h (NT_GNU_PROPERTY_TYPE_0): New.
36496 (NOTE_GNU_PROPERTY_SECTION_NAME): Likewise.
36497 (GNU_PROPERTY_STACK_SIZE): Likewie.
36498 (GNU_PROPERTY_NO_COPY_ON_PROTECTED): Likewie.
36499 (GNU_PROPERTY_LOPROC): Likewise.
36500 (GNU_PROPERTY_HIPROC): Likewise.
36501 (GNU_PROPERTY_LOUSER): Likewise.
36502 (GNU_PROPERTY_HIUSER): Likewise.
36503 (GNU_PROPERTY_X86_ISA_1_USED): Likwise.
36504 (GNU_PROPERTY_X86_ISA_1_NEEDED): Likwise.
36505 (GNU_PROPERTY_X86_FEATURE_1_AND): Likwise.
36506 (GNU_PROPERTY_X86_ISA_1_486): Likwise.
36507 (GNU_PROPERTY_X86_ISA_1_586): Likwise.
36508 (GNU_PROPERTY_X86_ISA_1_686): Likwise.
36509 (GNU_PROPERTY_X86_ISA_1_SSE): Likwise.
36510 (GNU_PROPERTY_X86_ISA_1_SSE2): Likwise.
36511 (GNU_PROPERTY_X86_ISA_1_SSE3): Likwise.
36512 (GNU_PROPERTY_X86_ISA_1_SSSE3): Likwise.
36513 (GNU_PROPERTY_X86_ISA_1_SSE4_1): Likwise.
36514 (GNU_PROPERTY_X86_ISA_1_SSE4_2): Likwise.
36515 (GNU_PROPERTY_X86_ISA_1_AVX): Likwise.
36516 (GNU_PROPERTY_X86_ISA_1_AVX2): Likwise.
36517 (GNU_PROPERTY_X86_ISA_1_AVX512F): Likwise.
36518 (GNU_PROPERTY_X86_ISA_1_AVX512CD): Likwise.
36519 (GNU_PROPERTY_X86_ISA_1_AVX512ER): Likwise.
36520 (GNU_PROPERTY_X86_ISA_1_AVX512PF): Likwise.
36521 (GNU_PROPERTY_X86_ISA_1_AVX512VL): Likwise.
36522 (GNU_PROPERTY_X86_ISA_1_AVX512DQ): Likwise.
36523 (GNU_PROPERTY_X86_ISA_1_AVX512BW): Likwise.
36524 (GNU_PROPERTY_X86_FEATURE_1_IBT): Likwise.
36525 (GNU_PROPERTY_X86_FEATURE_1_SHSTK): Likwise.
36526
36527 2017-08-18 Gabriel F. T. Gomes <gftg@linux.vnet.ibm.com>
36528
36529 * misc/sys/cdefs.h (__HAVE_GENERIC_SELECTION): Define to 0, if
36530 in C++ mode.
36531
36532 2017-08-18 Gabriel F. T. Gomes <gftg@linux.vnet.ibm.com>
36533
36534 [BZ #21930]
36535 * math/math.h (isinf): Check if in C or C++ mode before using
36536 __builtin_types_compatible_p, since this is a C mode feature.
36537
36538 2017-08-18 Adhemerval Zanella <adhemerval.zanella@linaro.org>
36539
36540 * sysdeps/generic/not-cancel.h (write_not_cancel): Remove macro.
36541 (__write_nocancel): New macro.
36542 * sysdeps/unix/sysv/linux/not-cancel.h (__write_nocancel):
36543 Rewrite as a function prototype.
36544 (write_not_cancel): Remove macro.
36545 * sysdeps/unix/sysv/linux/write.c (__write_nocancel): New function.
36546 * gmon/gmon.c (ERR): Replace write_not_cancel with __write_nocancel.
36547 (write_gmon): Likewise.
36548 * libio/fileops.c (_IO_new_file_write): Likewise.
36549 * login/utmp_file.c (pututline_file): Likewise.
36550 (updwtmp_file): Likewise.
36551 * stdio-common/psiginfo.c (psiginfo): Likewise.
36552 * sysdeps/posix/spawni.c (__spawni_child): Likewise.
36553 * sysdeps/unix/sysv/linux/gethostid.c (sethostid): Likewise.
36554 * sysdeps/unix/sysv/linux/libc_fatal.c (backtrace_and_maps):
36555 Likewise.
36556 * sysdeps/unix/sysv/linux/pthread_setname.c (pthread_setname_np):
36557 Likewise.
36558
36559 * sysdeps/generic/not-cancel.h (read_not_cancel): Remove macro.
36560 (__read_nocancel): New macro.
36561 * sysdeps/unix/sysv/linux/Versions (libc) [GLIBC_PRIVATE]: Add
36562 __read_nocancel.
36563 * sysdeps/unix/sysv/linux/not-cancel.h (__read_nocancel): Remove
36564 macro.
36565 (__read_nocancel): New prototype.
36566 * sysdeps/unix/sysv/linux/read.c (__read_nocancel): New function.
36567 * catgets/open_catalog.c (__open_catalog): Replace read_not_cancel
36568 with __read_nocancel.
36569 * intl/loadmsgcat.c (read): Likewise.
36570 * libio/fileops.c (_IO_file_read): Likewise.
36571 * locale/loadlocale.c (_nl_load_locale): Likewise.
36572 * login/utmp_file.c (getutent_r_file): Likewise.
36573 (internal_getut_r): Likewise.
36574 (getutline_r_file): Likewise.
36575 * sysdeps/unix/sysv/linux/fips-private.h (fips_enable_p): Likewise.
36576 * sysdeps/unix/sysv/linux/gethostid.c (gethostid): Likewise.
36577 * sysdeps/unix/sysv/linux/getloadavg.c (getloadavg): Likewise.
36578 * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
36579 Likewise.
36580 * sysdeps/unix/sysv/linux/getsysstats.c (next_line): Likewise.
36581 * sysdeps/unix/sysv/linux/i386/smp.h (is_smp_system): Likewise.
36582 * sysdeps/unix/sysv/linux/ia64/has_cpuclock.c (has_cpuclock):
36583 Likewise.
36584 * sysdeps/unix/sysv/linux/libc_fatal.c (backtrace_and_maps):
36585 Likewise.
36586 * sysdeps/unix/sysv/linux/malloc-sysdep.h (check_may_shrink_heap):
36587 Likewise.
36588 * sysdeps/unix/sysv/linux/pthread_getname.c (pthread_getname_np):
36589 Likewise.
36590 * sysdeps/unix/sysv/linux/sysconf.c (__sysconf): Likewise.
36591
36592 2017-08-18 H.J. Lu <hongjiu.lu@intel.com>
36593
36594 [BZ #21966]
36595 * sysdeps/x86_64/fpu/multiarch/ifunc-mathvec-avx2.h
36596 (IFUNC_SELECTOR): Don't use the AVX2 version if FMA isn't
36597 usable.
36598
36599 2017-08-17 DJ Delorie <dj@redhat.com>
36600
36601 * bug17079.c: Update to new test harness.
36602 * test-digits-dots.c: Likewise.
36603 * test-netdb.c: Likewise.
36604 * tst-field.c: Likewise.
36605 * tst-nss-getpwent.c: Likewise.
36606 * tst-nss-static.c: Likewise.
36607 * tst-nss-test1.c: Likewise.
36608 * tst-nss-test2.c: Likewise.
36609 * tst-nss-test3.c: Likewise.
36610 * tst-nss-test4.c: Likewise.
36611 * tst-nss-test5.c: Likewise.
36612
36613 2017-08-17 Adhemerval Zanella <adhemerval.zanella@linaro.org>
36614
36615 * sysdeps/generic/not-cancel.h (open_not_cancel): Remove macro.
36616 (open_not_cancel_2): Likewise.
36617 (open_nocancel): New macro.
36618 (open64_nocancel): Likewise.
36619 * sysdeps/unix/sysv/linux/not-cancel.h (open_not_cancel): Remove macro.
36620 (open_not_cancel_2): Likewise.
36621 (__open_nocancel): New prototype.
36622 (__open64_nocancel): Likewise.
36623 * sysdeps/unix/sysv/linux/Versions (libc) [GLIBC_PRIVATE]: Add
36624 __open_nocancel.
36625 * sysdeps/unix/sysv/linux/open.c (__open_nocancel): New function.
36626 * sysdeps/unix/sysv/linux/open64.c (__open64_nocancel): Likewise.
36627 * catgets/open_catalog.c (__open_catalog): Replace open_not_cancel{_2}
36628 with __open_nocancel.
36629 * csu/check_fds.c (check_one_fd): Likewise.
36630 * gmon/gmon.c (write_gmon): Likewise.
36631 * iconv/gconv_cache.c (__gconv_load_cached): Likewise.
36632 * intl/loadmsgcat.c (open): Likewise.
36633 * libio/fileops.c (_IO_file_open): Likewise.
36634 * locale/loadarchive.c (_nl_load_locale_from_archive): Likewise.
36635 * locale/loadlocale.c (_nl_load_locale): Likewise.
36636 * login/utmp_file.c (setutent_file): Likewise.
36637 * misc/daemon.c (daemon): Likewise.
36638 * nss/nss_db/db-open.c (internal_setent): Likewise.
36639 * sysdeps/mach/hurd/opendir.c (__opendirat): Likewise.
36640 * sysdeps/posix/libc_fatal.c (__libc_message): Likewise.
36641 * sysdeps/posix/opendir.c (tryopen_o_directory): Likewise.
36642 (__opendir): Likewise.
36643 * sysdeps/posix/spawni.c (__spawni_child): Likewise.
36644 * sysdeps/unix/sysv/linux/fips-private.h (fips_enable_p): Likewise.
36645 * sysdeps/unix/sysv/linux/gethostid.c (sethostid): Likewise.
36646 (gethostid): Likewise.
36647 * sysdeps/unix/sysv/linux/getloadavg.c (getloadavg): Likewise.
36648 * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
36649 Likewise.
36650 * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Likewise.
36651 * sysdeps/unix/sysv/linux/grantpt.c (__close_all_fds): Likewise.
36652 * sysdeps/unix/sysv/linux/i386/smp.h (is_smp_system): Likewise.
36653 * sysdeps/unix/sysv/linux/ia64/has_cpuclock.c (has_cpuclock):
36654 Likewise.
36655 * sysdeps/unix/sysv/linux/libc_fatal.c (backtrace_and_maps):
36656 Likewise.
36657 * sysdeps/unix/sysv/linux/malloc-sysdep.h (check_may_shrink_heap):
36658 Likewise.
36659 * sysdeps/unix/sysv/linux/powerpc/get_clockfreq.c (__get_clockfreq):
36660 Likewise.
36661 * sysdeps/unix/sysv/linux/pthread_getname.c (pthread_getname_np):
36662 Likewise.
36663 * sysdeps/unix/sysv/linux/pthread_setname.c (pthread_setname_np):
36664 Likewise.
36665 * sysdeps/unix/sysv/linux/spawni.c (__spawni_child): Likewise.
36666 * sysdeps/unix/sysv/linux/sysconf.c (__sysconf): Likewise.
36667
36668 2017-08-17 Wilco Dijkstra <wdijkstr@arm.com>
36669
36670 * benchtests/bench-skeleton.c (main): Add support for
36671 latency benchmarking.
36672 * benchtests/scripts/bench.py: Add support for latency benchmarking.
36673
36674 2017-08-17 H.J. Lu <hongjiu.lu@intel.com>
36675
36676 * Makeconfig (+link-pie-before-libc): Add CRT-* hook to override
36677 the startup object.
36678
36679 2017-08-17 Florian Weimer <fweimer@redhat.com>
36680
36681 * include/sys/socket.h (__opensock): Remove internal_function.
36682 * socket/opensock.c (__opensock): Likewise.
36683 * sysdeps/unix/sysv/linux/opensock.c (__opensock): Likewise.
36684
36685 2017-08-16 Joseph Myers <joseph@codesourcery.com>
36686
36687 [BZ #21944]
36688 * signal/bits/types/__sigval_t.h: New file.
36689 * signal/Makefile (headers): Add bits/types/__sigval_t.h.
36690 * signal/bits/types/sigval_t.h: Include <bits/types/__sigval_t.h>
36691 and define sigval_t using __sigval_t.
36692 * include/bits/types/__sigval_t.h: New file.
36693 * bits/types/sigevent_t.h: Include <bits/types/__sigval_t.h>
36694 instead of <bits/types/__sigval_t.h>.
36695 (struct sigevent): Use __sigval_t instead of sigval_t.
36696 * bits/types/siginfo_t.h: Include <bits/types/__sigval_t.h>
36697 instead of <bits/types/__sigval_t.h>.
36698 (siginfo_t): Use __sigval_t instead of sigval_t.
36699 * sysdeps/unix/sysv/linux/bits/types/sigevent_t.h: Include
36700 <bits/types/__sigval_t.h> instead of <bits/types/__sigval_t.h>.
36701 (struct sigevent): Use __sigval_t instead of sigval_t.
36702 * sysdeps/unix/sysv/linux/bits/types/siginfo_t.h: Include
36703 <bits/types/__sigval_t.h> instead of <bits/types/__sigval_t.h>.
36704 (siginfo_t): Use __sigval_t instead of sigval_t.
36705 * signal/signal.h [__USE_MISC]: Include <bits/types/sigval_t.h>.
36706
36707 2017-08-16 H.J. Lu <hongjiu.lu@intel.com>
36708
36709 * NEWS: Remove "[Add new features here]" for 2.27.
36710
36711 2017-08-16 Joseph Myers <joseph@codesourcery.com>
36712
36713 * sysdeps/unix/sysv/linux/sh/localplt.data: Allow abort in
36714 libc.so.
36715
36716 2017-08-16 H.J. Lu <hongjiu.lu@intel.com>
36717
36718 * NEWS: Mention x86-64 FMA optimization.
36719
36720 2017-08-16 H.J. Lu <hongjiu.lu@intel.com>
36721
36722 [BZ #21912]
36723 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
36724 Add e_expf-fma.
36725 * sysdeps/x86_64/fpu/multiarch/e_expf-fma.S: New file.
36726 * sysdeps/x86_64/fpu/multiarch/e_expf.c: Likewise.
36727 * sysdeps/x86_64/fpu/multiarch/ifunc-fma.h: Likewise.
36728
36729 2017-08-16 Andreas Schwab <schwab@suse.de>
36730
36731 [BZ #16750]
36732 CVE-2009-5064
36733 * elf/ldd.bash.in: Never run file directly.
36734
36735 2017-08-15 H.J. Lu <hongjiu.lu@intel.com>
36736
36737 [BZ #21955]
36738 * sysdeps/x86_64/fpu/e_expf.S (L(SP_RANGE)): Aligned to 8 bytes.
36739 (L(SP_INF_0)): Likewise.
36740
36741 2017-08-15 Florian Weimer <fweimer@redhat.com>
36742
36743 * gmon/Makefile (tests-special): Add tst-gmon-prof only if
36744 run-built-tests.
36745
36746 2017-08-15 Florian Weimer <fweimer@redhat.com>
36747
36748 Remove BROKEN_THREAD_SIGNALS support for LinuxThreads.
36749 * sysdeps/pthread/aio_misc.c (__aio_enqueue_request): Remove
36750 BROKEN_THREAD_SIGNALS code.
36751 * sysdeps/ppthread/aio_misc.h (struct waitlist, struct
36752 request_list): Remove caller_pid member used for
36753 BROKEN_THREAD_SIGNALS.
36754 [BROKEN_THREAD_SIGNALS] (__aio_notify_only): Remove declaration.
36755 * sysdeps/pthread/aio_notify.c (__aio_notify_only, __aio_notify):
36756 Remove BROKEN_THREAD_SIGNALS support.
36757 * sysdeps/pthread/aio_suspend.c (aio_suspend): Likewise.
36758 * sysdeps/pthread/lio_listio.c (lio_listio_internal): Likewise.
36759
36760 2017-08-15 Florian Weimer <fweimer@redhat.com>
36761
36762 * gmon/Makefile (tests): Add tst-gmon.
36763 (CFLAGS-tst-gmon.c, LDFLAGS-tst-gmon, CRT-tst-gmon, tst-gmon-ENV):
36764 Set.
36765 (tests-special): Add tst-gmon-prof.out.
36766 (tst-gmon.out): Depend on clean-tst-gmon-data.
36767 (clean-tst-gmon-data, tst-gmon-gprof.out): New targets.
36768 * gmon/tst-gmon.c, gmon/tst-gmon-gprof.sh: New files.
36769 * Makeconfig (+link-before-libc): Add CRT-* hook to override the
36770 startup object.
36771 * aclocal.m4 (GPROF): Set and substitute.
36772 * config.amke.in (GPROF): Set.
36773 * configure: Regenerate.
36774
36775 2017-08-15 Gustavo Romero <gromero@linux.vnet.ibm.com>
36776
36777 * elf/elf.h A (NT_PPC_TAR): New macro.
36778 (NT_PPC_PPR): Likewise.
36779 (NT_PPC_DSCR): Likewise.
36780 (NT_PPC_EBB): Likewise.
36781 (NT_PPC_PMU): Likewise.
36782 (NT_PPC_TM_CGPR): Likewise.
36783 (NT_PPC_TM_CFPR): Likewise.
36784 (NT_PPC_TM_CVMX): Likewise.
36785 (NT_PPC_TM_CVSX): Likewise.
36786 (NT_PPC_TM_SPR): Likewise.
36787 (NT_PPC_TM_CTAR): Likewise.
36788 (NT_PPC_TM_CPPR): Likewise.
36789 (NT_PPC_TM_CDSCR): Likewise.
36790
36791 2017-08-15 Florian Weimer <fweimer@redhat.com>
36792
36793 * sysdeps/i386/machine-gmon.h (mcount_internal): Declare with
36794 regparm (2) instead of internal_function.
36795 (_MCOUNT_DECL): Adjust.
36796
36797 2017-08-15 Stefan Liebler <stli@linux.vnet.ibm.com>
36798
36799 * sysdeps/s390/dl-procinfo.c (_dl_s390_cap_flags): Add z14.
36800 * sysdeps/s390/dl-procinfo.h (_DL_PLATFORMS_COUNT): Increased.
36801
36802 2017-08-14 Joseph Myers <joseph@codesourcery.com>
36803
36804 * conform/data/sys/wait.h-data (si_value): Do not expect for
36805 XPG42.
36806
36807 2017-08-14 Florian Weimer <fweimer@redhat.com>
36808
36809 [BZ #21962]
36810 NSS: Create stubs for accidentally exported lookup functions.
36811 * grp/initgroups.c (__nss_group_lookup, __nss_lookup_function):
36812 Remove declaration.
36813 * inet/ether_hton.c (__nss_ethers_lookup): Likewise.
36814 (ether_hostton): Call __nss_ethers_lookup2 instead.
36815 * inet/ether_ntoh.c (__nss_ethers_lookup): Remove declaration.
36816 (ether_ntohost): Call __nss_ethers_lookup2 instead.
36817 * inet/getnetgrent_r.c (__nss_netgroup_lookup): Remove declaration.
36818 (setup): Call __nss_netgroup_lookup2 instead.
36819 * nss/Makefile (routines): Add compat-lookup.
36820 * nss/Versions (GLIBC_2.27): Add symbol version.
36821 * nss/XXX-lookup (DB_LOOKUP_FCT): Remove declaration. Now provided by <nsswitch.h>.
36822 (DB_COMPAT_FCT): Remove.
36823 * nss/compat-lookup.c: New file.
36824 * nss/nsswitch.h: Generate __nss_*_lookup2 function prototypes
36825 from databases.def.
36826 * nss/service-lookup.c (NO_COMPAT): Remove definition.
36827 * sunrpc/netname.c (__nss_publickey_lookup): Remove declaration.
36828 (netname2user): Call __nss_publickey_lookup2 instead.
36829 * sunrpc/publickey.c (__nss_publickey_lookup): Remove declaration.
36830 (getpublickey, getsecretkey): Call __nss_publickey_lookup2
36831 instead.
36832
36833 2017-08-14 Adhemerval Zanella <adhemerval.zanella@linaro.org>
36834 Sergei Trofimovich <slyfox@inbox.ru>
36835
36836 [BZ #21908]
36837 * sysdeps/unix/sysv/linux/m68k/mmap_internal.h (MMAP2_PAGE_SHIFT):
36838 Rename to MMAP2_PAGE_UNIT.
36839 * sysdeps/unix/sysv/linux/mmap.c: Include mmap_internal iff
36840 __OFF_T_MATCHES_OFF64_T is not defined.
36841 * sysdeps/unix/sysv/linux/mmap_internal.h (page_unit): Declare as
36842 uint64_t.
36843 (MMAP2_PAGE_UNIT) [MMAP2_PAGE_UNIT == -1]: Redefine to page_unit.
36844 (page_unit) [MMAP2_PAGE_UNIT != -1]: Remove definition.
36845
36846 2017-08-14 Florian Weimer <fweimer@redhat.com>
36847
36848 i386: Do not set internal_function.
36849 * config.h.in (USE_REGPARMS, internal_function): Remove.
36850 * sysdeps/i386/configure.ac (USE_REGPARMS): Likewise.
36851 * sysdeps/i386/configure (USE_REGPARMS): Likewise.
36852
36853 2017-08-14 Florian Weimer <fweimer@redhat.com>
36854
36855 * elf/dl-init.c (_dl_init): Remove internal_function.
36856 * sysdeps/generic/ldsodefs.h (_dl_init): Likewise.
36857 * sysdeps/i386/dl-machine.h (RTLD_START): Adjust call to _dl_init.
36858
36859 2017-08-14 Florian Weimer <fweimer@redhat.com>
36860
36861 * elf/rtld.c (_dl_start): Remove internal_function.
36862 * sysdeps/i386/dl-machine.h (RTLD_START): Adjust call to
36863 _dl_start.
36864
36865 2017-08-14 Florian Weimer <fweimer@redhat.com>
36866
36867 * elf/dl-fini.c (_dl_fini): Remove internal_function
36868 * sysdeps/generic/ldsodefs.h (_dl_fini): Likewise.
36869
36870 2017-08-14 H.J. Lu <hongjiu.lu@intel.com>
36871
36872 * sysdeps/x86/cpu-features.h (bit_cpu_IBT): New.
36873 (bit_cpu_SHSTK): Likewise.
36874 (index_cpu_IBT): Likewise.
36875 (index_cpu_SHSTK): Likewise.
36876 (reg_IBT): Likewise.
36877 (reg_SHSTK): Likewise.
36878 * sysdeps/x86/cpu-tunables.c (TUNABLE_CALLBACK (set_hwcaps)):
36879 Handle index_cpu_IBT and index_cpu_SHSTK.
36880
36881 2017-08-14 Mike FABIAN <mfabian@redhat.com>
36882
36883 [BZ #19982]
36884 * po/fr.po: Fix spelling mistake.
36885
36886 2017-08-13 Florian Weimer <fweimer@redhat.com>
36887
36888 * elf/dl-addr.c (_dl_addr): Remove internal_function.
36889 * elf/dl-error-skeleton.c (_dl_signal_error, _dl_signal_cerror)
36890 (_dl_catch_error, _dl_receive_error): Likewise.
36891 * elf/dl-open.c (_dl_find_dso_for_object): Likewise.
36892 * elf/dl-tls.c (_dl_allocate_tls_init, _dl_allocate_tls)
36893 (_dl_deallocate_tls): Likewise.
36894 * include/dlfcn.h (_dl_addr): Likewise.
36895 * sysdeps/generic/ldsodefs.h (_dl_signal_error, _dl_signal_cerror)
36896 (_dl_catch_error, _dl_receive_error, _dl_find_dso_for_object)
36897 (_dl_allocate_tls_init, _dl_allocate_tls, _dl_deallocate_tls):
36898 Likewise.
36899
36900 2017-08-13 Florian Weimer <fweimer@redhat.com>
36901
36902 * include/stdlib.h: (__strtof_nan, __strtod_nan, __strtold_nan)
36903 (__wcstof_nan, __wcstod_nan, __wcstold_nan): Remove
36904 internal_function.
36905 * stdlib/sttod_nan_main.c (STRTOD_NAN): Likewise.
36906
36907 2017-08-13 Florian Weimer <fweimer@redhat.com>
36908
36909 * elf/dl-support.c (_dl_make_stack_executable_hook): Remove
36910 internal_function.
36911 * nptl/allocatestack.c (__make_stacks_executable): Likewise.
36912 * nptl/pthreadP.h (__make_stacks_executable): Likewise.
36913 * sysdeps/generic/ldsodefs.h (_rtld_global): Remove
36914 internal_function from _dl_make_stack_executable_hook member.
36915 (_dl_make_stack_executable): Remove internal_function.
36916 * sysdeps/mach/hurd/dl-execstack.c (_dl_make_stack_executable):
36917 Likewise.
36918 * sysdeps/unix/sysv/linux/dl-execstack.c
36919 (_dl_make_stack_executable): Likewise.
36920
36921 2017-08-13 Florian Weimer <fweimer@redhat.com>
36922
36923 * sysdeps/unix/sysv/linux/netlinkaccess.h
36924 (__netlink_assert_response): Remove internal_function.
36925 * sysdeps/unix/sysv/linux/netlink_assert_response.c
36926 (__netlink_assert_response): Likewise.
36927
36928 2017-08-13 Florian Weimer <fweimer@redhat.com>
36929
36930 * include/rpc/pmap_clnt.h (__libc_rpc_getport): Remove
36931 internal_function.
36932 * sunrpoc/pm_getport.c (__libc_rpc_getport): Likewise.
36933
36934 2017-08-13 Florian Weimer <fweimer@redhat.com>
36935
36936 * grp/grp-merge.h (__copy_grp, __merge_grp): Remove
36937 internal_function.
36938 * grp/grp-merge.c (__copy_grp, __merge_grp): Likewise.
36939 * inet/netgroup.h (__internal_setnetgrent)
36940 (__internal_endnetgrent,__internal_getnetgrent_r): Likewise.
36941 * inet/getnetgrent_r.c (__internal_setnetgrent)
36942 (__internal_endnetgrent,__internal_getnetgrent_r): Likewise.
36943 * nss/XXX-lookup.c (DB_LOOKUP_FCT, DB_COMPAT_FCT): Likewise.
36944 * nss/getXXbyYY_r.c (DB_LOOKUP_FCT): Likewise.
36945 * nss/getXXent_r.c (DB_LOOKUP_FCT): Likewise.
36946 * nss/nsswitch.h (db_lookup_function): Likewise.
36947
36948 2017-08-13 Florian Weimer <fweimer@redhat.com>
36949
36950 * debug/fortify_fail.c (__fortify_fail, __fortify_fail_abort):
36951 Remove internal_function.
36952 * include/stdio.h (__fortify_fail, __fortify_fail_abort): Likewise.
36953 * sysdeps/mach/hurd/i386/____longjmp_chk.S (CALL_FAIL): Pass
36954 message argument on the stack.
36955 * sysdeps/unix/sysv/linux/i386/____longjmp_chk.S (CALL_FAIL):
36956 Likeweise.
36957
36958 2017-08-12 Mike FABIAN <mfabian@redhat.com>
36959
36960 Adapt test case data to the changes in the thousands
36961 separators.
36962
36963 [BZ #20756]
36964 * localedata/tst-langinfo.sh: Adapt test case data.
36965 * stdlib/tst-strfmon_l.c: Likewise.
36966 * stdlib/tst-strtod4.c: Likewise.
36967 * stdlib/tst-strtod5i.c: Likewise.
36968
36969 2017-08-11 Florian Weimer <fweimer@redhat.com>
36970
36971 [BZ #21242]
36972 * assert/assert.h [__GNUC__ && !__STRICT_ANSI__] (assert):
36973 Suppress pedantic warning resulting from statement expression.
36974 (__ASSERT_FUNCTION): Add missing __extension__.
36975
36976 2017-08-11 Siddhesh Poyarekar <siddhesh@sourceware.org>
36977
36978 * benchtests/bench-memmove-large.c: Print output in JSON
36979 format.
36980 * benchtests/bench-memmove.c: Likewise.
36981
36982 * benchtests/bench-memccpy.c (do_one_test): Remove checks.
36983 * benchtests/bench-memchr.c (do_one_test): Likewise.
36984 * benchtests/bench-memcpy-large.c (do_one_test): Likewise.
36985 * benchtests/bench-memcpy.c (do_one_test): Likewise.
36986 * benchtests/bench-memmove-large.c (do_one_test): Likewise.
36987 * benchtests/bench-memmove.c (do_one_test): Likewise.
36988 * benchtests/bench-memset-large.c (do_one_test): Likewise.
36989 * benchtests/bench-memset.c (do_one_test): Likewise.
36990 * benchtests/bench-string.h (test_init): Remove memsets.
36991
36992 2017-08-10 Rical Jasan <ricaljasan@pacific.net>
36993
36994 * manual/lang.texi
36995 (Computing the Width of an Integer Data Type): Rename section to
36996 "Width of an Integer Type". Remove inaccurate statement regarding
36997 lack of C language facilities for determining width of integer
36998 types, and reorder content to improve flow and context of
36999 discussion.
37000
37001 2017-08-10 Rical Jasan <ricaljasan@pacific.net>
37002
37003 * lang.texi (va_copy): Change standard from ISO to C99.
37004 (__va_copy): Add standard and header annotation.
37005 Update description for clarity of origins and current use.
37006
37007 2017-08-10 Gabriel F. T. Gomes <gftg@linux.vnet.ibm.com>
37008
37009 [BZ #21941]
37010 * sysdeps/powerpc/fpu/math_private.h (__ieee754_sqrtf128): Since
37011 xssqrtqp requires operands to be in Vector Registers
37012 (Altivec/VMX), replace the register constraint 'wq' with 'v'.
37013 * sysdeps/powerpc/powerpc64le/power9/fpu/e_sqrtf128.c
37014 (__ieee754_sqrtf128): Likewise.
37015
37016 2017-08-10 Wilco Dijkstra <wdijkstr@arm.com>
37017
37018 * sysdeps/aarch64/memcmp.S (memcmp):
37019 Rewrite of optimized memcmp.
37020
37021 2017-08-10 Florian Weimer <fweimer@redhat.com>
37022
37023 Introduce ld.so exceptions.
37024 * sysdeps/generic/ldsodefs.h (struct dl_exception): Define.
37025 (_dl_exception_create, _dl_exception_create_format)
37026 (_dl_exception_free, _dl_signal_exception, _dl_signal_cexception)
37027 (_dl_catch_exception): Declare.
37028 (_dl_catch_error): Update comment.
37029 * elf/dl-error-skeleton.c (struct catch): Replace objname,
37030 errstring, malloced members with exception member.
37031 (_dl_out_of_memory): Remove.
37032 (fatal_error): New function, extracted from _dl_signal_error.
37033 (_dl_signal_exception, _dl_signal_cexception): New functions.
37034 (_dl_signal_error): Call _dl_exception_create to allocate an
37035 exception object.
37036 (_dl_catch_exception): New function, based on _dl_catch_error.
37037 (_dl_catch_error): Implement using _dl_catch_exception.
37038 * elf/dl-exception.c: New file.
37039 * elf/Makefile (dl-routines): Add dl-exception.
37040 (elide-routines.os): Likewise.
37041 * elf/Version (ld/GLIBC_PRIVATE): Add _dl_exception_create,
37042 _dl_exception_create_format, _dl_exception_free.
37043 * elf/dl-deps.c (_dl_map_object_deps): Use _dl_catch_exception and
37044 _dl_signal_exception.
37045 * elf/dl-lookup.c (make_string): Remove.
37046 (_dl_lookup_symbol_x): Use _dl_exception_create_format,
37047 _dl_signal_cexception, _dl_exception_free.
37048 * elf/dl-open.c (_dl_open): Use _dl_catch_exception and
37049 _dl_signal_exception.
37050 * elf/dl-sym.c (do_sym): Likewise.
37051 * elf/dl-version.c (make_string): Remove.
37052 (match_symbol): Use _dl_exception_create_format,
37053 _dl_signal_cexception, _dl_exception_free.
37054 (_dl_check_map_versions): Likewise.
37055 * sysdeps/generic/localplt.data (ld.so): Add _dl_signal_exception,
37056 _dl_catch_exception.
37057 * sysdeps/unix/sysv/linux/aarch64/localplt.data (ld.so): Likewise.
37058 * sysdeps/unix/sysv/linux/alpha/localplt.data (ld.so): Likewise.
37059 * sysdeps/unix/sysv/linux/arm/localplt.data (ld.so): Likewise.
37060 * sysdeps/unix/sysv/linux/hppa/localplt.data (ld.so): Likewise.
37061 * sysdeps/unix/sysv/linux/i386/localplt.data (ld.so): Likewise.
37062 * sysdeps/unix/sysv/linux/ia64/localplt.data (ld.so): Likewise.
37063 * sysdeps/unix/sysv/linux/m68k/localplt.data (ld.so): Likewise.
37064 * sysdeps/unix/sysv/linux/microblaze/localplt.data (ld.so):
37065 Likewise.
37066 * sysdeps/unix/sysv/linux/nios2/localplt.data (ld.so): Likewise.
37067 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/localplt.data
37068 (ld.so): Likewise.
37069 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/localplt.data
37070 (ld.so): Likewise.
37071 * sysdeps/unix/sysv/linux/powerpc/powerpc64/localplt.data (ld.so):
37072 Likewise.
37073 * sysdeps/unix/sysv/linux/s390/localplt.data (ld.so): Likewise.
37074 * sysdeps/unix/sysv/linux/sh/localplt.data (ld.so): Likewise.
37075 * sysdeps/unix/sysv/linux/sparc/sparc32/localplt.data (ld.so):
37076 Likewise.
37077 * sysdeps/unix/sysv/linux/sparc/sparc64/localplt.data (ld.so):
37078 Likewise.
37079 * sysdeps/x86_64/localplt.data (ld.so): Likewise.
37080
37081 2017-08-10 Florian Weimer <fweimer@redhat.com>
37082
37083 * inet/net-internal.h (__inet6_scopeid_pton): Remove
37084 attribute_hidden, internal_function.
37085 * inet/inet6_scopeid_pton.c (__inet6_scopeid_pton): Remove
37086 internal_function.
37087
37088 2017-08-10 Florian Weimer <fweimer@redhat.com>
37089
37090 * malloc/malloc.c (get_max_fast): Reimplement as an inline
37091 function which calls __builtin_unreachable.
37092
37093 2017-08-10 Mike FABIAN <mfabian@redhat.com>
37094
37095 * stdlib/tst-strfmon_l.c: Fix test cases to agree with the changes in
37096 Indian monetary formatting
37097 * stdlib/Makefile: Adapt list of locales needed for the tst-strfmon_l.c
37098 test cases.
37099
37100 2017-08-09 Dmitry V. Levin <ldv@altlinux.org>
37101
37102 * sysdeps/unix/sysv/linux/aarch64/sys/ptrace.h (enum __ptrace_request):
37103 Fix typo in comment.
37104
37105 [BZ #21928]
37106 * sysdeps/unix/sysv/linux/sys/ptrace.h (enum __ptrace_flags,
37107 PTRACE_SEIZE_DEVEL): Remove.
37108 * sysdeps/unix/sysv/linux/aarch64/sys/ptrace.h: Likewise.
37109 * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Likewise.
37110 * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
37111 * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
37112 * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
37113
37114 2017-08-09 Joseph Myers <joseph@codesourcery.com>
37115
37116 * posix/bits/types.h (__qaddr_t): Remove.
37117
37118 [BZ #21457]
37119 * sysdeps/arm/sys/ucontext.h (__ctx): Move undefine further down.
37120 (ucontext_t): Use __ctx with uc_flags. Rename uc_filler to
37121 __glibc_reserved1.
37122 * sysdeps/generic/sys/ucontext.h (__ctx): New macro.
37123 (ucontext_t): Use __ctx with uc_flags.
37124 * sysdeps/i386/sys/ucontext.h (__ctx): Move undefine further down.
37125 (__ctxt): Likewise.
37126 (ucontext_t): Use __ctx with uc_flags. Rename uc_filler to
37127 __glibc_reserved1.
37128 * sysdeps/m68k/sys/ucontext.h (__ctx): Move undefine further down.
37129 (ucontext_t): Use __ctx with uc_flags. Rename uc_filler to
37130 __glibc_reserved1.
37131 * sysdeps/mips/sys/ucontext.h (__ctx): Move undefine further down.
37132 (ucontext_t): Use __ctx with uc_flags. Rename uc_filler to
37133 __glibc_reserved1.
37134 * sysdeps/unix/sysv/linux/aarch64/sys/ucontext.h (__ctx): New
37135 macro.
37136 (ucontext_t): Use __ctx with uc_flags.
37137 * sysdeps/unix/sysv/linux/alpha/sys/ucontext.h (__ctx): New macro.
37138 (ucontext_t): Use __ctx with uc_flags.
37139 * sysdeps/unix/sysv/linux/arm/sys/ucontext.h (__ctx): New macro.
37140 (ucontext_t): Use __ctx with uc_flags and uc_regspace.
37141 * sysdeps/unix/sysv/linux/hppa/sys/ucontext.h (__ctx): New macro.
37142 (ucontext_t): Use __ctx with uc_flags.
37143 * sysdeps/unix/sysv/linux/m68k/sys/ucontext.h (__ctx): Move
37144 undefine further down.
37145 (ucontext_t): Use __ctx with uc_flags. Rename uc_filler to
37146 __glibc_reserved1.
37147 * sysdeps/unix/sysv/linux/mips/sys/ucontext.h (__ctx): Move
37148 undefine further down.
37149 (ucontext_t): Use __ctx with uc_flags.
37150 * sysdeps/unix/sysv/linux/nios2/sys/ucontext.h (__ctx): Move
37151 undefine further down.
37152 (ucontext_t): Use __ctx with uc_flags.
37153 * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h (ucontext_t): Use
37154 __ctx with uc_flags, uc_regs_ptr, uc_regs and uc_reg_space.
37155 Rename uc_pad to __glibc_reserved1.
37156 * sysdeps/unix/sysv/linux/s390/sys/ucontext.h (__ctx): Move
37157 undefine further down.
37158 (ucontext_t): Use __ctx with uc_flags.
37159 * sysdeps/unix/sysv/linux/sh/sys/ucontext.h (__ctx): Move undefine
37160 further down.
37161 (ucontext_t): Use __ctx with uc_flags.
37162 * sysdeps/unix/sysv/linux/sparc/sys/ucontext.h (ucontext_t): Use
37163 __ctx with uc_flags.
37164 * sysdeps/unix/sysv/linux/tile/sys/ucontext.h (__ctx): New macro.
37165 (ucontext_t): Use __ctx with uc_flags.
37166 * sysdeps/unix/sysv/linux/x86/sys/ucontext.h (ucontext_t): Use
37167 __ctx with uc_flags.
37168
37169 2017-08-09 Florian Weimer <fweimer@redhat.com>
37170
37171 [BZ #21932]
37172 * nss/getXXbyYY_r.c (REENTRANT_NAME): Call __resolv_context_put
37173 before early return.
37174
37175 2017-08-09 Andreas Schwab <schwab@suse.de>
37176
37177 [BZ #21041]
37178 * sysdeps/unix/sysv/linux/s390/pt-longjmp.c: Update reference to
37179 renamed alias.
37180
37181 [BZ #21041]
37182 * nptl/Makefile (tests) [$(build-shared) = yes]: Add
37183 tst-compat-forwarder.
37184 (modules-names): Add tst-compat-forwarder-mod.
37185 ($(objpfx)tst-compat-forwarder): Depend on
37186 $(objpfx)tst-compat-forwarder-mod.so.
37187 * nptl/tst-compat-forwarder.c: New file.
37188 * nptl/tst-compat-forwarder-mod.c: New file.
37189
37190 2017-08-09 Siddhesh Poyarekar <siddhesh@sourceware.org>
37191
37192 * sysdeps/aarch64/multiarch/memcpy_falkor.S: Fix code style in
37193 comments.
37194
37195 * manual/tunables.texi (Tunable glibc.tune.cpu): Add falkor.
37196 * sysdeps/aarch64/multiarch/Makefile (sysdep_routines): Add
37197 memcpy_falkor.
37198 * sysdeps/aarch64/multiarch/ifunc-impl-list.c (MAX_IFUNC):
37199 Bump.
37200 (__libc_ifunc_impl_list): Add __memcpy_falkor.
37201 * sysdeps/aarch64/multiarch/memcpy.c: Likewise.
37202 * sysdeps/aarch64/multiarch/memcpy_falkor.S: New file.
37203 * sysdeps/unix/sysv/linux/aarch64/cpu-features.c (cpu_list):
37204 Add falkor.
37205 * sysdeps/unix/sysv/linux/aarch64/cpu-features.h (IS_FALKOR):
37206 New macro.
37207
37208 2017-08-08 Adhemerval Zanella <adhemerval.zanella@linaro.org>
37209
37210 [BZ #759]
37211 * manual/setjmp.texi (getcontex): Document uc_stack value
37212 compatibility differences.
37213
37214 2017-08-08 Joseph Myers <joseph@codesourcery.com>
37215
37216 * malloc/mcheck.c (old_free_hook): Use void * instead of __ptr_t.
37217 (old_malloc_hook): Likewise.
37218 (old_memalign_hook): Likewise.
37219 (old_realloc_hook): Likewise.
37220 (struct hdr): Likewise.
37221 (flood): Likewise.
37222 (freehook): Likewise.
37223 (mallochook): Likewise.
37224 (memalignhook): Likewise.
37225 (reallochook): Likewise.
37226 (mprobe): Likewise.
37227 * malloc/mtrace.c (mallwatch): Likewise.
37228 (tr_old_free_hook): Likewise.
37229 (tr_old_malloc_hook): Likewise.
37230 (tr_old_realloc_hook): Likewise.
37231 (tr_old_memalign_hook): Likewise.
37232 (tr_where): Likewise.
37233 (lock_and_info): Likewise.
37234 (tr_freehook): Likewise.
37235 (tr_mallochook): Likewise.
37236 (tr_reallochook): Likewise.
37237 (tr_memalignhook): Likewise.
37238 * misc/err.h [!__GNUC_VA_LIST] (__gnuc_va_list): Likewise.
37239 * misc/mmap.c (__mmap): Likewise.
37240 * misc/mmap64.c (__mmap64): Likewise.
37241 * misc/mprotect.c (__mprotect): Likewise.
37242 * misc/msync.c (msync): Likewise.
37243 * misc/munmap.c (__munmap): Likewise.
37244 * posix/posix_madvise.c (posix_madvise): Likewise.
37245 * socket/send.c (__send): Likewise.
37246 * socket/sendto.c (__sendto): Likewise.
37247 * socket/setsockopt.c (__setsockopt): Likewise.
37248 * string/memcmp.c (__ptr_t): Remove macro.
37249 (MEMCMP): Use void * instead of ptr_t.
37250 * string/memrchr.c (__ptr_t): Remove macro.
37251 (__memrchr): Use void * instead of ptr_t.
37252 * sysdeps/mach/hurd/dl-sysdep.c (__mmap): Likewise.
37253 * sysdeps/mach/hurd/mmap.c (__mmap): Likewise.
37254 * sysdeps/mach/hurd/mmap64.c (__mmap64): Likewise.
37255 * sysdeps/mach/mprotect.c (__mprotect): Likewise.
37256 * sysdeps/mach/msync.c (msync): Likewise.
37257 * sysdeps/mach/munmap.c (__munmap): Likewise.
37258 * sysdeps/mips/bits/setjmp.h (struct __jmp_buf_internal_tag):
37259 Likewise.
37260 * sysdeps/posix/getcwd.c (__getcwd): Likewise.
37261 * sysdeps/powerpc/powerpc32/memset.S (memset): Likewise.
37262 * sysdeps/powerpc/powerpc32/power4/memcpy.S (memcpy): Likewise.
37263 * sysdeps/powerpc/powerpc32/power4/memset.S (memset): Likewise.
37264 * sysdeps/powerpc/powerpc32/power6/memcpy.S (memcpy): Likewise.
37265 * sysdeps/powerpc/powerpc32/power6/memset.S (memset): Likewise.
37266 * sysdeps/powerpc/powerpc32/power7/memcpy.S (memcpy): Likewise.
37267 * sysdeps/powerpc/powerpc32/power7/mempcpy.S (__mempcpy):
37268 Likewise.
37269 * sysdeps/powerpc/powerpc32/power7/memset.S (memset): Likewise.
37270 * sysdeps/powerpc/powerpc64/memcpy.S (memcpy): Likewise.
37271 * sysdeps/powerpc/powerpc64/memset.S (memset): Likewise.
37272 * sysdeps/powerpc/powerpc64/power4/memcpy.S (memcpy): Likewise.
37273 * sysdeps/powerpc/powerpc64/power4/memset.S (memset): Likewise.
37274 * sysdeps/powerpc/powerpc64/power6/memcpy.S (memcpy): Likewise.
37275 * sysdeps/powerpc/powerpc64/power6/memset.S (memset): Likewise.
37276 * sysdeps/powerpc/powerpc64/power7/memcpy.S (memcpy): Likewise.
37277 * sysdeps/powerpc/powerpc64/power7/mempcpy.S (__mempcpy):
37278 Likewise.
37279 * sysdeps/powerpc/powerpc64/power7/memset.S (memset): Likewise.
37280 * sysdeps/powerpc/powerpc64/power8/memset.S (memset): Likewise.
37281 * sysdeps/tile/memcmp.c (__ptr_t): Remove macro.
37282 (MEMCMP): Use void * instead of ptr_t.
37283 * sysdeps/unix/sysv/linux/alpha/oldglob.c (old_glob_t): Likewise.
37284 * sysdeps/unix/sysv/linux/mmap.c (__mmap): Likewise.
37285
37286 2017-08-08 Florian Weimer <fweimer@redhat.com>
37287
37288 * sysdeps/posix/getaddrinfo.c (gaih_inet): Remove unreachable
37289 return statement.
37290
37291 2017-08-08 H.J. Lu <hongjiu.lu@intel.com>
37292
37293 [BZ #21913]
37294 * csu/libc-tls.c: Include <startup.h> first.
37295 (__libc_setup_tls): Call _startup_fatal instead of __libc_fatal.
37296 * elf/dl-tunables.c: Include <startup.h> first.
37297 * include/libc-symbols.h (BUILD_PIE_DEFAULT): New.
37298 * sysdeps/generic/startup.h: New file.
37299 * sysdeps/unix/sysv/linux/i386/startup.h: Likewise.
37300 * sysdeps/unix/sysv/linux/i386/brk.c [BUILD_PIE_DEFAULT != 0]
37301 (I386_USE_SYSENTER): New. Defined to 0.
37302
37303 2017-08-08 Andreas Schwab <schwab@suse.de>
37304
37305 [BZ #21041]
37306 * nptl/pt-longjmp.c (longjmp, siglongjmp): Don't use IFUNC resolver.
37307 * nptl/pt-system.c (system): Likewise.
37308
37309 2017-08-07 Adhemerval Zanella <adhemerval.zanella@linaro.org>
37310
37311 [BZ #21780]
37312 * sysdeps/posix/preadv2.c (preadv2): Use ENOTSUP instead of
37313 EOPNOTSUPP.
37314 * sysdeps/posix/preadv64v2.c (preadv64v2): Likewise.
37315 * sysdeps/posix/pwritev2.c (pwritev2): Likewise.
37316 * sysdeps/posix/pwritev64v2.c (pwritev64v2): Likewise.
37317 * sysdeps/unix/sysv/linux/preadv2.c (preadv2): Likewise.
37318 * sysdeps/unix/sysv/linux/preadv64v2.c (preadv64v2): Likewise.
37319 * sysdeps/unix/sysv/linux/pwritev2.c (pwritev2): Likewise.
37320 * sysdeps/unix/sysv/linux/pwritev64v2.c (pwritev64v2): Likewise.
37321
37322 2017-08-07 Joseph Myers <joseph@codesourcery.com>
37323
37324 [BZ #21899]
37325 * bits/sigaction.h (struct sigaction): Define sa_handler and
37326 sa_sigaction using union also for [__USE_XOPEN_EXTENDED].
37327 (SA_ONSTACK): Change [__USE_UNIX98] condition to
37328 [__USE_XOPEN_EXTENDED].
37329 (SA_RESTART): Likewise.
37330 (SA_NODEFER): Likewise.
37331 (SA_RESETHAND): Likewise.
37332 * sysdeps/unix/sysv/linux/alpha/bits/sigaction.h
37333 (struct sigaction): Define sa_handler and sa_sigaction using union
37334 also for [__USE_XOPEN_EXTENDED].
37335 (SA_ONSTACK): Change [__USE_UNIX98] condition to
37336 [__USE_XOPEN_EXTENDED].
37337 (SA_RESTART): Likewise.
37338 (SA_NODEFER): Likewise.
37339 (SA_RESETHAND): Likewise.
37340 * sysdeps/unix/sysv/linux/bits/sigaction.h
37341 (struct sigaction): Define sa_handler and sa_sigaction using union
37342 also for [__USE_XOPEN_EXTENDED].
37343 (SA_ONSTACK): Change [__USE_UNIX98] condition to
37344 [__USE_XOPEN_EXTENDED].
37345 (SA_RESTART): Likewise.
37346 (SA_NODEFER): Likewise.
37347 (SA_RESETHAND): Likewise.
37348 * sysdeps/unix/sysv/linux/hppa/bits/sigaction.h
37349 (struct sigaction): Define sa_handler and sa_sigaction using union
37350 also for [__USE_XOPEN_EXTENDED].
37351 (SA_ONSTACK): Change [__USE_UNIX98] condition to
37352 [__USE_XOPEN_EXTENDED].
37353 (SA_RESTART): Likewise.
37354 (SA_NODEFER): Likewise.
37355 (SA_RESETHAND): Likewise.
37356 * sysdeps/unix/sysv/linux/ia64/bits/sigaction.h
37357 (struct sigaction): Define sa_handler and sa_sigaction using union
37358 also for [__USE_XOPEN_EXTENDED].
37359 (SA_ONSTACK): Change [__USE_UNIX98] condition to
37360 [__USE_XOPEN_EXTENDED].
37361 (SA_RESTART): Likewise.
37362 (SA_NODEFER): Likewise.
37363 (SA_RESETHAND): Likewise.
37364 * sysdeps/unix/sysv/linux/mips/bits/sigaction.h
37365 (struct sigaction): Define sa_handler and sa_sigaction using union
37366 also for [__USE_XOPEN_EXTENDED].
37367 (SA_ONSTACK): Change [__USE_UNIX98] condition to
37368 [__USE_XOPEN_EXTENDED].
37369 (SA_RESTART): Likewise.
37370 (SA_NODEFER): Likewise.
37371 (SA_RESETHAND): Likewise.
37372 * sysdeps/unix/sysv/linux/s390/bits/sigaction.h
37373 (struct sigaction): Define sa_handler and sa_sigaction using union
37374 also for [__USE_XOPEN_EXTENDED].
37375 (SA_ONSTACK): Change [__USE_UNIX98] condition to
37376 [__USE_XOPEN_EXTENDED].
37377 (SA_RESTART): Likewise.
37378 (SA_NODEFER): Likewise.
37379 (SA_RESETHAND): Likewise.
37380 * sysdeps/unix/sysv/linux/sparc/bits/sigaction.h
37381 (struct sigaction): Define sa_handler and sa_sigaction using union
37382 also for [__USE_XOPEN_EXTENDED].
37383 (SA_ONSTACK): Change [__USE_UNIX98] condition to
37384 [__USE_XOPEN_EXTENDED].
37385 (SA_RESTART): Likewise.
37386 (SA_NODEFER): Likewise. Define directly rather than as alias.
37387 (SA_RESETHAND): Likewise.
37388 (SA_INTERRUPT): Define only for [__USE_MISC].
37389 (SA_NOMASK): Define as alias of SA_NODEFER, only for [__USE_MISC].
37390 (SA_ONESHOT): Define as alias of SA_RESETHAND, only for
37391 [__USE_MISC].
37392 (SA_STACK): Define only for [__USE_MISC].
37393 * sysdeps/unix/sysv/linux/tile/bits/sigaction.h
37394 (struct sigaction): Define sa_handler and sa_sigaction using union
37395 also for [__USE_XOPEN_EXTENDED].
37396 (SA_ONSTACK): Change [__USE_UNIX98] condition to
37397 [__USE_XOPEN_EXTENDED].
37398 (SA_RESTART): Likewise.
37399 (SA_NODEFER): Likewise.
37400 (SA_RESETHAND): Likewise.
37401 (SA_NOPTRACE): Define only for [__USE_MISC].
37402
37403 * catgets/catgets.c (catgets): Use uintN_t instead of u_intN_t.
37404 * catgets/catgetsinfo.h (struct catalog_obj): Likewise.
37405 (struct catalog_info): Likewise.
37406 * inet/htontest.c (lo): Likewise.
37407 (foo): Likewise.
37408 * inet/inet_lnaof.c (inet_lnaof): Likewise.
37409 * inet/inet_net.c (inet_network): Likewise.
37410 * inet/inet_netof.c (inet_netof): Likewise.
37411 * inet/rcmd.c (__ivaliduser): Likewise.
37412 (iruserok): Likewise.
37413 * locale/loadlocale.c (_nl_intern_locale_data): Likewise.
37414 * locale/programs/locale-spec.c (locale_special): Likewise.
37415 * nis/nis_findserv.c (struct findserv_req): Likewise.
37416 (__nis_findfastest_with_timeout): Likewise.
37417 * nss/test-netdb.c (test_network): Likewise.
37418 * resolv/inet_neta.c (inet_neta): Likewise.
37419 * resolv/ns_date.c (ns_datetosecs): Likewise.
37420 (SECS_PER_DAY): Likewise.
37421 * resolv/nss_dns/dns-network.c (_nss_dns_getnetbyaddr_r):
37422 Likewise.
37423 * resolv/res_comp.c (__putlong): Likewise.
37424 (__putshort): Likewise.
37425 (_getlong): Likewise.
37426 (_getshort): Likewise.
37427 * resolv/res_debug.c (p_time): Likewise.
37428 (precsize_ntoa): Likewise.
37429 (precsize_aton): Likewise.
37430 (latlon2ul): Likewise.
37431 (loc_aton): Likewise.
37432 (loc_ntoa): Likewise.
37433 * resolv/res_hconf.c (struct netaddr): Likewise.
37434 (_res_hconf_reorder_addrs): Likewise.
37435 * sunrpc/clnt_tcp.c (clnttcp_call): Likewise.
37436 (clnttcp_control): Likewise.
37437 * sunrpc/clnt_udp.c (clntudp_call): Likewise.
37438 (clntudp_control): Likewise.
37439 * sunrpc/clnt_unix.c (clntunix_call): Likewise.
37440 (clntunix_control): Likewise.
37441 * sunrpc/pmap_rmt.c (clnt_broadcast): Likewise.
37442 * sunrpc/rpc/auth.h (union des_block): Likewise.
37443 * sunrpc/tst-udp-nonblocking.c (do_test): Likewise.
37444 * sunrpc/xdr_rec.c (struct rec_strm): Likewise.
37445 (xdrrec_create): Likewise.
37446 (xdrrec_endofrecord): Likewise.
37447 (flush_out): Likewise.
37448 * sunrpc/xdr_stdio.c (xdrstdio_getlong): Likewise.
37449 (xdrstdio_putlong): Likewise.
37450 * sysdeps/unix/sysv/linux/errqueue.h (struct sock_extended_err):
37451 Likewise.
37452
37453 * misc/sys/cdefs.h (__long_double_t): Remove.
37454 * stdio-common/printf_fp.c (__printf_fp_l): Use long double
37455 instead of __long_double_t,
37456 * stdlib/strfmon_l.c (__vstrfmon_l): Likewise.
37457
37458 2017-08-07 Siddhesh Poyarekar <siddhesh@sourceware.org>
37459
37460 * benchtests/scripts/compare_strings.py: Avoid display error when
37461 running on a text terminal.
37462
37463 * benchtests/scripts/compare_strings.py (main): Add an
37464 optional -base option.
37465 (process_results): New argument base_func.
37466
37467 * benchtests/bench-memcpy.c (test_main): Use TEST_NAME instead of
37468 hardcoding memcpy.
37469 * benchtests/bench-memcpy-large.c (test_name): Likewise.
37470 * benchtests/bench-memcpy-random.c (test_name): Likewise.
37471
37472 2017-08-07 Andreas Schwab <schwab@suse.de>
37473
37474 * elf/Makefile ($(objpfx)tst-pathopt.out): Redirect output to target.
37475 * grp/Makefile ($(objpfx)tst_fgetgrent.out): Likewise.
37476 * intl/Makefile ($(objpfx)tst-gettext.out)
37477 ($(objpfx)tst-translit.out, $(objpfx)tst-gettext2.out)
37478 ($(objpfx)tst-gettext4.out, $(objpfx)tst-gettext6.out): Likewise.
37479 * libio/Makefile ($(objpfx)test-freopen.out): Likewise.
37480 * malloc/Makefile ($(objpfx)tst-mtrace.out): Likewise.
37481 * nptl/Makefile ($(objpfx)tst-tls6.out): Likewise.
37482 * posix/Makefile ($(objpfx)globtest.out)
37483 ($(objpfx)wordexp-tst.out, $(objpfx)tst-getconf.out): Likewise.
37484 * stdio-common/Makefile ($(objpfx)tst-unbputc.out)
37485 ($(objpfx)tst-printf.out): Likewise.
37486 * stdlib/Makefile ($(objpfx)tst-fmtmsg.out)
37487 ($(objpfx)tst-setcontext3.out): Likewise.
37488
37489 2017-08-07 H.J. Lu <hongjiu.lu@intel.com>
37490
37491 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
37492 Add e_exp-fma, e_log-fma, e_pow-fma, s_atan-fma, e_asin-fma,
37493 e_atan2-fma, s_sin-fma, s_tan-fma, mplog-fma, mpa-fma,
37494 slowexp-fma, slowpow-fma, sincos32-fma, doasin-fma, dosincos-fma,
37495 halfulp-fma, mpexp-fma, mpatan2-fma, mpatan-fma, mpsqrt-fma,
37496 and mptan-fma.
37497 (CFLAGS-doasin-fma.c): New.
37498 (CFLAGS-dosincos-fma.c): Likewise.
37499 (CFLAGS-e_asin-fma.c): Likewise.
37500 (CFLAGS-e_atan2-fma.c): Likewise.
37501 (CFLAGS-e_exp-fma.c): Likewise.
37502 (CFLAGS-e_log-fma.c): Likewise.
37503 (CFLAGS-e_pow-fma.c): Likewise.
37504 (CFLAGS-halfulp-fma.c): Likewise.
37505 (CFLAGS-mpa-fma.c): Likewise.
37506 (CFLAGS-mpatan-fma.c): Likewise.
37507 (CFLAGS-mpatan2-fma.c): Likewise.
37508 (CFLAGS-mpexp-fma.c): Likewise.
37509 (CFLAGS-mplog-fma.c): Likewise.
37510 (CFLAGS-mpsqrt-fma.c): Likewise.
37511 (CFLAGS-mptan-fma.c): Likewise.
37512 (CFLAGS-s_atan-fma.c): Likewise.
37513 (CFLAGS-sincos32-fma.c): Likewise.
37514 (CFLAGS-slowexp-fma.c): Likewise.
37515 (CFLAGS-slowpow-fma.c): Likewise.
37516 (CFLAGS-s_sin-fma.c): Likewise.
37517 (CFLAGS-s_tan-fma.c): Likewise.
37518 * sysdeps/x86_64/fpu/multiarch/doasin-fma.c: New file.
37519 * sysdeps/x86_64/fpu/multiarch/dosincos-fma.c: Likewise.
37520 * sysdeps/x86_64/fpu/multiarch/e_asin-fma.c: Likewise.
37521 * sysdeps/x86_64/fpu/multiarch/e_atan2-fma.c: Likewise.
37522 * sysdeps/x86_64/fpu/multiarch/e_exp-fma.c: Likewise.
37523 * sysdeps/x86_64/fpu/multiarch/e_log-fma.c: Likewise.
37524 * sysdeps/x86_64/fpu/multiarch/e_pow-fma.c: Likewise.
37525 * sysdeps/x86_64/fpu/multiarch/halfulp-fma.c: Likewise.
37526 * sysdeps/x86_64/fpu/multiarch/ifunc-avx-fma4.h: Likewise.
37527 * sysdeps/x86_64/fpu/multiarch/ifunc-fma4.h: Likewise.
37528 * sysdeps/x86_64/fpu/multiarch/mpa-fma.c: Likewise.
37529 * sysdeps/x86_64/fpu/multiarch/mpatan-fma.c: Likewise.
37530 * sysdeps/x86_64/fpu/multiarch/mpatan2-fma.c: Likewise.
37531 * sysdeps/x86_64/fpu/multiarch/mpexp-fma.c: Likewise.
37532 * sysdeps/x86_64/fpu/multiarch/mplog-fma.c: Likewise.
37533 * sysdeps/x86_64/fpu/multiarch/mpsqrt-fma.c: Likewise.
37534 * sysdeps/x86_64/fpu/multiarch/mptan-fma.c: Likewise.
37535 * sysdeps/x86_64/fpu/multiarch/s_atan-fma.c: Likewise.
37536 * sysdeps/x86_64/fpu/multiarch/s_sin-fma.c: Likewise.
37537 * sysdeps/x86_64/fpu/multiarch/s_tan-fma.c: Likewise.
37538 * sysdeps/x86_64/fpu/multiarch/sincos32-fma.c: Likewise.
37539 * sysdeps/x86_64/fpu/multiarch/slowexp-fma.c: Likewise.
37540 * sysdeps/x86_64/fpu/multiarch/slowpow-fma.c: Likewise.
37541 * sysdeps/x86_64/fpu/multiarch/e_asin.c: Rewrite.
37542 * sysdeps/x86_64/fpu/multiarch/e_atan2.c: Likewise.
37543 * sysdeps/x86_64/fpu/multiarch/e_exp.c: Likewise.
37544 * sysdeps/x86_64/fpu/multiarch/e_log.c: Likewise.
37545 * sysdeps/x86_64/fpu/multiarch/e_pow.c: Likewise.
37546 * sysdeps/x86_64/fpu/multiarch/s_atan.c: Likewise.
37547 * sysdeps/x86_64/fpu/multiarch/s_sin.c: Likewise.
37548 * sysdeps/x86_64/fpu/multiarch/s_tan.c: Likewise.
37549
37550 2017-08-04 Joseph Myers <joseph@codesourcery.com>
37551
37552 * sysdeps/generic/math_private.h (__EXPR_FLT128): Remove macro.
37553 (min_of_type_f): New macro.
37554 (min_of_type_): Likewise.
37555 (min_of_type_l): Likewise.
37556 (min_of_type_f128): Likewise.
37557 (min_of_type): Define using __MATH_TG and taking an expression
37558 argument.
37559 (math_check_force_underflow): Pass expression instead of type to
37560 min_of_type.
37561 (math_check_force_underflow_nonneg): Likewise.
37562
37563 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
37564
37565 * sysdeps/x86/cpu-features.h [__ASSEMBLER__]
37566 (LOAD_RTLD_GLOBAL_RO_RDX, HAS_FEATURE, LOAD_FUNC_GOT_EAX,
37567 HAS_CPU_FEATURE, HAS_ARCH_FEATURE): Removed.
37568
37569 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
37570
37571 * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
37572 bcopy-ia32, bzero-ia32, rawmemchr-ia32 memchr-ia32,
37573 memcmp-ia32, memcpy-ia32, memmove-ia32, mempcpy-ia32,
37574 memset-ia32, strcat-ia32, strchr-ia32, strrchr-ia32,
37575 strcpy-ia32, strcmp-ia32, strcspn-ia32, strpbrk-ia32,
37576 strspn-ia32, strlen-ia32, stpcpy-ia32, stpncpy-ia32,
37577 memcpy_chk-nonshared, mempcpy_chk-nonshared,
37578 memmove_chk-nonshared and memset_chk-nonshared
37579 * sysdeps/i386/i686/multiarch/bcopy-ia32.S: New file.
37580 * sysdeps/i386/i686/multiarch/bcopy.c: Likewise.
37581 * sysdeps/i386/i686/multiarch/bzero-ia32.S: Likewise.
37582 * sysdeps/i386/i686/multiarch/bzero.c: Likewise.
37583 * sysdeps/i386/i686/multiarch/ifunc-memmove.h: Likewise.
37584 * sysdeps/i386/i686/multiarch/ifunc-memset.h: Likewise.
37585 * sysdeps/i386/i686/multiarch/ifunc-sse2-bsf.h: Likewise.
37586 * sysdeps/i386/i686/multiarch/ifunc-sse2-ssse3.h: Likewise.
37587 * sysdeps/i386/i686/multiarch/ifunc-sse2.h: Likewise.
37588 * sysdeps/i386/i686/multiarch/ifunc-sse4_2.h: Likewise.
37589 * sysdeps/i386/i686/multiarch/ifunc-ssse3-sse4_2.h: Likewise.
37590 * sysdeps/i386/i686/multiarch/memchr-ia32.S: Likewise.
37591 * sysdeps/i386/i686/multiarch/memchr.c: Likewise.
37592 * sysdeps/i386/i686/multiarch/memcmp-ia32.S: Likewise.
37593 * sysdeps/i386/i686/multiarch/memcmp.c: Likewise.
37594 * sysdeps/i386/i686/multiarch/memcpy-ia32.S: Likewise.
37595 * sysdeps/i386/i686/multiarch/memcpy.c: Likewise.
37596 * sysdeps/i386/i686/multiarch/memcpy_chk-nonshared.S: Likewise.
37597 * sysdeps/i386/i686/multiarch/memcpy_chk.c: Likewise.
37598 * sysdeps/i386/i686/multiarch/memmove-ia32.S: Likewise.
37599 * sysdeps/i386/i686/multiarch/memmove.c: Likewise.
37600 * sysdeps/i386/i686/multiarch/memmove_chk-nonshared.S: Likewise.
37601 * sysdeps/i386/i686/multiarch/memmove_chk.c: Likewise.
37602 * sysdeps/i386/i686/multiarch/mempcpy-ia32.S: Likewise.
37603 * sysdeps/i386/i686/multiarch/mempcpy.c: Likewise.
37604 * sysdeps/i386/i686/multiarch/mempcpy_chk-nonshared.S: Likewise.
37605 * sysdeps/i386/i686/multiarch/mempcpy_chk.c: Likewise.
37606 * sysdeps/i386/i686/multiarch/memrchr.c: Likewise.
37607 * sysdeps/i386/i686/multiarch/memset-ia32.S: Likewise.
37608 * sysdeps/i386/i686/multiarch/memset.c: Likewise.
37609 * sysdeps/i386/i686/multiarch/memset_chk-nonshared.S: Likewise.
37610 * sysdeps/i386/i686/multiarch/rawmemchr-ia32.S: Likewise.
37611 * sysdeps/i386/i686/multiarch/rawmemchr.c: Likewise.
37612 * sysdeps/i386/i686/multiarch/stpcpy-ia32.S: Likewise.
37613 * sysdeps/i386/i686/multiarch/stpcpy-ia32.S: Likewise.
37614 * sysdeps/i386/i686/multiarch/stpcpy.c: Likewise.
37615 * sysdeps/i386/i686/multiarch/stpncpy-ia32.S: Likewise.
37616 * sysdeps/i386/i686/multiarch/stpncpy.c: Likewise.
37617 * sysdeps/i386/i686/multiarch/strcasecmp.c: Likewise.
37618 * sysdeps/i386/i686/multiarch/strcasecmp_l.c: Likewise.
37619 * sysdeps/i386/i686/multiarch/strcat-ia32.S: Likewise.
37620 * sysdeps/i386/i686/multiarch/strcat.c: Likewise.
37621 * sysdeps/i386/i686/multiarch/strchr-ia32.S: Likewise.
37622 * sysdeps/i386/i686/multiarch/strchr.c: Likewise.
37623 * sysdeps/i386/i686/multiarch/strcmp-ia32.S: Likewise.
37624 * sysdeps/i386/i686/multiarch/strcmp.c: Likewise.
37625 * sysdeps/i386/i686/multiarch/strcpy-ia32.S: Likewise.
37626 * sysdeps/i386/i686/multiarch/strcpy.c: Likewise.
37627 * sysdeps/i386/i686/multiarch/strcspn-ia32.S: Likewise.
37628 * sysdeps/i386/i686/multiarch/strcspn.c: Likewise.
37629 * sysdeps/i386/i686/multiarch/strlen-ia32.S: Likewise.
37630 * sysdeps/i386/i686/multiarch/strlen.c: Likewise.
37631 * sysdeps/i386/i686/multiarch/strncase.c: Likewise.
37632 * sysdeps/i386/i686/multiarch/strncase_l.c: Likewise.
37633 * sysdeps/i386/i686/multiarch/strncat.c: Likewise.
37634 * sysdeps/i386/i686/multiarch/strncmp.c: Likewise.
37635 * sysdeps/i386/i686/multiarch/strncpy.c: Likewise.
37636 * sysdeps/i386/i686/multiarch/strnlen.c: Likewise.
37637 * sysdeps/i386/i686/multiarch/strpbrk-ia32.S: Likewise.
37638 * sysdeps/i386/i686/multiarch/strpbrk.c: Likewise.
37639 * sysdeps/i386/i686/multiarch/strrchr-ia32.S: Likewise.
37640 * sysdeps/i386/i686/multiarch/strrchr.c: Likewise.
37641 * sysdeps/i386/i686/multiarch/strspn-ia32.S: Likewise.
37642 * sysdeps/i386/i686/multiarch/strspn.c: Likewise.
37643 * sysdeps/i386/i686/multiarch/wcschr.c: Likewise.
37644 * sysdeps/i386/i686/multiarch/wcscmp.c: Likewise.
37645 * sysdeps/i386/i686/multiarch/wcscpy.c: Likewise.
37646 * sysdeps/i386/i686/multiarch/wcslen.c: Likewise.
37647 * sysdeps/i386/i686/multiarch/wcsrchr.c: Likewise.
37648 * sysdeps/i386/i686/multiarch/wmemcmp.c: Likewise.
37649 * sysdeps/i386/i686/multiarch/bcopy.S: Removed.
37650 * sysdeps/i386/i686/multiarch/bzero.S: Likewise.
37651 * sysdeps/i386/i686/multiarch/memchr.S: Likewise.
37652 * sysdeps/i386/i686/multiarch/memcmp.S: Likewise.
37653 * sysdeps/i386/i686/multiarch/memcpy.S: Likewise.
37654 * sysdeps/i386/i686/multiarch/memcpy_chk.S: Likewise.
37655 * sysdeps/i386/i686/multiarch/memmove.S: Likewise.
37656 * sysdeps/i386/i686/multiarch/memmove_chk.S: Likewise.
37657 * sysdeps/i386/i686/multiarch/mempcpy.S: Likewise.
37658 * sysdeps/i386/i686/multiarch/mempcpy_chk.S: Likewise.
37659 * sysdeps/i386/i686/multiarch/memrchr.S: Likewise.
37660 * sysdeps/i386/i686/multiarch/memset.S: Likewise.
37661 * sysdeps/i386/i686/multiarch/memset_chk.S: Likewise.
37662 * sysdeps/i386/i686/multiarch/rawmemchr.S: Likewise.
37663 * sysdeps/i386/i686/multiarch/stpcpy.S: Likewise.
37664 * sysdeps/i386/i686/multiarch/stpncpy.S: Likewise.
37665 * sysdeps/i386/i686/multiarch/strcasecmp.S: Likewise.
37666 * sysdeps/i386/i686/multiarch/strcasecmp_l.S: Likewise.
37667 * sysdeps/i386/i686/multiarch/strcat.S: Likewise.
37668 * sysdeps/i386/i686/multiarch/strcmp.S: Likewise.
37669 * sysdeps/i386/i686/multiarch/strcpy.S: Likewise.
37670 * sysdeps/i386/i686/multiarch/strcspn.S: Likewise.
37671 * sysdeps/i386/i686/multiarch/strlen.S: Likewise.
37672 * sysdeps/i386/i686/multiarch/strncase.S: Likewise.
37673 * sysdeps/i386/i686/multiarch/strncase_l.S: Likewise.
37674 * sysdeps/i386/i686/multiarch/strncat.S: Likewise.
37675 * sysdeps/i386/i686/multiarch/strncmp.S: Likewise.
37676 * sysdeps/i386/i686/multiarch/strncpy.S: Likewise.
37677 * sysdeps/i386/i686/multiarch/strnlen.S: Likewise.
37678 * sysdeps/i386/i686/multiarch/strpbrk.S: Likewise.
37679 * sysdeps/i386/i686/multiarch/strrchr.S: Likewise.
37680 * sysdeps/i386/i686/multiarch/strspn.S: Likewise.
37681 * sysdeps/i386/i686/multiarch/wcschr.S: Likewise.
37682 * sysdeps/i386/i686/multiarch/wcscmp.S: Likewise.
37683 * sysdeps/i386/i686/multiarch/wcscpy.S: Likewise.
37684 * sysdeps/i386/i686/multiarch/wcslen.S: Likewise.
37685 * sysdeps/i386/i686/multiarch/wcsrchr.S: Likewise.
37686 * sysdeps/i386/i686/multiarch/wmemcmp.S: Likewise.
37687
37688 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
37689
37690 * sysdeps/x86_64/fpu/multiarch/Makefile (libmvec-sysdep_routines)
37691 Add svml_d_cos2_core-sse2, svml_d_cos4_core-sse,
37692 svml_d_cos8_core-avx2, svml_d_exp2_core-sse2,
37693 svml_d_exp4_core-sse, svml_d_exp8_core-avx2,
37694 svml_d_log2_core-sse2, svml_d_log4_core-sse,
37695 svml_d_log8_core-avx2, svml_d_pow2_core-sse2,
37696 svml_d_pow4_core-sse, svml_d_pow8_core-avx2
37697 svml_d_sin2_core-sse2, svml_d_sin4_core-sse,
37698 svml_d_sin8_core-avx2, svml_d_sincos2_core-sse2,
37699 svml_d_sincos4_core-sse, svml_d_sincos8_core-avx2,
37700 svml_s_cosf16_core-avx2, svml_s_cosf4_core-sse2,
37701 svml_s_cosf8_core-sse, svml_s_expf16_core-avx2,
37702 svml_s_expf4_core-sse2, svml_s_expf8_core-sse,
37703 svml_s_logf16_core-avx2, svml_s_logf4_core-sse2,
37704 svml_s_logf8_core-sse, svml_s_powf16_core-avx2,
37705 svml_s_powf4_core-sse2, svml_s_powf8_core-sse,
37706 svml_s_sincosf16_core-avx2, svml_s_sincosf4_core-sse2,
37707 svml_s_sincosf8_core-sse, svml_s_sinf16_core-avx2,
37708 svml_s_sinf4_core-sse2 and svml_s_sinf8_core-sse.
37709 * sysdeps/x86_64/fpu/multiarch/ifunc-mathvec-avx2.h: New file.
37710 * sysdeps/x86_64/fpu/multiarch/ifunc-mathvec-avx512.h: Likewise.
37711 * sysdeps/x86_64/fpu/multiarch/ifunc-mathvec-sse4_1.h: Likewise.
37712 * sysdeps/x86_64/fpu/multiarch/svml_d_cos2_core.c: Likewise.
37713 * sysdeps/x86_64/fpu/multiarch/svml_d_cos4_core.c: Likewise.
37714 * sysdeps/x86_64/fpu/multiarch/svml_d_cos8_core.c: Likewise.
37715 * sysdeps/x86_64/fpu/multiarch/svml_d_exp2_core.c: Likewise.
37716 * sysdeps/x86_64/fpu/multiarch/svml_d_exp4_core.c: Likewise.
37717 * sysdeps/x86_64/fpu/multiarch/svml_d_exp8_core.c: Likewise.
37718 * sysdeps/x86_64/fpu/multiarch/svml_d_log2_core.c: Likewise.
37719 * sysdeps/x86_64/fpu/multiarch/svml_d_log4_core.c: Likewise.
37720 * sysdeps/x86_64/fpu/multiarch/svml_d_log8_core.c: Likewise.
37721 * sysdeps/x86_64/fpu/multiarch/svml_d_pow2_core.c: Likewise.
37722 * sysdeps/x86_64/fpu/multiarch/svml_d_pow4_core.c: Likewise.
37723 * sysdeps/x86_64/fpu/multiarch/svml_d_pow8_core.c: Likewise.
37724 * sysdeps/x86_64/fpu/multiarch/svml_d_sin2_core.c: Likewise.
37725 * sysdeps/x86_64/fpu/multiarch/svml_d_sin4_core.c: Likewise.
37726 * sysdeps/x86_64/fpu/multiarch/svml_d_sin8_core.c: Likewise.
37727 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos2_core.c: Likewise.
37728 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos4_core.c: Likewise.
37729 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos8_core.c: Likewise.
37730 * sysdeps/x86_64/fpu/multiarch/svml_d_cosf16_core.c: Likewise.
37731 * sysdeps/x86_64/fpu/multiarch/svml_d_cosf4_core.c: Likewise.
37732 * sysdeps/x86_64/fpu/multiarch/svml_d_cosf8_core.c: Likewise.
37733 * sysdeps/x86_64/fpu/multiarch/svml_d_expf16_core.c: Likewise.
37734 * sysdeps/x86_64/fpu/multiarch/svml_d_expf4_core.c: Likewise.
37735 * sysdeps/x86_64/fpu/multiarch/svml_d_expf8_core.c: Likewise.
37736 * sysdeps/x86_64/fpu/multiarch/svml_d_logf16_core.c: Likewise.
37737 * sysdeps/x86_64/fpu/multiarch/svml_d_logf4_core.c: Likewise.
37738 * sysdeps/x86_64/fpu/multiarch/svml_d_logf8_core.c: Likewise.
37739 * sysdeps/x86_64/fpu/multiarch/svml_d_powf16_core.c: Likewise.
37740 * sysdeps/x86_64/fpu/multiarch/svml_d_powf4_core.c: Likewise.
37741 * sysdeps/x86_64/fpu/multiarch/svml_d_powf8_core.c: Likewise.
37742 * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf16_core.c: Likewise.
37743 * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf4_core.c: Likewise.
37744 * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf8_core.c: Likewise.
37745 * sysdeps/x86_64/fpu/multiarch/svml_d_sinf16_core.c: Likewise.
37746 * sysdeps/x86_64/fpu/multiarch/svml_d_sinf4_core.c: Likewise.
37747 * sysdeps/x86_64/fpu/multiarch/svml_d_sinf8_core.c: Likewise.
37748 * sysdeps/x86_64/fpu/multiarch/svml_d_cos2_core.S: Renamed to
37749 ...
37750 * sysdeps/x86_64/fpu/multiarch/svml_d_cos2_core-sse2.S: This.
37751 Don't include <sysdep.h> nor <init-arch.h>.
37752 (_ZGVbN2v_cos): Removed.
37753 * sysdeps/x86_64/fpu/multiarch/svml_d_cos4_core.S: Renamed to
37754 ...
37755 * sysdeps/x86_64/fpu/multiarch/svml_d_cos4_core-sse.S: This.
37756 Don't include <sysdep.h> nor <init-arch.h>.
37757 (_ZGVdN4v_cos): Removed.
37758 * sysdeps/x86_64/fpu/multiarch/svml_d_cos8_core.S: Renamed to
37759 ...
37760 * sysdeps/x86_64/fpu/multiarch/svml_d_cos8_core-avx2.S: This.
37761 Don't include <sysdep.h> nor <init-arch.h>.
37762 (_ZGVeN8v_cos): Removed.
37763 * sysdeps/x86_64/fpu/multiarch/svml_d_exp2_core.S: Renamed to
37764 ...
37765 * sysdeps/x86_64/fpu/multiarch/svml_d_exp2_core-sse2.S: This.
37766 Don't include <sysdep.h> nor <init-arch.h>.
37767 (_ZGVbN2v_exp): Removed.
37768 * sysdeps/x86_64/fpu/multiarch/svml_d_exp4_core.S: Renamed to
37769 ...
37770 * sysdeps/x86_64/fpu/multiarch/svml_d_exp4_core-sse.S: This.
37771 Don't include <sysdep.h> nor <init-arch.h>.
37772 (_ZGVdN4v_exp): Removed.
37773 * sysdeps/x86_64/fpu/multiarch/svml_d_exp8_core.S: Renamed to
37774 ...
37775 * sysdeps/x86_64/fpu/multiarch/svml_d_exp8_core-avx2.S: This.
37776 Don't include <sysdep.h> nor <init-arch.h>.
37777 (_ZGVeN8v_exp): Removed.
37778 * sysdeps/x86_64/fpu/multiarch/svml_d_log2_core.S: Renamed to
37779 ...
37780 * sysdeps/x86_64/fpu/multiarch/svml_d_log2_core-sse2.S: This.
37781 Don't include <sysdep.h> nor <init-arch.h>.
37782 (_ZGVbN2v_log): Removed.
37783 * sysdeps/x86_64/fpu/multiarch/svml_d_log4_core.S: Renamed to
37784 ...
37785 * sysdeps/x86_64/fpu/multiarch/svml_d_log4_core-sse.S: This.
37786 Don't include <sysdep.h> nor <init-arch.h>.
37787 (_ZGVdN4v_log): Removed.
37788 * sysdeps/x86_64/fpu/multiarch/svml_d_log8_core.S: Renamed to
37789 ...
37790 * sysdeps/x86_64/fpu/multiarch/svml_d_log8_core-avx2.S: This.
37791 Don't include <sysdep.h> nor <init-arch.h>.
37792 (_ZGVeN8v_log): Removed.
37793 * sysdeps/x86_64/fpu/multiarch/svml_d_pow2_core.S: Renamed to
37794 ...
37795 * sysdeps/x86_64/fpu/multiarch/svml_d_pow2_core-sse2.S: This.
37796 Don't include <sysdep.h> nor <init-arch.h>.
37797 (_ZGVbN2vv_pow): Removed.
37798 * sysdeps/x86_64/fpu/multiarch/svml_d_pow4_core.S: Renamed to
37799 ...
37800 * sysdeps/x86_64/fpu/multiarch/svml_d_pow4_core-sse.S: This.
37801 Don't include <sysdep.h> nor <init-arch.h>.
37802 (_ZGVdN4vv_pow): Removed.
37803 * sysdeps/x86_64/fpu/multiarch/svml_d_pow8_core.S: Renamed to
37804 ...
37805 * sysdeps/x86_64/fpu/multiarch/svml_d_pow8_core-avx2.S: This.
37806 Don't include <sysdep.h> nor <init-arch.h>.
37807 (_ZGVeN8vv_pow): Removed.
37808 * sysdeps/x86_64/fpu/multiarch/svml_d_sin2_core.S: Renamed to
37809 ...
37810 * sysdeps/x86_64/fpu/multiarch/svml_d_sin2_core-sse2.S: This.
37811 Don't include <sysdep.h> nor <init-arch.h>.
37812 (_ZGVbN2v_sin): Removed.
37813 * sysdeps/x86_64/fpu/multiarch/svml_d_sin4_core.S: Renamed to
37814 ...
37815 * sysdeps/x86_64/fpu/multiarch/svml_d_sin4_core-sse.S: This.
37816 Don't include <sysdep.h> nor <init-arch.h>.
37817 (_ZGVbN4v_sin): Removed.
37818 * sysdeps/x86_64/fpu/multiarch/svml_d_sin8_core.S: Renamed to
37819 ...
37820 * sysdeps/x86_64/fpu/multiarch/svml_d_sin8_core-avx2.S: This.
37821 Don't include <sysdep.h> nor <init-arch.h>.
37822 (_ZGVbN8v_sin): Removed.
37823 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos2_core.S: Renamed to
37824 ...
37825 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos2_core-sse2.S: This.
37826 Don't include <sysdep.h> nor <init-arch.h>.
37827 (_ZGVbN2vvv_sincos): Removed.
37828 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos4_core.S: Renamed to
37829 ...
37830 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos4_core-sse.S: This.
37831 Don't include <sysdep.h> nor <init-arch.h>.
37832 (_ZGVdN4vvv_sincos): Removed.
37833 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos8_core.S: Renamed to
37834 ...
37835 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos8_core-avx2.S: This.
37836 Don't include <sysdep.h> nor <init-arch.h>.
37837 (_ZGVeN8vvv_sincos): Removed.
37838 * sysdeps/x86_64/fpu/multiarch/svml_d_cosf16_core.S: Renamed to
37839 ...
37840 * sysdeps/x86_64/fpu/multiarch/svml_d_cosf16_core-avx2.S: This.
37841 Don't include <sysdep.h> nor <init-arch.h>.
37842 (_ZGVeN16v_cosf): Removed.
37843 * sysdeps/x86_64/fpu/multiarch/svml_d_cosf4_core.S: Renamed to
37844 ...
37845 * sysdeps/x86_64/fpu/multiarch/svml_d_cosf4_core-sse2.S: This.
37846 Don't include <sysdep.h> nor <init-arch.h>.
37847 (_ZGVbN4v_cosf): Removed.
37848 * sysdeps/x86_64/fpu/multiarch/svml_d_cosf8_core.S: Renamed to
37849 ...
37850 * sysdeps/x86_64/fpu/multiarch/svml_d_cosf8_core-sse.S: This.
37851 Don't include <sysdep.h> nor <init-arch.h>.
37852 (_ZGVdN8v_cosf): Removed.
37853 * sysdeps/x86_64/fpu/multiarch/svml_d_expf16_core.S: Renamed to
37854 ...
37855 * sysdeps/x86_64/fpu/multiarch/svml_d_expf16_core-avx2.S: This.
37856 Don't include <sysdep.h> nor <init-arch.h>.
37857 (_ZGVeN16v_expf): Removed.
37858 * sysdeps/x86_64/fpu/multiarch/svml_d_expf4_core.S: Renamed to
37859 ...
37860 * sysdeps/x86_64/fpu/multiarch/svml_d_expf4_core-sse2.S: This.
37861 Don't include <sysdep.h> nor <init-arch.h>.
37862 (_ZGVbN4v_expf): Removed.
37863 * sysdeps/x86_64/fpu/multiarch/svml_d_expf8_core.S: Renamed to
37864 ...
37865 * sysdeps/x86_64/fpu/multiarch/svml_d_expf8_core-sse.S: This.
37866 Don't include <sysdep.h> nor <init-arch.h>.
37867 (_ZGVdN8v_expf): Removed.
37868 * sysdeps/x86_64/fpu/multiarch/svml_d_logf16_core.S: Renamed to
37869 ...
37870 * sysdeps/x86_64/fpu/multiarch/svml_d_logf16_core-avx2.S: This.
37871 Don't include <sysdep.h> nor <init-arch.h>.
37872 (_ZGVeN16v_logf): Removed.
37873 * sysdeps/x86_64/fpu/multiarch/svml_d_logf4_core.S: Renamed to
37874 ...
37875 * sysdeps/x86_64/fpu/multiarch/svml_d_logf4_core-sse2.S: This.
37876 Don't include <sysdep.h> nor <init-arch.h>.
37877 (_ZGVbN4v_logf): Removed.
37878 * sysdeps/x86_64/fpu/multiarch/svml_d_logf8_core.S: Renamed to
37879 ...
37880 * sysdeps/x86_64/fpu/multiarch/svml_d_logf8_core-sse.S: This.
37881 Don't include <sysdep.h> nor <init-arch.h>.
37882 (_ZGVdN8v_logf): Removed.
37883 * sysdeps/x86_64/fpu/multiarch/svml_d_powf16_core.S: Renamed to
37884 ...
37885 * sysdeps/x86_64/fpu/multiarch/svml_d_powf16_core-avx2.S: This.
37886 Don't include <sysdep.h> nor <init-arch.h>.
37887 (_ZGVeN16vv_powf): Removed.
37888 * sysdeps/x86_64/fpu/multiarch/svml_d_powf4_core.S: Renamed to
37889 ...
37890 * sysdeps/x86_64/fpu/multiarch/svml_d_powf4_core-sse2.S: This.
37891 Don't include <sysdep.h> nor <init-arch.h>.
37892 (_ZGVbN4vv_powf): Removed.
37893 * sysdeps/x86_64/fpu/multiarch/svml_d_powf8_core.S: Renamed to
37894 ...
37895 * sysdeps/x86_64/fpu/multiarch/svml_d_powf8_core-sse.S: This.
37896 Don't include <sysdep.h> nor <init-arch.h>.
37897 (_ZGVdN8vv_powf): Removed.
37898 * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf16_core.S: Renamed to
37899 ...
37900 * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf16_core-avx2.S: This.
37901 Don't include <sysdep.h> nor <init-arch.h>.
37902 (_ZGVeN16vvv_sincosf): Removed.
37903 * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf4_core.S: Renamed to
37904 ...
37905 * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf4_core-sse2.S: This.
37906 Don't include <sysdep.h> nor <init-arch.h>.
37907 (_ZGVbN4vvv_sincosf): Removed.
37908 * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf8_core.S: Renamed to
37909 ...
37910 * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf8_core-sse.S: This.
37911 Don't include <sysdep.h> nor <init-arch.h>.
37912 (_ZGVdN8vvv_sincosf): Removed.
37913 * sysdeps/x86_64/fpu/multiarch/svml_d_sinf16_core.S: Renamed to
37914 ...
37915 * sysdeps/x86_64/fpu/multiarch/svml_d_sinf16_core-avx2.S: This.
37916 Don't include <sysdep.h> nor <init-arch.h>.
37917 (_ZGVeN16v_sinf): Removed.
37918 * sysdeps/x86_64/fpu/multiarch/svml_d_sinf4_core.S: Renamed to
37919 ...
37920 * sysdeps/x86_64/fpu/multiarch/svml_d_sinf4_core-sse2.S: This.
37921 Don't include <sysdep.h> nor <init-arch.h>.
37922 (_ZGVbN4v_sinf): Removed.
37923 * sysdeps/x86_64/fpu/multiarch/svml_d_sinf8_core.S: Renamed to
37924 ...
37925 * sysdeps/x86_64/fpu/multiarch/svml_d_sinf8_core-sse.S: This.
37926 Don't include <sysdep.h> nor <init-arch.h>.
37927 (_ZGVdN8v_sinf): Removed.
37928
37929 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
37930
37931 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
37932 Add s_ceil-sse4_1, s_ceilf-sse4_1, s_floor-sse4_1,
37933 s_floorf-sse4_1, s_nearbyint-sse4_1, s_nearbyintf-sse4_1,
37934 s_rint-sse4_1 and s_rintf-sse4_1.
37935 * sysdeps/x86_64/fpu/multiarch/ifunc-sse4_1.h: New file.
37936 * sysdeps/x86_64/fpu/multiarch/s_ceil.c: Likewise.
37937 * sysdeps/x86_64/fpu/multiarch/s_ceilf.c: Likewise.
37938 * sysdeps/x86_64/fpu/multiarch/s_floor.c: Likewise.
37939 * sysdeps/x86_64/fpu/multiarch/s_floorf.c: Likewise.
37940 * sysdeps/x86_64/fpu/multiarch/s_nearbyint.c: Likewise.
37941 * sysdeps/x86_64/fpu/multiarch/s_nearbyintf.c: Likewise.
37942 * sysdeps/x86_64/fpu/multiarch/s_rint.c: Likewise.
37943 * sysdeps/x86_64/fpu/multiarch/s_rintf.c: Likewise.
37944 * sysdeps/x86_64/fpu/multiarch/s_ceil.S: Renamed to ...
37945 * sysdeps/x86_64/fpu/multiarch/s_ceil-sse4_1.S: This. Don't
37946 include <machine/asm.h> nor <init-arch.h>. Include <sysdep.h>.
37947 (__ceil): Removed.
37948 * sysdeps/x86_64/fpu/multiarch/s_ceilf.S: Renamed to ...
37949 * sysdeps/x86_64/fpu/multiarch/s_ceilf-sse4_1.S: This. Don't
37950 include <machine/asm.h> nor <init-arch.h>. Include <sysdep.h>.
37951 (__ceilf): Removed.
37952 * sysdeps/x86_64/fpu/multiarch/s_floor.S: Renamed to ...
37953 * sysdeps/x86_64/fpu/multiarch/s_floor-sse4_1.S: This. Don't
37954 include <machine/asm.h> nor <init-arch.h>. Include <sysdep.h>.
37955 (__floor): Removed.
37956 * sysdeps/x86_64/fpu/multiarch/s_floorf.S: Renamed to ...
37957 * sysdeps/x86_64/fpu/multiarch/s_floorf-sse4_1.S: This. Don't
37958 include <machine/asm.h> nor <init-arch.h>. Include <sysdep.h>.
37959 (__floorf): Removed.
37960 * sysdeps/x86_64/fpu/multiarch/s_nearbyint.S: Renamed to ...
37961 * sysdeps/x86_64/fpu/multiarch/s_nearbyint-sse4_1.S: This. Don't
37962 include <machine/asm.h> nor <init-arch.h>. Include <sysdep.h>.
37963 (__nearbyint): Removed.
37964 * sysdeps/x86_64/fpu/multiarch/s_nearbyintf.S: Renamed to ...
37965 * sysdeps/x86_64/fpu/multiarch/s_nearbyintf-sse4_1.S: This. Don't
37966 include <machine/asm.h> nor <init-arch.h>. Include <sysdep.h>.
37967 (__nearbyintf): Removed.
37968 * sysdeps/x86_64/fpu/multiarch/s_rint.S: Renamed to ...
37969 * sysdeps/x86_64/fpu/multiarch/s_rint-sse4_1.S: This. Don't
37970 include <machine/asm.h> nor <init-arch.h>. Include <sysdep.h>.
37971 (__rint): Removed.
37972 * sysdeps/x86_64/fpu/multiarch/s_rintf.S: Renamed to ...
37973 * sysdeps/x86_64/fpu/multiarch/s_rintf-sse4_1.S: This. Don't
37974 include <machine/asm.h> nor <init-arch.h>. Include <sysdep.h>.
37975 (__rintf): Removed.
37976
37977 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
37978
37979 * sysdeps/i386/start.S (_start): Check Check PIC instead of
37980 SHARED. Avoid dynamic relocation against main in static PIE.
37981
37982 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
37983
37984 [BZ #21815]
37985 * elf/Makefile (CFLAGS-tst-prelink.c): New.
37986 (LDFLAGS-tst-prelink): Likewise.
37987
37988 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
37989
37990 * sysdeps/unix/sysv/linux/i386/sysdep.h (I386_USE_SYSENTER):
37991 Define to I386_USE_SYSENTER to 0 or 1 if not defined.
37992 (ENTER_KERNEL): Check if I386_USE_SYSENTER is 1 and check PIC.
37993 (INTERNAL_SYSCALL_MAIN_INLINE): Likewise.
37994 (INTERNAL_SYSCALL_NCS): Likewise.
37995 (LOADARGS_1): Likewise.
37996 (LOADARGS_5): Likewise.
37997 (RESTOREARGS_1): Likewise.
37998 (RESTOREARGS_5): Likewise.
37999
38000 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
38001
38002 * sysdeps/x86_64/memmove.S (MEMCPY_SYMBOL): Don't check SHARED.
38003 (MEMPCPY_SYMBOL): Likewise.
38004 * sysdeps/x86_64/multiarch/ifunc-impl-list.c
38005 (__libc_ifunc_impl_list): Test memcpy and mempcpy in libc.a.
38006 * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Also include
38007 in libc.a.
38008 * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Likewise.
38009 * sysdeps/x86_64/multiarch/memmove-avx512-no-vzeroupper.S:
38010 Likewise.
38011 * sysdeps/x86_64/multiarch/memcpy.c: Also include in libc.a.
38012 (__hidden_ver1): Don't use in libc.a.
38013 * sysdeps/x86_64/multiarch/memmove-sse2-unaligned-erms.S
38014 (__mempcpy): Don't create a weak alias in libc.a.
38015 * sysdeps/x86_64/multiarch/memmove-vec-unaligned-erms.S: Support
38016 libc.a.
38017 * sysdeps/x86_64/multiarch/mempcpy.c: Also include in libc.a.
38018 (__hidden_ver1): Don't use in libc.a.
38019
38020 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
38021
38022 * config.make.in (have-insert): New.
38023 * configure.ac (libc_cv_insert): New. Set to yes if linker
38024 supports INSERT in linker script.
38025 (AC_SUBST(libc_cv_insert): New.
38026 * configure: Regenerated.
38027 * sysdeps/x86_64/Makefile (tests): Add tst-split-dynreloc only
38028 if $(have-insert) == yes.
38029
38030 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
38031
38032 * elf/Makefile (tests): Add vismain only if
38033 $(have-protected-data) == yes.
38034 (tests-pie): Likewise.
38035
38036 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
38037
38038 [BZ #21871]
38039 * sysdeps/x86/cpu-features.c (init_cpu_features): Set
38040 bit_arch_Use_dl_runtime_resolve_opt only with AVX512F.
38041
38042 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
38043
38044 [BZ #21790]
38045 * sysdeps/i386/i586/memset.S
38046 (__memset_zero_constant_len_parameter): Removed.
38047 * sysdeps/i386/i686/memset.S
38048 (__memset_zero_constant_len_parameter): Likewise.
38049 * sysdeps/i386/i686/multiarch/memset_chk.S
38050 (__memset_zero_constant_len_parameter): Likewise.
38051 * sysdeps/x86_64/memset.S (__memset_zero_constant_len_parameter):
38052 Likewise.
38053
38054 2017-08-03 Aurelien Jarno <aurelien@aurel32.net>
38055
38056 * stdlib/getentropy.c (getentropy): Change return type to int.
38057
38058 2017-08-03 Aurelien Jarno <aurelien@aurel32.net>
38059
38060 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Regenerated.
38061
38062 2017-08-03 Joseph Myers <joseph@codesourcery.com>
38063
38064 * math/s_nextafter.c (__nextafter): Use uintN_t instead of
38065 u_intN_t.
38066 * math/s_nexttowardf.c (__nexttowardf): Likewise.
38067 * sysdeps/generic/math_private.h (ieee_double_shape_type):
38068 Likewise.
38069 (ieee_float_shape_type): Likewise.
38070 * sysdeps/i386/fpu/s_fpclassifyl.c (__fpclassifyl): Likewise.
38071 * sysdeps/i386/fpu/s_isnanl.c (__isnanl): Likewise.
38072 * sysdeps/i386/fpu/s_nextafterl.c (__nextafterl): Likewise.
38073 * sysdeps/i386/fpu/s_nexttoward.c (__nexttoward): Likewise.
38074 * sysdeps/i386/fpu/s_nexttowardf.c (__nexttowardf): Likewise.
38075 * sysdeps/ieee754/dbl-64/e_acosh.c (__ieee754_acosh): Likewise.
38076 * sysdeps/ieee754/dbl-64/e_cosh.c (__ieee754_cosh): Likewise.
38077 * sysdeps/ieee754/dbl-64/e_fmod.c (__ieee754_fmod): Likewise.
38078 * sysdeps/ieee754/dbl-64/e_gamma_r.c (__ieee754_gamma_r):
38079 Likewise.
38080 * sysdeps/ieee754/dbl-64/e_hypot.c (__ieee754_hypot): Likewise.
38081 * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_jn): Likewise.
38082 (__ieee754_yn): Likewise.
38083 * sysdeps/ieee754/dbl-64/e_log10.c (__ieee754_log10): Likewise.
38084 * sysdeps/ieee754/dbl-64/e_log2.c (__ieee754_log2): Likewise.
38085 * sysdeps/ieee754/dbl-64/e_rem_pio2.c (__ieee754_rem_pio2):
38086 Likewise.
38087 * sysdeps/ieee754/dbl-64/e_sinh.c (__ieee754_sinh): Likewise.
38088 * sysdeps/ieee754/dbl-64/s_ceil.c (__ceil): Likewise.
38089 * sysdeps/ieee754/dbl-64/s_copysign.c (__copysign): Likewise.
38090 * sysdeps/ieee754/dbl-64/s_erf.c (__erf): Likewise.
38091 (__erfc): Likewise.
38092 * sysdeps/ieee754/dbl-64/s_expm1.c (__expm1): Likewise.
38093 * sysdeps/ieee754/dbl-64/s_finite.c (FINITE): Likewise.
38094 * sysdeps/ieee754/dbl-64/s_floor.c (__floor): Likewise.
38095 * sysdeps/ieee754/dbl-64/s_fpclassify.c (__fpclassify): Likewise.
38096 * sysdeps/ieee754/dbl-64/s_isnan.c (__isnan): Likewise.
38097 * sysdeps/ieee754/dbl-64/s_issignaling.c (__issignaling):
38098 Likewise.
38099 * sysdeps/ieee754/dbl-64/s_llrint.c (__llrint): Likewise.
38100 * sysdeps/ieee754/dbl-64/s_llround.c (__llround): Likewise.
38101 * sysdeps/ieee754/dbl-64/s_lrint.c (__lrint): Likewise.
38102 * sysdeps/ieee754/dbl-64/s_lround.c (__lround): Likewise.
38103 * sysdeps/ieee754/dbl-64/s_modf.c (__modf): Likewise.
38104 * sysdeps/ieee754/dbl-64/s_nextup.c (__nextup): Likewise.
38105 * sysdeps/ieee754/dbl-64/s_remquo.c (__remquo): Likewise.
38106 * sysdeps/ieee754/dbl-64/s_round.c (__round): Likewise.
38107 * sysdeps/ieee754/dbl-64/s_trunc.c (__trunc): Likewise.
38108 * sysdeps/ieee754/dbl-64/wordsize-64/s_issignaling.c
38109 (__issignaling): Likewise.
38110 * sysdeps/ieee754/flt-32/e_atan2f.c (__ieee754_atan2f): Likewise.
38111 * sysdeps/ieee754/flt-32/e_fmodf.c (__ieee754_fmodf): Likewise.
38112 * sysdeps/ieee754/flt-32/e_gammaf_r.c (__ieee754_gammaf_r):
38113 Likewise.
38114 * sysdeps/ieee754/flt-32/e_jnf.c (__ieee754_ynf): Likewise.
38115 * sysdeps/ieee754/flt-32/e_log10f.c (__ieee754_log10f): Likewise.
38116 * sysdeps/ieee754/flt-32/e_powf.c (__ieee754_powf): Likewise.
38117 * sysdeps/ieee754/flt-32/e_rem_pio2f.c (__ieee754_rem_pio2f):
38118 Likewise.
38119 * sysdeps/ieee754/flt-32/e_remainderf.c (__ieee754_remainderf):
38120 Likewise.
38121 * sysdeps/ieee754/flt-32/e_sqrtf.c (__ieee754_sqrtf): Likewise.
38122 * sysdeps/ieee754/flt-32/s_ceilf.c (__ceilf): Likewise.
38123 * sysdeps/ieee754/flt-32/s_copysignf.c (__copysignf): Likewise.
38124 * sysdeps/ieee754/flt-32/s_erff.c (__erff): Likewise.
38125 (__erfcf): Likewise.
38126 * sysdeps/ieee754/flt-32/s_expm1f.c (__expm1f): Likewise.
38127 * sysdeps/ieee754/flt-32/s_finitef.c (FINITEF): Likewise.
38128 * sysdeps/ieee754/flt-32/s_floorf.c (__floorf): Likewise.
38129 * sysdeps/ieee754/flt-32/s_fpclassifyf.c (__fpclassifyf):
38130 Likewise.
38131 * sysdeps/ieee754/flt-32/s_isnanf.c (__isnanf): Likewise.
38132 * sysdeps/ieee754/flt-32/s_issignalingf.c (__issignalingf):
38133 Likewise.
38134 * sysdeps/ieee754/flt-32/s_llrintf.c (__llrintf): Likewise.
38135 * sysdeps/ieee754/flt-32/s_llroundf.c (__llroundf): Likewise.
38136 * sysdeps/ieee754/flt-32/s_lrintf.c (__lrintf): Likewise.
38137 * sysdeps/ieee754/flt-32/s_lroundf.c (__lroundf): Likewise.
38138 * sysdeps/ieee754/flt-32/s_modff.c (__modff): Likewise.
38139 * sysdeps/ieee754/flt-32/s_remquof.c (__remquof): Likewise.
38140 * sysdeps/ieee754/flt-32/s_roundf.c (__roundf): Likewise.
38141 * sysdeps/ieee754/ldbl-128/e_acoshl.c (__ieee754_acoshl):
38142 Likewise.
38143 * sysdeps/ieee754/ldbl-128/e_atan2l.c (__ieee754_atan2l):
38144 Likewise.
38145 * sysdeps/ieee754/ldbl-128/e_atanhl.c (__ieee754_atanhl):
38146 Likewise.
38147 * sysdeps/ieee754/ldbl-128/e_fmodl.c (__ieee754_fmodl): Likewise.
38148 * sysdeps/ieee754/ldbl-128/e_gammal_r.c (__ieee754_gammal_r):
38149 Likewise.
38150 * sysdeps/ieee754/ldbl-128/e_hypotl.c (__ieee754_hypotl):
38151 Likewise.
38152 * sysdeps/ieee754/ldbl-128/e_jnl.c (__ieee754_jnl): Likewise.
38153 (__ieee754_ynl): Likewise.
38154 * sysdeps/ieee754/ldbl-128/e_powl.c (__ieee754_powl): Likewise.
38155 * sysdeps/ieee754/ldbl-128/e_rem_pio2l.c (__ieee754_rem_pio2l):
38156 Likewise.
38157 * sysdeps/ieee754/ldbl-128/e_remainderl.c (__ieee754_remainderl):
38158 Likewise.
38159 * sysdeps/ieee754/ldbl-128/e_sinhl.c (__ieee754_sinhl): Likewise.
38160 * sysdeps/ieee754/ldbl-128/k_cosl.c (__kernel_cosl): Likewise.
38161 * sysdeps/ieee754/ldbl-128/k_sincosl.c (__kernel_sincosl):
38162 Likewise.
38163 * sysdeps/ieee754/ldbl-128/k_sinl.c (__kernel_sinl): Likewise.
38164 * sysdeps/ieee754/ldbl-128/s_ceill.c (__ceill): Likewise.
38165 * sysdeps/ieee754/ldbl-128/s_copysignl.c (__copysignl): Likewise.
38166 * sysdeps/ieee754/ldbl-128/s_erfl.c (__erfcl): Likewise.
38167 * sysdeps/ieee754/ldbl-128/s_fabsl.c (__fabsl): Likewise.
38168 * sysdeps/ieee754/ldbl-128/s_finitel.c (__finitel): Likewise.
38169 * sysdeps/ieee754/ldbl-128/s_floorl.c (__floorl): Likewise.
38170 * sysdeps/ieee754/ldbl-128/s_fpclassifyl.c (__fpclassifyl):
38171 Likewise.
38172 * sysdeps/ieee754/ldbl-128/s_frexpl.c (__frexpl): Likewise.
38173 * sysdeps/ieee754/ldbl-128/s_isnanl.c (__isnanl): Likewise.
38174 * sysdeps/ieee754/ldbl-128/s_issignalingl.c (__issignalingl):
38175 Likewise.
38176 * sysdeps/ieee754/ldbl-128/s_llrintl.c (__llrintl): Likewise.
38177 * sysdeps/ieee754/ldbl-128/s_llroundl.c (__llroundl): Likewise.
38178 * sysdeps/ieee754/ldbl-128/s_lrintl.c (__lrintl): Likewise.
38179 * sysdeps/ieee754/ldbl-128/s_lroundl.c (__lroundl): Likewise.
38180 * sysdeps/ieee754/ldbl-128/s_modfl.c (__modfl): Likewise.
38181 * sysdeps/ieee754/ldbl-128/s_nearbyintl.c (__nearbyintl):
38182 Likewise.
38183 * sysdeps/ieee754/ldbl-128/s_nextafterl.c (__nextafterl):
38184 Likewise.
38185 * sysdeps/ieee754/ldbl-128/s_nexttoward.c (__nexttoward):
38186 Likewise.
38187 * sysdeps/ieee754/ldbl-128/s_nexttowardf.c (__nexttowardf):
38188 Likewise.
38189 * sysdeps/ieee754/ldbl-128/s_nextupl.c (__nextupl): Likewise.
38190 * sysdeps/ieee754/ldbl-128/s_remquol.c (__remquol): Likewise.
38191 * sysdeps/ieee754/ldbl-128/s_rintl.c (__rintl): Likewise.
38192 * sysdeps/ieee754/ldbl-128/s_roundl.c (__roundl): Likewise.
38193 * sysdeps/ieee754/ldbl-128/s_tanhl.c (__tanhl): Likewise.
38194 * sysdeps/ieee754/ldbl-128/s_truncl.c (__truncl): Likewise.
38195 * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c (__ieee754_fmodl):
38196 Likewise.
38197 * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (__ieee754_gammal_r):
38198 Likewise.
38199 * sysdeps/ieee754/ldbl-128ibm/e_powl.c (__ieee754_powl): Likewise.
38200 * sysdeps/ieee754/ldbl-128ibm/e_rem_pio2l.c (__ieee754_rem_pio2l):
38201 Likewise.
38202 * sysdeps/ieee754/ldbl-128ibm/e_remainderl.c
38203 (__ieee754_remainderl): Likewise.
38204 * sysdeps/ieee754/ldbl-128ibm/k_cosl.c (__kernel_cosl): Likewise.
38205 * sysdeps/ieee754/ldbl-128ibm/k_sinl.c (__kernel_sinl): Likewise.
38206 * sysdeps/ieee754/ldbl-128ibm/s_fabsl.c (__fabsl): Likewise.
38207 * sysdeps/ieee754/ldbl-128ibm/s_fpclassifyl.c (___fpclassifyl):
38208 Likewise.
38209 * sysdeps/ieee754/ldbl-128ibm/s_modfl.c (__modfl): Likewise.
38210 * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c (__nexttowardf):
38211 Likewise.
38212 * sysdeps/ieee754/ldbl-128ibm/s_remquol.c (__remquol): Likewise.
38213 * sysdeps/ieee754/ldbl-96/e_acoshl.c (__ieee754_acoshl): Likewise.
38214 * sysdeps/ieee754/ldbl-96/e_asinl.c (__ieee754_asinl): Likewise.
38215 * sysdeps/ieee754/ldbl-96/e_atanhl.c (__ieee754_atanhl): Likewise.
38216 * sysdeps/ieee754/ldbl-96/e_coshl.c (__ieee754_coshl): Likewise.
38217 * sysdeps/ieee754/ldbl-96/e_gammal_r.c (__ieee754_gammal_r):
38218 Likewise.
38219 * sysdeps/ieee754/ldbl-96/e_hypotl.c (__ieee754_hypotl): Likewise.
38220 * sysdeps/ieee754/ldbl-96/e_j0l.c (__ieee754_j0l): Likewise.
38221 (__ieee754_y0l): Likewise.
38222 (pzero): Likewise.
38223 (qzero): Likewise.
38224 * sysdeps/ieee754/ldbl-96/e_j1l.c (__ieee754_j1l): Likewise.
38225 (__ieee754_y1l): Likewise.
38226 (pone): Likewise.
38227 (qone): Likewise.
38228 * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_jnl): Likewise.
38229 (__ieee754_ynl): Likewise.
38230 * sysdeps/ieee754/ldbl-96/e_lgammal_r.c (sin_pi): Likewise.
38231 (__ieee754_lgammal_r): Likewise.
38232 * sysdeps/ieee754/ldbl-96/e_rem_pio2l.c (__ieee754_rem_pio2l):
38233 Likewise.
38234 * sysdeps/ieee754/ldbl-96/e_sinhl.c (__ieee754_sinhl): Likewise.
38235 * sysdeps/ieee754/ldbl-96/s_copysignl.c (__copysignl): Likewise.
38236 * sysdeps/ieee754/ldbl-96/s_erfl.c (__erfl): Likewise.
38237 (__erfcl): Likewise.
38238 * sysdeps/ieee754/ldbl-96/s_frexpl.c (__frexpl): Likewise.
38239 * sysdeps/ieee754/ldbl-96/s_issignalingl.c (__issignalingl):
38240 Likewise.
38241 * sysdeps/ieee754/ldbl-96/s_llrintl.c (__llrintl): Likewise.
38242 * sysdeps/ieee754/ldbl-96/s_llroundl.c (__llroundl): Likewise.
38243 * sysdeps/ieee754/ldbl-96/s_lrintl.c (__lrintl): Likewise.
38244 * sysdeps/ieee754/ldbl-96/s_lroundl.c (__lroundl): Likewise.
38245 * sysdeps/ieee754/ldbl-96/s_modfl.c (__modfl): Likewise.
38246 * sysdeps/ieee754/ldbl-96/s_nexttoward.c (__nexttoward): Likewise.
38247 * sysdeps/ieee754/ldbl-96/s_nexttowardf.c (__nexttowardf):
38248 Likewise.
38249 * sysdeps/ieee754/ldbl-96/s_nextupl.c (__nextupl): Likewise.
38250 * sysdeps/ieee754/ldbl-96/s_remquol.c (__remquol): Likewise.
38251 * sysdeps/ieee754/ldbl-96/s_roundl.c (__roundl): Likewise.
38252 * sysdeps/ieee754/ldbl-96/s_tanhl.c (__tanhl): Likewise.
38253 * sysdeps/ieee754/ldbl-opt/s_nexttowardfd.c (__nldbl_nexttowardf):
38254 Likewise.
38255 * sysdeps/m68k/m680x0/fpu/e_pow.c (s(__ieee754_pow)): Likewise.
38256 * sysdeps/m68k/m680x0/fpu/s_fpclassifyl.c (__fpclassifyl):
38257 Likewise.
38258 * sysdeps/m68k/m680x0/fpu/s_llrint.c (__llrint): Likewise.
38259 * sysdeps/m68k/m680x0/fpu/s_llrintf.c (__llrintf): Likewise.
38260 * sysdeps/m68k/m680x0/fpu/s_llrintl.c (__llrintl): Likewise.
38261 * sysdeps/m68k/m680x0/fpu/s_nextafterl.c (__nextafterl): Likewise.
38262 * sysdeps/x86/fpu/powl_helper.c (__powl_helper): Likewise.
38263
38264 2017-08-03 Florian Weimer <fweimer@redhat.com>
38265
38266 [BZ #21885]
38267 * sysdeps/posix/getaddrinfo.c (gethosts): Release resolver context
38268 on memory allocation failure.
38269
38270 2017-08-03 Alan Modra <amodra@gmail.com>
38271
38272 * sysdeps/powerpc/mod-tlsopt-powerpc.c: Extract from
38273 tst-tlsopt-powerpc.c with function name change and no test harness.
38274 * sysdeps/powerpc/tst-tlsopt-powerpc.c: Remove body of test.
38275 Call tls_get_addr_opt_test.
38276 * sysdeps/powerpc/Makefile (LDFLAGS-tst-tlsopt-powerpc): Don't define.
38277 (modules-names): Add mod-tlsopt-powerpc.
38278 (mod-tlsopt-powerpc.so-no-z-defs): Define.
38279 (tst-tlsopt-powerpc): Depend on .so.
38280 * sysdeps/powerpc/powerpc64/tls-macros.h (__TLS_GET_ADDR): Don't
38281 define. Expand use in TLS_GD and TLS_LD.
38282
38283 2017-08-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
38284
38285 * sysdeps/mach/hurd/enbl-secure.c (__libc_init_secure): Define
38286 function.
38287 * sysdeps/posix/shm_open.c: Include <pthread.h>.
38288
38289 2017-08-02 Joseph Myers <joseph@codesourcery.com>
38290
38291 [BZ #21686]
38292 * math/tgmath.h (__TGMATH_BINARY_REAL_ONLY): Add arguments before
38293 comparing size with that of double.
38294 (__TGMATH_BINARY_REAL_STD_ONLY): Likewise.
38295 (__TGMATH_BINARY_REAL_RET_ONLY): Likewise.
38296 (__TGMATH_TERNARY_FIRST_SECOND_REAL_ONLY): Likewise.
38297 (__TGMATH_TERNARY_REAL_ONLY): Likewise.
38298 (__TGMATH_BINARY_REAL_IMAG): Likewise.
38299 * math/gen-tgmath-tests.py (Type.init_types): Create __int128 and
38300 unsigned __int128 types.
38301
38302 2017-08-02 Steve Ellcey <sellcey@cavium.com>
38303
38304 * localedata/Makefile (CFLAGS-tst_iswalnum.c, CFLAGS-tst_iswalpha.c
38305 CFLAGS-tst_iswcntrl.c, CFLAGS-tst_iswdigit.c, CFLAGS-tst_iswgraph.c,
38306 CFLAGS-tst_iswlower.c, CFLAGS-tst_iswprint.c, CFLAGS-tst_iswpunct.c,
38307 CFLAGS-tst_iswspace.c, CFLAGS-tst_iswupper.c, CFLAGS-tst_iswxdigit.c,
38308 CFLAGS-tst_towlower.c, CFLAGS-tst_towupper.c): Remove.
38309
38310 2017-08-02 H.J. Lu <hongjiu.lu@intel.com>
38311
38312 * sysdeps/x86_64/start.S (_start): Check PIC instead of SHARED.
38313
38314 2017-08-02 H.J. Lu <hongjiu.lu@intel.com>
38315
38316 * sysdeps/i386/i686/multiarch/memcmp-sse4.S: Check PIC instead
38317 of SHARED.
38318 * sysdeps/i386/i686/multiarch/memcpy-sse2-unaligned.S: Likewise.
38319 * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S: Likewise.
38320 * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Likewise.
38321 * sysdeps/i386/i686/multiarch/memset-sse2-rep.S: Likewise.
38322 * sysdeps/i386/i686/multiarch/memset-sse2.S: Likewise.
38323 * sysdeps/i386/i686/multiarch/strcat-sse2.S: Likewise.
38324 * sysdeps/i386/i686/multiarch/strcpy-sse2.S: Likewise.
38325
38326 2017-08-02 Joseph Myers <joseph@codesourcery.com>
38327
38328 [BZ #21685]
38329 * math/tgmath.h (__tgmath_real_type): Use unary + on potentially
38330 bit-field expressions passed to sizeof or typeof.
38331 [__HAVE_FLOAT128 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
38332 (__TGMATH_F128): Likewise.
38333 [__HAVE_FLOAT128 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
38334 (__TGMATH_CF128): Likewise.
38335 (__TGMATH_UNARY_REAL_ONLY): Likewise.
38336 (__TGMATH_UNARY_REAL_RET_ONLY): Likewise.
38337 (__TGMATH_BINARY_FIRST_REAL_ONLY): Likewise.
38338 (__TGMATH_BINARY_FIRST_REAL_STD_ONLY): Likewise.
38339 (__TGMATH_BINARY_REAL_ONLY): Likewise.
38340 (__TGMATH_BINARY_REAL_STD_ONLY): Likewise.
38341 (__TGMATH_BINARY_REAL_RET_ONLY): Likewise.
38342 (__TGMATH_TERNARY_FIRST_SECOND_REAL_ONLY): Likewise.
38343 (__TGMATH_TERNARY_REAL_ONLY): Likewise.
38344 (__TGMATH_TERNARY_FIRST_REAL_RET_ONLY): Likewise.
38345 (__TGMATH_UNARY_REAL_IMAG): Likewise.
38346 (__TGMATH_UNARY_IMAG): Likewise.
38347 (__TGMATH_UNARY_REAL_IMAG_RET_REAL): Likewise.
38348 (__TGMATH_BINARY_REAL_IMAG): Likewise.
38349 * math/gen-tgmath-tests.py (Type.init_types): Create bit_field
38350 type.
38351 (define_vars_for_type): Handle bit_field type specially.
38352 (Tests.__init__): Declare structure with bit-field element.
38353
38354 2017-08-02 H.J. Lu <hongjiu.lu@intel.com>
38355
38356 [BZ #21791]
38357 * sysdeps/i386/i686/multiarch/memcpy-sse2-unaligned.S
38358 (MEMCPY_CHK): Define only if SHARED is defined.
38359 * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S (MEMCPY_CHK):
38360 Likewise.
38361 * sysdeps/i386/i686/multiarch/memcpy-ssse3.S (MEMCPY_CHK):
38362 Likewise.
38363
38364 See ChangeLog.18 for earlier changes.