]> git.ipfire.org Git - thirdparty/glibc.git/blob - ChangeLog
nptl: Move pthread_attr_getinheritsched implementation into libc
[thirdparty/glibc.git] / ChangeLog
1 2019-08-30 Florian Weimer <fweimer@redhat.com>
2
3 nptl: Move pthread_attr_getinheritsched implementation into libc.
4 * nptl/Makefile (routines): Add pthread_attr_getinheritsched.
5 (libpthread-routines): Remove pthread_attr_getinheritsched.
6 * nptl/Versions (libpthread GLIBC_2.0): Remove
7 pthread_attr_getinheritsched.
8 * nptl/forward.c (pthread_attr_getinheritsched): Remove definition.
9 * nptl/nptl-init.c (pthread_functions): Remove initializer for
10 ptr_pthread_attr_getinheritsched.
11 * sysdeps/nptl/pthread-functions.h (struct pthread_functions):
12 Remove ptr_pthread_attr_getinheritsched member.
13 * sysdeps/unix/sysv/linux/aarch64/libpthread.abilist (GLIBC_2.17):
14 Remove pthread_attr_getinheritsched.
15 * sysdeps/unix/sysv/linux/alpha/libpthread.abilist (GLIBC_2.0):
16 Likewise.
17 * sysdeps/unix/sysv/linux/arm/be/libpthread.abilist (GLIBC_2.4):
18 Likewise.
19 * sysdeps/unix/sysv/linux/arm/le/libpthread.abilist (GLIBC_2.4):
20 Likewise.
21 * sysdeps/unix/sysv/linux/csky/libpthread.abilist (GLIBC_2.29):
22 Likewise.
23 * sysdeps/unix/sysv/linux/hppa/libpthread.abilist (GLIBC_2.2):
24 Likewise.
25 * sysdeps/unix/sysv/linux/i386/libpthread.abilist (GLIBC_2.0):
26 Likewise.
27 * sysdeps/unix/sysv/linux/ia64/libpthread.abilist (GLIBC_2.2):
28 Likewise.
29 * sysdeps/unix/sysv/linux/m68k/coldfire/libpthread.abilist
30 (GLIBC_2.4): Likewise.
31 * sysdeps/unix/sysv/linux/m68k/m680x0/libpthread.abilist
32 (GLIBC_2.0): Likewise.
33 * sysdeps/unix/sysv/linux/microblaze/be/libpthread.abilist
34 (GLIBC_2.18): Likewise.
35 * sysdeps/unix/sysv/linux/microblaze/le/libpthread.abilist
36 (GLIBC_2.18): Likewise.
37 * sysdeps/unix/sysv/linux/mips/mips32/libpthread.abilist
38 (GLIBC_2.0): Likewise.
39 * sysdeps/unix/sysv/linux/mips/mips64/libpthread.abilist
40 (GLIBC_2.0): Likewise.
41 * sysdeps/unix/sysv/linux/nios2/libpthread.abilist (GLIBC_2.21):
42 Likewise.
43 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libpthread.abilist
44 (GLIBC_2.0): Likewise.
45 * sysdeps/unix/sysv/linux/powerpc/powerpc64/be/libpthread.abilist
46 (GLIBC_2.3): Likewise.
47 * sysdeps/unix/sysv/linux/powerpc/powerpc64/le/libpthread.abilist
48 (GLIBC_2.17): Likewise.
49 * sysdeps/unix/sysv/linux/riscv/rv64/libpthread.abilist
50 (GLIBC_2.27): Likewise.
51 * sysdeps/unix/sysv/linux/s390/s390-32/libpthread.abilist
52 (GLIBC_2.0): Likewise.
53 * sysdeps/unix/sysv/linux/s390/s390-64/libpthread.abilist
54 (GLIBC_2.2): Likewise.
55 * sysdeps/unix/sysv/linux/sh/be/libpthread.abilist (GLIBC_2.2):
56 Likewise.
57 * sysdeps/unix/sysv/linux/sh/le/libpthread.abilist (GLIBC_2.2):
58 Likewise.
59 * sysdeps/unix/sysv/linux/sparc/sparc32/libpthread.abilist
60 (GLIBC_2.0): Likewise.
61 * sysdeps/unix/sysv/linux/sparc/sparc64/libpthread.abilist
62 (GLIBC_2.2): Likewise.
63 * sysdeps/unix/sysv/linux/x86_64/64/libpthread.abilist
64 (GLIBC_2.2.5): Likewise.
65 * sysdeps/unix/sysv/linux/x86_64/x32/libpthread.abilist
66 (GLIBC_2.16): Likewise.
67
68 2019-08-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
69
70 * sysdeps/mach/hurd/getcwd.c
71 (_hurd_canonicalize_directory_name_internal): Do not remove the heading
72 slash if we got an unknown root directory. (__getcwd): Do not fail with
73 EGRATUITOUS if we got an unknown root directory.
74 * hurd/hurdselect.c (SELECT_ERROR): New macro.
75 (_hurd_select):
76 - Add `error' field to `d' structures array.
77 - If a poll descriptor is bogus, set EBADF, but continue with a zero
78 timeout.
79 - Go through the whole fd_set, not only until _hurd_dtablesize. Return
80 EBADF there is any bit set above _hurd_dtablesize.
81 - Do not request io_select on bogus descriptors (SELECT_ERROR).
82 - On io_select request error, record the error.
83 - On io_select bogus reply, use EIO error code.
84 - On io_select bogus or error reply, record the error.
85 - Do not destroy reply port for bogus FDs.
86 - On error, make poll set POLLHUP in the EPIPE case, POLLNVAL in the
87 EBADF case, or else POLLERR.
88 - On error, make select simulated readiness.
89
90 [BZ #19903]
91 * sysdeps/mach/hurd/mmap.c (__mmap): Remove optimizing anonymous maps
92 as __vm_allocate.
93
94 * sysdeps/mach/hurd/i386/sigreturn.c (__sigreturn2): New function,
95 unlocks SS and returns to the saved PC.
96 (__sigreturn): Do not unlock SS, and "return" into __sigreturn2 on the
97 thread stack instead of the saved PC.
98
99 2019-08-30 Richard Braun <rbraun@sceen.net>
100
101 * hurd/hurdselect.c (_hurd_select): Always call __io_select with no
102 timeout.
103 * sysdeps/mach/hurd/setitimer.c (setitimer_locked): Fix preemptor setup.
104 * hurd/Makefile (user-interfaces): Add io_reply and io_request.
105 * hurd/hurdselect.c: Include <sys/time.h>, <hurd/io_request.h> and
106 <limits.h>.
107 (_hurd_select): Replace the call to __io_select with either
108 __io_select_request or __io_select_timeout_request, depending on the
109 timeout. Count the number of ready descriptors (replies for which at
110 least one type bit is set). Implement the timeout locally when there is
111 no file descriptor.
112
113 2019-08-29 Mihailo Stojanovic <mihailo.stojanovic@rt-rk.com>
114
115 * elf/dl-addr.c (determine_info): Calculate the symbol index
116 using the newly defined ELF_MACHINE_HASH_SYMIDX macro.
117 * elf/dl-lookup.c (do_lookup_x): Ditto.
118 (_dl_setup_hash): Initialize MIPS xhash translation table.
119 * elf/elf.h (SHT_MIPS_XHASH): New define.
120 (DT_MIPS_XHASH): New define.
121 * sysdeps/generic/ldsodefs.h (ELF_MACHINE_GNU_HASH_ADDRIDX): New
122 define.
123 (ELF_MACHINE_HASH_SYMIDX): Ditto.
124 (ELF_MACHINE_XHASH_SETUP): Ditto.
125 * sysdeps/mips/ldsodefs.h (ELF_MACHINE_GNU_HASH_ADDRIDX): New
126 define.
127 (ELF_MACHINE_HASH_SYMIDX): Ditto.
128 (ELF_MACHINE_XHASH_SETUP): Ditto.
129 * sysdeps/mips/linkmap.h (struct link_map_machine): New member.
130 * sysdeps/unix/sysv/linux/mips/ldsodefs.h: Increment valid ABI
131 version.
132 * sysdeps/unix/sysv/linux/mips/libc-abis: New ABI version.
133
134 2019-08-29 Adhemerval Zanella <adhemerval.zanella@linaro.org>
135
136 * sysdeps/sh/preconfigure.ac: New file.
137 * sysdeps/sh/preconfigure: Regenerate.
138 * sysdeps/sh/be/sh3/Implies: New file.
139 * sysdeps/sh/be/sh4/Implies: Likewise.
140 * sysdeps/sh/le/sh3/Implies: Likewise.
141 * sysdeps/sh/le/sh4/Implies: Likewise.
142 * sysdeps/unix/sysv/linux/sh/le/sh3/Implies: Likewise.
143 * sysdeps/unix/sysv/linux/sh/le/sh4/Implies: Likewise.
144 * sysdeps/unix/sysv/linux/sh/*.abilist: Move to
145 sysdeps/unix/sysv/linux/sh/le/*.abilist.
146 * sysdeps/unix/sysv/linux/sh/be/*.abilist: New files.
147
148 * sysdeps/microblaze/preconfigure.ac: New file.
149 * sysdeps/microblaze/preconfigure: Regenerate.
150 * sysdeps/microblaze/be/implies: New file.
151 * sysdeps/microblaze/le/implies: Likewise.
152 * sysdeps/unix/sysv/linux/microblaze/be/implies: Likewise.
153 * sysdeps/unix/sysv/linux/microblaze/le/implies: Likewise.
154 * sysdeps/unix/sysv/linux/microblaze/*.abilist. Move to
155 sysdeps/unix/sysv/linux/microblaze/be/*.abilist.
156 * sysdeps/unix/sysv/linux/microblaze/le/*.abilist: New files.
157
158 * sysdeps/arm/preconfigure.ac: Set machine based on endianness.
159 * sysdeps/arm/preconfigure: Regenerate.
160 * sysdeps/arm/be/Implies: New file.
161 * sysdeps/arm/be/armv6/Implies: Likewise.
162 * sysdeps/arm/be/armv6t2/Implies: Likewise.
163 * sysdeps/arm/be/armv7/Implies: Likewise.
164 * sysdeps/arm/le/Implies: Likewise.
165 * sysdeps/unix/sysv/linux/arm/be/Implies: Likewise.
166 * sysdeps/unix/sysv/linux/arm/le/Implies: Likewise.
167 * sysdeps/unix/sysv/linux/arm/*.abilist: Move to
168 sysdeps/unix/sysv/linux/arm/le/*.abilist.
169 * sysdeps/unix/sysv/linux/arm/be/l*.abilist: New files.
170
171 2019-08-27 Paul Eggert <eggert@cs.ucla.edu>
172
173 Fix posix/tst-regex by using UTF-8 and own test input
174 Problem reported by Stefan Liebler in:
175 https://sourceware.org/ml/libc-alpha/2019-08/msg00658.html
176 * posix/tst-regex.c: Convert this file from Latin-1 to UTF-8.
177 (do_test, test_expr): Adjust to the fact that this source file,
178 and the test data in ChangeLog.8, is now UTF-8 instead of Latin-1.
179 * posix/tst-regex.input: Copy from ChangeLog.old/ChangeLog.8,
180 so that it is now UTF-8.
181
182 2019-08-28 Paul A. Clarke <pc@us.ibm.com>
183
184 * sysdeps/powerpc/fpu/fenv_libc.h (fegetenv_status_ISA300): Delete.
185 (fegetenv_status): Generate 'mffsl' unconditionally.
186
187 2019-08-28 Paul A. Clarke <pc@us.ibm.com>
188
189 * sysdeps/powerpc/fpu/fesetenv.c (__fesetenv): Utilize lightweight
190 FPSCR read.
191 (_FPU_MASK_ALL): Delete.
192
193 2019-08-28 Paul A. Clarke <pc@us.ibm.com>
194
195 * sysdeps/powerpc/fpu/fenv_private.h (libc_feholdsetround_ppc_ctx):
196 Utilize lightweight FPSCR read if possible, set fewer FPSCR bits
197 if possible.
198 (libc_feresetround_ppc): Replace call to __libc_femergeenv_ppc
199 with simpler required steps, set fewer FPSCR bits if possible.
200
201 2019-08-28 Paul A. Clarke <pc@us.ibm.com>
202
203 * sysdeps/powerpc/fpu/fenv_libc.h (fesetenv_mode): New.
204 (FPSCR_FPRF_MASK): New. (FPSCR_STATUS_MASK): New.
205 * sysdeps/powerpc/fpu/feenablxcpt.c (feenableexcept): Use lighter-
206 weight access to FPSCR; remove unnecessary second FPSCR read and
207 validate.
208 * sysdeps/powerpc/fpu/fedisblxcpt.c (fedisableexcept): Likewise.
209 * sysdeps/powerpc/fpu/fesetmode.c (fesetmode): Use lighter-weight
210 access to FPSCR; Use macros in fenv_libc.h in favor of local.
211
212 2019-08-28 Paul A. Clarke <pc@us.ibm.com>
213
214 * sysdeps/powerpc/fpu/fenv_libc.h: Define FPSCR bitmasks.
215 (fenv_reg_to_exceptions): Replace bitwise operations with mask-shift.
216 (fenv_exceptions_to_reg): New.
217 * sysdeps/powerpc/fpu/fedisblxcpt.c (fedisableexcept): Replace bitwise
218 operation with call to fenv_exceptions_to_reg().
219 * sysdeps/powerpc/fpu/feenablxcpt.c (feenableexcept): Likewise.
220
221 2019-08-28 Florian Weimer <fweimer@redhat.com>
222
223 * misc/mntent.c (struct mntent_buffer): Define.
224 (mntent_buffer): Adjust type to void *.
225 (allocate): Adjust for allocate_once.
226 (deallocate): New function.
227 (getmntent): Call allocate_once.
228
229 2019-08-28 Florian Weimer <fweimer@redhat.com>
230
231 nptl: Move pthread_attr_setdetachstate implementation into libc.
232 * nptl/Makefile (routines): Add pthread_attr_setdetachstate.
233 (libpthread-routines): Remove pthread_attr_setdetachstate.
234 * nptl/Versions (libpthread GLIBC_2.0): Remove
235 pthread_attr_setdetachstate.
236 * nptl/forward.c (pthread_attr_setdetachstate): Remove definition.
237 * nptl/nptl-init.c (pthread_functions): Remove initializer for
238 ptr_pthread_attr_setdetachstate.
239 * sysdeps/nptl/pthread-functions.h (struct pthread_functions):
240 Remove ptr_pthread_attr_setdetachstate member.
241 * sysdeps/unix/sysv/linux/aarch64/libpthread.abilist (GLIBC_2.17):
242 Remove pthread_attr_setdetachstate.
243 * sysdeps/unix/sysv/linux/alpha/libpthread.abilist (GLIBC_2.0):
244 Likewise.
245 * sysdeps/unix/sysv/linux/arm/libpthread.abilist (GLIBC_2.4):
246 Likewise.
247 * sysdeps/unix/sysv/linux/csky/libpthread.abilist (GLIBC_2.29):
248 Likewise.
249 * sysdeps/unix/sysv/linux/hppa/libpthread.abilist (GLIBC_2.2):
250 Likewise.
251 * sysdeps/unix/sysv/linux/i386/libpthread.abilist (GLIBC_2.0):
252 Likewise.
253 * sysdeps/unix/sysv/linux/ia64/libpthread.abilist (GLIBC_2.2):
254 Likewise.
255 * sysdeps/unix/sysv/linux/m68k/coldfire/libpthread.abilist
256 (GLIBC_2.4): Likewise.
257 * sysdeps/unix/sysv/linux/m68k/m680x0/libpthread.abilist
258 (GLIBC_2.0): Likewise.
259 * sysdeps/unix/sysv/linux/microblaze/libpthread.abilist
260 (GLIBC_2.18): Likewise.
261 * sysdeps/unix/sysv/linux/mips/mips32/libpthread.abilist
262 (GLIBC_2.0): Likewise.
263 * sysdeps/unix/sysv/linux/mips/mips64/libpthread.abilist
264 (GLIBC_2.0): Likewise.
265 * sysdeps/unix/sysv/linux/nios2/libpthread.abilist (GLIBC_2.21):
266 Likewise.
267 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libpthread.abilist
268 (GLIBC_2.0): Likewise.
269 * sysdeps/unix/sysv/linux/powerpc/powerpc64/be/libpthread.abilist
270 (GLIBC_2.3): Likewise.
271 * sysdeps/unix/sysv/linux/powerpc/powerpc64/le/libpthread.abilist
272 (GLIBC_2.17): Likewise.
273 * sysdeps/unix/sysv/linux/riscv/rv64/libpthread.abilist
274 (GLIBC_2.27): Likewise.
275 * sysdeps/unix/sysv/linux/s390/s390-32/libpthread.abilist
276 (GLIBC_2.0): Likewise.
277 * sysdeps/unix/sysv/linux/s390/s390-64/libpthread.abilist
278 (GLIBC_2.2): Likewise.
279 * sysdeps/unix/sysv/linux/sh/libpthread.abilist (GLIBC_2.2):
280 Likewise.
281 * sysdeps/unix/sysv/linux/sparc/sparc32/libpthread.abilist
282 (GLIBC_2.0): Likewise.
283 * sysdeps/unix/sysv/linux/sparc/sparc64/libpthread.abilist
284 (GLIBC_2.2): Likewise.
285 * sysdeps/unix/sysv/linux/x86_64/64/libpthread.abilist
286 (GLIBC_2.2.5): Likewise.
287 * sysdeps/unix/sysv/linux/x86_64/x32/libpthread.abilist
288 (GLIBC_2.16): Likewise.
289
290 2019-08-28 Florian Weimer <fweimer@redhat.com>
291
292 [BZ #24902]
293 * login/Makefile (tests): Add tst-pututxline-lockfail.
294 (tst-pututxline-lockfail): Link with -lpthread.
295 * login/utmp_file.c (internal_getut_r): Remove buffer argument.
296 (__libc_getutid_r): Adjust.
297 (__libc_pututline): Likewise. Check for file_offset == -1.
298 * login/tst-pututxline-lockfail.c: New file.
299
300 2019-08-28 Stefan Liebler <stli@linux.ibm.com>
301
302 * posix/tst-regex.c (do_test): Use tst-regex.input as input file.
303 * posix/tst-regex.input: New file.
304
305 2019-08-23 Mihailo Stojanovic <mihailo.stojanovic@rt-rk.com>
306
307 [BZ #24916]
308 * sysdeps/mips/Makefile [$(subdir) = elf] (tests): Add
309 tst-undefined-weak.
310 [$(subdir) = elf] (modules-names): Add tst-undefined-weak-lib.
311 [$(subdir) = elf] ($(objpfx)tst-undefined-weak): Add dependency.
312 * sysdeps/mips/tst-undefined-weak-lib.S: New file.
313 * sysdeps/mips/tst-undefined-weak.c: Likewise.
314 * sysdeps/unix/sysv/linux/mips/ldsodefs.h (VALID_ELF_ABIVERSION):
315 Increment highest valid ABIVERSION value.
316
317 2019-08-23 Dragan Mladjenovic <dmladjenovic@wavecomp.com>
318
319 * sysdeps/unix/sysv/linux/mips/Makefile
320 (test-xfail-check-execstack):
321 Move under mips-has-gnustack != yes.
322 (CFLAGS-.o*, ASFLAGS-.o*): New rules.
323 Apply -Wa,-execstack if mips-force-execstack == yes.
324 * sysdeps/unix/sysv/linux/mips/configure: Regenerated.
325 * sysdeps/unix/sysv/linux/mips/configure.ac
326 (mips-force-execstack): New var.
327 Set to yes for hard-float builds with minimum_kernel < 4.8.0
328 or minimum_kernel not set at all.
329 (mips-has-gnustack): New var.
330 Use value of libc_cv_as_noexecstack
331 if mips-force-execstack != yes, otherwise set to no.
332
333 2019-08-23 Adhemerval Zanella <adhemerval.zanella@linaro.org>
334 Florian Weimer <fweimer@redhat.com>
335
336 * gmon/Versions (libc) [GLIBC_2.31]: New entry.
337 * sysdeps/unix/sysv/linux/arm/profil-counter.h (profil_counter):
338 Make a compat_symbol.
339 * sysdeps/unix/sysv/linux/sparc/profil-counter.h
340 (__profil_counter_global): Likewise.
341
342 * debug/segfault.c (install_handler): Use SA_SIGINFO if defined.
343 * sysdeps/generic/profil-counter.h (__profil_counter): Cast to
344 uintptr_t.
345 * sysdeps/generic/sigcontextinfo.h (GET_PC): Rename to
346 sigcontext_get_pc and return aligned cast to uintptr_t.
347 * sysdeps/mach/hurd/i386/sigcontextinfo.h (GET_PC): Likewise.
348 * sysdeps/posix/profil.c (profil_count): Change PC argument to
349 uintptr_t.
350 (__profil): Use SA_SIGINFO.
351 * sysdeps/posix/sprofil.c (profil_count): Change PCP argument to
352 uintptr_t.
353 (__sprofil): Use SA_SIGINFO.
354 * sysdeps/unix/sysv/linux/profil-counter.h: New file.
355 * sysdeps/unix/sysv/linux/aarch64/profil-counter.h: Remove file.
356 * sysdeps/unix/sysv/linux/csky/profil-counter.h: Likewise.
357 * sysdeps/unix/sysv/linux/hppa/profil-counter.h: Likewise.
358 * sysdeps/unix/sysv/linux/i386/profil-counter.h: Likewise.
359 * sysdeps/unix/sysv/linux/ia64/profil-counter.h: Likewise.
360 * sysdeps/unix/sysv/linux/microblaze/profil-counter.h: Likewise.
361 * sysdeps/unix/sysv/linux/mips/profil-counter.h: Likewise.
362 * sysdeps/unix/sysv/linux/nios2/profil-counter.h: Likewise.
363 * sysdeps/unix/sysv/linux/powerpc/profil-counter.h: Likewise.
364 * sysdeps/unix/sysv/linux/x86_64/profil-counter.h: Likewise.
365 * sysdeps/unix/sysv/linux/riscv/profil-counter.h: Likewise.
366 * sysdeps/sysv/linux/s390/s390-32/profil-counter.h: Likewise.
367 * sysdeps/sysv/linux/s390/s390-64/profil-counter.h: Likewise.
368 * sysdeps/unix/sysv/linux/sh/profil-counter.h: Likewise.
369 * sysdeps/unix/sysv/linux/arm/profil-counter.h (__profil_counter):
370 Assume SA_SIGINFO and use sigcontext_get_pc instead of GET_PC.
371 * sysdeps/unix/sysv/linux/sparc/profil-counter.h: New file.
372 * sysdeps/unix/sysv/linux/sparc/sparc64/profil-counter.h: Remove file.
373 * sysdeps/unix/sysv/linux/sparc/sparc32/profil-counter.h: Likewise.
374 * sysdpes/unix/sysv/linux/aarch64/sigcontextinfo.h (SIGCONTEXT,
375 GET_PC, __sigaction, sigaction): Remove defines.
376 (sigcontext_get_pc): New function.
377 * sysdeps/unix/sysv/linux/alpha/sigcontextinfo.h: Likewise.
378 * sysdeps/unix/sysv/linux/arm/sigcontextinfo.h: Likewise.
379 * sysdeps/unix/sysv/linux/csky/sigcontextinfo.h: Likewise.
380 * sysdeps/unix/sysv/linux/hppa/sigcontextinfo.h: Likewise.
381 * sysdeps/unix/sysv/linux/i386/sigcontextinfo.h: Likewise.
382 * sysdeps/unix/sysv/linux/ia64/sigcontextinfo.h: Likewise.
383 * sysdeps/unix/sysv/linux/m68k/sigcontextinfo.h: Likewise.
384 * sysdeps/unix/sysv/linux/mips/sigcontextinfo.h: Likewise.
385 * sysdeps/unix/sysv/linux/nios2/sigcontextinfo.h: Likewise.
386 * sysdeps/unix/sysv/linux/s390/sigcontextinfo.h: Likewise.
387 * sysdeps/unix/sysv/linux/microblaze/sigcontextinfo.h: Likewise.
388 * sysdeps/unix/sysv/linux/powerpc/sigcontextinfo.h: Likewise.
389 * sysdeps/unix/sysv/linux/riscv/sigcontextinfo.h: Likewise.
390 * sysdeps/unix/sysv/linux/sh/sigcontextinfo.h: Likewise.
391 * sysdeps/sysv/linux/sparc/sparc32/sigcontextinfo.h: Likewise.
392 * sysdeps/sysv/linux/sparc/sparc64/sigcontextinfo.h: Likewise.
393 * sysdeps/unix/sysv/linux/x86_64/sigcontextinfo.h: Likewise.
394 * sysdeps/unix/sysv/linux/alpha/register-dump.h (register_dump):
395 Handle CTX argument as ucontext_t.
396 * sysdeps/unix/sysv/linux/i386/register-dump.h: Likewise.
397 Likewise.
398 * sysdeps/unix/sysv/linux/m68k/register-dump.h: Likewise.
399 * sysdeps/sysv/linux/s390/s390-32/register-dump.h: Likewise.
400 * sysdeps/sysv/linux/s390/s390-64/register-dump.h: Likewise.
401 * sysdeps/unix/sysv/linux/sh/register-dump.h: New file.
402 * sysdeps/unix/sysv/linux/sh/sh4/register-dump.h: Remove File.
403 * sysdeps/unix/sysv/linux/sh/sh3/register-dump.h: Likewise.
404 * sysdeps/unix/sysv/linux/sparc/sparc32/register-dump.h: Likewise.
405 * sysdeps/unix/sysv/linux/sparc/sparc64/register-dump.h: Likewise.
406 * sysdeps/unix/sysv/linux/Makefile (tests-internal): Add
407 tst-sigcontextinfo-get_pc.
408 * sysdeps/unix/sysv/linux/tst-sigcontextinfo-get_pc.c: New file.
409 (CFLAGS-tst-sigcontextinfo-get_pc.c): New rule.
410
411 2019-08-23 Adhemerval Zanella <adhemerval.zanella@linaro.org>
412
413 * sysdeps/generic/single-thread.h (RTLD_SINGLE_THREAD_P): Add
414 definition.
415
416 2019-08-23 Rafał Lużyński <digitalfreak@lingonborough.com>
417
418 [BZ #24682]
419 * localedata/locales/bo_CN (first_weekday): Add, set to 2 (Monday).
420 * localedata/locales/ug_CN (first_weekday): Likewise.
421 * localedata/locales/zh_CN (first_weekday): Likewise.
422
423 2019-08-22 Gustavo Romero <gromero@linux.vnet.ibm.com>
424
425 * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h: Fix typos and
426 field name in mcontext_t struct.
427
428 2019-08-22 Joseph Myers <joseph@codesourcery.com>
429
430 * resolv/tst-resolv-ai_idn-latin1.c (do_test): Mark test
431 unsupported with libidn2 before 2.0.5.
432 * resolv/tst-resolv-ai_idn.c (do_test): Likewise.
433
434 * manual/time.texi (strftime): Document %Ob and %OB as C2X
435 features.
436
437 2019-08-21 Paul Eggert <eggert@cs.ucla.edu>
438
439 Remove dead regex code
440 * posix/regex_internal.c (re_node_set_insert):
441 Remove unnecessary assignment. Reported by Tim Rühsen in:
442 https://lists.gnu.org/r/bug-gnulib/2019-08/msg00026.html
443
444 Fix bad pointer / leak in regex code
445 This was found by Coverity (CID 1484201). [BZ#24844]
446 * posix/regex_internal.c (create_cd_newstate): Fix use of bad
447 pointer and/or memory leak when storage is exhausted.
448
449 2019-08-21 Zack Weinberg <zackw@panix.com>
450
451 * misc/syslog.c (__vsyslog_internal)
452 * time/getdate.c (__getdate_r)
453 * time/tst_wcsftime.c (main):
454 Use return value of time, not its argument.
455
456 * string/strfry.c (strfry)
457 * sysdeps/mach/sleep.c (__sleep):
458 Remove unnecessary casts of NULL in calls to time.
459
460 2019-08-21 Joseph Myers <joseph@codesourcery.com>
461
462 * math/tgmath.h [__HAVE_FLOAT128X]: Give error.
463 [(__HAVE_FLOAT64X && !__HAVE_FLOAT128)
464 || (__HAVE_FLOAT128 && !__HAVE_FLOAT64X)]: Likewise.
465 (__TGMATH_2_NARROW_F): Likewise.
466 (__TGMATH_2_NARROW_D): New macro.
467 (__TGMATH_2_NARROW_F16): Likewise.
468 (__TGMATH_2_NARROW_F32): Likewise.
469 (__TGMATH_2_NARROW_F64): Likewise.
470 (__TGMATH_2_NARROW_F32X): Likewise.
471 (__TGMATH_2_NARROW_F64X): Likewise.
472 [__HAVE_BUILTIN_TGMATH] (__TGMATH_NARROW_FUNCS_F): Likewise.
473 [__HAVE_BUILTIN_TGMATH] (__TGMATH_NARROW_FUNCS_F16): Likewise.
474 [__HAVE_BUILTIN_TGMATH] (__TGMATH_NARROW_FUNCS_F32): Likewise.
475 [__HAVE_BUILTIN_TGMATH] (__TGMATH_NARROW_FUNCS_F64): Likewise.
476 [__HAVE_BUILTIN_TGMATH] (__TGMATH_NARROW_FUNCS_F32X): Likewise.
477 [__GLIBC_USE (IEC_60559_BFP_EXT_C2X)] (fadd): Likewise.
478 [__GLIBC_USE (IEC_60559_BFP_EXT_C2X)] (dadd): Likewise.
479 [__GLIBC_USE (IEC_60559_BFP_EXT_C2X)] (fdiv): Likewise.
480 [__GLIBC_USE (IEC_60559_BFP_EXT_C2X)] (ddiv): Likewise.
481 [__GLIBC_USE (IEC_60559_BFP_EXT_C2X)] (fmul): Likewise.
482 [__GLIBC_USE (IEC_60559_BFP_EXT_C2X)] (dmul): Likewise.
483 [__GLIBC_USE (IEC_60559_BFP_EXT_C2X)] (fsub): Likewise.
484 [__GLIBC_USE (IEC_60559_BFP_EXT_C2X)] (dsub): Likewise.
485 [__GLIBC_USE (IEC_60559_TYPES_EXT) && __HAVE_FLOAT16] (f16add):
486 Likewise.
487 [__GLIBC_USE (IEC_60559_TYPES_EXT) && __HAVE_FLOAT16] (f16div):
488 Likewise.
489 [__GLIBC_USE (IEC_60559_TYPES_EXT) && __HAVE_FLOAT16] (f16mul):
490 Likewise.
491 [__GLIBC_USE (IEC_60559_TYPES_EXT) && __HAVE_FLOAT16] (f16sub):
492 Likewise.
493 [__GLIBC_USE (IEC_60559_TYPES_EXT) && __HAVE_FLOAT32] (f32add):
494 Likewise.
495 [__GLIBC_USE (IEC_60559_TYPES_EXT) && __HAVE_FLOAT32] (f32div):
496 Likewise.
497 [__GLIBC_USE (IEC_60559_TYPES_EXT) && __HAVE_FLOAT32] (f32mul):
498 Likewise.
499 [__GLIBC_USE (IEC_60559_TYPES_EXT) && __HAVE_FLOAT32] (f32sub):
500 Likewise.
501 [__GLIBC_USE (IEC_60559_TYPES_EXT) && __HAVE_FLOAT64
502 && (__HAVE_FLOAT64X || __HAVE_FLOAT128)] (f64add): Likewise.
503 [__GLIBC_USE (IEC_60559_TYPES_EXT) && __HAVE_FLOAT64
504 && (__HAVE_FLOAT64X || __HAVE_FLOAT128)] (f64div): Likewise.
505 [__GLIBC_USE (IEC_60559_TYPES_EXT) && __HAVE_FLOAT64
506 && (__HAVE_FLOAT64X || __HAVE_FLOAT128)] (f64mul): Likewise.
507 [__GLIBC_USE (IEC_60559_TYPES_EXT) && __HAVE_FLOAT64
508 && (__HAVE_FLOAT64X || __HAVE_FLOAT128)] (f64sub): Likewise.
509 [__GLIBC_USE (IEC_60559_TYPES_EXT) && __HAVE_FLOAT32X] (f32xadd):
510 Likewise.
511 [__GLIBC_USE (IEC_60559_TYPES_EXT) && __HAVE_FLOAT32X] (f32xdiv):
512 Likewise.
513 [__GLIBC_USE (IEC_60559_TYPES_EXT) && __HAVE_FLOAT32X] (f32xmul):
514 Likewise.
515 [__GLIBC_USE (IEC_60559_TYPES_EXT) && __HAVE_FLOAT32X] (f32xsub):
516 Likewise.
517 [__GLIBC_USE (IEC_60559_TYPES_EXT) && __HAVE_FLOAT64X
518 && (__HAVE_FLOAT128X || __HAVE_FLOAT128)] (f64xadd): Likewise.
519 [__GLIBC_USE (IEC_60559_TYPES_EXT) && __HAVE_FLOAT64X
520 && (__HAVE_FLOAT128X || __HAVE_FLOAT128)] (f64xdiv): Likewise.
521 [__GLIBC_USE (IEC_60559_TYPES_EXT) && __HAVE_FLOAT64X
522 && (__HAVE_FLOAT128X || __HAVE_FLOAT128)] (f64xmul): Likewise.
523 [__GLIBC_USE (IEC_60559_TYPES_EXT) && __HAVE_FLOAT64X
524 && (__HAVE_FLOAT128X || __HAVE_FLOAT128)] (f64xsub): Likewise.
525 * math/gen-tgmath-tests.py (Type): Add members
526 non_standard_real_argument_types_list, long_double_type,
527 complex_float64_type and float32x_ext_type.
528 (Type.__init__): Set the new members.
529 (Type.floating_type): Add new argument floatn.
530 (Type.real_floating_type): Likewise.
531 (Type.can_combine_types): Likewise.
532 (Type.combine_types): Likewise.
533 (Type.init_types): Create internal Float32x_ext type.
534 (Tests.__init__): Define Float32x_ext in generated C code.
535 (Tests.add_tests): Handle narrowing functions.
536 (Tests.add_all_tests): Likewise.
537 (Tests.tests_text): Allow variation in mant_dig for narrowing
538 functions with compilers before GCC 8.
539 * math/Makefile (tgmath3-narrow-types): New variable.
540 (tgmath3-narrow-macros): Likewise.
541 (tgmath3-macros): Add $(tgmath3-narrow-macros).
542
543 2019-08-20 Andreas Schwab <schwab@suse.de>
544
545 * sysdeps/i386/fpu/libm-test-ulps: Update.
546
547 2019-08-19 Carlos O'Donell <carlos@redhat.com>
548
549 * nscd/nscd.conf: Add warning and comment about shared option.
550
551 2019-08-19 Carlos O'Donell <carlos@redhat.com>
552
553 * nss/nsswitch.conf: Expand comments, and simplify defaults.
554 * manual/nss.texi (NSS Basics): List all known databases.
555 (Services in the NSS configuration): Mention automount.
556
557 2019-08-19 Florian Weimer <fweimer@redhat.com>
558
559 Do not print backtraces on fatal errors.
560 * debug/fortify_fail.c (__libc_argv): Remove declaration.
561 (__fortify_fail_abort): Remove definition.
562 (__fortify_fail): Call __libc_message directly.
563 * debug/stack_chk_fail.c (__libc_argv): Remove declaration.
564 (__stack_chk_fail): Call __fortify_fail instead of
565 __fortify_fail_abort.
566 * include/stdio.h (__fortify_fail_abort): Remove declaration.
567 * sysdeps/posix/libc_fatal.c (BEFORE_ABORT, before_abort): Remove
568 definitions.
569 (__libc_message): Do not handle do_backtrace. Do not call
570 BEFORE_ABORT.
571 (__libc_fatal): Do not pass do_backtrace to __libc_message.
572 * sysdeps/unix/sysv/linux/libc_fatal.c (BEFORE_ABORT)
573 (before_abort): Remove definitions.
574
575 2019-08-16 Florian Weimer <fweimer@redhat.com>
576
577 nptl: Move pthread_attr_getdetachstate implementation into libc.
578 * nptl/Makefile (routines): Add pthread_attr_getdetachstate.
579 (libpthread-routines): Remove pthread_attr_getdetachstate.
580 * nptl/Versions (libpthread GLIBC_2.0): Remove
581 pthread_attr_getdetachstate.
582 * nptl/forward.c (pthread_attr_getdetachstate): Remove definition.
583 * nptl/nptl-init.c (pthread_functions): Remove initializer for
584 ptr_pthread_attr_getdetachstate.
585 * sysdeps/nptl/pthread-functions.h (struct pthread_functions):
586 Remove ptr_pthread_attr_getdetachstate member.
587 * sysdeps/unix/sysv/linux/aarch64/libpthread.abilist (GLIBC_2.17):
588 Remove pthread_attr_getdetachstate.
589 * sysdeps/unix/sysv/linux/alpha/libpthread.abilist (GLIBC_2.0):
590 Likewise.
591 * sysdeps/unix/sysv/linux/arm/libpthread.abilist (GLIBC_2.4):
592 Likewise.
593 * sysdeps/unix/sysv/linux/csky/libpthread.abilist (GLIBC_2.29):
594 Likewise.
595 * sysdeps/unix/sysv/linux/hppa/libpthread.abilist (GLIBC_2.2):
596 Likewise.
597 * sysdeps/unix/sysv/linux/i386/libpthread.abilist (GLIBC_2.0):
598 Likewise.
599 * sysdeps/unix/sysv/linux/ia64/libpthread.abilist (GLIBC_2.2):
600 Likewise.
601 * sysdeps/unix/sysv/linux/m68k/coldfire/libpthread.abilist
602 (GLIBC_2.4): Likewise.
603 * sysdeps/unix/sysv/linux/m68k/m680x0/libpthread.abilist
604 (GLIBC_2.0): Likewise.
605 * sysdeps/unix/sysv/linux/microblaze/libpthread.abilist
606 (GLIBC_2.18): Likewise.
607 * sysdeps/unix/sysv/linux/mips/mips32/libpthread.abilist
608 (GLIBC_2.0): Likewise.
609 * sysdeps/unix/sysv/linux/mips/mips64/libpthread.abilist
610 (GLIBC_2.0): Likewise.
611 * sysdeps/unix/sysv/linux/nios2/libpthread.abilist (GLIBC_2.21):
612 Likewise.
613 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libpthread.abilist
614 (GLIBC_2.0): Likewise.
615 * sysdeps/unix/sysv/linux/powerpc/powerpc64/be/libpthread.abilist
616 (GLIBC_2.3): Likewise.
617 * sysdeps/unix/sysv/linux/powerpc/powerpc64/le/libpthread.abilist
618 (GLIBC_2.17): Likewise.
619 * sysdeps/unix/sysv/linux/riscv/rv64/libpthread.abilist
620 (GLIBC_2.27): Likewise.
621 * sysdeps/unix/sysv/linux/s390/s390-32/libpthread.abilist
622 (GLIBC_2.0): Likewise.
623 * sysdeps/unix/sysv/linux/s390/s390-64/libpthread.abilist
624 (GLIBC_2.2): Likewise.
625 * sysdeps/unix/sysv/linux/sh/libpthread.abilist (GLIBC_2.2):
626 Likewise.
627 * sysdeps/unix/sysv/linux/sparc/sparc32/libpthread.abilist
628 (GLIBC_2.0): Likewise.
629 * sysdeps/unix/sysv/linux/sparc/sparc64/libpthread.abilist
630 (GLIBC_2.2): Likewise.
631 * sysdeps/unix/sysv/linux/x86_64/64/libpthread.abilist
632 (GLIBC_2.2.5): Likewise.
633 * sysdeps/unix/sysv/linux/x86_64/x32/libpthread.abilist
634 (GLIBC_2.16): Likewise.
635
636 2019-08-16 Joseph Myers <joseph@codesourcery.com>
637
638 * math/libm-test-compat_totalorder.inc (do_test)
639 [TEST_COMPAT (libm, GLIBC_2_25, GLIBC_2_31)]: Change condition to
640 [TEST_COMPAT (libm, COMPAT_VER, GLIBC_2_31)].
641 * math/libm-test-compat_totalordermag.inc (do_test)
642 [TEST_COMPAT (libm, GLIBC_2_25, GLIBC_2_31)]: Likewise.
643
644 2019-08-15 Florian Weimer <fweimer@redhat.com>
645
646 nptl: Move pthread_attr_init implementation into libc.
647 * nptl/Makefile (routines): Add pthread_attr_init.
648 (libpthread-routines): Remove pthread_attr_init.
649 * nptl/Versions (libpthread GLIBC_2.0): Remove pthread_attr_init.
650 (libpthread GLIBC_2.0): Likewise.
651 * nptl/pthread_attr_init.c: Check for libc compat version instead
652 of libpthread compat version.
653 * nptl/forward.c (__pthread_attr_init_2_0)
654 (__pthread_attr_init_2_1): Remove definitions.
655 * nptl/nptl-init.c (pthread_functions): Remove initializers for
656 ptr___pthread_attr_init_2_0, ptr___pthread_attr_init_2_1.
657 * sysdeps/nptl/pthread-functions.h (struct pthread_functions):
658 Remove members ptr___pthread_attr_init_2_0,
659 ptr___pthread_attr_init_2_1.
660 * sysdeps/unix/sysv/linux/aarch64/libpthread.abilist (GLIBC_2.17):
661 Remove pthread_attr_init.
662 * sysdeps/unix/sysv/linux/alpha/libpthread.abilist (GLIBC_2.0):
663 Likewise.
664 (GLIBC_2.1): Likewise.
665 * sysdeps/unix/sysv/linux/arm/libpthread.abilist (GLIBC_2.4):
666 Likewise.
667 * sysdeps/unix/sysv/linux/csky/libpthread.abilist (GLIBC_2.29):
668 Likewise.
669 * sysdeps/unix/sysv/linux/hppa/libpthread.abilist (GLIBC_2.2):
670 Likewise.
671 * sysdeps/unix/sysv/linux/i386/libpthread.abilist (GLIBC_2.0):
672 Likewise.
673 (GLIBC_2.1): Likewise.
674 * sysdeps/unix/sysv/linux/ia64/libpthread.abilist (GLIBC_2.2):
675 Likewise.
676 * sysdeps/unix/sysv/linux/m68k/coldfire/libpthread.abilist
677 (GLIBC_2.4): Likewise.
678 * sysdeps/unix/sysv/linux/m68k/m680x0/libpthread.abilist
679 (GLIBC_2.0): Likewise.
680 (GLIBC_2.1): Likewise.
681 * sysdeps/unix/sysv/linux/microblaze/libpthread.abilist
682 (GLIBC_2.18): Likewise.
683 * sysdeps/unix/sysv/linux/mips/mips32/libpthread.abilist
684 (GLIBC_2.0): Likewise.
685 (GLIBC_2.1): Likewise.
686 * sysdeps/unix/sysv/linux/mips/mips64/libpthread.abilist
687 (GLIBC_2.0): Likewise.
688 (GLIBC_2.1): Likewise.
689 * sysdeps/unix/sysv/linux/nios2/libpthread.abilist (GLIBC_2.21):
690 Likewise.
691 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libpthread.abilist
692 (GLIBC_2.0): Likewise.
693 (GLIBC_2.1): Likewise.
694 * sysdeps/unix/sysv/linux/powerpc/powerpc64/be/libpthread.abilist
695 (GLIBC_2.3): Likewise.
696 * sysdeps/unix/sysv/linux/powerpc/powerpc64/le/libpthread.abilist
697 (GLIBC_2.17): Likewise.
698 * sysdeps/unix/sysv/linux/riscv/rv64/libpthread.abilist
699 (GLIBC_2.27): Likewise.
700 * sysdeps/unix/sysv/linux/s390/s390-32/libpthread.abilist
701 (GLIBC_2.0): Likewise.
702 (GLIBC_2.1): Likewise.
703 * sysdeps/unix/sysv/linux/s390/s390-64/libpthread.abilist
704 (GLIBC_2.2): Likewise.
705 * sysdeps/unix/sysv/linux/sh/libpthread.abilist (GLIBC_2.2):
706 Likewise.
707 * sysdeps/unix/sysv/linux/sparc/sparc32/libpthread.abilist
708 (GLIBC_2.0): Likewise.
709 (GLIBC_2.1): Likewise.
710 * sysdeps/unix/sysv/linux/sparc/sparc64/libpthread.abilist
711 (GLIBC_2.2): Likewise.
712 * sysdeps/unix/sysv/linux/x86_64/64/libpthread.abilist
713 (GLIBC_2.2.5): Likewise.
714 * sysdeps/unix/sysv/linux/x86_64/x32/libpthread.abilist
715 (GLIBC_2.16): Likewise.
716
717 2019-08-15 Florian Weimer <fweimer@redhat.com>
718
719 [BZ #24900]
720 * elf/dl-object.c (_dl_new_object): Do not store pathnames in the
721 new object in __RTLD_OPENEXEC mode (except for the origin).
722 * elf/tst-dlopen-aout.c (check_dlopen_failure): New function with
723 check for the error message.
724 (do_test): Call it. Add check using relative path.
725 * elf/Makefile (tests-container): Add tst-dlopen-aout-container.
726 (tst-dlopen-aout-container): Link with libpthread.
727 (LDFLAGS-tst-dlopen-aout-container): Set RPATH to $ORIGIN.
728
729 2019-08-15 Joseph Myers <joseph@codesourcery.com>
730
731 * math/bits/mathcalls.h
732 [__GLIBC_USE (IEC_60559_BFP_EXT) || __MATH_DECLARING_FLOATN]
733 (totalorder): Take pointer arguments.
734 [__GLIBC_USE (IEC_60559_BFP_EXT) || __MATH_DECLARING_FLOATN]
735 (totalordermag): Likewise.
736 * manual/arith.texi (totalorder): Likewise.
737 (totalorderf): Likewise.
738 (totalorderl): Likewise.
739 (totalorderfN): Likewise.
740 (totalorderfNx): Likewise.
741 (totalordermag): Likewise.
742 (totalordermagf): Likewise.
743 (totalordermagl): Likewise.
744 (totalordermagfN): Likewise.
745 (totalordermagfNx): Likewise.
746 * math/tgmath.h (__TGMATH_BINARY_REAL_RET_ONLY): Remove macro.
747 [__GLIBC_USE (IEC_60559_BFP_EXT)] (totalorder): Likewise.
748 [__GLIBC_USE (IEC_60559_BFP_EXT)] (totalordermag): Likewise.
749 * math/Versions (GLIBC_2.31): Add totalorder, totalorderf,
750 totalorderl, totalordermag, totalordermagf, totalordermagl,
751 totalorderf32, totalorderf64, totalorderf32x, totalordermagf32,
752 totalordermagf64, totalordermagf32x, totalorderf64x,
753 totalordermagf64x, totalorderf128 and totalordermagf128.
754 * math/Makefile (libm-test-funcs-noauto): Add compat_totalorder
755 and compat_totalordermag.
756 (libm-test-funcs-compat): New variable.
757 (libm-tests-compat): Likewise.
758 (tests): Do not include compat tests.
759 (tests-internal): Add compat tests.
760 ($(foreach t,$(libm-tests-base),
761 $(objpfx)$(t)-compat_totalorder.o)): Depend
762 on $(objpfx)libm-test-totalorder.c.
763 ($(foreach t,$(libm-tests-base),
764 $(objpfx)$(t)-compat_totalordermag.o): Depend on
765 $(objpfx)libm-test-totalordermag.c.
766 (tgmath3-macros): Remove totalorder and totalordermag.
767 * math/libm-test-compat_totalorder.inc: New file.
768 * math/libm-test-compat_totalordermag.inc: Likewise.
769 * math/libm-test-driver.c (struct test_ff_i_data): Update comment.
770 (RUN_TEST_fpfp_b): New macro.
771 (RUN_TEST_LOOP_fpfp_b): Likewise.
772 * math/libm-test-totalorder.inc (totalorder_test_data): Use
773 TEST_fpfp_b.
774 (totalorder_test): Condition on [!COMPAT_TEST].
775 (do_test): Likewise.
776 * math/libm-test-totalordermag.inc (totalordermag_test_data): Use
777 TEST_fpfp_b.
778 (totalordermag_test): Condition on [!COMPAT_TEST].
779 (do_test): Likewise.
780 * math/gen-tgmath-tests.py (Tests.add_all_tests): Remove
781 totalorder and totalordermag.
782 * math/test-tgmath.c (NCALLS): Change to 132.
783 (F(compile_test)): Do not call totalorder or totalordermag.
784 (F(totalorder)): Remove.
785 (F(totalordermag)): Likewise.
786 * include/float.h (__STDC_WANT_IEC_60559_TYPES_EXT__): Do not
787 define if [__STDC_WANT_IEC_60559_TYPES_EXT__].
788 * include/setjmp.h [!_ISOMAC] (STR_HELPER): Rename to
789 SJSTR_HELPER.
790 [!_ISOMAC] (STR): Rename to SJSTR. Update call to STR_HELPER.
791 [!_ISOMAC] (TEST_SIZE): Update call to STR.
792 [!_ISOMAC] (TEST_ALIGN): Likewise.
793 [!_ISOMAC] (TEST_OFFSET): Likewise.
794 * sysdeps/ieee754/dbl-64/s_totalorder.c: Include <shlib-compat.h>
795 and <first-versions.h>.
796 (__totalorder): Take pointer arguments. Add symbol versions and
797 compat symbols.
798 * sysdeps/ieee754/dbl-64/s_totalordermag.c: Include
799 <shlib-compat.h> and <first-versions.h>.
800 (__totalordermag): Take pointer arguments. Add symbol versions
801 and compat symbols.
802 * sysdeps/ieee754/dbl-64/wordsize-64/s_totalorder.c: Include
803 <shlib-compat.h> and <first-versions.h>.
804 (__totalorder): Take pointer arguments. Add symbol versions and
805 compat symbols.
806 * sysdeps/ieee754/dbl-64/wordsize-64/s_totalordermag.c: Include
807 <shlib-compat.h> and <first-versions.h>.
808 (__totalordermag): Take pointer arguments. Add symbol versions
809 and compat symbols.
810 * sysdeps/ieee754/float128/float128_private.h
811 (__totalorder_compatl): New macro.
812 (__totalordermag_compatl): Likewise.
813 * sysdeps/ieee754/flt-32/s_totalorderf.c: Include <shlib-compat.h>
814 and <first-versions.h>.
815 (__totalorderf): Take pointer arguments. Add symbol versions and
816 compat symbols.
817 * sysdeps/ieee754/flt-32/s_totalordermagf.c: Include
818 <shlib-compat.h> and <first-versions.h>.
819 (__totalordermagf): Take pointer arguments. Add symbol versions
820 and compat symbols.
821 * sysdeps/ieee754/ldbl-128/s_totalorderl.c: Include
822 <shlib-compat.h> and <first-versions.h>.
823 (__totalorderl): Take pointer arguments. Add symbol versions and
824 compat symbols.
825 * sysdeps/ieee754/ldbl-128/s_totalordermagl.c: Include
826 <shlib-compat.h> and <first-versions.h>.
827 (__totalordermagl): Take pointer arguments. Add symbol versions
828 and compat symbols.
829 * sysdeps/ieee754/ldbl-128ibm/s_totalorderl.c: Include
830 <shlib-compat.h>.
831 (__totalorderl): Take pointer arguments. Add symbol versions and
832 compat symbols.
833 * sysdeps/ieee754/ldbl-128ibm/s_totalordermagl.c: Include
834 <shlib-compat.h>.
835 (__totalordermagl): Take pointer arguments. Add symbol versions
836 and compat symbols.
837 * sysdeps/ieee754/ldbl-96/s_totalorderl.c: Include
838 <shlib-compat.h> and <first-versions.h>.
839 (__totalorderl): Take pointer arguments. Add symbol versions and
840 compat symbols.
841 * sysdeps/ieee754/ldbl-96/s_totalordermagl.c: Include
842 <shlib-compat.h> and <first-versions.h>.
843 (__totalordermagl): Take pointer arguments. Add symbol versions
844 and compat symbols.
845 * sysdeps/ieee754/ldbl-opt/nldbl-totalorder.c (totalorderl): Take
846 pointer arguments.
847 * sysdeps/ieee754/ldbl-opt/nldbl-totalordermag.c (totalordermagl):
848 Likewise.
849 * sysdeps/ieee754/ldbl-128ibm/test-totalorderl-ldbl-128ibm.c
850 (do_test): Update calls to totalorderl and totalordermagl.
851 * sysdeps/ieee754/ldbl-96/test-totalorderl-ldbl-96.c (do_test):
852 Update calls to totalorderl and totalordermagl.
853 * sysdeps/mach/hurd/i386/libm.abilist: Update.
854 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
855 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
856 * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
857 * sysdeps/unix/sysv/linux/csky/libm.abilist: Likewise.
858 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
859 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
860 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
861 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
862 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
863 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
864 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
865 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
866 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
867 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist:
868 Likewise.
869 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
870 Likewise.
871 * sysdeps/unix/sysv/linux/powerpc/powerpc64/be/libm.abilist:
872 Likewise.
873 * sysdeps/unix/sysv/linux/powerpc/powerpc64/le/libm.abilist:
874 Likewise.
875 * sysdeps/unix/sysv/linux/riscv/rv64/libm.abilist: Likewise.
876 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
877 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
878 * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
879 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
880 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
881 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
882 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
883
884 2019-08-15 Florian Weimer <fweimer@redhat.com>
885
886 [BZ #24899]
887 * sysdeps/gnu/bits/utmpx.h (struct utmpx): Add
888 __attribute_nonstring__ to ut_line, ut_id, ut_user, ut_host.
889 * sysdeps/unix/sysv/linux/s390/bits/utmpx.h (struct utmpx):
890 Likewise.
891 * sysdeps/gnu/bits/utmp.h (struct utmp): Add
892 __attribute_nonstring__ to ut_id.
893 * sysdeps/unix/sysv/linux/s390/bits/utmpx.h (struct utmp):
894 Likewise.
895
896 2019-08-15 Florian Weimer <fweimer@redhat.com>
897
898 [BZ #24880]
899 * login/utmp_file.c (file_locking_failed): Use struct flock64.
900 (file_locking_unlock): Likewise.
901
902 2019-08-15 Florian Weimer <fweimer@redhat.com>
903
904 [BZ #24879]
905 login: Disarm timer after utmp lock acquisition.
906 * login/utmp_file.c (struct file_locking): Remove.
907 (try_file_lock): Adjust.
908 (file_lock_restore): Remove function.
909 (__libc_getutent_r): .
910 (internal_getut_r): Likewise.
911 (__libc_getutline_r): Likewise.
912 (__libc_pututline): Likewise.
913 (__libc_updwtmp): Likewise.
914
915 2019-08-15 Florian Weimer <fweimer@redhat.com>
916
917 nptl: Remove pthread_self compatibility symbol from libpthread.
918 * nptl/Versions (libpthread GLIBC_2.0): Remove pthread_self,
919 pthread_equal.
920 * nptl/Makefile (libpthread-routines): Remove compat-pthread_self.
921 * nptl/compat-pthread_self.c: Remove file.
922 * sysdeps/unix/sysv/linux/aarch64/libpthread.abilist (GLIBC_2.17):
923 Remove pthread_self.
924 * sysdeps/unix/sysv/linux/alpha/libpthread.abilist (GLIBC_2.0):
925 Likewise.
926 * sysdeps/unix/sysv/linux/arm/libpthread.abilist (GLIBC_2.4):
927 Likewise.
928 * sysdeps/unix/sysv/linux/hppa/libpthread.abilist (GLIBC_2.2):
929 Likewise.
930 * sysdeps/unix/sysv/linux/i386/libpthread.abilist (GLIBC_2.0):
931 Likewise.
932 * sysdeps/unix/sysv/linux/ia64/libpthread.abilist (GLIBC_2.2):
933 Likewise.
934 * sysdeps/unix/sysv/linux/m68k/coldfire/libpthread.abilist
935 (GLIBC_2.4): Likewise.
936 * sysdeps/unix/sysv/linux/m68k/m680x0/libpthread.abilist
937 (GLIBC_2.0): Likewise.
938 * sysdeps/unix/sysv/linux/microblaze/libpthread.abilist
939 (GLIBC_2.18): Likewise.
940 * sysdeps/unix/sysv/linux/mips/mips32/libpthread.abilist
941 (GLIBC_2.0): Likewise.
942 * sysdeps/unix/sysv/linux/mips/mips64/libpthread.abilist
943 (GLIBC_2.0): Likewise.
944 * sysdeps/unix/sysv/linux/nios2/libpthread.abilist (GLIBC_2.21):
945 Likewise.
946 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libpthread.abilist
947 (GLIBC_2.0): Likewise.
948 * sysdeps/unix/sysv/linux/powerpc/powerpc64/be/libpthread.abilist
949 (GLIBC_2.3): Likewise.
950 * sysdeps/unix/sysv/linux/powerpc/powerpc64/le/libpthread.abilist
951 (GLIBC_2.17): Likewise.
952 * sysdeps/unix/sysv/linux/s390/s390-32/libpthread.abilist
953 (GLIBC_2.0): Likewise.
954 * sysdeps/unix/sysv/linux/s390/s390-64/libpthread.abilist
955 (GLIBC_2.2): Likewise.
956 * sysdeps/unix/sysv/linux/sh/libpthread.abilist (GLIBC_2.2):
957 Likewise.
958 * sysdeps/unix/sysv/linux/sparc/sparc32/libpthread.abilist
959 (GLIBC_2.0): Likewise.
960 * sysdeps/unix/sysv/linux/sparc/sparc64/libpthread.abilist
961 (GLIBC_2.2): Likewise.
962 * sysdeps/unix/sysv/linux/x86_64/64/libpthread.abilist
963 (GLIBC_2.2.5): Likewise.
964 * sysdeps/unix/sysv/linux/x86_64/x32/libpthread.abilist
965 (GLIBC_2.16): Likewise.
966
967 2019-08-15 Florian Weimer <fweimer@redhat.com>
968
969 nptl: Move pthread_attr_destroy implementation into libc.
970 * nptl/Makefile (routines): Add pthread_attr_destroy.
971 (libpthread-routines): Remove pthread_attr_destroy.
972 * nptl/Versions (libpthread GLIBC_2.0): Remove
973 pthread_attr_destroy.
974 * nptl/pthread_attr_destroy.c (__pthread_attr_destroy): Check for
975 libc compat version instead of libpthread compat version.
976 * nptl/forward.c (pthread_attr_destroy): Remove definition.
977 * nptl/nptl-init.c (pthread_functions): Remove initializer for
978 ptr_pthread_attr_destroy.
979 * sysdeps/nptl/pthread-functions.h (struct pthread_functions):
980 Remove ptr_pthread_attr_destroy member.
981 * sysdeps/unix/sysv/linux/aarch64/libpthread.abilist (GLIBC_2.17):
982 Remove pthread_attr_destroy.
983 * sysdeps/unix/sysv/linux/alpha/libpthread.abilist (GLIBC_2.0):
984 Likewise.
985 * sysdeps/unix/sysv/linux/arm/libpthread.abilist (GLIBC_2.4):
986 Likewise.
987 * sysdeps/unix/sysv/linux/csky/libpthread.abilist (GLIBC_2.29):
988 Likewise.
989 * sysdeps/unix/sysv/linux/hppa/libpthread.abilist (GLIBC_2.2):
990 Likewise.
991 * sysdeps/unix/sysv/linux/i386/libpthread.abilist (GLIBC_2.0):
992 Likewise.
993 * sysdeps/unix/sysv/linux/ia64/libpthread.abilist (GLIBC_2.2):
994 Likewise.
995 * sysdeps/unix/sysv/linux/m68k/coldfire/libpthread.abilist
996 (GLIBC_2.4): Likewise.
997 * sysdeps/unix/sysv/linux/m68k/m680x0/libpthread.abilist
998 (GLIBC_2.0): Likewise.
999 * sysdeps/unix/sysv/linux/microblaze/libpthread.abilist
1000 (GLIBC_2.18): Likewise.
1001 * sysdeps/unix/sysv/linux/mips/mips32/libpthread.abilist
1002 (GLIBC_2.0): Likewise.
1003 * sysdeps/unix/sysv/linux/mips/mips64/libpthread.abilist
1004 (GLIBC_2.0): Likewise.
1005 * sysdeps/unix/sysv/linux/nios2/libpthread.abilist (GLIBC_2.21):
1006 Likewise.
1007 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libpthread.abilist
1008 (GLIBC_2.0): Likewise.
1009 * sysdeps/unix/sysv/linux/powerpc/powerpc64/be/libpthread.abilist
1010 (GLIBC_2.3): Likewise.
1011 * sysdeps/unix/sysv/linux/powerpc/powerpc64/le/libpthread.abilist
1012 (GLIBC_2.17): Likewise.
1013 * sysdeps/unix/sysv/linux/riscv/rv64/libpthread.abilist
1014 (GLIBC_2.27): Likewise.
1015 * sysdeps/unix/sysv/linux/s390/s390-32/libpthread.abilist
1016 (GLIBC_2.0): Likewise.
1017 * sysdeps/unix/sysv/linux/s390/s390-64/libpthread.abilist
1018 (GLIBC_2.2): Likewise.
1019 * sysdeps/unix/sysv/linux/sh/libpthread.abilist (GLIBC_2.2):
1020 Likewise.
1021 * sysdeps/unix/sysv/linux/sparc/sparc32/libpthread.abilist
1022 (GLIBC_2.0): Likewise.
1023 * sysdeps/unix/sysv/linux/sparc/sparc64/libpthread.abilist
1024 (GLIBC_2.2): Likewise.
1025 * sysdeps/unix/sysv/linux/x86_64/64/libpthread.abilist
1026 (GLIBC_2.2.5): Likewise.
1027 * sysdeps/unix/sysv/linux/x86_64/x32/libpthread.abilist
1028 (GLIBC_2.16): Likewise.
1029
1030 2019-08-15 Andreas Schwab <schwab@suse.de>
1031
1032 * sysdeps/i386/fpu/libm-test-ulps: Update.
1033
1034 2019-08-15 Florian Weimer <fweimer@redhat.com>
1035
1036 * malloc/Makefile (tests): Only add tst-mxfast for
1037 $(have-tunables).
1038 * malloc/tst-mxfast.c: Fix copyright year.
1039 (do_test): Fix GNU style issues. Use TEST_COMPARE instead of
1040 assert for checks.
1041
1042 2019-08-15 Florian Weimer <fweimer@redhat.com>
1043
1044 * login/utmp_file.c (__libc_updwtmp): Unlock the right file
1045 descriptor.
1046 * login/Makefile (tests): Add tst-updwtmpx.
1047 * login/tst-updwtmpx.c: New file.
1048
1049 2019-08-15 Florian Weimer <fweimer@redhat.com>
1050
1051 nptl: Move pthread_equal implementation into libc.
1052 * nptl/Makefile (routines): Add pthread_equal.
1053 * nptl/forward.c (pthread_equal): Remove definition.
1054 * nptl/nptl-init.c (pthread_functions): Remove initializer for
1055 ptr_pthread_equal.
1056 * sysdeps/nptl/pthread-functions.h (struct pthread_functions):
1057 Remove ptr_pthread_equal member.
1058 * sysdeps/unix/sysv/linux/aarch64/libpthread.abilist (GLIBC_2.17):
1059 Remove pthread_equal.
1060 * sysdeps/unix/sysv/linux/alpha/libpthread.abilist (GLIBC_2.0):
1061 Likewise.
1062 * sysdeps/unix/sysv/linux/arm/libpthread.abilist (GLIBC_2.4):
1063 Likewise.
1064 * sysdeps/unix/sysv/linux/csky/libpthread.abilist (GLIBC_2.29):
1065 Likewise.
1066 * sysdeps/unix/sysv/linux/hppa/libpthread.abilist (GLIBC_2.2):
1067 Likewise.
1068 * sysdeps/unix/sysv/linux/i386/libpthread.abilist (GLIBC_2.0):
1069 Likewise.
1070 * sysdeps/unix/sysv/linux/ia64/libpthread.abilist (GLIBC_2.2):
1071 Likewise.
1072 * sysdeps/unix/sysv/linux/m68k/coldfire/libpthread.abilist
1073 (GLIBC_2.4): Likewise.
1074 * sysdeps/unix/sysv/linux/m68k/m680x0/libpthread.abilist
1075 (GLIBC_2.0): Likewise.
1076 * sysdeps/unix/sysv/linux/microblaze/libpthread.abilist
1077 (GLIBC_2.18): Likewise.
1078 * sysdeps/unix/sysv/linux/mips/mips32/libpthread.abilist
1079 (GLIBC_2.0): Likewise.
1080 * sysdeps/unix/sysv/linux/mips/mips64/libpthread.abilist
1081 (GLIBC_2.0): Likewise.
1082 * sysdeps/unix/sysv/linux/nios2/libpthread.abilist (GLIBC_2.21):
1083 Likewise.
1084 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libpthread.abilist
1085 (GLIBC_2.0): Likewise.
1086 * sysdeps/unix/sysv/linux/powerpc/powerpc64/be/libpthread.abilist
1087 (GLIBC_2.3): Likewise.
1088 * sysdeps/unix/sysv/linux/powerpc/powerpc64/le/libpthread.abilist
1089 (GLIBC_2.17): Likewise.
1090 * sysdeps/unix/sysv/linux/riscv/rv64/libpthread.abilist
1091 (GLIBC_2.27): Likewise.
1092 * sysdeps/unix/sysv/linux/s390/s390-32/libpthread.abilist
1093 (GLIBC_2.0): Likewise.
1094 * sysdeps/unix/sysv/linux/s390/s390-64/libpthread.abilist
1095 (GLIBC_2.2): Likewise.
1096 * sysdeps/unix/sysv/linux/sh/libpthread.abilist (GLIBC_2.2):
1097 Likewise.
1098 * sysdeps/unix/sysv/linux/sparc/sparc32/libpthread.abilist
1099 (GLIBC_2.0): Likewise.
1100 * sysdeps/unix/sysv/linux/sparc/sparc64/libpthread.abilist
1101 (GLIBC_2.2): Likewise.
1102 * sysdeps/unix/sysv/linux/x86_64/64/libpthread.abilist
1103 (GLIBC_2.2.5): Likewise.
1104 * sysdeps/unix/sysv/linux/x86_64/x32/libpthread.abilist
1105 (GLIBC_2.16): Likewise.
1106
1107 2019-08-14 Florian Weimer <fweimer@redhat.com>
1108
1109 * support/support_descriptors.c: Include <support/descriptors.h>.
1110
1111 2019-08-14 Feng Xue <fxue@os.amperecomputing.com>
1112
1113 * sysdeps/aarch64/multiarch/memset_base64.S (DC_ZVA_THRESHOLD):
1114 Disable DC ZVA code if this macro is defined as zero.
1115 * sysdeps/aarch64/multiarch/memset_emag.S (DC_ZVA_THRESHOLD):
1116 Change to zero to disable using DC ZVA.
1117
1118 2019-08-13 Joseph Myers <joseph@codesourcery.com>
1119
1120 * bits/libc-header-start.h (__GLIBC_USE_IEC_60559_FUNCS_EXT):
1121 Update comment.
1122 (__GLIBC_USE_IEC_60559_FUNCS_EXT_C2X): New macro.
1123 * bits/math-finite.h [__GLIBC_USE (IEC_60559_FUNCS_EXT)]: Change
1124 to [__GLIBC_USE (IEC_60559_FUNCS_EXT_C2X)].
1125 * math/bits/mathcalls.h [__GLIBC_USE (IEC_60559_FUNCS_EXT)]:
1126 Likewise.
1127
1128 2019-08-13 Florian Weimer <fweimer@redhat.com>
1129
1130 * login/utmp_file.c (LOCK_FILE, LOCKING_FAILED, UNLOCK_FILE):
1131 Remove macros.
1132 (struct file_locking): New.
1133 (try_file_lock, file_unlock, file_lock_restore): New functions.
1134 (__libc_getutent_r): Use the new functions.
1135 (internal_getut_r): Likewise.
1136 (__libc_getutline_r): Likewise.
1137 (__libc_pututline): Likewise.
1138 (__libc_updwtmp): Likewise.
1139
1140 2019-08-13 Joseph Myers <joseph@codesourcery.com>
1141
1142 * bits/libc-header-start.h (__GLIBC_USE_IEC_60559_BFP_EXT): Update
1143 comment.
1144 (__GLIBC_USE_IEC_60559_BFP_EXT_C2X): New macro.
1145 * bits/fenv.h [__GLIBC_USE (IEC_60559_BFP_EXT)]: Change to
1146 [__GLIBC_USE (IEC_60559_BFP_EXT_C2X)].
1147 * include/limits.h [__GLIBC_USE (IEC_60559_BFP_EXT)]: Likewise.
1148 * math/fenv.h [__GLIBC_USE (IEC_60559_BFP_EXT)]: Likewise.
1149 * math/math.h [__GLIBC_USE (IEC_60559_BFP_EXT)]: Likewise.
1150 * stdlib/bits/stdlib-ldbl.h [__GLIBC_USE (IEC_60559_BFP_EXT)]:
1151 Likewise.
1152 * stdlib/stdint.h [__GLIBC_USE (IEC_60559_BFP_EXT)]: Likewise.
1153 * stdlib/stdlib.h [__GLIBC_USE (IEC_60559_BFP_EXT)]: Likewise.
1154 * sysdeps/aarch64/bits/fenv.h [__GLIBC_USE (IEC_60559_BFP_EXT)]:
1155 Likewise.
1156 * sysdeps/alpha/fpu/bits/fenv.h [__GLIBC_USE (IEC_60559_BFP_EXT)]:
1157 Likewise.
1158 * sysdeps/arm/bits/fenv.h [__GLIBC_USE (IEC_60559_BFP_EXT)]:
1159 Likewise.
1160 * sysdeps/csky/bits/fenv.h [__GLIBC_USE (IEC_60559_BFP_EXT)]:
1161 Likewise.
1162 * sysdeps/hppa/fpu/bits/fenv.h [__GLIBC_USE (IEC_60559_BFP_EXT)]:
1163 Likewise.
1164 * sysdeps/ia64/bits/fenv.h [__GLIBC_USE (IEC_60559_BFP_EXT)]:
1165 Likewise.
1166 * sysdeps/m68k/bits/fenv.h [__GLIBC_USE (IEC_60559_BFP_EXT)]:
1167 Likewise.
1168 * sysdeps/microblaze/bits/fenv.h [__GLIBC_USE
1169 (IEC_60559_BFP_EXT)]: Likewise.
1170 * sysdeps/mips/bits/fenv.h [__GLIBC_USE (IEC_60559_BFP_EXT)]:
1171 Likewise.
1172 * sysdeps/nios2/bits/fenv.h [__GLIBC_USE (IEC_60559_BFP_EXT)]:
1173 Likewise.
1174 * sysdeps/powerpc/bits/fenv.h [__GLIBC_USE (IEC_60559_BFP_EXT)]:
1175 Likewise.
1176 * sysdeps/riscv/bits/fenv.h [__GLIBC_USE (IEC_60559_BFP_EXT)]:
1177 Likewise.
1178 * sysdeps/s390/fpu/bits/fenv.h [__GLIBC_USE (IEC_60559_BFP_EXT)]:
1179 Likewise.
1180 * sysdeps/sh/bits/fenv.h [__GLIBC_USE (IEC_60559_BFP_EXT)]:
1181 Likewise.
1182 * sysdeps/sparc/fpu/bits/fenv.h [__GLIBC_USE (IEC_60559_BFP_EXT)]:
1183 Likewise.
1184 * sysdeps/x86/fpu/bits/fenv.h [__GLIBC_USE (IEC_60559_BFP_EXT)]:
1185 Likewise.
1186 * math/bits/mathcalls.h [__GLIBC_USE (IEC_60559_BFP_EXT)]:
1187 Likewise, except for totalorder, totalordermag, getpayload,
1188 setpayload and setpayloadsig.
1189 * math/tgmath.h [__GLIBC_USE (IEC_60559_BFP_EXT)]: Likewise,
1190 except for totalorder and totalordermag.
1191
1192 * string/string.h (memccpy): Also declare if [__GLIBC_USE (ISOC2X)].
1193 (strdup): Likewise.
1194 (strndup): Likewise.
1195
1196 * include/features.h (_ISOC2X_SOURCE): New feature test macro.
1197 Undefine and define to 1 if [_GNU_SOURCE].
1198 (__GLIBC_USE_ISOC2X): New macro. Undefine and redefine depending
1199 on [_ISOC2X_SOURCE] and [__STDC_VERSION__ > 201710L].
1200 (__USE_ISOC11): Also define to 1 if [_ISOC2X_SOURCE].
1201 (__USE_ISOC99): Likewise.
1202 (__USE_ISOC95): Likewise.
1203 * manual/creature.texi (_ISOC2X_SOURCE): Document.
1204
1205 2019-08-13 Florian Weimer <fweimer@redhat.com>
1206
1207 * login/getutid_r.c (__getutid_r): _HAVE_UT_ID and _HAVE_UT_TYPE
1208 are always true.
1209 * login/getutmp.c (getutmp): _HAVE_UT_TYPE, _HAVE_UT_PID,
1210 _HAVE_UT_ID, _HAVE_UT_HOST, _HAVE_UT_TV are always true.
1211 * login/getutmpx.c (getutmpx): Likewise.
1212 * login/login.c (login): _HAVE_UT_TYPE, _HAVE_UT_PID are always
1213 true.
1214 * login/logout.c (logout): _HAVE_UT_TYPE, _HAVE_UT_HOST,
1215 _HAVE_UT_TV are always true.
1216 * login/logwtmp.c (logwtmp): _HAVE_UT_PID, _HAVE_UT_TYPE,
1217 _HAVE_UT_HOST, _HAVE_UT_TV are always true.
1218 * login/tst-utmp.c: _HAVE_UT_TYPE, _HAVE_UT_TV are always true.
1219 * login/utmp_file.c (__libc_setutent): _HAVE_UT_TYPE, _HAVE_UT_ID
1220 are always true.
1221 (internal_getut_r): _HAVE_UT_TYPE is always true.
1222 (__libc_pututline): Likewise.
1223 * login/programs/utmpdump.c (print_entry): Assume that
1224 _HAVE_UT_TYPE, _HAVE_UT_PID, _HAVE_UT_ID, _HAVE_UT_HOST,
1225 _HAVE_UT_TV are always true.
1226 * sysdeps/generic/utmp-equal.h (__utmp_equal): _HAVE_UT_TYPE,
1227 _HAVE_UT_ID are always true.
1228 * sysdeps/gnu/bits/utmp.h: Move to ...
1229 * bits/utmp.h: ... here, replacing the old file.
1230
1231 2019-08-12 Florian Weimer <fweimer@redhat.com>
1232
1233 * elf/Makefile (tests): Unconditionally add tst-dlopen-aout.
1234 [$(build-hardcoded-path-in-tests)] (tst-dlopen-aout-no-pie): Do
1235 not set.
1236 * elf/tst-dlopen-aout.c: Do not included <assert.h>.
1237 (do_test): Open the executable using an absolute path. Print
1238 error message to standard output.
1239
1240 2019-08-09 DJ Delorie <dj@redhat.com>
1241
1242 * elf/dl-tunables.list: Add glibc.malloc.mxfast.
1243 * manual/tunables.texi: Document it.
1244 * malloc/malloc.c (do_set_mxfast): New.
1245 (__libc_mallopt): Call it.
1246 * malloc/arena.c: Add mxfast tunable.
1247 * malloc/tst-mxfast.c: New.
1248 * malloc/Makefile: Add it.
1249
1250 2019-08-08 Niklas Hambüchen <mail@nh2.me>
1251 Carlos O'Donell <carlos@redhat.com>
1252
1253 [BZ #24026]
1254 * malloc/malloc.c (__malloc_info): Account for top chunk.
1255
1256 2019-08-07 Joseph Myers <joseph@codesourcery.com>
1257
1258 * sysdeps/unix/sysv/linux/bits/fcntl-linux.h [__USE_GNU]
1259 (SYNC_FILE_RANGE_WRITE_AND_WAIT): New macro.
1260
1261 2019-08-06 Joseph Myers <joseph@codesourcery.com>
1262
1263 * io/fcntl.h [__USE_GNU] (AT_RECURSIVE): New macro.
1264
1265 2019-07-02 Stefan Liebler <stli@linux.ibm.com>
1266
1267 * sysdeps/unix/sysv/linux/s390/init-first.c (VDSO_SETUP): New define.
1268
1269 2019-08-05 Joseph Myers <joseph@codesourcery.com>
1270
1271 * sysdeps/unix/sysv/linux/bits/sched.h [__USE_GNU] (CLONE_PIDFD):
1272 New macro.
1273
1274 2019-08-05 Adhemerval Zanella <adhemerval.zanella@linaro.org>
1275
1276 [BZ #19767]
1277 * sysdeps/unix/sysv/linux/aarch64/sysdep.h (ALWAYS_USE_VSYSCALL):
1278 Remove definition.
1279 * sysdeps/unix/sysv/linux/arm/sysdep.h (ALWAYS_USE_VSYSCALL):
1280 Likewise.
1281 * sysdeps/unix/sysv/linux/i386/sysdep.h (ALWAYS_USE_VSYSCALL):
1282 Likewise.
1283 * sysdeps/unix/sysv/linux/mips/mips32/sysdep.h (ALWAYS_USE_VSYSCALL):
1284 Likewise.
1285 * sysdeps/unix/sysv/linux/mips/mips64/n32/sysdep.h
1286 (ALWAYS_USE_VSYSCALL): Likewise.
1287 * sysdeps/unix/sysv/linux/mips/mips64/n64/sysdep.h
1288 (ALWAYS_USE_VSYSCALL): Likewise.
1289 * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h
1290 (ALWAYS_USE_VSYSCALL): Likewise.
1291 * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h
1292 (ALWAYS_USE_VSYSCALL): Likewise.
1293 * sysdeps/unix/sysv/linux/riscv/sysdep.h (ALWAYS_USE_VSYSCALL):
1294 Likewise.
1295 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h
1296 (ALWAYS_USE_VSYSCALL): Likewise.
1297 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h
1298 (ALWAYS_USE_VSYSCALL): Likewise.
1299 * sysdeps/unix/sysv/linux/sparc/sysdep.h (ALWAYS_USE_VSYSCALL):
1300 Likewise.
1301 * sysdeps/unix/sysv/linux/x86_64/sysdep.h (ALWAYS_USE_VSYSCALL):
1302 Likewise.
1303 * sysdeps/unix/sysv/linux/x86/libc-vdso.h: Remove #if USE_VSYSCALL.
1304 * sysdeps/unix/sysv/linux/sysdep-vdso.h: Likewise.
1305 * sysdeps/unix/sysv/linux/sysdep.h (ALWAYS_USE_VSYSCALL,
1306 USE_VSYSCALL): Remove defitions.
1307
1308 [BZ #19767]
1309 * sysdeps/unix/sysv/linux/sparc/init-first.c: Remove #ifdef SHARED.
1310 * sysdeps/unix/sysv/linux/sparc/libc-vdso.h: Likewise.
1311 * sysdeps/unix/sysv/linux/sparc/sysdep.h (ALWAYS_USE_VSYSCALL):
1312 Define.
1313
1314 [BZ #19767]
1315 * sysdeps/unix/sysv/linux/s390/init-first.c: Remove #ifdef SHARED.
1316 * sysdeps/unix/sysv/linux/s390/libc-vdso.h: Likewise.
1317 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h
1318 (ALWAYS_USE_VSYSCALL): Define.
1319 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h
1320 (ALWAYS_USE_VSYSCALL): Likewise.
1321
1322 [BZ #19767]
1323 * sysdeps/unix/sysv/linux/riscv/init-first.c: Remove #ifdef SHARED.
1324 * sysdeps/unix/sysv/linux/riscv/libc-vdso.h: Likewise.
1325 * sysdeps/unix/sysv/linux/riscv/sysdep.h (ALWAYS_USE_VSYSCALL):
1326 Define.
1327
1328 * sysdeps/sh/libm-test-ulps: Update.
1329
1330 2019-08-05 Florian Weimer <fweimer@redhat.com>
1331
1332 [BZ #23518]
1333 * login/uptmp-private.h (struct ufuncs): Remove definition.
1334 (__libc_utmp_file_functions, __libc_utmp_unknown_functions)
1335 (__libc_utmp_jump_table): Remove declarations.
1336 (__libc_setutent, __libc_getutent_r, __libc_getutid_r)
1337 (__libc_getutline_r, __libc_pututline, __libc_endutent)
1338 (__libc_updwtmp): Declare.
1339 * login/getutent_r.c (__libc_utmp_unknown_functions)
1340 (__libc_utmp_jump_table, setutent_unknown, getutent_r_unknown)
1341 (getutid_r_unknown, getutline_r_unknown, pututline_unknown)
1342 (endutent_unknown): Remove definitions.
1343 (__setutent): Call __libc_setutent.
1344 (__getutent_r): Call __libc_getutent_r.
1345 (__pututline): Call __libc_pututline.
1346 (__endutent): Call __libc_endutent.
1347 * login/getutid_r.c (__getutid_r): Call __libc_getutid_r.
1348 * login/getutline_r.c (__getutline_r): Call __libc_getutline_r.
1349 * login/updwtmp.c (__updwtmp): Call __libc_updwtmp.
1350 * login/utmp_file.c (__libc_utmp_file_functions): Remove definition
1351 (__libc_setutent): Rename from stetutent_file. Drop static.
1352 (maybe_setutent): New function.
1353 (__libc_getutent_r): Rename from getutent_r_file. Drop static.
1354 Check for initialization.
1355 (__libc_getutid_r): Rename from getutid_r_file. Drop static.
1356 Check for initialization.
1357 (__libc_getutline_r): Rename from getutline_r_file. Drop static.
1358 Check for initialization.
1359 (__libc_pututline): Rename from pututline_file. Drop static.
1360 Check for initialization.
1361 (__libc_endutent): Rename from endutent_file. Drop static. Check
1362 for initialization.
1363 (__libc_updwtmp): Rename from updwtmp_file. Drop static.
1364 * login/utmpname.c (__utmpname): Call __libc_endutent.
1365 * sysdeps/unix/getlogin_r (__getlogin_r): Call __libc_setutent,
1366 __libc_getutlien_r, __libc_endutent.
1367 * manual/users.texi (Who Logged In, Manipulating the Database):
1368 Adjust.
1369
1370 2019-08-05 Alexandra Hájková <ahajkova@redhat.com>
1371
1372 * elf/tst-ldconfig-bad-aux-cache.c: Use support_capture_subprocess.
1373
1374 2019-08-02 Joseph Myers <joseph@codesourcery.com>
1375
1376 * sysdeps/unix/sysv/linux/syscall-names.list: Update comment.
1377
1378 * sysdeps/unix/sysv/linux/tst-mman-consts.py (main): Update Linux
1379 kernel version number to 5.2.
1380
1381 2019-08-01 Raoni Fassina Firmino <raoni@linux.ibm.com>
1382
1383 * sysdeps/powerpc/powerpc64/power8/memchr.S: Update power8
1384 mnemonics and set .machine power8.
1385 * sysdeps/powerpc/powerpc64/power8/memcmp.S: Likewise.
1386 * sysdeps/powerpc/powerpc64/power8/memrchr.S: Likewise.
1387 * sysdeps/powerpc/powerpc64/power8/memset.S: Likewise.
1388 * sysdeps/powerpc/powerpc64/power8/strchr.S: Likewise.
1389 * sysdeps/powerpc/powerpc64/power8/strlen.S: Likewise.
1390 * sysdeps/powerpc/powerpc64/power8/strncmp.S: Likewise.
1391 * sysdeps/powerpc/powerpc64/power8/strncpy.S: Likewise.
1392 * sysdeps/powerpc/powerpc64/power8/strnlen.S: Likewise.
1393 * sysdeps/powerpc/powerpc64/power8/strrchr.S: Likewise.
1394 * sysdeps/powerpc/powerpc64/power8/strspn.S: Likewise.
1395
1396 2019-08-01 Adhemerval Zanella <adhemerval.zanella@linaro.org>
1397
1398 * sysdeps/hppa/fpu/libm-test-ulps: Update.
1399
1400 2019-08-01 Florian Weimer <fweimer@redhat.com>
1401
1402 [BZ #24867]
1403 * malloc/malloc.c (__malloc_info): Remove unwanted leading
1404 whitespace.
1405
1406 2019-08-01 Adhemerval Zanella <adhemerval.zanella@linaro.org>
1407
1408 [BZ #15813]
1409 sysdeps/posix/tempname.c (__gen_tempname): get entropy on each
1410 attempt.
1411
1412 2019-08-01 Carlos O'Donell <carlos@redhat.com>
1413
1414 * version.h (RELEASE): Set to "stable".
1415 (VERSION): Set to "2.30".
1416 * include/features.h (__GLIBC_MINOR__): Set to 2.30.
1417
1418 * manual/install.texi: Update component versions.
1419 * INSTALL: Regenerate.
1420 * NEWS: Update.
1421
1422 2019-07-31 Carlos O'Donell <carlos@redhat.com>
1423
1424 * po/be.po: Update translations.
1425 * po/bg.po: Likewise.
1426 * po/ca.po: Likewise.
1427 * po/cs.po: Likewise.
1428 * po/da.po: Likewise.
1429 * po/de.po: Likewise.
1430 * po/el.po: Likewise.
1431 * po/eo.po: Likewise.
1432 * po/es.po: Likewise.
1433 * po/fi.po: Likewise.
1434 * po/fr.po: Likewise.
1435 * po/gl.po: Likewise.
1436 * po/hr.po: Likewise.
1437 * po/hu.po: Likewise.
1438 * po/ia.po: Likewise.
1439 * po/id.po: Likewise.
1440 * po/it.po: Likewise.
1441 * po/ja.po: Likewise.
1442 * po/ko.po: Likewise.
1443 * po/lt.po: Likewise.
1444 * po/nb.po: Likewise.
1445 * po/nl.po: Likewise.
1446 * po/pl.po: Likewise.
1447 * po/pt_BR.po: Likewise.
1448 * po/ru.po: Likewise.
1449 * po/rw.po: Likewise.
1450 * po/sk.po: Likewise.
1451 * po/sl.po: Likewise.
1452 * po/sv.po: Likewise.
1453 * po/tr.po: Likewise.
1454 * po/uk.po: Likewise.
1455 * po/vi.po: Likewise.
1456 * po/zh_CN.po: Likewise.
1457 * po/zh_TW.po: Likewise.
1458
1459 2019-07-31 Florian Weimer <fweimer@redhat.com>
1460
1461 [BZ #24583]
1462 [BZ #24677]
1463 iconv, libio: Revert reference counting changes.
1464 * iconv/gconv_cache.c (__gconv_release_cache): Unconditionally
1465 free the steps array.
1466 * libio/Makefile (tests): Remove tst-wfile-gconv.
1467 (tests-container): Do not add tst-wfile-ascii.
1468 (tst-wfile-gconv-ENV): Do not set.
1469 (generated): Do not add tst-wfile-gconv.mtrace,
1470 tst-wfile-gconv.check.
1471 [($run-built-tests)] (tests-special): Do not add
1472 tst-wfile-gconv-mem.out.
1473 (tst-wfile-gconv.out, tst-wfile-gconv-mem.out): Remove targets.
1474 * libio/iofclose.c (_IO_new_fclose): Call __gconv_release_step
1475 instead of __wcsmbs_clone_conv.
1476 * wcsmbs/wcsmbsload.c (__wcsmbs_clone_conv): Remove definition.
1477 * wcsmbs/wcsmbsload.h (__wcsmbs_clone_conv): Remove declaration.
1478
1479 2019-07-30 Joseph Myers <joseph@codesourcery.com>
1480
1481 * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S
1482 (__CONTEXT_FUNC_NAME): Restore setting of r31.
1483
1484 2019-07-30 Florian Weimer <fweimer@redhat.com>
1485
1486 * nptl/tst-pthread-getattr.c (allocate_and_test): Change return
1487 type to uintptr_t. Update comment.
1488 (check_stack_top): Adjust.
1489
1490 2019-07-29 Florian Weimer <fweimer@redhat.com>
1491
1492 Linux: Move declaration of getdents64 to <dirent.h>.
1493 * bits/dirent_ext.h: New file.
1494 * dirent/Makefile (headers): Add bits/dirent_ext.h.
1495 * dirent/dirent.h: Include <bits/dirent_ext.h>.
1496 * sysdeps/unix/sysv/linux/bits/dirent_ext.h: New file.
1497 * sysdeps/unix/sysv/linux/bits/unistd_ext.h (getdents64): Remove
1498 declaration.
1499 * manual/filesys.texi (Low-level Directory Access): Update header
1500 to dirent.h.
1501
1502 2019-07-29 DJ Delorie <dj@redhat.com>
1503 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
1504
1505 [BZ #24794]
1506 * Makeconfig (all-subdirs): Improved source comments.
1507 * Makefile (testroot.pristine/install.stamp): Pass
1508 subdirs='$(sorted-subdirs)' to make install.
1509
1510 2019-07-25 Florian Weimer <fweimer@redhat.com>
1511
1512 [BZ #24677]
1513 * iconv/gconv_cache.c (__gconv_release_cache): Check reference
1514 counter before freeing array.
1515
1516 2019-07-24 H.J. Lu <hongjiu.lu@intel.com>
1517
1518 [BZ #24603]
1519 * sysdeps/x86_64/configure.ac: Check if -mprefer-vector-width=128
1520 works.
1521 * sysdeps/x86_64/configure: Regenerated.
1522 * sysdeps/x86_64/fpu/Makefile (CFLAGS-branred.c): New. Set
1523 to -mprefer-vector-width=128 if supported.
1524
1525 2019-07-24 Florian Weimer <fweimer@redhat.com>
1526
1527 * scripts/build-many-glibcs.py (Context.checkout): Default to
1528 Linux 5.2.
1529
1530 2019-07-24 Florian Weimer <fweimer@redhat.com>
1531
1532 [BZ #24532]
1533 Linux: Use in-tree copy of SO_ constants for !__USE_MISC.
1534 * sysdeps/unix/sysv/linux/Makefile [$(subdir) == socket]
1535 (sysdep_headers): Add bits/socket-constants.h.
1536 (tests-special): Add tst-socket-consts.out.
1537 (tst-socket-consts.out): New target.
1538 * sysdeps/unix/sysv/linux/bits/socket.h: Remove macro tracking
1539 around <asm/unistd.h>.
1540 [__USE_MISC]: Include <bits/types/time_t.h> before <asm/socket.h>.
1541 [!__USE_MISC]: Include <sys/socket-constants.h> instead of
1542 <asm/socket.h>.
1543 * sysdeps/unix/sysv/linux/bits/tst-socket-consts.py: New file.
1544 * sysdeps/unix/sysv/linux/bits/socket-constants.h: Likewise.
1545 * sysdeps/unix/sysv/linux/alpha/bits/socket-constants.h: Likewise.
1546 * sysdeps/unix/sysv/linux/hppa/bits/socket-constants.h: Likewise.
1547 * sysdeps/unix/sysv/linux/mips/bits/socket-constants.h: Likewise.
1548 * sysdeps/unix/sysv/linux/powerpc/bits/socket-constants.h:
1549 Likewise.
1550 * sysdeps/unix/sysv/linux/sparc/bits/socket-constants.h: Likewise.
1551
1552 2019-07-23 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
1553
1554 [BZ #24794]
1555 * Makefile (testroot.pristine/install.stamp): Pass
1556 subdirs='$(all-subdirs)' to make install.
1557
1558 * Makefile (testroot.pristine/install.stamp): Execute ld.so with
1559 the same arguments used in all tests.
1560
1561 2019-07-22 Szabolcs Nagy <szabolcs.nagy@arm.com>
1562
1563 * NEWS: Mention the AArch64 IFUNC resolver ABI change.
1564
1565 2019-07-20 Egor Kobylkin <egor@kobylkin.com>
1566
1567 [BZ #2872]
1568 * locale/C-translit.h.in: Add Cyrillic transliteration.
1569
1570 2019-07-19 Florian Weimer <fweimer@redhat.com>
1571
1572 * sysdeps/unix/sysv/linux/syscall-names.list: Add system calls
1573 from Linux 5.2.
1574 (fsconfig): Add system call name.
1575 (fsmount): Likewise.
1576 (fsopen): Likewise.
1577 (fspick): Likewise.
1578 (move_mount): Likewise.
1579 (open_tree): Likewise.
1580
1581 2019-07-18 Carlos O'Donell <carlos@redhat.com>
1582
1583 * po/libc.pot: Regenerate.
1584
1585 2019-07-18 Mike Crowe <mac@mcrowe.com>
1586
1587 * sysdeps/unix/sysv/linux/hppa/pthread.h: Add declarations of
1588 functions recently added to sysdeps/nptl/pthread.h:
1589 pthread_mutex_clocklock, pthread_rwlock_clockrdlock,
1590 pthread_rwlock_clockwrlock and pthread_cond_clockwait.
1591
1592 * nptl/forward.c: Remove unnecessary __pthread_cond_clockwait and
1593 pthread_cond_clockwait forwarding functions. There are no internal
1594 users, so it is unnecessary to expose these functions in libc.so.
1595 * sysdeps/nptl/pthread-functions.h (pthread_functions): Remove
1596 unnecessary ptr___pthread_cond_clockwait member.
1597 * nptl/nptl-init.c (pthread_functions): Remove assignment of
1598 removed member.
1599
1600 2019-07-17 Rafał Lużyński <digitalfreak@lingonborough.com>
1601
1602 [BZ #21897]
1603 * localedata/locales/aa_DJ (abday): Update from CLDR, all words
1604 begin with an uppercase letter now.
1605 (abmon): Likewise.
1606 (mon): Update from CLDR, reword February from "Kudo" to
1607 "Naharsi Kudo", April from "Agda Baxisso" to "Agda Baxis",
1608 and August from "Liiqen" to "Leqeeni".
1609 * localedata/locales/aa_ER (mon): Update from CLDR, reword
1610 April from "Agda Baxisso" to "Agda Baxis" and August from
1611 "Leqeeni" to "Liiqen".
1612 * localedata/locales/aa_ER@saaho (mon): Likewise.
1613 * localedata/locales/aa_ET (abmon): Update from CLDR, reword
1614 abbreviated February from "Kud" to "Nah".
1615 (mon): Update from CLDR, reword February from "Kudo" to
1616 "Naharsi Kudo" and April from "Agda Baxisso" to "Agda Baxis".
1617
1618 2019-07-17 Rafał Lużyński <digitalfreak@lingonborough.com>
1619
1620 [BZ #23996]
1621 * localedata/locales/nl_BE (LC_NAME): Replace with “copy "nl_NL"”.
1622
1623 2019-07-17 PanderMusubi <pander@users.sourceforge.net>
1624
1625 [BZ #23996]
1626 * localedata/locales/nl_BE (LC_NAME): Add name_gen, name_mr,
1627 name_mrs, name_miss, and name_ms.
1628 * localedata/locales/nl_NL (LC_NAME): Likewise.
1629
1630 2019-07-17 Daniil Zhilin <generalfailer@protonmail.com>
1631
1632 [BZ #24200]
1633 * localedata/locales/ga_IE (first_weekday): Add, set to 2 (Monday).
1634 * localedata/locales/en_IE (first_weekday): Likewise.
1635
1636 2019-07-12 Mike Crowe <mac@mcrowe.com>
1637
1638 * nptl/pthread_cond_wait.c: (__pthread_cond_clockwait): Remove code
1639 that is only useful if futex_supports_exact_relative_timeouts ()
1640 returns false.
1641 * nptl/pthread_condattr_setclock.c: (pthread_condattr_setclock):
1642 Likewise.
1643 * sysdeps/nptl/futex-internal.h: Remove comment about relative
1644 timeouts potentially being imprecise since it's no longer true.
1645 Remove declaration of futex_supports_exact_relative_timeouts.
1646 * sysdeps/unix/sysv/linux/futex-internal.h: Remove implementation
1647 of futex_supports_exact_relative_timeouts.
1648
1649 * NEWS: Mention recently-added pthread_cond_clockwait,
1650 pthread_rwlock_clockrdlock, pthread_rwlock_clockwrlock and
1651 sem_clockwait functions.
1652
1653 nptl: Add POSIX-proposed pthread_mutex_clocklock function that
1654 works like pthread_mutex_timedlock but takes a clockid parameter to
1655 measure the abstime parameter against.
1656 * sysdeps/nptl/pthread.h: Add pthread_mutex_clocklock.
1657 * nptl/DESIGN-systemtap-probes.txt: Likewise.
1658 * nptl/pthread_mutex_timedlock.c
1659 (__pthread_mutex_clocklock_common): Rename from
1660 __pthread_mutex_timedlock and add clockid parameter. Pass this
1661 parameter to lll_clocklock and lll_clocklock_elision in place of
1662 CLOCK_REALTIME. (__pthread_mutex_clocklock): New function to add
1663 LIBC_PROBE and validate clockid parameter before calling
1664 __pthread_mutex_clocklock_common. (__pthread_mutex_timedlock): New
1665 implementation to add LIBC_PROBE and calls
1666 __pthread_mutex_clocklock_common passing CLOCK_REALTIME as the
1667 clockid.
1668 * nptl/Makefile: Add tst-mutex11.c.
1669 * nptl/tst-abstime.c (th): Add tests for pthread_mutex_clocklock.
1670 * nptl/tst-mutex11.c: New tests for passing invalid and unsupported
1671 clockid parameters to pthread_mutex_clocklock.
1672 * nptl/tst-mutex5.c (do_test_clock): Rename from do_test and take
1673 clockid parameter to indicate which clock to be used. Call
1674 pthread_mutex_timedlock or pthread_mutex_clocklock as appropriate.
1675 (do_test): Call do_test_clock to separately test
1676 pthread_mutex_timedlock, pthread_mutex_clocklock(CLOCK_REALTIME)
1677 and pthread_mutex_clocklock(CLOCK_MONOTONIC).
1678 * nptl/tst-mutex9.c: Likewise.
1679 * nptl/Versions (GLIBC_2.30): Add pthread_mutex_clocklock.
1680 * sysdeps/unix/sysv/linux/aarch64/libpthread.abilist (GLIBC_2.30):
1681 Likewise.
1682 * sysdeps/unix/sysv/linux/alpha/libpthread.abilist (GLIBC_2.30):
1683 Likewise.
1684 * sysdeps/unix/sysv/linux/arm/libpthread.abilist (GLIBC_2.30):
1685 Likewise.
1686 * sysdeps/unix/sysv/linux/csky/libpthread.abilist (GLIBC_2.30):
1687 Likewise.
1688 * sysdeps/unix/sysv/linux/hppa/libpthread.abilist (GLIBC_2.30):
1689 Likewise.
1690 * sysdeps/unix/sysv/linux/i386/libpthread.abilist (GLIBC_2.30):
1691 Likewise.
1692 * sysdeps/unix/sysv/linux/ia64/libpthread.abilist (GLIBC_2.30):
1693 Likewise.
1694 * sysdeps/unix/sysv/linux/m68k/coldfire/libpthread.abilist
1695 (GLIBC_2.30): Likewise.
1696 * sysdeps/unix/sysv/linux/m68k/m680x0/libpthread.abilist
1697 (GLIBC_2.30): Likewise.
1698 * sysdeps/unix/sysv/linux/microblaze/libpthread.abilist
1699 (GLIBC_2.30): Likewise.
1700 * sysdeps/unix/sysv/linux/mips/mips32/libpthread.abilist
1701 (GLIBC_2.30): Likewise.
1702 * sysdeps/unix/sysv/linux/mips/mips64/libpthread.abilist
1703 (GLIBC_2.30): Likewise.
1704 * sysdeps/unix/sysv/linux/nios2/libpthread.abilist (GLIBC_2.30):
1705 Likewise.
1706 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libpthread.abilist
1707 (GLIBC_2.30): Likewise.
1708 * sysdeps/unix/sysv/linux/powerpc/powerpc64/be/libpthread.abilist
1709 (GLIBC_2.30): Likewise.
1710 * sysdeps/unix/sysv/linux/powerpc/powerpc64/le/libpthread.abilist
1711 (GLIBC_2.30): Likewise.
1712 * sysdeps/unix/sysv/linux/riscv/rv64/libpthread.abilist
1713 (GLIBC_2.30): Likewise.
1714 * sysdeps/unix/sysv/linux/s390/s390-32/libpthread.abilist
1715 (GLIBC_2.30): Likewise.
1716 * sysdeps/unix/sysv/linux/s390/s390-64/libpthread.abilist
1717 (GLIBC_2.30): Likewise.
1718 * sysdeps/unix/sysv/linux/sh/libpthread.abilist (GLIBC_2.30):
1719 Likewise.
1720 * sysdeps/unix/sysv/linux/sparc/sparc32/libpthread.abilist
1721 (GLIBC_2.30): Likewise.
1722 * sysdeps/unix/sysv/linux/sparc/sparc64/libpthread.abilist
1723 (GLIBC_2.30): Likewise.
1724 * sysdeps/unix/sysv/linux/x86_64/64/libpthread.abilist
1725 (GLIBC_2.30): Likewise.
1726 * sysdeps/unix/sysv/linux/x86_64/x32/libpthread.abilist
1727 (GLIBC_2.30): Likewise.
1728
1729 nptl: Rename lll_timedlock to lll_clocklock and add clockid
1730 parameter to indicate the clock that the abstime parameter should
1731 be measured against in preparation for adding
1732 pthread_mutex_clocklock.
1733 * sysdeps/nptl/lowlevellock.h (lll_clocklock): Rename from
1734 lll_timedlock and add clockid parameter. (__lll_clocklock): Rename
1735 from __lll_timedlock and add clockid parameter.
1736 * sysdeps/unix/sysv/linux/sparc/lowlevellock.h (lll_clocklock):
1737 Likewise.
1738 * nptl/lll_timedlock_wait.c (__lll_clocklock_wait): Rename from
1739 __lll_timedlock_wait and add clockid parameter. Use __clock_gettime
1740 rather than __gettimeofday so that clockid can be used. This means
1741 that conversion from struct timeval is no longer required.
1742 * sysdeps/sparc/sparc32/lowlevellock.c (lll_clocklock_wait):
1743 Likewise.
1744 * sysdeps/sparc/sparc32/lll_timedlock_wait.c: Update comment to
1745 refer to __lll_clocklock_wait rather than __lll_timedlock_wait.
1746 * nptl/pthread_mutex_timedlock.c (lll_clocklock_elision): Rename
1747 from lll_timedlock_elision, add clockid parameter and use
1748 meaningful names for other parameters. (__pthread_mutex_timedlock):
1749 Pass CLOCK_REALTIME where necessary to lll_clocklock and
1750 lll_clocklock_elision.
1751 * sysdeps/unix/sysv/linux/powerpc/lowlevellock.h
1752 (lll_clocklock_elision): Rename from lll_timedlock_elision and add
1753 clockid parameter. (__lll_clocklock_elision): Rename from
1754 __lll_timedlock_elision and add clockid parameter.
1755 * sysdeps/unix/sysv/linux/s390/lowlevellock.h: Likewise.
1756 * sysdeps/unix/sysv/linux/x86/lowlevellock.h: Likewise.
1757 * sysdeps/unix/sysv/linux/powerpc/elision-timed.c
1758 (__lll_lock_elision): Call __lll_clocklock_elision rather than
1759 __lll_timedlock_elision. (EXTRAARG): Add clockid parameter.
1760 (LLL_LOCK): Likewise.
1761 * sysdeps/unix/sysv/linux/s390/elision-timed.c: Likewise.
1762 * sysdeps/unix/sysv/linux/x86/elision-timed.c: Likewise.
1763
1764 nptl: Add POSIX-proposed pthread_rwlock_clockrdlock &
1765 pthread_rwlock_clockwrlock which behave like
1766 pthread_rwlock_timedrdlock and pthread_rwlock_timedwrlock
1767 respectively, except they always measure abstime against the
1768 supplied clockid. The functions currently support CLOCK_REALTIME
1769 and CLOCK_MONOTONIC and return EINVAL if any other clock is
1770 specified.
1771 * sysdeps/nptl/pthread.h: Add pthread_rwlock_clockrdlock and
1772 pthread_wrlock_clockwrlock.
1773 * nptl/Makefile: Build pthread_rwlock_clockrdlock.c and
1774 pthread_rwlock_clockwrlock.c.
1775 * nptl/pthread_rwlock_clockrdlock.c: Implement
1776 pthread_rwlock_clockrdlock.
1777 * nptl/pthread_rwlock_clockwrlock.c: Implement
1778 pthread_rwlock_clockwrlock.
1779 * nptl/pthread_rwlock_common.c (__pthread_rwlock_rdlock_full): Add
1780 clockid parameter and verify that it indicates a supported clock on
1781 entry so that we fail even if it doesn't end up being used. Pass
1782 that clock on to futex_abstimed_wait when necessary.
1783 (__pthread_rwlock_wrlock_full): Likewise.
1784 * nptl/pthread_rwlock_rdlock.c: (__pthread_rwlock_rdlock): Pass
1785 CLOCK_REALTIME to __pthread_rwlock_rdlock_full even though it won't
1786 be used because there's no timeout.
1787 * nptl/pthread_rwlock_wrlock.c (__pthread_rwlock_wrlock): Pass
1788 CLOCK_REALTIME to __pthread_rwlock_wrlock_full even though it won't
1789 be used because there is no timeout.
1790 * nptl/pthread_rwlock_timedrdlock.c (pthread_rwlock_timedrdlock):
1791 Pass CLOCK_REALTIME to __pthread_rwlock_rdlock_full since abstime
1792 uses that clock.
1793 * nptl/pthread_rwlock_timedwrlock.c (pthread_rwlock_timedwrlock):
1794 Pass CLOCK_REALTIME to __pthread_rwlock_wrlock_full since abstime
1795 uses that clock.
1796 * sysdeps/unix/sysv/linux/aarch64/libpthread.abilist (GLIBC_2.30): Likewise.
1797 * sysdeps/unix/sysv/linux/alpha/libpthread.abilist (GLIBC_2.30): Likewise.
1798 * sysdeps/unix/sysv/linux/arm/libpthread.abilist (GLIBC_2.30): Likewise.
1799 * sysdeps/unix/sysv/linux/csky/libpthread.abilist (GLIBC_2.30): Likewise.
1800 * sysdeps/unix/sysv/linux/hppa/libpthread.abilist (GLIBC_2.30): Likewise.
1801 * sysdeps/unix/sysv/linux/i386/libpthread.abilist (GLIBC_2.30): Likewise.
1802 * sysdeps/unix/sysv/linux/ia64/libpthread.abilist (GLIBC_2.30): Likewise.
1803 * sysdeps/unix/sysv/linux/m68k/coldfire/libpthread.abilist
1804 (GLIBC_2.30): Likewise.
1805 * sysdeps/unix/sysv/linux/m68k/m680x0/libpthread.abilist
1806 (GLIBC_2.30): Likewise.
1807 * sysdeps/unix/sysv/linux/microblaze/libpthread.abilist
1808 (GLIBC_2.30): Likewise.
1809 * sysdeps/unix/sysv/linux/mips/mips32/libpthread.abilist
1810 (GLIBC_2.30): Likewise.
1811 * sysdeps/unix/sysv/linux/mips/mips64/libpthread.abilist
1812 (GLIBC_2.30): Likewise.
1813 * sysdeps/unix/sysv/linux/nios2/libpthread.abilist (GLIBC_2.30): Likewise.
1814 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libpthread.abilist
1815 (GLIBC_2.30): Likewise.
1816 * sysdeps/unix/sysv/linux/powerpc/powerpc64/be/libpthread.abilist
1817 (GLIBC_2.30): Likewise.
1818 * sysdeps/unix/sysv/linux/powerpc/powerpc64/le/libpthread.abilist
1819 (GLIBC_2.30): Likewise.
1820 * sysdeps/unix/sysv/linux/riscv/rv64/libpthread.abilist
1821 (GLIBC_2.30): Likewise.
1822 * sysdeps/unix/sysv/linux/s390/s390-32/libpthread.abilist
1823 (GLIBC_2.30): Likewise.
1824 * sysdeps/unix/sysv/linux/s390/s390-64/libpthread.abilist
1825 (GLIBC_2.30): Likewise.
1826 * sysdeps/unix/sysv/linux/sh/libpthread.abilist (GLIBC_2.30): Likewise.
1827 * sysdeps/unix/sysv/linux/sparc/sparc32/libpthread.abilist
1828 (GLIBC_2.30): Likewise.
1829 * sysdeps/unix/sysv/linux/sparc/sparc64/libpthread.abilist
1830 (GLIBC_2.30): Likewise.
1831 * sysdeps/unix/sysv/linux/x86_64/64/libpthread.abilist
1832 (GLIBC_2.30): Likewise.
1833 * sysdeps/unix/sysv/linux/x86_64/x32/libpthread.abilist
1834 (GLIBC_2.30): Likewise.
1835 * nptl/tst-abstime.c (th): Add pthread_rwlock_clockrdlock and
1836 pthread_rwlock_clockwrlock timeout tests to match the existing
1837 pthread_rwlock_timedrdloock and pthread_rwlock_timedwrlock tests.
1838 * nptl/tst-rwlock14.c (do_test): Likewise.
1839 * nptl/tst-rwlock6.c Invent verbose_printf macro, and use for
1840 ancillary output throughout. (tf): Accept thread_args structure so
1841 that rwlock, a clockid and function name can be passed to the
1842 thread. (do_test_clock): Rename from do_test. Accept clockid
1843 parameter to specify test clock. Use the magic clockid value of
1844 CLOCK_USE_TIMEDLOCK to indicate that pthread_rwlock_timedrdlock and
1845 pthread_rwlock_timedwrlock should be tested, otherwise pass the
1846 specified clockid to pthread_rwlock_clockrdlock and
1847 pthread_rwlock_clockwrlock. Use xpthread_create and xpthread_join.
1848 (do_test): Call do_test_clock to test each clockid in turn.
1849 * nptl/tst-rwlock7.c: Likewise.
1850 * nptl/tst-rwlock9.c (writer_thread, reader_thread): Accept
1851 thread_args structure so that the (now int) thread number, the
1852 clockid and the function name can be passed to the thread.
1853 (do_test_clock): Renamed from do_test. Pass the necessary
1854 thread_args when creating the reader and writer threads. Use
1855 xpthread_create and xpthread_join.
1856 (do_test): Call do_test_clock to test each clockid in turn.
1857 * manual/threads.texi: Add documentation for
1858 pthread_rwlock_clockrdlock and pthread_rwlock_clockwrclock.
1859
1860 nptl: pthread_rwlock: Move timeout validation into _full functions
1861 * nptl/pthread_rwlock_common.c (__pthread_rwlock_rdlock_full):
1862 Check validity of abstime parameter.
1863 (__pthread_rwlock_rwlock_full): Likewise.
1864 * nptl/pthread_rwlock_timedrdlock.c (pthread_rwlock_timedrdlock):
1865 Remove check for validity of abstime parameter.
1866 * nptl/pthread_rwlock_timedwrlock.c (pthread_rwlock_timedwrlock):
1867 Likewise.
1868
1869 nptl: Add POSIX-proposed pthread_cond_clockwait which behaves just
1870 like pthread_cond_timedwait except it always measures abstime
1871 against the supplied clockid.
1872 * nptl/Makefile: Add tst-cond26 and tst-cond27
1873 * nptl/Versions (GLIBC_2.30): Add pthread_cond_clockwait
1874 * sysdeps/nptl/pthread.h: Likewise
1875 * nptl/forward.c: Add __pthread_cond_clockwait
1876 * nptl/forward.c: Likewise
1877 * nptl/pthreadP.h: Likewise
1878 * sysdeps/nptl/pthread-functions.h: Likewise
1879 * nptl/pthread_cond_wait.c (__pthread_cond_wait_common): Add
1880 clockid parameter and comment describing why we don't need to check
1881 its value. Use that value when calling
1882 futex_abstimed_wait_cancelable rather than reading the clock from
1883 the flags. (__pthread_cond_wait): Pass unused clockid parameter.
1884 (__pthread_cond_timedwait): Read clock from flags and pass it to
1885 __pthread_cond_wait_common. (__pthread_cond_clockwait): Add new
1886 function with weak alias from pthread_cond_clockwait.
1887 * sysdeps/unix/sysv/linux/aarch64/libpthread.abilist (GLIBC_2.30): Likewise.
1888 * sysdeps/unix/sysv/linux/alpha/libpthread.abilist (GLIBC_2.30): Likewise.
1889 * sysdeps/unix/sysv/linux/arm/libpthread.abilist (GLIBC_2.30): Likewise.
1890 * sysdeps/unix/sysv/linux/csky/libpthread.abilist (GLIBC_2.30): Likewise.
1891 * sysdeps/unix/sysv/linux/hppa/libpthread.abilist (GLIBC_2.30): Likewise.
1892 * sysdeps/unix/sysv/linux/i386/libpthread.abilist (GLIBC_2.30): Likewise.
1893 * sysdeps/unix/sysv/linux/ia64/libpthread.abilist (GLIBC_2.30): Likewise.
1894 * sysdeps/unix/sysv/linux/m68k/coldfire/libpthread.abilist
1895 (GLIBC_2.30): Likewise.
1896 * sysdeps/unix/sysv/linux/m68k/m680x0/libpthread.abilist
1897 (GLIBC_2.30): Likewise.
1898 * sysdeps/unix/sysv/linux/microblaze/libpthread.abilist
1899 (GLIBC_2.30): Likewise.
1900 * sysdeps/unix/sysv/linux/mips/mips32/libpthread.abilist
1901 (GLIBC_2.30): Likewise.
1902 * sysdeps/unix/sysv/linux/mips/mips64/libpthread.abilist
1903 (GLIBC_2.30): Likewise.
1904 * sysdeps/unix/sysv/linux/nios2/libpthread.abilist (GLIBC_2.30): Likewise.
1905 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libpthread.abilist
1906 (GLIBC_2.30): Likewise.
1907 * sysdeps/unix/sysv/linux/powerpc/powerpc64/be/libpthread.abilist
1908 (GLIBC_2.30): Likewise.
1909 * sysdeps/unix/sysv/linux/powerpc/powerpc64/le/libpthread.abilist
1910 (GLIBC_2.30): Likewise.
1911 * sysdeps/unix/sysv/linux/riscv/rv64/libpthread.abilist
1912 (GLIBC_2.30): Likewise.
1913 * sysdeps/unix/sysv/linux/s390/s390-32/libpthread.abilist
1914 (GLIBC_2.30): Likewise.
1915 * sysdeps/unix/sysv/linux/s390/s390-64/libpthread.abilist
1916 (GLIBC_2.30): Likewise.
1917 * sysdeps/unix/sysv/linux/sh/libpthread.abilist (GLIBC_2.30): Likewise.
1918 * sysdeps/unix/sysv/linux/sparc/sparc32/libpthread.abilist
1919 (GLIBC_2.30): Likewise.
1920 * sysdeps/unix/sysv/linux/sparc/sparc64/libpthread.abilist
1921 (GLIBC_2.30): Likewise.
1922 * sysdeps/unix/sysv/linux/x86_64/64/libpthread.abilist
1923 (GLIBC_2.30): Likewise.
1924 * sysdeps/unix/sysv/linux/x86_64/x32/libpthread.abilist
1925 (GLIBC_2.30): Likewise.
1926 * nptl/tst-cond11.c (run_test): Support testing
1927 pthread_cond_clockwait too by using a special magic
1928 CLOCK_USE_ATTR_CLOCK value to determine whether to call
1929 pthread_cond_timedwait or pthread_cond_clockwait. (do_test): Pass
1930 CLOCK_USE_ATTR_CLOCK for existing tests, and add new tests using
1931 all combinations of CLOCK_MONOTONIC and CLOCK_REALTIME.
1932 * ntpl/tst-cond26.c: New test for passing unsupported and invalid
1933 clocks to pthread_cond_clockwait.
1934 * nptl/tst-cond27.c: Add test similar to tst-cond5.c, but using
1935 struct timespec and pthread_cond_clockwait.
1936 * manual/threads.texi: Document pthread_cond_clockwait.
1937
1938 nptl: Add POSIX-proposed sem_clockwait which behaves just like
1939 sem_timedwait, but measures abstime against the specified clock.
1940 * nptl/sem_waitcommon.c (do_futex_wait, __new_sem_wait_slow): Add
1941 clockid parameters to indicate the clock which abstime should be
1942 measured against.
1943 * nptl/sem_timedwait.c (sem_timedwait), nptl/sem_wait.c
1944 (__new_sem_wait): Pass CLOCK_REALTIME as clockid to
1945 __new_sem_wait_slow.
1946 * nptl/sem_clockwait.c: New file to implement sem_clockwait based
1947 on sem_timedwait.c.
1948 * nptl/Makefile: Add sem_clockwait.c source file. Add CFLAGS for
1949 sem_clockwait.c to match those used for sem_timedwait.c.
1950 * sysdeps/pthread/semaphore.h: Add sem_clockwait.
1951 * nptl/Versions (GLIBC_2.30): Likewise.
1952 * sysdeps/unix/sysv/linux/aarch64/libpthread.abilist (GLIBC_2.30): Likewise.
1953 * sysdeps/unix/sysv/linux/alpha/libpthread.abilist (GLIBC_2.30): Likewise.
1954 * sysdeps/unix/sysv/linux/arm/libpthread.abilist (GLIBC_2.30): Likewise.
1955 * sysdeps/unix/sysv/linux/csky/libpthread.abilist (GLIBC_2.30): Likewise.
1956 * sysdeps/unix/sysv/linux/hppa/libpthread.abilist (GLIBC_2.30): Likewise.
1957 * sysdeps/unix/sysv/linux/i386/libpthread.abilist (GLIBC_2.30): Likewise.
1958 * sysdeps/unix/sysv/linux/ia64/libpthread.abilist (GLIBC_2.30): Likewise.
1959 * sysdeps/unix/sysv/linux/m68k/coldfire/libpthread.abilist
1960 (GLIBC_2.30): Likewise.
1961 * sysdeps/unix/sysv/linux/m68k/m680x0/libpthread.abilist
1962 (GLIBC_2.30): Likewise.
1963 * sysdeps/unix/sysv/linux/microblaze/libpthread.abilist
1964 (GLIBC_2.30): Likewise.
1965 * sysdeps/unix/sysv/linux/mips/mips32/libpthread.abilist
1966 (GLIBC_2.30): Likewise.
1967 * sysdeps/unix/sysv/linux/mips/mips64/libpthread.abilist
1968 (GLIBC_2.30): Likewise.
1969 * sysdeps/unix/sysv/linux/nios2/libpthread.abilist (GLIBC_2.30): Likewise.
1970 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libpthread.abilist
1971 (GLIBC_2.30): Likewise.
1972 * sysdeps/unix/sysv/linux/powerpc/powerpc64/be/libpthread.abilist
1973 (GLIBC_2.30): Likewise.
1974 * sysdeps/unix/sysv/linux/powerpc/powerpc64/le/libpthread.abilist
1975 (GLIBC_2.30): Likewise.
1976 * sysdeps/unix/sysv/linux/riscv/rv64/libpthread.abilist
1977 (GLIBC_2.30): Likewise.
1978 * sysdeps/unix/sysv/linux/s390/s390-32/libpthread.abilist
1979 (GLIBC_2.30): Likewise.
1980 * sysdeps/unix/sysv/linux/s390/s390-64/libpthread.abilist
1981 (GLIBC_2.30): Likewise.
1982 * sysdeps/unix/sysv/linux/sh/libpthread.abilist (GLIBC_2.30): Likewise.
1983 * sysdeps/unix/sysv/linux/sparc/sparc32/libpthread.abilist
1984 (GLIBC_2.30): Likewise.
1985 * sysdeps/unix/sysv/linux/sparc/sparc64/libpthread.abilist
1986 (GLIBC_2.30): Likewise.
1987 * sysdeps/unix/sysv/linux/x86_64/64/libpthread.abilist
1988 (GLIBC_2.30): Likewise.
1989 * sysdeps/unix/sysv/linux/x86_64/x32/libpthread.abilist
1990 (GLIBC_2.30): Likewise.
1991 * nptl/tst-sem17.c: Add new test for passing invalid clock to
1992 sem_clockwait.
1993 * nptl/tst-sem13.c, nptl/tst-sem5.c: Modify existing sem_timedwait
1994 tests to also test sem_clockwait.
1995 * manual/threads.texi: Document sem_clockwait.
1996
1997 nptl: Add clockid parameter to futex timed wait calls
1998 * sysdeps/nptl/lowlevellock-futex.h,
1999 sysdeps/unix/sysv/linux/lowlevellock-futex.h: Replace
2000 lll_futex_timed_wait_bitset with lll_futex_clock_wait_bitset that
2001 takes a clockid rather than a special clockbit.
2002 * sysdeps/nptl/lowlevellock-futex.h: Add
2003 lll_futex_supported_clockid so that client functions can check
2004 whether their clockid parameter is valid even if they don't
2005 ultimately end up calling lll_futex_clock_wait_bitset.
2006 * sysdeps/nptl/futex-internal.h,
2007 sysdeps/unix/sysv/linux/futex-internal.h
2008 (futex_abstimed_wait, futex_abstimed_wait_cancelable): Add
2009 clockid_t parameter to indicate which clock the absolute time
2010 passed should be measured against. Pass that clockid onto
2011 lll_futex_clock_wait_bitset. Add invalid clock as reason for
2012 returning -EINVAL.
2013 * sysdeps/nptl/futex-internal.h,
2014 sysdeps/unix/sysv/linux/futex-internal.h: Introduce
2015 futex_abstimed_supported_clockid so that client functions can check
2016 whether their clockid parameter is valid even if they don't
2017 ultimately end up calling futex_abstimed_wait.
2018 * nptl/pthread_cond_wait.c (__pthread_cond_wait_common): Remove
2019 code to calculate relative timeout for
2020 __PTHREAD_COND_CLOCK_MONOTONIC_MASK and just pass CLOCK_MONOTONIC
2021 or CLOCK_REALTIME as required to futex_abstimed_wait_cancelable.
2022 * nptl/pthread_rwlock_common (__pthread_rwlock_rdlock_full)
2023 (__pthread_wrlock_full), nptl/sem_waitcommon (do_futex_wait): Pass
2024 additional CLOCK_REALTIME to futex_abstimed_wait_cancelable.
2025 * nptl/pthread_mutex_timedlock.c (__pthread_mutex_timedlock):
2026 Switch to lll_futex_clock_wait_bitset and pass CLOCK_REALTIME
2027
2028 2019-07-10 Adhemerval Zanella <adhemerval.zanella@linaro.org>
2029
2030 [BZ #24699]
2031 * posix/tst-mmap-offset.c: Mention BZ #24699.
2032 (do_test_bz21270): Rename to do_test_large_offset and use
2033 mmap64_maximum_offset to check for maximum expected offset value.
2034 * sysdeps/generic/mmap_info.h: New file.
2035 * sysdeps/unix/sysv/linux/mips/mmap_info.h: Likewise.
2036 * sysdeps/unix/sysv/linux/mmap64.c (MMAP_OFF_HIGH_MASK): Define iff
2037 __NR_mmap2 is used.
2038
2039 2019-07-10 DJ Delorie <dj@redhat.com>
2040 Sergei Trofimovich <slyfox@inbox.ru>
2041
2042 [BZ #24696]
2043 [BZ #24695]
2044 * nss/nss_db/db-open.c (internal_endent): Protect against NULL
2045 mappings.
2046 * nss/tst-nss-db-endgrent.c: New.
2047 * nss/tst-nss-db-endgrent.root: New.
2048 * nss/tst-nss-db-endpwent.c: New.
2049 * nss/tst-nss-db-endpwent.root: New.
2050 * nss/Makefile: Add new tests.
2051 * support/links-dso-program-c.c: Add selinux dependency.
2052 * support/links-dso-program.cc: Add selinux dependency.
2053 * support/Makefile: Build those with -lselinux if enabled.
2054
2055 2019-07-10 Szabolcs Nagy <szabolcs.nagy@arm.com>
2056
2057 * sysdeps/aarch64/dl-machine.h (elf_machine_runtime_setup): Remove the
2058 DT_AARCH64_VARIANT_PCS check.
2059 (elf_machine_lazy_rel): Use l_info[DT_AARCH64 (VARIANT_PCS)].
2060 * sysdeps/aarch64/linkmap.h (struct link_map_machine): Remove
2061 variant_pcs.
2062
2063 2019-07-10 Andreas Schwab <schwab@suse.de>
2064
2065 [BZ #23352]
2066 * malloc/malloc.h (__malloc_check_init): Don't declare.
2067 * include/malloc.h (__malloc_check_init): Likewise.
2068 * malloc/malloc-internal.h (__malloc_check_init): Declare it here.
2069 * manual/memory.texi (__malloc_check_init): Don't mention it.
2070
2071 2019-07-10 Mao Han <han_mao@c-sky.com>
2072
2073 * locale/Makefile: Fix tst-locale-locpath arguments passing.
2074
2075 2019-07-09 Paul A. Clarke <pc@us.ibm.com>
2076
2077 * sysdeps/powerpc/fpu/fenv_libc.h (_FPU_GET_RC): Protect use of
2078 __builtin_cpu_supports with __BUILTIN_CPU_SUPPORTS__.
2079
2080 2019-07-08 DJ Delorie <dj@redhat.com>
2081
2082 [BZ #23501]
2083 * io/ftw.c (process_entry): Fill in statbuf for dangling links.
2084 * io/tst-ftw-lnk.c: New test.
2085 * io/Makefile: Run it.
2086
2087 2019-07-08 Adhemerval Zanella <adhemerval.zanella@linaro.org>
2088
2089 * sysdeps/powerpc/power7/fpu/s_logb.c: Move to ...
2090 * sysdeps/powerpc/fpu/s_logb.c: ... here. Use inline FP constants.
2091 * sysdeps/powerpc/power7/fpu/s_logbf.c: Move to ...
2092 * sysdeps/powerpc/fpu/s_logbf.c: ... here. Use inline FP constants.
2093 * sysdeps/powerpc/power7/fpu/s_logbl.c: Move to ...
2094 * sysdeps/powerpc/fpu/s_logbl.c: ... here. Use inline FP constants.
2095 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logb-power7.c:
2096 Adjust implementation path.
2097 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logbf-power7.c:
2098 Adjust implementation path.
2099 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logbl-power7.c:
2100 Adjust implementation path.
2101 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/Makefile
2102 (libm-sysdep_routines): Add s_log* objects.
2103 (CFLAGS-s_logbf-power7.c, CFLAGS-s_logbl-power7.c,
2104 CFLAGS-s_logb-power7.c): New fule.
2105 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logb-power7.c: Move
2106 to ...
2107 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_logb-power7.c:
2108 ... here.
2109 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logb-ppc64.c: Move
2110 to ...
2111 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_logb-ppc64.c:
2112 ... here.
2113 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logb.c: Move to ...
2114 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_logb.c: ... here.
2115 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logbf-power7.c: Move
2116 to ...
2117 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_logbf-power7.c:
2118 ... here.
2119 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logbf-ppc64.c: Move
2120 to ...
2121 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_logbf-ppc64.c:
2122 ... here.
2123 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logbf.c: Move to ...
2124 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_logbf.c: ... here.
2125 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logbl-power7.c: Move
2126 to ...
2127 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_logbl-power7.c:
2128 ... here.
2129 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logbl-ppc64.c: Move
2130 to ...
2131 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_logbl-ppc64.c:
2132 ... here.
2133 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logbl.c: Move to ...
2134 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_logbl.c: ... here.
2135 * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Remove file.
2136 * sysdeps/powerpc/powerpc64/power7/fpu/s_logb.c: Remove file.
2137 * sysdeps/powerpc/powerpc64/power7/fpu/s_logbf.c: Likewise.
2138 * sysdeps/powerpc/powerpc64/power7/fpu/s_logbl.c: Likewise.
2139
2140 * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c: Move to ...
2141 * sysdeps/ieee754/dbl-64/s_logb.c: ... here. Add work around for
2142 powerpc32 integer 0 converting to -0.
2143
2144 * benchtests/Makefile (bench-math): Add logb.
2145 * benchtests/logb-inputs: New file.
2146 * benchtests/logbf-inputs: New file.
2147
2148 * sysdeps/powerpc/power5+/fpu/s_modf.c: Move to ...
2149 * sysdeps/powerpc/fpu/s_modf.c: ... here. Add ISA 2.07 optimization.
2150 * sysdeps/powerpc/power5+/fpu/s_modff.c: Move to ...
2151 * sysdeps/powerpc/fpu/s_modff.c: ... here. Add ISA 2.07 optimization.
2152 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_modf-power5+.c:
2153 Adjust include.
2154 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_modff-power5+.c:
2155 Likewise.
2156 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/Makefile (sysdep_calls,
2157 sysdep_routines): Add s_modf* objects.
2158 (CFLAGS-s_modf-power5+.c, CFLAGS-s_modff-power5+.c,
2159 CFLAGS-s_modf-ppc64.c, CFLAGS-s_modff-ppc64.c): New rule.
2160 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modf-power5+.c: Move
2161 to ...
2162 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_modf-power5+.c:
2163 ... here.
2164 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modf-power5+.c: Movo
2165 to ...
2166 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_modf-power5+.c: Move
2167 ... here.
2168 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modf.c: Move to ...
2169 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_modf.c: ... here.
2170 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modff-power5+.c: Move
2171 to ...
2172 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_modff-power5+.c:
2173 ... here.
2174 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modff-ppc64.c: Move to ...
2175 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_modff-ppc64.c:
2176 ... here.
2177 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modff.c: Move to ...
2178 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_modff.c: ... here.
2179
2180 * sysdeps/powerpc/fpu/e_hypot.c (two60, two500, two600, two1022,
2181 twoM500, twoM600, two60factor, pdnum): Remove.
2182 (TEST_INFO_NAN, GET_TW0_HIGH_WORD): Remove macro.
2183 (__ieee754_hypot): Replace static variables with inline definition,
2184 remove ununsed branches.
2185 * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile
2186 (libm-sysdep_routines): Remove e_hypot-* objects.
2187 (CFLAGS-e_hypot-power7.c, CFLAGS-e_hypotf-power7.c): Remove rule.
2188 * sysdeps/powerpc/powerpc64/fpu/multiarch/e_hypot-power7.c: Remove
2189 file.
2190 * sysdeps/powerpc/powerpc64/fpu/multiarch/e_hypot-ppc64.c: Likewise.
2191 * sysdeps/powerpc/powerpc64/fpu/multiarch/e_hypot.c: Likewise.
2192 * sysdeps/powerpc/powerpc64/fpu/multiarch/e_hypotf-power7.c: Likewise.
2193 * sysdeps/powerpc/powerpc64/fpu/multiarch/e_hypotf-ppc64.c: Likewise.
2194 * sysdeps/powerpc/powerpc64/fpu/multiarch/e_hypotf.c: Likewise.
2195
2196 * benchtests/Makefile (bench-math): Add hypot.
2197 * benchtests/hypot-inputs: New file.
2198
2199 2019-07-08 Vincent Chen <vincentc@andestech.com>
2200
2201 * sysdeps/unix/sysv/linux/dl-vdso.h
2202 (VDSO_NAME_LINUX_4, VDSO_HASH_LINUX_4): New defines.
2203
2204 2019-07-04 Andreas Schwab <schwab@suse.de>
2205
2206 [BZ #24484]
2207 * sysdeps/riscv/ldsodefs.h (DL_RO_DYN_SECTION): Define.
2208
2209 2019-07-04 Szabolcs Nagy <szabolcs.nagy@arm.com>
2210
2211 * sysdeps/aarch64/Makefile: Install sys/ifunc.h and add tests.
2212 * sysdeps/aarch64/dl-irel.h (elf_ifunc_invoke): Update to new ABI.
2213 * sysdeps/aarch64/sys/ifunc.h: New file.
2214 * sysdeps/aarch64/tst-ifunc-arg-1.c: New file.
2215 * sysdeps/aarch64/tst-ifunc-arg-2.c: New file.
2216
2217 2019-07-01 Florian Weimer <fweimer@redhat.com>
2218
2219 [BZ #20188]
2220 * nptl/Versions (libpthread): Remove __fork from GLIBC_2.0.
2221 Replace __vfork with __libpthread_version_placeholder for
2222 GLIBC_2.1.2.
2223 (libc): Remove __libc_vfork from GLIBC_PRIVATE.
2224 * nptl/Makefile (libpthread-routines): Remove pt-vfork. Add
2225 libpthread-compat.
2226 * nptl/pt-vfork.c: Remove file.
2227 * sysdeps/unix/sysv/linux/aarch64/pt-vfork.c: Likewise.
2228 * sysdeps/unix/sysv/linux/alpha/pt-vfork.S: Likewise.
2229 * sysdeps/unix/sysv/linux/csky/pt-vfork.S: Likewise.
2230 * sysdeps/unix/sysv/linux/hppa/pt-vfork.S: Likewise.
2231 * sysdeps/unix/sysv/linux/ia64/pt-vfork.S: Likewise.
2232 * sysdeps/unix/sysv/linux/m68k/pt-vfork.c: Likewise.
2233 * sysdeps/unix/sysv/linux/microblaze/pt-vfork.S: Likewise.
2234 * sysdeps/unix/sysv/linux/mips/pt-vfork.S: Likewise.
2235 * sysdeps/unix/sysv/linux/nios2/pt-vfork.S: Likewise.
2236 * sysdeps/unix/sysv/linux/riscv/pt-vfork.S: Likewise.
2237 * sysdeps/unix/sysv/linux/s390/pt-vfork.S: Likewise.
2238 * sysdeps/unix/sysv/linux/sh/pt-vfork.S: Likewise.
2239 * sysdeps/unix/sysv/linux/sparc/pt-vfork.S: Likewise.
2240 * sysdeps/unix/sysv/linux/aarch64/libpthread.abilist (GLIBC_2.17):
2241 Remove vfork, __vfork.
2242 * sysdeps/unix/sysv/linux/alpha/libpthread.abilist (GLIBC_2.0):
2243 Remove vfork.
2244 (GLIBC_2.1.2): Replace __vfork with
2245 __libpthread_version_placeholder.
2246 * sysdeps/unix/sysv/linux/arm/libpthread.abilist (GLIBC_2.4):
2247 Remove vfork, __vfork.
2248 * sysdeps/unix/sysv/linux/hppa/libpthread.abilist (GLIBC_2.2):
2249 Likewise.
2250 * sysdeps/unix/sysv/linux/i386/libpthread.abilist (GLIBC_2.0):
2251 Remove vfork.
2252 (GLIBC_2.1.2): Replace __vfork with
2253 __libpthread_version_placeholder.
2254 * sysdeps/unix/sysv/linux/ia64/libpthread.abilist (GLIBC_2.2):
2255 Remove vfork.
2256 * sysdeps/unix/sysv/linux/m68k/coldfire/libpthread.abilist
2257 (GLIBC_2.4): Remove vfork, __vfork.
2258 * sysdeps/unix/sysv/linux/m68k/m680x0/libpthread.abilist
2259 (GLIBC_2.0): Remove vfork.
2260 (GLIBC_2.1.2): Replace __vfork with
2261 __libpthread_version_placeholder.
2262 * sysdeps/unix/sysv/linux/microblaze/libpthread.abilist
2263 (GLIBC_2.18): Remove vfork, __vfork.
2264 * sysdeps/unix/sysv/linux/mips/mips32/libpthread.abilist
2265 (GLIBC_2.0): Remove vfork.
2266 (GLIBC_2.2): Remove __vfork.
2267 * sysdeps/unix/sysv/linux/mips/mips64/libpthread.abilist:
2268 (GLIBC_2.2): Remove vfork, __vfork.
2269 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libpthread.abilist:
2270 (GLIBC_2.0): Remove vfork.
2271 (GLIBC_2.1.2): Replace __vfork with
2272 __libpthread_version_placeholder.
2273 * sysdeps/unix/sysv/linux/powerpc/powerpc64/be/libpthread.abilist
2274 (GLIBC_2.3): Remove vfork, __vfork.
2275 * sysdeps/unix/sysv/linux/powerpc/powerpc64/le/libpthread.abilist
2276 (GLIBC_2.17): Likewise.
2277 * sysdeps/unix/sysv/linux/s390/s390-32/libpthread.abilist
2278 (GLIBC_2.0): Remove vfork.
2279 (GLIBC_2.1.2): Replace __vfork with
2280 __libpthread_version_placeholder.
2281 * sysdeps/unix/sysv/linux/s390/s390-64/libpthread.abilist
2282 (GLIBC_2.2): Remove vfork, __vfork.
2283 * sysdeps/unix/sysv/linux/sh/libpthread.abilist (GLIBC_2.2):
2284 Likewise.
2285 * sysdeps/unix/sysv/linux/sparc/sparc32/libpthread.abilist
2286 (GLIBC_2.0): Remove vfork.
2287 (GLIBC_2.1.2): Replace __vfork with
2288 __libpthread_version_placeholder.
2289 * sysdeps/unix/sysv/linux/sparc/sparc64/libpthread.abilist
2290 (GLIBC_2.2): Remove vfork, __vfork.
2291 * sysdeps/unix/sysv/linux/x86_64/64/libpthread.abilist
2292 (GLIBC_2.2.5): Likewise.
2293 * sysdeps/unix/sysv/linux/x86_64/x32/libpthread.abilist
2294 (GLIBC_2.16): Likewise.
2295 * sysdeps/unix/sysv/linux/hppa/localplt.data (libpthread.so):
2296 Remove __errno_location.
2297
2298 2019-07-02 Florian Weimer <fweimer@redhat.com>
2299
2300 [BZ #24757]
2301 * malloc/Depend: Add nptl and htl, due to potential indirect
2302 libpthread dependency of memusagestat.
2303
2304 2019-07-02 Stefan Liebler <stli@linux.ibm.com>
2305
2306 * resolv/res_send.c (__res_context_send): Disable maybe-uninitialized
2307 warning.
2308
2309 2019-07-01 Florian Weimer <fweimer@redhat.com>
2310
2311 * scripts/build-many-glibcs.py (Context.add_all_configs): Add v4t
2312 variant for arm-linux-gnueabi.
2313
2314 2019-07-01 H.J. Lu <hongjiu.lu@intel.com>
2315
2316 [BZ #24259]
2317 * elf/dl-open.c (dl_open_worker): Call _dl_open_check after
2318 relocation.
2319 * sysdeps/x86/Makefile (tests): Add tst-cet-legacy-5a,
2320 tst-cet-legacy-5b, tst-cet-legacy-6a and tst-cet-legacy-6b.
2321 (modules-names): Add tst-cet-legacy-mod-5a, tst-cet-legacy-mod-5b,
2322 tst-cet-legacy-mod-5c, tst-cet-legacy-mod-6a, tst-cet-legacy-mod-6b
2323 and tst-cet-legacy-mod-6c.
2324 (CFLAGS-tst-cet-legacy-5a.c): New.
2325 (CFLAGS-tst-cet-legacy-5b.c): Likewise.
2326 (CFLAGS-tst-cet-legacy-mod-5a.c): Likewise.
2327 (CFLAGS-tst-cet-legacy-mod-5b.c): Likewise.
2328 (CFLAGS-tst-cet-legacy-mod-5c.c): Likewise.
2329 (CFLAGS-tst-cet-legacy-6a.c): Likewise.
2330 (CFLAGS-tst-cet-legacy-6b.c): Likewise.
2331 (CFLAGS-tst-cet-legacy-mod-6a.c): Likewise.
2332 (CFLAGS-tst-cet-legacy-mod-6b.c): Likewise.
2333 (CFLAGS-tst-cet-legacy-mod-6c.c): Likewise.
2334 ($(objpfx)tst-cet-legacy-5a): Likewise.
2335 ($(objpfx)tst-cet-legacy-5a.out): Likewise.
2336 ($(objpfx)tst-cet-legacy-mod-5a.so): Likewise.
2337 ($(objpfx)tst-cet-legacy-mod-5b.so): Likewise.
2338 ($(objpfx)tst-cet-legacy-5b): Likewise.
2339 ($(objpfx)tst-cet-legacy-5b.out): Likewise.
2340 (tst-cet-legacy-5b-ENV): Likewise.
2341 ($(objpfx)tst-cet-legacy-6a): Likewise.
2342 ($(objpfx)tst-cet-legacy-6a.out): Likewise.
2343 ($(objpfx)tst-cet-legacy-mod-6a.so): Likewise.
2344 ($(objpfx)tst-cet-legacy-mod-6b.so): Likewise.
2345 ($(objpfx)tst-cet-legacy-6b): Likewise.
2346 ($(objpfx)tst-cet-legacy-6b.out): Likewise.
2347 (tst-cet-legacy-6b-ENV): Likewise.
2348 * sysdeps/x86/tst-cet-legacy-5.c: New file.
2349 * sysdeps/x86/tst-cet-legacy-5a.c: Likewise.
2350 * sysdeps/x86/tst-cet-legacy-5b.c: Likewise.
2351 * sysdeps/x86/tst-cet-legacy-6.c: Likewise.
2352 * sysdeps/x86/tst-cet-legacy-6a.c: Likewise.
2353 * sysdeps/x86/tst-cet-legacy-6b.c: Likewise.
2354 * sysdeps/x86/tst-cet-legacy-mod-5.c: Likewise.
2355 * sysdeps/x86/tst-cet-legacy-mod-5a.c: Likewise.
2356 * sysdeps/x86/tst-cet-legacy-mod-5b.c: Likewise.
2357 * sysdeps/x86/tst-cet-legacy-mod-5c.c: Likewise.
2358 * sysdeps/x86/tst-cet-legacy-mod-6.c: Likewise.
2359 * sysdeps/x86/tst-cet-legacy-mod-6a.c: Likewise.
2360 * sysdeps/x86/tst-cet-legacy-mod-6b.c: Likewise.
2361 * sysdeps/x86/tst-cet-legacy-mod-6c.c: Likewise.
2362
2363 2019-06-30 Paul A. Clarke <pc@us.ibm.com>
2364
2365 * sysdeps/powerpc/bits/fenvinline.h (__fegetround): Use
2366 __fegetround_ISA300() or __fegetround_ISA2() as appropriate.
2367 (__fegetround_ISA300) New.
2368 (__fegetround_ISA2) New.
2369 * sysdeps/powerpc/fpu_control.h (IS_ISA300): New.
2370 (_FPU_MFFS): Move implementation...
2371 (_FPU_GETCW): Here.
2372 (_FPU_MFFSL): Move implementation....
2373 (_FPU_GET_RC_ISA300): Here. New.
2374 (_FPU_GET_RC): Use _FPU_GET_RC_ISA300() or _FPU_GETCW() as appropriate.
2375 * sysdeps/powerpc/fpu/fenv_libc.h (fegetenv_status_ISA300): New.
2376 (fegetenv_status): New.
2377 * sysdeps/powerpc/fpu/fegetmode.c (fegetmode): Use fegetenv_status()
2378 instead of fegetenv_register().
2379 * sysdeps/powerpc/fpu/fegetexcept.c (__fegetexcept): Likewise.
2380
2381 2019-06-28 Wilco Dijkstra <wdijkstr@arm.com>
2382
2383 * benchtests/bench-math-inlines.c: Increase iterations.
2384 * benchtests/bench-memcmp.c: Likewise.
2385 * benchtests/bench-rawmemchr.c: Likewise.
2386 * benchtests/bench-strcmp.c: Likewise.
2387 * benchtests/bench-strcpy_chk.c: Likewise.
2388 * benchtests/bench-string.h (INNER_LOOP_ITERS8): Add define.
2389 (INNER_LOOP_ITERS_MEDIUM): Increase iterations.
2390 (INNER_LOOP_ITERS_SMALL): Likewise.
2391 * benchtests/bench-strncat.c: Increase iterations.
2392 * benchtests/bench-strncmp.c: Increase iterations.
2393 * benchtests/bench-strncpy.c: Reduce iterations for wide strings.
2394 * benchtests/bench-strrchr.c: Increase iterations.
2395 * benchtests/bench-strstr.c: Keep iterations unchanged.
2396 * benchtests/bench-strtod.c: Increase iterations.
2397
2398 2019-06-28 Anton Youdkevitch <anton.youdkevitch@bell-sw.com>
2399
2400 * benchtests/bench-memccpy.c: Replace INNER_LOOP_ITERS
2401 with INNER_LOOP_ITERS_LARGE.
2402 * benchtests/bench-memchr.c: Likewise.
2403 * benchtests/bench-rawmemchr.c: Likewise.
2404 * benchtests/bench-strcat.c: Likewise.
2405 * benchtests/bench-strchr.c: Likewise.
2406 * benchtests/bench-string.h: Likewise.
2407 * benchtests/bench-strlen.c: Likewise.
2408 * benchtests/bench-strncpy.c: Likewise.
2409 * benchtests/bench-strnlen.c: Likewise.
2410
2411 2019-06-28 Florian Weimer <fweimer@redhat.com>
2412
2413 * sysdeps/unix/sysv/linux/tst-getdents64.c (large_buffer_checks):
2414 Use mmap instead of malloc. malloc with M_PERTURB writes to the
2415 entire allocated memory range.
2416
2417 2019-06-28 Tobias Klauser <tklauser@distanz.ch>
2418
2419 * sysdeps/unix/sysv/linux/dl-vdso.h (PREPARE_VERSION): Remove macro.
2420 (prepare_version_base): New helper inline function.
2421 (prepare_version): New macro replacing PREPARE_VERSION.
2422 (PREPARE_VERSION_KNOWN): Use prepare_version instead of PREPARE_VERSION.
2423
2424 2019-06-28 Florian Weimer <fweimer@redhat.com>
2425
2426 [BZ #24741]
2427 * elf/dl-lookup.c (do_lookup_x): Do not fail if there is a soname
2428 mismatch in a versioned symbol reference.
2429 (_dl_lookup_symbol_x): Do not report soname mismatch failures.
2430 * elf/Makefile [$(build-shared)] (tests): Add tst-sonamemove-link,
2431 tst-sonamemove-dlopen.
2432 (module-names): Add tst-sonamemove-linkmod1,
2433 tst-sonamemove-runmod1, tst-sonamemove-runmod2.
2434 (LDFLAGS-tst-sonamemove-linkmod1.so): Set.
2435 (LDFLAGS-tst-sonamemove-runmod1.so): Likewise.
2436 (LDFLAGS-tst-sonamemove-runmod2.so): Likewise.
2437 (tst-sonamemove-runmod1.so): Link against
2438 tst-sonamemove-runmod2.so.
2439 (tst-sonamemove-link): Link against tst-sonamemove-linkmod1.so.
2440 (tst-sonamemove-link.out): Depend on tst-sonamemove-runmod1.so,
2441 tst-sonamemove-runmod2.so.
2442 (tst-sonamemove-dlopen): Link with -ldl.
2443 (tst-sonamemove-dlopen.out): Likewise.
2444 * elf/tst-sonamemove-link.c: New file.
2445 * elf/tst-sonamemove-dlopen.c: Likewise.
2446 * elf/tst-sonamemove-linkmod1.c: Likewise.
2447 * elf/tst-sonamemove-linkmod1.map: Likewise.
2448 * elf/tst-sonamemove-runmod1.c: Likewise.
2449 * elf/tst-sonamemove-runmod1.map: Likewise.
2450 * elf/tst-sonamemove-runmod2.c: Likewise.
2451 * elf/tst-sonamemove-runmod2.map: Likewise.
2452
2453 2019-06-28 Florian Weimer <fweimer@redhat.com>
2454
2455 * support/xdlfcn.h (xdlvsym): Declare function.
2456 * support/xdlfcn.c (xdlvsym): Define funciton.
2457
2458 2019-06-28 Florian Weimer <fweimer@redhat.com>
2459
2460 [BZ #24744]
2461 io: Remove the copy_file_range emulation.
2462 * sysdeps/unix/sysv/linux/copy_file_range.c (copy_file_range): Do
2463 not define and call copy_file_range_compat.
2464 * io/Makefile (tests-static, tests-internal): Do not add
2465 tst-copy_file_range-compat.
2466 * io/copy_file_range-compat.c: Remove file.
2467 * io/copy_file_range.c (copy_file_range): Define as stub.
2468 * io/tst-copy_file_range-compat.c: Remove file.
2469 * io/tst-copy_file_range.c (xdevfile): Remove variable.
2470 (typical_sizes): Update comment. Remove 16K sizes.
2471 (maximum_offset, maximum_offset_errno, maximum_offset_hard_limit):
2472 Remove variables.
2473 (find_maximum_offset, pipe_as_source, pipe_as_destination)
2474 (delayed_write_failure_beginning, delayed_write_failure_end)
2475 (cross_device_failure, enospc_failure_1, enospc_failure)
2476 (oappend_failure): Remove functions.
2477 (tests): Adjust test case list.
2478 (do_test): Remove file system search code. Check for ENOSYS from
2479 copy_file_range. Do not free xdevfile.
2480 * manual/llio.texi (Copying File Data): Document ENOSYS error from
2481 copy_file_range. Do not document the EXDEV error, which future
2482 kernels may not report. Update the wording to reflect that
2483 further errors are possible.
2484 * sysdeps/unix/sysv/linux/alpha/kernel-features.h
2485 [__LINUX_KERNEL_VERSION < 0x040D00] (__ASSUME_COPY_FILE_RANGE): Do
2486 not undefine.
2487 * sysdeps/unix/sysv/linux/arm/kernel-features.h
2488 [__LINUX_KERNEL_VERSION < 0x040700] (__ASSUME_COPY_FILE_RANGE):
2489 Likewise.
2490 * sysdeps/unix/sysv/linux/kernel-features.h
2491 [__LINUX_KERNEL_VERSION >= 0x040500] (__ASSUME_COPY_FILE_RANGE):
2492 Remove definition.
2493 * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
2494 [__LINUX_KERNEL_VERSION < 0x040A00] (__ASSUME_COPY_FILE_RANGE): Do
2495 not undefine.
2496 * sysdeps/unix/sysv/linux/sh/kernel-features.h
2497 [__LINUX_KERNEL_VERSION < 0x040800] (__ASSUME_COPY_FILE_RANGE):
2498 Likewise.
2499
2500 2019-06-27 Gabriel F. T. Gomes <gabrielftg@linux.ibm.com>
2501
2502 * libio/libioP.h (PRINTF_LDBL_USES_FLOAT128): New macro to be
2503 used as a mask for the mode argument of __vfprintf_internal.
2504 * stdio-common/printf-parse.h (printf_arg): New union member:
2505 pa_float128.
2506 * stdio-common/vfprintf-internal.c
2507 (PARSE_FLOAT_VA_ARG_EXTENDED): New macro.
2508 (PARSE_FLOAT_VA_ARG): Likewise.
2509 (SETUP_FLOAT128_INFO): Likewise.
2510 (process_arg): Use PARSE_FLOAT_VA_ARG_EXTENDED and
2511 SETUP_FLOAT128_INFO.
2512 [__HAVE_FLOAT128_UNLIKE_LDBL] (printf_positional): Write
2513 floating-point value to the new union member, pa_float128.
2514 (printf_positional): Zero-initialize args_value[cnt] with memset.
2515
2516 2019-06-27 Florian Weimer <fweimer@redhat.com>
2517
2518 [BZ #24740]
2519 * sysdeps/unix/sysv/linux/getdents64.c (__getdents64): Adjust
2520 buffer size if necessary.
2521 * sysdeps/unix/sysv/linux/mips/mips64/getdents64.c (__getdents64):
2522 Likewise.
2523 * sysdeps/unix/sysv/linux/tst-getdents64.c (large_buffer_check):
2524 New function.
2525 (large_buffer_checks): Likewise.
2526 (do_test): Call large_buffer_checks.
2527
2528 2019-06-26 H.J. Lu <hongjiu.lu@intel.com>
2529
2530 * sysdeps/i386/dl-lookupcfg.h: Moved to ...
2531 * sysdeps/x86/dl-lookupcfg.h: Here.
2532 * sysdeps/x86_64/dl-lookupcfg.h: Removed.
2533
2534 2019-06-26 Adhemerval Zanella <adhemerval.zanella@linaro.org>
2535
2536 * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile
2537 (libm-sysdep_routines): Remove e_expf-power8 and expf-ppc64.
2538 * sysdeps/powerpc/powerpc64/fpu/multiarch/e_expf-power8.S: Remove
2539 file.
2540 * sysdeps/powerpc/powerpc64/fpu/multiarch/e_expf-ppc64.c: Likewise.
2541 * sysdeps/powerpc/powerpc64/fpu/multiarch/e_expf.c: Likewise.
2542 * sysdeps/powerpc/powerpc64/fpu/multiarch/w_expf.c: Likewise.
2543 * sysdeps/powerpc/powerpc64/power8/fpu/e_expf.S: Likewise.
2544 * sysdeps/powerpc/powerpc64/power8/fpu/w_expf.c: Likewise.
2545
2546 * sysdeps/powerpc/powerpc32/fpu/Makefile
2547 [$(subdir) == math] (CFLAGS-s_lround.c): New rule.
2548 * sysdeps/powerpc/powerpc32/fpu/s_llround.c (__llround): Add power5+
2549 and fctidz optimization.
2550 * sysdeps/powerpc/powerpc32/fpu/s_lround.S: Remove file.
2551 * sysdeps/powerpc/powerpc32/fpu/s_lround.c: New file.
2552 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile
2553 (CFLAGS-s_llround-power6.c, CFLAGS-s_llround-power5+.c,
2554 CFLAGS-s_llround-ppc32.c, CFLAGS-s_lround-ppc32.c,
2555 CFLAGS-s_lround-power5+.c): New rule.
2556 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llround-power5+.c:
2557 New file.
2558 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llround-power6.c:
2559 Likewise.
2560 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llround-ppc32.c:
2561 Likewise.
2562 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lround-power5+.c:
2563 Likewise.
2564 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lround-ppc32.c:
2565 Likewise.
2566 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llround-power5+.S:
2567 Remove file.
2568 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llround-power6.S:
2569 Likewise.
2570 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llround-ppc32.S:
2571 Likewise.
2572 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lround-power5+.S:
2573 Likewise.
2574 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lround-ppc32.S:
2575 Likewise.
2576 * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S: Likewise.
2577 * sysdeps/powerpc/powerpc32/power4/fpu/s_llroundf.S: Likewise.
2578 * sysdeps/powerpc/powerpc32/power5+/fpu/s_llround.S: Likewise.
2579 * sysdeps/powerpc/powerpc32/power5+/fpu/s_llroundf.S: Likewise.
2580 * sysdeps/powerpc/powerpc32/power5+/fpu/s_lround.S: Likewise.
2581 * sysdeps/powerpc/powerpc32/power6/fpu/s_llround.S: Likewise.
2582 * sysdeps/powerpc/powerpc32/power6/fpu/s_llroundf.S: Likewise.
2583
2584 2019-06-26 Vincent Chen <vincentc@andestech.com>
2585
2586 * sysdeps/unix/sysv/linux/syscall-names.list: Add nds32
2587 specific system calls, fp_udfiex_crtl and udftrap.
2588
2589 2019-06-26 Stefan Liebler <stli@linux.ibm.com>
2590
2591 * nptl/tst-eintr1.c (tf1): Add return statement.
2592 (do_test): Remove unused th variable.
2593
2594 2019-06-26 Stefan Liebler <stli@linux.ibm.com>
2595
2596 * locale/programs/ld-ctype.c (charclass_symbolic_ellipsis):
2597 Return error if get_character fails.
2598
2599 2019-06-25 Stefan Liebler <stli@linux.ibm.com>
2600
2601 * sysdeps/s390/fpu/libm-test-ulps: Regenerated.
2602
2603 2019-06-24 Rafał Lużyński <digitalfreak@lingonborough.com>
2604
2605 [BZ #24652]
2606 * localedata/locales/szl_PL (day): Use the correct Unicode
2607 sequences instead of non-ASCII characters.
2608
2609 2019-06-24 Grzegorz Kulik <gregorykkulik@gmail.com>
2610
2611 [BZ #24652]
2612 * localedata/locales/szl_PL (abday): Spelling corrections.
2613 (day): Likewise.
2614 (abmon): Likewise.
2615 (mon): Rename to...
2616 (alt_mon): This, then apply spelling corrections.
2617 (mon): New entry, month names in the genitive case.
2618
2619 2019-06-21 Rafał Lużyński <digitalfreak@lingonborough.com>
2620
2621 [BZ #23831]
2622 * localedata/locales/nl_AW (mon_thousands_sep): Set to ".".
2623 * localedata/locales/nl_NL (mon_thousands_sep): Likewise.
2624 (thousands_sep): Likewise.
2625 (grouping): Set to 3;3.
2626
2627 2019-06-21 Tobias Klauser <tklauser@distanz.ch>
2628
2629 * sysdeps/unix/sysv/linux/aarch64/gettimeofday.c (INIT_ARCH): Use
2630 PREPARE_VERSION_KNOWN.
2631 * sysdeps/unix/sysv/linux/aarch64/init-first.c: Likewise.
2632 * sysdeps/unix/sysv/linux/dl-vdso.h (VDSO_NAME_LINUX_2_6_39): New
2633 define.
2634 (VDSO_HASH_LINUX_2_6_39): Likewise.
2635 (VDSO_NAME_LINUX_4_9): Likewise.
2636 (VDSO_HASH_LINUX_4_9): Likewise.
2637 * sysdeps/unix/sysv/linux/powerpc/gettimeofday.c (INIT_ARCH): Likewise.
2638 * sysdeps/unix/sysv/linux/powerpc/init-first.c
2639 (_libc_vdso_platform_setup): Likewise.
2640 * sysdeps/unix/sysv/linux/powerpc/time.c (INIT_ARCH): Likewise.
2641 * sysdeps/unix/sysv/linux/s390/init-first.c (_libc_vdso_platform_setup):
2642 Likewise.
2643 * sysdeps/unix/sysv/linux/x86_64/init-first.c (__vdso_platform_setup):
2644 Likewise.
2645
2646 2019-06-20 Mike Crowe <mac@mcrowe.com>
2647
2648 * nptl/eintr.c: Use libsupport.
2649 * nptl/tst-eintr1.c: Likewise.
2650 * nptl/tst-eintr2.c: Likewise.
2651 * nptl/tst-eintr3.c: Likewise.
2652 * nptl/tst-eintr4.c: Likewise.
2653 * nptl/tst-eintr5.c: Likewise.
2654 * nptl/tst-mutex-errorcheck.c: Likewise.
2655 * nptl/tst-mutex5.c: Likewise.
2656
2657 * support/test-driver.h: Add verbose_printf macro.
2658
2659 * support/xtime.h: Add xclock_now() helper function.
2660
2661 2019-06-20 Dmitry V. Levin <ldv@altlinux.org>
2662 Florian Weimer <fweimer@redhat.com>
2663
2664 [BZ #24228]
2665 * libio/genops.c (_IO_unbuffer_all)
2666 [SHLIB_COMPAT (libc, GLIBC_2_0, GLIBC_2_1)]: Do not attempt to free wide
2667 buffers and access _IO_FILE_complete members of legacy libio streams.
2668 * libio/tst-bz24228.c: New file.
2669 * libio/tst-bz24228.map: Likewise.
2670 * libio/Makefile [build-shared] (tests): Add tst-bz24228.
2671 [build-shared] (generated): Add tst-bz24228.mtrace and
2672 tst-bz24228.check.
2673 [run-built-tests && build-shared] (tests-special): Add
2674 $(objpfx)tst-bz24228-mem.out.
2675 (LDFLAGS-tst-bz24228, tst-bz24228-ENV): New variables.
2676 ($(objpfx)tst-bz24228-mem.out): New rule.
2677
2678 2019-06-19 Paul A. Clarke <pc@us.ibm.com>
2679
2680 * sysdeps/powerpc/fpu/fenv_libc.h (relax_fenv_state): Add 'volatile'.
2681 * sysdeps/powerpc/fpu/fpu_control.h (__FPU_MFFS): Likewise.
2682 (__FPU_MFFSL): Likewise.
2683 (_FPU_SETCW): Likewise.
2684
2685 2019-06-19 Stan Shebs <stanshebs@google.com>
2686 Raoni Fassina Firmino <raoni@linux.ibm.com>
2687
2688 [BZ #24640]
2689 * sysdeps/unix/sysv/linux/powerpc/get_timebase_freq.c
2690 [!SHARED] (__get_timebase_freq): Fix sense of a test in the
2691 static-linking version.
2692 * sysdeps/unix/sysv/linux/powerpc/Makefile
2693 (tests-static): Add test-gettimebasefreq-static.
2694 (tests): Likewise.
2695 * sysdeps/unix/sysv/linux/powerpc/test-gettimebasefreq-static.c:
2696 New file.
2697
2698 2019-06-19 Rafał Lużyński <digitalfreak@lingonborough.com>
2699
2700 [BZ #24614]
2701 * localedata/locales/nl_AW (n_sep_by_space): Set to 2 (a space
2702 between the currency symbol and the minus sign).
2703 (n_sign_posn): Set to 4 (the minus sign after the currency symbol).
2704
2705 2019-06-19 Stefan Liebler <stli@linux.ibm.com>
2706
2707 [BZ #24556]
2708 * string/test-strcasestr.c (check_result): Add NULL check.
2709 * nss/tst-field.c (check_rewrite): Likewise.
2710 * benchtests/bench-strstr.c (do_one_test): Likewise.
2711 * string/test-strstr.c (check_result): Likewise.
2712 * argp/argp-test.c (popt): Increase size of buf to 12.
2713 * benchtests/bench-malloc-simple.c (bench):
2714 Do not initialize tests array out of bounds.
2715
2716 2019-06-19 Florian Weimer <fweimer@redhat.com>
2717
2718 [BZ #24166]
2719 * dlfcn/dlfcn.h (Dl_serinfo): Do not use array of length 1 for
2720 dls_serpath field.
2721
2722 2019-06-18 Florian Weimer <fweimer@redhat.com>
2723
2724 [BZ #24323]
2725 * include/elf.h (DT_1_SUPPORTED_MASK): Include DF_1_PIE.
2726 * elf/dl-load.c (_dl_map_object_from_fd): Check for DF_1_PIE and
2727 fail when called from dlopen.
2728 * elf/Makefile [have-fpie && build-shared] (tests): Add
2729 tst-dlopen-pie.
2730 (tst-dlopen-pie): Link with -ldl.
2731 (tst-dlopen-pie.out): Add run-time dependency on tst-pie1.
2732 * elf/tst-dlopen-pie.c (do_test): New file.
2733
2734 2019-06-17 Rafał Lużyński <digitalfreak@lingonborough.com>
2735
2736 [BZ #24614]
2737 * localedata/Makefile (LOCALES): Add nl_NL.UTF-8.
2738 * localedata/locales/nl_NL (n_sep_by_space): Set to 2 (a space
2739 between the currency symbol and the minus sign).
2740 (n_sign_posn): Set to 4 (the minus sign after the currency symbol).
2741 * localedata/tst-strfmon1.c (tests): Add test data for nl_NL.UTF-8.
2742
2743 2019-06-17 Adhemerval Zanella <adhemerval.zanella@linaro.org>
2744
2745 * sysdeps/unix/sysv/linux/m68k/Makefile (sysdep_routines,
2746 sysdep-rtld-routines): Remove rules.
2747 * sysdeps/unix/sysv/linux/m68k/Versions (libc) [GLIBC_PRIVATE]:
2748 Remove __vdso_atomic_cmpxchg_32 and __vdso_atomic_barrier.
2749 (ld) [GLIBC_PRIVATE]: __rtld___vdso_read_tp,
2750 __rtld___vdso_atomic_cmpxchg_32, and __rtld___vdso_atomic_barrier.
2751 * sysdeps/unix/sysv/linux/m68k/coldfire/atomic-machine.h
2752 (atomic_compare_and_exchange_val_acq, atomic_full_barrier): Remove
2753 vDSO path for SHARED.
2754 * sysdeps/unix/sysv/linux/m68k/init-first.c: Remove file.
2755 * sysdeps/unix/sysv/linux/m68k/libc-m68k-vdso.c: Likewise.
2756 * sysdeps/unix/sysv/linux/m68k/m68k-helpers.S: Likewise.
2757 * sysdeps/unix/sysv/linux/m68k/m68k-vdso.c: Likewise.
2758 * sysdeps/unix/sysv/linux/m68k/m68k-vdso.h: Likewise.
2759 * sysdeps/unix/sysv/linux/m68k/m68k-helpers.c: New file.
2760
2761 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/Makefile
2762 (libm-sysdep_routines): Add s_llround-power8, s_llround-power6x,
2763 s_llround-power5+, s_llround-ppc64, and s_llroundf-ppc64.
2764 (CFLAGS-s_llround-power8.c, CFLAGS-s_llround-power6x.c,
2765 CFLAGS-s_llround-power5+.c): New rule.
2766 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_llround-power5+.c:
2767 New file.
2768 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_llround-power6x.c:
2769 Likewise.
2770 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_llround-power8.c:
2771 Likewise.
2772 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_llround-ppc64.c:
2773 Likewise.
2774 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_llroundf-ppc64.c:
2775 Likewise.
2776 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround.c: Move to ...
2777 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_llround.c: ... here.
2778 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llroundf.c: Move to ...
2779 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_llroundf.c: ... here.
2780 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_lround.c: Move to ...
2781 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_lround.c: ... here.
2782 * sysdeps/powerpc/powerpc64/fpu/Makefile
2783 [$(subdir) == math] (CFLAGS-s_llround.c): New rule.
2784 * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile
2785 (libm-sysdep_routines): Remove s_llround-* objects.
2786 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround-power5+.S: Remove
2787 file.
2788 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround-power6x.S:
2789 Likewise.
2790 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround-power8.S:
2791 Likewise.
2792 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround-ppc64.S:
2793 Likewise.
2794 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llroundf-ppc64.S:
2795 Likewise.
2796 * sysdeps/powerpc/powerpc64/fpu/s_llround.S: Likewise.
2797 * sysdeps/powerpc/powerpc64/fpu/s_llroundf.S: Likewise.
2798 * sysdeps/powerpc/powerpc64/fpu/s_lround.S: Likewise.
2799 * sysdeps/powerpc/powerpc64/fpu/s_lroundf.S: Likewise.
2800 * sysdeps/powerpc/powerpc64/fpu/s_llround.c: New file.
2801 * sysdeps/powerpc/powerpc64/fpu/s_llroundf.c: Likewise.
2802 * sysdeps/powerpc/powerpc64/fpu/s_lround.c: Likewise.
2803 * sysdeps/powerpc/powerpc64/fpu/s_lroundf.c: Likewise.
2804 * sysdeps/powerpc/powerpc64/power5+/fpu/s_llround.S: Likewise.
2805 * sysdeps/powerpc/powerpc64/power5+/fpu/s_llroundf.S: Likewise.
2806 * sysdeps/powerpc/powerpc64/power6x/fpu/s_llround.S: Likewise.
2807 * sysdeps/powerpc/powerpc64/power6x/fpu/s_llroundf.S: Likewise.
2808 * sysdeps/powerpc/powerpc64/power8/fpu/s_llround.S: Likewise.
2809 * sysdeps/powerpc/powerpc64/power8/fpu/s_llroundf.S: Likewise.
2810
2811 * sysdeps/powerpc/fpu/s_lrintf.S: Remove file.
2812 * sysdeps/powerpc/powerpc64/fpu/s_lrintf.c: Move to ...
2813 * sysdeps/powerpc/fpu/s_lrintf.c: ... here.
2814 * sysdeps/powerpc/powerpc32/fpu/Makefile
2815 [$(subdir) == math] (CFLAGS-s_lrint.c): New rule.
2816 * sysdeps/powerpc/powerpc32/fpu/s_llrint.c (__llrint): Add power4
2817 optimization.
2818 * sysdeps/powerpc/powerpc32/fpu/s_llrintf.c (__llrintf): Likewise.
2819 * sysdeps/powerpc/powerpc32/fpu/s_lrint.S: Remove file.
2820 * sysdeps/powerpc/powerpc32/fpu/s_lrint.c: New file.
2821 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile
2822 (CFLAGS-s_llrintf-power6.c, CFLAGS-s_llrintf-ppc32.c,
2823 CFLAGS-s_llrint-power6.c, CFLAGS-s_llrint-ppc32.c,
2824 CFLAGS-s_lrint-ppc32.c): New rule.
2825 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llrint-power6.S:
2826 Remove file.
2827 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llrint-ppc32.S:
2828 Likewise.
2829 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llrintf-power6.S:
2830 Likewise.
2831 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llrintf-ppc32.S:
2832 Likewise.
2833 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lrint-ppc32.S:
2834 Likewise.
2835 * sysdeps/powerpc/powerpc32/power4/fpu/s_llrint.S: Likewise.
2836 * sysdeps/powerpc/powerpc32/power4/fpu/s_llrintf.S: Likewise.
2837 * sysdeps/powerpc/powerpc32/power6/fpu/s_llrint.S: Likewise.
2838 * sysdeps/powerpc/powerpc32/power6/fpu/s_llrintf.S: Likewise.
2839 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llrint-power6.c:
2840 New file.
2841 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llrint-ppc32.c:
2842 Likewise.
2843 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llrintf-power6.c:
2844 Likewise.
2845 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llrintf-ppc32.c:
2846 Likewise.
2847 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lrint-ppc32.c:
2848 Likewise.
2849
2850 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/Makefile
2851 (libm-sysdep_routines): Add s_llrint-power8, s_llrint-power6x, and
2852 s_llrint-ppc64.
2853 (CFLAGS-s_llrint-power8.c, CFLAGS-s_llrint-power6x.c): New rule.
2854 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_llrint-power6x.c: New
2855 file.
2856 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_llrint-power8.c:
2857 Likewise.
2858 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_llrint-ppc64.c:
2859 Likewise.
2860 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_lrint.c: Move to ...
2861 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_lrint.c: ... here.
2862 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint.c: Move to ...
2863 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_llrint.c: ... here.
2864 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrintf.c: Move to ...
2865 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_llrintf.c: ... here.
2866 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_lrint.c: New file.
2867 * sysdeps/powerpc/powerpc64/fpu/Makefile: Likewise.
2868 * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile
2869 (libm-sysdep_routines): Remove s_llrint-* objects.
2870 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint-power6x.S: Remove
2871 file.
2872 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint-power8.S:
2873 Likewise.
2874 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint-ppc64.S: Likewise.
2875 * sysdeps/powerpc/powerpc64/fpu/s_llrint.c: New file.
2876 * sysdeps/powerpc/powerpc64/fpu/s_llrintf.c: Likewise.
2877 * sysdeps/powerpc/powerpc64/fpu/s_lrint.c: Likewise.
2878 * sysdeps/powerpc/powerpc64/fpu/s_lrintf.c: Likewise.
2879 * sysdeps/powerpc/powerpc64/fpu/s_llrint.S: Remove file.
2880 * sysdeps/powerpc/powerpc64/fpu/s_llrintf.S: Likewise.
2881 * sysdeps/powerpc/powerpc64/fpu/s_lrint.S: Likewise.
2882 * sysdeps/powerpc/powerpc64/power6x/fpu/s_llrint.S: Likewise.
2883 * sysdeps/powerpc/powerpc64/power8/fpu/s_llrint.S: Likewise.
2884
2885 2019-06-14 Florian Weimer <fweimer@redhat.com>
2886
2887 * sysdeps/unix/sysv/linux/bits/statx.h: Use string literal in
2888 argument to __glibc_has_include to inhibit macro expansion.
2889
2890 2019-06-14 Florian Weimer <fweimer@redhat.com>
2891
2892 * misc/sys/cdefs.h (__glibc_has_include): Do not use a
2893 function-like macro, so that __has_include can inhibit expansion
2894 of its argument.
2895
2896 2019-06-13 Joseph Myers <joseph@codesourcery.com>
2897
2898 * sysdeps/unix/sysv/linux/bits/in.h (IPV6_ROUTER_ALERT_ISOLATE):
2899 New macro.
2900
2901 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/localplt.data:
2902 Allow memset in libc.so.
2903
2904 2019-06-13 Szabolcs Nagy <szabolcs.nagy@arm.com>
2905
2906 * sysdeps/aarch64/dl-dtprocnum.h: New file.
2907 * sysdeps/aarch64/dl-machine.h (DT_AARCH64): Define.
2908 (elf_machine_runtime_setup): Handle DT_AARCH64_VARIANT_PCS.
2909 (elf_machine_lazy_rel): Check STO_AARCH64_VARIANT_PCS and bind such
2910 symbols at load time.
2911 * sysdeps/aarch64/linkmap.h (struct link_map_machine): Add variant_pcs.
2912
2913 2019-06-13 Szabolcs Nagy <szabolcs.nagy@arm.com>
2914
2915 * elf/elf.h (STO_AARCH64_VARIANT_PCS): Define.
2916 (DT_AARCH64_VARIANT_PCS): Define.
2917
2918 2019-06-12 Adhemerval Zanella <adhemerval.zanella@linaro.org>
2919
2920 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile
2921 (sysdeps_routines, libm-sysdep_routines): Remove s_finite*
2922 objects.
2923 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_finite-power7.S:
2924 Remove file.
2925 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_finite-ppc32.c:
2926 Likewise.
2927 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_finite.c: Likewise.
2928 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_finitef-ppc32.c:
2929 Likewise.
2930 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_finitef.c: Likewise.
2931 * sysdeps/powerpc/powerpc32/power7/fpu/s_finite.S: Likewise.
2932 * sysdeps/powerpc/powerpc32/power7/fpu/s_finitef.S: Likewise.
2933 * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile (sysdep_call):
2934 Remove s_finite* objects.
2935 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finite-power7.S: Remove file.
2936 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finite-power8.S: Likewise.
2937 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finite-ppc64.c: Likewise.
2938 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finite.c: Likewise.
2939 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finitef-ppc64.c: Likewise.
2940 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finitef.c: Likewise.
2941 * sysdeps/powerpc/powerpc64/power7/fpu/s_finite.S: Likewise.
2942 * sysdeps/powerpc/powerpc64/power7/fpu/s_finitef.S: Likewise.
2943 * sysdeps/powerpc/powerpc64/power8/fpu/s_finite.S: Likewise.
2944 * sysdeps/powerpc/powerpc64/power8/fpu/s_finitef.S: Likewise.
2945
2946 * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: Move to ...
2947 * sysdeps/ieee754/dbl-64/s_finite.c: ... here and format code.
2948
2949 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile
2950 (sysdeps_routines, libm-sysdep_routines): Remove s_isinf* and s_isinf*
2951 objects.
2952 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isinf-power7.S:
2953 Remove file.
2954 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isinf-ppc32.c:
2955 Likewise.
2956 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isinf.c: Likewise.
2957 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isinff-ppc32.c:
2958 Likewise.
2959 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isinff.c: Likewise.
2960 * sysdeps/powerpc/powerpc32/power7/fpu/s_isinf.S: Likewise.
2961 * sysdeps/powerpc/powerpc32/power7/fpu/s_isinff.S: Likewise.
2962 * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile (sysdep_call):
2963 Remove s_isinf* and s_isinf* objects.
2964 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinf-power7.S: Likewise.
2965 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinf-power8.S: Likewise.
2966 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinf-ppc64.c: Likewise.
2967 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinf.c: Likewise.
2968 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinff-ppc64.c: Likewise.
2969 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinff.c: Likewise.
2970 * sysdeps/powerpc/powerpc64/power7/fpu/s_isinf.S: Likewise.
2971 * sysdeps/powerpc/powerpc64/power7/fpu/s_isinff.S: Likewise.
2972 * sysdeps/powerpc/powerpc64/power8/fpu/s_isinf.S: Likewise.
2973 * sysdeps/powerpc/powerpc64/power8/fpu/s_isinff.S: Likewise.
2974
2975 * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf.c: Move to ...
2976 * sysdeps/ieee754/dbl-64/s_isinf.c: ... here and format code.
2977
2978 * sysdeps/powerpc/fpu/s_isnan.c: Remove file.
2979 * sysdeps/powerpc/fpu/s_isnanf.S: Likewise.
2980 * sysdeps/powerpc/powerpc32/fpu/s_isnan.S: Likewise.
2981 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile
2982 (sysdeps_routines, libm-sysdep_routines): Remove s_isnan-* and
2983 s_isnanf-* objects.
2984 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isnan-power5.S:
2985 Remove file
2986 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isnan-power6.S:
2987 Likewise.
2988 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isnan-power7.S:
2989 Likewise.
2990 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isnan-ppc32.S:
2991 Likewise.
2992 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isnan.c: Likewise.
2993 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isnanf-power5.S:
2994 Likewise.
2995 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isnanf-power6.S:
2996 Likewise.
2997 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isnanf.c: Likewise.
2998 * sysdeps/powerpc/powerpc32/power5/fpu/s_isnan.S: Likewise.
2999 * sysdeps/powerpc/powerpc32/power5/fpu/s_isnanf.S: Likewise.
3000 * sysdeps/powerpc/powerpc32/power6/fpu/s_isnan.S: Likewise.
3001 * sysdeps/powerpc/powerpc32/power6/fpu/s_isnanf.S: Likewise.
3002 * sysdeps/powerpc/powerpc32/power7/fpu/s_isnan.S: Likewise.
3003 * sysdeps/powerpc/powerpc32/power7/fpu/s_isnanf.S: Likewise.
3004 * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile (sysdep_calls):
3005 Remove s_isnan-* and s_isnanf-* objects.
3006 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power5.S: Likewise.
3007 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power6.S: Likewise.
3008 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power6x.S:
3009 Likewise.
3010 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power7.S: Likewise.
3011 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power8.S: Likewise.
3012 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-ppc64.S: Likewise.
3013 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan.c: Likewise.
3014 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnanf.c: Likewise.
3015 * sysdeps/powerpc/powerpc64/fpu/s_isnan.S: Likewise.
3016 * sysdeps/powerpc/powerpc64/power5/fpu/s_isnan.S: Likewise.
3017 * sysdeps/powerpc/powerpc64/power6/fpu/s_isnan.S: Likewise.
3018 * sysdeps/powerpc/powerpc64/power6x/fpu/s_isnan.S: Likewise.
3019 * sysdeps/powerpc/powerpc64/power7/fpu/s_isnan.S: Likewise.
3020 * sysdeps/powerpc/powerpc64/power7/fpu/s_isnanf.S: Likewise.
3021 * sysdeps/powerpc/powerpc64/power8/fpu/s_isnan.S: Likewise.
3022 * sysdeps/powerpc/powerpc64/power8/fpu/s_isnanf.S: Likewise.
3023
3024 * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Move to ...
3025 * sysdeps/ieee754/dbl-64/s_isnan.c: ... here and format code.
3026
3027 * benchtests/Makefile (bench-math): Add isnan, isinf, and isfinite.
3028 (CFLAGS-bench-isnan.c, CFLAGS-bench-isinf.c,
3029 CFLAGS-bench-isfinite.c): New rule.
3030 * benchtests/isnan-input: New file.
3031 * benchtests/isinf-input: New file.
3032 * benchtests/isfinite-input: New file.
3033
3034 * sysdeps/powerpc/fpu/s_copysign.c: New file.
3035 * sysdeps/powerpc/fpu/s_copysignf.c: Likewise.
3036 * sysdeps/powerpc/powerpc32/fpu/s_copysign.S: Remove file.
3037 * sysdeps/powerpc/powerpc32/fpu/s_copysignf.S: Likewise.
3038 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile
3039 (sysdep_routines, libm-sysdep_routines): Remove s_copysign-power6 and
3040 s_copysign-ppc32.
3041 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_copysign-power6.S:
3042 Remove file.
3043 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_copysign-ppc32.S:
3044 Likewise.
3045 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_copysign.c:
3046 Likewise.
3047 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_copysignf.c:
3048 Likewise.
3049 * sysdeps/powerpc/powerpc32/power6/fpu/s_copysign.S: Likewise.
3050 * sysdeps/powerpc/powerpc32/power6/fpu/s_copysignf.S: Likewise.
3051 * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile (sysdeps_calls):
3052 Remove s_copysign-power6 s_copysign-ppc64.
3053 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysign-power6.S:
3054 Remove file.
3055 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysign-ppc64.S:
3056 Likewise.
3057 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysign.c: Likewise.
3058 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysignf.c: Likewise.
3059 * sysdeps/powerpc/powerpc64/fpu/s_copysign.S: Likewise.
3060 * sysdeps/powerpc/powerpc64/fpu/s_copysignf.S: Likewise.
3061 * sysdeps/powerpc/powerpc64/power6/fpu/s_copysign.S: Likewise.
3062 * sysdeps/powerpc/powerpc64/power6/fpu/s_copysignf.S: Likewise.
3063
3064 * sysdeps/powerpc/fpu/round_to_integer.h (set_fenv_mode,
3065 round_to_integer_float, round_mode): Add RINT handling.
3066 (reset_fenv_mode): New symbol.
3067 * sysdeps/powerpc/fpu/s_rint.c (__rint): Use generic implementation.
3068 * sysdeps/powerpc/fpu/s_rintf.c (__rintf): Likewise.
3069 * sysdeps/powerpc/powerpc32/fpu/s_rint.S: Remove file.
3070 * sysdeps/powerpc/powerpc32/fpu/s_rintf.S: Likewise.
3071 * sysdeps/powerpc/powerpc64/fpu/s_rint.S: Likewise.
3072 * sysdeps/powerpc/powerpc64/fpu/s_rintf.S: Likewise.
3073
3074 2019-06-12 Florian Weimer <fweimer@redhat.com>
3075
3076 [BZ #24632]
3077 * libio/libioP.h (_IO_JUMPS_FUNC_UPDATE): New macro.
3078 * libio/freopen.c (freopen): Use it.
3079
3080 2019-06-12 Florian Weimer <fweimer@redhat.com>
3081
3082 Linux: Deprecate sysctl.
3083 * include/sysctl.h (__sysctl): Remove declaration.
3084 * scripts/check-installed-headers.sh (sys/sysctl.h): Disable
3085 check.
3086 * sysdeps/unix/sysv/linux/sys/sysctl.h: Add deprecation warning.
3087 (sysctl): Add deprecation attribute.
3088 * sysdeps/unix/sysv/linux/sysctl.c: Include <linux/sysctl.h>
3089 directly, to avoid the deprecation warning. Do not include
3090 <string.h>.
3091 (__sysctl): Remove hidden alias.
3092
3093 2019-06-12 Florian Weimer <fweimer@redhat.com>
3094
3095 Linux: Use kernel headers for statx definitions if available.
3096 * include/bits/statx-generic.h: New file.
3097 * include/bits/types/struct_statx.h: Likewise.
3098 * include/bits/types/struct_statx_timestamp.h: Likewise.
3099 * io/Makefile (headers): Add bits/statx-generic.h.
3100 * io/bits/statx-generic.h: New file. Partly copied from
3101 io/bits/statx.h.
3102 * io/statx_generic.c: Include <bits/types/struct_statx.h> to
3103 define original_statx.
3104 * io/bits/types/struct_statx.h: Likewise.
3105 * io/bits/types/struct_statx_timestamp.h: Likewise.
3106 (statx_generic): Use original_statx.
3107 * io/bits/statx.h: Rewrite to include <bits/statx-generic.h>.
3108 * sysdeps/unix/sysv/linux/bits/statx.h: New file.
3109
3110 2019-06-12 Florian Weimer <fweimer@redhat.com>
3111
3112 * misc/sys/cdefs.h (__glibc_has_include): Define.
3113
3114 2019-06-12 Wilco Dijkstra <wdijkstr@arm.com>
3115
3116 * string/memmem.c (__memmem): Rewrite to improve performance.
3117
3118 2019-06-12 Wilco Dijkstra <wdijkstr@arm.com>
3119
3120 * string/str-two-way.h (two_way_short_needle): Add inline to avoid
3121 warning.
3122 (two_way_long_needle): Block inlining.
3123 * string/strstr.c (strstr2): Add new function.
3124 (strstr3): Likewise.
3125 (STRSTR): Completely rewrite strstr to improve performance.
3126
3127 2019-06-11 Wilco Dijkstra <wdijkstr@arm.com>
3128
3129 * benchtests/bench-strstr.c (test_hard_needle): New function.
3130
3131 2019-06-10 Joseph Myers <joseph@codesourcery.com>
3132
3133 * malloc/tst-calloc.c: Include <libc-diag.h>.
3134 (null_test): Ignore -Wunused-result around calls to calloc.
3135 * malloc/tst-mallocfork.c: Include <libc-diag.h>.
3136 (do_test): Ignore -Wunused-result around call to malloc.
3137
3138 2019-06-07 Florian Weimer <fweimer@redhat.com>
3139
3140 Linux: Add getdents64 system call.
3141 * include/dirnent.h (getdents): Add comment and change buffer
3142 argument type to void *.
3143 (getdents64): Likewise. Add hidden prototype.
3144 * sysdeps/unix/sysv/linux/bits/Versions (GLIBC_2.30): Export
3145 getdents64.
3146 * sysdeps/unix/sysv/linux/Makefile [$(subdir) == dirent] (tests):
3147 Add tst-getdents64.
3148 * sysdeps/unix/sysv/linux/bits/unistd_ext.h (getdents64): Declare.
3149 * sysdeps/unix/sysv/linux/getdents.c (__getdents): Change buffer
3150 argument type to void *.
3151 * sysdeps/unix/sysv/linux/getdents64.c (__getdents64): Likewise.
3152 Add hidden definition and getdents64 alias.
3153 * sysdeps/unix/sysv/linux/mips/mips64/getdents64.c (__getdents64):
3154 Likewise.
3155 * sysdeps/unix/sysv/linux/tst-getdents64.c: New file.
3156 * manual/filesys.texi (Accessing Directories): Add Low-level
3157 Directory Access node reference.
3158 (Opening a Directory): Cross-reference it.
3159 (Low-level Directory Access): New node.
3160 * sysdeps/unix/sysv/linux/aarch64/libc.abilist (GLIBC_2.30): Add
3161 getdents64.
3162 * sysdeps/unix/sysv/linux/alpha/libc.abilist (GLIBC_2.30):
3163 Likewise.
3164 * sysdeps/unix/sysv/linux/arm/libc.abilist (GLIBC_2.30): Likewise.
3165 * sysdeps/unix/sysv/linux/csky/libc.abilist (GLIBC_2.30):
3166 Likewise.
3167 * sysdeps/unix/sysv/linux/hppa/libc.abilist (GLIBC_2.30):
3168 Likewise.
3169 * sysdeps/unix/sysv/linux/i386/libc.abilist (GLIBC_2.30):
3170 Likewise.
3171 * sysdeps/unix/sysv/linux/ia64/libc.abilist (GLIBC_2.30):
3172 Likewise.
3173 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist (GLIBC_2.30):
3174 Likewise.
3175 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist (GLIBC_2.30):
3176 Likewise.
3177 * sysdeps/unix/sysv/linux/microblaze/libc.abilist (GLIBC_2.30):
3178 Likewise.
3179 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist
3180 (GLIBC_2.30): Likewise.
3181 * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist
3182 (GLIBC_2.30): Likewise.
3183 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist
3184 (GLIBC_2.30): Likewise.
3185 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist
3186 (GLIBC_2.30): Likewise.
3187 * sysdeps/unix/sysv/linux/nios2/libc.abilist (GLIBC_2.30):
3188 Likewise.
3189 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist
3190 (GLIBC_2.30): Likewise.
3191 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist
3192 (GLIBC_2.30): Likewise.
3193 * sysdeps/unix/sysv/linux/powerpc/powerpc64/be/libc.abilist
3194 (GLIBC_2.30): Likewise.
3195 * sysdeps/unix/sysv/linux/powerpc/powerpc64/le/libc.abilist
3196 (GLIBC_2.30): Likewise.
3197 * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist (GLIBC_2.30):
3198 Likewise.
3199 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist (GLIBC_2.30):
3200 Likewise.
3201 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist (GLIBC_2.30):
3202 Likewise.
3203 * sysdeps/unix/sysv/linux/sh/libc.abilist (GLIBC_2.30): Likewise.
3204 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist (GLIBC_2.30):
3205 Likewise.
3206 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist (GLIBC_2.30):
3207 Likewise.
3208 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist (GLIBC_2.30):
3209 Likewise.
3210 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist (GLIBC_2.30):
3211 Likewise.
3212
3213 2019-06-06 Paul A. Clarke <pc@us.ibm.com>
3214
3215 * sysdeps/powerpc/fpu_control.h (_FPU_MASK_RC): New.
3216 (__FPU_MFFS): New.
3217 (__FPU_MFFSL): New.
3218 (_FPU_GET_RC): New.
3219 (_FPU_GETCW): Use __FPU_MFFS().
3220 * sysdeps/powerpc/fpu/get-rounding-mode.h: New file.
3221
3222 2019-06-06 Florian Weimer <fweimer@redhat.com>
3223
3224 * sysdeps/unix/sysv/linux/riscv/flush-icache.c: Do not use
3225 internal GCC preprocessor identifier __has_include__.
3226
3227 2019-06-05 Paul A. Clarke <pc@us.ibm.com>
3228
3229 * sysdeps/powerpc/fpu/fegetexcept.c (__fegetexcept): Replace code
3230 with call to equivalent function.
3231
3232 2019-06-04 Florian Weimer <fweimer@redhat.com>
3233
3234 * iconv/gconv_dl.c (release_handle): Remove file-level definition.
3235 (do_release_shlib): Adjust for __twalk_r.
3236 (__gconv_release_shlib): Call __twalk_r.
3237
3238 2019-06-04 Andreas Schwab <schwab@suse.de>
3239
3240 [BZ #18830]
3241 * iconv/skeleton.c (FUNCTION_NAME): Use RESET_INPUT_BUFFER only if
3242 no irreversible characters occurred.
3243 * iconv/gconv_simple.c (internal_ucs4_loop)
3244 (internal_ucs4_loop_unaligned, internal_ucs4_loop_single)
3245 (ucs4_internal_loop, ucs4_internal_loop_unaligned)
3246 (ucs4_internal_loop_single, internal_ucs4le_loop)
3247 (internal_ucs4le_loop_unaligned, internal_ucs4le_loop_single)
3248 (ucs4le_internal_loop, ucs4le_internal_loop_unaligned)
3249 (ucs4le_internal_loop_single): Add const to outend.
3250 * sysdeps/s390/multiarch/gconv_simple.c (internal_ucs4le_loop)
3251 (ucs4_internal_loop, ucs4le_internal_loop): Likewise.
3252 * iconv/Makefile (tests): Add tst-iconv7.
3253 * iconv/tst-iconv7.c: New file.
3254
3255 2019-06-03 Joseph Myers <joseph@codesourcery.com>
3256
3257 * inet/netinet/in.h (INADDR_ALLSNOOPERS_GROUP): New macro.
3258
3259 2019-06-01 Florian Weimer <fweimer@redhat.com>
3260
3261 arm: Remove ioperm/iopl/inb/inw/inl/outb/outw/outl support.
3262 * sysdeps/unix/sysv/linux/arm/Makefile
3263 [$(subdir) == misc] (sysdep_headers): Remove sys/io.h.
3264 * sysdeps/unix/sysv/linux/arm/sys/io.h: Remove file.
3265 * sysdeps/unix/sysv/linux/arm/ioperm.c: Rewrite file.
3266 (ioperm, iopl, inb, inw, inl, outb, outw, outl): Turn into
3267 compatibility symbols.
3268
3269 2019-05-31 Florian Weimer <fweimer@redhat.com>
3270
3271 * sysdeps/unix/sysv/linux/syscall-names.list: Add oddly named
3272 system calls for the arm architecture: breakpoint, get_tls,
3273 set_tls, usr26, usr32.
3274
3275 2019-05-30 Gabriel F. T. Gomes <gabrielftg@linux.ibm.com>
3276
3277 * sysdeps/powerpc/Makefile
3278 [$(subdir) == misc] (CFLAGS-tst-set_ppr.c): New variable.
3279 * sysdeps/powerpc/powerpc64/power4/memcmp.S [__LITTLE_ENDIAN__]:
3280 Declare '.machine power7' to get support for ldbrx.
3281 * sysdeps/powerpc/powerpc64/power7/strncmp.S: Declare '.machine'
3282 directive based on the directory of the file.
3283 * sysdeps/powerpc/powerpc64/power8/fpu/s_llround.S: Likewise.
3284 * sysdeps/powerpc/powerpc64/power8/strcmp.S: Likewise.
3285 * sysdeps/powerpc/powerpc64/power8/strcasecmp.S: Update
3286 '.machine' directive.
3287 (VCLZD_V8_v7, MFVRD_R3_V1, VSUBUDM_V9_V8, VPOPCNTD_V8_V8)
3288 (VADDUQM_V7_V8): Remove.
3289 (__STRCASECMP): Replace macros with actual instructions.
3290 * sysdeps/powerpc/powerpc64/power8/strcasestr.S: Update
3291 '.machine' directive.
3292 (VCLZD_V8_v7): Remove.
3293 (STRCASESTR): Replace VCLZD_V8_v7 with actual instruction.
3294
3295 2019-05-29 Adhemerval Zanella <adhemerval.zanella@linaro.org>
3296
3297 * sysdeps/unix/sysv/linux/sparc/sparc32/sparcv9/get_clockfreq.c:
3298 Remove file.
3299 * sysdeps/unix/sysv/linux/x86_64/get_clockfreq.c: Likewise.
3300
3301 2019-05-28 Adhemerval Zanella <adhemerval.zanella@linaro.org>
3302
3303 * sysdeps/powerpc/fpu/round_to_integer.h (set_fenv_mode): Add
3304 NEARBYINT handling.
3305 * sysdeps/powerpc/fpu/s_nearbyint.c: New file.
3306 * sysdeps/powerpc/fpu/s_nearbyintf.c: Likewise.
3307 * sysdeps/powerpc/powerpc32/fpu/s_nearbyint.S: Remove file.
3308 * sysdeps/powerpc/powerpc32/fpu/s_nearbyintf.S: Likewise.
3309 * sysdeps/powerpc/powerpc64/fpu/s_nearbyint.S: Likewise.
3310 * sysdeps/powerpc/powerpc64/fpu/s_nearbyintf.S: Likewise.
3311
3312 2019-05-28 mansayk <6688000@gmail.com>
3313
3314 [BZ #24370]
3315 * localedata/locales/tt_RU (lang_name): Add from CLDR-35.1.
3316
3317 2019-05-28 mansayk <6688000@gmail.com>
3318
3319 [BZ #24369]
3320 * localedata/locales/tt_RU (mon): Update from CLDR-35.1, fix errors.
3321 (abmon): Likewise, but remove the trailing dots.
3322
3323 2019-05-28 Joseph Myers <joseph@codesourcery.com>
3324
3325 * inet/netinet/igmp.h (IGMP_MRDISC_ADV): New macro.
3326
3327 2019-05-27 Florian Weimer <fweimer@redhat.com>
3328
3329 * nptl/nptl-init.c: Add comment.
3330
3331 2019-05-24 Florian Weimer <fweimer@redhat.com>
3332
3333 * resolv/nss_dns/dns-host.c (getanswer_r): Be more explicit about
3334 struct in_addr/struct in6_addr alignment.
3335
3336 2019-05-23 Joseph Myers <joseph@codesourcery.com>
3337
3338 * sysdeps/unix/sysv/linux/bits/fcntl-linux.h [__USE_GNU]
3339 (F_SEAL_FUTURE_WRITE): New macro.
3340
3341 2019-05-23 Alexandra Hájková <ahajkova@redhat.com>
3342
3343 * elf/Makefile (test-container): Add tst-ldconfig-bad-aux-cache.
3344 * elf/tst-ldconfig-bad-aux-cache.c: New file.
3345 * elf/tst-ldconfig_aux-cache.root: New directory.
3346 * elf/tst-ldconfig-bad-aux-cache.root/postclean.req: New file.
3347 * elf/tst-ldconfig-bad-aux-cache.root/etc: New directory.
3348 * elf/tst-ldconfig-bad-aux-cache.root/etc/ld.so.conf: New file.
3349
3350 2019-05-22 Zack Weinberg <zackw@panix.com>
3351
3352 * sysdeps/powerpc/preconfigure: Error out on powerpc-*-*gnuspe*
3353 host type.
3354 * scripts/build-many-glibcs.py: Remove powerpc-*-linux-gnuspe
3355 and powerpc-*-linux-gnuspe-e500v1 from list of build configurations.
3356
3357 * sysdeps/powerpc/powerpc32/e500: Recursively delete.
3358 * sysdeps/unix/sysv/linux/powerpc/powerpc32/e500: Recursively delete.
3359 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/context-e500.h:
3360 Delete.
3361
3362 * sysdeps/powerpc/fpu_control.h: Remove SPE variant.
3363 Issue an #error if used with a compiler in SPE-float mode.
3364 * sysdeps/powerpc/powerpc32/__longjmp_common.S
3365 * sysdeps/powerpc/powerpc32/setjmp_common.S
3366 * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext-common.S
3367 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/getcontext.S
3368 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/setcontext.S
3369 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/swapcontext.S
3370 * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext-common.S
3371 * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S:
3372 Remove code to preserve SPE register state.
3373
3374 * sysdeps/unix/sysv/linux/powerpc/elision-lock.c
3375 * sysdeps/unix/sysv/linux/powerpc/elision-trylock.c
3376 * sysdeps/unix/sysv/linux/powerpc/elision-unlock.c:
3377 Remove __SPE__ ifndefs.
3378
3379 2019-05-21 Wilco Dijkstra <wdijkstr@arm.com>
3380
3381 * benchtests/bench-memcpy-random.c (do_one_test): Use medium iterations.
3382 * benchtests/bench-memcpy-walk.c (test_main): Reduce alignment tests.
3383 * benchtests/bench-memmem.c (do_one_test): Use small iterations.
3384 * benchtests/bench-memmove-walk.c (test_main): Reduce alignment tests.
3385 * benchtests/bench-memset-walk.c (test_main): Reduce alignment tests.
3386 * benchtests/bench-strcasestr.c (do_one_test): Use small iterations.
3387 * benchtests/bench-string.h (INNER_LOOP_ITERS): Increase iterations.
3388 (INNER_LOOP_ITERS_MEDIUM): New define.
3389 (INNER_LOOP_ITERS_SMALL): New define.
3390 * benchtests/bench-strpbrk.c (do_one_test): Use medium iterations.
3391 * benchtests/bench-strsep.c (do_one_test): Use small iterations.
3392 * benchtests/bench-strspn.c (do_one_test): Use medium iterations.
3393 * benchtests/bench-strstr.c (do_one_test): Use small iterations.
3394 * benchtests/bench-strtok.c (do_one_test): Use small iterations.
3395
3396 2019-05-21 Adhemerval Zanella <adhemerval.zanella@linaro.org>
3397
3398 * sysdeps/unix/sysv/linux/powerpc/ipc_priv.h (SEMTIMEDOP_IPC_ARGS):
3399 New define.
3400 * sysdeps/unix/sysv/linux/sparc/sparc64/ipc_priv.h
3401 (SEMTIMEDOP_IPC_ARGS): Likewise.
3402
3403 2019-05-21 Florian Weimer <fweimer@redhat.com>
3404
3405 [BZ #24584]
3406 * wcsmbs/wcsmbsload.c (__wcsmbs_clone_conv): Acquire __gconv_lock
3407 before updating __counter field and release it afterwards. Add
3408 overflow check.
3409 * iconv/gconv.h (struct __gconv_step): Mention synchronization
3410 requirement for __counter member.
3411
3412 2019-05-21 Florian Weimer <fweimer@redhat.com>
3413
3414 [BZ #24583]
3415 * wcsmbs/wcsmbsload.h (__wcsmbs_close_conv): Declare.
3416 * wcsmbs/wcsmbsload.c (__wcsmbs_close_conv): Define.
3417 * libio/iofclose.c (_IO_new_fclose): Call __wcsmbs_close_conv
3418 instead of __gconv_release_step.
3419 * libio/Makefile (tests): Add tst-wfile-gconv.
3420 (tests-container): Add tst-wfile-ascii.
3421 (tst-wfile-gconv-ENV): Enable mtrace.
3422 (generated): Add tst-wfile-gconv.mtrace, tst-wfile-gconv.check.
3423 (tests-special): Add tst-wfile-gconv-mem.out.
3424 (tst-wfile-gconv.out): Depend on locales.
3425 (tst-wfile-gconv-mem.out): Add mtrace rule.
3426 * libio/tst-wfile-ascii.c: New file.
3427 * libio/tst-wfile-gconv.c: Likewise.
3428
3429 2019-05-20 Florian Weimer <fweimer@redhat.com>
3430
3431 [BZ #24588]
3432 libio: Remove codecvt vtable.
3433 * libio/fileops.c ( _IO_new_file_fopen): Do not copy
3434 __libio_codecvt.
3435 * libio/iofgetpos.c (_IO_new_fgetpos): Call
3436 __libio_codecvt_encoding.
3437 * libio/iofgetpos64.c (_IO_new_fgetpos): Likewise.
3438 * libio/iofsetpos.c (_IO_new_fsetpos): Likewise.
3439 * libio/iofsetpos64.c (_IO_new_fsetpos): Likewise.
3440 * libio/iofwide.c (__libio_codecvt): Remove variable.
3441 (_IO_fwide): Do not copy __libio_codecvt.
3442 (__libio_codecvt_out): Rename from do_out and export.
3443 (do_unshift): Remove function.
3444 (__libio_codecvt_in): Rename from do_in and export.
3445 (__libio_codecvt_encoding): Rename from do_encoding and export.
3446 (do_always_noconv): Remove function.
3447 (__libio_codecvt_length): Rename from do_length and export.
3448 (do_max_length): Remove function.
3449 * libio/libio.h (enum __codecvt_result): Remove definition; moved
3450 to libioP.h.
3451 (struct _IO_codecvt): Remove fields __codecvt_destr,
3452 __codecvt_do_out, __codecvt_do_unshift, __codecvt_do_in,
3453 __codecvt_do_encoding, __codecvt_do_always_noconv,
3454 __codecvt_do_length, __codecvt_do_max_length.
3455 * libio/libioP.h (enum __codecvt_result): Define; moved from
3456 libio.h.
3457 (__libio_codecvt_out, __libio_codecvt_in)
3458 (__libio_codecvt_encoding, __libio_codecvt_length): Declare
3459 functions.
3460 * libio/wfileops.c (_IO_wdo_write): Call __libio_codecvt_out.
3461 (_IO_wfile_underflow): Call __libio_codecvt_in.
3462 (_IO_wfile_underflow): Likewise.
3463 (_IO_wfile_underflow_mmap): Likewise.
3464 (_IO_wfile_sync): Call __libio_codecvt_encoding,
3465 __libio_codecvt_length.
3466 (adjust_wide_data): Call __libio_codecvt_encoding,
3467 __libio_codecvt_in.
3468 (do_ftell_wide): Call __libio_codecvt_length, __libio_codecvt_out.
3469 (_IO_wfile_seekoff): Call __libio_codecvt_encoding,
3470 __libio_codecvt_length.
3471
3472 2019-05-20 Florian Weimer <fweimer@redhat.com>
3473
3474 * support/support.h (support_sbindir_prefix): Declare.
3475 (support_install_rootsbindir): Update comment.
3476 * support/Makefile (CFLAGS-support_paths.c): Define SBINDIR_PATH.
3477 * support/support_paths.c (support_sbindir_prefix): Define.
3478
3479 2019-05-20 Mike Crowe <mac@mcrowe.com>
3480
3481 * support/timespec.c: Add backslash to correct newline in failure
3482 message.
3483
3484 * support/timespec.h: Correct confusing comment.
3485
3486 2019-05-20 Adhemerval Zanella <adhemerval.zanella@linaro.org>
3487
3488 * sysdeps/unix/sysv/linux/ipc_priv.h (SEMTIMEDOP_IPC_ARGS): New
3489 define.
3490 * sysdpes/unix/sysv/linux/s390/ipc_priv.h: New file.
3491 * sysdeps/unix/sysv/linux/s390/semtimedop.c: Remove file.
3492 * sysdeps/unix/sysv/linux/semtimedop.c (semtimedop): Use
3493 SEMTIMEDOP_IPC_ARGS for calls with __NR_ipc.
3494
3495 [BZ #24570]
3496 * sysdeps/unix/sysv/linux/msgctl.c (__old_msgctl): Remove __IPC_64
3497 usage.
3498
3499 2019-05-20 Joseph Myers <joseph@codesourcery.com>
3500
3501 * elf/elf.h (NT_ARM_PACA_KEYS): New macro.
3502 (NT_ARM_PACG_KEYS): Likewise.
3503
3504 2019-05-17 Wilco Dijkstra <wdijkstr@arm.com>
3505
3506 * malloc/malloc.c (MAX_TCACHE_COUNT): Increase to UINT16_MAX.
3507 (tcache_put): Remove redundant assert.
3508 (tcache_get): Remove redundant asserts.
3509 (__libc_malloc): Check tcache count is not zero.
3510 * manual/tunables.texi (glibc.malloc.tcache_count): Update maximum.
3511
3512 2019-05-17 Florian Weimer <fweimer@redhat.com>
3513
3514 * manual/llio.texi (Open-time Flags): Document O_DIRECTORY.
3515
3516 2019-05-16 Joseph Myers <joseph@codesourcery.com>
3517
3518 * sysdeps/unix/sysv/linux/alpha/kernel-features.h
3519 (__ASSUME_STATFS64): Only undefine if [__LINUX_KERNEL_VERSION <
3520 0x050100].
3521 * sysdeps/unix/sysv/linux/ia64/kernel-features.h (__ASSUME_STATX):
3522 Likewise.
3523 * sysdeps/unix/sysv/linux/sh/kernel-features.h
3524 (__ASSUME_STATX): Likewise.
3525
3526 2019-05-16 Florian Weimer <fweimer@redhat.com>
3527
3528 * nis/nss_nis/nis-hosts.c (EXTRA_ARGS, EXTRA_ARGS_DECL): Remove
3529 flags argument.
3530 (LINE_PARSER): Do not map IPv4 addresses.
3531 (internal_nis_gethostent_r): Remove flags argument. Adjust call
3532 to parse_line.
3533 (_nss_nis_gethostent_r): Always pass AF_INET to
3534 internal_nis_gethostent_r.
3535 (internal_gethostbyname2_r): Remove flags argument. Adjust call
3536 to parse_line.
3537 (_nss_nis_gethostbyname2_r): Adjust call to
3538 internal_nis_gethostent_r.
3539 (_nss_nis_gethostbyname_r): Do not attempt IPv6 query. Adjust
3540 call to internal_nis_gethostent_r.
3541 (_nss_nis_gethostbyaddr_r): Do not request IPv4 address mapping
3542 from parse_line.
3543 (_nss_nis_gethostbyname4_r):Adjust call to parse_line.
3544 * nis/nss_nisplus/nisplus-hosts.c (_nss_nisplus_parse_hostent):
3545 Remove flags argument. Do not map IPv4 addresses.
3546 (internal_nisplus_gethostent_r): Adjust call to
3547 _nss_nisplus_parse_hostent.
3548 (internal_gethostbyname2_r): Remove flags argument. Adjust call
3549 to _nss_nisplus_parse_hostent.
3550 (_nss_nisplus_gethostbyname2_r): Adjust call to
3551 internal_gethostbyname2_r.
3552 (_nss_nisplus_gethostbyname_r): Do not perform IPv6 lookup.
3553 Adjust call to internal_gethostbyname2_r.
3554 (_nss_nisplus_gethostbyaddr_r): Adjust call to
3555 _nss_nisplus_parse_hostent.
3556 (_nss_nisplus_gethostbyname4_r): Adjust call to
3557 internal_gethostbyname2_r.
3558
3559 2019-05-16 Florian Weimer <fweimer@redhat.com>
3560
3561 * nss/nss_files/files-hosts.c (EXTRA_ARGS, EXTRA_ARGS_DECL):
3562 Remove flags.
3563 (LINE_PARSER): Remove address mapping.
3564 (EXTRA_ARGS_VALUE): Remove flags argument.
3565 (gethostbyname3_multi): Likewise. Adjust call to internal_getent.
3566 (_nss_files_gethostbyname3_r): Adjust calls to internal_getent and
3567 gethostbyname3_multi.
3568 (_nss_files_gethostbyname_r): Always use AF_INET. Adjust call to
3569 _nss_files_gethostbyname3_r.
3570 (_nss_files_gethostbyname4_r): Adjust call to internal_getent.
3571
3572 2019-05-16 Florian Weimer <fweimer@redhat.com>
3573
3574 * support/support_test_compare_blob.c (report_blob): Report
3575 incorrect NULL blobs.
3576
3577 2019-05-15 Mark Wielaard <mark@klomp.org>
3578
3579 [BZ# 24476]
3580 * dlfcn/dlerror.c (__dlerror_main_freeres): Guard using
3581 __libc_once_get (once) and static_buf == NULL.
3582 (__dlerror): Check we have a valid key, set result to static_buf
3583 otherwise.
3584
3585 2019-05-15 Andreas Schwab <schwab@suse.de>
3586
3587 [BZ #20568]
3588 * libio/wfileops.c (_IO_wfile_sync): Correct last argument to
3589 __codecvt_do_length.
3590 * libio/Makefile (tests): Add tst-wfile-sync.
3591 ($(objpfx)tst-wfile-sync.out): Depend on $(gen-locales).
3592 * libio/tst-wfile-sync.c: New file.
3593 * libio/tst-wfile-sync.input: New file.
3594
3595 2019-05-15 Florian Weimer <fweimer@redhat.com>
3596
3597 nss: Turn __nss_database_lookup into a compatibility symbol.
3598 * nss/nsswitch.h (__nss_database_lookup2): Renamed from
3599 __nss_database_lookup.
3600 * nss/nsswitch.c (__nss_database_lookup2): Likewise.
3601 (nss_load_all_libraries): Call __nss_database_lookup2 instead of
3602 __nss_database_lookup.
3603 (__nss_next): Move to …
3604 * nss/compat-lookup.c (nss_next): … here. Change it to fail
3605 unconditionally.
3606 (__nss_database_lookup): New function.
3607 * nss/Versions (GLIBC_2.0): Update comment.
3608 (GLIBC_PRIVATE): Export __nss_database_lookup2.
3609 * grp/initgroups.c (internal_getgrouplist): Call
3610 __nss_database_lookup2 instead of __nss_database_lookup.
3611 * nscd/aicache.c (addhstaiX): Likewise.
3612 * nscd/initgrcache.c (addinitgroupsX): Likewise.
3613 * nscd/netgroupcache.c (addgetnetgrentX): Likewise.
3614 * nss/XXX-lookup.c (DB_LOOKUP_FCT): Likewise.
3615 * nss/nss_compat/compat-grp.c (init_nss_interface): Likewise.
3616 * nss/nss_compat/compat-initgroups.c (init_nss_interface):
3617 Likewise.
3618 * nss/nss_compat/compat-pwd.c (init_nss_interface): Likewise.
3619 * nss/nss_compat/compat-spwd.c (init_nss_interface): Likewise.
3620 * sysdeps/posix/getaddrinfo.c (gaih_inet): Likewise.
3621
3622 2019-05-15 Alexandra Hájková <ahajkova@redhat.com>
3623
3624 * support/support.h (support_install_rootsbindir): New variable.
3625 * support/support_paths.c: Likewise.
3626 * support/Makefile (CFLAGS-support_paths.c): Add -DROOTSBINDIR_PATH.
3627
3628 2019-05-15 Florian Weimer <fweimer@redhat.com>
3629
3630 * iconv/gconv.h (__gconv_transliterate): Move declaration …
3631 * iconv/gconv_int.h (__gconv_transliterate): … here.
3632 * iconv/loop.c: Include <iconv/gconv_int.h> instead of <gconv.h>.
3633 * iconv/skeleton.c: Likewise.
3634
3635 2019-05-14 Florian Weimer <fweimer@redhat.com>
3636
3637 Linux: Add the tgkill function.
3638 * bits/signal_ext.h: New file.
3639 * manual/signal.texi (Signaling Another Process): Document tgkill.
3640 * signal/Makefile (headers): Add bits/signal_ext.h.
3641 * signal/signal.h: Include <bits/signal_ext.h>.
3642 * sysdeps/unix/sysv/linux/Makefile (tests): Add tst-tgkill.
3643 (tst-tgkill): Link with libpthread.
3644 * sysdeps/unix/sysv/linux/Versions (GLIBC_2.30): Export tgkill.
3645 * sysdeps/unix/sysv/linux/bits/signal_ext.h: New file.
3646 * sysdeps/unix/sysv/linux/bits/tst-tgkill.c: Likewise.
3647 * sysdeps/unix/sysv/linux/aarch64/libc.abilist (GLIBC_2.30): Add
3648 tgkill.
3649 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
3650 * sysdeps/unix/sysv/linux/arm/libc.abilist: Likewise.
3651 * sysdeps/unix/sysv/linux/csky/libc.abilist: Likewise.
3652 * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
3653 * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
3654 * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
3655 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
3656 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
3657 * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
3658 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
3659 * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist:
3660 Likewise.
3661 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
3662 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
3663 * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise.
3664 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
3665 Likewise.
3666 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
3667 Likewise.
3668 * sysdeps/unix/sysv/linux/powerpc/powerpc64/be/libc.abilist:
3669 Likewise.
3670 * sysdeps/unix/sysv/linux/powerpc/powerpc64/le/libc.abilist:
3671 Likewise.
3672 * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist: Likewise.
3673 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
3674 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
3675 * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
3676 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
3677 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
3678 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
3679 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
3680
3681 2019-05-14 Carlos O'Donell <carlos@redhat.com>
3682
3683 * manual/search.texi (Tree Search Function): Adjust twalk_r
3684 documentation.
3685
3686 2019-05-14 Adhemerval Zanella <adhemerval.zanella@linaro.org>
3687
3688 [BZ #24544]
3689 * elf/tst-pldd.c (do_test): Use support_bindir_prefix instead of
3690 pre-defined value.
3691
3692 * support/Makefile (CFLAGS-support_paths.c): Add -DBINDIR_PATH.
3693 * support/support.h (support_bindir_prefix): New variable.
3694 * support/support_paths.c [BINDIR_PATH] (support_bindir_prefix):
3695
3696 * config.make.in (bindir): New variable.
3697
3698 * sysdeps/nptl/lowlevellock.h (__lll_trylock): New macro.
3699 (lll_trylock): Call __lll_trylock.
3700 * sysdeps/unix/sysv/linux/i386/libc-lowlevellock.S: Remove file.
3701 * sysdeps/unix/sysv/linux/i386/lll_timedlock_wait.c: Likewise.
3702 * sysdeps/unix/sysv/linux/i386/lowlevellock.S: Likewise.
3703 * sysdeps/unix/sysv/linux/i386/lowlevellock.h: Likewise.
3704 * sysdeps/unix/sysv/linux/x86_64/libc-lowlevellock.S: Likewise.
3705 * sysdeps/unix/sysv/linux/x86_64/lll_timedlock_wait.c: Likewise.
3706 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.S: Likewise.
3707 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h: Likewise.
3708 * sysdeps/unix/sysv/linux/x86/lowlevellock.h: New file.
3709 * sysdeps/unix/sysv/linux/x86_64/cancellation.S: Include
3710 lowlevellock-futex.h.
3711
3712 * nptl/nptl-init.c (__pthread_initialize_minimal_internal): Remove
3713 initialization for LLL_LOCK_INITIALIZER different than 0.
3714 * nptl/old_pthread_cond_broadcast.c (__pthread_cond_broadcast_2_0):
3715 Assume LLL_LOCK_INITIALIZER being 0.
3716 * nptl/old_pthread_cond_signal.c (__pthread_cond_signal_2_0): Likewise.
3717 * nptl/old_pthread_cond_timedwait.c (__pthread_cond_timedwait_2_0):
3718 Likewise.
3719 * nptl/old_pthread_cond_wait.c (__pthread_cond_wait_2_0): Likewise.
3720 * sysdeps/nptl/libc-lockP.h (__libc_lock_define_initialized): Likewise.
3721
3722 * nptl/lowlevellock.c (__lll_lock_wait, __lll_lock_wait_private):
3723 Optimize futex call and add systemtap probe.
3724
3725 * nptl/pthreadP.h (CANCEL_ASYNC, CANCEL_RESET, LIBC_CANCEL_ASYNC,
3726 LIBC_CANCEL_RESET, __libc_enable_asynccancel,
3727 __libc_disable_asynccancel, __librt_enable_asynccancel,
3728 __libc_disable_asynccancel, __librt_enable_asynccancel,
3729 __librt_disable_asynccancel): Move to ...
3730 * sysdeps/unix/sysv/linux/sysdep-cancel.h: ... here.
3731 (SINGLE_THREAD_P, RTLD_SINGLE_THREAD_P): Move to ...
3732 * sysdeps/unix/sysv/linux/single-thread.h: ... here.
3733 * sysdeps/generic/single-thread.h: New file.
3734 * sysdeps/unix/sysdep.h: Include single-thread.h.
3735 * sysdeps/unix/sysv/linux/futex-internal.h: Include sysdep-cancel.h.
3736 * sysdeps/unix/sysv/linux/lowlevellock-futex.h: Likewise.
3737
3738 2019-05-08 Mike FABIAN <mfabian@redhat.com>
3739
3740 [BZ #24535]
3741 * localedata/unicode-gen/Makefile (UNICODE_VERSION): Set to 12.1.0.
3742 * localedata/unicode-gen/DerivedCoreProperties.txt: Update to
3743 Unicode 12.1.0.
3744 * localedata/unicode-gen/EastAsianWidth.txt: Likewise.
3745 * localedata/unicode-gen/PropList.txt: Likewise.
3746 * localedata/unicode-gen/UnicodeData.txt: Likewise.
3747 * localedata/charmaps/UTF-8: Regenerate.
3748 * localedata/locales/i18n_ctype: Likewise.
3749 * localedata/locales/tr_TR: Likewise.
3750 * localedata/locales/translit_circle: Likewise.
3751 * localedata/locales/translit_cjk_compat: Likewise.
3752 * localedata/locales/translit_combining: Likewise.
3753 * localedata/locales/translit_compat: Likewise.
3754 * localedata/locales/translit_font: Likewise.
3755 * localedata/locales/translit_fraction: Likewise.
3756
3757 2019-05-10 Wilco Dijkstra <wdijkstr@arm.com>
3758
3759 [BZ #24531]
3760 * malloc/malloc.c (MAX_TCACHE_COUNT): New define.
3761 (do_set_tcache_count): Only update if count is small enough.
3762 * manual/tunables.texi (glibc.malloc.tcache_count): Document max value.
3763
3764 2019-05-10 Florian Weimer <fweimer@redhat.com>
3765
3766 * nptl/sem_close.c (struct walk_closure): Define.
3767 (walker): Adjust for __twalk_r.
3768 (sem_close): Call __twalk_r.
3769
3770 2019-05-09 Adhemerval Zanella <adhemerval.zanella@linaro.org>
3771
3772 * support/timespec.c (test_timespec_before_impl,
3773 test_timespec_equal_or_after_impl): print timespec member as intmax_t
3774 insted of long int.
3775
3776 2019-05-09 Mike Crowe <mac@mcrowe.com>
3777
3778 * nptl/tst-abstime.c: Use libsupport.
3779
3780 * nptl/tst-rwlock6.c: Use libsupport. This also happens to fix a
3781 small bug where only tv.tv_usec was checked which could cause an
3782 erroneous pass if pthread_rwlock_timedrdlock incorrectly took more
3783 than a second.
3784
3785 * nptl/tst-rwlock7.c, nptl/tst-rwlock9.c, nptl/tst-rwlock14.c: Use
3786 libsupport.
3787
3788 * nptl/tst-sem5.c (do_test): Use xclock_gettime, timespec_add and
3789 TEST_TIMESPEC_NOW_OR_AFTER from libsupport.
3790
3791 * nptl/tst-cond11.c: Use libsupport.
3792
3793 * support/timespec.h: New file. Provide timespec helper functions
3794 along with macros in the style of those in check.h.
3795 * support/timespec.c: New file. Implement check functions declared
3796 in support/timespec.h.
3797 * support/timespec-add.c: New file from gnulib containing
3798 timespec_add implementation that handles overflow.
3799 * support/timespec-sub.c: New file from gnulib containing
3800 timespec_sub implementation that handles overflow.
3801 * support/README: Mention timespec.h.
3802
3803 2019-05-09 Szabolcs Nagy <szabolcs.nagy@arm.com>
3804
3805 [BZ #24537]
3806 * nptl/Makefile: Move tst-eintr1 to xtests.
3807
3808 2019-05-09 Adhemerval Zanella <adhemerval.zanella@linaro.org>
3809
3810 * sysdeps/powerpc/fpu/trunc_to_integer.h (set_fenv_mode): Add
3811 TRUNC handling.
3812 (round_mode): Add definition for TRUNC.
3813 * sysdeps/powerpc/fpu/s_trunc.c: New file.
3814 * sysdeps/powerpc/fpu/s_truncf.c: New file.
3815 * sysdeps/powerpc/powerpc32/fpu/s_trunc.S: Remove file.
3816 * sysdeps/powerpc/powerpc32/fpu/s_truncf.S: Likewise.
3817 * sysdep/powerpc/powepc32/power4/fpu/multiarch/s_trunc-power5+.S:
3818 Likewise.
3819 * sysdep/powerpc/powepc32/power4/fpu/multiarch/s_trunc-ppc32.S:
3820 Likewise.
3821 * sysdep/powerpc/powepc32/power4/fpu/multiarch/s_truncf-power5+.S:
3822 Likewise.
3823 * sysdep/powerpc/powepc32/power4/fpu/multiarch/s_truncf-ppc32.S:
3824 Likewise.
3825 * sysdep/powerpc/powepc32/power4/fpu/multiarch/s_trunc-power5+.c: New
3826 file.
3827 * sysdep/powerpc/powepc32/power4/fpu/multiarch/s_trunc-ppc32.c:
3828 Likewise.
3829 * sysdep/powerpc/powepc32/power4/fpu/multiarch/s_truncf-power5+.c:
3830 Likewise.
3831 * sysdep/powerpc/powepc32/power4/fpu/multiarch/s_truncf-ppc32.c:
3832 Likewise.
3833 * sysdep/powerpc/powerpc32/power5+/fpu/s_trunc.S: Remove file.
3834 * sysdep/powerpc/powerpc32/power5+/fpu/s_truncf.S: Likewise.
3835 * sysdep/powerpc/powerpc64/be/fpu/multiarch/Makefile
3836 (libm-sysdep_routines): Add s_trunc-power5+, s_trunc-ppc64,
3837 s_truncf-power5+, and s_truncf-ppc64.
3838 (CFLAGS-s_trunc-power5+.c, CFLAGS-s_truncf-power5+.c): New rule.
3839 * sysdep/powerpc/powercp64/be/fpu/multiarch/s_trunc-power5+.c: New
3840 file.
3841 * sysdep/powerpc/powercp64/be/fpu/multiarch/s_trunc-ppc64.c: Likewise.
3842 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_trunc.c: Move to ...
3843 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_trunc.c: ... here.
3844 * sysdep/powerpc/powercp64/be/fpu/multiarch/s_truncf-power5+.c: New
3845 file.
3846 * sysdep/powerpc/powercp64/be/fpu/multiarch/s_truncf-ppc64.c:
3847 Likewise.
3848 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_truncf.c: Move to ...
3849 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_truncf.c: ... here.
3850 * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile
3851 (libm-sysdep_routines): Remove s_trunc-power5+, s_trunc-ppc64,
3852 s_truncf-power5+, and s_truncf-ppc64.
3853 * sysdep/powerpc/powerpc64/fpu/multiarch/s_trunc-power5+.S: Remove
3854 file.
3855 * sysdep/powerpc/powerpc64/fpu/multiarch/s_trunc-ppc64.S: Likewise.
3856 * sysdep/powerpc/powerpc64/fpu/multiarch/s_truncf-power5+.S:
3857 Likewise.
3858 * sysdep/powerpc/powerpc64/fpu/multiarch/s_truncf-ppc64.S: Likewise.
3859 * sysdeps/powerpc/powerpc64/fpu/s_trunc.S: Likewise.
3860 * sysdeps/powerpc/powerpc64/fpu/s_truncf.S: Likewise.
3861 * sysdep/powerpc/powerpc64/power5+/fpu/s_trunc.S: Likewise.
3862 * sysdep/powerpc/powerpc64/power5+/fpu/s_truncf.S: Likewise.
3863
3864 * sysdeps/powerpc/fpu/round_to_integer.h (set_fenv_mode): Add
3865 ROUND handling.
3866 (round_mode): Add definition for ROUND.
3867 (round_to_integer_float): Likewise.
3868 * sysdeps/powerpc/fpu/s_round.c: New file.
3869 * sysdeps/powerpc/fpu/s_roundf.c: New file.
3870 * sysdeps/powerpc/powerpc32/fpu/s_round.S: Remove file.
3871 * sysdeps/powerpc/powerpc32/fpu/s_roundf.S: Likewise.
3872 * sysdep/powerpc/powepc32/power4/fpu/multiarch/s_round-power5+.S:
3873 Likewise.
3874 * sysdep/powerpc/powepc32/power4/fpu/multiarch/s_round-ppc32.S:
3875 Likewise.
3876 * sysdep/powerpc/powepc32/power4/fpu/multiarch/s_roundf-power5+.S:
3877 Likewise.
3878 * sysdep/powerpc/powepc32/power4/fpu/multiarch/s_roundf-ppc32.S:
3879 Likewise.
3880 * sysdep/powerpc/powepc32/power4/fpu/multiarch/s_round-power5+.c: New
3881 file.
3882 * sysdep/powerpc/powepc32/power4/fpu/multiarch/s_round-ppc32.c:
3883 Likewise.
3884 * sysdep/powerpc/powepc32/power4/fpu/multiarch/s_roundf-power5+.c:
3885 Likewise.
3886 * sysdep/powerpc/powepc32/power4/fpu/multiarch/s_roundf-ppc32.c:
3887 Likewise.
3888 * sysdep/powerpc/powerpc32/power5+/fpu/s_round.S: Remove file.
3889 * sysdep/powerpc/powerpc32/power5+/fpu/s_roundf.S: Likewise.
3890 * sysdep/powerpc/powerpc64/be/fpu/multiarch/Makefile
3891 (libm-sysdep_routines): Add s_round-power5+, s_round-ppc64,
3892 s_roundf-power5+, and s_roundf-ppc64.
3893 (CFLAGS-s_round-power5+.c, CFLAGS-s_roundf-power5+.c): New rule.
3894 * sysdep/powerpc/powercp64/be/fpu/multiarch/s_round-power5+.c: New
3895 file.
3896 * sysdep/powerpc/powercp64/be/fpu/multiarch/s_round-ppc64.c: Likewise.
3897 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_round.c: Move to ...
3898 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_round.c: ... here.
3899 * sysdep/powerpc/powercp64/be/fpu/multiarch/s_roundf-power5+.c: New
3900 file.
3901 * sysdep/powerpc/powercp64/be/fpu/multiarch/s_roundf-ppc64.c:
3902 Likewise.
3903 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_roundf.c: Move to ...
3904 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_roundf.c: ... here.
3905 * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile
3906 (libm-sysdep_routines): Remove s_round-power5+, s_round-ppc64,
3907 s_roundf-power5+, and s_roundf-ppc64.
3908 * sysdep/powerpc/powerpc64/fpu/multiarch/s_round-power5+.S: Remove
3909 file.
3910 * sysdep/powerpc/powerpc64/fpu/multiarch/s_round-ppc64.S: Likewise.
3911 * sysdep/powerpc/powerpc64/fpu/multiarch/s_roundf-power5+.S:
3912 Likewise.
3913 * sysdep/powerpc/powerpc64/fpu/multiarch/s_roundf-ppc64.S: Likewise.
3914 * sysdeps/powerpc/powerpc64/fpu/s_round.S: Likewise.
3915 * sysdeps/powerpc/powerpc64/fpu/s_roundf.S: Likewise.
3916 * sysdep/powerpc/powerpc64/power5+/fpu/s_round.S: Likewise.
3917 * sysdep/powerpc/powerpc64/power5+/fpu/s_roundf.S: Likewise.
3918
3919 * sysdeps/powerpc/fpu/round_to_integer.h (set_fenv_mode):
3920 Add FLOOR option.
3921 (round_mode): Add definition for FLOOR.
3922 * sysdeps/powerpc/fpu/s_floor.c: New file.
3923 * sysdeps/powerpc/fpu/s_floorf.c: Likewise.
3924 * sysdeps/powerpc/powerpc32/fpu/s_floor.S: Remove file.
3925 * sysdeps/powerpc/powerpc32/fpu/s_floorf.S: Likewise.
3926 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floor-power5+.S:
3927 Remove file.
3928 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floor-ppc32.S:
3929 Likewise
3930 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floorf-power5+.S:
3931 Likewise.
3932 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floorf-ppc32.S:
3933 Likewise.
3934 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floor-power5+.c:
3935 New file.
3936 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floor-ppc32.c:
3937 Likewise.
3938 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floorf-power5+.c:
3939 Likewise.
3940 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floorf-ppc32.c:
3941 Likewise.
3942 * sysdeps/powerpc/powerpc32/power5+/fpu/s_floor.S: Remove file.
3943 * sysdeps/powerpc/powerpc32/power5+/fpu/s_floorf.S: Remove file.
3944 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/Makefile
3945 (libm-sysdep_routines): Add s_floor-power5+, s_floor-ppc64,
3946 s_floorf-power5+, and s_floorf-ppc64.
3947 (CFLAGS-s_floor-power5+.c, CFLAGS-s_floorf-power5+.c): New rule.
3948 * sysdep/powerpc/powerpc64/be/fpu/multiarch/s_floor-power5+.c: New
3949 file.
3950 * sysdep/powerpc/powerpc64/be/fpu/multiarch/s_floor-ppc64.c: Likewise.
3951 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floor.c: Move to ...
3952 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_floor.c: ... here.
3953 * sysdep/powerpc/powerpc64/be/fpu/multiarch/s_floorf-power5+.c: New
3954 file.
3955 * sysdep/powerpc/powerpc64/be/fpu/multiarch/s_floorf-ppc64.c:
3956 Likewise.
3957 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floorf.c: Move to ...
3958 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_floorf.c: ... here.
3959 * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile
3960 (libm-sysdep_routines): Remove s_floor-power5+, s_floor-ppc64,
3961 s_floorf-power5+, and s_floorf-ppc64.
3962 * sysdep/powerpc/powerpc64/fpu/multiarch/s_floor-power5+.S: Remove
3963 file.
3964 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floor-ppc64.S: Remove
3965 file.
3966 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floorf-power5+.S:
3967 Likewise.
3968 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floorf-ppc64.S:
3969 Likewise.
3970 * sysdeps/powerpc/powerpc64/fpu/s_floor.S: Likewise.
3971 * sysdeps/powerpc/powerpc64/fpu/s_floorf.S: Likewise.
3972 * sysdeps/powerpc/powerpc64/power5+/fpu/s_floor.S: Likewise.
3973 * sysdeps/powerpc/powerpc64/power5+/fpu/s_floorf.S: Likewise.
3974
3975 2019-05-08 Mike Crowe <mac@mcrowe.com>
3976
3977 * support/xclock_gettime.c (xclock_gettime): New file. Provide
3978 clock_gettime wrapper for use in tests that fails the test rather
3979 than returning failure.
3980
3981 * support/xtime.h: New file to declare xclock_gettime.
3982
3983 * support/Makefile: Add xclock_gettime.c.
3984
3985 * support/README: Mention xtime.h.
3986
3987 2019-05-08 Florian Weimer <fweimer@redhat.com>
3988
3989 malloc/tst-mallocfork2: Use process-shared barriers.
3990 * malloc/tst-mallocfork2.c: Switch to <support/test-driver.c>.
3991 (signal_count, sigusr1_sender_pid): Remove.
3992 (iterations): Define constant.
3993 (shared): New variable.
3994 (sigusr1_received): Update comment.
3995 (sigusr1_handler): Do not send SIGSTOP to the sender process.
3996 (signal_sender): Optional use barriers to avoid sending signals
3997 during irrelevant times.
3998 (do_it): Initialize variable shared. Use xfork for error
3999 checking. Launch multiple SIGUSR1-sending subprocesses. Limit
4000 the iteration count, independent of signal delivery. Check for
4001 deadlocks in fork. Introduce barriers for reducing signal
4002 traffic. Do not send SIGCONT to the SIGUSR1-sending processes;
4003 replaced by the barriers. Count signals during fork/free/malloc
4004 and report them.
4005 * malloc/Makefile (tst-mallocfork): Link with libpthread.
4006
4007 2019-05-07 Joseph Myers <joseph@codesourcery.com>
4008
4009 * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
4010 version to 5.1.
4011 (clock_adjtime64) New syscall.
4012 (clock_getres_time64) Likewise.
4013 (clock_gettime64) Likewise.
4014 (clock_nanosleep_time64) Likewise.
4015 (clock_settime64) Likewise.
4016 (futex_time64) Likewise.
4017 (io_pgetevents_time64) Likewise.
4018 (io_uring_enter) Likewise.
4019 (io_uring_register) Likewise.
4020 (io_uring_setup) Likewise.
4021 (mq_timedreceive_time64) Likewise.
4022 (mq_timedsend_time64) Likewise.
4023 (pidfd_send_signal) Likewise.
4024 (ppoll_time64) Likewise.
4025 (pselect6_time64) Likewise.
4026 (recvmmsg_time64) Likewise.
4027 (rt_sigtimedwait_time64) Likewise.
4028 (sched_rr_get_interval_time64) Likewise.
4029 (semtimedop_time64) Likewise.
4030 (timer_gettime64) Likewise.
4031 (timer_settime64) Likewise.
4032 (timerfd_gettime64) Likewise.
4033 (timerfd_settime64) Likewise.
4034 (utimensat_time64) Likewise.
4035
4036 * scripts/build-many-glibcs.py (Context.checkout): Default GCC
4037 version to 9 branch.
4038
4039 2019-05-03 Anton Youdkevitch <anton.youdkevitch@bell-sw.com>
4040
4041 * sysdeps/aarch64/multiarch/ifunc-impl-list.c: Added
4042 __memmove_thunderx2 to the list of implementations
4043 * sysdeps/aarch64/multiarch/memmove.c: Likewise
4044 * sysdeps/aarch64/multiarch/memcpy_thunderx2.S:
4045 (__memmove_thunderx2): Rewritten using SIMD ld/st
4046 (__memcpy_thunderx2): Fixed handling overlapping cases.
4047 Used ldp/stp instead of ldr/str if possible. Made loops
4048 tails branchless.
4049
4050 2019-05-03 Florian Weimer <fweimer@redhat.com>
4051
4052 * misc/tst-tsearch.c (walk_tree): Add more error checking.
4053
4054 2019-05-02 Adhemerval Zanella <adhemerval.zanella@linaro.org>
4055
4056 [BZ #24506]
4057 * elf/tst-pldd.c (in_str_list): New function.
4058 (do_test): Add default names for ld and libc as one option.
4059
4060 2019-05-02 Florian Weimer <fweimer@redhat.com>
4061
4062 misc: Add twalk_r function.
4063 * include/search.h (__twalk_r): Declare.
4064 * manual/examples/twalk.c: New file.
4065 * manual/search.texi (Tree Search Function): Document twalk_r.
4066 * misc/Versions (2.30): Export twalk_r.
4067 (GLIBC_PRIVATE): Export __twalk_r.
4068 * misc/search.h [__USE_GNU] (twalk_r): Declare.
4069 * misc/tsearch.c (trecurse_r, __twalk_r): New functions.
4070 (twalk_r): Add weak alias.
4071 * misc/tst-tsearch.c (struct walk_trace_element): Define.
4072 (walk_trace): New variable.
4073 (struct twalk_with_twalk_r_closure): Define.
4074 (twalk_with_twalk_r_action): New function.
4075 (twalk_with_twalk_r): Likewise.
4076 (walk_action): Call walk_trace_add.
4077 (walk_tree_with): Rename from walk_tree. Add walk argument.
4078 (walk_tree): New function.
4079 * sysdeps/mach/hurd/i386/libc.abilist (GLIBC_2.30): Add twalk_r.
4080 * sysdeps/unix/sysv/linux/aarch64/libc.abilist (GLIBC_2.30):
4081 Likewise.
4082 * sysdeps/unix/sysv/linux/alpha/libc.abilist (GLIBC_2.30):
4083 Likewise.
4084 * sysdeps/unix/sysv/linux/arm/libc.abilist (GLIBC_2.30): Likewise.
4085 * sysdeps/unix/sysv/linux/csky/libc.abilist (GLIBC_2.30): Likewise.
4086 * sysdeps/unix/sysv/linux/hppa/libc.abilist (GLIBC_2.30): Likewise.
4087 * sysdeps/unix/sysv/linux/i386/libc.abilist (GLIBC_2.30): Likewise.
4088 * sysdeps/unix/sysv/linux/ia64/libc.abilist (GLIBC_2.30): Likewise.
4089 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist (GLIBC_2.30):
4090 Likewise.
4091 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist (GLIBC_2.30):
4092 Likewise.
4093 * sysdeps/unix/sysv/linux/microblaze/libc.abilist (GLIBC_2.30):
4094 Likewise.
4095 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist
4096 (GLIBC_2.30): Likewise.
4097 * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist
4098 (GLIBC_2.30): Likewise.
4099 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist
4100 (GLIBC_2.30): Likewise.
4101 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist
4102 (GLIBC_2.30): Likewise.
4103 * sysdeps/unix/sysv/linux/nios2/libc.abilist (GLIBC_2.30):
4104 Likewise.
4105 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist
4106 (GLIBC_2.30): Likewise.
4107 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist
4108 (GLIBC_2.30): Likewise.
4109 * sysdeps/unix/sysv/linux/powerpc/powerpc64/be/libc.abilist
4110 (GLIBC_2.30): Likewise.
4111 * sysdeps/unix/sysv/linux/powerpc/powerpc64/le/libc.abilist
4112 (GLIBC_2.30): Likewise.
4113 * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist (GLIBC_2.30):
4114 Likewise.
4115 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist (GLIBC_2.30):
4116 Likewise.
4117 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist (GLIBC_2.30):
4118 Likewise.
4119 * sysdeps/unix/sysv/linux/sh/libc.abilist (GLIBC_2.30): Likewise.
4120 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist (GLIBC_2.30):
4121 Likewise.
4122 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist (GLIBC_2.30):
4123 Likewise.
4124 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist (GLIBC_2.30):
4125 Likewise.
4126 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist (GLIBC_2.30):
4127 Likewise.
4128
4129 2019-04-30 Paul Eggert <eggert@cs.ucla.edu>
4130
4131 Make mktime etc. compatible with __time64_t
4132 Keep these functions compatible with Gnulib while adding
4133 __time64_t support. The basic idea is to move private API
4134 declarations from include/time.h to time/mktime-internal.h, since
4135 the former file cannot easily be shared with Gnulib whereas the
4136 latter can.
4137 Also, do some other minor cleanup while in the neighborhood.
4138 * include/time.h: Include stdbool.h, time/mktime-internal.h.
4139 (__mktime_internal): Move this prototype to time/mktime-internal.h,
4140 since Gnulib needs it.
4141 (__localtime64_r, __gmtime64_r) [__TIMESIZE == 64]:
4142 Move these macros to time/mktime-internal.h, since Gnulib needs them.
4143 (__mktime64, __timegm64) [__TIMESIZE != 64]: New prototypes.
4144 (in_time_t_range): New static function.
4145 * posix/bits/types.h (__time64_t): Move to time/mktime-internal.h,
4146 so that glibc users are not tempted to use __time64_t.
4147 * time/mktime-internal.h: Rewrite so that it does both glibc
4148 and Gnulib work. Include time.h if not _LIBC.
4149 (mktime_offset_t) [!_LIBC]: Define for gnulib.
4150 (__time64_t): New type or macro, moved here from
4151 posix/bits/types.h.
4152 (__gmtime64_r, __localtime64_r, __mktime64, __timegm64)
4153 [!_LIBC || __TIMESIZE == 64): New macros, mostly moved here
4154 from include/time.h.
4155 (__gmtime_r, __localtime_r, __mktime_internal) [!_LIBC]:
4156 New macros, taken from GNulib.
4157 (__mktime_internal): New prototype, moved here from include/time.h.
4158 * time/mktime.c (mktime_min, mktime_max, convert_time)
4159 (ranged_convert, __mktime_internal, __mktime64):
4160 * time/timegm.c (__timegm64):
4161 Use __time64_t, not time_t.
4162 * time/mktime.c: Stop worrying about whether time_t is floating-point.
4163 (__mktime64) [! (_LIBC && __TIMESIZE != 64)]:
4164 Rename from mktime.
4165 (mktime) [_LIBC && __TIMESIZE != 64]: New function.
4166 * time/timegm.c [!_LIBC]: Include libc-config.h, not config.h,
4167 for libc_hidden_def.
4168 Include errno.h.
4169 (__timegm64) [! (_LIBC && __TIMESIZE != 64)]:
4170 Rename from timegm.
4171 (timegm) [_LIBC && __TIMESIZE != 64]: New function.
4172
4173 2019-04-30 Maciej W. Rozycki <macro@wdc.com>
4174
4175 [BZ #19444]
4176 * sysdeps/ieee754/soft-fp/s_ddivl.c (__ddivl): Ignore errors
4177 from `-Wmaybe-uninitialized'.
4178 * sysdeps/ieee754/soft-fp/s_fdivl.c (__fdivl): Likewise.
4179
4180 2019-04-29 Adhemerval Zanella <adhemerval.zanella@linaro.org>
4181
4182 * sysdeps/powerpc/fpu/fenv_libc.h (__fesetround_inline_nocheck): New
4183 function.
4184 * sysdeps/powerpc/fpu/round_to_integer.h: New file.
4185 * sysdeps/powerpc/fpu/s_ceil.c: Likewise.
4186 * sysdeps/powerpc/fpu/s_ceilf.c: Likewise.
4187 * sysdeps/powerpc/powerpc32/fpu/s_ceil.S: Remove file.
4188 * sysdeps/powerpc/powerpc32/fpu/s_ceilf.S: Likewise.
4189 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile
4190 (CFLAGS-s_ceil-power5+.c, CFLAGS-s_ceilf-power5+.c): New rule.
4191 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceil-power5+.S:
4192 Remove file.
4193 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceil-ppc32.S:
4194 Likewise.
4195 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceilf-power5+.S:
4196 Likewise.
4197 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceilf-ppc32.S:
4198 Likewise.
4199 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceil-power5+.c:
4200 New file.
4201 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceil-ppc32.c:
4202 Likewise.
4203 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceilf-power5+.c:
4204 Likewise.
4205 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceilf-ppc32.c:
4206 Likewise.
4207 * sysdeps/powerpc/powerpc32/power5+/fpu/s_ceil.S: Remove file.
4208 * sysdeps/powerpc/powerpc32/power5+/fpu/s_ceilf.S: Likewise.
4209 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/Makefile: New file.
4210 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_ceil-power5+.c:
4211 Likewise.
4212 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_ceil-ppc64.c:
4213 Likewise.
4214 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceil.c: Move to ...
4215 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_ceil.c: ... here.
4216 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_ceilf-power5+.c: New
4217 file.
4218 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_ceilf-ppc64.c:
4219 Likewise.
4220 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceilf.c: Move to ...
4221 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_ceilf.c: ...
4222 * here.
4223 * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile
4224 (libm-sysdep_routines): Remove s_ceil-power5+, s_ceil-ppc64,
4225 s_ceilf-power5+, and s_ceilf-ppc64.
4226 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceil-power5+.S: Remove
4227 file.
4228 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceil-ppc64.S: Likewise.
4229 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceilf-power5+.S: Likewise.
4230 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceilf-ppc64.S: Likewise.
4231 * sysdeps/powerpc/powerpc64/fpu/s_ceil.S: Likewise.
4232 * sysdeps/powerpc/powerpc64/fpu/s_ceilf.S: Likewise.
4233 * sysdeps/powerpc/powerpc64/power5+/fpu/s_ceil.S: Likewise.
4234 * sysdeps/powerpc/powerpc64/power5+/fpu/s_ceilf.S: Likewise.
4235
4236 * sysdeps/powerpc/power4/fpu/Makefile: Remove file.
4237 * sysdeps/powerpc/power4/fpu/mpa-arch.h: Likewise.
4238 * sysdeps/powerpc/power4/fpu/mpa.c: Likewise.
4239
4240 2019-04-29 Yann Droneaud <ydroneaud@opteya.com>
4241
4242 * sysdeps/pthread/semaphore.h (sem_init): Add __nonnull attribute.
4243 (sem_destroy, sem_open, sem_close, sem_unlink): Likewise.
4244 (sem_wait, sem_timedwait, sem_trywait, sem_post): Likewise.
4245 (sem_getvalue): Likewise.
4246
4247 2019-04-26 Florian Weimer <fweimer@redhat.com>
4248
4249 elf: Link sotruss-lib.so with BIND_NOW for --enable-bind-now.
4250 * elf/Makefile (LDFLAGS-sotruss-lib.so): Set.
4251
4252 2019-04-26 Florian Weimer <fweimer@redhat.com>
4253
4254 Makeconfig: Move -Wl,-rpath-link options before library references.
4255 * Makeconfig (+link-pie, +link): Add $(link-libc-rpath-link).
4256 (link-libc): Remove $(link-libc-rpath-link).
4257
4258 2019-04-25 Florian Weimer <fweimer@redhat.com>
4259
4260 * Makeconfig (+link-pie-before-libc): Remove $(CC).
4261 (+link-pie, +link-pie-tests, +link-pie-printers-tests): Add $(CC).
4262 (+link-static-before-libc): Remove $(CC).
4263 (+link-static, +link-static-tests): Add $(CC).
4264 (+link-before-libc): Remove $(CC).
4265 (+link, +link-pie, +link-pie-printers): Add $(CC).
4266
4267 2019-04-26 Florian Weimer <fweimer@redhat.com>
4268
4269 * Makeconfig (+link-pie-before-libc): Remove $(CC).
4270 (+link-pie, +link-pie-tests, +link-pie-printers-tests): Add $(CC).
4271 (+link-static-before-libc): Remove $(CC).
4272 (+link-static, +link-static-tests): Add $(CC).
4273 (+link-before-libc): Remove $(CC).
4274 (+link, +link-pie, +link-pie-printers): Add $(CC).
4275
4276 2019-04-25 David Abdurachmanov <david.abdurachmanov@gmail.com>
4277
4278 [BZ#24484]
4279 * sysdeps/riscv/ldsodefs.h (DL_RO_DYN_SECTION): Remove.
4280
4281 2019-04-25 Florian Weimer <fweimer@redhat.com>
4282
4283 benchtests: Enable BIND_NOW if configured with --enable-bind-now.
4284 * benchtests/Makefile [$(bind-now)] (link-bench-bind-now): Set.
4285 (bench-link-targets): New variable.
4286 ($(binaries-bench) …): Use it. Set LDFLAGS accordingly.
4287
4288 2019-04-25 Florian Weimer <fweimer@redhat.com>
4289
4290 Also enable BIND_NOW for programs if --enable-bind-now.
4291 * Makeconfig [$(bind-now)] (link-extra-flags): Add -Wl,-z,now.
4292 (+link-pie): Use $(link-extra-flags).
4293 (+link-static): Likewise.
4294 [! $(build-pie-default)] (+link): Likewise.
4295 * manual/install.texi (Configuring and compiling): Update
4296 --enable-bind-now description.
4297 * INSTALL: Regenerated.
4298
4299 2019-04-24 Wilco Dijkstra <wdijkstr@arm.com>
4300
4301 * benchtests/Makefile (BENCH_DURATION): Set to 1 second.
4302 * benchtests/bench-malloc-thread.c (BENCH_DURATION): Set to 10 seconds.
4303
4304 2019-04-24 Mike Frysinger <vapier@gentoo.org>
4305
4306 [BZ #18465]
4307 * malloc/Makefile (others): Add memusagestat.
4308 ($(objpfx)memusagestat): Delete rule.
4309 (LDLIBS-memusagestat): New variable.
4310
4311 2019-04-24 Florian Weimer <fweimer@redhat.com>
4312
4313 * locale/Makefile (tests-special): Guard setting by
4314 $(run-built-tests) == yes, otherwise tst-locale-locpath attempts
4315 to run while cross-compiling.
4316
4317 2019-04-23 Adhemerval Zanella <adhemerval.zanella@linaro.org>
4318
4319 [BZ #18035]
4320 * elf/Makefile (tests-container): Add tst-pldd.
4321 * elf/pldd-xx.c: Use _Static_assert in of pldd_assert.
4322 (E(find_maps)): Avoid use alloca, use default read file operations
4323 instead of explicit LFS names, and fix infinite loop.
4324 * elf/pldd.c: Explicit set _FILE_OFFSET_BITS, cleanup headers.
4325 (get_process_info): Use _Static_assert instead of assert, use default
4326 directory operations instead of explicit LFS names, and free some
4327 leadek pointers.
4328 * elf/tst-pldd.c: New file.
4329
4330 2019-04-23 H.J. Lu <hongjiu.lu@intel.com>
4331
4332 * malloc/arena.c (do_set_mallopt_check): Removed.
4333
4334 2019-04-23 Florian Weimer <fweimer@redhat.com>
4335
4336 locale: Add LOCPATH diagnostics to the locale program.
4337 * locale/programs/locale.c (setlocale_failed): New variable.
4338 (try_setlocale): New function.
4339 (quote_string): Likewise.
4340 (setlocale_diagnostics): Likewise.
4341 (main): Call try_setlocale instead of setlocale. Call
4342 setlocale_diagnostics.
4343 * locale/Makefile (tests-special): Add tst-locale-locpath.out.
4344 (tst-locale-locpath.out): New target.
4345 * locale/tst-locale-locpath.sh: New file.
4346
4347 2019-04-21 Adhemerval Zanella <adhemerval.zanella@linaro.org>
4348
4349 * NEWS: Move memory allocation changes of BZ#23741 from 2.29
4350 to 2.30 notes.
4351
4352 2019-04-18 Adhemerval Zanella <adhemerval.zanella@linaro.org>
4353
4354 [BZ #23741]
4355 * malloc/hooks.c (malloc_check, realloc_check): Use
4356 __builtin_add_overflow on overflow check and adapt to
4357 checked_request2size change.
4358 * malloc/malloc.c (__libc_malloc, __libc_realloc, _mid_memalign,
4359 __libc_pvalloc, __libc_calloc, _int_memalign): Limit maximum
4360 allocation size to PTRDIFF_MAX.
4361 (REQUEST_OUT_OF_RANGE): Remove macro.
4362 (checked_request2size): Change to inline function and limit maximum
4363 requested size to PTRDIFF_MAX.
4364 (__libc_malloc, __libc_realloc, _int_malloc, _int_memalign): Limit
4365 maximum allocation size to PTRDIFF_MAX.
4366 (_mid_memalign): Use _int_memalign call for overflow check.
4367 (__libc_pvalloc): Use __builtin_add_overflow on overflow check.
4368 (__libc_calloc): Use __builtin_mul_overflow for overflow check and
4369 limit maximum requested size to PTRDIFF_MAX.
4370 * malloc/malloc.h (malloc, calloc, realloc, reallocarray, memalign,
4371 valloc, pvalloc): Add __attribute_alloc_size__.
4372 * stdlib/stdlib.h (malloc, realloc, reallocarray, valloc): Likewise.
4373 * malloc/tst-malloc-too-large.c (do_test): Add check for allocation
4374 larger than PTRDIFF_MAX.
4375 * malloc/tst-memalign.c (do_test): Disable -Walloc-size-larger-than=
4376 around tests of malloc with negative sizes.
4377 * malloc/tst-posix_memalign.c (do_test): Likewise.
4378 * malloc/tst-pvalloc.c (do_test): Likewise.
4379 * malloc/tst-valloc.c (do_test): Likewise.
4380 * malloc/tst-reallocarray.c (do_test): Replace call to reallocarray
4381 with resulting size allocation larger than PTRDIFF_MAX with
4382 reallocarray_nowarn.
4383 (reallocarray_nowarn): New function.
4384 * NEWS: Mention the malloc function semantic change.
4385
4386 2019-04-17 Adhemerval Zanella <adhemerval.zanella@linaro.org>
4387
4388 * sysdeps/powerpc/fpu/s_fma.c: Fix format.
4389 * sysdeps/powerpc/fpu/s_fmaf.c: Likewise.
4390
4391 * sysdeps/powerpc/fpu/s_fma.S: Remove file.
4392 * sysdeps/powerpc/fpu/s_fmaf.S: Likewise.
4393 * sysdeps/powerpc/fpu/s_fma.c: New file.
4394 * sysdeps/powerpc/fpu/s_fmaf.c: Likewise.
4395
4396 * sysdeps/powerpc/fpu/s_fabs.S: Remove file.
4397 * sysdeps/powerpc/fpu/s_fabsf.S: Likewise.
4398
4399 * sysdeps/unix/sysv/linux/mips/getcontext.S (__getcontext): Remove
4400 the magic flag store.
4401 * sysdeps/unix/sysv/linux/mips/makecontext.S (__makecontext):
4402 Likewise.
4403 * sysdeps/unix/sysv/linux/mips/swapcontext.S (__swapcontext):
4404 Likewise.
4405 * sysdeps/unix/sysv/linux/mips/setcontext.S (__setcontext):
4406 Remove rt_sigreturn call.
4407
4408 * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext-common.S:
4409 Remove rt_sigreturn call.
4410 * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S:
4411 Likewise.
4412 * sysdeps/unix/sysv/linux/powerpc/powerpc64/setcontext.S: Likewie.
4413 * sysdeps/unix/sysv/linux/powerpc/powerpc64/swapcontext.S: Likewise.
4414
4415 * support/Makefile (libsupport-routines): Add support_subprocess,
4416 xposix_spawn, xposix_spawn_file_actions_addclose, and
4417 xposix_spawn_file_actions_adddup2.
4418 (tst-support_capture_subprocess-ARGS): New rule.
4419 * support/capture_subprocess.h (support_capture_subprogram): New
4420 prototype.
4421 * support/support_capture_subprocess.c (support_capture_subprocess):
4422 Refactor to use support_subprocess and support_capture_poll.
4423 (support_capture_subprogram): New function.
4424 * support/tst-support_capture_subprocess.c (write_mode_to_str,
4425 str_to_write_mode, test_common, parse_int, handle_restart,
4426 do_subprocess, do_subprogram, do_multiple_tests): New functions.
4427 (do_test): Add support_capture_subprogram tests.
4428 * support/subprocess.h: New file.
4429 * support/support_subprocess.c: Likewise.
4430 * support/xposix_spawn.c: Likewise.
4431 * support/xposix_spawn_file_actions_addclose.c: Likewise.
4432 * support/xposix_spawn_file_actions_adddup2.c: Likewise.
4433 * support/xspawn.h: Likewise.
4434
4435 2019-04-17 Mike Gerow <gerow@google.com>
4436
4437 * stdlib/tst-secure-getenv.c (choose_gid): Remove 64 supplemental
4438 groups limit.
4439
4440 2019-04-11 Florian Weimer <fweimer@redhat.com>
4441
4442 * resolv/nss_dns/dns-network.c (getanswer_r): Do not replace root
4443 domain with empty string.
4444 * resolv/nss_dns/dns-host.c (getanswer_r): Likewise.
4445
4446 2019-04-11 Florian Weimer <fweimer@redhat.com>
4447
4448 * include/alloc_buffer.h (alloc_buffer_alloc_bytes): Update
4449 comment.
4450 (alloc_buffer_next): Change return type to non-const. Update
4451 comment.
4452
4453 2019-04-10 TAMUKI Shoichi <tamuki@linet.gr.jp>
4454
4455 * manual/time.texi (Formatting Calendar Time): Add missing percent
4456 sign to conversion specifier.
4457
4458 2019-04-09 Carlos O'Donell <carlos@redhat.com>
4459 Kwok Cheung Yeung <kcy@codesourcery.com>
4460
4461 [BZ #16573]
4462 * malloc/mtrace.c: Define prototypes for all hooks.
4463 (set_default_hooks): New function.
4464 (set_trace_hooks): Likewise.
4465 (save_default_hooks): Likewise.
4466 (tr_freehook): Use new s*_hooks functions.
4467 (tr_mallochook): Likewise.
4468 (tr_reallochook): Likewise.
4469 (tr_memalignhook): Likewise.
4470 (mtrace): Likewise.
4471 (muntrace): Likewise.
4472
4473 2019-04-09 Wilco Dijkstra <wdijkstr@arm.com>
4474
4475 * benchtests/bench-stpcpy.c (SIMPLE_STPCPY): Remove function.
4476 (generic_stpcpy): New function.
4477 * benchtests/bench-stpncpy.c (SIMPLE_STPNCPY): Remove function.
4478 (generic_stpncpy): New function.
4479 * benchtests/bench-strcat.c (SIMPLE_STRCAT): Remove function.
4480 (generic_strcat): New function.
4481 * benchtests/bench-strcpy.c (SIMPLE_STRCPY): Remove function.
4482 (generic_strcpy): New function.
4483 * benchtests/bench-strncat.c (SIMPLE_STRNCAT): Remove function.
4484 (STUPID_STRNCAT): Remove function.
4485 (generic_strncat): New function.
4486 * benchtests/bench-strncpy.c (SIMPLE_STRNCPY): Remove function.
4487 (STUPID_STRNCPY): Remove function.
4488 (generic_strncpy): New function.
4489 * benchtests/bench-strnlen.c (SIMPLE_STRNLEN): Remove function.
4490 (generic_strnlen): New function.
4491 (memchr_strnlen): New function.
4492 * benchtests/bench-strlen.c (generic_strlen): Define for WIDE.
4493 (memchr_strlen): Likewise.
4494
4495 2019-04-09 Wilco Dijkstra <wdijkstr@arm.com>
4496
4497 * benchtests/bench-strstr.c (input): Add realistic input text.
4498 (stupid_strstr): Remove function.
4499 (basic_strstr): Add function.
4500 (twoway_strstr): Add function.
4501 (do_one_test): Add result checking.
4502 (do_test): Use new input text. Remove accidental early matches.
4503 (test_main): Improve range of tests, reduce unaligned cases.
4504
4505 2019-04-09 Wilco Dijkstra <wdijkstr@arm.com>
4506
4507 * benchtests/bench-memmem.c (simple_memmem): Remove function.
4508 (basic_memmem): Add function.
4509 (twoway_memmem): Add function.
4510
4511 2019-04-09 Wilco Dijkstra <wdijkstr@arm.com>
4512
4513 * benchtests/bench-malloc-simple.c: Remove TIMING_INIT.
4514 * benchtests/bench-malloc-thread.c: Likewise.
4515 * benchtests/bench-skeleton.c: Likewise.
4516 * benchtests/bench-strtod.c: Likewise.
4517 * benchtests/bench-timing.h: Likewise.
4518
4519 2019-04-08 Florian Weimer <fweimer@redhat.com>
4520
4521 * resolv/resolv.h (RES_INSECURE1, RES_INSECURE2): Remove
4522 definitions.
4523 * resolv/res_send.c (send_dg): Always perform RES_INSECURE1 and
4524 RES_INSECURE2 security checks.
4525 * resolv/res_debug.c (p_option): Remove RES_INSECURE1 and
4526 RES_INSECURE2 handling.
4527
4528 2019-04-08 Florian Weimer <fweimer@redhat.com>
4529
4530 resolv: Remove support for RES_USE_INET6 and the inet6 option.
4531 * nscd/aicache.c (addhstaiX): Do not disable RES_USE_INET6.
4532 * nscd/nscd_gehst_r.c (__nscd_gethostbyname_r): Always use
4533 GETHOSTBYNAME.
4534 * resolv/Makefile (tests): Remove tst-res_use_inet6.
4535 (tests-internal): Update justification for tst-resolv-res_init,
4536 tst-resolv-res_init-thread.
4537 (tst-res_use_inet6): Remove target.
4538 (CFLAGS-tst-res_use_inet6.c): Do not set variable.
4539 * resolv/res_debug.c (p_option): Remove "inet6" support.
4540 * resolv/res_init.c (res_setoptions): Likewise.
4541 * resolv/res_use_inet6.h: Remove file.
4542 * resolv/resolv-internal.h (DEPRECATED_RES_USE_INET6): Remove
4543 definition.
4544 (res_use_inet6): Always return false.
4545 * resolv/resolv.h (RES_USE_INET6): Remove definition.
4546 * resolv/resolv_context.h: Adjust file comment.
4547 (struct resolv_context): Update comment on __next field.
4548 (__resolv_context_put): Update comment.
4549 * resolv/tst-res_use_inet6.c: Remove file.
4550 * resolv/tst-resolv-res_init-skeleton.c (print_resp): Remove
4551 "inet6" support.
4552 (test_cases): Adjust test case.
4553 * resolv/tst-resolv-threads.c (byname_inet6) Remove function.
4554 (thread_byname2_af_inet6): Use old byname_inet6 code.
4555 (thread_byname_inet6, thread_byname2_af_inet6): Remove functions.
4556 (gai): Remove do_inet6 argument.
4557 (thread_gai_inet, thread_gai_inet6, thread_gai_unspec): Adjust.
4558 (thread_gai_inet_inet6, thread_gai_inet6_inet6)
4559 (thread_gai_unspec_inet6): Remove functions.
4560 (do_test): Adjust thread_funcs.
4561 * sysdeps/posix/getaddrinfo.c (gethosts): Do not restore
4562 RES_USE_INET6 flag.
4563 (gaih_inet): Do not disable RES_USE_INET6 flag.
4564
4565 2019-04-05 Anton Youdkevitch <anton.youdkevitch@bell-sw.com>
4566
4567 * sysdeps/aarch64/multiarch/memcpy_thunderx2.S: Cleanup branching
4568 and remove redundant code.
4569
4570 2019-04-04 Adhemerval Zanella <adhemerval.zanella@linaro.org>
4571
4572 * sysdeps/powerpc/Makefile [$(subdir) == wcsmbs] (CFLAGS-wcsrchr.c):
4573 New rule.
4574 * sysdeps/powerpc/power6/wcsrchr.c: Remove file.
4575 * sysdeps/powerpc/powerpc32/power4/multiarch/wcsrchr-power6.c:
4576 Likewise.
4577 * sysdeps/powerpc/powerpc32/power4/multiarch/wcsrchr-power7.c:
4578 Likewise.
4579 * sysdeps/powerpc/powerpc32/power4/multiarch/wcsrchr-ppc32.c:
4580 Likewise.
4581 * sysdeps/powerpc/powerpc32/power4/multiarch/wcsrchr.c: Likewise.
4582 * sysdeps/powerpc/powerpc64/multiarch/wcsrchr-power6.c: Likewise.
4583 * sysdeps/powerpc/powerpc64/multiarch/wcsrchr-power7.c: Likewise.
4584 * sysdeps/powerpc/powerpc64/multiarch/wcsrchr-ppc64.c: Likewise.
4585 * sysdeps/powerpc/powerpc64/multiarch/wcsrchr.c: Likewise.
4586 * sysdeps/powerpc/powerpc64/power6/wcsrchr.c: Likewise.
4587 * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile
4588 [$(subdir) == wcsmbs] (sysdeps_routines): Remove wcsrchr-power6 and
4589 wcsrchr-power7.
4590 (CFLAGS-wcsrchr-power7.c, CFLAGS-wcsrchr-power6.c): Remove rule.
4591 * sysdeps/powerpc/powerpc64/multiarch/Makefile: Likewise.
4592 * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list.c:
4593 Remove wcsrchr optimizations.
4594 * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c: Likewise.
4595
4596 * wcsmbs/wcsrchr.c (WCSRCHR): Use loop_unroll.h to parametrize
4597 the loop unroll.
4598
4599 * sysdeps/powerpc/Makefile [$(subdir) == wcsmbs] (CFLAGS-wcschr.c):
4600 New rule.
4601 * sysdeps/powerpc/power6/wcschr.c: Remove file.
4602 * sysdeps/powerpc/powerpc32/power4/multiarch/wcschr-power6.c:
4603 Likewise.
4604 * sysdeps/powerpc/powerpc32/power4/multiarch/wcschr-power7.c:
4605 Likewise.
4606 * sysdeps/powerpc/powerpc32/power4/multiarch/wcschr-ppc32.c:
4607 Likewise.
4608 * sysdeps/powerpc/powerpc32/power4/multiarch/wcschr.c: Likewise.
4609 * sysdeps/powerpc/powerpc64/multiarch/wcschr-power6.c: Likewise.
4610 * sysdeps/powerpc/powerpc64/multiarch/wcschr-power7.c: Likewise.
4611 * sysdeps/powerpc/powerpc64/multiarch/wcschr-ppc64.c: Likewise.
4612 * sysdeps/powerpc/powerpc64/multiarch/wcschr.c: Likewise.
4613 * sysdeps/powerpc/powerpc64/power6/wcschr.c: Likewise.
4614 * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile
4615 [$(subdir) == wcsmbs] (sysdeps_routines): Remove wcschr-power6 and
4616 wcschr-power7.
4617 (CFLAGS-wcschr-power7.c, CFLAGS-wcschr-power6.c): Remove rule.
4618 * sysdeps/powerpc/powerpc64/multiarch/Makefile: Likewise.
4619 * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list.c:
4620 Remove wcschr optimizations.
4621 * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c: Likewise.
4622
4623 * wcsmbs/wcschr.c (WCSCHR): Use loop_unroll.h to parametrize
4624 the loop unroll.
4625
4626 * sysdeps/powerpc/Makefile [$(subdir) == wcsmbs] (CFLAGS-wcscpy.c):
4627 New rule.
4628 * sysdeps/powerpc/power6/wcscpy.c: Remove file.
4629 * sysdeps/powerpc/powerpc32/power4/multiarch/wcscpy-power6.c:
4630 Likewise.
4631 * sysdeps/powerpc/powerpc32/power4/multiarch/wcscpy-power7.c:
4632 Likewise.
4633 * sysdeps/powerpc/powerpc32/power4/multiarch/wcscpy-ppc32.c:
4634 Likewise.
4635 * sysdeps/powerpc/powerpc32/power4/multiarch/wcscpy.c: Likewise.
4636 * sysdeps/powerpc/powerpc64/multiarch/wcscpy-power6.c: Likewise.
4637 * sysdeps/powerpc/powerpc64/multiarch/wcscpy-power7.c: Likewise.
4638 * sysdeps/powerpc/powerpc64/multiarch/wcscpy-ppc64.c: Likewise.
4639 * sysdeps/powerpc/powerpc64/multiarch/wcscpy.c: Likewise.
4640 * sysdeps/powerpc/powerpc64/power6/wcscpy.c: Likewise.
4641 * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile
4642 [$(subdir) == wcsmbs] (sysdeps_routines): Remove wcscpy-power6 and
4643 wcscpy-power7.
4644 (CFLAGS-wcscpy-power7.c, CFLAGS-wcscpy-power6.c): Remove rule.
4645 * sysdeps/powerpc/powerpc64/multiarch/Makefile: Likewise.
4646 * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list.c:
4647 Remove wcscpy optimizations.
4648 * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c: Likewise.
4649
4650 * include/loop_unroll.h: New file.
4651 * wcsmbs/wcscpy (__wcscpy): Add option to use loop unrolling
4652 besides generic implementation.
4653
4654 2019-04-03 DJ Delorie <dj@redhat.com>
4655
4656 * time/tst-strftime3.c (tm_to_printed): Disable warning about
4657 snprintf truncating output.
4658
4659 2019-04-02 DJ Delorie <dj@redhat.com>
4660
4661 * time/tst-strftime3.c: Add new Japanese era tests. Fix printf
4662 warning.
4663
4664 2019-04-02 TAMUKI Shoichi <tamuki@linet.gr.jp>
4665
4666 [BZ #22964]
4667 * localedata/locales/ja_JP (LC_TIME): Add entry for the new Japanese
4668 era.
4669 * time/tst-strftime2.c (dates): Add 2019-04-30 and 2019-05-01.
4670 (mkreftable): Add rules for the new Japanese era and the new dates.
4671
4672 2019-04-02 TAMUKI Shoichi <tamuki@linet.gr.jp>
4673 Rafał Lużyński <digitalfreak@lingonborough.com>
4674
4675 * time/tst-strftime2.c (date_t): Explicitly define the type.
4676 (dates): Use natural month and year numbers to express a date.
4677 (is_before): New function to compare dates.
4678 (mkreftable): Minor improvements to simplify maintenance.
4679 (do_test): Reflect the changes in dates array.
4680
4681 [BZ #24293]
4682 * time/Makefile (LOCALES): Add zh_TW.UTF-8, cmn_TW.UTF-8,
4683 hak_TW.UTF-8, nan_TW.UTF-8, and lzh_TW.UTF-8.
4684 * time/tst-strftime2.c (locales): Likewise.
4685 (dates): Add 1910-04-01, 1911-12-31, 1912-01-01, 1913-04-01,
4686 2010-04-01, and 2011-04-01.
4687 (mkreftable): Add rules for the new locales and the new dates.
4688
4689 2019-04-01 Carlos O'Donell <carlos@redhat.com>
4690
4691 * localedata/locales/ja_JP: Add comments to era entries.
4692
4693 2019-04-01 DJ Delorie <dj@redhat.com>
4694
4695 [BZ #24394]
4696 * time/strptime_l.c (%Ey): Fix fencepost error.
4697 * time/tst-strftime3.c: New.
4698 * time/Makefile (tests): Add tst-strftime3.
4699
4700 2019-04-01 Uroš Bizjak <ubizjak@gmail.com>
4701
4702 * sysdeps/alpha/divqu.S (__divqu): Move save of $f0 and excb after
4703 conditional branch to DIVBYZERO. Fix unwind info.
4704 * sysdeps/alpha/remqu.S (__remqu): Move saves of $f0, $f1, $f2 and
4705 excb after conditional branch to $powerof2. Add missing unop
4706 instructions and .align directives and reorder instructions to
4707 match __divqu.
4708
4709 2019-04-01 Richard Henderson <rth@twiddle.net>
4710
4711 * sysdeps/unix/sysv/linux/alpha/kernel-features.h (__NR_shmat):
4712 Do not redefine.
4713 * sysdeps/unix/sysv/linux/alpha/sysdep.h (__NR_osf_shmat):
4714 Do not redefine.
4715
4716 2019-03-30 Maciej W. Rozycki <macro@wdc.com>
4717
4718 * sysdeps/unix/sysv/linux/riscv/configure.ac: Quote
4719 $libc_cv_riscv_float_abi in `test' invocation.
4720 * sysdeps/unix/sysv/linux/riscv/configure: Regenerate.
4721
4722 2019-03-29 Paul A. Clarke <pc@us.ibm.com>
4723
4724 * sysdeps/powerpc/fpu/fenv_libc.h (fegetenv_register): Replace inline
4725 asm with builtin.
4726 * sysdeps/powerpc/powerpc64/le/fpu/sfp-machine.h (FP_INIT_ROUNDMODE):
4727 Likewise.
4728 * sysdeps/powerpc/fpu/tst-setcontext-fpscr.c (_GET_DI_FPSCR): Likewise.
4729 (_GET_SI_FPSCR): Likewise.
4730 (_SET_SI_FPSCR): Likewise.
4731
4732 2019-03-26 Adhemerval Zanella <adhemerval.zanella@linaro.org>
4733
4734 * math/math.h (fpclassify, isfinite, isnormal, isnan): Use builtin for
4735 clang 2.8.
4736 (signbit): Use builtin for clang 3.3.
4737 (isinf): Use builtin for clang 3.7.
4738
4739 2019-03-25 Adhemerval Zanella <adhemerval.zanella@linaro.org>
4740
4741 * sysdeps/powerpc/fpu/s_float_bitwise.h: Remove file.
4742
4743 2019-03-25 Andreas K. Hüttel <dilfridge@gentoo.org>
4744
4745 * nss/tst-nss-files-alias-leak.c (do_test): add missing opening
4746 quote in printf.
4747
4748 2019-03-25 Mike Crowe <mac@mcrowe.com>
4749
4750 * nptl/tst-rwlock14.c (do_test): Replace duplicate calls to
4751 pthread_rwlock_timedrdlock with calls to
4752 pthread_rwlock_timedwrlock to ensure that the latter is tested
4753 too. Use new function name in diagnostic messages too.
4754
4755 * nptl/tst-sem5.c: Remove unused headers. Add <support/check.h>.
4756 (do_test) Use libsupport test macros rather than hand-coded
4757 conditionals and error messages. Ensure that sem_init returns zero
4758 rather than not -1. Use <support/test-driver.c> rather than
4759 test-skeleton.c.
4760
4761 * nptl/tst-sem13.c: Add <support/check.h>. (do_test) Use libsupport
4762 test macros rather than hand-coded conditionals and error messages.
4763 Use <support/test-driver.c> rather than test-skeleton.c.
4764
4765 2019-03-25 Joseph Myers <joseph@codesourcery.com>
4766
4767 * sysdeps/gnu/netinet/udp.h (UDP_GRO): New macro.
4768
4769 * elf/elf.h (NT_ARM_PAC_MASK): New macro.
4770 (NT_MIPS_MSA): Likewise.
4771
4772 2019-03-22 Adhemerval Zanella <adhemerval.zanella@linaro.org>
4773
4774 * benchtests/Makefile (USE_CLOCK_GETTIME) Remove.
4775 * benchtests/README: Update description.
4776 * benchtests/bench-timing.h: Default to hp-timing.
4777 * sysdeps/generic/hp-timing.h (HP_TIMING_DIFF, HP_TIMING_ACCUM_NT,
4778 HP_TIMING_PRINT): Remove.
4779 (HP_TIMING_NOW): Add generic implementation.
4780 (hp_timing_t): Change to uint64_t.
4781
4782 * benchtests/bench-timing.h: Replace HP_TIMING_AVAIL with
4783 HP_TIMING_INLINE.
4784 * nptl/descr.h: Likewise.
4785 * elf/rtld.c (RLTD_TIMING_DECLARE, RTLD_TIMING_NOW, RTLD_TIMING_DIFF,
4786 RTLD_TIMING_ACCUM_NT, RTLD_TIMING_SET): Define.
4787 (dl_start_final_info, _dl_start_final, dl_main, print_statistics):
4788 Abstract hp-timing usage with RTLD_* macros.
4789 * sysdeps/alpha/hp-timing.h (HP_TIMING_INLINE): Define iff IS_IN(rtld).
4790 (HP_TIMING_AVAIL, HP_SMALL_TIMING_AVAIL): Remove.
4791 * sysdeps/generic/hp-timing.h (HP_TIMING_AVAIL, HP_SMALL_TIMING_AVAIL,
4792 HP_TIMING_NONAVAIL): Likewise.
4793 * sysdeps/ia64/hp-timing.h (HP_TIMING_AVAIL, HP_SMALL_TIMING_AVAIL):
4794 Likewise.
4795 * sysdeps/powerpc/powerpc32/power4/hp-timing.h (HP_TIMING_AVAIL,
4796 HP_SMALL_TIMING_AVAIL): Likewise.
4797 * sysdeps/powerpc/powerpc64/hp-timing.h (HP_TIMING_AVAIL,
4798 HP_SMALL_TIMING_AVAIL): Likewise.
4799 * sysdeps/sparc/sparc32/sparcv9/hp-timing.h (HP_TIMING_AVAIL,
4800 HP_SMALL_TIMING_AVAIL): Likewise.
4801 * sysdeps/sparc/sparc64/hp-timing.h (HP_TIMING_AVAIL,
4802 HP_SMALL_TIMING_AVAIL): Likewise.
4803 * sysdeps/x86/hp-timing.h (HP_TIMING_AVAIL, HP_SMALL_TIMING_AVAIL):
4804 Likewise.
4805 * sysdeps/generic/hp-timing-common.h: Update comment with
4806 HP_TIMING_AVAIL removal.
4807
4808 * include/random-bits.h: New file.
4809 * resolv/res_mkquery.c [HP_TIMING_AVAIL] (RANDOM_BITS,
4810 (__res_context_mkquery): Remove usage hp-timing usage and replace with
4811 random_bits.
4812 * resolv/res_send.c [HP_TIMING_AVAIL] (nameserver_offset): Likewise.
4813 * sysdeps/posix/tempname.c [HP_TIMING_AVAIL] (__gen_tempname):
4814 Likewise.
4815
4816 * include/libc-internal.h (__get_clockfreq): Remove prototype.
4817 * rt/Makefile (clock-routines): Remove get_clockfreq.
4818 * rt/get_clockfreq.c: Remove file.
4819 * sysdeps/unix/sysv/linux/i386/get_clockfreq.c: Likewise.
4820 * sysdeps/unix/sysv/linux/ia64/get_clockfreq.c: Likewise.
4821 * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c: Likewise.
4822 * sysdeps/unix/sysv/linux/powerpc/get_clockfreq.c: Move code to ...
4823 * sysdeps/unix/sysv/linux/powerpc/get_timebase_freq.c: ... here.
4824
4825 * sysdeps/unix/sysv/linux/ia64/has_cpuclock.c: Remove file.
4826 * sysdeps/unix/sysv/linux/ia64/sysconf.c: Likewise.
4827 * sysdeps/unix/sysv/linux/sysconf.c (has_cpuclock): Remove function.
4828 (__sysconf): Assume kernel support for _SC_MONOTONIC_CLOCK,
4829 _SC_CPUTIME, and _SC_THREAD_CPUTIME.
4830
4831 * nptl/Makefile (libpthread-routines): Remove pthread_clock_gettime and
4832 pthread_clock_settime.
4833 * nptl/pthreadP.h (__find_thread_by_id): Remove prototype.
4834 * elf/dl-support.c [!HP_TIMING_NOAVAIL] (_dl_cpuclock_offset): Remove.
4835 (_dl_non_dynamic_init): Remove _dl_cpuclock_offset setting.
4836 * elf/rtld.c (_dl_start_final): Likewise.
4837 * nptl/allocatestack.c (__find_thread_by_id): Remove function.
4838 * sysdeps/generic/ldsodefs.h [!HP_TIMING_NOAVAIL] (_dl_cpuclock_offset):
4839 Remove.
4840 * sysdeps/mach/hurd/dl-sysdep.c [!HP_TIMING_NOAVAIL]
4841 (_dl_cpuclock_offset): Remove.
4842 * nptl/descr.h (struct pthread): Rename cpuclock_offset to
4843 cpuclock_offset_ununsed.
4844 * nptl/nptl-init.c (__pthread_initialize_minimal_internal): Remove
4845 cpuclock_offset set.
4846 * nptl/pthread_create.c (START_THREAD_DEFN): Likewise.
4847 * sysdeps/nptl/fork.c (__libc_fork): Likewise.
4848 * nptl/pthread_clock_gettime.c: Remove file.
4849 * nptl/pthread_clock_settime.c: Likewise.
4850 * sysdeps/unix/clock_gettime.c (hp_timing_gettime): Remove function.
4851 [HP_TIMING_AVAIL] (realtime_gettime): Remove CLOCK_THREAD_CPUTIME_ID
4852 and CLOCK_PROCESS_CPUTIME_ID support.
4853 * sysdeps/unix/clock_settime.c (hp_timing_gettime): Likewise.
4854 [HP_TIMING_AVAIL] (realtime_gettime): Likewise.
4855 * sysdeps/posix/clock_getres.c (hp_timing_getres): Likewise.
4856 [HP_TIMING_AVAIL] (__clock_getres): Likewise.
4857 * sysdeps/unix/clock_nanosleep.c (CPUCLOCK_P, INVALID_CLOCK_P):
4858 Likewise.
4859 (__clock_nanosleep): Remove CPUCLOCK_P and INVALID_CLOCK_P usage.
4860
4861 2019-03-22 Stefan Liebler <stli@linux.ibm.com>
4862
4863 * sysdeps/s390/Makefile (sysdep_routines): Add memmem-arch13.
4864 * sysdeps/s390/ifunc-memmem.h (HAVE_MEMMEM_ARCH13, MEMMEM_ARCH13,
4865 MEMMEM_Z13_ONLY_USED_AS_FALLBACK, HAVE_MEMMEM_IFUNC_AND_ARCH13_SUPPORT):
4866 New defines.
4867 * sysdeps/s390/memmem-arch13.S: New file.
4868 * sysdeps/s390/memmem-vx.c: Omit GI symbol for z13 memmem ifunc variant
4869 if it is only used as fallback.
4870 * sysdeps/s390/memmem.c (memmem): Add arch13 variant in ifunc selector.
4871 * sysdeps/s390/multiarch/ifunc-impl-list.c
4872 (__libc_ifunc_impl_list): Add ifunc variant for arch13 memmem.
4873
4874 2019-03-22 Stefan Liebler <stli@linux.ibm.com>
4875
4876 * sysdeps/s390/Makefile (sysdep_routines): Add strstr-arch13.
4877 * sysdeps/s390/ifunc-strstr.h (HAVE_STRSTR_ARCH13, STRSTR_ARCH13,
4878 STRSTR_Z13_ONLY_USED_AS_FALLBACK, HAVE_STRSTR_IFUNC_AND_ARCH13_SUPPORT):
4879 New defines.
4880 * sysdeps/s390/multiarch/ifunc-impl-list.c
4881 (__libc_ifunc_impl_list): Add ifunc variant for arch13 strstr.
4882 * sysdeps/s390/strstr-arch13.S: New file.
4883 * sysdeps/s390/strstr-vx.c: Omit GI symbol for z13 strstr ifunc variant
4884 if it is only used as fallback.
4885 * sysdeps/s390/strstr.c (strstr): Add arch13 variant in ifunc selector.
4886
4887 2019-03-22 Stefan Liebler <stli@linux.ibm.com>
4888
4889 * sysdeps/s390/ifunc-memcpy.h (HAVE_MEMMOVE_ARCH13, MEMMOVE_ARCH13
4890 HAVE_MEMMOVE_IFUNC_AND_ARCH13_SUPPORT): New defines.
4891 * sysdeps/s390/memcpy-z900.S: Add arch13 memmove implementation.
4892 * sysdeps/s390/memmove.c (memmove): Add arch13 variant in
4893 ifunc selector.
4894 * sysdeps/s390/multiarch/ifunc-impl-list.c
4895 (__libc_ifunc_impl_list): Add ifunc variant for arch13 memmove.
4896 * sysdeps/s390/multiarch/ifunc-resolve.h (S390_STFLE_BITS_ARCH13_MIE3,
4897 S390_IS_ARCH13_MIE3): New defines.
4898
4899 2019-03-22 Stefan Liebler <stli@linux.ibm.com>
4900
4901 * config.h.in (HAVE_S390_MIN_ARCH13_ZARCH_ASM_SUPPORT,
4902 HAVE_S390_ARCH13_ASM_SUPPORT): New undefine.
4903 * sysdeps/s390/configure.ac: Add checks for arch13 support.
4904 * sysdeps/s390/configure: Regenerated.
4905
4906 2019-03-22 Stefan Liebler <stli@linux.ibm.com>
4907
4908 * sysdeps/s390/dl-procinfo.c (_dl_s390_cap_flags):
4909 Add vxe2, vxp, dflt, sort flags.
4910 * sysdeps/s390/dl-procinfo.h: Add HWCAP_S390_VXRS_EXT2,
4911 HWCAP_S390_VXRS_PDE, HWCAP_S390_SORT, HWCAP_S390_DFLT
4912 capabilities.
4913 (HWCAP_IMPORTANT): Add HWCAP_S390_VXRS_EXT2.
4914 * sysdeps/unix/sysv/linux/s390/bits/hwcap.h
4915 (HWCAP_S390_VXRS_EXT2, HWCAP_S390_VXRS_PDE, HWCAP_S390_SORT,
4916 HWCAP_S390_DFLT): Define.
4917
4918 2019-03-21 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
4919
4920 [BZ #24372]
4921 * iconv/iconvconfig.c (write_output): Add parentheses to get rid
4922 of compiler warning.
4923 * locale/programs/ld-collate.c (collate_output): Likewise.
4924
4925 2019-03-21 DJ Delorie <dj@redhat.com>
4926
4927 [BZ #24372]
4928 * iconv/iconvconfig.c (write_output): Replace floating point math
4929 with integer math to avoid imprecise results.
4930 * locale/programs/ld-collate.c (collate_output): Likewise.
4931
4932 2019-03-21 Stefan Liebler <stli@linux.ibm.com>
4933
4934 * sysdeps/s390/dl-procinfo.h (HWCAP_IMPORTANT):
4935 Add HWCAP_S390_VX and HWCAP_S390_VXE.
4936
4937 2019-03-20 mansayk <6688000@gmail.com>
4938
4939 [BZ #24296]
4940 * localedata/locales/tt_RU (day): Update from CLDR-34, fix errors.
4941 (abday): Likewise, but remove the trailing dots.
4942
4943 2019-03-19 Joseph Myers <joseph@codesourcery.com>
4944
4945 * sysdeps/unix/sysv/linux/aarch64/bits/hwcap.h (HWCAP_SB): New
4946 macro.
4947 (HWCAP_PACA): Likewise.
4948 (HWCAP_PACG): Likewise.
4949 * sysdeps/unix/sysv/linux/aarch64/dl-procinfo.c (_DL_HWCAP_COUNT):
4950 Increase to 32.
4951 (_dl_aarch64_cap_flags): Add new entries for new HWCAPs.
4952
4953 2019-03-16 Samuel Thibault <samuel.thibault@ens-lyon.org>
4954
4955 * hurd/hurd/signal.h (_hurd_critical_section_lock): Document how EINTR
4956 should be handled.
4957
4958 2019-03-15 Joseph Myers <joseph@codesourcery.com>
4959
4960 * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
4961 version to 5.0.
4962 (old_getpagesize): New syscall.
4963
4964 2019-03-15 Felix Yan <felixonmars@archlinux.org>
4965
4966 [BZ #24293]
4967 * localedata/locales/zh_TW (era): Add, support Minguo calendar.
4968 * localedata/locales/cmn_TW (era): Likewise.
4969 * localedata/locales/hak_TW (era): Likewise.
4970 * localedata/locales/lzh_TW (era): Likewise.
4971 * localedata/locales/nan_TW (era): Likewise.
4972
4973 2019-03-14 Adam Maris <amaris@redhat.com>
4974
4975 * malloc/malloc.c (_int_malloc): Check for large bin list
4976 corruption when inserting unsorted chunk.
4977
4978 2019-03-14 Florian Weimer <fweimer@redhat.com>
4979
4980 Remove obsolete, never-implemented XSI STREAMS declarations.
4981 * manual/terminal.texi (Allocation): Remove portability note and
4982 adjust example.
4983 * sysdeps/posix/sysconf.c (__sysconf): Always return -1 for
4984 _SC_STREAMS.
4985 * sysdeps/unix/sysv/linux/syscalls.list (getpmsg, putpmsg): Remove.
4986 * sysdeps/unix/inet/Subdirs (streams): Remove.
4987 * conform/Makefile (conformtest-headers-XPG42): Remove stropts.h.
4988 (conformtest-headers-UNIX98): Likewise.
4989 (conformtest-headers-XOPEN2K): Likewise.
4990 (conformtest-headers-POSIX2008): Likewise.
4991 * posix/compat-streams.c: New file.
4992 * posix/Makefile (routines): Add it.
4993 * posix/Versions (GLIBC_2.1): Add fattach, fdetach, getmsg,
4994 getpmsg, isastream, putmsg, putpmsg.
4995 (GLIBC_2.30): New section.
4996 * bits/stropts.h: Remove file.
4997 * bits/xtitypes.h: Likewise.
4998 * conform/data/stropts.h-data: Likewise.
4999 * include/stropts.h: Likewise.
5000 * include/sys/stropts.h: Likewise.
5001 * include/xtitypes.h: Likewise.
5002 * streams/Makefile: Likewise.
5003 * streams/fattach.c: Likewise.
5004 * streams/fdetach.c: Likewise.
5005 * streams/getmsg.c: Likewise.
5006 * streams/getpmsg.c: Likewise.
5007 * streams/isastream.c: Likewise.
5008 * streams/putmsg.c: Likewise.
5009 * streams/putpmsg.c: Likewise.
5010 * streams/stropts.h: Likewise.
5011 * streams/sys/stropts.h: Likewise.
5012 * sysdeps/ia64/bits/xtitypes.h: Likewise.
5013 * sysdeps/s390/bits/xtitypes.h: Likewise.
5014 * sysdeps/unix/sysv/linux/i386/getmsg.c: Likewise.
5015 * sysdeps/unix/sysv/linux/i386/putmsg.c: Likewise.
5016 * sysdeps/unix/sysv/linux/m68k/getmsg.c: Likewise.
5017 * sysdeps/unix/sysv/linux/m68k/putmsg.c: Likewise.
5018 * sysdeps/unix/sysv/linux/mips/getmsg.c: Likewise.
5019 * sysdeps/unix/sysv/linux/mips/putmsg.c: Likewise.
5020 * sysdeps/unix/sysv/linux/powerpc/getmsg.c: Likewise.
5021 * sysdeps/unix/sysv/linux/powerpc/putmsg.c: Likewise.
5022 * sysdeps/x86/bits/xtitypes.h: Likewise.
5023
5024 2019-03-14 Florian Weimer <fweimer@redhat.com>
5025
5026 * nss/tst-nss-files-alias-truncated.c (do_test): Load
5027 libnss_files.
5028 * nss/Makefile (tst-nss-files-alias-truncated): Link with -ldl,
5029 but not with libnss_files.
5030 (tst-nss-files-alias-truncated.out): Depend on libnss_files.
5031
5032 2019-03-14 Zack Weinberg <zackw@panix.com>
5033
5034 * scripts/check-obsolete-constructs.py (HeaderChecker.check):
5035 Specify encoding="utf-8" when opening headers to check.
5036
5037 2019-03-13 Joseph Myers <joseph@codesourcery.com>
5038
5039 * scripts/build-many-glibcs.py (Context.checkout): Default Linux
5040 version to 5.0.
5041 (Context.checkout_tar): Handle variable major version for Linux
5042 kernel.
5043
5044 2019-03-13 Florian Weimer <fweimer@redhat.com>
5045
5046 [BZ #24047]
5047 * sysdeps/mach/hurd/res_enable_icmp.c: New file.
5048
5049 2019-03-13 Zack Weinberg <zackw@panix.com>
5050
5051 * sysdeps/generic/inttypes.h, sysdeps/generic/stdint.h:
5052 Move to stdlib.
5053 * include/inttypes.h: Adjust to match.
5054 * include/stdint.h: New wrapper.
5055
5056 2019-03-13 Zack Weinberg <zackw@panix.com>
5057
5058 * scripts/check-obsolete-constructs.py: New test script.
5059 * scripts/check-installed-headers.sh: Remove tests for
5060 obsolete typedefs, superseded by check-obsolete-constructs.py.
5061 * Rules: Run scripts/check-obsolete-constructs.py over $(headers)
5062 as a special test. Update commentary.
5063 * posix/bits/types.h (__SQUAD_TYPE, __S64_TYPE): Define as __int64_t.
5064 (__UQUAD_TYPE, __U64_TYPE): Define as __uint64_t.
5065 Update commentary.
5066 * posix/sys/types.h (__u_intN_t): Remove.
5067 (u_int8_t): Typedef using __uint8_t.
5068 (u_int16_t): Typedef using __uint16_t.
5069 (u_int32_t): Typedef using __uint32_t.
5070 (u_int64_t): Typedef using __uint64_t.
5071
5072 2019-03-13 Stefan Liebler <stli@linux.ibm.com>
5073
5074 * elf/dl-sysdep.c (_dl_show_auxv): Remove condition and always
5075 call _dl_procinfo.
5076 * sysdeps/unix/sysv/linux/s390/dl-procinfo.h (_dl_procinfo):
5077 Ignore types other than AT_HWCAP.
5078 * sysdeps/sparc/dl-procinfo.h (_dl_procinfo): Likewise.
5079 * sysdeps/unix/sysv/linux/i386/dl-procinfo.h (_dl_procinfo):
5080 Likewise.
5081 * sysdeps/powerpc/dl-procinfo.h (_dl_procinfo): Adjust comment
5082 in the case of falling back to generic output mechanism.
5083 * sysdeps/unix/sysv/linux/arm/dl-procinfo.h (_dl_procinfo):
5084 Likewise.
5085
5086 2019-03-12 Florian Weimer <fweimer@redhat.com>
5087
5088 * elf/elf.h (DF_1_KMOD, DF_1_WEAKFILTER, DF_1_NOCOMMON): Define.
5089
5090 2019-03-12 Florian Weimer <fweimer@redhat.com>
5091
5092 [BZ #24047]
5093 resolv: Enable full ICMP errors for UDP DNS sockets
5094 * resolv/res_enable_icmp.c: New file.
5095 * resolv/Makefile (libresolv-routines): Add res_enable_icmp.
5096 * resolv/resolv-internal.h (__res_enable_icmp): Declare.
5097 * resolv/res_send.c (reopen): Call __res_enable_icmp on new
5098 socket.
5099
5100 2019-03-11 Mao Han <han_mao@c-sky.com>
5101
5102 * elf/elf.h (EF_CSKY_ABIMASK, EF_CSKY_OTHER, EF_CSKY_PROCESSOR)
5103 (EF_CSKY_ABIV1, EF_CSKY_ABIV2, SHT_CSKY_ATTRIBUTES): New defines.
5104
5105 2019-03-11 Mao Han <han_mao@c-sky.com>
5106
5107 * sysdeps/csky/abiv2/start.S: Mark lr as undefined.
5108 * sysdeps/unix/sysv/linux/csky/abiv2/clone.S: Likewise.
5109 * sysdeps/unix/sysv/linux/csky/abiv2/setcontext.S: Likewise.
5110
5111 2019-03-11 Mao Han <han_mao@c-sky.com>
5112
5113 * sysdeps/unix/sysv/linux/csky/sys/procfs.h: Use linux definition
5114 directly.
5115 * sysdeps/unix/sysv/linux/csky/sys/user.h: Remove user_regs
5116 definition.
5117
5118 2019-03-11 Mao Han <han_mao@c-sky.com>
5119
5120 * sysdeps/unix/sysv/linux/csky/register-dump.h: Adjust offset change.
5121 * sysdeps/unix/sysv/linux/csky/sys/ucontext.h: Remove __mask field
5122 in mcontext_t
5123
5124 2019-03-08 Mike FABIAN <mfabian@redhat.com>
5125
5126 [BZ #24307]
5127 * localedata/unicode-gen/Makefile (UNICODE_VERSION): Set to 12.0.0.
5128 * localedata/unicode-gen/DerivedCoreProperties.txt: Update to
5129 Unicode 12.0.0.
5130 * localedata/unicode-gen/EastAsianWidth.txt: Likewise.
5131 * localedata/unicode-gen/PropList.txt: Likewise.
5132 * localedata/unicode-gen/UnicodeData.txt: Likewise.
5133 * localedata/unicode-gen/ctype_compatibility_test_cases.py: U+108D
5134 became "Alphabetic" in Unicode 12.0.0. Adapt test case.
5135 * localedata/charmaps/UTF-8: Regenerate.
5136 * localedata/locales/i18n_ctype: Likewise.
5137 * localedata/locales/tr_TR: Likewise.
5138 * localedata/locales/translit_circle: Likewise.
5139 * localedata/locales/translit_cjk_compat: Likewise.
5140 * localedata/locales/translit_combining: Likewise.
5141 * localedata/locales/translit_compat: Likewise.
5142 * localedata/locales/translit_font: Likewise.
5143 * localedata/locales/translit_fraction: Likewise.
5144
5145 2019-03-07 Joseph Myers <joseph@codesourcery.com>
5146
5147 * stdio-common/vfscanf-internal.c (ARG): Break lines before rather
5148 than after operators.
5149 * sysdeps/mach/hurd/setitimer.c (timer_thread): Likewise.
5150 (setitimer_locked): Likewise.
5151 * sysdeps/mach/hurd/sigaction.c (__sigaction): Likewise.
5152 * sysdeps/mach/hurd/sigaltstack.c (__sigaltstack): Likewise.
5153 * sysdeps/mach/pagecopy.h (PAGE_COPY_FWD): Likewise.
5154 * sysdeps/mach/thread_state.h (machine_get_basic_state): Likewise.
5155 * sysdeps/powerpc/powerpc64/tst-ucontext-ppc64-vscr.c
5156 (PPC_CPU_SUPPORTED): Likewise.
5157 * sysdeps/unix/sysv/linux/alpha/a.out.h (N_TXTOFF): Likewise.
5158 * sysdeps/unix/sysv/linux/generic/wordsize-32/overflow.h
5159 (stat_overflow): Likewise.
5160 (statfs_overflow): Likewise.
5161 * sysdeps/unix/sysv/linux/tst-personality.c (do_test): Likewise.
5162 * sysdeps/unix/sysv/linux/tst-ttyname.c (eq_ttyname): Likewise.
5163 (eq_ttyname_r): Likewise.
5164 (run_chroot_tests): Likewise.
5165
5166 2019-03-07 Florian Weimer <fweimer@redhat.com>
5167
5168 * scripts/check-wrapper-headers.py (check_headers): Adjust Fortran
5169 header check.
5170
5171 2019-03-07 Martin Liska <mliska@suse.cz>
5172
5173 * math/Makefile: Change location where math-vector-fortran.h is
5174 installed.
5175 * math/finclude/math-vector-fortran.h: Move from bits/math-vector-fortran.h.
5176 * sysdeps/x86/fpu/finclude/math-vector-fortran.h: Move
5177 from sysdeps/x86/fpu/bits/math-vector-fortran.h.
5178 * scripts/check-installed-headers.sh: Skip Fortran header files.
5179 * scripts/check-wrapper-headers.py: Likewise.
5180
5181 2019-03-05 Adhemerval Zanella <adhemerval.zanella@linaro.org>
5182
5183 * nptl/nptl-init.c (__have_futex_clock_realtime,
5184 __have_futex_clock_realtime): Remove definition.
5185 (__pthread_initialize_minimal_internal): Remove FUTEX_CLOCK_REALTIME
5186 check test for !__ASSUME_FUTEX_CLOCK_REALTIME.
5187 * nptl/pthread_mutex_timedlock.c (__pthread_mutex_timedlock): Assume
5188 __ASSUME_FUTEX_CLOCK_REALTIME support.
5189 * sysdeps/unix/sysv/linux/i386/lowlevellock.S: Likewise.
5190 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.S: Likewise.
5191 * sysdeps/unix/sysv/linux/kernel-features.h
5192 (__ASSUME_FUTEX_CLOCK_REALTIME): Remove.
5193 * sysdeps/nptl/lowlevellock-futex.h (lll_futex_timed_wait_bitset):
5194 Adjust comment.
5195
5196 2019-03-05 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
5197
5198 * sysdeps/powerpc/powerpc64/power6/wcscpy.c (WCSCPY): Define to
5199 __wcscpy, then use libc_hidden_def and weak_alias to bind it to
5200 __GI___wcscpy and wcscpy.
5201
5202 2019-03-04 Florian Weimer <fweimer@redhat.com>
5203
5204 * sysdeps/generic/ldsodefs.h (_dl_sysdep_open_zero_fill): Remove
5205 declaration.
5206 * elf/dl-load.c (_dl_map_object_from_fd): Assume MAP_ANON is
5207 defined.
5208
5209 2019-03-04 Stefan Liebler <stli@linux.ibm.com>
5210
5211 * sysdeps/s390/s390-64/sysdep.h (ENTRY): Use alignment of 16byte.
5212 * sysdeps/s390/s390-32/sysdep.h: Likewise.
5213
5214 2019-03-02 TAMUKI Shoichi <tamuki@linet.gr.jp>
5215
5216 [BZ #24162]
5217 * localedata/locales/ja_JP (LC_TIME): Change the offset for Taisho
5218 gan-nen from 2 to 1. Problem reported by Morimitsu, Junji.
5219
5220 2019-03-01 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
5221
5222 * misc/tst-ldbl-error.c (do_one_test): Adapt for reuse by nldbl
5223 tests.
5224 (do_test): Likewise.
5225 * misc/tst-ldbl-warn.c (do_one_test): Likewise.
5226 (do_test_call_varg): Likewise.
5227 (do_test_call_rarg): Likewise.
5228 * sysdeps/ieee754/ldbl-opt/Makefile
5229 [subdir == misc] (tests-internal): Add tst-nldbl-warn,
5230 tst-nldbl-error.
5231 ($(objpfx)tst-nldbl-warn.c): New rule.
5232 ($(objpfx)tst-nldbl-error.c): Likewise.
5233 (CFLAGS-tst-nldbl-warn.c, CFLAGS-tst-nldbl-error.c):
5234 New variables.
5235
5236 2019-03-01 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
5237
5238 [BZ #23984]
5239 * include/bits/error-ldbl.h: New file.
5240 * include/error.h: Include stdarg.h. Declare internal functions
5241 __error_internal and __error_at_line_internal.
5242 * misc/Makefile (headers): Add bits/error-ldbl.h.
5243 * misc/bits/error-ldbl.h: New file.
5244 * misc/error.h [__LDBL_COMPAT]: Include bits/error-ldbl.h and
5245 avoid the inclusion of bits/error.h.
5246 * sysdeps/ieee754/ldbl-opt/Versions (libc): Add __nldbl_error,
5247 and __nldbl_error_at_line.
5248 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c: Include error.h.
5249 (__nldbl_error, __ndlbl_error_at_line): New functions.
5250 * sysdeps/ieee754/ldbl-opt/nldbl-compat.h: Include error.h.
5251 Redirect error and error_at_line.
5252 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Update.
5253 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
5254 Likewise.
5255 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
5256 Likewise.
5257 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist:
5258 Likewise.
5259 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist:
5260 Likewise.
5261 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
5262 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
5263 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
5264
5265 2019-03-01 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
5266
5267 [BZ #23984]
5268 * include/bits/err-ldbl.h: New file.
5269 * include/err.h: Add prototypes for the internal functions:
5270 __vwarnx_internal and __vwarn_internal.
5271 * misc/Makefile (headers): Add bits/err-ldbl.h.
5272 * misc/bits/err-ldbl.h: New file.
5273 * misc/err.h: Include bits/err-ldbl.h when __LDBL_COMPAT is
5274 defined, i.e.: when -mlong-double-64 is in use.
5275 * sysdeps/ieee754/ldbl-opt/Versions (libc): Add __nldbl_warn,
5276 __nldbl_vwarn, __nldbl_warnx, __nldbl_vwarnx, __nldbl_err,
5277 __nldbl_verr, __nldbl_errx, and __nldbl_verrx.
5278 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c: Include err.h.
5279 (VA_CALL): New macro.
5280 (__nldbl_vwarn, __nldbl_vwarnx, __nldbl_warn, __nldbl_warnx)
5281 (__nldbl_verr, __nldbl_verrx, __nldbl_err, __nldbl_errx): New
5282 functions.
5283 * sysdeps/ieee754/ldbl-opt/nldbl-compat.h: Include err.h and
5284 declare prototypes for the new functions.
5285 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Update.
5286 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
5287 Likewise.
5288 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
5289 Likewise.
5290 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist:
5291 Likewise.
5292 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist:
5293 Likewise.
5294 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
5295 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
5296 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
5297
5298 2019-03-01 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
5299
5300 * sysdeps/ieee754/ldbl-opt/Makefile
5301 [subdir == argp] (tests-internal): Add tst-nldbl-argp.
5302 [subdir == argp] ($(objpfx)tst-nldbl-argp.c): New rule.
5303 [subdir == argp] (CFLAGS-tst-nldbl-argp.c): New variable.
5304
5305 2019-03-01 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
5306
5307 [BZ #23983]
5308 * argp/Makefile (headers): Add bits/argp-ldbl.h.
5309 * argp/argp.h [defined __LDBL_COMPAT]: Include bits/argp-ldbl.h.
5310 * argp/bits/argp-ldbl.h: New file.
5311 * include/argp.h: Include stdarg.h. Add prototypes for internal
5312 functions: __argp_error_internal and __argp_failure_internal.
5313 * include/bits/argp-ldbl.h: New file.
5314 * sysdeps/ieee754/ldbl-opt/Versions (libc): Add
5315 __nldbl_argp_error and __nldbl_argp_failure.
5316 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c: Include argp.h.
5317 (__nldbl_argp_error, __nldbl_argp_failure): New functions.
5318 * sysdeps/ieee754/ldbl-opt/nldbl-compat.h: Include argp.h.
5319 Redirect argp_error and argp_failure calls.
5320 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Update.
5321 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
5322 Likewise.
5323 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
5324 Likewise.
5325 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist:
5326 Likewise.
5327 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist:
5328 Likewise.
5329 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
5330 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
5331 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
5332
5333 2019-03-01 Florian Weimer <fweimer@redhat.com>
5334
5335 [BZ #20419]
5336 * elf/tst-big-note-lib.S: Create a syntactically valid note.
5337 * elf/Makefile (tst-big-note-lib.so): Do not link with startup
5338 code, to avoid creating an ABI tag note.
5339 (modules-names-nobuild): Add tst-big-note-lib.
5340
5341 2019-03-01 Stefan Liebler <stli@linux.ibm.com>
5342
5343 * sysdeps/s390/wcscpy-vx.S: Add strong aliases to
5344 __wcscpy, __GI___wcscpy and weak alias to wcscpy.
5345
5346 2019-03-01 Florian Weimer <fweimer@redhat.com>
5347
5348 [BZ #20271]
5349 * sysdeps/unix/sysv/linux/netlink_assert_response.c
5350 (__netlink_assert_response): Add additional missing newlines.
5351
5352 2019-02-28 Joseph Myers <joseph@codesourcery.com>
5353
5354 * sysdeps/powerpc/powerpc32/dl-machine.c
5355 (__elf_machine_fixup_plt): Use space before '('.
5356 (__process_machine_rela): Likewise.
5357 * sysdeps/powerpc/powerpc32/register-dump.h (register_dump):
5358 Likewise.
5359 * sysdeps/powerpc/powerpc64/le/fpu/sfp-machine.h (TI_BITS):
5360 Likewise.
5361 * sysdeps/powerpc/powerpc64/register-dump.h (register_dump):
5362 Likewise.
5363 * sysdeps/powerpc/test-arith.c (union_t): Likewise.
5364 (pattern): Likewise.
5365 (delta): Likewise.
5366 (check_result): Likewise.
5367 (check_excepts): Likewise.
5368 (check_op): Likewise.
5369 (fail_xr): Likewise.
5370 * sysdeps/unix/alpha/sysdep.h (syscall_promote): Likewise.
5371 * sysdeps/unix/sysv/linux/alpha/a.out.h (AOUTHSZ): Likewise.
5372 (SCNHSZ): Likewise.
5373 * sysdeps/unix/sysv/linux/hppa/makecontext.c (FRAME_SIZE_BYTES):
5374 Likewise.
5375 (ARGS): Likewise.
5376 (__makecontext): Likewise.
5377 * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h (ucontext_t):
5378 Likewise.
5379
5380 2019-02-28 Florian Weimer <fweimer@redhat.com>
5381
5382 [BZ #23937]
5383 elf: Add test with a local IFUNC resolver.
5384 * elf/ifuncmain9.c: New file.
5385 * elf/ifuncmain9pic.c: Likewise.
5386 * elf/ifuncmain9picstatic.c: Likewise.
5387 * elf/ifuncmain9pie.c: Likewise.
5388 * elf/ifuncmain9static.c: Likewise.
5389 * elf/Makefile [multi-arch] (tests-ifuncstatic): Add
5390 ifuncmain9static, ifuncmain9picstatic.
5391 * elf/Makefile [multi-arch && build-shared] (tests-internal):
5392 Add ifuncmain9, ifuncmain9pic.
5393 * elf/Makefile [multi-arch && build-shared && have-fpie]
5394 (ifunc-pie-tests): Add ifuncmain9pie.
5395 (CFLAGS-ifuncmain9pic.c): Add $(pic-ccflag).
5396 (CFLAGS-ifuncmain9picstatic.c): Likewise.
5397 (CFLAGS-ifuncmain9pie.c): Add $(pie-ccflag).
5398
5399 2019-02-27 H.J. Lu <hongjiu.lu@intel.com>
5400
5401 * configure.ac (have-ifunc): New LIBC_CONFIG_VAR.
5402 * configure: Regenerated.
5403 * elf/Makefile: Run IFUNC tests if binutils supports IFUNC.
5404
5405 2019-02-27 Adhemerval Zanella <adhemerval.zanella@linaro.org>
5406
5407 * sysdeps/powerpc/powerpc32/power4/multiarch/wcscpy.c: Define ifunc
5408 symbol as __wcspcy instead of wcscpy.
5409
5410 2019-02-27 Samuel Thibault <samuel.thibault@ens-lyon.org>
5411
5412 * include/stdio.h (__renameat2): New hidden prototype.
5413 * stdio-common/renameat2.c (__renameat2): Add hidden definition.
5414 * sysdeps/mach/hurd/renameat.c (__renameat): Move implementation to...
5415 * sysdeps/mach/hurd/renameat2.c (__renameat2): ... new function.
5416 * sysdeps/unix/sysv/linux/renameat2.c (__renameat2): Add hidden definition.
5417
5418 2019-02-27 Joseph Myers <joseph@codesourcery.com>
5419
5420 * hurd/hurdinit.c (_hurd_init): Use braces around empty body of an
5421 if statement.
5422
5423 * benchtests/bench-strcpy.c (do_test): Use space before '('.
5424 * benchtests/bench-string.h (cmdline_process_function): Likewise.
5425 * benchtests/bench-strlen.c (do_test): Likewise.
5426 (test_main): Likewise.
5427 * catgets/gencat.c (read_old): Likewise.
5428 * elf/cache.c (load_aux_cache): Likewise.
5429 * iconvdata/bug-iconv8.c (do_test): Likewise.
5430 * math/test-tgmath-ret.c (do_test): Likewise.
5431 * nis/nis_call.c (rec_dirsearch): Likewise.
5432 * nis/nis_findserv.c (__nis_findfastest_with_timeout): Likewise.
5433 * nptl/tst-audit-threads.c (do_test): Likewise.
5434 * nptl/tst-cancel4-common.h (set_socket_buffer): Likewise.
5435 * nss/nss_test1.c (init): Likewise.
5436 * nss/test-netdb.c (test_hosts): Likewise.
5437 * posix/execvpe.c (maybe_script_execute): Likewise.
5438 * stdio-common/tst-fmemopen4.c (do_test): Likewise.
5439 * stdio-common/tst-printf.c (do_test): Likewise.
5440 * stdio-common/vfscanf-internal.c (__vfscanf_internal): Likewise.
5441 * stdlib/fmtmsg.c (NKEYWORDS): Likewise.
5442 * stdlib/qsort.c (STACK_SIZE): Likewise.
5443 * stdlib/test-canon.c (do_test): Likewise.
5444 * stdlib/tst-swapcontext1.c (do_test): Likewise.
5445 * string/memcmp.c (OPSIZ): Likewise.
5446 * string/test-strcpy.c (do_test): Likewise.
5447 (do_random_tests): Likewise.
5448 * string/test-strlen.c (do_test): Likewise.
5449 (test_main): Likewise.
5450 * string/test-strrchr.c (do_test): Likewise.
5451 (do_random_tests): Likewise.
5452 * string/tester.c (test_memrchr): Likewise.
5453 (test_memchr): Likewise.
5454 * sysdeps/generic/memcopy.h (OPSIZ): Likewise.
5455 * sysdeps/generic/unwind-dw2.c (execute_stack_op): Likewise.
5456 * sysdeps/generic/unwind-pe.h (read_sleb128): Likewise.
5457 (read_encoded_value_with_base): Likewise.
5458 * sysdeps/hppa/dl-machine.h (elf_machine_runtime_setup): Likewise.
5459 * sysdeps/hppa/fpu/feupdateenv.c (__feupdateenv): Likewise.
5460 * sysdeps/ia64/fpu/sfp-machine.h (TI_BITS): Likewise.
5461 * sysdeps/mach/hurd/spawni.c (__spawni): Likewise.
5462 * sysdeps/posix/spawni.c (maybe_script_execute): Likewise.
5463 * sysdeps/powerpc/fpu/tst-setcontext-fpscr.c (query_auxv):
5464 Likewise.
5465 * sysdeps/unix/sysv/linux/aarch64/bits/procfs.h (ELF_NGREG):
5466 Likewise.
5467 * sysdeps/unix/sysv/linux/arm/bits/procfs.h (ELF_NGREG): Likewise.
5468 * sysdeps/unix/sysv/linux/arm/ioperm.c (init_iosys): Likewise.
5469 * sysdeps/unix/sysv/linux/csky/bits/procfs.h (ELF_NGREG):
5470 Likewise.
5471 * sysdeps/unix/sysv/linux/m68k/bits/procfs.h (ELF_NGREG):
5472 Likewise.
5473 * sysdeps/unix/sysv/linux/nios2/bits/procfs.h (ELF_NGREG):
5474 Likewise.
5475 * sysdeps/unix/sysv/linux/spawni.c (maybe_script_execute):
5476 Likewise.
5477 * sysdeps/unix/sysv/linux/x86/bits/procfs.h (ELF_NGREG): Likewise.
5478 * sysdeps/unix/sysv/linux/x86/bits/sigcontext.h
5479 (FP_XSTATE_MAGIC2_SIZE): Likewise.
5480 * sysdeps/x86/fpu/sfp-machine.h (TI_BITS): Likewise.
5481 * time/test_time.c (main): Likewise.
5482
5483 2019-02-27 Adhemerval Zanella <adhemerval.zanella@linaro.org>
5484
5485 * wcsmbs/wcsnlen.c (__wcsnlen): Rewrite using wmemchr.
5486
5487 * wcsmbs/wcsncpy.c (__wcsncpy): Rewrite using wcsnlen, wmemset, and
5488 wmemcpy.
5489
5490 * wcsmbs/wcsncat.c (wcsncat): Rewrite using wcslen, wcsnlen, and
5491 wmemcpy.
5492
5493 * wcsmbs/wcscpy.c (__wcpcpy): Rewrite using wcslen and wmemcpy.
5494
5495 * include/wchar.h (__wcscpy): New prototype.
5496 * sysdeps/powerpc/powerpc32/power4/multiarch/wcscpy-ppc32.c
5497 (__wcscpy): Route internal symbol to generic implementation.
5498 * sysdeps/powerpc/powerpc32/power4/multiarch/wcscpy.c (wcscpy):
5499 Add internal __wcscpy alias.
5500 * sysdeps/powerpc/powerpc64/multiarch/wcscpy.c (wcscpy): Likewise.
5501 * sysdeps/s390/wcscpy.c (wcscpy): Likewise.
5502 * sysdeps/x86_64/multiarch/wcscpy.c (wcscpy): Likewise.
5503 * wcsmbs/wcscpy.c (wcscpy): Add
5504 * sysdeps/x86_64/multiarch/wcscpy-c.c (WCSCPY): Adjust macro to
5505 use generic implementation.
5506 * wcsmbs/wcscat.c (wcscat): Rewrite using wcslen and wcscpy.
5507
5508 * wcsmbs/wcpncpy.c (__wcpcpy): Rewrite using wcslen, wmemcpy, and
5509 wmemset.
5510
5511 * sysdeps/m68k/wcpcpy.c: Remove file.
5512 * wcsmbs/wcpcpy.c (__wcpcpy): Rewrite using wcslen and wmemcpy.
5513
5514 2019-02-26 Joseph Myers <joseph@codesourcery.com>
5515
5516 * sysdeps/arm/sysdep.h (#if condition): Break lines before rather
5517 than after operators.
5518 * sysdeps/mach/hurd/fork.c (__fork): Likewise.
5519 * sysdeps/mach/hurd/getcwd.c
5520 (__hurd_canonicalize_directory_name_internal): Likewise.
5521 * sysdeps/mach/hurd/htl/pt-mutex-consistent.c
5522 (pthread_mutex_consistent): Likewise.
5523 * sysdeps/mach/hurd/htl/pt-mutex-init.c (_pthread_mutex_init):
5524 Likewise.
5525 * sysdeps/mach/hurd/htl/pt-mutex-transfer-np.c
5526 (__pthread_mutex_transfer_np): Likewise.
5527 * sysdeps/mach/hurd/htl/pt-mutex-unlock.c
5528 (__pthread_mutex_unlock): Likewise.
5529 * sysdeps/mach/hurd/htl/pt-mutex.h (ROBUST_LOCK): Likewise.
5530 (mtx_owned_p): Likewise.
5531 * sysdeps/mach/hurd/htl/pt-mutexattr-getrobust.c
5532 (pthread_mutexattr_getrobust): Likewise.
5533 * sysdeps/mach/hurd/i386/init-first.c (init1): Likewise.
5534 * sysdeps/mach/hurd/i386/trampoline.c (_hurd_setup_sighandler):
5535 Likewise.
5536 * sysdeps/mach/hurd/ioctl.c (__ioctl): Likewise.
5537 * sysdeps/mach/hurd/jmp-unwind.c (_longjmp_unwind): Likewise.
5538 * sysdeps/mach/hurd/kill.c (__kill): Likewise.
5539 * sysdeps/mach/hurd/mig-reply.c (__mig_get_reply_port): Likewise.
5540 * sysdeps/mach/hurd/ptrace.c (ptrace): Likewise.
5541 * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Likewise.
5542 * sysdeps/unix/sysv/linux/aarch64/sysdep.h (#if condition):
5543 Likewise.
5544 * sysdeps/unix/sysv/linux/alpha/ioperm.c (process_cpuinfo):
5545 Likewise.
5546 * sysdeps/unix/sysv/linux/bits/timex.h (STA_RONLY): Likewise.
5547 * sysdeps/unix/sysv/linux/csky/sysdep.h (#if condition): Likewise.
5548 * sysdeps/unix/sysv/linux/generic/____longjmp_chk.c
5549 (____longjmp_chk): Likewise.
5550 * sysdeps/unix/sysv/linux/generic/futimesat.c (futimesat):
5551 Likewise.
5552 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h
5553 (INTERNAL_SYSCALL): Likewise.
5554 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h
5555 (INTERNAL_SYSCALL): Likewise.
5556 * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
5557 (__get_clockfreq_via_cpuinfo): Likewise.
5558
5559 * sysdeps/i386/dl-machine.h (elf_machine_rela): Add fall-through
5560 comments.
5561 * sysdeps/m68k/m680x0/fpu/s_cexp_template.c (s(__cexp)): Likewise.
5562 * sysdeps/m68k/memcopy.h (WORD_COPY_FWD): Likewise.
5563 (WORD_COPY_BWD): Likewise.
5564 * sysdeps/mach/hurd/ioctl.c (__ioctl): Likewise.
5565 * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
5566 Likewise.
5567 * sysdeps/s390/iso-8859-1_cp037_z900.c (TR_LOOP): Likewise.
5568 * sysdeps/mips/dl-machine.h (elf_machine_reloc): Move fall-through
5569 comment.
5570 * sysdeps/mips/dl-trampoline.c (__dl_runtime_resolve): Likewise.
5571
5572 2019-02-25 Joseph Myers <joseph@codesourcery.com>
5573
5574 * dirent/dirent.h [!_DIRENT_HAVE_D_NAMLEN
5575 && _DIRENT_HAVE_D_RECLEN] (_D_ALLOC_NAMLEN): Break lines before
5576 rather than after operators.
5577 * elf/cache.c (print_cache): Likewise.
5578 * gshadow/fgetsgent_r.c (__fgetsgent_r): Likewise.
5579 * htl/pt-getattr.c (__pthread_getattr_np): Likewise.
5580 * hurd/hurdinit.c (_hurd_setproc): Likewise.
5581 * hurd/hurdkill.c (_hurd_sig_post): Likewise.
5582 * hurd/hurdlookup.c (__file_name_lookup_under): Likewise.
5583 * hurd/hurdsig.c (_hurd_internal_post_signal): Likewise.
5584 (reauth_proc): Likewise.
5585 * hurd/lookup-at.c (__file_name_lookup_at): Likewise.
5586 (__file_name_split_at): Likewise.
5587 (__directory_name_split_at): Likewise.
5588 * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Likewise.
5589 * hurd/port2fd.c (_hurd_port2fd): Likewise.
5590 * iconv/gconv_dl.c (do_print): Likewise.
5591 * inet/netinet/in.h (struct sockaddr_in): Likewise.
5592 * libio/wstrops.c (_IO_wstr_seekoff): Likewise.
5593 * locale/setlocale.c (new_composite_name): Likewise.
5594 * malloc/memusagestat.c (main): Likewise.
5595 * misc/fstab.c (fstab_convert): Likewise.
5596 * nptl/pthread_mutex_unlock.c (__pthread_mutex_unlock_usercnt):
5597 Likewise.
5598 * nss/nss_compat/compat-grp.c (getgrent_next_nss): Likewise.
5599 (getgrent_next_file): Likewise.
5600 (internal_getgrnam_r): Likewise.
5601 (internal_getgrgid_r): Likewise.
5602 * nss/nss_compat/compat-initgroups.c (getgrent_next_nss):
5603 Likewise.
5604 (internal_getgrent_r): Likewise.
5605 * nss/nss_compat/compat-pwd.c (getpwent_next_nss_netgr): Likewise.
5606 (getpwent_next_nss): Likewise.
5607 (getpwent_next_file): Likewise.
5608 (internal_getpwnam_r): Likewise.
5609 (internal_getpwuid_r): Likewise.
5610 * nss/nss_compat/compat-spwd.c (getspent_next_nss_netgr):
5611 Likewise.
5612 (getspent_next_nss): Likewise.
5613 (internal_getspnam_r): Likewise.
5614 * pwd/fgetpwent_r.c (__fgetpwent_r): Likewise.
5615 * shadow/fgetspent_r.c (__fgetspent_r): Likewise.
5616 * string/strchr.c (STRCHR): Likewise.
5617 * string/strchrnul.c (STRCHRNUL): Likewise.
5618 * sysdeps/aarch64/fpu/fpu_control.h (_FPU_FPCR_IEEE): Likewise.
5619 * sysdeps/aarch64/sfp-machine.h (_FP_CHOOSENAN): Likewise.
5620 * sysdeps/csky/dl-machine.h (elf_machine_rela): Likewise.
5621 * sysdeps/generic/memcopy.h (PAGE_COPY_FWD_MAYBE): Likewise.
5622 * sysdeps/generic/symbol-hacks.h (__stack_chk_fail_local):
5623 Likewise.
5624 * sysdeps/gnu/netinet/ip_icmp.h (ICMP_INFOTYPE): Likewise.
5625 * sysdeps/gnu/updwtmp.c (TRANSFORM_UTMP_FILE_NAME): Likewise.
5626 * sysdeps/gnu/utmp_file.c (TRANSFORM_UTMP_FILE_NAME): Likewise.
5627 * sysdeps/hppa/jmpbuf-unwind.h (_JMPBUF_UNWINDS): Likewise.
5628 * sysdeps/mach/hurd/bits/stat.h (S_ISPARE): Likewise.
5629 * sysdeps/mach/hurd/dl-sysdep.c (_dl_sysdep_start): Likewise.
5630 (open_file): Likewise.
5631 * sysdeps/mach/hurd/htl/pt-mutexattr-setprotocol.c
5632 (pthread_mutexattr_setprotocol): Likewise.
5633 * sysdeps/mach/hurd/ioctl.c (__ioctl): Likewise.
5634 * sysdeps/mach/hurd/mmap.c (__mmap): Likewise.
5635 * sysdeps/mach/hurd/ptrace.c (ptrace): Likewise.
5636 * sysdeps/mach/hurd/spawni.c (__spawni): Likewise.
5637 * sysdeps/microblaze/dl-machine.h (elf_machine_type_class):
5638 Likewise.
5639 (elf_machine_rela): Likewise.
5640 * sysdeps/mips/mips32/sfp-machine.h (_FP_CHOOSENAN): Likewise.
5641 * sysdeps/mips/mips64/sfp-machine.h (_FP_CHOOSENAN): Likewise.
5642 * sysdeps/mips/sys/asm.h (multiple #if conditionals): Likewise.
5643 * sysdeps/posix/rename.c (rename): Likewise.
5644 * sysdeps/powerpc/novmx-sigjmp.c (__novmx__sigjmp_save): Likewise.
5645 * sysdeps/powerpc/sigjmp.c (__vmx__sigjmp_save): Likewise.
5646 * sysdeps/s390/fpu/fenv_libc.h (FPC_VALID_MASK): Likewise.
5647 * sysdeps/s390/utf8-utf16-z9.c (gconv_end): Likewise.
5648 * sysdeps/unix/grantpt.c (grantpt): Likewise.
5649 * sysdeps/unix/sysv/linux/a.out.h (N_TXTOFF): Likewise.
5650 * sysdeps/unix/sysv/linux/updwtmp.c (TRANSFORM_UTMP_FILE_NAME):
5651 Likewise.
5652 * sysdeps/unix/sysv/linux/utmp_file.c (TRANSFORM_UTMP_FILE_NAME):
5653 Likewise.
5654 * sysdeps/x86/cpu-features.c (get_common_indices): Likewise.
5655 * time/tzfile.c (__tzfile_compute): Likewise.
5656
5657 2019-02-22 Joseph Myers <joseph@codesourcery.com>
5658
5659 * benchtests/bench-memmem.c (simple_memmem): Break lines before
5660 rather than after operators.
5661 * benchtests/bench-skeleton.c (TIMESPEC_AFTER): Likewise.
5662 * crypt/md5.c (md5_finish_ctx): Likewise.
5663 * crypt/sha256.c (__sha256_finish_ctx): Likewise.
5664 * crypt/sha512.c (__sha512_finish_ctx): Likewise.
5665 * elf/cache.c (load_aux_cache): Likewise.
5666 * elf/dl-load.c (open_verify): Likewise.
5667 * elf/get-dynamic-info.h (elf_get_dynamic_info): Likewise.
5668 * elf/readelflib.c (process_elf_file): Likewise.
5669 * elf/rtld.c (dl_main): Likewise.
5670 * elf/sprof.c (generate_call_graph): Likewise.
5671 * hurd/ctty-input.c (_hurd_ctty_input): Likewise.
5672 * hurd/ctty-output.c (_hurd_ctty_output): Likewise.
5673 * hurd/dtable.c (reauth_dtable): Likewise.
5674 * hurd/getdport.c (__getdport): Likewise.
5675 * hurd/hurd/signal.h (_hurd_interrupted_rpc_timeout): Likewise.
5676 * hurd/hurd/sigpreempt.h (HURD_PREEMPT_SIGNAL_P): Likewise.
5677 * hurd/hurdfault.c (_hurdsig_fault_catch_exception_raise):
5678 Likewise.
5679 * hurd/hurdioctl.c (fioctl): Likewise.
5680 * hurd/hurdselect.c (_hurd_select): Likewise.
5681 * hurd/hurdsig.c (_hurdsig_abort_rpcs): Likewise.
5682 (STOPSIGS): Likewise.
5683 * hurd/hurdstartup.c (_hurd_startup): Likewise.
5684 * hurd/intr-msg.c (_hurd_intr_rpc_mach_msg): Likewise.
5685 * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Likewise.
5686 * hurd/msgportdemux.c (msgport_server): Likewise.
5687 * hurd/setauth.c (_hurd_setauth): Likewise.
5688 * include/features.h (__GLIBC_USE_DEPRECATED_SCANF): Likewise.
5689 * libio/libioP.h [IO_DEBUG] (CHECK_FILE): Likewise.
5690 * locale/programs/ld-ctype.c (set_class_defaults): Likewise.
5691 * localedata/tests-mbwc/tst_swscanf.c (tst_swscanf): Likewise.
5692 * login/tst-utmp.c (do_check): Likewise.
5693 (simulate_login): Likewise.
5694 * mach/lowlevellock.h (lll_lock): Likewise.
5695 (lll_trylock): Likewise.
5696 * math/test-fenv.c (ALL_EXC): Likewise.
5697 * math/test-fenvinline.c (ALL_EXC): Likewise.
5698 * misc/sys/cdefs.h (__attribute_deprecated_msg__): Likewise.
5699 * nis/nis_call.c (__do_niscall3): Likewise.
5700 * nis/nis_callback.c (cb_prog_1): Likewise.
5701 * nis/nis_defaults.c (searchaccess): Likewise.
5702 * nis/nis_findserv.c (__nis_findfastest_with_timeout): Likewise.
5703 * nis/nis_ismember.c (internal_ismember): Likewise.
5704 * nis/nis_local_names.c (nis_local_principal): Likewise.
5705 * nis/nss_nis/nis-rpc.c (_nss_nis_getrpcbyname_r): Likewise.
5706 * nis/nss_nisplus/nisplus-netgrp.c (_nss_nisplus_getnetgrent_r):
5707 Likewise.
5708 * nis/ypclnt.c (yp_match): Likewise.
5709 (yp_first): Likewise.
5710 (yp_next): Likewise.
5711 (yp_master): Likewise.
5712 (yp_order): Likewise.
5713 * nscd/hstcache.c (cache_addhst): Likewise.
5714 * nscd/initgrcache.c (addinitgroupsX): Likewise.
5715 * nss/nss_compat/compat-pwd.c (copy_pwd_changes): Likewise.
5716 (internal_getpwuid_r): Likewise.
5717 * nss/nss_compat/compat-spwd.c (copy_spwd_changes): Likewise.
5718 * posix/glob.h (__GLOB_FLAGS): Likewise.
5719 * posix/regcomp.c (peek_token): Likewise.
5720 (peek_token_bracket): Likewise.
5721 (parse_expression): Likewise.
5722 * posix/regexec.c (sift_states_iter_mb): Likewise.
5723 (check_node_accept_bytes): Likewise.
5724 * posix/tst-spawn3.c (do_test): Likewise.
5725 * posix/wordexp-test.c (testit): Likewise.
5726 * posix/wordexp.c (parse_tilde): Likewise.
5727 (exec_comm): Likewise.
5728 * posix/wordexp.h (__WRDE_FLAGS): Likewise.
5729 * resource/vtimes.c (TIMEVAL_TO_VTIMES): Likewise.
5730 * setjmp/sigjmp.c (__sigjmp_save): Likewise.
5731 * stdio-common/printf_fp.c (__printf_fp_l): Likewise.
5732 * stdio-common/tst-fileno.c (do_test): Likewise.
5733 * stdio-common/vfprintf-internal.c (vfprintf): Likewise.
5734 * stdlib/strfmon_l.c (__vstrfmon_l_internal): Likewise.
5735 * stdlib/strtod_l.c (round_and_return): Likewise.
5736 (____STRTOF_INTERNAL): Likewise.
5737 * stdlib/tst-strfrom.h (TEST_STRFROM): Likewise.
5738 * string/strcspn.c (STRCSPN): Likewise.
5739 * string/test-memmem.c (simple_memmem): Likewise.
5740 * termios/tcsetattr.c (tcsetattr): Likewise.
5741 * time/alt_digit.c (_nl_parse_alt_digit): Likewise.
5742 * time/asctime.c (asctime_internal): Likewise.
5743 * time/strptime_l.c (__strptime_internal): Likewise.
5744 * time/sys/time.h (timercmp): Likewise.
5745 * time/tzfile.c (__tzfile_compute): Likewise.
5746
5747 2019-02-21 Patsy Griffin Franklin <pfrankli@redhat.com>
5748
5749 [BZ #21915]
5750 * nss/tst-nss-files-hosts-long.root/etc/host.conf: New file.
5751
5752 2019-02-21 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
5753
5754 * argp/argp-help.c (__argp_error_internal): New function,
5755 renamed from __argp_error, but that takes a 'mode_flags'
5756 parameter to control the format of long double parameters.
5757 (__argp_error): Converted into a call __argp_error_internal.
5758 (__argp_failure_internal): New function, renamed from
5759 __argp_failure, but that takes a 'mode_flags' parameter.
5760 (__argp_failure): Converted into a call __argp_failure_internal.
5761 * misc/err.c (__vwarnx_internal): New function, renamed from
5762 vwarnx, but that takes a 'mode_flags' parameter.
5763 (vwarnx): Converted into a call to __vwarnx_internal.
5764 (__vwarn_internal): New function, renamed from vwarn, but that
5765 takes a 'mode_flags' parameter.
5766 (vwarn): Converted into a call to __vwarn_internal.
5767 * misc/error.c (error_tail): Add 'mode_flags' parameter. Update
5768 call to __vfxprintf with 'mode_flags'.
5769 (__error_internal): New function, renamed from error, but that
5770 takes a 'mode_flags' parameter.
5771 (error): Converted into a call to __error_internal.
5772 (__error_at_line_internal): New function, renamed from
5773 error_at_line, but that takes a 'mode_flags' parameter.
5774 (error_at_line): Converted into a call to
5775 __error_at_line_internal.
5776 * include/stdio.h (__vfxprintf): Add mode_flags parameter.
5777 * stdio-common/fxprintf.c (locked_vfxprintf, __vfxprintf):
5778 Likewise.
5779
5780 2019-02-20 Martin Liska <mliska@suse.cz>
5781
5782 * math/Makefile: Install math-vector-fortran.h.
5783 * bits/math-vector-fortran.h: New file.
5784 * sysdeps/x86/fpu/bits/math-vector-fortran.h: New file.
5785
5786 2019-02-20 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
5787
5788 * sysdeps/powerpc/powerpc64/le/configure.ac: Remove test.
5789 * sysdeps/powerpc/powerpc64/le/configure: Regenerate.
5790
5791 2019-02-19 Wolfram Sang <wsa@the-dreams.de>
5792
5793 * nptl/pthread_mutex_trylock.c: Fix comment.
5794
5795 2019-02-19 Carlos O'Donell <carlos@redhat.com>
5796
5797 * nptl/pthread_tryjoin.c: Fix comment.
5798
5799 2019-02-18 Joseph Myers <joseph@codesourcery.com>
5800
5801 [BZ #24231]
5802 * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Add break
5803 after R_SPARC_H34 case.
5804
5805 2019-02-18 Florian Weimer <fweimer@redhat.com>
5806
5807 * resolv/compat-gethnamaddr.c (Dprintf): Remove definition.
5808 (getanswer): Do not call Dprintf.
5809 (res_gethostbyname2_context): Likewise.
5810 (res_gethostbyaddr_context): Likewise.
5811
5812 2019-02-18 Florian Weimer <fweimer@redhat.com>
5813
5814 * libio/libio.h (_IO_stdin, _IO_stdout, _IO_stderr): Remove
5815 declaration.
5816 * libio/stdio.c (AL, AL2, _IO_stdin, _IO_stdout, _IO_stderr):
5817 Remove definitions.
5818 * libio/stdfiles.c: Update comment.
5819 * libio/oldstdfiles.c (_IO_check_libio): Update comment. Do not
5820 set _IO_stdin, _IO_stdout, _IO_stderr.
5821 * libio/libioP.h (_IO_fake_stdiobuf): Remove unused declaration.
5822 [SHLIB_COMPAT (libc, GLIBC_2_0, GLIBC_2_1)] (_IO_legacy_file): New
5823 inline function.
5824 (_IO_deallocate_file): New inline function.
5825 * libio/iolibio.h (_IO_vprintf): Remove definition.
5826 * libio/iofclose.c (_IO_new_fclose): Use _IO_deallocate_file.
5827 * libio/oldiofclose.c (_IO_old_fclose): Likewise.
5828 * libio/iofwide.c (_IO_fwide): Use __glibc_unlikely and
5829 _IO_legacy_file.
5830 * libio/oldfileops.c (_IO_old_file_init_internal): Remove
5831 __builtin_expect. Use _IO_legacy_file.
5832
5833 2019-02-18 Stefan Liebler <stli@linux.ibm.com>
5834
5835 * sysdeps/unix/sysv/linux/tst-clone3.c (do_test):
5836 Initialize ctid with a known value and remove update of ctid
5837 after clone.
5838 (wait_tid): Adjust arguments and call futex_wait with ctid_val
5839 as assumed current value of ctid_ptr.
5840
5841 2019-02-16 Florian Weimer <fweimer@redhat.com>
5842
5843 Check that non-sysdeps headers have wrapper headers.
5844 * scripts/check-wrapper-headers.py: New file.
5845 * Makefile (tests-special): Add check-wrapper-headers.out.
5846 (check-wrapper-headers.out): New target.
5847 * Rules (tests-special): Add check-wrapper-headers.out.
5848 (check-wrapper-headers.out): New target.
5849
5850 2019-02-16 Florian Weimer <fweimer@redhat.com>
5851
5852 Add missing header wrappers under include/.
5853 * include/ar.h: New file.
5854 * include/bits/mqueue2.h: Likewise.
5855 * include/bits/stdio.h: Likewise.
5856 * include/bits/stdio2.h: Likewise.
5857 * include/fstab.h: Likewise.
5858 * include/fts.h: Likewise.
5859 * include/lastlog.h: Likewise.
5860 * include/netinet/icmp6.h: Likewise.
5861 * include/netinet/igmp.h: Likewise.
5862 * include/netinet/ip6.h: Likewise.
5863 * include/re_comp.h: Likewise.
5864 * include/regexp.h: Likewise.
5865 * include/rpcsvc/bootparam.h: Likewise.
5866 * include/rpcsvc/yp_prot.h: Likewise.
5867 * include/sys/random.h: Likewise.
5868 * include/sys/stropts.h: Likewise.
5869 * include/sys/ttychars.h: Likewise.
5870 * include/sys/vfs.h: Likewise.
5871 * include/wait.h: Likewise.
5872
5873 2019-02-16 Florian Weimer <fweimer@redhat.com>
5874
5875 * nptl_db/proc_service.h: Move to ...
5876 * sysdeps/nptl/proc_service.h: ... here.
5877 * nptl_db/thread_db.h: Move to ...
5878 * sysdeps/nptl/thread_db.h: ... here.
5879 * nptl/descr.h: Include <thread_db.h>.
5880
5881 2019-02-15 Adhemerval Zanella <adhemerval.zanella@linaro.org>
5882
5883 * io/Makefile (tests): Add tst-lockf.
5884 * io/lockf.c (lockf): Use __fcntl and only define for
5885 !__OFF_T_MATCHES_OFF64_T.
5886 * io/lockf64.c (__lockf64): Call __fcntl64 and alias to lockf for
5887 __OFF_T_MATCHES_OFF64_T case.
5888 * io/tst-lockf.c: New file.
5889 * sysdeps/unix/sysv/linux/i386/lockf64.c: Remove file.
5890 * sysdeps/unix/sysv/linux/arm/lockf64.c: Likewise.
5891 * sysdeps/unix/sysv/linux/m68k/lockf64.c: Likewise.
5892 * sysdeps/unix/sysv/linux/mips/mips32/lockf64.c: Likewise.
5893 * sysdeps/unix/sysv/linux/mips/mips64/n32/lockf64.c: Likewise.
5894 * sysdeps/unix/sysv/linux/powerpc/powerpc32/lockf64.c: Likewise.
5895 * sysdeps/unix/sysv/linux/s390/s390-32/lockf64.c: Likewise.
5896 * sysdeps/unix/sysv/linux/sh/lockf64.c: Likewise.
5897 * sysdeps/unix/sysv/linux/sparc/sparc32/lockf64.c: Likewise.
5898
5899 2019-02-15 Florian Weimer <fweimer@redhat.com>
5900
5901 [BZ #24211]
5902 * nptl/pthread_join_common.c (__pthread_timedjoin_ex): Do not read
5903 pd->result after the thread descriptor has been freed.
5904
5905 2019-02-15 Joseph Myers <joseph@codesourcery.com>
5906
5907 * sunrpc/tst-svc_register.c (rpcbind_address): Remove qualifier
5908 from function return type.
5909
5910 * setjmp/tst-setjmp.c (jump): Use __attribute__ ((__noreturn__)).
5911
5912 2019-02-14 Jan Kratochvil <jan.kratochvil@redhat.com>
5913
5914 * scripts/test_printers_common.py: Set TERM to a known harmless
5915 value.
5916
5917 2019-02-14 Joseph Myers <joseph@codesourcery.com>
5918
5919 * sunrpc/xdr.c (xdr_int): Add fall-through comment.
5920 (xdr_u_int): Likewise.
5921 (xdr_enum): Likewise.
5922 (xdr_bytes): Reword fall-through comment.
5923 (xdr_string): Likewise.
5924
5925 2019-02-14 Adhemerval Zanella <adhemerval.zanella@linaro.org>
5926
5927 [BZ #2421]
5928 * nptl/Makefile (lpthread-routines): Remove lll_timedwait_tid.
5929 (tests): Add tst-join8 tst-join9.
5930 * nptl/lll_timedwait_tid.c: Remove file.
5931 * sysdeps/sparc/sparc32/lll_timedwait_tid.c: Likewise.
5932 * sysdeps/unix/sysv/linux/i386/lll_timedwait_tid.c: Likewise.
5933 * sysdeps/sysv/linux/x86_64/lll_timedwait_tid.c: Likewise.
5934 * nptl/pthread_join_common.c (timedwait_tid): New function.
5935 (__pthread_timedjoin_ex): Act as cancellation entrypoint is block
5936 is set.
5937 * nptl/tst-join5.c (thread_join): New function.
5938 (tf1, tf2, do_test): Use libsupport and add pthread_timedjoin_np
5939 check.
5940 * nptl/tst-join8.c: New file.
5941 * nptl/tst-join9.c: Likewise.
5942 * sysdeps/nptl/lowlevellock-futex.h (lll_futex_wait_cancel,
5943 lll_futex_timed_wait_cancel): Add generic macros.
5944 * sysdeps/nptl/lowlevellock.h (__lll_timedwait_tid, lll_wait_tid):
5945 Remove definitions.
5946 * sysdeps/unix/sysv/linux/i386/lowlevellock.h: Likewise.
5947 * sysdeps/unix/sysv/linux/sparc/lowlevellock.h: Likewise.
5948 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h: Likewise.
5949 * sysdeps/sparc/sparc32/lowlevellock.c (__lll_timedwait_tid):
5950 Remove function.
5951 * sysdeps/unix/sysv/linux/i386/lowlevellock.S (__lll_timedwait_tid):
5952 Likewise.
5953 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.S: Likewise.
5954 * sysdeps/unix/sysv/linux/lowlevellock-futex.h
5955 (lll_futex_timed_wait_cancel): New macro.
5956
5957 2019-02-14 Wilco Dijkstra <wdijkstr@arm.com>
5958
5959 * benchtests/Makefile: Add malloc-simple benchmark.
5960 * benchtests/bench-malloc-simple.c: New benchmark.
5961
5962 2019-02-14 Siddhesh Poyarekar <siddhesh@sourceware.org>
5963
5964 * benchtests/bench-memmove.c (do_one_test): Remove unused
5965 ORIG_SRC.
5966 (do_test): Adjust.
5967 * benchtests/bench-memmove-large.c (do_one_test): Remove unused
5968 ORIG_SRC.
5969 (do_test): Adjust.
5970
5971 2019-01-13 Jim Wilson <jimw@sifive.com>
5972
5973 [BZ #24040]
5974 * elf/Makefile (CFLAGS-tst-unwind-main.c): Add -DUSE_PTHREADS=0.
5975 * elf/tst-unwind-main.c: If USE_PTHEADS, include pthread.h and error.h
5976 (func): New.
5977 (main): If USE_PTHREADS, call pthread_create to run func. Otherwise
5978 call func directly.
5979 * nptl/Makefile (tests): Add tst-unwind-thread.
5980 (CFLAGS-tst-unwind-thread.c): Define.
5981 * nptl/tst-unwind-thread.c: New file.
5982 * sysdeps/unix/sysv/linux/riscv/clone.S (__thread_start): Mark ra
5983 as undefined.
5984
5985 2019-02-13 Joseph Myers <joseph@codesourcery.com>
5986
5987 * iconvdata/cns11643.h (ucs4_to_cns11643): Adjust fall-through
5988 comment wording.
5989 * nis/nis_call.c (__do_niscall3): Likewise.
5990
5991 * catgets/gencat.c (normalize_line): Use braces around empty
5992 'else' body.
5993 * include/stap-probe.h [!USE_STAP_PROBE && !__ASSEMBLER__]
5994 (STAP_PROBE0): Use do {} while (0) for do-nothing definition.
5995 [!USE_STAP_PROBE && !__ASSEMBLER__] (STAP_PROBE1): Likewise.
5996 [!USE_STAP_PROBE && !__ASSEMBLER__] (STAP_PROBE2): Likewise.
5997 [!USE_STAP_PROBE && !__ASSEMBLER__] (STAP_PROBE3): Likewise.
5998 [!USE_STAP_PROBE && !__ASSEMBLER__] (STAP_PROBE4): Likewise.
5999 * libio/libio.h (_IO_funlockfile): Use ((void) 0) for do-nothing
6000 definition.
6001
6002 * support/test-container.c (recursive_remove): Use FAIL_EXIT1 if
6003 execlp returns.
6004
6005 2019-02-12 Wilco Dijkstra <wdijkstr@arm.com>
6006
6007 * benchtests/bench-strcasecmp.c (stupid_strcasecmp): Remove.
6008 * benchtests/bench-strcasestr.c (stupid_strcasestr): Remove.
6009 * benchtests/bench-strchr.c (stupid_strchr): Remove.
6010 * benchtests/bench-strcmp.c (stupid_strcmp): Remove.
6011 * benchtests/bench-strcspn.c (stupid_strcspn): Remove.
6012 * benchtests/bench-strlen.c (builtin_strlen): Remove.
6013 * benchtests/bench-strncasecmp.c (stupid_strncasecmp): Remove.
6014 * benchtests/bench-strncmp.c (stupid_strncmp): Remove.
6015 * benchtests/bench-strpbrk.c (stupid_strpbrk): Remove.
6016 * benchtests/bench-strspn.c (stupid_strspn): Remove.
6017 * benchtests/Makefile: Remove bench-bcopy.c and bench-bzero.c.
6018 * benchtests/bench-bcopy.c: Delete file.
6019 * benchtests/bench-bzero.c: Likewise.
6020 * benchtests/bench-memccpy.c (stupid_memccpy): Remove.
6021 (simple_memccpy): Remove.
6022 (generic_memccpy): Add function.
6023 * benchtests/bench-memcpy.c: (builtin_memcpy): Remove.
6024 * benchtests/bench-memmove.c (simple_bcopy): Remove.
6025 * benchtests/bench-mempcpy.c (simple_mempcpy): Remove.
6026 (generic_mempcpy): Add new function.
6027 * benchtests/bench-memset.c (simple_bzero): Remove.
6028 (builtin_bzero): Remove.
6029 (builtin_memset): Remove.
6030 * benchtests/bench-rawmemchr.c (simple_rawmemchr): Remove.
6031 (generic_rawmemchr): Add new function.
6032
6033 2019-02-12 Florian Weimer <fweimer@redhat.com>
6034
6035 * nss/getent.c (ahosts_keys_int): Include IPv6 scope ID in output.
6036
6037 2019-02-12 Adhemerval Zanella <adhemerval.zanella@linaro.org>
6038
6039 [BZ #24122]
6040 * elf/Makefile (tests): Add tst-audit13.
6041 (modules-names): Add tst-audit13mod1.
6042 (tst-audit13.out, LDFLAGS-tst-audit13mod1.so, tst-audit13-ENV): New
6043 rule.
6044 * elf/tst-audit13.c: New file.
6045 * elf/tst-audit13mod1.c: Likewise.
6046
6047 2019-02-12 Florian Weimer <fweimer@redhat.com>
6048
6049 [BZ #24122]
6050 * elf/rtld.c (unload_audit_module): New function.
6051 (report_audit_module_load_error): Likewise.
6052 (load_audit_module): Likewise. Extracted from dl_main. Call
6053 _dl_close if the laversion symbol cannot be found. Use early
6054 returns for error handling. Add malloc error check. Check for a
6055 zero return value from la_version. Remove spurious comment about
6056 static TLS initialization. Remove useless casts.
6057 (notify_audit_modules_of_loaded_object): New function. Extracted
6058 from dl_main.
6059 (load_audit_module): Likewise.
6060 (dl_main): Call load_audit_modules.
6061
6062 2019-02-12 Joseph Myers <joseph@codesourcery.com>
6063
6064 * elf/dl-exception.c (_dl_exception_create_format): Add
6065 fall-through comments.
6066 * elf/ldconfig.c (parse_conf_include): Likewise.
6067 * elf/rtld.c (print_statistics): Likewise.
6068 * locale/programs/charmap.c (parse_charmap): Likewise.
6069 * misc/mntent_r.c (__getmntent_r): Likewise.
6070 * posix/wordexp.c (parse_arith): Likewise.
6071 (parse_backtick): Likewise.
6072 * resolv/ns_ttl.c (ns_parse_ttl): Likewise.
6073 * sysdeps/x86/cpu-features.c (init_cpu_features): Likewise.
6074 * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Likewise.
6075
6076 2019-02-11 Paul A. Clarke <pc@us.ibm.com>
6077
6078 * sysdeps/powerpc/fpu/e_sqrt.c (__slow_ieee754_sqrtf):
6079 Use float instead of double.
6080
6081 2019-02-11 TAMUKI Shoichi <tamuki@linet.gr.jp>
6082
6083 * time/strftime_l.c: Fix a few whitespace arrangement inconsistencies.
6084
6085 2019-02-08 Joseph Myers <joseph@codesourcery.com>
6086
6087 * sysdeps/powerpc/bits/mathinline.h: Remove.
6088
6089 2019-02-08 Florian Weimer <fweimer@redhat.com>
6090
6091 math: Enable <bits/math-finite.h> sysdeps override, as used on ia64.
6092 * math/bits/math-finite.h: Move to ...
6093 * bits/math-finite.h: ... here.
6094
6095 2019-02-08 Florian Weimer <fweimer@redhat.com>
6096
6097 * sysdeps/generic/bits/unistd_ext.h: Move to ...
6098 * bits/unistd_ext.h: here.
6099
6100 2019-02-08 Patsy Griffin Franklin <pfrankli@redhat.com>
6101
6102 [BZ #21915]
6103 * nss/Makefile (test-container): Add tst-nss-files-hosts-long.
6104 * nss/tst-nss-files-hosts-long.c: New file.
6105 * nss/tst-nss-files-hosts-long.root: New directory.
6106 * nss/tst-nss-files-hosts-long.root/etc: Likewise.
6107 * nss/tst-nss-files-hosts-long.root/etc/hosts: New file.
6108
6109 2019-02-08 Florian Weimer <fweimer@redhat.com>
6110
6111 * include/bits/unistd_ext.h: Remove file.
6112 * posix/bits/unistd_ext.h: Move to ...
6113 * sysdeps/generic/bits/unistd_ext.h: ... here.
6114
6115 2019-02-08 Florian Weimer <fweimer@redhat.com>
6116
6117 * include/bits/unistd_ext.h: New file.
6118
6119 2019-02-08 TAMUKI Shoichi <tamuki@linet.gr.jp>
6120
6121 * time/tst-strftime2.c: Use array_length macros instead of magic
6122 numbers.
6123
6124 2019-02-08 Florian Weimer <fweimer@redhat.com>
6125
6126 [BZ #24161]
6127 * sysdeps/nptl/fork.h (__run_fork_handlers): Add multiple_threads
6128 argument.
6129 * nptl/register-atfork.c (__run_fork_handlers): Only perform
6130 locking if the new do_locking argument is true.
6131 * sysdeps/nptl/fork.c (__libc_fork): Pass multiple_threads to
6132 __run_fork_handlers.
6133
6134 2019-02-08 Florian Weimer <fweimer@redhat.com>
6135
6136 [BZ #6399]
6137 Linux: Add gettid system call wrapper.
6138 * posix/Makefile (headers): Add bits/unistd_ext.h.
6139 * posix/bits/unistd_ext.h: New file.
6140 * posix/unistd.h: Include it.
6141 * manual/process.texi (Process Identification): Document gettid.
6142 * sysdeps/unix/sysv/linux/Makefile [subdir == misc] (tests): Add
6143 tst-gettid, tst-gettid-kill.
6144 (tst-gettid): Link with $(shared-thread-library).
6145 * sysdeps/unix/sysv/linux/Version (GLIBC_2.30): Export gettid.
6146 * sysdeps/unix/sysv/linux/bits/unistd_ext.h: New file.
6147 * sysdeps/unix/sysv/linux/bits/syscalls.list (gettid): Add.
6148 * sysdeps/unix/sysv/linux/bits/tst-gettid.c: New file.
6149 * sysdeps/unix/sysv/linux/bits/tst-gettid-kill.c: Likewise.
6150 * sysdeps/unix/sysv/linux/aarch64/libc.abilist (GLIBC_2.30):
6151 Add gettid.
6152 * sysdeps/unix/sysv/linux/alpha/libc.abilist (GLIBC_2.30):
6153 Likewise.
6154 * sysdeps/unix/sysv/linux/arm/libc.abilist (GLIBC_2.30): Likewise.
6155 * sysdeps/unix/sysv/linux/csky/libc.abilist (GLIBC_2.30):
6156 Likewise.
6157 * sysdeps/unix/sysv/linux/hppa/libc.abilist (GLIBC_2.30):
6158 Likewise.
6159 * sysdeps/unix/sysv/linux/i386/libc.abilist (GLIBC_2.30):
6160 Likewise.
6161 * sysdeps/unix/sysv/linux/ia64/libc.abilist (GLIBC_2.30):
6162 Likewise.
6163 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist (GLIBC_2.30):
6164 Likewise.
6165 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist (GLIBC_2.30):
6166 Likewise.
6167 * sysdeps/unix/sysv/linux/microblaze/libc.abilist (GLIBC_2.30):
6168 Likewise.
6169 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist
6170 (GLIBC_2.30): Likewise.
6171 * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist
6172 (GLIBC_2.30): Likewise.
6173 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist
6174 (GLIBC_2.30): Likewise.
6175 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist
6176 (GLIBC_2.30): Likewise.
6177 * sysdeps/unix/sysv/linux/nios2/libc.abilist (GLIBC_2.30):
6178 Likewise.
6179 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist
6180 (GLIBC_2.30): Likewise.
6181 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist
6182 (GLIBC_2.30): Likewise.
6183 * sysdeps/unix/sysv/linux/powerpc/powerpc64/be/libc.abilist
6184 (GLIBC_2.30): Likewise.
6185 * sysdeps/unix/sysv/linux/powerpc/powerpc64/le/libc.abilist
6186 (GLIBC_2.30): Likewise.
6187 * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist (GLIBC_2.30):
6188 Likewise.
6189 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist (GLIBC_2.30):
6190 Likewise.
6191 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist (GLIBC_2.30):
6192 Likewise.
6193 * sysdeps/unix/sysv/linux/sh/libc.abilist (GLIBC_2.30): Likewise.
6194 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist (GLIBC_2.30):
6195 Likewise.
6196 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist (GLIBC_2.30):
6197 Likewise.
6198 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist (GLIBC_2.30):
6199 Likewise.
6200 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist (GLIBC_2.30):
6201 Likewise.
6202 * sysdeps/unix/sysv/linux/tst-setgetname.c (gettid): Remove.
6203
6204 2019-02-08 Florian Weimer <fweimer@redhat.com>
6205
6206 * rt/clock-compat.c (COMPAT_REDIRECT): Turn librt forwarders into
6207 compatibility symbols.
6208
6209 2019-02-07 Stefan Liebler <stli@linux.ibm.com>
6210
6211 [BZ #24180]
6212 * nptl/pthread_mutex_trylock.c (__pthread_mutex_trylock):
6213 Add compiler barriers and comments.
6214
6215 2019-02-07 Florian Weimer <fweimer@redhat.com>
6216
6217 * include/array_length.h (array_length): Do not use a statement
6218 expression and _Static_assert, so that array_length can be used at
6219 file scope and as a constant expression.
6220
6221 2019-02-07 Florian Weimer <fweimer@redhat.com>
6222
6223 * support/xdlfcn.h (xdlmopen): Declare.
6224 * support/xdlmopen.c: New file.
6225 * support/Makefile (libsupport-routines): Add xdlmopen.
6226
6227 2019-02-06 Joseph Myers <joseph@codesourcery.com>
6228
6229 * elf/dl-load.h (_dl_postprocess_loadcmd): Use __always_inline
6230 before return type, without separate inline.
6231 * elf/dl-tunables.c (maybe_enable_malloc_check): Likewise.
6232 * elf/dl-tunables.h (tunable_is_name): Likewise.
6233 * malloc/malloc.c (do_set_trim_threshold): Likewise.
6234 (do_set_top_pad): Likewise.
6235 (do_set_mmap_threshold): Likewise.
6236 (do_set_mmaps_max): Likewise.
6237 (do_set_mallopt_check): Likewise.
6238 (do_set_perturb_byte): Likewise.
6239 (do_set_arena_test): Likewise.
6240 (do_set_arena_max): Likewise.
6241 (do_set_tcache_max): Likewise.
6242 (do_set_tcache_count): Likewise.
6243 (do_set_tcache_unsorted_limit): Likewise.
6244 * nis/nis_subr.c (count_dots): Likewise.
6245 * nptl/allocatestack.c (advise_stack_range): Likewise.
6246 * sysdeps/ieee754/dbl-64/s_sin.c (do_cos): Likewise.
6247 (do_sin): Likewise.
6248 (reduce_sincos): Likewise.
6249 (do_sincos): Likewise.
6250 * sysdeps/unix/sysv/linux/x86/elision-conf.c
6251 (do_set_elision_enable): Likewise.
6252 (TUNABLE_CALLBACK_FNDECL): Likewise.
6253
6254 2019-02-06 Florian Weimer <fweimer@redhat.com>
6255
6256 * support/xdlfcn.c (xdlopen, xdlclose): Do not call dlerror.
6257 (xdlsym): Use dlerror to detect a NULL symbol.
6258
6259 2019-02-06 Florian Weimer <fweimer@redhat.com>
6260
6261 * sysdeps/unix/sysv/linux/i386/lowlevellock.h: Do not include
6262 <stap-probe.h>.
6263 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h: Likewise.
6264
6265 2019-02-06 Stefan Liebler <stli@linux.ibm.com>
6266
6267 * libio/tst-bz24153.c (wide): Use wide char format specifier.
6268
6269 2019-02-06 Stefan Liebler <stli@linux.ibm.com>
6270
6271 * sysdeps/s390/wmemcmp-vx.S: Add strong alias to
6272 __wmemcmp and weak alias to wmemcmp.
6273
6274 2019-02-06 Stefan Liebler <stli@linux.ibm.com>
6275
6276 [BZ #23403]
6277 * nptl/allocatestack.c (allocate_stack): Align pointer pd for
6278 TLS_TCB_AT_TP tls variant.
6279 * nptl/tst-tls1.c: Migrate to support/test-driver.c.
6280 Add alignment checks.
6281 * support/Makefile (libsupport-routines): Add xposix_memalign and
6282 xpthread_setstack.
6283 * support/support.h: Add xposix_memalign.
6284 * support/xthread.h: Add xpthread_attr_setstack.
6285 * support/xposix_memalign.c: New File.
6286 * support/xpthread_attr_setstack.c: Likewise.
6287
6288 2019-02-05 Florian Weimer <fweimer@redhat.com>
6289
6290 [BZ #24164]
6291 arm: Use "nr" constraint for Systemtap probes, to avoid the
6292 compiler using memory operands for constants, due to the "o"
6293 alternative in the default "nor" constraint.
6294 * include/stap-probe.h [USE_STAP_PROBE]: Include
6295 <stap-probe-machine.h>
6296 * sysdeps/generic/stap-probe-machine.h: New file.
6297 * sysdeps/arm/stap-probe-machine.h: Likewise.
6298
6299 2019-02-04 Joseph Myers <joseph@codesourcery.com>
6300
6301 * malloc/malloc.c (tcache_get): Compare tcache->counts[tc_idx]
6302 with 0, not tcache->entries[tc_idx].
6303
6304 * nscd/connections.c (reqinfo): Initialize SHUTDOWN element only
6305 once.
6306
6307 2019-02-04 Andreas Schwab <schwab@suse.de>
6308
6309 [BZ #16976]
6310 [BZ #17396]
6311 * posix/fnmatch_loop.c (internal_fnmatch, internal_fnwmatch): When
6312 looking up collating elements match against (wide) character
6313 sequence instead of name. Correct alignment adjustment.
6314 * posix/fnmatch.c: Don't include "../locale/elem-hash.h".
6315 (WMEMCMP) [HANDLE_MULTIBYTE]: Define.
6316 * posix/Makefile (tests): Add tst-fnmatch4 and tst-fnmatch5.
6317 (LOCALES): Add cs_CZ.ISO-8859-2.
6318 * posix/tst-fnmatch4.c: New file.
6319 * posix/tst-fnmatch5.c: New file.
6320 * include/wchar.h (__wmemcmp): Declare.
6321 * wcsmbs/wmemcmp.c: Define __wmemcmp and add wmemcmp as weak alias.
6322 * sysdeps/i386/i686/multiarch/wmemcmp.c: Likewise.
6323 * sysdeps/x86_64/multiarch/wmemcmp.c: Likewise.
6324 * sysdeps/s390/wmemcmp.c: Likewise.
6325
6326 2019-02-04 H.J. Lu <hongjiu.lu@intel.com>
6327
6328 [BZ #24155]
6329 CVE-2019-7309
6330 * NEWS: Updated for CVE-2019-7309.
6331 * sysdeps/x86_64/memcmp.S: Use RDX_LP for size. Clear the
6332 upper 32 bits of RDX register for x32. Use unsigned Jcc
6333 instructions, instead of signed.
6334 * sysdeps/x86_64/x32/Makefile (tests): Add tst-size_t-memcmp-2.
6335 * sysdeps/x86_64/x32/tst-size_t-memcmp-2.c: New test.
6336
6337 2019-02-04 Florian Weimer <fweimer@redhat.com>
6338
6339 * posix/spawn.h (posix_spawn, posix_spawnp): Add __nonnull attribute.
6340 (posix_spawnattr_init, posix_spawnattr_destroy): Likewise.
6341 (posix_spawnattr_getsigdefault, posix_spawnattr_setsigdefault):
6342 Likewise.
6343 (posix_spawnattr_getsigmask, posix_spawnattr_setsigmask): Likewise.
6344 (posix_spawnattr_getflags, posix_spawnattr_setflags): Likewise.
6345 (posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Likewise.
6346 (posix_spawnattr_getschedpolicy, posix_spawnattr_setschedpolicy):
6347 Likewise.
6348 (posix_spawnattr_getschedparam, posix_spawnattr_setschedparam):
6349 Likewise.
6350 (posix_spawn_file_actions_init, posix_spawn_file_actions_destroy):
6351 Likewise.
6352 (posix_spawn_file_actions_addopen): Likewise.
6353 (posix_spawn_file_actions_addclose): Likewise.
6354 (posix_spawn_file_actions_adddup2): Likewise.
6355 (posix_spawn_file_actions_addchdir_np): Likewise. Add __restrict
6356 qualifiers.
6357 (posix_spawn_file_actions_addfchdir_np): Likewise.
6358
6359 2019-02-04 David Newall <glibc@davidnewall.com>
6360
6361 elf: Implement --preload option for the dynamic linker.
6362 * elf/rtld.c (preloadarg): New variable.
6363 (handle_preload_list): Pass through “where” argument to
6364 do_preload.
6365 (dl_main): Handle "--preload" and add second call to
6366 handle_preload_list.
6367 * elf/Makefile (tests-special): Add tst-rtld-preload.out.
6368 (tst-rtld-preload-OBJS): Set variable.
6369 (tst-rtld-preload.out): New target.
6370 * elf/tst-rtld-preload.sh: New file.
6371
6372 2019-02-04 Matthew Malcomson <matthew.malcomson@arm.com>
6373
6374 * Makefile (testrun.sh): Exit in case of incorrect argument.
6375
6376 2019-02-04 Florian Weimer <fweimer@redhat.com>
6377
6378 * time/tzfile.c (__tzfile_read): Reorder suballocations to avoid
6379 alignment gaps.
6380
6381 2019-02-03 Florian Weimer <fweimer@redhat.com>
6382
6383 * time/tzfile.c (__tzfile_read): Use struct alloc_buffer and its
6384 implicit overflow checks.
6385
6386 2019-02-03 Aurelien Jarno <aurelien@aurel32.net>
6387
6388 * stdlib/isomac.c: Include <unistd.h>.
6389
6390 2019-02-03 Florian Weimer <fweimer@redhat.com>
6391
6392 * include/time.h (__tzfile_default): Use int, not long int, for
6393 the GMT offsets.
6394 * time/tzfile.c (struct ttinfo): Change type of the offset member
6395 to int.
6396 (__tzfile_read): Remove useless cast.
6397 (__tzfile_default): Adjust prototype.
6398 * time/tzset.c (tz_rule): Change type of the offset member to int.
6399 (parse_offset): Change the type of the sign variable to int.
6400
6401 2019-02-03 Florian Weimer <fweimer@redhat.com>
6402
6403 [BZ #24153]
6404 * debug/gets_chk.c (__gets_chk): Use stdin instead of _IO_stdin.
6405 * libio/getchar.c (getchar): Likewise.
6406 * libio/getchar_u.c (getchar_unlocked): Likewise.
6407 * libio/getwchar.c (getwchar): Likewise.
6408 * libio/getwchar_u.c (getwchar_unlocked): Likewise.
6409 * libio/iogets.c (_IO_gets): Likewise.
6410 * libio/vscanf.c (_IO_vscanf): Likewise.
6411 * libio/vwscanf.c (__vwscanf): Likewise.
6412 * libio/tst-bz24153.c: New file.
6413 * libio/Makefile (tests): Add it.
6414
6415 2019-02-02 Florian Weimer <fweimer@redhat.com>
6416
6417 [BZ #14829]
6418 * manual/resource.texi (Basic Scheduling Functions): Add
6419 portability note. Change process to task throughout the section.
6420 Remove incorrect comment about sched_yield as it affects
6421 tasks/threads, not entire processes.
6422 * sysdeps/unix/sysv/linux/bits/posix_opt.h
6423 (_POSIX_PRIORITY_SCHEDULING): Update comment.
6424
6425 2019-02-01 Joseph Myers <joseph@codesourcery.com>
6426
6427 * configure.ac (libc_cv_compiler_ok): Require GCC 6.2 or later.
6428 * configure: Regenerated.
6429 * manual/install.texi (Tools for Compilation): Update minimum GCC
6430 version.
6431 * INSTALL: Regenerated.
6432
6433 2019-02-01 Florian Weimer <fweimer@redhat.com>
6434
6435 * support/support_test_compare_string.c
6436 (support_test_compare_string): Use "string" in error message.
6437 * support/tst-test_compare_string.c (do_test): Adjust.
6438
6439 2019-02-01 Florian Weimer <fweimer@redhat.com>
6440
6441 * support/support_format_address_family.c
6442 (support_format_address_family): Handle AF_LOCAL, AF_UNSPEC.
6443
6444 2019-02-01 Florian Weimer <fweimer@redhat.com>
6445
6446 * manual/socket.texi (Internet Address Formats): Clarify the byte
6447 order of struct sockaddr_in, struct sockaddr_in6. Document
6448 sin6_flowinfo and sin6_scope_id.
6449
6450 2019-02-01 Wilco Dijkstra <wdijkstr@arm.com>
6451
6452 * sysdeps/posix/clock_getres.c (__clock_getres): Cleanup.
6453 * sysdeps/unix/clock_gettime.c (__clock_gettime): Cleanup.
6454 * sysdeps/unix/clock_settime.c (__clock_settime): Cleanup.
6455 * sysdeps/unix/sysv/linux/clock_getres.c (__clock_getres): Cleanup.
6456 * sysdeps/unix/sysv/linux/clock_gettime.c (__clock_gettime): Cleanup.
6457 * sysdeps/unix/sysv/linux/clock_settime.c (__clock_settime): Cleanup.
6458
6459 2019-02-01 Feng Xue <fxue@os.amperecomputing.com>
6460
6461 * sysdeps/aarch64/memchr.S (__memchr): Rename to MEMCHR.
6462 [!MEMCHR](MEMCHR): Set to __memchr.
6463 * sysdeps/aarch64/multiarch/Makefile (sysdep_routines):
6464 Add memchr_generic and memchr_nosimd.
6465 * sysdeps/aarch64/multiarch/ifunc-impl-list.c
6466 (__libc_ifunc_impl_list): Add memchr ifuncs.
6467 * sysdeps/aarch64/multiarch/memchr.c: New file.
6468 * sysdeps/aarch64/multiarch/memchr_generic.S: Likewise.
6469 * sysdeps/aarch64/multiarch/memchr_nosimd.S: Likewise.
6470
6471 2019-02-01 Feng Xue <fxue@os.amperecomputing.com>
6472
6473 * sysdeps/aarch64/multiarch/Makefile (sysdep_routines):
6474 Add memset_emag.
6475 * sysdeps/aarch64/multiarch/ifunc-impl-list.c
6476 (__libc_ifunc_impl_list): Add __memset_emag to memset ifunc.
6477 * sysdeps/aarch64/multiarch/memset.c (libc_ifunc):
6478 Add IS_EMAG check for ifunc dispatch.
6479 * sysdeps/aarch64/multiarch/memset_base64.S: New file.
6480 * sysdeps/aarch64/multiarch/memset_emag.S: New file.
6481
6482 2019-02-01 Feng Xue <fxue@os.amperecomputing.com>
6483
6484 * manual/tunables.texi (Tunable glibc.cpu.name): Add emag.
6485 * sysdeps/unix/sysv/linux/aarch64/cpu-features.c (cpu_list):
6486 Add emag.
6487 * sysdeps/unix/sysv/linux/aarch64/cpu-features.h (IS_EMAG):
6488 New macro.
6489
6490 2019-02-01 Stefan Liebler <stli@linux.ibm.com>
6491
6492 * posix/tst-spawn do_test(): Move waitpid before posix_spawn.
6493
6494 2019-01-31 Vineet Gupta <vgupta@synopsys.com>
6495
6496 * sysdeps/unix/make-syscalls.sh: Fix comment referencing
6497 syscall-template file.
6498
6499 2019-01-31 Carlos O'Donell <carlos@redhat.com>
6500 Torvald Riegel <triegel@redhat.com>
6501 Rik Prohaska <prohaska7@gmail.com>
6502
6503 [BZ# 23844]
6504 * nptl/Makefile (tests): Add tst-rwlock-tryrdlock-stall, and
6505 tst-rwlock-trywrlock-stall.
6506 * nptl/pthread_rwlock_tryrdlock.c (__pthread_rwlock_tryrdlock):
6507 Wake waiters if PTHREAD_RWLOCK_FUTEX_USED is set.
6508 * nptl/pthread_rwlock_trywrlock.c (__pthread_rwlock_trywrlock):
6509 Set __wrphase_fute to 1 only if we started the write phase.
6510 * nptl/tst-rwlock-tryrdlock-stall.c: New file.
6511 * nptl/tst-rwlock-trywrlock-stall.c: New file.
6512 * support/Makefile (libsupport-routines): Add xpthread_rwlock_destroy.
6513 * support/xpthread_rwlock_destroy.c: New file.
6514 * support/xthread.h: Declare xpthread_rwlock_destroy.
6515
6516 2019-02-01 Joseph Myers <joseph@codesourcery.com>
6517
6518 * scripts/build-many-glibcs.py (Context.checkout): Default MPFR
6519 version to 4.0.2.
6520
6521 2019-01-31 Paul Pluzhnikov <ppluzhnikov@google.com>
6522
6523 [BZ #24051]
6524 * libio/ioputs.c (_IO_puts): Use stdout instead of _IO_stdout.
6525 * libio/fileops.c (_IO_new_file_underflow): Likewise
6526 * libio/wfileops.c (_IO_wfile_underflow): Likewise
6527 * libio/putchar.c (putchar): Likewise.
6528 * libio/putchar_u.c (putchar_unlocked): Likewise.
6529 * libio/putwchar.c (putchar): Likewise.
6530 * libio/putwchar_u.c (putwchar_unlocked): Likewise.
6531 * libio/tst-bz24051.c: New test.
6532 * libio/Makefile (tests): Add tst-bz24051
6533
6534 2019-01-31 Paul Eggert <eggert@cs.ucla.edu>
6535
6536 CVE-2019-9169
6537 regex: fix read overrun [BZ #24114]
6538 Problem found by AddressSanitizer, reported by Hongxu Chen in:
6539 https://debbugs.gnu.org/34140
6540 * posix/regexec.c (proceed_next_node):
6541 Do not read past end of input buffer.
6542
6543 2019-01-31 Florian Weimer <fweimer@redhat.com>
6544
6545 [BZ #24059]
6546 * nss/nss_files/files-alias.c (get_next_alias): Handle
6547 continuation line without newline at the end.
6548 * nss/tst-nss-files-alias-truncated.c: New file.
6549 * nss/Makefile [$(build-shared)] (tests): Add
6550 tst-nss-files-alias-truncated.
6551 (tst-nss-files-alias-truncated): Link with libnss_files.so.
6552 * support/namespace.h (struct support_chroot_configuration): Add
6553 aliases member.
6554 (struct support_chroot): Add path_aliases member.
6555 * support/support_chroot.c (support_chroot_create): Handle
6556 aliases.
6557 (support_chroot_free): Free path_aliases.
6558
6559 2019-01-31 Siddhesh Poyarekar <siddhesh@sourceware.org>
6560
6561 * version.h (RELEASE): Set to "development".
6562 (VERSION): Set to "2.29.9000".
6563 * NEWS: Add section for 2.30.
6564
6565 * version.h (RELEASE): Set to "stable".
6566 (VERSION): Set to "2.29".
6567 * include/features.h (__GLIBC_MINOR__): Set to 2.29.
6568
6569 * NEWS: Add the list of bugs fixed in 2.29.
6570 * manual/contrib.texi: Update contributors list with some more
6571 names.
6572 * manual/install.texi: Update latest versions of packages
6573 tested.
6574 * INSTALL: Regenerated.
6575
6576 2019-01-25 Siddhesh Poyarekar <siddhesh@sourceware.org>
6577
6578 * po/be.po: Update translations.
6579 * po/bg.po: Likewise.
6580 * po/ca.po: Likewise.
6581 * po/cs.po: Likewise.
6582 * po/da.po: Likewise.
6583 * po/de.po: Likewise.
6584 * po/el.po: Likewise.
6585 * po/eo.po: Likewise.
6586 * po/es.po: Likewise.
6587 * po/fi.po: Likewise.
6588 * po/fr.po: Likewise.
6589 * po/gl.po: Likewise.
6590 * po/hr.po: Likewise.
6591 * po/hu.po: Likewise.
6592 * po/ia.po: Likewise.
6593 * po/id.po: Likewise.
6594 * po/it.po: Likewise.
6595 * po/ja.po: Likewise.
6596 * po/ko.po: Likewise.
6597 * po/lt.po: Likewise.
6598 * po/nb.po: Likewise.
6599 * po/nl.po: Likewise.
6600 * po/pl.po: Likewise.
6601 * po/pt_BR.po: Likewise.
6602 * po/ru.po: Likewise.
6603 * po/rw.po: Likewise.
6604 * po/sk.po: Likewise.
6605 * po/sl.po: Likewise.
6606 * po/sv.po: Likewise.
6607 * po/tr.po: Likewise.
6608 * po/uk.po: Likewise.
6609 * po/vi.po: Likewise.
6610 * po/zh_CN.po: Likewise.
6611 * po/zh_TW.po: Likewise.
6612
6613 2019-01-24 Uroš Bizjak <ubizjak@gmail.com>
6614
6615 [BZ #24130]
6616 * sysdeps/alpha/remqu.S (__remqu): Add missing restore
6617 of $f3 register on $y_is_neg path.
6618
6619 2019-01-24 Samuel Thibault <samuel.thibault@ens-lyon.org>
6620
6621 [BZ #24110]
6622 * hurd/hurdsig.c (_hurd_thread_sigstate): Set SS_DISABLE in
6623 sigaltstack.ss_flags.
6624
6625 2019-01-24 TAMUKI Shoichi <tamuki@linet.gr.jp>
6626
6627 [BZ #23758]
6628 * manual/time.texi (strftime): Document "%Ey".
6629 * time/strftime_l.c (__strftime_internal): Set the default width
6630 padding with zero of "%Ey" to 2.
6631
6632 [BZ #24096]
6633 * manual/time.texi (strftime): Document "%EC" and "%EY".
6634 * time/Makefile (tests): Add tst-strftime2.
6635 (LOCALES): Add ja_JP.UTF-8, lo_LA.UTF-8, and th_TH.UTF-8.
6636 * time/strftime_l.c (__strftime_internal): Add argument yr_spec to
6637 override padding for "%Ey".
6638 If an optional flag ('_' or '-') is specified to "%EY", interpret the
6639 "%Ey" in the subformat as if decorated with that flag.
6640 * time/tst-strftime2.c: New file.
6641
6642 2019-01-24 Adhemerval Zanella <adhemerval.zanella@linaro.org>
6643
6644 * support/xsigstack.c (MAP_NORESERVE, MAP_STACK): Define if they
6645 are not defined.
6646
6647 [BZ #24122]
6648 * elf/Makefile (tests): Add tst-audit13.
6649 (modules-names): Add tst-audit13mod1.
6650 (tst-audit13.out, LDFLAGS-tst-audit13mod1.so, tst-audit13-ENV): New
6651 rule.
6652 * elf/rtld.c (dl_main): Handle invalid audit module version.
6653 * elf/tst-audit13.c: New file.
6654 * elf/tst-audit13mod1.c: Likewise.
6655
6656 2019-01-22 Samuel Thibault <samuel.thibault@ens-lyon.org>
6657
6658 * sysdeps/mach/hurd/faccessat.c (__faccessat_common): Check for errors
6659 returned by __hurd_at_flags.
6660 * hurd/lookup-at.c (__file_name_lookup_at): When at_flags contains
6661 AT_EMPTY_PATH, call __dir_lookup and __hurd_file_name_lookup_retry
6662 directly instead of __hurd_file_name_lookup.
6663
6664 2019-01-21 Joseph Myers <joseph@codesourcery.com>
6665
6666 * scripts/build-many-glibcs.py (Context.checkout): Default
6667 binutils version to 2.32 branch.
6668
6669 2019-01-21 Florian Weimer <fweimer@redhat.com>
6670
6671 [BZ #20018]
6672 CVE-2016-10739
6673 resolv: Reject trailing characters in host names
6674 * include/arpa/inet.h (__inet_aton_exact): Declare.
6675 (inet_aton): Remove hidden prototype. No longer used internally.
6676 * nscd/gai.c (__inet_aton): Do not define.
6677 * nscd/gethstbynm3_r.c (__inet_aton): Likewise.
6678 * nss/digits_dots.c (__inet_aton): Likewise.
6679 (__nss_hostname_digits_dots_context): Call __inet_aton_exact.
6680 * resolv/Makefile (tests-internal): Add tst-inet_aton_exact.
6681 (tests): Add tst-resolv-nondecimal, tst-resolv-trailing.
6682 (tst-resolv-nondecimal): Link with libresolv.so and libpthread.
6683 (tst-resolv-trailing): Likewise.
6684 * resolv/Versions (GLIBC_PRIVATE): Export __inet_aton_exact from
6685 libc.
6686 * resolv/inet_addr.c (inet_aton_end): Remame from __inet_aton.
6687 Make static. Add endp parameter.
6688 (__inet_aton_exact): New function.
6689 (__inet_aton_ignore_trailing): New function, aliased to inet_aton.
6690 (__inet_addr): Call inet_aton_end.
6691 * resolv/res_init.c (res_vinit_1): Truncate nameserver for IPv4,
6692 not just IPv6. Call __inet_aton_exact.
6693 * resolv/tst-aton.c: Switch to <support/test-driver.c>.
6694 (tests): Make const. Add additional test cases with trailing
6695 characters.
6696 (do_test): Use array_length.
6697 * resolv/tst-inet_aton_exact.c: New file.
6698 * resolv/tst-resolv-trailing.c: Likewise.
6699 * resolv/tst-resolv-nondecimal.c: Likewise.
6700 * sysdeps/posix/getaddrinfo.c (gaih_inet): Call __inet_aton_exact.
6701
6702 2019-01-21 H.J. Lu <hongjiu.lu@intel.com>
6703
6704 [BZ# 24097]
6705 CVE-2019-6488
6706 * sysdeps/x86_64/multiarch/strlen-avx2.S: Use RSI_LP for length.
6707 Clear the upper 32 bits of RSI register.
6708 * sysdeps/x86_64/strlen.S: Use RSI_LP for length.
6709 * sysdeps/x86_64/x32/Makefile (tests): Add tst-size_t-strnlen
6710 and tst-size_t-wcsnlen.
6711 * sysdeps/x86_64/x32/tst-size_t-strnlen.c: New file.
6712 * sysdeps/x86_64/x32/tst-size_t-wcsnlen.c: Likewise.
6713
6714 2019-01-21 H.J. Lu <hongjiu.lu@intel.com>
6715
6716 [BZ# 24097]
6717 CVE-2019-6488
6718 * sysdeps/x86_64/multiarch/strcpy-avx2.S: Use RDX_LP for length.
6719 * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: Likewise.
6720 * sysdeps/x86_64/multiarch/strcpy-ssse3.S: Likewise.
6721 * sysdeps/x86_64/x32/Makefile (tests): Add tst-size_t-strncpy.
6722 * sysdeps/x86_64/x32/tst-size_t-strncpy.c: New file.
6723
6724 2019-01-21 H.J. Lu <hongjiu.lu@intel.com>
6725
6726 [BZ# 24097]
6727 CVE-2019-6488
6728 * sysdeps/x86_64/multiarch/strcmp-avx2.S: Use RDX_LP for length.
6729 * sysdeps/x86_64/multiarch/strcmp-sse42.S: Likewise.
6730 * sysdeps/x86_64/strcmp.S: Likewise.
6731 * sysdeps/x86_64/x32/Makefile (tests): Add tst-size_t-strncasecmp,
6732 tst-size_t-strncmp and tst-size_t-wcsncmp.
6733 * sysdeps/x86_64/x32/tst-size_t-strncasecmp.c: New file.
6734 * sysdeps/x86_64/x32/tst-size_t-strncmp.c: Likewise.
6735 * sysdeps/x86_64/x32/tst-size_t-wcsncmp.c: Likewise.
6736
6737 2019-01-21 H.J. Lu <hongjiu.lu@intel.com>
6738
6739 [BZ# 24097]
6740 CVE-2019-6488
6741 * sysdeps/x86_64/multiarch/memset-avx512-no-vzeroupper.S: Use
6742 RDX_LP for length. Clear the upper 32 bits of RDX register.
6743 * sysdeps/x86_64/multiarch/memset-vec-unaligned-erms.S: Likewise.
6744 * sysdeps/x86_64/x32/Makefile (tests): Add tst-size_t-wmemset.
6745 * sysdeps/x86_64/x32/tst-size_t-memset.c: New file.
6746 * sysdeps/x86_64/x32/tst-size_t-wmemset.c: Likewise.
6747
6748 2019-01-21 H.J. Lu <hongjiu.lu@intel.com>
6749
6750 [BZ# 24097]
6751 CVE-2019-6488
6752 * sysdeps/x86_64/memrchr.S: Use RDX_LP for length.
6753 * sysdeps/x86_64/multiarch/memrchr-avx2.S: Likewise.
6754 * sysdeps/x86_64/x32/Makefile (tests): Add tst-size_t-memrchr.
6755 * sysdeps/x86_64/x32/tst-size_t-memrchr.c: New file.
6756
6757 2019-01-21 H.J. Lu <hongjiu.lu@intel.com>
6758
6759 [BZ# 24097]
6760 CVE-2019-6488
6761 * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Use RDX_LP for
6762 length. Clear the upper 32 bits of RDX register.
6763 * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Likewise.
6764 * sysdeps/x86_64/multiarch/memmove-avx512-no-vzeroupper.S:
6765 Likewise.
6766 * sysdeps/x86_64/multiarch/memmove-vec-unaligned-erms.S:
6767 Likewise.
6768 * sysdeps/x86_64/x32/Makefile (tests): Add tst-size_t-memcpy.
6769 tst-size_t-wmemchr.
6770 * sysdeps/x86_64/x32/tst-size_t-memcpy.c: New file.
6771
6772 2019-01-21 H.J. Lu <hongjiu.lu@intel.com>
6773
6774 [BZ# 24097]
6775 CVE-2019-6488
6776 * sysdeps/x86_64/multiarch/memcmp-avx2-movbe.S: Use RDX_LP for
6777 length. Clear the upper 32 bits of RDX register.
6778 * sysdeps/x86_64/multiarch/memcmp-sse4.S: Likewise.
6779 * sysdeps/x86_64/multiarch/memcmp-ssse3.S: Likewise.
6780 * sysdeps/x86_64/x32/Makefile (tests): Add tst-size_t-memcmp and
6781 tst-size_t-wmemcmp.
6782 * sysdeps/x86_64/x32/tst-size_t-memcmp.c: New file.
6783 * sysdeps/x86_64/x32/tst-size_t-wmemcmp.c: Likewise.
6784
6785 2019-01-21 H.J. Lu <hongjiu.lu@intel.com>
6786
6787 [BZ# 24097]
6788 CVE-2019-6488
6789 * sysdeps/x86_64/memchr.S: Use RDX_LP for length. Clear the
6790 upper 32 bits of RDX register.
6791 * sysdeps/x86_64/multiarch/memchr-avx2.S: Likewise.
6792 * sysdeps/x86_64/x32/Makefile (tests): Add tst-size_t-memchr and
6793 tst-size_t-wmemchr.
6794 * sysdeps/x86_64/x32/test-size_t.h: New file.
6795 * sysdeps/x86_64/x32/tst-size_t-memchr.c: Likewise.
6796 * sysdeps/x86_64/x32/tst-size_t-wmemchr.c: Likewise.
6797
6798 2019-01-18 Florian Weimer <fweimer@redhat.com>
6799
6800 [BZ #24112]
6801 resolv: Do not send queries for non-host-names in nss_dns.
6802 * resolv/nss_dns/dns-host.c (check_name): New function.
6803 (_nss_dns_gethostbyname2_r): Use it.
6804 (_nss_dns_gethostbyname_r): Likewise.
6805 (_nss_dns_gethostbyname4_r): Likewise.
6806
6807 2019-01-21 Florian Weimer <fweimer@redhat.com>
6808
6809 * resolv/inet_addr.c: Reformat to GNU style.
6810 (__inet_addr, __inet_aton): Update comment.
6811
6812 2019-01-18 Florian Weimer <fweimer@redhat.com>
6813
6814 malloc: Revert commit 6923f6db1e688dedcf3a6556da76e0bf24a41872
6815 ("malloc: Use current (C11-style) atomics for fastbin access").
6816 This commit introduces a substantial performance regression on
6817 POWER and Aarch64.
6818 * malloc/malloc.c (fastbin_push_entry, fastbin_pop_entry): Remove.
6819 (REMOVE_FB): Define.
6820 (_int_malloc): Use it and reindent.
6821 (_int_free): Use CAS loop with
6822 catomic_compare_and_exchange_val_rel.
6823 (malloc_consolidate): Use atomic_exchange_acq.
6824
6825
6826 2019-01-18 H.J. Lu <hongjiu.lu@intel.com>
6827
6828 * signal/Makefile (LDFLAGS-tst-minsigstksz-1): New. Set to
6829 -Wl,-z,now.
6830 (LDFLAGS-tst-minsigstksz-2): Likewise.
6831 (LDFLAGS-tst-minsigstksz-3): Likewise.
6832 (LDFLAGS-tst-minsigstksz-3a): Likewise.
6833 (LDFLAGS-tst-minsigstksz-4): Likewise.
6834
6835 2019-01-18 TAMUKI Shoichi <tamuki@linet.gr.jp>
6836
6837 * manual/time.texi (strftime): Fix the wording to "alternative" rather
6838 than "alternate".
6839
6840 2019-01-16 Paul A. Clarke <pc@us.ibm.com>
6841
6842 * sysdeps/powerpc/powerpc64/multiarch/strncmp.c: Fix #ifdef.
6843
6844 2019-01-16 Zack Weinberg <zackw@panix.com>
6845
6846 * support/xsignal.h (xalloc_sigstack, xfree_sigstack)
6847 (xget_sigstack_location): New test support functions.
6848 * support/xsigstack.c: New file, implementing them.
6849 * support/tst-xsigstack.c: New test for them.
6850 * support/Makefile: Update.
6851
6852 * signal/tst-minsigstksz-1.c
6853 * signal/tst-minsigstksz-2.c
6854 * signal/tst-minsigstksz-3.c
6855 * signal/tst-minsigstksz-3a.c
6856 * signal/tst-minsigstksz-4.c: New tests.
6857 * signal/Makefile: Run them.
6858
6859 2019-01-16 Siddhesh Poyarekar <siddhesh@sourceware.org>
6860
6861 * po/libc.pot: Regenerate.
6862
6863 2019-01-15 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
6864
6865 * math/libm-test-fma.inc (fma_test_data): Set
6866 XFAIL_ROUNDING_IBM128_LIBGCC to more tests.
6867
6868 2019-01-15 Rogerio A. Cardoso <rcardoso@linux.ibm.com>
6869
6870 * sysdeps/powerpc/powerpc64/tst-ucontext-ppc64-vscr.c:
6871 (do_test): Changed __vector __int128_t to __vector unsigned int.
6872
6873 2019-01-14 Leonardo Sandoval <leonardo.sandoval.gonzalez@intel.com>
6874
6875 * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
6876 strcat-avx2, strncat-avx2, strcpy-avx2, strncpy-avx2,
6877 stpcpy-avx2 and stpncpy-avx2.
6878 * sysdeps/x86_64/multiarch/ifunc-impl-list.c:
6879 (__libc_ifunc_impl_list): Add tests for __strcat_avx2,
6880 __strncat_avx2, __strcpy_avx2, __strncpy_avx2, __stpcpy_avx2
6881 and __stpncpy_avx2.
6882 * sysdeps/x86_64/multiarch/{ifunc-unaligned-ssse3.h =>
6883 ifunc-strcpy.h}: rename header for a more generic name.
6884 * sysdeps/x86_64/multiarch/ifunc-strcpy.h:
6885 (IFUNC_SELECTOR): Return OPTIMIZE (avx2) on AVX 2 machines if
6886 AVX unaligned load is fast and vzeroupper is preferred.
6887 * sysdeps/x86_64/multiarch/stpcpy-avx2.S: New file.
6888 * sysdeps/x86_64/multiarch/stpncpy-avx2.S: Likewise.
6889 * sysdeps/x86_64/multiarch/strcat-avx2.S: Likewise.
6890 * sysdeps/x86_64/multiarch/strcpy-avx2.S: Likewise.
6891 * sysdeps/x86_64/multiarch/strncat-avx2.S: Likewise.
6892 * sysdeps/x86_64/multiarch/strncpy-avx2.S: Likewise.
6893
6894 2019-01-12 Dmitry V. Levin <ldv@altlinux.org>
6895
6896 * argp/argp-help.c: Fix typo in comment.
6897 * misc/sys/cdefs.h: Likewise.
6898 * posix/regexec.c (sift_states_iter_mb): Likewise.
6899 * socket/sockatmark.c: Likewise.
6900 * socket/sys/socket.h: Likewise.
6901 * sysdeps/ia64/fpu/libm_sincos_large.S: Likewise.
6902 * sysdeps/ia64/fpu/libm_sincosl.S: Likewise.
6903 * sysdeps/ia64/fpu/s_cosl.S: Likewise.
6904 * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Likewise.
6905 * sysdeps/unix/sockatmark.c: Likewise.
6906 * time/strptime_l.c: Likewise.
6907
6908 2019-01-11 TAMUKI Shoichi <tamuki@linet.gr.jp>
6909
6910 * time/strftime_l.c (__strftime_internal): Use "L_" macros, also add a
6911 missing space after the cast of "_NL_CURRENT".
6912
6913 2019-01-11 Rogerio A. Cardoso <rcardoso@linux.ibm.com>
6914
6915 * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h (vscr_t): Added
6916 ifdef to fix read of VSCR.
6917 * sysdeps/powerpc/powerpc64/Makefile [$subdir == stdlib]: Add
6918 tst-ucontext-ppc64-vscr.c to test list.
6919 * sysdeps/powerpc/powerpc64/tst-ucontext-ppc64-vscr.c: New test file.
6920
6921 2019-01-10 Andreas K. Hüttel <dilfridge@gentoo.org>
6922
6923 * resolv/tst-resolv-ai_idn-common.c (response): Avoid switch
6924 fall-through.
6925
6926 2019-01-09 Jim Wilson <jimw@sifive.com>
6927
6928 * sysdeps/riscv/rv64/rvd/libm-test-ulps: Update.
6929
6930 2019-01-09 Wilco Dijkstra <wdijkstr@arm.com>
6931
6932 * manual/tunables.texi (glibc.cpu.name): Add ares tunable.
6933 * sysdeps/aarch64/multiarch/memcpy.c (__libc_memcpy): Use
6934 __memcpy_falkor for ares.
6935 * sysdeps/unix/sysv/linux/aarch64/cpu-features.h (IS_ARES):
6936 Add new define.
6937 * sysdeps/unix/sysv/linux/aarch64/cpu-features.c (cpu_list):
6938 Add ares cpu.
6939
6940 2019-01-07 H.J. Lu <hongjiu.lu@intel.com>
6941
6942 [BZ #24066]
6943 * soft-fp/extenddftf2.c: Use "_FP_W_TYPE_SIZE < 64" to check if
6944 4_FP_W_TYPEs are used for IEEE quad precision.
6945 * soft-fp/extendhftf2.c: Likewise.
6946 * soft-fp/extendsftf2.c: Likewise.
6947 * soft-fp/extendxftf2.c: Likewise.
6948 * soft-fp/trunctfdf2.c: Likewise.
6949 * soft-fp/trunctfhf2.c: Likewise.
6950 * soft-fp/trunctfsf2.c: Likewise.
6951 * soft-fp/trunctfxf2.c: Likewise.
6952 * sysdeps/alpha/ots_cvttx.c: Likewise.
6953 * sysdeps/alpha/ots_cvtxt.c: Likewise.
6954 * sysdeps/ieee754/soft-fp/s_daddl.c: Likewise.
6955 * sysdeps/ieee754/soft-fp/s_ddivl.c: Likewise.
6956 * sysdeps/ieee754/soft-fp/s_dmull.c: Likewise.
6957 * sysdeps/ieee754/soft-fp/s_dsubl.c: Likewise.
6958 * sysdeps/ieee754/soft-fp/s_faddl.c: Likewise.
6959 * sysdeps/ieee754/soft-fp/s_fdivl.c: Likewise.
6960 * sysdeps/ieee754/soft-fp/s_fmull.c: Likewise.
6961 * sysdeps/ieee754/soft-fp/s_fsubl.c: Likewise.
6962 * sysdeps/sparc/sparc32/q_dtoq.c: Likewise.
6963 * sysdeps/sparc/sparc32/q_qtod.c: Likewise.
6964 * sysdeps/sparc/sparc32/q_qtos.c: Likewise.
6965 * sysdeps/sparc/sparc32/q_stoq.c: Likewise.
6966 * sysdeps/sparc/sparc64/qp_dtoq.c: Likewise.
6967 * sysdeps/sparc/sparc64/qp_qtod.c: Likewise.
6968 * sysdeps/sparc/sparc64/qp_qtos.c: Likewise.
6969 * sysdeps/sparc/sparc64/qp_stoq.c: Likewise.
6970
6971 2019-01-07 Aurelien Jarno <aurelien@aurel32.net>
6972
6973 [BZ #24024]
6974 * Makeconfig: Build libm with -fno-math-errno but build the remaining
6975 code with -fmath-errno.
6976 * string/Makefile [$(build-shared)] (tests): Add test-strerror-errno.
6977 [$(build-shared)] (LDLIBS-test-strerror-errno): New variable.
6978 * string/test-strerror-errno.c: New file.
6979
6980 2019-01-07 Aurelien Jarno <aurelien@aurel32.net>
6981
6982 [BZ #24046]
6983 * localedata/locales/en_US (date_fmt): Add, set to
6984 "%a %d %b %Y %r %Z".
6985
6986 2019-01-07 Florian Weimer <fweimer@redhat.com>
6987
6988 [BZ #24063]
6989 * manual/arith.texi (Math Error Reporting): Use @code{errno}
6990 instead of @var{errno}.
6991 (Parsing of Integers): Likewise.
6992 (Parsing of Floats): Likewise.
6993 * manual/filesys.texi (Working with Directory Trees): Likewise.
6994 (Temporary Files): Likewise.
6995 * manual/job.texi (Terminal Access Functions): Likewise.
6996 * manual/llio.texi (Synchronizing I/O): Likewise.
6997 * manual/math.texi (SVID Random): Likewise.
6998 * manual/message.texi (The catgets Functions): Likewise.
6999 (Translation with gettext): Likewise.
7000 (Locating gettext catalog): Likewise.
7001 (Charset conversion in gettext): Likewise.
7002 * manual/nss.texi (NSS Module Function Internals): Likewise.
7003 * manual/search.texi (Hash Search Function): Likewise.
7004 * manual/setjmp.texi (System V contexts): Likewise.
7005 * manual/time.texi (Sleeping): Likewise.
7006 * manual/users.texi (Lookup User): Likewise.
7007 (Lookup Group): Likewise.
7008
7009 2019-01-05 Adhemerval Zanella <adhemerval.zanella@linaro.org>
7010
7011 * posix/tst-spawn.c (do_test): Extend spargv to new required size and
7012 fix typo.
7013
7014 2019-01-04 Martin Jansa <Martin.Jansa@gmail.com>
7015
7016 [BZ #19444]
7017 * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_jn): Use
7018 __builtin_unreachable for default case in switch.
7019 (__ieee754_yn): Likewise.
7020 * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_jnl): Likewise.
7021 (__ieee754_ynl): Likewise.
7022 * sysdeps/ieee754/ldbl-128/e_jnl.c (__ieee754_jnl): Likewise.
7023 (__ieee754_ynl): Likewise.
7024 * sysdeps/ieee754/ldbl-128ibm/e_jnl.c (__ieee754_jnl): Likewise.
7025 (__ieee754_ynl): Likewise.
7026
7027 2019-01-04 Szabolcs Nagy <szabolcs.nagy@arm.com>
7028
7029 * manual/maint.texi: Use @{ and @}.
7030
7031 2019-01-04 Florian Weimer <fweimer@redhat.com>
7032
7033 * sysdeps/unix/sysv/linux/tst-ttyname.c (adjust_file_limit): New
7034 function.
7035 (do_in_chroot_1): Call it.
7036 (run_chroot_tests):
7037 Improve error reporting in case it is not possible to create a
7038 collision for the PTY name required by the test.
7039
7040 2019-01-03 Adhemerval Zanella <adhemerval.zanella@linaro.org>
7041
7042 * nptl/pthread_join_common.c (__pthread_timedjoin_ex): Use
7043 lll_wait_tid with timeout.
7044 * nptl/sem_wait.c (__old_sem_wait): Use lll_futex_wait_cancel.
7045 * sysdeps/nptl/aio_misc.h (AIO_MISC_WAIT): Use
7046 futex_reltimed_wait_cancelable for cancelabla mode.
7047 * sysdeps/nptl/gai_misc.h (GAI_MISC_WAIT): Likewise.
7048 * sysdeps/posix/open64.c (__libc_open64): Do not call cancelation
7049 macros.
7050 * sysdeps/posix/sigwait.c (__sigwait): Likewise.
7051 * sysdeps/posix/waitid.c (__sigwait): Likewise.
7052 * sysdeps/unix/sysdep.h (__SYSCALL_CANCEL_CALL,
7053 SYSCALL_CANCEL_NCS): New macro.
7054 * sysdeps/nptl/lowlevellock.h (lll_wait_tid): Add timeout argument.
7055 (lll_timedwait_tid): Remove macro.
7056 * sysdeps/unix/sysv/linux/i386/lowlevellock.h (lll_wait_tid):
7057 Likewise.
7058 (lll_timedwait_tid): Likewise.
7059 * sysdeps/unix/sysv/linux/sparc/lowlevellock.h (lll_wait_tid):
7060 Likewise.
7061 (lll_timedwait_tid): Likewise.
7062 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h (lll_wait_tid):
7063 Likewise.
7064 (lll_timedwait_tid): Likewise.
7065 * sysdeps/unix/sysv/linux/clock_nanosleep.c (__clock_nanosleep):
7066 Use INTERNAL_SYSCALL_CANCEL.
7067 * sysdeps/unix/sysv/linux/futex-internal.h
7068 (futex_reltimed_wait_cancelable): Use LIBC_CANCEL_{ASYNC,RESET}
7069 instead of __pthread_{enable,disable}_asynccancel.
7070 * sysdeps/unix/sysv/linux/lowlevellock-futex.h
7071 (lll_futex_wait_cancel): New macro.
7072
7073 * sysdeps/i386/nptl/tls.h (THREAD_ATOMIC_CMPXCHG_VAL,
7074 THREAD_ATOMIC_AND, THREAD_ATOMIC_BIT_SET): Remove macros.
7075
7076 * sysdeps/x86_64/nptl/tls.h (THREAD_ATOMIC_CMPXCHG_VAL,
7077 THREAD_ATOMIC_AND, THREAD_ATOMIC_BIT_SET): Remove macros.
7078
7079 * debug/tst-backtrace5.c (handle_signal): Avoid cancellable wrappers
7080 in backtrace analysis.
7081 * nptl/tst-cancel4.c (tf_write): Handle cancelled syscall with
7082 side-effects.
7083 (tf_send): Likewise.
7084
7085 * io/creat.c (LIBC_CANCEL_HANDLED): Remove macro.
7086 * io/ppoll.c (LIBC_CANCEL_HANDLED): Likewise.
7087 * misc/pselect.c (LIBC_CANCEL_HANDLED): Likewise.
7088 * nptl/pthreadP.h (LIBC_CANCEL_HANDLED): Likewise.
7089 * sysdeps/generic/sysdep-cancel.h (LIBC_CANCEL_HANDLED): Likewise.
7090 * sysdeps/mach/hurd/sysdep-cancel.h (LIBC_CANCEL_HANDLED): Likewise.
7091 * sysdeps/posix/pause.c (LIBC_CANCEL_HANDLED): Likewise.
7092 * sysdeps/posix/sigpause.c (LIBC_CANCEL_HANDLED): Likewise.
7093 * sysdeps/unix/sysv/linux/creat.c (LIBC_CANCEL_HANDLED): Likewise.
7094 * sysdeps/unix/sysv/linux/creat64.c (LIBC_CANCEL_HANDLED): Likewise.
7095 * sysdeps/unix/sysv/linux/sigwait.c (LIBC_CANCEL_HANDLED): Likewise.
7096 * sysdeps/unix/sysv/linux/sigwaitinfo.c (LIBC_CANCEL_HANDLED):
7097 Likewise.
7098 * nptl/Makefile [$(run-built-tests) = yes] (tests-special): Remove
7099 tst-cancel-wrappers.sh.
7100 (generated): Remove tst-cancel-wrappers.out.
7101 (tst-cancel-wrappers.out): Remove rule.
7102 * nptl/tst-cancel-wrappers.sh: Remove file.
7103
7104 2019-01-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
7105
7106 * sysdeps/unix/sysv/linux/aarch64/bits/hwcap.h: Add comment.
7107 * sysdeps/unix/sysv/linux/aarch64/dl-procinfo.c (_DL_HWCAP_COUNT):
7108 Update.
7109
7110 2019-01-03 Adhemerval Zanella <adhemerval.zanella@linaro.org>
7111
7112 [BZ #23640]
7113 * posix/tst-spawn.c (do_prepare, handle_restart, do_test): Add
7114 posix_spawn_file_actions_adddup2 test to check O_CLOCEXEC reset.
7115 * sysdeps/unix/sysv/linux/spawni.c (__spawni_child): Add
7116 close-on-exec reset for adddup2 file action.
7117 * sysdeps/posix/spawni.c (__spawni_child): Likewise.
7118
7119 2019-01-03 Zack Weinberg <zackw@panix.com>
7120
7121 * include/features.h (__GLIBC_USE_DEPRECATED_SCANF): New __GLIBC_USE
7122 parameter. Only use deprecated scanf when __USE_GNU is defined
7123 and __STDC_VERSION__ is less than 199901L or __cplusplus is less
7124 than 201103L, whichever is relevant for the language being compiled.
7125
7126 * libio/stdio.h, libio/bits/stdio-ldbl.h: Decide whether to redirect
7127 scanf, fscanf, sscanf, vscanf, vfscanf, and vsscanf to their
7128 __isoc99_ variants based only on __GLIBC_USE (DEPRECATED_SCANF).
7129 * wcsmbs/wchar.h: wcsmbs/bits/wchar-ldbl.h: Likewise for
7130 wscanf, fwscanf, swscanf, vwscanf, vfwscanf, and vswscanf.
7131
7132 * libio/iovsscanf.c
7133 * libio/fwscanf.c
7134 * libio/iovswscanf.c
7135 * libio/swscanf.c
7136 * libio/vscanf.c
7137 * libio/vwscanf.c
7138 * libio/wscanf.c
7139 * stdio-common/fscanf.c
7140 * stdio-common/scanf.c
7141 * stdio-common/vfscanf.c
7142 * stdio-common/vfwscanf.c
7143 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c
7144 * sysdeps/ieee754/ldbl-opt/nldbl-fscanf.c
7145 * sysdeps/ieee754/ldbl-opt/nldbl-fwscanf.c
7146 * sysdeps/ieee754/ldbl-opt/nldbl-iovfscanf.c
7147 * sysdeps/ieee754/ldbl-opt/nldbl-scanf.c
7148 * sysdeps/ieee754/ldbl-opt/nldbl-sscanf.c
7149 * sysdeps/ieee754/ldbl-opt/nldbl-swscanf.c
7150 * sysdeps/ieee754/ldbl-opt/nldbl-vfscanf.c
7151 * sysdeps/ieee754/ldbl-opt/nldbl-vfwscanf.c
7152 * sysdeps/ieee754/ldbl-opt/nldbl-vscanf.c
7153 * sysdeps/ieee754/ldbl-opt/nldbl-vsscanf.c
7154 * sysdeps/ieee754/ldbl-opt/nldbl-vswscanf.c
7155 * sysdeps/ieee754/ldbl-opt/nldbl-vwscanf.c
7156 * sysdeps/ieee754/ldbl-opt/nldbl-wscanf.c:
7157 Override __GLIBC_USE_DEPRECATED_SCANF to 1.
7158
7159 * stdio-common/sscanf.c: Likewise. Remove ldbl_hidden_def for __sscanf.
7160 * stdio-common/isoc99_sscanf.c: Add libc_hidden_def for __isoc99_sscanf.
7161 * include/stdio.h: Provide libc_hidden_proto for __isoc99_sscanf,
7162 not sscanf.
7163 [!__GLIBC_USE (DEPRECATED_SCANF)]: Define sscanf as __isoc99_scanf
7164 with a preprocessor macro.
7165
7166 * stdio-common/bug21.c, stdio-common/scanf14.c:
7167 Use %ms instead of %as, %mS instead of %aS, %m[] instead of %a[];
7168 remove DIAG_IGNORE_NEEDS_COMMENT for -Wformat.
7169 * stdio-common/scanf16.c: Likewise. Add __attribute__ ((format (scanf)))
7170 to xscanf, xfscanf, xsscanf.
7171
7172 * stdio-common/scanf14a.c: New copy of scanf14.c which still uses
7173 %as, %aS, %a[]. Remove DIAG_IGNORE_NEEDS_COMMENT for -Wformat.
7174 * stdio-common/scanf16a.c: New copy of scanf16.c which still uses
7175 %as, %aS, %a[]. Add __attribute__ ((format (scanf))) to xscanf,
7176 xfscanf, xsscanf.
7177 * stdio-common/scanf15.c, stdio-common/scanf17.c: No need to
7178 override feature selection macros or provide definitions of u_char etc.
7179 * stdio-common/Makefile (tests): Add scanf14a and scanf16a.
7180 (CFLAGS-scanf15.c, CFLAGS-scanf17.c): Remove.
7181 (CFLAGS-scanf14a.c, CFLAGS-scanf16a.c): New. Compile these files
7182 with -std=gnu89.
7183
7184 2019-01-03 Adhemerval Zanella <adhemerval.zanella@linaro.org>
7185
7186 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
7187 bits/termios-misc.h.
7188 * sysdeps/unix/sysv/linux/alpha/bits/termios.h: Remove file.
7189 * sysdeps/unix/sysv/linux/mips/bits/termios.h: Likewise.
7190 * sysdeps/unix/sysv/linux/sparc/bits/termios.h: Likewise.
7191 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
7192 * sysdeps/unix/sysv/linux/bits/termios-misc.h: New file.
7193 * sysdeps/unix/sysv/linux/bits/termios.h: Include termios-misc.h.
7194
7195 * sysdeps/unix/sysv/linux/powerpc/bits/termios-misc.h: New file.
7196 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h [__USE_MISC]
7197 (struct sgtty, struct tchars, struct ltchars, TIOCPKT_DATA,
7198 TIOCPKT_FLUSHREAD, TIOCPKT_FLUSHWRITE, TIOCPKT_STOP, TIOCPKT_START,
7199 TIOCPKT_NOSTOP, TIOCPKT_DOSTOP, _VINTR, _VQUIT, _VERASE, _VKILL,
7200 _VEOF, _VMIN, _VEOL, _VTIME, _VEOL2, _VSWTC): Move to
7201 termios-misc.h.
7202 * sysdeps/unix/sysv/linux/powerpc/Makefile [$subdir == misc]
7203 (sysdep_headers): Add termios-misc.h.
7204
7205 * sysdeps/unix/sysv/linux/bits/termios.h (_IOT_termios): Remove.
7206 * sysdeps/unix/sysv/linux/alpha/bits/termios.h: Likewise.
7207 * sysdeps/unix/sysv/linux/mips/bits/termios.h: Likewise.
7208
7209 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
7210 termios-tcflow.h.
7211 * sysdeps/unix/sysv/linux/bits/termios-tcflow.h: New file.
7212 * sysdeps/unix/sysv/linux/mips/bits/termios-tcflow.h: Likewise.
7213 * sysdeps/unix/sysv/linux/bits/termios.h (TCSANOW, TCSADRAIN,
7214 TCSAFLUSH): Move to termios-tcflow.h.
7215 * sysdeps/unix/sysv/linux/alpha/bits/termios.h: Likewise.
7216 * sysdeps/unix/sysv/linux/mips/bits/termios.h: Likewise.
7217 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
7218 * sysdeps/unix/sysv/linux/sparc/bits/termios.h: Likewise.
7219
7220 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
7221 termios-c_lflag.h.
7222 * sysdeps/unix/sysv/linux/bits/termios-c_lflag.h: New file.
7223 * sysdeps/unix/sysv/linux/alpha/bits/termios-c_lflag.h: Likewise.
7224 * sysdeps/unix/sysv/linux/mips/bits/termios-c_lflag.h: Likewise.
7225 * sysdeps/unix/sysv/linux/powerpc/bits/termios-c_lflag.h: Likewise.
7226 * sysdeps/unix/sysv/linux/bits/termios.h (ISIG, ISCANON, ECHO, ECHOE,
7227 ECHOK, ECHONL, NOFLSH, TOSTOP, IEXTEN): Move to termios-c_lflag.h.
7228 [__USE_MISC || (__USE_XOPEN && !__USE_XOPEN2K)] (XCASE): Likewise.
7229 [__USE_MISC] (ECHOCTL, ECHOPRT, ECHOKE, FLUSHO, PENDIN, EXTPROC):
7230 Likewise.
7231 * sysdeps/unix/sysv/linux/alpha/bits/termios.h: Likewise.
7232 * sysdeps/unix/sysv/linux/mips/bits/termios.h: Likewise.
7233 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
7234 * sysdeps/unix/sysv/linux/sparc/bits/termios.h: Likewise.
7235
7236 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
7237 termios-c_cflag.h.
7238 * sysdeps/unix/sysv/linux/bits/termios-c_cflag.h: New file.
7239 * sysdeps/unix/sysv/linux/alpha/bits/termios-c_cflag.h: Likewise.
7240 * sysdeps/unix/sysv/linux/powerpc/bits/termios-c_cflag.h: Likewise.
7241 * sysdeps/unix/sysv/linux/bits/termios.h (CSIZE, CS5, CS6, CS7, CS8,
7242 CSTOPB, CREAD, PARENB, PARODD, HUPCL, CLOCAL): Move to
7243 termios-c_cflag.h.
7244 * sysdeps/unix/sysv/linux/alpha/bits/termios.h: Likewise.
7245 * sysdeps/unix/sysv/linux/mips/bits/termios.h: Likewise.
7246 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
7247 * sysdeps/unix/sysv/linux/sparc/bits/termios.h: Likewise.
7248
7249 [BZ #23783]
7250 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
7251 termios-baud.h.
7252 * sysdeps/unix/sysv/linux/bits/termios-baud.h: New file.
7253 * sysdeps/unix/sysv/linux/alpha/bits/termios-baud.h: Likewise.
7254 * sysdeps/unix/sysv/linux/powerpc/bits/termios-baud.h: Likewise.
7255 * sysdeps/unix/sysv/linux/sparc/bits/termios-baud.h: Likewise.
7256 * sysdeps/unix/sysv/linux/alpha/bits/termios.h (B57600, B115200,
7257 B230400, B460800, B500000, B576000, B921600, B1000000, B1152000,
7258 B1500000, B2000000, B2500000, B3000000, B3500000, B4000000,
7259 __MAX_BAUD): Move to termios-baud.h.
7260 [__USE_MISC] (CBAUD, CBAUDEX): Likewise.
7261 * sysdeps/unix/sysv/linux/bits/termios.h: Likewise.
7262 * sysdeps/unix/sysv/linux/mips/bits/termios.h: Likewise.
7263 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
7264 * sysdeps/unix/sysv/linux/sparc/bits/termios.h: Likewise.
7265
7266 * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Add
7267 termios-c_oflag.h.
7268 * sysdeps/unix/sysv/linux/bits/termios-c_oflag.h: New file.
7269 * sysdeps/unix/sysv/linux/alpha/bits/termios-c_oflag.h: Likewise.
7270 * sysdeps/unix/sysv/linux/powerpc/bits/termios-c_oflag.h: Likewise.
7271 * sysdeps/unix/sysv/linux/sparc/bits/termios-c_oflag.h: Likewise.
7272 * sysdeps/unix/sysv/linux/bits/termios.h (OPOST, OLCUC, ONLCR, OCRNL,
7273 ONOCR, ONLRET, OFILL, OFDEL, VTDLY, VT0, VT1): Move to
7274 termios-c_oflag.h.
7275 [__USE_MISC || __USE_XOPEN] (NLDLY, NL0, NL1, CRDLY, CR0, CR1, CR2,
7276 CR3, TABDLY, TAB0, TAB1, TAB2, TAB3, BSDLY, BS0, BS1, FFDLY, FF0,
7277 FFR1): Likewise.
7278 [USE_MISC] (XTABS): Likewise.
7279 * sysdeps/unix/sysv/linux/alpha/bits/termios.h: Likewise.
7280 * sysdeps/unix/sysv/linux/mips/bits/termios.h: Likewise.
7281 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
7282 * sysdeps/unix/sysv/linux/sparc/bits/termios.h Likewise.
7283
7284 * sysdeps/unix/sysv/linux/Makefile (sysdeps_headers): Add
7285 termios-c_iflag.h.
7286 * sysdeps/unix/sysv/linux/bits/termios-c_iflag.h: New file.
7287 * sysdeps/unix/sysv/linux/alpha/bits/termios-c_iflag.h: Likewise.
7288 * sysdeps/unix/sysv/linux/powerpc/bits/termios-c_iflag.h: Likewise.
7289 * sysdeps/unix/sysv/linux/bits/termios.h (IGNBRK, BRKINT, IGNPAR, PARMRK,
7290 INPCK, ISTRIP, INLCR, IGNCR, ICRNL, IXON, IXOFF, IXANY, IUCLC, IMAXBEL,
7291 IUTF8): Move to termios-c_iflag.h.
7292 * sysdeps/unix/sysv/linux/alpha/bits/termios.h: Likewise.
7293 * sysdeps/unix/sysv/linux/mips/bits/termios.h: Likewise.
7294 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
7295 * sysdeps/unix/sysv/linux/sparc/bits/termios.h: Likewise.
7296
7297 * sysdeps/unix/sysv/linux/Makefile (sysdeps_headers): Add
7298 termios-cc.h.
7299 * sysdeps/unix/sysv/linux/bits/termios-c_cc.h: Likewise.
7300 * sysdeps/unix/sysv/linux/alpha/bits/termios-c_cc.h: New file.
7301 * sysdeps/unix/sysv/linux/mips/bits/termios-c_cc.h: Likewise.
7302 * sysdeps/unix/sysv/linux/powerpc/bits/termios-c_cc.h: Likewise.
7303 * sysdeps/unix/sysv/linux/sparc/bits/termios-c_cc.h: Likewise.
7304 * sysdeps/unix/sysv/linux/bits/termios.h (VINTR, VQUIT, VERASE,
7305 VKILL, VEOF, VTIME, VMIN, VSWTC, VSTART, VSTOP, VSUSP, VEOL,
7306 VREPRINT, VDISCARD, VWERASE, VLNEXT, VEOLF2): Move to termios-cc.h.
7307 * sysdeps/unix/sysv/linux/alpha/bits/termios.h: Likewise.
7308 * sysdeps/unix/sysv/linux/mips/bits/termios.h: Likewise.
7309 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
7310 * sysdeps/unix/sysv/linux/sparc/bits/termios.h: Likewise.
7311
7312 * sysdeps/unix/sysv/linux/alpha/bits/termios-struct.h: New file.
7313 * sysdeps/unix/sysv/linux/bits/termios-struct.h: Likewise.
7314 * sysdeps/unix/sysv/linux/mips/bits/termios-struct.h: Likewise.
7315 * sysdeps/unix/sysv/linux/sparc/bits/termios-struct.h: Likewise.
7316 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
7317 termios-struct.h.
7318 * sysdeps/unix/sysv/linux/bits/termios.h (struct termios): Move to
7319 termios-struct.h.
7320 * sysdeps/unix/sysv/linux/alpha/bits/termios.h (struct termios):
7321 Likewise.
7322 * sysdeps/unix/sysv/linux/mips/bits/termios.h (struct termios):
7323 Likewise.
7324 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h (struct termios):
7325 Likewise.
7326 * sysdeps/unix/sysv/linux/sparc/bits/termios.h (struct termios):
7327 Likewise.
7328 * sysdeps/unix/sysv/linux/kernel_termios.h (_HAVE_C_ISPEED,
7329 _HAVE_C_OSPEED): Define.
7330 * sysdeps/unix/sysv/linux/mips/kernel_termios.h (_HAVE_C_ISPEED,
7331 _HAVE_C_OSPEED): Likewise.
7332 * sysdeps/unix/sysv/linux/sparc/kernel_termios.h (_HAVE_C_ISPEED,
7333 _HAVE_C_OSPEED): Likewise.
7334 * sysdeps/unix/sysv/linux/speed.c [_HAVE_STRUCT_TERMIOS_C_OSPEED]
7335 (cfsetospeed): Check for define value instead of existence.
7336 [_HAVE_STRUCT_TERMIOS_C_ISPEED] (cfsetispeed): Likewise.
7337 * sysdeps/unix/sysv/linux/tcgetattr.c [_HAVE_STRUCT_TERMIOS_C_ISPEED
7338 && _HAVE_C_ISPEED] (__tcgetattr): Likewise.
7339 * sysdeps/unix/sysv/linux/tcsetattr.c [_HAVE_STRUCT_TERMIOS_C_ISPEED
7340 && _HAVE_C_ISPEED] (__tcsetattr): Likewise.
7341
7342 [BZ #17783]
7343 * sysdeps/unix/sysv/linux/bits/termios.h [__USE_MISC] (TIOCSER_TEMT):
7344 Define.
7345 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h [__USE_MISC]
7346 (TIOCSER_TEMT): Likewise.
7347 * sysdeps/unix/sysv/linux/sparc/bits/termios.h [__USE_MISC]
7348 (TEOCSER_TEMT): Likewise.
7349
7350 2019-01-02 PanderMusubi <pander@users.sourceforge.net>
7351
7352 [BZ #24011]
7353 * localedata/locales/bs_BA (LC_TELEPHONE): Fix a typo in comment.
7354
7355 2019-01-02 Joseph Myers <joseph@codesourcery.com>
7356
7357 * sysdeps/powerpc/nofpu/libm-test-ulps: Update.
7358
7359 2019-01-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
7360
7361 * sysdeps/htl/pt-barrierattr-setpshared.c
7362 (pthread_barrierattr_setpshared): Add stub warning.
7363 * sysdeps/htl/pt-condattr-setpshared.c
7364 (pthread_condattr_setpshared): Likewise.
7365 * sysdeps/htl/pt-mutexattr-setpshared.c
7366 (pthread_mutexattr_setpshared): Likewise.
7367 * sysdeps/htl/pt-rwlockattr-setpshared.c
7368 (pthread_rwlockattr_setpshared): Likewise.
7369 * sysdeps/mach/hurd/htl/pt-mutexattr-setpshared.c
7370 (pthread_mutexattr_setpshared): Likewise.
7371
7372 2019-01-02 Joseph Myers <joseph@codesourcery.com>
7373
7374 * sysdeps/unix/sysv/linux/tst-mman-consts.py (main): Expect
7375 constants to match with Linux 4.20.
7376
7377 * sysdeps/mips/mips32/libm-test-ulps: Update.
7378 * sysdeps/mips/mips64/libm-test-ulps: Likewise.
7379
7380 2019-01-02 Aurelien Jarno <aurelien@aurel32.net>
7381
7382 [BZ #24034]
7383 * sysdeps/unix/sysv/linux/arm/atomic-machine.h
7384 (__arm_assisted_compare_and_exchange_val_32_acq): Use uint32_t rather
7385 than __typeof (...) for the a_ptr variable.
7386
7387 2019-01-02 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
7388
7389 * debug/sprintf_chk.c (___sprintf_chk): Use PRINTF_CHK.
7390 * debug/vsprintf_chk.c (___vsprintf_chk): Likewise.
7391 * libio/Makefile (tests): Add tst-sprintf-ub and
7392 tst-sprintf-chk-ub.
7393 (CFLAGS-tst-sprintf-ub.c): New variable.
7394 (CFLAGS-tst-sprintf-chk-ub.c): Likewise.
7395 * libio/iovsprintf.c (__vsprintf_internal): Only erase the
7396 destination buffer and check for overflows in fortified mode.
7397 * libio/libioP.h (PRINTF_CHK): New macro.
7398 * libio/tst-sprintf-chk-ub.c: New file.
7399 * libio/tst-sprintf-ub.c: Likewise.
7400
7401 2019-01-02 Florian Weimer <fweimer@redhat.com>
7402
7403 [BZ #24018]
7404 * intl/dcigettext.c (DCIGETTEXT): Do not return NULL on asprintf
7405 failure.
7406
7407 2019-01-02 Florian Weimer <fweimer@redhat.com>
7408
7409 * nptl/tst-audit-threads.c: Switch to <support/test-driver.c>.
7410
7411 2019-01-01 Joseph Myers <joseph@codesourcery.com>
7412
7413 * sysdeps/unix/sysv/linux/bits/in.h (IPV6_MULTICAST_ALL): New
7414 macro.
7415
7416 * sysdeps/unix/sysv/linux/netpacket/packet.h
7417 (PACKET_IGNORE_OUTGOING): New macro.
7418
7419 * sysdeps/unix/sysv/linux/aarch64/bits/hwcap.h (HWCAP_SSBS): New
7420 macro.
7421
7422 * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
7423 version to 4.20.
7424 (riscv_flush_icache): New syscall.
7425
7426 * manual/texinfo.tex: Update to version 2018-12-28.17 with
7427 trailing whitespace removed.
7428 * scripts/config.guess: Update to version 2019-01-01.
7429 * scripts/config.sub: Update to version 2019-01-01.
7430 * scripts/move-if-change: Update from gnulib.
7431
7432 * NEWS: Update copyright dates.
7433 * catgets/gencat.c (print_version): Likewise.
7434 * csu/version.c (banner): Likewise.
7435 * debug/catchsegv.sh: Likewise.
7436 * debug/pcprofiledump.c (print_version): Likewise.
7437 * debug/xtrace.sh (do_version): Likewise.
7438 * elf/ldconfig.c (print_version): Likewise.
7439 * elf/ldd.bash.in: Likewise.
7440 * elf/pldd.c (print_version): Likewise.
7441 * elf/sotruss.sh: Likewise.
7442 * elf/sprof.c (print_version): Likewise.
7443 * iconv/iconv_prog.c (print_version): Likewise.
7444 * iconv/iconvconfig.c (print_version): Likewise.
7445 * locale/programs/locale.c (print_version): Likewise.
7446 * locale/programs/localedef.c (print_version): Likewise.
7447 * login/programs/pt_chown.c (print_version): Likewise.
7448 * malloc/memusage.sh (do_version): Likewise.
7449 * malloc/memusagestat.c (print_version): Likewise.
7450 * malloc/mtrace.pl: Likewise.
7451 * manual/libc.texinfo: Likewise.
7452 * nptl/version.c (banner): Likewise.
7453 * nscd/nscd.c (print_version): Likewise.
7454 * nss/getent.c (print_version): Likewise.
7455 * nss/makedb.c (print_version): Likewise.
7456 * posix/getconf.c (main): Likewise.
7457 * scripts/test-installation.pl: Likewise.
7458 * sysdeps/unix/sysv/linux/lddlibc4.c (main): Likewise.
7459
7460 * All files with FSF copyright notices: Update copyright dates
7461 using scripts/update-copyrights.
7462 * locale/programs/charmap-kw.h: Regenerated.
7463 * locale/programs/locfile-kw.h: Likewise.
7464
7465 2018-12-31 Joseph Myers <joseph@codesourcery.com>
7466
7467 * timezone/zdump.c: Update from tzcode 2018i.
7468 * timezone/zic.c: Likewise.
7469
7470 2018-12-31 Paul Eggert <eggert@cs.ucla.edu>
7471
7472 regex: improve Gnulib port to AIX
7473 From the glibc point of view, this removes duplicate macro
7474 definitions and is obviously safe.
7475 From the Gnulib point of view, this pacifies xlc 12.01 on AIX 7.1.
7476 * posix/regex_internal.h:
7477 (__attribute__, __attribute_warn_unused_result__):
7478 Remove; already defined elsewhere.
7479
7480 2018-12-31 Florian Weimer <fw@deneb.enyo.de>
7481
7482 [BZ #24027]
7483 * malloc/malloc.c (_int_realloc): Always call memcpy for the
7484 copying operation. (ncopies had the wrong type, resulting in an
7485 integer wraparound and too few elements being copied.)
7486
7487 2018-12-31 H.J. Lu <hongjiu.lu@intel.com>
7488
7489 [BZ #24022]
7490 * sysdeps/unix/sysv/linux/riscv/flush-icache.c: Check if
7491 <asm/syscalls.h> exists with __has_include__ before including it.
7492
7493 2018-12-31 Joseph Myers <joseph@codesourcery.com>
7494
7495 * scripts/build-many-glibcs.py (Context.checkout): Default Linux
7496 version to 4.20.
7497
7498 2018-12-28 Justus Winter <4winter@informatik.uni-hamburg.de>
7499
7500 * hurd/lookup-retry: Include <unistd.h>.
7501 (__hurd_file_name_lookup_retry): Keep a ref on last result in `lastdir'.
7502 Release it on return. Handle "pid" magical lookup retry.
7503
7504 2018-12-28 Rafał Lużyński <digitalfreak@lingonborough.com>
7505
7506 [BZ #10496]
7507 * localedata/locales/aa_DJ (t_fmt): Set to "%l:%M:%S %p".
7508 (t_fmt_ampm): Likewise.
7509 * localedata/locales/aa_ER (t_fmt): Likewise.
7510 (t_fmt_ampm): Likewise.
7511 * localedata/locales/aa_ER@saaho (t_fmt): Likewise.
7512 (t_fmt_ampm): Likewise.
7513 * localedata/locales/aa_ET (t_fmt): Likewise.
7514 (t_fmt_ampm): Likewise.
7515 * localedata/locales/am_ET (t_fmt): Likewise.
7516 (t_fmt_ampm): Likewise.
7517 * localedata/locales/byn_ER (t_fmt): Likewise.
7518 (t_fmt_ampm): Likewise.
7519 * localedata/locales/om_ET (t_fmt): Likewise.
7520 (t_fmt_ampm): Likewise.
7521 * localedata/locales/sid_ET (t_fmt): Likewise.
7522 (t_fmt_ampm): Likewise.
7523 * localedata/locales/so_DJ (t_fmt): Likewise.
7524 (t_fmt_ampm): Likewise.
7525 * localedata/locales/so_ET (t_fmt): Likewise.
7526 (t_fmt_ampm): Likewise.
7527 * localedata/locales/so_SO (t_fmt): Likewise.
7528 (t_fmt_ampm): Likewise.
7529 * localedata/locales/ti_ER (t_fmt): Likewise.
7530 (t_fmt_ampm): Likewise.
7531 * localedata/locales/ti_ET (t_fmt): Likewise.
7532 (t_fmt_ampm): Likewise.
7533 * localedata/locales/tig_ER (t_fmt): Likewise.
7534 (t_fmt_ampm): Likewise.
7535 * localedata/locales/wal_ET (t_fmt): Likewise.
7536 (t_fmt_ampm): Likewise.
7537
7538 * localedata/locales/anp_IN (t_fmt): Set to "%I:%M:%S %p %Z".
7539 * localedata/locales/ar_IN (t_fmt): Likewise.
7540 * localedata/locales/bhb_IN (t_fmt): Likewise.
7541 * localedata/locales/bho_IN (t_fmt): Likewise.
7542 * localedata/locales/bi_VU (t_fmt): Likewise.
7543 * localedata/locales/bn_BD (t_fmt): Likewise.
7544 * localedata/locales/bn_IN (t_fmt): Likewise.
7545 * localedata/locales/brx_IN (t_fmt): Likewise.
7546 * localedata/locales/doi_IN (t_fmt): Likewise.
7547 * localedata/locales/en_HK (t_fmt): Likewise.
7548 (t_fmt_ampm): Likewise.
7549 * localedata/locales/en_IN (t_fmt): Likewise.
7550 * localedata/locales/en_PH (t_fmt): Likewise.
7551 * localedata/locales/gu_IN (t_fmt): Likewise.
7552 * localedata/locales/hi_IN (t_fmt): Likewise.
7553 * localedata/locales/hif_FJ (t_fmt): Likewise.
7554 * localedata/locales/hne_IN (t_fmt): Likewise.
7555 * localedata/locales/kn_IN (t_fmt): Likewise.
7556 * localedata/locales/kok_IN (t_fmt): Likewise.
7557 * localedata/locales/ks_IN (t_fmt): Likewise.
7558 * localedata/locales/ks_IN@devanagari (t_fmt): Likewise.
7559 * localedata/locales/mag_IN (t_fmt): Likewise.
7560 * localedata/locales/mai_IN (t_fmt): Likewise.
7561 * localedata/locales/mjw_IN (t_fmt): Likewise.
7562 * localedata/locales/ml_IN (t_fmt): Likewise.
7563 * localedata/locales/mni_IN (t_fmt): Likewise.
7564 * localedata/locales/mr_IN (t_fmt): Likewise.
7565 * localedata/locales/ms_MY (t_fmt): Likewise.
7566 * localedata/locales/pa_IN (t_fmt): Likewise.
7567 * localedata/locales/raj_IN (t_fmt): Likewise.
7568 * localedata/locales/sa_IN (t_fmt): Likewise.
7569 * localedata/locales/sat_IN (t_fmt): Likewise.
7570 * localedata/locales/sd_IN (t_fmt): Likewise.
7571 * localedata/locales/sd_IN@devanagari (t_fmt): Likewise.
7572 * localedata/locales/tcy_IN (t_fmt): Likewise.
7573 * localedata/locales/the_NP (t_fmt): Likewise.
7574 * localedata/locales/to_TO (t_fmt): Likewise.
7575 * localedata/locales/ur_IN (t_fmt): Likewise.
7576
7577 * localedata/locales/hif_FJ (d_t_fmt): Set to
7578 "%A %d %b %Y %I:%M:%S %p".
7579 (date_fmt): Add, set to "%A %d %b %Y %I:%M:%S %p %Z".
7580
7581 * localedata/locales/ar_AE (t_fmt): Set to "%Z %I:%M:%S %p".
7582 * localedata/locales/ar_BH (t_fmt): Likewise.
7583 * localedata/locales/ar_DZ (t_fmt): Likewise.
7584 * localedata/locales/ar_EG (t_fmt): Likewise.
7585 * localedata/locales/ar_IQ (t_fmt): Likewise.
7586 * localedata/locales/ar_JO (t_fmt): Likewise.
7587 * localedata/locales/ar_KW (t_fmt): Likewise.
7588 * localedata/locales/ar_LB (t_fmt): Likewise.
7589 * localedata/locales/ar_LY (t_fmt): Likewise.
7590 * localedata/locales/ar_OM (t_fmt): Likewise.
7591 * localedata/locales/ar_QA (t_fmt): Likewise.
7592 * localedata/locales/ar_SD (t_fmt): Likewise.
7593 * localedata/locales/ar_SS (t_fmt): Likewise.
7594 * localedata/locales/ar_SY (t_fmt): Likewise.
7595 * localedata/locales/ar_TN (t_fmt): Likewise.
7596 * localedata/locales/ar_YE (t_fmt): Likewise.
7597
7598 * localedata/locales/gez_ER (t_fmt): Set to "%l:%M:%S<U1361>%p".
7599 (t_fmt_ampm): Likewise.
7600 * localedata/locales/gez_ET (t_fmt): Likewise.
7601 (t_fmt_ampm): Likewise.
7602
7603 * localedata/locales/ta_IN (t_fmt): Set to "%p %I:%M:%S %Z".
7604 (t_fmt_ampm): Likewise.
7605 (d_t_fmt): Set to "%A %d %B %Y %p %I:%M:%S %Z".
7606
7607 * localedata/locales/zh_HK (t_fmt):
7608 Set to "%p %I<U6642>%M<U5206>%S<U79D2> %Z".
7609
7610 * localedata/locales/ar_MA (t_fmt_ampm): Set to "" (empty string)
7611 because this locale does not use the 12-hour clock.
7612 (t_fmt): Set to "%Z %H:%M:%S".
7613 (d_t_fmt): Set to "%d %b, %Y %Z %H:%M:%S".
7614
7615 * localedata/locales/mt_MT (t_fmt_ampm): Set to "" (empty string)
7616 because this locale does not use the 12-hour clock.
7617 (t_fmt): Set to "%H:%M:%S %Z".
7618 (d_t_fmt): Set to "%A, %d ta %b, %Y %H:%M:%S %Z".
7619
7620 * localedata/locales/so_KE (t_fmt_ampm): Set to "" (empty string)
7621 because this locale does not use the 12-hour clock.
7622 (t_fmt): Set to "%T".
7623 (d_t_fmt): Set to "%A, %B %e, %Y %X %Z".
7624 (date_fmt): Set to "%A, %B %e, %X %Z %Y".
7625
7626 * localedata/locales/ta_LK (t_fmt_ampm): Set to "" (empty string)
7627 because this locale does not use the 12-hour clock.
7628 (t_fmt): Set to "%H:%M:%S %Z".
7629 (d_t_fmt): Set to "%A %d %B %Y %H:%M:%S %Z".
7630
7631 * localedata/locales/bg_BG (t_fmt_ampm): Set to "" (empty string)
7632 because this locale does not use the 12-hour clock.
7633 * localedata/locales/cs_CZ (t_fmt_ampm): Likewise.
7634 * localedata/locales/sk_SK (t_fmt_ampm): Likewise.
7635
7636 2018-12-28 Rafał Lużyński <digitalfreak@lingonborough.com>
7637
7638 [BZ #10496]
7639 [BZ #23724]
7640 * localedata/locales/sq_AL (t_fmt): Set to "%I:%M:%S.%p %Z".
7641 (t_fmt_ampm): Likewise.
7642 (d_t_fmt): Set to "%a %-d %b %Y %I:%M:%S.%p".
7643 (date_fmt): Add, set to "%a %-d %b %Y %I:%M:%S.%p %Z".
7644 (d_fmt): Set to "%-d.%-m.%y".
7645
7646 2018-12-28 Adhemerval Zanella <adhemerval.zanella@linaro.org>
7647
7648 * malloc/alloc_buffer_alloc_array.c (__libc_alloc_buffer_alloc_array):
7649 Use __builtin_mul_overflow in place of check_mul_overflow_size_t.
7650 * malloc/dynarray_emplace_enlarge.c (__libc_dynarray_emplace_enlarge):
7651 Likewise.
7652 * malloc/dynarray_resize.c (__libc_dynarray_resize): Likewise.
7653 * malloc/reallocarray.c (__libc_reallocarray): Likewise.
7654 * malloc/malloc-internal.h (check_mul_overflow_size_t): Remove
7655 function.
7656 * support/blob_repeat.c (check_mul_overflow_size_t,
7657 (minimum_stride_size, support_blob_repeat_allocate): Likewise.
7658
7659 2018-12-28 Aurelien Jarno <aurelien@aurel32.net>
7660
7661 * sysdeps/alpha/fpu/libm-test-ulps: Regenerated.
7662
7663 2018-12-27 Paul Eggert <eggert@cs.ucla.edu>
7664
7665 regex: simplify Gnulib port
7666 This simplifies the code, by removing stuff intended for porting
7667 to Gnulib but no longer needed there.
7668 * posix/regcomp.c [!_LIBC]: No need to put #ifdef _LIBC around
7669 uses of libc_hidden_def, weak_alias.
7670 * posix/regcomp.c, posix/regexec.c: Use __restrict rather than
7671 _Restrict_ except for public-facing headers.
7672 * posix/regex_internal.h (attribute_hidden) [!_LIBC]:
7673 Remove; already defined elsewhere.
7674 * posix/regex.c, posix/regex_internal.h:
7675 Use __GNUC_PREREQ instead of rolling our own.
7676 * posix/regex_internal.h (__GNUC_PREREQ): Remove duplicate defn.
7677
7678 2018-12-27 Wilco Dijkstra <wdijkstr@arm.com>
7679
7680 * benchtests/bench-strlen.c (generic_strlen): New function.
7681 (memchr_strlen): New function.
7682
7683 2018-12-26 H.J. Lu <hongjiu.lu@intel.com>
7684
7685 * sysdeps/x86_64/fpu/s_sincosf.S: Removed.
7686 * sysdeps/x86_64/fpu/multiarch/s_sincosf-sse2.S: Likewise.
7687 * sysdeps/x86_64/fpu/multiarch/s_sincosf-sse2.c: New file.
7688
7689 2018-12-26 H.J. Lu <hongjiu.lu@intel.com>
7690
7691 * sysdeps/x86_64/fpu/libm-test-ulps: Regenerated.
7692
7693 2018-12-26 H.J. Lu <hongjiu.lu@intel.com>
7694
7695 * sysdeps/ieee754/flt-32/s_sincosf.h: Include <sincosf_poly.h>.
7696 (sincos_t, sincosf_poly, sinf_poly): Moved to ...
7697 * sysdeps/ieee754/flt-32/sincosf_poly.h: Here. New file.
7698 * sysdeps/x86/fpu/s_sincosf_data.c: New file.
7699 * sysdeps/x86/fpu/sincosf_poly.h: Likewise.
7700 * sysdeps/x86_64/fpu/multiarch/s_sincosf-fma.c: Just include
7701 <sysdeps/ieee754/flt-32/s_sincosf.c>.
7702
7703 2018-12-21 Joseph Myers <joseph@codesourcery.com>
7704
7705 [BZ #24023]
7706 * sysdeps/unix/sysv/linux/nios2/localplt.data: Allow __floatundidf
7707 PLT reference in libc.so.
7708 * sysdeps/unix/sysv/linux/sparc/sparc32/localplt.data: Allow
7709 _Q_lltoq and _Q_qtod PLT references in libc.so.
7710
7711 2018-12-21 Wilco Dijkstra <wdijkstr@arm.com>
7712
7713 * benchtests/bench-memchr.c: Cleanup defines.
7714 * benchtests/bench-memcmp.c: Likewise.
7715 * benchtests/bench-memset.c: Likewise.
7716 * benchtests/bench-memset-large.c: Likewise.
7717 * benchtests/bench-memset-walk.c: Likewise.
7718 * benchtests/bench-stpcpy.c: Likewise.
7719 * benchtests/bench-stpncpy.c: Likewise.
7720 * benchtests/bench-strcat.c: Likewise.
7721 * benchtests/bench-strchr.c: Likewise.
7722 * benchtests/bench-strcmp.c: Likewise.
7723 * benchtests/bench-strcpy.c: Likewise.
7724 * benchtests/bench-strcspn.c: Likewise.
7725 * benchtests/bench-string.h: Likewise.
7726 * benchtests/bench-strlen.c: Likewise.
7727 * benchtests/bench-strncat.c: Likewise.
7728 * benchtests/bench-strncmp.c: Likewise.
7729 * benchtests/bench-strncpy.c: Likewise.
7730 * benchtests/bench-strnlen.c: Likewise.
7731 * benchtests/bench-strpbrk.c: Likewise.
7732 * benchtests/bench-strrchr.c: Likewise.
7733 * benchtests/bench-strspn.c: Likewise.
7734
7735 2018-12-21 Joseph Myers <joseph@codesourcery.com>
7736
7737 * stdlib/longlong.h: Update from GCC.
7738
7739 [BZ #23993]
7740 * configure.ac (libc_cv_compiler_ok): Require GCC 5 or later.
7741 * configure: Regenerated.
7742 * manual/install.texi (Tools for Compilation): Update minimum GCC
7743 version.
7744 * INSTALL: Regenerated.
7745
7746 2018-12-21 Istvan Kurucsai <pistukem@gmail.com>
7747
7748 * malloc/malloc.c (munmap_chunk): Verify chunk alignment.
7749
7750 2018-12-20 Istvan Kurucsai <pistukem@gmail.com>
7751
7752 * malloc/malloc.c (mremap_chunk): Additional checks.
7753
7754 2018-12-21 Mao Han <han_mao@c-sky.com>
7755
7756 * config.h.in (CSKYABI, CSKY_HARD_FLOAT): New Define.
7757 * scripts/build-many-glibcs.py: Add C-SKY targets.
7758 * sysdeps/csky/Implies: New file.
7759 * sysdeps/csky/Makefile: Likewise.
7760 * sysdeps/csky/abiv2/__longjmp.S: Likewise.
7761 * sysdeps/csky/abiv2/csky-mcount.S: Likewise.
7762 * sysdeps/csky/abiv2/dl-trampoline.S: Likewise.
7763 * sysdeps/csky/abiv2/memcmp.S: Likewise.
7764 * sysdeps/csky/abiv2/memcpy.S: Likewise.
7765 * sysdeps/csky/abiv2/memmove.S: Likewise.
7766 * sysdeps/csky/abiv2/memset.S: Likewise.
7767 * sysdeps/csky/abiv2/setjmp.S: Likewise.
7768 * sysdeps/csky/abiv2/start.S: Likewise.
7769 * sysdeps/csky/abiv2/strcmp.S: Likewise.
7770 * sysdeps/csky/abiv2/strcpy.S: Likewise.
7771 * sysdeps/csky/abiv2/strlen.S: Likewise.
7772 * sysdeps/csky/abiv2/tls-macros.h: Likewise.
7773 * sysdeps/csky/abort-instr.h: Likewise.
7774 * sysdeps/csky/atomic-machine.h: Likewise.
7775 * sysdeps/csky/bits/endian.h: Likewise.
7776 * sysdeps/csky/bits/fenv.h: Likewise.
7777 * sysdeps/csky/bits/link.h: Likewise.
7778 * sysdeps/csky/bits/setjmp.h: Likewise.
7779 * sysdeps/csky/bsd-_setjmp.S: Likewise.
7780 * sysdeps/csky/bsd-setjmp.S: Likewise.
7781 * sysdeps/csky/configure: Likewise.
7782 * sysdeps/csky/configure.ac: Likewise.
7783 * sysdeps/csky/dl-machine.h: Likewise.
7784 * sysdeps/csky/dl-procinfo.c: Likewise.
7785 * sysdeps/csky/dl-procinfo.h: Likewise.
7786 * sysdeps/csky/dl-sysdep.h: Likewise.
7787 * sysdeps/csky/dl-tls.h: Likewise.
7788 * sysdeps/csky/fpu/fclrexcpt.c: Likewise.
7789 * sysdeps/csky/fpu/fedisblxcpt.c: Likewise.
7790 * sysdeps/csky/fpu/feenablxcpt.c: Likewise.
7791 * sysdeps/csky/fpu/fegetenv.c: Likewise.
7792 * sysdeps/csky/fpu/fegetexcept.c: Likewise.
7793 * sysdeps/csky/fpu/fegetmode.c: Likewise.
7794 * sysdeps/csky/fpu/fegetround.c: Likewise.
7795 * sysdeps/csky/fpu/feholdexcpt.c: Likewise.
7796 * sysdeps/csky/fpu/fenv_libc.h: Likewise.
7797 * sysdeps/csky/fpu/fenv_private.h: Likewise.
7798 * sysdeps/csky/fpu/fesetenv.c: Likewise.
7799 * sysdeps/csky/fpu/fesetexcept.c: Likewise.
7800 * sysdeps/csky/fpu/fesetmode.c: Likewise.
7801 * sysdeps/csky/fpu/fesetround.c: Likewise.
7802 * sysdeps/csky/fpu/feupdateenv.c: Likewise.
7803 * sysdeps/csky/fpu/fgetexcptflg.c: Likewise.
7804 * sysdeps/csky/fpu/fix-fp-int-convert-overflow.h: Likewise.
7805 * sysdeps/csky/fpu/fraiseexcpt.c: Likewise.
7806 * sysdeps/csky/fpu/fsetexcptflg.c: Likewise.
7807 * sysdeps/csky/fpu/ftestexcept.c: Likewise.
7808 * sysdeps/csky/fpu/libm-test-ulps: Likewise.
7809 * sysdeps/csky/fpu/libm-test-ulps-name: Likewise.
7810 * sysdeps/csky/fpu_control.h: Likewise.
7811 * sysdeps/csky/gccframe.h: Likewise.
7812 * sysdeps/csky/jmpbuf-unwind.h: Likewise.
7813 * sysdeps/csky/ldsodefs.h: Likewise.
7814 * sysdeps/csky/libc-tls.c: Likewise.
7815 * sysdeps/csky/linkmap.h: Likewise.
7816 * sysdeps/csky/machine-gmon.h: Likewise.
7817 * sysdeps/csky/memusage.h: Likewise.
7818 * sysdeps/csky/nofpu/Implies: Likewise.
7819 * sysdeps/csky/nofpu/libm-test-ulps: Likewise.
7820 * sysdeps/csky/nofpu/libm-test-ulps-name: Likewise.
7821 * sysdeps/csky/nptl/Makefile: Likewise.
7822 * sysdeps/csky/nptl/bits/pthreadtypes-arch.h: Likewise.
7823 * sysdeps/csky/nptl/bits/semaphore.h: Likewise.
7824 * sysdeps/csky/nptl/pthread-offsets.h: Likewise.
7825 * sysdeps/csky/nptl/pthreaddef.h: Likewise.
7826 * sysdeps/csky/nptl/tcb-offsets.sym: Likewise.
7827 * sysdeps/csky/nptl/tls.h: Likewise.
7828 * sysdeps/csky/preconfigure: Likewise.
7829 * sysdeps/csky/sfp-machine.h: Likewise.
7830 * sysdeps/csky/sotruss-lib.c: Likewise.
7831 * sysdeps/csky/stackinfo.h: Likewise.
7832 * sysdeps/csky/sysdep.h: Likewise.
7833 * sysdeps/csky/tininess.h: Likewise.
7834 * sysdeps/csky/tst-audit.h: Likewise.
7835 * sysdeps/unix/sysv/linux/csky/Implies: Likewise.
7836 * sysdeps/unix/sysv/linux/csky/Makefile: Likewise.
7837 * sysdeps/unix/sysv/linux/csky/Versions: Likewise.
7838 * sysdeps/unix/sysv/linux/csky/abiv2/____longjmp_chk.S: Likewise.
7839 * sysdeps/unix/sysv/linux/csky/abiv2/clone.S: Likewise.
7840 * sysdeps/unix/sysv/linux/csky/abiv2/getcontext.S: Likewise.
7841 * sysdeps/unix/sysv/linux/csky/abiv2/setcontext.S: Likewise.
7842 * sysdeps/unix/sysv/linux/csky/abiv2/swapcontext.S: Likewise.
7843 * sysdeps/unix/sysv/linux/csky/abiv2/syscall.S: Likewise.
7844 * sysdeps/unix/sysv/linux/csky/abiv2/sysdep.S: Likewise.
7845 * sysdeps/unix/sysv/linux/csky/abiv2/ucontext_i.sym: Likewise.
7846 * sysdeps/unix/sysv/linux/csky/bits/procfs.h: Likewise.
7847 * sysdeps/unix/sysv/linux/csky/bits/shmlba.h: Likewise.
7848 * sysdeps/unix/sysv/linux/csky/c++-types.data: Likewise.
7849 * sysdeps/unix/sysv/linux/csky/configure: Likewise.
7850 * sysdeps/unix/sysv/linux/csky/configure.ac: Likewise.
7851 * sysdeps/unix/sysv/linux/csky/ipc_priv.h: Likewise.
7852 * sysdeps/unix/sysv/linux/csky/jmp_buf-macros.h: Likewise.
7853 * sysdeps/unix/sysv/linux/csky/kernel-features.h: Likewise.
7854 * sysdeps/unix/sysv/linux/csky/ld.abilist: Likewise.
7855 * sysdeps/unix/sysv/linux/csky/ldconfig.h: Likewise.
7856 * sysdeps/unix/sysv/linux/csky/libBrokenLocale.abilist: Likewise.
7857 * sysdeps/unix/sysv/linux/csky/libanl.abilist: Likewise.
7858 * sysdeps/unix/sysv/linux/csky/libc.abilist: Likewise.
7859 * sysdeps/unix/sysv/linux/csky/libcrypt.abilist: Likewise.
7860 * sysdeps/unix/sysv/linux/csky/libdl.abilist: Likewise.
7861 * sysdeps/unix/sysv/linux/csky/libm.abilist: Likewise.
7862 * sysdeps/unix/sysv/linux/csky/libpthread.abilist: Likewise.
7863 * sysdeps/unix/sysv/linux/csky/libresolv.abilist: Likewise.
7864 * sysdeps/unix/sysv/linux/csky/librt.abilist: Likewise.
7865 * sysdeps/unix/sysv/linux/csky/libthread_db.abilist: Likewise.
7866 * sysdeps/unix/sysv/linux/csky/libutil.abilist: Likewise.
7867 * sysdeps/unix/sysv/linux/csky/localplt.data: Likewise.
7868 * sysdeps/unix/sysv/linux/csky/makecontext.c: Likewise.
7869 * sysdeps/unix/sysv/linux/csky/profil-counter.h: Likewise.
7870 * sysdeps/unix/sysv/linux/csky/pt-vfork.S: Likewise.
7871 * sysdeps/unix/sysv/linux/csky/register-dump.h: Likewise.
7872 * sysdeps/unix/sysv/linux/csky/shlib-versions: Likewise.
7873 * sysdeps/unix/sysv/linux/csky/sigcontextinfo.h: Likewise.
7874 * sysdeps/unix/sysv/linux/csky/sys/cachectl.h: Likewise.
7875 * sysdeps/unix/sysv/linux/csky/sys/ucontext.h: Likewise.
7876 * sysdeps/unix/sysv/linux/csky/sys/user.h: Likewise.
7877 * sysdeps/unix/sysv/linux/csky/syscalls.list: Likewise.
7878 * sysdeps/unix/sysv/linux/csky/sysdep.h: Likewise.
7879
7880 2018-12-18 Albert ARIBAUD <albert.aribaud@3adev.fr>
7881
7882 * include/time.h (__difftime64): Add.
7883 * time/difftime.c (subtract): convert to 64-bit time.
7884 * time/difftime.c (__difftime64): Add.
7885 * time/difftime.c (__difftime): Wrap around __difftime64.
7886
7887 2018-12-20 H.J. Lu <hongjiu.lu@intel.com>
7888
7889 * manual/examples/add.c: Remove redundant "if not".
7890 * manual/examples/argp-ex1.c: Likewise.
7891 * manual/examples/argp-ex2.c: Likewise.
7892 * manual/examples/argp-ex3.c: Likewise.
7893 * manual/examples/argp-ex4.c: Likewise.
7894 * manual/examples/atexit.c: Likewise.
7895 * manual/examples/db.c: Likewise.
7896 * manual/examples/dir.c: Likewise.
7897 * manual/examples/dir2.c: Likewise.
7898 * manual/examples/execinfo.c: Likewise.
7899 * manual/examples/filecli.c: Likewise.
7900 * manual/examples/filesrv.c: Likewise.
7901 * manual/examples/fmtmsgexpl.c: Likewise.
7902 * manual/examples/genpass.c: Likewise.
7903 * manual/examples/inetcli.c: Likewise.
7904 * manual/examples/inetsrv.c: Likewise.
7905 * manual/examples/isockad.c: Likewise.
7906 * manual/examples/longopt.c: Likewise.
7907 * manual/examples/memopen.c: Likewise.
7908 * manual/examples/memstrm.c: Likewise.
7909 * manual/examples/mkdirent.c: Likewise.
7910 * manual/examples/mkfsock.c: Likewise.
7911 * manual/examples/mkisock.c: Likewise.
7912 * manual/examples/mygetpass.c: Likewise.
7913 * manual/examples/pipe.c: Likewise.
7914 * manual/examples/popen.c: Likewise.
7915 * manual/examples/rprintf.c: Likewise.
7916 * manual/examples/search.c: Likewise.
7917 * manual/examples/select.c: Likewise.
7918 * manual/examples/setjmp.c: Likewise.
7919 * manual/examples/sigh1.c: Likewise.
7920 * manual/examples/sigusr.c: Likewise.
7921 * manual/examples/stpcpy.c: Likewise.
7922 * manual/examples/strdupa.c: Likewise.
7923 * manual/examples/strftim.c: Likewise.
7924 * manual/examples/subopt.c: Likewise.
7925 * manual/examples/swapcontext.c: Likewise.
7926 * manual/examples/termios.c: Likewise.
7927 * manual/examples/testopt.c: Likewise.
7928 * manual/examples/testpass.c: Likewise.
7929 * manual/examples/timeval_subtract.c: Likewise.
7930
7931 2018-12-19 Joseph Myers <joseph@codesourcery.com>
7932
7933 * sysdeps/x86/fpu/math_private.h: New file.
7934 * sysdeps/x86/fpu/bits/mathinline.h: Remove.
7935
7936 * sysdeps/x86/fpu/bits/mathinline.h (sinh): Remove inline
7937 definition.
7938 (cosh): Likewise.
7939 (tanh): Likewise.
7940
7941 2018-12-19 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
7942
7943 * elf/dl-sysdep.c (auxvars): Add AT_L1I_CACHESIZE,
7944 AT_L1I_CACHEGEOMETRY, AT_L1D_CACHESIZE, AT_L1D_CACHEGEOMETRY,
7945 AT_L2_CACHESIZE, AT_L2_CACHEGEOMETRY, AT_L3_CACHESIZE and
7946 AT_L3_CACHEGEOMETRY. Fix indentation when printing the other
7947 fields.
7948 (_dl_show_auxv): Give a special treatment to
7949 AT_L1I_CACHEGEOMETRY, AT_L1D_CACHEGEOMETRY, AT_L2_CACHEGEOMETRY
7950 and AT_L3_CACHEGEOMETRY.
7951 * sysdeps/powerpc/dl-procinfo.h (cache_geometry): New function.
7952 (_dl_procinfo): Fix indentation when printing AT_HWCAP and
7953 AT_HWCAP2. Add support for AT_L1I_CACHEGEOMETRY,
7954 AT_L1D_CACHEGEOMETRY, AT_L2_CACHEGEOMETRY and AT_L3_CACHEGEOMETRY.
7955
7956 2018-12-19 Andreas Schwab <schwab@suse.de>
7957
7958 * nscd/connections.c (check_use): Don't abort on invalid len.
7959
7960 2018-12-18 Samuel Thibault <samuel.thibault@ens-lyon.org>
7961
7962 * sysdeps/mach/hurd/fcntl.c (__libc_fcntl): Test against 64bit `cmd'
7963 values in the 64bit value cases.
7964
7965 2018-12-18 Albert ARIBAUD <albert.aribaud@3adev.fr>
7966
7967 * include/time.h
7968 (__ctime64_r): Add.
7969 * time/ctime_r.c
7970 (__ctime64_r): Add.
7971 [__TIMESIZE != 64] (__ctime_r): Turn into a wrapper.
7972
7973 * include/time.h
7974 (__ctime64): Add.
7975 * time/gmtime.c
7976 (__ctime64): Add.
7977 [__TIMESIZE != 64] (ctime): Turn into a wrapper.
7978
7979 * include/time.h
7980 (__gmtime64_r): Add.
7981 * time/gmtime.c
7982 (__gmtime64_r): Add.
7983 [__TIMESIZE != 64] (__gmtime): Turn into a wrapper.
7984
7985 * include/time.h
7986 (__gmtime64): Add.
7987 * time/gmtime.c
7988 (__gmtime64): Add.
7989 [__TIMESIZE != 64] (__gmtime): Turn into a wrapper.
7990
7991 * include/time.h
7992 (__localtime64_r): Add.
7993 * time/localtime.c
7994 (__localtime64_r): Add.
7995 [__TIMESIZE != 64] (__localtime_r): Turn into a wrapper.
7996
7997 2018-12-18 Adhemerval Zanella <adhemerval.zanella@linaro.org>
7998
7999 * sysdeps/unix/sysv/linux/s390/kernel_sigaction.h: Use Linux generic
8000 kernel_sigction definition.
8001
8002 * sysdeps/unix/sysv/linux/ia64/kernel_sigaction.h: Remove file.
8003
8004 * sysdeps/unix/sysv/linux/hppa/kernel_sigaction.h: Remove file.
8005
8006 * sysdeps/unix/sysv/linux/alpha/Makefile: Update comment about
8007 __syscall_rt_sigaction.
8008 * sysdeps/unix/sysv/linux/alpha/kernel_sigaction.h
8009 (kernel_sigaction): Use Linux generic defintion.
8010 (STUB): Define.
8011 (__syscall_rt_sigreturn, __syscall_sigreturn): Add prototype.
8012 * sysdeps/unix/sysv/linux/alpha/rt_sigaction.S
8013 (__syscall_rt_sigaction): Remove implementation.
8014 (__syscall_sigreturn, __syscall_rt_sigreturn): Define as global and
8015 hidden.
8016 * sysdeps/unix/sysv/linux/alpha/sigaction.c: Remove file.
8017 * sysdeps/unix/sysv/linux/alpha/sysdep.h (INLINE_SYSCALL,
8018 INTERNAL_SYSCALL): Remove definitions.
8019 * sysdeps/unix/sysv/linux/sigaction.c: Define STUB to accept both the
8020 action and signal set size.
8021 * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c (STUB): Redefine.
8022 * sysdeps/unix/sysv/linux/sparc/sparc64/sigaction.c (STUB): Likewise.
8023
8024 2018-12-18 Adhemerval Zanella <adhemerval.zanella@linaro.org>
8025 James Clarke <jrtc27@jrtc27.com>
8026
8027 [BZ #23967]
8028 * sysdeps/unix/sysv/linux/kernel_sigaction.h (HAS_SA_RESTORER):
8029 Define if SA_RESTORER is defined.
8030 (kernel_sigaction): Define sa_restorer if HAS_SA_RESTORER is defined.
8031 (SET_SA_RESTORER, RESET_SA_RESTORER): Define iff the macro are not
8032 already defined.
8033 * sysdeps/unix/sysv/linux/m68k/kernel_sigaction.h (SA_RESTORER,
8034 kernel_sigaction, SET_SA_RESTORER, RESET_SA_RESTORER): Remove
8035 definitions.
8036 (HAS_SA_RESTORER): Define.
8037 * sysdeps/unix/sysv/linux/sparc/kernel_sigaction.h (SA_RESTORER,
8038 SET_SA_RESTORER, RESET_SA_RESTORER): Remove definition.
8039 (HAS_SA_RESTORER): Define.
8040 * sysdeps/unix/sysv/linux/nios2/kernel_sigaction.h: Include generic
8041 kernel_sigaction after define SET_SA_RESTORER and RESET_SA_RESTORER.
8042 * sysdeps/unix/sysv/linux/powerpc/kernel_sigaction.h: Likewise.
8043 * sysdeps/unix/sysv/linux/s390/kernel_sigaction.h: Likewise.
8044 * sysdeps/unix/sysv/linux/x86_64/sigaction.c: Likewise.
8045
8046 2018-12-18 Joseph Myers <joseph@codesourcery.com>
8047
8048 * sysdeps/unix/sysv/linux/kernel-features.h
8049 (__ASSUME_ST_INO_64_BIT): Remove macro definition.
8050 * sysdeps/unix/sysv/linux/alpha/kernel-features.h
8051 (__ASSUME_ST_INO_64_BIT): Do not undefine and define.
8052 * sysdeps/unix/sysv/linux/sh/kernel-features.h
8053 (__ASSUME_ST_INO_64_BIT): Likewise.
8054 * sysdeps/unix/sysv/linux/fxstat64.c: Do not include
8055 <kernel-features.h>.
8056 (___fxstat64) [_HAVE_STAT64___ST_INO && !__ASSUME_ST_INO_64_BIT]:
8057 Remove conditional code.
8058 * sysdeps/unix/sysv/linux/lxstat64.c: Do not include
8059 <kernel-features.h>.
8060 (___lxstat64) [_HAVE_STAT64___ST_INO && !__ASSUME_ST_INO_64_BIT]:
8061 Remove conditional code.
8062 * sysdeps/unix/sysv/linux/xstat64.c: Do not include
8063 <kernel-features.h>.
8064 (___xstat64) [_HAVE_STAT64___ST_INO && !__ASSUME_ST_INO_64_BIT]:
8065 Remove conditional code.
8066 * sysdeps/unix/sysv/linux/xstatconv.c: Do not include
8067 <kernel-features.h>.
8068 (__xstat32_conv) [_HAVE_STAT64___ST_INO]: Remove conditional code.
8069 [!_HAVE_STAT64___ST_INO]: Make code unconditional.
8070
8071 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
8072
8073 * sysdeps/s390/multiarch/ifunc-resolve.h
8074 (s390_vx_libc_ifunc, s390_vx_libc_ifunc_redirected,
8075 s390_vx_libc_ifunc2, s390_vx_libc_ifunc_init,
8076 s390_vx_libc_ifunc2_redirected, s390_libc_ifunc):
8077 Delete macro definition.
8078 (s390_libc_ifunc_init): Rename to
8079 s390_libc_ifunc_expr_stfle_init.
8080 * sysdeps/s390/bzero: Use
8081 s390_libc_ifunc_expr_stfle_init instead of
8082 s390_libc_ifunc_init.
8083 * sysdeps/s390/memcmp.c: Likewise.
8084 * sysdeps/s390/memcpy.c: Likewise.
8085 * sysdeps/s390/mempcpy.c: Likewise.
8086 * sysdeps/s390/memset.c: Likewise.
8087
8088 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
8089
8090 * sysdeps/s390/multiarch/gconv_simple.c (ICONV_VX_IFUNC):
8091 Define macro dependent on HAVE_S390_MIN_Z13_ZARCH_ASM_SUPPORT.
8092
8093 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
8094
8095 * sysdeps/s390/multiarch/Makefile
8096 (sysdep_routines): Remove wmemcmp variants.
8097 * sysdeps/s390/Makefile (sysdep_routines): Add wmemcmp variants.
8098 * sysdeps/s390/multiarch/ifunc-impl-list.c
8099 (__libc_ifunc_impl_list): Refactor ifunc handling for wmemcmp.
8100 * sysdeps/s390/multiarch/wmemcmp-c.c: Move to ...
8101 * sysdeps/s390/wmemcmp-c.c: ... here and adjust ifunc handling.
8102 * sysdeps/s390/multiarch/wmemcmp-vx.S: Move to ...
8103 * sysdeps/s390/wmemcmp-vx.S: ... here and adjust ifunc handling.
8104 * sysdeps/s390/multiarch/wmemcmp.c: Move to ...
8105 * sysdeps/s390/wmemcmp.c: ... here and adjust ifunc handling.
8106 * sysdeps/s390/ifunc-wmemcmp.h: New file.
8107
8108 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
8109
8110 * sysdeps/s390/multiarch/Makefile
8111 (sysdep_routines): Remove wmemset variants.
8112 * sysdeps/s390/Makefile (sysdep_routines): Add wmemset variants.
8113 * sysdeps/s390/multiarch/ifunc-impl-list.c
8114 (__libc_ifunc_impl_list): Refactor ifunc handling for wmemset.
8115 * sysdeps/s390/multiarch/wmemset-c.c: Move to ...
8116 * sysdeps/s390/wmemset-c.c: ... here and adjust ifunc handling.
8117 * sysdeps/s390/multiarch/wmemset-vx.S: Move to ...
8118 * sysdeps/s390/wmemset-vx.S: ... here and adjust ifunc handling.
8119 * sysdeps/s390/multiarch/wmemset.c: Move to ...
8120 * sysdeps/s390/wmemset.c: ... here and adjust ifunc handling.
8121 * sysdeps/s390/ifunc-wmemset.h: New file.
8122
8123 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
8124
8125 * sysdeps/s390/multiarch/Makefile
8126 (sysdep_routines): Remove wmemchr variants.
8127 * sysdeps/s390/Makefile (sysdep_routines): Add wmemchr variants.
8128 * sysdeps/s390/multiarch/ifunc-impl-list.c
8129 (__libc_ifunc_impl_list): Refactor ifunc handling for wmemchr.
8130 * sysdeps/s390/multiarch/wmemchr-c.c: Move to ...
8131 * sysdeps/s390/wmemchr-c.c: ... here and adjust ifunc handling.
8132 * sysdeps/s390/multiarch/wmemchr-vx.S: Move to ...
8133 * sysdeps/s390/wmemchr-vx.S: ... here and adjust ifunc handling.
8134 * sysdeps/s390/multiarch/wmemchr.c: Move to ...
8135 * sysdeps/s390/wmemchr.c: ... here and adjust ifunc handling.
8136 * sysdeps/s390/ifunc-wmemchr.h: New file.
8137
8138 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
8139
8140 * sysdeps/s390/multiarch/Makefile
8141 (sysdep_routines): Remove wcscspn variants.
8142 * sysdeps/s390/Makefile (sysdep_routines): Add wcscspn variants.
8143 * sysdeps/s390/multiarch/ifunc-impl-list.c
8144 (__libc_ifunc_impl_list): Refactor ifunc handling for wcscspn.
8145 * sysdeps/s390/multiarch/wcscspn-c.c: Move to ...
8146 * sysdeps/s390/wcscspn-c.c: ... here and adjust ifunc handling.
8147 * sysdeps/s390/multiarch/wcscspn-vx.S: Move to ...
8148 * sysdeps/s390/wcscspn-vx.S: ... here and adjust ifunc handling.
8149 * sysdeps/s390/multiarch/wcscspn.c: Move to ...
8150 * sysdeps/s390/wcscspn.c: ... here and adjust ifunc handling.
8151 * sysdeps/s390/ifunc-wcscspn.h: New file.
8152
8153 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
8154
8155 * sysdeps/s390/multiarch/Makefile
8156 (sysdep_routines): Remove wcspbrk variants.
8157 * sysdeps/s390/Makefile (sysdep_routines): Add wcspbrk variants.
8158 * sysdeps/s390/multiarch/ifunc-impl-list.c
8159 (__libc_ifunc_impl_list): Refactor ifunc handling for wcspbrk.
8160 * sysdeps/s390/multiarch/wcspbrk-c.c: Move to ...
8161 * sysdeps/s390/wcspbrk-c.c: ... here and adjust ifunc handling.
8162 * sysdeps/s390/multiarch/wcspbrk-vx.S: Move to ...
8163 * sysdeps/s390/wcspbrk-vx.S: ... here and adjust ifunc handling.
8164 * sysdeps/s390/multiarch/wcspbrk.c: Move to ...
8165 * sysdeps/s390/wcspbrk.c: ... here and adjust ifunc handling.
8166 * sysdeps/s390/ifunc-wcspbrk.h: New file.
8167
8168 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
8169
8170 * sysdeps/s390/multiarch/Makefile
8171 (sysdep_routines): Remove wcsspn variants.
8172 * sysdeps/s390/Makefile (sysdep_routines): Add wcsspn variants.
8173 * sysdeps/s390/multiarch/ifunc-impl-list.c
8174 (__libc_ifunc_impl_list): Refactor ifunc handling for wcsspn.
8175 * sysdeps/s390/multiarch/wcsspn-c.c: Move to ...
8176 * sysdeps/s390/wcsspn-c.c: ... here and adjust ifunc handling.
8177 * sysdeps/s390/multiarch/wcsspn-vx.S: Move to ...
8178 * sysdeps/s390/wcsspn-vx.S: ... here and adjust ifunc handling.
8179 * sysdeps/s390/multiarch/wcsspn.c: Move to ...
8180 * sysdeps/s390/wcsspn.c: ... here and adjust ifunc handling.
8181 * sysdeps/s390/ifunc-wcsspn.h: New file.
8182
8183 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
8184
8185 * sysdeps/s390/multiarch/Makefile
8186 (sysdep_routines): Remove wcsrchr variants.
8187 * sysdeps/s390/Makefile (sysdep_routines): Add wcsrchr variants.
8188 * sysdeps/s390/multiarch/ifunc-impl-list.c
8189 (__libc_ifunc_impl_list): Refactor ifunc handling for wcsrchr.
8190 * sysdeps/s390/multiarch/wcsrchr-c.c: Move to ...
8191 * sysdeps/s390/wcsrchr-c.c: ... here and adjust ifunc handling.
8192 * sysdeps/s390/multiarch/wcsrchr-vx.S: Move to ...
8193 * sysdeps/s390/wcsrchr-vx.S: ... here and adjust ifunc handling.
8194 * sysdeps/s390/multiarch/wcsrchr.c: Move to ...
8195 * sysdeps/s390/wcsrchr.c: ... here and adjust ifunc handling.
8196 * sysdeps/s390/ifunc-wcsrchr.h: New file.
8197
8198 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
8199
8200 * sysdeps/s390/multiarch/Makefile
8201 (sysdep_routines): Remove wcschrnul variants.
8202 * sysdeps/s390/Makefile (sysdep_routines): Add wcschrnul variants.
8203 * sysdeps/s390/multiarch/ifunc-impl-list.c
8204 (__libc_ifunc_impl_list): Refactor ifunc handling for wcschrnul.
8205 * sysdeps/s390/multiarch/wcschrnul-c.c: Move to ...
8206 * sysdeps/s390/wcschrnul-c.c: ... here and adjust ifunc handling.
8207 * sysdeps/s390/multiarch/wcschrnul-vx.S: Move to ...
8208 * sysdeps/s390/wcschrnul-vx.S: ... here and adjust ifunc handling.
8209 * sysdeps/s390/multiarch/wcschrnul.c: Move to ...
8210 * sysdeps/s390/wcschrnul.c: ... here and adjust ifunc handling.
8211 * sysdeps/s390/ifunc-wcschrnul.h: New file.
8212
8213 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
8214
8215 * sysdeps/s390/multiarch/Makefile
8216 (sysdep_routines): Remove wcschr variants.
8217 * sysdeps/s390/Makefile (sysdep_routines): Add wcschr variants.
8218 * sysdeps/s390/multiarch/ifunc-impl-list.c
8219 (__libc_ifunc_impl_list): Refactor ifunc handling for wcschr.
8220 * sysdeps/s390/multiarch/wcschr-c.c: Move to ...
8221 * sysdeps/s390/wcschr-c.c: ... here and adjust ifunc handling.
8222 * sysdeps/s390/multiarch/wcschr-vx.S: Move to ...
8223 * sysdeps/s390/wcschr-vx.S: ... here and adjust ifunc handling.
8224 * sysdeps/s390/multiarch/wcschr.c: Move to ...
8225 * sysdeps/s390/wcschr.c: ... here and adjust ifunc handling.
8226 * sysdeps/s390/ifunc-wcschr.h: New file.
8227
8228 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
8229
8230 * sysdeps/s390/multiarch/Makefile
8231 (sysdep_routines): Remove wcsncmp variants.
8232 * sysdeps/s390/Makefile (sysdep_routines): Add wcsncmp variants.
8233 * sysdeps/s390/multiarch/ifunc-impl-list.c
8234 (__libc_ifunc_impl_list): Refactor ifunc handling for wcsncmp.
8235 * sysdeps/s390/multiarch/wcsncmp-c.c: Move to ...
8236 * sysdeps/s390/wcsncmp-c.c: ... here and adjust ifunc handling.
8237 * sysdeps/s390/multiarch/wcsncmp-vx.S: Move to ...
8238 * sysdeps/s390/wcsncmp-vx.S: ... here and adjust ifunc handling.
8239 * sysdeps/s390/multiarch/wcsncmp.c: Move to ...
8240 * sysdeps/s390/wcsncmp.c: ... here and adjust ifunc handling.
8241 * sysdeps/s390/ifunc-wcsncmp.h: New file.
8242
8243 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
8244
8245 * sysdeps/s390/multiarch/Makefile
8246 (sysdep_routines): Remove wcscmp variants.
8247 * sysdeps/s390/Makefile (sysdep_routines): Add wcscmp variants.
8248 * sysdeps/s390/multiarch/ifunc-impl-list.c
8249 (__libc_ifunc_impl_list): Refactor ifunc handling for wcscmp.
8250 * sysdeps/s390/multiarch/wcscmp-c.c: Move to ...
8251 * sysdeps/s390/wcscmp-c.c: ... here and adjust ifunc handling.
8252 * sysdeps/s390/multiarch/wcscmp-vx.S: Move to ...
8253 * sysdeps/s390/wcscmp-vx.S: ... here and adjust ifunc handling.
8254 * sysdeps/s390/multiarch/wcscmp.c: Move to ...
8255 * sysdeps/s390/wcscmp.c: ... here and adjust ifunc handling.
8256 * sysdeps/s390/ifunc-wcscmp.h: New file.
8257
8258 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
8259
8260 * sysdeps/s390/multiarch/Makefile
8261 (sysdep_routines): Remove wcsncat variants.
8262 * sysdeps/s390/Makefile (sysdep_routines): Add wcsncat variants.
8263 * sysdeps/s390/multiarch/ifunc-impl-list.c
8264 (__libc_ifunc_impl_list): Refactor ifunc handling for wcsncat.
8265 * sysdeps/s390/multiarch/wcsncat-c.c: Move to ...
8266 * sysdeps/s390/wcsncat-c.c: ... here and adjust ifunc handling.
8267 * sysdeps/s390/multiarch/wcsncat-vx.S: Move to ...
8268 * sysdeps/s390/wcsncat-vx.S: ... here and adjust ifunc handling.
8269 * sysdeps/s390/multiarch/wcsncat.c: Move to ...
8270 * sysdeps/s390/wcsncat.c: ... here and adjust ifunc handling.
8271 * sysdeps/s390/ifunc-wcsncat.h: New file.
8272
8273 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
8274
8275 * sysdeps/s390/multiarch/Makefile
8276 (sysdep_routines): Remove wcscat variants.
8277 * sysdeps/s390/Makefile (sysdep_routines): Add wcscat variants.
8278 * sysdeps/s390/multiarch/ifunc-impl-list.c
8279 (__libc_ifunc_impl_list): Refactor ifunc handling for wcscat.
8280 * sysdeps/s390/multiarch/wcscat-c.c: Move to ...
8281 * sysdeps/s390/wcscat-c.c: ... here and adjust ifunc handling.
8282 * sysdeps/s390/multiarch/wcscat-vx.S: Move to ...
8283 * sysdeps/s390/wcscat-vx.S: ... here and adjust ifunc handling.
8284 * sysdeps/s390/multiarch/wcscat.c: Move to ...
8285 * sysdeps/s390/wcscat.c: ... here and adjust ifunc handling.
8286 * sysdeps/s390/ifunc-wcscat.h: New file.
8287
8288 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
8289
8290 * sysdeps/s390/multiarch/Makefile
8291 (sysdep_routines): Remove wcpncpy variants.
8292 * sysdeps/s390/Makefile (sysdep_routines): Add wcpncpy variants.
8293 * sysdeps/s390/multiarch/ifunc-impl-list.c
8294 (__libc_ifunc_impl_list): Refactor ifunc handling for wcpncpy.
8295 * sysdeps/s390/multiarch/wcpncpy-c.c: Move to ...
8296 * sysdeps/s390/wcpncpy-c.c: ... here and adjust ifunc handling.
8297 * sysdeps/s390/multiarch/wcpncpy-vx.S: Move to ...
8298 * sysdeps/s390/wcpncpy-vx.S: ... here and adjust ifunc handling.
8299 * sysdeps/s390/multiarch/wcpncpy.c: Move to ...
8300 * sysdeps/s390/wcpncpy.c: ... here and adjust ifunc handling.
8301 * sysdeps/s390/ifunc-wcpncpy.h: New file.
8302
8303 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
8304
8305 * sysdeps/s390/multiarch/Makefile
8306 (sysdep_routines): Remove wcsncpy variants.
8307 * sysdeps/s390/Makefile (sysdep_routines): Add wcsncpy variants.
8308 * sysdeps/s390/multiarch/ifunc-impl-list.c
8309 (__libc_ifunc_impl_list): Refactor ifunc handling for wcsncpy.
8310 * sysdeps/s390/multiarch/wcsncpy-c.c: Move to ...
8311 * sysdeps/s390/wcsncpy-c.c: ... here and adjust ifunc handling.
8312 * sysdeps/s390/multiarch/wcsncpy-vx.S: Move to ...
8313 * sysdeps/s390/wcsncpy-vx.S: ... here and adjust ifunc handling.
8314 * sysdeps/s390/multiarch/wcsncpy.c: Move to ...
8315 * sysdeps/s390/wcsncpy.c: ... here and adjust ifunc handling.
8316 * sysdeps/s390/ifunc-wcsncpy.h: New file.
8317
8318 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
8319
8320 * sysdeps/s390/multiarch/Makefile
8321 (sysdep_routines): Remove wcpcpy variants.
8322 * sysdeps/s390/Makefile (sysdep_routines): Add wcpcpy variants.
8323 * sysdeps/s390/multiarch/ifunc-impl-list.c
8324 (__libc_ifunc_impl_list): Refactor ifunc handling for wcpcpy.
8325 * sysdeps/s390/multiarch/wcpcpy-c.c: Move to ...
8326 * sysdeps/s390/wcpcpy-c.c: ... here and adjust ifunc handling.
8327 * sysdeps/s390/multiarch/wcpcpy-vx.S: Move to ...
8328 * sysdeps/s390/wcpcpy-vx.S: ... here and adjust ifunc handling.
8329 * sysdeps/s390/multiarch/wcpcpy.c: Move to ...
8330 * sysdeps/s390/wcpcpy.c: ... here and adjust ifunc handling.
8331 * sysdeps/s390/ifunc-wcpcpy.h: New file.
8332
8333 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
8334
8335 * sysdeps/s390/multiarch/Makefile
8336 (sysdep_routines): Remove wcscpy variants.
8337 * sysdeps/s390/Makefile (sysdep_routines): Add wcscpy variants.
8338 * sysdeps/s390/multiarch/ifunc-impl-list.c
8339 (__libc_ifunc_impl_list): Refactor ifunc handling for wcscpy.
8340 * sysdeps/s390/multiarch/wcscpy-c.c: Move to ...
8341 * sysdeps/s390/wcscpy-c.c: ... here and adjust ifunc handling.
8342 * sysdeps/s390/multiarch/wcscpy-vx.S: Move to ...
8343 * sysdeps/s390/wcscpy-vx.S: ... here and adjust ifunc handling.
8344 * sysdeps/s390/multiarch/wcscpy.c: Move to ...
8345 * sysdeps/s390/wcscpy.c: ... here and adjust ifunc handling.
8346 * sysdeps/s390/ifunc-wcscpy.h: New file.
8347
8348 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
8349
8350 * sysdeps/s390/multiarch/Makefile
8351 (sysdep_routines): Remove wcsnlen variants.
8352 * sysdeps/s390/Makefile (sysdep_routines): Add wcsnlen variants.
8353 * sysdeps/s390/multiarch/ifunc-impl-list.c
8354 (__libc_ifunc_impl_list): Refactor ifunc handling for wcsnlen.
8355 * sysdeps/s390/multiarch/wcsnlen-c.c: Move to ...
8356 * sysdeps/s390/wcsnlen-c.c: ... here and adjust ifunc handling.
8357 * sysdeps/s390/multiarch/wcsnlen-vx.S: Move to ...
8358 * sysdeps/s390/wcsnlen-vx.S: ... here and adjust ifunc handling.
8359 * sysdeps/s390/multiarch/wcsnlen.c: Move to ...
8360 * sysdeps/s390/wcsnlen.c: ... here and adjust ifunc handling.
8361 * sysdeps/s390/ifunc-wcsnlen.h: New file.
8362
8363 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
8364
8365 * sysdeps/s390/multiarch/Makefile
8366 (sysdep_routines): Remove wcslen variants.
8367 * sysdeps/s390/Makefile (sysdep_routines): Add wcslen variants.
8368 * sysdeps/s390/multiarch/ifunc-impl-list.c
8369 (__libc_ifunc_impl_list): Refactor ifunc handling for wcslen.
8370 * sysdeps/s390/multiarch/wcslen-c.c: Move to ...
8371 * sysdeps/s390/wcslen-c.c: ... here and adjust ifunc handling.
8372 * sysdeps/s390/multiarch/wcslen-vx.S: Move to ...
8373 * sysdeps/s390/wcslen-vx.S: ... here and adjust ifunc handling.
8374 * sysdeps/s390/multiarch/wcslen.c: Move to ...
8375 * sysdeps/s390/wcslen.c: ... here and adjust ifunc handling.
8376 * sysdeps/s390/ifunc-wcslen.h: New file.
8377
8378 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
8379
8380 * sysdeps/s390/multiarch/Makefile
8381 (sysdep_routines): Remove memrchr variants.
8382 * sysdeps/s390/Makefile (sysdep_routines): Add memrchr variants.
8383 * sysdeps/s390/multiarch/ifunc-impl-list.c
8384 (__libc_ifunc_impl_list): Refactor ifunc handling for memrchr.
8385 * sysdeps/s390/multiarch/memrchr-c.c: Move to ...
8386 * sysdeps/s390/memrchr-c.c: ... here and adjust ifunc handling.
8387 * sysdeps/s390/multiarch/memrchr-vx.S: Move to ...
8388 * sysdeps/s390/memrchr-vx.S: ... here and adjust ifunc handling.
8389 * sysdeps/s390/multiarch/memrchr.c: Move to ...
8390 * sysdeps/s390/memrchr.c: ... here and adjust ifunc handling.
8391 * sysdeps/s390/ifunc-memrchr.h: New file.
8392
8393 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
8394
8395 * sysdeps/s390/multiarch/Makefile
8396 (sysdep_routines): Remove memccpy variants.
8397 * sysdeps/s390/Makefile (sysdep_routines): Add memccpy variants.
8398 * sysdeps/s390/multiarch/ifunc-impl-list.c
8399 (__libc_ifunc_impl_list): Refactor ifunc handling for memccpy.
8400 * sysdeps/s390/multiarch/memccpy-c.c: Move to ...
8401 * sysdeps/s390/memccpy-c.c: ... here and adjust ifunc handling.
8402 * sysdeps/s390/multiarch/memccpy-vx.S: Move to ...
8403 * sysdeps/s390/memccpy-vx.S: ... here and adjust ifunc handling.
8404 * sysdeps/s390/multiarch/memccpy.c: Move to ...
8405 * sysdeps/s390/memccpy.c: ... here and adjust ifunc handling.
8406 * sysdeps/s390/ifunc-memccpy.h: New file.
8407
8408 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
8409
8410 * sysdeps/s390/multiarch/Makefile
8411 (sysdep_routines): Remove rawmemchr variants.
8412 * sysdeps/s390/Makefile (sysdep_routines): Add rawmemchr variants.
8413 * sysdeps/s390/multiarch/ifunc-impl-list.c
8414 (__libc_ifunc_impl_list): Refactor ifunc handling for rawmemchr.
8415 * sysdeps/s390/multiarch/rawmemchr-c.c: Move to ...
8416 * sysdeps/s390/rawmemchr-c.c: ... here and adjust ifunc handling.
8417 * sysdeps/s390/multiarch/rawmemchr-vx.S: Move to ...
8418 * sysdeps/s390/rawmemchr-vx.S: ... here and adjust ifunc handling.
8419 * sysdeps/s390/multiarch/rawmemchr.c: Move to ...
8420 * sysdeps/s390/rawmemchr.c: ... here and adjust ifunc handling.
8421 * sysdeps/s390/ifunc-rawmemchr.h: New file.
8422
8423 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
8424
8425 * sysdeps/s390/multiarch/Makefile
8426 (sysdep_routines): Remove memchr variants.
8427 * sysdeps/s390/Makefile (sysdep_routines): Add memchr variants.
8428 * sysdeps/s390/multiarch/ifunc-impl-list.c
8429 (__libc_ifunc_impl_list): Refactor ifunc handling for memchr.
8430 * sysdeps/s390/multiarch/memchr-vx.S: Move to ...
8431 * sysdeps/s390/memchr-vx.S: ... here and adjust ifunc handling.
8432 * sysdeps/s390/multiarch/memchr.c: Move to ...
8433 * sysdeps/s390/memchr.c: ... here and adjust ifunc handling.
8434 * sysdeps/s390/ifunc-memchr.h: New file.
8435 * sysdeps/s390/s390-64/memchr.S: Move to ...
8436 * sysdeps/s390/memchr-z900.S: ... here and adjust to be usable
8437 for 31/64bit and ifunc handling.
8438 * sysdeps/s390/s390-32/multiarch/memchr.c: Delete file.
8439 * sysdeps/s390/s390-64/multiarch/memchr.c: Likewise.
8440 * sysdeps/s390/s390-32/memchr.S: Likewise.
8441
8442 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
8443
8444 * sysdeps/s390/multiarch/Makefile
8445 (sysdep_routines): Remove strcspn variants.
8446 * sysdeps/s390/Makefile (sysdep_routines): Add strcspn variants.
8447 * sysdeps/s390/multiarch/ifunc-impl-list.c
8448 (__libc_ifunc_impl_list): Refactor ifunc handling for strcspn.
8449 * sysdeps/s390/multiarch/strcspn-c.c: Move to ...
8450 * sysdeps/s390/strcspn-c.c: ... here and adjust ifunc handling.
8451 * sysdeps/s390/multiarch/strcspn-vx.S: Move to ...
8452 * sysdeps/s390/strcspn-vx.S: ... here and adjust ifunc handling.
8453 * sysdeps/s390/multiarch/strcspn.c: Move to ...
8454 * sysdeps/s390/strcspn.c: ... here and adjust ifunc handling.
8455 * sysdeps/s390/ifunc-strcspn.h: New file.
8456
8457 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
8458
8459 * sysdeps/s390/multiarch/Makefile
8460 (sysdep_routines): Remove strpbrk variants.
8461 * sysdeps/s390/Makefile (sysdep_routines): Add strpbrk variants.
8462 * sysdeps/s390/multiarch/ifunc-impl-list.c
8463 (__libc_ifunc_impl_list): Refactor ifunc handling for strpbrk.
8464 * sysdeps/s390/multiarch/strpbrk-c.c: Move to ...
8465 * sysdeps/s390/strpbrk-c.c: ... here and adjust ifunc handling.
8466 * sysdeps/s390/multiarch/strpbrk-vx.S: Move to ...
8467 * sysdeps/s390/strpbrk-vx.S: ... here and adjust ifunc handling.
8468 * sysdeps/s390/multiarch/strpbrk.c: Move to ...
8469 * sysdeps/s390/strpbrk.c: ... here and adjust ifunc handling.
8470 * sysdeps/s390/ifunc-strpbrk.h: New file.
8471
8472 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
8473
8474 * sysdeps/s390/multiarch/Makefile
8475 (sysdep_routines): Remove strspn variants.
8476 * sysdeps/s390/Makefile (sysdep_routines): Add strspn variants.
8477 * sysdeps/s390/multiarch/ifunc-impl-list.c
8478 (__libc_ifunc_impl_list): Refactor ifunc handling for strspn.
8479 * sysdeps/s390/multiarch/strspn-c.c: Move to ...
8480 * sysdeps/s390/strspn-c.c: ... here and adjust ifunc handling.
8481 * sysdeps/s390/multiarch/strspn-vx.S: Move to ...
8482 * sysdeps/s390/strspn-vx.S: ... here and adjust ifunc handling.
8483 * sysdeps/s390/multiarch/strspn.c: Move to ...
8484 * sysdeps/s390/strspn.c: ... here and adjust ifunc handling.
8485 * sysdeps/s390/ifunc-strspn.h: New file.
8486
8487 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
8488
8489 * sysdeps/s390/multiarch/Makefile
8490 (sysdep_routines): Remove strrchr variants.
8491 * sysdeps/s390/Makefile (sysdep_routines): Add strrchr variants.
8492 * sysdeps/s390/multiarch/ifunc-impl-list.c
8493 (__libc_ifunc_impl_list): Refactor ifunc handling for strrchr.
8494 * sysdeps/s390/multiarch/strrchr-c.c: Move to ...
8495 * sysdeps/s390/strrchr-c.c: ... here and adjust ifunc handling.
8496 * sysdeps/s390/multiarch/strrchr-vx.S: Move to ...
8497 * sysdeps/s390/strrchr-vx.S: ... here and adjust ifunc handling.
8498 * sysdeps/s390/multiarch/strrchr.c: Move to ...
8499 * sysdeps/s390/strrchr.c: ... here and adjust ifunc handling.
8500 * sysdeps/s390/ifunc-strrchr.h: New file.
8501
8502 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
8503
8504 * sysdeps/s390/multiarch/Makefile
8505 (sysdep_routines): Remove strchrnul variants.
8506 * sysdeps/s390/Makefile (sysdep_routines): Add strchrnul variants.
8507 * sysdeps/s390/multiarch/ifunc-impl-list.c
8508 (__libc_ifunc_impl_list): Refactor ifunc handling for strchrnul.
8509 * sysdeps/s390/multiarch/strchrnul-c.c: Move to ...
8510 * sysdeps/s390/strchrnul-c.c: ... here and adjust ifunc handling.
8511 * sysdeps/s390/multiarch/strchrnul-vx.S: Move to ...
8512 * sysdeps/s390/strchrnul-vx.S: ... here and adjust ifunc handling.
8513 * sysdeps/s390/multiarch/strchrnul.c: Move to ...
8514 * sysdeps/s390/strchrnul.c: ... here and adjust ifunc handling.
8515 * sysdeps/s390/ifunc-strchrnul.h: New file.
8516
8517 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
8518
8519 * sysdeps/s390/multiarch/Makefile
8520 (sysdep_routines): Remove strchr variants.
8521 * sysdeps/s390/Makefile (sysdep_routines): Add strchr variants.
8522 * sysdeps/s390/multiarch/ifunc-impl-list.c
8523 (__libc_ifunc_impl_list): Refactor ifunc handling for strchr.
8524 * sysdeps/s390/multiarch/strchr-c.c: Move to ...
8525 * sysdeps/s390/strchr-c.c: ... here and adjust ifunc handling.
8526 * sysdeps/s390/multiarch/strchr-vx.S: Move to ...
8527 * sysdeps/s390/strchr-vx.S: ... here and adjust ifunc handling.
8528 * sysdeps/s390/multiarch/strchr.c: Move to ...
8529 * sysdeps/s390/strchr.c: ... here and adjust ifunc handling.
8530 * sysdeps/s390/ifunc-strchr.h: New file.
8531
8532 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
8533
8534 * sysdeps/s390/multiarch/Makefile
8535 (sysdep_routines): Remove strncmp variants.
8536 * sysdeps/s390/Makefile (sysdep_routines): Add strncmp variants.
8537 * sysdeps/s390/multiarch/ifunc-impl-list.c
8538 (__libc_ifunc_impl_list): Refactor ifunc handling for strncmp.
8539 * sysdeps/s390/multiarch/strncmp-c.c: Move to ...
8540 * sysdeps/s390/strncmp-c.c: ... here and adjust ifunc handling.
8541 * sysdeps/s390/multiarch/strncmp-vx.S: Move to ...
8542 * sysdeps/s390/strncmp-vx.S: ... here and adjust ifunc handling.
8543 * sysdeps/s390/multiarch/strncmp.c: Move to ...
8544 * sysdeps/s390/strncmp.c: ... here and adjust ifunc handling.
8545 * sysdeps/s390/ifunc-strncmp.h: New file.
8546
8547 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
8548
8549 * sysdeps/s390/multiarch/Makefile
8550 (sysdep_routines): Remove strcmp variants.
8551 * sysdeps/s390/Makefile (sysdep_routines): Add strcmp variants.
8552 * sysdeps/s390/multiarch/ifunc-impl-list.c
8553 (__libc_ifunc_impl_list): Refactor ifunc handling for strcmp.
8554 * sysdeps/s390/multiarch/strcmp-vx.S: Move to ...
8555 * sysdeps/s390/strcmp-vx.S: ... here and adjust ifunc handling.
8556 * sysdeps/s390/multiarch/strcmp.c: Move to ...
8557 * sysdeps/s390/strcmp.c: ... here and adjust ifunc handling.
8558 * sysdeps/s390/ifunc-strcmp.h: New file.
8559 * sysdeps/s390/s390-64/strcmp.S: Move to ...
8560 * sysdeps/s390/strcmp-z900.S: ... here and adjust to be usable
8561 for 31/64bit and ifunc handling.
8562 * sysdeps/s390/s390-32/multiarch/strcmp.c: Delete file.
8563 * sysdeps/s390/s390-64/multiarch/strcmp.c: Likewise.
8564 * sysdeps/s390/s390-32/strcmp.S: Likewise.
8565
8566 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
8567
8568 * sysdeps/s390/multiarch/Makefile
8569 (sysdep_routines): Remove strncat variants.
8570 * sysdeps/s390/Makefile (sysdep_routines): Add strncat variants.
8571 * sysdeps/s390/multiarch/ifunc-impl-list.c
8572 (__libc_ifunc_impl_list): Refactor ifunc handling for strncat.
8573 * sysdeps/s390/multiarch/strncat-c.c: Move to ...
8574 * sysdeps/s390/strncat-c.c: ... here and adjust ifunc handling.
8575 * sysdeps/s390/multiarch/strncat-vx.S: Move to ...
8576 * sysdeps/s390/strncat-vx.S: ... here and adjust ifunc handling.
8577 * sysdeps/s390/multiarch/strncat.c: Move to ...
8578 * sysdeps/s390/strncat.c: ... here and adjust ifunc handling.
8579 * sysdeps/s390/ifunc-strncat.h: New file.
8580
8581 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
8582
8583 * sysdeps/s390/multiarch/Makefile
8584 (sysdep_routines): Remove strcat variants.
8585 * sysdeps/s390/Makefile (sysdep_routines): Add strcat variants.
8586 * sysdeps/s390/multiarch/ifunc-impl-list.c
8587 (__libc_ifunc_impl_list): Refactor ifunc handling for strcat.
8588 * sysdeps/s390/multiarch/strcat-c.c: Move to ...
8589 * sysdeps/s390/strcat-c.c: ... here and adjust ifunc handling.
8590 * sysdeps/s390/multiarch/strcat-vx.S: Move to ...
8591 * sysdeps/s390/strcat-vx.S: ... here and adjust ifunc handling.
8592 * sysdeps/s390/multiarch/strcat.c: Move to ...
8593 * sysdeps/s390/strcat.c: ... here and adjust ifunc handling.
8594 * sysdeps/s390/ifunc-strcat.h: New file.
8595
8596 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
8597
8598 * sysdeps/s390/multiarch/Makefile
8599 (sysdep_routines): Remove stpncpy variants.
8600 * sysdeps/s390/Makefile (sysdep_routines): Add stpncpy variants.
8601 * sysdeps/s390/multiarch/ifunc-impl-list.c
8602 (__libc_ifunc_impl_list): Refactor ifunc handling for stpncpy.
8603 * sysdeps/s390/multiarch/stpncpy-c.c: Move to ...
8604 * sysdeps/s390/stpncpy-c.c: ... here and adjust ifunc handling.
8605 * sysdeps/s390/multiarch/stpncpy-vx.S: Move to ...
8606 * sysdeps/s390/stpncpy-vx.S: ... here and adjust ifunc handling.
8607 * sysdeps/s390/multiarch/stpncpy.c: Move to ...
8608 * sysdeps/s390/stpncpy.c: ... here and adjust ifunc handling.
8609 * sysdeps/s390/ifunc-stpncpy.h: New file.
8610
8611 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
8612
8613 * sysdeps/s390/multiarch/Makefile
8614 (sysdep_routines): Remove strncpy variants.
8615 * sysdeps/s390/Makefile (sysdep_routines): Add strncpy variants.
8616 * sysdeps/s390/multiarch/ifunc-impl-list.c
8617 (__libc_ifunc_impl_list): Refactor ifunc handling for strncpy.
8618 * sysdeps/s390/multiarch/strncpy-vx.S: Move to ...
8619 * sysdeps/s390/strncpy-vx.S: ... here and adjust ifunc handling.
8620 * sysdeps/s390/multiarch/strncpy.c: Move to ...
8621 * sysdeps/s390/strncpy.c: ... here and adjust ifunc handling.
8622 * sysdeps/s390/ifunc-strncpy.h: New file.
8623 * sysdeps/s390/s390-64/strncpy.S: Move to ...
8624 * sysdeps/s390/s390-64/strncpy-z900.S: ... here
8625 and adjust ifunc handling.
8626 * sysdeps/s390/s390-32/strncpy.S: Move to ...
8627 * sysdeps/s390/s390-32/strncpy-z900.S: ... here
8628 and adjust ifunc handling.
8629 * sysdeps/s390/s390-32/multiarch/strncpy.c: Delete file.
8630 * sysdeps/s390/s390-64/multiarch/strncpy.c: Likewise.
8631
8632 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
8633
8634 * sysdeps/s390/multiarch/Makefile
8635 (sysdep_routines): Remove stpcpy variants.
8636 * sysdeps/s390/Makefile (sysdep_routines): Add stpcpy variants.
8637 * sysdeps/s390/multiarch/ifunc-impl-list.c
8638 (__libc_ifunc_impl_list): Refactor ifunc handling for stpcpy.
8639 * sysdeps/s390/multiarch/stpcpy-c.c: Move to ...
8640 * sysdeps/s390/stpcpy-c.c: ... here and adjust ifunc handling.
8641 * sysdeps/s390/multiarch/stpcpy-vx.S: Move to ...
8642 * sysdeps/s390/stpcpy-vx.S: ... here and adjust ifunc handling.
8643 * sysdeps/s390/multiarch/stpcpy.c: Move to ...
8644 * sysdeps/s390/stpcpy.c: ... here and adjust ifunc handling.
8645 * sysdeps/s390/ifunc-stpcpy.h: New file.
8646
8647 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
8648
8649 * sysdeps/s390/multiarch/Makefile
8650 (sysdep_routines): Remove strcpy variants.
8651 * sysdeps/s390/Makefile (sysdep_routines): Add strcpy variants.
8652 * sysdeps/s390/multiarch/ifunc-impl-list.c
8653 (__libc_ifunc_impl_list): Refactor ifunc handling for strcpy.
8654 * sysdeps/s390/multiarch/strcpy-vx.S: Move to ...
8655 * sysdeps/s390/strcpy-vx.S: ... here and adjust ifunc handling.
8656 * sysdeps/s390/multiarch/strcpy.c: Move to ...
8657 * sysdeps/s390/strcpy.c: ... here and adjust ifunc handling.
8658 * sysdeps/s390/ifunc-strcpy.h: New file.
8659 * sysdeps/s390/s390-64/strcpy.S: Move to ...
8660 * sysdeps/s390/strcpy-z900.S: ... here and adjust to be usable
8661 for 31/64bit and ifunc handling.
8662 * sysdeps/s390/s390-32/multiarch/strcpy.c: Delete file.
8663 * sysdeps/s390/s390-64/multiarch/strcpy.c: Likewise.
8664 * sysdeps/s390/s390-32/strcpy.S: Likewise.
8665
8666 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
8667
8668 * sysdeps/s390/multiarch/Makefile
8669 (sysdep_routines): Remove strnlen variants.
8670 * sysdeps/s390/Makefile (sysdep_routines): Add strnlen variants.
8671 * sysdeps/s390/multiarch/ifunc-impl-list.c
8672 (__libc_ifunc_impl_list): Refactor ifunc handling for strnlen.
8673 * sysdeps/s390/multiarch/strnlen-c.c: Move to ...
8674 * sysdeps/s390/strnlen-c.c: ... here and adjust ifunc handling.
8675 * sysdeps/s390/multiarch/strnlen-vx.S: Move to ...
8676 * sysdeps/s390/strnlen-vx.S: ... here and adjust ifunc handling.
8677 * sysdeps/s390/multiarch/strnlen.c: Move to ...
8678 * sysdeps/s390/strnlen.c: ... here and adjust ifunc handling.
8679 * sysdeps/s390/ifunc-strnlen.h: New file.
8680
8681 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
8682
8683 * sysdeps/s390/multiarch/Makefile
8684 (sysdep_routines): Remove strlen variants.
8685 * sysdeps/s390/Makefile (sysdep_routines): Add strlen variants.
8686 * sysdeps/s390/multiarch/ifunc-impl-list.c
8687 (__libc_ifunc_impl_list): Refactor ifunc handling for strlen.
8688 * sysdeps/s390/multiarch/strlen-c.c: Move to ...
8689 * sysdeps/s390/strlen-c.c: ... here and adjust ifunc handling.
8690 * sysdeps/s390/multiarch/strlen-vx.S: Move to ...
8691 * sysdeps/s390/strlen-vx.S: ... here and adjust ifunc handling.
8692 * sysdeps/s390/multiarch/strlen.c: Move to ...
8693 * sysdeps/s390/strlen.c: ... here and adjust ifunc handling.
8694 * sysdeps/s390/ifunc-strlen.h: New file.
8695
8696 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
8697
8698 * sysdeps/s390/Makefile (sysdep_routines): Add memmem variants.
8699 * sysdeps/s390/multiarch/ifunc-impl-list.c
8700 (__libc_ifunc_impl_list): Add ifunc variants for memmem.
8701 * sysdeps/s390/ifunc-memmem.h: New file.
8702 * sysdeps/s390/memmem.c: Likewise.
8703 * sysdeps/s390/memmem-c.c: Likewise.
8704 * sysdeps/s390/memmem-vx.c: Likewise.
8705
8706 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
8707
8708 * sysdeps/s390/Makefile (sysdep_routines): Add strstr variants.
8709 * sysdeps/s390/multiarch/ifunc-impl-list.c
8710 (__libc_ifunc_impl_list): Add ifunc variants for strstr.
8711 * sysdeps/s390/ifunc-strstr.h: New file.
8712 * sysdeps/s390/strstr.c: Likewise.
8713 * sysdeps/s390/strstr-c.c: Likewise.
8714 * sysdeps/s390/strstr-vx.c: Likewise.
8715
8716 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
8717
8718 * sysdeps/s390/Makefile (sysdep_routines): Add memmove-c.
8719 * sysdeps/s390/ifunc-memcpy.h (HAVE_MEMMOVE_IFUNC,
8720 HAVE_MEMMOVE_IFUNC_AND_VX_SUPPORT, MEMMOVE_DEFAULT,
8721 HAVE_MEMMOVE_C, MEMMOVE_C, HAVE_MEMMOVE_Z13, MEMMOVE_Z13):
8722 New defines.
8723 * sysdeps/s390/memcpy-z900.S: Add z13 memmove implementation.
8724 * sysdeps/s390/memmove-c.c: New file.
8725 * sysdeps/s390/memmove.c: Likewise.
8726 * sysdeps/s390/multiarch/ifunc-impl-list.c
8727 (__libc_ifunc_impl_list): Add ifunc variants for memmove.
8728
8729 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
8730
8731 * config.h.in (HAVE_S390_MIN_Z13_ZARCH_ASM_SUPPORT): New undefine.
8732 * sysdeps/s390/configure.ac: Add check for z13 support.
8733 * sysdeps/s390/configure: Regenerated.
8734
8735 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
8736
8737 * sysdeps/s390/memcopy.h: New file.
8738
8739 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
8740
8741 * sysdeps/s390/s390-32/bcopy.S: Remove.
8742 * sysdeps/s390/s390-64/bcopy.S: Likewise.
8743
8744 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
8745
8746 * sysdeps/s390/ifunc-memcpy.h: New File.
8747 * sysdeps/s390/memcpy.S: Move to ...
8748 * sysdeps/s390/memcpy-z900.S ... here.
8749 Move implementations from memcpy-s390x.s to here.
8750 * sysdeps/s390/multiarch/memcpy-s390x.S: Delete File.
8751 * sysdeps/s390/multiarch/Makefile (sysdep_routines):
8752 Remove memcpy/mempcpy variants.
8753 * sysdeps/s390/Makefile (sysdep_routines):
8754 Add memcpy/mempcpy variants.
8755 * sysdeps/s390/multiarch/ifunc-impl-list.c
8756 (__libc_ifunc_impl_list): Adjust ifunc variants for
8757 memcpy and mempcpy.
8758 * sysdeps/s390/multiarch/memcpy.c: Move ifunc resolver
8759 to ...
8760 * sysdeps/s390/memcpy.c: ... here.
8761 Adjust ifunc variants for memcpy.
8762 * sysdeps/s390/multiarch/mempcpy.c: Move to ...
8763 * sysdeps/s390/mempcpy.c: ... here.
8764 Adjust ifunc variants for mempcpy.
8765 * sysdeps/s390/mempcpy.S: Delete file.
8766
8767 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
8768
8769 * sysdeps/s390/s390-64/memcpy.S: Move to ...
8770 * sysdeps/s390/memcpy.S: ... here.
8771 Adjust to be usable for 31/64bit.
8772 * sysdeps/s390/s390-32/memcpy.S: Delete File.
8773 * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add memcpy.
8774 * sysdeps/s390/s390-32/multiarch/Makefile: Delete file.
8775 * sysdeps/s390/s390-64/multiarch/Makefile: Likewise.
8776 * sysdeps/s390/s390-64/multiarch/memcpy-s390x.S: Move to ...
8777 * sysdeps/s390/multiarch/memcpy-s390x.S: ... here.
8778 Adjust to be usable for 31/64bit.
8779 * sysdeps/s390/s390-32/multiarch/memcpy-s390.S: Delete File.
8780 * sysdeps/s390/s390-64/multiarch/memcpy.c: Move to ...
8781 * sysdeps/s390/multiarch/memcpy.c: ... here.
8782 * sysdeps/s390/s390-32/multiarch/memcpy.c: Delete File.
8783
8784 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
8785
8786 * sysdeps/s390/ifunc-memcmp.h: New File.
8787 * sysdeps/s390/memcmp.S: Move to ...
8788 * sysdeps/s390/memcmp-z900.S ... here.
8789 Move implementations from memcmp-s390x.s to here.
8790 * sysdeps/s390/multiarch/memcmp-s390x.S: Delete File.
8791 * sysdeps/s390/multiarch/Makefile (sysdep_routines):
8792 Remove memcmp variants.
8793 * sysdeps/s390/Makefile (sysdep_routines):
8794 Add memcmp variants.
8795 * sysdeps/s390/multiarch/ifunc-impl-list.c
8796 (__libc_ifunc_impl_list): Adjust ifunc variants for
8797 memcmp.
8798 * sysdeps/s390/multiarch/memcmp.c: Move ifunc resolver
8799 to ...
8800 * sysdeps/s390/memcmp.c: ... here.
8801 Adjust ifunc variants for memcmp.
8802
8803 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
8804
8805 * sysdeps/s390/s390-64/memcmp.S: Move to ...
8806 * sysdeps/s390/memcmp.S: ... here.
8807 Adjust to be usable for 31/64bit.
8808 * sysdeps/s390/s390-32/memcmp.S: Delete File.
8809 * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add memcmp.
8810 * sysdeps/s390/s390-32/multiarch/Makefile (sysdep_routines):
8811 Remove memcmp.
8812 * sysdeps/s390/s390-64/multiarch/Makefile: Likewise.
8813 * sysdeps/s390/s390-64/multiarch/memcmp-s390x.S: Move to ...
8814 * sysdeps/s390/multiarch/memcmp-s390x.S: ... here.
8815 Adjust to be usable for 31/64bit.
8816 * sysdeps/s390/s390-32/multiarch/memcmp-s390.S: Delete File.
8817 * sysdeps/s390/s390-64/multiarch/memcmp.c: Move to ...
8818 * sysdeps/s390/multiarch/memcmp.c: ... here.
8819 * sysdeps/s390/s390-32/multiarch/memcmp.c: Delete File.
8820
8821 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
8822
8823 * sysdeps/s390/s390-32/bzero.S: Delete file.
8824 * sysdeps/s390/s390-64/bzero.S: Likewise.
8825 * sysdeps/s390/Makefile (sysdep_routines): Add bzero.
8826 * sysdeps/s390/bzero.c: New file.
8827 * sysdeps/s390/memset-z900.S: Add bzero entry points.
8828 * sysdeps/s390/ifunc-memset.h: Add bzero function macros.
8829 * sysdeps/s390/multiarch/ifunc-impl-list.c
8830 (__libc_ifunc_impl_list): Add bzero ifunc variants.
8831
8832 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
8833
8834 * sysdeps/s390/ifunc-memset.h: New File.
8835 * sysdeps/s390/memset.S: Move to ...
8836 * sysdeps/s390/memset-z900.S ... here.
8837 Move implementations from memset-s390x.s to here.
8838 * sysdeps/s390/multiarch/memset-s390x.S: Delete File.
8839 * sysdeps/s390/multiarch/Makefile (sysdep_routines):
8840 Remove memset variants.
8841 * sysdeps/s390/Makefile (sysdep_routines):
8842 Add memset variants.
8843 * sysdeps/s390/multiarch/ifunc-impl-list.c
8844 (__libc_ifunc_impl_list): Adjust ifunc variants for
8845 memset.
8846 * sysdeps/s390/multiarch/memset.c: Move ifunc resolver
8847 to ...
8848 * sysdeps/s390/memset.c: ... here.
8849 Adjust ifunc variants for memset.
8850
8851 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
8852
8853 * sysdeps/s390/s390-64/memset.S: Move to ...
8854 * sysdeps/s390/memset.S: ... here.
8855 Adjust to be usable for 31/64bit.
8856 * sysdeps/s390/s390-32/memset.S: Delete File.
8857 * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add memset.
8858 * sysdeps/s390/s390-32/multiarch/Makefile (sysdep_routines):
8859 Remove memset.
8860 * sysdeps/s390/s390-64/multiarch/Makefile: Likewise.
8861 * sysdeps/s390/s390-64/multiarch/memset-s390x.S: Move to ...
8862 * sysdeps/s390/multiarch/memset-s390x.S: ... here.
8863 Adjust to be usable for 31/64bit.
8864 * sysdeps/s390/s390-32/multiarch/memset-s390.S: Delete File.
8865 * sysdeps/s390/s390-64/multiarch/memset.c: Move to ...
8866 * sysdeps/s390/multiarch/memset.c: ... here.
8867 * sysdeps/s390/s390-32/multiarch/memset.c: Delete File.
8868
8869 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
8870
8871 * sysdeps/s390/multiarch/ifunc-resolve.h
8872 (s390_libc_ifunc_init, s390_libc_ifunc,
8873 s390_vx_libc_ifunc2_redirected): Use hwcap instead of dl_hwcap.
8874
8875 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
8876
8877 * config.h.in (HAVE_S390_MIN_Z10_ZARCH_ASM_SUPPORT): New undefine.
8878 * sysdeps/s390/configure.ac: Add check for z10 support.
8879 * sysdeps/s390/configure: Regenerated.
8880
8881 2018-12-18 H.J. Lu <hongjiu.lu@intel.com>
8882
8883 * sysdeps/i386/atomic-machine.h: Merged with ...
8884 * sysdeps/x86_64/atomic-machine.h: To ...
8885 * sysdeps/x86/atomic-machine.h: This. New file.
8886
8887 2018-12-18 Florian Weimer <fweimer@redhat.com>
8888
8889 Rewrite locale/gen-translit.pl in Python.
8890 * locale/Makefile (generated): Add C-translit.h.
8891 (before-compile): Add $(objpfx)C-translit.h.
8892 (C-translit.h): Move to $(objpfx). Create target directory.
8893 Build using Python script.
8894 * locale/gen-translit.py: New file.
8895 * locale/gen-translit.pl: Remove file.
8896 * locale/C-translit.h.in: Change comment character to '#' for
8897 easier parsing without a C preprocessor.
8898 * locale/C-translit.h: Remove generated file.
8899 * manual/install.texi (Tools for Compilation): Do not mention
8900 C-translit.h.
8901 * scripts/build-many-glibcs.py (Context.fix_glibc_timestamps):
8902 Remove locale/C-translit.h.
8903 * scripts/update-copyrights: Likewise.
8904 * INSTALL: Regenerate.
8905
8906 2018-12-18 Florian Weimer <fweimer@redhat.com>
8907
8908 [BZ #23995]
8909 * localedata/locales/bi_VU: Remove executable bit from file.
8910
8911 2018-12-17 Albert ARIBAUD <albert.aribaud@3adev.fr>
8912
8913 * include/time.h
8914 (__localtime64): Add.
8915 * manual/maint.texi: Document Y2038 symbol handling.
8916 * time/localtime.c
8917 (__localtime64): Add.
8918 [__TIMESIZE != 64] (__localtime): Turn into a wrapper.
8919
8920 2018-12-17 Joseph Myers <joseph@codesourcery.com>
8921
8922 * sysdeps/unix/sysv/linux/ia64/sysdep.h (ASM_CLOBBERS_6_COMMON):
8923 Do not clobber r12.
8924
8925 * scripts/glibcextract.py (compare_macro_consts): Take parameters
8926 to allow extra macros from first or second sources.
8927 * sysdeps/unix/sysv/linux/tst-mman-consts.py: New file.
8928 * sysdeps/unix/sysv/linux/Makefile [$(subdir) = misc]
8929 (tests-special): Add $(objpfx)tst-mman-consts.out.
8930 ($(objpfx)tst-mman-consts.out): New makefile target.
8931
8932 2018-12-17 Mao Han <han_mao@c-sky.com>
8933
8934 * sysdeps/unix/sysv/linux/Makefile: Add statx_cp.c.
8935 * sysdeps/unix/sysv/linux/fxstat64.c: Add conditionals for kernel
8936 without stat64 system call support.
8937 * sysdeps/unix/sysv/linux/fxstatat64.c: Likewise.
8938 * sysdeps/unix/sysv/linux/generic/wordsize-32/fxstat.c: Likewise.
8939 * sysdeps/unix/sysv/linux/generic/wordsize-32/fxstatat.c: Likewise.
8940 * sysdeps/unix/sysv/linux/generic/wordsize-32/lxstat.c: Likewise.
8941 * sysdeps/unix/sysv/linux/generic/wordsize-32/lxstat64.c: Likewise.
8942 * sysdeps/unix/sysv/linux/generic/wordsize-32/xstat.c: Likewise.
8943 * sysdeps/unix/sysv/linux/generic/wordsize-32/xstat64.c: Likewise.
8944 * sysdeps/unix/sysv/linux/mips/mips64/statx_cp.c: New file.
8945 * sysdeps/unix/sysv/linux/statx_cp.c: Likewise.
8946 * sysdeps/unix/sysv/linux/statx_cp.h: Likewise.
8947 * sysdeps/unix/sysv/linux/wordsize-64/statx_cp.c: Likewise.
8948
8949 2018-12-15 Paul Eggert <eggert@cs.ucla.edu>
8950
8951 regex: fix storage-exhaustion error
8952 [BZ #18040]
8953 * posix/regexec.c (get_subexp):
8954 Do not continue if storage is exhausted.
8955
8956 2018-12-15 Assaf Gordon <assafgordon@gmail.com>
8957
8958 regex: fix heap-use-after-free error
8959 [BZ #18040]
8960 Problem reported by Saito Takaaki <tails.saito@gmail.com> in
8961 https://debbugs.gnu.org/32592
8962 Call stack get_subexp->get_subexp_sub->clean_state_log_if_needed may
8963 call extend_buffers which reallocates the re_string_t internal buffer.
8964 Local variable 'buf' was not updated in such case, resulting in
8965 use-after-free.
8966 * posix/regexec.c (get_subexp): Update 'buf' after call to
8967 get_subexp_sub.
8968
8969 2018-12-15 Florian Weimer <fweimer@redhat.com>
8970
8971 * support/blob_repeat.c (check_mul_overflow_size_t): New function.
8972 (minimum_stride_size): Use it.
8973 (support_blob_repeat_allocate): Likewise.
8974
8975 2018-12-14 Joseph Myers <joseph@codesourcery.com>
8976
8977 * sysdeps/x86/fpu/bits/mathinline.h (asinh): Remove inline
8978 definition.
8979 (acosh): Likewise.
8980 (atanh): Likewise.
8981
8982 2018-12-14 Florian Weimer <fweimer@redhat.com>
8983
8984 * manual/process.texi (Process Creation Concepts): Remove
8985 documentation of process (ID) lifetime. List more process
8986 creation functions. Reference Process Identification section.
8987 (Process Identification): Add information about process ID
8988 lifetime. Describe Linux thread/task IDs.
8989 * manual/signal.texi (Signaling Another Process): Mention that the
8990 signal is always sent to the process.
8991
8992 2018-12-14 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
8993
8994 * misc/Makefile (tests): Remove tst-efgcvt. Add tst-dbl-efgcvt
8995 and tst-ldbl-efgcvt.
8996 * misc/tst-efgcvt.c: Renamed to misc/tst-efgcvt-template.c.
8997 * misc/tst-efgcvt-template.c: Renamed from misc/tst-efgcvt.c.
8998 (struct testcase, efcvt_func, efcvt_r_func, ecvt_tests)
8999 (fcvt_tests, output_error, output_r_error, do_test): Use the
9000 macros defined in tst-dbl-efgcvt.c and tst-ldbl-efgcvt.c to:
9001 select the type of floating-point variables and arguments; to
9002 produce extra tests for double and conversion specifiers for
9003 printf; and to set the names of called functions.
9004 * misc/tst-dbl-efgcvt.c: New file that defines the macros used
9005 in tst-efgcvt-template.c.
9006 * misc/tst-ldbl-efgcvt.c: Likewise.
9007
9008 2018-12-14 Stefan Liebler <stli@linux.ibm.com>
9009
9010 * nss/Makefile (tst-nss-test3.out): New rule.
9011
9012 2018-12-13 Joseph Myers <joseph@codesourcery.com>
9013
9014 * sysdeps/mach/hurd/i386/init-first.c (_hurd_stack_setup): Do not
9015 clobber sp.
9016
9017 2018-12-13 fanjinke <fanjinke@hygon.cn>
9018
9019 * sysdeps/x86/cpu-features.c (init_cpu_features): Check for
9020 "HygonGenuine".
9021
9022 2018-12-13 Andreas Schwab <schwab@suse.de>
9023
9024 [BZ #23861]
9025 * nptl/pthread_rwlock_common.c: Reindent. Fix typos.
9026 (__pthread_rwlock_rdlock_full): Update expected value for
9027 __readers while waiting on PTHREAD_RWLOCK_RWAITING.
9028 * nptl/tst-rwlock-pwn.c: New file.
9029 * nptl/Makefile (tests): Add tst-rwlock-pwn.
9030
9031 2018-12-12 Joseph Myers <joseph@codesourcery.com>
9032
9033 * sysdeps/x86/fpu/bits/mathinline.h (hypot): Remove inline
9034 definition.
9035
9036 2018-12-12 Leonardo Sandoval <leonardo.sandoval.gonzalez@intel.com>
9037
9038 * benchtests/scripts/compare_bench.py (do_compare): write to
9039 stderr in casestat is not present.
9040 * benchtests/scripts/compare_bench.py (plot_graphs): write to
9041 stderr in case timings field is not present. Also string showing
9042 the output filename goes into the stderr.
9043
9044 2018-12-12 Leonardo Sandoval <leonardo.sandoval.gonzalez@intel.com>
9045
9046 * benchtests/scripts/compare_bench.py (do_compare): Catch KeyError
9047 and ZeroDivisorError exceptions.
9048 * benchtests/scripts/compare_bench.py (compare_runs): Use stats
9049 argument to loop through user provided statistics.
9050 * benchtests/scripts/compare_bench.py (main): Include the --stats
9051 argument.
9052
9053 2018-12-12 Leonardo Sandoval <leonardo.sandoval.gonzalez@intel.com>
9054
9055 * benchtests/scripts/compare_bench.py (compare_runs): Continue
9056 instead of return.
9057
9058 2018-12-12 Florian Weimer <fweimer@redhat.com>
9059
9060 * sysdeps/posix/timespec_get.c: Add missing “any later version”
9061 clause to copyright header.
9062
9063 2018-12-12 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
9064
9065 [BZ #23614]
9066 * sysdeps/powerpc/powerpc64/addmul_1.S (FUNC): Add CFI offset for
9067 registers saved in the stack frame.
9068 * sysdeps/powerpc/powerpc64/lshift.S (__mpn_lshift): Likewise.
9069 * sysdeps/powerpc/powerpc64/mul_1.S (__mpn_mul_1): Likewise.
9070
9071 2018-12-11 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
9072
9073 * include/bits/monetary-ldbl.h: New file.
9074 * include/bits/printf-ldbl.h: Likewise.
9075 * include/bits/stdio-ldbl.h: Likewise.
9076 * include/bits/stdlib-ldbl.h: Likewise.
9077 * include/bits/syslog-ldbl.h: Likewise.
9078 * include/bits/wchar-ldbl.h: Likewise.
9079
9080 2018-12-11 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
9081
9082 * libio/libio.h: Remove redirection for _IO_vfprintf.
9083
9084 2018-12-11 Andreas Schwab <schwab@suse.de>
9085
9086 * Makerules: Remove all references to abilist-pattern.
9087 (update-all-abi): Simplify find expression.
9088
9089 2018-12-11 Szabolcs Nagy <szabolcs.nagy@arm.com>
9090
9091 [BZ #23961]
9092 * math/auto-libm-test-in: Add new test case.
9093 * math/auto-libm-test-out-pow: Regenerated.
9094 * sysdeps/ieee754/flt-32/e_powf.c (__powf): Fix overflow check.
9095
9096 2018-12-10 DJ Delorie <dj@redhat.com>
9097
9098 [BZ #23948]
9099 * support/test-container.c: Move postclean step to before we
9100 change namespaces.
9101
9102 2018-12-10 Joseph Myers <joseph@codesourcery.com>
9103
9104 * scripts/gen-as-const.py (main): Handle --python option.
9105 * scripts/gen-py-const.awk: Remove.
9106 * Makerules (py-const-script): Use gen-as-const.py.
9107 ($(py-const)): Likewise.
9108 * nptl/nptl-printers.py (MutexPrinter.read_status_no_robust): Mask
9109 with 0xffffffff together with ~(PTHREAD_MUTEX_PRIO_CEILING_MASK).
9110 (MutexAttributesPrinter.read_values): Mask with 0xffffffff
9111 together with ~PTHREAD_MUTEXATTR_FLAG_BITS and
9112 ~PTHREAD_MUTEX_NO_ELISION_NP.
9113 * manual/README.pretty-printers: Update reference to
9114 gen-py-const.awk.
9115
9116 * scripts/glibcextract.py: New file.
9117 * scripts/gen-as-const.py: Do not import os.path, re, subprocess
9118 or tempfile. Import glibcexctract.
9119 (compute_c_consts): Remove. Moved to glibcextract.py.
9120 (gen_test): Update reference to compute_c_consts.
9121 (main): Likewise.
9122 * sysdeps/unix/sysv/linux/tst-signal-numbers.py: New file.
9123 * sysdeps/unix/sysv/linux/tst-signal-numbers.sh: Remove.
9124 * sysdeps/unix/sysv/linux/Makefile
9125 ($(objpfx)tst-signal-numbers.out): Use tst-signal-numbers.py.
9126 Redirect stderr as well as stdout.
9127
9128 2018-12-10 Rafael Ávila de Espíndola <rafael@espindo.la>
9129
9130 [BZ #19767]
9131 * sysdeps/unix/sysv/linux/mips/init-first.c: Remove #ifdef SHARED.
9132 * sysdeps/unix/sysv/linux/mips/libc-vdso.h: Remove #ifdef SHARED.
9133 * sysdeps/unix/sysv/linux/mips/mips32/sysdep.h: Define
9134 ALWAYS_USE_VSYSCALL.
9135 * sysdeps/unix/sysv/linux/mips/mips64/n32/sysdep.h: Define
9136 ALWAYS_USE_VSYSCALL.
9137 * sysdeps/unix/sysv/linux/mips/mips64/n64/sysdep.h: Define
9138 ALWAYS_USE_VSYSCALL.
9139
9140 2018-12-10 Florian Weimer <fweimer@redhat.com>
9141
9142 [BZ #23972]
9143 * sysdeps/unix/sysv/linux/getdents64.c (handle_overflow): Check
9144 offset instead of count for clarity. Fix typo in comment.
9145 (__old_getdents64): Keep track of previous offset. Use it to call
9146 handle_overflow.
9147 * sysdeps/unix/sysv/linux/tst-readdir64-compat.c (do_test): Check
9148 that d_off is never zero.
9149
9150 2018-12-10 Andreas Schwab <schwab@suse.de>
9151
9152 * sysdeps/unix/sysv/linux/powerpc/powerpc64/*-le.abilist: Move to
9153 sysdeps/unix/sysv/linux/powerpc/powerpc64/le/*.abilist.
9154 * sysdeps/unix/sysv/linux/powerpc/powerpc64/*.abilist: Move to
9155 sysdeps/unix/sysv/linux/powerpc/powerpc64/be/*.abilist.
9156 * sysdeps/powerpc/Makefile (abilist-pattern): Don't define.
9157
9158 2018-12-10 Joseph Myers <joseph@codesourcery.com>
9159
9160 * timezone/private.h: Update from tzcode 2018g.
9161 * timezone/tzfile.h: Likewise.
9162 * timezone/tzselect.ksh: Likewise.
9163 * timezone/zdump.c: Likewise.
9164 * timezone/zic.c: Likewise.
9165
9166 2018-12-08 Paul Pluzhnikov <ppluzhnikov@google.com>
9167
9168 [BZ #23490]
9169 * sysdeps/unix/sysv/linux/x86/tst-cet-property-2.c
9170 (do_test): Adjust buffer size and fix format.
9171
9172 2018-12-07 DJ Delorie <dj@redhat.com>
9173
9174 [BZ #23907]
9175 * malloc/tst-tcfree3.c: New.
9176 * malloc/Makefile: Add it.
9177
9178 2018-12-07 H.J. Lu <hongjiu.lu@intel.com>
9179
9180 * include/sched.h (__getcpu): Don't use __typeof__ (getcpu).
9181
9182 2018-12-07 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
9183
9184 * libio/libioP.h (SCANF_LDBL_USES_FLOAT128): New macro to be
9185 used as a mask for the mode argument of __vfscanf_internal and
9186 __vfwscanf_internal.
9187 * stdio-common/vfscanf-internal.c
9188 [defined COMPILE_WSCANF && __HAVE_FLOAT128_UNLIKE_LDBL]
9189 (__strtof128_internal): Define to __wcstof128_internal.
9190 [__HAVE_FLOAT128_UNLIKE_LDBL] (__vfscanf_internal): Call
9191 __strtof128_internal or __wcstof128_internal when the format of
9192 long double is the same as _Float128.
9193
9194 2018-12-05 Samuel Thibault <samuel.thibault@ens-lyon.org>
9195
9196 * include/unistd.h (__confstr): Add prototype and hidden prototype.
9197 * posix/confstr.c (confstr): Rename to __confstr.
9198 (__confstr): Add hidden def.
9199 (confstr): Add weak alias for __confstr.
9200 * sysdeps/mach/hurd/spawni.c (__spawni): Call __confstr instead of
9201 confstr.
9202
9203 2018-12-07 H.J. Lu <hongjiu.lu@intel.com>
9204
9205 * NEWS: Mention getcpu.
9206 * include/sched.h (__getcpu): New libc_hidden_proto.
9207 * manual/resource.texi: Document getcpu.
9208 * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Add getcpu.
9209 * sysdeps/unix/sysv/linux/Versions (GLIBC_2.29): Add getcpu.
9210 * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Add getcpu.
9211 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
9212 * sysdeps/unix/sysv/linux/arm/libc.abilist: Likewise.
9213 * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
9214 * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
9215 * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
9216 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
9217 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
9218 * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
9219 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
9220 * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist:
9221 Likewise.
9222 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
9223 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
9224 * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise.
9225 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
9226 Likewise.
9227 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
9228 Likewise.
9229 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist:
9230 Likewise.
9231 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist:
9232 Likewise.
9233 * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist: Likewise.
9234 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
9235 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
9236 * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
9237 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
9238 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
9239 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
9240 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
9241 * sysdeps/unix/sysv/linux/bits/sched.h (getcpu): New prototype.
9242 * sysdeps/unix/sysv/linux/getcpu.c: New file.
9243 * sysdeps/unix/sysv/linux/tst-skeleton-affinity.c (test_size):
9244 Also check getcpu.
9245
9246 2018-12-07 Samuel Thibault <samuel.thibault@ens-lyon.org>
9247
9248 * sysdeps/mach/hurd/spawni.c (child_lookup_under, child_fchdir): New
9249 functions.
9250 (__spawni): Handle spawn_do_fchdir by calling child_fchdir.
9251
9252 2018-12-07 Florian Weimer <fweimer@redhat.com>
9253
9254 [BZ #17405]
9255 * posix/Makefile (routines): Add spawn_faction_addfchdir.
9256 * posix/Versions (GLIBC_2.29): Export
9257 posix_spawn_file_actions_addfchdir_np.
9258 * posix/spawn.h (posix_spawn_file_actions_addfchdir_np): Declare.
9259 * posix/spawn_faction_destroy.c
9260 (__posix_spawn_file_actions_destroy): Handle spawn_do_fchdir.
9261 * posix/spawn_int.h (struct __spawn_action): Add spawn_do_fchdir
9262 and the field action.fchdir_action.
9263 * posix/tst-spawn-chdir.c (add_chdir): New function.
9264 (do_test): Add do_fchdir loop. Call add_chdir.
9265 * sysdeps/posix/spawni.c (__spawni_child): Handle spawn_do_fchdir.
9266 * sysdeps/unix/sysv/linux/spawni.c (__spawni_child): Likewise.
9267 * sysdeps/mach/hurd/i386/libc.abilist (GLIBC_2.29): Add
9268 posix_spawn_file_actions_addfchdir_np.
9269 * sysdeps/unix/sysv/linux/aarch64/libc.abilist (GLIBC_2.29):
9270 Likewise.
9271 * sysdeps/unix/sysv/linux/alpha/libc.abilist (GLIBC_2.29):
9272 Likewise.
9273 * sysdeps/unix/sysv/linux/arm/libc.abilist (GLIBC_2.29): Likewise.
9274 * sysdeps/unix/sysv/linux/hppa/libc.abilist (GLIBC_2.29):
9275 Likewise.
9276 * sysdeps/unix/sysv/linux/i386/libc.abilist (GLIBC_2.29):
9277 Likewise.
9278 * sysdeps/unix/sysv/linux/ia64/libc.abilist (GLIBC_2.29):
9279 Likewise.
9280 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist (GLIBC_2.29):
9281 Likewise.
9282 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist (GLIBC_2.29):
9283 Likewise.
9284 * sysdeps/unix/sysv/linux/microblaze/libc.abilist (GLIBC_2.29):
9285 Likewise.
9286 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist
9287 (GLIBC_2.29): Likewise.
9288 * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist
9289 (GLIBC_2.29): Likewise.
9290 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist
9291 (GLIBC_2.29): Likewise.
9292 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist
9293 (GLIBC_2.29): Likewise.
9294 * sysdeps/unix/sysv/linux/nios2/libc.abilist (GLIBC_2.29):
9295 Likewise.
9296 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist
9297 (GLIBC_2.29): Likewise.
9298 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist
9299 (GLIBC_2.29): Likewise.
9300 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist
9301 (GLIBC_2.29): Likewise.
9302 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist
9303 (GLIBC_2.29): Likewise.
9304 * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist (GLIBC_2.29):
9305 Likewise.
9306 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist (GLIBC_2.29):
9307 Likewise.
9308 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist (GLIBC_2.29):
9309 Likewise.
9310 * sysdeps/unix/sysv/linux/sh/libc.abilist (GLIBC_2.29): Likewise.
9311 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist (GLIBC_2.29):
9312 Likewise.
9313 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist (GLIBC_2.29):
9314 Likewise.
9315 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist (GLIBC_2.29):
9316 Likewise.
9317 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist (GLIBC_2.29):
9318 Likewise.
9319
9320 2018-12-06 Joseph Myers <joseph@codesourcery.com>
9321
9322 * manual/texinfo.tex: Update to version 2018-09-21.20 with
9323 trailing whitespace removed.
9324 * scripts/config.guess: Update to version 2018-11-28.
9325 * scripts/config.sub: Update to version 2018-11-28.
9326 * scripts/install-sh: Update to version 2018-03-11.20.
9327 * scripts/mkinstalldirs: Update to version 2018-03-07.03.
9328 * scripts/move-if-change: Update to version 2018-03-07 03:47.
9329
9330 2018-12-07 Florian Weimer <fweimer@redhat.com>
9331
9332 [BZ #23927]
9333 CVE-2018-19591
9334 * inet/tst-if_index-long.c: New file.
9335 * inet/Makefile (tests): Add tst-if_index-long.
9336
9337 2018-12-07 Florian Weimer <fweimer@redhat.com>
9338
9339 * support/check.h (support_record_failure_is_failed): Declare.
9340 * support/descriptors.h: New file.
9341 * support/support_descriptors.c: Likewise.
9342 * support/tst-support_descriptors.c: Likewise.
9343 * support/support_record_failure.c
9344 (support_record_failure_is_failed): New function.
9345 * support/Makefile (libsupport-routines): Add support_descriptors.
9346 (tests): Add tst-support_descriptors.
9347
9348 2018-12-05 Zack Weinberg <zackw@panix.com>
9349 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
9350
9351 * stdio-common/vfprintf-internal.c
9352 (__vfprintf_internal, __vfwprintf_internal): Don't use __ldbl_is_dbl.
9353 * sysdeps/generic/math_ldbl_opt.h: Remove __ldbl_is_dbl.
9354 * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Remove __ldbl_is_dbl
9355 and __no_long_double.
9356 * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.c: Remove file.
9357 * sysdeps/ieee754/ldbl-opt/Makefile (routines): Remove math_ldbl_opt.
9358 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c: Remove
9359 libc_hidden_proto and libc_hidden_def from all __nldbl_*printf*
9360 and __nldbl_*syslog* functions.
9361 (__nldbl_cleanup, set_no_long_double, clear_no_long_double): Remove.
9362 (__nldbl___asprintf, __nldbl_dprintf, __nldbl_fprintf)
9363 (__nldbl_fwprintf, __nldbl_printf, __nldbl_sprintf)
9364 (__nldbl_vfprintf, __nldbl___vsprintf, __nldbl_obstack_vprintf)
9365 (__ndlbl_obstack_printf, __nldbl_snprintf, __nldbl_swprintf)
9366 (__nldbl_vasprintf, __nldbl_vdprintf, __nldbl_vfwprintf)
9367 (__nldbl_vprintf, __nldbl_vsnprintf, __ndlbl_vswprintf)
9368 (__nldbl_vwprintf, __nldbl_wprintf):
9369 Directly call the appropriate __v*printf_internal routine, passing
9370 PRINTF_LDBL_IS_DBL. Do not mess with __no_long_double. Normalize
9371 variable names.
9372 (__nldbl___fprintf_chk, __nldbl___fwprintf_chk)
9373 (__nldbl___printf_chk, __nldbl___snprintf_chk)
9374 (__nldbl___sprintf_chk, __nldbl___swprintf_chk)
9375 (__nldbl___vfprintf_chk, __nldbl___vfwprintf_chk)
9376 (__nldbl___vprintf_chk, __nldbl___vsnprintf_chk)
9377 (__nldbl___vsprintf_chk, __nldbl___vswprintf_chk)
9378 (__nldbl___vwprintf_chk, __nldbl___wprintf_chk)
9379 (__nldbl___vasprintf_chk, __nldbl___asprintf_chk)
9380 (__nldbl___vdprintf_chk, __nldbl___dprintf_chk)
9381 (__nldbl___obstack_vprintf_chk, __nldbl___obstack_printf_chk):
9382 Likewise, and also pass PRINTF_FORTIFY when appropriate.
9383 (__nldbl_syslog, __nldbl_vsyslog):
9384 Directly call __vsyslog_internal, passing PRINTF_LDBL_IS_DBL.
9385 (__nldbl_syslog_chk): Likewise, and also pass PRINTF_FORTIFY when
9386 appropriate.
9387 (__nldbl_vsyslog_chk): Likewise, and also pass PRINTF_FORTIFY when
9388 appropriate.
9389
9390 2018-12-05 Zack Weinberg <zackw@panix.com>
9391 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
9392
9393 [BZ #11319]
9394 * libio/iovsprintf.c (_IO_str_chk_overflow, libio_vtable):
9395 Moved here from debug/vsprintf_chk.c.
9396 (__vsprintf_internal): Add 'maxlen' argument. Change the setup
9397 and completion logic for the strfile to match exactly what
9398 __vsprintf_chk used to do, except, when maxlen is -1, pass -1 to
9399 _IO_str_init_static_internal instead of maxlen-1.
9400 (__vsprintf): Pass -1 as maxlen to __vsprintf_internal.
9401 * stdio-common/sprintf.c (__sprintf): Pass -1 as maxlen to
9402 __vsprintf_internal.
9403
9404 * debug/vsprintf_chk.c (__vsprintf_chk)
9405 * debug/sprintf_chk.c (__sprintf_chk):
9406 Directly call __vsprintf_internal, passing PRINTF_FORTIFY if
9407 'flags' argument is positive, and slen as maxlen. No need to lock
9408 the FILE and/or construct a temporary FILE. Minimize and normalize
9409 header inclusions and variable names. Do not libc_hidden_def anything.
9410
9411 * debug/asprintf_chk.c (__asprintf_chk)
9412 * debug/dprintf_chk.c (__dprintf_chk)
9413 * debug/fprintf_chk.c (__fprintf_chk)
9414 * debug/fwprintf_chk.c (__fwprintf_chk)
9415 * debug/printf_chk.c (__printf_chk)
9416 * debug/snprintf_chk.c (__snprintf_chk)
9417 * debug/swprintf_chk.c (__swprintf_chk)
9418 * debug/vasprintf_chk.c (__vasprintf_chk)
9419 * debug/vdprintf_chk.c (__vdprintf_chk)
9420 * debug/vfprintf_chk.c (__vfprintf_chk)
9421 * debug/vfwprintf_chk.c (__vfwprintf_chk)
9422 * debug/vprintf_chk.c (__vprintf_chk)
9423 * debug/vsnprintf_chk.c (__vsnprintf_chk)
9424 * debug/vswprintf_chk.c (__vswprintf_chk)
9425 * debug/vwprintf_chk.c (__vwprintf_chk)
9426 * debug/wprintf_chk.c (__wprintf_chk):
9427 Directly call the corresponding vxxprintf_internal function, passing
9428 PRINTF_FORTIFY if 'flag' argument is positive. No need to lock
9429 the FILE and/or construct a temporary FILE. Minimize and normalize
9430 header inclusions and variable names. Do not libc_hidden_def anything.
9431
9432 * debug/obprintf_chk.c (__obstack_printf_chk): Directly call
9433 __obstack_vprintf_internal.
9434 (__obstack_vprintf_chk): Convert into a wrapper that calls
9435 __obstack_vprintf_internal (these two functions already had the
9436 same code) and move to new file...
9437 * debug/vobprintf_chk.c (__obstack_vprintf_chk): ... here. New
9438 file.
9439 * debug/obprintf.c (__obstack_vprintf_internal): Remove the checking of
9440 the flags argument and the setting of _IO_FLAGS2_FORTIFY.
9441 * debug/Makefile (routines): Add vobprintf_chk.
9442
9443 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c
9444 (__nldbl___vsprintf): Pass -1 as maxlen to __vsprintf_internal.
9445 (__nldbl___vfprintf_chk, __nldbl___vsnprintf_chk)
9446 (__nldbl___vsprintf_chk, __nldbl___vswprintf_chk)
9447 (__nldbl___vasprintf_chk, __nldbl___vdprintf_chk)
9448 (__nldbl___obstack_vfprintf_chk):
9449 Directly call the corresponding vxxprintf_internal function,
9450 passing PRINTF_FORTIFY if 'flag' argument is positive. If necessary,
9451 duplicate comparison of slen with 0 or maxlen from the corresponding
9452 non-__nldbl function.
9453
9454 * include/stdio.h (__vsnprintf_chk, __vfprintf_chk, __vasprintf_chk)
9455 (__vdprintf_chk, __obstack_vfprintf_chk): Remove libc_hidden_proto.
9456 * include/wchar.h (__vfwprintf_chk, __vswprintf_chk):
9457 Remove libc_hidden_proto.
9458
9459 * stdio-common/vfprintf-internal.c
9460 (__vfprintf_internal, __vfwprintf_internal):
9461 Do not check _IO_FLAGS2_FORTIFY.
9462 * libio/libio.h (_IO_FLAGS2_FORTIFY): Remove.
9463 * libio/libioP.h: Update prototype of __vsprintf_internal and add
9464 a comment explaining why it has the maxlen argument.
9465 (_IO_acquire_lock_clear_flags2_fct): Remove.
9466 (_IO_acquire_lock_clear_flags2): Remove.
9467 (_IO_release_lock): Remove conditional statement which will
9468 now never execute.
9469 (_IO_acquire_lock): Remove variable which is now unused.
9470 * sysdeps/generic/stdio-lock.h (_IO_acquire_lock_clear_flags2): Remove.
9471 * sysdeps/nptl/stdio-lock.h (_IO_acquire_lock_clear_flags2): Remove.
9472
9473 * stdio-common/Makefile (tests): Add tst-bz11319 and
9474 tst-bz11319-fortify2.
9475 (CFLAGS-tst-bz11319-fortify2.c): New macro.
9476 * stdio-common/tst-bz11319-fortify2.c: New file.
9477 * stdio-common/tst-bz11319.c: Likewise.
9478
9479 2018-12-05 Zack Weinberg <zackw@panix.com>
9480 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
9481
9482 * misc/syslog.c: Include libioP.h, not iolibio.h.
9483 (__vsyslog_internal): New function with the former body of
9484 __vsyslog_chk; takes mode_flags argument same as
9485 __v*printf_internal. Call __vfprintf_internal directly.
9486
9487 (__vsyslog_chk): Now a wrapper around __vsyslog_internal.
9488 Remove libc_hidden_def.
9489 (__syslog, __syslog_chk): Use __vsyslog_internal.
9490 (__vsyslog): Move to just below __syslog. Use __vsyslog_internal.
9491
9492 * include/sys/syslog.h: Add multiple inclusion guard.
9493 Add prototype for __vsyslog_internal.
9494 Remove declaration and libc_hidden_proto for __vsyslog_chk.
9495
9496 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c (__nldbl___vsyslog_chk):
9497 Use __vsyslog_internal.
9498
9499 2018-12-05 Zack Weinberg <zackw@panix.com>
9500 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
9501
9502 * libio/libioP.h (__vfprintf_internal, __vfwprintf_internal)
9503 (__vasprintf_internal, __vdprintf_internal, __obstack_vprintf_internal)
9504 (__vsprintf_internal, __vsnprintf_internal, __vswprintf_internal):
9505 New functions.
9506 (PRINTF_LDBL_IS_DBL, PRINTF_FORTIFY): New constants.
9507 (_IO_vasprintf, _IO_vdprintf, _IO_vsnprintf): Remove prototypes.
9508
9509 * stdio-common/vfprintf-internal.c: Rename from vfprintf.c.
9510 Include wctype.h here if COMPILE_WPRINTF is defined.
9511 Define __vfprintf_internal or __vfwprintf_internal, depending
9512 on COMPILE_WPRINTF.
9513 Temporarily, on entry to this function, update mode_flags
9514 according to the environmental settings corresponding to
9515 PRINTF_LDBL_IS_DBL and PRINTF_FORTIFY.
9516 Throughout, check mode_flags instead of __ldbl_is_dbl and
9517 _IO_FLAGS2_FORTIFY on the destination FILE.
9518 * stdio-common/vfwprintf-internal.c: Rename from vfwprintf.c.
9519 Include vfprintf-internal.c. Don't include wctype.h.
9520 * stdio-common/vfprintf.c: New file. Just define __vfprintf
9521 as a wrapper around __vfprintf_internal, with aliases _IO_vfprintf
9522 and vfprintf.
9523 * stdio-common/vfwprintf.c: New file. Just define __vfwprintf
9524 as a wrapper around __vfwprintf_internal, with aliases _IO_vfwprintf
9525 and vfwprintf.
9526 * stdio-common/Makefile: Add vfprintf-internal and vfwprintf-internal.
9527
9528 * libio/iovdprintf.c (_IO_vdprintf): Rename to __vdprintf_internal
9529 and add mode_flags argument; use __vfprintf_internal.
9530 (__vdprintf): New function. Alias vdprintf to this.
9531 * libio/iovsprintf.c (_IO_vsprintf, __vsprintf): Similarly.
9532 * libio/vasprintf.c (_IO_vasprintf, __vasprintf): Similarly.
9533 * libio/obprintf.c (_IO_obstack_vprintf, __obstack_vprintf): Similarly.
9534 (__obstack_printf): Use __obstack_printf_internal.
9535 * libio/vsnprintf.c (_IO_vsnprintf, ___vsnprintf): Similarly, with
9536 public aliases __vsnprintf and vsnprintf.
9537 Remove use of ldbl_hidden_def, since __vsnprintf is no longer
9538 called internally.
9539 * libio/vswprintf (_IO_vswprintf, __vswprintf): Similarly, with
9540 public aliases _IO_vsprintf and vsprintf.
9541 * libio/swprintf.c (__swprintf): Use __vswprintf_internal.
9542 * stdio-common/asprintf.c (__asprintf): Use __vasprintf_internal.
9543 * stdio-common/dprintf.c (__dprintf): Use __vdprintf_internal.
9544 * stdio-common/snprintf.c (__snprintf): Use __vsprintf_internal.
9545 * stdio-common/sprintf.c (__sprintf): Use __vsprintf_internal.
9546
9547 * debug/obprintf_chk.c, debug/vasprintf_chk.c, debug/vdprintf_chk.c
9548 * debug/vsnprintf_chk.c, debug/vsprintf_chk.c, hurd/vpprintf.c
9549 * stdio-common/fprintf.c, stdio-common/fxprintf.c
9550 * stdio-common/printf.c: Use __vfprintf_internal.
9551
9552 * debug/fwprintf_chk.c, debug/vfwprintf_chk.c, debug/vswprintf_chk.c
9553 * debug/vwprintf_chk.c, debug/wprintf_chk.c, libio/fwprintf.c
9554 * libio/vwprintf.c, libio/wprintf.c: Use __vfwprintf_internal.
9555
9556 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c: Use __vsprintf_internal,
9557 __obstack_vprintf_internal, __vasprintf_internal, __vdprintf_internal,
9558 __vsnprintf_internal, __vswprintf_internal, __vfprintf_internal, and
9559 __vfwprintf_internal.
9560
9561 * libio/libio.h: Remove libc_hidden_proto and declaration for
9562 _IO_vfprintf.
9563 Remove declaration of _IO_vfwprintf.
9564 * libio/iolibio.h: Remove libc_hidden_proto and declaration for
9565 _IO_vsprintf.
9566 Remove declarations of _IO_vswprintf, _IO_obstack_printf, and
9567 _IO_obstack_printf.
9568 * include/stdio.h: Add prototype for __vasprintf.
9569 (__vsnprintf): Remove declaration, because there are no more
9570 internal calls.
9571 * include/wchar.h (__vfwprintf, __vswprintf): Remove
9572 declaration, because there are no more internal calls.
9573
9574 * argp/argp-fmtstream.c (__argp_fmtstream_printf): Use
9575 __vsnprintf_internal, instead of _IO_vsnprintf.
9576 * argp/argp-help.c (__argp_error, __argp_failure): Use
9577 __vasprintf_internal, instead of _IO_vasprintf.
9578 * argp/argp-namefrob.h (__vsnprintf): Do not undefined then
9579 redefine, because there are no more internal calls.
9580
9581 2018-12-05 Zack Weinberg <zackw@panix.com>
9582 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
9583
9584 * stdio-common/vfscanf-internal.c: Don't look at __ldbl_is_dbl.
9585 * sysdeps/ieee754/ldbl-opt/ndlbl-compat.c:
9586 Include libio/strfile.h instead of libioP.h.
9587 (__nldbl_IO_vfscanf, __ndlbl___vfscanf, __nldbl_sscanf)
9588 (__nldbl___vsscanf, __nldbl_vscanf, __nldbl_fscanf)
9589 (__nldbl_scanf, __nldbl_vfwscanf, __nldbl_swscanf)
9590 (__nldbl_vswscanf, __nldbl_vwscanf, __nldbl_fwscanf)
9591 (__nldbl_wscanf): Call __vfscanf_internal / __vfwscanf_internal
9592 directly, passing SCANF_LDBL_IS_DBL. Set up a strfile if
9593 necessary. Do not set __no_long_double. Normalize variable names.
9594 (__nldbl___isoc99_vfscanf, __nldbl___isoc99_sscanf)
9595 (__nldbl___isoc99_vsscanf, __nldbl___isoc99_vscanf)
9596 (__nldbl___isoc99_fscanf, __nldbl___isoc99_scanf)
9597 (__nldbl___isoc99_vfwscanf, __nldbl___isoc99_swscanf)
9598 (__nldbl___isoc99_vswscanf, __nldbl___isoc99_vwscanf)
9599 (__nldbl___isoc99_fwscanf, __nldbl___isoc99_wscanf):
9600 Call __vfscanf_internal / __vfwscanf_internal directly, passing
9601 SCANF_LDBL_IS_DBL | SCANF_ISOC99_A. Set up a strfile if necessary.
9602 Do not set __no_long_double. Normalize variable names.
9603
9604 2018-12-05 Zack Weinberg <zackw@panix.com>
9605 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
9606
9607 * stdio-common/isoc99_scanf.c
9608 * stdio-common/isoc99_fscanf.c
9609 * stdio-common/isoc99_sscanf.c
9610 * stdio-common/isoc99_vscanf.c
9611 * stdio-common/isoc99_vfscanf.c
9612 * stdio-common/isoc99_vsscanf.c
9613 * wcsmbs/isoc99_wscanf.c
9614 * wcsmbs/isoc99_fwscanf.c
9615 * wcsmbs/isoc99_swscanf.c
9616 * wcsmbs/isoc99_vwscanf.c
9617 * wcsmbs/isoc99_vfwscanf.c
9618 * wcsmbs/isoc99_vswscanf.c:
9619 Pass SCANF_ISOC99_A to __vfscanf_internal and/or __vfwscanf_internal.
9620 Do not set _IO_FLAGS2_SCANF_STD on the FILE passed to that function.
9621 No need to lock and unlock the FILE passed to that function.
9622
9623 * stdio-common/vfscanf-internal.c
9624 (__vfscanf_internal, __vfwscanf_internal):
9625 Don't look at _IO_FLAGS2_SCANF_STD.
9626 * libio/libioP.h (_IO_acquire_lock_clear_flags2_fct)
9627 (_IO_release_lock): Don't clear _IO_FLAGS2_SCANF_STD.
9628 * libio/libio.h (_IO_FLAGS2_SCANF_STD): Delete.
9629
9630 2018-12-05 Zack Weinberg <zackw@panix.com>
9631 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
9632
9633 * libio/libioP.h (SCANF_LDBL_IS_DBL, SCANF_ISOC99_A): New constants.
9634 (__vfscanf_internal, __vfwscanf_internal): New function prototypes.
9635 * libio/libio.h: Remove libc_hidden_proto for _IO_vfscanf.
9636 * libio/strfile.h: Add multiple inclusion guard.
9637 (_IO_strfile_read, _IO_strfile_readw): New inline functions.
9638
9639 * sysdeps/generic/math_ldbl_opt.h: Include shlib-compat.h, for
9640 consistency with the other version of this file.
9641 (ldbl_compat_symbol): New macro.
9642 * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h (ldbl_compat_symbol):
9643 New macro.
9644
9645 * stdio-common/vfscanf-internal.c: Rename from vfscanf.c.
9646 Define __vfscanf_internal or __vfwscanf_internal, depending on
9647 COMPILE_WSCANF; don't define any other public symbols.
9648 Remove errval and code to set errp.
9649 Temporarily check __ldbl_is_dbl and _IO_FLAGS2_SCANF_STD as well
9650 as the mode_flags argument.
9651 (encode_error, conv_error, input_error): Don't set errval.
9652 * stdio-common/vfwscanf-internal.c: Rename from vfwscanf.c.
9653 Include vfscanf-internal.c.
9654 * stdio-common/vfscanf.c: New file defining the public entry
9655 point vfscanf, which calls __vfscanf_internal.
9656 * stdio-common/vfwscanf.c: New file defining the public entry
9657 point vfwscanf, which calls __vfwscanf_internal.
9658
9659 * stdio-common/iovfscanf.c: New file.
9660 * stdio-common/iovfwscanf.c: Likewise.
9661
9662 * stdio-common/Makefile (routines): Add vfscanf-internal,
9663 vfwscanf-internal, iovfscanf, iovfwscanf.
9664 * stdio-common/Versions: Mention GLIBC_2.29, so that
9665 it can be used in SHLIB_COMPAT expressions.
9666 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c (__nldbl__IO_vfscanf):
9667 Wrap definition and compat_symbol line in #if SHLIB_COMPAT.
9668 Call __vfscanf_internal, instead of _IO_vfscanf.
9669 (__nldbl___vfscanf): Call __vfscanf_internal, instead of
9670 _IO_vfscanf.
9671 (__nldbl_vfwscanf): Call __vfwscanf_internal, instead of
9672 _IO_vfwscanf.
9673
9674 * libio/iovsscanf.c: Clean up includes, when possible. Use
9675 _IO_strfile_read or _IO_strfile_readw, when needed. Call
9676 __vfscanf_internal or __vfwscanf_internal directly.
9677 * libio/iovswscanf.c: Likewise.
9678 * libio/swscanf.c: Likewise.
9679 * libio/vscanf.c: Likewise.
9680 * libio/vwscanf.c: Likewise.
9681 * libio/wscanf.c: Likewise.
9682 * stdio-common/isoc99_fscanf.c: Likewise.
9683 * stdio-common/isoc99_scanf.c: Likewise.
9684 * stdio-common/isoc99_sscanf.c: Likewise.
9685 * stdio-common/isoc99_vfscanf.c: Likewise.
9686 * stdio-common/isoc99_vscanf.c: Likewise.
9687 * stdio-common/isoc99_vsscanf.c: Likewise.
9688 * stdio-common/scanf.c: Likewise.
9689 * stdio-common/sscanf.c: Likewise.
9690 * wcsmbs/isoc99_fwscanf.c: Likewise.
9691 * wcsmbs/isoc99_swscanf.c: Likewise.
9692 * wcsmbs/isoc99_vfwscanf.c: Likewise.
9693 * wcsmbs/isoc99_vswscanf.c: Likewise.
9694 * wcsmbs/isoc99_vwscanf.c: Likewise.
9695 * wcsmbs/isoc99_wscanf.c: Likewise.
9696
9697 2018-12-05 Albert ARIBAUD <albert.aribaud@3adev.fr>
9698
9699 * include/time.h
9700 (__tz_compute): Replace time_t with __time64_t.
9701 (__tz_convert): Replace time_t* with __time64_t.
9702 (__offtime): Replace time_t* with __time64_t.
9703 * time/gmtime.c
9704 (__gmtime_r): Adjust call to __tz_convert.
9705 (gmtime): Likewise.
9706 * time/localtime.c
9707 (__localtime_r): Likewise.
9708 (localtime): Likewise.
9709 * time/offtime.c: Replace time_t with __time64_t.
9710 * time/tzset.c: Likewise.
9711
9712 2018-12-04 Joseph Myers <joseph@codesourcery.com>
9713
9714 * Makefile ($(objpfx)testroot.pristine/install.stamp): Do not run
9715 dynamic linker unless [$(run-built-tests) = yes].
9716
9717 2018-12-03 DJ Delorie <dj@delorie.com>
9718
9719 * support/test-container.c (check_for_unshare_hints): New.
9720 (main): Call it if unshare fails. Add support for "su" scriptlet
9721 command.
9722
9723 2018-12-03 Joseph Myers <joseph@codesourcery.com>
9724
9725 * scripts/gen-as-const.py (compute_c_consts): Take an argument
9726 'START' to indicate that start text should be output.
9727 (gen_test): Likewise.
9728 (main): Generate 'START' for first symbol or '--' line, or at end
9729 of input if not previously generated.
9730
9731 2018-12-03 Rafael Ávila de Espíndola <rafael@espindo.la>
9732
9733 [BZ #19767]
9734 * sysdeps/unix/sysv/linux/arm/init-first.c: Remove #ifdef SHARED.
9735 * sysdeps/unix/sysv/linux/arm/libc-vdso.h: Remove #ifdef SHARED.
9736 * sysdeps/unix/sysv/linux/arm/sysdep.h: Define
9737 ALWAYS_USE_VSYSCALL.
9738
9739 2018-12-03 Adhemerval Zanella <adhemerval.zanella@linaro.org>
9740
9741 [BZ #23913]
9742 * sysdeps/posix/spawni.c (maybe_script_execute): Increment size of
9743 new_argv by one.
9744
9745 2018-12-03 Carlos O'Donell <carlos@redhat.com>
9746
9747 [BZ #23923]
9748 * locale/programs/localedef.c: Declare boolean hard_links default true.
9749 (options): Add --no-hard-links option.
9750 (parse_opt): Add OPT_NO_HARD_LINKS case and set hard_links to false.
9751 * locale/programs/localedef.h: Declare prototype for hard_links.
9752 * locale/programs/locfile.c (write_locale_data): Don't use hard
9753 links if hard_links is false.
9754
9755 2018-12-03 H.J. Lu <hongjiu.lu@intel.com>
9756
9757 * sysdeps/x86/cacheinfo.c (intel_check_word): Updated for
9758 cpu_features_basic.
9759 (__cache_sysconf): Likewise.
9760 (init_cacheinfo): Likewise.
9761 * sysdeps/x86/cpu-features.c (get_extended_indeces): Also
9762 populate COMMON_CPUID_INDEX_80000007 and
9763 COMMON_CPUID_INDEX_80000008.
9764 (get_common_indices): Also populate COMMON_CPUID_INDEX_D_ECX_1.
9765 Use CPU_FEATURES_CPU_P (cpu_features, XSAVEC) to check if
9766 XSAVEC is available. Set the bit_arch_XXX_Usable bits.
9767 (init_cpu_features): Use _Static_assert on
9768 index_arch_Fast_Unaligned_Load.
9769 __get_cpuid_registers and __get_arch_feature. Updated for
9770 cpu_features_basic. Set stepping in cpu_features.
9771 * sysdeps/x86/cpu-features.h: (FEATURE_INDEX_1): Changed to enum.
9772 (FEATURE_INDEX_2): New.
9773 (FEATURE_INDEX_MAX): Changed to enum.
9774 (COMMON_CPUID_INDEX_D_ECX_1): New.
9775 (COMMON_CPUID_INDEX_80000007): Likewise.
9776 (COMMON_CPUID_INDEX_80000008): Likewise.
9777 (cpuid_registers): Likewise.
9778 (cpu_features_basic): Likewise.
9779 (CPU_FEATURE_USABLE): Likewise.
9780 (bit_arch_XXX_Usable): Likewise.
9781 (cpu_features): Use cpuid_registers and cpu_features_basic.
9782 (bit_arch_XXX): Reweritten.
9783 (bit_cpu_XXX): Likewise.
9784 (index_cpu_XXX): Likewise.
9785 (reg_XXX): Likewise.
9786 * sysdeps/x86/tst-get-cpu-features.c: Include <stdio.h> and
9787 <support/check.h>.
9788 (CHECK_CPU_FEATURE): New.
9789 (CHECK_CPU_FEATURE_USABLE): Likewise.
9790 (cpu_kinds): Likewise.
9791 (do_test): Print vendor, family, model and stepping. Check
9792 HAS_CPU_FEATURE and CPU_FEATURE_USABLE.
9793 (TEST_FUNCTION): Removed.
9794 Include <support/test-driver.c> instead of
9795 "../../test-skeleton.c".
9796 * sysdeps/x86_64/multiarch/sched_cpucount.c (__sched_cpucount):
9797 Check POPCNT instead of POPCOUNT.
9798 * sysdeps/x86_64/multiarch/test-multiarch.c (do_test): Likewise.
9799
9800 2018-12-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
9801
9802 * scripts/gen-as-const.py (main): Avoid emitting empty line when
9803 there is no element in `consts'.
9804
9805 2018-12-01 Florian Weimer <fweimer@redhat.com>
9806
9807 * support/support_capture_subprocess.c
9808 (support_capture_subprocess): Check that pipe descriptors have
9809 expected values. Close original pipe descriptors in subprocess.
9810
9811 2018-12-01 Samuel Thibault <samuel.thibault@ens-lyon.org>
9812
9813 [BZ #23032]
9814 * sysdeps/htl/pt-barrier-init.c (pthread_barrier_init): Fix comparing
9815 attr with __pthread_default_barrierattr.
9816 * sysdeps/htl/pt-cond-init.c (__pthread_cond_init): Fix comparing
9817 attr with __pthread_default_condattr.
9818 * sysdeps/htl/pt-mutex-init.c (_pthread_mutex_init): Fix comparing
9819 attr with __pthread_default_mutexattr.
9820 * sysdeps/htl/pt-rwlock-init.c (_pthread_rwlock_init): Fix comparing
9821 attr with __pthread_default_rwlockattr.
9822
9823 2018-12-01 Kemi Wang <kemi.wang@intel.com>
9824
9825 * manual/tunables.texi (POSIX Thread Tunables): New node.
9826 * nptl/Makefile (libpthread-routines): Add pthread_mutex_conf.
9827 * nptl/nptl-init.c: Include pthread_mutex_conf.h
9828 (__pthread_initialize_minimal_internal) [HAVE_TUNABLES]: Call
9829 __pthread_tunables_init.
9830 * nptl/pthreadP.h (MAX_ADAPTIVE_COUNT): Remove.
9831 (max_adaptive_count): Define.
9832 * nptl/pthread_mutex_conf.c: New file.
9833 * nptl/pthread_mutex_conf.h: New file.
9834 * sysdeps/generic/adaptive_spin_count.h: New file.
9835 * sysdeps/nptl/dl-tunables.list: New file.
9836 * nptl/pthread_mutex_lock.c (__pthread_mutex_lock): Use
9837 max_adaptive_count () not MAX_ADAPTIVE_COUNT.
9838 * nptl/pthread_mutex_timedlock.c (__pthrad_mutex_timedlock):
9839 Likewise.
9840
9841 2018-12-01 Paul Pluzhnikov <ppluzhnikov@google.com>
9842
9843 [BZ #20544]
9844 * stdlib/cxa_atexit.c (__internal_atexit): assert func != NULL.
9845 * stdlib/on_exit.c (__on_exit): Likewise.
9846 * stdlib/Makefile (tests): Add tst-bz20544.
9847 * stdlib/tst-bz20544.c: New test.
9848
9849 2018-11-30 Rafael Ávila de Espíndola <rafael@espindo.la>
9850
9851 [BZ #19767]
9852 * sysdeps/unix/sysv/linux/i386/init-first.c: Don't check SHARED.
9853 * sysdeps/unix/sysv/linux/i386/sysdep.h (ALWAYS_USE_VSYSCALL):
9854 New.
9855
9856 2018-11-30 Florian Weimer <fweimer@redhat.com>
9857
9858 * scripts/abilist.awk: Print "0x0" for size 0. Handle "g"/"D".
9859 Extend error logging.
9860 * sysdeps/mach/hurd/i386/libc.abilist (GLIBC_2.2.6): Adjust _end
9861 symbol.
9862
9863 2018-11-30 Adhemerval Zanella <adhemerval.zanella@linaro.org>
9864
9865 * sysdeps/unix/sysv/linux/spawni.c (__spawni_child): Use
9866 __sigismember instead of sigismember.
9867 * sysdeps/posix/system.c [SIGCANCEL] (cancel_handler_args,
9868 cancel_handler): New definitions.
9869 (do_system): Use posix_spawn instead of fork and execl and remove
9870 reentracy code.
9871 * sysdeps/generic/not-errno.h (__kill_noerrno): New prototype.
9872 * sysdeps/unix/sysv/linux/not-errno.h (__kill_noerrno): Likewise.
9873 * sysdeps/unix/sysv/linux/ia64/system.c: Remove file.
9874 * sysdeps/unix/sysv/linux/s390/system.c: Likewise.
9875 * sysdeps/unix/sysv/linux/sparc/system.c: Likewise.
9876 * sysdeps/unix/sysv/linux/system.c: Likewise.
9877
9878 [BZ #22834]
9879 [BZ #17490]
9880 * NEWS: Add new semantic for atfork with popen and system.
9881 * libio/iopopen.c (_IO_new_proc_open): use posix_spawn instead of
9882 fork and execl.
9883
9884 2018-11-30 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
9885
9886 [BZ #23690]
9887 * elf/dl-runtime.c (_dl_profile_fixup): Guarantee memory
9888 modification order when accessing reloc_result->addr.
9889 * include/link.h (reloc_result): Add field init.
9890 * nptl/Makefile (tests): Add tst-audit-threads.
9891 (modules-names): Add tst-audit-threads-mod1 and
9892 tst-audit-threads-mod2.
9893 Add rules to build tst-audit-threads.
9894 * nptl/tst-audit-threads-mod1.c: New file.
9895 * nptl/tst-audit-threads-mod2.c: Likewise.
9896 * nptl/tst-audit-threads.c: Likewise.
9897 * nptl/tst-audit-threads.h: Likewise.
9898
9899 2018-11-30 Joseph Myers <joseph@codesourcery.com>
9900
9901 * scripts/gen-as-const.py: New file.
9902 * scripts/gen-as-const.awk: Remove.
9903 * Makerules ($(common-objpfx)%.h $(common-objpfx)%.h.d): Use
9904 gen-as-const.py.
9905 ($(objpfx)test-as-const-%.c): Likewise.
9906
9907 2018-11-29 H.J. Lu <hongjiu.lu@intel.com>
9908
9909 * elf/dl-exception.c: Include <_itoa.h>.
9910
9911 2018-11-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
9912
9913 * sysdeps/mach/hurd/fcntl.c (__libc_fcntl): Directly return value
9914 returned by __f_setlk.
9915
9916 2018-11-29 H.J. Lu <hongjiu.lu@intel.com>
9917 Adhemerval Zanella <adhemerval.zanella@linaro.org>
9918
9919 * elf/Makefile (tests-internal): Add tst-create_format1.
9920 * elf/dl-exception.c (_dl_exception_create_format): Support
9921 %x, %lx and %zx.
9922 * elf/tst-create_format1.c: New file.
9923
9924 2018-11-29 Charles-Antoine Couret <charles-antoine.couret@essensium.com>
9925
9926 * argp/argp-fmtstream.c (__argp_fmtstream_update): Use [_LIBC]
9927 conditional on calls to _IO_fwide and putwc_unlocked. (Merge from
9928 gnulib.)
9929 * argp/argp-help.c (__argp_failure): Likewise.
9930
9931 2018-11-29 Mao Han <han_mao@c-sky.com>
9932
9933 * elf/elf.h (EM_CSKY, R_CKCORE_NONE, R_CKCORE_ADDR32)
9934 (R_CKCORE_PCRELIMM8BY4, R_CKCORE_PCRELIMM11BY2, R_CKCORE_PCREL32)
9935 (R_CKCORE_PCRELJSR_IMM11BY2, R_CKCORE_RELATIVE, R_CKCORE_COPY)
9936 (R_CKCORE_GLOB_DAT, R_CKCORE_JUMP_SLOT, R_CKCORE_GOTOFF)
9937 (R_CKCORE_GOTPC, R_CKCORE_GOT32, R_CKCORE_PLT32, R_CKCORE_ADDRGOT)
9938 (R_CKCORE_ADDRPLT, R_CKCORE_PCREL_IMM26BY2, R_CKCORE_PCREL_IMM16BY2)
9939 (R_CKCORE_PCREL_IMM16BY4, R_CKCORE_PCREL_IMM10BY2)
9940 (R_CKCORE_PCREL_IMM10BY4, R_CKCORE_ADDR_HI16, R_CKCORE_ADDR_LO16)
9941 (R_CKCORE_GOTPC_HI16, R_CKCORE_GOTPC_LO16, R_CKCORE_GOTOFF_HI16)
9942 (R_CKCORE_GOTOFF_LO16, R_CKCORE_GOT12, R_CKCORE_GOT_HI16)
9943 (R_CKCORE_GOT_LO16, R_CKCORE_PLT12, R_CKCORE_PLT_HI16)
9944 (R_CKCORE_PLT_LO16, R_CKCORE_ADDRGOT_HI16, R_CKCORE_ADDRGOT_LO16)
9945 (R_CKCORE_ADDRPLT_HI16, R_CKCORE_ADDRPLT_LO16)
9946 (R_CKCORE_PCREL_JSR_IMM26BY2, R_CKCORE_TOFFSET_LO16)
9947 (R_CKCORE_DOFFSET_LO16, R_CKCORE_PCREL_IMM18BY2)
9948 (R_CKCORE_DOFFSET_IMM18, R_CKCORE_DOFFSET_IMM18BY2)
9949 (R_CKCORE_DOFFSET_IMM18BY4, R_CKCORE_GOT_IMM18BY4)
9950 (R_CKCORE_PLT_IMM18BY4, R_CKCORE_PCREL_IMM7BY4, R_CKCORE_TLS_LE32)
9951 (R_CKCORE_TLS_IE32, R_CKCORE_TLS_GD32, R_CKCORE_TLS_LDM32)
9952 (R_CKCORE_TLS_LDO32, R_CKCORE_TLS_DTPMOD32, R_CKCORE_TLS_DTPOFF32)
9953 (R_CKCORE_TLS_TPOFF32): New defines.
9954
9955 2018-11-29 Florian Weimer <fweimer@redhat.com>
9956
9957 * posix/Makefile (before-compile): Remove testcases.h and
9958 ptestcases.h.
9959 (generated): Add testcases.h and ptestcases.h.
9960 (testcases.h, ptestcases.h): Move to $(objpfx).
9961 (runtests.o): Add dependency on testcases.h.
9962 (runptests.o): Add dependency on ptestcases.h.
9963 * posix/testcases.h, posix/ptestcases.h: Remove files.
9964 * scripts/build-many-glibcs.py (Context.fix_glibc_timestamps): Do
9965 not touch posix/testcases.h and posix/ptestcases.h.
9966
9967 2018-11-28 Florian Weimer <fweimer@redhat.com>
9968
9969 support: Add signal support to support_capture_subprocess_check.
9970 * support/capture_subprocess.h (support_capture_subprocess_check):
9971 Adjust comment and rename parameter.
9972 * support/support_capture_subprocess_check.c
9973 (print_actual_status): New function.
9974 (support_capture_subprocess_check): Support negative
9975 status_or_signal. Call print_actual_status.
9976 * support/tst-support_capture_subprocess.c (do_test): Call
9977 support_capture_subprocess_check.
9978 * libio/tst-vtables-common.c (termination_status)
9979 (init_termination_status): Remove.
9980 (check_for_termination): Adjust support_capture_subprocess_check
9981 call.
9982 (do_test): Remove call to init_termination_status.
9983
9984 2018-11-28 Joseph Myers <joseph@codesourcery.com>
9985
9986 * scripts/build-many-glibcs.py (Glibc.build_glibc): Use original
9987 source directory instead of a copy.
9988 (CommandList.create_copy_dir): Remove.
9989
9990 2018-11-28 Stefan Liebler <stli@linux.ibm.com>
9991
9992 * sysdeps/s390/fpu/libm-test-ulps: Regenerated.
9993
9994 2018-11-28 Florian Weimer <fweimer@redhat.com>
9995
9996 * support/support.h (support_quote_string): Do not use str
9997 parameter name.
9998
9999 2018-11-27 Joseph Myers <joseph@codesourcery.com>
10000
10001 * sysdeps/mach/hurd/Makefile ($(common-objpfx)stamp-errnos): Use
10002 $(hurd-objpfx)bits/errno.h-tmp, not $(hurd)/bits/errno.h-tmp.
10003
10004 2018-11-27 Florian Weimer <fweimer@redhat.com>
10005
10006 * support/support.h (support_quote_string): Declare.
10007 * support/support_quote_string.c: New file.
10008 * support/tst-support_quote_string.c: Likewise.
10009 * support/Makefile (libsupport-routines): Add
10010 support_quote_string.
10011 (tests): Add tst-support_quote_string.
10012
10013 2018-11-27 Florian Weimer <fweimer@redhat.com>
10014
10015 [BZ #23927]
10016 CVE-2018-19591
10017 * sysdeps/unix/sysv/linux/if_index.c (__if_nametoindex): Avoid
10018 descriptor leak in case of ENODEV error.
10019
10020 2018-11-27 Rafael Ávila de Espíndola <rafael@espindo.la>
10021
10022 [BZ #19767]
10023 * sysdeps/unix/sysv/linux/aarch64/init-first.c: Remove #ifdef SHARED.
10024 * sysdeps/unix/sysv/linux/aarch64/libc-vdso.h: Remove #ifdef SHARED.
10025 * sysdeps/unix/sysv/linux/aarch64/sysdep.h: Define ALWAYS_USE_VSYSCALL.
10026
10027 2018-11-26 Carlos O'Donell <carlos@redhat.com>
10028
10029 * scripts/abilist.awk: Handle .tdata. Error for unknown combinations.
10030 Error for unknown lines.
10031
10032 2018-11-26 Joseph Myers <joseph@codesourcery.com>
10033
10034 * scripts/build-many-glibcs.py (Context.fix_glibc_timestamps):
10035 Touch additional files.
10036
10037 2018-11-26 Florian Weimer <fweimer@redhat.com>
10038
10039 [BZ #23907]
10040 * malloc/malloc.c (_int_free): Validate tc_idx before checking for
10041 double-frees.
10042
10043 2018-11-26 Rafael Ávila de Espíndola <rafael@espindo.la>
10044
10045 [BZ #19767]
10046 * sysdeps/unix/sysv/linux/powerpc/init-first.c: Remove #ifdef SHARED.
10047 * sysdeps/unix/sysv/linux/powerpc/libc-vdso.h: Remove #ifdef
10048 SHARED. Include sysdep.h.
10049 * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h: Define
10050 ALWAYS_USE_VSYSCALL.
10051 * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h: Define
10052 ALWAYS_USE_VSYSCALL.
10053
10054 2018-11-23 Rafael Ávila de Espíndola <rafael@espindo.la>
10055
10056 [BZ #19767]
10057 * nptl/Makefile (tests-static): Add tst-cond11-static.
10058 (tests): Likewise.
10059 * nptl/tst-cond11-static.c: New File.
10060 * sysdeps/unix/sysv/linux/Makefile (tests-static): Add
10061 tst-affinity-static.
10062 (tests): Likewise.
10063 * sysdeps/unix/sysv/linux/sysdep-vdso.h: Check USE_VSYSCALL
10064 instead of SHARED.
10065 * sysdeps/unix/sysv/linux/sysdep.h (ALWAYS_USE_VSYSCALL): New.
10066 (USE_VSYSCALL): Likewise.
10067 * sysdeps/unix/sysv/linux/tst-affinity-static.c: New file.
10068 * sysdeps/unix/sysv/linux/x86/libc-vdso.h: Check USE_VSYSCALL
10069 instead of SHARED.
10070 * sysdeps/unix/sysv/linux/x86_64/init-first.c: Don't check
10071 SHARED.
10072 * sysdeps/unix/sysv/linux/x86_64/sysdep.h (ALWAYS_USE_VSYSCALL):
10073 New.
10074
10075 2018-11-23 Joseph Myers <joseph@codesourcery.com>
10076
10077 [BZ #23915]
10078 * sysdeps/unix/sysv/linux/arm/kernel-features.h
10079 [__LINUX_KERNEL_VERSION < 0x040700] (__ASSUME_COPY_FILE_RANGE):
10080 Undefine.
10081
10082 2018-11-23 H.J. Lu <hongjiu.lu@intel.com>
10083
10084 * sysdeps/x86/Makefile (tests): Add tst-cet-legacy-1a.
10085 (tst-cet-legacy-1a-ARGS): New.
10086 ($(objpfx)tst-cet-legacy-1a): New target.
10087 * sysdeps/x86/tst-cet-legacy-1a.c: New file.
10088
10089 2018-11-22 Joseph Myers <joseph@codesourcery.com>
10090
10091 * conform/conformtest.py (CompileSubTest.__init__): Set
10092 self.run_early to False.
10093 (ExecuteSubTest.__init__): Likewise.
10094 (HeaderTests.run): Try running all non-optional, non-XFAILed
10095 compilation tests in a single execution of the compiler.
10096
10097 * conform/conformtest.py (CompileSubTest): New class.
10098 (ExecuteSubTest): Likewise.
10099 (ElementTest.run): Rename to gen_subtests. Append tests to
10100 self.subtests instead of running them.
10101 (ConstantTest.run): Likewise.
10102 (SymbolTest.run): Likewise.
10103 (TypeTest.run): Likewise.
10104 (TagTest.run): Likewise.
10105 (FunctionTest.run): Likewise.
10106 (VariableTest.run): Likewise.
10107 (MacroFunctionTest.run): Likewise.
10108 (MacroStrTest.run): Likewise.
10109 (HeaderTests.handle_test_line): Generate subtests for tests.
10110 (HeaderTests.run): Run subtests for tests.
10111
10112 2018-11-21 Szabolcs Nagy <szabolcs.nagy@arm.com>
10113
10114 * math/Versions (GLIBC_2.29): Add pow.
10115 * math/w_pow_compat.c (__pow_compat): Change to versioned compat
10116 symbol.
10117 * math/w_pow.c: New file.
10118 * sysdeps/i386/fpu/w_pow.c: New file.
10119 * sysdeps/ia64/fpu/e_pow.S: Add versioned symbols.
10120 * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Rename to __pow
10121 and add necessary aliases.
10122 * sysdeps/ieee754/dbl-64/w_pow.c: New file.
10123 * sysdeps/m68k/m680x0/fpu/w_pow.c: New file.
10124 * sysdeps/mach/hurd/i386/libm.abilist: Update.
10125 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Update.
10126 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Update.
10127 * sysdeps/unix/sysv/linux/arm/libm.abilist: Update.
10128 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Update.
10129 * sysdeps/unix/sysv/linux/i386/libm.abilist: Update.
10130 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Update.
10131 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Update.
10132 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Update.
10133 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Update.
10134 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Update.
10135 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Update.
10136 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Update.
10137 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Update.
10138 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist: Update.
10139 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Update.
10140 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Update.
10141 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Update.
10142 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Update.
10143 * sysdeps/unix/sysv/linux/sh/libm.abilist: Update.
10144 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Update.
10145 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Update.
10146 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Update.
10147 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Update.
10148 * sysdeps/x86_64/fpu/multiarch/e_pow-fma.c (__ieee754_pow): Rename to
10149 __pow.
10150 * sysdeps/x86_64/fpu/multiarch/e_pow-fma4.c (__ieee754_pow): Likewise.
10151 * sysdeps/x86_64/fpu/multiarch/e_pow.c (__ieee754_pow): Likewise.
10152 * sysdeps/x86_64/fpu/multiarch/w_pow.c: New file.
10153
10154 2018-11-21 Szabolcs Nagy <szabolcs.nagy@arm.com>
10155
10156 * math/Versions (GLIBC_2.29): Add log2.
10157 * math/w_log2_compat.c (__log2_compat): Change to versioned compat
10158 symbol.
10159 * math/w_log2.c: New file.
10160 * sysdeps/i386/fpu/w_log2.c: New file.
10161 * sysdeps/ia64/fpu/e_log2.S: Add versioned symbols.
10162 * sysdeps/ieee754/dbl-64/e_log2.c (__ieee754_log2): Rename to __log2
10163 and add necessary aliases.
10164 * sysdeps/ieee754/dbl-64/w_log2.c: New file.
10165 * sysdeps/m68k/m680x0/fpu/w_log2.c: New file.
10166 * sysdeps/mach/hurd/i386/libm.abilist: Update.
10167 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Update.
10168 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Update.
10169 * sysdeps/unix/sysv/linux/arm/libm.abilist: Update.
10170 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Update.
10171 * sysdeps/unix/sysv/linux/i386/libm.abilist: Update.
10172 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Update.
10173 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Update.
10174 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Update.
10175 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Update.
10176 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Update.
10177 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Update.
10178 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Update.
10179 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Update.
10180 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist: Update.
10181 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Update.
10182 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Update.
10183 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Update.
10184 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Update.
10185 * sysdeps/unix/sysv/linux/sh/libm.abilist: Update.
10186 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Update.
10187 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Update.
10188 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Update.
10189 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Update.
10190
10191 2018-11-21 Szabolcs Nagy <szabolcs.nagy@arm.com>
10192
10193 * math/Versions (GLIBC_2.29): Add log.
10194 * math/w_log_compat.c (__log_compat): Change to versioned compat
10195 symbol.
10196 * math/w_log.c: New file.
10197 * sysdeps/i386/fpu/w_log.c: New file.
10198 * sysdeps/ia64/fpu/e_log.S: Update.
10199 * sysdeps/ieee754/dbl-64/e_log.c (__ieee754_log): Rename to __log
10200 and add necessary aliases.
10201 * sysdeps/ieee754/dbl-64/w_log.c: New file.
10202 * sysdeps/m68k/m680x0/fpu/w_log.c: New file.
10203 * sysdeps/mach/hurd/i386/libm.abilist: Update.
10204 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Update.
10205 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Update.
10206 * sysdeps/unix/sysv/linux/arm/libm.abilist: Update.
10207 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Update.
10208 * sysdeps/unix/sysv/linux/i386/libm.abilist: Update.
10209 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Update.
10210 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Update.
10211 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Update.
10212 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Update.
10213 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Update.
10214 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Update.
10215 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Update.
10216 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Update.
10217 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist: Update.
10218 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Update.
10219 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Update.
10220 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Update.
10221 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Update.
10222 * sysdeps/unix/sysv/linux/sh/libm.abilist: Update.
10223 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Update.
10224 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Update.
10225 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Update.
10226 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Update.
10227 * sysdeps/x86_64/fpu/multiarch/e_log-avx.c (__ieee754_log): Rename to
10228 __log.
10229 * sysdeps/x86_64/fpu/multiarch/e_log-fma.c (__ieee754_log): Likewise.
10230 * sysdeps/x86_64/fpu/multiarch/e_log-fma4.c (__ieee754_log): Likewise.
10231 * sysdeps/x86_64/fpu/multiarch/e_log.c (__ieee754_log): Likewise.
10232 * sysdeps/x86_64/fpu/multiarch/w_log.c: New file.
10233
10234 2018-11-21 Szabolcs Nagy <szabolcs.nagy@arm.com>
10235
10236 * math/Versions (GLIBC_2.29): Add exp and exp2.
10237 * math/w_exp2_compat.c (__exp2_compat): Change to versioned compat
10238 symbol, handle NO_LONG_DOUBLE and LONG_DOUBLE_COMPAT explicitly.
10239 * math/w_exp_compat.c (__exp_compat): Likewise.
10240 * math/w_exp.c: New file.
10241 * math/w_exp2.c: New file.
10242 * sysdeps/i386/fpu/w_exp.c: New file.
10243 * sysdeps/i386/fpu/w_exp2.c: New file.
10244 * sysdeps/ia64/fpu/e_exp.S: Add versioned symbols.
10245 * sysdeps/ia64/fpu/e_exp2.S: Likewise.
10246 * sysdeps/ieee754/dbl-64/e_exp.c (__ieee754_exp): Rename to __exp
10247 and add necessary aliases.
10248 * sysdeps/ieee754/dbl-64/e_exp2.c (__ieee754_exp2): Rename to __exp2
10249 and add necessary aliases.
10250 * sysdeps/ieee754/dbl-64/w_exp.c: New file.
10251 * sysdeps/ieee754/dbl-64/w_exp2.c: New file.
10252 * sysdeps/m68k/m680x0/fpu/w_exp.c: New file.
10253 * sysdeps/m68k/m680x0/fpu/w_exp2.c: New file.
10254 * sysdeps/mach/hurd/i386/libm.abilist: Update.
10255 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Update.
10256 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Update.
10257 * sysdeps/unix/sysv/linux/arm/libm.abilist: Update.
10258 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Update.
10259 * sysdeps/unix/sysv/linux/i386/libm.abilist: Update.
10260 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Update.
10261 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Update.
10262 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Update.
10263 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Update.
10264 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Update.
10265 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Update.
10266 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Update.
10267 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Update.
10268 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist: Update.
10269 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Update.
10270 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Update.
10271 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Update.
10272 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Update.
10273 * sysdeps/unix/sysv/linux/sh/libm.abilist: Update.
10274 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Update.
10275 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Update.
10276 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Update.
10277 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Update.
10278 * sysdeps/x86_64/fpu/multiarch/e_exp-avx.c (__exp1): Remove.
10279 (__ieee754_exp): Rename to __exp.
10280 * sysdeps/x86_64/fpu/multiarch/e_exp-fma.c (__exp1): Remove.
10281 (__ieee754_exp): Rename to __exp.
10282 * sysdeps/x86_64/fpu/multiarch/e_exp-fma4.c (__exp1): Remove.
10283 (__ieee754_exp): Rename to __exp.
10284 * sysdeps/x86_64/fpu/multiarch/e_exp.c (__ieee754_exp): Rename to
10285 __exp.
10286 * sysdeps/x86_64/fpu/multiarch/w_exp.c: New file.
10287
10288 2018-11-20 DJ Delorie <dj@redhat.com>
10289
10290 * malloc/malloc.c (tcache_entry): Add key field.
10291 (tcache_put): Set it.
10292 (tcache_get): Likewise.
10293 (_int_free): Check for double free in tcache.
10294 * malloc/tst-tcfree1.c: New.
10295 * malloc/tst-tcfree2.c: New.
10296 * malloc/Makefile: Run the new tests.
10297 * manual/probes.texi: Document memory_tcache_double_free probe.
10298
10299 * dlfcn/dlerror.c (check_free): Prevent double frees.
10300
10301 2018-11-20 Wilco Dijkstra <wdijkstr@arm.com>
10302
10303 * sysdeps/aarch64/memset.S (MEMSET): Improve non-zero memset loop.
10304
10305 2018-11-20 Joseph Myers <joseph@codesourcery.com>
10306
10307 * conform/conformtest.py (ElementTest.run): Use unique identifiers
10308 in tests. Use names for format arguments.
10309 (ConstantTest.run): Likewise.
10310 (SymbolTest.run): Likewise.
10311 (TypeTest.run): Likewise.
10312 (TagTest.run): Likewise.
10313 (FunctionTest.run): Likewise.
10314 (VariableTest.run): Likewise.
10315 (MacroFunctionTest.run): Likewise.
10316 (MacroStrTest.run): Likewise.
10317 (HeaderTests.__init__): Set self.num_tests.
10318 (HeaderTests.handle_test_line): Set test.num. Increment
10319 self.num_tests.
10320
10321 2018-11-19 Samuel Thibault <samuel.thibault@ens-lyon.org>
10322
10323 * sysdeps/mach/hurd/f_setlk.c: Include <unistd.h>.
10324 (__f_setlk): When whence is SEEK_CUR, use __lseek64 to convert it to
10325 SEEK_SET.
10326
10327 2018-11-19 Mao Han <han_mao@c-sky.com>
10328
10329 * scripts/config.guess: Update to version 2018-08-29.
10330 * scripts/config.sub: Update to version 2018-08-29.
10331
10332 2018-11-19 Florian Weimer <fweimer@redhat.com>
10333
10334 support: Print timestamps in timeout handler.
10335 * support/support_test_main.c (print_timestamp): New function.
10336 (signal_handler): Use it to print the termination time and the
10337 time of the last write to standard output.
10338
10339 2018-11-16 Zack Weinberg <zackw@panix.com>
10340 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
10341
10342 * include/monetary.h (STRFMON_LDBL_IS_DBL): New constant.
10343 (__vstrfmon_l): Rename to __vstrfmon_l_internal and add flags
10344 argument.
10345 * stdlib/strfmon_l.c (__vstrfmon_l): Rename to __vstrfmon_l_internal
10346 and add flags argument. Check flags instead of __ldbl_is_dbl when
10347 deciding whether to set is_long_double.
10348 (__strfmon_l): Call __vstrfmon_l_internal instead of __vstrfmon_l,
10349 passing zero for flags argument.
10350 * stdlib/strfmon.c (strfmon): Same change as made to __strfmon_l.
10351
10352 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c
10353 (__nldbl___vstrfmon, __nldbl___vstrfmon_l)
10354 (__nldbl_strfmon, __nldbl___strfmon_l): Call __vstrfmon_l_internal
10355 directly, passing STRFMON_LDBL_IS_DBL for flags argument. Normalize
10356 variable names. Remove libc_hidden_def/libc_hidden_proto from
10357 __nldbl___vstrfmon and __nldbl___vstrfmon_l, because they are no
10358 longer called from within the library.
10359 * sysdeps/ieee754/ldbl-opt/nldbl-compat.h: Don't use NLDBL_DECL
10360 for __nldbl___vstrfmon_l, declare it explicitly.
10361
10362 * manual/locale.texi: Update a reference to vstrfmon_l in comments.
10363
10364 2018-11-15 Samuel Thibault <samuel.thibault@ens-lyon.org>
10365
10366 * sysdeps/mach/hurd/bits/fcntl.h (F_GETLK64, F_SETLK64, F_SETLKW64): New
10367 macros
10368 [__USE_FILE_OFFSET64] (F_GETLK, F_SETLK, F_SETLKW): Define to F_GETLK64,
10369 F_SETLK64, F_SETLKW64, respectively.
10370 * sysdeps/mach/hurd/f_setlk.c: New file.
10371 * sysdeps/mach/hurd/f_setlk.h: New file.
10372 * sysdeps/mach/hurd/Makefile [$(subdir) = io] (sysdeps_routines): Add
10373 f_setlk.
10374 * sysdeps/mach/hurd/fcntl.c: Include "f_setlk.h".h".
10375 (__libc_fcntl): Move non-flock operations to...
10376 * sysdeps/mach/hurd/vfcntl.c (__libc_vfcntl): ... New file.
10377 * sysdeps/mach/hurd/fcntl.c (fcntl64): Add missing alias.
10378
10379 2018-11-15 Paul Eggert <eggert@cs.ucla.edu>
10380
10381 mktime: DEBUG_MKTIME cleanup
10382 The DEBUG_MKTIME code no longer works in glibc or in Gnulib.
10383 And it’s no longer needed now that glibc and Gnulib both have
10384 their own testing mechanisms for mktime.
10385 * time/mktime.c (DEBUG_MKTIME): Remove. All uses removed.
10386
10387 mktime: fix non-EOVERFLOW errno handling
10388 [BZ#23789]
10389 mktime was not properly reporting failures when the underlying
10390 localtime_r fails with errno != EOVERFLOW; it incorrectly treated
10391 them like EOVERFLOW failures, and set errno to EOVERFLOW.
10392 The problem could happen on non-glibc platforms, with Gnulib.
10393 * time/mktime.c (guess_time_tm): Remove, replacing with ...
10394 (tm_diff): ... this simpler function, which does not change errno.
10395 All callers changed to deal with errno themselves.
10396 (ranged_convert, __mktime_internal): Return failure immediately if
10397 the underlying function reports any failure other than EOVERFLOW.
10398 (__mktime_internal): Set errno to EOVERFLOW if the spring-forward
10399 gap code fails.
10400
10401 mktime: fix bug with Y2038 DST transition
10402 [BZ#23789]
10403 * time/mktime.c (ranged_convert): On 32-bit platforms, don’t
10404 mishandle a DST transition that jumps over the Y2038 boundary.
10405 No such DST transitions are known so this is only a theoretical
10406 bug, but we might as well do things right.
10407
10408 mktime: make more room for overflow
10409 [BZ#23789]
10410 * time/mktime.c (long_int): Now 4⨯ int, not just 3⨯.
10411 This is so that we can add tm_diff results to a previous guess,
10412 which will be useful in a later patch.
10413
10414 mktime: simplify offset guess
10415 [BZ#23789]
10416 * time/mktime.c (__mktime_internal): Omit excess precision.
10417
10418 mktime: new test for mktime failure
10419 [BZ#23789]
10420 Based on a test suggested by Albert Aribaud in:
10421 https://www.sourceware.org/ml/libc-alpha/2018-10/msg00662.html
10422 * time/Makefile (tests): Add bug-mktime4.
10423 * time/bug-mktime4.c: New file.
10424
10425 mktime: fix EOVERFLOW bug
10426 [BZ#23789]
10427 * time/mktime.c [!_LIBC && !DEBUG_MKTIME]:
10428 Include libc-config.h, not config.h, for __set_errno.
10429 (guess_time_tm, __mktime_internal): Set errno to EOVERFLOW on overflow.
10430
10431 2018-11-14 Samuel Thibault <samuel.thibault@ens-lyon.org>
10432
10433 * sysdeps/mach/hurd/dl-sysdep.c (check_no_hidden): Use
10434 __attribute_copy__ to copy attributes from name. Drop static qualifier
10435 to avoid warnings about leaf attribute not having effect on static
10436 functions.
10437
10438 2018-11-13 Florian Weimer <fweimer@redhat.com>
10439
10440 * malloc/malloc.c (fastbin_push_entry): New function.
10441 (fastbin_pop_entry): Likewise. Replaces REMOVE_FB.
10442 (REMOVE_FB): Remove macro.
10443 (_int_malloc): Use fastbin_pop_entry and reindent.
10444 (_int_free): Use fastbin_push_entry.
10445 (malloc_consolidate): Use atomic_exchange_acquire.
10446
10447 2018-11-13 Joseph Myers <joseph@codesourcery.com>
10448
10449 * sysdeps/mips/__longjmp.c (__longjmp): Define alias manually with
10450 alias attribute, not with strong_alias.
10451
10452 * include/libc-symbols.h [SHARED && !NO_HIDDEN && !__ASSEMBLER__]
10453 (__hidden_ver2): New macro. Use old definition of __hidden_ver1
10454 with additional parameter thread.
10455 [SHARED && !NO_HIDDEN && !__ASSEMBLER__] (__hidden_ver1): Define
10456 in terms of __hidden_ver2.
10457 (hidden_tls_def): New macro.
10458 (libc_hidden_tls_def): Likewise.
10459 (rtld_hidden_tls_def): Likewise.
10460 (libm_hidden_tls_def): Likewise.
10461 (libmvec_hidden_tls_def): Likewise.
10462 (libresolv_hidden_tls_def): Likewise.
10463 (librt_hidden_tls_def): Likewise.
10464 (libdl_hidden_tls_def): Likewise.
10465 (libnss_files_hidden_tls_def): Likewise.
10466 (libnsl_hidden_tls_def): Likewise.
10467 (libnss_nisplus_hidden_tls_def): Likewise.
10468 (libutil_hidden_tls_def): Likewise.
10469 (libutil_hidden_tls_def): Likweise.
10470 * sysdeps/powerpc/nofpu/sim-full.c (__sim_exceptions_thread): Use
10471 libc_hidden_tls_def.
10472 (__sim_disabled_exceptions_thread): Likewise.
10473 (__sim_round_mode_thread): Likewise.
10474
10475 * sysdeps/sparc/sparc-ifunc.h [SHARED]
10476 (sparc_ifunc_redirected_hidden_def): Use __attribute_copy__ to
10477 copy attributes from name.
10478
10479 2018-11-12 Joseph Myers <joseph@codesourcery.com>
10480
10481 * sysdeps/arm/arm-ifunc.h [SHARED] (arm_libc_ifunc_hidden_def):
10482 Use __attribute_copy__ to copy attributes from name.
10483
10484 * sysdeps/i386/i686/fpu/multiarch/e_expf.c [SHARED]: Use __THROW
10485 with __hidden_ver1 call.
10486 * sysdeps/i386/i686/fpu/multiarch/e_log2f.c [SHARED]: Likewise.
10487 * sysdeps/i386/i686/fpu/multiarch/e_logf.c [SHARED]: Likewise.
10488 * sysdeps/i386/i686/fpu/multiarch/s_cosf.c: Include <math.h>.
10489 (__cosf): Do not declare here.
10490 * sysdeps/i386/i686/fpu/multiarch/s_sincosf.c: Include <math.h>.
10491 (__sincosf): Do not declare here.
10492 * sysdeps/i386/i686/fpu/multiarch/s_sinf.c: Include <math.h>.
10493 (__sinf): Do not declare here.
10494
10495 * sysdeps/ia64/fpu/sfp-machine.h (__LITTLE_ENDIAN): Remove.
10496 (__BIG_ENDIAN): Likewise.
10497 (__BYTE_ORDER): Likewise.
10498 (strong_alias): Likewise.
10499 (_strong_alias): Likewise.
10500
10501 2018-11-12 Florian Weimer <fweimer@redhat.com>
10502
10503 * malloc/malloc.c (unlink_chunk): Turn the unlink macro into this
10504 function. Move after the definition of in_smallbin_range. Do not
10505 use __builtin_expect for paths that lead to a noreturn function.
10506 Drop remaining __builtin_expect (p->fd_nextsize != NULL, 0)
10507 because it is unclear whether this is in fact an unlikely
10508 condition.
10509 (_int_malloc, _int_free): Adjust.
10510 (malloc_consolidate, _int_realloc): Adjust. Remove bck, fwd
10511 variables.
10512 * malloc/arena.c (heap_trim): Likewise.
10513
10514 2018-11-10 Samuel Thibault <samuel.thibault@ens-lyon.org>
10515
10516 * sysdeps/mach/hurd/spawni.c (__spawni): Add ccwdir port. Test and use
10517 it, free it if needed.
10518 (reauthenticate): Test and use ccwdir.
10519 (child_init_port): In non-resetids case, test and use ccwdir.
10520 (child_chdir): New nested function to set ccwdir.
10521 * hurd/hurd/userlink.h (_hurd_userlink_move): New function.
10522 * hurd/hurd/port.h (_hurd_port_move): New function.
10523 * sysdeps/mach/hurd/spawni.c (NEW_ULINK_TABLE): New macro.
10524 (EXPAND_DTABLE): Use NEW_ULINK_TABLE macro for ulink_dtable.
10525 * hurd/Versions (_hurd_port_move): Export function.
10526 * sysdeps/mach/hurd/i386/libc.abilist (_hurd_port_move): Expect
10527 symbol.
10528 * sysdeps/mach/hurd/spawni.c (__spawni): Use orig_dtablesize instead
10529 of dtablesize for allocating dtable_cloexec.
10530
10531 2018-11-09 Martin Sebor <msebor@redhat.com>
10532
10533 * include/libc-symbols.h (__attribute_copy__): Define macro unless
10534 it's already defined.
10535 (_strong_alias): Use __attribute_copy__.
10536 (_weak_alias, __hidden_ver1, __hidden_nolink2): Same.
10537 * misc/sys/cdefs.h (__attribute_copy__): New macro.
10538 * sysdeps/x86_64/multiarch/memchr.c (memchr): Use __attribute_copy__.
10539 * sysdeps/x86_64/multiarch/memcmp.c (memcmp): Same.
10540 * sysdeps/x86_64/multiarch/mempcpy.c (mempcpy): Same.
10541 * sysdeps/x86_64/multiarch/memset.c (memset): Same.
10542 * sysdeps/x86_64/multiarch/stpcpy.c (stpcpy): Same.
10543 * sysdeps/x86_64/multiarch/strcat.c (strcat): Same.
10544 * sysdeps/x86_64/multiarch/strchr.c (strchr): Same.
10545 * sysdeps/x86_64/multiarch/strcmp.c (strcmp): Same.
10546 * sysdeps/x86_64/multiarch/strcpy.c (strcpy): Same.
10547 * sysdeps/x86_64/multiarch/strcspn.c (strcspn): Same.
10548 * sysdeps/x86_64/multiarch/strlen.c (strlen): Same.
10549 * sysdeps/x86_64/multiarch/strncmp.c (strncmp): Same.
10550 * sysdeps/x86_64/multiarch/strncpy.c (strncpy): Same.
10551 * sysdeps/x86_64/multiarch/strnlen.c (strnlen): Same.
10552 * sysdeps/x86_64/multiarch/strpbrk.c (strpbrk): Same.
10553 * sysdeps/x86_64/multiarch/strrchr.c (strrchr): Same.
10554 * sysdeps/x86_64/multiarch/strspn.c (strspn): Same.
10555
10556 2018-11-09 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
10557
10558 * misc/tst-efgcvt.c: Include support/check.h and
10559 support/test-driver.c. Do not include test-skeleton.c.
10560 (error_count): Remove.
10561 (output_error): Replace increments to error_count with calls to
10562 support_record_failure.
10563 (output_r_error): Likewise.
10564 (special): Likewise.
10565 (do_test): Unconditionally return zero.
10566 (TEST_FUNCTION): Remove.
10567
10568 2018-11-09 Joseph Myers <joseph@codesourcery.com>
10569
10570 * conform/Makefile ($(conformtest-header-tests)): Create $(@D),
10571 not $(@D)/scratch.
10572 ($(linknamespace-header-tests)): Likewise.
10573
10574 * conform/conformtest.py: New file.
10575 * conform/conformtest.pl: Remove.
10576 * conform/GlibcConform.pm: Likewise.
10577 * conform/glibcconform.py (KEYWORDS_C90): New constant.
10578 (KEYWORDS_C99): Likewise.
10579 (KEYWORDS): Likewise.
10580 * conform/Makefile ($(conformtest-header-tests)): Use
10581 conformtest.py instead of conformtest.pl. Do not pass --tmpdir
10582 option. Use --header instead of --headers.
10583 * conform/data/arpa/inet.h-data: Remove trailing semicolons on
10584 function entries.
10585 * conform/data/spawn.h-data: Likewise.
10586 * conform/data/fcntl.h-data (openat): Add space after function
10587 name.
10588 * conform/data/wchar.h-data (wcscasecmp): Likewise.
10589 (wcscasecmp_l): Likewise.
10590 * conform/data/termios.h-data (c_cc): Add space after element
10591 name.
10592
10593 2018-11-08 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
10594
10595 * argp/tst-ldbl-argp.c (do_one_test): Use TEST_COMPARE_STRING,
10596 instead of manually comparing and reporting mismatching strings.
10597 * misc/tst-ldbl-error.c (do_one_test): Likewise.
10598 * misc/tst-ldbl-warn.c (do_one_test): Likewise.
10599
10600 2018-11-08 Joseph Myers <joseph@codesourcery.com>
10601
10602 * sysdeps/unix/sysv/linux/kernel-features.h: Remove comment about
10603 __ASSUME_SOCKETCALL.
10604 * sysdeps/unix/sysv/linux/i386/kernel-features.h
10605 (__ASSUME_SOCKETCALL): Remove.
10606 * sysdeps/unix/sysv/linux/m68k/kernel-features.h
10607 (__ASSUME_SOCKETCALL): Likewise.
10608 * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
10609 (__ASSUME_SOCKETCALL): Likewise.
10610 * sysdeps/unix/sysv/linux/powerpc/kernel-features.h
10611 (__ASSUME_SOCKETCALL): Likewise.
10612 * sysdeps/unix/sysv/linux/s390/kernel-features.h
10613 (__ASSUME_SOCKETCALL): Likewise.
10614 * sysdeps/unix/sysv/linux/sh/kernel-features.h
10615 (__ASSUME_SOCKETCALL): Likewise.
10616 * sysdeps/unix/sysv/linux/sparc/kernel-features.h
10617 (__ASSUME_SOCKETCALL): Likewise.
10618
10619 2018-11-08 H.J. Lu <hongjiu.lu@intel.com>
10620
10621 [BZ #23509]
10622 * sysdeps/x86/dl-prop.h (_dl_process_cet_property_note): Skip
10623 note parsing if a NT_GNU_PROPERTY_TYPE_0 note has been processed.
10624 Update the l_cet field when processing NT_GNU_PROPERTY_TYPE_0 note.
10625 Check multiple NT_GNU_PROPERTY_TYPE_0 notes.
10626 * sysdeps/x86/link_map.h (l_cet): Expand to 3 bits, Add
10627 lc_unknown.
10628
10629 2018-11-08 Alexandra Hájková <ahajkova@redhat.com>
10630
10631 [BZ #17630]
10632 * resolv/tst-resolv-network.c: Add test for getnetbyname.
10633
10634 2018-11-07 Joseph Myers <joseph@codesourcery.com>
10635
10636 [BZ #23867]
10637 * sysdeps/unix/sysv/linux/arm/kernel-features.h
10638 [__LINUX_KERNEL_VERSION < 0x040700] (__ASSUME_MLOCK2): Undefine.
10639 * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
10640 [__LINUX_KERNEL_VERSION < 0x040700] (__ASSUME_MLOCK2): Undefine.
10641
10642 2018-11-07 Adhemerval Zanella <adhemerval.zanella@linaro.org>
10643
10644 * support/support_test_compare_string.c
10645 (support_test_compare_string): Fix printf format.
10646
10647 2018-11-07 Florian Weimer <fweimer@redhat.com>
10648
10649 Implement TEST_COMPARE_STRING.
10650 * support/check.h (TEST_COMPARE_STRING): Define.
10651 (support_test_compare_string): Declare.
10652 * support/Makefile (libsupport-routines): Add
10653 support_test_compare_string.
10654 (tests): Add tst-test_compare_string.
10655 * support/support_test_compare_string.c: New file.
10656 * support/tst-test_compare_string.c: Likewise.
10657
10658 2018-11-07 Andreas Schwab <schwab@suse.de>
10659
10660 [BZ #23864]
10661 * sysdeps/unix/sysv/linux/riscv/kernel-features.h
10662 (__ASSUME_SET_ROBUST_LIST) [__LINUX_KERNEL_VERSION < 0x041400]:
10663 Undef.
10664
10665 2018-11-06 Joseph Myers <joseph@codesourcery.com>
10666
10667 [BZ #23862]
10668 * sysdeps/unix/sysv/linux/sh/kernel-features.h
10669 [__LINUX_KERNEL_VERSION < 0x040800] (__ASSUME_EXECVEAT): Undefine.
10670 [__LINUX_KERNEL_VERSION < 0x040800] (__ASSUME_MLOCK2): Likewise.
10671 [__LINUX_KERNEL_VERSION < 0x040800] (__ASSUME_COPY_FILE_RANGE):
10672 Likewise.
10673
10674 2018-11-06 Florian Weimer <fweimer@redhat.com>
10675
10676 [BZ #17405]
10677 * posix/Makefile (routines): Add spawn_faction_addchdir.
10678 (tests): Add tst-spawn-chdir.
10679 * posix/Versions (GLIBC_2.29): Add
10680 posix_spawn_file_actions_addchdir_np.
10681 * posix/spawn_faction_addchdir.c: New file.
10682 * posix/spawn_faction_destroy.c
10683 (__posix_spawn_file_actions_destroy): Handle spawn_do_chdir.
10684 * posix/spawn.h (posix_spawn_file_actions_addchdir_np): Declare.
10685 * posix/spawn_int.h (struct __spawn_action): Add spawn_do_chdir,
10686 chdir_action.
10687 * posix/tst-spawn-chdir.c: New file.
10688 * sysdeps/posix/spawni.c (__spawni_child): Handle spawn_do_chdir.
10689 * sysdeps/unix/sysv/linux/spawni.c (__spawni_child): Likewise.
10690 * sysdeps/mach/hurd/i386/libc.abilist (GLIBC_2.29): Add
10691 posix_spawn_file_actions_addchdir_np.
10692 * sysdeps/unix/sysv/linux/aarch64/libc.abilist (GLIBC_2.29):
10693 Likewise.
10694 * sysdeps/unix/sysv/linux/alpha/libc.abilist (GLIBC_2.29):
10695 Likewise.
10696 * sysdeps/unix/sysv/linux/arm/libc.abilist (GLIBC_2.29): Likewise.
10697 * sysdeps/unix/sysv/linux/hppa/libc.abilist (GLIBC_2.29):
10698 Likewise.
10699 * sysdeps/unix/sysv/linux/i386/libc.abilist (GLIBC_2.29):
10700 Likewise.
10701 * sysdeps/unix/sysv/linux/ia64/libc.abilist (GLIBC_2.29):
10702 Likewise.
10703 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist (GLIBC_2.29):
10704 Likewise.
10705 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist (GLIBC_2.29):
10706 Likewise.
10707 * sysdeps/unix/sysv/linux/microblaze/libc.abilist (GLIBC_2.29):
10708 Likewise.
10709 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist
10710 (GLIBC_2.29): Likewise.
10711 * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist
10712 (GLIBC_2.29): Likewise.
10713 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist
10714 (GLIBC_2.29): Likewise.
10715 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist
10716 (GLIBC_2.29): Likewise.
10717 * sysdeps/unix/sysv/linux/nios2/libc.abilist (GLIBC_2.29):
10718 Likewise.
10719 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist
10720 (GLIBC_2.29): Likewise.
10721 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist
10722 (GLIBC_2.29): Likewise.
10723 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist
10724 (GLIBC_2.29): Likewise.
10725 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist
10726 (GLIBC_2.29): Likewise.
10727 * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist (GLIBC_2.29):
10728 Likewise.
10729 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist (GLIBC_2.29):
10730 Likewise.
10731 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist (GLIBC_2.29):
10732 Likewise.
10733 * sysdeps/unix/sysv/linux/sh/libc.abilist (GLIBC_2.29): Likewise.
10734 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist (GLIBC_2.29):
10735 Likewise.
10736 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist (GLIBC_2.29):
10737 Likewise.
10738 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist (GLIBC_2.29):
10739 Likewise.
10740 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist (GLIBC_2.29):
10741 Likewise.
10742
10743 2018-11-06 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
10744
10745 * misc/Makefile (tests): Add tst-ldbl-error.
10746 * misc/tst-ldbl-error.c: New file.
10747
10748 2018-11-06 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
10749
10750 * misc/Makefile (tests): Add tst-ldbl-warn.
10751 * misc/tst-ldbl-warn.c: New file.
10752
10753 2018-11-06 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
10754
10755 * argp/Makefile (tests): Add tst-ldbl-argp.
10756 * argp/tst-ldbl-argp.c: New file.
10757
10758 2018-11-05 Arjun Shankar <arjun@redhat.com>
10759
10760 * iconv/gconv_conf.c (__gconv_read_conf): Remove NULL check for
10761 __gconv_path_elem and call __gconv_get_path unconditionally.
10762
10763 2018-11-05 Andreas Schwab <schwab@suse.de>
10764
10765 [BZ #22927]
10766 * resolv/gai_misc.c (__gai_enqueue_request): Don't crash if
10767 creating the first helper thread failed.
10768
10769 2018-11-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
10770
10771 * sysdeps/mach/hurd/msync.c: New file.
10772
10773 2018-11-02 Florian Weimer <fweimer@redhat.com>
10774
10775 * support/shell-container.c (copy_func): Call
10776 support_copy_file_range instead of copy_file_range to support
10777 cross-device copies.
10778
10779 2018-11-02 Florian Weimer <fweimer@redhat.com>
10780
10781 * support/test-container.c: Include <libc-pointer-arith.h> for
10782 ALIGN_UP.
10783
10784 2018-11-01 Zong Li <zong@andestech.com>
10785
10786 * soft-fp/op-8.h (_FP_FRAC_SET_8, _FP_FRAC_ADD_8, _FP_FRAC_SUB_8)
10787 (_FP_FRAC_CLZ_8, _FP_MINFRAC_8, _FP_FRAC_NEGP_8, _FP_FRAC_ZEROP_8)
10788 (_FP_FRAC_HIGHBIT_DW_8, _FP_FRAC_COPY_4_8, _FP_FRAC_COPY_8_4)
10789 (__FP_FRAC_SET_8): Add implementation for RV32 use.
10790
10791 * soft-fp/op-4.h (_FP_FRAC_SUB_3, _FP_FRAC_SUB_4): Use temporary
10792 variable to avoid overlap arguments.
10793
10794 2018-11-01 Joseph Myers <joseph@codesourcery.com>
10795
10796 * posix/bug-regex22.c (main): Use puts with distinct error
10797 messages for unexpected success of re_compile_pattern, not printf
10798 with NULL argument to %s.
10799
10800 * stdio-common/bug22.c: Include <libc-diag.h>.
10801 (do_test): Disable -Wformat-overflow= warnings around fprintf
10802 calls outputting more than INT_MAX characters.
10803 * stdio-common/tst-printf.c: Disable -Wformat-overflow= warnings
10804 around printf call with NULL %s argument.
10805
10806 [BZ #23848]
10807 * sysdeps/unix/sysv/linux/sparc/kernel-features.h [!__arch64__ &&
10808 __LINUX_KERNEL_VERSION < 0x040400] (__ASSUME_SENDMSG_SYSCALL):
10809 Undefine.
10810 [!__arch64__ && __LINUX_KERNEL_VERSION < 0x040400]
10811 (__ASSUME_RECVMSG_SYSCALL): Likewise.
10812 [!__arch64__ && __LINUX_KERNEL_VERSION < 0x040400]
10813 (__ASSUME_SENDTO_SYSCALL): Likewise.
10814 [!__arch64__ && __LINUX_KERNEL_VERSION < 0x040400]
10815 (__ASSUME_ACCEPT_SYSCALL): Undefine under this condition, not just
10816 [!__arch64__].
10817 [!__arch64__ && __LINUX_KERNEL_VERSION < 0x040400]
10818 (__ASSUME_CONNECT_SYSCALL): Likewise.
10819 [!__arch64__ && __LINUX_KERNEL_VERSION < 0x040400]
10820 (__ASSUME_RECVFROM_SYSCALL): Likewise.
10821 [__LINUX_KERNEL_VERSION >= 0x040400] (__ASSUME_BIND_SYSCALL):
10822 Define.
10823 [__LINUX_KERNEL_VERSION >= 0x040400] (__ASSUME_LISTEN_SYSCALL):
10824 Likewise.
10825 [__LINUX_KERNEL_VERSION >= 0x040400]
10826 (__ASSUME_SETSOCKOPT_SYSCALL): Likewise.
10827 * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list (bind):
10828 Remove.
10829 (listen): Likewise.
10830 (setsockopt): Likewise.
10831
10832 2018-11-01 Fredrik Noring <noring@nocrew.org>
10833
10834 * sysdeps/mips/sys/tas.h (_test_and_set): Handle the R5900 CPU
10835 with the ISA override.
10836
10837 2018-10-31 Rafael Ávila de Espíndola <rafael@espindo.la>
10838
10839 * sysdeps/unix/sysv/linux/sysdep-vdso.h: Simplify an #if #else
10840 #endif.
10841
10842 2018-10-31 Samuel Thibault <samuel.thibault@ens-lyon.org>
10843
10844 * manual/errno.texi (EIEIO): Document how translators should
10845 translate the error message.
10846 * sysdeps/mach/hurd/errnos.awk: Avoid printing errnos.d. Avoid
10847 printing trailing whitespaces refused by git.
10848 * sysdeps/gnu/errlist.c (EIEIO): Regenerate.
10849 * sysdeps/mach/hurd/bits/errno.h: Regenerate.
10850 * hurd/Makefile (user-interfaces): Add pci.
10851
10852 2018-10-30 Joseph Myers <joseph@codesourcery.com>
10853
10854 * conform/linknamespace.py: New file.
10855 * conform/linknamespace.pl: Remove file.
10856 * conform/Makefile ($(linknamespace-header-tests)): Use
10857 linknamespace.py instead of linknamespace.pl. Do not use --tmpdir
10858 option.
10859
10860 2018-10-30 Florian Weimer <fweimer@redhat.com>
10861
10862 * stdlib/test-bz22786.c (do_test): Additional free calls to avoid
10863 memory leaks.
10864
10865 2018-10-30 Florian Weimer <fweimer@redhat.com>
10866
10867 * support/blob_repeat.c (allocate_big): Call mkstemp directly.
10868
10869 2018-10-30 Florian Weimer <fweimer@redhat.com>
10870
10871 * stdlib/tst-strtod-overflow.c (do_test): Switch to
10872 support_blob_repeat.
10873
10874 2018-10-30 Florian Weimer <fweimer@redhat.com>
10875
10876 Avoid spurious test failures in stdlib/test-bz22786.
10877 * support/Makefile (libsupport-routines): Add blob_repeat.
10878 (tests): Add tst-support_blob_repeat.
10879 * support/blob_repeat.h: New file.
10880 * support/blob_repeat.c: Likewise.
10881 * support/tst-support_blob_repeat.c: Likewise.
10882 * stdlib/test-bz22786.c (do_test): Replace malloc and memset with
10883 support_blob_repeat_allocate.
10884
10885 2018-10-30 Andreas Schwab <schwab@suse.de>
10886
10887 [BZ #23125]
10888 * sysdeps/riscv/start.S (ENTRY_POINT): Mark ra as undefined.
10889 Don't use tail call.
10890 * elf/tst-unwind-main.c: New file.
10891 * elf/Makefile (tests): Add tst-unwind-main.
10892 (CFLAGS-tst-unwind-main.c): Define.
10893
10894 2018-10-29 Sergi Almacellas Abellana <sergi@koolpi.com>
10895
10896 [BZ #23791]
10897 * localedata/locales/ca_ES (LC_MONETARY): set p_cs_precedes and
10898 n_cs_precedes to 0.
10899 * localedata/locales/ca_ES (LC_MONETARY): set grouping to 3;3
10900
10901 2018-10-29 Joseph Myers <joseph@codesourcery.com>
10902
10903 * conform/glibcconform.py: Do not import shutil.
10904 (list_exported_functions): Use tempfile.TemporaryDirectory instead
10905 of mkdtemp.
10906
10907 * configure.ac (PYTHON_PROG): Use AC_CHECK_PROG_VER. Set
10908 critic_missing for versions before 3.4.
10909 * configure: Regenerated.
10910 * manual/install.texi (Tools for Compilation): Document
10911 requirement for Python to build glibc.
10912 * INSTALL: Regenerated.
10913 * Rules [PYTHON]: Make code unconditional.
10914 * benchtests/Makefile [PYTHON]: Likewise.
10915 * conform/Makefile [PYTHON]: Likewise.
10916 * manual/Makefile [PYTHON]: Likewise.
10917 * math/Makefile [PYTHON]: Likewise.
10918
10919 2018-10-28 Samuel Thibault <samuel.thibault@ens-lyon.org>
10920
10921 * hurd/hurdsig.c (_hurd_interrupted_rpc_timeout): Set to 60000.
10922 * hurd/intr-msg.c (_hurd_intr_rpc_mach_msg): When the server does not
10923 answer to interrupt_operation, return EIEIO instead of EINTR.
10924 * sysdeps/mach/hurd/i386/intr-msg.h (INTR_MSG_TRAP): Make
10925 _hurd_intr_rpc_msg_about_to global point to start of controlled
10926 assembly snippet. Make it check canceled flag.
10927 * hurd/hurdsig.c (_hurdsig_abort_rpcs): Only mutate thread if it passed
10928 the _hurd_intr_rpc_msg_about_to point.
10929 * hurd/intr-msg.c (_hurd_intr_rpc_mach_msg): Remove comment on mutation
10930 issue, remove cancel flag check.
10931
10932 2018-10-26 Joseph Myers <joseph@codesourcery.com>
10933
10934 * scripts/build-many-glibcs.py: Remove compatibility for missing
10935 os.cpu_count and re.fullmatch.
10936
10937 2018-10-26 Szabolcs Nagy <szabolcs.nagy@arm.com>
10938
10939 [BZ #23822]
10940 * sysdeps/ia64/fpu/e_exp2f.S (exp2f): Use WEAK_LIBM_ENTRY.
10941 * sysdeps/ia64/fpu/e_log2f.S (log2f): Likewise.
10942 * sysdeps/ia64/fpu/e_exp2f.S (powf): Likewise.
10943
10944 2018-10-25 Joseph Myers <joseph@codesourcery.com>
10945
10946 * sysdeps/unix/sysv/linux/sys/inotify.h (IN_MASK_CREATE): New
10947 macro.
10948
10949 2018-10-25 Florian Weimer <fweimer@redhat.com>
10950
10951 [BZ #23562]
10952 [BZ #23821]
10953 XFAIL siginfo_t si_band conform test on sparc64.
10954 * sysdeps/unix/sysv/linux/sparc/bits/siginfo-arch.h
10955 (__SI_BAND_TYPE): Only override long int default type on sparc64.
10956 * sysdeps/unix/sysv/linux/sparc/sparc64/Makefile
10957 (conformtest-xfail-conds): Add sparc64-linux.
10958 * conform/data/signal.h-data (siginfo_t): XFAIL si_band test on
10959 sparc64.
10960 * conform/data/sys/wait.h-data (siginfo_t): Likewise.
10961
10962 2018-10-25 Joseph Myers <joseph@codesourcery.com>
10963
10964 * elf/elf.h (NT_MIPS_DSP): New macro.
10965 (NT_MIPS_FP_MODE): Likewise.
10966
10967 2018-10-25 Zong Li <zong@andestech.com>
10968
10969 * elf/Makefile (LDFLAGS-tst-execstack-mod.so): Change variable
10970 name by adding the file extension (.so).
10971
10972 2018-10-25 Samuel Thibault <samuel.thibault@ens-lyon.org>
10973
10974 * sysdeps/mach/hurd/i386/Makefile [$(subdir) = conform]
10975 (test-xfail-ISO11/threads.h/linknamespace,
10976 test-xfail-ISO11/threads.h/conform): Add.
10977
10978 2018-10-24 Joseph Myers <joseph@codesourcery.com>
10979
10980 * math/gen-libm-test.py: Import os.
10981 (ALL_FLOATS_MANUAL): New constant.
10982 (ALL_FLOATS_SUFFIX): Likewise.
10983 (Ulps.all_functions): New function.
10984 (real_all_ulps): Likewise.
10985 (generate_err_table_sub): Likewise.
10986 (generate_err_table): Likewise.
10987 (main): Handle -s and -m options.
10988 * manual/libm-err-tab.pl: Remove.
10989 * manual/Makefile ($(objpfx)stamp-libm-err): Use gen-libm-test.py
10990 instead of libm-err-tab.pl.
10991 [$(PERL) != no]: Change condition to [$(if $(PYTHON),$(PERL),no)
10992 != no].
10993 * manual/install.texi (Tools for Compilation): Document
10994 requirement for Python to build manual.
10995 * INSTALL: Regenerated.
10996
10997 2018-10-24 Albert ARIBAUD <albert.aribaud@3adev.fr>
10998
10999 * bits/time64.h: New file.
11000 * include/time.h: Replace internal_time_t with __time64_t.
11001 * posix/bits/types (__time64_t): Add.
11002 * stdlib/Makefile: Add bits/time64.h to includes.
11003 * time/tzfile.c: Replace internal_time_t with __time64_t.
11004
11005 2018-10-24 Adhemerval Zanella <adhemerval.zanella@linaro.org>
11006
11007 * include/spawn.h (__posix_spawn, posix_spawn_file_actions_addclose,
11008 __posix_spawn_file_actions_adddup2, __posix_spawn_file_actions_destroy,
11009 __posix_spawn_file_actions_init, __posix_spawnattr_init,
11010 __posix_spawnattr_destroy, __posix_spawnattr_setflags,
11011 __posix_spawnattr_setsigdefault, __posix_spawnattr_setsigmask): New
11012 prototype.
11013 * posix/spawn.c (__posix_spawn): Add libc_hidden_def.
11014 * posix/spawn_faction_addclose.c
11015 (__posix_spawn_file_actions_addclose): Add hidden definition.
11016 * posix/spawn_faction_adddup2.c
11017 (__posix_spawn_file_actions_adddup2): Likewise.
11018 * posix/spawn_faction_destroy.c
11019 (__posix_spawn_file_actions_destroy): Likewise.
11020 * posix/spawn_faction_init.c (__posix_spawn_file_actions_init):
11021 Likewise.
11022 * posix/spawnattr_destroy.c (__posix_spawnattr_destroy): Likewise.
11023 * posix/spawnattr_init.c (__posix_spawnattr_init): Likewise.
11024 * posix/spawnattr_setdefault.c (__posix_spawnattr_setsigdefault):
11025 Likewise.
11026 * posix/spawnattr_setflags.c (__posix_spawnattr_setflags): Likewise.
11027 * posix/spawnattr_setsigmask.c (__posix_spawnattr_setsigmask):
11028 Likewise.
11029
11030 2018-10-24 Andreas Schwab <schwab@suse.de>
11031
11032 [BZ #18093]
11033 * elf/dl-cache.c (_dl_load_cache_lookup): Check for truncated old
11034 format cache.
11035 * elf/cache.c (print_cache): Likewise.
11036
11037 2018-10-24 Albert ARIBAUD <albert.aribaud@3adev.fr>
11038
11039 * bits/timesize.h: New file.
11040 * stdlib/Makefile (headers): Add bits/timesize.h.
11041 * sysdeps/unix/sysv/linux/bits/msq-pad.h
11042 (__MSQ_PAD_AFTER_TIME): Use __TIMESIZE instead of __WORDSIZE.
11043 * sysdeps/unix/sysv/linux/bits/sem-pad.h
11044 (__SEM_PAD_AFTER_TIME): Likewise.
11045 * sysdeps/unix/sysv/linux/bits/shm-pad.h
11046 (__SHM_PAD_AFTER_TIME): Likewise.
11047 * sysdeps/unix/sysv/linux/hppa/bits/msq-pad.h
11048 (__MSQ_PAD_BEFORE_TIME): Likewise.
11049 * sysdeps/unix/sysv/linux/hppa/bits/sem-pad.h
11050 (__SEM_PAD_BEFORE_TIME): Likewise.
11051 * sysdeps/unix/sysv/linux/hppa/bits/shm-pad.h
11052 (__SHM_PAD_BEFORE_TIME, __SHM_PAD_BETWEEN_TIME_AND_SEGSZ): Likewise.
11053 * sysdeps/unix/sysv/linux/mips/bits/msq-pad.h
11054 (__MSQ_PAD_AFTER_TIME, __MSQ_PAD_BEFORE_TIME): Likewise.
11055 * sysdeps/unix/sysv/linux/powerpc/bits/msq-pad.h
11056 (__MSQ_PAD_BEFORE_TIME): Likewise.
11057 * sysdeps/unix/sysv/linux/powerpc/bits/sem-pad.h
11058 (__SEM_PAD_BEFORE_TIME): Likewise.
11059 * sysdeps/unix/sysv/linux/powerpc/bits/shm-pad.h
11060 (__SHM_PAD_BEFORE_TIME, __SHM_PAD_BETWEEN_TIME_AND_SEGSZ): Likewise.
11061 * sysdeps/unix/sysv/linux/sparc/bits/msq-pad.h
11062 (__MSQ_PAD_BEFORE_TIME): Likewise.
11063 * sysdeps/unix/sysv/linux/sparc/bits/sem-pad.h
11064 (__SEM_PAD_BEFORE_TIME): Likewise.
11065 * sysdeps/unix/sysv/linux/sparc/bits/shm-pad.h
11066 (__SHM_PAD_BEFORE_TIME): Likewise.
11067 * sysdeps/unix/sysv/linux/x86/bits/msq-pad.h: Delete file.
11068 * sysdeps/unix/sysv/linux/x86/bits/shm-pad.h: Likewise.
11069 * sysdeps/unix/sysv/linux/x86/bits/timesize.h: New file.
11070
11071 2018-10-24 H.J. Lu <hongjiu.lu@intel.com>
11072
11073 * benchtests/Makefile (CPPFLAGS-nonlib): Add -DUSE_RDTSCP if
11074 USE_RDTSCP is defined.
11075 * sysdeps/x86/hp-timing.h (HP_TIMING_NOW): Use RDTSCP if
11076 USE_RDTSCP is defined.
11077
11078 2018-10-23 Adhemerval Zanella <adhemerval.zanella@linaro.org>
11079
11080 * misc/tst-preadvwritev2-common.c (IOV_MAX): Define if not
11081 defined.
11082
11083 [BZ #23709]
11084 * sysdeps/x86/cpu-features.c (init_cpu_features): Set TSX bits
11085 independently of other flags.
11086
11087 2018-10-23 Florian Weimer <fweimer@redhat.com>
11088
11089 * time/tst-mktime2.c (N_STRINGS): Remove.
11090 (set_timezone): New function.
11091 (spring_forward_gap): Call it. Use FAIL_EXIT1.
11092 (mktime_test1): Report localtime failure and check errno value.
11093 Use TEST_COMPARE.
11094 (irix_6_4_bug, bigtime_test): Use TEST_COMPARE.
11095 (do_test): Remove alarm call. Use set_timezone and array_length.
11096
11097 2018-10-23 Andreas Schwab <schwab@suse.de>
11098
11099 * sysdeps/unix/sysv/linux/riscv/setcontext.S (__setcontext)
11100 (__start_context): Use END instead of PSEUDO_END.
11101
11102 2018-10-22 Joseph Myers <joseph@codesourcery.com>
11103
11104 * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
11105 version to 4.19.
11106
11107 * scripts/build-many-glibcs.py (Context.checkout): Default Linux
11108 version to 4.19.
11109
11110 [BZ #23793]
11111 * wcsmbs/c32rtomb.c: New file.
11112 * wcsmbs/mbrtoc32.c: Likewise.
11113 * wcsmbs/tst-c32-state.c: Likewise.
11114 * wcsmbs/mbrtowc.c (mbrtoc32): Do not define as alias.
11115 * wcsmbs/wcrtomb.c (c32rtomb): Likewise.
11116 * wcsmbs/Makefile (routines): Add mbrtoc32 and c32rtomb.
11117 (tests): Add tst-c32-state.
11118 [$(run-built-tests) = yes] ($(objpfx)tst-c32-state.out): Depend on
11119 $(gen-locales).
11120
11121 2018-10-21 H.J. Lu <hongjiu.lu@intel.com>
11122
11123 * sysdeps/x86/hp-timing.h: Don't include <x86intrin.h>.
11124 (HP_TIMING_NOW): Replace _rdtsc with __builtin_ia32_rdtsc.
11125
11126 2018-10-19 Joseph Myers <joseph@codesourcery.com>
11127
11128 [BZ #23794]
11129 * wcsmbs/c16rtomb.c (c16rtomb): Save first character of surrogate
11130 pair and return 0 in that case, and use saved character to
11131 interpret following character.
11132 * wcsmbs/tst-c16-surrogate.c: New file.
11133 * wcsmbs/Makefile (tests): Add tst-c16-surrogate.c.
11134 [$(run-built-tests) = yes] ($(objpfx)tst-c16-surrogate.out):
11135 Depend on $(gen-locales)
11136
11137 2018-10-19 Ilya Yu. Malakhov <malakhov@mcst.ru>
11138
11139 [BZ #23562]
11140 * sysdeps/unix/sysv/linux/bits/types/siginfo_t.h
11141 (struct siginfo_t): Use correct type for si_band.
11142
11143 2018-10-19 Florian Weimer <fweimer@redhat.com>
11144
11145 [BZ #23689]
11146 * resource/bits/types/struct_rusage.h (struct rusage): Update
11147 comment on struct. Remove extraneous field comment.
11148
11149 2018-10-18 David S. Miller <davem@davemloft.net>
11150
11151 * sysdeps/unix/sysv/linux/sparc/init-first.c: New file.
11152 * sysdeps/unix/sysv/linux/sparc/libc-vdso.h: New file.
11153 * sysdeps/unix/sysv/linux/sparc/Makefile: Add dl-vdso to
11154 sysdep_routines in subdir elf.
11155 * sysdeps/unix/sysv/linux/sparc/Versions: Add GLIBC_PRIVATE
11156 version for __vdso_clock_gettime.
11157 * sysdeps/unix/sysv/linux/sparc/sysdep.h (INTERNAL_VSYSCALL_CALL):
11158 Define.
11159 (HAVE_CLOCK_GETTIME_VSYSCALL): Define.
11160 (HAVE_GETTIMEOFDAY_VSYSCALL): Define.
11161
11162 * sysdeps/sparc/fpu/libm-test-ulps: Regenerated.
11163
11164 2018-10-17 H.J. Lu <hongjiu.lu@intel.com>
11165
11166 * sysdeps/i386/init-arch.h: Removed.
11167 * sysdeps/i386/i586/init-arch.h: Likewise.
11168 * sysdeps/i386/i686/init-arch.h: Likewise.
11169 * sysdeps/i386/i686/hp-timing.h: Likewise.
11170 * sysdeps/x86_64/hp-timing.h: Likewise.
11171 * sysdeps/i386/isa.h: New file.
11172 * sysdeps/i386/i586/isa.h: Likewise.
11173 * sysdeps/i386/i686/isa.h: Likewise.
11174 * sysdeps/x86_64/isa.h: Likewise.
11175 * sysdeps/x86/hp-timing.h: New file.
11176 * sysdeps/x86/init-arch.h: Include <isa.h>.
11177
11178 2018-10-17 Joseph Myers <joseph@codesourcery.com>
11179
11180 * math/libm-test-pow.inc (pow_test_data): Do not allow
11181 divide-by-zero exception for pow(+/- 0, -Inf).
11182
11183 2018-10-17 Zack Weinberg <zackw@panix.com>
11184
11185 * manual/job.texi (Job Control is Optional): Remove node, as
11186 job control has not been optional in quite some time.
11187 (Job Control): Mention briefly that systems older than
11188 POSIX.1-2001 might not support job control.
11189 * manual/conf.texi (_POSIX_JOB_CONTROL): Will always be
11190 defined on systems conforming to POSIX.1-2001.
11191
11192 2018-10-17 Arjun Shankar <arjun@redhat.com>
11193
11194 [BZ #22062]
11195 * iconv/gconv_conf.c (__gconv_get_path): Remove locking and fix
11196 indentation.
11197 * (__gconv_read_conf): Mark function static.
11198 * (once): New static variable.
11199 * (__gconv_load_conf): New function.
11200 * iconv/gconv_int.h (__gconv_load_conf): Likewise.
11201 * iconv/gconv_db.c (once): Remove static variable.
11202 * (__gconv_compare_alias): Use __gconv_load_conf instead of
11203 __gconv_read_conf.
11204 * (__gconv_find_transform): Likewise.
11205 * iconv/tst-iconv-mt.c: New test.
11206 * iconv/Makefile: Add tst-iconv_mt.
11207
11208 2018-10-17 Joseph Myers <joseph@codesourcery.com>
11209
11210 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
11211 bits/shm-pad.h.
11212 * sysdeps/unix/sysv/linux/bits/shm.h: Include <bits/shm-pad.h>.
11213 (shmatt_t): Define as __syscall_ulong_t.
11214 (__SHM_PAD_TIME): New macro, depending on [__SHM_PAD_BEFORE_TIME]
11215 and [__SHM_PAD_AFTER_TIME].
11216 (struct shmid_ds): Define time fields using __SHM_PAD_TIME.
11217 Define shm_segsz and associated padding based on
11218 [__SHM_SEGSZ_AFTER_TIME] and [__SHM_PAD_BETWEEN_TIME_AND_SEGSZ].
11219 Use __syscall_ulong_t instead of unsigned long int.
11220 [__USE_MISC] (struct shminfo): Use __syscall_ulong_t instead of
11221 unsigned long int.
11222 [__USE_MISC] (struct shm_info): Likewise.
11223 * sysdeps/unix/sysv/linux/bits/shm-pad.h: New file.
11224 * sysdeps/unix/sysv/linux/hppa/bits/shm-pad.h: Likewise.
11225 * sysdeps/unix/sysv/linux/mips/bits/shm-pad.h: Likewise.
11226 * sysdeps/unix/sysv/linux/powerpc/bits/shm-pad.h: Likewise.
11227 * sysdeps/unix/sysv/linux/sparc/bits/shm-pad.h: Likewise.
11228 * sysdeps/unix/sysv/linux/x86/bits/shm-pad.h: Likewise.
11229 * sysdeps/unix/sysv/linux/hppa/bits/shm.h: Remove.
11230 * sysdeps/unix/sysv/linux/mips/bits/shm.h: Likewise.
11231 * sysdeps/unix/sysv/linux/powerpc/bits/shm.h: Likewise.
11232 * sysdeps/unix/sysv/linux/sparc/bits/shm.h: Likewise.
11233 * sysdeps/unix/sysv/linux/x86/bits/shm.h: Likewise.
11234
11235 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
11236 bits/shmlba.h.
11237 * sysdeps/unix/sysv/linux/bits/shm.h: Include <bits/shmlba.h>.
11238 (SHMLBA): Remove macro.
11239 (__getpagesize): Remove function declaration.
11240 * sysdeps/unix/sysv/linux/hppa/bits/shm.h: Include
11241 <bits/shmlba.h>.
11242 (SHMLBA): Remove macro.
11243 * sysdeps/unix/sysv/linux/mips/bits/shm.h: Include
11244 <bits/shmlba.h>.
11245 (SHMLBA): Remove macro.
11246 * sysdeps/unix/sysv/linux/powerpc/bits/shm.h: Include
11247 <bits/shmlba.h>.
11248 (SHMLBA): Remove macro.
11249 (__getpagesize): Remove function declaration.
11250 * sysdeps/unix/sysv/linux/sparc/bits/shm.h: Include
11251 <bits/shmlba.h>.
11252 (SHMLBA): Remove macro.
11253 (__getshmlba): Remove function declaration.
11254 * sysdeps/unix/sysv/linux/x86/bits/shm.h: Include <bits/shmlba.h>.
11255 (SHMLBA): Remove macro.
11256 (__getpagesize): Remove function declaration.
11257 * sysdeps/unix/sysv/linux/arm/bits/shm.h: Remove file.
11258 * sysdeps/unix/sysv/linux/ia64/bits/shm.h: Likewise.
11259 * sysdeps/unix/sysv/linux/sh/bits/shm.h: Likewise.
11260 * sysdeps/unix/sysv/linux/bits/shmlba.h: New file.
11261 * sysdeps/unix/sysv/linux/arm/bits/shmlba.h: Likewise.
11262 * sysdeps/unix/sysv/linux/hppa/bits/shmlba.h: Likewise.
11263 * sysdeps/unix/sysv/linux/ia64/bits/shmlba.h: Likewise.
11264 * sysdeps/unix/sysv/linux/mips/bits/shmlba.h: Likewise.
11265 * sysdeps/unix/sysv/linux/sh/bits/shmlba.h: Likewise.
11266 * sysdeps/unix/sysv/linux/sparc/bits/shmlba.h: Likewise.
11267
11268 2018-10-17 Stefan Liebler <stli@linux.ibm.com>
11269
11270 [BZ #23275]
11271 * nptl/tst-mutex10.c: New File.
11272 * nptl/Makefile (tests): Add tst-mutex10.
11273 (tst-mutex10-ENV): New variable.
11274 * sysdeps/unix/sysv/linux/s390/force-elision.h: (FORCE_ELISION):
11275 Ensure that elision path is used if elision is available.
11276 * sysdeps/unix/sysv/linux/powerpc/force-elision.h (FORCE_ELISION):
11277 Likewise.
11278 * sysdeps/unix/sysv/linux/x86/force-elision.h: (FORCE_ELISION):
11279 Likewise.
11280 * nptl/pthreadP.h (PTHREAD_MUTEX_TYPE, PTHREAD_MUTEX_TYPE_ELISION)
11281 (PTHREAD_MUTEX_PSHARED): Use atomic_load_relaxed.
11282 * nptl/pthread_mutex_consistent.c (pthread_mutex_consistent): Likewise.
11283 * nptl/pthread_mutex_getprioceiling.c (pthread_mutex_getprioceiling):
11284 Likewise.
11285 * nptl/pthread_mutex_lock.c (__pthread_mutex_lock_full)
11286 (__pthread_mutex_cond_lock_adjust): Likewise.
11287 * nptl/pthread_mutex_setprioceiling.c (pthread_mutex_setprioceiling):
11288 Likewise.
11289 * nptl/pthread_mutex_timedlock.c (__pthread_mutex_timedlock): Likewise.
11290 * nptl/pthread_mutex_trylock.c (__pthread_mutex_trylock): Likewise.
11291 * nptl/pthread_mutex_unlock.c (__pthread_mutex_unlock_full): Likewise.
11292 * sysdeps/nptl/bits/thread-shared-types.h (struct __pthread_mutex_s):
11293 Add comments.
11294 * nptl/pthread_mutex_destroy.c (__pthread_mutex_destroy):
11295 Use atomic_load_relaxed and atomic_store_relaxed.
11296 * nptl/pthread_mutex_init.c (__pthread_mutex_init):
11297 Use atomic_store_relaxed.
11298
11299 2018-10-17 Andreas Schwab <schwab@suse.de>
11300
11301 * benchtests/bench-strtod.c (TIMEOUT): Don't define.
11302 * crypt/badsalttest.c (TIMEOUT): Likewise.
11303 * crypt/sha256c-test.c (TIMEOUT): Likewise.
11304 * dirent/tst-fdopendir.c (TIMEOUT): Likewise.
11305 * io/test-lfs.c (TIMEOUT): Likewise.
11306 * libio/tst-atime.c (TIMEOUT): Likewise.
11307 * localedata/tst-leaks.c (TIMEOUT): Likewise.
11308 * nptl/tst-cancel19.c (TIMEOUT): Likewise.
11309 * nptl/tst-cancel22.c (TIMEOUT): Likewise.
11310 * nptl/tst-cancel25.c (TIMEOUT): Likewise.
11311 * nptl/tst-cancel7.c (TIMEOUT): Likewise.
11312 * nptl/tst-cond-except.c (TIMEOUT): Likewise.
11313 * nptl/tst-cond11.c (TIMEOUT): Likewise.
11314 * nptl/tst-cond14.c (TIMEOUT): Likewise.
11315 * nptl/tst-cond15.c (TIMEOUT): Likewise.
11316 * nptl/tst-cond24.c (TIMEOUT): Likewise.
11317 * nptl/tst-cond25.c (TIMEOUT): Likewise.
11318 * nptl/tst-kill2.c (TIMEOUT): Likewise.
11319 * nptl/tst-kill3.c (TIMEOUT): Likewise.
11320 * nptl/tst-mutex4.c (TIMEOUT): Likewise.
11321 * nptl/tst-mutex5.c (TIMEOUT): Likewise.
11322 * nptl/tst-mutex9.c (TIMEOUT): Likewise.
11323 * nptl/tst-once2.c (TIMEOUT): Likewise.
11324 * nptl/tst-once3.c (TIMEOUT): Likewise.
11325 * nptl/tst-once4.c (TIMEOUT): Likewise.
11326 * nptl/tst-robust8.c (TIMEOUT): Likewise.
11327 * nptl/tst-robust9.c (TIMEOUT): Likewise.
11328 * nptl/tst-rwlock16.c (TIMEOUT): Likewise.
11329 * nptl/tst-sem14.c (TIMEOUT): Likewise.
11330 * nptl/tst-sem6.c (TIMEOUT): Likewise.
11331 * nptl/tst-signal3.c (TIMEOUT): Likewise.
11332 * nptl/tst-spin4.c (TIMEOUT): Likewise.
11333 * nptl/tst-tls3.c (TIMEOUT): Likewise.
11334 * nptl/tst-tls4.c (TIMEOUT): Likewise.
11335 * posix/tst-chmod.c (TIMEOUT): Likewise.
11336 * posix/tst-getaddrinfo4.c (TIMEOUT): Likewise.
11337 * posix/tst-getaddrinfo5.c (TIMEOUT): Likewise.
11338 * posix/tst-preadwrite-common.c (TIMEOUT): Likewise.
11339 * posix/tst-regex2.c (TIMEOUT): Likewise.
11340 * posix/tst-waitid.c (TIMEOUT): Likewise.
11341 * rt/tst-aio.c (TIMEOUT): Likewise.
11342 * rt/tst-aio10.c (TIMEOUT): Likewise.
11343 * rt/tst-aio4.c (TIMEOUT): Likewise.
11344 * rt/tst-aio5.c (TIMEOUT): Likewise.
11345 * rt/tst-aio6.c (TIMEOUT): Likewise.
11346 * rt/tst-aio64.c (TIMEOUT): Likewise.
11347 * rt/tst-aio7.c (TIMEOUT): Likewise.
11348 * rt/tst-aio9.c (TIMEOUT): Likewise.
11349 * rt/tst-clock.c (TIMEOUT): Likewise.
11350 * rt/tst-cpuclock1.c (TIMEOUT): Likewise.
11351 * rt/tst-cpuclock2.c (TIMEOUT): Likewise.
11352 * rt/tst-mqueue2.c (TIMEOUT): Likewise.
11353 * rt/tst-mqueue4.c (TIMEOUT): Likewise.
11354 * rt/tst-mqueue5.c (TIMEOUT): Likewise.
11355 * rt/tst-timer4.c (TIMEOUT): Likewise.
11356 * stdio-common/tst-fseek.c (TIMEOUT): Likewise.
11357 * stdio-common/tst-rndseek.c (TIMEOUT): Likewise.
11358 * stdlib/tst-empty-env.c (TIMEOUT): Likewise.
11359 * sysdeps/wordsize-64/tst-writev.c (TIMEOUT): Likewise.
11360 * time/tst-ftime.c (TIMEOUT): Likewise.
11361 * timezone/tst-tzset.c (TIMEOUT): Likewise.
11362
11363 2018-10-16 Anton Youdkevitch <anton.youdkevitch@bell-sw.com>
11364
11365 * sysdeps/aarch64/multiarch/memcpy_thunderx.S: Remove thunderx2 code.
11366 * sysdeps/aarch64/multiarch/memcpy_thunderx2.S: New implementation
11367 for thunderX2.
11368
11369 2018-10-15 Joseph Myers <joseph@codesourcery.com>
11370
11371 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
11372 bits/sem-pad.h.
11373 * sysdeps/unix/sysv/linux/bits/sem.h: Include <bits/sem-pad.h>
11374 instead of <bits/wordsize.h>.
11375 (__SEM_PAD_TIME): New macro, depending on [__SEM_PAD_BEFORE_TIME]
11376 and [__SEM_PAD_AFTER_TIME].
11377 (struct semid_ds): Define time fields using __SEM_PAD_TIME. Use
11378 __syscall_ulong_t instead of unsigned long int.
11379 * sysdeps/unix/sysv/linux/bits/sem-pad.h: New file.
11380 * sysdeps/unix/sysv/linux/hppa/bits/sem-pad.h: Likewise.
11381 * sysdeps/unix/sysv/linux/mips/bits/sem-pad.h: Likewise.
11382 * sysdeps/unix/sysv/linux/powerpc/bits/sem-pad.h: Likewise.
11383 * sysdeps/unix/sysv/linux/sparc/bits/sem-pad.h: Likewise.
11384 * sysdeps/unix/sysv/linux/x86/bits/sem-pad.h: Likewise.
11385 * sysdeps/unix/sysv/linux/hppa/bits/sem.h: Remove.
11386 * sysdeps/unix/sysv/linux/mips/bits/sem.h: Likewise.
11387 * sysdeps/unix/sysv/linux/powerpc/bits/sem.h: Likewise.
11388 * sysdeps/unix/sysv/linux/sparc/bits/sem.h: Likewise.
11389 * sysdeps/unix/sysv/linux/x86/bits/sem.h: Likewise.
11390
11391 2018-10-14 Paul Eggert <eggert@cs.ucla.edu>
11392
11393 regex: simplify by using intprops.h
11394 [BZ#23744]
11395 * posix/regex_internal.h [_LIBC]: Include intprops.h.
11396 (TYPE_SIGNED, INT_ADD_WRAPV) [_LIBC]: Remove.
11397 intprops.h defines them.
11398
11399 regex: __builtin_expect → __glibc_unlikely
11400 [BZ#23744]
11401 This refactoring was prompted by a problem when the regex code is
11402 used as part of Gnulib and when the builder’s compiler does not grok
11403 __builtin_expect. Problem reported for Gawk by Nelson H.F. Beebe in:
11404 https://lists.gnu.org/r/bug-gnulib/2018-09/msg00137.html
11405 Although this refactoring does not fix the problem directly,
11406 we might as well have Gawk use the now-preferred glibc style for when
11407 __builtin_expect is unavailable.
11408 * posix/regex_internal.h (BE): Remove.
11409 All uses replaced by __glibc_unlikely or __glibc_likely.
11410
11411 2018-10-11 Joseph Myers <joseph@codesourcery.com>
11412
11413 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
11414 bits/msq-pad.h.
11415 * sysdeps/unix/sysv/linux/bits/msq.h: Include <bits/msq-pad.h>
11416 instead of <bits/wordsize.h>.
11417 (msgqnum_t): Define as __syscall_ulong_t.
11418 (msglen_t): Likewise.
11419 (__MSQ_PAD_TIME): New macro, depending on [__MSQ_PAD_BEFORE_TIME]
11420 and [__MSQ_PAD_AFTER_TIME].
11421 (struct msqid_ds): Define time fields using __MSQ_PAD_TIME. Use
11422 __syscall_ulong_t instead of unsigned long int.
11423 * sysdeps/unix/sysv/linux/bits/msq-pad.h: New file.
11424 * sysdeps/unix/sysv/linux/hppa/bits/msq-pad.h: Likewise.
11425 * sysdeps/unix/sysv/linux/mips/bits/msq-pad.h: Likewise.
11426 * sysdeps/unix/sysv/linux/powerpc/bits/msq-pad.h: Likewise.
11427 * sysdeps/unix/sysv/linux/sparc/bits/msq-pad.h: Likewise.
11428 * sysdeps/unix/sysv/linux/x86/bits/msq-pad.h: Likewise.
11429 * sysdeps/unix/sysv/linux/hppa/bits/msq.h: Remove.
11430 * sysdeps/unix/sysv/linux/mips/bits/msq.h: Likewise.
11431 * sysdeps/unix/sysv/linux/powerpc/bits/msq.h: Likewise.
11432 * sysdeps/unix/sysv/linux/sparc/bits/msq.h: Likewise.
11433 * sysdeps/unix/sysv/linux/x86/bits/msq.h: Likewise.
11434
11435 2018-10-10 Joseph Myers <joseph@codesourcery.com>
11436
11437 * sysdeps/unix/sysv/linux/bits/shm.h: Include <bits/wordsize.h>.
11438 (struct shmid_ds): Condition padding after time fields on
11439 [__WORDSIZE == 32].
11440 * sysdeps/unix/sysv/linux/alpha/bits/shm.h: Remove file.
11441 * sysdeps/unix/sysv/linux/generic/bits/shm.h: Likewise.
11442 * sysdeps/unix/sysv/linux/s390/bits/shm.h: Likewise.
11443
11444 * sysdeps/unix/sysv/linux/bits/sem.h: Include <bits/wordsize.h>.
11445 (struct semid_ds): Condition padding after time fields on
11446 [__WORDSIZE == 32].
11447 * sysdeps/unix/sysv/linux/alpha/bits/sem.h: Remove file.
11448 * sysdeps/unix/sysv/linux/generic/bits/sem.h: Likewise.
11449 * sysdeps/unix/sysv/linux/ia64/bits/sem.h: Likewise.
11450 * sysdeps/unix/sysv/linux/s390/bits/sem.h: Likewise.
11451
11452 * sysdeps/unix/sysv/linux/bits/msq.h: Include <bits/wordsize.h>.
11453 (struct msqid_ds): Condition padding after time fields on
11454 [__WORDSIZE == 32].
11455 * sysdeps/unix/sysv/linux/alpha/bits/msq.h: Remove file.
11456 * sysdeps/unix/sysv/linux/generic/bits/msq.h: Likewise.
11457 * sysdeps/unix/sysv/linux/ia64/bits/msq.h: Likewise.
11458 * sysdeps/unix/sysv/linux/s390/bits/msq.h: Likewise.
11459
11460 2018-10-09 Szabolcs Nagy <szabolcs.nagy@arm.com>
11461
11462 * nss/tst-nss-files-hosts-multi.c (TIMEOUT): Define.
11463
11464 2018-10-09 Szabolcs Nagy <szabolcs.nagy@arm.com>
11465
11466 * libio/tst-readline.c (TIMEOUT): Define.
11467
11468 2018-10-08 Paul Eggert <eggert@cs.ucla.edu>
11469
11470 mktime fix for Gnulib + coreutils
11471 [BZ#23745]
11472 This fix affects only Gnulib. Problem discovered when
11473 mktime.c was used as part of Gnulib in bleeding-edge Coreutils.
11474 * time/mktime.c:
11475 (my_tzset) [!_LIBC && !NEED_MKTIME_WORKING && !NEED_MKTIME_WINDOWS]:
11476 Do not define since it is not used. Defining an unused static
11477 function prompts a warning from GCC when Coreutils is configured
11478 with --enable-gcc-warnings.
11479
11480 2018-10-08 Leonardo Sandoval <leonardo.sandoval.gonzalez@intel.com>
11481
11482 * benchtests/scripts/compare_bench.py (main): set float type on
11483 threshold argument.
11484
11485 2018-10-08 Rafał Lużyński <digitalfreak@lingonborough.com>
11486
11487 [BZ #23740]
11488 * localedata/locales/kl_GL (mon): Update, the relative case.
11489 (alt_mon): Add, fill with month names in the nominative case.
11490 (d_t_fmt): Set to "%a %b %d %Y %T %Z".
11491 (d_fmt): Set to "%b %d %Y".
11492
11493 2018-10-04 Joseph Myers <joseph@codesourcery.com>
11494
11495 * sysdeps/unix/sysv/linux/hppa/bits/mman.h: Include
11496 <bits/mman-linux.h>.
11497 (PROT_READ): Don't define here.
11498 (PROT_WRITE): Likewise.
11499 (PROT_EXEC): Likewise.
11500 (PROT_NONE): Likewise.
11501 (PROT_GROWSDOWN): Likewise.
11502 (PROT_GROWSUP): Likewise.
11503 (MAP_SHARED): Likewise.
11504 (MAP_PRIVATE): Likewise.
11505 [__USE_MISC] (MAP_SHARED_VALIDATE): Likewise.
11506 [__USE_MISC] (MAP_FILE): Likewise.
11507 [__USE_MISC] (MAP_ANONYMOUS): Likewise.
11508 [__USE_MISC] (MAP_ANON): Likewise.
11509 [__USE_MISC] (MAP_HUGE_SHIFT): Likewise.
11510 [__USE_MISC] (MAP_HUGE_MASK): Likewise.
11511 (MCL_CURRENT): Likewise.
11512 (MCL_FUTURE): Likewise.
11513 (MCL_ONFAULT): Likewise.
11514 [__USE_MISC] (MADV_NORMAL): Likewise.
11515 [__USE_MISC] (MADV_RANDOM): Likewise.
11516 [__USE_MISC] (MADV_SEQUENTIAL): Likewise.
11517 [__USE_MISC] (MADV_WILLNEED): Likewise.
11518 [__USE_MISC] (MADV_DONTNEED): Likewise.
11519 [__USE_MISC] (MADV_FREE): Likewise.
11520 [__USE_MISC] (MADV_REMOVE): Likewise.
11521 [__USE_MISC] (MADV_DONTFORK): Likewise.
11522 [__USE_MISC] (MADV_DOFORK): Likewise.
11523 [__USE_MISC] (MADV_HWPOISON): Likewise.
11524 [__USE_XOPEN2K] (POSIX_MADV_NORMAL): Likewise.
11525 [__USE_XOPEN2K] (POSIX_MADV_RANDOM): Likewise.
11526 [__USE_XOPEN2K] (POSIX_MADV_SEQUENTIAL): Likewise.
11527 [__USE_XOPEN2K] (POSIX_MADV_WILLNEED): Likewise.
11528 [__USE_XOPEN2K] (POSIX_MADV_DONTNEED): Likewise.
11529 (__MAP_ANONYMOUS): New macro.
11530 [__USE_MISC] (MAP_TYPE): Undefine and redefine after
11531 <bits/mman-linux.h> inclusion.
11532 (MAP_FIXED): Likewise.
11533 (MS_SYNC): Likewise.
11534 (MS_ASYNC): Likewise.
11535 (MS_INVALIDATE): Likewise.
11536 [__USE_MISC] (MADV_MERGEABLE): Likewise.
11537 [__USE_MISC] (MADV_UNMERGEABLE): Likewise.
11538 [__USE_MISC] (MADV_HUGEPAGE): Likewise.
11539 [__USE_MISC] (MADV_NOHUGEPAGE): Likewise.
11540 [__USE_MISC] (MADV_DONTDUMP): Likewise.
11541 [__USE_MISC] (MADV_DODUMP): Likewise.
11542 [__USE_MISC] (MADV_WIPEONFORK): Likewise.
11543 [__USE_MISC] (MADV_KEEPONFORK): Likewise.
11544
11545 [BZ #23735]
11546 * sysdeps/ieee754/ldbl-opt/nldbl-compat.h (NO_MATH_REDIRECT):
11547 Define.
11548 * sysdeps/ieee754/ldbl-opt/test-nldbl-redirect.c: New file.
11549 * sysdeps/ieee754/ldbl-opt/Makefile [$(subdir) = math] (tests):
11550 Add test-nldbl-redirect.
11551 [$(subdir) = math] (CFLAGS-test-nldbl-redirect.c): New variable.
11552 [$(subdir) = math] ($(objpfx)test-nldbl-redirect): Depend on
11553 $(objpfx)libnldbl_nonshared.a.
11554
11555 2018-10-04 Stefan Liebler <stli@linux.ibm.com>
11556
11557 * support/support.h (support_objdir_elf_ldso): New variable.
11558 * support/support_paths.c (support_objdir_elf_ldso): Likewise.
11559 * support/Makefile (CFLAGS-support_paths.c): Add definition
11560 for OBJDIR_ELF_LDSO_PATH.
11561 * support/test-container.c (main): Search for the ld.so
11562 which is also used by the testsuite.
11563
11564 2018-10-02 Rafał Lużyński <digitalfreak@lingonborough.com>
11565
11566 [BZ #20209]
11567 * localedata/locales/kl_GL: (abday): Fix spelling of Sun (Sunday),
11568 should be "sap" rather than "sab".
11569 (day): Fix spelling of Sunday, should be "sapaat" rather than
11570 "sabaat".
11571
11572 2018-10-02 Joseph Myers <joseph@codesourcery.com>
11573
11574 * math/libm-test-fma.inc (fma_test_data): Add more tests.
11575
11576 2018-10-02 Martin Jansa <Martin.Jansa@gmail.com>
11577
11578 [BZ #19444]
11579 * sysdeps/ieee754/soft-fp/s_fdiv.c: Include <libc-diag.h> and use
11580 DIAG_PUSH_NEEDS_COMMENT, DIAG_IGNORE_NEEDS_COMMENT and
11581 DIAG_POP_NEEDS_COMMENT to disable -Wmaybe-uninitialized.
11582
11583 2018-10-02 Adhemerval Zanella <adhemerval.zanella@linaro.org>
11584
11585 * sysdeps/unix/sysv/linux/fd_to_filename.h: Add missing includes.
11586
11587 2018-10-02 H.J. Lu <hongjiu.lu@intel.com>
11588
11589 * sysdeps/unix/sysv/linux/x86/Makefile (CFLAGS-elision-lock.c):
11590 Add -mrtm.
11591 (CFLAGS-elision-unlock.c): Likewise.
11592 (CFLAGS-elision-timed.c): Likewise.
11593 (CFLAGS-elision-trylock.c): Likewise.
11594 * sysdeps/unix/sysv/linux/x86/hle.h: Rewritten.
11595
11596 2018-10-02 Adhemerval Zanella <adhemerval.zanella@linaro.org>
11597
11598 [BZ #21037]
11599 * libio/Makefile (tests): Add tst-memstream4 and tst-wmemstream4.
11600 * libio/freopen.c (freopen): Sync stream before reopen and adjust to
11601 new fd_to_filename interface.
11602 * libio/freopen64.c (freopen64): Likewise.
11603 * libio/tst-memstream.h: New file.
11604 * libio/tst-memstream4.c: Likewise.
11605 * libio/tst-wmemstream4.c: Likewise.
11606 * sysdeps/generic/fd_to_filename.h (fd_to_filename): Change signature.
11607 * sysdeps/unix/sysv/linux/fd_to_filename.h (fd_to_filename): Likewise
11608 and remove internal dynamic allocation.
11609
11610 2018-10-01 Joseph Myers <joseph@codesourcery.com>
11611
11612 * sysdeps/unix/sysv/linux/bits/mman-linux.h [__USE_GNU]
11613 (MREMAP_MAYMOVE): Do not define here.
11614 [__USE_GNU] (MREMAP_FIXED): Likewise.
11615 * sysdeps/unix/sysv/linux/bits/mman-shared.h [__USE_GNU]
11616 (MREMAP_MAYMOVE): Define here instead.
11617 [__USE_GNU] (MREMAP_FIXED): Likewise.
11618 * sysdeps/unix/sysv/linux/hppa/bits/mman.h [__USE_GNU]
11619 (MREMAP_MAYMOVE): Remove.
11620 [__USE_GNU] (MREMAP_FIXED): Likewise.
11621
11622 2018-09-28 Joseph Myers <joseph@codesourcery.com>
11623
11624 * math/fromfp.h: Do not include <math_private.h>.
11625 * math/s_cacosh_template.c: Likewise.
11626 * math/s_casin_template.c: Likewise.
11627 * math/s_casinh_template.c: Likewise.
11628 * math/s_ccos_template.c: Likewise.
11629 * math/s_cproj_template.c: Likewise.
11630 * math/s_fdim_template.c: Likewise.
11631 * math/s_fmaxmag_template.c: Likewise.
11632 * math/s_fminmag_template.c: Likewise.
11633 * math/s_iseqsig_template.c: Likewise.
11634 * math/s_ldexp_template.c: Likewise.
11635 * math/s_nextdown_template.c: Likewise.
11636 * math/w_log1p_template.c: Likewise.
11637 * math/w_scalbln_template.c: Likewise.
11638 * sysdeps/aarch64/fpu/feholdexcpt.c: Likewise.
11639 * sysdeps/aarch64/fpu/fesetround.c: Likewise.
11640 * sysdeps/aarch64/fpu/fgetexcptflg.c: Likewise.
11641 * sysdeps/aarch64/fpu/ftestexcept.c: Likewise.
11642 * sysdeps/aarch64/fpu/s_llrint.c: Likewise.
11643 * sysdeps/aarch64/fpu/s_llrintf.c: Likewise.
11644 * sysdeps/aarch64/fpu/s_lrint.c: Likewise.
11645 * sysdeps/aarch64/fpu/s_lrintf.c: Likewise.
11646 * sysdeps/i386/fpu/s_atanl.c: Likewise.
11647 * sysdeps/i386/fpu/s_f32xaddf64.c: Likewise.
11648 * sysdeps/i386/fpu/s_f32xsubf64.c: Likewise.
11649 * sysdeps/i386/fpu/s_fdim.c: Likewise.
11650 * sysdeps/i386/fpu/s_logbl.c: Likewise.
11651 * sysdeps/i386/fpu/s_rintl.c: Likewise.
11652 * sysdeps/i386/fpu/s_significandl.c: Likewise.
11653 * sysdeps/ia64/fpu/s_matherrf.c: Likewise.
11654 * sysdeps/ia64/fpu/s_matherrl.c: Likewise.
11655 * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
11656 * sysdeps/ieee754/dbl-64/s_cbrt.c: Likewise.
11657 * sysdeps/ieee754/dbl-64/s_fma.c: Likewise.
11658 * sysdeps/ieee754/dbl-64/s_fmaf.c: Likewise.
11659 * sysdeps/ieee754/flt-32/s_cbrtf.c: Likewise.
11660 * sysdeps/ieee754/k_standardf.c: Likewise.
11661 * sysdeps/ieee754/k_standardl.c: Likewise.
11662 * sysdeps/ieee754/ldbl-128ibm/s_copysignl.c: Likewise.
11663 * sysdeps/ieee754/ldbl-64-128/s_finitel.c: Likewise.
11664 * sysdeps/ieee754/ldbl-64-128/s_fpclassifyl.c: Likewise.
11665 * sysdeps/ieee754/ldbl-64-128/s_isinfl.c: Likewise.
11666 * sysdeps/ieee754/ldbl-64-128/s_isnanl.c: Likewise.
11667 * sysdeps/ieee754/ldbl-64-128/s_signbitl.c: Likewise.
11668 * sysdeps/ieee754/ldbl-96/s_cbrtl.c: Likewise.
11669 * sysdeps/ieee754/ldbl-96/s_fma.c: Likewise.
11670 * sysdeps/ieee754/ldbl-96/s_fmal.c: Likewise.
11671 * sysdeps/ieee754/s_signgam.c: Likewise.
11672 * sysdeps/powerpc/power5+/fpu/s_modf.c: Likewise.
11673 * sysdeps/powerpc/power5+/fpu/s_modff.c: Likewise.
11674 * sysdeps/powerpc/power7/fpu/s_logbf.c: Likewise.
11675 * sysdeps/riscv/rv64/rvd/s_ceil.c: Likewise.
11676 * sysdeps/riscv/rv64/rvd/s_floor.c: Likewise.
11677 * sysdeps/riscv/rv64/rvd/s_nearbyint.c: Likewise.
11678 * sysdeps/riscv/rv64/rvd/s_round.c: Likewise.
11679 * sysdeps/riscv/rv64/rvd/s_roundeven.c: Likewise.
11680 * sysdeps/riscv/rv64/rvd/s_trunc.c: Likewise.
11681 * sysdeps/riscv/rvd/s_finite.c: Likewise.
11682 * sysdeps/riscv/rvd/s_fmax.c: Likewise.
11683 * sysdeps/riscv/rvd/s_fmin.c: Likewise.
11684 * sysdeps/riscv/rvd/s_fpclassify.c: Likewise.
11685 * sysdeps/riscv/rvd/s_isinf.c: Likewise.
11686 * sysdeps/riscv/rvd/s_isnan.c: Likewise.
11687 * sysdeps/riscv/rvd/s_issignaling.c: Likewise.
11688 * sysdeps/riscv/rvf/fegetround.c: Likewise.
11689 * sysdeps/riscv/rvf/feholdexcpt.c: Likewise.
11690 * sysdeps/riscv/rvf/fesetenv.c: Likewise.
11691 * sysdeps/riscv/rvf/fesetround.c: Likewise.
11692 * sysdeps/riscv/rvf/feupdateenv.c: Likewise.
11693 * sysdeps/riscv/rvf/fgetexcptflg.c: Likewise.
11694 * sysdeps/riscv/rvf/ftestexcept.c: Likewise.
11695 * sysdeps/riscv/rvf/s_ceilf.c: Likewise.
11696 * sysdeps/riscv/rvf/s_finitef.c: Likewise.
11697 * sysdeps/riscv/rvf/s_floorf.c: Likewise.
11698 * sysdeps/riscv/rvf/s_fmaxf.c: Likewise.
11699 * sysdeps/riscv/rvf/s_fminf.c: Likewise.
11700 * sysdeps/riscv/rvf/s_fpclassifyf.c: Likewise.
11701 * sysdeps/riscv/rvf/s_isinff.c: Likewise.
11702 * sysdeps/riscv/rvf/s_isnanf.c: Likewise.
11703 * sysdeps/riscv/rvf/s_issignalingf.c: Likewise.
11704 * sysdeps/riscv/rvf/s_nearbyintf.c: Likewise.
11705 * sysdeps/riscv/rvf/s_roundevenf.c: Likewise.
11706 * sysdeps/riscv/rvf/s_roundf.c: Likewise.
11707 * sysdeps/riscv/rvf/s_truncf.c: Likewise.
11708 * sysdeps/riscv/rv64/rvd/s_rint.c: Include <stdbool.h> instead of
11709 <math_private.h>.
11710 * sysdeps/riscv/rvf/s_rintf.c: Likewise.
11711
11712 2018-09-28 H.J. Lu <hongjiu.lu@intel.com>
11713
11714 [BZ #23716]
11715 * sysdeps/i386/dl-cet.c: Removed.
11716 * sysdeps/i386/dl-machine.h (_dl_runtime_resolve_shstk): New
11717 prototype.
11718 (_dl_runtime_profile_shstk): Likewise.
11719 (elf_machine_runtime_setup): Use _dl_runtime_profile_shstk or
11720 _dl_runtime_resolve_shstk if SHSTK is enabled by kernel.
11721
11722 2018-09-28 Adhemerval Zanella <adhemerval.zanella@linaro.org>
11723
11724 [BZ #23579]
11725 * misc/tst-preadvwritev2-common.c (do_test_with_invalid_fd,
11726 do_test_with_invalid_iov): New tests.
11727 * misc/tst-preadvwritev2.c, misc/tst-preadvwritev64v2.c (do_test):
11728 Call do_test_with_invalid_fd and do_test_with_invalid_iov.
11729 * sysdeps/unix/sysv/linux/preadv2.c (preadv2): Use fallback code iff
11730 errno is ENOSYS.
11731 * sysdeps/unix/sysv/linux/preadv64v2.c (preadv64v2): Likewise.
11732 * sysdeps/unix/sysv/linux/pwritev2.c (pwritev2): Likewise.
11733 * sysdeps/unix/sysv/linux/pwritev64v2.c (pwritev64v2): Likewise.
11734
11735 2018-09-27 Joseph Myers <joseph@codesourcery.com>
11736
11737 * include/math.h [!_ISOMAC && !(__FINITE_MATH_ONLY__ &&
11738 __FINITE_MATH_ONLY__ > 0) && !NO_MATH_REDIRECT]
11739 (MATH_REDIRECT_BINARY_ARGS): New macro.
11740 [!_ISOMAC && !(__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0)
11741 && !NO_MATH_REDIRECT] (copysign): Redirect using MATH_REDIRECT.
11742 * sysdeps/alpha/fpu/s_copysign.c: Define NO_MATH_REDIRECT before
11743 header inclusion.
11744 * sysdeps/alpha/fpu/s_copysignf.c: Likewise.
11745 * sysdeps/ieee754/dbl-64/s_copysign.c: Likewise.
11746 * sysdeps/ieee754/float128/s_copysignf128.c: Likewise.
11747 * sysdeps/ieee754/flt-32/s_copysignf.c: Likewise.
11748 * sysdeps/ieee754/ldbl-128/s_copysignl.c: Likewise.
11749 * sysdeps/ieee754/ldbl-128ibm/s_copysignl.c: Likewise.
11750 * sysdeps/ieee754/ldbl-96/s_copysignl.c: Likewise.
11751 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_copysign.c:
11752 Likewise.
11753 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_copysignf.c:
11754 Likewise.
11755 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysign.c: Likewise.
11756 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysignf.c: Likewise.
11757 * sysdeps/riscv/rvd/s_copysign.c: Likewise.
11758 * sysdeps/riscv/rvf/s_copysignf.c: Likewise.
11759 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.c:
11760 Likewise.
11761 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf.c:
11762 Likewise.
11763 * sysdeps/generic/math_private_calls.h
11764 [!__MATH_DECLARING_LONG_DOUBLE || !NO_LONG_DOUBLE] (__copysign):
11765 Do not declare and define as an inline function.
11766 * math/divtc3.c (__divtc3): Use copysign functions instead of
11767 __copysign variants.
11768 * math/multc3.c (__multc3): Likewise.
11769 * sysdeps/generic/math-type-macros.h (M_COPYSIGN): Likewise.
11770 * sysdeps/ieee754/dbl-64/e_atan2.c (signArctan2): Likewise.
11771 * sysdeps/ieee754/dbl-64/e_atanh.c (__ieee754_atanh): Likewise.
11772 * sysdeps/ieee754/dbl-64/e_gamma_r.c (__ieee754_gamma_r):
11773 Likewise.
11774 * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_jn): Likewise.
11775 (__ieee754_yn): Likewise.
11776 * sysdeps/ieee754/dbl-64/s_asinh.c (__asinh): Likewise.
11777 * sysdeps/ieee754/dbl-64/s_atan.c (__signArctan): Likewise.
11778 * sysdeps/ieee754/dbl-64/s_scalbln.c (__scalbln): Likewise.
11779 * sysdeps/ieee754/dbl-64/s_scalbn.c (__scalbn): Likewise.
11780 * sysdeps/ieee754/dbl-64/s_sin.c (do_sin): Likewise.
11781 (__sin): Likewise.
11782 * sysdeps/ieee754/dbl-64/s_sincos.c (__sincos): Likewise.
11783 * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c (__nearbyint):
11784 Likewise.
11785 * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbln.c (__scalbln):
11786 Likewise.
11787 * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbn.c (__scalbn):
11788 Likewise.
11789 * sysdeps/ieee754/flt-32/e_atanhf.c (__ieee754_atanhf): Likewise.
11790 * sysdeps/ieee754/flt-32/e_gammaf_r.c (__ieee754_gammaf_r):
11791 Likewise.
11792 * sysdeps/ieee754/flt-32/e_jnf.c (__ieee754_jnf): Likewise.
11793 (__ieee754_ynf): Likewise.
11794 * sysdeps/ieee754/flt-32/s_asinhf.c (__asinhf): Likewise.
11795 * sysdeps/ieee754/flt-32/s_scalbnf.c (__scalbnf): Likewise.
11796 * sysdeps/ieee754/k_standard.c (__kernel_standard): Likewise.
11797 * sysdeps/ieee754/ldbl-128/e_gammal_r.c (__ieee754_gammal_r):
11798 Likewise.
11799 * sysdeps/ieee754/ldbl-128/e_jnl.c (__ieee754_jnl): Likewise.
11800 (__ieee754_ynl): Likewise.
11801 * sysdeps/ieee754/ldbl-128/s_scalblnl.c (__scalblnl): Likewise.
11802 * sysdeps/ieee754/ldbl-128/s_scalbnl.c (__scalbnl): Likewise.
11803 * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (__ieee754_gammal_r):
11804 Likewise.
11805 * sysdeps/ieee754/ldbl-128ibm/e_jnl.c (__ieee754_jnl): Likewise.
11806 (__ieee754_ynl): Likewise.
11807 * sysdeps/ieee754/ldbl-128ibm/s_fmal.c (__fmal): Likewise.
11808 * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c (__scalblnl): Likewise.
11809 * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c (__scalbnl): Likewise.
11810 * sysdeps/ieee754/ldbl-96/e_gammal_r.c (__ieee754_gammal_r):
11811 Likewise.
11812 * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_jnl): Likewise.
11813 (__ieee754_ynl)
11814 * sysdeps/ieee754/ldbl-96/s_asinhl.c (__asinhl): Likewise.
11815 * sysdeps/ieee754/ldbl-96/s_scalblnl.c (__scalblnl): Likewise.
11816 * sysdeps/ieee754/ldbl-opt/nldbl-copysign.c (copysignl): Likewise.
11817 * sysdeps/powerpc/power5+/fpu/s_modf.c (__modf): Likewise.
11818 * sysdeps/powerpc/power5+/fpu/s_modff.c (__modff): Likewise.
11819
11820 * include/math.h [!_ISOMAC && !(__FINITE_MATH_ONLY__ &&
11821 __FINITE_MATH_ONLY__ > 0) && !NO_MATH_REDIRECT] (round): Redirect
11822 using MATH_REDIRECT.
11823 * sysdeps/aarch64/fpu/s_round.c: Define NO_MATH_REDIRECT before
11824 header inclusion.
11825 * sysdeps/aarch64/fpu/s_roundf.c: Likewise.
11826 * sysdeps/ieee754/dbl-64/s_round.c: Likewise.
11827 * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c: Likewise.
11828 * sysdeps/ieee754/float128/s_roundf128.c: Likewise.
11829 * sysdeps/ieee754/flt-32/s_roundf.c: Likewise.
11830 * sysdeps/ieee754/ldbl-128/s_roundl.c: Likewise.
11831 * sysdeps/ieee754/ldbl-96/s_roundl.c: Likewise.
11832 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_round.c: Likewise.
11833 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_roundf.c: Likewise.
11834 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_round.c: Likewise.
11835 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_roundf.c: Likewise.
11836 * sysdeps/riscv/rv64/rvd/s_round.c: Likewise.
11837 * sysdeps/riscv/rvf/s_roundf.c: Likewise.
11838 * sysdeps/ieee754/ldbl-128ibm/s_roundl.c: Likewise.
11839 (round): Redirect to __round.
11840 (__roundl): Call round instead of __round.
11841 * sysdeps/powerpc/fpu/math_private.h [_ARCH_PWR5X] (__round):
11842 Remove macro.
11843 [_ARCH_PWR5X] (__roundf): Likewise.
11844 * sysdeps/ieee754/dbl-64/e_gamma_r.c (gamma_positive): Use round
11845 functions instead of __round variants.
11846 * sysdeps/ieee754/flt-32/e_gammaf_r.c (gammaf_positive): Likewise.
11847 * sysdeps/ieee754/ldbl-128/e_gammal_r.c (gammal_positive):
11848 Likewise.
11849 * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (gammal_positive):
11850 Likewise.
11851 * sysdeps/ieee754/ldbl-96/e_gammal_r.c (gammal_positive):
11852 Likewise.
11853 * sysdeps/x86/fpu/powl_helper.c (__powl_helper): Likewise.
11854 * sysdeps/ieee754/ldbl-128ibm/e_expl.c (lroundl): Redirect to
11855 __lroundl.
11856 (__ieee754_expl): Call roundl instead of __roundl.
11857
11858 2018-09-27 Andreas Schwab <schwab@suse.de>
11859
11860 [BZ #23717]
11861 * stdlib/tst-setcontext9.c (f1a): Make st2 static.
11862 (do_test): Make st1 static.
11863
11864 2018-09-26 Andreas Schwab <schwab@suse.de>
11865
11866 [BZ #23707]
11867 * sysdeps/powerpc/powerpc32/dl-start.S: Add unwind information.
11868 * elf/Makefile (tests): Add tst-unwind-ctor.
11869 (modules-names): Add tst-unwind-ctor-lib.
11870 ($(objpfx)tst-unwind-ctor): Depend on
11871 $(objpfx)tst-unwind-ctor-lib.so.
11872
11873 2018-09-26 Joseph Myers <joseph@codesourcery.com>
11874
11875 * sysdeps/unix/sysv/linux/bits/mman-map-flags-generic.h: New
11876 file. Most contents moved from ....
11877 * sysdeps/unix/sysv/linux/bits/mman.h: ... here. Move contents to
11878 and include <bits/mman-map-flags-generic.h>.
11879 * sysdeps/unix/sysv/linux/Makefile [$(subdir) = misc]
11880 (sysdep_headers): Add bits/mman-map-flags-generic.h.
11881 * sysdeps/unix/sysv/linux/ia64/bits/mman.h: Include
11882 <bits/mman-map-flags-generic.h>.
11883 [__USE_MISC] (MAP_GROWSUP): Only define this macro, not other
11884 macros defined in <bits/mman-map-flags-generic.h>.
11885 * sysdeps/unix/sysv/linux/x86/bits/mman.h: Include
11886 <bits/mman-map-flags-generic.h>.
11887 [__USE_MISC] (MAP_32BIT): Only define this macro, not other macros
11888 defined in <bits/mman-map-flags-generic.h>.
11889
11890 2018-09-26 Andreas Schwab <schwab@suse.de>
11891
11892 * Makefile ($(common-objpfx)testrun.sh): Remove leading space from
11893 output.
11894
11895 2018-09-25 Adam J. Richte <adam_richter2004@yahoo.com>
11896 Adhemerval Zanella <adhemerval.zanella@linaro.org>
11897 Fangrui Song <maskray@google.com>
11898
11899 [BZ #20480]
11900 * config.make.in (have-textrel_ifunc): New define.
11901 * configure.ac: Add check if linker supports textrel relocation with
11902 ifunc.
11903 * elf/Makefile [have-textrel_ifunc == yes] (ifunc-pie-tests): Add
11904 tst-ifunc-textrel.
11905 (CFLAGS-tst-ifunc-textrel.c): New rule.
11906 * elf/dl-reloc.c (_dl_relocate_object): Use all required flags on
11907 DT_TEXTREL segments, not only PROT_READ and PROT_WRITE.
11908 * elf/tst-ifunc-textrel.c: New file.
11909
11910 2018-09-25 Joseph Myers <joseph@codesourcery.com>
11911
11912 * sysdeps/unix/sysv/linux/sys/procfs.h: Include
11913 <bits/procfs-prregset.h>.
11914 (prgregset_t): Define using __prgregset_t.
11915 (prfpregset_t): Define using __prfpregset_t.
11916 * sysdeps/unix/sysv/linux/Makefile [$(subdir) = misc]
11917 (sysdep_headers): Add bits/procfs-prregset.h.
11918 * sysdeps/unix/sysv/linux/bits/procfs-prregset.h: New file.
11919 * sysdeps/unix/sysv/linux/alpha/bits/procfs-prregset.h: Likewise.
11920 * sysdeps/unix/sysv/linux/alpha/bits/procfs.h: Likewise.
11921 * sysdeps/unix/sysv/linux/alpha/sys/procfs.h: Remove file.
11922
11923 * sysdeps/unix/sysv/linux/sys/procfs.h: Include
11924 <bits/procfs-id.h> and <bits/procfs-extra.h>.
11925 (struct elf_prpsinfo): Use __pr_uid_t and __pr_gid_t as types of
11926 pr_uid and pr_gid.
11927 * sysdeps/unix/sysv/linux/Makefile [$(subdir) = misc]
11928 (sysdep_headers): Add bits/procfs-id.h and bits/procfs-extra.h.
11929 * sysdeps/unix/sysv/linux/bits/procfs-extra.h: New file.
11930 * sysdeps/unix/sysv/linux/bits/procfs-id.h: Likewise.
11931 * sysdeps/unix/sysv/linux/arm/bits/procfs-id.h: Likewise.
11932 * sysdeps/unix/sysv/linux/arm/bits/procfs.h: Likewise.
11933 * sysdeps/unix/sysv/linux/m68k/bits/procfs-id.h: Likewise.
11934 * sysdeps/unix/sysv/linux/m68k/bits/procfs.h: Likewise.
11935 * sysdeps/unix/sysv/linux/s390/bits/procfs-extra.h: Likewise.
11936 * sysdeps/unix/sysv/linux/s390/bits/procfs-id.h: Likewise.
11937 * sysdeps/unix/sysv/linux/s390/bits/procfs.h: Likewise.
11938 * sysdeps/unix/sysv/linux/sh/bits/procfs-id.h: Likewise.
11939 * sysdeps/unix/sysv/linux/sh/bits/procfs.h: Likewise.
11940 * sysdeps/unix/sysv/linux/sparc/bits/procfs-extra.h: Likewise.
11941 * sysdeps/unix/sysv/linux/sparc/bits/procfs-id.h: Likewise.
11942 * sysdeps/unix/sysv/linux/sparc/bits/procfs.h: Likewise.
11943 * sysdeps/unix/sysv/linux/x86/bits/procfs-id.h: Likewise.
11944 * sysdeps/unix/sysv/linux/x86/bits/procfs.h: Likewise.
11945 * sysdeps/unix/sysv/linux/arm/sys/procfs.h: Remove file.
11946 * sysdeps/unix/sysv/linux/m68k/sys/procfs.h: Likewise.
11947 * sysdeps/unix/sysv/linux/s390/sys/procfs.h: Likewise.
11948 * sysdeps/unix/sysv/linux/sh/sys/procfs.h: Likewise.
11949 * sysdeps/unix/sysv/linux/sparc/sys/procfs.h: Likewise.
11950 * sysdeps/unix/sysv/linux/x86/sys/procfs.h: Likewise.
11951
11952 * sysdeps/unix/sysv/linux/sys/procfs.h: Replace with file based on
11953 AArch64 version. Include <bits/procfs.h>.
11954 * sysdeps/unix/sysv/linux/Makefile [$(subdir) = misc]
11955 (sysdep_headers): Add bits/procfs.h.
11956 * sysdeps/unix/sysv/linux/bits/procfs.h: New file.
11957 * sysdeps/unix/sysv/linux/aarch64/bits/procfs.h: Likewise.
11958 * sysdeps/unix/sysv/linux/hppa/bits/procfs.h: Likewise.
11959 * sysdeps/unix/sysv/linux/ia64/bits/procfs.h: Likewise.
11960 * sysdeps/unix/sysv/linux/microblaze/bits/procfs.h: Likewise.
11961 * sysdeps/unix/sysv/linux/mips/bits/procfs.h: Likewise.
11962 * sysdeps/unix/sysv/linux/nios2/bits/procfs.h: Likewise.
11963 * sysdeps/unix/sysv/linux/powerpc/bits/procfs.h: Likewise.
11964 * sysdeps/unix/sysv/linux/riscv/bits/procfs.h: Likewise.
11965 * sysdeps/unix/sysv/linux/aarch64/sys/procfs.h: Remove file.
11966 * sysdeps/unix/sysv/linux/hppa/sys/procfs.h: Likewise.
11967 * sysdeps/unix/sysv/linux/ia64/sys/procfs.h: Likewise.
11968 * sysdeps/unix/sysv/linux/microblaze/sys/procfs.h: Likewise.
11969 * sysdeps/unix/sysv/linux/mips/sys/procfs.h: Likewise.
11970 * sysdeps/unix/sysv/linux/nios2/sys/procfs.h: Likewise.
11971 * sysdeps/unix/sysv/linux/powerpc/sys/procfs.h: Likewise.
11972 * sysdeps/unix/sysv/linux/riscv/sys/procfs.h: Likewise.
11973
11974 2018-09-25 Adhemerval Zanella <adhemerval.zanella@linaro.org>
11975
11976 * posix/tst-spawn.c (do_prepare, handle_restart, do_test):
11977 Use libsupport.
11978
11979 2018-09-25 Arjun Shankar <arjun@redhat.com>
11980
11981 * iconv/gconv_int.h (__gconv_path_elem): Remove.
11982 (__gconv_max_path_elem_len): Likewise.
11983 (__gconv_nmodules): Likewise.
11984 (__gconv_get_path): Likewise.
11985 (path_elem): Move to ...
11986 * iconv/gconv_conf.c: ... here.
11987 (__gconv_get_path): Mark function static.
11988 * iconv/gconv_int.h (GCONV_NCHAR_GOAL): Move to ...
11989 * iconv/gconv_open.c: ... here.
11990
11991 2018-09-24 Andreas Schwab <schwab@suse.de>
11992
11993 * scripts/haveversions.awk: New file.
11994 * Makerules ($(common-objpfx)Versions.def)
11995 ($(common-objpfx)Versions.all, $(common-objpfx)Versions.v.i)
11996 ($(common-objpfx)sysd-versions, $(common-objpfx)versions.stmp):
11997 Move rules ...
11998 * Makeconfig ($(common-objpfx)Versions.def)
11999 ($(common-objpfx)Versions.all, $(common-objpfx)Versions.v.i)
12000 ($(common-objpfx)sysd-versions, $(common-objpfx)versions.stmp):
12001 ... here.
12002 ($(common-objpfx)Versions.mk): New rule. Include it.
12003 * nis/Makefile [!have-GLIBC_2.28]: Don't build any targets.
12004 Emit error if build-obsolete-nsl = yes.
12005 * manual/install.texi (Configuring and compiling): Describe
12006 --enable-obsolete-nsl as unavaiable after version 2.28.
12007 * INSTALL: Regenerate.
12008
12009 2018-09-21 Adhemerval Zanella <adhemerval.zanella@linaro.org>
12010
12011 * NEWS: Add note about new TLE support on powerpc64le.
12012 * sysdeps/powerpc/nptl/tcb-offsets.sym (TM_CAPABLE): Remove.
12013 * sysdeps/powerpc/nptl/tls.h (tcbhead_t): Rename tm_capable to
12014 __ununsed1.
12015 (TLS_INIT_TP, TLS_DEFINE_INIT_TP): Remove tm_capable setup.
12016 (THREAD_GET_TM_CAPABLE, THREAD_SET_TM_CAPABLE): Remove macros.
12017 * sysdeps/powerpc/powerpc32/sysdep.h,
12018 sysdeps/powerpc/powerpc64/sysdep.h (ABORT_TRANSACTION_IMPL,
12019 ABORT_TRANSACTION): Remove macros.
12020 * sysdeps/powerpc/sysdep.h (ABORT_TRANSACTION): Likewise.
12021 * sysdeps/unix/sysv/linux/powerpc/elision-conf.c (elision_init): Set
12022 __pthread_force_elision iff PPC_FEATURE2_HTM_NOSC is set.
12023 * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h,
12024 sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h
12025 sysdeps/unix/sysv/linux/powerpc/syscall.S (ABORT_TRANSACTION): Remove
12026 usage.
12027 * sysdeps/unix/sysv/linux/powerpc/not-errno.h: Remove file.
12028
12029 2018-09-21 Rafał Lużyński <digitalfreak@lingonborough.com>
12030
12031 [BZ #10425]
12032 * localedata/locales/it_IT (d_t_fmt): Use "%a %-d %b %Y, %T".
12033 (date_fmt): Use "%a %-d %b %Y, %T, %Z".
12034 * localedata/locales/it_CH (d_t_fmt): Use "%a %-d %b %Y, %T"
12035 which is the same as in it_IT.
12036 (d_fmt): Use "%d.%m.%Y" which is the same as in de_CH.
12037 (date_fmt): Use "%a %-d %b %Y, %T, %Z" which is the same as in it_IT.
12038
12039 2018-09-20 Joseph Myers <joseph@codesourcery.com>
12040
12041 * include/math.h [!_ISOMAC && !(__FINITE_MATH_ONLY__ &&
12042 __FINITE_MATH_ONLY__ > 0) && !NO_MATH_REDIRECT] (trunc): Redirect
12043 using MATH_REDIRECT.
12044 * sysdeps/aarch64/fpu/s_trunc.c: Define NO_MATH_REDIRECT before
12045 header inclusion.
12046 * sysdeps/aarch64/fpu/s_truncf.c: Likewise.
12047 * sysdeps/ieee754/dbl-64/wordsize-64/s_trunc.c: Likewise.
12048 * sysdeps/ieee754/float128/s_truncf128.c: Likewise.
12049 * sysdeps/ieee754/dbl-64/s_trunc.c: Likewise.
12050 * sysdeps/ieee754/flt-32/s_truncf.c: Likewise.
12051 * sysdeps/ieee754/ldbl-128/s_truncl.c: Likewise.
12052 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_trunc.c: Likewise.
12053 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_truncf.c: Likewise.
12054 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_trunc.c: Likewise.
12055 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_truncf.c: Likewise.
12056 * sysdeps/riscv/rv64/rvd/s_trunc.c: Likewise.
12057 * sysdeps/riscv/rvf/s_truncf.c: Likewise.
12058 * sysdeps/sparc/sparc64/fpu/multiarch/s_trunc.c: Likewise.
12059 * sysdeps/sparc/sparc64/fpu/multiarch/s_truncf.c: Likewise.
12060 * sysdeps/x86_64/fpu/multiarch/s_trunc.c: Likewise.
12061 * sysdeps/x86_64/fpu/multiarch/s_truncf.c: Likewise.
12062 * sysdeps/m68k/m680x0/fpu/s_trunc_template.c: Likewise.
12063 * sysdeps/ieee754/ldbl-128ibm/s_truncl.c: Likewise.
12064 (ceil): Redirect to __ceil.
12065 (floor): Redirect to __floor.
12066 (trunc): Redirect to __trunc.
12067 (__truncl): Call trunc instead of __trunc.
12068 * sysdeps/powerpc/fpu/math_private.h [_ARCH_PWR5X] (__trunc):
12069 Remove macro.
12070 [_ARCH_PWR5X] (__truncf): Likewise.
12071 * sysdeps/ieee754/dbl-64/e_gamma_r.c (__ieee754_gamma_r): Use
12072 trunc functions instead of __trunc variants.
12073 * sysdeps/ieee754/flt-32/e_gammaf_r.c (__ieee754_gammaf_r):
12074 Likewise.
12075 * sysdeps/ieee754/ldbl-128/e_gammal_r.c (__ieee754_gammal_r):
12076 Likewise.
12077 * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (__ieee754_gammal_r):
12078 Likewise.
12079 * sysdeps/ieee754/ldbl-96/e_gammal_r.c (__ieee754_gammal_r):
12080 Likewise.
12081
12082 * sysdeps/x86/cpu-features.h [__geode__ || __k6__]: Handle like
12083 [__i586__ || __pentium__].
12084 [__i486__]: Handle explicitly.
12085 (HAS_CPUID): Define to 1 if above macros are undefined.
12086 (HAS_I586): Likewise.
12087 (HAS_I686): Likewise.
12088
12089 2018-09-20 Florian Weimer <fweimer@redhat.com>
12090
12091 * misc/tst-gethostid.c: New file.
12092 * misc/Makefile [$(build-shared)] (tests): Add tst-gethostid.
12093 (tst-gethostid): Link with -ldl.
12094
12095 2018-09-20 Mingli Yu <Mingli.Yu@windriver.com>
12096
12097 * sysdeps/unix/sysv/linux/gethostid.c (gethostid): Check for NULL
12098 value from gethostbyname_r.
12099
12100 2018-09-19 Carlos O'Donell <carlos@redhat.com>
12101
12102 * stdlib/tst-setcontext9.c (f1): Rename to...
12103 (f1a): ... this.
12104 (f1b): New function implementing lower half of f1 in alternate stack.
12105
12106 2018-09-19 Paul Eggert <eggert@cs.ucla.edu>
12107
12108 Fix mktime localtime offset confusion
12109 [BZ #23603]
12110 * include/time.h (__mktime_internal): The localtime offset is now
12111 of type long int instead of time_t. This is the longstanding type
12112 in glibc, and it is more than enough to represent difference
12113 between localtime and gmtime even if it is 32 bits and time_t is
12114 64. Changing it now will let us avoid an unnecessary change when
12115 time_t is widened to 64 bits on 32-bit platforms.
12116 * time/mktime-internal.h (mktime_offset_t): Now long int.
12117
12118 Merge mktime, timegm from upstream Gnulib
12119 [BZ #23603][BZ #16346]
12120 This fixes some obscure problems with integer overflow.
12121 Although it looks scary, it is almost all a byte-for-byte copy
12122 from Gnulib, and the Gnulib code has been tested reasonably well.
12123 * include/intprops.h: New file, copied from Gnulib.
12124 * include/verify.h, time/mktime-internal.h:
12125 New tiny files, simplified from Gnulib.
12126 * time/mktime.c: Copy from Gnulib. This has the following changes:
12127 Do not include config.h if DEBUG_MKTIME is nonzero.
12128 Include stdbool.h, intprops.h, verify.h.
12129 Include string.h only if needed.
12130 Include stdlib.h on MS-Windows.
12131 Include mktime-internal.h.
12132 (DEBUG_MKTIME): Default to 0, and simplify later uses.
12133 (NEED_MKTIME_INTERNAL, NEED_MKTIME_WINDOWS)
12134 (NEED_MKTIME_WORKING): Give default values to pacify -Wundef,
12135 which glibc uses. Default NEED_MKTIME_WORKING to DEBUG_MKTIME, to
12136 simplify later conditionals; default the others to zero. Use
12137 these conditionals to express only the code needed on the current
12138 platform. In uses of these conditionals, explicitly spell out how
12139 _LIBC affects things, so it’s easier to review from a glibc
12140 viewpoint.
12141 (WRAPV): Remove; no longer needed now that we have
12142 systematic overflow checking.
12143 (my_tzset, __tzset) [!_LIBC]: New function and macro, to better
12144 compartmentalize tzset issues. Move system-dependent tzsettish
12145 code here from mktime.
12146 (verify): Remove; now done by verify.h. All uses changed.
12147 (long_int): Use a more-conservative definition, to avoid
12148 integer overflow.
12149 (SHR): Remove, replacing with ...
12150 (shr): New function, which means we needn’t worry about side
12151 effects in args, and conversion analysis is simpler.
12152 (TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT, TYPE_SIGNED, TYPE_MINIMUM)
12153 (TYPE_MAXIMUM, TIME_T_MIN, TIME_T_MAX, TIME_T_MIDPOINT)
12154 (time_t_avg, time_t_add_ok): Remove.
12155 (mktime_min, mktime_max): New constants.
12156 (leapyear, isdst_differ): Use bool for booleans.
12157 (ydhms_diff, guess_time_tm, ranged_convert, __mktime_internal):
12158 Use long_int, not time_t, for mktime differences.
12159 (long_int_avg): New function, replacing time_t_avg.
12160 INT_ADD_WRAPV replaces time_t_add_ok.
12161 (guess_time_tm): 6th arg is now long_int, not time_t const *.
12162 All uses changed.
12163 (convert_time): New function.
12164 (ranged_convert): Use it.
12165 (__mktime_internal): Last arg now points to mktime_offset_t, not
12166 time_t. All uses changed. This is a no-op on glibc, where
12167 mktime_offset_t is always time_t. Use int, not time_t, for UTC
12168 offset guess. Directly check for integer overflow instead of
12169 using a heuristic that works only 99.9...% of the time.
12170 Access *OFFSET only once, to avoid an unlikely race if the
12171 compiler delays a load and if this cascades into a signed integer
12172 overflow.
12173 (mktime): Move tzsettish code to my_tzset, and move
12174 localtime_offset to within mktime so that it doesn’t
12175 need a separate ifdef.
12176 (main) [DEBUG_MKTIME]: Speed up by using localtime_r
12177 instead of localtime.
12178 * time/timegm.c: Copy from Gnulib. This has the following changes:
12179 Include mktime-internal.h.
12180 [!_LIBC]: Include config.h and time.h. Do not include
12181 timegm.h or time_r.h. Make __mktime_internal a macro,
12182 and include mktime-internal.h to get its declaration.
12183 (timegm): Temporary is now mktime_offset_t, not time_t.
12184 This affects only Gnulib.
12185
12186 2018-09-19 Wilco Dijkstra <wdijkstr@arm.com>
12187
12188 [BZ #23637]
12189 * string/test-strstr.c (pr23637): New function.
12190 (test_main): Add tests with longer needles.
12191 * string/strcasestr.c (AVAILABLE): Fix readahead distance.
12192 * string/strstr.c (AVAILABLE): Likewise.
12193
12194 2018-09-19 Szabolcs Nagy <szabolcs.nagy@arm.com>
12195
12196 * sysdeps/ieee754/flt-32/e_powf.c (checkint): Fix documentation.
12197
12198 2018-09-19 Szabolcs Nagy <szabolcs.nagy@arm.com>
12199
12200 * NEWS: Mention pow improvements.
12201 * math/Makefile (type-double-routines): Add e_pow_log_data.
12202 * sysdeps/generic/math_private.h (__exp1): Remove.
12203 * sysdeps/i386/fpu/e_pow_log_data.c: New file.
12204 * sysdeps/ia64/fpu/e_pow_log_data.c: New file.
12205 * sysdeps/ieee754/dbl-64/Makefile (CFLAGS-e_pow.c): Allow fma
12206 contraction.
12207 * sysdeps/ieee754/dbl-64/e_exp.c (__exp1): Remove.
12208 (exp_inline): Remove.
12209 (__ieee754_exp): Only single double input is handled.
12210 * sysdeps/ieee754/dbl-64/e_pow.c: Rewrite.
12211 * sysdeps/ieee754/dbl-64/e_pow_log_data.c: New file.
12212 * sysdeps/ieee754/dbl-64/math_config.h (issignaling_inline): Define.
12213 (__pow_log_data): Define.
12214 * sysdeps/ieee754/dbl-64/upow.h: Remove.
12215 * sysdeps/ieee754/dbl-64/upow.tbl: Remove.
12216 * sysdeps/m68k/m680x0/fpu/e_pow_log_data.c: New file.
12217 * sysdeps/x86_64/fpu/multiarch/Makefile (CFLAGS-e_pow-fma.c): Allow fma
12218 contraction.
12219 (CFLAGS-e_pow-fma4.c): Likewise.
12220
12221 2018-09-18 Paul Eggert <eggert@cs.ucla.edu>
12222
12223 Simplify tzfile fstat failure code
12224 [BZ #21716]
12225 * time/tzfile.c (__tzfile_read): Simplify slightly.
12226
12227 Fix tzfile low-memory assertion failure
12228 [BZ #21716]
12229 * time/tzfile.c (__tzfile_read): Check for memory exhaustion
12230 when registering time zone abbreviations.
12231
12232 2018-09-18 Joseph Myers <joseph@codesourcery.com>
12233
12234 * sysdeps/unix/sysv/linux/bits/mman.h: New file.
12235 * sysdeps/unix/sysv/linux/aarch64/bits/mman.h: Remove.
12236 * sysdeps/unix/sysv/linux/arm/bits/mman.h: Likewise.
12237 * sysdeps/unix/sysv/linux/m68k/bits/mman.h: Likewise.
12238 * sysdeps/unix/sysv/linux/microblaze/bits/mman.h: Likewise.
12239 * sysdeps/unix/sysv/linux/nios2/bits/mman.h: Likewise.
12240 * sysdeps/unix/sysv/linux/riscv/bits/mman.h: Likewise.
12241 * sysdeps/unix/sysv/linux/s390/bits/mman.h: Likewise.
12242 * sysdeps/unix/sysv/linux/sh/bits/mman.h: Likewise.
12243
12244 * sysdeps/ieee754/ldbl-128ibm/s_ceill.c (ceil): Redirect to
12245 __ceil.
12246 (__ceill): Call ceil instead of __ceil.
12247 * sysdeps/ieee754/ldbl-128ibm/s_floorl.c (floor): Redirect to
12248 __floor.
12249 (__floorl): Call floor instead of __floor.
12250
12251 2018-09-17 Joseph Myers <joseph@codesourcery.com>
12252
12253 * include/math.h [!_ISOMAC && !(__FINITE_MATH_ONLY__ &&
12254 __FINITE_MATH_ONLY__ > 0) && !NO_MATH_REDIRECT] (ceil): Redirect
12255 using MATH_REDIRECT.
12256 * sysdeps/aarch64/fpu/s_ceil.c: Define NO_MATH_REDIRECT before
12257 header inclusion.
12258 * sysdeps/aarch64/fpu/s_ceilf.c: Likewise.
12259 * sysdeps/ieee754/dbl-64/s_ceil.c: Likewise.
12260 * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Likewise.
12261 * sysdeps/ieee754/float128/s_ceilf128.c: Likewise.
12262 * sysdeps/ieee754/flt-32/s_ceilf.c: Likewise.
12263 * sysdeps/ieee754/ldbl-128/s_ceill.c: Likewise.
12264 * sysdeps/ieee754/ldbl-128ibm/s_ceill.c: Likewise.
12265 * sysdeps/m68k/m680x0/fpu/s_ceil_template.c: Likewise.
12266 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceil.c: Likewise.
12267 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceilf.c: Likewise.
12268 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceil.c: Likewise.
12269 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceilf.c: Likewise.
12270 * sysdeps/riscv/rv64/rvd/s_ceil.c: Likewise.
12271 * sysdeps/riscv/rvf/s_ceilf.c: Likewise.
12272 * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.c: Likewise.
12273 * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.c: Likewise.
12274 * sysdeps/x86_64/fpu/multiarch/s_ceil.c: Likewise.
12275 * sysdeps/x86_64/fpu/multiarch/s_ceilf.c: Likewise.
12276 * sysdeps/powerpc/fpu/math_private.h [_ARCH_PWR5X] (__ceil):
12277 Remove macro.
12278 * sysdeps/ieee754/dbl-64/e_gamma_r.c (gamma_positive): Use ceil
12279 functions instead of __ceil variants.
12280 * sysdeps/ieee754/flt-32/e_gammaf_r.c (gammaf_positive): Likewise.
12281 * sysdeps/ieee754/ldbl-128/e_gammal_r.c (gammal_positive):
12282 Likewise.
12283 * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (gammal_positive):
12284 Likewise.
12285 * sysdeps/ieee754/ldbl-128ibm/s_truncl.c (__truncl): Likewise.
12286 * sysdeps/ieee754/ldbl-96/e_gammal_r.c (gammal_positive):
12287 Likewise.
12288 * sysdeps/powerpc/power5+/fpu/s_modf.c (__modf): Likewise.
12289 * sysdeps/powerpc/power5+/fpu/s_modff.c (__modff): Likewise.
12290
12291 [BZ #21286]
12292 * sysdeps/unix/sysv/linux/bits/siginfo-consts.h (SI_DETHREAD): New
12293 constant.
12294 [__USE_XOPEN_EXTENDED || __USE_XOPEN2K8] (ILL_BADIADDR): Likewise.
12295 [__USE_XOPEN_EXTENDED || __USE_XOPEN2K8] (FPE_FLTUNK): Likewise.
12296 [__USE_XOPEN_EXTENDED || __USE_XOPEN2K8] (FPE_CONDTRAP): Likewise.
12297 [__USE_XOPEN_EXTENDED || __USE_XOPEN2K8] (SEGV_ACCADI): Likewise.
12298 [__USE_XOPEN_EXTENDED || __USE_XOPEN2K8] (SEGV_ADIDERR): Likewise.
12299 [__USE_XOPEN_EXTENDED || __USE_XOPEN2K8] (SEGV_ADIPERR): Likewise.
12300 [__USE_XOPEN_EXTENDED] (TRAP_BRANCH): Likewise.
12301 [__USE_XOPEN_EXTENDED] (TRAP_HWBKPT): Likewise.
12302 [__USE_XOPEN_EXTENDED] (TRAP_UNK): Likweise.
12303 * sysdeps/unix/sysv/linux/ia64/bits/siginfo-consts-arch.h
12304 (ILL_BADIADDR): Remove constant.
12305 (TRAP_BRANCH): Likewise.
12306 (TRAP_HWBKPT): Likewise.
12307
12308 2018-09-14 Joseph Myers <joseph@codesourcery.com>
12309
12310 [BZ #23656]
12311 * sysdeps/unix/sysv/linux/mips/sys/procfs.h (struct elf_prstatus):
12312 Remove [_MIPS_SIM = _ABIN32] conditional case.
12313 (struct elf_prpsinfo): Likewise.
12314
12315 [BZ #23649]
12316 * sysdeps/unix/sysv/linux/microblaze/sys/procfs.h (struct
12317 elf_prpsinfo): Use unsigned int for pr_uid and pr_gid.
12318 * sysdeps/unix/sysv/linux/mips/sys/procfs.h (struct elf_prpsinfo):
12319 Likewise.
12320 * sysdeps/unix/sysv/linux/nios2/sys/procfs.h (struct
12321 elf_prpsinfo): Likewise.
12322 * sysdeps/unix/sysv/linux/riscv/sys/procfs.h (struct
12323 elf_prpsinfo): Likewise.
12324 * sysdeps/unix/sysv/linux/sys/procfs.h (struct elf_prpsinfo):
12325 Likewise.
12326
12327 * include/math.h [!_ISOMAC && !(__FINITE_MATH_ONLY__ &&
12328 __FINITE_MATH_ONLY__ > 0) && !NO_MATH_REDIRECT] (rint): Redirect
12329 using MATH_REDIRECT.
12330 * sysdeps/aarch64/fpu/s_rint.c: Define NO_MATH_REDIRECT before
12331 header inclusion.
12332 * sysdeps/aarch64/fpu/s_rintf.c: Likewise.
12333 * sysdeps/alpha/fpu/s_rint.c: Likewise.
12334 * sysdeps/alpha/fpu/s_rintf.c: Likewise.
12335 * sysdeps/i386/fpu/s_rintl.c: Likewise.
12336 * sysdeps/ieee754/dbl-64/s_rint.c: Likewise.
12337 * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c: Likewise.
12338 * sysdeps/ieee754/float128/s_rintf128.c: Likewise.
12339 * sysdeps/ieee754/flt-32/s_rintf.c: Likewise.
12340 * sysdeps/ieee754/ldbl-128/s_rintl.c: Likewise.
12341 * sysdeps/ieee754/ldbl-128ibm/s_rintl.c: Likewise.
12342 * sysdeps/m68k/coldfire/fpu/s_rint.c: Likewise.
12343 * sysdeps/m68k/coldfire/fpu/s_rintf.c: Likewise.
12344 * sysdeps/m68k/m680x0/fpu/s_rint.c: Likewise.
12345 * sysdeps/m68k/m680x0/fpu/s_rintf.c: Likewise.
12346 * sysdeps/m68k/m680x0/fpu/s_rintl.c: Likewise.
12347 * sysdeps/powerpc/fpu/s_rint.c: Likewise.
12348 * sysdeps/powerpc/fpu/s_rintf.c: Likewise.
12349 * sysdeps/riscv/rv64/rvd/s_rint.c: Likewise.
12350 * sysdeps/riscv/rvf/s_rintf.c: Likewise.
12351 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.c: Likewise.
12352 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf.c: Likewise.
12353 * sysdeps/sparc/sparc64/fpu/multiarch/s_rint.c: Likewise.
12354 * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf.c: Likewise.
12355 * sysdeps/x86_64/fpu/multiarch/s_rint.c: Likewise.
12356 * sysdeps/x86_64/fpu/multiarch/s_rintf.c: Likewise.
12357 * sysdeps/x86_64/fpu/math_private.h: Remove file.
12358 * math/e_scalb.c (invalid_fn): Use rint functions instead of
12359 __rint variants.
12360 * math/e_scalbf.c (invalid_fn): Likewise.
12361 * math/e_scalbl.c (invalid_fn): Likewise.
12362 * sysdeps/ieee754/dbl-64/e_gamma_r.c (__ieee754_gamma_r):
12363 Likewise.
12364 * sysdeps/ieee754/flt-32/e_gammaf_r.c (__ieee754_gammaf_r):
12365 Likewise.
12366 * sysdeps/ieee754/k_standard.c (__kernel_standard): Likewise.
12367 * sysdeps/ieee754/k_standardl.c (__kernel_standard_l): Likewise.
12368 * sysdeps/ieee754/ldbl-128/e_gammal_r.c (__ieee754_gammal_r):
12369 Likewise.
12370 * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (__ieee754_gammal_r):
12371 Likewise.
12372 * sysdeps/ieee754/ldbl-96/e_gammal_r.c (__ieee754_gammal_r):
12373 Likewise.
12374 * sysdeps/powerpc/powerpc32/fpu/s_llrint.c (__llrint): Likewise.
12375 * sysdeps/powerpc/powerpc32/fpu/s_llrintf.c (__llrintf): Likewise.
12376
12377 * include/math.h [!_ISOMAC && !(__FINITE_MATH_ONLY__ &&
12378 __FINITE_MATH_ONLY__ > 0) && !NO_MATH_REDIRECT] (MATH_REDIRECT):
12379 New macro.
12380 [!_ISOMAC && !(__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0)
12381 && !NO_MATH_REDIRECT] (MATH_REDIRECT_LDBL): Likewise.
12382 [!_ISOMAC && !(__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0)
12383 && !NO_MATH_REDIRECT] (MATH_REDIRECT_F128): Likewise.
12384 [!_ISOMAC && !(__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0)
12385 && !NO_MATH_REDIRECT] (MATH_REDIRECT_UNARY_ARGS): Likewise.
12386 [!_ISOMAC && !(__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0)
12387 && !NO_MATH_REDIRECT] (sqrt): Redirect using MATH_REDIRECT.
12388 [!_ISOMAC && !(__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0)
12389 && !NO_MATH_REDIRECT] (floor): Likewise.
12390 * sysdeps/aarch64/fpu/s_floor.c: Define NO_MATH_REDIRECT before
12391 header inclusion.
12392 * sysdeps/aarch64/fpu/s_floorf.c: Likewise.
12393 * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
12394 * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Likewise.
12395 * sysdeps/ieee754/float128/s_floorf128.c: Likewise.
12396 * sysdeps/ieee754/flt-32/s_floorf.c: Likewise.
12397 * sysdeps/ieee754/ldbl-128/s_floorl.c: Likewise.
12398 * sysdeps/ieee754/ldbl-128ibm/s_floorl.c: Likewise.
12399 * sysdeps/m68k/m680x0/fpu/s_floor_template.c: Likewise.
12400 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floor.c: Likewise.
12401 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floorf.c: Likewise.
12402 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floor.c: Likewise.
12403 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floorf.c: Likewise.
12404 * sysdeps/riscv/rv64/rvd/s_floor.c: Likewise.
12405 * sysdeps/riscv/rvf/s_floorf.c: Likewise.
12406 * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.c: Likewise.
12407 * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.c: Likewise.
12408 * sysdeps/x86_64/fpu/multiarch/s_floor.c: Likewise.
12409 * sysdeps/x86_64/fpu/multiarch/s_floorf.c: Likewise.
12410 * sysdeps/powerpc/fpu/math_private.h [_ARCH_PWR5X] (__floor):
12411 Remove macro.
12412 [_ARCH_PWR5X] (__floorf): Likewise.
12413 * sysdeps/x86_64/fpu/math_private.h [__SSE4_1__] (__floor): Remove
12414 inline function.
12415 [__SSE4_1__] (__floorf): Likewise.
12416 * math/w_lgamma_main.c (LGFUNC (__lgamma)): Use floor functions
12417 instead of __floor variants.
12418 * math/w_lgamma_r_compat.c (__lgamma_r): Likewise.
12419 * math/w_lgammaf_main.c (LGFUNC (__lgammaf)): Likewise.
12420 * math/w_lgammaf_r_compat.c (__lgammaf_r): Likewise.
12421 * math/w_lgammal_main.c (LGFUNC (__lgammal)): Likewise.
12422 * math/w_lgammal_r_compat.c (__lgammal_r): Likewise.
12423 * math/w_tgamma_compat.c (__tgamma): Likewise.
12424 * math/w_tgamma_template.c (M_DECL_FUNC (__tgamma)): Likewise.
12425 * math/w_tgammaf_compat.c (__tgammaf): Likewise.
12426 * math/w_tgammal_compat.c (__tgammal): Likewise.
12427 * sysdeps/ieee754/dbl-64/e_lgamma_r.c (sin_pi): Likewise.
12428 * sysdeps/ieee754/dbl-64/k_rem_pio2.c (__kernel_rem_pio2):
12429 Likewise.
12430 * sysdeps/ieee754/dbl-64/lgamma_neg.c (__lgamma_neg): Likewise.
12431 * sysdeps/ieee754/flt-32/e_lgammaf_r.c (sin_pif): Likewise.
12432 * sysdeps/ieee754/flt-32/lgamma_negf.c (__lgamma_negf): Likewise.
12433 * sysdeps/ieee754/ldbl-128/e_lgammal_r.c (__ieee754_lgammal_r):
12434 Likewise.
12435 * sysdeps/ieee754/ldbl-128/e_powl.c (__ieee754_powl): Likewise.
12436 * sysdeps/ieee754/ldbl-128/lgamma_negl.c (__lgamma_negl):
12437 Likewise.
12438 * sysdeps/ieee754/ldbl-128/s_expm1l.c (__expm1l): Likewise.
12439 * sysdeps/ieee754/ldbl-128ibm/e_lgammal_r.c (__ieee754_lgammal_r):
12440 Likewise.
12441 * sysdeps/ieee754/ldbl-128ibm/e_powl.c (__ieee754_powl): Likewise.
12442 * sysdeps/ieee754/ldbl-128ibm/lgamma_negl.c (__lgamma_negl):
12443 Likewise.
12444 * sysdeps/ieee754/ldbl-128ibm/s_expm1l.c (__expm1l): Likewise.
12445 * sysdeps/ieee754/ldbl-128ibm/s_truncl.c (__truncl): Likewise.
12446 * sysdeps/ieee754/ldbl-96/e_lgammal_r.c (sin_pi): Likewise.
12447 * sysdeps/ieee754/ldbl-96/lgamma_negl.c (__lgamma_negl): Likewise.
12448 * sysdeps/powerpc/power5+/fpu/s_modf.c (__modf): Likewise.
12449 * sysdeps/powerpc/power5+/fpu/s_modff.c (__modff): Likewise.
12450
12451 2018-09-12 Joseph Myers <joseph@codesourcery.com>
12452
12453 * elf/Makefile (modules-names-tests): New variable.
12454
12455 2018-09-12 Szabolcs Nagy <szabolcs.nagy@arm.com>
12456
12457 * NEWS: Mention log2 improvements.
12458 * math/Makefile (type-double-routines): Add e_log2_data.
12459 * sysdeps/i386/fpu/e_log2_data.c: New file.
12460 * sysdeps/ia64/fpu/e_log2_data.c: New file.
12461 * sysdeps/ieee754/dbl-64/e_log2.c: Rewrite.
12462 * sysdeps/ieee754/dbl-64/e_log2_data.c: New file.
12463 * sysdeps/ieee754/dbl-64/math_config.h (__log2_data): Add.
12464 * sysdeps/ieee754/dbl-64/wordsize-64/e_log2.c: Remove.
12465 * sysdeps/m68k/m680x0/fpu/e_log2_data.c: New file.
12466
12467 2018-09-12 Szabolcs Nagy <szabolcs.nagy@arm.com>
12468
12469 * NEWS: Mention log improvement.
12470 * math/Makefile (type-double-routines): Add e_log_data.
12471 * sysdeps/i386/fpu/e_log_data.c: New file.
12472 * sysdeps/ia64/fpu/e_log_data.c: New file.
12473 * sysdeps/ieee754/dbl-64/e_log.c: Rewrite.
12474 * sysdeps/ieee754/dbl-64/e_log_data.c: New file.
12475 * sysdeps/ieee754/dbl-64/math_config.h (__log_data): Add.
12476 * sysdeps/ieee754/dbl-64/ulog.h: Remove.
12477 * sysdeps/ieee754/dbl-64/ulog.tbl: Remove.
12478 * sysdeps/m68k/m680x0/fpu/e_log_data.c: New file.
12479
12480 2018-09-12 H.J. Lu <hongjiu.lu@intel.com>
12481 Xuepeng Guo <xuepeng.guo@intel.com>
12482
12483 [BZ #23606]
12484 * sysdeps/i386/start.S: Include <sysdep.h>
12485 (_start): Use ENTRY/END to insert ENDBR32 at entry when CET is
12486 enabled. Add cfi_undefined (eip).
12487
12488 2018-09-11 Joseph Myers <joseph@codesourcery.com>
12489
12490 * sysdeps/x86_64/fpu/math_private.h (MOVD): Remove macro.
12491 (MOVQ): Likewise.
12492 (EXTRACT_WORDS64): Likewise.
12493 (INSERT_WORDS64): Likewise.
12494 (GET_FLOAT_WORD): Likewise.
12495 (SET_FLOAT_WORD): Likewise.
12496
12497 * scripts/build-many-glibcs.py (Context.__init__): Add full_gcc
12498 argument.
12499 (Config.build_gcc): Use --disable-libsanitizer for first GCC
12500 build, but not for second build if --full-gcc. Use
12501 --enable-languages=all for second build if --full-gcc.
12502 (get_parser): Add --full-gcc option.
12503 (main): Update call to Context.
12504
12505 2018-09-10 Rafał Lużyński <digitalfreak@lingonborough.com>
12506
12507 [BZ #10797]
12508 * localedata/locales/de_CH (mon_thousands_sep): Use "<U2019>" (Right
12509 Single Quotation Mark).
12510 (thousands_sep): Likewise.
12511 * localedata/locales/it_CH (LC_NUMERIC): Use “copy "de_CH"”.
12512 * localedata/locales/it_IT (thousands_sep): Use ".".
12513 (grouping): Use "3;3".
12514
12515 2018-09-10 Joseph Myers <joseph@codesourcery.com>
12516
12517 * scripts/build-many-glibcs.py (Context.add_all_configs): Add
12518 x86_64 and i686 configs using --enable-obsolete-rpc
12519 --enable-obsolete-nsl.
12520
12521 2018-09-06 Stefan Liebler <stli@linux.ibm.com>
12522
12523 * sysdeps/s390/fpu/libm-test-ulps: Regenerated.
12524
12525 2018-09-06 Stefan Liebler <stli@linux.ibm.com>
12526
12527 * sysdeps/unix/sysv/linux/spawni.c (maybe_script_execute):
12528 Increment size of new_argv by one.
12529
12530 2018-09-05 Rafał Lużyński <digitalfreak@lingonborough.com>
12531
12532 [BZ #17426]
12533 * localedata/locales/anp_IN (d_fmt): Use "%-d//%-m//%y".
12534 * localedata/locales/ar_IN (d_fmt): Likewise.
12535 * localedata/locales/bhb_IN (d_fmt): Likewise.
12536 * localedata/locales/bho_IN (d_fmt): Likewise.
12537 * localedata/locales/bn_BD (d_fmt): Likewise.
12538 * localedata/locales/bn_IN (d_fmt): Likewise.
12539 * localedata/locales/doi_IN (d_fmt): Likewise.
12540 * localedata/locales/gu_IN (d_fmt): Likewise.
12541 * localedata/locales/hi_IN (d_fmt): Likewise.
12542 * localedata/locales/hne_IN (d_fmt): Likewise.
12543 * localedata/locales/kn_IN (d_fmt): Likewise.
12544 * localedata/locales/mag_IN (d_fmt): Likewise.
12545 * localedata/locales/mai_IN (d_fmt): Likewise.
12546 * localedata/locales/mjw_IN (d_fmt): Likewise.
12547 * localedata/locales/ml_IN (d_fmt): Likewise.
12548 * localedata/locales/mni_IN (d_fmt): Likewise.
12549 * localedata/locales/mr_IN (d_fmt): Likewise.
12550 * localedata/locales/pa_IN (d_fmt): Likewise.
12551 * localedata/locales/raj_IN (d_fmt): Likewise.
12552 * localedata/locales/sat_IN (d_fmt): Likewise.
12553 * localedata/locales/sd_IN (d_fmt): Likewise.
12554 * localedata/locales/sd_IN@devanagari (d_fmt): Likewise.
12555 * localedata/locales/ta_IN (d_fmt): Likewise.
12556 * localedata/locales/ta_LK (d_fmt): Likewise.
12557 * localedata/locales/tcy_IN (d_fmt): Likewise.
12558 * localedata/locales/ur_IN (d_fmt): Likewise.
12559
12560 * localedata/locales/brx_IN (d_fmt): Use "%-m//%-d//%y".
12561 * localedata/locales/ks_IN (d_fmt): Likewise.
12562 * localedata/locales/ks_IN@devanagari (d_fmt): Likewise.
12563
12564 * localedata/locales/kok_IN (d_fmt): Use "%-d-%-m-%y".
12565 * localedata/locales/ne_NP (d_fmt): Use "%y//%-m//%-d".
12566 * localedata/locales/sa_IN (d_fmt): Use "%-d-%m-%y".
12567 * localedata/locales/te_IN (d_fmt): Use "%d-%m-%y".
12568
12569 2018-09-05 Szabolcs Nagy <szabolcs.nagy@arm.com>
12570
12571 * NEWS: Mention exp and exp2 improvements.
12572 * math/Makefile (libm-support): Remove t_exp.
12573 (type-double-routines): Add math_err and e_exp_data.
12574 * sysdeps/aarch64/libm-test-ulps: Update.
12575 * sysdeps/arm/libm-test-ulps: Update.
12576 * sysdeps/i386/fpu/e_exp_data.c: New file.
12577 * sysdeps/i386/fpu/math_err.c: New file.
12578 * sysdeps/i386/fpu/t_exp.c: Remove.
12579 * sysdeps/ia64/fpu/e_exp_data.c: New file.
12580 * sysdeps/ia64/fpu/math_err.c: New file.
12581 * sysdeps/ia64/fpu/t_exp.c: Remove.
12582 * sysdeps/ieee754/dbl-64/e_exp.c: Rewrite.
12583 * sysdeps/ieee754/dbl-64/e_exp2.c: Rewrite.
12584 * sysdeps/ieee754/dbl-64/e_exp_data.c: New file.
12585 * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Update error bound.
12586 * sysdeps/ieee754/dbl-64/eexp.tbl: Remove.
12587 * sysdeps/ieee754/dbl-64/math_config.h: New file.
12588 * sysdeps/ieee754/dbl-64/math_err.c: New file.
12589 * sysdeps/ieee754/dbl-64/t_exp.c: Remove.
12590 * sysdeps/ieee754/dbl-64/t_exp2.h: Remove.
12591 * sysdeps/ieee754/dbl-64/uexp.h: Remove.
12592 * sysdeps/ieee754/dbl-64/uexp.tbl: Remove.
12593 * sysdeps/m68k/m680x0/fpu/e_exp_data.c: New file.
12594 * sysdeps/m68k/m680x0/fpu/math_err.c: New file.
12595 * sysdeps/m68k/m680x0/fpu/t_exp.c: Remove.
12596 * sysdeps/powerpc/fpu/libm-test-ulps: Update.
12597 * sysdeps/x86_64/fpu/libm-test-ulps: Update.
12598
12599 2018-09-05 Joseph Myers <joseph@codesourcery.com>
12600
12601 * sysdeps/alpha/fpu/math_private.h: Remove.
12602
12603 * sysdeps/generic/math_private.h
12604 [__HAVE_DISTINCT_FLOAT128 && !__GNUC_PREREQ (7, 0)] (__isinff128):
12605 Move this inline function ....
12606 [__HAVE_DISTINCT_FLOAT128] (fabsf128): And this one ....
12607 * include/math.h [!_ISOMAC]: To here....
12608
12609 2018-09-04 Joseph Myers <joseph@codesourcery.com>
12610
12611 * sysdeps/generic/fenv_private.h [FE_ALL_EXCEPT == 0]: Move this
12612 code ....
12613 [!FE_HAVE_ROUNDING_MODES]: And this code ....
12614 * include/fenv.h [!_ISOMAC]: ... to here.
12615 * math/fraiseexcpt.c (__feraiseexcept): Undefine as macro.
12616 (feraiseexcept): Likewise.
12617 * math/fromfp.h: Do not include <fenv_private.h>.
12618 * math/s_cexp_template.c: Likewise.
12619 * math/s_csin_template.c: Likewise.
12620 * math/s_csinh_template.c: Likewise.
12621 * math/s_ctan_template.c: Likewise.
12622 * math/s_ctanh_template.c: Likewise.
12623 * math/s_iseqsig_template.c: Likewise.
12624 * math/w_acos_compat.c: Likewise.
12625 * math/w_acosf_compat.c: Likewise.
12626 * math/w_acosl_compat.c: Likewise.
12627 * math/w_asin_compat.c: Likewise.
12628 * math/w_asinf_compat.c: Likewise.
12629 * math/w_asinl_compat.c: Likewise.
12630 * math/w_j0_compat.c: Likewise.
12631 * math/w_j0f_compat.c: Likewise.
12632 * math/w_j0l_compat.c: Likewise.
12633 * math/w_j1_compat.c: Likewise.
12634 * math/w_j1f_compat.c: Likewise.
12635 * math/w_j1l_compat.c: Likewise.
12636 * math/w_jn_compat.c: Likewise.
12637 * math/w_jnf_compat.c: Likewise.
12638 * math/w_log10_compat.c: Likewise.
12639 * math/w_log10f_compat.c: Likewise.
12640 * math/w_log10l_compat.c: Likewise.
12641 * math/w_log2_compat.c: Likewise.
12642 * math/w_log2f_compat.c: Likewise.
12643 * math/w_log2l_compat.c: Likewise.
12644 * math/w_log_compat.c: Likewise.
12645 * math/w_logf_compat.c: Likewise.
12646 * math/w_logl_compat.c: Likewise.
12647 * sysdeps/ieee754/dbl-64/s_llrint.c: Likewise.
12648 * sysdeps/ieee754/dbl-64/s_llround.c: Likewise.
12649 * sysdeps/ieee754/dbl-64/s_lrint.c: Likewise.
12650 * sysdeps/ieee754/dbl-64/s_lround.c: Likewise.
12651 * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Likewise.
12652 * sysdeps/ieee754/flt-32/s_llrintf.c: Likewise.
12653 * sysdeps/ieee754/flt-32/s_llroundf.c: Likewise.
12654 * sysdeps/ieee754/flt-32/s_lrintf.c: Likewise.
12655 * sysdeps/ieee754/flt-32/s_lroundf.c: Likewise.
12656 * sysdeps/ieee754/k_standardl.c: Likewise.
12657 * sysdeps/ieee754/ldbl-128/e_expl.c: Likewise.
12658 * sysdeps/ieee754/ldbl-128/s_fmal.c: Likewise.
12659 * sysdeps/ieee754/ldbl-128/s_llrintl.c: Likewise.
12660 * sysdeps/ieee754/ldbl-128/s_llroundl.c: Likewise.
12661 * sysdeps/ieee754/ldbl-128/s_lrintl.c: Likewise.
12662 * sysdeps/ieee754/ldbl-128/s_lroundl.c: Likewise.
12663 * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Likewise.
12664 * sysdeps/ieee754/ldbl-128ibm/s_llrintl.c: Likewise.
12665 * sysdeps/ieee754/ldbl-128ibm/s_llroundl.c: Likewise.
12666 * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c: Likewise.
12667 * sysdeps/ieee754/ldbl-128ibm/s_lroundl.c: Likewise.
12668 * sysdeps/ieee754/ldbl-96/s_fma.c: Likewise.
12669 * sysdeps/ieee754/ldbl-96/s_fmal.c: Likewise.
12670 * sysdeps/ieee754/ldbl-96/s_llrintl.c: Likewise.
12671 * sysdeps/ieee754/ldbl-96/s_llroundl.c: Likewise.
12672 * sysdeps/ieee754/ldbl-96/s_lrintl.c: Likewise.
12673 * sysdeps/ieee754/ldbl-96/s_lroundl.c: Likewise.
12674 * math/w_ilogb_template.c: Include <fenv.h> instead of
12675 <fenv_private.h>.
12676 * math/w_llogb_template.c: Likewise.
12677 * sysdeps/powerpc/fpu/e_sqrt.c: Likewise.
12678 * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
12679
12680 2018-09-03 Joseph Myers <joseph@codesourcery.com>
12681
12682 * sysdeps/generic/math_private.h: Do not include <fenv_private.h>.
12683 * math/fromfp.h: Include <fenv_private.h>.
12684 * math/math-narrow.h: Likewise.
12685 * math/s_cexp_template.c: Likewise.
12686 * math/s_csin_template.c: Likewise.
12687 * math/s_csinh_template.c: Likewise.
12688 * math/s_ctan_template.c: Likewise.
12689 * math/s_ctanh_template.c: Likewise.
12690 * math/s_iseqsig_template.c: Likewise.
12691 * math/w_acos_compat.c: Likewise.
12692 * math/w_acosf_compat.c: Likewise.
12693 * math/w_acosl_compat.c: Likewise.
12694 * math/w_asin_compat.c: Likewise.
12695 * math/w_asinf_compat.c: Likewise.
12696 * math/w_asinl_compat.c: Likewise.
12697 * math/w_ilogb_template.c: Likewise.
12698 * math/w_j0_compat.c: Likewise.
12699 * math/w_j0f_compat.c: Likewise.
12700 * math/w_j0l_compat.c: Likewise.
12701 * math/w_j1_compat.c: Likewise.
12702 * math/w_j1f_compat.c: Likewise.
12703 * math/w_j1l_compat.c: Likewise.
12704 * math/w_jn_compat.c: Likewise.
12705 * math/w_jnf_compat.c: Likewise.
12706 * math/w_llogb_template.c: Likewise.
12707 * math/w_log10_compat.c: Likewise.
12708 * math/w_log10f_compat.c: Likewise.
12709 * math/w_log10l_compat.c: Likewise.
12710 * math/w_log2_compat.c: Likewise.
12711 * math/w_log2f_compat.c: Likewise.
12712 * math/w_log2l_compat.c: Likewise.
12713 * math/w_log_compat.c: Likewise.
12714 * math/w_logf_compat.c: Likewise.
12715 * math/w_logl_compat.c: Likewise.
12716 * sysdeps/aarch64/fpu/feholdexcpt.c: Likewise.
12717 * sysdeps/aarch64/fpu/fesetround.c: Likewise.
12718 * sysdeps/aarch64/fpu/fgetexcptflg.c: Likewise.
12719 * sysdeps/aarch64/fpu/ftestexcept.c: Likewise.
12720 * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
12721 * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
12722 * sysdeps/ieee754/dbl-64/e_exp2.c: Likewise.
12723 * sysdeps/ieee754/dbl-64/e_gamma_r.c: Likewise.
12724 * sysdeps/ieee754/dbl-64/e_jn.c: Likewise.
12725 * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
12726 * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
12727 * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
12728 * sysdeps/ieee754/dbl-64/gamma_product.c: Likewise.
12729 * sysdeps/ieee754/dbl-64/lgamma_neg.c: Likewise.
12730 * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
12731 * sysdeps/ieee754/dbl-64/s_fma.c: Likewise.
12732 * sysdeps/ieee754/dbl-64/s_fmaf.c: Likewise.
12733 * sysdeps/ieee754/dbl-64/s_llrint.c: Likewise.
12734 * sysdeps/ieee754/dbl-64/s_llround.c: Likewise.
12735 * sysdeps/ieee754/dbl-64/s_lrint.c: Likewise.
12736 * sysdeps/ieee754/dbl-64/s_lround.c: Likewise.
12737 * sysdeps/ieee754/dbl-64/s_nearbyint.c: Likewise.
12738 * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
12739 * sysdeps/ieee754/dbl-64/s_sincos.c: Likewise.
12740 * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
12741 * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Likewise.
12742 * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c: Likewise.
12743 * sysdeps/ieee754/dbl-64/x2y2m1.c: Likewise.
12744 * sysdeps/ieee754/float128/float128_private.h: Likewise.
12745 * sysdeps/ieee754/flt-32/e_gammaf_r.c: Likewise.
12746 * sysdeps/ieee754/flt-32/e_j1f.c: Likewise.
12747 * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
12748 * sysdeps/ieee754/flt-32/lgamma_negf.c: Likewise.
12749 * sysdeps/ieee754/flt-32/s_llrintf.c: Likewise.
12750 * sysdeps/ieee754/flt-32/s_llroundf.c: Likewise.
12751 * sysdeps/ieee754/flt-32/s_lrintf.c: Likewise.
12752 * sysdeps/ieee754/flt-32/s_lroundf.c: Likewise.
12753 * sysdeps/ieee754/flt-32/s_nearbyintf.c: Likewise.
12754 * sysdeps/ieee754/k_standardl.c: Likewise.
12755 * sysdeps/ieee754/ldbl-128/e_expl.c: Likewise.
12756 * sysdeps/ieee754/ldbl-128/e_gammal_r.c: Likewise.
12757 * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
12758 * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
12759 * sysdeps/ieee754/ldbl-128/gamma_productl.c: Likewise.
12760 * sysdeps/ieee754/ldbl-128/lgamma_negl.c: Likewise.
12761 * sysdeps/ieee754/ldbl-128/s_fmal.c: Likewise.
12762 * sysdeps/ieee754/ldbl-128/s_llrintl.c: Likewise.
12763 * sysdeps/ieee754/ldbl-128/s_llroundl.c: Likewise.
12764 * sysdeps/ieee754/ldbl-128/s_lrintl.c: Likewise.
12765 * sysdeps/ieee754/ldbl-128/s_lroundl.c: Likewise.
12766 * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Likewise.
12767 * sysdeps/ieee754/ldbl-128/x2y2m1l.c: Likewise.
12768 * sysdeps/ieee754/ldbl-128ibm/e_expl.c: Likewise.
12769 * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c: Likewise.
12770 * sysdeps/ieee754/ldbl-128ibm/e_j1l.c: Likewise.
12771 * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
12772 * sysdeps/ieee754/ldbl-128ibm/lgamma_negl.c: Likewise.
12773 * sysdeps/ieee754/ldbl-128ibm/s_fmal.c: Likewise.
12774 * sysdeps/ieee754/ldbl-128ibm/s_llrintl.c: Likewise.
12775 * sysdeps/ieee754/ldbl-128ibm/s_llroundl.c: Likewise.
12776 * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c: Likewise.
12777 * sysdeps/ieee754/ldbl-128ibm/s_lroundl.c: Likewise.
12778 * sysdeps/ieee754/ldbl-128ibm/s_rintl.c: Likewise.
12779 * sysdeps/ieee754/ldbl-128ibm/x2y2m1l.c: Likewise.
12780 * sysdeps/ieee754/ldbl-96/e_gammal_r.c: Likewise.
12781 * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
12782 * sysdeps/ieee754/ldbl-96/gamma_productl.c: Likewise.
12783 * sysdeps/ieee754/ldbl-96/lgamma_negl.c: Likewise.
12784 * sysdeps/ieee754/ldbl-96/s_fma.c: Likewise.
12785 * sysdeps/ieee754/ldbl-96/s_fmal.c: Likewise.
12786 * sysdeps/ieee754/ldbl-96/s_llrintl.c: Likewise.
12787 * sysdeps/ieee754/ldbl-96/s_llroundl.c: Likewise.
12788 * sysdeps/ieee754/ldbl-96/s_lrintl.c: Likewise.
12789 * sysdeps/ieee754/ldbl-96/s_lroundl.c: Likewise.
12790 * sysdeps/ieee754/ldbl-96/x2y2m1l.c: Likewise.
12791 * sysdeps/powerpc/fpu/e_sqrt.c: Likewise.
12792 * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
12793 * sysdeps/riscv/rv64/rvd/s_ceil.c: Likewise.
12794 * sysdeps/riscv/rv64/rvd/s_floor.c: Likewise.
12795 * sysdeps/riscv/rv64/rvd/s_nearbyint.c: Likewise.
12796 * sysdeps/riscv/rv64/rvd/s_round.c: Likewise.
12797 * sysdeps/riscv/rv64/rvd/s_roundeven.c: Likewise.
12798 * sysdeps/riscv/rv64/rvd/s_trunc.c: Likewise.
12799 * sysdeps/riscv/rvd/s_finite.c: Likewise.
12800 * sysdeps/riscv/rvd/s_fmax.c: Likewise.
12801 * sysdeps/riscv/rvd/s_fmin.c: Likewise.
12802 * sysdeps/riscv/rvd/s_fpclassify.c: Likewise.
12803 * sysdeps/riscv/rvd/s_isinf.c: Likewise.
12804 * sysdeps/riscv/rvd/s_isnan.c: Likewise.
12805 * sysdeps/riscv/rvd/s_issignaling.c: Likewise.
12806 * sysdeps/riscv/rvf/fegetround.c: Likewise.
12807 * sysdeps/riscv/rvf/feholdexcpt.c: Likewise.
12808 * sysdeps/riscv/rvf/fesetenv.c: Likewise.
12809 * sysdeps/riscv/rvf/fesetround.c: Likewise.
12810 * sysdeps/riscv/rvf/feupdateenv.c: Likewise.
12811 * sysdeps/riscv/rvf/fgetexcptflg.c: Likewise.
12812 * sysdeps/riscv/rvf/ftestexcept.c: Likewise.
12813 * sysdeps/riscv/rvf/s_ceilf.c: Likewise.
12814 * sysdeps/riscv/rvf/s_finitef.c: Likewise.
12815 * sysdeps/riscv/rvf/s_floorf.c: Likewise.
12816 * sysdeps/riscv/rvf/s_fmaxf.c: Likewise.
12817 * sysdeps/riscv/rvf/s_fminf.c: Likewise.
12818 * sysdeps/riscv/rvf/s_fpclassifyf.c: Likewise.
12819 * sysdeps/riscv/rvf/s_isinff.c: Likewise.
12820 * sysdeps/riscv/rvf/s_isnanf.c: Likewise.
12821 * sysdeps/riscv/rvf/s_issignalingf.c: Likewise.
12822 * sysdeps/riscv/rvf/s_nearbyintf.c: Likewise.
12823 * sysdeps/riscv/rvf/s_roundevenf.c: Likewise.
12824 * sysdeps/riscv/rvf/s_roundf.c: Likewise.
12825 * sysdeps/riscv/rvf/s_truncf.c: Likewise.
12826
12827 2018-08-31 Paul Pluzhnikov <ppluzhnikov@google.com>
12828
12829 [BZ #20271]
12830 * include/stdio.h (__libc_fatal): Mention newline in comment.
12831 * grp/initgroups.c (internal_getgrouplist): Add missing newline.
12832 * nptl/pthread_cond_wait.c (__pthread_cond_wait_common): Likewise.
12833 * nscd/initgrcache.c (addinitgroupsX): Likewise.
12834 * nss/nsswitch.c (__nss_next2): Likewise.
12835 * sysdeps/aarch64/dl-irel.h (elf_irela): Likewise.
12836 * sysdeps/arm/dl-irel.h (elf_irel): Likewise.
12837 * sysdeps/generic/unwind-dw2.c (execute_cfa_program): Likewise.
12838 * sysdeps/i386/dl-irel.h (elf_irel): Likewise.
12839 * sysdeps/powerpc/powerpc32/dl-irel.h (elf_irel): Likewise.
12840 * sysdeps/powerpc/powerpc64/dl-irel.h (elf_irel): Likewise.
12841 * sysdeps/s390/dl-irel.h (elf_irel): Likewise.
12842 * sysdeps/sparc/sparc32/dl-irel.h (elf_irel): Likewise.
12843 * sysdeps/sparc/sparc64/dl-irel.h (elf_irel): Likewise.
12844 * sysdeps/x86_64/dl-irel.h (elf_irel): Likewise.
12845 * sysdeps/nptl/futex-internal.h (futex_wake): Likewise.
12846 * sysdeps/unix/sysv/linux/netlink_assert_response.c
12847 (__netlink_assert_response): Likewise.
12848
12849 2018-08-31 Joseph Myers <joseph@codesourcery.com>
12850
12851 * conform/glibcconform.py: New file.
12852 * conform/list-header-symbols.py: Likewise.
12853 * conform/list-header-symbols.pl: Remove.
12854 * conform/Makefile (tests-special): Only add linknamespace tests
12855 if [PYTHON].
12856 ($(linknamespace-symlists-tests)): Use list-header-symbols.py.
12857
12858 2018-08-31 H.J. Lu <hongjiu.lu@intel.com>
12859
12860 [BZ #23597]
12861 * support/Makefile (libsupport-routines): Add
12862 support_copy_file_range and xcopy_file_range.
12863 * support/support.h: Include <sys/types.h>.
12864 (support_copy_file_range): New prototype.
12865 * support/support_copy_file_range.c: New file. Copied and
12866 modified from io/copy_file_range-compat.c.
12867 * support/test-container.c (copy_one_file): Call xcopy_file_rang
12868 instead of copy_file_range.
12869 * support/xcopy_file_range.c: New file.
12870 * support/xunistd.h (xcopy_file_range): New prototype.
12871
12872 2018-08-30 Carlos O'Donell <carlos@redhat.com>
12873
12874 * elf/tst-dlopen-aout.c: Include support/xthread.h. Use
12875 xpthread_create and xpthread_join.
12876
12877 2018-08-30 Florian Weimer <fweimer@redhat.com>
12878
12879 * stdlib/stdlib.h (reallocarray): Make available under __USE_MISC.
12880
12881 2018-08-30 Stefan Liebler <stli@linux.ibm.com>
12882
12883 * stdlib/test-bz22786.c (do_test): Return EXIT_UNSUPPORTED
12884 if malloc fails.
12885
12886 2018-08-29 Joseph Myers <joseph@codesourcery.com>
12887
12888 * math/gen-libm-test.py (gen_test_args_res): Also treat plus_oflow
12889 and minus_oflow as non-finite.
12890
12891 2018-08-28 Joseph Myers <joseph@codesourcery.com>
12892
12893 * sysdeps/aarch64/fpu/fenv_private.h: New file. Based on ....
12894 * sysdeps/aarch64/fpu/math_private.h: ... this file. All contents
12895 moved to fenv_private.h except for ...
12896 (TOINT_INTRINSICS): Kept in math_private.h.
12897 (roundtoint): Likewise.
12898 (converttoint): Likewise.
12899 * sysdeps/arm/fenv_private.h: Change multiple-include guard to
12900 [ARM_FENV_PRIVATE_H]. Include next <fenv_private.h>.
12901 * sysdeps/arm/math_private.h: Remove.
12902 * sysdeps/generic/fenv_private.h: New file. Contents moved from
12903 ....
12904 * sysdeps/generic/math_private.h: ... this file. Include
12905 <stdbool.h>. Do not include <fenv.h> or <get-rounding-mode.h>.
12906 Include <fenv_private.h>. Remove functions and macros moved to
12907 fenv_private.h.
12908 * sysdeps/i386/fpu/math_private.h: Remove.
12909 * sysdeps/mips/math_private.h: Move to ....
12910 * sysdeps/mips/fpu/fenv_private.h: ... here. Change
12911 multiple-include guard to [MIPS_FENV_PRIVATE_H]. Remove
12912 [__mips_hard_float] conditional. Include next <fenv_private.h>.
12913 * sysdeps/powerpc/fpu/fenv_private.h: Change multiple-include
12914 guard to [POWERPC_FENV_PRIVATE_H]. Include next <fenv_private.h>.
12915 * sysdeps/powerpc/fpu/math_private.h: Do not include
12916 <fenv_private.h>.
12917 * sysdeps/riscv/rvf/math_private.h: Move to ....
12918 * sysdeps/riscv/rvf/fenv_private.h: ... here. Change
12919 multiple-include guard to [RISCV_FENV_PRIVATE_H]. Include next
12920 <fenv_private.h>.
12921 * sysdeps/sparc/fpu/fenv_private.h: Change multiple-include guard
12922 to [SPARC_FENV_PRIVATE_H]. Include next <fenv_private.h>.
12923 * sysdeps/sparc/fpu/math_private.h: Remove.
12924 * sysdeps/i386/fpu/fenv_private.h: Move to ....
12925 * sysdeps/x86/fpu/fenv_private.h: ... here. Change
12926 multiple-include guard to [X86_FENV_PRIVATE_H]. Include next
12927 <fenv_private.h>.
12928 * sysdeps/x86_64/fpu/math_private.h: Do not include
12929 <sysdeps/i386/fpu/fenv_private.h>.
12930
12931 2018-08-28 Florian Weimer <fweimer@redhat.com>
12932
12933 [BZ #23578]
12934 * posix/tst-regcomp-truncated.c: New file.
12935 * posix/Makefile (tests): Add it.
12936 (tst-regcomp-truncated.out): Depend on generated locales.
12937
12938 2018-08-28 Florian Weimer <fweimer@redhat.com>
12939
12940 * support/test-container.c (main): Treat unshare failure with
12941 EPERM as an unsupported test.
12942
12943 2018-08-28 Florian Weimer <fweimer@redhat.com>
12944
12945 [BZ #23520]
12946 nscd: Fix use-after-free in addgetnetgrentX and its callers.
12947 * nscd/netgroupcache.c
12948 (addgetnetgrentX): Add tofreep parameter. Do not free
12949 heap-allocated buffer.
12950 (addinnetgrX): Free buffer allocated bt addgetnetgrentX.
12951 (addgetnetgrentX_ignore): New function.
12952 (addgetnetgrent): Call it.
12953 (readdgetnetgrent): Likewise.
12954
12955 2018-08-28 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
12956
12957 * string/memmem.c: Use memcmp for first match.
12958
12959 2018-08-28 Rafał Lużyński <digitalfreak@lingonborough.com>
12960
12961 [BZ #17426]
12962 * localedata/locales/en_IN (d_fmt): Use "%d/%m/%y".
12963
12964 2018-08-27 DJ Delorie <dj@redhat.com>
12965
12966 * support/Makefile (others): Don't list programs explicitly as a
12967 dependency of "others".
12968
12969 2018-08-27 Joseph Myers <joseph@codesourcery.com>
12970
12971 * sysdeps/generic/math-tests-trap-force.h: New file.
12972 * sysdeps/generic/math-tests.h: Include <math-tests-trap-force.h>.
12973 (EXCEPTION_SET_FORCES_TRAP): Do not define here.
12974 * sysdeps/powerpc/math-tests.h: Remove file.
12975 * sysdeps/powerpc/fpu/math-tests-trap-force.h: New file.
12976
12977 2018-08-27 Martin Kuchta <martin.kuchta@netapp.com>
12978 Torvald Riegel <triegel@redhat.com>
12979
12980 [BZ #23538]
12981 * nptl/pthread_cond_common.c (__condvar_quiesce_and_switch_g1):
12982 Update r to include the set wake-request flag if waiters are
12983 remaining after spinning.
12984
12985 2018-08-27 Joseph Myers <joseph@codesourcery.com>
12986
12987 * sysdeps/gnu/netinet/udp.h (UDP_SEGMENT): New macro.
12988
12989 2018-08-25 Paul Eggert <eggert@cs.ucla.edu>
12990
12991 [BZ #23578]
12992 regex: fix uninitialized memory access
12993 I introduced this bug into gnulib in commit
12994 8335a4d6c7b4448cd0bcb6d0bebf1d456bcfdb17 dated 2006-04-10;
12995 eventually it was merged into glibc. The bug was found by
12996 project-repo <bugs@feusi.co> and reported here:
12997 https://lists.gnu.org/r/sed-devel/2018-08/msg00017.html
12998 Diagnosis and draft fix reported by Assaf Gordon here:
12999 https://lists.gnu.org/r/bug-gnulib/2018-08/msg00071.html
13000 https://lists.gnu.org/r/bug-gnulib/2018-08/msg00142.html
13001 * posix/regex_internal.c (build_wcs_upper_buffer):
13002 Fix bug when mbrtowc returns 0.
13003
13004 2018-08-24 Carlos O'Donell <carlos@redhat.com>
13005
13006 * po/be.po: Update translation.
13007
13008 2018-08-24 DJ Delorie <dj@delorie.com>
13009
13010 * support/Makefile (LDLIBS-links-dso-program): Add -lgcc and
13011 $(libunwind).
13012
13013 2018-08-24 Paul Pluzhnikov <ppluzhnikov@google.com>
13014
13015 [BZ #23400]
13016 * stdlib/test-bz22786.c (do_test): Fix undefined behavior, don't
13017 create temporary files in source tree.
13018
13019 2018-08-24 Joseph Myers <joseph@codesourcery.com>
13020
13021 * sysdeps/generic/math-tests-trap.h: New file.
13022 * sysdeps/generic/math-tests.h: Include <math-tests-trap.h>.
13023 (EXCEPTION_ENABLE_SUPPORTED): Do not define here.
13024 * sysdeps/aarch64/math-tests.h: Remove file.
13025 * sysdeps/arm/math-tests.h: Likewise.
13026 * sysdeps/riscv/math-tests.h: Likewise.
13027 * sysdeps/aarch64/math-tests-trap.h: New file.
13028 * sysdeps/arm/math-tests-trap.h: Likewise.
13029 * sysdeps/riscv/math-tests-trap.h: Likewise.
13030
13031 2018-08-24 Wilco Dijkstra <wdijkstr@arm.com>
13032
13033 * math/Makefile: Remove empty files k_sin(f).c, k_cos(f).c.
13034 Remove unused files e_rem_pio2(f).c, k_rem_pio2f.c.
13035 * sysdeps/i386/fpu/e_rem_pio2.c: Delete file.
13036 * sysdeps/ia64/fpu/e_rem_pio2.c: Likewise.
13037 * sysdeps/ia64/fpu/e_rem_pio2f.c: Likewise.
13038 * sysdeps/ia64/fpu/k_rem_pio2f.c: Likewise.
13039 * sysdeps/ieee754/dbl-64/e_rem_pio2.c: Likewise.
13040 * sysdeps/ieee754/dbl-64/k_cos.c: Likewise.
13041 * sysdeps/ieee754/dbl-64/k_sin.c: Likewise.
13042 * sysdeps/ieee754/flt-32/e_rem_pio2f.c: Likewise.
13043 * sysdeps/ieee754/flt-32/k_cosf.c: Likewise.
13044 * sysdeps/ieee754/flt-32/k_rem_pio2f.c: Likewise.
13045 * sysdeps/ieee754/flt-32/k_sinf.c: Likewise.
13046 * sysdeps/m68k/m680x0/fpu/e_rem_pio2.c: Likewise
13047 * sysdeps/m68k/m680x0/fpu/e_rem_pio2f.c: Likewise
13048 * sysdeps/m68k/m680x0/fpu/k_rem_pio2f.c: Likewise
13049 * sysdeps/powerpc/fpu/e_rem_pio2f.c: Likewise.
13050 * sysdeps/powerpc/fpu/k_rem_pio2f.c: Likewise.
13051
13052 2018-08-23 Joseph Myers <joseph@codesourcery.com>
13053
13054 * sysdeps/generic/math-tests-exceptions.h: New file.
13055 * sysdeps/generic/math-tests.h: Include <math-tests-exceptions.h>.
13056 (EXCEPTION_TESTS_float): Do not define here.
13057 (EXCEPTION_TESTS_double): Likewise.
13058 (EXCEPTION_TESTS_long_double): Likewise.
13059 (EXCEPTION_TESTS_float128): Likewise.
13060 * sysdeps/arm/math-tests.h [__SOFTFP__] (EXCEPTION_TESTS_float):
13061 Likewise.
13062 [__SOFTFP__] (EXCEPTION_TESTS_double): Likewise.
13063 [__SOFTFP__] (EXCEPTION_TESTS_long_double): Likewise.
13064 * sysdeps/arm/nofpu/math-tests-exceptions.h: New file.
13065 * sysdeps/m68k/coldfire/math-tests.h: Remove file.
13066 * sysdeps/mips/math-tests.h: Likewise.
13067 * sysdeps/nios2/math-tests.h: Likewise.
13068 * sysdeps/riscv/math-tests.h [!__riscv_flen]
13069 (EXCEPTION_TESTS_float): Do not define here.
13070 [!__riscv_flen] (EXCEPTION_TESTS_double): Likewise.
13071 [!__riscv_flen] (EXCEPTION_TESTS_long_double): Likewise.
13072 * sysdeps/riscv/nofpu/math-tests-exceptions.h: New file.
13073
13074 2018-08-23 Wilco Dijkstra <wdijkstr@arm.com>
13075
13076 * NEWS: Move optimized sinf entry to 2.29.
13077
13078 2018-08-23 Wilco Dijkstra <wdijkstr@arm.com>
13079
13080 * sysdeps/ieee754/flt-32/s_tanf.c (__tanf): Use fast range reduction.
13081
13082 2018-08-22 DJ Delorie <dj@redhat.com>
13083
13084 * Makefile (testroot.pristine): New rules to initialize the
13085 test-in-container "testroot".
13086 * Makerules (all-testsuite): Add tests-container.
13087 * Rules (tests-expected): Add tests-container.
13088 (binaries-all-tests): Likewise.
13089 (tests-container): New, run these tests in the testroot container.
13090 * support/Makefile (others): Add *-container, support_paths.c,
13091 xmkdirp, and links-dso-program.
13092 * support/links-dso-program-c.c: New.
13093 * support/links-dso-program.cc: New.
13094 * support/test-container.c: New.
13095 * support/shell-container.c: New.
13096 * support/echo-container.c: New.
13097 * support/true-container.c: New.
13098 * support/xmkdirp.c: New.
13099 * support/xsymlink.c: New.
13100 * support/support_paths.c: New.
13101 * support/support.h: Add support paths prototypes.
13102 * support/xunistd.h: Add xmkdirp () and xsymlink ().
13103
13104 * nss/tst-nss-test3.c: Convert to test-in-container.
13105 * nss/tst-nss-test3.root/: New.
13106
13107 2018-08-22 Paul Eggert <eggert@cs.ucla.edu>
13108
13109 regex: port Gnulib code to z/OS POSIX environment
13110 Problem reported by Arnold Robbins in:
13111 https://lists.gnu.org/r/bug-gnulib/2018-08/msg00129.html
13112 * posix/regex_internal.h (__iswalnum, __towlower, __towupper) [!_LIBC]:
13113 Undef.
13114
13115 2018-08-22 Joseph Myers <joseph@codesourcery.com>
13116
13117 * math/test-double-vlen2.h: Don't include <math-tests-rounding.h>.
13118 (ROUNDING_TESTS_double): Remove.
13119 * math/test-double-vlen4.h: Don't include <math-tests-rounding.h>.
13120 (ROUNDING_TESTS_double): Remove.
13121 * math/test-double-vlen8.h: Don't include <math-tests-rounding.h>.
13122 (ROUNDING_TESTS_double): Remove.
13123 * math/test-float-vlen16.h: Don't include <math-tests-rounding.h>.
13124 (ROUNDING_TESTS_float): Remove.
13125 * math/test-float-vlen4.h: Don't include <math-tests-rounding.h>.
13126 (ROUNDING_TESTS_float): Remove.
13127 * math/test-float-vlen8.h: Don't include <math-tests-rounding.h>.
13128 (ROUNDING_TESTS_float): Remove.
13129 * math/libm-test-driver.c (IF_ROUND_INIT_FE_DOWNWARD): Check
13130 !TEST_MATHVEC here.
13131 (IF_ROUND_INIT_FE_TOWARDZERO): Likewise.
13132 (IF_ROUND_INIT_FE_UPWARD): Likewise.
13133
13134 * sysdeps/generic/math-tests-rounding.h: New file.
13135 * sysdeps/generic/math-tests.h: Include <math-tests-rounding.h>.
13136 (ROUNDING_TESTS_float): Do not define here.
13137 (ROUNDING_TESTS_double): Likewise.
13138 (ROUNDING_TESTS_long_double): Likewise.
13139 (ROUNDING_TESTS_float128): Likewise.
13140 * math/test-double-vlen2.h: Include <math-tests-rounding.h>.
13141 (ROUNDING_TESTS_double): Undefine before defining.
13142 * math/test-double-vlen4.h: Include <math-tests-rounding.h>.
13143 (ROUNDING_TESTS_double): Undefine before defining.
13144 * math/test-double-vlen8.h: Include <math-tests-rounding.h>.
13145 (ROUNDING_TESTS_double): Undefine before defining.
13146 * math/test-float-vlen16.h: Include <math-tests-rounding.h>.
13147 (ROUNDING_TESTS_float): Undefine before defining.
13148 * math/test-float-vlen4.h: Include <math-tests-rounding.h>.
13149 (ROUNDING_TESTS_float): Undefine before defining.
13150 * math/test-float-vlen8.h: Include <math-tests-rounding.h>.
13151 (ROUNDING_TESTS_float): Undefine before defining.
13152 * sysdeps/arm/nofpu/math-tests-rounding.h: New file.
13153 * sysdeps/arm/math-tests.h [__SOFTFP__] (ROUNDING_TESTS_float): Do
13154 not define here.
13155 [__SOFTFP__] (ROUNDING_TESTS_double): Likewise.
13156 [__SOFTFP__] (ROUNDING_TESTS_long_double): Likewise.
13157 * sysdeps/riscv/nofpu/math-tests-rounding.h: New file.
13158 * sysdeps/riscv/math-tests.h [!__riscv_flen]
13159 (ROUNDING_TESTS_float): Do not define here.
13160 [!__riscv_flen] (ROUNDING_TESTS_double): Likewise.
13161 [!__risv_flen] (ROUNDING_TESTS_long_double): Likewise.
13162 * sysdeps/m68k/coldfire/math-tests.h [!__mcffpu__]
13163 (ROUNDING_TESTS_float): Likewise.
13164 [!__mcffpu__] (ROUNDING_TESTS_double): Likewise.
13165 [!__mcffpu__] (ROUNDING_TESTS_long_double): Likewise.
13166 * sysdeps/mips/math-tests.h [__mips_soft_float]
13167 (ROUNDING_TESTS_float): Likewise.
13168 [__mips_soft_float] (ROUNDING_TESTS_double): Likewise.
13169 [__mips_soft_float] (ROUNDING_TESTS_long_double): Likewise.
13170 * sysdeps/nios2/math-tests.h (ROUNDING_TESTS_float): Likewise.
13171 (ROUNDING_TESTS_double): Likewise.
13172 (ROUNDING_TESTS_long_double): Likewise.
13173
13174 2018-08-21 Tobias Klauser <tklauser@distanz.ch>
13175
13176 * sysdeps/unix/sysv/linux/bits/socket.h (PF_MAX): Set to 45.
13177 (PF_XDP): New macro.
13178 (AF_XDP): New macro.
13179 (SOL_XDP): New macro.
13180
13181 2018-08-21 Joseph Myers <joseph@codesourcery.com>
13182
13183 * sysdeps/gnu/netinet/tcp.h (TCP_ZEROCOPY_RECEIVE): New macro.
13184 (TCP_INQ): Likewise.
13185 (TCP_CM_INQ): Likewise.
13186 (TCP_REPAIR_ON): Likewise.
13187 (TCP_REPAIR_OFF): Likewise.
13188 (TCP_REPAIR_OFF_NO_WP): Likewise.
13189 (struct tcp_zerocopy_receive): New type.
13190
13191 2018-08-21 Florian Weimer <fweimer@redhat.com>
13192
13193 * support/support.h (support_descriptor_supports_holes): Declare.
13194 * support/Makefile (libsupport-routines): Add
13195 support_descriptor_supports_holes.
13196 * support/support_descriptor_supports_holes.c: New file.
13197 * io/tst-copy_file_range.c: Call support_descriptor_supports_holes
13198 and stop testing if holes are not supported.
13199 * io/test-lfs.c (do_prepare): Likewise.
13200 * sysdeps/unix/sysv/linux/tst-fallocate-common.c (do_prepare):
13201 Likewise.
13202 * timezone/tst-tzset.c (create_tz_file): Likewise.
13203 * misc/tst-preadvwritev-common.c (temp_fd_supports_holes) New
13204 variable.
13205 (do_prepare): Set it.
13206 * misc/tst-preadvwritev64.c (do_test): Use temp_fd_supports_holes.
13207
13208 2018-08-21 Florian Weimer <fweimer@redhat.com>
13209
13210 [BZ #17248]
13211 * Makeconfig (+cflags): Do not sort (and deduplicate).
13212
13213 2018-08-21 Florian Weimer <fweimer@redhat.com>
13214
13215 * debug/readlink_chk.c (__readlink_chk): Always call __readlink.
13216 * sysdeps/unix/sysv/linux/generic/readlink_chk.c: Remove file.
13217
13218 2018-08-20 Florian Weimer <fweimer@redhat.com>
13219
13220 * sysdeps/unix/sysv/linux/generic/readlink_chk.c: Remove
13221 HAVE_INLINED_SYSCALLS conditionals. Use INLINE_SYSCALL_CALL.
13222
13223 2018-08-20 Joseph Myers <joseph@codesourcery.com>
13224
13225 * sysdeps/unix/sysv/linux/sys/signalfd.h (struct
13226 signalfd_siginfo): Add ssi_addr_lsb, ssi_syscall, ssi_call_addr
13227 and ssi_arch members.
13228
13229 * elf/elf.c (NT_VMCOREDD): New macro.
13230 (AT_MINSIGSTKSZ): Likewise.
13231
13232 2018-08-20 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
13233
13234 * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile
13235 (libm-sysdep_routines): Remove s_sinf-ppc64, s_sinf-power8,
13236 s_cosf-ppc64 and s_cosf-power8.
13237 * sysdeps/powerpc/fpu/s_cosf.c: Remove file.
13238 * sysdeps/powerpc/fpu/s_sinf.c: Likewise.
13239 * sysdeps/powerpc/fpu/k_sinf.c: Likewise.
13240 * sysdeps/powerpc/fpu/k_cosf.c: Likewise.
13241 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_cosf-power8.S: Likewise.
13242 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_cosf-ppc64.c: Likewise.
13243 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_cosf.c: Likewise.
13244 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_sinf-power8.S: Likewise.
13245 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_sinf-ppc64.c: Likewise.
13246 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_sinf.c: Likewise.
13247 * sysdeps/powerpc/powerpc64/power8/fpu/s_cosf.S: Likewise.
13248 * sysdeps/powerpc/powerpc64/power8/fpu/s_sinf.S: Likewise.
13249
13250 2018-08-17 Florian Weimer <fweimer@redhat.com>
13251
13252 * sysdeps/s390/fpu/libm-test-ulps: Regenerate.
13253
13254 2018-08-17 Istvan Kurucsai <pistukem@gmail.com>
13255
13256 * malloc/malloc.c (_int_malloc): Additional binning code checks.
13257
13258 2018-08-16 Florian Weimer <fweimer@redhat.com>
13259
13260 * configure.ac: Add --with-nonshared-cflags option.
13261 * config.make.in (extra-nonshared-cflags): Set variable.
13262 * Makeconfig (CFLAGS-.oS): Use it.
13263 * manual/install.texi (Configuring and compiling): Document
13264 --with-nonshared-cflags.
13265 * configure: Regenerate.
13266 * INSTALL: Likewise.
13267
13268 2018-08-16 Florian Weimer <fweimer@redhat.com>
13269
13270 * Makeconfig (ASFLAGS): Always append required assembler flags.
13271
13272 2018-08-16 Moritz Eckert <m.eckert@cs.ucsb.edu>
13273
13274 * malloc/malloc.c (_int_free): Check for corrupt prev_size vs size.
13275 (malloc_consolidate): Likewise.
13276
13277 2018-08-16 Pochang Chen <johnchen902@gmail.com>
13278
13279 * malloc/malloc.c (_int_malloc.c): Verify size of top chunk.
13280
13281 2018-08-16 Siddhesh Poyarekar <siddhesh@sourceware.org>
13282
13283 * benchtests/bench-strlen.c (do_test): Allocate buffers before
13284 every strlen call.
13285
13286 * benchtests/bench-strlen.c: Print performance numbers in json.
13287
13288 2018-08-16 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
13289
13290 * sysdeps/powerpc/powerpc64/multiarch/Makefile
13291 (sysdep_routines): Build strcmp-power9 and strncmp-power9
13292 only for little endian.
13293 * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
13294 (strncmp): Move __strncmp_power9 inside ifdef __LITTLE_ENDIAN__.
13295 (STRCMP): Move __strcmp_power9 inside ifdef __LITTLE_ENDIAN__.
13296 * sysdeps/powerpc/powerpc64/multiarch/strcmp-power9.S:
13297 Add check for little endian.
13298 * sysdeps/powerpc/powerpc64/multiarch/strcmp.c
13299 (__strcmp_power9): Add check for little endian.
13300 * sysdeps/powerpc/powerpc64/multiarch/strncmp-power9.S:
13301 Add check for little endian.
13302 * sysdeps/powerpc/powerpc64/multiarch/strncmp.c
13303 (__strncmp_power9): Add check for little endian.
13304 * sysdeps/powerpc/powerpc64/power9/strcmp.S: Removed ifdef
13305 __LITTLE_ENDIAN__ and moved to sysdeps/powerpc/powerpc64/le/power9.
13306 * sysdeps/powerpc/powerpc64/power9/strncmp.S: Likewise.
13307 * sysdeps/powerpc/powerpc64/le/power9/strcmp.S: New file.
13308 * sysdeps/powerpc/powerpc64/le/power9/strncmp.S: Likewise.
13309
13310 2018-08-15 Siddhesh Poyarekar <siddhesh@sourceware.org>
13311
13312 * sysdeps/aarch64/strlen.S (__strlen): Rename to STRLEN.
13313 [!STRLEN](STRLEN): Set to __strlen.
13314 * sysdeps/aarch64/multiarch/strlen.c: New file.
13315 * sysdeps/aarch64/multiarch/strlen_generic.S: Likewise.
13316 * sysdeps/aarch64/multiarch/strlen_asimd.S: Likewise.
13317 * sysdeps/aarch64/multiarch/ifunc-impl-list.c
13318 (__libc_ifunc_impl_list): Add strlen.
13319 * sysdeps/aarch64/multiarch/Makefile (sysdep_routines): Add
13320 strlen_generic and strlen_asimd.
13321
13322 2018-08-15 Wilco Dijkstra <wdijkstr@arm.com>
13323
13324 * sysdeps/ieee754/flt-32/e_lgammaf_r.c (sin_pif): Use __sinf/__cosf.
13325 * sysdeps/ieee754/flt-32/k_cosf.c (__kernel_cosf): Remove all code.
13326 * sysdeps/ieee754/flt-32/k_sinf.c (__kernel_sinf): Likewise.
13327
13328 2018-08-15 Wilco Dijkstra <wdijkstr@arm.com>
13329
13330 * sysdeps/x86_64/fpu/libm-test-ulps: Regenerate to fix spaces.
13331
13332 2018-08-14 Florian Weimer <fweimer@redhat.com>
13333
13334 [BZ #23519]
13335 * include/stdio.h (__vfxprintf): Declare.
13336 * stdio-common/fxprintf.c (__vfxprintf): New function.
13337 (__fxprintf): Call it.
13338 * misc/err.c (convert_and_print): Remove function.
13339 (vwarnx, vwarn): Call __fxprintf and __vfxprintf.
13340 * misc/error.c [_LIBC] (error_tail): Call __vfxprintf.
13341 * misc/Makefile (tests): Add tst-warn-wide.
13342 * misc/tst-warn-wide.c: New file.
13343
13344 2018-08-14 Wilco Dijkstra <wdijkstr@arm.com>
13345 Szabolcs Nagy <szabolcs.nagy@arm.com>
13346
13347 * NEWS: Mention sinf, cosf, sincosf.
13348 * sysdeps/aarch64/libm-test-ulps: Update ULP for sinf, cosf, sincosf.
13349 * sysdeps/x86_64/fpu/libm-test-ulps: Update ULP for sinf and cosf.
13350 * sysdeps/x86_64/fpu/multiarch/s_sincosf-fma.c: Add definitions of
13351 constants rather than including generic sincosf.h.
13352 * sysdeps/x86_64/fpu/s_sincosf_data.c: Remove.
13353 * sysdeps/ieee754/flt-32/s_cosf.c (cosf): Rewrite.
13354 * sysdeps/ieee754/flt-32/s_sincosf.h (reduced_sin): Remove.
13355 (reduced_cos): Remove.
13356 (sinf_poly): New function.
13357 * sysdeps/ieee754/flt-32/s_sinf.c (sinf): Rewrite.
13358
13359 2018-08-14 Florian Weimer <fweimer@redhat.com>
13360
13361 [BZ #23521]
13362 [BZ #23522]
13363 * nss/nss_files/files-alias.c (get_next_alias): During :include:
13364 processing, bail out if no room, and close the stream before
13365 returning ERANGE.
13366 * nss/Makefile (tests): Add tst-nss-files-alias-leak.
13367 (tst-nss-files-alias-leak): Link with libdl.
13368 (tst-nss-files-alias-leak.out): Depend on nss_files.
13369
13370 * nss/tst-nss-files-alias-leak.c: New file.
13371
13372 2018-08-14 Florian Weimer <fweimer@redhat.com>
13373
13374 * nscd/nscd_conf.c (nscd_parse_file): Deallocate old storage for
13375 server_user, stat_user.
13376
13377 2018-08-13 Joseph Myers <joseph@codesourcery.com>
13378
13379 * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
13380 version to 4.18.
13381 (io_pgetevents): New syscall.
13382 (rseq): Likewise.
13383
13384 * manual/install.texi (Configuring and compiling): Do not list
13385 tools used for testing pretty printers here.
13386 (Tools for Compilation): List Python, PExpect and GDB here.
13387 Update descriptions of uses of Perl and Python.
13388 * INSTALL: Regenerate.
13389
13390 * scripts/build-many-glibcs.py (Context.checkout): Default Linux
13391 version to 4.18.
13392
13393 2018-08-13 Florian Weimer <fweimer@redhat.com>
13394
13395 * misc/error.c (error): Add missing va_end call.
13396 (error_at_line): Likewise.
13397
13398 2018-08-13 Florian Weimer <fweimer@redhat.com>
13399
13400 * stdlib/mbstowcs.c (mbstowcs): Remove outdated comment.
13401
13402 2018-08-11 Siddhesh Poyarekar <siddhesh@sourceware.org>
13403
13404 * benchtests/scripts/benchout.schema.json (properties): Add
13405 new properties.
13406
13407 * benchtests/bench-skeleton.c (main): Add duration and
13408 iterations attributes.
13409
13410 2018-08-10 Paul Eggert <eggert@cs.ucla.edu>
13411
13412 regex: Gnulib unibyte RRI uses bytes not chars
13413 Adjust the non-glibc code to agree with what Gawk needs for
13414 rational range interpretation (RRI) for regular expression ranges.
13415 In unibyte locales, Gawk wants ranges to use the underlying byte
13416 rather than the character code point. This change does not affect
13417 glibc proper.
13418 * posix/regcomp.c (parse_byte) [!LIBC && RE_ENABLE_I18N]:
13419 In unibyte locales, use the byte value rather than
13420 running it through btowc.
13421
13422 2018-08-10 Joseph Myers <joseph@codesourcery.com>
13423
13424 * sysdeps/generic/math-tests-snan.h: New file.
13425 * sysdeps/generic/math-tests.h: Include <math-tests-snan.h>.
13426 (SNAN_TESTS_float): Do not define here.
13427 (SNAN_TESTS_double): Likewise.
13428 (SNAN_TESTS_long_double): Likewise.
13429 (SNAN_TESTS_float128): Likewise.
13430 * sysdeps/i386/fpu/math-tests-snan.h: New file.
13431 * sysdeps/i386/fpu/math-tests.h: Remove file.
13432 * sysdeps/ia64/math-tests-snan.h: New file.
13433 * sysdeps/ia64/math-tests.h: Remove file.
13434 * sysdeps/x86/math-tests.h: Likewise.
13435 * sysdeps/x86_64/fpu/math-tests-snan.h: New file.
13436
13437 2018-08-10 Wilco Dijkstra <wdijkstr@arm.com>
13438 Szabolcs Nagy <szabolcs.nagy@arm.com>
13439
13440 * math/Makefile: Add s_sincosf_data.c.
13441 * sysdeps/ia64/fpu/s_sincosf_data.c: New file.
13442 * sysdeps/ieee754/flt-32/s_sincosf.h (abstop12): Add new function.
13443 (sincosf_poly): Likewise.
13444 (reduce_small): Likewise.
13445 (reduce_large): Likewise.
13446 * sysdeps/ieee754/flt-32/s_sincosf.c (sincosf): Rewrite.
13447 * sysdeps/ieee754/flt-32/s_sincosf_data.c: New file with sincosf data.
13448 * sysdeps/m68k/m680x0/fpu/s_sincosf_data.c: New file.
13449 * sysdeps/x86_64/fpu/s_sincosf_data.c: New file.
13450
13451 2018-08-10 Wilco Dijkstra <wdijkstr@arm.com>
13452 Szabolcs Nagy <szabolcs.nagy@arm.com>
13453
13454 * sysdeps/aarch64/fpu/math_private.h (roundtoint): Use round.
13455 (converttoint): Use lround.
13456 * sysdeps/ieee754/flt-32/math_config.h (roundtoint): Declare and
13457 document the semantics when TOINT_INTRINSICS is set.
13458 (converttoint): Likewise.
13459 (TOINT_RINT): Remove.
13460 (TOINT_SHIFT): Remove.
13461 * sysdeps/ieee754/flt-32/e_expf.c (__expf): Remove the TOINT_RINT code
13462 path.
13463
13464 2018-08-10 Florian Weimer <fweimer@redhat.com>
13465
13466 [BZ #23497]
13467 * sysdeps/unix/sysv/linux/getdents64.c (handle_overflow): New
13468 function.
13469 (__old_getdents64): Use getdents64. Convert entries without
13470 moving them.
13471 * sysdeps/unix/sysv/linux/tst-readdir64-compat.c: New file.
13472 * sysdeps/unix/sysv/linux/Makefile (tests-internal): Add
13473 tst-readdir64-compat.
13474
13475 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
13476
13477 * sysdeps/s390/s390-32/s390-mcount.S (_mcount):
13478 Fix unwind.
13479
13480 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
13481
13482 * sysdeps/s390/s390-64/Versions (__fentry__): Add.
13483 * sysdeps/s390/s390-64/s390x-mcount.S: Move the common
13484 code to s390x-mcount.h and #include it.
13485 * sysdeps/s390/s390-64/s390x-mcount.h: New file.
13486 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist
13487 (__fentry__): Add.
13488
13489 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
13490
13491 * stdlib/Versions: Remove __fentry__.
13492 * sysdeps/i386/Versions: Add __fentry__.
13493 * sysdeps/x86_64/Versions: Add __fentry__.
13494
13495 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
13496
13497 * sysdeps/s390/Makefile: Register the new tests.
13498 * sysdeps/s390/tst-dl-runtime-mod.S: New file.
13499 * sysdeps/s390/tst-dl-runtime-profile-audit.c: New file.
13500 * sysdeps/s390/tst-dl-runtime-profile-noaudit.c: New file.
13501 * sysdeps/s390/tst-dl-runtime-resolve-audit.c: New file.
13502 * sysdeps/s390/tst-dl-runtime-resolve-noaudit.c: New file.
13503 * sysdeps/s390/tst-dl-runtime.c: New file.
13504
13505 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
13506
13507 * sysdeps/s390/s390-64/dl-trampoline.h (_dl_runtime_profile):
13508 Do not clobber R0.
13509
13510 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
13511
13512 * sysdeps/s390/s390-64/dl-trampoline.h (_dl_runtime_resolve):
13513 Do not clobber R0.
13514
13515 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
13516
13517 * sysdeps/s390/s390-32/dl-trampoline.h (_dl_runtime_profile):
13518 Do not clobber R0.
13519
13520 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
13521
13522 * sysdeps/s390/s390-32/dl-trampoline.h (_dl_runtime_resolve):
13523 Do not clobber R0.
13524
13525 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
13526
13527 * sysdeps/s390/s390-64/dl-trampoline.h (_dl_runtime_profile):
13528 Use symbolic offsets for stack variables.
13529
13530 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
13531
13532 * sysdeps/s390/s390-64/dl-trampoline.h (_dl_runtime_resolve):
13533 Use symbolic offsets for stack variables.
13534
13535 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
13536
13537 * sysdeps/s390/s390-32/dl-trampoline.h (_dl_runtime_profile):
13538 Use symbolic offsets for stack variables.
13539
13540 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
13541
13542 * sysdeps/s390/s390-32/dl-trampoline.h (_dl_runtime_resolve):
13543 Use symbolic offsets for stack variables.
13544
13545 2018-08-09 Joseph Myers <joseph@codesourcery.com>
13546
13547 * math/gen-libm-test.py: New file.
13548 * math/gen-libm-test.pl: Remove.
13549 * math/Makefile [$(PERL) != no]: Change condition to [PYTHON].
13550 ($(objpfx)libm-test-ulps.h): Use gen-libm-test.py instead of
13551 gen-libm-test.pl.
13552 ($(libm-test-c-noauto-obj)): Likewise.
13553 ($(libm-test-c-auto-obj)): Likewise.
13554 ($(libm-test-c-narrow-obj)): Likewise.
13555 (regen-ulps): Likewise.
13556 * math/README.libm-test: Update references to gen-libm-test.pl.
13557 * math/libm-test-driver.c (struct test_fj_f_data): Update comment
13558 referencing gen-libm-test.pl.
13559 * math/libm-test-nexttoward.inc (nexttoward_test_data): Likewise.
13560 * math/libm-test-support.c: Likewise.
13561 * math/libm-test-support.h: Likewise.
13562 * sysdeps/generic/libm-test-ulps: Likewise.
13563
13564 2018-08-08 Siddhesh Poyarekar <siddhesh@sourceware.org>
13565
13566 * sysdeps/aarch64/strlen.S [TEST_PAGE_CROSS](MIN_PAGE_SIZE):
13567 Fix value.
13568
13569 2018-08-08 Joseph Myers <joseph@codesourcery.com>
13570
13571 * math/libm-test-nextdown.inc (do_test): Move comment to ....
13572 * math/libm-test-nexttoward.inc (nexttoward_test_data): ... here.
13573
13574 2018-08-08 Samuel Thibault <samuel.thibault@ens-lyon.org>
13575
13576 * htl/Versions (__pthread_getspecific, __pthread_setspecific): Add
13577 symbols.
13578 * sysdeps/htl/pthreadP.h [IS_IN (libpthread)] (__pthread_getspecific,
13579 __pthread_setspecific): Add hidden proto.
13580 * sysdeps/htl/pt-getspecific.c (__pthread_getspecific): Add hidden def.
13581 * sysdeps/htl/pt-setspecific.c (__pthread_setspecific): Add hidden def.
13582
13583 2018-08-07 Siddhesh Poyarekar <siddhesh@sourceware.org>
13584
13585 * benchtests/bench-string.h (buf1_size, buf2_size): New
13586 variables.
13587 (init_sizes): New function.
13588 (test_init): Use it.
13589 (alloc_buf, exit_error): New functions.
13590 (alloc_bufs): Use ALLOC_BUF.
13591 (realloc_bufs): Remove.
13592 * benchtests/bench-memcmp.c (do_test): Adjust.
13593 * benchtests/bench-memset-large.c (do_test): Likewise.
13594 * benchtests/bench-memset-walk.c (do_test): Likewise.
13595 * benchtests/bench-memset.c (do_test): Likewise.
13596 * benchtests/bench-strncmp.c (do_test): Likewise.
13597
13598 2018-08-06 Andreas Schwab <schwab@suse.de>
13599
13600 * sysdeps/riscv/nptl/tls.h (DB_THREAD_SELF): Use REGISTER instead
13601 of CONST_THREAD_AREA.
13602
13603 2018-08-06 H.J. Lu <hongjiu.lu@intel.com>
13604
13605 * sysdeps/x86/cpu-features.h (STATE_SAVE_OFFSET): Removed.
13606 (STATE_SAVE_MASK): Likewise.
13607 Don't check __ASSEMBLER__ to include <cpu-features-offsets.h>.
13608 * sysdeps/x86/sysdep.h (STATE_SAVE_OFFSET): New.
13609 (STATE_SAVE_MASK): Likewise.
13610 * sysdeps/x86_64/dl-trampoline.S: Include <cpu-features-offsets.h>
13611 instead of <cpu-features.h>.
13612
13613 2018-08-03 DJ Delorie <dj@redhat.com>
13614
13615 * sysdeps/riscv/rvf/math_private.h (libc_feholdexcept_setround_riscv):
13616 Move libc_fesetround_riscv after libc_feholdexcept_riscv.
13617
13618 * sysdeps/riscv/rv64/rvd/libm-test-ulps: Update.
13619
13620 2018-08-03 Joseph Myers <joseph@codesourcery.com>
13621
13622 * math/libm-test-ilogb.inc (ilogb_test_data): Use ',' not ';'
13623 after TEST_* calls.
13624 * math/libm-test-llogb.inc (llogb_test_data): Likewise.
13625 * math/libm-test-logb.inc (logb_test_data): Likewise.
13626
13627 2018-08-03 Wilco Dijkstra <wdijkstr@arm.com>
13628
13629 * string/strcasestr.c (STRCASESTR): Simplify and speedup first match.
13630 * string/strstr.c (AVAILABLE): Likewise.
13631
13632 2018-08-03 H.J. Lu <hongjiu.lu@intel.com>
13633
13634 * sysdeps/i386/i686/multiarch/bzero-ia32.S: Don't include
13635 <init-arch.h>.
13636 * sysdeps/x86_64/fpu/multiarch/svml_d_sin8_core-avx2.S: Likewise.
13637 * sysdeps/x86_64/fpu/multiarch/svml_s_expf16_core-avx2.S: Likewise.
13638 * sysdeps/x86_64/multiarch/memset-sse2-unaligned-erms.S: Likewise.
13639
13640 2018-08-03 Carlos O'Donell <carlos@redhat.com>
13641
13642 * po/be.po: Update translation.
13643
13644 * po/be.po: Update translation.
13645
13646 2018-08-03 H.J. Lu <hongjiu.lu@intel.com>
13647
13648 * sysdeps/x86/cpu-features-offsets.sym
13649 (rtld_global_ro_offsetof): Removed.
13650 (CPU_FEATURES_SIZE): Likewise.
13651 (CPUID_OFFSET): Likewise.
13652 (CPUID_SIZE): Likewise.
13653 (CPUID_EAX_OFFSET): Likewise.
13654 (CPUID_EBX_OFFSET): Likewise.
13655 (CPUID_ECX_OFFSET): Likewise.
13656 (CPUID_EDX_OFFSET): Likewise.
13657 (FAMILY_OFFSET): Likewise.
13658 (MODEL_OFFSET): Likewise.
13659 (FEATURE_OFFSET): Likewise.
13660 (FEATURE_SIZ): Likewise.
13661 (COMMON_CPUID_INDEX_1): Likewise.
13662 (COMMON_CPUID_INDEX_7): Likewise.
13663 (FEATURE_INDEX_1): Likewise.
13664 (RTLD_GLOBAL_RO_DL_X86_CPU_FEATURES_OFFSET): Updated.
13665
13666 2018-08-02 Carlos O'Donell <carlos@redhat.com>
13667
13668 * localedata/Makefile (INSTALL-SUPPORTED-LOCALES): Remove.
13669 (INSTALL-SUPPORTED-LOCALE-ARCHIVE): Define.
13670 (INSTALL-SUPPORTED-LOCALE-FILES): Define.
13671 (install-locales): Depend on install-locale-archive.
13672 (install-locale-archive): Define.
13673 (install-locale-files): Define.
13674 (build-one-locale): Define macro.
13675 * manual/install.texi (Running make install): Document.
13676 * manual/INSTALL: Regenerate.
13677
13678 2018-08-02 Siddhesh Poyarekar <siddhesh@sourceware.org>
13679
13680 * benchtests/scripts/compare_strings.py: Import traceback.
13681 (parse_file): Pretty-print error.
13682
13683 * NEWS: Mention the change.
13684 * elf/dl-tunables.list: Rename tune namespace to cpu.
13685 * sysdeps/powerpc/dl-tunables.list: Likewise.
13686 * sysdeps/x86/dl-tunables.list: Likewise.
13687 * sysdeps/aarch64/dl-tunables.list: Rename tune.cpu to
13688 cpu.name.
13689 * elf/dl-hwcaps.c (_dl_important_hwcaps): Adjust.
13690 * elf/dl-hwcaps.h (GET_HWCAP_MASK): Likewise.
13691 * manual/README.tunables: Likewise.
13692 * manual/tunables.texi: Likewise.
13693 * sysdeps/powerpc/cpu-features.c: Likewise.
13694 * sysdeps/unix/sysv/linux/aarch64/cpu-features.c
13695 (init_cpu_features): Likewise.
13696 * sysdeps/x86/cpu-features.c: Likewise.
13697 * sysdeps/x86/cpu-features.h: Likewise.
13698 * sysdeps/x86/cpu-tunables.c: Likewise.
13699 * sysdeps/x86_64/Makefile: Likewise.
13700 * sysdeps/x86/dl-cet.c: Likewise.
13701
13702 2018-08-02 Joseph Myers <joseph@codesourcery.com>
13703
13704 [BZ #23479]
13705 * sysdeps/mips/bits/fenv.h (FE_INEXACT): Define only if
13706 [__mips_hard_float].
13707 (FE_UNDERFLOW): Likewise.
13708 (FE_OVERFLOW): Likewise.
13709 (FE_DIVBYZERO): Likewise.
13710 (FE_INVALID): Likewise.
13711 (FE_ALL_EXCEPT): Define to 0 if [!__mips_hard_float].
13712 (FE_TOWARDZERO): Define only if [__mips_hard_float].
13713 (FE_UPWARD): Likewise.
13714 (FE_DOWNWARD): Likewise.
13715 (__FE_UNDEFINED): Define if [!__mips_hard_float]
13716 (FE_NOMASK_ENV): Define only if [__mips_hard_float].
13717 * sysdeps/mips/mips64/sfp-machine.h (_FP_DECL_EX): Define only if
13718 [__mips_hard_float].
13719 (FP_ROUNDMODE): Likewise.
13720 (FP_RND_NEAREST): Likewise.
13721 (FP_RND_ZERO): Likewise.
13722 (FP_RND_PINF): Likewise.
13723 (FP_RND_MINF): Likewise.
13724 (FP_EX_INVALID): Likewise.
13725 (FP_EX_OVERFLOW): Likewise.
13726 (FP_EX_UNDERFLOW): Likewise.
13727 (FP_EX_DIVZERO): Likewise.
13728 (FP_EX_INEXACT): Likewise.
13729 (FP_INIT_ROUNDMODE): Likewise.
13730 * sysdeps/mips/nofpu/fesetenv.c: New file.
13731 * sysdeps/mips/nofpu/feupdateenv.c: Likewise.
13732
13733 2018-08-01 Joseph Myers <joseph@codesourcery.com>
13734
13735 * math/test-misc.c (do_test) [LDBL_MANT_DIG > DBL_MANT_DIG]: Make
13736 code using FE_UNDERFLOW conditional on [FE_UNDERFLOW], code using
13737 FE_OVERFLOW conditional on [FE_OVERFLOW] and code using FE_UPWARD
13738 conditional on [FE_UPWARD].
13739
13740 2018-08-01 Paul Eggert <eggert@cs.ucla.edu>
13741
13742 regex: fix memory leak in Gnulib
13743 Problem and fix reported by Assaf Gordon in:
13744 https://lists.gnu.org/r/bug-gnulib/2018-07/txtqLKNwBdefE.txt
13745 * posix/regcomp.c (free_charset) [!_LIBC]: Free range_starts and
13746 range_ends members too, as they are defined in 'struct
13747 re_charset_t' even if not _LIBC. This affects only Gnulib.
13748
13749 2018-08-01 H.J. Lu <hongjiu.lu@intel.com>
13750
13751 * sysdeps/x86/cpu-features.c (get_common_indeces): Renamed to
13752 ...
13753 (get_common_indices): This.
13754 (init_cpu_features): Updated.
13755
13756 2018-08-01 Joseph Myers <joseph@codesourcery.com>
13757
13758 * sysdeps/generic/math-tests-snan-payload.h: New file.
13759 * sysdeps/hppa/math-tests-snan-payload.h: Likewise.
13760 * sysdeps/mips/math-tests-snan-payload.h: Likewise.
13761 * sysdeps/riscv/math-tests-snan-payload.h: Likewise.
13762 * sysdeps/generic/math-tests.h: Include
13763 <math-tests-snan-payload.h>.
13764 (SNAN_TESTS_PRESERVE_PAYLOAD): Do not define macro here.
13765 * sysdeps/hppa/math-tests.h: Remove file.
13766 * sysdeps/mips/math-tests.h [!__mips_nan2008]
13767 (SNAN_TESTS_PRESERVE_PAYLOAD): Do not define macro here.
13768 * sysdeps/riscv/math-tests.h (SNAN_TESTS_PRESERVE_PAYLOAD):
13769 Likewise.
13770
13771 * sysdeps/generic/math-tests-snan-cast.h: New file.
13772 * sysdeps/powerpc/math-tests-snan-cast.h: Likewise.
13773 * sysdeps/generic/math-tests.h: Include <math-tests-snan-cast.h>.
13774 (SNAN_TESTS_TYPE_CAST): Do not define macro here.
13775 * sysdeps/powerpc/math-tests.h (SNAN_TESTS_TYPE_CAST): Likewise.
13776
13777 2018-08-01 Carlos O'Donell <carlos@redhat.com>
13778
13779 * version.h (RELEASE): Set to "development".
13780 (VERSION): Set to "2.28.9000".
13781 * NEWS (2.29): New section.
13782
13783 * version.h (RELEASE): Set to "stable".
13784 (VERSION): Set to "2.28".
13785 * include/features.h (__GLIBC_MINOR__): Set to 2.28.
13786 * NEWS: Add the list of bugs fixed in 2.28.
13787
13788 * po/ca.po: Update to latest version.
13789 * po/cs.po: Likewise
13790 * po/da.po: Likewise
13791 * po/el.po: Likewise
13792 * po/eo.po: Likewise
13793 * po/es.po: Likewise
13794 * po/fi.po: Likewise
13795 * po/fr.po: Likewise
13796 * po/gl.po: Likewise
13797 * po/hu.po: Likewise
13798 * po/ia.po: Likewise
13799 * po/id.po: Likewise
13800 * po/it.po: Likewise
13801 * po/ja.po: Likewise
13802 * po/ko.po: Likewise
13803 * po/lt.po: Likewise
13804 * po/nb.po: Likewise
13805 * po/nl.po: Likewise
13806 * po/pt_BR.po: Likewise
13807 * po/ru.po: Likewise
13808 * po/rw.po: Likewise
13809 * po/sk.po: Likewise
13810 * po/sl.po: Likewise
13811 * po/tr.po: Likewise
13812 * po/zh_CN.po: Likewise
13813 * po/zh_TW.po: Likewise
13814
13815 2018-07-31 Samuel Thibault <samuel.thibault@ens-lyon.org>
13816
13817 * sysdeps/mach/hurd/i386/init-first.c (init1): Move ELF hdr and TLS
13818 initialization...
13819 (init): ... before initializing libpthread.
13820
13821 * mach/mach.h (__mach_setup_tls, mach_setup_tls): Add prototypes.
13822 * mach/setup-thread.c (__mach_setup_thread): Move TLS setup to...
13823 (__mach_setup_tls): ... new function.
13824 (mach_setup_tls): New alias.
13825 * hurd/hurdsig.c (_hurdsig_init): Call __mach_setup_tls after
13826 __mach_setup_thread.
13827 * sysdeps/mach/hurd/profil.c (update_waiter): Likewise.
13828 * sysdeps/mach/hurd/setitimer.c (setitimer_locked): Likewise.
13829 * mach/Versions [libc] (mach_setup_tls): Add symbol.
13830 * sysdeps/mach/hurd/i386/libc.abilist (mach_setup_tls): Likewise.
13831
13832 2018-07-31 Carlos O'Donell <carlos@redhat.com>
13833
13834 * manual/install.texi: Update versions.
13835 * INSTALL: Regenerate.
13836
13837 * manual/contrib.texi (Contributors): Update contributions.
13838
13839 2018-07-31 Carlos O'Donell <carlos@redhat.com>
13840
13841 * po/be.po: Update translations.
13842
13843 2018-07-31 Adhemerval Zanella <adhemerval.zanella@linaro.org>
13844
13845 * sysdeps/sh/libm-test-ulps: Update.
13846
13847 2018-07-30 Carlos O'Donell <carlos@redhat.com>
13848
13849 * po/bg.po: Update translations.
13850 * po/de.po: Likewise.
13851 * po/hr.po: Likewise.
13852 * po/pt_BR.po: Likewise.
13853 * po/sv.po: Likewise.
13854 * po/vi.po: Likewise.
13855
13856 2018-07-30 H.J. Lu <hongjiu.lu@intel.com>
13857
13858 [BZ #23467]
13859 * sysdeps/unix/sysv/linux/x86/Makefile (tests): Add
13860 tst-cet-property-1 and tst-cet-property-2 if CET is enabled.
13861 (CFLAGS-tst-cet-property-1.o): New.
13862 (ASFLAGS-tst-cet-property-dep-2.o): Likewise.
13863 ($(objpfx)tst-cet-property-2): Likewise.
13864 ($(objpfx)tst-cet-property-2.out): Likewise.
13865 * sysdeps/unix/sysv/linux/x86/tst-cet-property-1.c: New file.
13866 * sysdeps/unix/sysv/linux/x86/tst-cet-property-2.c: Likewise.
13867 * sysdeps/unix/sysv/linux/x86/tst-cet-property-dep-2.S: Likewise.
13868 * sysdeps/x86/dl-prop.h (_dl_process_cet_property_note): Parse
13869 each property item until GNU_PROPERTY_X86_FEATURE_1_AND is found.
13870
13871 2018-07-30 H.J. Lu <hongjiu.lu@intel.com>
13872
13873 [BZ #23458]
13874 * sysdeps/x86/Makefile (tests): Add tst-get-cpu-features-static.
13875
13876 2018-07-28 Samuel Thibault <samuel.thibault@ens-lyon.org>
13877
13878 * sysdeps/mach/hurd/dl-unistd.h (__access, __brk, __lseek, __read,
13879 __sbrk): Do not set attribute_hidden.
13880 * sysdeps/mach/hurd/not-errno.h: New file.
13881 * sysdeps/mach/hurd/i386/ld.abilist: Update accordingly.
13882 * sysdeps/mach/hurd/i386/localplt.data: Update accordingly.
13883
13884 2018-07-27 Carlos O'Donell <carlos@redhat.com>
13885
13886 * po/uk.po: Update translations.
13887 * po/cs.po: Likewise.
13888 * po/pl.po: Likewise.
13889
13890 2018-07-27 H.J. Lu <hongjiu.lu@intel.com>
13891
13892 * sysdeps/x86/dl-prop.h (_dl_process_cet_property_note): Don't
13893 parse beyond the note end.
13894
13895 2018-07-27 Adhemerval Zanella <adhemerval.zanella@linaro.org>
13896
13897 * sysdeps/unix/sysv/linux/tst-ofdlocks.c: Return unsupported if
13898 kernel does not support OFD locks.
13899 * sysdeps/unix/sysv/linux/tst-ofdlocks-compat.c: Likewise.
13900
13901 2018-07-27 Samuel Thibault <samuel.thibault@ens-lyon.org>
13902
13903 * sysdeps/mach/hurd/Versions (libc): Make __access and
13904 __access_noerrno external so they can override the ld symbols.
13905 (ld): Make __access, __read, __sbrk, __strtoul_internal, __write,
13906 __writev, __open64, __access_noerrno extern so they can be overrided.
13907 * sysdeps/mach/hurd/i386/libc.abilist: Update accordingly.
13908 * sysdeps/mach/hurd/i386/ld.abilist: Update accordingly.
13909
13910 2018-07-26 Carlos O'Donell <carlos@redhat.com>
13911
13912 * po/libc.pot: Regenerate.
13913
13914 2018-07-26 Joseph Myers <joseph@codesourcery.com>
13915
13916 * sysdeps/powerpc/nofpu/libm-test-ulps: Update.
13917
13918 2018-07-26 H.J. Lu <hongjiu.lu@intel.com>
13919
13920 [BZ #23459]
13921 * sysdeps/x86/cpu-features.c (get_extended_indices): New
13922 function.
13923 (init_cpu_features): Call get_extended_indices for both Intel
13924 and AMD CPUs.
13925 * sysdeps/x86/cpu-features.h (COMMON_CPUID_INDEX_80000001):
13926 Remove "for AMD" comment.
13927
13928 2018-07-26 H.J. Lu <hongjiu.lu@intel.com>
13929
13930 [BZ # 23456]
13931 * sysdeps/x86/cpu-features.h (index_cpu_LZCNT): Set to
13932 COMMON_CPUID_INDEX_80000001.
13933
13934 2018-07-26 Stefan Liebler <stli@linux.ibm.com>
13935
13936 * string/tst-xbzero-opt.c (use_test_buffer): New function.
13937 (prepare_test_buffer): Call use_test_buffer as compiler barrier.
13938
13939 2018-07-26 Florian Weimer <fweimer@redhat.com>
13940
13941 * htl/lockfile.c (flockfile, funlockfile, ftrylockfile): Use weak
13942 aliases for symbols not in the implementation namespace.
13943
13944 2018-07-25 Carlos O'Donell <carlos@redhat.com>
13945
13946 [BZ #23393]
13947 * localedata/locales/iso14651_t1_common: Deinterlace uppercase and
13948 lowercase in LATIN script.
13949 * localedata/Makefile (test-input): Add en_US.UTF-8.
13950 * localedata/en_US.UTF-8.in: New file.
13951 * posix/tst-fnmatch.input: Add comments and new tests for en_US.UTF-8,
13952 and restore old tests.
13953 * posix/tst-regexloc.c (do_test): Add back range expression test.
13954
13955 2018-07-25 H.J. Lu <hongjiu.lu@intel.com>
13956
13957 * sysdeps/unix/sysv/linux/ia64/tst-setcontext4.c: New file.
13958
13959 2018-07-25 Adhemerval Zanella <adhemerval.zanella@linaro.org>
13960
13961 * nptl/threads.h: Move to ...
13962 * sysdeps/nptl/threads.h: ... here.
13963 * sysdeps/hurd/stdc-predef.h: New file.
13964
13965 2018-07-25 H.J. Lu <hongjiu.lu@intel.com>
13966
13967 * sysdeps/unix/sysv/linux/x86/Makefile (tests): Add
13968 tst-cet-setcontext-1 if CET is enabled.
13969 (CFLAGS-tst-cet-setcontext-1.c): Add -mshstk.
13970 * sysdeps/unix/sysv/linux/x86/tst-cet-setcontext-1.c: New file.
13971
13972 2018-07-25 Adhemerval Zanella <adhemerval.zanella@linaro.org>
13973
13974 * include/threads.h: Move to ...
13975 * sysdeps/nptl/threads.h: ... here.
13976 * sysdeps/htl/threads.h: New file.
13977 * conform/Makefile (linknamespace-libs-ISO11): Use
13978 static-thread-library instead of linking libpthread.
13979 (linknamespace-libs-XPG4): Revert wrong libcrypt.a addition.
13980
13981 2018-07-25 Florian Weimer <fweimer@redhat.com>
13982
13983 * nptl/tst-mtx-timedlock.c (do_test): Implement carry from
13984 nanoseconds into seconds.
13985 * nptl/tst-cnd-basic.c (signal_parent): Lock and unlock mutex.
13986 (do_test): Likewise.
13987 * nptl/tst-cnd-timedwait.c (signal_parent): Likewise.
13988 (do_test): Likewise. Avoid nanosecond overflow and spurious
13989 timeouts due to system load.
13990 * nptl/tst-cnd-broadcast.c (waiting_threads): New variable.
13991 (child_wait): Increment it.
13992 (do_test): Wait as long as necessary until all expected threads
13993 have arrived.
13994
13995 2018-07-25 Vedvyas Shanbhogue <vedvyas.shanbhogue@intel.com>
13996 H.J. Lu <hongjiu.lu@intel.com>
13997
13998 * sysdeps/unix/sysv/linux/x86/sys/ucontext.h (ucontext_t): Add
13999 __ssp.
14000 * sysdeps/unix/sysv/linux/x86_64/__start_context.S: Include
14001 <asm/prctl.h> and "ucontext_i.h" when shadow stack is enabled.
14002 (__push___start_context): New.
14003 * sysdeps/unix/sysv/linux/x86_64/getcontext.S: Include
14004 <asm/prctl.h>.
14005 (__getcontext): Record the current shadow stack base. Save the
14006 caller's shadow stack pointer and base.
14007 * sysdeps/unix/sysv/linux/x86_64/makecontext.c: Include
14008 <pthread.h>, <libc-pointer-arith.h> and <sys/prctl.h>.
14009 (__push___start_context): New prototype.
14010 (__makecontext): Call __push___start_context to allocate a new
14011 shadow stack, push __start_context onto the new stack as well
14012 as the new shadow stack.
14013 * sysdeps/unix/sysv/linux/x86_64/setcontext.S: Include
14014 <asm/prctl.h>.
14015 (__setcontext): Restore the target shadow stack.
14016 * sysdeps/unix/sysv/linux/x86_64/swapcontext.S: Include
14017 <asm/prctl.h>.
14018 (__swapcontext): Record the current shadow stack base. Save
14019 the caller's shadow stack pointer and base. Restore the target
14020 shadow stack.
14021 * sysdeps/unix/sysv/linux/x86_64/sysdep.h
14022 (STACK_SIZE_TO_SHADOW_STACK_SIZE_SHIFT): New.
14023 * sysdeps/unix/sysv/linux/x86_64/ucontext_i.sym (oSSP): New.
14024
14025 2018-07-25 H.J. Lu <hongjiu.lu@intel.com>
14026
14027 * stdlib/Makefile ((tests): Add tst-setcontext6, tst-setcontext7,
14028 tst-setcontext8 and tst-setcontext9.
14029 * stdlib/tst-setcontext6.c: New file.
14030 * stdlib/tst-setcontext7.c: Likewise.
14031 * stdlib/tst-setcontext8.c: Likewise.
14032 * stdlib/tst-setcontext9.c: Likewise.
14033
14034 2018-07-25 H.J. Lu <hongjiu.lu@intel.com>
14035
14036 * stdlib/Makefile ((tests): Add tst-setcontext5.
14037 * stdlib/tst-setcontext5.c: New file.
14038
14039 2018-07-25 H.J. Lu <hongjiu.lu@intel.com>
14040
14041 * stdlib/Makefile (tests): Add tst-setcontext4.
14042 * stdlib/tst-setcontext4.c: New file.
14043
14044 2018-07-25 H.J. Lu <hongjiu.lu@intel.com>
14045
14046 * stdlib/Makefile (tests): Add tst-swapcontext1.
14047 * stdlib/tst-swapcontext1.c: New test.
14048
14049 2018-07-25 H.J. Lu <hongjiu.lu@intel.com>
14050
14051 * sysdeps/x86/Makefile (tests): Add tst-cet-legacy-1,
14052 tst-cet-legacy-2, tst-cet-legacy-2a, tst-cet-legacy-3,
14053 tst-cet-legacy-4, tst-cet-legacy-4a, tst-cet-legacy-4b
14054 and tst-cet-legacy-4c.
14055 (modules-names): Add tst-cet-legacy-mod-1, tst-cet-legacy-mod-2
14056 and tst-cet-legacy-mod-4.
14057 (CFLAGS-tst-cet-legacy-2.c): New.
14058 (CFLAGS-tst-cet-legacy-mod-1.c): Likewise.
14059 (CFLAGS-tst-cet-legacy-mod-2.c): Likewise.
14060 (CFLAGS-tst-cet-legacy-3.c): Likewise.
14061 (CFLAGS-tst-cet-legacy-4.c): Likewise.
14062 (CFLAGS-tst-cet-legacy-mod-4.c): Likewise.
14063 ($(objpfx)tst-cet-legacy-1): Likewise.
14064 ($(objpfx)tst-cet-legacy-2): Likewise.
14065 ($(objpfx)tst-cet-legacy-2.out): Likewise.
14066 ($(objpfx)tst-cet-legacy-2a): Likewise.
14067 ($(objpfx)tst-cet-legacy-2a.out): Likewise.
14068 ($(objpfx)tst-cet-legacy-4): Likewise.
14069 ($(objpfx)tst-cet-legacy-4.out): Likewise.
14070 ($(objpfx)tst-cet-legacy-4a): Likewise.
14071 ($(objpfx)tst-cet-legacy-4a.out): Likewise.
14072 (tst-cet-legacy-4a-ENV): Likewise.
14073 ($(objpfx)tst-cet-legacy-4b): Likewise.
14074 ($(objpfx)tst-cet-legacy-4b.out): Likewise.
14075 (tst-cet-legacy-4b-ENV): Likewise.
14076 ($(objpfx)tst-cet-legacy-4c): Likewise.
14077 ($(objpfx)tst-cet-legacy-4c.out): Likewise.
14078 (tst-cet-legacy-4c-ENV): Likewise.
14079 * sysdeps/x86/tst-cet-legacy-1.c: New file.
14080 * sysdeps/x86/tst-cet-legacy-2.c: Likewise.
14081 * sysdeps/x86/tst-cet-legacy-2a.c: Likewise.
14082 * sysdeps/x86/tst-cet-legacy-3.c: Likewise.
14083 * sysdeps/x86/tst-cet-legacy-4.c: Likewise.
14084 * sysdeps/x86/tst-cet-legacy-4a.c: Likewise.
14085 * sysdeps/x86/tst-cet-legacy-4b.c: Likewise.
14086 * sysdeps/x86/tst-cet-legacy-4c.c: Likewise.
14087 * sysdeps/x86/tst-cet-legacy-mod-1.c: Likewise.
14088 * sysdeps/x86/tst-cet-legacy-mod-2.c: Likewise.
14089 * sysdeps/x86/tst-cet-legacy-mod-4.c: Likewise.
14090
14091 2018-07-25 H.J. Lu <hongjiu.lu@intel.com>
14092
14093 * sysdeps/i386/nptl/tcb-offsets.sym (SSP_BASE_OFFSET): New.
14094 * sysdeps/i386/nptl/tls.h (tcbhead_t): Replace __glibc_reserved2
14095 with ssp_base.
14096 * sysdeps/x86_64/nptl/tcb-offsets.sym (SSP_BASE_OFFSET): New.
14097 * sysdeps/x86_64/nptl/tls.h (tcbhead_t): Replace __glibc_reserved2
14098 with ssp_base.
14099
14100 2018-07-25 Andreas Schwab <schwab@suse.de>
14101
14102 [BZ #23442]
14103 * locale/weightwc.h (findidx): Handle the case where usrc is a
14104 prefix of cp but one character too short.
14105
14106 2018-07-24 Adhemerval Zanella <adhemerval.zanella@linaro.org>
14107
14108 * NEWS: Add ISO C threads addition.
14109
14110 2018-07-24 Florian Weimer <fweimer@redhat.com>
14111
14112 * sysdeps/unix/sysv/linux/alpha/kernel-features.h
14113 [__LINUX_KERNEL_VERSION < 0x040D00] (__ASSUME_MLOCK2)
14114 (__ASSUME_COPY_FILE_RANGE): Undefine. Kernel support was added in
14115 4.13.
14116
14117 2018-07-24 H.J. Lu <hongjiu.lu@intel.com>
14118
14119 * sysdeps/unix/sysv/linux/x86/include/asm/prctl.h: New file.
14120 * sysdeps/unix/sysv/linux/x86/cpu-features.c: Include
14121 <sys/prctl.h> and <asm/prctl.h>.
14122 (get_cet_status): Call arch_prctl with ARCH_CET_STATUS.
14123 * sysdeps/unix/sysv/linux/x86/dl-cet.h: Include <sys/prctl.h>
14124 and <asm/prctl.h>.
14125 (dl_cet_allocate_legacy_bitmap): Call arch_prctl with
14126 ARCH_CET_LEGACY_BITMAP.
14127 (dl_cet_disable_cet): Call arch_prctl with ARCH_CET_DISABLE.
14128 (dl_cet_lock_cet): Call arch_prctl with ARCH_CET_LOCK.
14129 * sysdeps/x86/libc-start.c: Include <startup.h>.
14130
14131 2018-07-24 Florian Weimer <fweimer@redhat.com>
14132
14133 * sysdeps/unix/sysv/linux/sh/kernel-features.h (__ASSUME_STATX):
14134 Undefine. Suggested by Romain Naour <romain.naour@gmail.com>.
14135
14136 2018-07-24 Rical Jasan <rj@2c3t.io>
14137 Adhemerval Zanella <adhemerval.zanella@linaro.org>
14138 Juan Manuel Torres Palma <jmtorrespalma@gmail.com>
14139
14140 [BZ #14092]
14141 * manual/debug.texi: Update adjacent chapter name.
14142 * manual/probes.texi: Likewise.
14143 * manual/threads.texi (ISO C Threads): New section.
14144 (POSIX Threads): Convert to a section.
14145
14146 2018-07-24 Adhemerval Zanella <adhemerval.zanella@linaro.org>
14147 Juan Manuel Torres Palma <jmtorrespalma@gmail.com>
14148
14149 [BZ# 14092]
14150 * nptl/Makefile (tests): Add new test files.
14151 * nptl/tst-call-once.c : New file. Tests C11 functions and types.
14152 * nptl/tst-cnd-basic.c: Likewise.
14153 * nptl/tst-cnd-broadcast.c: Likewise.
14154 * nptl/tst-cnd-timedwait.c: Likewise.
14155 * nptl/tst-mtx-basic.c: Likewise.
14156 * nptl/tst-mtx-recursive.c: Likewise.
14157 * nptl/tst-mtx-timedlock.c: Likewise.
14158 * nptl/tst-mtx-trylock.c: Likewise.
14159 * nptl/tst-thrd-basic.c: Likewise.
14160 * nptl/tst-thrd-detach.c: Likewise.
14161 * nptl/tst-thrd-sleep.c: Likewise.
14162 * nptl/tst-tss-basic.c: Likewise.
14163
14164 2018-07-24 Adhemerval Zanella <adhemerval.zanella@linaro.org>
14165
14166 [BZ #14092]
14167 * sysdeps/unix/sysv/linux/aarch64/libc.abilist [GLIBC_2.28]
14168 (thrd_current, thrd_equal, thrd_sleep, thrd_yield): Add C11 thread
14169 symbols.
14170 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
14171 * sysdeps/unix/sysv/linux/arm/libc.abilist: Likewise.
14172 * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
14173 * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
14174 * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
14175 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
14176 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
14177 * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
14178 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
14179 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
14180 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
14181 * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise.
14182 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
14183 Likewise.
14184 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
14185 Likewise.
14186 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist:
14187 Likewise.
14188 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist: Likewise.
14189 * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist: Likewise.
14190 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
14191 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
14192 * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
14193 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
14194 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
14195 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
14196 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
14197 * sysdeps/unix/sysv/linux/aarch64/libpthread.abilist [[GLIBC_2.28]
14198 (call_once, cnd_broadcast, cnd_destroy, cnd_init, cnd_signal,
14199 cnd_timedwait, cnd_wait, mtx_destroy, mtx_init, mtx_lock,
14200 mtx_timedlock, mtx_trylock, mtx_unlokc, thrd_create, thrd_detach,
14201 thrd_exit, thrd_join, tss_create, tss_delete, tss_get, tss_set):
14202 Likewise.
14203 * sysdeps/unix/sysv/linux/aarch64/libpthread.abilist: Likewise.
14204 * sysdeps/unix/sysv/linux/alpha/libpthread.abilist: Likewise.
14205 * sysdeps/unix/sysv/linux/arm/libpthread.abilist: Likewise.
14206 * sysdeps/unix/sysv/linux/hppa/libpthread.abilist: Likewise.
14207 * sysdeps/unix/sysv/linux/i386/libpthread.abilist: Likewise.
14208 * sysdeps/unix/sysv/linux/ia64/libpthread.abilist: Likewise.
14209 * sysdeps/unix/sysv/linux/m68k/coldfire/libpthread.abilist: Likewise.
14210 * sysdeps/unix/sysv/linux/m68k/m680x0/libpthread.abilist: Likewise.
14211 * sysdeps/unix/sysv/linux/microblaze/libpthread.abilist: Likewise.
14212 * sysdeps/unix/sysv/linux/mips/mips32/libpthread.abilist: Likewise.
14213 * sysdeps/unix/sysv/linux/mips/mips64/libpthread.abilist: Likewise.
14214 * sysdeps/unix/sysv/linux/nios2/libpthread.abilist: Likewise.
14215 ikewise.
14216 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libpthread.abilist:
14217 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libpthread-le.abilist:
14218 Likewise.
14219 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libpthread.abilist:
14220 Likewise.
14221 * sysdeps/unix/sysv/linux/riscv/rv64/libpthread.abilist: Likewise.
14222 * sysdeps/unix/sysv/linux/s390/s390-32/libpthread.abilist: Likewise.
14223 * sysdeps/unix/sysv/linux/s390/s390-64/libpthread.abilist: Likewise.
14224 * sysdeps/unix/sysv/linux/sh/libpthread.abilist: Likewise.
14225 * sysdeps/unix/sysv/linux/sparc/sparc32/libpthread.abilist: Likewise.
14226 * sysdeps/unix/sysv/linux/sparc/sparc64/libpthread.abilist: Likewise.
14227 * sysdeps/unix/sysv/linux/x86_64/64/libpthread.abilist: Likewise.
14228 * sysdeps/unix/sysv/linux/x86_64/x32/libpthread.abilist: Likewise.
14229
14230 [BZ #14092]
14231 * conform/data/threads.h-data (thread_local): New macro.
14232 (TSS_DTOR_ITERATIONS): Likewise.
14233 (tss_t): New type.
14234 (tss_dtor_t): Likewise.
14235 (tss_create): New function.
14236 (tss_get): Likewise.
14237 (tss_set): Likewise.
14238 (tss_delete): Likewise.
14239 * nptl/Makefile (libpthread-routines): Add tss_create, tss_delete,
14240 tss_get, and tss_set objects.
14241 * nptl/Versions (libpthread) [GLIBC_2.28]: Likewise.
14242 * nptl/tss_create.c: New file.
14243 * nptl/tss_delete.c: Likewise.
14244 * nptl/tss_get.c: Likewise.
14245 * nptl/tss_set.c: Likewise.
14246 * sysdeps/nptl/threads.h (thread_local): New define.
14247 (TSS_DTOR_ITERATIONS): Likewise.
14248 (tss_t): New typedef.
14249 (tss_dtor_t): Likewise.
14250 (tss_create): New prototype.
14251 (tss_get): Likewise.
14252 (tss_set): Likewise.
14253 (tss_delete): Likewise.
14254
14255 [BZ #14092]
14256 * conform/data/threads.h-data (cnd_t): New type.
14257 (cnd_init): New function.
14258 (cnd_signal): Likewise.
14259 (cnd_broadcast): Likewise.
14260 (cnd_wait): Likewise.
14261 (cnd_timedwait): Likewise.
14262 (cnd_destroy): Likewise.
14263 * nptl/Makefile (libpthread-routines): Add cnd_broadcast,
14264 cnd_destroy, cnd_init, cnd_signal, cnd_timedwait, and cnd_wait
14265 object.
14266 * nptl/Versions (libpthread) [GLIBC_2.28]: Likewise.
14267 * nptl/cnd_broadcast.c: New file.
14268 * nptl/cnd_destroy.c: Likewise.
14269 * nptl/cnd_init.c: Likewise.
14270 * nptl/cnd_signal.c: Likewise.
14271 * nptl/cnd_timedwait.c: Likewise.
14272 * nptl/cnd_wait.c: Likewise.
14273 * sysdeps/nptl/threads.h (cnd_t): New type.
14274 (cnd_init): New prototype.
14275 (cnd_signa): Likewise.
14276 (cnd_broadcast): Likewise.
14277 (cnd_wait): Likewise.
14278 (cnd_timedwait): Likewise.
14279 (cnd_destroy): Likewise.
14280
14281 [BZ #14092]
14282 * conform/data/threads.h-data (ONCE_FLAG_INIT): New macro.
14283 (once_flag): New type.
14284 (call_once): New function.
14285 * nptl/Makefile (libpthread-routines): Add call_once object.
14286 * nptl/Versions (libphread) [GLIBC_2.28]: Add call_once symbol.
14287 * nptl/call_once.c: New file.
14288 * sysdeps/nptl/threads.h (ONCE_FLAG_INIT): New define.
14289 (once_flag): New type.
14290 (call_once): New prototype.
14291
14292 [BZ #14092]
14293 * conform/data/threads.h-data (mtx_plain): New constant.
14294 (mtx_recursive): Likewise.
14295 (mtx_timed): Likewise.
14296 (mtx_t): New type.
14297 (mtx_init): New function.
14298 (mtx_lock): Likewise.
14299 (mtx_timedlock): Likewise.
14300 (mtx_trylock): Likewise.
14301 (mtx_unlock): Likewise.
14302 (mtx_destroy): Likewise.
14303 * nptl/Makefile (libpthread-routines): Add mtx_destroy, mtx_init,
14304 mtx_lock, mtx_timedlock, mtx_trylock, and mtx_unlock object.
14305 * nptl/Versions (libpthread) [GLIBC_2.28]): Add mtx_init, mtx_lock,
14306 mtx_timedlock, mtx_trylock, mtx_unlock, and mtx_destroy.
14307 * nptl/mtx_destroy.c: New file.
14308 * nptl/mtx_init.c: Likewise.
14309 * nptl/mtx_lock.c: Likewise.
14310 * nptl/mtx_timedlock.c: Likewise.
14311 * nptl/mtx_trylock.c: Likewise.
14312 * nptl/mtx_unlock.c: Likewise.
14313 * sysdeps/nptl/threads.h (mtx_plain): New enumeration.
14314 (mtx_recursive): Likewise.
14315 (mtx_timed): Likewise.
14316 (mtx_t): New type.
14317 (mtx_init): New prototype.
14318 (mtx_lock): Likewise.
14319 (mtx_timedlock): Likewise.
14320 (mtx_trylock): Likewise.
14321 (mtx_unlock): Likewise.
14322 (mtx_destroy): Likewise.
14323
14324 [BZ #14092]
14325 * conform/Makefile (conformtest-headers-ISO11): Add threads.h.
14326 (linknamespace-libs-ISO11): Add libpthread.a.
14327 * conform/data/threads.h-data: New file: add C11 thrd_* types and
14328 functions.
14329 * include/stdc-predef.h (__STDC_NO_THREADS__): Remove definition.
14330 * nptl/Makefile (headers): Add threads.h.
14331 (libpthread-routines): Add new C11 thread thrd_create, thrd_current,
14332 thrd_detach, thrd_equal, thrd_exit, thrd_join, thrd_sleep, and
14333 thrd_yield.
14334 * nptl/Versions (libpthread) [GLIBC_2.28]): Add new C11 thread
14335 thrd_create, thrd_current, thrd_detach, thrd_equal, thrd_exit,
14336 thrd_join, thrd_sleep, and thrd_yield symbols.
14337 * nptl/descr.h (struct pthread): Add c11 field.
14338 * nptl/pthreadP.h (ATTR_C11_THREAD): New define.
14339 * nptl/pthread_create.c (START_THREAD_DEFN): Call C11 thread start
14340 routine with expected function prototype.
14341 (__pthread_create_2_1): Add C11 threads check based on attribute
14342 value.
14343 * sysdeps/unix/sysdep.h (INTERNAL_SYSCALL_CANCEL): New macro.
14344 * nptl/thrd_create.c: New file.
14345 * nptl/thrd_current.c: Likewise.
14346 * nptl/thrd_detach.c: Likewise.
14347 * nptl/thrd_equal.c: Likewise.
14348 * nptl/thrd_exit.c: Likewise.
14349 * nptl/thrd_join.c: Likewise.
14350 * nptl/thrd_priv.h: Likewise.
14351 * nptl/thrd_sleep.c: Likewise.
14352 * nptl/thrd_yield.c: Likewise.
14353 * include/threads.h: Likewise.
14354
14355 2018-07-24 H.J. Lu <hongjiu.lu@intel.com>
14356
14357 * bits/indirect-return.h: New file.
14358 * misc/sys/cdefs.h (__glibc_has_attribute): New.
14359 * sysdeps/x86/bits/indirect-return.h: Likewise.
14360 * stdlib/Makefile (headers): Add bits/indirect-return.h.
14361 * stdlib/ucontext.h: Include <bits/indirect-return.h>.
14362 (swapcontext): Add __INDIRECT_RETURN.
14363 * string/tst-xbzero-opt.c (ALWAYS_INLINE): New.
14364 (prepare_test_buffer): Use it.
14365
14366 2018-07-24 Andreas Schwab <schwab@suse.de>
14367
14368 [BZ #23448]
14369 * iconvdata/ibm1364.c (MAX_NEEDED_OUTPUT) [FROM_LOOP]: Define.
14370 (MAX_NEEDED_INPUT) [TO_LOOP]: Define.
14371
14372 2018-07-24 H.J. Lu <hongjiu.lu@intel.com>
14373
14374 * sysdeps/unix/sysv/linux/i386/vfork.S (SYSCALL_ERROR_HANDLER):
14375 Redefine if shadow stack is enabled.
14376 (SYSCALL_ERROR_LABEL): Likewise.
14377 (__vfork): Pop shadow stack and jump back to to caller directly
14378 when shadow stack is in use.
14379 * sysdeps/unix/sysv/linux/x86_64/vfork.S (SYSCALL_ERROR_HANDLER):
14380 Redefine if shadow stack is enabled.
14381 (SYSCALL_ERROR_LABEL): Likewise.
14382 (__vfork): Pop shadow stack and jump back to to caller directly
14383 when shadow stack is in use.
14384
14385 2018-07-24 H.J. Lu <hongjiu.lu@intel.com>
14386
14387 * sysdeps/x86_64/tst-quadmod1.S (func): Add endbr64 if IBT is
14388 enabled.
14389 (foo): Likewise.
14390 * sysdeps/x86_64/tst-quadmod2.S (func) : Likewise.
14391 (foo): Likewise.
14392
14393 2018-07-20 Joseph Myers <joseph@codesourcery.com>
14394
14395 * scripts/build-many-glibcs.py (Context.checkout): Default
14396 binutils version to 2.31 branch.
14397
14398 2018-07-20 Zong Li <zong@andestech.com>
14399
14400 * scripts/build-many-glibcs.py (Context.checkout_tar): Change the
14401 URL of gcc's tarball.
14402
14403 2018-07-20 Florian Weimer <fweimer@redhat.com>
14404
14405 [BZ #23396]
14406 * posix/regcomp.c (build_equiv_class): When comparing weights, do
14407 not compare an extra byte after the end of the weights.
14408
14409 2018-07-20 Samuel Thibault <samuel.thibault@ens-lyon.org>
14410
14411 * sysdeps/mach/hurd/i386/tls.h (_hurd_tls_init): Set multiple_threads
14412 to 1.
14413 * sysdeps/hurd/include/hurd/port.h [!_ISOMAC]: Do not declare libc
14414 hidden prototypes.
14415 * sysdeps/mach/include/mach-shortcuts-hidden.h [!_ISOMAC]: Likewise.
14416 * sysdeps/mach/include/mach/mach_traps.h [!_ISOMAC]: Likewise.
14417 * scripts/check-execstack.awk: Consider `xfail' variable containing a
14418 list of libraries whose stack executability is expected.
14419 * elf/Makefile ($(objpfx)check-execstack.out): Pass
14420 $(check-execstack-xfail) to check-execstack.awk through `xfail'
14421 variable.
14422 * sysdeps/mach/hurd/i386/Makefile (check-execstack-xfail): Set to ld.so
14423 libc.so libpthread.so.
14424
14425 2018-07-20 Thomas Schwinge <tschwinge@gnu.org>
14426
14427 * sysdeps/mach/hurd/socket.c (__socket): Handle SOCK_CLOEXEC and
14428 SOCK_NONBLOCK.
14429 * sysdeps/mach/hurd/socketpair.c (__socketpair): Handle SOCK_CLOEXEC
14430 and SOCK_NONBLOCK.
14431 * sysdeps/mach/hurd/pipe2.c: New file, copy from pipe.c. Evolve it to
14432 implement __pipe2.
14433 * sysdeps/mach/hurd/pipe.c (__pipe): Reimplement using __pipe2.
14434
14435 2018-07-19 Leonardo Sandoval <leonardo.sandoval.gonzalez@intel.com>
14436
14437 * benchtests/scripts/compare_bench.py (__main__): use the argparse
14438 library to improve command line parsing.
14439 (__main__): make schema file as optional parameter (--schema),
14440 defaulting to benchtests/scripts/benchout.schema.json.
14441 (main): move out of the parsing stuff to __main_  and leave it
14442 only as caller of main comparison functions.
14443
14444 2018-07-19 H.J. Lu <hongjiu.lu@intel.com>
14445
14446 * NEWS: Add a note for Intel CET status.
14447 * manual/install.texi: Likewise.
14448 * INSTALL: Regenerated.
14449
14450 2018-07-18 Quentin PAGÈS <provaires@quentino.fr>
14451
14452 [BZ #23140]
14453 * localedata/locales/oc_FR (mon): Rename to...
14454 (alt_mon): This, then update October (typo fix).
14455 (mon): New content (genitive case, month names preceded by
14456 "de" or "d’").
14457
14458 [BZ #23422]
14459 * localedata/locales/oc_FR (abday): Update all items.
14460 (day): Update Wednesday and Saturday (typo fixes).
14461 (abmon): Update all items, except May.
14462 (d_fmt): Update "%d.%m.%Y" -> "%d/%m/%Y".
14463 (LC_IDENTIFICATION): Bump the revision number and date.
14464 Keep the "category" entries in alphabetic order.
14465 (LC_ADDRESS): Remove no longer needed comment.
14466 (LC_COLLATE): Use “copy "ca_ES"”.
14467 (LC_NAME): Set the correct values of "name_fmt", "name_mr", and
14468 "name_mrs".
14469
14470 2018-07-18 Joseph Myers <joseph@codesourcery.com>
14471
14472 * grp/tst_fgetgrent.c: Include <unistd.h>.
14473 (main): Use mkstemp instead of tmpnam.
14474 * io/test-utime.c (main): Likewise.
14475 * posix/annexc.c (macrofile): Change to modifiable array.
14476 (main): Remove macrofile here.
14477 (get_null_defines): Use mkstemp instead of tmpnam. Do not remove
14478 macrofile here.
14479 (check_header): Do not remove macrofile here.
14480 * posix/bug-getopt1.c: Include <stdlib.h>.
14481 (do_test): Use mkstemp instead of tmpnam.
14482 * posix/bug-getopt2.c: Include <stdlib.h>.
14483 (do_test): Use mkstemp instead of tmpnam.
14484 * posix/bug-getopt3.c: Include <stdlib.h>.
14485 (do_test): Use mkstemp instead of tmpnam.
14486 * posix/bug-getopt4.c: Include <stdlib.h>.
14487 (do_test): Use mkstemp instead of tmpnam.
14488 * posix/bug-getopt5.c: Include <stdlib.h>.
14489 (do_test): Use mkstemp instead of tmpnam.
14490 * stdio-common/bug7.c: Include <stdlib.h> and <unistd.h>.
14491 (main): Use mkstemp instead of tmpnam.
14492 * stdio-common/tst-fdopen.c: Include <stdlib.h>.
14493 (main): Use mkstemp instead of tmpnam.
14494 * stdio-common/tst-ungetc.c: Include <stdlib.h>.
14495 (main): use mkstemp instead of tmpnam.
14496 * stdlib/isomac.c (macrofile): Change to modifiable array.
14497 (main): Remove macrofile here.
14498 (get_null_defines): Use mkstemp instead of tmpnam. Do not remove
14499 macrofile here.
14500 (check_header): Do not remove macrofile here.
14501
14502 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
14503
14504 * manual/tunables.texi: Document glibc.tune.x86_ibt and
14505 glibc.tune.x86_shstk.
14506
14507 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
14508
14509 * NEWS: Mention --enable-cet.
14510 * manual/install.texi: Document --enable-cet.
14511 * INSTALL: Regenerated.
14512
14513 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
14514
14515 * sysdeps/x86_64/multiarch/memcmp-sse4.S (BRANCH_TO_JMPTBL_ENTRY):
14516 Add _CET_NOTRACK before indirect jump to jump table.
14517
14518 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
14519
14520 * sysdeps/i386/i686/multiarch/memset-sse2-rep.S
14521 (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
14522 to jump table.
14523
14524 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
14525
14526 * sysdeps/i386/i686/multiarch/strcat-sse2.S
14527 (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
14528 to jump table.
14529
14530 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
14531
14532 * sysdeps/i386/i686/multiarch/strcpy-sse2.S
14533 (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
14534 to jump table.
14535
14536 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
14537
14538 * sysdeps/i386/i686/multiarch/memcpy-ssse3.S
14539 (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
14540 to jump table.
14541
14542 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
14543
14544 * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S
14545 (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
14546 to jump table.
14547 (BRANCH_TO_JMPTBL_ENTRY_TAIL): Likewise.
14548
14549 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
14550
14551 * sysdeps/i386/i686/multiarch/memcmp-sse4.S
14552 (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
14553 to jump table.
14554
14555 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
14556
14557 * sysdeps/i386/i686/multiarch/memset-sse2.S
14558 (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
14559 to jump table.
14560
14561 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
14562
14563 * sysdeps/i386/i686/memcmp.S (memcmp): Add _CET_NOTRACK before
14564 indirect jump to jump table.
14565
14566 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
14567
14568 * sysdeps/x86_64/multiarch/memcpy-ssse3.S
14569 (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
14570 to jump table.
14571 (MEMCPY): Likewise.
14572
14573 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
14574
14575 * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S
14576 (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
14577 to jump table.
14578 (MEMCPY): Likewise.
14579
14580 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
14581
14582 * sysdeps/x86_64/multiarch/strcmp-sse42.S (STRCMP_SSE42): Add
14583 _CET_NOTRACK before indirect jump to jump table.
14584
14585 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
14586
14587 * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S
14588 (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
14589 to jump table.
14590
14591 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
14592
14593 * sysdeps/x86_64/strcmp.S (STRCMP): Add _CET_NOTRACK before
14594 indirect jump to jump table.
14595
14596 2018-07-18 Valery Timiriliyev <timiriliyev@gmail.com>
14597
14598 [BZ #22241]
14599 * localedata/Makefile (test-input): Add sah_RU.UTF-8.
14600 (LOCALES): Likewise.
14601 * localedata/SUPPORTED (sah_RU/UTF-8): New entry.
14602 * localedata/locales/sah_RU: New file.
14603 * localedata/sah_RU.UTF-8.in: New file.
14604
14605 2018-07-17 H.J. Lu <hongjiu.lu@intel.com>
14606
14607 * sysdeps/i386/add_n.S: Include <sysdep.h>, instead of
14608 "sysdep.h".
14609 (__mpn_add_n): Save and restore %ebx if IBT is enabed. Add
14610 _CET_ENDBR to indirect jump targets and adjust jump destination
14611 for _CET_ENDBR.
14612 * sysdeps/i386/i686/add_n.S: Include <sysdep.h>, instead of
14613 "sysdep.h".
14614 (__mpn_add_n): Save and restore %ebx if IBT is enabed. Add
14615 _CET_ENDBR to indirect jump targets and adjust jump destination
14616 for _CET_ENDBR.
14617 * sysdeps/i386/sub_n.S: Include <sysdep.h>, instead of
14618 "sysdep.h".
14619 (__mpn_sub_n): Save and restore %ebx if IBT is enabed. Add
14620 _CET_ENDBR to indirect jump targets and adjust jump destination
14621 for _CET_ENDBR.
14622
14623 2018-07-17 H.J. Lu <hongjiu.lu@intel.com>
14624
14625 * sysdeps/x86_64/multiarch/strcmp-sse42.S (STRCMP_SSE42): Add
14626 _CET_ENDBR.
14627
14628 2018-07-17 H.J. Lu <hongjiu.lu@intel.com>
14629
14630 * sysdeps/i386/dl-tlsdesc.S (_dl_tlsdesc_return): Add
14631 _CET_ENDBR.
14632 (_dl_tlsdesc_undefweak): Likewise.
14633 (_dl_tlsdesc_dynamic): Likewise.
14634 (_dl_tlsdesc_resolve_abs_plus_addend): Likewise.
14635 (_dl_tlsdesc_resolve_rel): Likewise.
14636 (_dl_tlsdesc_resolve_rela): Likewise.
14637 (_dl_tlsdesc_resolve_hold): Likewise.
14638 * sysdeps/x86_64/dl-tlsdesc.S (_dl_tlsdesc_return): Likewise.
14639 (_dl_tlsdesc_undefweak): Likewise.
14640 (_dl_tlsdesc_dynamic): Likewise.
14641 (_dl_tlsdesc_resolve_rela): Likewise.
14642 (_dl_tlsdesc_resolve_hold): Likewise.
14643
14644 2018-07-17 H.J. Lu <hongjiu.lu@intel.com>
14645
14646 * sysdeps/i386/crti.S (_init): Add _CET_ENDBR.
14647 (_fini): Likewise.
14648 * sysdeps/x86_64/crti.S (_init): Likewise.
14649 (_fini): Likewise.
14650
14651 2018-07-17 Rafał Lużyński <digitalfreak@lingonborough.com>
14652
14653 [BZ #23140]
14654 * localedata/locales/os_RU (mon): Rename to...
14655 (alt_mon): This.
14656 (mon): Import from CLDR (genitive case).
14657
14658 2018-07-17 H.J. Lu <hongjiu.lu@intel.com>
14659
14660 * sysdeps/x86/cpu-features.c: Always include <dl-cet.h> and
14661 cet-tunables.h> when CET is enabled.
14662
14663 2018-07-16 H.J. Lu <hongjiu.lu@intel.com>
14664
14665 [BZ #21598]
14666 * configure.ac: Add --enable-cet.
14667 * configure: Regenerated.
14668 * elf/Makefille (all-built-dso): Add a comment.
14669 * elf/dl-load.c (filebuf): Moved before "dynamic-link.h".
14670 Include <dl-prop.h>.
14671 (_dl_map_object_from_fd): Call _dl_process_pt_note on PT_NOTE
14672 segment.
14673 * elf/dl-open.c: Include <dl-prop.h>.
14674 (dl_open_worker): Call _dl_open_check.
14675 * elf/rtld.c: Include <dl-prop.h>.
14676 (dl_main): Call _rtld_process_pt_note on PT_NOTE segment. Call
14677 _rtld_main_check.
14678 * sysdeps/generic/dl-prop.h: New file.
14679 * sysdeps/i386/dl-cet.c: Likewise.
14680 * sysdeps/unix/sysv/linux/x86/cpu-features.c: Likewise.
14681 * sysdeps/unix/sysv/linux/x86/dl-cet.h: Likewise.
14682 * sysdeps/x86/cet-tunables.h: Likewise.
14683 * sysdeps/x86/check-cet.awk: Likewise.
14684 * sysdeps/x86/configure: Likewise.
14685 * sysdeps/x86/configure.ac: Likewise.
14686 * sysdeps/x86/dl-cet.c: Likewise.
14687 * sysdeps/x86/dl-procruntime.c: Likewise.
14688 * sysdeps/x86/dl-prop.h: Likewise.
14689 * sysdeps/x86/libc-start.h: Likewise.
14690 * sysdeps/x86/link_map.h: Likewise.
14691 * sysdeps/i386/dl-trampoline.S (_dl_runtime_resolve): Add
14692 _CET_ENDBR.
14693 (_dl_runtime_profile): Likewise.
14694 (_dl_runtime_resolve_shstk): New.
14695 (_dl_runtime_profile_shstk): Likewise.
14696 * sysdeps/linux/x86/Makefile (sysdep-dl-routines): Add dl-cet
14697 if CET is enabled.
14698 (CFLAGS-.o): Add -fcf-protection if CET is enabled.
14699 (CFLAGS-.os): Likewise.
14700 (CFLAGS-.op): Likewise.
14701 (CFLAGS-.oS): Likewise.
14702 (asm-CPPFLAGS): Add -fcf-protection -include cet.h if CET
14703 is enabled.
14704 (tests-special): Add $(objpfx)check-cet.out.
14705 (cet-built-dso): New.
14706 (+$(cet-built-dso:=.note)): Likewise.
14707 (common-generated): Add $(cet-built-dso:$(common-objpfx)%=%.note).
14708 ($(objpfx)check-cet.out): New.
14709 (generated): Add check-cet.out.
14710 * sysdeps/x86/cpu-features.c: Include <dl-cet.h> and
14711 <cet-tunables.h>.
14712 (TUNABLE_CALLBACK (set_x86_ibt)): New prototype.
14713 (TUNABLE_CALLBACK (set_x86_shstk)): Likewise.
14714 (init_cpu_features): Call get_cet_status to check CET status
14715 and update dl_x86_feature_1 with CET status. Call
14716 TUNABLE_CALLBACK (set_x86_ibt) and TUNABLE_CALLBACK
14717 (set_x86_shstk). Disable and lock CET in libc.a.
14718 * sysdeps/x86/cpu-tunables.c: Include <cet-tunables.h>.
14719 (TUNABLE_CALLBACK (set_x86_ibt)): New function.
14720 (TUNABLE_CALLBACK (set_x86_shstk)): Likewise.
14721 * sysdeps/x86/sysdep.h (_CET_NOTRACK): New.
14722 (_CET_ENDBR): Define if not defined.
14723 (ENTRY): Add _CET_ENDBR.
14724 * sysdeps/x86/dl-tunables.list (glibc.tune): Add x86_ibt and
14725 x86_shstk.
14726 * sysdeps/x86_64/dl-trampoline.h (_dl_runtime_resolve): Add
14727 _CET_ENDBR.
14728 (_dl_runtime_profile): Likewise.
14729
14730 2018-07-16 Rogerio A. Cardoso <rcardoso@linux.vnet.ibm.com>
14731
14732 [BZ #21895]
14733 * sysdeps/powerpc/powerpc64/__longjmp-common.S: Remove condition code for
14734 restore r2 on longjmp.
14735 * sysdeps/powerpc/powerpc64/Makefile: Added tst-setjmp-bug21895-static to
14736 test list.
14737 Added rules to build test tst-setjmp-bug21895-static.
14738 Added module setjmp-bug21895 and rules to build a shared object from it.
14739 * sysdeps/powerpc/powerpc64/setjmp-bug21895.c: New test file.
14740 * sysdeps/powerpc/powerpc64/tst-setjmp-bug21895-static.c: New test file.
14741
14742 2018-07-15 Wilco Dijkstra <wdijkstr@arm.com>
14743
14744 * benchtests/bench-strcasestr.c: Rename __strnlen to strnlen.
14745 * benchtests/bench-strstr.c: Likewise.
14746 * string/memmem.c (FASTSEARCH): Define.
14747 * string/str-two-way.h (two_way_short_needle): Minor cleanups.
14748 Add support for FASTSEARCH.
14749 * string/strcasestr.c (AVAILABLE): Use read-ahead __strnlen.
14750 * string/strstr.c (AVAILABLE): Use read-ahead __strnlen.
14751 (FASTSEARCH): Define.
14752 * string/test-strcasestr.c: Rename __strnlen to strnlen.
14753 * string/test-strstr.c: Likewise.
14754
14755 2018-07-15 H.J. Lu <hongjiu.lu@intel.com>
14756
14757 * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S: Undef
14758 SHADOW_STACK_POINTER_OFFSET after including <jmp_buf-ssp.h>.
14759
14760 2018-07-14 Igor Tsimbalist <igor.v.tsimbalist@intel.com>
14761 H.J. Lu <hongjiu.lu@intel.com>
14762
14763 * sysdeps/i386/__longjmp.S: Include <jmp_buf-ssp.h>.
14764 (__longjmp): Restore shadow stack pointer if shadow stack is
14765 enabled, SHADOW_STACK_POINTER_OFFSET is defined and __longjmp
14766 isn't defined for __longjmp_cancel.
14767 * sysdeps/i386/bsd-_setjmp.S: Include <jmp_buf-ssp.h>.
14768 (_setjmp): Save shadow stack pointer if shadow stack is enabled
14769 and SHADOW_STACK_POINTER_OFFSET is defined.
14770 * sysdeps/i386/bsd-setjmp.S: Include <jmp_buf-ssp.h>.
14771 (setjmp): Save shadow stack pointer if shadow stack is enabled
14772 and SHADOW_STACK_POINTER_OFFSET is defined.
14773 * sysdeps/i386/setjmp.S: Include <jmp_buf-ssp.h>.
14774 (__sigsetjmp): Save shadow stack pointer if shadow stack is
14775 enabled and SHADOW_STACK_POINTER_OFFSET is defined.
14776 * sysdeps/unix/sysv/linux/i386/____longjmp_chk.S: Include
14777 <jmp_buf-ssp.h>.
14778 (____longjmp_chk): Restore shadow stack pointer if shadow stack
14779 is enabled and SHADOW_STACK_POINTER_OFFSET is defined.
14780 * sysdeps/unix/sysv/linux/x86/Makefile (gen-as-const-headers):
14781 Remove jmp_buf-ssp.sym.
14782 * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S: Include
14783 <jmp_buf-ssp.h>.
14784 (____longjmp_chk): Restore shadow stack pointer if shadow stack
14785 is enabled and SHADOW_STACK_POINTER_OFFSET is defined.
14786 * sysdeps/x86/Makefile (gen-as-const-headers): Add
14787 jmp_buf-ssp.sym.
14788 * sysdeps/x86/jmp_buf-ssp.sym: New dummy file.
14789 * sysdeps/x86_64/__longjmp.S: Include <jmp_buf-ssp.h>.
14790 (__longjmp): Restore shadow stack pointer if shadow stack is
14791 enabled, SHADOW_STACK_POINTER_OFFSET is defined and __longjmp
14792 isn't defined for __longjmp_cancel.
14793 * sysdeps/x86_64/setjmp.S: Include <jmp_buf-ssp.h>.
14794 (__sigsetjmp): Save shadow stack pointer if shadow stack is
14795 enabled and SHADOW_STACK_POINTER_OFFSET is defined.
14796
14797 2018-07-14 H.J. Lu <hongjiu.lu@intel.com>
14798
14799 [BZ #22563]
14800 * nptl/pthread_create.c: Include <tls-setup.h>.
14801 (__pthread_create_2_1): Call tls_setup_tcbhead.
14802 * sysdeps/generic/tls-setup.h: New file.
14803 * sysdeps/x86/nptl/tls-setup.h: Likewise.
14804 * sysdeps/i386/nptl/tcb-offsets.sym (FEATURE_1_OFFSET): New.
14805 * sysdeps/x86_64/nptl/tcb-offsets.sym (FEATURE_1_OFFSET):
14806 Likewise.
14807 * sysdeps/i386/nptl/tls.h (tcbhead_t): Rename __glibc_reserved1
14808 to feature_1.
14809 * sysdeps/x86_64/nptl/tls.h (tcbhead_t): Likewise.
14810 * sysdeps/x86/sysdep.h (X86_FEATURE_1_IBT): New.
14811 (X86_FEATURE_1_SHSTK): Likewise.
14812 (CET_ENABLED): Likewise.
14813 (IBT_ENABLED): Likewise.
14814 (SHSTK_ENABLED): Likewise.
14815
14816 2018-07-13 Rafał Lużyński <digitalfreak@lingonborough.com>
14817
14818 [BZ #23208]
14819 * localedata/Makefile (test-input): Add dsb_DE.UTF-8.
14820 (LOCALES): Likewise.
14821 * localedata/dsb_DE.UTF-8.in: New file.
14822 * localedata/locales/dsb_DE (LC_COLLATE): Fix syntax error.
14823
14824 2018-07-12 Florian Weimer <fweimer@redhat.com>
14825
14826 * nptl/allocatestack.c [_STACK_GROWS_UP] (allocate_stack): Call
14827 __mprotect, not mprotect.
14828
14829 2018-07-11 Florian Weimer <fweimer@redhat.com>
14830
14831 * io/Makefile (headers): Add bits/statx.h.
14832
14833 2018-07-10 Mike FABIAN <mfabian@redhat.com>
14834
14835 * localedata/charmaps/UTF-8: Use correct Unicode version 11.0.0 in comment.
14836 * localedata/locales/i18n_ctype: Use correct Unicode version in comments
14837 and headers.
14838 * localedata/unicode-gen/utf8_gen.py: Add option to specify Unicode version
14839 * localedata/unicode-gen/Makefile: Use option to specify Unicode version
14840 for utf8_gen.py
14841
14842 2018-07-10 Florian Weimer <fweimer@redhat.com>
14843
14844 * io/Makefile (routines): Add statx.
14845 (tests-internal): Add tst-statx.
14846 * io/Versions (GLIBC_2.28): Export statx.
14847 * io/bits/statx.h: New file.
14848 * io/sys/stat.h [__USE_GNU]: Include it.
14849 * io/fcntl.h [__USE_GNU] (AT_STATX_SYNC_TYPE)
14850 (AT_STATX_SYNC_AS_STAT, AT_STATX_FORCE_SYNC, AT_STATX_DONT_SYNC):
14851 Define.
14852 * io/statx.c: New file.
14853 * io/statx_generic.: Likewise.
14854 * io/tst-statx.: Likewise.
14855 * include/bits/statx.h: Likewise.
14856 * sysdeps/unix/sysv/linux/kernel-features.h
14857 [__LINUX_KERNEL_VERSION >= 0x040B00] (__ASSUME_STATX): Define.
14858 * sysdeps/unix/sysv/linux/alpha/kernel-features.h
14859 [__LINUX_KERNEL_VERSION < 0x040D00] (__ASSUME_STATX): Undefine.
14860 * sysdeps/unix/sysv/linux/ia64/kernel-features.h (__ASSUME_STATX):
14861 Undefine.
14862 * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
14863 [__LINUX_KERNEL_VERSION < 0x040C00] (__ASSUME_STATX): Undefine.
14864 * sysdeps/unix/sysv/linux/statx.c: New file.
14865 * manual/filesys.texi: Note that statx is undocumented.
14866 * sysdeps/**/libc*.abilist: Update.
14867
14868 2018-07-10 Adhemerval Zanella <adhemerval.zanella@linaro.org>
14869
14870 * sysdeps/unix/sysv/linux/tst-ofdlocks-compat.c: Add a comment about
14871 a kernel issue which lead to test failure in some cases.
14872
14873 2018-07-10 Florian Weimer <fweimer@redhat.com>
14874
14875 [BZ #23036]
14876 * posix/regexec.c (check_node_accept_bytes): When comparing
14877 weights, do not compare an extra byte after the end of the
14878 weights.
14879
14880 2018-07-10 Florian Weimer <fweimer@redhat.com>
14881
14882 * libio/readline.c: Fix copyright year.
14883 * libio/tst-readline.c Likewise.
14884 * nss/tst-nss-files-hosts-getent.c: Likewise.
14885
14886 2018-07-06 Florian Weimer <fweimer@redhat.com>
14887
14888 [BZ #18991]
14889 * nss/nss_files/files-XXX.c (internal_getent): Use
14890 __libc_readline_unlocked. Seek back to the start of the line if
14891 parsing failes with ERANGE.
14892 (get_contents_ret, get_contents): Remove.
14893 * nss/tst-nss-files-hosts-getent.c: New file.
14894 * nss/Makefile (tests): Add tst-nss-files-hosts-getent.
14895 (tst-nss-files-hosts-getent): Link with -ldl.
14896
14897 2018-07-06 Florian Weimer <fweimer@redhat.com>
14898
14899 * include/stdio.h (__libc_readline_unlocked): Declare.
14900 (__ftello64, __fseeko64): Declare aliases.
14901 * libio/readline.c: New file.
14902 * libio/tst-readline.c: Likewise.
14903 (routines): Add readline.
14904 (tests-internal): Add tst-readlime.
14905 * libio/Versions (GLIBC_PRIVATE): Export __fseeko64, __ftello64,
14906 __libc_readline_unlocked.
14907 * libio/fseeko.c (__fseeko): Rename from fseeko.
14908 (fseeko): Add alias.
14909 [__OFF_T_MATCHES_OFF64_T] (fseeko64, __fseeko64): Likewise.
14910 * libio/fseeko64.c (__fseeko64): Rename from fseeko64.
14911 (fseeko64): Add alias.
14912 * libio/ftello.c [__OFF_T_MATCHES_OFF64_T] (__ftello64): Add alias.
14913 * libio/ftello64.c (__ftello64): Rename from ftello64.
14914 (ftello64): Add alias.
14915
14916 2018-07-06 Szabolcs Nagy <szabolcs.nagy@arm.com>
14917
14918 * sysdeps/unix/sysv/linux/aarch64/dl-procinfo.h (HWCAP_IMPORTANT): Add
14919 HWCAP_ATOMICS.
14920
14921 2018-07-06 Szabolcs Nagy <szabolcs.nagy@arm.com>
14922
14923 * sysdeps/unix/sysv/linux/aarch64/cpu-features.c (init_cpu_features):
14924 Use dl_hwcap without masking.
14925 * sysdeps/unix/sysv/linux/aarch64/dl-procinfo.h (HWCAP_IMPORTANT):
14926 Remove HWCAP_CPUID.
14927
14928 2018-07-06 Florian Weimer <fweimer@redhat.com>
14929
14930 * conform/conformtest.pl (checknamespace): Escape literal braces
14931 in regular expressions.
14932
14933 2018-07-06 Amit Pawar <amit.pawar@amd.com>
14934
14935 * sysdeps/x86/cpu-features.c (get_common_indeces):
14936 AVX_Fast_Unaligned_Load is enabled when AVX2 is detected.
14937 * sysdeps/x86/cpu-features.c (init_cpu_features):
14938 AVX_Fast_Unaligned_Load is disabled for Excavator core.
14939
14940 2018-07-05 Florian Weimer <fweimer@redhat.com>
14941
14942 * csu/Makefile (CFLAGS-static-reloc.os): Build with stack
14943 protector.
14944 (CFLAGS-elf-init.oS): Likewise.
14945
14946 2018-07-05 Florian Weimer <fweimer@redhat.com>
14947 Carlos O'Donell <carlos@redhat.com>
14948
14949 * debug/Makefile (CFLAGS-stack_chk_fail_local.c): Remove
14950 $(no-stack-protector). stack_chk_fail_local.c can be compiled
14951 with stack protector enabled because there is no risk of infinite
14952 recursion.
14953
14954 2018-07-05 Maciej W. Rozycki <macro@mips.com>
14955
14956 [BZ #19818]
14957 [BZ #23307]
14958 * libc-abis (ABSOLUTE): New ABI.
14959 * sysdeps/unix/sysv/linux/mips/libc-abis (ABSOLUTE): New ABI.
14960 * NEWS: Mention the new ABI.
14961
14962 2018-07-05 Florian Weimer <fweimer@redhat.com>
14963
14964 [BZ # 17662]
14965 * libio/stdio.h [__USE_GNU] (RENAME_NOREPLACE, RENAME_EXCHANGE)
14966 (RENAME_WHITEOUT): Define.
14967 [__USE_GNU] (renameat2): Declare.
14968 * stdio-common/Makefile (routines): Add renameat2.
14969 (tests): Add tst-renameat2.
14970 * stdio-common/Versions (GLIBC_2_28): Export renameat2.
14971 * stdio-common/renameat2.c: New file.
14972 * stdio-common/tst-renameat2.c: Likewise.
14973 * sysdeps/unix/sysv/linux/renameat2.c: Likewise.
14974 * manual/filesys.texi (Temporary Files): Note that renameat2 is
14975 undocumented.
14976 * sysdeps/unix/sysv/linux/kernel-features.h
14977 [__LINUX_KERNEL_VERSION >= 0x030F00] (__ASSUME_RENAMEAT2): Define.
14978 * sysdeps/unix/sysv/linux/alpha/kernel-features.h
14979 [__LINUX_KERNEL_VERSION < 0x031100] (__ASSUME_RENAMEAT2): Undefine.
14980 * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
14981 [__LINUX_KERNEL_VERSION < 0x031100] (__ASSUME_RENAMEAT2): Undefine.
14982 * sysdeps/unix/sysv/linux/sh/kernel-features.h
14983 [__LINUX_KERNEL_VERSION < 0x040800] (__ASSUME_RENAMEAT2): Undefine.
14984 * sysdeps/unix/sysv/linux/sparc/kernel-features.h
14985 [__LINUX_KERNEL_VERSION < 0x031000] (__ASSUME_RENAMEAT2): Undefine.
14986 * include/stdio.h (__renameat): Add alias for renameat.
14987 * stdio-common/renameat.c (__renameat): Rename from renameat.
14988 Add hidden definition and alias.
14989 * sysdeps/unix/sysv/linux/renameat.c: Likewise.
14990 * sysdeps/mach/hurd/renameat.c: Likewise.
14991 * sysdeps/**/libc*.abilist: Add renameat2.
14992
14993 2018-07-04 Adhemerval Zanella <adhemerval.zanella@linaro.org>
14994
14995 * posix/bug-regex33.c: Fix build after regex sync.
14996
14997 2018-07-04 Carlos O'Donell <carlos@redhat.com>
14998
14999 [BZ #23164]
15000 * localedata/tst-langinfo-setlocale.c: New file.
15001 * localedata/tst-langinfo-setlocale-static.c: New file.
15002 * localedata/tst-langinfo-newlocale.c: New file.
15003 * localedata/tst-langinfo-newlocale-static.c: New file.
15004 * localedata/Makefile (test-srcs): Remove tst-langinfo. Add
15005 tst-langinfo-setlocale, tst-langinfo-setlocale-static,
15006 tst-langinfo-newlocale, tst-langinfo-newlocale-static.
15007 (tests-static): Remove tst-langinfo-static. Add
15008 tst-langinfo-newlocale-static, tst-langinfo-setlocale-static.
15009 (tests-special): Remove $(objpfx)tst-langinfo.out,
15010 $(objpfx)tst-langinfo-static.out. Add
15011 $(objpfx)tst-langinfo-setlocale.out,
15012 $(objpfx)tst-langinfo-newlocale.out,
15013 $(objpfx)tst-langinfo-setlocale-static.out,
15014 $(objpfx)tst-langinfo-newlocale-static.out.
15015 ($(objpfx)tst-langinfo.out): Remove.
15016 ($(objpfx)tst-langinfo-static.out): Remove.
15017 ($(objpfx)tst-langinfo-newlocale.out): New target.
15018 ($(objpfx)tst-langinfo-newlocale-static.out): New target.
15019 (test-xfail-tst-langinfo-newlocale-static): Add.
15020 ($(objpfx)tst-langinfo-setlocale.out): New target.
15021 ($(objpfx)tst-langinfo-setlocale-static.out): New target.
15022 * localedata/tst-langinfo.c: Call test_locale.
15023 * localedata/tst-langinfo.sh: Add LC_MONETARY CURRENCY_SYMBOL test
15024 data.
15025
15026 2018-07-04 Florian Weimer <fweimer@redhat.com>
15027
15028 testrun.sh: Implement --tool=strace, --tool=valgrind
15029 * Makefile (testrun-script): Define variable.
15030 (testrun.sh): Use variable.
15031 * manual/install.texi (Tools for Compilation): make 4.0 or later
15032 is required.
15033 * configure.ac: Check for make 4.0 or later.
15034 * INSTALL: Regenerate.
15035 * configure: Likewise.
15036
15037 2018-07-04 Adhemerval Zanella <adhemerval.zanella@linaro.org>
15038
15039 [BZ #23233]
15040 [BZ #21163]
15041 [BZ #18986]
15042 [BZ #13762]
15043 * posix/Makefile (tests): Add bug-regex37 and bug-regex38.
15044 * posix/PCRE.tests: Remove invalid test.
15045 * posix/bug-regex28.c: Fix expected values for used syntax.
15046 * posix/bug-regex37.c: New file.
15047 * posix/bug-regex38.c: Likewise.
15048 * posix/regcomp.c: Sync with gnulib.
15049 * posix/regex.c: Likewise.
15050 * posix/regex.h: Likewise.
15051 * posix/regex_internal.c: Likewise.
15052 * posix/regex_internal.h: Likewise.
15053 * posix/regexec.c: Likewise.
15054
15055 2018-06-26 Mike FABIAN <mfabian@redhat.com>
15056
15057 [BZ #23308]
15058 * unicode-gen/Makefile (UNICODE_VERSION): Set to 11.0.0.
15059 * localedata/unicode-gen/DerivedCoreProperties.txt: Update to Unicode 11.0.0.
15060 * localedata/unicode-gen/EastAsianWidth.txt: likewise.
15061 * localedata/unicode-gen/PropList.txt: likewise.
15062 * localedata/unicode-gen/UnicodeData.txt: likewise.
15063 * localedata/charmaps/UTF-8: Regenerate.
15064 * localedata/locales/i18n_ctype: likewise.
15065 * localedata/locales/tr_TR: likewise.
15066 * localedata/locales/translit_circle: likewise.
15067 * localedata/locales/translit_cjk_compat: likewise.
15068 * localedata/locales/translit_combining: likewise.
15069 * localedata/locales/translit_compat: likewise.
15070 * localedata/locales/translit_font: likewise.
15071 * localedata/locales/translit_fraction: likewise.
15072
15073 2018-07-03 Florian Weimer <fweimer@redhat.com>
15074
15075 [BZ #23363]
15076 * stdio-common/tst-printf.c (DEC, INT, UNS, fp_test): Remove.
15077 * stdio-common/tst-printf.sh: Adjust expected output.
15078 * LICENSES: Update.
15079
15080 2018-07-03 Adhemerval Zanella <adhemerval.zanella@linaro.org>
15081
15082 * sysdeps/mach/hurd/i386/libc.abilist [GLIBC_2.28] (fcntl): Remove
15083 symbol.
15084
15085 2018-07-02 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
15086
15087 * stdio-common/Makefile (test-srcs): Add tst-printfsz-islongdouble.
15088 (tests-special) Add $(objpfx)tst-printfsz-islongdouble.out.
15089 ($(objpfx)tst-printfsz-islongdouble.out): New build and run rule.
15090 * stdio-common/tst-printfsz-islongdouble.c: New file.
15091 * stdio-common/tst-printfsz-islongdouble.sh: Likewise.
15092 * sysdeps/ieee754/ldbl-128ibm-compat/Makefile:
15093 [subdir == stdio-common] (routines): Add ieee128-printf_size.
15094 [subdir == stdio-common] (tests-internal): Add
15095 test-printf-size-ieee128, and test-printf-size-ibm128.
15096 [subdir == stdio-common] (CFLAGS-test-printf-size-ieee128.c)
15097 (CFLAGS-test-printf-size-ibm128.c): New variables.
15098 [subdir == stdio-common] (tests-special): Add
15099 $(objpfx)test-printf-size-ieee128.out and
15100 $(objpfx)test-printf-size-ibm128.out.
15101 [subdir == stdio-common] ($(objpfx)test-printf-size-ieee128.out)
15102 ($(objpfx)test-printf-size-ibm128.out): New build and run rules.
15103 * sysdeps/ieee754/ldbl-128ibm-compat/Versions (libc): Add
15104 __printf_sizeieee128.
15105 * sysdeps/ieee754/ldbl-128ibm-compat/ieee128-printf_size.c:
15106 New file.
15107 * sysdeps/ieee754/ldbl-128ibm-compat/test-printf-size-ibm128.c:
15108 Likewise.
15109 * sysdeps/ieee754/ldbl-128ibm-compat/test-printf-size-ieee128.c:
15110 Likewise.
15111
15112 2018-07-02 Szabolcs Nagy <szabolcs.nagy@arm.com>
15113
15114 * sysdeps/ieee754/flt-32/e_powf.c (__powf): Use uint32_t.
15115 (exp2f_inline): Likewise.
15116 * sysdeps/ieee754/flt-32/math_config.h (__math_oflowf): Likewise.
15117 (__math_uflowf): Likewise.
15118 (__math_may_uflowf): Likewise.
15119 (__math_divzerof): Likewise.
15120 (__math_invalidf): Likewise.
15121 * sysdeps/ieee754/flt-32/math_errf.c (xflowf): Likewise.
15122 (__math_oflowf): Likewise.
15123 (__math_uflowf): Likewise.
15124 (__math_may_uflowf): Likewise.
15125 (__math_divzerof): Likewise.
15126 (__math_invalidf): Likewise.
15127
15128 2018-06-29 DJ Delorie <dj@redhat.com>
15129 Carlos O'Donell <carlos@redhat.com>
15130
15131 [BZ #23329]
15132 * include/libc-symbols.h: Comment the freeres framework.
15133 * include/set-hooks.h: Include libc-symbols.h. Fix comment.
15134 * dlfcn/Makefile (libdl-routines): Add dlfreeres.
15135 * dlfcn/Versions (GLIBC_PRIVATE): Add __libdl_freeres.
15136 * dlfcn/dlerror.c: Include libc-symbols.h
15137 (__dlerror_main_freeres): New function.
15138 * dlfcn/dlfreeres.c: New file.
15139 * dlfcn/sdlfreeres.c: New file.
15140 * include/dlfcn.h: Declare __dlerror_main_freeres.
15141 * malloc/set-freeres.c: Declare __libdl_freeres, and
15142 __libpthread_freeres.
15143 (__libc_subfreeres): Call __libdl_freeres, and __libpthread_freeres if
15144 the releavant libraries are loaded.
15145 * malloc/thread-freeres.c: Add comments.
15146 * nptl/Makefile (libpthread-routines): Add nptlfreeres.
15147 * nptl/Version (GLIBC_PRIVATE): Add __libpthread_freeres.
15148 * nptl/allocatestack.c (__nptl_free_stacks): New function.
15149 (__free_stacks): Rename to...
15150 (free_stacks): ...this. Mark static.
15151 (queue_stack): Call free_stacks.
15152 * nptl/libc_pthread_init.c [SHARED] (freeres_libpthread): Delete.
15153 * nptl/nptl-init.c: Delete delcaration of nptl_freeres.
15154 * sysdeps/nptl/pthread-functions.h (pthread_functions): Remove
15155 ptr_freeres element from struct.
15156 (pthread_functions): Remove .ptr_freeres from struct initializer.
15157 [SHARED] (nptl_freeres): Remove.
15158 * nptl/nptlfreeres.c: New file.
15159 * nptl/pthreadP.h
15160 [IS_IN (libpthread) && SHARED ] (__unwind_freeres): Rename to...
15161 [IS_IN (libpthread)] (__nptl_unwind_freeres): ...this. Mark
15162 attribute_hidden.
15163 (__free_stacks): Rename to...
15164 (__nptl_stacks_freeres): ...this.
15165 (__shm_directory_freeres): Declare.
15166 * nptl/unwind-forcedunwind.c (__unwind_freeres): Rename to...
15167 (__nptl_unwind_freeres): ...this.
15168 * resolv/res-close.c: Add comment.
15169 * resolv/resolv_conf.c: Include libc-symbols.h.
15170 * string/strerror_l.c: Include libc-symbols.h.
15171 * sunrpc/rpc_thread.c: Include libc-symbols.h.
15172 * sysdeps/mach/strerror_l.c: Inlcude libc-symbols.h
15173 * sysdeps/unix/sysv/linux/shm-directory.c (freeit): Rename to...
15174 [IS_IN (libpthread)] (__shm_directory_freeres): ...this.
15175
15176 2018-06-29 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
15177
15178 * stdlib/tst-strfmon_l.c: Add tests for long double.
15179
15180 2018-06-29 Michael Wolf <milupo@sorbzilla.de>
15181
15182 [BZ #23208]
15183 * localedata/SUPPORTED (dsb_DE/UTF-8): New entry.
15184 * localedata/locales/dsb_DE: New file.
15185
15186 2018-06-29 Rafał Lużyński <digitalfreak@lingonborough.com>
15187
15188 [BZ #23140]
15189 * localedata/locales/hy_AM (mon): Synchronize with CLDR (lowercase,
15190 genitive case).
15191 (alt_mon): New entry, import from CLDR (nominative case).
15192
15193 2018-06-29 Sylvain Lesage <severo@rednegra.net>
15194
15195 [BZ #22996]
15196 * localedata/locales/es_BO (LC_PAPER): Change to “copy "en_US"”.
15197
15198 2018-06-29 Siddhesh Poyarekar <siddhesh@sourceware.org>
15199
15200 * sysdeps/aarch64/multiarch/memcpy_falkor.S (__memcpy_falkor):
15201 Use vector registers.
15202
15203 * sysdeps/aarch64/multiarch/memmove_falkor.S
15204 (__memcpy_falkor): Use vector registers.
15205
15206 2018-06-29 Martin Sebor <msebor@redhat.com>
15207
15208 * manual/stdio.texi (Customizing Printf): Mention interaction
15209 with GCC built-ins.
15210
15211 2018-06-29 Maciej W. Rozycki <macro@mips.com>
15212
15213 [BZ #23307]
15214 * elf/dl-lookup.c (check_match): Do not reject a symbol whose
15215 `st_value' is 0 if `st_shndx' is SHN_ABS.
15216 * elf/tst-absolute-zero.c: New file.
15217 * elf/tst-absolute-zero-lib.c: New file.
15218 * elf/tst-absolute-zero-lib.lds: New file.
15219 * elf/Makefile (tests): Add `tst-absolute-zero'.
15220 (modules-names): Add `tst-absolute-zero-lib'.
15221 (LDLIBS-tst-absolute-zero-lib.so): New variable.
15222 ($(objpfx)tst-absolute-zero-lib.so): New dependency.
15223 ($(objpfx)tst-absolute-zero: New dependency.
15224
15225 2018-06-29 Zack Weinberg <zackw@panix.com>
15226
15227 * configure.ac: New command-line option --disable-crypt.
15228 Force --disable-nss-crypt when --disable-crypt is given, with a
15229 warning if it was explicitly enabled.
15230 * configure: Regenerate.
15231 * config.make.in: New boolean substitution variable $(build-crypt).
15232 * Makeconfig: Only include 'crypt' in all-subdirs and rpath-dirs
15233 when $(build-crypt).
15234 * manual/install.texi: Document --disable-crypt.
15235 * INSTALL: Regenerate.
15236
15237 * crypt/Makefile: Remove code conditional on $(crypt-in-libc),
15238 which is never set.
15239 * conform/Makefile: Only include libcrypt.a in
15240 linknamespace-libs-xsi and linknamespace-libs-XPG4
15241 when $(build-crypt).
15242 * elf/Makefile (CFLAGS-tst-linkall-static.c): Only define
15243 USE_CRYPT to 1 when $(build-crypt).
15244 (tst-linkall-static): Only link libcrypt.a when $(build-crypt).
15245 (localplt-built-dso): Only add libcrypt.so when $(build-crypt).
15246 * elf/tst-linkall-static.c: Only include crypt.h when USE_CRYPT.
15247
15248 2018-06-29 Zack Weinberg <zackw@panix.com>
15249
15250 * crypt/crypt.h, posix/unistd.h: Update comments and
15251 prototypes for crypt and crypt_r.
15252
15253 * manual/crypt.texi (Cryptographic Functions): New initial
15254 exposition.
15255 (crypt): Section renamed to 'Passphrase Storage'. Full rewrite.
15256 (Unpredictable Bytes): Improve initial exposition. Clarify error
15257 behavior of getentropy and getrandom.
15258 * manual/examples/genpass.c: Generate a salt using getentropy
15259 instead of the current time. Use hash $5$ (SHA-2-256).
15260 * manual/examples/testpass.c: Demonstrate validation against
15261 hashes generated with three different one-way functions.
15262
15263 * manual/intro.texi: crypt.texi does not need an overview
15264 anymore.
15265
15266 * manual/nss.texi, manual/memory.texi, manual/socket.texi
15267 * manual/terminal.texi: Consistently refer to "passphrases"
15268 * instead of "passwords", and to the "user database" instead
15269 * of the "password database".
15270 * manual/users.texi: Similarly. Add notes about how actual
15271 passphrase hashes are now stored in the shadow database.
15272 Remove 20-year-old junk todo note.
15273
15274 2018-06-29 Zack Weinberg <zackw@panix.com>
15275
15276 * manual/crypt.texi: Use a normal top-level @node declaration.
15277 Move most of the introductory text to the 'crypt' section.
15278 Move the example programs below the @deftypefun for 'crypt_r'.
15279 Move the 'getpass' section...
15280 * manual/terminal.texi: ...here.
15281
15282 2018-06-29 Zack Weinberg <zackw@panix.com>
15283 Florian Weimer <fweimer@redhat.com>
15284
15285 * posix/unistd.h: Do not declare encrypt.
15286 (_XOPEN_CRYPT): Remove macro definition.
15287 (crypt): Declare only for _USE_MISC.
15288 * stdlib/stdlib.h: Do not declare setkey.
15289 * crypt/crypt.h: Do not declare encrypt, setkey, encrypt_r, setkey_r.
15290 * sunrpc/Makefile: Do not install des_crypt.h nor rpc_des.h.
15291
15292 * crypt/crypt-entry.c: Make fcrypt a compat symbol.
15293 * crypt/crypt_util.c: Make encrypt, encrypt_r, setkey, setkey_r
15294 into compat symbols. Don't define initial_perm if it's not
15295 going to be used.
15296 * crypt/cert.c: Link explicitly with the expected versions for
15297 setkey and encrypt. If they are not available at all, mark
15298 the test as unsupported.
15299
15300 * sunrpc/des_crypt.c: Unconditionally block linkage with
15301 cbc_crypt and ecb_crypt for new binaries.
15302 * sunrpc/des_soft.c: Unconditionally block linkage with
15303 des_setparity for new binaries.
15304
15305 * manual/crypt.texi: Remove the entire "DES Encryption"
15306 section. Also remove the paragraph talking about FIPS 140-2
15307 from the introduction.
15308 * manual/string.texi (strfry, memfrob): Revise. Recommend use
15309 of libgcrypt for "real" encryption, not DES.
15310 * manual/conf.texi (Constants for Sysconf): Mention that
15311 _XOPEN_CRYPT is no longer impelemented.
15312
15313 * conform/data/unistd.h-data: Remove crypt function declaration.
15314
15315 2018-06-29 Florian Weimer <fweimer@redhat.com>
15316
15317 [BZ #23351]
15318 * malloc/hooks.c: Update comments on restoring of dumped heaps.
15319 (disallow_malloc_check): Remove variable.
15320 (__malloc_check_init): Adjust.
15321 (malloc_set_state): Update comment.
15322 * malloc/malloc.c (__malloc_get_state, __malloc_set_state): Remove
15323 declarations.
15324
15325 2018-06-29 Rafał Lużyński <digitalfreak@lingonborough.com>
15326
15327 [BZ #23140]
15328 * localedata/locales/ast_ES (mon): Rename to...
15329 (alt_mon): This.
15330 (mon): Import from CLDR (genitive case).
15331
15332 2018-06-29 Daniel Alvarez <dalvarez@redhat.com>
15333 Jakub Sitnicki <jkbs@redhat.com>
15334
15335 [BZ #21812]
15336 * sysdeps/unix/sysv/linux/ifaddrs.c (getifaddrs_internal): Retry
15337 on NLM_F_DUMP_INTR.
15338
15339 2018-06-28 Szabolcs Nagy <szabolcs.nagy@arm.com>
15340
15341 * manual/llio.texi: Remove spurious space.
15342
15343 2018-06-28 Florian Weimer <fweimer@redhat.com>
15344
15345 [BZ #23349]
15346 * time/bits/types/struct_timespec.h: Change header inclusion guard to
15347 _STRUCT_TIMESPEC.
15348
15349 2018-06-28 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
15350
15351 * sysdeps/ieee754/ldbl-128ibm-compat/Versions: Add __strfromieee128,
15352 __strtoieee128, __strtoieee128_l,__wcstoieee128 and __wcstoieee128_l.
15353 * sysdeps/ieee754/ldbl-128ibm-compat/strfromf128.c: New file.
15354 * sysdeps/ieee754/ldbl-128ibm-compat/strtof128.c: New file.
15355 * sysdeps/ieee754/ldbl-128ibm-compat/strtof128_l.c: New file.
15356 * sysdeps/ieee754/ldbl-128ibm-compat/wcstof128.c: New file.
15357 * sysdeps/ieee754/ldbl-128ibm-compat/wcstof128_l.c: New file.
15358
15359 2018-06-27 Maciej W. Rozycki <macro@mips.com>
15360
15361 [BZ #23266]
15362 * nis/nss_nisplus/nisplus-parser.c (_nss_nisplus_parse_pwent):
15363 Copy and null-terminate entries that are not terminated, in
15364 addition to empty ones.
15365
15366 2018-06-27 Florian Weimer <fweimer@redhat.com>
15367
15368 [BZ #18023]
15369 * include/alloca.h (stackinfo_alloca_round, extend_alloca)
15370 (extend_alloca_account): Remove.
15371 * manual/stdio.texi (Variable Arguments Output): Update comment.
15372
15373 2018-06-27 Joseph Myers <joseph@codesourcery.com>
15374
15375 * nptl/sockperf.c: Remove file.
15376
15377 2018-06-27 Florian Weimer <fweimer@redhat.com>
15378
15379 [BZ #18023]
15380 * elf/dl-deps.c (_dl_map_object_deps): Use struct
15381 scratch_buffer instead of extend_alloca.
15382
15383 2018-06-27 Florian Weimer <fweimer@redhat.com>
15384
15385 [BZ #18023]
15386 * sysdeps/unix/sysv/linux/gethostid.c (gethostid): Use struct
15387 scratch_buffer instead of extend_alloca. Update comments.
15388
15389 2018-06-27 Florian Weimer <fweimer@redhat.com>
15390
15391 [BZ #18023]
15392 * posix/wordexp.c (parse_tilde): Use struct scratch_buffer
15393 instead of extend_alloca.
15394
15395 2018-06-26 Joseph Myers <joseph@codesourcery.com>
15396
15397 [BZ #13888]
15398 * posix/Makefile (CFLAGS-tst-spawn3.c): New variable.
15399 * posix/tst-spawn3.c (do_test): Put tst-spwan3.pid in OBJPFX, not
15400 /tmp.
15401 * scripts/test-installation.pl: Put temporary files in build
15402 directory, not /tmp.
15403 * stdio-common/Makefile (CFLAGS-bug3.c): New variable.
15404 (CFLAGS-bug4.c): Likewise.
15405 (CFLAGS-bug5.c): Likewise.
15406 (CFLAGS-test-fseek.c): Likewise.
15407 (CFLAGS-test-popen.c): Likewise.
15408 (CFLAGS-test_rdwr.c): Likewise.
15409 * stdio-common/bug3.c (main): Put temporary file in OBJPFX, not
15410 /tmp.
15411 * stdio-common/bug4.c (main): Likewise.
15412 * stdio-common/bug5.c (main): Likewise.
15413 * stdio-common/test-fseek.c (TESTFILE): Likewise.
15414 * stdio-common/test-popen.c (do_test): Likewise.
15415 * stdio-common/test_rdwr.c (main): Likewise.
15416
15417 2018-06-26 Patsy Franklin <pfrankli@redhat.com>
15418
15419 * nptl/sem_open.c [!__HAVE_64B_ATOMICS] (sem_open): Don't update pad.
15420 (sem_open): Set sem.newsem.pad to zero for valgrind.
15421
15422 2018-06-26 Adhemerval Zanella <adhemerval.zanella@linaro.org>
15423
15424 [BZ #20251]
15425 * NEWS: Mention fcntl64 addition.
15426 * csu/check_fds.c: Replace __fcntl_nocancel by __fcntl64_nocancel.
15427 * login/utmp_file.c: Likewise.
15428 * sysdeps/posix/fdopendir.c: Likewise.
15429 * sysdeps/posix/opendir.c: Likewise.
15430 * sysdeps/unix/pt-fcntl.c: Likewise.
15431 * include/fcntl.h (__libc_fcntl64, __fcntl64,
15432 __fcntl64_nocancel_adjusted): New prototype.
15433 (__fcntl_nocancel_adjusted): Remove prototype.
15434 * io/Makefile (routines): Add fcntl64.
15435 (CFLAGS-fcntl64.c): New rule.
15436 * io/Versions [GLIBC_2.28] (fcntl64): New symbol.
15437 [GLIBC_PRIVATE] (__libc_fcntl): Rename to __libc_fcntl64.
15438 * io/fcntl.h (fcntl64): Add prototype and redirect if
15439 __USE_FILE_OFFSET64 is defined.
15440 * io/fcntl64.c: New file.
15441 * manual/llio.text: Add a note for which commands fcntl acts a
15442 cancellation point.
15443 * nptl/Makefile (CFLAGS-fcntl64.c): New rule.
15444 * sysdeps/mach/hurd/fcntl.c: Alias fcntl to fcntl64 symbols.
15445 * sysdeps/mach/hurd/i386/libc.abilist [GLIBC_2.28] (fcntl, fcntl64):
15446 New symbols.
15447 * sysdeps/unix/sysv/linux/fcntl.c (__libc_fcntl): Fix F_GETLK64,
15448 F_OFD_GETLK, F_SETLK64, F_SETLKW64, F_OFD_SETLK, and F_OFD_SETLKW for
15449 non-LFS case.
15450 * sysdeps/unix/sysv/linux/fcntl64.c: New file.
15451 * sysdeps/unix/sysv/linux/fcntl_nocancel.c (__fcntl_nocancel): Rename
15452 to __fcntl64_nocancel.
15453 (__fcntl_nocancel_adjusted): Rename to __fcntl64_nocancel_adjusted.
15454 * sysdeps/unix/sysv/linux/not-cancel.h (__fcntl_nocancel): Rename
15455 to __fcntl64_nocancel.
15456 * sysdeps/generic/not-cancel.h: Likewise.
15457 * sysdeps/unix/sysv/linux/tst-ofdlocks.c: New file.
15458 * sysdeps/unix/sysv/linux/Makefile (tests): Add tst-ofdlocks.
15459 * sysdeps/unix/sysv/linux/aarch64/libc.abilist [GLIBC_2.28]
15460 (fcntl64): New symbol.
15461 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
15462 * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
15463 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
15464 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist: Likewise.
15465 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist: Likewise.
15466 * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist: Likewise.
15467 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
15468 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
15469 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
15470 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
15471 * sysdeps/unix/sysv/linux/arm/libc.abilist [GLIBC_2.28] (fcntl,
15472 fcntl64): Likewise.
15473 * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
15474 * sysdeps/unix/sysv/linux/i386/libc.abilis: Likewise.
15475 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
15476 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
15477 * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
15478 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
15479 * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist: Likewise.
15480 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
15481 * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise.
15482 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
15483 Likewise.
15484 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
15485 Likewise.
15486 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
15487 * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
15488 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
15489
15490 2018-06-26 Florian Weimer <fweimer@redhat.com>
15491
15492 Run thread shutdown functions in an explicit order.
15493 * malloc/thread-freeres.c (__libc_thread_subfreeres): Remove hook
15494 definition.
15495 (__libc_thread_freeres): Call thread shutdown functions
15496 explicitly.
15497 * include/rpc/rpc.h (__rpc_thread_destroy): Add hidden attribute.
15498 * include/string.h (__strerror_thread_freeres): Declare.
15499 * malloc/arena.c (__malloc_arena_thread_freeres): Renamed from
15500 arena_thread_freeres. No longer static. Remove thread shutdown
15501 hook registration.
15502 * malloc/malloc-internal.h (__malloc_arena_thread_freeres):
15503 Declare.
15504 * resolv/res-close.c (__res_thread_freeres): Renamed from
15505 res_thread_freeres. No longer static. Remove thread shutdown
15506 hook registration.
15507 * resolv/resolv-internal.h (__res_thread_freeres): Declare.
15508 * resolv/resolv_conf.c (freeres): Remove incorrect section
15509 attribute and use libc_freeres_fn.
15510 * string/strerror_l.c (__strerror_thread_freeres): Renamed from
15511 strerror_thread_freeres. No longer static. Remove thread
15512 shutdown hook registration.
15513 * sysdeps/mach/strerror_l.c (__strerror_thread_freeres): Likewise.
15514 * sunrpc/rpc_thread.c (__rpc_thread_destroy): Remove thread
15515 shutdown hook registration.
15516 * Makerules (shlib.lds): Do not provide section boundary symbols
15517 for __libc_thread_subfreeres.
15518 * manual/memory.texi (Basic Allocation): Update comment.
15519
15520 2018-06-26 Florian Weimer <fweimer@redhat.com>
15521
15522 Remove always-defined _RPC_THREAD_SAFE_ macro.
15523 * sunrpc/Makefile (sunrpc-CPPFLAGS, CPPFLAGS, BUILD_CPPFLAGS):
15524 Do not define _RPC_THREAD_SAFE_.
15525 * include/rpc/rpc.h: Remove _RPC_THREAD_SAFE_ preprocessor
15526 conditional.
15527 * sunrpc/clnt_perr.c: Likewise.
15528 * sunrpc/clnt_raw.c: Likewise.
15529 * sunrpc/clnt_simp.c: Likewise.
15530 * sunrpc/key_call.c: Likewise.
15531 * sunrpc/rpc_common.c: Likewise.
15532 * sunrpc/rpc_main.c: Likewise.
15533 * sunrpc/rpc_thread.c: Likewise.
15534 * sunrpc/svc.c: Likewise.
15535 * sunrpc/svc_raw.c: Likewise.
15536 * sunrpc/svc_simple.c: Likewise.
15537 * sumrpc/svcauth_des.c: Likewise.
15538
15539 2018-06-26 Florian Weimer <fweimer@redhat.com>
15540
15541 * libio/Makefile (tests-internal): Add tst-vtables,
15542 tst-vtables-interposed.
15543 * libio/tst-vtables.c: New file.
15544 * libio/tst-vtables-common.c: Likewise.
15545 * libio/tst-vtables-interposed.c: Likewise.
15546
15547 2018-06-26 Florian Weimer <fweimer@redhat.com>
15548
15549 * support/support_test_main.c (support_test_main): Only call
15550 setvbuf if not disables.
15551 * support/test-driver.c (main): Check TEST_NO_SETVBUF.
15552 * support/test-driver.h (struct test_config): Add no_setvbuf member.
15553
15554 2018-06-26 Florian Weimer <fweimer@redhat.com>
15555
15556 [BZ #23313]
15557 * libio/vtables.c (check_stdfiles_vtables): New ELF constructor.
15558
15559 2018-06-25 Florian Weimer <fweimer@redhat.com>
15560
15561 [BZ #18023]
15562 * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn):
15563 Use struct scratch_buffer instead of extend_alloca.
15564
15565 2018-06-25 Florian Weimer <fweimer@redhat.com>
15566
15567 [BZ #18023]
15568 * nss/getent.c (initgroups_keys): Use dynarray instead of
15569 extend_alloca.
15570
15571 2018-06-25 Florian Weimer <fweimer@redhat.com>
15572
15573 [BZ #18023]
15574 * nis/nss_nis/nis-initgroups.c (get_uid, _nss_nis_initgroups_dyn):
15575 Use struct scratch_buffer instead of extend_alloca.
15576
15577 2018-06-25 Florian Weimer <fweimer@redhat.com>
15578
15579 [BZ #18023]
15580 * nss/nss_compat/compat-initgroups.c (getgrent_next_nss): Fall
15581 back to malloc directly, without stack allocations.
15582
15583 2018-06-25 Florian Weimer <fweimer@redhat.com>
15584
15585 [BZ #18023]
15586 * nscd/aicache.c (addhstaiX): Use struct scratch_buffer instead
15587 of extend_alloca.
15588
15589 2018-06-25 Florian Weimer <fweimer@redhat.com>
15590
15591 [BZ #18023]
15592 * nscd/grpcache.c (addgrbyX): Use struct scratch_buffer instead
15593 of extend_alloca.
15594 * nscd/hstcache.c (addhstbyX): Likewise.
15595 * nscd/pwdcache.c (addpwbyX): Likewise.
15596 * nscd/servicescache.c (addservbyX): Likewise.
15597
15598 2018-06-25 Florian Weimer <fweimer@redhat.com>
15599
15600 [BZ #18023]
15601 * nscd/connections.c (read_cmdline): New function.
15602 (restart): Use it. Update comment.
15603
15604 2018-06-25 Rafał Lużyński <digitalfreak@lingonborough.com>
15605
15606 [BZ #23140]
15607 * localedata/locales/csb_PL (mon): Rename to...
15608 (alt_mon): This.
15609 (abmon): Rename to...
15610 (ab_alt_mon): This.
15611 (mon): Add with proper genitive forms, copy from Wikipedia.
15612 (abmon): Likewise.
15613
15614 2018-06-25 Rafał Lużyński <digitalfreak@lingonborough.com>
15615
15616 [BZ #19485]
15617 * localedata/locales/csb_PL (mon): Fix typos:
15618 "łżëkwiôt" -> "łżëkwiat" (April); "lëpinc" -> "lëpińc" (July).
15619 (yesstr): Add, value is "jo".
15620 (nostr): Add, value is "nié".
15621
15622 2018-06-22 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
15623
15624 * sysdeps/m68k/m680x0/fpu/s_log1p.c: Set as the generic file for
15625 all log1p and significand functions on m680x0.
15626 * sysdeps/m68k/m680x0/fpu/s_log1pf.c: Include s_log1p.c instead
15627 of s_significand.c..
15628 * sysdeps/m68k/m680x0/fpu/s_log1pl.c: Likewise.
15629 * sysdeps/m68k/m680x0/fpu/s_significandf.c: Likewise.
15630 * sysdeps/m68k/m680x0/fpu/s_significandl.c: Likewise.
15631 * sysdeps/m68k/m680x0/fpu/s_significand.c: Move all the code to
15632 s_log1p.c and include it..
15633
15634 2018-06-21 Vincent Chen <vincentc@andestech.com>
15635
15636 * elf/elf.h (R_NDS32_NONE): New define.
15637 (R_NDS32_32_RELA): Likewise.
15638 (R_NDS32_COPY): Likewise.
15639 (R_NDS32_GLOB_DAT): Likewise.
15640 (R_NDS32_JUMP_SLOT): Likewise.
15641 (R_NDS32_RELATIVE): Likewise.
15642 (R_NDS32_TLS_TPOFF): Likewise.
15643 (R_NDS32_TLS_DESC): Likewise.
15644
15645 2018-06-21 Mark Wielaard <mark@klomp.org>
15646
15647 * elf/elf.h (R_BPF_MAP_FD): Removed.
15648 (R_BPF_64_64, R_BPF_64_32): New.
15649
15650 2018-06-21 Florian Weimer <fweimer@redhat.com>
15651
15652 [BZ #23253]
15653 * sysdeps/generic/math_private.h (default_libc_feholdsetround_ctx):
15654 Renamed from libc_feholdsetround_ctx.
15655 (default_libc_feresetround_ctx): Renamed from
15656 libc_feresetround_ctx.
15657 (default_libc_feholdsetround_noex_ctx): Renamed from
15658 libc_feholdsetround_noex_ctx.
15659 (default_libc_feresetround_noex_ctx): Renamed from
15660 libc_feresetround_noex_ctx.
15661 [!HAVE_RM_CTX] (libc_feholdsetround_ctx, libc_feresetround_ctx)
15662 (libc_feholdsetround_noex_ctx, libc_feresetround_noex_ctx): Macros
15663 forwardning to the old implementations under the new names.
15664 * sysdeps/i386/fpu/fenv_private.h [__SSE_MATH__]
15665 (libc_feholdexcept_setround_ctx, libc_fesetenv_ctx)
15666 (libc_feupdateenv_ctx, libc_feholdsetround_ctx)
15667 (libc_feresetround_ctx): Forward to default implements for i386
15668 and MATH_SET_BOTH_ROUNDING_MODES.
15669 * sysdeps/i386/Makefile [$(subdir) == math] (CFLAGS-e_gamma_r.c):
15670 Add -DMATH_SET_BOTH_ROUNDING_MODES.
15671
15672 2018-06-20 Joseph Myers <joseph@codesourcery.com>
15673
15674 * string/tst-cmp.c: Include <libc-diag.h>.
15675 (strncmp_max): Disable -Wstringop-overflow= around call to
15676 strncmp.
15677 (strncasecmp_max): Disable -Wstringop-overflow= around call to
15678 strncasecmp.
15679
15680 * string/bug-strpbrk1.c: Include <libc-diag.h>.
15681 (main): Disable -Wunused-value around call to strpbrk.
15682 * string/bug-strspn1.c: Include <libc-diag.h>.
15683 (main): Disable -Wunused-value around call to strspn.
15684
15685 2018-06-20 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
15686 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
15687
15688 * sysdeps/ieee754/ldbl-128ibm-compat/Versions: New file.
15689 * sysdeps/ieee754/ldbl-128ibm-compat/libm-alias-float128.h: New file.
15690
15691 2018-06-20 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
15692
15693 * math/Makefile (libm-calls): Move s_significandF to...
15694 (gen-libm-calls): ... here.
15695 * math/s_significand_template.c: New file.
15696 * math/s_significand.c: Removed.
15697 * math/s_significandf.c: Removed.
15698 * math/s_significandl.c: Removed.
15699 * sysdeps/ieee754/ldbl-opt/s_significand.c: Removed.
15700 * sysdeps/ieee754/ldbl-opt/s_significandl.c: Removed.
15701
15702 * math/e_exp2_template.c (declare_mgen_finite_alias,
15703 declare_mgen_finite_alias_s, declare_mgen_finite_alias_x): Move to...
15704 * sysdeps/generic/math-type-macros.h (declare_mgen_finite_alias,
15705 declare_mgen_finite_alias_s, declare_mgen_finite_alias_x): ... here.
15706
15707 2018-06-20 Florian Weimer <fweimer@redhat.com>
15708
15709 * libio/libioP.h (IO_validate_vtable): Avoid ptrdiff_t overflow.
15710
15711 2018-06-19 Joseph Myers <joseph@codesourcery.com>
15712
15713 [BZ #23280]
15714 * stdio-common/vfscanf.c (_IO_vfscanf_internal): Pass sign of
15715 floating-point number to strtod functions rather than possibly
15716 negating result of those functions.
15717 * stdio-common/tst-scanf-round.c: New file.
15718 * stdio-common/Makefile (tests): Add tst-scanf-round.
15719 ($(objpfx)tst-scanf-round): Depend on $(libm).
15720
15721 2018-06-18 Samuel Thibault <samuel.thibault@ens-lyon.org>
15722
15723 * sysdeps/mach/hurd/localplt.data: Move to...
15724 * sysdeps/mach/hurd/i386/localplt.data: new file. Add + REL
15725 R_386_GLOB_DAT like on Linux i386.
15726
15727 2018-06-18 Joseph Myers <joseph@codesourcery.com>
15728
15729 * sysdeps/unix/sysv/linux/alpha/bits/shm.h [__USE_MISC]
15730 (SHM_STAT_ANY): New macro.
15731 * sysdeps/unix/sysv/linux/arm/bits/shm.h [__USE_MISC]
15732 (SHM_STAT_ANY): Likewise.
15733 * sysdeps/unix/sysv/linux/bits/shm.h [__USE_MISC]
15734 (SHM_STAT_ANY): Likewise.
15735 * sysdeps/unix/sysv/linux/generic/bits/shm.h [__USE_MISC]
15736 (SHM_STAT_ANY): Likewise.
15737 * sysdeps/unix/sysv/linux/hppa/bits/shm.h [__USE_MISC]
15738 (SHM_STAT_ANY): Likewise.
15739 * sysdeps/unix/sysv/linux/ia64/bits/shm.h [__USE_MISC]
15740 (SHM_STAT_ANY): Likewise.
15741 * sysdeps/unix/sysv/linux/mips/bits/shm.h [__USE_MISC]
15742 (SHM_STAT_ANY): Likewise.
15743 * sysdeps/unix/sysv/linux/powerpc/bits/shm.h [__USE_MISC]
15744 (SHM_STAT_ANY): Likewise.
15745 * sysdeps/unix/sysv/linux/s390/bits/shm.h [__USE_MISC]
15746 (SHM_STAT_ANY): Likewise.
15747 * sysdeps/unix/sysv/linux/sh/bits/shm.h [__USE_MISC]
15748 (SHM_STAT_ANY): Likewise.
15749 * sysdeps/unix/sysv/linux/sparc/bits/shm.h [__USE_MISC]
15750 (SHM_STAT_ANY): Likewise.
15751 * sysdeps/unix/sysv/linux/x86/bits/shm.h [__USE_MISC]
15752 (SHM_STAT_ANY): Likewise.
15753
15754 * sysdeps/unix/sysv/linux/alpha/bits/sem.h [__USE_MISC]
15755 (SEM_STAT_ANY): New macro.
15756 * sysdeps/unix/sysv/linux/bits/sem.h [__USE_MISC]
15757 (SEM_STAT_ANY): Likewise.
15758 * sysdeps/unix/sysv/linux/generic/bits/sem.h [__USE_MISC]
15759 (SEM_STAT_ANY): Likewise.
15760 * sysdeps/unix/sysv/linux/hppa/bits/sem.h [__USE_MISC]
15761 (SEM_STAT_ANY): Likewise.
15762 * sysdeps/unix/sysv/linux/ia64/bits/sem.h [__USE_MISC]
15763 (SEM_STAT_ANY): Likewise.
15764 * sysdeps/unix/sysv/linux/mips/bits/sem.h [__USE_MISC]
15765 (SEM_STAT_ANY): Likewise.
15766 * sysdeps/unix/sysv/linux/powerpc/bits/sem.h [__USE_MISC]
15767 (SEM_STAT_ANY): Likewise.
15768 * sysdeps/unix/sysv/linux/s390/bits/sem.h [__USE_MISC]
15769 (SEM_STAT_ANY): Likewise.
15770 * sysdeps/unix/sysv/linux/sparc/bits/sem.h [__USE_MISC]
15771 (SEM_STAT_ANY): Likewise.
15772 * sysdeps/unix/sysv/linux/x86/bits/sem.h [__USE_MISC]
15773 (SEM_STAT_ANY): Likewise.
15774
15775 * sysdeps/unix/sysv/linux/alpha/bits/msq.h [__USE_MISC]
15776 (MSG_STAT_ANY): New macro.
15777 * sysdeps/unix/sysv/linux/bits/msq.h [__USE_MISC]
15778 (MSG_STAT_ANY): Likewise.
15779 * sysdeps/unix/sysv/linux/generic/bits/msq.h [__USE_MISC]
15780 (MSG_STAT_ANY): Likewise.
15781 * sysdeps/unix/sysv/linux/hppa/bits/msq.h [__USE_MISC]
15782 (MSG_STAT_ANY): Likewise.
15783 * sysdeps/unix/sysv/linux/ia64/bits/msq.h [__USE_MISC]
15784 (MSG_STAT_ANY): Likewise.
15785 * sysdeps/unix/sysv/linux/mips/bits/msq.h [__USE_MISC]
15786 (MSG_STAT_ANY): Likewise.
15787 * sysdeps/unix/sysv/linux/powerpc/bits/msq.h [__USE_MISC]
15788 (MSG_STAT_ANY): Likewise.
15789 * sysdeps/unix/sysv/linux/s390/bits/msq.h [__USE_MISC]
15790 (MSG_STAT_ANY): Likewise.
15791 * sysdeps/unix/sysv/linux/sparc/bits/msq.h [__USE_MISC]
15792 (MSG_STAT_ANY): Likewise.
15793 * sysdeps/unix/sysv/linux/x86/bits/msq.h [__USE_MISC]
15794 (MSG_STAT_ANY): Likewise.
15795
15796 * sysdeps/unix/sysv/linux/hppa/bits/mman.h [__USE_MISC]
15797 (MAP_TYPE): Change value to 0x2b.
15798
15799 2018-06-18 Florian Weimer <fweimer@redhat.com>
15800
15801 [BZ #15722]
15802 * sysdeps/unix/sysv/linux/check_pf.c (__check_pf): Create Netlink
15803 socket with SOCK_CLOEXEC.
15804
15805 2018-06-18 Joseph Myers <joseph@codesourcery.com>
15806
15807 [BZ #23303]
15808 * sysdeps/powerpc/powerpc64/le/Makefile
15809 (CFLAGS-tst-strtod-nan-sign.c): Add -mfloat128.
15810 (CFLAGS-tst-wcstod-nan-sign.c): Likewise.
15811 (gnulib-tests): Also add $(f128-loader-link) for
15812 tst-strtod-nan-sign abd tst-wcstod-nan-sign.
15813
15814 2018-06-15 Samuel Thibault <samuel.thibault@ens-lyon.org>
15815
15816 * include/sys/sendfile.h (__sendfile64): Declare hidden prototype.
15817 * sysdeps/mach/hurd/sendfile.c (sendfile): Call __sendfile64 instead
15818 of sendfile.
15819 * sysdeps/mach/hurd/sendfile64.c (sendfile64): Rename to __sendfile64.
15820 (sendfile64): New strong alias.
15821 * sysdeps/mach/hurd/lseek.c: Include <errno.h>.
15822 * sysdeps/mach/hurd/lseek.c (__libc_lseek): Check that the value
15823 returned by __lseek64 can fit off_t, return EOVERFLOW otherwise.
15824 * sysdeps/htl/pthreadP.h (___pthread_get_cleanup_stack): Add hidden
15825 attribute.
15826 * htl/pt-join.c (__pthread_get_cleanup_stack): Define to
15827 ___pthread_get_cleanup_stack.
15828 * sysdeps/mach/hurd/localplt.data (ld.so): Make ref to __open optional.
15829 * sysdeps/mach/include/mach-shortcuts-hidden.h: New file.
15830 * mach/shortcut.awk: Make syscall stubs include
15831 <mach-shortcuts-hidden.h> and add hidden definition.
15832 * sysdeps/mach/include/mach.h: Include <mach-shortcuts-hidden.h>.
15833 (__mach_msg): Add hidden prototype.
15834 * mach/msg.c: Include <mach.h>.
15835 (__mach_msg): Add hidden definition.
15836 * mach/Makefile ($(mach-syscalls:%=$(objpfx))): Add hidden definition.
15837 * sysdeps/mach/include/mach/mach_traps.h (__mach_reply_port,
15838 __mach_thread_self, __mach_task_self, __mach_host_self, __swtch,
15839 __swtch_pri, __thread_switch, __evc_wait): Add hidden prototypes.
15840 * sysdeps/mach/hurd/localplt.data (siglongjmp, longjmp,
15841 __libc_lseek64, _IO_funlockfile): Whitelist PLT references.
15842 * sysdeps/hurd/include/hurd/signal.h (_hurd_self_sigstate): Add hidden
15843 prototype and definition.
15844 * sysdeps/mach/hurd/i386/____longjmp_chk.S (____longjmp_chk): Use
15845 hidden target for _hurd_self_sigstate.
15846
15847 2018-06-15 Joseph Myers <joseph@codesourcery.com>
15848
15849 [BZ #23007]
15850 * stdlib/tst-strtod-nan-sign-main.c: New file.
15851 * stdlib/tst-strtod-nan-sign.c: Likewise.
15852 * wcsmbs/tst-wcstod-nan-sign.c: Likewise.
15853 * stdlib/Makefile (tests): Add tst-strtod-nan-sign.
15854 ($(objpfx)tst-strtod-nan-sign): Depend on $(libm).
15855 * wcsmbs/Makefile (tests) Add tst-wcstod-nan-sign.
15856 ($(objpfx)tst-wcstod-nan-sign): Depend on $(libm).
15857
15858 2018-06-15 Herman ten Brugge <hermantenbrugge@home.nl>
15859
15860 [BZ #23007]
15861 * stdlib/strtod_l.c (____STRTOF_INTERNAL): Return NaN of
15862 appropriate sign.
15863
15864 2018-06-14 Florian Weimer <fweimer@redhat.com>
15865
15866 [BZ #23290]
15867 * localedata/charmaps/IBM273: Map codepoint 0xbc to U+00AF, so
15868 that the result stays within the ISO-8859-1 range.
15869 * iconvdata/ibm273.c (HAS_HOLES): Define as 0 because all 256
15870 characters are defined in IBM273.
15871
15872 2018-06-14 Samuel Thibault <samuel.thibault@ens-lyon.org>
15873
15874 * sysdeps/mach/include/mach/mach_traps.h (__mach_thread_self,
15875 __mach_task_self): Remove attribute_hidden.
15876
15877 2018-06-14 Joseph Myers <joseph@codesourcery.com>
15878
15879 * string/tester.c (test_strncat) [__GNUC_PREREQ (7, 0)]: Also
15880 ignore -Wrestrict for one test.
15881
15882 2018-06-14 Steve Ellcey <sellcey@caviumnetworks.com>
15883 Szabolcs Nagy <szabolcs.nagy@arm.com>
15884
15885 * sysdeps/unix/sysv/linux/aarch64/gettimeofday.c: New file.
15886
15887 2018-06-14 Florian Weimer <fweimer@redhat.com>
15888
15889 * scripts/update-abilist.sh: Accept empty list of files to patch.
15890
15891 2018-06-13 Samuel Thibault <samuel.thibault@ens-lyon.org>
15892
15893 * sysdeps/mach/hurd/i386/Makefile (test-xfail-check-abi-libhurduser,
15894 test-xfail-check-abi-libmachuser): Add.
15895 * sysdeps/mach/hurd/localplt.data (ld.so): Add __open64, rename
15896 __libc_read and __libc_write to __read and __write.
15897 * sysdeps/hurd/include/hurd/port.h: New file.
15898 * mach/mach/mach_traps.h (__mach_reply_port, __mach_thread_self,
15899 __mach_task_self, __mach_host_self, __swtch, __swtch_pri,
15900 __thread_switch, __evc_wait): Move declarations to...
15901 * sysdeps/mach/include/mach/mach_traps.h: ... new file, and add
15902 attribute_hidden.
15903 * sysdeps/mach/hurd/i386/____longjmp_chk.S (____longjmp_chk): Do not
15904 use PLT to call _hurd_self_sigstate.
15905
15906 2018-06-13 Joseph Myers <joseph@codesourcery.com>
15907
15908 [BZ #23279]
15909 * stdlib/strtod_l.c (round_and_return): Handle an exponent of
15910 MAX_EXP as overflowing.
15911 * stdlib/gen-tst-strtod-round.c (string_to_fp): Clear MPFR
15912 overflow flag.
15913 (round_str): Output also whether result overflows in each rounding
15914 mode.
15915 * stdlib/tst-strtod-round-data: Add more tests.
15916 * stdlib/tst-strtod-round-data.h: Regenerated.
15917 * stdlib/tst-strtod-round-skeleton.c (_XNTRY): Update comment.
15918 (TEST): Handle extra arguments for overflow flags.
15919 (struct test_overflow): New type.
15920 [!FE_OVERFLOW] (FE_OVERFLOW): Define to 0.
15921 (GEN_ONE_TEST): Clear all exceptions. Test overflow flag.
15922 (test_in_one_mode): Take argument with overflow information.
15923 (do_test): Update calls to test_in_one_mode.
15924
15925 2018-06-12 Carlos O'Donell <carlos@redhat.com>
15926
15927 * elf/dl-load (_dl_dst_substitute): Correct comment.
15928 (_dl_dst_count): Likewise.
15929
15930 * nptl/pthread_mutex_timedlock.c (__pthread_mutex_timedlock): Call
15931 lll_futex_timed_wait.
15932
15933 2018-06-12 Joseph Myers <joseph@codesourcery.com>
15934
15935 [BZ #23277]
15936 * math/bits/mathcalls.h [__USE_ISOC99] (nan): Do not use __const__
15937 attribute.
15938 * math/test-nan-const.c: New file.
15939 * math/Makefile (tests): Add test-nan-const.
15940 (CFLAGS-test-nan-const.c): New variable.
15941
15942 2018-06-12 H.J. Lu <hongjiu.lu@intel.com>
15943
15944 * benchtests/scripts/compare_strings.py (process_results): Add
15945 funcs argument. Compare only functions which are selected.
15946 (main): Check if base function is among selected functions.
15947 Pass selected functions to process_results.
15948 (__main__): Add -f/--functions argument.
15949
15950 2018-06-12 Minfeng Kang <minfeng.kang@hxt-semitech.com>
15951 Hongbo Zhang <hongbo.zhang@linaro.org>
15952
15953 * sysdeps/aarch64/multiarch/memcpy.c (libc_ifunc): reuse
15954 __memcpy_falkor for phecda core.
15955 * sysdeps/aarch64/multiarch/memmove.c (libc_ifunc): reuse
15956 __memmove_falkor for phecda core.
15957 * sysdeps/aarch64/multiarch/memset.c (libc_ifunc): reuse
15958 __memset_falkor for phecda core.
15959 * sysdeps/unix/sysv/linux/aarch64/cpu-features.c: add MIDR entry
15960 for phecda core.
15961 * sysdeps/unix/sysv/linux/aarch64/cpu-features.h (IS_PHECDA): add
15962 macro to identify phecda core.
15963
15964 2018-06-12 Carlos O'Donell <carlos@redhat.com>
15965 Andreas Schwab <schwab@suse.de>
15966 Dmitry V. Levin <ldv@altlinux.org>
15967 Florian Weimer <fweimer@redhat.com>
15968
15969 [BZ #23102]
15970 [BZ #21942]
15971 [BZ #18018]
15972 [BZ #23259]
15973 CVE-2011-0536
15974 * elf/dl-dst.h: Remove DL_DST_COUNT.
15975 * elf/dl-deps.c (expand_dst): Call _dl_dst_count.
15976 * elf/dl-load.c (is_trusted_path_normalize): Don't handle colons.
15977 (is_dst): Comment. Support ELF gABI.
15978 (_dl_dst_count): Comment. Simplify and count DSTs.
15979 (_dl_dst_substitute): Comment. Support __libc_enable_secure handling.
15980 (expand_dybamic_string_token): Comment. Call _dl_dst_count. Rename
15981 locals.
15982
15983 2018-06-12 Zack Weinberg <zackw@panix.com>
15984
15985 * elf/dl-load.c, elf/dl-misc.c, elf/dl-profile.c, elf/rtld.c
15986 * sysdeps/unix/sysv/linux/dl-sysdep.c
15987 Include not-cancel.h. Use __close_nocancel instead of __close,
15988 __open64_nocancel instead of __open, __read_nocancel instead of
15989 __libc_read, and __write_nocancel instead of __libc_write.
15990
15991 * csu/check_fds.c (check_one_fd)
15992 * sysdeps/posix/fdopendir.c (__fdopendir)
15993 * sysdeps/posix/opendir.c (__alloc_dir): Use __fcntl_nocancel
15994 instead of __fcntl and/or __libc_fcntl.
15995
15996 * sysdeps/unix/sysv/linux/pthread_setname.c (pthread_setname_np)
15997 * sysdeps/unix/sysv/linux/pthread_getname.c (pthread_getname_np)
15998 * sysdeps/unix/sysv/linux/i386/smp.h (is_smp_system):
15999 Use __open64_nocancel instead of __open_nocancel.
16000
16001 * sysdeps/unix/sysv/linux/not-cancel.h: Move all of the
16002 hidden_proto declarations to the end and issue them if either
16003 IS_IN(libc) or IS_IN(rtld).
16004 * sysdeps/unix/sysv/linux/Makefile [subdir=io] (sysdep_routines):
16005 Add close_nocancel, fcntl_nocancel, nanosleep_nocancel,
16006 open_nocancel, open64_nocancel, openat_nocancel, pause_nocancel,
16007 read_nocancel, waitpid_nocancel, write_nocancel.
16008
16009 * io/Versions [GLIBC_PRIVATE]: Add __libc_fcntl,
16010 __fcntl_nocancel, __open64_nocancel, __write_nocancel.
16011 * posix/Versions: Add __nanosleep_nocancel, __pause_nocancel.
16012
16013 * nptl/pt-fcntl.c: New file.
16014 * nptl/Makefile (pthread-compat-wrappers): Remove fcntl.
16015 (libpthread-routines): Add pt-fcntl.
16016 * include/fcntl.h (__fcntl_nocancel_adjusted): New function.
16017 (__libc_fcntl): Remove attribute_hidden.
16018 * sysdeps/unix/sysv/linux/fcntl.c (__libc_fcntl): Call
16019 __fcntl_nocancel_adjusted, not fcntl_common.
16020 (__fcntl_nocancel): Move to new file fcntl_nocancel.c.
16021 (fcntl_common): Rename to __fcntl_nocancel_adjusted; also move
16022 to fcntl_nocancel.c.
16023 * sysdeps/unix/sysv/linux/fcntl_nocancel.c: New file.
16024 * sysdeps/unix/sysv/linux/powerpc/powerpc64/fcntl.c: Remove file.
16025 * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h:
16026 Define FCNTL_ADJUST_CMD here, as a self-contained macro.
16027
16028 * sysdeps/unix/sysv/linux/close.c: Move __close_nocancel to...
16029 * sysdeps/unix/sysv/linux/close_nocancel.c: ...this new file.
16030 * sysdeps/unix/sysv/linux/nanosleep.c: Move __nanosleep_nocancel to...
16031 * sysdeps/unix/sysv/linux/nanosleep_nocancel.c: ...this new file.
16032 * sysdeps/unix/sysv/linux/open.c: Move __open_nocancel to...
16033 * sysdeps/unix/sysv/linux/open_nocancel.c: ...this new file.
16034 * sysdeps/unix/sysv/linux/open64.c: Move __open64_nocancel to...
16035 * sysdeps/unix/sysv/linux/open64_nocancel.c: ...this new file.
16036 * sysdeps/unix/sysv/linux/openat.c: Move __openat_nocancel to...
16037 * sysdeps/unix/sysv/linux/openat_nocancel.c: ...this new file.
16038 * sysdeps/unix/sysv/linux/openat64.c: Move __openat64_nocancel to...
16039 * sysdeps/unix/sysv/linux/openat64_nocancel.c: ...this new file.
16040 * sysdeps/unix/sysv/linux/pause.c: Move __pause_nocancel to...
16041 * sysdeps/unix/sysv/linux/pause_nocancel.c: ...this new file.
16042 * sysdeps/unix/sysv/linux/read.c: Move __read_nocancel to...
16043 * sysdeps/unix/sysv/linux/read_nocancel.c: ...this new file.
16044 * sysdeps/unix/sysv/linux/waitpid.c: Move __waitpid_nocancel to...
16045 * sysdeps/unix/sysv/linux/waitpid_nocancel.c: ...this new file.
16046 * sysdeps/unix/sysv/linux/write.c: Move __write_nocancel to...
16047 * sysdeps/unix/sysv/linux/write_nocancel.c: ...this new file.
16048
16049 * sysdeps/unix/sysv/linux/nios2/Makefile: Don't override
16050 libpthread-routines.
16051 * sysdeps/unix/sysv/linux/nios2/pt-vfork.S: New file which
16052 defines nothing.
16053
16054 * sysdeps/mach/hurd/dl-sysdep.c: Define __read instead of
16055 __libc_read, and __write instead of __libc_write. Define
16056 __open64 in addition to __open.
16057
16058 2018-06-12 H.J. Lu <hongjiu.lu@intel.com>
16059
16060 [BZ #23250]
16061 [BZ #10686]
16062 * sysdeps/i386/nptl/tls.h (tcbhead_t): Change __private_tm[4]
16063 to _private_tm[3] and add __glibc_reserved2.
16064 Add _Static_assert of offset of __private_ss == 0x30.
16065 * sysdeps/x86_64/nptl/tls.h: Add _Static_assert of offset of
16066 __private_ss == 0x40 for ILP32 and == 0x70 for LP64.
16067
16068 2018-06-12 Florian Weimer <fweimer@redhat.com>
16069
16070 x86: Make strncmp usable from rtld.
16071 * sysdeps/i386/i686/multiarch/strncmp-c.c: Only rename strncmp to
16072 __strncmp_ia32 if in libc (and not in rtld).
16073 * sysdeps/x86_64/multiarch/strncmp-sse2.S: Rename strcmp to
16074 strncmp if not in libc (and not to __strncmp_sse2).
16075
16076 2018-06-12 Rafał Lużyński <digitalfreak@lingonborough.com>
16077
16078 [BZ #23140]
16079 * localedata/locales/gd_GB (mon): Rename to...
16080 (alt_mon): This.
16081 (mon): Import from CLDR (genitive case).
16082 * localedata/locales/hsb_DE (mon): Rename to...
16083 (alt_mon): This.
16084 (mon): Import from CLDR (genitive case).
16085 * localedata/locales/wa_BE (mon): Rename to...
16086 (alt_mon): This.
16087 (mon): Add, fill with the proper genitive forms, but CLDR data
16088 is incomplete; completed according to the comments in this file.
16089 (d_t_fmt): Do not use "di" before the month name, no longer needed.
16090
16091 * localedata/locales/wa_BE (country_name): Reword
16092 "Beljike" -> "Beldjike".
16093
16094 2018-06-11 Joseph Myers <joseph@codesourcery.com>
16095
16096 [BZ #23272]
16097 * sysdeps/ieee754/ldbl-96/s_fma.c (__fma): Start by handling all
16098 cases of non-finite arguments.
16099 * math/libm-test-fma.inc (fma_test_data): Add more tests.
16100
16101 2018-06-10 John David Anglin <danglin@gcc.gnu.org>
16102
16103 [BZ #23174]
16104 * sysdeps/unix/sysv/linux/hppa/Makefile: xfail check-execstack.
16105
16106 2018-06-08 Adhemerval Zanella <adhemerval.zanella@linaro.org>
16107
16108 [BZ #23264]
16109 * include/unistd.h (__execvpex): New prototype.
16110 * posix/Makefile (tests): Add tst-spawn4.
16111 (tests-internal): Add tst-spawn4-compat.
16112 * posix/execvpe.c (__execvpe_common, __execvpex): New functions.
16113 * posix/tst-spawn4-compat.c: New file.
16114 * posix/tst-spawn4.c: Likewise.
16115 * sysdeps/unix/sysv/linux/spawni.c (__spawni): Do not interpret invalid
16116 binaries as shell scripts.
16117 * sysdeps/posix/spawni.c (__spawni): Likewise.
16118
16119 2018-06-08 H.J. Lu <hongjiu.lu@intel.com>
16120
16121 [BZ #23145]
16122 * elf/Makefile (tests-special): Add $(objpfx)check-initfini.out.
16123 ($(all-built-dso:=.dynsym): New target.
16124 (common-generated): Add $(all-built-dso:$(common-objpfx)%=%.dynsym).
16125 ($(objpfx)check-initfini.out): New target.
16126 (generated): Add check-initfini.out.
16127 * scripts/check-initfini.awk: New file.
16128 * sysdeps/aarch64/crti.S (_init): Mark as hidden.
16129 (_fini): Likewise.
16130 * sysdeps/alpha/crti.S (_init): Mark as hidden.
16131 (_fini): Likewise.
16132 * sysdeps/arm/crti.S (_init): Mark as hidden.
16133 (_fini): Likewise.
16134 * sysdeps/hppa/crti.S (_init): Mark as hidden.
16135 (_fini): Likewise.
16136 * sysdeps/i386/crti.S (_init): Mark as hidden.
16137 (_fini): Likewise.
16138 * sysdeps/ia64/crti.S (_init): Mark as hidden.
16139 (_fini): Likewise.
16140 * sysdeps/m68k/crti.S (_init): Mark as hidden.
16141 (_fini): Likewise.
16142 * sysdeps/microblaze/crti.S (_init): Mark as hidden.
16143 (_fini): Likewise.
16144 * sysdeps/mips/mips32/crti.S (_init): Mark as hidden.
16145 (_fini): Likewise.
16146 * sysdeps/mips/mips64/n32/crti.S (_init): Mark as hidden.
16147 (_fini): Likewise.
16148 * sysdeps/mips/mips64/n64/crti.S (_init): Mark as hidden.
16149 (_fini): Likewise.
16150 * sysdeps/nios2/crti.S (_init): Mark as hidden.
16151 (_fini): Likewise.
16152 * sysdeps/powerpc/powerpc32/crti.S (_init): Mark as hidden.
16153 (_fini): Likewise.
16154 * sysdeps/powerpc/powerpc64/crti.S (_init): Mark as hidden.
16155 (_fini): Likewise.
16156 * sysdeps/s390/s390-32/crti.S (_init): Mark as hidden.
16157 (_fini): Likewise.
16158 * sysdeps/s390/s390-64/crti.S (_init): Mark as hidden.
16159 (_fini): Likewise.
16160 * sysdeps/sh/crti.S (_init): Mark as hidden.
16161 (_fini): Likewise.
16162 * sysdeps/sparc/crti.S (_init): Mark as hidden.
16163 (_fini): Likewise.
16164 * sysdeps/x86_64/crti.S (_init): Mark as hidden.
16165 (_fini): Likewise.
16166
16167 2018-06-06 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
16168
16169 * sysdeps/powerpc/powerpc64/le/fpu/e_sqrtf128.c
16170 [__HAVE_FLOAT128_UNLIKE_LDBL] (TFtype, TF): Restrict TFtype
16171 and TF redirection to KFtype and KF only when the default
16172 long double type is not the IEEE 128-bit floating point type.
16173
16174 2018-06-05 Joseph Myers <joseph@codesourcery.com>
16175
16176 * sysdeps/unix/sysv/linux/aarch64/bits/hwcap.h (HWCAP_DIT): New
16177 macro.
16178 (HWCAP_USCAT): Likewise.
16179 (HWCAP_ILRCPC): Likewise.
16180 (HWCAP_FLAGM): Likewise.
16181 * sysdeps/unix/sysv/linux/aarch64/dl-procinfo.c (_DL_HWCAP_COUNT):
16182 Increase to 28.
16183 (_dl_aarch64_cap_flags): Add new flag names.
16184
16185 * sysdeps/unix/sysv/linux/aarch64/bits/mman.h [__USE_MISC]
16186 (MAP_FIXED_NOREPLACE): New macro.
16187 * sysdeps/unix/sysv/linux/alpha/bits/mman.h [__USE_MISC]
16188 (MAP_FIXED_NOREPLACE): Likewise.
16189 * sysdeps/unix/sysv/linux/arm/bits/mman.h [__USE_MISC]
16190 (MAP_FIXED_NOREPLACE): Likewise.
16191 * sysdeps/unix/sysv/linux/hppa/bits/mman.h [__USE_MISC]
16192 (MAP_FIXED_NOREPLACE): Likewise.
16193 * sysdeps/unix/sysv/linux/ia64/bits/mman.h [__USE_MISC]
16194 (MAP_FIXED_NOREPLACE): Likewise.
16195 * sysdeps/unix/sysv/linux/m68k/bits/mman.h [__USE_MISC]
16196 (MAP_FIXED_NOREPLACE): Likewise.
16197 * sysdeps/unix/sysv/linux/microblaze/bits/mman.h [__USE_MISC]
16198 (MAP_FIXED_NOREPLACE): Likewise.
16199 * sysdeps/unix/sysv/linux/mips/bits/mman.h [__USE_MISC]
16200 (MAP_FIXED_NOREPLACE): Likewise.
16201 * sysdeps/unix/sysv/linux/nios2/bits/mman.h [__USE_MISC]
16202 (MAP_FIXED_NOREPLACE): Likewise.
16203 * sysdeps/unix/sysv/linux/powerpc/bits/mman.h [__USE_MISC]
16204 (MAP_FIXED_NOREPLACE): Likewise.
16205 * sysdeps/unix/sysv/linux/riscv/bits/mman.h [__USE_MISC]
16206 (MAP_FIXED_NOREPLACE): Likewise.
16207 * sysdeps/unix/sysv/linux/s390/bits/mman.h [__USE_MISC]
16208 (MAP_FIXED_NOREPLACE): Likewise.
16209 * sysdeps/unix/sysv/linux/sh/bits/mman.h [__USE_MISC]
16210 (MAP_FIXED_NOREPLACE): Likewise.
16211 * sysdeps/unix/sysv/linux/sparc/bits/mman.h [__USE_MISC]
16212 (MAP_FIXED_NOREPLACE): Likewise.
16213 * sysdeps/unix/sysv/linux/x86/bits/mman.h [__USE_MISC]
16214 (MAP_FIXED_NOREPLACE): Likewise.
16215
16216 * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
16217 version to 4.17.
16218
16219 2018-06-04 Joseph Myers <joseph@codesourcery.com>
16220
16221 * scripts/build-many-glibcs.py (Context.checkout): Default Linux
16222 version to 4.17
16223
16224 2018-06-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
16225
16226 * bits/shm.h (struct shmid_ds): Make shm_segsz field size_t instead of
16227 int.
16228 * sysdeps/gnu/bits/shm.h (struct shmid_ds): Likewise.
16229
16230 2018-06-01 Leonardo Sandoval <leonardo.sandoval.gonzalez@intel.com>
16231
16232 * benchtests/scripts/compare_string.py: (process_results) Catch
16233 exception in non-existent base_func and catch exception in
16234 non-existent attribute.
16235 (parse_file) Catch exception if input file does not exist.
16236
16237 2018-06-01 Leonardo Sandoval <leonardo.sandoval.gonzalez@intel.com>
16238
16239 * benchtests/scripts/compare_string.py: Add --no-diff and --no-header
16240 options to avoid diff calculation and omit header, respectively.
16241 (main): process --no-diff and --no-header
16242
16243 2018-06-01 Leonardo Sandoval <leonardo.sandoval.gonzalez@intel.com>
16244 H.J. Lu <hongjiu.lu@intel.com>
16245
16246 * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
16247 strcmp-avx2, strncmp-avx2, wcscmp-avx2, wcscmp-sse2, wcsncmp-avx2 and
16248 wcsncmp-sse2.
16249 * sysdeps/x86_64/multiarch/ifunc-impl-list.c
16250 (__libc_ifunc_impl_list): Add tests for __strcmp_avx2,
16251 __strncmp_avx2, __wcscmp_avx2, __wcsncmp_avx2, __wcscmp_sse2
16252 and __wcsncmp_sse2.
16253 * sysdeps/x86_64/multiarch/strcmp.c (OPTIMIZE (avx2)):
16254 (IFUNC_SELECTOR): Return OPTIMIZE (avx2) on AVX 2 machines if
16255 AVX unaligned load is fast and vzeroupper is preferred.
16256 * sysdeps/x86_64/multiarch/strncmp.c: Likewise.
16257 * sysdeps/x86_64/multiarch/strcmp-avx2.S: New file.
16258 * sysdeps/x86_64/multiarch/strncmp-avx2.S: Likewise.
16259 * sysdeps/x86_64/multiarch/wcscmp-avx2.S: Likewise.
16260 * sysdeps/x86_64/multiarch/wcscmp-sse2.S: Likewise.
16261 * sysdeps/x86_64/multiarch/wcscmp.c: Likewise.
16262 * sysdeps/x86_64/multiarch/wcsncmp-avx2.S: Likewise.
16263 * sysdeps/x86_64/multiarch/wcsncmp-sse2.c: Likewise.
16264 * sysdeps/x86_64/multiarch/wcsncmp.c: Likewise.
16265 * sysdeps/x86_64/wcscmp.S (__wcscmp): Add alias only if __wcscmp
16266 is undefined.
16267
16268 2018-06-01 Florian Weimer <fweimer@redhat.com>
16269
16270 * sysdeps/i386/fpu/libm-test-ulps: Update with results from
16271 configuring with --disable-multi-arch, building with
16272 “-march=x86-64 -mtune=generic -mfpmath=sse” and running on a
16273 Haswell-era CPU.
16274
16275 2018-06-01 Florian Weimer <fweimer@redhat.com>
16276
16277 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Update with
16278 results from building with “-march=x86-64 -mtune=generic
16279 -mfpmath=sse” and running on a Haswell-era CPU.
16280
16281 2018-06-01 Joseph Myers <joseph@codesourcery.com>
16282
16283 [BZ #18473]
16284 * soft-fp/sqrttf2.c: Remove file.
16285 * soft-fp/sqrtdf2.c: Move to ....
16286 * sysdeps/powerpc/nofpu/sqrtdf2.c: ... here. Include
16287 <shlib-compat.h>.
16288 (__sqrtdf2): Make conditional on
16289 [SHLIB_COMPAT (libc, GLIBC_2_3_2, GLIBC_2_28)]. Define as compat
16290 symbol.
16291 * soft-fp/sqrtsf2.c: Move to ....
16292 * sysdeps/powerpc/nofpu/sqrtsf2.c: ... here. Include
16293 <shlib-compat.h>.
16294 (__sqrtsf2): Make conditional on
16295 [SHLIB_COMPAT (libc, GLIBC_2_3_2, GLIBC_2_28)]. Define as compat
16296 symbol.
16297 * soft-fp/Makefile (gcc-single-routines): Remove sqrtsf2.
16298 (gcc-double-routines): Remove sqrtdf2.
16299 (gcc-quad-routines): Remove sqrttf2.
16300 * sysdeps/nios2/Makefile [$(subdir) = soft-fp] (sysdep_routines):
16301 Do not filter out sqrtsf2 and sqrtdf2.
16302 * sysdeps/powerpc/nofpu/Makefile [$(subdir) = soft-fp]
16303 (sysdep_routines): Add sqrtsf2 and sqrtdf2.
16304
16305 2018-06-01 Florian Weimer <fweimer@redhat.com>
16306
16307 * sysdeps/generic/libcidn.abilist: Remove file.
16308
16309 2018-06-01 Florian Weimer <fweimer@redhat.com>
16310
16311 [BZ #23236]
16312 * libio/strfile.h (struct _IO_str_fields): Rename members to
16313 discourage their use and add comment.
16314 (_IO_STR_DYNAMIC): Remove unused macro.
16315 * libio/strops.c (_IO_str_init_static_internal): Do not use
16316 callback pointers. Call malloc and free.
16317 (_IO_str_overflow): Do not use callback pointers. Call malloc
16318 and free.
16319 (enlarge_userbuf): Likewise.
16320 (_IO_str_finish): Call free.
16321 * libio/wstrops.c (_IO_wstr_init_static): Initialize
16322 _allocate_buffer_unused.
16323 (_IO_wstr_overflow): Do not use callback pointers. Call malloc
16324 and free.
16325 (enlarge_userbuf): Likewise.
16326 (_IO_wstr_finish): Call free.
16327 * debug/vasprintf_chk.c (__vasprintf_chk): Initialize
16328 _allocate_buffer_unused, _free_buffer_unused.
16329 * libio/memstream.c (__open_memstream): Likewise.
16330 * libio/vasprintf.c (_IO_vasprintf): Likewise.
16331 * libio/wmemstream.c (open_wmemstream): Likewise.
16332
16333 2018-05-30 Paul Pluzhnikov <ppluzhnikov@google.com>
16334
16335 * sysdeps/x86_64/fpu/libm-test-ulps (log_vlen8_avx2): Update for
16336 AMD Ryzen 7 1800X.
16337
16338 2018-05-30 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
16339
16340 * sysdeps/powerpc/powerpc64/le/fpu/multiarch/Makefile: New file to
16341 add w_sqrtf128-power9 and w_sqrtf128-ppc64le to libm-sysdep_routines.
16342 * sysdeps/powerpc/powerpc64/le/fpu/multiarch/w_sqrtf128-power9.c:
16343 New file.
16344 * sysdeps/powerpc/powerpc64/le/fpu/multiarch/w_sqrtf128-ppc64le.c:
16345 Likewise.
16346 * sysdeps/powerpc/powerpc64/le/fpu/multiarch/w_sqrtf128.c: Likewise.
16347
16348 2018-05-29 Florian Weimer <fweimer@redhat.com>
16349
16350 * support/Makefile (libsupport-routines): Add
16351 xpthread_barrierattr_destroy, xpthread_barrierattr_init,
16352 xpthread_barrierattr_setpshared.
16353 * support/xpthread_barrierattr_destroy.c: New file.
16354 * support/xpthread_barrierattr_init.c: Likewise.
16355 * support/xpthread_barrierattr_setpshared.c: Likewise.
16356
16357 2018-05-29 H.J. Lu <hongjiu.lu@intel.com>
16358
16359 [BZ #23206]
16360 * elf/dl-reloc-static-pie.c (_dl_relocate_static_pie): Initialize
16361 _r_debug and update DT_DEBUG for debugger.
16362
16363 2018-05-29 Florian Weimer <fweimer@redhat.com>
16364
16365 * stdlib/Makefile (tst-strtod1i.out): Depend on generated locales.
16366 (tst-strtod5i.out): Likewise.
16367
16368 2018-05-25 Joseph Myers <joseph@codesourcery.com>
16369
16370 * sysdeps/sparc/sparc64/Implies: Remove sparc/sparc64/soft-fp.
16371 * sysdeps/sparc/sparc64/Makefile [$(subdir) = soft-fp]
16372 (sparc64-quad-routines): New variable. Moved from ....
16373 [$(subdir) = soft-fp] (sysdep_routines): Add
16374 $(sparc64-quad-routines). Moved from ....
16375 [$(subdir) = math] (CPPFLAGS): Add -I../soft-fp/. Moved from ....
16376 * sysdeps/sparc/sparc64/soft-fp/Makefile: ... here. Remove file.
16377 * sysdeps/sparc/sparc64/Versions (libc): Add GLIBC_2.2 symbols
16378 moved from ....
16379 * sysdeps/sparc/sparc64/soft-fp/Versions: ... here. Remove file.
16380 * sysdeps/sparc/sparc64/soft-fp/e_ilogbl.c: Remove file.
16381 * sysdeps/sparc/sparc64/soft-fp/qp_add.c: Move to ....
16382 * sysdeps/sparc/sparc64/qp_add.c: ... here.
16383 * sysdeps/sparc/sparc64/soft-fp/qp_cmp.c: Move to ....
16384 * sysdeps/sparc/sparc64/qp_cmp.c: ... here.
16385 * sysdeps/sparc/sparc64/soft-fp/qp_cmpe.c: Move to ....
16386 * sysdeps/sparc/sparc64/qp_cmpe.c: ... here.
16387 * sysdeps/sparc/sparc64/soft-fp/qp_div.c: Move to ....
16388 * sysdeps/sparc/sparc64/qp_div.c: ... here.
16389 * sysdeps/sparc/sparc64/soft-fp/qp_dtoq.c: Move to ....
16390 * sysdeps/sparc/sparc64/qp_dtoq.c: ... here.
16391 * sysdeps/sparc/sparc64/soft-fp/qp_feq.c: Move to ....
16392 * sysdeps/sparc/sparc64/qp_feq.c: ... here.
16393 * sysdeps/sparc/sparc64/soft-fp/qp_fge.c: Move to ....
16394 * sysdeps/sparc/sparc64/qp_fge.c: ... here.
16395 * sysdeps/sparc/sparc64/soft-fp/qp_fgt.c: Move to ....
16396 * sysdeps/sparc/sparc64/qp_fgt.c: ... here.
16397 * sysdeps/sparc/sparc64/soft-fp/qp_fle.c: Move to ....
16398 * sysdeps/sparc/sparc64/qp_fle.c: ... here.
16399 * sysdeps/sparc/sparc64/soft-fp/qp_flt.c: Move to ....
16400 * sysdeps/sparc/sparc64/qp_flt.c: ... here.
16401 * sysdeps/sparc/sparc64/soft-fp/qp_fne.c: Move to ....
16402 * sysdeps/sparc/sparc64/qp_fne.c: ... here.
16403 * sysdeps/sparc/sparc64/soft-fp/qp_itoq.c: Move to ....
16404 * sysdeps/sparc/sparc64/qp_itoq.c: ... here.
16405 * sysdeps/sparc/sparc64/soft-fp/qp_mul.c: Move to ....
16406 * sysdeps/sparc/sparc64/qp_mul.c: ... here.
16407 * sysdeps/sparc/sparc64/soft-fp/qp_neg.S: Move to ....
16408 * sysdeps/sparc/sparc64/qp_neg.S: ... here.
16409 * sysdeps/sparc/sparc64/soft-fp/qp_qtod.c: Move to ....
16410 * sysdeps/sparc/sparc64/qp_qtod.c: ... here.
16411 * sysdeps/sparc/sparc64/soft-fp/qp_qtoi.c: Move to ....
16412 * sysdeps/sparc/sparc64/qp_qtoi.c: ... here.
16413 * sysdeps/sparc/sparc64/soft-fp/qp_qtos.c: Move to ....
16414 * sysdeps/sparc/sparc64/qp_qtos.c: ... here.
16415 * sysdeps/sparc/sparc64/soft-fp/qp_qtoui.c: Move to ....
16416 * sysdeps/sparc/sparc64/qp_qtoui.c: ... here.
16417 * sysdeps/sparc/sparc64/soft-fp/qp_qtoux.c: Move to ....
16418 * sysdeps/sparc/sparc64/qp_qtoux.c: ... here.
16419 * sysdeps/sparc/sparc64/soft-fp/qp_qtox.c: Move to ....
16420 * sysdeps/sparc/sparc64/qp_qtox.c: ... here.
16421 * sysdeps/sparc/sparc64/soft-fp/qp_sqrt.c: Move to ....
16422 * sysdeps/sparc/sparc64/qp_sqrt.c: ... here.
16423 * sysdeps/sparc/sparc64/soft-fp/qp_stoq.c: Move to ....
16424 * sysdeps/sparc/sparc64/qp_stoq.c: ... here.
16425 * sysdeps/sparc/sparc64/soft-fp/qp_sub.c: Move to ....
16426 * sysdeps/sparc/sparc64/qp_sub.c: ... here.
16427 * sysdeps/sparc/sparc64/soft-fp/qp_uitoq.c: Move to ....
16428 * sysdeps/sparc/sparc64/qp_uitoq.c: ... here.
16429 * sysdeps/sparc/sparc64/soft-fp/qp_util.c: Move to ....
16430 * sysdeps/sparc/sparc64/qp_util.c: ... here.
16431 * sysdeps/sparc/sparc64/soft-fp/qp_uxtoq.c: Move to ....
16432 * sysdeps/sparc/sparc64/qp_uxtoq.c: ... here.
16433 * sysdeps/sparc/sparc64/soft-fp/qp_xtoq.c: Move to ....
16434 * sysdeps/sparc/sparc64/qp_xtoq.c: ... here.
16435 * sysdeps/sparc/sparc64/soft-fp/sfp-machine.h: Move to ....
16436 * sysdeps/sparc/sparc64/sfp-machine.h: ... here.
16437
16438 * sysdeps/sparc/sparc32/Implies: Remove sparc/sparc32/soft-fp.
16439 * sysdeps/sparc/sparc32/Makefile [$(subdir) = soft-fp]
16440 (sparc32-quad-routines): New variable. Moved from ....
16441 [$(subdir) = soft-fp] (sysdep_routines): Add
16442 $(sparc32-quad-routines). Moved from ....
16443 * sysdeps/sparc/sparc32/soft-fp/Makefile: ... here. Remove file.
16444 * sysdeps/sparc/sparc32/Versions (libc): Add GLIBC_2.4 symbols
16445 moved from ....
16446 * sysdeps/sparc/sparc32/soft-fp/Versions: ... here. Remove file.
16447 * sysdeps/sparc/sparc32/soft-fp/q_add.c: Move to ....
16448 * sysdeps/sparc/sparc32/q_add.c: ... here.
16449 * sysdeps/sparc/sparc32/soft-fp/q_cmp.c: Move to ....
16450 * sysdeps/sparc/sparc32/q_cmp.c: ... here.
16451 * sysdeps/sparc/sparc32/soft-fp/q_cmpe.c: Move to ....
16452 * sysdeps/sparc/sparc32/q_cmpe.c: ... here.
16453 * sysdeps/sparc/sparc32/soft-fp/q_div.c: Move to ....
16454 * sysdeps/sparc/sparc32/q_div.c: ... here.
16455 * sysdeps/sparc/sparc32/soft-fp/q_dtoq.c: Move to ....
16456 * sysdeps/sparc/sparc32/q_dtoq.c: ... here.
16457 * sysdeps/sparc/sparc32/soft-fp/q_feq.c: Move to ....
16458 * sysdeps/sparc/sparc32/q_feq.c: ... here.
16459 * sysdeps/sparc/sparc32/soft-fp/q_fge.c: Move to ....
16460 * sysdeps/sparc/sparc32/q_fge.c: ... here.
16461 * sysdeps/sparc/sparc32/soft-fp/q_fgt.c: Move to ....
16462 * sysdeps/sparc/sparc32/q_fgt.c: ... here.
16463 * sysdeps/sparc/sparc32/soft-fp/q_fle.c: Move to ....
16464 * sysdeps/sparc/sparc32/q_fle.c: ... here.
16465 * sysdeps/sparc/sparc32/soft-fp/q_flt.c: Move to ....
16466 * sysdeps/sparc/sparc32/q_flt.c: ... here.
16467 * sysdeps/sparc/sparc32/soft-fp/q_fne.c: Move to ....
16468 * sysdeps/sparc/sparc32/q_fne.c: ... here.
16469 * sysdeps/sparc/sparc32/soft-fp/q_itoq.c: Move to ....
16470 * sysdeps/sparc/sparc32/q_itoq.c: ... here.
16471 * sysdeps/sparc/sparc32/soft-fp/q_lltoq.c: Move to ....
16472 * sysdeps/sparc/sparc32/q_lltoq.c: ... here.
16473 * sysdeps/sparc/sparc32/soft-fp/q_mul.c: Move to ....
16474 * sysdeps/sparc/sparc32/q_mul.c: ... here.
16475 * sysdeps/sparc/sparc32/soft-fp/q_neg.c: Move to ....
16476 * sysdeps/sparc/sparc32/q_neg.c: ... here.
16477 * sysdeps/sparc/sparc32/soft-fp/q_qtod.c: Move to ....
16478 * sysdeps/sparc/sparc32/q_qtod.c: ... here.
16479 * sysdeps/sparc/sparc32/soft-fp/q_qtoi.c: Move to ....
16480 * sysdeps/sparc/sparc32/q_qtoi.c: ... here.
16481 * sysdeps/sparc/sparc32/soft-fp/q_qtoll.c: Move to ....
16482 * sysdeps/sparc/sparc32/q_qtoll.c: ... here.
16483 * sysdeps/sparc/sparc32/soft-fp/q_qtos.c: Move to ....
16484 * sysdeps/sparc/sparc32/q_qtos.c: ... here.
16485 * sysdeps/sparc/sparc32/soft-fp/q_qtou.c: Move to ....
16486 * sysdeps/sparc/sparc32/q_qtou.c: ... here.
16487 * sysdeps/sparc/sparc32/soft-fp/q_qtoull.c: Move to ....
16488 * sysdeps/sparc/sparc32/q_qtoull.c: ... here.
16489 * sysdeps/sparc/sparc32/soft-fp/q_sqrt.c: Move to ....
16490 * sysdeps/sparc/sparc32/q_sqrt.c: ... here.
16491 * sysdeps/sparc/sparc32/soft-fp/q_stoq.c: Move to ....
16492 * sysdeps/sparc/sparc32/q_stoq.c: ... here.
16493 * sysdeps/sparc/sparc32/soft-fp/q_sub.c: Move to ....
16494 * sysdeps/sparc/sparc32/q_sub.c: ... here.
16495 * sysdeps/sparc/sparc32/soft-fp/q_ulltoq.c: Move to ....
16496 * sysdeps/sparc/sparc32/q_ulltoq.c: ... here.
16497 * sysdeps/sparc/sparc32/soft-fp/q_util.c: Move to ....
16498 * sysdeps/sparc/sparc32/q_util.c: ... here.
16499 * sysdeps/sparc/sparc32/soft-fp/q_utoq.c: Move to ....
16500 * sysdeps/sparc/sparc32/q_utoq.c: ... here.
16501 * sysdeps/sparc/sparc32/soft-fp/sfp-machine.h: Move to ....
16502 * sysdeps/sparc/sparc32/sfp-machine.h: ... here.
16503
16504 2018-05-24 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
16505 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
16506
16507 * sysdeps/powerpc/Implies: Removed. Previous contents copied to...
16508 * sysdeps/powerpc/powerpc32/Implies-after: ... here.
16509 * sysdeps/powerpc/powerpc64/be/Implies-after: ... here.
16510 * sysdeps/powerpc/powerpc64/le/Implies-before: ... and here.
16511
16512 2018-05-24 Joseph Myers <joseph@codesourcery.com>
16513
16514 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/Implies: Remove
16515 powerpc/soft-fp.
16516 * sysdeps/unix/sysv/linux/powerpc/powerpc32/e500/nofpu/Implies:
16517 Likewise.
16518 * sysdeps/powerpc/soft-fp/sfp-machine.h: Move to ....
16519 * sysdeps/powerpc/nofpu/sfp-machine.h: ... here.
16520
16521 2018-05-24 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
16522
16523 [BZ #23171]
16524 * math/math.h [C++] (iseqsig): Fix parameter type for the long
16525 double version.
16526
16527 2018-05-23 Joseph Myers <joseph@codesourcery.com>
16528
16529 * sysdeps/sh/Implies: Remove sh/soft-fp.
16530 * sysdeps/sh/soft-fp/sfp-machine.h: Move to ....
16531 * sysdeps/sh/sfp-machine.h: ... here.
16532
16533 2018-05-23 H.J. Lu <hongjiu.lu@intel.com>
16534
16535 * sysdeps/x86_64/multiarch/memmove-vec-unaligned-erms.S
16536 (__mempcpy_erms): Skip zero length.
16537 (__memmove_erms): Likewise.
16538 * sysdeps/x86_64/multiarch/memset-vec-unaligned-erms.S
16539 (__memset_erms): Likewise.
16540
16541 2018-05-23 Joseph Myers <joseph@codesourcery.com>
16542
16543 * sysdeps/alpha/Implies: Remove alpha/soft-fp.
16544 * sysdeps/alpha/Makefile [$(subdir) = soft-fp] (sysdep_routines):
16545 Add functions moved from ....
16546 [$(subdir) = math] (CPPFLAGS): Add -I../soft-fp. Moved from ....
16547 * sysdeps/alpha/soft-fp/Makefile: ... here. Remove file.
16548 * sysdeps/alpha/Versions (libc): Add GLIBC_2.3.4 symbols moved
16549 from ....
16550 * sysdeps/alpha/soft-fp/Versions: ... here. Remove file.
16551 * sysdeps/alpha/soft-fp/e_sqrtl.c: Move to ....
16552 * sysdeps/alpha/e_sqrtl.c: ... here.
16553 * sysdeps/alpha/soft-fp/local-soft-fp.h: Move to ....
16554 * sysdeps/alpha/local-soft-fp.h: ... here.
16555 * sysdeps/alpha/soft-fp/ots_add.c: Move to ....
16556 * sysdeps/alpha/ots_add.c: ... here.
16557 * sysdeps/alpha/soft-fp/ots_cmp.c: Move to ....
16558 * sysdeps/alpha/ots_cmp.c: ... here.
16559 * sysdeps/alpha/soft-fp/ots_cmpe.c: Move to ....
16560 * sysdeps/alpha/ots_cmpe.c: ... here.
16561 * sysdeps/alpha/soft-fp/ots_cvtqux.c: Move to ....
16562 * sysdeps/alpha/ots_cvtqux.c: ... here.
16563 * sysdeps/alpha/soft-fp/ots_cvtqx.c: Move to ....
16564 * sysdeps/alpha/ots_cvtqx.c: ... here.
16565 * sysdeps/alpha/soft-fp/ots_cvttx.c: Move to ....
16566 * sysdeps/alpha/ots_cvttx.c: ... here.
16567 * sysdeps/alpha/soft-fp/ots_cvtxq.c: Move to ....
16568 * sysdeps/alpha/ots_cvtxq.c: ... here.
16569 * sysdeps/alpha/soft-fp/ots_cvtxt.c: Move to ....
16570 * sysdeps/alpha/ots_cvtxt.c: ... here.
16571 * sysdeps/alpha/soft-fp/ots_div.c: Move to ....
16572 * sysdeps/alpha/ots_div.c: ... here.
16573 * sysdeps/alpha/soft-fp/ots_mul.c: Move to ....
16574 * sysdeps/alpha/ots_mul.c: ... here.
16575 * sysdeps/alpha/soft-fp/ots_nintxq.c: Move to ....
16576 * sysdeps/alpha/ots_nintxq.c: ... here.
16577 * sysdeps/alpha/soft-fp/ots_sub.c: Move to ....
16578 * sysdeps/alpha/ots_sub.c: ... here.
16579 * sysdeps/alpha/soft-fp/sfp-machine.h: Move to ....
16580 * sysdeps/alpha/sfp-machine.h: ... here.
16581
16582 2018-05-23 Florian Weimer <fweimer@redhat.com>
16583
16584 [BZ #19728]
16585 [BZ #19729]
16586 [BZ #22247]
16587 CVE-2016-6261
16588 CVE-2016-6263
16589 CVE-2017-14062
16590 Switch to extern IDNA implementation (libidn2).
16591 * libidn: Remove subdirectory.
16592 * LICENSES: Do not mention licensing conditions for the removed
16593 libidn code.
16594 * config.h.in (HAVE_LIBIDN): Remove.
16595 * include/dlfcn.h (__libc_dlopen): Update comment.
16596 * include/idna.h: Remove file.
16597 * inet/Makefile (routines): Add idna.
16598 (tests-static, tests-internal): Add tst-idna_name_classify.
16599 (LOCALES): Generate locales for tests.
16600 (tst-idna_name_classify.out): Depend on generated locales.
16601 * inet/idna_name_classify.c: New file.
16602 * inet/tst-idna_name_classify.c: Likewise.
16603 * inet/net-internal.h (__idna_to_dns_encoding)
16604 (__idna_from_dns_encoding): Declare.
16605 * inet/net-internal.h (enum idna_name_classification): Define.
16606 (__idna_name_classify): Declare.
16607 * inet/Versions (GLIBC_PRIVATE): Add __idna_to_dns_encoding,
16608 __idna_from_dns_encoding.
16609 * inet/getnameinfo.c (DEPRECATED_NI_IDN): Define.
16610 (gni_host_inet_name): Call __idna_from_dns_encoding. Use punycode
16611 name as a fallback in case of encoding errors.
16612 (getnameinfo): Use DEPRECATED_NI_IDN.
16613 * inet/idna.c: New file.
16614 * nscd/gai.c: Do not include <libidn/idn-stub.c>.
16615 * resolv/Makefile (tests): Add tst-resolv-ai_idn,
16616 tst-resolv-ai_idn-latin1, tst-resolv-ai_idn-nolibidn2.
16617 (modules-names): Add tst-no-libidn2.
16618 (extra-test-objs): Add tst-no-libidn2.os.
16619 (LDFLAGS-tst-no-libidn2.so): Set soname.
16620 (LOCALES): Set, and generate locales.
16621 (tst-resolv-ai_idn): Link with -ldl -lresolv -lpthread.
16622 (tst-resolv-ai_idn-latin1): Likewise.
16623 (tst-resolv-ai_idn-nolibidn2): Likewise.
16624 (tst-resolv-ai_idn.out): Depend on locales.
16625 (tst-resolv-ai_idn-latin1.out): Depend on locales.
16626 (tst-resolv-ai_idn-nolibidn2.out): Depend on locales and
16627 tst-no-libidn2.so.
16628 * resolv/netdb.h (AI_IDN_ALLOW_UNASSIGNED)
16629 (AI_IDN_USE_STD3_ASCII_RULES, NI_IDN_ALLOW_UNASSIGNED)
16630 (NI_IDN_USE_STD3_ASCII_RULES): Deprecate.
16631 * resolv/tst-resolv-ai_idn.c: New file.
16632 * resolv/tst-resolv-ai_idn-latin1.c: Likewise.
16633 * resolv/tst-resolv-ai_idn-nolibidn2.c: Likewise.
16634 * resolv/tst-no-libidn2.c: Likewise.
16635 * support/support_format_addrinfo.c (format_ai_flags): Do not
16636 handle AI_IDN_ALLOW_UNASSIGNED, AI_IDN_USE_STD3_ASCII_RULES.
16637 * sysdeps/posix/getaddrinfo.c (DEPRECATED_AI_IDN): Define.
16638 (gaih_inet): Call __idna_to_dns_encoding and
16639 __idna_from_dns_encoding, and use the original (punycode) name if
16640 __idna_from_dns_encoding fails due to an encoding error.
16641 (getaddrinfo): Use DEPRECATED_AI_IDN.
16642 * sysdeps/unix/inet/Subdirs (libidn): Remove.
16643 * sysdeps/unix/inet/configure: Remove file.
16644 * sysdeps/unix/inet/configure.ac: Likewise.
16645
16646 2018-05-23 Florian Weimer <fweimer@redhat.com>
16647
16648 Implement allocate_once.
16649 * include/allocate_once.h: New file.
16650 * misc/allocate_once.c: Likewise.
16651 * misc/tst-allocate_once.c: Likewise.
16652 * misc/Makefile (routines): Add allocate_once.
16653 (tests-internal): Add tst-allocate_once.
16654 (generated): Add tst-allocate_once.mtrace,
16655 tst-allocate_once-mem.out.
16656 (tests-special): Add tst-allocate_once-mem.out.
16657 (tst-allocate_once-ENV): Set MALLOC_TRACE.
16658 (tst-allocate_once-mem.out): Call mtrace.
16659 * misc/Versions (GLIBC_PRIVATE): Add __libc_allocate_once_slow.
16660
16661 2018-05-23 H.J. Lu <hongjiu.lu@intel.com>
16662
16663 [BZ #23196]
16664 * string/test-memcpy.c (do_test1): New function.
16665 (test_main): Call it.
16666
16667 2018-05-23 Andreas Schwab <schwab@suse.de>
16668
16669 [BZ #23196]
16670 CVE-2018-11237
16671 * sysdeps/x86_64/multiarch/memmove-avx512-no-vzeroupper.S
16672 (L(preloop_large)): Save initial destination pointer in %r11 and
16673 use it instead of %rax after the loop.
16674 * string/test-mempcpy.c (MIN_PAGE_SIZE): Define.
16675
16676 2018-05-22 Joseph Myers <joseph@codesourcery.com>
16677
16678 * sysdeps/aarch64/Implies: Remove aarch64/soft-fp.
16679 * sysdeps/aarch64/Makefile [$(subdir) = math] (CPPFLAGS): Add
16680 -I../soft-fp. Moved from ....
16681 * sysdeps/aarch64/soft-fp/Makefile: ... here. Remove file.
16682 * sysdeps/aarch64/soft-fp/e_sqrtl.c: Move to ....
16683 * sysdeps/aarch64/e_sqrtl.c: ... here.
16684 * sysdeps/aarch64/soft-fp/sfp-machine.h: Move to ....
16685 * sysdeps/aarch64/sfp-machine.h: ... here.
16686
16687 * sysdeps/ieee754/dbl-64/k_rem_pio2.c (__kernel_rem_pio2): Ignore
16688 -Wmaybe-uninitialized around access to fq[0].
16689 * sysdeps/ieee754/flt-32/k_rem_pio2f.c (__kernel_rem_pio2f):
16690 Likewise.
16691
16692 [BZ #18471]
16693 * sysdeps/unix/make-syscalls.sh (emit_weak_aliases): Use weak
16694 aliases for non-libc case of versioned symbols.
16695 * sysdeps/unix/sysv/linux/lseek64.c: Include <shlib-compat.h>.
16696 (llseek): Define as compat symbol if
16697 [SHLIB_COMPAT (libc, GLIBC_2_0, GLIBC_2_28)], not as weak alias
16698 with link warning.
16699 * sysdeps/unix/sysv/linux/mips/mips64/n32/syscalls.list (llseek):
16700 Make into a compat symbol, disabled for minimum symbol version
16701 GLIBC_2.28 and later.
16702 * sysdeps/unix/sysv/linux/x86_64/x32/llseek.S: Remove file.
16703
16704 2018-05-22 Florian Weimer <fweimer@redhat.com>
16705
16706 * sysdeps/i386/Makefile [$(subdir) == math] (sysdep-CFLAGS): Do
16707 not add -mpreferred-stack-boundary=4.
16708 [$(subdir) == csu] (sysdep-CFLAGS): Likewise.
16709 (stack-align-test-flags): Likewise.
16710 [$(subdir) == stdlib] (CFLAGS-exit.c, CFLAGS-cxa_finalize.c):
16711 Likewise.
16712 [$(subdir) == elf] (CFLAGS-dl-init.c, CFLAGS-dl-fini.c)
16713 (CFLAGS-dl-open.c, CFLAGS-dl-close.c, CFLAGS-dl-error.c): Likewise.
16714 [$(subdir) == dlfcn] (CFLAGS-dlopen.c, CFLAGS-dlopenold.c)
16715 (CFLAGS-dlclose.c, CFLAGS-dlerror.c): Likewise.
16716 * sysdeps/i386/nptl/Makefile [$(subdir) == nptl]
16717 (CFLAGS-pthread_create.c, CFLAGS-tst-align.c)
16718 (CFLAGS-tst-align2.c): Likewise.
16719
16720 2018-05-21 H.J. Lu <hongjiu.lu@intel.com>
16721
16722 * sysdeps/x86/cpu-features.h (bit_arch_Prefer_FSRM): New.
16723 (index_arch_Prefer_FSRM): Likewise.
16724 * sysdeps/x86/cpu-tunables.c (TUNABLE_CALLBACK (set_hwcaps)):
16725 Also check Prefer_FSRM.
16726 * sysdeps/x86_64/multiarch/ifunc-memmove.h (IFUNC_SELECTOR):
16727 Also return OPTIMIZE (erms) for Prefer_FSRM.
16728
16729 2018-05-21 H.J. Lu <hongjiu.lu@intel.com>
16730
16731 * sysdeps/x86/cpu-features.h (bit_cpu_FSRM): New.
16732 (index_cpu_FSRM): Likewise.
16733 (reg_FSRM): Likewise.
16734
16735 2018-05-18 Joseph Myers <joseph@codesourcery.com>
16736
16737 * math/gen-tgmath-tests.py: Import sys.
16738 (Tests.__init__): Initialize macros_seen.
16739 (Tests.add_tests): Add macro to macros_seen. Only generate tests
16740 if requested to do so for this macro.
16741 (Tests.add_all_tests): Take argument for macro for which to
16742 generate tests.
16743 (Tests.check_macro_list): New function.
16744 (main): Handle check-list argument and argument specifying macro
16745 for which to generate tests.
16746 * math/Makefile [PYTHON] (tgmath3-macros): New variable.
16747 [PYTHON] (tgmath3-macro-tests): Likewise.
16748 [PYTHON] (tests): Add $(tgmath3-macro-tests) not test-tgmath3.
16749 [PYTHON] (generated): Add $(addsuffix .c,$(tgmath3-macro-tests))
16750 not test-tgmath3.c.
16751 [PYTHON] (CFLAGS-test-tgmath3.c): Remove.
16752 [PYTHON] ($(tgmath3-macro-tests:%=$(objpfx)%.o): Add -fno-builtin
16753 to CFLAGS.
16754 [PYTHON] ($(objpfx)test-tgmath3.c): Replace rule by....
16755 [PYTHON] ($(foreach
16756 m,$(tgmath3-macros),$(objpfx)test-tgmath3-$(m).c): ... this. New
16757 rule.
16758 [PYTHON] (tests-special): Add
16759 $(objpfx)test-tgmath3-macro-list.out.
16760 [PYTHON] ($(objpfx)test-tgmath3-macro-list.out): New rule.
16761
16762 * sysdeps/unix/sysv/linux/syscalls.list (nfsservctl): Make into a
16763 compat symbol, disabled for minimum symbol version GLIBC_2.28 and
16764 later.
16765
16766 [BZ #22639]
16767 * time/tzset.c (SECSPERDAY): Cast to time_t.
16768 * time/tst-y2039.c: New file.
16769 * time/Makefile (tests): Add tst-y2039.
16770
16771 2018-05-17 Leonardo Sandoval <leonardo.sandoval.gonzalez@intel.com>
16772
16773 * sysdeps/x86_64/multiarch/memmove-vec-unaligned-erms.S
16774 (PREFETCH_ONE_SET): Remove duplicate line.
16775
16776 2018-05-17 Florian Weimer <fweimer@redhat.com>
16777
16778 * sysdeps/generic/math-type-macros-double.h: Include
16779 <math-nan-payload-double.h> after <libm-alias-double.h>.
16780 * sysdeps/generic/math-type-macros-float.h: Include
16781 <math-nan-payload-float.h> after <libm-alias-float.h>.
16782 * sysdeps/generic/math-type-macros-float128.h: Include
16783 <math-nan-payload-float128.h> after <libm-alias-float128.h>.
16784 * sysdeps/generic/math-type-macros-ldouble.h: Include
16785 <math-nan-payload-ldouble.h> after <libm-alias-ldouble.h>.
16786
16787 2018-05-17 Andreas Schwab <schwab@suse.de>
16788
16789 * resolv/res_send.c (__res_context_send): Don't set errno when
16790 returing error after malloc failure.
16791
16792 2018-05-17 H.J. Lu <hongjiu.lu@intel.com>
16793
16794 * nptl/allocatestack.c (allocate_stack): Remove the
16795 !__ASSUME_PRIVATE_FUTEX paths.
16796 * nptl/descr.h (header): Remove the !__ASSUME_PRIVATE_FUTEX path.
16797 * nptl/nptl-init.c (__pthread_initialize_minimal_internal):
16798 Likewise.
16799 * sysdeps/i386/nptl/tcb-offsets.sym (PRIVATE_FUTEX): Removed.
16800 * sysdeps/powerpc/nptl/tcb-offsets.sym (PRIVATE_FUTEX): Likewise.
16801 * sysdeps/sh/nptl/tcb-offsets.sym (PRIVATE_FUTEX): Likewise.
16802 * sysdeps/x86_64/nptl/tcb-offsets.sym (PRIVATE_FUTEX): Likewise.
16803 * sysdeps/i386/nptl/tls.h: (tcbhead_t): Remve the
16804 !__ASSUME_PRIVATE_FUTEX path.
16805 * sysdeps/s390/nptl/tls.h (tcbhead_t): Likewise.
16806 * sysdeps/sparc/nptl/tls.h (tcbhead_t): Likewise.
16807 * sysdeps/x86_64/nptl/tls.h (tcbhead_t): Likewise.
16808 * sysdeps/unix/sysv/linux/i386/lowlevellock.S: Remove the
16809 !__ASSUME_PRIVATE_FUTEX macros.
16810 * sysdeps/unix/sysv/linux/lowlevellock-futex.h: Likewise.
16811 * sysdeps/unix/sysv/linux/x86_64/cancellation.S: Likewise.
16812 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.S: Likewise.
16813 * sysdeps/unix/sysv/linux/kernel-features.h
16814 (__ASSUME_PRIVATE_FUTEX): Removed.
16815
16816 2018-05-17 Joseph Myers <joseph@codesourcery.com>
16817
16818 * math/Makefile (libm-narrow-fns): Add div.
16819 (libm-test-funcs-narrow): Likewise.
16820 * math/Versions (GLIBC_2.28): Add narrowing divide functions.
16821 * math/bits/mathcalls-narrow.h (div): Use __MATHCALL_NARROW.
16822 * math/gen-auto-libm-tests.c (test_functions): Add div.
16823 * math/math-narrow.h (CHECK_NARROW_DIV): New macro.
16824 (NARROW_DIV_ROUND_TO_ODD): Likewise.
16825 (NARROW_DIV_TRIVIAL): Likewise.
16826 * sysdeps/ieee754/float128/float128_private.h (__fdivl): New
16827 macro.
16828 (__ddivl): Likewise.
16829 * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Add fdiv and
16830 ddiv.
16831 (CFLAGS-nldbl-ddiv.c): New variable.
16832 (CFLAGS-nldbl-fdiv.c): Likewise.
16833 * sysdeps/ieee754/ldbl-opt/Versions (GLIBC_2.28): Add
16834 __nldbl_ddivl.
16835 * sysdeps/ieee754/ldbl-opt/nldbl-compat.h (__nldbl_ddivl): New
16836 prototype.
16837 * manual/arith.texi (Misc FP Arithmetic): Document fdiv, fdivl,
16838 ddivl, fMdivfN, fMdivfNx, fMxdivfN and fMxdivfNx.
16839 * math/auto-libm-test-in: Add tests of div.
16840 * math/auto-libm-test-out-narrow-div: New generated file.
16841 * math/libm-test-narrow-div.inc: New file.
16842 * sysdeps/i386/fpu/s_f32xdivf64.c: Likewise.
16843 * sysdeps/ieee754/dbl-64/s_f32xdivf64.c: Likewise.
16844 * sysdeps/ieee754/dbl-64/s_fdiv.c: Likewise.
16845 * sysdeps/ieee754/float128/s_f32divf128.c: Likewise.
16846 * sysdeps/ieee754/float128/s_f64divf128.c: Likewise.
16847 * sysdeps/ieee754/float128/s_f64xdivf128.c: Likewise.
16848 * sysdeps/ieee754/ldbl-128/s_ddivl.c: Likewise.
16849 * sysdeps/ieee754/ldbl-128/s_f64xdivf128.c: Likewise.
16850 * sysdeps/ieee754/ldbl-128/s_fdivl.c: Likewise.
16851 * sysdeps/ieee754/ldbl-128ibm/s_ddivl.c: Likewise.
16852 * sysdeps/ieee754/ldbl-128ibm/s_fdivl.c: Likewise.
16853 * sysdeps/ieee754/ldbl-96/s_ddivl.c: Likewise.
16854 * sysdeps/ieee754/ldbl-96/s_fdivl.c: Likewise.
16855 * sysdeps/ieee754/ldbl-opt/nldbl-ddiv.c: Likewise.
16856 * sysdeps/ieee754/ldbl-opt/nldbl-fdiv.c: Likewise.
16857 * sysdeps/ieee754/soft-fp/s_ddivl.c: Likewise.
16858 * sysdeps/ieee754/soft-fp/s_fdiv.c: Likewise.
16859 * sysdeps/ieee754/soft-fp/s_fdivl.c: Likewise.
16860 * sysdeps/powerpc/fpu/libm-test-ulps: Update.
16861 * sysdeps/mach/hurd/i386/libm.abilist: Likewise.
16862 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
16863 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
16864 * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
16865 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
16866 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
16867 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
16868 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
16869 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
16870 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
16871 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
16872 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
16873 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
16874 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Likewise.
16875 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist: Likewise.
16876 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Likewise.
16877 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Likewise.
16878 * sysdeps/unix/sysv/linux/riscv/rv64/libm.abilist: Likewise.
16879 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
16880 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
16881 * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
16882 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
16883 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
16884 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
16885 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
16886
16887 2018-05-16 Adhemerval Zanella <adhemerval.zanella@linaro.org>
16888
16889 [BZ #23178]
16890 * nscd/nscd-client.h (sendfileall): Remove prototype.
16891 * nscd/connections.c [HAVE_SENDFILE] (sendfileall): Remove function.
16892 (handle_request): Use writeall instead of sendfileall.
16893 * nscd/aicache.c (addhstaiX): Likewise.
16894 * nscd/grpcache.c (cache_addgr): Likewise.
16895 * nscd/hstcache.c (cache_addhst): Likewise.
16896 * nscd/initgrcache.c (addinitgroupsX): Likewise.
16897 * nscd/netgroupcache.c (addgetnetgrentX, addinnetgrX): Likewise.
16898 * nscd/pwdcache.c (cache_addpw): Likewise.
16899 * nscd/servicescache.c (cache_addserv): Likewise.
16900 * sysdeps/unix/sysv/linux/Makefile [$(subdir) == nscd]
16901 (sysdep-CFLAGS): Remove -DHAVE_SENDFILE.
16902 * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_SENDFILE):
16903 Remove define.
16904
16905 2018-05-16 H.J. Lu <hongjiu.lu@intel.com>
16906
16907 * sysdeps/x86_64/multiarch/strncat-c.c (STRNCAT_PRIMARY): Removed.
16908 Include <string/strncat.c>.
16909 * sysdeps/x86_64/multiarch/strncat.c (__strncat): New strong
16910 alias.
16911 (__GI___strncat): New hidden alias.
16912
16913 2018-05-16 Joseph Myers <joseph@codesourcery.com>
16914
16915 * sysdeps/mips/mips32/libm-test-ulps: Update.
16916 * sysdeps/mips/mips64/libm-test-ulps: Likewise.
16917
16918 2018-05-16 Florian Weimer <fweimer@redhat.com>
16919
16920 * support/Makefile (libsupport-routines): Add support_quote_blob,
16921 support_test_compare_blob.
16922 (tests): Add tst-support_quote_blob, tst-test_compare_blob.
16923 * support/check.h (TEST_COMPARE_BLOB): Define.
16924 (support_test_compare_blob): Declare.
16925 * support/support.h (support_quote_blob): Declare.
16926 * support/support_quote_blob.c: New file.
16927 * support/support_test_compare_blob.c: Likewise.
16928 * support/tst-support_quote_blob.c: Likewise.
16929 * support/tst-test_compare_blob.c: Likewise.
16930
16931 2018-05-16 Florian Weimer <fweimer@redhat.com>
16932
16933 * stdlib/strtod_nan.c: Include <math-type-macros-double.h> instead
16934 of <strtod_nan_double.h>.
16935 * stdlib/strtod_nan_main.c (STRTOD_NAN): Use SET_NAN_PAYLOAD
16936 instead of SET_MANTISSA.
16937 * stdlib/strtof_nan.c: Include <math-type-macros-float.h> instead
16938 of include <strtod_nan_float.h>.
16939 * stdlib/strtold_nan.c: Include <math-type-macros-ldouble.h>
16940 instead of <strtod_nan_ldouble.h>.
16941 * stdlib/strtod_nan_double.h: Move to ...
16942 * sysdeps/generic/math-nan-payload-double.h: ... here.
16943 (FLOAT): Remove definition.
16944 (SET_MANTISSA): Rename to ...
16945 (SET_NAN_PAYLOAD): ... this.
16946 * stdlib/strtod_nan_float.h: Move to ...
16947 * sysdeps/generic/math-nan-payload-float.h: ... here.
16948 (FLOAT): Remove definition.
16949 (SET_MANTISSA): Rename to ...
16950 (SET_NAN_PAYLOAD): ... this.
16951 * sysdeps/generic/math-type-macros-double.h: Include
16952 <math-nan-payload-double.h>. Include <math/math-svid-compat.h>
16953 instead of <math-svid-compat.h>.
16954 * sysdeps/generic/math-type-macros-float.h: Include
16955 <math-nan-payload-float.h>. Include <math/math-svid-compat.h>
16956 instead of <math-svid-compat.h>.
16957 * sysdeps/generic/math-type-macros-float128.h: Include
16958 <math-nan-payload-float128.h>.
16959 * sysdeps/generic/math-type-macros-ldouble.h: Include
16960 <math-nan-payload-ldouble.h>. Include <math/math-svid-compat.h>
16961 instead of <math-svid-compat.h>.
16962 * sysdeps/generic/math-type-macros.h: Document SET_NAN_PAYLOAD and
16963 check for definition.
16964 * sysdeps/ieee754/float128/strtod_nan_float128.h: Move to ...
16965 * sysdeps/ieee754/float128/math-nan-payload-float128.h: ... here.
16966 Include <ieee754_float128.h>.
16967 (FLOAT): Remove definition.
16968 (SET_MANTISSA): Rename to ...
16969 (SET_NAN_PAYLOAD): ... this.
16970 * sysdeps/ieee754/float128/strtof128_nan.c: Include
16971 <math-type-macros-float128.h> instead of <strtod_nan_float128.h>.
16972 Do not include <float128_private.h>.
16973 * sysdeps/ieee754/float128/wcstof128_nan.c: Likewise.
16974 * sysdeps/ieee754/ldbl-128/strtod_nan_ldouble.h: Move to ...
16975 * sysdeps/ieee754/ldbl-128/math-nan-payload-ldouble.h: ... here.
16976 (FLOAT): Remove definition.
16977 (SET_MANTISSA): Rename to ...
16978 (SET_NAN_PAYLOAD): ... this.
16979 * sysdeps/ieee754/ldbl-128ibm/strtod_nan_ldouble.h: Move to ...
16980 * sysdeps/ieee754/ldbl-128ibm/math-nan-payload-ldouble.h: ... here.
16981 (FLOAT): Remove definition.
16982 (SET_MANTISSA): Rename to ...
16983 (SET_NAN_PAYLOAD): ... this.
16984 * sysdeps/ieee754/ldbl-96/strtod_nan_ldouble.h: Move to ...
16985 * sysdeps/ieee754/ldbl-96/math-nan-payload-ldouble.h: ... here.
16986 (FLOAT): Remove definition.
16987 (SET_MANTISSA): Rename to ...
16988 (SET_NAN_PAYLOAD): ... this.
16989 * wcsmbs/wcstod_nan.c: Include <math-type-macros-double.h> instead
16990 of "../stdlib/strtod_nan_double.h".
16991 * wcsmbs/wcstof_nan.c: Include <math-type-macros-float.h> instead
16992 of "../stdlib/strtod_nan_float.h".
16993 * wcsmbs/wcstold_nan.c: Include <math-type-macros-ldouble.h>
16994 instead of "../stdlib/strtod_nan_ldouble.h".
16995 * manual/arith.texi (Parsing of Floats): Adjust comment.
16996
16997 2018-05-16 Joseph Myers <joseph@codesourcery.com>
16998
16999 * math/Makefile (libm-narrow-fns): Add mul.
17000 (libm-test-funcs-narrow): Likewise.
17001 * math/Versions (GLIBC_2.28): Add narrowing multiply functions.
17002 * math/bits/mathcalls-narrow.h (mul): Use __MATHCALL_NARROW.
17003 * math/gen-auto-libm-tests.c (test_functions): Add mul.
17004 * math/math-narrow.h (CHECK_NARROW_MUL): New macro.
17005 (NARROW_MUL_ROUND_TO_ODD): Likewise.
17006 (NARROW_MUL_TRIVIAL): Likewise.
17007 * soft-fp/op-common.h (FP_TRUNC_COOKED): Likewise.
17008 * sysdeps/ieee754/float128/float128_private.h (__fmull): New
17009 macro.
17010 (__dmull): Likewise.
17011 * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Add fmul and
17012 dmul.
17013 (CFLAGS-nldbl-dmul.c): New variable.
17014 (CFLAGS-nldbl-fmul.c): Likewise.
17015 * sysdeps/ieee754/ldbl-opt/Versions (GLIBC_2.28): Add
17016 __nldbl_dmull.
17017 * sysdeps/ieee754/ldbl-opt/nldbl-compat.h (__nldbl_dmull): New
17018 prototype.
17019 * manual/arith.texi (Misc FP Arithmetic): Document fmul, fmull,
17020 dmull, fMmulfN, fMmulfNx, fMxmulfN and fMxmulfNx.
17021 * math/auto-libm-test-in: Add tests of mul.
17022 * math/auto-libm-test-out-narrow-mul: New generated file.
17023 * math/libm-test-narrow-mul.inc: New file.
17024 * sysdeps/i386/fpu/s_f32xmulf64.c: Likewise.
17025 * sysdeps/ieee754/dbl-64/s_f32xmulf64.c: Likewise.
17026 * sysdeps/ieee754/dbl-64/s_fmul.c: Likewise.
17027 * sysdeps/ieee754/float128/s_f32mulf128.c: Likewise.
17028 * sysdeps/ieee754/float128/s_f64mulf128.c: Likewise.
17029 * sysdeps/ieee754/float128/s_f64xmulf128.c: Likewise.
17030 * sysdeps/ieee754/ldbl-128/s_dmull.c: Likewise.
17031 * sysdeps/ieee754/ldbl-128/s_f64xmulf128.c: Likewise.
17032 * sysdeps/ieee754/ldbl-128/s_fmull.c: Likewise.
17033 * sysdeps/ieee754/ldbl-128ibm/s_dmull.c: Likewise.
17034 * sysdeps/ieee754/ldbl-128ibm/s_fmull.c: Likewise.
17035 * sysdeps/ieee754/ldbl-96/s_dmull.c: Likewise.
17036 * sysdeps/ieee754/ldbl-96/s_fmull.c: Likewise.
17037 * sysdeps/ieee754/ldbl-opt/nldbl-dmul.c: Likewise.
17038 * sysdeps/ieee754/ldbl-opt/nldbl-fmul.c: Likewise.
17039 * sysdeps/ieee754/soft-fp/s_dmull.c: Likewise.
17040 * sysdeps/ieee754/soft-fp/s_fmul.c: Likewise.
17041 * sysdeps/ieee754/soft-fp/s_fmull.c: Likewise.
17042 * sysdeps/powerpc/fpu/libm-test-ulps: Update.
17043 * sysdeps/mach/hurd/i386/libm.abilist: Likewise.
17044 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
17045 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
17046 * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
17047 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
17048 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
17049 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
17050 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
17051 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
17052 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
17053 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
17054 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
17055 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
17056 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Likewise.
17057 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist: Likewise.
17058 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Likewise.
17059 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Likewise.
17060 * sysdeps/unix/sysv/linux/riscv/rv64/libm.abilist: Likewise.
17061 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
17062 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
17063 * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
17064 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
17065 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
17066 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
17067 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
17068
17069 2018-05-14 H.J. Lu <hongjiu.lu@intel.com>
17070
17071 * sysdeps/i386/crti.S (_init): Replace PREINIT_FUNCTION@PLT
17072 with *%eax in call.
17073
17074 2018-05-14 H.J. Lu <hongjiu.lu@intel.com>
17075
17076 * sysdeps/i386/ldsodefs.h: Removed.
17077 * sysdeps/x86_64/ldsodefs.h: Moved to ...
17078 * sysdeps/x86/ldsodefs.h: This.
17079 (La_i86_regs): New.
17080 (La_i86_retval): Likewise.
17081 (ARCH_PLTENTER_MEMBERS): Add i86_gnu_pltenter.
17082 (ARCH_PLTEXIT_MEMBERS): i86_gnu_pltexit.
17083
17084 2018-05-14 H.J. Lu <hongjiu.lu@intel.com>
17085
17086 * sysdeps/x86_64/multiarch/strlen-avx2.S (STRLEN): Remove the
17087 unnecessary testl.
17088
17089 2018-05-13 Alan Modra <amodra@gmail.com>
17090
17091 * sysdeps/hppa/dl-machine.h (elf_machine_rela): Add
17092 R_PARISC_TLS_DTPOFF32 reloc addend.
17093
17094 2018-05-11 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
17095
17096 * bits/floatn-common.h: Define __HAVE_FLOAT128_UNLIKE_LDBL.
17097 * math/math.h: Restrict the prototype definition for the functions
17098 issignaling(_Float128) and iszero(_Float128); and template
17099 __iseqsig_type<_Float128>, from __HAVE_DISTINCT_FLOAT128 to
17100 __HAVE_FLOAT128_UNLIKE_LDBL.
17101 * sysdeps/powerpc/bits/floatn.h [__HAVE_FLOAT128
17102 && (!__GNUC_PREREQ (7, 0) || defined __cplusplus)
17103 && __LDBL_MANT_DIG__ == 113]: Use long double suffix for
17104 __f128() constants; define the type _Float128 as long double;
17105 and reuse long double in __CFLOAT128.
17106
17107 2018-05-11 Joseph Myers <joseph@codesourcery.com>
17108
17109 * sysdeps/generic/math_private.h: Do not include
17110 <math-barriers.h>.
17111 * stdlib/strtod_l.c: Include <math-barriers.h> instead of
17112 <math_private.h>.
17113 * math/fromfp.h: Include <math-barriers.h>.
17114 * math/math-narrow.h: Likewise.
17115 * math/s_nextafter.c: Likewise.
17116 * math/s_nexttowardf.c: Likewise.
17117 * sysdeps/aarch64/fpu/s_llrint.c: Likewise.
17118 * sysdeps/aarch64/fpu/s_llrintf.c: Likewise.
17119 * sysdeps/aarch64/fpu/s_lrint.c: Likewise.
17120 * sysdeps/aarch64/fpu/s_lrintf.c: Likewise.
17121 * sysdeps/i386/fpu/s_nextafterl.c: Likewise.
17122 * sysdeps/i386/fpu/s_nexttoward.c: Likewise.
17123 * sysdeps/i386/fpu/s_nexttowardf.c: Likewise.
17124 * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
17125 * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
17126 * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
17127 * sysdeps/ieee754/dbl-64/e_exp2.c: Likewise.
17128 * sysdeps/ieee754/dbl-64/e_j0.c: Likewise.
17129 * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
17130 * sysdeps/ieee754/dbl-64/s_expm1.c: Likewise.
17131 * sysdeps/ieee754/dbl-64/s_fma.c: Likewise.
17132 * sysdeps/ieee754/dbl-64/s_fmaf.c: Likewise.
17133 * sysdeps/ieee754/dbl-64/s_log1p.c: Likewise.
17134 * sysdeps/ieee754/dbl-64/s_nearbyint.c: Likewise.
17135 * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c: Likewise.
17136 * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
17137 * sysdeps/ieee754/flt-32/e_j0f.c: Likewise.
17138 * sysdeps/ieee754/flt-32/s_expm1f.c: Likewise.
17139 * sysdeps/ieee754/flt-32/s_log1pf.c: Likewise.
17140 * sysdeps/ieee754/flt-32/s_nearbyintf.c: Likewise.
17141 * sysdeps/ieee754/flt-32/s_nextafterf.c: Likewise.
17142 * sysdeps/ieee754/k_standardl.c: Likewise.
17143 * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
17144 * sysdeps/ieee754/ldbl-128/e_expl.c: Likewise.
17145 * sysdeps/ieee754/ldbl-128/e_powl.c: Likewise.
17146 * sysdeps/ieee754/ldbl-128/s_fmal.c: Likewise.
17147 * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Likewise.
17148 * sysdeps/ieee754/ldbl-128/s_nextafterl.c: Likewise.
17149 * sysdeps/ieee754/ldbl-128/s_nexttoward.c: Likewise.
17150 * sysdeps/ieee754/ldbl-128/s_nexttowardf.c: Likewise.
17151 * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
17152 * sysdeps/ieee754/ldbl-128ibm/s_fmal.c: Likewise.
17153 * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c: Likewise.
17154 * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Likewise.
17155 * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c: Likewise.
17156 * sysdeps/ieee754/ldbl-128ibm/s_rintl.c: Likewise.
17157 * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
17158 * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
17159 * sysdeps/ieee754/ldbl-96/s_fma.c: Likewise.
17160 * sysdeps/ieee754/ldbl-96/s_fmal.c: Likewise.
17161 * sysdeps/ieee754/ldbl-96/s_nexttoward.c: Likewise.
17162 * sysdeps/ieee754/ldbl-96/s_nexttowardf.c: Likewise.
17163 * sysdeps/ieee754/ldbl-opt/s_nexttowardfd.c: Likewise.
17164 * sysdeps/m68k/m680x0/fpu/s_nextafterl.c: Likewise.
17165
17166 2018-05-11 Florian Weimer <fweimer@redhat.com>
17167
17168 Use 64-bit epoch values in the time zone file parser.
17169 * include/time.h (internal_time_t): Define.
17170 (__tzfile_compute): Use it.
17171 * time/tzfile.c (struct leap): Use internal_time_t for epoch
17172 member.
17173 (transitions): Switch to internal_time_t.
17174 (__tzfile_read): Likewise. Remove code dealing with 4-byte time_t
17175 types.
17176 (__tzfile_compute): Use internal_time_t for timer argument. Check
17177 for truncation before calling __offtime.
17178
17179 2018-05-11 Florian Weimer <fweimer@redhat.com>
17180
17181 [BZ #23166]
17182 * include/rpc/clnt.h (rpc_createerr): Declare hidden alias.
17183 * include/rpc/svc.h (svc_pollfd, svc_max_pollfd, svc_fdset):
17184 Likewise.
17185 * sunrpc/rpc_common.c (svc_fdset, rpc_createerr, svc_pollfd)
17186 (svc_max_pollfd): Add nocommon attribute and hidden alias. Do not
17187 export without --enable-obsolete-rpc.
17188 * sunrpc/svcauth_des.c (svcauthdes_stats): Turn into compatibility
17189 symbol. This should not have been exported, ever.
17190
17191 2018-05-11 Rafał Lużyński <digitalfreak@lingonborough.com>
17192
17193 [BZ #23152]
17194 * localedata/locales/gd_GB (abmon): Fix typo in May:
17195 "Mhàrt" -> "Cèit". Adjust the comment according to the change.
17196
17197 2018-05-11 Siddhesh Poyarekar <siddhesh@sourceware.org>
17198
17199 * sysdeps/aarch64/multiarch/memcpy_falkor.S (__memcpy_falkor):
17200 Use multiple registers to copy data in loop tail.
17201
17202 * sysdeps/aarch64/multiarch/memmove_falkor.S
17203 (__memmove_falkor): Use multiple registers to move data in
17204 loop tail.
17205
17206 2018-05-10 Joseph Myers <joseph@codesourcery.com>
17207
17208 * math/math-underflow.h: New file.
17209 * sysdeps/generic/math_private.h: Do not include <float.h>.
17210 (fabs_tg): Remove macro. Moved to math-underflow.h.
17211 (min_of_type_f): Likewise.
17212 (min_of_type_): Likewise.
17213 (min_of_type_l): Likewise.
17214 (min_of_type_f128): Likewise.
17215 (min_of_type): Likewise.
17216 (math_check_force_underflow): Likewise.
17217 (math_check_force_underflow_nonneg): Likewise.
17218 (math_check_force_underflow_complex): Likewise.
17219 * math/e_exp2_template.c: Include <math-underflow.h>.
17220 * math/k_casinh_template.c: Likewise.
17221 * math/s_catan_template.c: Likewise.
17222 * math/s_catanh_template.c: Likewise.
17223 * math/s_ccosh_template.c: Likewise.
17224 * math/s_cexp_template.c: Likewise.
17225 * math/s_clog10_template.c: Likewise.
17226 * math/s_clog_template.c: Likewise.
17227 * math/s_csin_template.c: Likewise.
17228 * math/s_csinh_template.c: Likewise.
17229 * math/s_csqrt_template.c: Likewise.
17230 * math/s_ctan_template.c: Likewise.
17231 * math/s_ctanh_template.c: Likewise.
17232 * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
17233 * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
17234 * sysdeps/ieee754/dbl-64/e_exp2.c: Likewise.
17235 * sysdeps/ieee754/dbl-64/e_gamma_r.c: Likewise.
17236 * sysdeps/ieee754/dbl-64/e_hypot.c: Likewise.
17237 * sysdeps/ieee754/dbl-64/e_j1.c: Likewise.
17238 * sysdeps/ieee754/dbl-64/e_jn.c: Likewise.
17239 * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
17240 * sysdeps/ieee754/dbl-64/e_sinh.c: Likewise.
17241 * sysdeps/ieee754/dbl-64/s_asinh.c: Likewise.
17242 * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
17243 * sysdeps/ieee754/dbl-64/s_erf.c: Likewise.
17244 * sysdeps/ieee754/dbl-64/s_expm1.c: Likewise.
17245 * sysdeps/ieee754/dbl-64/s_log1p.c: Likewise.
17246 * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
17247 * sysdeps/ieee754/dbl-64/s_sincos.c: Likewise.
17248 * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
17249 * sysdeps/ieee754/dbl-64/s_tanh.c: Likewise.
17250 * sysdeps/ieee754/flt-32/e_asinf.c: Likewise.
17251 * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
17252 * sysdeps/ieee754/flt-32/e_gammaf_r.c: Likewise.
17253 * sysdeps/ieee754/flt-32/e_j1f.c: Likewise.
17254 * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
17255 * sysdeps/ieee754/flt-32/e_sinhf.c: Likewise.
17256 * sysdeps/ieee754/flt-32/k_sinf.c: Likewise.
17257 * sysdeps/ieee754/flt-32/k_tanf.c: Likewise.
17258 * sysdeps/ieee754/flt-32/s_asinhf.c: Likewise.
17259 * sysdeps/ieee754/flt-32/s_atanf.c: Likewise.
17260 * sysdeps/ieee754/flt-32/s_erff.c: Likewise.
17261 * sysdeps/ieee754/flt-32/s_expm1f.c: Likewise.
17262 * sysdeps/ieee754/flt-32/s_log1pf.c: Likewise.
17263 * sysdeps/ieee754/flt-32/s_tanhf.c: Likewise.
17264 * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
17265 * sysdeps/ieee754/ldbl-128/e_atanhl.c: Likewise.
17266 * sysdeps/ieee754/ldbl-128/e_expl.c: Likewise.
17267 * sysdeps/ieee754/ldbl-128/e_gammal_r.c: Likewise.
17268 * sysdeps/ieee754/ldbl-128/e_hypotl.c: Likewise.
17269 * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
17270 * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
17271 * sysdeps/ieee754/ldbl-128/e_sinhl.c: Likewise.
17272 * sysdeps/ieee754/ldbl-128/k_sincosl.c: Likewise.
17273 * sysdeps/ieee754/ldbl-128/k_sinl.c: Likewise.
17274 * sysdeps/ieee754/ldbl-128/k_tanl.c: Likewise.
17275 * sysdeps/ieee754/ldbl-128/s_asinhl.c: Likewise.
17276 * sysdeps/ieee754/ldbl-128/s_atanl.c: Likewise.
17277 * sysdeps/ieee754/ldbl-128/s_erfl.c: Likewise.
17278 * sysdeps/ieee754/ldbl-128/s_expm1l.c: Likewise.
17279 * sysdeps/ieee754/ldbl-128/s_log1pl.c: Likewise.
17280 * sysdeps/ieee754/ldbl-128/s_tanhl.c: Likewise.
17281 * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
17282 * sysdeps/ieee754/ldbl-128ibm/e_atanhl.c: Likewise.
17283 * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c: Likewise.
17284 * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c: Likewise.
17285 * sysdeps/ieee754/ldbl-128ibm/e_j1l.c: Likewise.
17286 * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
17287 * sysdeps/ieee754/ldbl-128ibm/e_powl.c: Likewise.
17288 * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c: Likewise.
17289 * sysdeps/ieee754/ldbl-128ibm/k_sincosl.c: Likewise.
17290 * sysdeps/ieee754/ldbl-128ibm/k_sinl.c: Likewise.
17291 * sysdeps/ieee754/ldbl-128ibm/k_tanl.c: Likewise.
17292 * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c: Likewise.
17293 * sysdeps/ieee754/ldbl-128ibm/s_atanl.c: Likewise.
17294 * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Likewise.
17295 * sysdeps/ieee754/ldbl-128ibm/s_fmal.c: Likewise.
17296 * sysdeps/ieee754/ldbl-128ibm/s_tanhl.c: Likewise.
17297 * sysdeps/ieee754/ldbl-96/e_asinl.c: Likewise.
17298 * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
17299 * sysdeps/ieee754/ldbl-96/e_gammal_r.c: Likewise.
17300 * sysdeps/ieee754/ldbl-96/e_hypotl.c: Likewise.
17301 * sysdeps/ieee754/ldbl-96/e_j1l.c: Likewise.
17302 * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
17303 * sysdeps/ieee754/ldbl-96/e_sinhl.c: Likewise.
17304 * sysdeps/ieee754/ldbl-96/k_sinl.c: Likewise.
17305 * sysdeps/ieee754/ldbl-96/k_tanl.c: Likewise.
17306 * sysdeps/ieee754/ldbl-96/s_asinhl.c: Likewise.
17307 * sysdeps/ieee754/ldbl-96/s_erfl.c: Likewise.
17308 * sysdeps/ieee754/ldbl-96/s_tanhl.c: Likewise.
17309 * sysdeps/powerpc/fpu/e_hypot.c: Likewise.
17310 * sysdeps/x86/fpu/powl_helper.c: Likewise.
17311 * sysdeps/ieee754/dbl-64/s_nextup.c: Include <float.h>.
17312 * sysdeps/ieee754/flt-32/s_nextupf.c: Likewise.
17313 * sysdeps/ieee754/ldbl-128/s_nextupl.c: Likewise.
17314 * sysdeps/ieee754/ldbl-128ibm/s_nextupl.c: Likewise.
17315 * sysdeps/ieee754/ldbl-96/s_nextupl.c: Likewise.
17316
17317 2018-05-09 Joseph Myers <joseph@codesourcery.com>
17318
17319 * sysdeps/generic/math-barriers.h: New file.
17320 * sysdeps/generic/math_private.h [!math_opt_barrier]
17321 (math_opt_barrier): Move to math-barriers.h.
17322 [!math_opt_barrier] (math_force_eval): Likewise.
17323 * sysdeps/aarch64/fpu/math-barriers.h: New file.
17324 * sysdeps/aarch64/fpu/math_private.h (math_opt_barrier): Move to
17325 math-barriers.h.
17326 (math_force_eval): Likewise.
17327 * sysdeps/alpha/fpu/math-barriers.h: New file.
17328 * sysdeps/alpha/fpu/math_private.h (math_opt_barrier): Move to
17329 math-barriers.h.
17330 (math_force_eval): Likewise.
17331 * sysdeps/x86/fpu/math-barriers.h: New file.
17332 * sysdeps/i386/fpu/fenv_private.h (math_opt_barrier): Move to
17333 math-barriers.h.
17334 (math_force_eval): Likewise.
17335 * sysdeps/m68k/m680x0/fpu/math_private.h: Move to....
17336 * sysdeps/m68k/m680x0/fpu/math-barriers.h: ... here. Adjust
17337 multiple-include guard for rename.
17338 * sysdeps/powerpc/fpu/math-barriers.h: New file.
17339 * sysdeps/powerpc/fpu/math_private.h (math_opt_barrier): Move to
17340 math-barriers.h.
17341 (math_force_eval): Likewise.
17342
17343 2018-05-09 Paul Pluzhnikov <ppluzhnikov@google.com>
17344
17345 [BZ #22786]
17346 CVE-2018-11236
17347 * stdlib/canonicalize.c (__realpath): Fix overflow in path length
17348 computation.
17349 * stdlib/Makefile (test-bz22786): New test.
17350 * stdlib/test-bz22786.c: New test.
17351
17352 2018-05-09 Joseph Myers <joseph@codesourcery.com>
17353
17354 * include/math-narrow-eval.h: New file. Contents moved from ....
17355 * sysdeps/generic/math_private.h: ... here.
17356 (math_narrow_eval): Remove macro. Moved to math-narrow-eval.h.
17357 [FLT_EVAL_METHOD != 0] (excess_precision): Likewise.
17358 * math/s_fdim_template.c: Include <math-narrow-eval.h>.
17359 * stdlib/strtod_l.c: Likewise.
17360 * sysdeps/i386/fpu/s_f32xaddf64.c: Likewise.
17361 * sysdeps/i386/fpu/s_f32xsubf64.c: Likewise.
17362 * sysdeps/i386/fpu/s_fdim.c: Likewise.
17363 * sysdeps/ieee754/dbl-64/e_cosh.c: Likewise.
17364 * sysdeps/ieee754/dbl-64/e_gamma_r.c: Likewise.
17365 * sysdeps/ieee754/dbl-64/e_j1.c: Likewise.
17366 * sysdeps/ieee754/dbl-64/e_jn.c: Likewise.
17367 * sysdeps/ieee754/dbl-64/e_lgamma_r.c: Likewise.
17368 * sysdeps/ieee754/dbl-64/e_sinh.c: Likewise.
17369 * sysdeps/ieee754/dbl-64/gamma_productf.c: Likewise.
17370 * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Likewise.
17371 * sysdeps/ieee754/dbl-64/lgamma_neg.c: Likewise.
17372 * sysdeps/ieee754/dbl-64/s_erf.c: Likewise.
17373 * sysdeps/ieee754/dbl-64/s_llrint.c: Likewise.
17374 * sysdeps/ieee754/dbl-64/s_lrint.c: Likewise.
17375 * sysdeps/ieee754/flt-32/e_coshf.c: Likewise.
17376 * sysdeps/ieee754/flt-32/e_exp2f.c: Likewise.
17377 * sysdeps/ieee754/flt-32/e_expf.c: Likewise.
17378 * sysdeps/ieee754/flt-32/e_gammaf_r.c: Likewise.
17379 * sysdeps/ieee754/flt-32/e_j1f.c: Likewise.
17380 * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
17381 * sysdeps/ieee754/flt-32/e_lgammaf_r.c: Likewise.
17382 * sysdeps/ieee754/flt-32/e_sinhf.c: Likewise.
17383 * sysdeps/ieee754/flt-32/k_rem_pio2f.c: Likewise.
17384 * sysdeps/ieee754/flt-32/lgamma_negf.c: Likewise.
17385 * sysdeps/ieee754/flt-32/s_erff.c: Likewise.
17386 * sysdeps/ieee754/flt-32/s_llrintf.c: Likewise.
17387 * sysdeps/ieee754/flt-32/s_lrintf.c: Likewise.
17388 * sysdeps/ieee754/ldbl-96/gamma_product.c: Likewise.
17389
17390 2018-05-08 Andreas Schwab <schwab@suse.de>
17391
17392 * sysdeps/nptl/internaltypes.h: Fix comment.
17393
17394 2018-05-07 H.J. Lu <hongjiu.lu@intel.com>
17395
17396 * sysdeps/x86_64/multiarch/memset-vec-unaligned-erms.S
17397 (MEMSET_SYMBOL (__memset, erms)): Mark the debugger symbol as
17398 hidden.
17399
17400 2018-05-07 Siddhesh Poyarekar <siddhesh@sourceware.org>
17401
17402 * benchtests/bench-memcpy-walk.c (test_main): Move declaration
17403 of I into loop header.
17404 * benchtests/bench-memmove-walk.c
17405 (test_main): Likewise.
17406
17407 2018-05-07 Alexandre Oliva <oliva@gnu.org>
17408
17409 Revert:
17410 2018-04-30 Raymond Nicholson <rain1@airmail.cc>
17411 * manual/startup.texi (Aborting a Program): Remove inappropriate joke.
17412
17413 2018-05-05 Paul Pluzhnikov <ppluzhnikov@google.com>
17414
17415 [BZ #20419]
17416 * elf/dl-load.c (open_verify): Fix stack overflow.
17417 * elf/Makefile (tst-big-note): New test.
17418 * elf/tst-big-note-lib.S: New.
17419 * elf/tst-big-note.c: New.
17420
17421 2018-05-04 Joseph Myers <joseph@codesourcery.com>
17422
17423 * scripts/abilist.awk: Ignore absolute symbols.
17424 * sysdeps/mach/hurd/i386/ld.abilist: Remove absolute symbols.
17425 * sysdeps/mach/hurd/i386/libBrokenLocale.abilist: Likewise.
17426 * sysdeps/mach/hurd/i386/libanl.abilist: Likewise.
17427 * sysdeps/mach/hurd/i386/libc.abilist: Likewise.
17428 * sysdeps/mach/hurd/i386/libcrypt.abilist: Likewise.
17429 * sysdeps/mach/hurd/i386/libdl.abilist: Likewise.
17430 * sysdeps/mach/hurd/i386/libm.abilist: Likewise.
17431 * sysdeps/mach/hurd/i386/libnsl.abilist: Likewise.
17432 * sysdeps/mach/hurd/i386/libpthread.abilist: Likewise.
17433 * sysdeps/mach/hurd/i386/libresolv.abilist: Likewise.
17434 * sysdeps/mach/hurd/i386/librt.abilist: Likewise.
17435 * sysdeps/mach/hurd/i386/libutil.abilist: Likewise.
17436 * sysdeps/unix/sysv/linux/aarch64/ld.abilist: Likewise.
17437 * sysdeps/unix/sysv/linux/aarch64/libBrokenLocale.abilist: Likewise.
17438 * sysdeps/unix/sysv/linux/aarch64/libanl.abilist: Likewise.
17439 * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Likewise.
17440 * sysdeps/unix/sysv/linux/aarch64/libcrypt.abilist: Likewise.
17441 * sysdeps/unix/sysv/linux/aarch64/libdl.abilist: Likewise.
17442 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
17443 * sysdeps/unix/sysv/linux/aarch64/libnsl.abilist: Likewise.
17444 * sysdeps/unix/sysv/linux/aarch64/libpthread.abilist: Likewise.
17445 * sysdeps/unix/sysv/linux/aarch64/libresolv.abilist: Likewise.
17446 * sysdeps/unix/sysv/linux/aarch64/librt.abilist: Likewise.
17447 * sysdeps/unix/sysv/linux/aarch64/libthread_db.abilist: Likewise.
17448 * sysdeps/unix/sysv/linux/aarch64/libutil.abilist: Likewise.
17449 * sysdeps/unix/sysv/linux/alpha/ld.abilist: Likewise.
17450 * sysdeps/unix/sysv/linux/alpha/libBrokenLocale.abilist: Likewise.
17451 * sysdeps/unix/sysv/linux/alpha/libanl.abilist: Likewise.
17452 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
17453 * sysdeps/unix/sysv/linux/alpha/libcrypt.abilist: Likewise.
17454 * sysdeps/unix/sysv/linux/alpha/libdl.abilist: Likewise.
17455 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
17456 * sysdeps/unix/sysv/linux/alpha/libnsl.abilist: Likewise.
17457 * sysdeps/unix/sysv/linux/alpha/libpthread.abilist: Likewise.
17458 * sysdeps/unix/sysv/linux/alpha/libresolv.abilist: Likewise.
17459 * sysdeps/unix/sysv/linux/alpha/librt.abilist: Likewise.
17460 * sysdeps/unix/sysv/linux/alpha/libthread_db.abilist: Likewise.
17461 * sysdeps/unix/sysv/linux/alpha/libutil.abilist: Likewise.
17462 * sysdeps/unix/sysv/linux/arm/ld.abilist: Likewise.
17463 * sysdeps/unix/sysv/linux/arm/libBrokenLocale.abilist: Likewise.
17464 * sysdeps/unix/sysv/linux/arm/libanl.abilist: Likewise.
17465 * sysdeps/unix/sysv/linux/arm/libc.abilist: Likewise.
17466 * sysdeps/unix/sysv/linux/arm/libcrypt.abilist: Likewise.
17467 * sysdeps/unix/sysv/linux/arm/libdl.abilist: Likewise.
17468 * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
17469 * sysdeps/unix/sysv/linux/arm/libnsl.abilist: Likewise.
17470 * sysdeps/unix/sysv/linux/arm/libpthread.abilist: Likewise.
17471 * sysdeps/unix/sysv/linux/arm/libresolv.abilist: Likewise.
17472 * sysdeps/unix/sysv/linux/arm/librt.abilist: Likewise.
17473 * sysdeps/unix/sysv/linux/arm/libthread_db.abilist: Likewise.
17474 * sysdeps/unix/sysv/linux/arm/libutil.abilist: Likewise.
17475 * sysdeps/unix/sysv/linux/hppa/ld.abilist: Likewise.
17476 * sysdeps/unix/sysv/linux/hppa/libBrokenLocale.abilist: Likewise.
17477 * sysdeps/unix/sysv/linux/hppa/libanl.abilist: Likewise.
17478 * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
17479 * sysdeps/unix/sysv/linux/hppa/libcrypt.abilist: Likewise.
17480 * sysdeps/unix/sysv/linux/hppa/libdl.abilist: Likewise.
17481 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
17482 * sysdeps/unix/sysv/linux/hppa/libnsl.abilist: Likewise.
17483 * sysdeps/unix/sysv/linux/hppa/libpthread.abilist: Likewise.
17484 * sysdeps/unix/sysv/linux/hppa/libresolv.abilist: Likewise.
17485 * sysdeps/unix/sysv/linux/hppa/librt.abilist: Likewise.
17486 * sysdeps/unix/sysv/linux/hppa/libthread_db.abilist: Likewise.
17487 * sysdeps/unix/sysv/linux/hppa/libutil.abilist: Likewise.
17488 * sysdeps/unix/sysv/linux/i386/ld.abilist: Likewise.
17489 * sysdeps/unix/sysv/linux/i386/libBrokenLocale.abilist: Likewise.
17490 * sysdeps/unix/sysv/linux/i386/libanl.abilist: Likewise.
17491 * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
17492 * sysdeps/unix/sysv/linux/i386/libcrypt.abilist: Likewise.
17493 * sysdeps/unix/sysv/linux/i386/libdl.abilist: Likewise.
17494 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
17495 * sysdeps/unix/sysv/linux/i386/libnsl.abilist: Likewise.
17496 * sysdeps/unix/sysv/linux/i386/libpthread.abilist: Likewise.
17497 * sysdeps/unix/sysv/linux/i386/libresolv.abilist: Likewise.
17498 * sysdeps/unix/sysv/linux/i386/librt.abilist: Likewise.
17499 * sysdeps/unix/sysv/linux/i386/libthread_db.abilist: Likewise.
17500 * sysdeps/unix/sysv/linux/i386/libutil.abilist: Likewise.
17501 * sysdeps/unix/sysv/linux/ia64/ld.abilist: Likewise.
17502 * sysdeps/unix/sysv/linux/ia64/libBrokenLocale.abilist: Likewise.
17503 * sysdeps/unix/sysv/linux/ia64/libanl.abilist: Likewise.
17504 * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
17505 * sysdeps/unix/sysv/linux/ia64/libcrypt.abilist: Likewise.
17506 * sysdeps/unix/sysv/linux/ia64/libdl.abilist: Likewise.
17507 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
17508 * sysdeps/unix/sysv/linux/ia64/libnsl.abilist: Likewise.
17509 * sysdeps/unix/sysv/linux/ia64/libpthread.abilist: Likewise.
17510 * sysdeps/unix/sysv/linux/ia64/libresolv.abilist: Likewise.
17511 * sysdeps/unix/sysv/linux/ia64/librt.abilist: Likewise.
17512 * sysdeps/unix/sysv/linux/ia64/libthread_db.abilist: Likewise.
17513 * sysdeps/unix/sysv/linux/ia64/libutil.abilist: Likewise.
17514 * sysdeps/unix/sysv/linux/m68k/coldfire/ld.abilist: Likewise.
17515 * sysdeps/unix/sysv/linux/m68k/coldfire/libBrokenLocale.abilist:
17516 Likewise.
17517 * sysdeps/unix/sysv/linux/m68k/coldfire/libanl.abilist: Likewise.
17518 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
17519 * sysdeps/unix/sysv/linux/m68k/coldfire/libcrypt.abilist: Likewise.
17520 * sysdeps/unix/sysv/linux/m68k/coldfire/libdl.abilist: Likewise.
17521 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
17522 * sysdeps/unix/sysv/linux/m68k/coldfire/libnsl.abilist: Likewise.
17523 * sysdeps/unix/sysv/linux/m68k/coldfire/libpthread.abilist: Likewise.
17524 * sysdeps/unix/sysv/linux/m68k/coldfire/libresolv.abilist: Likewise.
17525 * sysdeps/unix/sysv/linux/m68k/coldfire/librt.abilist: Likewise.
17526 * sysdeps/unix/sysv/linux/m68k/coldfire/libthread_db.abilist: Likewise.
17527 * sysdeps/unix/sysv/linux/m68k/coldfire/libutil.abilist: Likewise.
17528 * sysdeps/unix/sysv/linux/m68k/m680x0/ld.abilist: Likewise.
17529 * sysdeps/unix/sysv/linux/m68k/m680x0/libBrokenLocale.abilist:
17530 Likewise.
17531 * sysdeps/unix/sysv/linux/m68k/m680x0/libanl.abilist: Likewise.
17532 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
17533 * sysdeps/unix/sysv/linux/m68k/m680x0/libcrypt.abilist: Likewise.
17534 * sysdeps/unix/sysv/linux/m68k/m680x0/libdl.abilist: Likewise.
17535 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
17536 * sysdeps/unix/sysv/linux/m68k/m680x0/libnsl.abilist: Likewise.
17537 * sysdeps/unix/sysv/linux/m68k/m680x0/libpthread.abilist: Likewise.
17538 * sysdeps/unix/sysv/linux/m68k/m680x0/libresolv.abilist: Likewise.
17539 * sysdeps/unix/sysv/linux/m68k/m680x0/librt.abilist: Likewise.
17540 * sysdeps/unix/sysv/linux/m68k/m680x0/libthread_db.abilist: Likewise.
17541 * sysdeps/unix/sysv/linux/m68k/m680x0/libutil.abilist: Likewise.
17542 * sysdeps/unix/sysv/linux/microblaze/ld.abilist: Likewise.
17543 * sysdeps/unix/sysv/linux/microblaze/libBrokenLocale.abilist: Likewise.
17544 * sysdeps/unix/sysv/linux/microblaze/libanl.abilist: Likewise.
17545 * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
17546 * sysdeps/unix/sysv/linux/microblaze/libcrypt.abilist: Likewise.
17547 * sysdeps/unix/sysv/linux/microblaze/libdl.abilist: Likewise.
17548 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
17549 * sysdeps/unix/sysv/linux/microblaze/libnsl.abilist: Likewise.
17550 * sysdeps/unix/sysv/linux/microblaze/libpthread.abilist: Likewise.
17551 * sysdeps/unix/sysv/linux/microblaze/libresolv.abilist: Likewise.
17552 * sysdeps/unix/sysv/linux/microblaze/librt.abilist: Likewise.
17553 * sysdeps/unix/sysv/linux/microblaze/libthread_db.abilist: Likewise.
17554 * sysdeps/unix/sysv/linux/microblaze/libutil.abilist: Likewise.
17555 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
17556 * sysdeps/unix/sysv/linux/mips/mips32/ld.abilist: Likewise.
17557 * sysdeps/unix/sysv/linux/mips/mips32/libBrokenLocale.abilist:
17558 Likewise.
17559 * sysdeps/unix/sysv/linux/mips/mips32/libanl.abilist: Likewise.
17560 * sysdeps/unix/sysv/linux/mips/mips32/libcidn.abilist: Likewise.
17561 * sysdeps/unix/sysv/linux/mips/mips32/libcrypt.abilist: Likewise.
17562 * sysdeps/unix/sysv/linux/mips/mips32/libdl.abilist: Likewise.
17563 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
17564 * sysdeps/unix/sysv/linux/mips/mips32/libnsl.abilist: Likewise.
17565 * sysdeps/unix/sysv/linux/mips/mips32/libnss_compat.abilist: Likewise.
17566 * sysdeps/unix/sysv/linux/mips/mips32/libnss_db.abilist: Likewise.
17567 * sysdeps/unix/sysv/linux/mips/mips32/libnss_dns.abilist: Likewise.
17568 * sysdeps/unix/sysv/linux/mips/mips32/libnss_files.abilist: Likewise.
17569 * sysdeps/unix/sysv/linux/mips/mips32/libnss_hesiod.abilist: Likewise.
17570 * sysdeps/unix/sysv/linux/mips/mips32/libnss_nis.abilist: Likewise.
17571 * sysdeps/unix/sysv/linux/mips/mips32/libnss_nisplus.abilist: Likewise.
17572 * sysdeps/unix/sysv/linux/mips/mips32/libpthread.abilist: Likewise.
17573 * sysdeps/unix/sysv/linux/mips/mips32/libresolv.abilist: Likewise.
17574 * sysdeps/unix/sysv/linux/mips/mips32/librt.abilist: Likewise.
17575 * sysdeps/unix/sysv/linux/mips/mips32/libthread_db.abilist: Likewise.
17576 * sysdeps/unix/sysv/linux/mips/mips32/libutil.abilist: Likewise.
17577 * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist: Likewise.
17578 * sysdeps/unix/sysv/linux/mips/mips64/libBrokenLocale.abilist:
17579 Likewise.
17580 * sysdeps/unix/sysv/linux/mips/mips64/libanl.abilist: Likewise.
17581 * sysdeps/unix/sysv/linux/mips/mips64/libcrypt.abilist: Likewise.
17582 * sysdeps/unix/sysv/linux/mips/mips64/libdl.abilist: Likewise.
17583 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
17584 * sysdeps/unix/sysv/linux/mips/mips64/libnsl.abilist: Likewise.
17585 * sysdeps/unix/sysv/linux/mips/mips64/libpthread.abilist: Likewise.
17586 * sysdeps/unix/sysv/linux/mips/mips64/librt.abilist: Likewise.
17587 * sysdeps/unix/sysv/linux/mips/mips64/libthread_db.abilist: Likewise.
17588 * sysdeps/unix/sysv/linux/mips/mips64/libutil.abilist: Likewise.
17589 * sysdeps/unix/sysv/linux/mips/mips64/n32/ld.abilist: Likewise.
17590 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
17591 * sysdeps/unix/sysv/linux/mips/mips64/n32/libresolv.abilist: Likewise.
17592 * sysdeps/unix/sysv/linux/mips/mips64/n64/ld.abilist: Likewise.
17593 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
17594 * sysdeps/unix/sysv/linux/mips/mips64/n64/libresolv.abilist: Likewise.
17595 * sysdeps/unix/sysv/linux/nios2/ld.abilist: Likewise.
17596 * sysdeps/unix/sysv/linux/nios2/libBrokenLocale.abilist: Likewise.
17597 * sysdeps/unix/sysv/linux/nios2/libanl.abilist: Likewise.
17598 * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise.
17599 * sysdeps/unix/sysv/linux/nios2/libcrypt.abilist: Likewise.
17600 * sysdeps/unix/sysv/linux/nios2/libdl.abilist: Likewise.
17601 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
17602 * sysdeps/unix/sysv/linux/nios2/libnsl.abilist: Likewise.
17603 * sysdeps/unix/sysv/linux/nios2/libpthread.abilist: Likewise.
17604 * sysdeps/unix/sysv/linux/nios2/libresolv.abilist: Likewise.
17605 * sysdeps/unix/sysv/linux/nios2/librt.abilist: Likewise.
17606 * sysdeps/unix/sysv/linux/nios2/libthread_db.abilist: Likewise.
17607 * sysdeps/unix/sysv/linux/nios2/libutil.abilist: Likewise.
17608 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist: Likewise.
17609 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Likewise.
17610 * sysdeps/unix/sysv/linux/powerpc/powerpc32/ld.abilist: Likewise.
17611 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libBrokenLocale.abilist:
17612 Likewise.
17613 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libanl.abilist: Likewise.
17614 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libcrypt.abilist: Likewise.
17615 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libdl.abilist: Likewise.
17616 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libnsl.abilist: Likewise.
17617 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libpthread.abilist:
17618 Likewise.
17619 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libresolv.abilist:
17620 Likewise.
17621 * sysdeps/unix/sysv/linux/powerpc/powerpc32/librt.abilist: Likewise.
17622 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libthread_db.abilist:
17623 Likewise.
17624 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libutil.abilist: Likewise.
17625 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
17626 Likewise.
17627 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
17628 Likewise.
17629 * sysdeps/unix/sysv/linux/powerpc/powerpc64/ld-le.abilist: Likewise.
17630 * sysdeps/unix/sysv/linux/powerpc/powerpc64/ld.abilist: Likewise.
17631 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libBrokenLocale-le.abilist:
17632 Likewise.
17633 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libBrokenLocale.abilist:
17634 Likewise.
17635 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libanl-le.abilist:
17636 Likewise.
17637 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libanl.abilist: Likewise.
17638 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist: Likewise.
17639 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist: Likewise.
17640 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libcrypt-le.abilist:
17641 Likewise.
17642 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libcrypt.abilist: Likewise.
17643 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libdl-le.abilist: Likewise.
17644 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libdl.abilist: Likewise.
17645 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Likewise.
17646 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Likewise.
17647 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libnsl-le.abilist:
17648 Likewise.
17649 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libnsl.abilist: Likewise.
17650 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libpthread-le.abilist:
17651 Likewise.
17652 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libpthread.abilist:
17653 Likewise.
17654 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libresolv-le.abilist:
17655 Likewise.
17656 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libresolv.abilist:
17657 Likewise.
17658 * sysdeps/unix/sysv/linux/powerpc/powerpc64/librt-le.abilist: Likewise.
17659 * sysdeps/unix/sysv/linux/powerpc/powerpc64/librt.abilist: Likewise.
17660 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libthread_db-le.abilist:
17661 Likewise.
17662 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libthread_db.abilist:
17663 Likewise.
17664 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libutil-le.abilist:
17665 Likewise.
17666 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libutil.abilist: Likewise.
17667 * sysdeps/unix/sysv/linux/riscv/rv64/ld.abilist: Likewise.
17668 * sysdeps/unix/sysv/linux/riscv/rv64/libBrokenLocale.abilist:
17669 Likewise.
17670 * sysdeps/unix/sysv/linux/riscv/rv64/libanl.abilist: Likewise.
17671 * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist: Likewise.
17672 * sysdeps/unix/sysv/linux/riscv/rv64/libcrypt.abilist: Likewise.
17673 * sysdeps/unix/sysv/linux/riscv/rv64/libdl.abilist: Likewise.
17674 * sysdeps/unix/sysv/linux/riscv/rv64/libm.abilist: Likewise.
17675 * sysdeps/unix/sysv/linux/riscv/rv64/libnsl.abilist: Likewise.
17676 * sysdeps/unix/sysv/linux/riscv/rv64/libpthread.abilist: Likewise.
17677 * sysdeps/unix/sysv/linux/riscv/rv64/libresolv.abilist: Likewise.
17678 * sysdeps/unix/sysv/linux/riscv/rv64/librt.abilist: Likewise.
17679 * sysdeps/unix/sysv/linux/riscv/rv64/libthread_db.abilist: Likewise.
17680 * sysdeps/unix/sysv/linux/riscv/rv64/libutil.abilist: Likewise.
17681 * sysdeps/unix/sysv/linux/s390/libanl.abilist: Likewise.
17682 * sysdeps/unix/sysv/linux/s390/s390-32/ld.abilist: Likewise.
17683 * sysdeps/unix/sysv/linux/s390/s390-32/libBrokenLocale.abilist:
17684 Likewise.
17685 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
17686 * sysdeps/unix/sysv/linux/s390/s390-32/libcrypt.abilist: Likewise.
17687 * sysdeps/unix/sysv/linux/s390/s390-32/libdl.abilist: Likewise.
17688 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
17689 * sysdeps/unix/sysv/linux/s390/s390-32/libnsl.abilist: Likewise.
17690 * sysdeps/unix/sysv/linux/s390/s390-32/libpthread.abilist: Likewise.
17691 * sysdeps/unix/sysv/linux/s390/s390-32/libresolv.abilist: Likewise.
17692 * sysdeps/unix/sysv/linux/s390/s390-32/librt.abilist: Likewise.
17693 * sysdeps/unix/sysv/linux/s390/s390-32/libthread_db.abilist: Likewise.
17694 * sysdeps/unix/sysv/linux/s390/s390-32/libutil.abilist: Likewise.
17695 * sysdeps/unix/sysv/linux/s390/s390-64/ld.abilist: Likewise.
17696 * sysdeps/unix/sysv/linux/s390/s390-64/libBrokenLocale.abilist:
17697 Likewise.
17698 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
17699 * sysdeps/unix/sysv/linux/s390/s390-64/libcrypt.abilist: Likewise.
17700 * sysdeps/unix/sysv/linux/s390/s390-64/libdl.abilist: Likewise.
17701 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
17702 * sysdeps/unix/sysv/linux/s390/s390-64/libnsl.abilist: Likewise.
17703 * sysdeps/unix/sysv/linux/s390/s390-64/libpthread.abilist: Likewise.
17704 * sysdeps/unix/sysv/linux/s390/s390-64/libresolv.abilist: Likewise.
17705 * sysdeps/unix/sysv/linux/s390/s390-64/librt.abilist: Likewise.
17706 * sysdeps/unix/sysv/linux/s390/s390-64/libthread_db.abilist: Likewise.
17707 * sysdeps/unix/sysv/linux/s390/s390-64/libutil.abilist: Likewise.
17708 * sysdeps/unix/sysv/linux/sh/ld.abilist: Likewise.
17709 * sysdeps/unix/sysv/linux/sh/libBrokenLocale.abilist: Likewise.
17710 * sysdeps/unix/sysv/linux/sh/libanl.abilist: Likewise.
17711 * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
17712 * sysdeps/unix/sysv/linux/sh/libcrypt.abilist: Likewise.
17713 * sysdeps/unix/sysv/linux/sh/libdl.abilist: Likewise.
17714 * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
17715 * sysdeps/unix/sysv/linux/sh/libnsl.abilist: Likewise.
17716 * sysdeps/unix/sysv/linux/sh/libpthread.abilist: Likewise.
17717 * sysdeps/unix/sysv/linux/sh/libresolv.abilist: Likewise.
17718 * sysdeps/unix/sysv/linux/sh/librt.abilist: Likewise.
17719 * sysdeps/unix/sysv/linux/sh/libthread_db.abilist: Likewise.
17720 * sysdeps/unix/sysv/linux/sh/libutil.abilist: Likewise.
17721 * sysdeps/unix/sysv/linux/sparc/sparc32/ld.abilist: Likewise.
17722 * sysdeps/unix/sysv/linux/sparc/sparc32/libBrokenLocale.abilist:
17723 Likewise.
17724 * sysdeps/unix/sysv/linux/sparc/sparc32/libanl.abilist: Likewise.
17725 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
17726 * sysdeps/unix/sysv/linux/sparc/sparc32/libcrypt.abilist: Likewise.
17727 * sysdeps/unix/sysv/linux/sparc/sparc32/libdl.abilist: Likewise.
17728 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
17729 * sysdeps/unix/sysv/linux/sparc/sparc32/libnsl.abilist: Likewise.
17730 * sysdeps/unix/sysv/linux/sparc/sparc32/libpthread.abilist: Likewise.
17731 * sysdeps/unix/sysv/linux/sparc/sparc32/libresolv.abilist: Likewise.
17732 * sysdeps/unix/sysv/linux/sparc/sparc32/librt.abilist: Likewise.
17733 * sysdeps/unix/sysv/linux/sparc/sparc32/libthread_db.abilist: Likewise.
17734 * sysdeps/unix/sysv/linux/sparc/sparc32/libutil.abilist: Likewise.
17735 * sysdeps/unix/sysv/linux/sparc/sparc64/ld.abilist: Likewise.
17736 * sysdeps/unix/sysv/linux/sparc/sparc64/libBrokenLocale.abilist:
17737 Likewise.
17738 * sysdeps/unix/sysv/linux/sparc/sparc64/libanl.abilist: Likewise.
17739 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
17740 * sysdeps/unix/sysv/linux/sparc/sparc64/libcrypt.abilist: Likewise.
17741 * sysdeps/unix/sysv/linux/sparc/sparc64/libdl.abilist: Likewise.
17742 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
17743 * sysdeps/unix/sysv/linux/sparc/sparc64/libnsl.abilist: Likewise.
17744 * sysdeps/unix/sysv/linux/sparc/sparc64/libpthread.abilist: Likewise.
17745 * sysdeps/unix/sysv/linux/sparc/sparc64/libresolv.abilist: Likewise.
17746 * sysdeps/unix/sysv/linux/sparc/sparc64/librt.abilist: Likewise.
17747 * sysdeps/unix/sysv/linux/sparc/sparc64/libthread_db.abilist: Likewise.
17748 * sysdeps/unix/sysv/linux/sparc/sparc64/libutil.abilist: Likewise.
17749 * sysdeps/unix/sysv/linux/x86_64/64/ld.abilist: Likewise.
17750 * sysdeps/unix/sysv/linux/x86_64/64/libBrokenLocale.abilist: Likewise.
17751 * sysdeps/unix/sysv/linux/x86_64/64/libanl.abilist: Likewise.
17752 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
17753 * sysdeps/unix/sysv/linux/x86_64/64/libcrypt.abilist: Likewise.
17754 * sysdeps/unix/sysv/linux/x86_64/64/libdl.abilist: Likewise.
17755 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
17756 * sysdeps/unix/sysv/linux/x86_64/64/libnsl.abilist: Likewise.
17757 * sysdeps/unix/sysv/linux/x86_64/64/libpthread.abilist: Likewise.
17758 * sysdeps/unix/sysv/linux/x86_64/64/libresolv.abilist: Likewise.
17759 * sysdeps/unix/sysv/linux/x86_64/64/librt.abilist: Likewise.
17760 * sysdeps/unix/sysv/linux/x86_64/64/libthread_db.abilist: Likewise.
17761 * sysdeps/unix/sysv/linux/x86_64/64/libutil.abilist: Likewise.
17762 * sysdeps/unix/sysv/linux/x86_64/libmvec.abilist: Likewise.
17763 * sysdeps/unix/sysv/linux/x86_64/x32/ld.abilist: Likewise.
17764 * sysdeps/unix/sysv/linux/x86_64/x32/libBrokenLocale.abilist: Likewise.
17765 * sysdeps/unix/sysv/linux/x86_64/x32/libanl.abilist: Likewise.
17766 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
17767 * sysdeps/unix/sysv/linux/x86_64/x32/libcrypt.abilist: Likewise.
17768 * sysdeps/unix/sysv/linux/x86_64/x32/libdl.abilist: Likewise.
17769 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
17770 * sysdeps/unix/sysv/linux/x86_64/x32/libnsl.abilist: Likewise.
17771 * sysdeps/unix/sysv/linux/x86_64/x32/libpthread.abilist: Likewise.
17772 * sysdeps/unix/sysv/linux/x86_64/x32/libresolv.abilist: Likewise.
17773 * sysdeps/unix/sysv/linux/x86_64/x32/librt.abilist: Likewise.
17774 * sysdeps/unix/sysv/linux/x86_64/x32/libthread_db.abilist: Likewise.
17775 * sysdeps/unix/sysv/linux/x86_64/x32/libutil.abilist: Likewise.
17776
17777 2018-05-04 Stefan Liebler <stli@linux.vnet.ibm.com>
17778
17779 [BZ #23137]
17780 * sysdeps/nptl/lowlevellock.h (lll_wait_tid):
17781 Use atomic_load_acquire to load __tid.
17782
17783 2018-05-02 H.J. Lu <hongjiu.lu@intel.com>
17784
17785 * sysdeps/unix/sysv/linux/x86_64/swapcontext.S (__swapcontext):
17786 Restore the pointer into %rdx, after syscall and use %rdx,
17787 instead of %rsi, to restore context.
17788
17789 2018-05-02 H.J. Lu <hongjiu.lu@intel.com>
17790
17791 * sysdeps/unix/sysv/linux/x86_64/setcontext.S (__setcontext):
17792 Pop the pointer into %rdx after syscall and use %rdx, instead
17793 of %rsi, to restore context.
17794
17795 2018-05-02 H.J. Lu <hongjiu.lu@intel.com>
17796
17797 * nptl/pthread_create.c (START_THREAD_DEFN): Clear previous
17798 handlers after setjmp.
17799 * setjmp/longjmp.c (__libc_longjmp): Don't define alias if
17800 defined.
17801 * sysdeps/unix/sysv/linux/x86/setjmpP.h: Include
17802 <libc-pointer-arith.h>.
17803 (_JUMP_BUF_SIGSET_BITS_PER_WORD): New.
17804 (_JUMP_BUF_SIGSET_NSIG): Changed to 96.
17805 (_JUMP_BUF_SIGSET_NWORDS): Changed to use ALIGN_UP and
17806 _JUMP_BUF_SIGSET_BITS_PER_WORD.
17807 * sysdeps/x86/Makefile (sysdep_routines): Add __longjmp_cancel.
17808 * sysdeps/x86/__longjmp_cancel.S: New file.
17809 * sysdeps/x86/longjmp.c: Likewise.
17810 * sysdeps/x86/nptl/pt-longjmp.c: Likewise.
17811
17812 2018-05-02 Adhemerval Zanella <adhemerval.zanella@linaro.org>
17813
17814 * NEWS: Add ustat.h deprecation entry.
17815 * bits/ustat.h: Remove file.
17816 * misc/sys/ustat.h: Likewise.
17817 * misc/ustat.h: Likewise.
17818 * sysdeps/unix/sysv/linux/generic/ustat.c: Likewise.
17819 * misc/Makefile (headers): Remove ustat.h and sys/ustat.h.
17820 * misc/ustat.c (__ustat): Rename to __old_ustat and export only in
17821 compatibility mode.
17822 * sysdeps/unix/sysv/linux/ustat.c (__ustat): Likewise.
17823 * sysdeps/unix/sysv/linux/mips/ustat.c: Define DEV_TO_KDEV and use
17824 generic Linux implementation.
17825
17826 2018-04-30 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
17827
17828 * math/w_exp_compat.c: Replace hidden_def with libm_hidden_def..
17829 * math/w_expl_compat.c: Likewise.
17830 * math/w_exp_template.c: Likewise. Remove hidden_def_x.
17831
17832 2018-04-30 Raymond Nicholson <rain1@airmail.cc>
17833
17834 * manual/startup.texi (Aborting a Program): Remove inappropriate joke.
17835
17836 2018-04-27 Adhemerval Zanella <adhemerval.zanella@linaro.org>
17837
17838 * sysdeps/unix/sysv/linux/arm/readahead.c: Remove file.
17839 * sysdeps/unix/sysv/linux/mips/mips32/readahead.c: Likewise.
17840 * sysdeps/unix/sysv/linux/mips/mips64/n32/syscalls.list (readahead):
17841 Remove.
17842 * sysdeps/unix/sysv/linux/mips/mips64/n64/syscalls.list: Likewise.
17843 * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list: Likewise.
17844 * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Likewise.
17845 * sysdeps/unix/sysv/linux/readahead.c (__readahead): Assume
17846 __NR_readahead existence, and use INLINE_SYSCALL_CALL, __ALIGNMENT_ARG,
17847 and SYSCALL_LL64.
17848
17849 2018-04-27 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
17850
17851 * math/e_exp2_template.c: Replace M_SUF (M_LN2) with M_MLIT (M_LN2).
17852
17853 * math/w_acos_template.c: Replace M_SUF (fabs) with M_FABS.
17854 * math/w_asin_template.c: Likewise.
17855 * math/w_atanh_template.c: Likewise.
17856
17857 2018-04-27 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
17858
17859 * sysdeps/powerpc/preconfigure [machine == powerpc64] (machine): Define
17860 to powerpc/powerpc64/be for big-endian.
17861 [machine == powerpc64le]: Define to powerpc/powerpc64/le for
17862 little-endian.
17863
17864 * sysdeps/powerpc/powerpc64/power4/Implies: Move to powerpc64/be.
17865 * sysdeps/powerpc/powerpc64/power4/fpu/Implies: Likewise.
17866 * sysdeps/powerpc/powerpc64/power4/fpu/multiarch/Implies: Likewise.
17867 * sysdeps/powerpc/powerpc64/power4/multiarch/Implies: Likewise.
17868 * sysdeps/powerpc/powerpc64/power5+/Implies: Likewise.
17869 * sysdeps/powerpc/powerpc64/power5+/fpu/Implies: Likewise.
17870 * sysdeps/powerpc/powerpc64/power5+/fpu/multiarch/Implies: Likewise.
17871 * sysdeps/powerpc/powerpc64/power5+/multiarch/Implies: Likewise.
17872 * sysdeps/powerpc/powerpc64/power5/Implies: Likewise.
17873 * sysdeps/powerpc/powerpc64/power5/fpu/Implies: Likewise.
17874 * sysdeps/powerpc/powerpc64/power5/fpu/multiarch/Implies: Likewise.
17875 * sysdeps/powerpc/powerpc64/power5/multiarch/Implies: Likewise.
17876 * sysdeps/powerpc/powerpc64/power6/Implies: Likewise.
17877 * sysdeps/powerpc/powerpc64/power6/fpu/Implies: Likewise.
17878 * sysdeps/powerpc/powerpc64/power6/fpu/multiarch/Implies: Likewise.
17879 * sysdeps/powerpc/powerpc64/power6/multiarch/Implies: Likewise.
17880 * sysdeps/powerpc/powerpc64/power6x/Implies: Likewise.
17881 * sysdeps/powerpc/powerpc64/power6x/fpu/Implies: Likewise.
17882 * sysdeps/powerpc/powerpc64/power6x/fpu/multiarch/Implies: Likewise.
17883 * sysdeps/powerpc/powerpc64/power6x/multiarch/Implies: Likewise.
17884 * sysdeps/powerpc/powerpc64/power7/Implies: Likewise.
17885 * sysdeps/powerpc/powerpc64/power7/fpu/Implies: Likewise.
17886 * sysdeps/powerpc/powerpc64/power7/fpu/multiarch/Implies: Likewise.
17887 * sysdeps/powerpc/powerpc64/power7/multiarch/Implies: Likewise.
17888 * sysdeps/powerpc/powerpc64/power8/Implies: Likewise.
17889 * sysdeps/powerpc/powerpc64/power8/fpu/Implies: Likewise.
17890 * sysdeps/powerpc/powerpc64/power8/fpu/multiarch/Implies: Likewise.
17891 * sysdeps/powerpc/powerpc64/power8/multiarch/Implies: Likewise.
17892 * sysdeps/powerpc/powerpc64/power9/Implies: Likewise.
17893 * sysdeps/powerpc/powerpc64/power9/fpu/Implies: Likewise.
17894 * sysdeps/powerpc/powerpc64/power9/fpu/multiarch/Implies: Likewise.
17895 * sysdeps/powerpc/powerpc64/power9/multiarch/Implies: Likewise.
17896
17897 * sysdeps/powerpc/powerpc64/be/power4/Implies: Move from powerpc64 and
17898 adjusted to imply powerpc64 and older processors on powerpc64/be.
17899 * sysdeps/powerpc/powerpc64/be/power4/fpu/Implies: Likewise.
17900 * sysdeps/powerpc/powerpc64/be/power4/fpu/multiarch/Implies: Likewise.
17901 * sysdeps/powerpc/powerpc64/be/power4/multiarch/Implies: Likewise.
17902 * sysdeps/powerpc/powerpc64/be/power5+/Implies: Likewise.
17903 * sysdeps/powerpc/powerpc64/be/power5+/fpu/Implies: Likewise.
17904 * sysdeps/powerpc/powerpc64/be/power5+/fpu/multiarch/Implies: Likewise.
17905 * sysdeps/powerpc/powerpc64/be/power5+/multiarch/Implies: Likewise.
17906 * sysdeps/powerpc/powerpc64/be/power5/Implies: Likewise.
17907 * sysdeps/powerpc/powerpc64/be/power5/fpu/Implies: Likewise.
17908 * sysdeps/powerpc/powerpc64/be/power5/fpu/multiarch/Implies: Likewise.
17909 * sysdeps/powerpc/powerpc64/be/power5/multiarch/Implies: Likewise.
17910 * sysdeps/powerpc/powerpc64/be/power6/Implies: Likewise.
17911 * sysdeps/powerpc/powerpc64/be/power6/fpu/Implies: Likewise.
17912 * sysdeps/powerpc/powerpc64/be/power6/fpu/multiarch/Implies: Likewise.
17913 * sysdeps/powerpc/powerpc64/be/power6/multiarch/Implies: Likewise.
17914 * sysdeps/powerpc/powerpc64/be/power6x/Implies: Likewise.
17915 * sysdeps/powerpc/powerpc64/be/power6x/fpu/Implies: Likewise.
17916 * sysdeps/powerpc/powerpc64/be/power6x/fpu/multiarch/Implies: Likewise.
17917 * sysdeps/powerpc/powerpc64/be/power6x/multiarch/Implies: Likewise.
17918 * sysdeps/powerpc/powerpc64/be/power7/Implies: Likewise.
17919 * sysdeps/powerpc/powerpc64/be/power7/fpu/Implies: Likewise.
17920 * sysdeps/powerpc/powerpc64/be/power7/fpu/multiarch/Implies: Likewise.
17921 * sysdeps/powerpc/powerpc64/be/power7/multiarch/Implies: Likewise.
17922 * sysdeps/powerpc/powerpc64/be/power8/Implies: Likewise.
17923 * sysdeps/powerpc/powerpc64/be/power8/fpu/Implies: Likewise.
17924 * sysdeps/powerpc/powerpc64/be/power8/fpu/multiarch/Implies: Likewise.
17925 * sysdeps/powerpc/powerpc64/be/power8/multiarch/Implies: Likewise.
17926 * sysdeps/powerpc/powerpc64/be/power9/Implies: Likewise.
17927 * sysdeps/powerpc/powerpc64/be/power9/fpu/Implies: Likewise.
17928 * sysdeps/powerpc/powerpc64/be/power9/fpu/multiarch/Implies: Likewise.
17929 * sysdeps/powerpc/powerpc64/be/power9/multiarch/Implies: Likewise.
17930
17931 * sysdeps/powerpc/powerpc64/970/Implies: Move to powerpc64/be.
17932 * sysdeps/powerpc/powerpc64/be/970/Implies: Move from powerpc64/be.
17933 * sysdeps/powerpc/powerpc64/be/a2/Implies: New file.
17934 * sysdeps/powerpc/powerpc64/be/cell/Implies: Likewise.
17935
17936 * sysdeps/powerpc/powerpc64/be/Implies: New file.
17937 * sysdeps/powerpc/powerpc64/be/fpu/Implies: Likewise.
17938 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/Implies: Likewise.
17939 * sysdeps/powerpc/powerpc64/be/multiarch/Implies: Likewise.
17940
17941 * sysdeps/powerpc/powerpc64le/Implies: Move to powerpc64/le.
17942 * sysdeps/powerpc/powerpc64le/Implies-before: Likewise.
17943 * sysdeps/powerpc/powerpc64le/Makefile: Likewise.
17944 * sysdeps/powerpc/powerpc64le/configure: Likewise.
17945 * sysdeps/powerpc/powerpc64le/configure.ac: Likewise.
17946 * sysdeps/powerpc/powerpc64le/fpu/Implies: Likewise.
17947 * sysdeps/powerpc/powerpc64le/fpu/e_sqrtf128.c: Likewise.
17948 * sysdeps/powerpc/powerpc64le/fpu/multiarch/Implies: Likewise.
17949 * sysdeps/powerpc/powerpc64le/fpu/sfp-machine.h: Likewise.
17950 * sysdeps/powerpc/powerpc64le/multiarch/Implies: Likewise.
17951 * sysdeps/powerpc/powerpc64le/power9/fpu/e_sqrtf128.c: Likewise.
17952
17953 * sysdeps/powerpc/powerpc64/le/Implies: Move from powerpc64le.
17954 * sysdeps/powerpc/powerpc64/le/Implies-before: Likewise.
17955 * sysdeps/powerpc/powerpc64/le/Makefile: Likewise.
17956 * sysdeps/powerpc/powerpc64/le/configure: Likewise.
17957 * sysdeps/powerpc/powerpc64/le/configure.ac: Likewise.
17958 * sysdeps/powerpc/powerpc64/le/fpu/Implies: Likewise.
17959 * sysdeps/powerpc/powerpc64/le/fpu/e_sqrtf128.c: Likewise.
17960 * sysdeps/powerpc/powerpc64/le/fpu/multiarch/Implies: Likewise.
17961 * sysdeps/powerpc/powerpc64/le/fpu/sfp-machine.h: Likewise.
17962 * sysdeps/powerpc/powerpc64/le/multiarch/Implies: Likewise.
17963 * sysdeps/powerpc/powerpc64/le/power9/fpu/e_sqrtf128.c: Likewise.
17964
17965 * sysdeps/powerpc/powerpc64le/power7/Implies: Move to powerpc64/le.
17966 * sysdeps/powerpc/powerpc64le/power7/fpu/Implies: Likewise.
17967 * sysdeps/powerpc/powerpc64le/power7/fpu/multiarch/Implies: Likewise.
17968 * sysdeps/powerpc/powerpc64le/power7/multiarch/Implies: Likewise.
17969 * sysdeps/powerpc/powerpc64le/power8/Implies: Likewise.
17970 * sysdeps/powerpc/powerpc64le/power8/fpu/Implies: Likewise.
17971 * sysdeps/powerpc/powerpc64le/power8/fpu/multiarch/Implies: Likewise.
17972 * sysdeps/powerpc/powerpc64le/power8/multiarch/Implies: Likewise.
17973 * sysdeps/powerpc/powerpc64le/power9/Implies: Likewise.
17974 * sysdeps/powerpc/powerpc64le/power9/fpu/Implies: Likewise.
17975 * sysdeps/powerpc/powerpc64le/power9/fpu/multiarch/Implies: Likewise.
17976 * sysdeps/powerpc/powerpc64le/power9/multiarch/Implies: Likewise.
17977
17978 * sysdeps/powerpc/powerpc64/le/power7/Implies: Move from powerpc64le
17979 and adjusted to imply olders processors.
17980 * sysdeps/powerpc/powerpc64/le/power7/fpu/Implies: Likewise.
17981 * sysdeps/powerpc/powerpc64/le/power7/fpu/multiarch/Implies: Likewise.
17982 * sysdeps/powerpc/powerpc64/le/power7/multiarch/Implies: Likewise.
17983 * sysdeps/powerpc/powerpc64/le/power8/Implies: Likewise.
17984 * sysdeps/powerpc/powerpc64/le/power8/fpu/Implies: Likewise.
17985 * sysdeps/powerpc/powerpc64/le/power8/fpu/multiarch/Implies: Likewise.
17986 * sysdeps/powerpc/powerpc64/le/power8/multiarch/Implies: Likewise.
17987 * sysdeps/powerpc/powerpc64/le/power9/Implies: Likewise.
17988 * sysdeps/powerpc/powerpc64/le/power9/fpu/Implies: Likewise.
17989 * sysdeps/powerpc/powerpc64/le/power9/fpu/multiarch/Implies: Likewise.
17990 * sysdeps/powerpc/powerpc64/le/power9/multiarch/Implies: Likewise.
17991
17992 * sysdeps/unix/sysv/linux/powerpc/powerpc64le/Implies: Move to
17993 powerpc64/le.
17994 * sysdeps/unix/sysv/linux/powerpc/powerpc64le/float128-abi.h: Likewise.
17995 * sysdeps/unix/sysv/linux/powerpc/powerpc64le/fpu/Implies: Likewise.
17996
17997 * sysdeps/unix/sysv/linux/powerpc/powerpc64/le/Implies: Move from
17998 powerpc64le.
17999 * sysdeps/unix/sysv/linux/powerpc/powerpc64/le/float128-abi.h: Likewise.
18000 * sysdeps/unix/sysv/linux/powerpc/powerpc64/le/fpu/Implies: Likewise.
18001
18002 * sysdeps/unix/sysv/linux/powerpc/powerpc64/970/Implies: Move to
18003 powerpc64/be.
18004 * sysdeps/unix/sysv/linux/powerpc/powerpc64/a2/Implies: Likewise.
18005 * sysdeps/unix/sysv/linux/powerpc/powerpc64/cell/Implies: Likewise.
18006 * sysdeps/unix/sysv/linux/powerpc/powerpc64/cell/fpu/Implies: Likewise.
18007
18008 * sysdeps/unix/sysv/linux/powerpc/powerpc64/be/970/Implies: Move from
18009 powerpc64 and adjusted.
18010 * sysdeps/unix/sysv/linux/powerpc/powerpc64/be/a2/Implies: Likewise.
18011 * sysdeps/unix/sysv/linux/powerpc/powerpc64/be/cell/Implies: Likewise.
18012 * sysdeps/unix/sysv/linux/powerpc/powerpc64/be/cell/fpu/Implies:
18013 Likewise.
18014
18015 2018-04-27 Joseph Myers <joseph@codesourcery.com>
18016
18017 * sysdeps/tile: Remove.
18018 * sysdeps/unix/sysv/linux/tile: Likewise.
18019 * README (tilegx-*-linux-gnu): Remove from list of supported
18020 configurations.
18021 * manual/contrib.texi (Contributors): Mention Chris Metcalf's
18022 contribution of support for generic Linux kernel syscall
18023 interface.
18024 * scripts/build-many-glibcs.py (Context.add_all_configs): Remove
18025 tilegx configurations.
18026 (Config.install_linux_headers): Do not handle tile.
18027 * sysdeps/unix/sysv/linux/aarch64/ldsodefs.h: Do not mention Tile
18028 in comment.
18029 * sysdeps/unix/sysv/linux/nios2/Makefile: Likewise.
18030 * sysdeps/unix/sysv/linux/posix_fadvise.c: Likewise.
18031 [__ASSUME_FADVISE64_64_NO_ALIGN] (__ALIGNMENT_ARG): Remove
18032 conditional undefine and redefine.
18033 * sysdeps/unix/sysv/linux/posix_fadvise64.c: Do not mention Tile
18034 in comment.
18035 [__ASSUME_FADVISE64_64_NO_ALIGN] (__ALIGNMENT_ARG): Remove
18036 conditional undefine and redefine.
18037
18038 2018-04-26 Aurelien Jarno <aurelien@aurel32.net>
18039
18040 * signal/tst-sigaction.c: New file to test BZ #23069.
18041 * signal/Makefile (tests): Fix indentation. Add tst-sigaction.
18042
18043 2018-04-26 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
18044
18045 [BZ #22766]
18046 * include/dlfcn.h [__libc_dl_open]: Replace RTLD_LAZY with RTLD_NOW.
18047 * sysdeps/gnu/unwind-resume.c (__lib_gcc_s_init): Replace
18048 __libc_dlopen_mode() using RTLD_NOW with __libc_dlopen.
18049 * sysdeps/nptl/unwind-forcedunwind.c: Likewise.
18050
18051 2018-04-25 Adhemerval Zanella <adhemerval.zanella@linaro.org>
18052
18053 * sysdeps/unix/sysv/linux/getdirentries.c (getdirentries): Build iff
18054 _DIRENT_MATCHES_DIRENT64 is not defined.
18055 * sysdeps/unix/sysv/linux/getdirentries64.c (getdirentries64): Open
18056 implementation and alias to getdirentries if _DIRENT_MATCHES_DIRENT64
18057 is defined.
18058 * sysdeps/unix/sysv/linux/wordsize-64/getdirentries.c: Remove file.
18059 * sysdeps/unix/sysv/linux/wordsize-64/getdirentries64.c: Remove file.
18060
18061 2018-04-25 Joseph Myers <joseph@codesourcery.com>
18062
18063 * scripts/build-many-glibcs.py (Context.checkout): Default GCC
18064 version to GCC 8 branch.
18065
18066 2018-04-24 Joseph Myers <joseph@codesourcery.com>
18067
18068 * sysdeps/mach/hurd/dl-sysdep.c: Include <not-errno.h>.
18069 (check_no_hidden): Use type of original function when declaring
18070 alias.
18071
18072 * sysdeps/unix/sysv/linux/sys/ptrace.h
18073 (PTRACE_SECCOMP_GET_METADATA): New enum value and macro.
18074 * sysdeps/unix/sysv/linux/bits/ptrace-shared.h
18075 (struct __ptrace_seccomp_metadata): New type.
18076 * sysdeps/unix/sysv/linux/aarch64/sys/ptrace.h
18077 (PTRACE_SECCOMP_GET_METADATA): Likewise.
18078 * sysdeps/unix/sysv/linux/arm/sys/ptrace.h
18079 (PTRACE_SECCOMP_GET_METADATA): Likewise.
18080 * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h
18081 (PTRACE_SECCOMP_GET_METADATA): Likewise.
18082 * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h
18083 (PTRACE_SECCOMP_GET_METADATA): Likewise.
18084 * sysdeps/unix/sysv/linux/s390/sys/ptrace.h
18085 (PTRACE_SECCOMP_GET_METADATA): Likewise.
18086 * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h
18087 (PTRACE_SECCOMP_GET_METADATA): Likewise.
18088 * sysdeps/unix/sysv/linux/tile/sys/ptrace.h
18089 (PTRACE_SECCOMP_GET_METADATA): Likewise.
18090 * sysdeps/unix/sysv/linux/x86/sys/ptrace.h
18091 (PTRACE_SECCOMP_GET_METADATA): Likewise.
18092
18093 2018-04-23 Adhemerval Zanella <adhemerval.zanella@linaro.org>
18094
18095 * dirent/alphasort.c (alphasort): Build iff _DIRENT_MATCHES_DIRENT64 is
18096 defined.
18097 * dirent/versionsort.c (versionsort): Likewise.
18098 * dirent/alphasort64.c (alphasort64): Build regardless and alias to
18099 alphasort if _DIRENT_MATCHES_DIRENT64 is defined.
18100 * dirent/versionsort64.c (versionsort64): Likewise.
18101 * sysdeps/unix/sysv/linux/i386/alphasort64.c: Remove file.
18102 * sysdeps/unix/sysv/linux/arm/alphasort64.c: Likewise.
18103 * sysdeps/unix/sysv/linux/arm/versionsort64.c: Likewise.
18104 * sysdeps/unix/sysv/linux/m68k/alphasort64.c: Likewise.
18105 * sysdeps/unix/sysv/linux/m68k/versionsort64.c: Likewise.
18106 * sysdeps/unix/sysv/linux/s390/s390-32/alphasort64.c: Likewise.
18107 * sysdeps/unix/sysv/linux/s390/s390-32/versionsort64.c: Likewise.
18108 * sysdeps/unix/sysv/linux/i386/versionsort64.c: Likewise.
18109 * sysdeps/unix/sysv/linux/alphasort64.c: New file.
18110 * sysdeps/unix/sysv/linux/versionsort64.c: Likewise.
18111 * sysdeps/unix/sysv/linux/powerpc/powerpc32/alphasort64.c: Likewise.
18112 * sysdeps/unix/sysv/linux/powerpc/powerpc32/versionsort64.c: Likewise.
18113 * sysdeps/unix/sysv/linux/sparc/sparc32/alphasort64.c: Likewise.
18114 * sysdeps/unix/sysv/linux/sparc/sparc32/versionsort64.c: Likewise.
18115
18116 2018-04-23 Joseph Myers <joseph@codesourcery.com>
18117
18118 * elf/elf.h (NT_PPC_PKEY): New macro.
18119
18120 2018-04-23 Dragan Stanojevic - Nevidljivi <invisible@hidden-city.net>
18121
18122 [BZ #23094]
18123 * localedata/locales/hr_HR: fix thousands_sep and
18124 mon_thousands_sep
18125
18126 2018-04-20 Joseph Myers <joseph@codesourcery.com>
18127
18128 * sysdeps/unix/sysv/linux/alpha/bits/termios.h [__USE_MISC]
18129 (XTABS): Define to TAB3.
18130
18131 2018-04-20 Adhemerval Zanella <adhemerval.zanella@linaro.org>
18132
18133 * sysdeps/hppa/fpu/libm-test-ulps: Update.
18134
18135 * dirent/scandir-tail-common.c: New file.
18136 * dirent/scandir-tail.c: Use scandir-tail-common.c.
18137 (__scandir_tail): Build iff _DIRENT_MATCHES_DIRENT64 is not defined.
18138 * dirent/scandir.c: Use scandir-tail-common.c.
18139 * dirent/scandirat.c: Likewise.
18140 * dirent/scandir64-tail.c: Use scandir-tail-common.c.
18141 * dirent/scandir64.c (scandir64): Always build and alias to scandir
18142 if _DIRENT_MATCHES_DIRENT64 is defined.
18143 * dirent/scandirat64.c (scandirat64): Likewise.
18144 * include/dirent.h (__scandir_tail): Only define iff
18145 _DIRENT_MATCHES_DIRENT64 is not defined.
18146 (__scandir64_tail): Define regardless.
18147 (__scandirat, scandirat64): Remove libc_hidden_proto.
18148 * sysdeps/unix/sysv/linux/arm/scandir64.c: Remove file.
18149 * sysdeps/unix/sysv/linux/m68k/scandir64.c: Likewise.
18150 * sysdeps/unix/sysv/linux/powerpc/powerpc32/scandir64.c: Likewise.
18151 * sysdeps/unix/sysv/linux/s390/s390-32/scandir64.c: Likewise.
18152 * sysdeps/unix/sysv/linux/i386/scandir64.c: Likewise.
18153 * sysdeps/unix/sysv/linux/sparc/sparc32/scandir64.c: Likewise.
18154 * sysdeps/unix/sysv/linux/scandir64.c: New file.
18155
18156 2018-04-20 Joseph Myers <joseph@codesourcery.com>
18157
18158 * sysdeps/unix/sysv/linux/aarch64/bits/hwcap.h (HWCAP_ASIMDFHM):
18159 New macro.
18160 * sysdeps/unix/sysv/linux/aarch64/dl-procinfo.c (_DL_HWCAP_COUNT):
18161 Increase to 24.
18162 (_dl_aarch64_cap_flags): Add asimdfhm.
18163
18164 2018-04-19 Chung-Lin Tang <cltang@codesourcery.com>
18165
18166 * sysdeps/nios2/libm-test-ulps: Update.
18167
18168 2018-04-19 Adhemerval Zanella <adhemerval.zanella@linaro.org>
18169
18170 * sysdeps/unix/sysv/linux/mips/mips64/getdents64.c (__getdents64):
18171 Only alias to __getdents for _DIRENT_MATCHES_DIRENT64.
18172
18173 * sysdeps/unix/sysv/linux/alpha/getdents.c: Add comments with alpha
18174 requirements.
18175 (_DIRENT_MATCHES_DIRENT64): Undef
18176 * sysdeps/unix/sysv/linux/alpha/getdents64.c: Likewise.
18177 * sysdeps/unix/sysv/linux/arm/getdents64.c: Remove file.
18178 * sysdeps/unix/sysv/linux/generic/getdents.c: Likewise.
18179 * sysdeps/unix/sysv/linux/generic/getdents64.c: Likewise.
18180 * sysdeps/unix/sysv/linux/generic/wordsize-32/getdents.c: Likewise.
18181 * sysdeps/unix/sysv/linux/getdents.c: Simplify implementation by
18182 use getdents64 syscalls as base.
18183 * sysdeps/unix/sysv/linux/getdents64.c: Likewise and add compatibility
18184 symbol if required.
18185 * sysdeps/unix/sysv/linux/hppa/getdents64.c: Likewise.
18186 * sysdeps/unix/sysv/linux/i386/getdents64.c: Likewise.
18187 * sysdeps/unix/sysv/linux/m68k/getdents64.c: Likewise.
18188 * sysdeps/unix/sysv/linux/powerpc/getdents64.c: Likewise.
18189 * sysdeps/unix/sysv/linux/s390/s390-32/getdents64.c: Likewise.
18190 * sysdeps/unix/sysv/linux/sparc/sparc32/getdents64.c: Likewise.
18191 * sysdeps/unix/sysv/linux/wordsize-64/getdents.c: Likewise.
18192 * sysdeps/unix/sysv/linux/wordsize-64/getdents64.c: Likewise.
18193 * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
18194 (__get_clockfreq_via_proc_openprom): Use __getdents64.
18195 * sysdeps/unix/sysv/linux/mips/mips64/getdents64.c: New file.
18196
18197 2018-04-19 Stefan Liebler <stli@linux.vnet.ibm.com>
18198
18199 * scripts/test_printers_common.py (init_test): Disable lock elision.
18200
18201 2018-04-19 Stefan Liebler <stli@linux.vnet.ibm.com>
18202
18203 * math/test-tgmath.c (count_double, count_float,
18204 count_ldouble, count_cdouble, count_cfloat,
18205 count_cldouble): Use volatile int.
18206
18207 2018-04-19 Samuel Thibault <samuel.thibault@ens-lyon.org>
18208
18209 * sysdeps/mach/hurd/i386/Makefile [$(subdir) = conform]
18210 (conformtest-xfail-conds): Add i386-gnu.
18211 * conform/data/fcntl.h-data (flock.l_type, flock.l_whence): XFAIL on
18212 i386-gnu.
18213 * conform/data/sys/ipc.h-data (ipc_perm.uid, ipc_perm.gid,
18214 ipc_perm.cuid, ipc_perm.cgid): Likewise.
18215 * conform/data/sys/msg.h-data (msqid_ds.msg_lspid,
18216 msqid_ds.msg_lrpid): Likewise.
18217 * conform/data/sys/shm.h-data (shmid_ds.shm_lpid, shmid_ds.shm_cpid):
18218 Likewise.
18219 * conform/data/sys/stat.h-data (stat.st_dev): Likewise.
18220 * conform/data/sys/statvfs.h-data (statvfs.f_fsid): Likewise.
18221 * sysdeps/mach/hurd/bits/statvfs.h (struct statvfs): Make f_bsize,
18222 f_namemax, f_frsize, and f_flag fields unsigned long int instead of
18223 unsigned int.
18224 (struct statvfs64): Likewise.
18225 * sysdeps/mach/hurd/bits/statfs.h (struct statfs, struct statfs64):
18226 Likewise.
18227 * bits/in.h [!__USE_MISC]: Do not define struct ip_opts.
18228 * conform/data/netinet/in.h-data: Allow sin_ and sin6_ prefix.
18229 * sysdeps/gnu/bits/msq.h (struct msqid_ds): Use __wait_queue struct
18230 instead of wait_queue.
18231 * sysdeps/gnu/bits/shm.h (struct shmid_ds): Use __vm_area_struct
18232 instead of vm_area_struct.
18233 * bits/sched.h: Include <bits/types/struct_sched_param.h> and move
18234 struct sched_param definition to it.
18235 * sysdeps/unix/sysv/linux/bits/sched.h: Likewise.
18236 * bits/types/struct_sched_param.h: New file.
18237 * sysdeps/htl/bits/types/struct___pthread_attr.h: Include
18238 <bits/types/struct_sched_param.h> instead of <sched.h>.
18239 * posix/Makefile (headers): Add bits/types/struct_sched_param.h.
18240 * sysdeps/pthread/bits/types/sigevent_t.h: New file, based on the
18241 generic version but include <bits/pthreadtypes.h> to make struct
18242 sigevent's sigev_notify_attributes field a pthread_attr_t*.
18243 * bits/types/siginfo_t.h: Remove siginfo struct name, unused and
18244 non-compliant.
18245 * bits/termios.h [__USE_XOPEN || __USE_XOPEN2K8] (IXANY): Define.
18246 [__USE_XOPEN && !__USE_XOPEN2K] (IUCLC, OLCUC): Define.
18247 [__USE_XOPEN] (OFDEL): New macro.
18248 [__USE_XOPEN && !__USE_XOPEN2K] (XCASE): New macro.
18249 * bits/resource.h (RLIM_SAVED_MAX, RLIM_SAVED_CUR): New macros.
18250 * sysdeps/hurd/include/hurd.h [!_ISOMAC]: Do not declare libc hidden
18251 prototypes.
18252 * sysdeps/hurd/include/hurd/fd.h [!_ISOMAC]: Likewise.
18253 * sysdeps/hurd/include/hurd/signal.h [!_ISOMAC]: Likewise.
18254 * sysdeps/arm/sys/ucontext.h: Remove fpregset struct name, unused and
18255 non-compliant.
18256 * sysdeps/i386/sys/ucontext.h: Likewise.
18257 * sysdeps/m68k/sys/ucontext.h: Likewise.
18258 * sysdeps/mips/sys/ucontext.h: Likewise.
18259 * sysdeps/unix/sysv/linux/hppa/sys/ucontext.h: Likewise.
18260 * sysdeps/mach/hurd/i386/Makefile
18261 (test-xfail-POSIX/fcntl.h/conform): Add.
18262 (test-xfail-POSIX/signal.h/conform): Add.
18263 (test-xfail-POSIX/semaphore.h/conform): Add.
18264 (test-xfail-POSIX/regex.h/conform): Add.
18265 (test-xfail-POSIX/aio.h/conform): Add.
18266 (test-xfail-POSIX/mqueue.h/conform): Add.
18267 (test-xfail-POSIX/sys/types.h/conform): Add.
18268 (test-xfail-UNIX98/fcntl.h/conform): Add.
18269 (test-xfail-UNIX98/netdb.h/conform): Add.
18270 (test-xfail-UNIX98/signal.h/conform): Add.
18271 (test-xfail-UNIX98/semaphore.h/conform): Add.
18272 (test-xfail-UNIX98/regex.h/conform): Add.
18273 (test-xfail-UNIX98/aio.h/conform): Add.
18274 (test-xfail-UNIX98/ftw.h/conform): Add.
18275 (test-xfail-UNIX98/mqueue.h/conform): Add.
18276 (test-xfail-UNIX98/netinet/in.h/conform): Add.
18277 (test-xfail-UNIX98/sys/wait.h/conform): Add.
18278 (test-xfail-UNIX98/sys/sem.h/conform): Add.
18279 (test-xfail-UNIX98/sys/uio.h/conform): Add.
18280 (test-xfail-UNIX98/sys/socket.h/conform): Add.
18281 (test-xfail-UNIX98/sys/types.h/conform): Add.
18282 (test-xfail-UNIX98/stdlib.h/conform): Add.
18283 (test-xfail-UNIX98/arpa/inet.h/conform): Add.
18284 (test-xfail-POSIX2008/fcntl.h/conform): Add.
18285 (test-xfail-POSIX2008/netdb.h/conform): Add.
18286 (test-xfail-POSIX2008/signal.h/conform): Add.
18287 (test-xfail-POSIX2008/semaphore.h/conform): Add.
18288 (test-xfail-POSIX2008/regex.h/conform): Add.
18289 (test-xfail-POSIX2008/aio.h/conform): Add.
18290 (test-xfail-POSIX2008/mqueue.h/conform): Add.
18291 (test-xfail-POSIX2008/netinet/in.h/conform): Add.
18292 (test-xfail-POSIX2008/sys/wait.h/conform): Add.
18293 (test-xfail-POSIX2008/sys/socket.h/conform): Add.
18294 (test-xfail-POSIX2008/sys/types.h/conform): Add.
18295 (test-xfail-POSIX2008/arpa/inet.h/conform): Add.
18296 (test-xfail-XOPEN2K/fcntl.h/conform): Add.
18297 (test-xfail-XOPEN2K/netdb.h/conform): Add.
18298 (test-xfail-XOPEN2K/signal.h/conform): Add.
18299 (test-xfail-XOPEN2K/semaphore.h/conform): Add.
18300 (test-xfail-XOPEN2K/regex.h/conform): Add.
18301 (test-xfail-XOPEN2K/aio.h/conform): Add.
18302 (test-xfail-XOPEN2K/ftw.h/conform): Add.
18303 (test-xfail-XOPEN2K/mqueue.h/conform): Add.
18304 (test-xfail-XOPEN2K/netinet/in.h/conform): Add.
18305 (test-xfail-XOPEN2K/sys/wait.h/conform): Add.
18306 (test-xfail-XOPEN2K/sys/sem.h/conform): Add.
18307 (test-xfail-XOPEN2K/sys/uio.h/conform): Add.
18308 (test-xfail-XOPEN2K/sys/socket.h/conform): Add.
18309 (test-xfail-XOPEN2K/sys/types.h/conform): Add.
18310 (test-xfail-XOPEN2K/stdlib.h/conform): Add.
18311 (test-xfail-XOPEN2K/arpa/inet.h/conform): Add.
18312 (test-xfail-XOPEN2K8/fcntl.h/conform): Add.
18313 (test-xfail-XOPEN2K8/netdb.h/conform): Add.
18314 (test-xfail-XOPEN2K8/signal.h/conform): Add.
18315 (test-xfail-XOPEN2K8/semaphore.h/conform): Add.
18316 (test-xfail-XOPEN2K8/regex.h/conform): Add.
18317 (test-xfail-XOPEN2K8/aio.h/conform): Add.
18318 (test-xfail-XOPEN2K8/ftw.h/conform): Add.
18319 (test-xfail-XOPEN2K8/mqueue.h/conform): Add.
18320 (test-xfail-XOPEN2K8/netinet/in.h/conform): Add.
18321 (test-xfail-XOPEN2K8/sys/wait.h/conform): Add.
18322 (test-xfail-XOPEN2K8/sys/sem.h/conform): Add.
18323 (test-xfail-XOPEN2K8/sys/uio.h/conform): Add.
18324 (test-xfail-XOPEN2K8/sys/socket.h/conform): Add.
18325 (test-xfail-XOPEN2K8/sys/types.h/conform): Add.
18326 (test-xfail-XOPEN2K8/stdlib.h/conform): Add.
18327 (test-xfail-XOPEN2K8/arpa/inet.h/conform): Add.
18328 * conform/data/signal.h-data (SA_SIGINFO, SA_NOCLDWAIT): XFAIL on
18329 i386-gnu.
18330 * conform/data/sys/wait.h-data (WIFCONTINUED, WEXITED, WSTOPPED,
18331 WCONTINUED, WNOWAIT): XFAIL on i386-gnu.
18332
18333 2018-04-18 Joseph Myers <joseph@codesourcery.com>
18334
18335 * scripts/build-many-glibcs.py (Context.add_all_configs): Use
18336 --enable-obsolete for powerpc-linux-gnuspe.
18337
18338 2018-04-18 Samuel Thibault <samuel.thibault@ens-lyon.org>
18339
18340 * conform/data/sys/un.h-data: Allow sun_ prefix.
18341 * sysdeps/mach/include/lock-intern.h: Do not declare libc hidden
18342 prototypes.
18343 * sysdeps/mach/include/mach.h: Likewise.
18344 * sysdeps/mach/include/mach/mig_support.h: Likewise.
18345 * sysdeps/mach/include/mach_error.h: Likewise.
18346
18347 2018-04-16 Adhemerval Zanella <adhemerval.zanella@linaro.org>
18348
18349 * sysdeps/arm/armv6t2/memchr.S (memchr): Remove ARM code path.
18350 * sysdeps/arm/armv6t2/strlen.S (memchr): Likewise.
18351 * sysdeps/arm/armv7/multiarch/memchr_neon.S (memchr): Likewise.
18352 * sysdeps/arm/armv7/strcmp.S (strcmp): Likewise.
18353
18354 2018-04-16 Andreas Schwab <schwab@suse.de>
18355
18356 [BZ #19527]
18357 * iconvdata/gconv-modules (ARMSCII8//, ShiftJISX0213//): New aliases.
18358
18359 2018-04-15 Patrick McGehearty <patrick.mcgehearty@oracle.com>
18360
18361 * sysdeps/ieee754/dbl-64/e_exp.c: faster __ieee754_exp()
18362 * sysdeps/ieee754/dbl-64/eexp.tbl: New file for e_exp.c
18363
18364 2018-04-12 DJ Delorie <dj@redhat.com>
18365
18366 * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
18367 version to 4.16.
18368
18369 2018-04-12 Stefan Liebler <stli@linux.vnet.ibm.com>
18370
18371 * sysdeps/unix/sysv/linux/s390/kernel_sigaction.h
18372 (struct kernel_sigaction): Use the same definition on 31bit as is used
18373 on 64bit.
18374
18375 2018-04-09 Florian Weimer <fweimer@redhat.com>
18376
18377 [BZ #23037]
18378 * resolv/res_send.c (send_dg): Use designated initializers instead
18379 of assignment to zero-initialize other fields of struct mmsghdr.
18380
18381 2018-04-06 Adhemerval Zanella <adhemerval.zanella@linaro.org>
18382
18383 * sysdeps/posix/readdir.c (__READDIR, __GETDENTS, DIRENTY_TYPE,
18384 __READDIR_ALIAS): Undefine after usage.
18385 * sysdeps/posix/readdir_r.c (__READDIR_R, __GETDENTS, DIRENT_TYPE,
18386 __READDIR_R_ALIAS): Likewise.
18387 * sysdeps/unix/sysv/linux/arm/readdir64.c: Remove file.
18388 * sysdeps/unix/sysv/linux/arm/readdir64_r.c: Likewise.
18389 * sysdeps/unix/sysv/linux/m68k/readdir64.c: Likewise.
18390 * sysdeps/unix/sysv/linux/m68k/readdir64_r.c: Likewise.
18391 * sysdeps/unix/sysv/linux/powerpc/readdir64.c: Likewise.
18392 * sysdeps/unix/sysv/linux/powerpc/readdir64_r.c: Likewise.
18393 * sysdeps/unix/sysv/linux/i386/readdir64.c: Likewise.
18394 * sysdeps/unix/sysv/linux/i386/readdir64_r.c: Likewise.
18395 * sysdeps/unix/sysv/linux/s390/s390-32/readdir64.c: Likewise.
18396 * sysdeps/unix/sysv/linux/s390/s390-32/readdir64_r.c: Likewise.
18397 * sysdeps/unix/sysv/linux/sparc/sparc32/readdir64.c: Likewise.
18398 * sysdeps/unix/sysv/linux/sparc/sparc32/readdir64_r.c: Likewise.
18399 * sysdeps/unix/sysv/linux/wordsize-64/readdir.c: Likewise.
18400 * sysdeps/unix/sysv/linux/wordsize-64/readdir64.c: Likewise.
18401 * sysdeps/unix/sysv/linux/wordsize-64/readdir64_r.c: Likewise.
18402 * sysdeps/unix/sysv/linux/wordsize-64/readdir_r.c: Likewise.
18403 * sysdeps/unix/sysv/linux/readdir.c: New file.
18404 * sysdeps/unix/sysv/linux/readdir_r.c: Likewise.
18405 * sysdeps/unix/sysv/linux/readdir64.c: Add compat symbol if required.
18406 * sysdeps/unix/sysv/linux/readdir64_r.c: Likewise.
18407
18408 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Update.
18409
18410 2018-04-06 Andreas Schwab <schwab@linux-m68k.org>
18411
18412 * manual/charset.texi (Converting a Character): Fix typo.
18413
18414 2018-04-05 Adhemerval Zanella <adhemerval.zanella@linaro.org>
18415
18416 * sysdeps/sparc/fpu/libm-test-ulps: Update.
18417
18418 * sysdeps/arm/libm-test-ulps: Update.
18419
18420 * sysdeps/unix/sysv/linux/aarch64/sigaction.c: Use default Linux version
18421 as base implementation.
18422 * sysdeps/unix/sysv/linux/arm/sigaction.c: Likewise.
18423 * sysdeps/unix/sysv/linux/i386/sigaction.c: Likewise.
18424 * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c: Likewise.
18425 * sysdeps/unix/sysv/linux/sparc/sparc64/sigaction.c: Likewise.
18426 * sysdeps/unix/sysv/linux/x86_64/sigaction.c: Likewise.
18427 * sysdeps/unix/sysv/linux/alpha/kernel_sigaction.h: Add include guards,
18428 remove unrequired definitions and update comments.
18429 * sysdeps/unix/sysv/linux/kernel_sigaction.h: Likewise.
18430 * sysdeps/unix/sysv/linux/mips/kernel_sigaction.h: Likewise.
18431 * sysdeps/unix/sysv/linux/ia64/kernel_sigaction.h: New file.
18432 * sysdeps/unix/sysv/linux/m68k/kernel_sigaction.h: Likewise.
18433 * sysdeps/unix/sysv/linux/nios2/kernel_sigaction.h: Likewise.
18434 * sysdeps/unix/sysv/linux/powerpc/kernel_sigaction: Likewise.
18435 * sysdeps/unix/sysv/linux/s390/kernel_sigaction.h: Likewise.
18436 * sysdeps/unix/sysv/linux/sh/kernel_sigaction.h: Likewise.
18437 * sysdeps/unix/sysv/linux/sparc/kernel_sigaction.h: Likewise.
18438 * sysdeps/unix/sysv/linux/tile/kernel_sigaction.h: Likewise.
18439 * sysdeps/unix/sysv/linux/ia64/sigaction.c: Remove file.
18440 * sysdeps/unix/sysv/linux/mips/sigaction.c: Likewise.
18441 * sysdeps/unix/sysv/linux/s390/s390-64/sigaction.c: Likewise.
18442 * sysdeps/unix/sysv/linux/sigaction.c: Add STUB, SET_SA_RESTORER,
18443 and RESET_SA_RESTORER hooks.
18444
18445 2018-04-05 Stefan Liebler <stli@linux.vnet.ibm.com>
18446
18447 * sysdeps/s390/fpu/libm-test-ulps: Regenerated.
18448
18449 2018-04-05 Florian Weimer <fweimer@redhat.com>
18450
18451 * manual/examples/mbstouwcs.c (mbstouwcs): Fix loop termination,
18452 integer overflow, memory leak on error, and indeterminate errno
18453 value. Add a null wide character to terminate the result string.
18454 * manual/charset.texi (Converting a Character): Mention embedded
18455 null bytes in the mbrtowc input string. Explain what happens in
18456 the -2 result case. Do not claim that mbrtowc is simple or
18457 obvious to use. Adjust the description of the code example. Use
18458 @code, not @var, for concrete variables.
18459
18460 2018-04-05 Florian Weimer <fweimer@redhat.com>
18461
18462 * manual/examples/mbstouwcs.c: New file.
18463 * manual/charset.texi (Converting a Character): Include it.
18464
18465 2018-04-05 Samuel Thibault <samuel.thibault@ens-lyon.org>
18466
18467 * include/dirent.h (dirfd): Add hidden proto.
18468 * dirent/dirfd.c (dirfd): Add hidden def.
18469 * sysdeps/mach/hurd/dirfd.c (dirfd): Add hidden def.
18470 * sysdeps/posix/dirfd.c (dirfd): Add hidden def.
18471
18472 2018-04-04 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
18473
18474 * sysdeps/powerpc/fpu/libm-test-ulps: Increase double-precision
18475 sin, cos and sincos to 1 ULP.
18476
18477 2018-04-04 Maciej W. Rozycki <macro@mips.com>
18478
18479 [BZ #19818]
18480 * sysdeps/generic/ldsodefs.h (SYMBOL_ADDRESS): Handle SHN_ABS
18481 symbols.
18482 * elf/dl-addr.c (determine_info): Ignore SHN_ABS symbols.
18483 * elf/tst-absolute-sym.c: New file.
18484 * elf/tst-absolute-sym-lib.c: New file.
18485 * elf/tst-absolute-sym-lib.lds: New file.
18486 * elf/Makefile (tests): Add `tst-absolute-sym'.
18487 (modules-names): Add `tst-absolute-sym-lib'.
18488 (LDLIBS-tst-absolute-sym-lib.so): New variable.
18489 ($(objpfx)tst-absolute-sym-lib.so): New dependency.
18490 ($(objpfx)tst-absolute-sym): New dependency.
18491
18492 [BZ #19818]
18493 * sysdeps/generic/ldsodefs.h (LOOKUP_VALUE_ADDRESS): Add `set'
18494 parameter.
18495 (SYMBOL_ADDRESS): New macro.
18496 [!ELF_FUNCTION_PTR_IS_SPECIAL] (DL_SYMBOL_ADDRESS): Use
18497 SYMBOL_ADDRESS for symbol address calculation.
18498 * elf/dl-runtime.c (_dl_fixup): Likewise.
18499 (_dl_profile_fixup): Likewise.
18500 * elf/dl-symaddr.c (_dl_symbol_address): Likewise.
18501 * elf/rtld.c (dl_main): Likewise.
18502 * sysdeps/aarch64/dl-machine.h (elf_machine_rela): Likewise.
18503 * sysdeps/alpha/dl-machine.h (elf_machine_rela): Likewise.
18504 * sysdeps/arm/dl-machine.h (elf_machine_rel): Likewise.
18505 (elf_machine_rela): Likewise.
18506 * sysdeps/hppa/dl-machine.h (elf_machine_rela): Likewise.
18507 * sysdeps/hppa/dl-symaddr.c (_dl_symbol_address): Likewise.
18508 * sysdeps/i386/dl-machine.h (elf_machine_rel): Likewise.
18509 (elf_machine_rela): Likewise.
18510 * sysdeps/ia64/dl-machine.h (elf_machine_rela): Likewise.
18511 * sysdeps/m68k/dl-machine.h (elf_machine_rela): Likewise.
18512 * sysdeps/microblaze/dl-machine.h (elf_machine_rela): Likewise.
18513 * sysdeps/mips/dl-machine.h (ELF_MACHINE_BEFORE_RTLD_RELOC):
18514 Likewise.
18515 (elf_machine_reloc): Likewise.
18516 (elf_machine_got_rel): Likewise.
18517 * sysdeps/mips/dl-trampoline.c (__dl_runtime_resolve): Likewise.
18518 * sysdeps/nios2/dl-machine.h (elf_machine_rela): Likewise.
18519 * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela):
18520 Likewise.
18521 * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
18522 Likewise.
18523 * sysdeps/riscv/dl-machine.h (elf_machine_rela): Likewise.
18524 * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela):
18525 Likewise.
18526 * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela):
18527 Likewise.
18528 * sysdeps/sh/dl-machine.h (elf_machine_rela): Likewise.
18529 * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela):
18530 Likewise.
18531 * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela):
18532 Likewise.
18533 * sysdeps/tile/dl-machine.h (elf_machine_rela): Likewise.
18534 * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Likewise.
18535
18536 2018-04-04 Zack Weinberg <zackw@panix.com>
18537
18538 * sysdeps/generic/internal-signals.h: Include signal.h,
18539 sigsetops.h, and stdbool.h.
18540 (__libc_signal_block_all): Actually block all signals.
18541 (__libc_signal_block_app): Likewise.
18542 (__libc_signal_restore_set): Actually restore the signal mask.
18543
18544 2018-04-04 Florian Weimer <fweimer@redhat.com>
18545
18546 inet: Actually build and run tst-deadline.
18547 * inet/Makefile (tests-internal): Add tst-deadline and do not
18548 overwrite the variable.
18549 (tests-static-internal): Remove variable.
18550
18551 2018-04-03 H.J. Lu <hongjiu.lu@intel.com>
18552
18553 [BZ #22947]
18554 * bits/uio-ext.h (RWF_APPEND): New.
18555 * sysdeps/unix/sysv/linux/bits/uio-ext.h (RWF_APPEND): Likewise.
18556 * manual/llio.texi: Document RWF_APPEND.
18557 * misc/tst-preadvwritev2-common.c (RWF_APPEND): New.
18558 (RWF_SUPPORTED): Add RWF_APPEND.
18559
18560 2018-04-03 Adhemerval Zanella <adhemerval.zanella@linaro.org>
18561
18562 [BZ #22391]
18563 * nptl/sigaction.c (__sigaction): Use __is_internal_signal to
18564 check for internal nptl signals.
18565 * nptl/sigaction.c (__sigaction): Likewise.
18566 * signal/sigaddset.c (sigaddset): Likewise.
18567 * signal/sigdelset.c (sigdelset): Likewise.
18568 * sysdeps/posix/signal.c (__bsd_signal): Likewise.
18569 * sysdeps/posix/sigset.c (sigset): Call and check sigaddset return
18570 value.
18571 * signal/sigfillset.c (sigfillset): User __clear_internal_signals
18572 to filter out internal nptl signals.
18573 * signal/tst-sigset.c (do_test): Check ech signal indidually and
18574 also check realtime signals using standard macros.
18575 * sysdeps/generic/internal-signals.h (__clear_internal_signals,
18576 __is_internal_signal, __libc_signal_block_all,
18577 __libc_signal_block_app, __libc_signal_restore_set): New functions.
18578 * sysdeps/nptl/sigfillset.c: Remove file.
18579 * sysdeps/unix/sysv/linux/internal-signals.h (__is_internal_signal):
18580 Change return to bool.
18581 (__clear_internal_signals): Remove SIGTIMER clean since it is
18582 equal to SIGCANEL on Linux.
18583 * sysdeps/unix/sysv/linux/sigtimedwait.c (__sigtimedwait): Assume
18584 signal set was constructed using standard functions.
18585
18586 2018-04-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
18587
18588 * sysdeps/mach/hurd/if_index.c (__if_nametoindex): Return ENODEV if
18589 ifname is too long.
18590 * hurd/hurdsig.c (interrupted_reply_port_location): Use
18591 DIAG_IGNORE_NEEDS_COMMENT to silence warning with GCC 6 and before.
18592 * sysdeps/mach/hurd/i386/exc2signal.c (_hurd_exception2signal): Add
18593 hidden def.
18594 * mach/spin-lock.c (__mutex_unlock): Add hidden def.
18595 * signal/sigaddset.c: Include <sigsetopts.h>.
18596 * signal/sigdelset.c: Likewise.
18597
18598 2018-04-03 Wilco Dijkstra <wdijkstr@arm.com>
18599
18600 * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Cleanup ifdefs.
18601 (__cos): Likewise.
18602 * sysdeps/ieee754/dbl-64/s_sin.c (__sincos): Refactor using the same
18603 logic as sin and cos.
18604
18605 2018-04-03 Wilco Dijkstra <wdijkstr@arm.com>
18606
18607 * sysdeps/ieee754/dbl-64/s_sin.c (do_sin): Use TAYLOR_SIN for small
18608 inputs. Return correct sign.
18609 (do_sincos): Remove small input check before do_sin, let do_sin set
18610 the sign.
18611 (__sin): Likewise.
18612 (__cos): Likewise.
18613
18614 2018-04-03 Wilco Dijkstra <wdijkstr@arm.com>
18615
18616 * sysdeps/ieee754/dbl-64/s_sin.c (TAYLOR_SLOW): Remove.
18617 (do_cos_slow): Likewise.
18618 (do_sin_slow): Likewise.
18619 (reduce_and_compute): Likewise.
18620 (slow): Likewise.
18621 (slow1): Likewise.
18622 (slow2): Likewise.
18623 (sloww): Likewise.
18624 (sloww1): Likewise.
18625 (sloww2): Likewise.
18626 (bslow): Likewise.
18627 (bslow1): Likewise.
18628 (bslow2): Likewise.
18629 (cslow2): Likewise.
18630
18631 2018-04-03 Wilco Dijkstra <wdijkstr@arm.com>
18632
18633 * sysdeps/ieee754/dbl-64/s_sin.c (TAYLOR_SIN): Remove cor parameter.
18634 (do_cos): Remove corp parameter and calculations.
18635 (do_sin): Likewise.
18636 (do_sincos): Remove cor variable.
18637 (__sin): Use do_sincos for huge inputs.
18638 (__cos): Likewise.
18639 * sysdeps/ieee754/dbl-64/s_sincos.c (__sincos): Likewise.
18640 (reduce_and_compute_sincos): Remove unused function.
18641
18642 2018-04-03 Wilco Dijkstra <wdijkstr@arm.com>
18643
18644 * sysdeps/ieee754/dbl-64/s_sin.c (reduce_sincos_1): Rename to
18645 reduce_sincos, improve accuracy to 136 bits.
18646 (do_sincos_1): Rename to do_sincos, remove fallbacks to slow functions.
18647 (__sin): Use improved reduction and simplified do_sincos calculation.
18648 (__cos): Likewise.
18649 * sysdeps/ieee754/dbl-64/s_sincos.c (__sincos): Likewise.
18650
18651 2018-04-03 Wilco Dijkstra <wdijkstr@arm.com>
18652
18653 * sysdeps/ieee754/dbl-64/s_sin.c (reduce_sincos_2): Remove function.
18654 (do_sincos_2): Likewise.
18655 (__sin): Remove middle range reduction case.
18656 (__cos): Likewise.
18657 * sysdeps/ieee754/dbl-64/s_sincos.c (__sincos): Remove middle range
18658 reduction case.
18659
18660 2018-04-03 Wilco Dijkstra <wdijkstr@arm.com>
18661
18662 * sysdeps/aarch64/libm-test-ulps: Update ULP for sin, cos, sincos.
18663 * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Remove slow paths for small
18664 inputs.
18665 (__cos): Likewise.
18666 * sysdeps/x86_64/fpu/libm-test-ulps: Update ULP for sin, cos, sincos.
18667
18668 2018-04-03 Joseph Myers <joseph@codesourcery.com>
18669
18670 * scripts/build-many-glibcs.py (Context.checkout): Default Linux
18671 version to 4.16
18672
18673 2018-04-03 Adhemerval Zanella <adhemerval.zanella@linaro.org>
18674
18675 * sysdeps/posix/opendir.c (o_directory_works, tryopen_o_directory):
18676 Remove definitions.
18677 (opendir_oflags): Use O_DIRECTORY regardless.
18678 (__opendir, __opendirat): Remove need_isdir_precheck usage.
18679 * sysdeps/unix/sysv/linux/opendir.c: Remove file.
18680
18681 2018-04-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
18682
18683 * sysdeps/mach/hurd/bits/local_lim.h (_POSIX_THREAD_KEYS_MAX,
18684 _POSIX_THREAD_DESTRUCTOR_ITERATIONS, _POSIX_THREAD_THREADS_MAX): Define
18685 macros.
18686 * sysdeps/mach/hurd/bits/posix_opt.h (_POSIX_THREADS,
18687 _POSIX_THREAD_ATTR_STACKSIZE, _POSIX_THREAD_ATTR_STACKADDR,
18688 _POSIX_SEMAPHORES, _POSIX_READER_WRITER_LOCKS, _POSIX_TIMEOUTS,
18689 _POSIX_SPIN_LOCKS, _POSIX_BARRIERS): Define macros to 200809L.
18690 * sysdeps/mach/hurd/net/if_ppp.h: Remove file.
18691 * sysdeps/mach/hurd/Makefile (sysdep_headers): Remove net/if_ppp.h.
18692
18693 * htl/Makefile: Bump licence to LGPL 2.1+.
18694 * htl/alloca_cutoff.c: Likewise.
18695 * htl/cthreads-compat.c: Likewise.
18696 * htl/lockfile.c: Likewise.
18697 * htl/pt-alloc.c: Likewise.
18698 * htl/pt-cancel.c: Likewise.
18699 * htl/pt-cleanup.c: Likewise.
18700 * htl/pt-create.c: Likewise.
18701 * htl/pt-dealloc.c: Likewise.
18702 * htl/pt-detach.c: Likewise.
18703 * htl/pt-exit.c: Likewise.
18704 * htl/pt-getattr.c: Likewise.
18705 * htl/pt-initialize.c: Likewise.
18706 * htl/pt-internal.h: Likewise.
18707 * htl/pt-join.c: Likewise.
18708 * htl/pt-self.c: Likewise.
18709 * htl/pt-setcancelstate.c: Likewise.
18710 * htl/pt-setcanceltype.c: Likewise.
18711 * htl/pt-sigmask.c: Likewise.
18712 * htl/pt-spin-inlines.c: Likewise.
18713 * htl/pt-testcancel.c: Likewise.
18714 * htl/pt-yield.c: Likewise.
18715 * htl/tests/test-1.c: Likewise.
18716 * htl/tests/test-10.c: Likewise.
18717 * htl/tests/test-11.c: Likewise.
18718 * htl/tests/test-12.c: Likewise.
18719 * htl/tests/test-13.c: Likewise.
18720 * htl/tests/test-14.c: Likewise.
18721 * htl/tests/test-15.c: Likewise.
18722 * htl/tests/test-16.c: Likewise.
18723 * htl/tests/test-17.c: Likewise.
18724 * htl/tests/test-2.c: Likewise.
18725 * htl/tests/test-3.c: Likewise.
18726 * htl/tests/test-4.c: Likewise.
18727 * htl/tests/test-5.c: Likewise.
18728 * htl/tests/test-6.c: Likewise.
18729 * htl/tests/test-7.c: Likewise.
18730 * htl/tests/test-8.c: Likewise.
18731 * htl/tests/test-9.c: Likewise.
18732 * htl/tests/test-__pthread_destroy_specific-skip.c: Likewise.
18733 * sysdeps/htl/bits/cancelation.h: Likewise.
18734 * sysdeps/htl/bits/pthread-np.h: Likewise.
18735 * sysdeps/htl/bits/pthread.h: Likewise.
18736 * sysdeps/htl/bits/pthreadtypes.h: Likewise.
18737 * sysdeps/htl/bits/semaphore.h: Likewise.
18738 * sysdeps/htl/bits/types/__pthread_key.h: Likewise.
18739 * sysdeps/htl/bits/types/struct___pthread_attr.h: Likewise.
18740 * sysdeps/htl/bits/types/struct___pthread_barrier.h: Likewise.
18741 * sysdeps/htl/bits/types/struct___pthread_barrierattr.h: Likewise.
18742 * sysdeps/htl/bits/types/struct___pthread_cond.h: Likewise.
18743 * sysdeps/htl/bits/types/struct___pthread_condattr.h: Likewise.
18744 * sysdeps/htl/bits/types/struct___pthread_mutex.h: Likewise.
18745 * sysdeps/htl/bits/types/struct___pthread_mutexattr.h: Likewise.
18746 * sysdeps/htl/bits/types/struct___pthread_once.h: Likewise.
18747 * sysdeps/htl/bits/types/struct___pthread_rwlock.h: Likewise.
18748 * sysdeps/htl/bits/types/struct___pthread_rwlockattr.h: Likewise.
18749 * sysdeps/htl/old_pt-atfork.c: Likewise.
18750 * sysdeps/htl/pt-atfork.c: Likewise.
18751 * sysdeps/htl/pt-attr-destroy.c: Likewise.
18752 * sysdeps/htl/pt-attr-getdetachstate.c: Likewise.
18753 * sysdeps/htl/pt-attr-getguardsize.c: Likewise.
18754 * sysdeps/htl/pt-attr-getinheritsched.c: Likewise.
18755 * sysdeps/htl/pt-attr-getschedparam.c: Likewise.
18756 * sysdeps/htl/pt-attr-getschedpolicy.c: Likewise.
18757 * sysdeps/htl/pt-attr-getscope.c: Likewise.
18758 * sysdeps/htl/pt-attr-getstack.c: Likewise.
18759 * sysdeps/htl/pt-attr-getstackaddr.c: Likewise.
18760 * sysdeps/htl/pt-attr-getstacksize.c: Likewise.
18761 * sysdeps/htl/pt-attr-init.c: Likewise.
18762 * sysdeps/htl/pt-attr-setdetachstate.c: Likewise.
18763 * sysdeps/htl/pt-attr-setguardsize.c: Likewise.
18764 * sysdeps/htl/pt-attr-setinheritsched.c: Likewise.
18765 * sysdeps/htl/pt-attr-setschedparam.c: Likewise.
18766 * sysdeps/htl/pt-attr-setschedpolicy.c: Likewise.
18767 * sysdeps/htl/pt-attr-setscope.c: Likewise.
18768 * sysdeps/htl/pt-attr-setstack.c: Likewise.
18769 * sysdeps/htl/pt-attr-setstackaddr.c: Likewise.
18770 * sysdeps/htl/pt-attr-setstacksize.c: Likewise.
18771 * sysdeps/htl/pt-attr.c: Likewise.
18772 * sysdeps/htl/pt-barrier-destroy.c: Likewise.
18773 * sysdeps/htl/pt-barrier-init.c: Likewise.
18774 * sysdeps/htl/pt-barrier-wait.c: Likewise.
18775 * sysdeps/htl/pt-barrier.c: Likewise.
18776 * sysdeps/htl/pt-barrierattr-destroy.c: Likewise.
18777 * sysdeps/htl/pt-barrierattr-getpshared.c: Likewise.
18778 * sysdeps/htl/pt-barrierattr-init.c: Likewise.
18779 * sysdeps/htl/pt-barrierattr-setpshared.c: Likewise.
18780 * sysdeps/htl/pt-cond-brdcast.c: Likewise.
18781 * sysdeps/htl/pt-cond-destroy.c: Likewise.
18782 * sysdeps/htl/pt-cond-init.c: Likewise.
18783 * sysdeps/htl/pt-cond-signal.c: Likewise.
18784 * sysdeps/htl/pt-cond-timedwait.c: Likewise.
18785 * sysdeps/htl/pt-cond-wait.c: Likewise.
18786 * sysdeps/htl/pt-cond.c: Likewise.
18787 * sysdeps/htl/pt-condattr-destroy.c: Likewise.
18788 * sysdeps/htl/pt-condattr-getclock.c: Likewise.
18789 * sysdeps/htl/pt-condattr-getpshared.c: Likewise.
18790 * sysdeps/htl/pt-condattr-init.c: Likewise.
18791 * sysdeps/htl/pt-condattr-setclock.c: Likewise.
18792 * sysdeps/htl/pt-condattr-setpshared.c: Likewise.
18793 * sysdeps/htl/pt-destroy-specific.c: Likewise.
18794 * sysdeps/htl/pt-equal.c: Likewise.
18795 * sysdeps/htl/pt-getconcurrency.c: Likewise.
18796 * sysdeps/htl/pt-getcpuclockid.c: Likewise.
18797 * sysdeps/htl/pt-getschedparam.c: Likewise.
18798 * sysdeps/htl/pt-getspecific.c: Likewise.
18799 * sysdeps/htl/pt-init-specific.c: Likewise.
18800 * sysdeps/htl/pt-key-create.c: Likewise.
18801 * sysdeps/htl/pt-key-delete.c: Likewise.
18802 * sysdeps/htl/pt-key.h: Likewise.
18803 * sysdeps/htl/pt-mutex-destroy.c: Likewise.
18804 * sysdeps/htl/pt-mutex-getprioceiling.c: Likewise.
18805 * sysdeps/htl/pt-mutex-init.c: Likewise.
18806 * sysdeps/htl/pt-mutex-lock.c: Likewise.
18807 * sysdeps/htl/pt-mutex-setprioceiling.c: Likewise.
18808 * sysdeps/htl/pt-mutex-timedlock.c: Likewise.
18809 * sysdeps/htl/pt-mutex-trylock.c: Likewise.
18810 * sysdeps/htl/pt-mutex-unlock.c: Likewise.
18811 * sysdeps/htl/pt-mutexattr-destroy.c: Likewise.
18812 * sysdeps/htl/pt-mutexattr-getprioceiling.c: Likewise.
18813 * sysdeps/htl/pt-mutexattr-getprotocol.c: Likewise.
18814 * sysdeps/htl/pt-mutexattr-getpshared.c: Likewise.
18815 * sysdeps/htl/pt-mutexattr-gettype.c: Likewise.
18816 * sysdeps/htl/pt-mutexattr-init.c: Likewise.
18817 * sysdeps/htl/pt-mutexattr-setprioceiling.c: Likewise.
18818 * sysdeps/htl/pt-mutexattr-setprotocol.c: Likewise.
18819 * sysdeps/htl/pt-mutexattr-setpshared.c: Likewise.
18820 * sysdeps/htl/pt-mutexattr-settype.c: Likewise.
18821 * sysdeps/htl/pt-mutexattr.c: Likewise.
18822 * sysdeps/htl/pt-once.c: Likewise.
18823 * sysdeps/htl/pt-rwlock-attr.c: Likewise.
18824 * sysdeps/htl/pt-rwlock-destroy.c: Likewise.
18825 * sysdeps/htl/pt-rwlock-init.c: Likewise.
18826 * sysdeps/htl/pt-rwlock-rdlock.c: Likewise.
18827 * sysdeps/htl/pt-rwlock-timedrdlock.c: Likewise.
18828 * sysdeps/htl/pt-rwlock-timedwrlock.c: Likewise.
18829 * sysdeps/htl/pt-rwlock-tryrdlock.c: Likewise.
18830 * sysdeps/htl/pt-rwlock-trywrlock.c: Likewise.
18831 * sysdeps/htl/pt-rwlock-unlock.c: Likewise.
18832 * sysdeps/htl/pt-rwlock-wrlock.c: Likewise.
18833 * sysdeps/htl/pt-rwlockattr-destroy.c: Likewise.
18834 * sysdeps/htl/pt-rwlockattr-getpshared.c: Likewise.
18835 * sysdeps/htl/pt-rwlockattr-init.c: Likewise.
18836 * sysdeps/htl/pt-rwlockattr-setpshared.c: Likewise.
18837 * sysdeps/htl/pt-setconcurrency.c: Likewise.
18838 * sysdeps/htl/pt-setschedparam.c: Likewise.
18839 * sysdeps/htl/pt-setschedprio.c: Likewise.
18840 * sysdeps/htl/pt-setspecific.c: Likewise.
18841 * sysdeps/htl/pt-spin.c: Likewise.
18842 * sysdeps/htl/pt-startup.c: Likewise.
18843 * sysdeps/htl/pthread.h: Likewise.
18844 * sysdeps/htl/sem-close.c: Likewise.
18845 * sysdeps/htl/sem-destroy.c: Likewise.
18846 * sysdeps/htl/sem-getvalue.c: Likewise.
18847 * sysdeps/htl/sem-init.c: Likewise.
18848 * sysdeps/htl/sem-open.c: Likewise.
18849 * sysdeps/htl/sem-post.c: Likewise.
18850 * sysdeps/htl/sem-timedwait.c: Likewise.
18851 * sysdeps/htl/sem-trywait.c: Likewise.
18852 * sysdeps/htl/sem-unlink.c: Likewise.
18853 * sysdeps/htl/sem-wait.c: Likewise.
18854 * sysdeps/hurd/htl/pt-kill.c: Likewise.
18855 * sysdeps/i386/htl/pt-machdep.h: Likewise.
18856 * sysdeps/mach/htl/pt-block.c: Likewise.
18857 * sysdeps/mach/htl/pt-spin.c: Likewise.
18858 * sysdeps/mach/htl/pt-stack-alloc.c: Likewise.
18859 * sysdeps/mach/htl/pt-thread-alloc.c: Likewise.
18860 * sysdeps/mach/htl/pt-thread-start.c: Likewise.
18861 * sysdeps/mach/htl/pt-thread-terminate.c: Likewise.
18862 * sysdeps/mach/htl/pt-timedblock.c: Likewise.
18863 * sysdeps/mach/htl/pt-wakeup.c: Likewise.
18864 * sysdeps/mach/hurd/htl/bits/pthread-np.h: Likewise.
18865 * sysdeps/mach/hurd/htl/bits/types/struct___pthread_mutex.h: Likewise.
18866 * sysdeps/mach/hurd/htl/pt-attr-setstackaddr.c: Likewise.
18867 * sysdeps/mach/hurd/htl/pt-attr-setstacksize.c: Likewise.
18868 * sysdeps/mach/hurd/htl/pt-docancel.c: Likewise.
18869 * sysdeps/mach/hurd/htl/pt-hurd-cond-timedwait.c: Likewise.
18870 * sysdeps/mach/hurd/htl/pt-hurd-cond-wait.c: Likewise.
18871 * sysdeps/mach/hurd/htl/pt-mutex-consistent.c: Likewise.
18872 * sysdeps/mach/hurd/htl/pt-mutex-destroy.c: Likewise.
18873 * sysdeps/mach/hurd/htl/pt-mutex-getprioceiling.c: Likewise.
18874 * sysdeps/mach/hurd/htl/pt-mutex-init.c: Likewise.
18875 * sysdeps/mach/hurd/htl/pt-mutex-lock.c: Likewise.
18876 * sysdeps/mach/hurd/htl/pt-mutex-setprioceiling.c: Likewise.
18877 * sysdeps/mach/hurd/htl/pt-mutex-timedlock.c: Likewise.
18878 * sysdeps/mach/hurd/htl/pt-mutex-transfer-np.c: Likewise.
18879 * sysdeps/mach/hurd/htl/pt-mutex-trylock.c: Likewise.
18880 * sysdeps/mach/hurd/htl/pt-mutex-unlock.c: Likewise.
18881 * sysdeps/mach/hurd/htl/pt-mutex.h: Likewise.
18882 * sysdeps/mach/hurd/htl/pt-mutexattr-destroy.c: Likewise.
18883 * sysdeps/mach/hurd/htl/pt-mutexattr-getprioceiling.c: Likewise.
18884 * sysdeps/mach/hurd/htl/pt-mutexattr-getprotocol.c: Likewise.
18885 * sysdeps/mach/hurd/htl/pt-mutexattr-getpshared.c: Likewise.
18886 * sysdeps/mach/hurd/htl/pt-mutexattr-getrobust.c: Likewise.
18887 * sysdeps/mach/hurd/htl/pt-mutexattr-gettype.c: Likewise.
18888 * sysdeps/mach/hurd/htl/pt-mutexattr-init.c: Likewise.
18889 * sysdeps/mach/hurd/htl/pt-mutexattr-setprioceiling.c: Likewise.
18890 * sysdeps/mach/hurd/htl/pt-mutexattr-setprotocol.c: Likewise.
18891 * sysdeps/mach/hurd/htl/pt-mutexattr-setpshared.c: Likewise.
18892 * sysdeps/mach/hurd/htl/pt-mutexattr-setrobust.c: Likewise.
18893 * sysdeps/mach/hurd/htl/pt-mutexattr-settype.c: Likewise.
18894 * sysdeps/mach/hurd/htl/pt-sigstate-destroy.c: Likewise.
18895 * sysdeps/mach/hurd/htl/pt-sigstate-init.c: Likewise.
18896 * sysdeps/mach/hurd/htl/pt-sigstate.c: Likewise.
18897 * sysdeps/mach/hurd/htl/pt-sysdep.c: Likewise.
18898 * sysdeps/mach/hurd/htl/pt-sysdep.h: Likewise.
18899 * sysdeps/mach/hurd/i386/htl/pt-machdep.c: Likewise.
18900 * sysdeps/mach/hurd/i386/htl/pt-setup.c: Likewise.
18901
18902 * NEWS: Announce that glibc now builds unpatched on GNU/Hurd.
18903 * README: Remove the mention of out-of-tree patches needed for
18904 GNU/Hurd.
18905
18906 * sysdeps/mach/hurd/bits/stat.h [!__USE_MISC && __USE_ATFILE]
18907 (UTIME_NOW, UTIME_OMIT): Define macros.
18908
18909 * htl/cthreads-compat.c (__cthread_detach): Call __pthread_detach
18910 instead of pthread_detach.
18911 (__cthread_fork): Call __pthread_create instead of pthread_create.
18912 (__cthread_keycreate): Call __pthread_key_create instead of
18913 pthread_key_create.
18914 (__cthread_getspecific): Call __pthread_getspecific instead of
18915 pthread_getspecific.
18916 (__cthread_setspecific): Call __pthread_setspecific instead of
18917 pthread_setspecific.
18918 * htl/pt-alloc.c (__pthread_alloc): Call __pthread_mutex_lock and
18919 __pthread_mutex_unlock instead of pthread_mutex_lock and
18920 pthread_mutex_unlock.
18921 * htl/pt-cleanup.c (__pthread_get_cleanup_stack): Rename to
18922 ___pthread_get_cleanup_stack.
18923 (__pthread_get_cleanup_stack): New strong alias.
18924 * htl/pt-create.c: Include <pthreadP.h>.
18925 (entry_point): Call __pthread_exit instead of pthread_exit.
18926 (pthread_create): Rename to __pthread_create.
18927 (pthread_create): New strong alias.
18928 * htl/pt-detach.c (pthread_detach): Rename to __pthread_detach.
18929 (pthread_detach): New strong alias.
18930 (__pthread_detach): Call __pthread_cond_broadcast instead of
18931 pthread_cond_broadcast.
18932 * htl/pt-exit.c: Include <pthreadP.h>.
18933 (__pthread_exit): Call __pthread_setcancelstate and
18934 ___pthread_get_cleanup_stack instead of pthread_setcancelstate and
18935 __pthread_get_cleanup_stack.
18936 * htl/pt-testcancel.c: Include <pthreadP.h>.
18937 (pthread_testcancel): Call __pthread_exit instead of pthread_exit.
18938 * sysdeps/htl/pt-attr-getstack.c: Include <pthreadP.h>
18939 (__pthread_attr_getstack): Call __pthread_attr_getstackaddr and
18940 __pthread_attr_getstacksize instead of pthread_attr_getstackaddr and
18941 pthread_attr_getstacksize.
18942 * sysdeps/htl/pt-attr-getstackaddr.c (pthread_attr_getstackaddr):
18943 Rename to __pthread_attr_getstackaddr.
18944 (pthread_attr_getstackaddr): New strong alias.
18945 * sysdeps/htl/pt-attr-getstacksize.c (pthread_attr_getstacksize):
18946 Rename to __pthread_attr_getstacksize.
18947 (pthread_attr_getstacksize): New strong alias.
18948 * sysdeps/htl/pt-attr-setstack.c: Include <pthreadP.h>.
18949 (pthread_attr_setstack): Rename to __pthread_attr_setstack.
18950 (pthread_attr_setstack): New strong alias.
18951 (__pthread_attr_setstack): Call __pthread_attr_getstacksize,
18952 __pthread_attr_setstacksize and __pthread_attr_setstackaddr instead of
18953 pthread_attr_getstacksize, pthread_attr_setstacksize and
18954 pthread_attr_setstackaddr.
18955 * sysdeps/htl/pt-attr-setstackaddr.c (pthread_attr_setstackaddr):
18956 Rename to __pthread_attr_setstackaddr.
18957 (pthread_attr_setstackaddr): New strong alias.
18958 * sysdeps/htl/pt-attr-setstacksize.c (pthread_attr_setstacksize):
18959 Rename to __pthread_attr_setstacksize.
18960 (pthread_attr_setstacksize): New strong alias.
18961 * sysdeps/htl/pt-cond-timedwait.c: Include <pthreadP.h>.
18962 (__pthread_cond_timedwait_internal): Use __pthread_exit instead of
18963 pthread_exit.
18964 * sysdeps/htl/pt-key-create.c: Include <pthreadP.h>.
18965 (__pthread_key_create): New hidden def.
18966 * sysdeps/htl/pt-key.h: Include <pthreadP.h>.
18967 * sysdeps/htl/pthreadP.h (_pthread_mutex_init,
18968 __pthread_cond_broadcast, __pthread_create, __pthread_detach,
18969 __pthread_exit, __pthread_key_create, __pthread_getspecific,
18970 __pthread_setspecific, __pthread_setcancelstate,
18971 __pthread_attr_getstackaddr, __pthread_attr_setstackaddr,
18972 __pthread_attr_getstacksize, __pthread_attr_setstacksize,
18973 __pthread_attr_setstack, ___pthread_get_cleanup_stack): New
18974 declarations.
18975 (__pthread_key_create, _pthread_mutex_init): New hidden declarations.
18976 * sysdeps/mach/hurd/htl/pt-attr-setstackaddr.c
18977 (pthread_attr_setstackaddr): Rename to __pthread_attr_setstackaddr.
18978 (pthread_attr_setstackaddr): New strong alias.
18979 * sysdeps/mach/hurd/htl/pt-attr-setstacksize.c
18980 (pthread_attr_setstacksize): Rename to __pthread_attr_setstacksize.
18981 (pthread_attr_setstacksize): New strong alias.
18982 * sysdeps/mach/hurd/htl/pt-docancel.c: Include <pthreadP.h>.
18983 (call_exit): Call __pthread_exit instead of pthread_exit.
18984 * sysdeps/mach/hurd/htl/pt-mutex-init.c: Include <pthreadP.h>.
18985 (_pthread_mutex_init): New hidden definition.
18986 * sysdeps/mach/hurd/htl/pt-sysdep.c: Include <pthreadP.h>.
18987 (_init_routine): Call __pthread_attr_init and __pthread_attr_setstack
18988 instead of pthread_attr_init and pthread_attr_setstack.
18989
18990 * hurd/hurdauth.c (_S_msg_add_auth): Call __vm_allocate and
18991 __vm_deallocate instead of vm_allocate and vm_deallocate.
18992 * hurd/hurdmsg.c (_S_msg_set_env_variable): Call __setenv instead of
18993 setenv.
18994 * hurd/hurdprio.c (_hurd_priority_which_map): Call __geteuid instead
18995 of geteuid.
18996 * hurd/path-lookup.c (file_name_path_scan): Call __strdup instead of
18997 strdup.
18998 * hurd/siginfo.c: Include <libioP.h>.
18999 (_hurd_siginfo_handler): Call _IO_puts instead of puts.
19000 * hurd/xattr.c (_hurd_xattr_get, _hurd_xattr_set): Call __munmap instead of
19001 munmap.
19002 * mach/devstream.c: Include <libioP.h>.
19003 (dealloc_ref): Call __mach_port_deallocate instead of
19004 mach_port_deallocate.
19005 (mach_open_devstream): Call _IO_fopencookie instead of fopencookie.
19006 Call __mach_port_deallocate instead of mach_port_deallocate.
19007 * stdlib/canonicalize.c (__realpath): Call __pathconf instead of
19008 pathconf.
19009 * sysdeps/mach/hurd/ifreq.c (__ifreq): Call __munmap instead of
19010 munmap.
19011 * sysdeps/mach/hurd/ifreq.h (__if_freereq): Likewise.
19012 * sysdeps/mach/hurd/ptrace.c (ptrace): Call __kill instead of kill.
19013 * sysdeps/mach/hurd/sendfile64.c (sendfile64): Call __munmap instead
19014 of munmap.
19015 * sysdeps/mach/hurd/socketpair.c (__socketpair): Call __close instead
19016 of close.
19017 * sysdeps/posix/clock_getres.c (realtime_getres): Call __sysconf
19018 instead of sysconf.
19019 * sysdeps/pthread/timer_gettime.c (timer_gettime): Call
19020 __clock_gettime instead of clock_gettime.
19021 * sysdeps/pthread/timer_routines.c (thread_func): Likewise.
19022 * sysdeps/pthread/timer_settime.c (timer_settime): Likewise.
19023 * sysdeps/unix/bsd/gtty.c (gtty): Call __ioctl instead of ioctl.
19024 * sysdeps/unix/bsd/stty.c (stty): Likewise.
19025 * sysdeps/unix/bsd/tcflow.c (tcflow): Call __tcgetattr instead of
19026 tcgetattr.
19027 * sysdeps/unix/clock_nanosleep.c (__clock_nanosleep): Call
19028 __clock_gettime and __nanosleep instead of clock_gettime and
19029 nanosleep.
19030 * hurd/catch-signal.c (hurd_catch_signal): Rename to
19031 __hurd_catch_signal.
19032 (hurd_catch_signal): New strong alias.
19033 (hurd_safe_memset, hurd_safe_copyout, hurd_safe_copyin): Call
19034 __hurd_catch_signal instead of hurd_catch_signal.
19035 * hurd/exc2signal.c (_hurd_exception2signal): Add hidden def.
19036 * hurd/hurdexec.c (_hurd_init): Add hidden def.
19037 * hurd/hurdinit.c (_hurd_init): Add hidden def.
19038 * hurd/hurdsig.c: Include <mach/mig_support.h>.
19039 (_hurd_thread_sigstate): Add hidden def.
19040 (_hurd_internal_post_signal): Use __mutex_unlock instead of
19041 mutex_unlock.
19042 * hurd/intern-fd.c (_hurd_intern_fd): Add hidden def.
19043 * hurd/intr-msg.c (_hurd_intr_rpc_mach_msg): Add hidden def.
19044 * hurd/path-lookup.c (hurd_file_name_path_lookup): Rename to
19045 __hurd_file_name_path_lookup.
19046 (hurd_file_name_path_lookup): New strong alias.
19047 (file_name_path_lookup): Call __hurd_file_name_path_lookup instead of
19048 hurd_file_name_path_lookup.
19049 * mach/errstring.c (mach_error_type): Add hidden def.
19050 * mach/msg-destroy.c (__mach_msg_destroy): Add hidden def.
19051 * mach/mutex-init.c (__mutex_init): Add hidden def.
19052 * mach/spin-lock.c (__spin_lock_locked, __spin_lock, __spin_unlock,
19053 __spin_try_lock, __mutex_lock, __mutex_trylock): Add hidden defs.
19054 * mach/spin-solid.c (__spin_lock_solid): Add hidden def.
19055 * sysdeps/mach/hurd/getcwd.c
19056 (_hurd_canonicalize_directory_name_internal): Rename to
19057 __hurd_canonicalize_directory_name_internal.
19058 (_hurd_canonicalize_directory_name_internal): New strong alias.
19059 (__canonicalize_directory_name_internal, __getcwd): Call
19060 __hurd_canonicalize_directory_name_internal instead of
19061 _hurd_canonicalize_directory_name_internal.
19062 * sysdeps/mach/hurd/mig-reply.c: Include <mach/mig_support.h>.
19063 (__mig_get_reply_port, __mig_dealloc_reply_port, __mig_init): Add
19064 hidden defs.
19065 * sysdeps/hurd/include/hurd.h: New file.
19066 * sysdeps/hurd/include/hurd/fd.h: New file.
19067 * sysdeps/hurd/include/hurd/signal.h: New file.
19068 * sysdeps/mach/include/lock-intern.h: New file.
19069 * sysdeps/mach/include/mach.h: New file.
19070 * sysdeps/mach/include/mach/mig_support.h: New file.
19071 * sysdeps/mach/include/mach_error.h: New file.
19072 * sysdeps/hurd/include/hurd/signal.h (_hurd_raise_signal): Add hidden
19073 prototype.
19074 * hurd/hurd-raise.c (_hurd_raise_signal): Add hidden def.
19075 * hurd/Makefile ($(inlines:%=$(objpfx)%.c): Define
19076 _HEADER_H_HIDDEN_DEF macro.
19077 * sysdeps/hurd/include/hurd/fd.h (_hurd_fd_error,
19078 _hurd_fd_error_signal): Add hidden prototype.
19079 [_HURD_FD_H_HIDDEN_DEF] (_hurd_fd_error, _hurd_fd_error_signal): Add
19080 hidden def.
19081 * libio/iolibio.h (_IO_puts): New hidden prototype.
19082 * libio/ioputs.c (_IO_puts): New hidden def.
19083 * sysdeps/mach/hurd/localplt.data: New file.
19084
19085 2018-04-02 Agustina Arzille <avarzille@riseup.net>
19086 Amos Jeffries <squid3@treenet.co.nz>
19087 David Michael <fedora.dm0@gmail.com>
19088 Marco Gerards <marco@gnu.org>
19089 Marcus Brinkmann <marcus@gnu.org>
19090 Neal H. Walfield <neal@gnu.org>
19091 Pino Toscano <toscano.pino@tiscali.it>
19092 Richard Braun <rbraun@sceen.net>
19093 Roland McGrath <roland@gnu.org>
19094 Samuel Thibault <samuel.thibault@ens-lyon.org>
19095 Thomas DiModica <ricinwich@yahoo.com>
19096 Thomas Schwinge <tschwinge@gnu.org>
19097
19098 * htl: New directory.
19099 * sysdeps/htl: New directory.
19100 * sysdeps/hurd/htl: New directory.
19101 * sysdeps/i386/htl: New directory.
19102 * sysdeps/mach/htl: New directory.
19103 * sysdeps/mach/hurd/htl: New directory.
19104 * sysdeps/mach/hurd/i386/htl: New directory.
19105 * nscd/Depend, resolv/Depend, rt/Depend: Add htl dependency.
19106 * sysdeps/mach/hurd/i386/Implies: Add mach/hurd/i386/htl imply.
19107 * sysdeps/mach/hurd/i386/libpthread.abilist: New file.
19108
19109 2018-04-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
19110
19111 * sysdeps/pthread/timer_routines.c (__timer_thread_start): Block all
19112 signals in thread created for runing timers.
19113
19114 2018-04-01 Florian Weimer <fweimer@redhat.com>
19115
19116 * support/support_format_addrinfo.c (support_format_addrinfo):
19117 Include unknown error number in formatted result.
19118
19119 2018-03-29 Florian Weimer <fweimer@redhat.com>
19120
19121 * sysdeps/unix/sysv/linux/i386/tst-bz21269.c (do_test): Also
19122 capture SIGBUS.
19123
19124 2018-03-27 Adhemerval Zanella <adhemerval.zanella@linaro.org>
19125
19126 * sysdeps/unix/sysv/linux/arch-fork.h [__ASSUME_CLONE_BACKWARDS]
19127 (arch_fork): Issue INLINE_CLONE_SYSCALL if defined.
19128 * sysdeps/unix/sysv/linux/sparc/kernel-features.h
19129 (__ASSUME_CLONE_BACKWARDS): Define.
19130
19131 2018-03-27 Jesse Hathaway <jesse@mbuki-mvuki.org>
19132
19133 [BZ #23024]
19134 * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid): Return
19135 early when linux sentinel value is set.
19136
19137 2018-03-27 Samuel Thibault <samuel.thibault@ens-lyon.org>
19138
19139 * sysdeps/mach/hurd/bits/posix_opt.h (_POSIX_MEMLOCK): Define.
19140
19141 2018-03-27 Andreas Schwab <schwab@suse.de>
19142
19143 [BZ #23005]
19144 * resolv/res_send.c (__res_context_send): Return ENOMEM if
19145 allocation of private copy of nsaddr_list fails.
19146
19147 2018-03-26 Joseph Myers <joseph@codesourcery.com>
19148
19149 [BZ #16552]
19150 * sysdeps/unix/sysv/linux/generic/umount.c: Move to ....
19151 * sysdeps/unix/sysv/linux/umount.c: ... here.
19152 * sysdeps/unix/sysv/linux/arm/umount.c: Remove file.
19153 * sysdeps/unix/sysv/linux/hppa/umount.c: Likewise.
19154 * sysdeps/unix/sysv/linux/ia64/umount.c: Likewise.
19155 * sysdeps/unix/sysv/linux/mips/mips64/umount.c: Likewise.
19156 * sysdeps/unix/sysv/linux/powerpc/powerpc64/umount.c: Likewise.
19157 * sysdeps/unix/sysv/linux/umount.S: Likewise.
19158 * sysdeps/unix/sysv/linux/x86_64/umount.c: Likewise.
19159
19160 2018-03-26 Andreas Schwab <schwab@suse.de>
19161
19162 * elf/elf.h (R_RISCV_BRANCH, R_RISCV_JAL, R_RISCV_CALL)
19163 (R_RISCV_CALL_PLT, R_RISCV_GOT_HI20, R_RISCV_TLS_GOT_HI20)
19164 (R_RISCV_TLS_GD_HI20, R_RISCV_PCREL_HI20, R_RISCV_PCREL_LO12_I)
19165 (R_RISCV_PCREL_LO12_S, R_RISCV_HI20, R_RISCV_LO12_I)
19166 (R_RISCV_LO12_S, R_RISCV_TPREL_HI20, R_RISCV_TPREL_LO12_I)
19167 (R_RISCV_TPREL_LO12_S, R_RISCV_TPREL_ADD, R_RISCV_ADD8)
19168 (R_RISCV_ADD16, R_RISCV_ADD32, R_RISCV_ADD64, R_RISCV_SUB8)
19169 (R_RISCV_SUB16, R_RISCV_SUB32, R_RISCV_SUB64)
19170 (R_RISCV_GNU_VTINHERIT, R_RISCV_GNU_VTENTRY, R_RISCV_ALIGN)
19171 (R_RISCV_RVC_BRANCH, R_RISCV_RVC_JUMP, R_RISCV_RVC_LUI)
19172 (R_RISCV_GPREL_I, R_RISCV_GPREL_S, R_RISCV_TPREL_I)
19173 (R_RISCV_TPREL_S, R_RISCV_RELAX, R_RISCV_SUB6, R_RISCV_SET6)
19174 (R_RISCV_SET8, R_RISCV_SET16, R_RISCV_SET32, R_RISCV_32_PCREL)
19175 (R_RISCV_NUM): Define.
19176
19177 2018-03-25 Samuel Thibault <samuel.thibault@ens-lyon.org>
19178
19179 * include/errno.h [IS_IN(rtld) && !RTLD_PRIVATE_ERRNO]: Do not use the
19180 TLS declaration of errno.
19181 * sysdeps/generic/libc-start.h [!SHARED] (ARCH_SETUP_TLS): Define to
19182 __libc_setup_tls.
19183 * sysdeps/unix/sysv/linux/powerpc/libc-start.h [!SHARED]
19184 (ARCH_SETUP_TLS): Likewise.
19185 * sysdeps/mach/hurd/libc-start.h: New file copied from
19186 sysdeps/generic/libc-start.h, but define ARCH_SETUP_TLS to empty.
19187 * csu/libc-start.c [!SHARED] (LIBC_START_MAIN): Call ARCH_SETUP_TLS
19188 instead of __libc_setup_tls.
19189 * sysdeps/mach/hurd/i386/init-first.c [!SHARED] (init1): Call
19190 __libc_setup_tls before initializing libpthread and running _hurd_init
19191 which starts the signal thread.
19192 * sysdeps/generic/ldsodefs.h [SHARED] (__pthread_initialize_minimal):
19193 Declare function.
19194 * sysdeps/mach/hurd/bits/errno.h: Regenerate.
19195
19196 2018-03-24 H.J. Lu <hongjiu.lu@intel.com>
19197
19198 [BZ #22998]
19199 * elf/Makefile (tests): Add $(tests-execstack-$(have-z-execstack))
19200 after it is defined.
19201
19202 2018-03-23 Andrew Senkevich <andrew.senkevich@intel.com>
19203 Max Horn <max@quendi.de>
19204
19205 [BZ #22644]
19206 CVE-2017-18269
19207 * sysdeps/i386/i686/multiarch/memcpy-sse2-unaligned.S: Fixed
19208 branch conditions.
19209 * string/test-memmove.c (do_test2): New testcase.
19210
19211 2018-03-22 Joseph Myers <joseph@codesourcery.com>
19212
19213 * sysdeps/generic/frame.h: Remove file.
19214 * sysdeps/arm/frame.h: Likewise.
19215 * sysdeps/hppa/frame.h: Likewise.
19216 * sysdeps/generic/sigcontextinfo.h (SIGCONTEXT_EXTRA_ARGS): Remove
19217 macro.
19218 (GET_FRAME): Likewise.
19219 (GET_STACK): Likewise.
19220 (CALL_SIGHANDLER): Likewise.
19221 * sysdeps/mach/hurd/i386/sigcontextinfo.h (SIGCONTEXT_EXTRA_ARGS):
19222 Likewise.
19223 (GET_FRAME): Likewise.
19224 (GET_STACK): Likewise.
19225 (CALL_SIGHANDLER): Likewise.
19226 * sysdeps/unix/sysv/linux/alpha/sigcontextinfo.h
19227 (SIGCONTEXT_EXTRA_ARGS): Likewise.
19228 (GET_FRAME): Likewise.
19229 (GET_STACK): Likewise.
19230 (CALL_SIGHANDLER): Likewise.
19231 * sysdeps/unix/sysv/linux/arm/sigcontextinfo.h
19232 (SIGCONTEXT_EXTRA_ARGS): Likewise.
19233 (GET_FRAME): Likewise.
19234 (GET_STACK): Likewise.
19235 (ADVANCE_STACK_FRAME): Likewise.
19236 (CALL_SIGHANDLER): Likewise.
19237 * sysdeps/unix/sysv/linux/i386/sigcontextinfo.h
19238 (SIGCONTEXT_EXTRA_ARGS): Likewise.
19239 (GET_FRAME): Likewise.
19240 (GET_STACK): Likewise.
19241 (CALL_SIGHANDLER): Likewise.
19242 * sysdeps/unix/sysv/linux/ia64/sigcontextinfo.h
19243 (SIGCONTEXT_EXTRA_ARGS): Likewise.
19244 (GET_FRAME): Likewise.
19245 (GET_STACK): Likewise.
19246 (CALL_SIGHANDLER): Likewise.
19247 * sysdeps/unix/sysv/linux/m68k/sigcontextinfo.h
19248 (SIGCONTEXT_EXTRA_ARGS): Likewise.
19249 (GET_FRAME): Likewise.
19250 (GET_STACK): Likewise.
19251 (CALL_SIGHANDLER): Likewise.
19252 * sysdeps/unix/sysv/linux/microblaze/sigcontextinfo.h
19253 (SIGCONTEXT_EXTRA_ARGS): Likewise.
19254 (GET_FRAME): Likewise.
19255 (GET_STACK): Likewise.
19256 (CALL_SIGHANDLER): Likewise.
19257 * sysdeps/unix/sysv/linux/mips/sigcontextinfo.h
19258 (SIGCONTEXT_EXTRA_ARGS): Likewise.
19259 (GET_FRAME): Likewise.
19260 (GET_STACK): Likewise.
19261 (CALL_SIGHANDLER): Likewise.
19262 * sysdeps/unix/sysv/linux/powerpc/sigcontextinfo.h
19263 (SIGCONTEXT_EXTRA_ARGS): Likewise.
19264 (GET_FRAME): Likewise.
19265 (GET_STACK): Likewise.
19266 (CALL_SIGHANDLER): Likewise.
19267 * sysdeps/unix/sysv/linux/riscv/sigcontextinfo.h
19268 (SIGCONTEXT_EXTRA_ARGS): Likewise.
19269 (GET_FRAME): Likewise.
19270 (GET_STACK): Likewise.
19271 (CALL_SIGHANDLER): Likewise.
19272 * sysdeps/unix/sysv/linux/s390/sigcontextinfo.h
19273 (SIGCONTEXT_EXTRA_ARGS): Likewise.
19274 (GET_FRAME): Likewise.
19275 (GET_STACK): Likewise.
19276 (CALL_SIGHANDLER): Likewise.
19277 * sysdeps/unix/sysv/linux/sh/sigcontextinfo.h
19278 (SIGCONTEXT_EXTRA_ARGS): Likewise.
19279 (GET_FRAME): Likewise.
19280 (GET_STACK): Likewise.
19281 (CALL_SIGHANDLER): Likewise.
19282 * sysdeps/unix/sysv/linux/sparc/sparc32/sigcontextinfo.h
19283 (SIGCONTEXT_EXTRA_ARGS): Likewise.
19284 (FIRST_FRAME_POINTER): Likewise.
19285 (ADVANCE_STACK_FRAME): Likewise.
19286 (GET_STACK): Likewise.
19287 (GET_FRAME): Likewise.
19288 (CALL_SIGHANDLER): Likewise.
19289 * sysdeps/unix/sysv/linux/sparc/sparc64/sigcontextinfo.h
19290 (SIGCONTEXT_EXTRA_ARGS): Likewise.
19291 (ADVANCE_STACK_FRAME): Likewise.
19292 (GET_STACK): Likewise.
19293 (GET_FRAME): Likewise.
19294 (CALL_SIGHANDLER): Likewise.
19295 * sysdeps/unix/sysv/linux/tile/sigcontextinfo.h
19296 (SIGCONTEXT_EXTRA_ARGS): Likewise.
19297 (GET_FRAME): Likewise.
19298 (GET_STACK): Likewise.
19299 (CALL_SIGHANDLER): Likewise.
19300 * sysdeps/unix/sysv/linux/x86_64/sigcontextinfo.h
19301 (SIGCONTEXT_EXTRA_ARGS): Likewise.
19302 (GET_FRAME): Likewise.
19303 (GET_STACK): Likewise.
19304 (CALL_SIGHANDLER): Likewise.
19305
19306 2018-03-21 Joseph Myers <joseph@codesourcery.com>
19307
19308 * sysdeps/x86_64/backtrace.c: Move to ....
19309 * debug/backtrace.c: ... here.
19310 * sysdeps/aarch64/backtrace.c: Remove file.
19311 * sysdeps/alpha/backtrace.c: Likewise.
19312 * sysdeps/hppa/backtrace.c: Likewise.
19313 * sysdeps/ia64/backtrace.c: Likewise.
19314 * sysdeps/mips/backtrace.c: Likewise.
19315 * sysdeps/nios2/backtrace.c: Likewise.
19316 * sysdeps/riscv/backtrace.c: Likewise.
19317 * sysdeps/sh/backtrace.c: Likewise.
19318 * sysdeps/tile/backtrace.c: Likewise.
19319
19320 2018-03-20 Joseph Myers <joseph@codesourcery.com>
19321
19322 [BZ #22987]
19323 * sysdeps/powerpc/bits/mathinline.h (fdim): Remove inline
19324 function.
19325 (fdimf): Likewise.
19326 * sysdeps/sparc/fpu/bits/mathinline.h: Remove file.
19327
19328 [BZ #17343]
19329 * stdlib/random_r.c (__random_r): Use unsigned arithmetic for
19330 possibly overflowing computations.
19331
19332 2018-03-20 Samuel Thibault <samuel.thibault@ens-lyon.org>
19333
19334 * manual/errno.texi (EOWNERDEAD, ENOTRECOVERABLE): Remove errno
19335 values from Linux-specific section now that it is in the GNU section.
19336 * sysdeps/gnu/errlist.c: Regenerate.
19337
19338 2018-03-20 Joseph Myers <joseph@codesourcery.com>
19339
19340 * math/Makefile (libm-narrow-fns): Add sub.
19341 (libm-test-funcs-narrow): Likewise.
19342 * math/Versions (GLIBC_2.28): Add narrowing subtract functions.
19343 * math/bits/mathcalls-narrow.h (sub): Use __MATHCALL_NARROW.
19344 * math/gen-auto-libm-tests.c (test_functions): Add sub.
19345 * math/math-narrow.h (CHECK_NARROW_SUB): New macro.
19346 (NARROW_SUB_ROUND_TO_ODD): Likewise.
19347 (NARROW_SUB_TRIVIAL): Likewise.
19348 * sysdeps/ieee754/float128/float128_private.h (__fsubl): New
19349 macro.
19350 (__dsubl): Likewise.
19351 * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Add fsub and
19352 dsub.
19353 (CFLAGS-nldbl-dsub.c): New variable.
19354 (CFLAGS-nldbl-fsub.c): Likewise.
19355 * sysdeps/ieee754/ldbl-opt/Versions (GLIBC_2.28): Add
19356 __nldbl_dsubl.
19357 * sysdeps/ieee754/ldbl-opt/nldbl-compat.h (__nldbl_dsubl): New
19358 prototype.
19359 * manual/arith.texi (Misc FP Arithmetic): Document fsub, fsubl,
19360 dsubl, fMsubfN, fMsubfNx, fMxsubfN and fMxsubfNx.
19361 * math/auto-libm-test-in: Add tests of sub.
19362 * math/auto-libm-test-out-narrow-sub: New generated file.
19363 * math/libm-test-narrow-sub.inc: New file.
19364 * sysdeps/i386/fpu/s_f32xsubf64.c: Likewise.
19365 * sysdeps/ieee754/dbl-64/s_f32xsubf64.c: Likewise.
19366 * sysdeps/ieee754/dbl-64/s_fsub.c: Likewise.
19367 * sysdeps/ieee754/float128/s_f32subf128.c: Likewise.
19368 * sysdeps/ieee754/float128/s_f64subf128.c: Likewise.
19369 * sysdeps/ieee754/float128/s_f64xsubf128.c: Likewise.
19370 * sysdeps/ieee754/ldbl-128/s_dsubl.c: Likewise.
19371 * sysdeps/ieee754/ldbl-128/s_f64xsubf128.c: Likewise.
19372 * sysdeps/ieee754/ldbl-128/s_fsubl.c: Likewise.
19373 * sysdeps/ieee754/ldbl-128ibm/s_dsubl.c: Likewise.
19374 * sysdeps/ieee754/ldbl-128ibm/s_fsubl.c: Likewise.
19375 * sysdeps/ieee754/ldbl-96/s_dsubl.c: Likewise.
19376 * sysdeps/ieee754/ldbl-96/s_fsubl.c: Likewise.
19377 * sysdeps/ieee754/ldbl-opt/nldbl-dsub.c: Likewise.
19378 * sysdeps/ieee754/ldbl-opt/nldbl-fsub.c: Likewise.
19379 * sysdeps/ieee754/soft-fp/s_dsubl.c: Likewise.
19380 * sysdeps/ieee754/soft-fp/s_fsub.c: Likewise.
19381 * sysdeps/ieee754/soft-fp/s_fsubl.c: Likewise.
19382 * sysdeps/powerpc/fpu/libm-test-ulps: Update.
19383 * sysdeps/mach/hurd/i386/libm.abilist: Likewise.
19384 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
19385 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
19386 * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
19387 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
19388 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
19389 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
19390 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
19391 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
19392 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
19393 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
19394 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
19395 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
19396 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Likewise.
19397 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist: Likewise.
19398 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Likewise.
19399 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Likewise.
19400 * sysdeps/unix/sysv/linux/riscv/rv64/libm.abilist: Likewise.
19401 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
19402 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
19403 * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
19404 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
19405 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
19406 * sysdeps/unix/sysv/linux/tile/tilegx32/libm.abilist: Likewise.
19407 * sysdeps/unix/sysv/linux/tile/tilegx64/libm.abilist: Likewise.
19408 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
19409 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
19410
19411 2018-03-19 Joseph Myers <joseph@codesourcery.com>
19412
19413 [BZ #20079]
19414 * elf/elf.h (SHT_X86_64_UNWIND): New macro.
19415
19416 2018-03-19 Wilco Dijkstra <wdijkstr@arm.com>
19417
19418 * benchtests/bench-timing.h (attribute_hidden): Undefine.
19419
19420 2018-03-18 Richard Braun <rbraun@sceen.net>
19421
19422 * sysdeps/mach/hurd/i386/tls.h (_hurd_tls_init): Use a temporary
19423 thread reference.
19424
19425 2018-03-18 Agustina Arzille <avarzille@riseup.net>
19426
19427 * sysdeps/mach/libc-lock.h (__libc_cleanup_frame): Define structure.
19428 (__libc_cleanup_fct): Define function.
19429 (__libc_cleanup_region_start, __libc_cleanup_region_end,
19430 __libc_cleanup_end): Rewrite implementation using
19431 __attribute__ ((__cleanup__)).
19432 (__libc_cleanup_push, __libc_cleanup_pop): New macros.
19433 * hurd/Makefile (routines): Add hurdlock.
19434 * hurd/Versions (GLIBC_PRIVATE): Added new entry to export the above
19435 interface.
19436 (HURD_CTHREADS_0.3): Remove __libc_getspecific.
19437 * hurd/hurdpid.c: Include <lowlevellock.h>
19438 (_S_msg_proc_newids): Use lll_wait to synchronize.
19439 * hurd/hurdsig.c: (reauth_proc): Use __mutex_lock and __mutex_unlock.
19440 * hurd/setauth.c: Include <hurdlock.h>, use integer for synchronization.
19441 * mach/Makefile (lock-headers): Remove machine-lock.h.
19442 * mach/lock-intern.h: Include <lowlevellock.h> instead of
19443 <machine-lock.h>.
19444 (__spin_lock_t): New type.
19445 (__SPIN_LOCK_INITIALIZER): New macro.
19446 (__spin_lock, __spin_unlock, __spin_try_lock, __spin_lock_locked,
19447 __mutex_init, __mutex_lock_solid, __mutex_unlock_solid, __mutex_lock,
19448 __mutex_unlock, __mutex_trylock): Use lll to implement locks.
19449 * mach/mutex-init.c: Include <lowlevellock.h> instead of <cthreads.h>.
19450 (__mutex_init): Initialize with lll.
19451 * manual/errno.texi (EOWNERDEAD, ENOTRECOVERABLE): New errno values.
19452 * sysdeps/mach/Makefile: Add libmachuser as dependencies for libs
19453 needing lll.
19454 * sysdeps/mach/hurd/bits/errno.h: Regenerate.
19455 * sysdeps/mach/hurd/cthreads.c (__libc_getspecific): Remove function.
19456 * sysdeps/mach/hurd/bits/libc-lock.h: Remove file.
19457 * sysdeps/mach/hurd/setpgid.c: Include <lowlevellock.h>.
19458 (__setpgid): Use lll for synchronization.
19459 * sysdeps/mach/hurd/setsid.c: Likewise with __setsid.
19460 * sysdeps/mach/bits/libc-lock.h: Include <tls.h> and <lowlevellock.h>
19461 instead of <cthreads.h>.
19462 (_IO_lock_inexpensive): New macro
19463 (__libc_lock_recursive_t, __rtld_lock_recursive_t): New structures.
19464 (__libc_lock_self0): New declaration.
19465 (__libc_lock_owner_self): New macro.
19466 (__libc_key_t): Remove type.
19467 (_LIBC_LOCK_INITIALIZER): New macro.
19468 (__libc_lock_define_initialized, __libc_lock_init, __libc_lock_fini,
19469 __libc_lock_fini_recursive, __rtld_lock_fini_recursive,
19470 __libc_lock_lock, __libc_lock_trylock, __libc_lock_unlock,
19471 __libc_lock_define_initialized_recursive,
19472 __rtld_lock_define_initialized_recursive,
19473 __libc_lock_init_recursive, __libc_lock_trylock_recursive,
19474 __libc_lock_lock_recursive, __libc_lock_unlock_recursive,
19475 __rtld_lock_initialize, __rtld_lock_trylock_recursive,
19476 __rtld_lock_lock_recursive, __rtld_lock_unlock_recursive
19477 __libc_once_define, __libc_mutex_unlock): Reimplement with lll.
19478 (__libc_lock_define_recursive, __rtld_lock_define_recursive,
19479 _LIBC_LOCK_RECURSIVE_INITIALIZER, _RTLD_LOCK_RECURSIVE_INITIALIZER):
19480 New macros.
19481 Include <libc-lockP.h> to reimplement libc_key* with pthread_key*.
19482 * hurd/hurdlock.c: New file.
19483 * hurd/hurdlock.h: New file.
19484 * mach/lowlevellock.h: New file
19485
19486 2018-03-18 Samuel Thibault <samuel.thibault@ens-lyon.org>
19487
19488 * sysdeps/mach/hurd/cthreads.c: Include <cthreads.h>.
19489 * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Return ELOOP
19490 when opening a symlink with O_NOFOLLOW.
19491 * hurd/hurdlookup.c (__hurd_file_name_lookup): Do not append '/' to
19492 path when flags contains O_NOFOLLOW.
19493 * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Return ENOTDIR
19494 if flags contains O_DIRECTORY and the result is a directory.
19495 * sysdeps/mach/hurd/i386/init-first.c (init): Also find ELF headers by
19496 oneself when the pointer given in D is nul (as set by ext2fs).
19497 * sysdeps/mach/hurd/mlockall.c: New file.
19498 * sysdeps/mach/hurd/munlockall.c: New file.
19499
19500 2018-03-17 Samuel Thibault <samuel.thibault@ens-lyon.org>
19501
19502 * hurd/hurdsig.c: Include <pthread.h>.
19503 (_hurdsig_init): Call pthread_getattr_np and pthread_attr_getstack to
19504 get the signal thread stack layout.
19505 * hurd/Makefile (headers): Remove threadvar.h.
19506 (inline-headers): Remove threadvar.h.
19507 * hurd/Versions (GLIBC_2.0: Remove __hurd_sigthread_stack_base,
19508 __hurd_sigthread_stack_end, __hurd_sigthread_variables,
19509 __hurd_threadvar_max, __hurd_errno_location.
19510 (HURD_CTHREADS_0.3): Add pthread_getattr_np, pthread_attr_getstack.
19511 * hurd/hurd/signal.h: Do not include <hurd/threadvar.h>.
19512 (_hurd_self_sigstate): Use THREAD_SELF to get _hurd_sigstate.
19513 (_HURD_SIGNAL_H_EXTERN_INLINE): Use THREAD_SELF to get _hurd_sigstate,
19514 unless TLS is not initialized yet, in which case we do not need a
19515 critical section yet anyway.
19516 * hurd/hurd/threadvar.h: Include <tls.h>, do not include
19517 <machine-sp.h>.
19518 (__hurd_sigthread_variables, __hurd_threadvar_max): Remove variables
19519 declarations.
19520 (__hurd_threadvar_index): Remove enum.
19521 (_HURD_THREADVAR_H_EXTERN_INLINE): Remove macro.
19522 (__hurd_threadvar_location_from_sp,__hurd_threadvar_location): Remove
19523 inlines.
19524 (__hurd_reply_port0): New variable declaration.
19525 (__hurd_local_reply_port): New macro.
19526 * hurd/hurdsig.c (__hurd_sigthread_variables): Remove variable.
19527 (interrupted_reply_port_location): Add thread_t parameter. Use it
19528 with THREAD_TCB to access thread-local variables.
19529 (_hurdsig_abort_rpcs): Pass ss->thread to
19530 interrupted_reply_port_location.
19531 (_hurd_internal_post_signal): Likewise.
19532 (_hurdsig_init): Use presence of cthread_fork instead of
19533 __hurd_threadvar_stack_mask to start signal thread by hand.
19534 Remove signal thread threadvar initialization.
19535 * hurd/hurdstartup.c: Do not include <hurd/threadvar.h>
19536 * hurd/sigunwind.c: Include <hurd/threadvar.h>
19537 (_hurdsig_longjmp_from_handler): Use __hurd_local_reply_port instead
19538 of threadvar.
19539 * sysdeps/mach/hurd/Versions (libc.GLIBC_PRIVATE): Add
19540 __libc_lock_self0.
19541 (ld.GLIBC_2.0): Remove __hurd_sigthread_stack_base,
19542 __hurd_sigthread_stack_end, __hurd_sigthread_variables.
19543 (ld.GLIBC_PRIVATE): Add __libc_lock_self0.
19544 * sysdeps/mach/hurd/cthreads.c: Add __libc_lock_self0.
19545 * sysdeps/mach/hurd/dl-sysdep.c (errno, __hurd_sigthread_stack_base,
19546 __hurd_sigthread_stack_end, __hurd_sigthread_variables, threadvars,
19547 __hurd_threadvar_stack_offset, __hurd_threadvar_stack_mask): Do not
19548 define variables.
19549 * sysdeps/mach/hurd/errno-loc.c: Do not include <errno.h> and
19550 <hurd/threadvar.h>.
19551 [IS_IN(rtld)] (rtld_errno): New variable.
19552 [IS_IN(rtld)] (__errno_location): New weak function.
19553 [!IS_IN(rtld)]: Include "../../../csu/errno-loc.c".
19554 * sysdeps/mach/hurd/errno.c: Remove file.
19555 * sysdeps/mach/hurd/fork.c: Include <hurd/threadvar.h>
19556 (__fork): Remove THREADVAR_SPACE macro and its use.
19557 * sysdeps/mach/hurd/i386/init-first.c (__hurd_threadvar_max): Remove
19558 variable.
19559 (init): Do not initialize threadvar.
19560 * sysdeps/mach/hurd/i386/libc.abilist (__hurd_threadvar_max): Remove
19561 symbol.
19562 * sysdeps/mach/hurd/i386/sigreturn.c (__sigreturn): Use
19563 __hurd_local_reply_port instead of threadvar.
19564 * sysdeps/mach/hurd/i386/tls.h (tcbhead_t): Add reply_port and
19565 _hurd_sigstate fields.
19566 (HURD_DESC_TLS, __LIBC_NO_TLS, THREAD_TCB): New macro.
19567 * sysdeps/mach/hurd/i386/trampoline.c: Remove outdated comment.
19568 * sysdeps/mach/hurd/libc-lock.h: Do not include <hurd/threadvar.h>.
19569 (__libc_lock_owner_self): Use &__libc_lock_self0 and THREAD_SELF
19570 instead of threadvar.
19571 * sysdeps/mach/hurd/libc-tsd.h: Remove file.
19572 * sysdeps/mach/hurd/mig-reply.c (GETPORT, reply_port): Remove macros.
19573 (use_threadvar, global_reply_port): Remove variables.
19574 (__hurd_reply_port0): New variable.
19575 (__mig_get_reply_port): Use __hurd_local_reply_port and
19576 __hurd_reply_port0 instead of threadvar.
19577 (__mig_dealloc_reply_port): Likewise.
19578 (__mig_init): Do not initialize threadvar.
19579 * sysdeps/mach/hurd/profil.c: Fix comment.
19580 * hurd/Versions (HURD_CTHREADS_0.3): Rename weak refs cthread_fork,
19581 cthread_detach, pthread_getattr_np, pthread_attr_getstack,
19582 cthread_keycreate, cthread_getspecific, cthread_setspecific to
19583 __cthread_fork, __cthread_detach, __pthread_getattr_np,
19584 __pthread_attr_getstack, __cthread_keycreate, __cthread_getspecific,
19585 __cthread_setspecific.
19586 * hurd/hurdsig.c (_hurdsig_init): Use __cthread_fork,
19587 __cthread_detach, __pthread_getattr_np, __pthread_attr_getstack,
19588 __cthread_t instead of cthread_fork, cthread_detach,
19589 pthread_getattr_np, pthread_attr_getstack.
19590 * sysdeps/mach/hurd/cthreads.c (cthread_keycreate): Rename to
19591 __cthread_keycreate.
19592 (cthread_getspecific): Rename to __cthread_getspecific.
19593 (cthread_setspecific): Rename to __cthread_setspecific.
19594 (__libc_getspecific): Use __cthread_getspecific instead of
19595 cthread_getspecific.
19596 * sysdeps/mach/hurd/libc-lock.h (__libc_key_create): Use
19597 __cthread_keycreate instead of cthread_keycreate.
19598 (__libc_setspecific): Use __cthread_setspecific instead of
19599 cthread_setspecific.
19600 * sysdeps/mach/libc-lock.h (__libc_key_create, __libc_setspecific):
19601 Likewise.
19602 * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Always include
19603 <dl-sysdep.h>. Test for value of RTLD_PRIVATE_ERRNO instead of
19604 testing whether it is defined.
19605
19606 2018-03-16 Samuel Thibault <samuel.thibault@ens-lyon.org>
19607
19608 * sysdeps/generic/thread_state.h (MACHINE_NEW_THREAD_STATE_FLAVOR):
19609 Define macro.
19610 * sysdeps/mach/thread_state.h (MACHINE_THREAD_STATE_FIX_NEW): New macro.
19611 * sysdeps/mach/i386/thread_state.h
19612 (MACHINE_NEW_THREAD_STATE_FLAVOR): New macro, defined to
19613 i386_THREAD_STATE.
19614 (MACHINE_THREAD_STATE_FLAVOR): Define to i386_REGS_SEGS_STATE instead of
19615 i386_THREAD_STATE.
19616 (MACHINE_THREAD_STATE_FIX_NEW): New macro, reads segments.
19617
19618 * sysdeps/mach/hurd/i386/trampoline.c (_hurd_setup_sighandler): Use
19619 i386_REGS_SEGS_STATE instead of i386_THREAD_STATE.
19620
19621 * sysdeps/mach/hurd/i386/tls.h (TCB_ALIGNMENT, HURD_SEL_LDT): New
19622 macros.
19623 (_hurd_tls_fork): Add original thread parameter, Duplicate existing LDT
19624 descriptor instead of creating a new one.
19625 (_hurd_tls_new): New function, creates a new descriptor and updates tcb.
19626
19627 * mach/setup-thread.c: Include <ldsodefs.h>.
19628 (__mach_setup_thread): Call _dl_allocate_tls, pass
19629 MACHINE_NEW_THREAD_STATE_FLAVOR to __thread_set_state instead of
19630 MACHINE_THREAD_STATE_FLAVOR, before getting
19631 MACHINE_THREAD_STATE_FLAVOR, calling _hurd_tls_new, and setting
19632 MACHINE_THREAD_STATE_FLAVOR with the result.
19633 * hurd/hurdfault.c (_hurdsig_fault_init): Call
19634 MACHINE_THREAD_STATE_FIX_NEW.
19635 * sysdeps/mach/hurd/fork.c (__fork): Call _hurd_tls_fork for sigthread
19636 too. Add original thread parameter.
19637
19638 2018-03-16 Joseph Myers <joseph@codesourcery.com>
19639
19640 * sysdeps/x86/fpu/bits/mathinline.h [__USE_MISC] (__finite):
19641 Remove inline function.
19642
19643 * sysdeps/i386/fpu/libm-test-ulps: Update.
19644 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
19645
19646 2018-03-16 Wilco Dijkstra <wdijkstr@arm.com>
19647
19648 * sysdeps/m68k/m680x0/fpu/mathimpl.h (__ieee754_sqrt): Revert previous
19649 commit.
19650
19651 2018-03-15 Joseph Myers <joseph@codesourcery.com>
19652
19653 * sysdeps/x86/fpu/bits/mathinline.h [__FAST_MATH__]
19654 (__sincos_code): Remove define and undefine.
19655 [__FAST_MATH__] (__sincos): Remove inline function.
19656 [__FAST_MATH__] (__sincosf): Remove inline function.
19657 [__FAST_MATH__] (__sincosl): Remove inline function.
19658 (__atan2l): Remove inline functions.
19659 [!__GNUC_PREREQ (3, 4)] (__atan2_code): Remove macro.
19660 [!__GNUC_PREREQ (3, 4) && __FAST_MATH__] (atan2): Remove inline
19661 function.
19662 (floor): Remove inline function.
19663 (ceil): Likewise.
19664 [__FAST_MATH__] (__ldexp_code): Remove macro.
19665 [__FAST_MATH__] (ldexp): Remove inline function.
19666 [__FAST_MATH__ && __USE_ISOC99] (ldexpf): Likewise.
19667 [__FAST_MATH__ && __USE_ISOC99] (ldexpl): Likewise.
19668 [__FAST_MATH__ && __USE_ISOC99] (rint): Likewise.
19669 [__USE_ISOC99] (__lrint_code): Remove macro.
19670 [__USE_ISOC99] (__llrint_code): Likewise.
19671 [__USE_ISOC99] (lrintf): Remove inline function.
19672 [__USE_ISOC99] (lrint): Likewise.
19673 [__USE_ISOC99] (lrintl): Likewise.
19674 [__USE_ISOC99] (llrint): Likewise.
19675 [__USE_ISOC99] (llrintf): Likewise.
19676 [__USE_ISOC99] (llrintl): Likewise.
19677
19678 2018-03-15 Wilco Dijkstra <wdijkstr@arm.com>
19679
19680 * sysdeps/aarch64/fpu/math_private.h (__ieee754_sqrt): Remove.
19681 (__ieee754_sqrtf): Remove.
19682 * sysdeps/alpha/fpu/math_private.h (__ieee754_sqrt): Remove.
19683 (__ieee754_sqrtf): Remove.
19684 * sysdeps/generic/math-type-macros.h (M_SQRT): Use sqrt.
19685 * sysdeps/m68k/m680x0/fpu/mathimpl.h (__ieee754_sqrt): Remove.
19686 * sysdeps/powerpc/fpu/math_private.h (__ieee754_sqrt): Remove.
19687 (__ieee754_sqrtf): Remove.
19688 * sysdeps/s390/fpu/bits/mathinline.h: Remove file.
19689 * sysdeps/sparc/fpu/bits/mathinline.h (sqrt) Remove.
19690 (sqrtf): Remove.
19691 (sqrtl): Remove.
19692 (__ieee754_sqrt): Remove.
19693 (__ieee754_sqrtf): Remove.
19694 (__ieee754_sqrtl): Remove.
19695 * sysdeps/m68k/m680x0/fpu/mathimpl.h (__ieee754_sqrt): Remove.
19696 * sysdeps/x86/fpu/math_private.h (__ieee754_sqrt): Remove.
19697 * sysdeps/x86_64/fpu/math_private.h (__ieee754_sqrt): Remove.
19698 (__ieee754_sqrtf): Remove.
19699 (__ieee754_sqrtl): Remove.
19700
19701 2018-03-15 Wilco Dijkstra <wdijkstr@arm.com>
19702
19703 * sysdeps/ieee754/dbl-64/e_acosh.c (__ieee754_acosh): Use sqrt.
19704 * sysdeps/ieee754/dbl-64/e_gamma_r.c (gamma_positive): Likewise.
19705 * sysdeps/ieee754/dbl-64/e_hypot.c (__ieee754_hypot): Likewise.
19706 * sysdeps/ieee754/dbl-64/e_j0.c (__ieee754_j0): Likewise.
19707 * sysdeps/ieee754/dbl-64/e_j1.c (__ieee754_j1): Likewise.
19708 * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_jn): Likewise.
19709 * sysdeps/ieee754/dbl-64/s_asinh.c (__asinh): Likewise.
19710 * sysdeps/ieee754/dbl-64/wordsize-64/e_acosh.c (__ieee754_acosh):
19711 Likewise.
19712 * sysdeps/ieee754/flt-32/e_acosf.c (__ieee754_acosf): Likewise.
19713 * sysdeps/ieee754/flt-32/e_acoshf.c (__ieee754_acoshf): Likewise.
19714 * sysdeps/ieee754/flt-32/e_asinf.c (__ieee754_asinf): Likewise.
19715 * sysdeps/ieee754/flt-32/e_gammaf_r.c (gammaf_positive): Likewise.
19716 * sysdeps/ieee754/flt-32/e_hypotf.c (__ieee754_hypotf): Likewise.
19717 * sysdeps/ieee754/flt-32/e_j0f.c (__ieee754_j0f): Likewise.
19718 * sysdeps/ieee754/flt-32/e_j1f.c (__ieee754_j1f): Likewise.
19719 * sysdeps/ieee754/flt-32/e_powf.c (__ieee754_powf): Likewise.
19720 * sysdeps/ieee754/flt-32/s_asinhf.c (__asinhf): Likewise.
19721 * sysdeps/ieee754/ldbl-128/e_acoshl.c (__ieee754_acoshl): Use sqrtl.
19722 * sysdeps/ieee754/ldbl-128/e_acosl.c (__ieee754_acosl): Likewise.
19723 * sysdeps/ieee754/ldbl-128/e_asinl.c (__ieee754_asinl): Likewise.
19724 * sysdeps/ieee754/ldbl-128/e_gammal_r.c (gammal_positive): Likewise.
19725 * sysdeps/ieee754/ldbl-128/e_hypotl.c (__ieee754_hypotl): Likewise.
19726 * sysdeps/ieee754/ldbl-128/e_j0l.c (__ieee754_j0l): Likewise.
19727 * sysdeps/ieee754/ldbl-128/e_j1l.c (__ieee754_j1l): Likewise.
19728 * sysdeps/ieee754/ldbl-128/e_jnl.c (__ieee754_jnl): Likewise.
19729 * sysdeps/ieee754/ldbl-128/e_powl.c (__ieee754_powl): Likewise.
19730 * sysdeps/ieee754/ldbl-128/s_asinhl.c (__ieee754_asinhl): Likewise.
19731 * sysdeps/ieee754/ldbl-128ibm/e_acoshl.c (__ieee754_acoshl): Likewise.
19732 * sysdeps/ieee754/ldbl-128ibm/e_acosl.c (__ieee754_acosl): Likewise.
19733 * sysdeps/ieee754/ldbl-128ibm/e_asinl.c (__ieee754_asinl): Likewise.
19734 * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (gammal_positive): Likewise.
19735 * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c (__ieee754_hypotl): Likewise.
19736 * sysdeps/ieee754/ldbl-128ibm/e_j0l.c (__ieee754_j0l): Likewise.
19737 * sysdeps/ieee754/ldbl-128ibm/e_j1l.c (__ieee754_j1l): Likewise
19738 * sysdeps/ieee754/ldbl-128ibm/e_jnl.c (__ieee754_jnl): Likewise.
19739 * sysdeps/ieee754/ldbl-128ibm/e_powl.c (__ieee754_powl): Likewise.
19740 * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c (__ieee754_asinhl): Likewise.
19741 * sysdeps/ieee754/ldbl-96/e_acoshl.c (__ieee754_acoshl): Use sqrtl.
19742 * sysdeps/ieee754/ldbl-96/e_asinl.c (__ieee754_asinl): Likewise.
19743 * sysdeps/ieee754/ldbl-96/e_gammal_r.c (gammal_positive): Likewise.
19744 * sysdeps/ieee754/ldbl-96/e_hypotl.c (__ieee754_hypotl): Likewise.
19745 * sysdeps/ieee754/ldbl-96/e_j0l.c (__ieee754_j0l): Likewise.
19746 * sysdeps/ieee754/ldbl-96/e_j1l.c (__ieee754_j1l): Likewise.
19747 * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_jnl): Likewise.
19748 * sysdeps/ieee754/ldbl-96/s_asinhl.c (__ieee754_asinhl): Likewise.
19749 * sysdeps/m68k/m680x0/fpu/e_pow.c (__ieee754_pow): Likewise.
19750 * sysdeps/powerpc/fpu/e_hypot.c (__ieee754_hypot): Likewise.
19751 * sysdeps/powerpc/fpu/e_hypotf.c (__ieee754_hypotf): Likewise.
19752
19753 2018-03-15 Wilco Dijkstra <wdijkstr@arm.com>
19754
19755 * include/math.h (sqrt): Declare with asm redirect.
19756 (sqrtf): Likewise.
19757 (sqrtl): Likewise.
19758 (sqrtf128): Likewise.
19759 * Makeconfig: Add -fno-math-errno for libc/libm, but build testsuite,
19760 nonlib and libnldbl with -fmath-errno.
19761 * math/w_sqrt_compat.c: Define NO_MATH_REDIRECT.
19762 * math/w_sqrt_template.c: Likewise.
19763 * math/w_sqrtf_compat.c: Likewise.
19764 * math/w_sqrtl_compat.c: Likewise.
19765 * sysdeps/i386/fpu/w_sqrt.c: Likewise.
19766 * sysdeps/i386/fpu/w_sqrt_compat.c: Likewise.
19767 * sysdeps/generic/math-type-macros-float128.h: Remove math.h and
19768 complex.h.
19769
19770 2018-03-15 Wilco Dijkstra <wdijkstr@arm.com>
19771
19772 * benchtests/Makefile: Define _ISOMAC.
19773 * benchtests/bench-strcoll.c: Add missing sys/stat.h include.
19774 * benchtests/bench-string.h: Define inhibit_loop_to_libcall macro.
19775 * benchtests/bench-strstr.c: Define empty libc_hidden_builtin_def.
19776 * benchtests/bench-strtok.c (oldstrtok): Use rawmemchr.
19777 * benchtests/bench-timing.h: Define attribute_hidden.
19778
19779 2018-03-15 Siddhesh Poyarekar <siddhesh@sourceware.org>
19780
19781 * sysdeps/aarch64/strncmp.S (strncmp): Use lsr instead of
19782 mov + lsr.
19783
19784 2018-03-15 Rafał Lużyński <digitalfreak@lingonborough.com>
19785
19786 [BZ #22963]
19787 * localedata/locales/cs_CZ (mon): Rename to...
19788 (alt_mon): This.
19789 (mon): Import from CLDR (genitive case).
19790
19791 2018-03-15 Rafał Lużyński <digitalfreak@lingonborough.com>
19792
19793 [BZ #22937]
19794 * localedata/locales/el_CY (abmon): Rename to...
19795 (ab_alt_mon): This.
19796 (abmon): Import from CLDR (abbreviated genitive case).
19797 * localedata/locales/el_GR (abmon): Rename to...
19798 (ab_alt_mon): This.
19799 (abmon): Import from CLDR (abbreviated genitive case).
19800
19801 2018-03-15 Rafał Lużyński <digitalfreak@lingonborough.com>
19802
19803 [BZ #22932]
19804 * localedata/locales/lt_LT (abmon): Synchronize with CLDR.
19805
19806 2018-03-15 Robert Buj <robert.buj@gmail.com>
19807
19808 [BZ #22848]
19809 * localedata/locales/ca_ES (abmon): Rename to...
19810 (ab_alt_mon): This, then synchronize with CLDR (nominative case).
19811 (mon): Rename to...
19812 (alt_mon): This.
19813 (abmon): Import from CLDR (genitive case, month names preceded by
19814 "de" or "d’").
19815 (mon): Likewise.
19816 (abday): Synchronize with CLDR.
19817 (d_t_fmt): Likewise.
19818 (d_fmt): Likewise.
19819 (am_pm): Likewise.
19820
19821 (LC_TIME): Improve indentation.
19822 (LC_TELEPHONE): Likewise.
19823 (LC_NAME): Likewise.
19824 (LC_ADDRESS): Likewise.
19825
19826 2018-03-14 Joseph Myers <joseph@codesourcery.com>
19827
19828 * sysdeps/x86/fpu/bits/mathinline.h [!__GNUC_PREREQ (3, 4)]
19829 (lrintf): Remove definitions used only with old GCC.
19830 [!__GNUC_PREREQ (3, 4)] (lrint): Likewise.
19831 [!__GNUC_PREREQ (3, 4)] (llrintf): Likewise.
19832 [!__GNUC_PREREQ (3, 4)] (llrint): Likewise.
19833 [!__GNUC_PREREQ (3, 4)] (fmaxf): Likewise.
19834 [!__GNUC_PREREQ (3, 4)] (fmax): Likewise.
19835 [!__GNUC_PREREQ (3, 4)] (fminf): Likewise.
19836 [!__GNUC_PREREQ (3, 4)] (fmin): Likewise.
19837 [!__GNUC_PREREQ (3, 4)] (rint): Likewise.
19838 [!__GNUC_PREREQ (3, 4)] (rintf): Likewise.
19839 [!__GNUC_PREREQ (3, 4)] (nearbyint): Likewise.
19840 [!__GNUC_PREREQ (3, 4)] (nearbyintf): Likewise.
19841 [!__GNUC_PREREQ (3, 4)] (ceil): Likewise.
19842 [!__GNUC_PREREQ (3, 4)] (ceilf): Likewise.
19843 [!__GNUC_PREREQ (3, 4)] (floor): Likewise.
19844 [!__GNUC_PREREQ (3, 4)] (floorf): Likewise.
19845 [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (tan): Likewise.
19846 [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (fmod): Likewise.
19847 [__FAST_MATH__ && !__GNUC_PREREQ (3, 4)] (sin): Likewise.
19848 [__FAST_MATH__ && !__GNUC_PREREQ (3, 4)] (cos): Likewise.
19849 [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (log10): Likewise.
19850 [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (asin): Likewise.
19851 [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (acos): Likewise.
19852 [__FAST_MATH__ && !__GNUC_PREREQ (3, 4)] (atan): Likewise.
19853 [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (log1p): Likewise.
19854 [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (logb): Likewise.
19855 [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (log2): Likewise.
19856 [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (drem): Likewise.
19857 [__FAST_MATH__] (__M_SQRT2): Remove macro.
19858
19859 2018-03-14 Siddhesh Poyarekar <siddhesh@sourceware.org>
19860
19861 * sysdeps/aarch64/strncmp.S (strncmp): Use a separate shift
19862 instruction to unbreak builds with binutils 2.26 and older.
19863
19864 2018-03-13 Siddhesh Poyarekar <siddhesh@sourceware.org>
19865
19866 * sysdeps/aarch64/strncmp.S (count): New macro.
19867 (strncmp): Store misaligned length in SRC1 in COUNT.
19868 (mutual_align): Adjust.
19869 (misaligned8): Load dword at a time when it is safe.
19870
19871 2018-03-12 Zack Weinberg <zackw@panix.com>
19872
19873 [BZ #1190]
19874 [BZ #19476]
19875 * libio/fileops.c (_IO_new_file_underflow): Return EOF immediately
19876 if the _IO_EOF_SEEN bit is already set; update commentary.
19877 * libio/oldfileops.c (_IO_old_file_underflow): Likewise.
19878 * libio/wfileops.c (_IO_wfile_underflow): Likewise.
19879
19880 * support/support_openpty.c, support/tty.h: New files.
19881 * support/Makefile (libsupport-routines): Add support_openpty.
19882
19883 * libio/tst-fgetc-after-eof.c, wcsmbs/test-fgetwc-after-eof.c:
19884 New test cases.
19885 * libio/Makefile (tests): Add tst-fgetc-after-eof.
19886 * wcsmbs/Makefile (tests): Add tst-fgetwc-after-eof.
19887
19888 2018-03-12 Dmitry V. Levin <ldv@altlinux.org>
19889
19890 * po/pt_BR.po: Update translations.
19891
19892 2018-03-12 David Michael <fedora.dm0@gmail.com>
19893
19894 * sysdeps/mach/hurd/reboot.c: Include <hurd/paths.h>
19895 (reboot): Lookup _SERVERS_STARTUP instead of calling proc_getmsgport to
19896 get a port to the startup server.
19897
19898 2018-03-11 Zack Weinberg <zackw@panix.com>
19899
19900 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c: Include math.h
19901 before nldbl-compat.h.
19902
19903 2018-03-10 Zack Weinberg <zackw@panix.com>
19904
19905 * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Don't include
19906 math.h or math_private.h.
19907
19908 * sysdeps/alpha/fpu/s_isnan.c
19909 * sysdeps/ieee754/ldbl-128ibm/s_ceill.c
19910 * sysdeps/ieee754/ldbl-128ibm/s_floorl.c
19911 * sysdeps/ieee754/ldbl-128ibm/s_llrintl.c
19912 * sysdeps/ieee754/ldbl-128ibm/s_llroundl.c
19913 * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c
19914 * sysdeps/ieee754/ldbl-128ibm/s_lroundl.c
19915 * sysdeps/ieee754/ldbl-128ibm/s_rintl.c
19916 * sysdeps/ieee754/ldbl-128ibm/s_roundl.c
19917 * sysdeps/ieee754/ldbl-128ibm/s_truncl.c
19918 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/e_hypot.c
19919 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/e_hypotf.c:
19920 * sysdeps/powerpc/powerpc64/fpu/multiarch/e_expf.c
19921 * sysdeps/powerpc/powerpc64/fpu/multiarch/e_hypot.c
19922 * sysdeps/powerpc/powerpc64/fpu/multiarch/e_hypotf.c:
19923 Include math_private.h.
19924
19925 * sysdeps/ieee754/ldbl-64-128/s_finitel.c
19926 * sysdeps/ieee754/ldbl-64-128/s_fpclassifyl.c
19927 * sysdeps/ieee754/ldbl-64-128/s_isinfl.c
19928 * sysdeps/ieee754/ldbl-64-128/s_isnanl.c
19929 * sysdeps/ieee754/ldbl-64-128/s_signbitl.c
19930 * sysdeps/powerpc/power7/fpu/s_logb.c:
19931 Include math.h and math_private.h.
19932
19933 * sysdeps/unix/sysv/linux/alpha/clone.S (__clone): Wrap manual
19934 uses of $at in .set noat / .set at.
19935
19936 2018-03-10 H.J. Lu <hongjiu.lu@intel.com>
19937
19938 * include/setjmp.h (__libc_longjmp): Remove libc_hidden_proto.
19939 * setjmp/longjmp.c (__libc_longjmp): Remove libc_hidden_def.
19940 * sysdeps/s390/longjmp.c (__libc_longjmp): Likewise.
19941 * sysdeps/unix/sysv/linux/sparc/sparc64/longjmp.S (__libc_longjmp):
19942 Likewise.
19943
19944 2018-03-09 Florian Weimer <fweimer@redhat.com>
19945
19946 * malloc/malloc.c (prev_size, set_prev_size, prev_chunk): Fix typo
19947 in comment.
19948
19949 2018-03-09 Aurelien Jarno <aurelien@aurel32.net>
19950
19951 [BZ #22919]
19952 * sysdeps/unix/sysv/linux/sparc/sparc32/setcontext.S (__startcontext):
19953 Add nop before __startcontext, add explaining comments.
19954
19955 2018-03-07 Adhemerval Zanella <adhemerval.zanella@linaro.org>
19956
19957 [BZ #22926]
19958 * sysdeps/powerpc/powerpc32/sysdep.h (ABORT_TRANSACTION_IMPL): Define
19959 empty for __SPE__.
19960 * sysdeps/powerpc/sysdep.h (ABORT_TRANSACTION): Likewise.
19961 * sysdeps/unix/sysv/linux/powerpc/elision-lock.c (__lll_lock_elision):
19962 Do not build hardware transactional code for __SPE__.
19963 * sysdeps/unix/sysv/linux/powerpc/elision-trylock.c
19964 (__lll_trylock_elision): Likewise.
19965 * sysdeps/unix/sysv/linux/powerpc/elision-unlock.c
19966 (__lll_unlock_elision): Likewise.
19967
19968 * sysdeps/nptl/fork.c (ARCH_FORK): Replace by arch_fork.
19969 * sysdeps/unix/sysv/linux/alpha/arch-fork.h: Remove file.
19970 * sysdeps/unix/sysv/linux/riscv/arch-fork.h: Likewise.
19971 * sysdeps/unix/sysv/linux/aarch64/arch-fork.h: Likewise.
19972 * sysdeps/unix/sysv/linux/arm/arch-fork.h: Likewise.
19973 * sysdeps/unix/sysv/linux/hppa/arch-fork.h: Likewise.
19974 * sysdeps/unix/sysv/linux/i386/arch-fork.h: Likewise.
19975 * sysdeps/unix/sysv/linux/ia64/arch-fork.h: Likewise.
19976 * sysdeps/unix/sysv/linux/m68k/arch-fork.h: Likewise.
19977 * sysdeps/unix/sysv/linux/microblaze/arch-fork.h: Likewise.
19978 * sysdeps/unix/sysv/linux/mips/arch-fork.h: Likewise.
19979 * sysdeps/unix/sysv/linux/nios2/arch-fork.h: Likewise.
19980 * sysdeps/unix/sysv/linux/powerpc/arch-fork.h: Likewise.
19981 * sysdeps/unix/sysv/linux/s390/arch-fork.h: Likewise.
19982 * sysdeps/unix/sysv/linux/sh/arch-fork.h: Likewise.
19983 * sysdeps/unix/sysv/linux/sparc/arch-fork.h: Likewise.
19984 * sysdeps/unix/sysv/linux/tile/arch-fork.h: Likewise.
19985 * sysdeps/unix/sysv/linux/x86_64/arch-fork.h: Likewise.
19986 * sysdeps/unix/sysv/linux/arch-fork.h (arch_fork): New function.
19987 * sysdeps/unix/sysv/linux/aarch64/kernel-features.h: New file.
19988 * sysdeps/unix/sysv/linux/riscv/kernel-features.h: Likewise.
19989 * sysdeps/unix/sysv/linux/arm/kernel-features.h
19990 (__ASSUME_CLONE_BACKWARDS): Define.
19991 * sysdeps/unix/sysv/linux/createthread.c (ARCH_CLONE): Define to
19992 __clone2 if __NR_clone2 is defined.
19993 * sysdeps/unix/sysv/linux/hppa/kernel-features.h
19994 (__ASSUME_CLONE_BACKWARDS): Likewise.
19995 * sysdeps/unix/sysv/linux/i386/kernel-features.h
19996 (__ASSUME_CLONE_BACKWARDS): Likewise.
19997 * sysdeps/unix/sysv/linux/ia64/kernel-features.h
19998 (__ASSUME_CLONE2): Likewise.
19999 * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
20000 (__ASSUME_CLONE_BACKWARDS3): Likewise.
20001 * sysdeps/unix/sysv/linux/kernel-features.h: Document possible clone
20002 variants and the define architecture can use.
20003 (__ASSUME_CLONE_DEFAULT): Define as default.
20004 * sysdeps/unix/sysv/linux/mips/kernel-features.h
20005 (__ASSUME_CLONE_BACKWARDS): Likewise.
20006 * sysdeps/unix/sysv/linux/powerpc/kernel-features.h
20007 (__ASSUME_CLONE_BACKWARDS): Likewise.
20008 * sysdeps/unix/sysv/linux/s390/kernel-features.h
20009 (__ASSUME_CLONE_BACKWARDS2): Likewise.
20010
20011 2018-03-06 Siddhesh Poyarekar <siddhesh@sourceware.org>
20012
20013 * sysdeps/aarch64/memcmp.S (more16): Fix loop16 branch target.
20014
20015 * sysdeps/aarch64/memcmp.S: Widen comparison to 16 bytes at a
20016 time.
20017
20018 * benchtests/bench-strncmp.c (test_main): Remove 0 length tests.
20019 (do_test_limit): Likewise.
20020
20021 * benchtests/bench-strncmp.c (do_test_limit): Reallocate buffers
20022 for every implementation.
20023 (do_test): Likewise.
20024
20025 * benchtests/bench-strncmp.c: Convert output to json.
20026
20027 2018-03-06 Samuel Thibault <samuel.thibault@ens-lyon.org>
20028
20029 * io/futimens.c: Add missing start-of-file descriptive comment.
20030 * io/utime.c: Likewise.
20031 * misc/futimesat.c: Likewise.
20032 * misc/utimes.c: Likewise.
20033 * sysdeps/mach/hurd/futimesat.c: Likewise.
20034 * sysdeps/mach/hurd/utimes.c: Likewise.
20035 * sysdeps/posix/utime.c: Likewise.
20036 * sysdeps/posix/utimes.c: Likewise.
20037 * sysdeps/unix/sysv/linux/futimesat.c: Likewise.
20038 * sysdeps/unix/sysv/linux/generic/futimesat.c: Likewise.
20039 * sysdeps/unix/sysv/linux/generic/utimes.c: Likewise.
20040 * sysdeps/unix/sysv/linux/utimes.c: Likewise.
20041
20042 2018-03-05 Samuel Thibault <samuel.thibault@ens-lyon.org>
20043
20044 * sysdeps/mach/hurd/utime-helper.c (hurd_futimens): Rename function to
20045 hurd_futimes.
20046 * sysdeps/mach/hurd/utimes.c (__utimes): Update call accordingly.
20047 * sysdeps/mach/hurd/lutimes.c (__lutimes): Likewise.
20048 * sysdeps/mach/hurd/futimens.c: Include "utime-helper.c".
20049 (__futimens): Move implementation to...
20050 * sysdeps/mach/hurd/utime-helper.c (utime_ts_from_tspec,
20051 utime_tvalue_from_tspec): ... new helper functions.
20052 (hurd_futimens): New function.
20053 * sysdeps/mach/hurd/futimesat.c: New file.
20054 * sysdeps/mach/hurd/utimensat.c: New file.
20055
20056 2018-03-05 Flávio Cruz <flaviocruz@gmail.com>
20057
20058 * sysdeps/mach/hurd/bits/stat.h [__USE_ATFILE] (UTIME_NOW,
20059 UTIME_OMIT): New macros.
20060 * sysdeps/mach/hurd/futimens.c (__futimens): Try to use __file_utimens
20061 before reverting to converting time spec to time value and calling
20062 __file_utimes.
20063 * sysdeps/mach/hurd/utime-helper.c: New file.
20064 * sysdeps/mach/hurd/futimes.c: Include "utime-helper.c".
20065 (__futimes): Try to use utime_ts_from_tval and __file_utimens before
20066 reverting to utime_tvalue_from_tval and __file_utimes.
20067 * sysdeps/mach/hurd/lutimes.c: Include "utime-helper.c".
20068 (__lutimes): Just call hurd_futimens after lookup.
20069 * sysdeps/mach/hurd/utimes.c: Likewise.
20070
20071 2018-03-05 Samuel Thibault <samuel.thibault@ens-lyon.org>
20072
20073 * bits/sigaction.h: Add include guard.
20074 * sysdeps/unix/sysv/linux/alpha/bits/sigaction.h: Likewise.
20075 * sysdeps/unix/sysv/linux/bits/sigaction.h: Likewise.
20076 * sysdeps/unix/sysv/linux/hppa/bits/sigaction.h: Likewise.
20077 * sysdeps/unix/sysv/linux/ia64/bits/sigaction.h: Likewise.
20078 * sysdeps/unix/sysv/linux/mips/bits/sigaction.h: Likewise.
20079 * sysdeps/unix/sysv/linux/s390/bits/sigaction.h: Likewise.
20080 * sysdeps/unix/sysv/linux/sparc/bits/sigaction.h: Likewise.
20081 * sysdeps/unix/sysv/linux/tile/bits/sigaction.h: Likewise.
20082 * hurd/hurd/signal.h: Include <bits/sigaction.h>.
20083
20084 2018-03-05 Joseph Myers <joseph@codesourcery.com>
20085
20086 * iconv/loop.c (UNICODE_TAG_HANDLER): Disable
20087 -Wmaybe-uninitialized for -Os.
20088 * sysdeps/s390/multiarch/8bit-generic.c (BODY): Add comment about
20089 this disabling.
20090
20091 2018-03-03 Adhemerval Zanella <adhemerval.zanella@linaro.org>
20092
20093 * bits/dirent.h (__INO_T_MATCHES_INO64_T): Define regardless whether
20094 __INO_T_MATCHES_INO64_T is defined.
20095 * sysdeps/unix/sysv/linux/bits/dirent.h: Likewise.
20096 * dirent/alphasort.c: Check _DIRENT_MATCHES_DIRENT64 value instead
20097 of definition.
20098 * dirent/alphasort64.c: Likewise.
20099 * dirent/scandir.c: Likewise.
20100 * dirent/scandir64-tail.c: Likewise.
20101 * dirent/scandir64.c: Likewise.
20102 * dirent/scandirat.c: Likewise.
20103 * dirent/scandirat64.c: Likewise.
20104 * dirent/versionsort.c: Likewise.
20105 * dirent/versionsort64.c: Likewise.
20106 * include/dirent.h: Likewise.
20107
20108 * nptl/tst-cancel4-common.h (set_socket_buffer): New function.
20109 * nptl/tst-cancel4-common.c (do_test): Call set_socket_buffer
20110 for socketpair endpoint.
20111 * nptl/tst-cancel4.c (tf_send): Call set_socket_buffer and use
20112 WRITE_BUFFER_SIZE as buffer size for sending socket.
20113 (tf_sendto): Use SOCK_STREAM instead of SOCK_DGRAM and fix an
20114 issue on system where send is implemented with sendto syscall.
20115 * sysdeps/unix/sysv/linux/mips/mips64/Makefile [$(subdir) = socket]
20116 (CFLAGS-recv.c, CFLAGS-send.c): Remove rules.
20117 [$(subdir) = nptl] (CFLAGS-recv.c, CFLAGS-send.c): Likewise.
20118 * sysdeps/unix/sysv/linux/riscv/rv64/Makefile: Remove file.
20119
20120 [BZ #21269]
20121 * sysdeps/unix/sysv/linux/i386/Makefile (tests): Add tst-bz21269.
20122 * sysdeps/unix/sysv/linux/i386/sigaction.c (SET_SA_RESTORER): Clear
20123 sa_restorer for vDSO case.
20124 * sysdeps/unix/sysv/linux/i386/tst-bz21269.c: New file.
20125
20126 2018-03-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
20127
20128 * scripts/check-installed-headers.sh: Ignore Hurd and Mach headers.
20129 * hurd/hurd/id.h: Include <hurd/hurd_types.h>
20130 * hurd/hurd/ioctl.h: Include <mach/port.h>
20131 * hurd/hurd/lookup.h: Include <hurd/hurd_types.h>
20132 * mach/Makefile ($(objpfx)mach-shortcuts.h): Make it include
20133 <mach/mach_types.h> and <mach/message.h>.
20134 (headers): Move mach/param.h to bits/mach/param.h.
20135 * sysdeps/mach/i386/mach/param.h: Move file to ...
20136 * sysdeps/mach/i386/bits/mach/param.h: ... here. Update path in #error.
20137 * sysdeps/mach/hurd/bits/param.h: Include <bits/mach/param.h> instead
20138 of <mach/param.h>.
20139 * hurd/hurd/port.h: Do not include <hurd/signal.h>.
20140 * hurd/hurd/userlink.h [!defined __USE_EXTERN_INLINES ||
20141 !defined _LIBC || !IS_IN (libc)]: Do not include <hurd/signal.h>.
20142 * hurd/hurd/fd.h (_hurd_fd_error): Fix struct initializer to be
20143 trivial, for C++ conformity.
20144 * sysdeps/mach/hurd/dl-sysdep.c: Include <mach/machine/vm_param.h>.
20145 * mach/Machrules ($(patsubst %,$(objpfx)%.h,$(user-interfaces)):
20146 Process mig output through $(migheadersed).
20147 * hurd/Makefile (migheadersed): Define variable.
20148 * mach/mach/mig_support.h [defined __USE_GNU]: Do not #error out.
20149 * scripts/check-installed-headers.sh: Do not ignore Hurd and Mach
20150 headers.
20151 * hurd/hurd.h: Include <bits/types/sigset_t.h>
20152 * hurd/hurd/fd.h: Include <sys/select.h> and <bits/types/sigset_t.h>
20153 (_hurd_fd_read, _hurd_fd_write): Use __loff_t instead of loff_t.
20154 * hurd/hurd/signal.h: Include <bits/types/stack_t.h> and
20155 <bits/types/sigset_t.h>.
20156 [!defined __USE_GNU]: Do not #error out.
20157 (struct hurd_sigstate): Use _NSIG instead of NSIG.
20158 * hurd/hurd/sigpreempt.h (__need_size_t): Define.
20159 Include <stddef.h> and <bits/types/sigset_t.h>
20160 (struct hurd_signal_preemptor, hurd_catch_signal): Use __sighandler_t
20161 instead of sighandler_t.
20162 * stdlib/errno.h (error_t): Move definition to...
20163 * bits/types/error_t.h: ... new header.
20164 * stdlib/Makefile (headers): Add bits/types/error_t.h.
20165 * sysdeps/mach/hurd/bits/errno.h (error_t): Move definition to...
20166 * sysdeps/mach/hurd/bits/types/error_t.h: ... new header.
20167 * sysdeps/mach/hurd/errnos.awk (error_t): Likewise.
20168 * hurd/hurd.h: Include <bits/types/error_t.h>
20169 * hurd/hurd/fd.h: Include <bits/types/error_t.h>
20170 * hurd/hurd/id.h: Include <errno.h> and <bits/types/error_t.h>
20171 * hurd/hurd/lookup.h: Include <errno.h> and <bits/types/error_t.h>
20172 * hurd/hurd/resource.h: Include <bits/types/error_t.h>
20173 * hurd/hurd/signal.h: Include <bits/types/error_t.h>
20174 * hurd/hurd/sigpreempt.h: Include <bits/types/error_t.h>
20175 * sysdeps/mach/hurd/futimens.c: New file.
20176
20177 2018-03-03 Andreas Schwab <schwab@linux-m68k.org>
20178
20179 [BZ #22918]
20180 * nss/nsswitch.h (DEFINE_DATABASE): Don't define __nss_*_database.
20181 * nss/nsswitch.c (DEFINE_DATABASE): Define __nss_*_database here.
20182 * nscd/gai.c (__nss_hosts_database): Readd definition.
20183 * posix/tst-rfc3484.c (__nss_hosts_database): Likewise.
20184 * posix/tst-rfc3484-3.c (__nss_hosts_database): Likewise.
20185 * posix/tst-rfc3484-2.c (__nss_hosts_database): Likewise.
20186
20187 2018-03-02 Joseph Myers <joseph@codesourcery.com>
20188
20189 * sysdeps/powerpc/ifunc-sel.h (ifunc_sel): Make always_inline.
20190 (ifunc_one): Likewise.
20191
20192 2018-03-01 DJ Delorie <dj@delorie.com>
20193
20194 [BZ #22342]
20195 * nscd/netgroupcache.c (addinnetgrX): Include trailing NUL in
20196 key value.
20197
20198 2018-03-01 Maciej W. Rozycki <macro@mips.com>
20199
20200 * nptl_db/td_ta_thr_iter.c (iterate_thread_list): Remove
20201 `match_pid' parameter.
20202 (td_ta_thr_iter): Update accordingly.
20203
20204 2018-03-01 Florian Weimer <fweimer@redhat.com>
20205
20206 * nptl/Makefile (install-lib-ldscripts): Remove.
20207 (install): Remove rule.
20208 ($(inst_libdir)/libpthread.so): Likewise.
20209
20210 2018-03-01 Mike FABIAN <mfabian@redhat.com>
20211
20212 [BZ #22896]
20213 * localedata/locales/an_ES: update month and day names,
20214 improve d_fmt, improve postal_fmt, add country_post,
20215 add country_isbn
20216
20217 2018-03-01 Mike FABIAN <mfabian@redhat.com>
20218
20219 * localedata/locales/bg_BG (LC_COLLATE): The comment mentioned
20220 Ukrainian instead of Bulgarian.
20221
20222 2018-03-01 Florian Weimer <fweimer@redhat.com>
20223
20224 * nptl/Makefile (libpthread.so): Drop libpthread_nonshared.a
20225 reference.
20226
20227 2018-03-01 Florian Weimer <fweimer@redhat.com>
20228
20229 Move pthread_atfork to libc. Remove libpthread_nonshared.a.
20230 * nptl/Makefile (routines): Add pthread_atfork.
20231 (static-only-routines): Set to pthread_atfork.
20232 (libpthread-routines): Remove pthread_atfork.
20233 (libpthread-static-only-routines): Remove.
20234 (install): Update comment.
20235 (libpthread.so): Do not install libpthread_nonshared.a.
20236 (tests): Do not link with libpthread_nonshared.a.
20237 (generated): Remove libpthread_nonshared.a.
20238 * nptl/pthread_atfork.c (pthread_atfork): Turn into weak alias.
20239 * sysdeps/nptl/Makeconfig (shared-thread-library): Do not link
20240 with libpthread_nonshared.a.
20241
20242 2018-02-28 Joseph Myers <joseph@codesourcery.com>
20243
20244 [BZ #22902]
20245 * sysdeps/i386/fpu/fenv_private.h [!__x86_64__]
20246 (libc_feholdexcept_setroundf128): New macro.
20247 [!__x86_64__] (libc_feupdateenv_testf128): Likewise.
20248
20249 [BZ #15105]
20250 * sysdeps/wordsize-32/strtoumax.c (strtoumax): Use
20251 libc_hidden_def.
20252 * sysdeps/wordsize-64/strtoumax.c (strtoumax): Likewise.
20253 * include/inttypes.h: New file.
20254
20255 2018-02-27 Joseph Myers <joseph@codesourcery.com>
20256
20257 * locale/weightwc.h (findidx): Ignore -Wmaybe-uninitialized for
20258 -Os in two more places.
20259
20260 2018-02-27 Mike FABIAN <mfabian@redhat.com>
20261
20262 See this bug https://sourceware.org/bugzilla/show_bug.cgi?id=22898
20263 * localedata/cmn_TW.UTF-8.in: Remove the lines which cannot
20264 be sorted correctly at the moment because of a bug.
20265
20266 2018-02-27 Mike FABIAN <mfabian@redhat.com>
20267
20268 [BZ #22550] - es_ES locale (and other es_* locales): collation should
20269 treat ñ as a primary different character, sync the collation
20270 for Spanish with CLDR.
20271 [BZ #21547] - Tibetan script collation broken (Dzongkha and Tibetan).
20272 * localedata/Makefile: Add new test files.
20273 * localedata/lv_LV.UTF-8.in: Adapt test file to new collation order.
20274 * localedata/sv_SE.ISO-8859-1.in: Adapt test file to new
20275 collation order.
20276 * localedata/uk_UA.UTF-8.in: Adapt test file to new collation order.
20277 * localedata/am_ET.UTF-8.in: New test file.
20278 * localedata/az_AZ.UTF-8.in: Likewise.
20279 * localedata/be_BY.UTF-8.in: Likewise.
20280 * localedata/ber_DZ.UTF-8.in: Likewise.
20281 * localedata/ber_MA.UTF-8.in: Likewise.
20282 * localedata/bg_BG.UTF-8.in: Likewise.
20283 * localedata/br_FR.UTF-8.in: Likewise.
20284 * localedata/cmn_TW.UTF-8.in: Likewise.
20285 * localedata/crh_UA.UTF-8.in: Likewise.
20286 * localedata/csb_PL.UTF-8.in: Likewise.
20287 * localedata/cv_RU.UTF-8.in: Likewise.
20288 * localedata/cy_GB.UTF-8.in: Likewise.
20289 * localedata/dz_BT.UTF-8.in: Likewise.
20290 * localedata/eo.UTF-8.in: Likewise.
20291 * localedata/es_ES.UTF-8.in: Likewise.
20292 * localedata/fa_IR.UTF-8.in: Likewise.
20293 * localedata/fi_FI.UTF-8.in: Likewise.
20294 * localedata/fil_PH.UTF-8.in: Likewise.
20295 * localedata/fur_IT.UTF-8.in: Likewise.
20296 * localedata/gez_ER.UTF-8@abegede.in: Likewise.
20297 * localedata/ha_NG.UTF-8.in: Likewise.
20298 * localedata/ig_NG.UTF-8.in: Likewise.
20299 * localedata/ik_CA.UTF-8.in: Likewise.
20300 * localedata/kk_KZ.UTF-8.in: Likewise.
20301 * localedata/ku_TR.UTF-8.in: Likewise.
20302 * localedata/ky_KG.UTF-8.in: Likewise.
20303 * localedata/ln_CD.UTF-8.in: Likewise.
20304 * localedata/mi_NZ.UTF-8.in: Likewise.
20305 * localedata/ml_IN.UTF-8.in: Likewise.
20306 * localedata/mn_MN.UTF-8.in: Likewise.
20307 * localedata/mr_IN.UTF-8.in: Likewise.
20308 * localedata/mt_MT.UTF-8.in: Likewise.
20309 * localedata/nb_NO.UTF-8.in: Likewise.
20310 * localedata/om_KE.UTF-8.in: Likewise.
20311 * localedata/os_RU.UTF-8.in: Likewise.
20312 * localedata/ps_AF.UTF-8.in: Likewise.
20313 * localedata/ro_RO.UTF-8.in: Likewise.
20314 * localedata/ru_RU.UTF-8.in: Likewise.
20315 * localedata/sc_IT.UTF-8.in: Likewise.
20316 * localedata/se_NO.UTF-8.in: Likewise.
20317 * localedata/sq_AL.UTF-8.in: Likewise.
20318 * localedata/sv_SE.UTF-8.in: Likewise.
20319 * localedata/szl_PL.UTF-8.in: Likewise.
20320 * localedata/tg_TJ.UTF-8.in: Likewise.
20321 * localedata/tk_TM.UTF-8.in: Likewise.
20322 * localedata/tt_RU.UTF-8.in: Likewise.
20323 * localedata/tt_RU.UTF-8@iqtelif.in: Likewise.
20324 * localedata/ug_CN.UTF-8.in: Likewise.
20325 * localedata/uz_UZ.UTF-8.in: Likewise.
20326 * localedata/vi_VN.UTF-8.in: Likewise.
20327 * localedata/yi_US.UTF-8.in: Likewise.
20328 * localedata/yo_NG.UTF-8.in: Likewise.
20329 * localedata/zh_CN.UTF-8.in: Likewise.
20330 * localedata/locales/am_ET: Adapt collation rules to new iso14651_t1_common
20331 file and fix bugs in the collation.
20332 * localedata/locales/az_AZ: Likewise.
20333 * localedata/locales/be_BY: Likewise.
20334 * localedata/locales/ber_DZ: Likewise.
20335 * localedata/locales/ber_MA: Likewise.
20336 * localedata/locales/bg_BG: Likewise.
20337 * localedata/locales/br_FR: Likewise.
20338 * localedata/locales/br_FR@euro: Likewise.
20339 * localedata/locales/ca_ES: Likewise.
20340 * localedata/locales/cns11643_stroke: Likewise.
20341 * localedata/locales/crh_UA: Likewise.
20342 * localedata/locales/cs_CZ: Likewise.
20343 * localedata/locales/csb_PL: Likewise.
20344 * localedata/locales/cv_RU: Likewise.
20345 * localedata/locales/cy_GB: Likewise.
20346 * localedata/locales/da_DK: Likewise.
20347 * localedata/locales/dz_BT: Likewise.
20348 * localedata/locales/en_CA: Likewise.
20349 * localedata/locales/eo: Likewise.
20350 * localedata/locales/es_CU: Likewise.
20351 * localedata/locales/es_EC: Likewise.
20352 * localedata/locales/es_ES: Likewise.
20353 * localedata/locales/es_US: Likewise.
20354 * localedata/locales/et_EE: Likewise.
20355 * localedata/locales/fa_IR: Likewise.
20356 * localedata/locales/fi_FI: Likewise.
20357 * localedata/locales/fil_PH: Likewise.
20358 * localedata/locales/fur_IT: Likewise.
20359 * localedata/locales/gez_ER@abegede: Likewise.
20360 * localedata/locales/ha_NG: Likewise.
20361 * localedata/locales/hr_HR: Likewise.
20362 * localedata/locales/hsb_DE: Likewise.
20363 * localedata/locales/hu_HU: Likewise.
20364 * localedata/locales/ig_NG: Likewise.
20365 * localedata/locales/ik_CA: Likewise.
20366 * localedata/locales/is_IS: Likewise.
20367 * localedata/locales/iso14651_t1_pinyin: Likewise.
20368 * localedata/locales/kk_KZ: Likewise.
20369 * localedata/locales/ku_TR: Likewise.
20370 * localedata/locales/ky_KG: Likewise.
20371 * localedata/locales/ln_CD: Likewise.
20372 * localedata/locales/lt_LT: Likewise.
20373 * localedata/locales/lv_LV: Likewise.
20374 * localedata/locales/mi_NZ: Likewise.
20375 * localedata/locales/ml_IN: Likewise.
20376 * localedata/locales/mn_MN: Likewise.
20377 * localedata/locales/mr_IN: Likewise.
20378 * localedata/locales/mt_MT: Likewise.
20379 * localedata/locales/nb_NO: Likewise.
20380 * localedata/locales/om_KE: Likewise.
20381 * localedata/locales/os_RU: Likewise.
20382 * localedata/locales/pl_PL: Likewise.
20383 * localedata/locales/ps_AF: Likewise.
20384 * localedata/locales/ro_RO: Likewise.
20385 * localedata/locales/ru_RU: Likewise.
20386 * localedata/locales/ru_UA: Likewise.
20387 * localedata/locales/sc_IT: Likewise.
20388 * localedata/locales/se_NO: Likewise.
20389 * localedata/locales/si_LK: Likewise.
20390 * localedata/locales/sq_AL: Likewise.
20391 * localedata/locales/sv_FI: Likewise.
20392 * localedata/locales/sv_FI@euro: Likewise.
20393 * localedata/locales/sv_SE: Likewise.
20394 * localedata/locales/szl_PL: Likewise.
20395 * localedata/locales/tg_TJ: Likewise.
20396 * localedata/locales/ti_ER: Likewise.
20397 * localedata/locales/tk_TM: Likewise.
20398 * localedata/locales/tl_PH: Likewise.
20399 * localedata/locales/tr_TR: Likewise.
20400 * localedata/locales/tt_RU: Likewise.
20401 * localedata/locales/tt_RU@iqtelif: Likewise.
20402 * localedata/locales/ug_CN: Likewise.
20403 * localedata/locales/uk_UA: Likewise.
20404 * localedata/locales/uz_UZ: Likewise.
20405 * localedata/locales/uz_UZ@cyrillic: Likewise.
20406 * localedata/locales/vi_VN: Likewise.
20407 * localedata/locales/yi_US: Likewise.
20408 * localedata/locales/yo_NG: Likewise.
20409
20410 2018-02-27 Mike FABIAN <mfabian@redhat.com>
20411
20412 * gen-locales.mk: Make test files which contain @ modifiers in their
20413 name work.
20414 * localedata/gen-locale.sh: Likewise.
20415
20416 2018-02-27 Mike FABIAN <mfabian@redhat.com>
20417
20418 * posix/tst-fnmatch.input: Fix results for range expressions
20419 for non C locales.
20420 * posix/tst-regexloc.c: Do not use a range expression for
20421 de_DE.ISO-8859-1 locale.
20422
20423 2018-02-27 Mike FABIAN <mfabian@redhat.com>
20424
20425 * posix/bug-regex5.c: Fix test case because with the new
20426 iso14651_t1_common file, the da_DK locale now has 6 collating elements
20427 in the ISO-8859-1 range instead of 4 with the old iso14651_t1_common
20428 file.
20429
20430 2018-02-27 Mike FABIAN <mfabian@redhat.com>
20431
20432 * localedata/da_DK.ISO-8859-1.in: In the new iso14651_t1_common file
20433 downloaded from ISO, the collation order of @-. and space has changed.
20434 Therefore, this test file needed to be adapted.
20435 * localedata/fr_CA.UTF-8.in: Likewise.
20436 * localedata/fr_FR.UTF-8.in: Likewise.
20437 * localedata/uk_UA.UTF-8.in: Likewise.
20438
20439 2018-02-27 Mike FABIAN <mfabian@redhat.com>
20440
20441 * localedata/cs_CZ.UTF-8.in: adapt this test file to the collation
20442 order of ȥ in the new iso14651_t1_common file.
20443 * localedata/pl_PL.UTF-8.in: Likewise.
20444
20445 2018-02-27 Mike FABIAN <mfabian@redhat.com>
20446
20447 * localedata/locales/iso14651_t1_common: Add sections for various
20448 scripts to the iso14651_t1_common file.
20449
20450 2018-02-27 Mike FABIAN <mfabian@redhat.com>
20451
20452 * localedata/locales/iso14651_t1_common: Use the code point of a
20453 character in the fourth collation level instead of IGNORE for all
20454 entries which have IGNORE on all 4 levels.
20455
20456 2018-02-27 Mike FABIAN <mfabian@redhat.com>
20457
20458 * localedata/locales/iso14651_t1_common: Add some convenient collation
20459 symbols like <AFTER-A>, <BEFORE-A> to make tailoring easier using
20460 rules similar to those in CLDR.
20461
20462 2018-02-27 Mike FABIAN <mfabian@redhat.com>
20463
20464 * localedata/locales/iso14651_t1_common: The new version of this
20465 file downloaded from ISO contained several syntax errors which
20466 are fixed by this patch.
20467
20468 2018-02-27 Mike FABIAN <mfabian@redhat.com>
20469
20470 * localedata/locales/iso14651_t1_common: replace all <U.....>
20471 with <U000.....> because glibc understands only 4 digit or 8 digit
20472
20473 2018-02-27 Mike FABIAN <mfabian@redhat.com>
20474
20475 * localedata/locales/iso14651_t1_common: Necessary changes
20476 to make the file downloaded from ISO usable by glibc.
20477
20478 2018-02-27 Mike FABIAN <mfabian@redhat.com>
20479
20480 [BZ #14095]
20481 * localedata/locales/iso14651_t1_common: Update file to
20482 latest version from ISO (ISO14651_2016_TABLE1_en.txt).
20483
20484 2018-02-27 Samuel Thibault <samuel.thibault@ens-lyon.org>
20485
20486 * sysdeps/pthread/timer_routines.c: Include <timer_routines.h> instead
20487 of <nptl/pthreadP.h>
20488 (thread_attr_compare): Move function to...
20489 [!defined DELAYTIMER_MAX] (DELAYTIMER_MAX): Define to INT_MAX.
20490 * sysdeps/nptl/timer_routines.h: ... new header.
20491 * sysdeps/mach/hurd/gai_misc.h: New file.
20492
20493 2018-02-26 Joseph Myers <joseph@codesourcery.com>
20494
20495 * string/strcoll_l.c: Include <libc-diag.h>.
20496 (STRCOLL): Ignore -Wmaybe-uninitialized for -Os around
20497 declarations of seq1 and seq2.
20498
20499 [BZ #15105]
20500 * stdlib/atoi.c (atoi): Use libc_hidden_def.
20501 * include/stdlib.h [!_ISOMAC] (atoi): Use libc_hidden_proto.
20502
20503 2018-02-26 Dmitry V. Levin <ldv@altlinux.org>
20504
20505 [BZ #22433]
20506 [BZ #22807]
20507 * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h (__ptrace_request): Add
20508 PTRACE_GETREGS, PTRACE_SETREGS, PTRACE_GETFPREGS, PTRACE_SETFPREGS,
20509 PTRACE_GETVRREGS, PTRACE_SETVRREGS, PTRACE_GETEVRREGS,
20510 PTRACE_SETEVRREGS, PTRACE_GETREGS64, PTRACE_SETREGS64,
20511 PTRACE_GET_DEBUGREG, PTRACE_SET_DEBUGREG, PTRACE_GETVSRREGS,
20512 PTRACE_SETVSRREGS, and PTRACE_SINGLEBLOCK.
20513
20514 2018-02-26 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
20515
20516 * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Undefine Linux
20517 macros used in __ptrace_request.
20518
20519 2018-02-23 H.J. Lu <hongjiu.lu@intel.com>
20520
20521 [BZ #22792]
20522 * Makerules ($(common-objpfx)%.h): Pass -DGEN_AS_CONST_HEADERS
20523 to $(CC).
20524 * sysdeps/unix/sysv/linux/i386/lowlevellock.h: Include
20525 <tcb-offsets.h> only if GEN_AS_CONST_HEADERS isn't defined.
20526 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h: Don't include
20527 <tcb-offsets.h>.
20528
20529 2018-02-23 Joseph Myers <joseph@codesourcery.com>
20530
20531 [BZ #15105]
20532 * ctype/ctype.c (tolower): Use libc_hidden_def.
20533 (toupper): Likewise.
20534 * include/ctype.h [!_ISOMAC] (tolower): Use libc_hidden_proto.
20535 [!_ISOMAC] (toupper): Likewise.
20536
20537 2018-02-23 Mike FABIAN <mfabian@redhat.com>
20538
20539 * localedata/Makefile: Remove --quiet argument when
20540 installing locales
20541
20542 2018-02-23 Mike FABIAN <mfabian@redhat.com>
20543
20544 [BZ #17438]
20545 * localedata/locales/pt_BR (LC_TIME): use / instead of -
20546 in d_fmt.
20547 * localedata/locales/pt_PT (LC_TIME): likewise
20548
20549 2018-02-23 Mike FABIAN <mfabian@redhat.com>
20550
20551 [BZ #22646]
20552 * localedata/locales/es_CL (LC_TIME): copy "es_BO".
20553 * localedata/locales/es_CU (LC_TIME): copy "es_BO".
20554 * localedata/locales/es_EC (LC_TIME): copy "es_BO".
20555
20556 2018-02-22 Adhemerval Zanella <adhemerval.zanella@linaro.org>
20557
20558 * sysdeps/sparc/fpu/libm-test-ulps: Update.
20559
20560 * nptl/Makefile (routines): Remove unregister-atfork.
20561 * nptl/register-atfork.c (fork_handler_pool): Remove variable.
20562 (fork_handler_alloc): Remove function.
20563 (fork_handlers, fork_handler_init): New variables.
20564 (__fork_lock): Rename to atfork_lock.
20565 (__register_atfork, __unregister_atfork, libc_freeres_fn): Rewrite
20566 to use a dynamic array to add/remove atfork handlers.
20567 * sysdeps/nptl/fork.c (__libc_fork): Likewise.
20568 * sysdeps/nptl/fork.h (__fork_lock, __fork_handlers, __linkin_atfork):
20569 Remove declaration.
20570 (fork_handler): Remove next, refcntr, and need_signal member.
20571 (__run_fork_handler_type): New enum.
20572 (__run_fork_handlers): New prototype.
20573 * nptl/register-atfork.c: Remove file.
20574 * sysdeps/nptl/libc-lockP.h (__libc_atfork): Remove declaration.
20575
20576 * sysdeps/nptl/nptl-signals.h: Move to ...
20577 * sysdeps/generic/internal-signals.h: ... here. Adjust internal
20578 comments.
20579 * sysdeps/unix/sysv/linux/internal-signals.h: Add include guards.
20580 (__nptl_is_internal_signal): Rename to __is_internal_signal and remove
20581 unnecessary check for SIGTIMER.
20582 (__nptl_clear_internal_signals): Rename to __clear_internal_signals and
20583 remove unnecessary removal of SIGTIMER.
20584 * sysdeps/unix/sysv/linux/raise.c: Adjust nptl-signal.h to
20585 include-signals.h rename.
20586 * nptl/pthreadP.h: Likewise.
20587 * sysdeps/unix/sysv/linux/spawni.c (__spawni_child): Call
20588 __is_internal_signal instead of __nptl_is_internal_signal.
20589
20590 2018-02-22 Andrew Waterman <andrew@sifive.com>
20591
20592 [BZ # 22884]
20593 * sysdeps/riscv/rvd/s_fmax.c (__fmax): Handle sNaNs correctly.
20594 * sysdeps/riscv/rvd/s_fmin.c (__fmin): Likewise.
20595 * sysdeps/riscv/rvf/s_fmaxf.c (__fmaxf): Likewise.
20596 * sysdeps/riscv/rvf/s_fminf.c (__fminf): Likewise.
20597
20598 2018-02-22 DJ Delorie <dj@delorie.com>
20599
20600 * sysdeps/riscv/tls-macros.h: Do not initialize $gp.
20601
20602 2018-02-22 Siddhesh Poyarekar <siddhesh@sourceware.org>
20603
20604 * sysdeps/aarch64/strcmp.S (do_misaligned): Jump back to
20605 do_misaligned, not misaligned8.
20606
20607 2018-02-22 Steve Ellcey <sellcey@cavium.com>
20608
20609 * sysdeps/aarch64/multiarch/Makefile (sysdep_routines):
20610 Add memcpy_thunderx2.
20611 * sysdeps/aarch64/multiarch/ifunc-impl-list.c (MAX_IFUNC):
20612 Increment to 4.
20613 (__libc_ifunc_impl_list): Add __memcpy_thunderx2.
20614 * sysdeps/aarch64/multiarch/memcpy.c (libc_ifunc): Add IS_THUNDERX2
20615 and IS_THUNDERX2PA checks.
20616 * sysdeps/aarch64/multiarch/memcpy_thunderx.S (USE_THUNDERX2):
20617 Use macro to set name appropriately.
20618 (memcpy): Use USE_THUNDERX2 macro to modify prefetches.
20619 * sysdeps/aarch64/multiarch/memcpy_thunderx2.S: New file.
20620 * sysdeps/unix/sysv/linux/aarch64/cpu-features.h (IS_THUNDERX2PA):
20621 New macro.
20622 (IS_THUNDERX2): New macro.
20623
20624 2018-02-22 Stefan Liebler <stli@linux.vnet.ibm.com>
20625
20626 * sysdeps/s390/fpu/libm-test-ulps: Regenerated.
20627
20628 2018-02-21 Zack Weinberg <zackw@panix.com>
20629
20630 * libio/libio.h (_IO_pos_BAD, _IO_pos_0, _IO_pos_adjust):
20631 Define here, unconditionally.
20632 * libio/iolibio.h (_IO_pos_BAD): Don't define here.
20633 * libio/libioP.h: Remove #if 0 blocks.
20634 (_IO_pos_BAD, _IO_pos_0, _IO_pos_adjust): Don't define here.
20635 (_IO_va_start, COERCE_FILE, MAYBE_SET_EINVAL): Don't define.
20636 (CHECK_FILE): Don't use MAYBE_SET_EINVAL or COERCE_FILE. Fix style.
20637
20638 * libio/clearerr.c, libio/fputc.c, libio/getchar.c:
20639 Assume weak_alias is always defined.
20640
20641 * libio/fileops.c, libio/genops.c, libio/oldfileops.c
20642 * libio/oldpclose.c, libio/pclose.c, libio/wfileops.c:
20643 Remove #if 0 and #ifdef TODO blocks.
20644 Assume text_set_element is always defined.
20645
20646 * libio/iofdopen.c, libio/iogetdelim.c, libio/oldiofdopen.c
20647 Use __set_errno (EINVAL) instead of MAYBE_SET_EINVAL.
20648 * libio/tst-mmap-eofsync.c: Make #if 1 block unconditional.
20649
20650 * libio/libio.h (_IOS_ATEND, _IOS_APPEND, _IOS_TRUNC)
20651 (_IOS_NOCREATE, _IOS_NOREPLACE, _IOS_BIN, _OLD_STDIO_MAGIC)
20652 (_IO_SKIPWS, _IO_LEFT, _IO_RIGHT, _IO_INTERNAL, _IO_DEC)
20653 (_IO_OCT, _IO_HEX, _IO_SHOWBASE, _IO_SHOWPOINT, _IO_UPPERCASE)
20654 (_IO_SHOWPOS, _IO_SCIENTIFIC, _IO_FIXED, _IO_UNITBUF, _IO_STDIO)
20655 (_IO_DONT_CLOSE, _IO_BOOLALPHA, _IO_BAD_SEEN): Remove, unused.
20656 Reformat bit flags for _flags field to make occupancy clearer.
20657 Update commentary.
20658 * libio/bits/types/struct_FILE.h (_IO_EOF_SEEN, _IO_ERR_SEEN):
20659 Keep definitions consistent with those in libio/libio.h.
20660
20661 * libio/libio.h (_IO_file_flags): Remove macro.
20662 All uses changed to _flags.
20663
20664 * libio/libio.h (_IO_UNIFIED_JUMPTABLES, _STDIO_USES_IOSTREAM)
20665 (__HAVE_COLUMN, _IO_BE): Don't define.
20666 (_IO_peekc_unlocked, _IO_getwc_unlocked, _IO_putwc_unlocked)
20667 (_IO_fwide_maybe_incompatible): Use __glibc_unlikely.
20668 * libio/libioP.h (EOF): Don't define.
20669 * libio/iofdopen.c, libio/iofopen.c, libio/iopopen.c
20670 * libio/iovdprintf.c, libio/oldiofdopen.c, libio/oldiofopen.c
20671 * libio/oldiopopen.c, debug/vdprintf_chk.c: Remove #if block
20672 testing _IO_UNIFIED_JUMPTABLES.
20673
20674 * libio/libio.h (_IO_FILE): Delete; all uses changed to FILE.
20675 (_IO_fpos_t): Delete; all uses changed to __fpos_t.
20676 (_IO_fpos64_t): Delete; all uses changed to __fpos64_t.
20677 (_IO_size_t): Delete; all uses changed to size_t.
20678 (_IO_ssize_t): Delete; all uses changed to ssize_t or __ssize_t.
20679 (_IO_off_t): Delete; all uses changed to off_t.
20680 (_IO_off64_t): Delete; all uses changed to off64_t.
20681 (_IO_pid_t): Delete; all uses changed to pid_t.
20682 (_IO_uid_t): Delete; all uses changed to uid_t.
20683 (_IO_wint_t): Delete; all uses changed to wint_t.
20684 (_IO_va_list): Delete; all uses changed to va_list or __gnuc_va_list.
20685 (_IO_BUFSIZ): Delete; all uses changed to BUFSIZ.
20686 (_IO_cookie_io_functions_t): Delete; all uses changed to
20687 cookie_io_functions_t.
20688 (__io_read_fn): Delete; all uses changed to cookie_read_function_t.
20689 (__io_write_fn): Delete; all uses changed to cookie_write_function_t.
20690 (__io_seek_fn): Delete; all uses changed to cookie_seek_function_t.
20691 (__io_close_fn): Delete: all uses changed to cookie_close_function_t.
20692
20693 * libio/iofopncook.c: Remove unnecessary forward declarations.
20694 * libio/iolibio.h: Correct outdated commentary.
20695 * malloc/malloc.c (__malloc_stats): Remove unnecessary casts.
20696 * stdio-common/fxprintf.c (__fxprintf_nocancel):
20697 Remove unnecessary casts.
20698 * stdio-common/getline.c: Use _IO_getdelim directly.
20699 Don't redefine ssize_t.
20700 * stdio-common/printf_fp.c, stdio_common/printf_fphex.c
20701 * stdio-common/printf_size.c: Don't redefine size_t or FILE.
20702 Remove outdated comments.
20703 * stdio-common/vfscanf.c: Don't redefine va_list.
20704
20705 * libio/iolibio.h, libio/libioP.h: Remove extern "C".
20706 * libio/libio.h: Remove __BEGIN_DECLS and __END_DECLS.
20707 Remove preprocessor conditionals on _LIBC and __USE_GNU,
20708 which are always true, and __cplusplus, which is always false.
20709
20710 2018-02-21 Joseph Myers <joseph@codesourcery.com>
20711
20712 [BZ #15105]
20713 [BZ #19463]
20714 * libio/fputc_u.c (fputc_unlocked): Use libc_hidden_def.
20715 * libio/putc_u.c (putc_unlocked): Rename to __putc_unlocked and
20716 define as weak alias of __putc_unlocked. Use libc_hidden_weak.
20717 * include/stdio.h [!_ISOMAC] (fputc_unlocked): Use
20718 libc_hidden_proto.
20719 [!_ISOMAC] (putc_unlocked): Likewise.
20720 [!_ISOMAC] (__putc_unlocked): Declare as hidden function, and
20721 define inline if [__USE_EXTERN_INLINES].
20722 * misc/syslog.c (__vsyslog_chk): Call __putc_unlocked instead of
20723 putc_unlocked.
20724
20725 [BZ #15105]
20726 [BZ #19463]
20727 * libio/getc_u.c (getc_unlocked): Use libc_hidden_weak.
20728 * include/stdio.h [!_ISOMAC] (__getc_unlocked): Use
20729 attribute_hidden, and define inline if [__USE_EXTERN_INLINES].
20730 [!_ISOMAC] (getc_unlocked): Use libc_hidden_proto.
20731 * misc/getttyent.c (__getttyent): Call __getc_unlocked instead of
20732 getc_unlocked.
20733 * time/tzfile.c (__tzfile_read): Likewise.
20734
20735 2018-02-21 Mike FABIAN <mfabian@redhat.com>
20736
20737 [BZ #22517]
20738 * localedata/locales/et_EE (LC_COLLATE): add missing “reorder-end”
20739
20740 2018-02-21 Rical Jasan <ricaljasan@pacific.net>
20741
20742 * io/fcntl.h: Fix a typo in a comment.
20743
20744 2018-02-21 Rical Jasan <ricaljasan@pacific.net>
20745
20746 [BZ #22862]
20747 * include/features.h: Add _ISOC11_SOURCE to test for whether to
20748 define _DEFAULT_SOURCE.
20749 * manual/creature.texi (_DEFAULT_SOURCE): Improve documentation.
20750
20751 2018-02-21 Florian Weimer <fweimer@redhat.com>
20752
20753 [BZ #20890]
20754 * elf/cache.c (save_cache): Call fsync on temporary file before
20755 renaming it.
20756 (save_aux_cache): Call fdatasync on temporary file before renaming
20757 it.
20758
20759 2018-02-21 Florian Weimer <fweimer@redhat.com>
20760
20761 [BZ #22787]
20762 * include/caller.h: Remove file.
20763 * elf/dl-caller.c: Likewise.
20764 * elf/Makefile (dl-routines): Remove dl-caller.
20765 (shared-only-routines): Do not add dl-caller.
20766 * elf/dl-load.c (_dl_map_object_from_fd): Do not call
20767 __check_caller.
20768 * elf/dl-open.c (struct dl_open_args): Remove caller_dl_open
20769 member.
20770 (dl_open_worker): Do not call __check_caller.
20771 (_dl_open): Do not set caller_dl_open member.
20772 * elf/rtld.c (_rtld_global_ro): Do not initialize
20773 _dl_check_caller member.
20774 * sysdeps/generic/ldsodefs.h (rtld_global): Remove
20775 _dl_check_caller member.
20776 (_dl_check_caller): Remove declaration.
20777 * sysdeps/unix/sysv/linux/dl-execstack.c
20778 (_dl_make_stack_executable): Do not call __check_caller.
20779
20780 2018-02-21 Samuel Thibault <samuel.thibault@ens-lyon.org>
20781
20782 * sysdeps/mach/hurd/dl-sysdep.c (_dl_random): New variable.
20783 * sysdeps/mach/hurd/sysdep-cancel.h: New file.
20784
20785 2018-02-20 Rical Jasan <ricaljasan@pacific.net>
20786
20787 * manual/creature.texi (_ISOC99_SOURCE): Update the dated
20788 description.
20789
20790 2018-02-20 Rical Jasan <ricaljasan@pacific.net>
20791
20792 [BZ #16335]
20793 * manual/creature.texi (_POSIX_C_SOURCE): Document special values
20794 of 199606L, 200112L, and 200809L.
20795 (_XOPEN_SOURCE): Document special values of 600 and 700.
20796 (_ISOC11_SOURCE): Document macro.
20797 (_ATFILE_SOURCE): Likewise.
20798 (_FORTIFY_SOURCE): Likewise.
20799
20800 2018-02-19 Joseph Myers <joseph@codesourcery.com>
20801
20802 [BZ #15105]
20803 [BZ #19463]
20804 * libio/ferror_u.c (ferror_unlocked): Rename to __ferror_unlocked
20805 and define as weak alias of __ferror_unlocked. Use
20806 libc_hidden_weak.
20807 * include/stdio.h [!_ISOMAC] (ferror_unlocked): Use
20808 libc_hidden_proto.
20809 [!_ISOMAC] (__ferror_unlocked) New declaration, and inline
20810 function if [__USE_EXTERN_INLINES].
20811 * time/getdate.c (__getdate_r): Call __ferror_unlocked instead of
20812 ferror_unlocked.
20813
20814 2018-02-19 Rical Jasan <ricaljasan@pacific.net>
20815
20816 [BZ #6889]
20817 * manual/filesys.texi (get_current_dir_name): Clarify behaviour.
20818
20819 2018-02-18 Aurelien Jarno <aurelien@aurel32.net>
20820
20821 [BZ #22818]
20822 * posix/tst-glob_lstat_compat.c [__alpha__] (glob): Access
20823 the GLIBC_2.1 version.
20824
20825 2018-02-18 Aurelien Jarno <aurelien@aurel32.net>
20826
20827 [BZ #21508]
20828 * catgets/xopen-msg.awk: Ignore POT-Creation-Date line.
20829 * intl/Makefile ($(objpfx)tst-gettext-de.po): Generate
20830 intl/tst-gettext-de.po from po/de.po by removing the
20831 POT-Creation-Date line.
20832 ($(objpfx)msgs.h): Depend on $(objpfx)tst-gettext-de.po instead of
20833 ../po/de.po.
20834 * intl/tst-gettext.sh: Use ${objpfx}tst-gettext-de.po instead of
20835 ../po/de.po.
20836
20837 2018-02-17 Samuel Thibault <samuel.thibault@ens-lyon.org>
20838
20839 * mach/Makefile (headers): Add mach/param.h.
20840 * sysdeps/mach/hurd/bits/param.h: Include <mach/param.h>.
20841 * sysdeps/mach/i386/mach/param.h: New file, defines EXEC_PAGESIZE
20842 * sysdeps/mach/hurd/ptsname.c: Include <sys/stat.h>.
20843 (__ptsname_r): Move implementation to...
20844 (__ptsname_internal): ... new function. Add filling the STP
20845 structure.
20846
20847 2018-02-17 John David Anglin <danglin@gcc.gnu.org>
20848
20849 * sysdeps/hppa/fpu/libm-test-ulps (pow): Increase double and
20850 idouble to 1 ULP.
20851
20852 2018-02-16 Rical Jasan <ricaljasan@pacific.net>
20853
20854 * manual/platform.texi (__riscv_flush_icache): Fix @deftypefun
20855 syntax.
20856
20857 2018-02-16 Stefan Liebler <stli@linux.vnet.ibm.com>
20858
20859 * nptl/Makefile (tst-mutex8-ENV): Delete.
20860 * nptl/tst-mutex8.c (check_type):
20861 Add runtime check if mutex will be elided.
20862
20863 2018-02-15 Joseph Myers <joseph@codesourcery.com>
20864
20865 [BZ #20980]
20866 [BZ #21234]
20867 * manual/install.texi (Configuring and compiling): Describe
20868 passing CC and CFLAGS on configure command line, not as
20869 environment variables. Use @code markup on those variables.
20870 Specify what options go in CC and what go in CFLAGS. Note the
20871 requirement to compile with optimization.
20872 * INSTALL: Regenerated.
20873
20874 [BZ #18124]
20875 * sysdeps/hppa/bsd-setjmp.S: Include <sysdep.h>.
20876 (setjmp): Use HIDDEN_JUMPTARGET with __sigsetjmp.
20877 * sysdeps/unix/sysv/linux/hppa/getcontext.S (__getcontext): Call
20878 __sigprocmask instead of sigprocmask.
20879 * sysdeps/unix/sysv/linux/hppa/setcontext.S (__setcontext):
20880 Likewise.
20881 * sysdeps/unix/sysv/linux/hppa/localplt.data: Remove entries for
20882 __sigsetjmp and sigprocmask.
20883
20884 [BZ #15105]
20885 * include/argz.h (argz_next): Use libc_hidden_proto.
20886 (__argz_next): Likewise.
20887 * string-argz-next.c (__argz_next): Use libc_hidden_def.
20888 (argz_next): Use libc_hidden_weak.
20889
20890 [BZ #15105]
20891 * include/sys/socket.h [!_ISOMAC] (__cmsg_nxthdr): Use
20892 libc_hidden_proto.
20893 * sysdeps/unix/sysv/linux/cmsg_nxthdr.c (__cmsg_nxthdr): Use
20894 libc_hidden_def.
20895
20896 [BZ #15105]
20897 * include/stdio.h [!_ISOMAC && IS_IN (libc)] (fputs): Use
20898 libc_hidden_proto.
20899 * libio/iofputs.c (fputs): Use libc_hidden_weak.
20900
20901 [BZ #15105]
20902 [BZ #19463]
20903 * libio/feof_u.c (feof_unlocked): Rename to __feof_unlocked and
20904 define as weak alias of __feof_unlocked. Use libc_hidden_weak.
20905 * include/stdio.h (feof_unlocked): Use libc_hidden_proto.
20906 (__feof_unlocked): New declaration, and inline function if
20907 [__USE_EXTERN_INLINES].
20908 * iconv/gconv_conf.c (read_conf_file): Call __feof_unlocked
20909 instead of feof_unlocked.
20910 * intl/localealias.c [_LIBC] (FEOF): Likewise.
20911 * nss/nsswitch.c (nss_parse_file): Likewise.
20912 * sysdeps/unix/sysv/linux/readonly-area.c (__readonly_area):
20913 Likewise.
20914 * time/getdate.c (__getdate_r): Likewise.
20915 * sysdeps/posix/getaddrinfo.c [IS_IN (libc)] (feof_unlocked):
20916 Define as macro to call __feof_unlocked.
20917
20918 2018-02-15 Wilco Dijkstra <wdijkstr@arm.com>
20919
20920 * sysdeps/aarch64/fpu/fpu_control.h: Use <> in include.
20921
20922 2018-02-15 Wilco Dijkstra <wdijkstr@arm.com>
20923
20924 * math/Makefile: Remove mpexp.c and mplog.c
20925 * sysdeps/i386/fpu/mpexp.c: Delete file.
20926 * sysdeps/i386/fpu/mplog.c: Likewise.
20927 * sysdeps/ia64/fpu/mpexp.c: Likewise.
20928 * sysdeps/ia64/fpu/mplog.c: Likewise.
20929 * sysdeps/ieee754/dbl-64/e_exp.c: Remove mention of mpexp and mplog.
20930 * sysdeps/ieee754/dbl-64/mpa.h (__pow_mp): Remove unused function.
20931 * sysdeps/ieee754/dbl-64/mpexp.c: Delete file.
20932 * sysdeps/ieee754/dbl-64/mplog.c: Likewise.
20933 * sysdeps/m68k/m680x0/fpu/mpexp.c: Likewise.
20934 * sysdeps/m68k/m680x0/fpu/mplog.c: Likewise.
20935 * sysdeps/x86_64/fpu/multiarch/Makefile: Remove mpexp* and mplog*.
20936 * sysdeps/x86_64/fpu/multiarch/e_log-avx.c: Remove unused defines.
20937 * sysdeps/x86_64/fpu/multiarch/e_log-fma.c: Likewise.
20938 * sysdeps/x86_64/fpu/multiarch/e_log-fma4.c: Likewise.
20939 * sysdeps/x86_64/fpu/multiarch/mpexp-avx.c: Delete file.
20940 * sysdeps/x86_64/fpu/multiarch/mpexp-fma.c: Likewise.
20941 * sysdeps/x86_64/fpu/multiarch/mpexp-fma4.c: Likewise.
20942 * sysdeps/x86_64/fpu/multiarch/mplog-avx.c: Likewise.
20943 * sysdeps/x86_64/fpu/multiarch/mplog-fma.c: Likewise.
20944 * sysdeps/x86_64/fpu/multiarch/mplog-fma4.c: Likewise.
20945
20946 2018-02-15 Stefan Liebler <stli@linux.vnet.ibm.com>
20947
20948 * sysdeps/s390/fpu/libm-test-ulps: Regenerated.
20949
20950 2018-02-14 Adhemerval Zanella <adhemerval.zanella@linaro.org>
20951
20952 * sysdeps/sh/libm-test-ulps: Update.
20953
20954 2018-02-12 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
20955
20956 * sysdeps/powerpc/fpu/libm-test-ulps (pow): Increase double and
20957 idouble to 1 ULP.
20958
20959 2018-02-12 Zack Weinberg <zackw@panix.com>
20960
20961 [BZ #19239]
20962 * posix/sys/types.h: Don't include sys/sysmacros.h.
20963 * misc/sys/sysmacros.h: Remove the conditional deprecation
20964 warnings for the macros defined by this header.
20965
20966 2018-02-12 Szabolcs Nagy <szabolcs.nagy@arm.com>
20967
20968 * manual/probes.texi: Remove slowexp probes.
20969 * math/Makefile: Remove slowexp.
20970 * sysdeps/generic/math_private.h (__slowexp): Remove.
20971 * sysdeps/ieee754/dbl-64/e_exp.c (__ieee754_exp): Remove __slowexp and
20972 document error bounds.
20973 * sysdeps/i386/fpu/slowexp.c: Remove.
20974 * sysdeps/ia64/fpu/slowexp.c: Remove.
20975 * sysdeps/ieee754/dbl-64/slowexp.c: Remove.
20976 * sysdeps/ieee754/dbl-64/uexp.h (err_0): Remove.
20977 * sysdeps/m68k/m680x0/fpu/slowexp.c: Remove.
20978 * sysdeps/powerpc/power4/fpu/Makefile (CPPFLAGS-slowexp.c): Remove.
20979 * sysdeps/x86_64/fpu/multiarch/Makefile: Remove slowexp-fma.
20980 * sysdeps/x86_64/fpu/multiarch/e_exp-avx.c (__slowexp): Remove.
20981 * sysdeps/x86_64/fpu/multiarch/e_exp-fma.c (__slowexp): Remove.
20982 * sysdeps/x86_64/fpu/multiarch/e_exp-fma4.c (__slowexp): Remove.
20983 * sysdeps/x86_64/fpu/multiarch/slowexp-avx.c: Remove.
20984 * sysdeps/x86_64/fpu/multiarch/slowexp-fma.c: Remove.
20985 * sysdeps/x86_64/fpu/multiarch/slowexp-fma4.c: Remove.
20986
20987 2018-02-12 Wilco Dijkstra <wdijkstr@arm.com>
20988
20989 [BZ #13932]
20990 * sysdeps/ieee754/dbl-64/uexp.h (err_1): Remove.
20991 * benchtests/pow-inputs: Update comment for slow path cases.
20992 * manual/probes.texi (slowpow_p10): Delete removed probe.
20993 (slowpow_p10): Likewise.
20994 * math/Makefile: Remove halfulp.c and slowpow.c.
20995 * sysdeps/aarch64/libm-test-ulps: Set ULP of pow to 1.
20996 * sysdeps/generic/math_private.h (__exp1): Remove error argument.
20997 (__halfulp): Remove.
20998 (__slowpow): Remove.
20999 * sysdeps/i386/fpu/halfulp.c: Delete file.
21000 * sysdeps/i386/fpu/slowpow.c: Likewise.
21001 * sysdeps/ia64/fpu/halfulp.c: Likewise.
21002 * sysdeps/ia64/fpu/slowpow.c: Likewise.
21003 * sysdeps/ieee754/dbl-64/e_exp.c (__exp1): Remove error argument,
21004 improve comments and add error analysis.
21005 * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Add error analysis.
21006 (power1): Remove function:
21007 (log1): Remove error argument, add error analysis.
21008 (my_log2): Remove function.
21009 * sysdeps/ieee754/dbl-64/halfulp.c: Delete file.
21010 * sysdeps/ieee754/dbl-64/slowpow.c: Likewise.
21011 * sysdeps/m68k/m680x0/fpu/halfulp.c: Likewise.
21012 * sysdeps/m68k/m680x0/fpu/slowpow.c: Likewise.
21013 * sysdeps/powerpc/power4/fpu/Makefile: Remove CPPFLAGS-slowpow.c.
21014 * sysdeps/x86_64/fpu/libm-test-ulps: Set ULP of pow to 1.
21015 * sysdeps/x86_64/fpu/multiarch/Makefile: Remove slowpow-fma.c,
21016 slowpow-fma4.c, halfulp-fma.c, halfulp-fma4.c.
21017 * sysdeps/x86_64/fpu/multiarch/e_pow-fma.c (__slowpow): Remove define.
21018 * sysdeps/x86_64/fpu/multiarch/e_pow-fma4.c (__slowpow): Likewise.
21019 * sysdeps/x86_64/fpu/multiarch/halfulp-fma.c: Delete file.
21020 * sysdeps/x86_64/fpu/multiarch/halfulp-fma4.c: Likewise.
21021 * sysdeps/x86_64/fpu/multiarch/slowpow-fma.c: Likewise.
21022 * sysdeps/x86_64/fpu/multiarch/slowpow-fma4.c: Likewise.
21023
21024 2018-02-11 Samuel Thibault <samuel.thibault@ens-lyon.org>
21025
21026 * nscd/connections.c (RWLOCK_INITIALIZER): Define to
21027 PTHREAD_RWLOCK_WRITER_NONRECURSIVE_INITIALIZER_NP or
21028
21029 2018-02-10 Dmitry V. Levin <ldv@altlinux.org>
21030
21031 [BZ #22433]
21032 * sysdeps/unix/sysv/linux/aarch64/sys/ptrace.h (__ptrace_request):
21033 Remove arm-specific PTRACE_GET_THREAD_AREA, PTRACE_GETHBPREGS,
21034 and PTRACE_SETHBPREGS.
21035
21036 2018-02-10 Zack Weinberg <zackw@panix.com>
21037
21038 [BZ #22830]
21039 * malloc/malloc.c (__malloc_stats): Restore stderr->_flags2
21040 correctly.
21041 * malloc/tst-malloc-stats-cancellation.c: New test case.
21042 * malloc/Makefile: Add new test case.
21043
21044 2018-02-10 Wilco Dijkstra <wdijkstr@arm.com>
21045
21046 * sysdeps/aarch64/fpu/fpu_control.h: Add features.h to fix build error.
21047
21048 2018-02-10 Joseph Myers <joseph@codesourcery.com>
21049
21050 * math/Makefile (libm-narrow-fns): Add add.
21051 (libm-test-funcs-narrow): Likewise.
21052 * math/Versions (GLIBC_2.28): Add narrowing add functions.
21053 * math/bits/mathcalls-narrow.h (add): Use __MATHCALL_NARROW .
21054 * math/gen-auto-libm-tests.c (test_functions): Add add.
21055 * math/math-narrow.h (CHECK_NARROW_ADD): New macro.
21056 (NARROW_ADD_ROUND_TO_ODD): Likewise.
21057 (NARROW_ADD_TRIVIAL): Likewise.
21058 * sysdeps/ieee754/float128/float128_private.h (__faddl): New
21059 macro.
21060 (__daddl): Likewise.
21061 * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Add fadd and
21062 dadd.
21063 (CFLAGS-nldbl-dadd.c): New variable.
21064 (CFLAGS-nldbl-fadd.c): Likewise.
21065 * sysdeps/ieee754/ldbl-opt/Versions (GLIBC_2.28): Add
21066 __nldbl_daddl.
21067 * sysdeps/ieee754/ldbl-opt/nldbl-compat.h (__nldbl_daddl): New
21068 prototype.
21069 * manual/arith.texi (Misc FP Arithmetic): Document fadd, faddl,
21070 daddl, fMaddfN, fMaddfNx, fMxaddfN and fMxaddfNx.
21071 * math/auto-libm-test-in: Add tests of add.
21072 * math/auto-libm-test-out-narrow-add: New generated file.
21073 * math/libm-test-narrow-add.inc: New file.
21074 * sysdeps/i386/fpu/s_f32xaddf64.c: Likewise.
21075 * sysdeps/ieee754/dbl-64/s_f32xaddf64.c: Likewise.
21076 * sysdeps/ieee754/dbl-64/s_fadd.c: Likewise.
21077 * sysdeps/ieee754/float128/s_f32addf128.c: Likewise.
21078 * sysdeps/ieee754/float128/s_f64addf128.c: Likewise.
21079 * sysdeps/ieee754/float128/s_f64xaddf128.c: Likewise.
21080 * sysdeps/ieee754/ldbl-128/s_daddl.c: Likewise.
21081 * sysdeps/ieee754/ldbl-128/s_f64xaddf128.c: Likewise.
21082 * sysdeps/ieee754/ldbl-128/s_faddl.c: Likewise.
21083 * sysdeps/ieee754/ldbl-128ibm/s_daddl.c: Likewise.
21084 * sysdeps/ieee754/ldbl-128ibm/s_faddl.c: Likewise.
21085 * sysdeps/ieee754/ldbl-96/s_daddl.c: Likewise.
21086 * sysdeps/ieee754/ldbl-96/s_faddl.c: Likewise.
21087 * sysdeps/ieee754/ldbl-opt/nldbl-dadd.c: Likewise.
21088 * sysdeps/ieee754/ldbl-opt/nldbl-fadd.c: Likewise.
21089 * sysdeps/ieee754/soft-fp/s_daddl.c: Likewise.
21090 * sysdeps/ieee754/soft-fp/s_fadd.c: Likewise.
21091 * sysdeps/ieee754/soft-fp/s_faddl.c: Likewise.
21092 * sysdeps/powerpc/fpu/libm-test-ulps: Update.
21093 * sysdeps/mach/hurd/i386/libm.abilist: Likewise.
21094 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
21095 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
21096 * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
21097 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
21098 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
21099 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
21100 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
21101 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
21102 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
21103 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
21104 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
21105 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
21106 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Likewise.
21107 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist: Likewise.
21108 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Likewise.
21109 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Likewise.
21110 * sysdeps/unix/sysv/linux/riscv/rv64/libm.abilist: Likewise.
21111 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
21112 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
21113 * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
21114 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
21115 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
21116 * sysdeps/unix/sysv/linux/tile/tilegx32/libm.abilist: Likewise.
21117 * sysdeps/unix/sysv/linux/tile/tilegx64/libm.abilist: Likewise.
21118 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
21119 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
21120
21121 * sysdeps/powerpc/powerpc64le/Makefile [$(subdir) = math]
21122 (f128-pairs): New variable.
21123 [$(subdir) = math] ($(foreach suf,$(all-object-suffixes),$(foreach
21124 pair,$(f128-pairs),$(objpfx)test-$(pair)%$(suf)))): Add -mfloat128
21125 to CFLAGS.
21126 [$(subdir) = math] ($(foreach pair,$(f128-pairs),test-$(pair)%)):
21127 Also make tests add $(f128-loader-link) to gnulib-tests.
21128
21129 2018-02-09 DJ Delorie <dj@redhat.com>
21130
21131 [BZ #22827]
21132 * sysdeps/unix/sysv/linux/riscv/readelflib.c (process_elf_file): Use
21133 64-bit ELF type for 64-bit ELF objects.
21134
21135 2018-02-09 Joseph Myers <joseph@codesourcery.com>
21136
21137 * math/libm-test-driver.c (snan_tests_arg): New variable.
21138 * math/libm-test-support.h (snan_tests_arg): New declaration.
21139 * math/libm-test-support.c (enable_test): Check snan_tests_arg.
21140
21141 * math/Makefile (test-type-pairs): New variable.
21142 (test-type-pairs-f64xf128-yes): Likewise.
21143 (tests): Add test-narrow-macros.
21144 (libm-test-funcs-narrow): New variable.
21145 (libm-test-c-narrow): Likewise.
21146 (generated): Add $(libm-test-c-narrow).
21147 (libm-tests-base-narrow): New variable.
21148 (libm-tests-narrow): Likewise.
21149 (libm-tests): Add $(libm-tests-narrow).
21150 (libm-tests-for-type): Handle $(libm-tests-narrow).
21151 (libm-test-c-narrow-obj): New variable.
21152 ($(libm-test-c-narrow-obj)): New rule.
21153 ($(foreach t,$(libm-tests-narrow),$(objpfx)$(t).c)): Likewise.
21154 ($(foreach f,$(libm-test-funcs-narrow),$(objpfx)$(o)-$(f).o)): Use
21155 $(o-iterator) to set dependencies and CFLAGS.
21156 * math/gen-auto-libm-tests.c: Document use for narrowing
21157 functions.
21158 (output_for_one_input_case): Take argument NARROW.
21159 (generate_output): Likewise. Update call to
21160 output_for_one_input_case.
21161 (main): Take --narrow option. Update call to generate_output.
21162 * math/gen-libm-test.pl (_apply_lit): Take macro name as argument.
21163 (apply_lit): Update call to _apply_lit.
21164 (apply_arglit): New function.
21165 (parse_args): Handle "a" arguments.
21166 (parse_auto_input): Handle format names using ":".
21167 * math/README.libm-test: Document "a" parameter type.
21168 * math/libm-test-support.h (ARG_TYPE_MIN): New macro.
21169 (ARG_TYPE_TRUE_MIN): Likewise.
21170 (ARG_TYPE_MAX): Likwise.
21171 (ARG_MIN_EXP): Likewise.
21172 (ARG_MAX_EXP): Likewise.
21173 (ARG_MANT_DIG): Likewise.
21174 (TEST_COND_arg_ibm128): Likewise.
21175 (TEST_COND_ibm128_libgcc): Define conditional on [ARG_FLOAT].
21176 (TEST_COND_arg_fmt): New macro.
21177 (init_max_error): Update prototype.
21178 * math/libm-test-support.c (test_ibm128): New variable.
21179 (init_max_error): Take argument testing_ibm128 and set test_ibm128
21180 instead of using [TEST_COND_ibm128] conditional.
21181 (test_exceptions): Use test_ibm128 instead of TEST_COND_ibm128.
21182 * math/libm-test-driver.c (STR_ARG_FLOAT): New macro.
21183 [TEST_NARROW] (TEST_MSG): New definition.
21184 (arg_plus_zero): New macro.
21185 (arg_minus_zero): Likewise.
21186 (arg_plus_infty): Likewise.
21187 (arg_minus_infty): Likewise.
21188 (arg_qnan_value_pl): Likewise.
21189 (arg_qnan_value): Likewise.
21190 (arg_snan_value_pl): Likewise.
21191 (arg_snan_value): Likewise.
21192 (arg_max_value): Likewise.
21193 (arg_min_value): Likewise.
21194 (arg_min_subnorm_value): Likewise.
21195 [ARG_FLOAT] (struct test_aa_f_data): New struct type.
21196 (RUN_TEST_LOOP_aa_f): New macro.
21197 (TEST_SUFF): New macro.
21198 (TEST_SUFF_STR): Likewise.
21199 [!TEST_MATHVEC] (VEC_SUFF): Don't define.
21200 (TEST_COND_any_ibm128): New macro.
21201 (START): Use TEST_SUFF and TEST_SUFF_STR in initializer for
21202 this_func. Update call to init_max_error.
21203 * math/test-double.h (FUNC_NARROW_PREFIX): New macro.
21204 * math/test-float.h (FUNC_NARROW_PREFIX): Likewise.
21205 * math/test-float128.h (FUNC_NARROW_PREFIX): Likewise.
21206 * math/test-float32.h (FUNC_NARROW_PREFIX): Likewise.
21207 * math/test-float32x.h (FUNC_NARROW_PREFIX): Likewise.
21208 * math/test-float64.h (FUNC_NARROW_PREFIX): Likewise.
21209 * math/test-float64x.h (FUNC_NARROW_PREFIX): Likewise.
21210 * math/test-math-scalar.h (TEST_NARROW): Likewise.
21211 * math/test-math-vector.h (TEST_NARROW): Likewise.
21212 * math/test-arg-double.h: New file.
21213 * math/test-arg-float128.h: Likewise.
21214 * math/test-arg-float32x.h: Likewise.
21215 * math/test-arg-float64.h: Likewise.
21216 * math/test-arg-float64x.h: Likewise.
21217 * math/test-arg-ldouble.h: Likewise.
21218 * math/test-math-narrow.h: Likewise.
21219 * math/test-narrow-macros.c: Likewise.
21220 * sysdeps/ieee754/ldbl-opt/test-narrow-macros-ldbl-64.c: Likewise.
21221 * sysdeps/ieee754/ldbl-opt/Makefile (tests): Add
21222 test-narrow-macros-ldbl-64.
21223 (CFLAGS-test-narrow-macros-ldbl-64.c): New variable.
21224
21225 * math/bits/mathcalls-narrow.h: New file.
21226 * include/bits/mathcalls-narrow.h: Likewise.
21227 * math/math-narrow.h: Likewise.
21228 * math/math.h (__MATHCALL_NARROW_ARGS_1): New macro.
21229 (__MATHCALL_NARROW_ARGS_2): Likewise.
21230 (__MATHCALL_NARROW_ARGS_3): Likewise.
21231 (__MATHCALL_NARROW_NORMAL): Likewise.
21232 (__MATHCALL_NARROW_REDIR): Likewise.
21233 (__MATHCALL_NARROW): Likewise.
21234 [__GLIBC_USE (IEC_60559_BFP_EXT)]: Repeatedly include
21235 <bits/mathcalls-narrow.h> with _Mret_, _Marg_ and __MATHCALL_NAME
21236 defined.
21237 [__GLIBC_USE (IEC_60559_TYPES_EXT)]: Likewise.
21238 * math/Makefile (headers): Add bits/mathcalls-narrow.h.
21239 (libm-narrow-fns): New variable.
21240 (libm-narrow-types-basic): Likewise.
21241 (libm-narrow-types-ldouble-yes): Likewise.
21242 (libm-narrow-types-float128-yes): Likewise.
21243 (libm-narrow-types-float128-alias-yes): Likewise.
21244 (libm-narrow-types): Likewise.
21245 (libm-routines): Add narrowing functions.
21246 * sysdeps/i386/fpu/fenv_private.h [__x86_64__]
21247 (libc_feholdexcept_setroundf128): New macro.
21248 [__x86_64__] (libc_feupdateenv_testf128): Likewise.
21249 * sysdeps/ieee754/float128/float128_private.h: Include
21250 <math/math-narrow.h>.
21251 [libc_feholdexcept_setroundf128] (libc_feholdexcept_setroundl):
21252 Undefine and redefine.
21253 [libc_feupdateenv_testf128] (libc_feupdateenv_testl): Likewise.
21254 (libm_alias_float_ldouble): Undefine and redefine.
21255 (libm_alias_double_ldouble): Likewise.
21256
21257 * math/Makefile [$(PERL) != no] (libm-test-incs): Remove variable.
21258
21259 2018-02-09 Wilco Dijkstra <wdijkstr@arm.com>
21260
21261 * sysdeps/aarch64/fpu/fpu_control.h: Use builtins for accessing
21262 FPCR/FPSR.
21263
21264 2018-02-09 Rical Jasan <ricaljasan@pacific.net>
21265
21266 * manual/creature.texi: Convert references to gcc.info to gcc.
21267 * manual/stdio.texi: Likewise.
21268 * manual/string.texi: Likewise.
21269
21270 2018-02-07 Joseph Myers <joseph@codesourcery.com>
21271
21272 [BZ #17979]
21273 * posix/bits/types.h (__int_least8_t): New typedef.
21274 (__uint_least8_t): Likewise.
21275 (__int_least16_t): Likewise.
21276 (__uint_least16_t): Likewise.
21277 (__int_least32_t): Likewise.
21278 (__uint_least32_t): Likewise.
21279 (__int_least64_t): Likewise.
21280 (__uint_least64_t): Likewise.
21281 * sysdeps/generic/stdint.h (int_least8_t): Define using
21282 __int_least8_t.
21283 (int_least16_t): Define using __int_least16_t.
21284 (int_least32_t): Define using __int_least32_t.
21285 (int_least64_t): Define using __int_least64_t.
21286 (uint_least8_t): Define using __uint_least8_t.
21287 (uint_least16_t): Define using __uint_least16_t.
21288 (uint_least32_t): Define using __uint_least32_t.
21289 (uint_least64_t): Define using __uint_least64_t.
21290 * wcsmbs/uchar.h: Include <bits/types.h>.
21291 (char16_t): Define using __uint_least16_t conditional only on
21292 [!__USE_ISOCXX11].
21293 (char32_t): Define using __uint_least32_t conditional only on
21294 [!__USE_ISOCXX11].
21295 * wcsmbs/test-char-types.c: New file.
21296 * wcsmbs/Makefile (tests): Add test-char-types.
21297
21298 * scripts/build-many-glibcs.py (Context.checkout): Default MPFR
21299 version to 4.0.1.
21300
21301 2018-02-07 Zack Weinberg <zackw@panix.com>
21302
21303 * bits/_G_config.h: Move back to sysdeps/generic/_G_config.h.
21304 Delete all contents except for definitions of _G_HAVE_MMAP and
21305 _G_HAVE_MREMAP. Add commentary explaining those two symbols.
21306 * sysdeps/unix/sysv/linux/bits/_G_config.h: Move back to
21307 sysdeps/unix/sysv/linux/_G_config.h. Make same content
21308 change as above.
21309
21310 * libio/libio.h: Don't include bits/_G_config.h here.
21311 Include stddef.h with __need_wchar_t defined. Include
21312 bits/types/__mbstate_t.h, bits/types/wint_t.h, and gconv.h.
21313 Define _IO_iconv_t here, directly.
21314 Don't define _IO_HAVE_ST_BLKSIZE.
21315 * libio/libioP.h: Include _G_config.h here. Move include of
21316 shlib-compat.h up with rest of includes. Simplify conditionals
21317 controlling definition of _IO_JUMPS_OFFSET.
21318
21319 * csu/init.c: Remove always-true #if around entire file.
21320 Don't include stdio.h. Set _IO_stdin_used to hardwired
21321 constant 0x20001, and update commentary.
21322 * include/stdio.h, sysdeps/ieee754/ldbl-opt/nldbl-compat.h:
21323 Replace all uses of _G_va_list with __gnuc_va_list.
21324 * libio/filedoalloc.c: Use #if defined _STATBUF_ST_BLKSIZE
21325 instead of #if _IO_HAVE_ST_BLKSIZE.
21326 * libio/fileops.c: Test _G_HAVE_MREMAP with #if, not #ifdef.
21327 * libio/iofdopen.c, libio/iofopen.c: Test _G_HAVE_MMAP with #if,
21328 not #ifdef.
21329
21330 * libio/bits/libio.h: Move back to libio/libio.h and adjust
21331 multiple-include guard to match.
21332 Merge contents of libio/bits/libio-ldbl.h and include/libio.h
21333 into this file.
21334 Remove preprocessor conditionals that are always true and/or
21335 redundant to other preprocessor conditionals in the same nest.
21336 Include shlib-compat.h unconditionally.
21337 Error out if _LIBC is not defined, or if _ISOMAC is defined,
21338 or if _IO_MTSAFE_IO is defined but _IO_lock_t_defined is not
21339 defined after including stdio.h.
21340 Use __BEGIN_DECLS/__END_DECLS.
21341
21342 * libio/bits/libio-ldbl.h, include/bits/libio.h: Delete file.
21343 * include/stdio.h, libio/iolibio.h, libio/libioP.h: Include
21344 libio.h as <libio/libio.h> rather than as <bits/libio.h>.
21345
21346 2018-02-07 Zack Weinberg <zackw@panix.com>
21347
21348 * libio/bits/types/__fpos_t.h, libio/bits/types/__fpos64_t.h:
21349 New single-type headers split from _G_config.h.
21350 * libio/bits/types/cookie_io_functions_t.h
21351 * libio/bits/types/struct_FILE.h
21352 New single-type headers split from libio.h.
21353
21354 * libio/Makefile: Install the above new headers. Don't install
21355 libio.h, _G_config.h, bits/libio.h, bits/_G_config.h, or
21356 bits/libio-ldbl.h.
21357 * libio/_G_config.h, libio/libio.h: Delete file.
21358
21359 * libio/bits/libio.h: Remove improper-inclusion guard.
21360 Include stdio.h and don't repeat anything that it does.
21361 Define _IO_fpos_t as __fpos_t, _IO_fpos64_t as __fpos64_t,
21362 _IO_BUFSIZ as BUFSIZ, _IO_va_list as __gnuc_va_list,
21363 __io_read_fn as cookie_read_function_t,
21364 __io_write_fn as cookie_write_function_t,
21365 __io_seek_fn as cookie_seek_function_t,
21366 __io_close_fn as cookie_close_function_t,
21367 and _IO_cookie_io_functions_t as cookie_io_functions_t.
21368 Define _STDIO_USES_IOSTREAM, __HAVE_COLUMN, and _IO_file_flags
21369 here, in the "compatibility defines" section. Remove an #if 0
21370 block. Use the "body" macros from bits/types/struct_FILE.h to
21371 define _IO_getc_unlocked, _IO_putc_unlocked, _IO_feof_unlocked,
21372 and _IO_ferror_unlocked.
21373 Move prototypes of __uflow and __overflow...
21374
21375 * libio/stdio.h: ...here. Don't include bits/libio.h.
21376 Don't define _STDIO_USES_IOSTREAM. Get __gnuc_va_list
21377 directly from stdarg.h. Include bits/types/__fpos_t.h,
21378 bits/types/__fpos64_t.h, bits/types/struct_FILE.h,
21379 and, when __USE_GNU, bits/types/cookie_io_functions_t.h.
21380 Use __gnuc_va_list, not _G_va_list; __fpos_t, not _G_fpos_t;
21381 __fpos64_t, not _G_fpos64_t; FILE, not struct _IO_FILE;
21382 cookie_io_functions_t, not _IO_cookie_io_functions_t;
21383 __ssize_t, not _IO_ssize_t. Unconditionally define
21384 BUFSIZ as 8192 and EOF as (-1).
21385
21386 * libio/bits/stdio.h: Add multiple-include guard. Use the "body"
21387 macros from bits/types/struct_FILE.h instead of _IO_* macros
21388 from libio.h; use __gnuc_va_list instead of va_list and __ssize_t
21389 instead of _IO_ssize_t.
21390 * libio/bits/stdio2.h: Similarly.
21391
21392 * libio/iolibio.h: Add multiple-include guard.
21393 Include bits/libio.h after stdio.h.
21394 * libio/libioP.h: Add multiple-include guard.
21395 Include stdio.h and bits/libio.h before iolibio.h.
21396
21397 * include/bits/types/__fpos_t.h, include/bits/types/__fpos64_t.h
21398 * include/bits/types/cookie_io_functions_t.h
21399 * include/bits/types/struct_FILE.h: New wrappers.
21400
21401 * bits/_G_config.h, sysdeps/unix/sysv/linux/_G_config.h:
21402 Get definitions of _G_fpos_t and _G_fpos64_t from
21403 bits/types/__fpos_t.h and bits/types/__fpos64_t.h
21404 respectively. Remove improper-inclusion guards.
21405
21406 * conform/data/stdio.h-data: Update expectations of va_list.
21407 * scripts/check-installed-headers.sh: Remove special case for
21408 libio.h and _G_config.h.
21409
21410 2018-02-07 Joseph Myers <joseph@codesourcery.com>
21411
21412 [BZ #15105]
21413 [BZ #19463]
21414 * include/sys/sysmacros.h [!_ISOMAC]
21415 (__SYSMACROS_NEED_IMPLEMENTATION): Define macro.
21416 [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC]
21417 (_SYS_SYSMACROS_H_WRAPPER): Likewise.
21418 [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC] (gnu_dev_major): Use
21419 libc_hidden_proto.
21420 [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC] (gnu_dev_minor): Likewise.
21421 [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC] (gnu_dev_makedev):
21422 Likewise.
21423 [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC] (__SYSMACROS_DECL_TEMPL):
21424 Undefine and redefine to add use __gnu_dev_ prefix.
21425 [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC] (__SYSMACROS_IMPL_TEMPL):
21426 Likewise.
21427 [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC] (__gnu_dev_major): Declare
21428 and define as hidden inline function.
21429 [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC] (__gnu_dev_minor):
21430 Likewise.
21431 [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC] (__gnu_dev_makedev):
21432 Likewise.
21433 * misc/makedev.c (OUT_OF_LINE_IMPL_TEMPL): Use __gnu_dev_ prefix.
21434 (gnu_dev_major): Use weak_alias and libc_hidden_weak.
21435 (gnu_dev_minor): Likewise.
21436 (gnu_dev_makedev): Likewise.
21437 * csu/check_fds.c (check_one_fd): Use __gnu_dev_makedev instead of
21438 makedev.
21439 * posix/wordexp.c (exec_comm_child): Likewise.
21440 * sysdeps/mach/hurd/xmknodat.c (__xmknodat): Use __gnu_dev_minor
21441 instead of minor and __gnu_dev_major instead of major.
21442 * sysdeps/unix/sysv/linux/device-nrs.h (DEV_TTY_P): Use
21443 __gnu_dev_major instead of major.
21444 * sysdeps/unix/sysv/linux/pathconf.c (distinguish_extX): Use
21445 __gnu_dev_major instead of gnu_dev_major and __gnu_dev_minor
21446 instead of gnu_dev_minor.
21447 * sysdeps/unix/sysv/linux/ptsname.c (MASTER_P): Likewise.
21448 (SLAVE_P): Likewise.
21449 (__ptsname_internal): Use __gnu_dev_minor instead of minor.
21450 * sysdeps/unix/sysv/linux/ttyname.h (is_pty): Use __gnu_dev_major
21451 instead of major.
21452
21453 [BZ #21313]
21454 * locale/weight.h (findidx): Disable -Wmaybe-uninitialized for -Os
21455 in another place.
21456 * locale/weightwc.h (findidx): Likewise.
21457
21458 2018-02-07 Wilco Dijkstra <wdijkstr@arm.com>
21459
21460 * manual/probes.texi (slowlog): Delete documentation of removed probe.
21461 (slowlog_inexact): Likewise
21462 * sysdeps/ieee754/dbl-64/e_log.c (__ieee754_log): Remove slow paths.
21463 * sysdeps/ieee754/dbl-64/ulog.h: Remove unused declarations.
21464
21465 2018-02-07 Igor Gnatenko <ignatenko@redhat.com>
21466
21467 [BZ #22797]
21468 * sysdeps/unix/sysv/linux/bits/mman-shared.h (pkey_get): Add
21469 missing second underscore to parameter name.
21470
21471 2018-02-06 Joseph Myers <joseph@codesourcery.com>
21472
21473 [BZ #14508]
21474 [BZ #15512]
21475 [BZ #17082]
21476 [BZ #20530]
21477 * bits/byteswap.h: Update file comment. Do not include
21478 <bits/byteswap-16.h>.
21479 (__bswap_constant_16): Cast result to __uint16_t. Use signed 0xff
21480 constant.
21481 (__bswap_16): Define as inline function.
21482 (__bswap_constant_32): Reformat definition.
21483 (__bswap_32): Always define as inline function, not macro, using
21484 __uint32_t. Use __builtin_bswap32 if [__GNUC_PREREQ (4, 3)],
21485 otherwise __bswap_constant_32.
21486 (__bswap_constant_64): Reformat definition. Do not use
21487 __extension__ here.
21488 (__bswap_64): Always define as inline function, not macro. Use
21489 __extension__ on function definition. Use __builtin_bswap64 if
21490 [__GNUC_PREREQ (4, 3)], otherwise __bswap_constant_64.
21491 * string/test-endian-file-scope.c: New file.
21492 * string/test-endian-sign-conversion.c: Likewise.
21493 * string/Makefile (headers): Remove bits/byteswap-16.h.
21494 (tests): Add test-endian-file-scope and
21495 test-endian-sign-conversion.
21496 (CFLAGS-test-endian-sign-conversion.c): New variable.
21497 * bits/byteswap-16.h: Remove file.
21498 * sysdeps/ia64/bits/byteswap-16.h: Likewise.
21499 * sysdeps/ia64/bits/byteswap.h: Likewise.
21500 * sysdeps/m68k/bits/byteswap.h: Likewise.
21501 * sysdeps/s390/bits/byteswap-16.h: Likewise.
21502 * sysdeps/s390/bits/byteswap.h: Likewise.
21503 * sysdeps/tile/bits/byteswap.h: Likewise.
21504 * sysdeps/x86/bits/byteswap-16.h: Likewise.
21505 * sysdeps/x86/bits/byteswap.h: Likewise.
21506
21507 [BZ #17721]
21508 * misc/sys/cdefs.h [!__GNUC__ && (__cplusplus || (__STDC_VERSION__
21509 && __STDC_VERSION__ >= 199901L))] (__inline): Define to inline.
21510 [!__GNUC_PREREQ (2,92) && __STDC_VERSION__ && __STDC_VERSION__ >=
21511 199901L] (__restrict): Define to restrict.
21512
21513 [BZ #19667]
21514 * string/testcopy.c: Include <support/support.h>. Do not include
21515 <malloc.h>. Use <support/test-driver.c>.
21516 (main): Rename to do_test. Make static. Use xmalloc instead of
21517 malloc.
21518
21519 [BZ #13575]
21520 * posix/bits/posix1_lim.h: Include <bits/wordsize.h>.
21521 [!SSIZE_MAX && !(__WORDSIZE == 64 || __WORDSIZE32_SIZE_ULONG)]
21522 (SSIZE_MAX): Define to INT_MAX.
21523 * posix/test-ssize-max.c: New file.
21524 * posix/Makefile (tests): Add test-ssize-max.
21525
21526 [BZ #19668]
21527 * sysdeps/powerpc/fpu/tst-setcontext-fpscr.c: Include
21528 <support/support.h>. Do not include <malloc.h>.
21529 (query_auxv): Use xmalloc instead of malloc.
21530
21531 [BZ #14553]
21532 * posix/sys/types.h (loff_t): Only define for [__USE_MISC].
21533 * sysdeps/unix/sysv/linux/sys/quota.h (dqoff): Use __loff_t
21534 instead of loff_t.
21535
21536 2018-02-06 Florian Weimer <fweimer@redhat.com>
21537
21538 [BZ #18023]
21539 * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
21540 Use scratch_buffer instead of extend_alloca.
21541
21542 2018-02-06 Zack Weinberg <zackw@panix.com>
21543
21544 * libio/stdio.h: Don't define getc or putc as macros.
21545 * libio/bits/stdio.h (getchar, putchar): Use getc and putc,
21546 not _IO_getc and _IO_putc.
21547
21548 * stdio-common/tstgetln.c: Don't redefine FILE, va_list, or BUFSIZ.
21549 * stdio-common/tstgetln.c: Don't redefine ssize_t.
21550
21551 2018-02-06 Joseph Myers <joseph@codesourcery.com>
21552
21553 * sysdeps/gnu/netinet/tcp.h (TCP_FASTOPEN_KEY): New macro.
21554 (TCP_FASTOPEN_NO_COOKIE): Likewise.
21555
21556 * sysdeps/unix/sysv/linux/bits/in.h (IPV6_FREEBIND): New macro.
21557
21558 [BZ #14890]
21559 * elf/elf.h (NT_PRFPREG): New macro.
21560 (NT_S390_VXRS_LOW): Likewise.
21561 (NT_S390_VXRS_HIGH): Likewise.
21562 (NT_S390_GS_CB): Likewise.
21563 (NT_S390_GS_BC): Likewise.
21564 (NT_S390_RI_CB): Likewise.
21565
21566 * sysdeps/unix/sysv/linux/aarch64/bits/mman.h [__USE_MISC]
21567 (MAP_SYNC): New macro.
21568 * sysdeps/unix/sysv/linux/arm/bits/mman.h [__USE_MISC] (MAP_SYNC):
21569 Likewise.
21570 * sysdeps/unix/sysv/linux/ia64/bits/mman.h [__USE_MISC]
21571 (MAP_SYNC): Likewise.
21572 * sysdeps/unix/sysv/linux/m68k/bits/mman.h [__USE_MISC]
21573 (MAP_SYNC): Likewise.
21574 * sysdeps/unix/sysv/linux/microblaze/bits/mman.h [__USE_MISC]
21575 (MAP_SYNC): Likewise.
21576 * sysdeps/unix/sysv/linux/nios2/bits/mman.h [__USE_MISC]
21577 (MAP_SYNC): Likewise.
21578 * sysdeps/unix/sysv/linux/riscv/bits/mman.h [__USE_MISC]
21579 (MAP_SYNC): Likewise.
21580 * sysdeps/unix/sysv/linux/s390/bits/mman.h [__USE_MISC]
21581 (MAP_SYNC): Likewise.
21582 * sysdeps/unix/sysv/linux/sh/bits/mman.h [__USE_MISC] (MAP_SYNC):
21583 Likewise.
21584 * sysdeps/unix/sysv/linux/x86/bits/mman.h [__USE_MISC] (MAP_SYNC):
21585 Likewise.
21586
21587 * sysdeps/unix/sysv/linux/bits/mman-linux.h [__USE_MISC]
21588 (MAP_SHARED_VALIDATE): New macro.
21589 * sysdeps/unix/sysv/linux/hppa/bits/mman.h [__USE_MISC]
21590 (MAP_SHARED_VALIDATE): Likewise.
21591
21592 2018-02-05 H.J. Lu <hongjiu.lu@intel.com>
21593
21594 * elf/dl-addr.c (determine_info): Use ADDRIDX with DT_GNU_HASH.
21595 * elf/dl-lookup.c (_dl_setup_hash): Likewise.
21596 * elf/get-dynamic-info.h (elf_get_dynamic_info): Likewise.
21597
21598 2018-02-05 H.J. Lu <hongjiu.lu@intel.com>
21599
21600 * elf/elf.h (DT_SYMTAB_SHNDX): New. Set to 34.
21601 (DT_NUM): Updated to 35.
21602
21603 2018-02-05 H.J. Lu <hongjiu.lu@intel.com>
21604
21605 * sysdeps/i386/dl-machine.h (elf_machine_rel): Replace
21606 __builtin_expect with __glibc_likely and __glibc_unlikely.
21607 (elf_machine_rela): Likewise.
21608 (elf_machine_lazy_rel): Likewise.
21609
21610 2018-02-05 H.J. Lu <hongjiu.lu@intel.com>
21611
21612 * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Replace
21613 __builtin_expect with __glibc_likely and __glibc_unlikely.
21614 (elf_machine_lazy_rel): Likewise.
21615
21616 2018-02-05 H.J. Lu <hongjiu.lu@intel.com>
21617
21618 [BZ #22638]
21619 * sysdeps/sparc/sparc32/start.S (_start): Check PIC instead of
21620 SHARED.
21621 * sysdeps/sparc/sparc64/start.S (_start): Likewise.
21622
21623 2018-02-05 Andreas Schwab <schwab@suse.de>
21624
21625 [BZ #22761]
21626 * assert/assert-perr.c (__assert_perror_fail): Append %n to format
21627 string.
21628
21629 2018-02-04 Samuel Thibault <samuel.thibault@ens-lyon.org>
21630
21631 * stdlib/test-atexit-race-common.c [!defined PTHREAD_STACK_MIN]: Do
21632 not check against PTHREAD_STACK_MIN.
21633
21634 2018-02-02 Sean McKean <smckean83@gmail.com>
21635
21636 [BZ #22735]
21637 * time/time.h (clock): Reference CLOCKS_PER_SEC in comment.
21638
21639 2018-02-02 Florian Weimer <fweimer@redhat.com>
21640
21641 [BZ #22753]
21642 * sysdeps/posix/preadv2.c (preadv2): Handle offset == -1.
21643 * sysdeps/posix/preadv64v2.c (preadv64v2): Likewise.
21644 * sysdeps/posix/pwritev2.c (pwritev2): Likewise.
21645 * sysdeps/posix/pwritev64v2.c (pwritev64v2): Likweise.
21646 * sysdeps/unix/sysv/linux/preadv2.c (preadv2): Likewise.
21647 * sysdeps/unix/sysv/linux/preadv64v2.c (preadv64v2): Likewise.
21648 * sysdeps/unix/sysv/linux/pwritev2.c (pwritev2): Likewise.
21649 * sysdeps/unix/sysv/linux/pwritev64v2.c (pwritev64v2): Likweise.
21650 * manual/llio.texi (Scatter-Gather): Mention offset -1.
21651 * misc/tst-preadvwritev-common.c (do_test_without_offset): New.
21652 * misc/tst-preadvwritev2.c (do_test): Call it.
21653 * misc/tst-preadvwritev64v2.c (do_test): Likewise.
21654
21655 2018-02-02 Siddhesh Poyarekar <siddhesh@sourceware.org>
21656
21657 * sysdeps/aarch64/memcmp.S: Use L() macro for labels.
21658
21659 * benchtests/bench-memcmp.c: Print json instead of plain text.
21660
21661 * benchtests/bench-memcmp.c (do_test): Call realloc_buf for
21662 every test run.
21663
21664 2018-02-01 Joseph Myers <joseph@codesourcery.com>
21665
21666 * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
21667 version to 4.15.
21668 (s390_sthyi): New syscall.
21669
21670 * sysdeps/generic/ldbl-classify-compat.h: New file.
21671 * sysdeps/arm/ldbl-classify-compat.h: Likewise.
21672 * sysdeps/m68k/coldfire/ldbl-classify-compat.h: Likewise.
21673 * sysdeps/microblaze/ldbl-classify-compat.h: Likewise.
21674 * sysdeps/mips/ldbl-classify-compat.h: Likewise.
21675 * sysdeps/nios2/ldbl-classify-compat.h: Likewise.
21676 * sysdeps/sh/ldbl-classify-compat.h: Likewise.
21677 * sysdeps/ieee754/dbl-64/s_finite.c: Include
21678 <ldbl-classify-compat.h>.
21679 [LDBL_CLASSIFY_COMPAT]: Test value, not whether defined.
21680 * sysdeps/ieee754/dbl-64/s_isinf.c: Include
21681 <ldbl-classify-compat.h>.
21682 [LDBL_CLASSIFY_COMPAT]: Test value, not whether defined.
21683 * sysdeps/ieee754/dbl-64/s_isnan.c: Include
21684 <ldbl-classify-compat.h>.
21685 [LDBL_CLASSIFY_COMPAT]: Test value, not whether defined.
21686 * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: Include
21687 <ldbl-classify-compat.h>.
21688 [LDBL_CLASSIFY_COMPAT]: Test value, not whether defined.
21689 * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf.c: Include
21690 <ldbl-classify-compat.h>.
21691 [LDBL_CLASSIFY_COMPAT]: Test value, not whether defined.
21692 * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Include
21693 <ldbl-classify-compat.h>.
21694 [LDBL_CLASSIFY_COMPAT]: Test value, not whether defined.
21695 * sysdeps/arm/math_private.h (LDBL_CLASSIFY_COMPAT): Remove macro.
21696 * sysdeps/mips/math_private.h (LDBL_CLASSIFY_COMPAT): Likewise.
21697 * sysdeps/m68k/coldfire/math_private.h: Remove file.
21698 * sysdeps/microblaze/math_private.h: Likewise.
21699 * sysdeps/nios2/math_private.h: Likewise.
21700 * sysdeps/sh/math_private.h: Likewise.
21701
21702 * sysdeps/m68k/coldfire/fpu/math_private.h: Move to ....
21703 * sysdeps/m68k/coldfire/math_private.h: ... here.
21704 * sysdeps/m68k/coldfire/nofpu/math_private.h: Remove file.
21705 * sysdeps/tile/math_private.h: Likewise.
21706 * sysdeps/microblaze/math_private.h (libc_feholdexcept_setround):
21707 Remove macro.
21708 * sysdeps/nios2/math_private.h (libc_feholdexcept_setround):
21709 Likewise.
21710
21711 * sysdeps/m68k/coldfire/nofpu/math_private.h (libc_fesetround):
21712 Remove macro.
21713 (libc_fetestexcept): Likewise.
21714 (libc_feupdateenv_test): Likewise.
21715 * sysdeps/microblaze/math_private.h (libc_fesetround): Likewise.
21716 (libc_fetestexcept): Likewise.
21717 (libc_feupdateenv_test): Likewise.
21718 * sysdeps/nios2/math_private.h (libc_fesetround): Likewise.
21719 (libc_fetestexcept): Likewise.
21720 (libc_feupdateenv_test): Likewise.
21721 * sysdeps/tile/math_private.h (libc_fesetround): Likewise.
21722 (libc_fetestexcept): Likewise.
21723 (libc_feupdateenv_test): Likewise.
21724
21725 * sysdeps/generic/math_private.h
21726 [!FE_HAVE_ROUNDING_MODES && FE_ALL_EXCEPT == 0] (feholdexcept):
21727 New inline function.
21728 [!FE_HAVE_ROUNDING_MODES && FE_ALL_EXCEPT == 0] (__feholdexcept):
21729 Likewise.
21730
21731 * include/fenv.h [!_ISOMAC && !FE_TONEAREST]: Give #error.
21732 [!_ISOMAC] (FE_HAVE_ROUNDING_MODES): New macro.
21733 * sysdeps/generic/math_private.h
21734 [!FE_HAVE_ROUNDING_MODES && FE_ALL_EXCEPT == 0] (fegetenv): New
21735 inline function.
21736 [!FE_HAVE_ROUNDING_MODES && FE_ALL_EXCEPT == 0] (__fegetenv):
21737 Likewise.
21738 [!FE_HAVE_ROUNDING_MODES && FE_ALL_EXCEPT == 0] (fesetenv):
21739 Likewise.
21740 [!FE_HAVE_ROUNDING_MODES && FE_ALL_EXCEPT == 0] (__fesetenv):
21741 Likewise.
21742 [!FE_HAVE_ROUNDING_MODES && FE_ALL_EXCEPT == 0] (feupdateenv):
21743 Likewise.
21744 [!FE_HAVE_ROUNDING_MODES && FE_ALL_EXCEPT == 0] (__feupdateenv):
21745 Likewise.
21746 [!FE_HAVE_ROUNDING_MODES] (fegetround): Likewise.
21747 [!FE_HAVE_ROUNDING_MODES] (__fegetround): Likewise.
21748 [!FE_HAVE_ROUNDING_MODES] (fesetround): Likewise.
21749 [!FE_HAVE_ROUNDING_MODES] (__fesetround): Likewise.
21750 * sysdeps/tile/math_private.h (fegetenv): Remove inline function.
21751 (__fegetenv): Likewise.
21752 (fesetenv): Likewise.
21753 (__fesetenv): Likewise.
21754 (feupdateenv): Likewise.
21755 (__feupdateenv): Likewise.
21756 (fegetround): Likewise.
21757 (__fegetround): Likewise.
21758 (fesetround): Likewise.
21759 (__fesetround): Likewise.
21760
21761 * sysdeps/generic/math_private.h [FE_ALL_EXCEPT == 0]
21762 (feraiseexcept): New macro.
21763 [FE_ALL_EXCEPT == 0] (__feraiseexcept): Likewise.
21764 * sysdeps/m68k/coldfire/nofpu/math_private.h (feraiseexcept):
21765 Remove macro.
21766 (__feraiseexcept): Likewise.
21767 (feclearexcept): Likewise.
21768 * sysdeps/microblaze/math_private.h (feraiseexcept): Likewise.
21769 (__feraiseexcept): Likewise.
21770 (feclearexcept): Likewise.
21771 * sysdeps/nios2/math_private.h (feraiseexcept): Likewise.
21772 (__feraiseexcept): Likewise.
21773 (feclearexcept): Likewise.
21774 * sysdeps/tile/math_private.h (feraiseexcept): Likewise.
21775 (__feraiseexcept): Likewise.
21776 (feclearexcept): Likewise.
21777 (fetestexcept): Likewise.
21778
21779 * sysdeps/m68k/coldfire/math-tests.h: New file.
21780
21781 * sysdeps/m68k/fpu/bits/fenv.h: Move to ....
21782 * sysdeps/m68k/bits/fenv.h: ... here.
21783 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_INEXACT): Do
21784 not define.
21785 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_DIVBYZERO):
21786 Likewise.
21787 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_UNDERFLOW):
21788 Likewise.
21789 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_OVERFLOW):
21790 Likewise.
21791 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_INVALID):
21792 Likewise.
21793 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_ALL_EXCEPT):
21794 Define to 0.
21795 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__]
21796 (__FE_UNDEFINED): New enum constant.
21797 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_TOWARDZERO):
21798 Do not define.
21799 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_DOWNWARD):
21800 Likewise.
21801 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_UPWARD):
21802 Likewise.
21803 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (fenv_t): Define
21804 to match generic bits/fenv.h.
21805 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_NOMASK_ENV):
21806 Do not define.
21807
21808 * soft-fp/double.h (union _FP_UNION_D): Do not use attribute
21809 packed on bits.
21810 * soft-fp/extended.h (union _FP_UNION_E): Likewise.
21811 * soft-fp/half.h (union _FP_UNION_H): Likewise.
21812 * soft-fp/quad.h (union _FP_UNION_Q): Likewise.
21813 * soft-fp/single.h (union _FP_UNION_S): Likewise.
21814
21815 2018-02-01 Carlos O'Donell <carlos@redhat.com>
21816 Ramin Seyed-Moussavi <lordrasmus@gmail.com>
21817 Joseph Myers <joseph@codesourcery.com>
21818
21819 [BZ #21314]
21820 * sysdeps/ieee754/dbl-64/s_log1p.c: Include <libc-diag.h>.
21821 (__log1p): Disable -Wmaybe-uninitialized for -Os around
21822 computation using c.
21823 * sysdeps/ieee754/flt-32/s_log1pf.c: Include <libc-diag.h>.
21824 (__log1pf): Disable -Wmaybe-uninitialized for -Os around
21825 computation using c.
21826
21827 2018-02-01 Dmitry V. Levin <ldv@altlinux.org>
21828
21829 * version.h (RELEASE): Set to "development".
21830 (VERSION): Set to "2.27.9000".
21831 * NEWS (2.28): New section.
21832
21833 * version.h (RELEASE): Set to "stable".
21834 (VERSION): Set to "2.27".
21835 * include/features.h (__GLIBC_MINOR__): Set to 2.27.
21836
21837 * NEWS: Add the list of bugs fixed in 2.27.
21838
21839 2018-02-01 Adhemerval Zanella <adhemerval.zanella@linaro.org>
21840
21841 * stdlib/test-atexit-race-common.c (do_test): Check stack size
21842 against PTHREAD_STACK_MIN.
21843
21844 2018-02-01 Dmitry V. Levin <ldv@altlinux.org>
21845
21846 * manual/contrib.texi (Palmer Dabbelt, Arjun Shankar, Florian Weimer):
21847 New entries.
21848 (Rafał Lużyński, Andreas Schwab): Update.
21849
21850 2018-02-01 Rafał Lużyński <digitalfreak@lingonborough.com>
21851
21852 [BZ #10871]
21853 * NEWS: List the languages which actually use the alternative
21854 months feature in this release. Also explain that "alt_mon" and
21855 "ab_alt_mon" are optional.
21856
21857 2018-01-31 Il'ya Malakhov <ilmalakhov@yandex.ru>
21858
21859 [BZ #22765]
21860 * crypt/badsalttest.c (do_test): Set cd.initialized to 0.
21861
21862 2018-01-31 Dmitry V. Levin <ldv@altlinux.org>
21863
21864 * manual/install.texi (Tools for Compilation): Update the newest
21865 versions of gcc, binutils, texinfo, gawk, bison, and sed.
21866 * INSTALL: Regenerated.
21867
21868 2018-01-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
21869
21870 * sysdeps/pthread/allocalim.h (__libc_use_alloca): Use __glibc_likely
21871 instead of __builtin_expect.
21872
21873 2018-01-30 Florian Weimer <fweimer@redhat.com>
21874
21875 * nss/bug17079.c (do_test): Use nss_files only for reading passwd
21876 data.
21877 * nss/tst-nss-getpwent.c (do_test): Likewise.
21878
21879 2018-01-30 Rafał Lużyński <digitalfreak@lingonborough.com>
21880
21881 [BZ #10871]
21882 * localedata/locales/hr_HR (mon): Rename to...
21883 (alt_mon): This.
21884 (mon): Import from CLDR (genitive case).
21885 (d_t_fmt): Update the comment.
21886
21887 2018-01-29 Andreas Schwab <schwab@linux-m68k.org>
21888
21889 * sysdeps/posix/fpathconf.c (__fpathconf): Verify the values of
21890 _POSIX_CHOWN_RESTRICTED, _POSIX_NO_TRUNC, _POSIX_VDISABLE.
21891 * sysdeps/posix/pathconf.c (__pathconf): Likewise.
21892
21893 2018-01-29 Samuel Thibault <samuel.thibault@ens-lyon.org>
21894
21895 * mach/Versions: Fix version when __mach_host_self_ was added.
21896 * hurd/Versions: Fix version when _hurd_exec_paths was added.
21897 * sysdeps/mach/hurd/i386/ld.abilist: New file.
21898 * sysdeps/mach/hurd/i386/libBrokenLocale.abilist: New file.
21899 * sysdeps/mach/hurd/i386/libanl.abilist: New file.
21900 * sysdeps/mach/hurd/i386/libc.abilist: New file.
21901 * sysdeps/mach/hurd/i386/libcrypt.abilist: New file.
21902 * sysdeps/mach/hurd/i386/libdl.abilist: New file.
21903 * sysdeps/mach/hurd/i386/libm.abilist: New file.
21904 * sysdeps/mach/hurd/i386/libnsl.abilist: New file.
21905 * sysdeps/mach/hurd/i386/libresolv.abilist: New file.
21906 * sysdeps/mach/hurd/i386/librt.abilist: New file.
21907 * sysdeps/mach/hurd/i386/libutil.abilist: New file.
21908 * sysdeps/pthread/allocalim.h (__libc_use_alloca): Commute operands of
21909 || to respect codestyle.
21910 * libio/tst-memstream3.c (_FWRITE): Rename to FWRITE_FUNC.
21911 (do_test_bz20181): Rename accordingly.
21912 * malloc/malloc.c: Include <assert.h>.
21913 (assert): Do not define.
21914 [!defined NDEBUG] (__assert_fail): Define to __malloc_assert.
21915 * bits/fcntl.h: Fix comment for FREAD and FWRITE.
21916 * sysdeps/mach/hurd/bits/fcntl.h: Likewise.
21917 * sysdeps/mach/hurd/hp-timing.h: New file.
21918 * sysdeps/mach/hurd/i386/tlsdesc.sym: New file.
21919
21920 2018-01-29 Darius Rad <darius@bluespec.com>
21921
21922 * sysdeps/unix/sysv/linux/riscv/ipc_priv.h: New file.
21923
21924 2018-01-29 Palmer Dabbelt <palmer@sifive.com>
21925
21926 * sysdeps/init_array/crti.S (.section .init_array): Add
21927 PREINIT_FUNCTION when defined.
21928 * manual/math.texi: RISC-V supports _Float128 and _Float64x.
21929 * config.h.in: Regenerate.
21930 * manual/platform.texi: Add RISC-V documenation for
21931 __riscv_flush_icache.
21932 * sysdeps/riscv/__longjmp.S: New file.
21933 * sysdeps/riscv/backtrace.c: Likewise.
21934 * sysdeps/riscv/bits/endian.h: Likewise.
21935 * sysdeps/riscv/bits/setjmp.h: Likewise.
21936 * sysdeps/riscv/bits/wordsize.h: Likewise.
21937 * sysdeps/riscv/bsd-_setjmp.c: Likewise.
21938 * sysdeps/riscv/bsd-setjmp.c: Likewise.
21939 * sysdeps/riscv/dl-trampoline.S: Likewise.
21940 * sysdeps/riscv/gccframe.h: Likewise.
21941 * sysdeps/riscv/jmpbuf-offsets.h: Likewise.
21942 * sysdeps/riscv/jmpbuf-unwind.h: Likewise.
21943 * sysdeps/riscv/machine-gmon.h: Likewise.
21944 * sysdeps/riscv/memusage.h: Likewise.
21945 * sysdeps/riscv/setjmp.S: Likewise.
21946 * sysdeps/riscv/sys/asm.h: Likewise.
21947 * sysdeps/riscv/tls-macros.h: Likewise.
21948 * sysdeps/riscv/dl-tls.h: New file.
21949 * sysdeps/riscv/libc-tls.c: Likewise.
21950 * sysdeps/riscv/nptl/tcb-offsets.sym: Likewise.
21951 * sysdeps/riscv/nptl/tls.h: Likewise.
21952 * sysdeps/riscv/stackinfo.h: Likewise.
21953 * sysdeps/riscv/bits/fenv.h: New file.
21954 * sysdeps/riscv/e_sqrtl.c: Likewise.
21955 * sysdeps/riscv/fpu_control.h: Likewise.
21956 * sysdeps/riscv/math-tests.h: Likewise.
21957 * sysdeps/riscv/nofpu/Implies: Likewise.
21958 * sysdeps/riscv/sfp-machine.h: Likewise.
21959 * sysdeps/riscv/tininess.h: Likewise.
21960 * sysdeps/riscv/rv64/rvd/s_ceil.c: New file.
21961 * sysdeps/riscv/rv64/rvd/s_floor.c: Likewise.
21962 * sysdeps/riscv/rv64/rvd/s_llrint.c: Likewise.
21963 * sysdeps/riscv/rv64/rvd/s_llround.c: Likewise.
21964 * sysdeps/riscv/rv64/rvd/s_lrint.c: Likewise.
21965 * sysdeps/riscv/rv64/rvd/s_lround.c: Likewise.
21966 * sysdeps/riscv/rv64/rvd/s_nearbyint.c: Likewise.
21967 * sysdeps/riscv/rv64/rvd/s_rint.c: Likewise.
21968 * sysdeps/riscv/rv64/rvd/s_round.c: Likewise.
21969 * sysdeps/riscv/rv64/rvd/s_roundeven.c: Likewise.
21970 * sysdeps/riscv/rv64/rvd/s_trunc.c: Likewise.
21971 * sysdeps/riscv/rv64/rvf/s_llrintf.c: Likewise.
21972 * sysdeps/riscv/rv64/rvf/s_llroundf.c: Likewise.
21973 * sysdeps/riscv/rv64/rvf/s_lrintf.c: Likewise.
21974 * sysdeps/riscv/rv64/rvf/s_lroundf.c: Likewise.
21975 * sysdeps/riscv/rvd/e_sqrt.c: Likewise.
21976 * sysdeps/riscv/rvd/s_copysign.c: Likewise.
21977 * sysdeps/riscv/rvd/s_finite.c: Likewise.
21978 * sysdeps/riscv/rvd/s_fma.c: Likewise.
21979 * sysdeps/riscv/rvd/s_fmax.c: Likewise.
21980 * sysdeps/riscv/rvd/s_fmin.c: Likewise.
21981 * sysdeps/riscv/rvd/s_fpclassify.c: Likewise.
21982 * sysdeps/riscv/rvd/s_isinf.c: Likewise.
21983 * sysdeps/riscv/rvd/s_isnan.c: Likewise.
21984 * sysdeps/riscv/rvd/s_issignaling.c: Likewise.
21985 * sysdeps/riscv/rvf/e_sqrtf.c: Likewise.
21986 * sysdeps/riscv/rvf/fclrexcpt.c: Likewise.
21987 * sysdeps/riscv/rvf/fegetenv.c: Likewise.
21988 * sysdeps/riscv/rvf/fegetmode.c: Likewise.
21989 * sysdeps/riscv/rvf/fegetround.c: Likewise.
21990 * sysdeps/riscv/rvf/feholdexcpt.c: Likewise.
21991 * sysdeps/riscv/rvf/fesetenv.c: Likewise.
21992 * sysdeps/riscv/rvf/fesetexcept.c: Likewise.
21993 * sysdeps/riscv/rvf/fesetmode.c: Likewise.
21994 * sysdeps/riscv/rvf/fesetround.c: Likewise.
21995 * sysdeps/riscv/rvf/feupdateenv.c: Likewise.
21996 * sysdeps/riscv/rvf/fgetexcptflg.c: Likewise.
21997 * sysdeps/riscv/rvf/fraiseexcpt.c: Likewise.
21998 * sysdeps/riscv/rvf/fsetexcptflg.c: Likewise.
21999 * sysdeps/riscv/rvf/ftestexcept.c: Likewise.
22000 * sysdeps/riscv/rvf/get-rounding-mode.h: Likewise.
22001 * sysdeps/riscv/rvf/math_private.h: Likewise.
22002 * sysdeps/riscv/rvf/s_ceilf.c: Likewise.
22003 * sysdeps/riscv/rvf/s_copysignf.c: Likewise.
22004 * sysdeps/riscv/rvf/s_finitef.c: Likewise.
22005 * sysdeps/riscv/rvf/s_floorf.c: Likewise.
22006 * sysdeps/riscv/rvf/s_fmaf.c: Likewise.
22007 * sysdeps/riscv/rvf/s_fmaxf.c: Likewise.
22008 * sysdeps/riscv/rvf/s_fminf.c: Likewise.
22009 * sysdeps/riscv/rvf/s_fpclassifyf.c: Likewise.
22010 * sysdeps/riscv/rvf/s_isinff.c: Likewise.
22011 * sysdeps/riscv/rvf/s_isnanf.c: Likewise.
22012 * sysdeps/riscv/rvf/s_issignalingf.c: Likewise.
22013 * sysdeps/riscv/rvf/s_nearbyintf.c: Likewise.
22014 * sysdeps/riscv/rvf/s_rintf.c: Likewise.
22015 * sysdeps/riscv/rvf/s_roundevenf.c: Likewise.
22016 * sysdeps/riscv/rvf/s_roundf.c: Likewise.
22017 * sysdeps/riscv/rvf/s_truncf.c: Likewise.
22018 * sysdeps/riscv/nptl/bits/pthreadtypes-arch.h: New file.
22019 * sysdeps/riscv/nptl/bits/semaphore.h: Likewise.
22020 * sysdeps/riscv/nptl/libc-lowlevellock.c: Likewise.
22021 * sysdeps/unix/sysv/linux/riscv/atomic-machine.h: Likewise.
22022 * sysdeps/riscv/nptl/nptl-sysdep.S: New file.
22023 * sysdeps/unix/sysv/linux/riscv/arch-fork.h: Likewise.
22024 * sysdeps/unix/sysv/linux/riscv/clone.S: Likewise.
22025 * sysdeps/unix/sysv/linux/riscv/profil-counter.h: Likewise.
22026 * sysdeps/unix/sysv/linux/riscv/pt-vfork.S: Likewise.
22027 * sysdeps/unix/sysv/linux/riscv/syscall.c: Likewise.
22028 * sysdeps/unix/sysv/linux/riscv/sysdep.S: Likewise.
22029 * sysdeps/unix/sysv/linux/riscv/sysdep.h: Likewise.
22030 * sysdeps/unix/sysv/linux/riscv/vfork.S: Likewise.
22031 * sysdeps/riscv/nptl/pthread-offsets.h: New file.
22032 * sysdeps/riscv/nptl/pthreaddef.h: Likewise.
22033 * sysdeps/unix/sysv/linux/riscv/bits/fcntl.h: Likewise.
22034 * sysdeps/unix/sysv/linux/riscv/bits/mman.h: Likewise.
22035 * sysdeps/unix/sysv/linux/riscv/bits/sigcontext.h: Likewise.
22036 * sysdeps/unix/sysv/linux/riscv/dl-cache.h: Likewise.
22037 * sysdeps/unix/sysv/linux/riscv/flush-icache.c: Likewise.
22038 * sysdeps/unix/sysv/linux/riscv/getcontext.S: Likewise.
22039 * sysdeps/unix/sysv/linux/riscv/init-first.c: Likewise.
22040 * sysdeps/unix/sysv/linux/riscv/libc-vdso.h: Likewise.
22041 * sysdeps/unix/sysv/linux/riscv/makecontext.c: Likewise.
22042 * sysdeps/unix/sysv/linux/riscv/readelflib.c: Likewise.
22043 * sysdeps/unix/sysv/linux/riscv/register-dump.h: Likewise.
22044 * sysdeps/unix/sysv/linux/riscv/setcontext.S: Likewise.
22045 * sysdeps/unix/sysv/linux/riscv/sigcontextinfo.h: Likewise.
22046 * sysdeps/unix/sysv/linux/riscv/swapcontext.S: Likewise.
22047 * sysdeps/unix/sysv/linux/riscv/sys/cachectl.h: Likewise.
22048 * sysdeps/unix/sysv/linux/riscv/sys/procfs.h: Likewise.
22049 * sysdeps/unix/sysv/linux/riscv/sys/ucontext.h: Likewise.
22050 * sysdeps/unix/sysv/linux/riscv/sys/user.h: Likewise.
22051 * sysdeps/unix/sysv/linux/riscv/ucontext-macros.h: Likewise.
22052 * sysdeps/unix/sysv/linux/riscv/ucontext_i.sym: Likewise.
22053 * sysdeps/unix/sysv/linux/riscv/dl-static.c: New file.
22054 * sysdeps/unix/sysv/linux/riscv/ldconfig.h: Likewise.
22055 * sysdeps/unix/sysv/linux/riscv/ldsodefs.h: Likewise.
22056 * sysdeps/riscv/nofpu/libm-test-ulps: New file.
22057 * sysdeps/riscv/nofpu/libm-test-ulps-name: Likewise.
22058 * sysdeps/riscv/rv64/rvd/libm-test-ulps: Likewise.
22059 * sysdeps/riscv/rv64/rvd/libm-test-ulps-name: Likewise.
22060 * sysdeps/unix/sysv/linux/riscv/localplt.data: Likewise.
22061 * sysdeps/unix/sysv/linux/riscv/rv64/c++-types.data: Likewise.
22062 * sysdeps/unix/sysv/linux/riscv/rv64/ld.abilist: Likewise.
22063 * sysdeps/unix/sysv/linux/riscv/rv64/libanl.abilist: Likewise.
22064 * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist: Likewise.
22065 * sysdeps/unix/sysv/linux/riscv/rv64/libdl.abilist: Likewise.
22066 * sysdeps/unix/sysv/linux/riscv/rv64/libm.abilist: Likewise.
22067 * sysdeps/unix/sysv/linux/riscv/rv64/libnsl.abilist: Likewise.
22068 * sysdeps/unix/sysv/linux/riscv/rv64/librt.abilist: Likewise.
22069 * sysdeps/unix/sysv/linux/riscv/rv64/libutil.abilist: Likewise.
22070 * sysdeps/riscv/Implies: New file.
22071 * sysdeps/riscv/Makefile: Likewise.
22072 * sysdeps/riscv/configure: Likewise.
22073 * sysdeps/riscv/configure.ac: Likewise.
22074 * sysdeps/riscv/nptl/Makefile: Likewise.
22075 * sysdeps/riscv/preconfigure: Likewise.
22076 * sysdeps/riscv/rv64/Implies-after: Likewise.
22077 * sysdeps/riscv/rv64/rvd/Implies: Likewise.
22078 * sysdeps/riscv/rv64/rvf/Implies: Likewise.
22079 * sysdeps/unix/sysv/linux/riscv/Implies: Likewise.
22080 * sysdeps/unix/sysv/linux/riscv/Makefile: Likewise.
22081 * sysdeps/unix/sysv/linux/riscv/Versions: Likewise.
22082 * sysdeps/unix/sysv/linux/riscv/configure: Likewise.
22083 * sysdeps/unix/sysv/linux/riscv/configure.ac: Likewise.
22084 * sysdeps/unix/sysv/linux/riscv/ldd-rewrite.sed: Likewise.
22085 * sysdeps/unix/sysv/linux/riscv/rv64/Implies: Likewise.
22086 * sysdeps/unix/sysv/linux/riscv/rv64/Makefile: Likewise.
22087 * sysdeps/unix/sysv/linux/riscv/shlib-versions: Likewise.
22088 * scripts/build-many-glibcs.py (Context): Add RISC-V targets.
22089 (Config): Likewise.
22090
22091 2018-01-29 Florian Weimer <fweimer@redhat.com>
22092
22093 [BZ #22701]
22094 * include/rpcsvc/nislib.h (__nis_default_ttl): Add
22095 libnsl_hidden_proto.
22096 * include/rpcsvc/yp.h (yp_xdrall): Declare with
22097 libnsl_hidden_proto.
22098 * include/rpcsvc/ypclnt.h (yp_maplist): Likewise.
22099 * nis/Makefile (libnsl-routines): Add nss-default only for
22100 build-obsolete-nsl.
22101 * nis/nis_defaults.c (__nis_default_ttl): Add
22102 libnsl_hidden_nolink_def.
22103 * nis/rpcsvc/ypclnt.h (yp_maplist): Remove #ifdef'ed-out
22104 declaration.
22105 * nis/yp_xdr.c (xdr_ypall): Add libnsl_hidden_nolink_def.
22106 * nis/ypclnt.c (yp_maplist): Likewise.
22107
22108 2018-01-29 Romain Naour <romain.naour@gmail.com> (tiny change)
22109
22110 * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
22111 (__ASSUME_COPY_FILE_RANGE) [__LINUX_KERNEL_VERSION < 0x040A00]: Undef.
22112
22113 2018-01-29 Joseph Myers <joseph@codesourcery.com>
22114
22115 * scripts/build-many-glibcs.py (Context.git_checkout): Use git
22116 clean -dxfq for git updates when replacing sources.
22117
22118 * scripts/build-many-glibcs.py (Config.build_gcc): Use
22119 --disable-libcilkrts unconditionally, not just for the final GCC
22120 build for Hurd.
22121
22122 * scripts/build-many-glibcs.py (Context.checkout): Default Linux
22123 version to 4.15.
22124
22125 2018-01-29 Rafał Lużyński <digitalfreak@lingonborough.com>
22126
22127 [BZ #10871]
22128 * localedata/locales/lt_LT (alt_mon): Import from CLDR (nominative
22129 case).
22130
22131 2018-01-29 Rafał Lużyński <digitalfreak@lingonborough.com>
22132
22133 [BZ #10871]
22134 * localedata/locales/be_BY (mon): Rename to...
22135 (alt_mon): This, then synchronize with CLDR (nominative case).
22136 (abmon): Rename to...
22137 (ab_alt_mon): This, then synchronize with CLDR (nominative case).
22138 (mon): Import from CLDR (genitive case).
22139 (abmon): Likewise.
22140 * localedata/locales/be_BY@latin (mon): Rename to...
22141 (alt_mon): This.
22142 (mon): Add, proper genitive forms provided by Viktar Siarheichyk.
22143
22144 * localedata/locales/be_BY@latin (lang_name): Reworded to
22145 "biełaruskaja mova".
22146
22147 2018-01-29 Rafał Lużyński <digitalfreak@lingonborough.com>
22148
22149 [BZ #10871]
22150 * localedata/locales/el_CY (mon): Renamed to...
22151 (alt_mon): This.
22152 (mon): Import from CLDR (genitive case).
22153 * localedata/locales/el_GR: Likewise.
22154
22155 2018-01-29 Rafał Lużyński <digitalfreak@lingonborough.com>
22156
22157 [BZ #10871]
22158 * localedata/locales/ru_RU (mon): Rename to...
22159 (alt_mon): This.
22160 (abmon): Rename to...
22161 (ab_alt_mon): This.
22162 (mon): Import from CLDR (genitive case).
22163 (abmon): Copy from the old content except the 5th month which is
22164 now in the genitive case, even when abbreviated.
22165 * localedata/locales/ru_UA: Likewise.
22166 * time/tst-strptime.c (day_tests): Add an actual example of
22167 a difference between %b and %Ob in Russian.
22168
22169 2018-01-27 Samuel Thibault <samuel.thibault@ens-lyon.org>
22170
22171 * sysdeps/mach/hurd/xmknodat.c: Include <sys/sysmacros.h>.
22172 * sysdeps/mach/hurd/profil.c: Reuse `a' variable instead of introducing
22173 a `c' variable.
22174 * resolv/res-close.c: Include <stdlib.h>.
22175 * sysdeps/generic/not-cancel.h: Include <fcntl.h>, <unistd.h>,
22176 <sys/wait.h>, <time.h>, <sys/uio.h>.
22177 (NOT_CANCEL_H): Add inclusion guard.
22178 * sysdeps/generic/sigset-cvt-mask.h: Include <sigsetops.h>.
22179 * sysdeps/generic/sigsetops.h (__sigemptyset, __sigfillset,
22180 __sigandset, __sigorset, __sigaddset, __sigdelset): Make them really
22181 return 0.
22182 * sysdeps/mach/hurd/dl-sysdep.c (_dl_sysdep_start): Cast
22183 vm_address_t * to ElfW(Addr) * for dl_main parameter.
22184 * sysdeps/pthread/posix-timer.h (timer_ptr2id): Cast to timer_t
22185 instead of void *.
22186 * sysdeps/pthread/timer_create.c (timer_create): Do not use
22187 timer_ptr2id to cast struct timer_node * to void *.
22188 * scripts/build-many-glibcs.py [os == gnu] (build_gcc): Pass
22189 --disable-libcilkrts to gcc configure.
22190 (checkout_vcs): Add mig and gnumach repository URLs, run autoreconf,
22191 and make them the default for now.
22192 * sysdeps/mach/hurd/Makefile [$(subdir)==nis]: Add
22193 -DUSE_BINDINGDIR=1 to CFLAGS-ypclnt.c.
22194 * mach/Machrules (MIGFLAGS): Do not set -DMACH_IPC_COMPAT=0.
22195 * mach/mach/mach_traps.h: Drop comment about MACH_IPC_COMPAT.
22196 * sysdeps/mach/hurd/fork.c (__fork): Drop special casing
22197 MACH_IPC_COMPAT.
22198 * sysdeps/mach/hurd/dl-sysdep.c (_exit): Call LOSE and abort() if
22199 __task_terminate would ever return successfully.
22200 * sysdeps/mach/hurd/profil.c (special_profil_failure): Move variable
22201 to global scope.
22202 * sysdeps/mach/pagecopy.h (PAGE_THRESHOLD): Rename to
22203 PAGE_COPY_THRESHOLD and set to benchmarked 16384.
22204 * sysdeps/mach/hurd/getresgid.c (__getresgid): Set result from
22205 critical section to make code simpler and avoid warning.
22206 * sysdeps/mach/hurd/getresuid.c (__getresuid): Set result from
22207 critical section to make code simpler and avoid warning.
22208 * sysdeps/mach/hurd/spawni.c (__spawni): Make relpath and abspath
22209 const char * instead of char *.
22210 * hurd/hurd/lookup.h (__hurd_file_name_lookup, hurd_file_name_lookup,
22211 __hurd_file_name_split, hurd_file_name_split,
22212 __hurd_directory_name_split, hurd_directory_name_split,
22213 __hurd_file_name_lookup_retry, hurd_file_name_lookup_retry,
22214 hurd_file_name_path_lookup): Make lookup function parameter take a
22215 const char *name instead of char *name.
22216 * hurd/hurdlookup.c (__hurd_file_name_lookup, __hurd_file_name_split,
22217 __hurd_directory_name_split): Likewise.
22218 * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Likewise.
22219 * hurd/path-lookup.c (hurd_file_name_path_lookup): Likewise.
22220 * sysdeps/mach/hurd/check_native.c: New file.
22221 * sysdeps/mach/hurd/check_pf.c: New file.
22222 * nscd/gai.c (__getifaddrs): Define macro to getifaddrs.
22223 (__freeifaddrs): Define macro to freeifaddrs.
22224 * sysdeps/mach/hurd/libhurduser.abilist: New file.
22225 * sysdeps/mach/libmachuser.abilist: New file.
22226 * libio/tst-memstream3.c (FWRITE): Rename to _FWRITE.
22227 (do_test_bz20181): Rename accordingly.
22228 * libio/tst-wmemstream3.c (FWRITE): Rename accordingly.
22229 * io/tst-copy_file_range.c [!defined CLONE_NEWNS]: Do not include
22230 <sys/mount.h>.
22231 * hurd/hurd.h (__hurd_fail): Always declare function, and provide inline
22232 version only if __USE_EXTERN_INLINES is defined.
22233 * hurd/hurd/fd.h (_hurd_fd_error_signal, _hurd_fd_error, __hurd_dfail,
22234 __hurd_sockfail): Likewise.
22235 (_hurd_fd_get): Always declare functions, and provide inline versions
22236 only if __USE_EXTERN_INLINES and _LIBC are defined and IS_IN(libc).
22237 * hurd/hurd/port.h (_hurd_port_init, _hurd_port_locked_get,
22238 _hurd_port_get, _hurd_port_free, _hurd_port_locked_set,
22239 _hurd_port_set): Always declare functions, and provide inline versions
22240 only if __USE_EXTERN_INLINES and _LIBC are defined and
22241 IS_IN(libc).
22242 * hurd/hurd/signal.h (_hurd_self_sigstate, _hurd_critical_section_lock,
22243 _hurd_critical_section_unlock): Likewise.
22244 * hurd/hurd/threadvar.h (__hurd_threadvar_location_from_sp,
22245 * __hurd_threadvar_location): Likewise.
22246 * hurd/hurd/userlink.h (_hurd_userlink_link, _hurd_userlink_unlink,
22247 _hurd_userlink_clear): Likewise.
22248 * mach/lock-intern.h (__spin_lock_init, __spin_lock, __mutex_lock,
22249 __mutex_unlock, __mutex_trylock): Always declare functions, and provide
22250 inline versions only if __USE_EXTERN_INLINES and _LIBC are defined.
22251 * mach/mach/mig_support.h (__mig_strncpy): Likewise.
22252 * sysdeps/generic/machine-lock.h (__spin_unlock, __spin_try_lock,
22253 __spin_lock_locked): Likewise.
22254 * sysdeps/mach/i386/machine-lock.h (__spin_unlock, __spin_try_lock,
22255 __spin_lock_locked): Likewise.
22256 * mach/spin-lock.c (__USE_EXTERN_INLINES): Define to 1.
22257 * hurd/Versions (libc: GLIBC_2.27): Add _hurd_fd_error_signal,
22258 _hurd_fd_error, __hurd_dfail, __hurd_sockfail, _hurd_port_locked_set,
22259 __hurd_threadvar_location_from_sp, __hurd_threadvar_location,
22260 _hurd_userlink_link, _hurd_userlink_unlink, _hurd_userlink_clear.
22261 * sysdeps/mach/hurd/bits/posix_opt.h (_POSIX_CHOWN_RESTRICTED,
22262 _POSIX_NO_TRUNC): Define to 0.
22263 * sysdeps/pthread/allocalim.h [!defined PTHREAD_STACK_MIN]: Do not
22264 check size against PTHREAD_STACK_MIN.
22265 * hurd/hurd/signal.h [__USE_EXTERN_INLINES][_LIBC][IS_IN(libc) ||
22266 IS_IN(libpthread)]: Include <sigsetops.h>.
22267 * mach/Makefile (user-interfaces): Add mach/gnumach.
22268 * sysdeps/mach/configure.ac (mach_interface_list): Add gnumach.
22269 * sysdeps/mach/configure (mach_interface_list): Regenerate.
22270 * sysdeps/mach/hurd/bits/posix_opt.h (_POSIX_VDISABLE): Set to '\0'
22271 instead of invalid -1.
22272 * sysdeps/mach/hurd/net/ethernet.h: Include <stdint.h>.
22273 * sysdeps/mach/hurd/net/if_arp.h: Include <stdint.h>.
22274 * sysdeps/mach/hurd/net/if_ppp.h: Do not include non-existing
22275 <net/ppp_defs.h>.
22276
22277 2018-01-27 Thomas Schwinge <tschwinge@gnu.org>
22278
22279 * hurd/fcntl-internal.h: New file.
22280
22281 2018-01-27 James Clarke <jrtc27@jrtc27.com>
22282
22283 * sysdeps/hppa/fpu/libm-test-ulps: Update.
22284
22285 * sysdeps/alpha/fpu/libm-test-ulps: Update.
22286
22287 2018-01-26 Andreas Schwab <schwab@linux-m68k.org>
22288
22289 [BZ #22701]
22290 * nis/Makefile (libnsl-inhibit-o) [$(build-obsolete-nsl) != yes]:
22291 Build only shared objects.
22292
22293 2018-01-26 Carlos O'Donell <carlos@redhat.com>
22294
22295 * README: Update for hppa.
22296
22297 2018-01-26 Patrick McGehearty <patrick.mcgehearty@oracle.com>
22298
22299 * sysdeps/sparc/fpu/libm-test-ulps: Update
22300 cpow, ctan, ctanh, j0, j1, y0, yn ulps.
22301
22302 2018-01-26 Carlos O'Donell <carlos@redhat.com>
22303
22304 Revert:
22305
22306 2017-12-19 H.J. Lu <hongjiu.lu@intel.com>
22307
22308 [BZ #22563]
22309 * sysdeps/i386/nptl/tcb-offsets.sym (FEATURE_1_OFFSET): New.
22310 * sysdeps/i386/nptl/tls.h (tcbhead_t): Add feature_1.
22311 * sysdeps/x86_64/nptl/tcb-offsets.sym (FEATURE_1_OFFSET): New.
22312 * sysdeps/x86_64/nptl/tls.h (tcbhead_t): Rename __glibc_unused1
22313 to feature_1.
22314
22315 2017-12-19 H.J. Lu <hongjiu.lu@intel.com>
22316
22317 [BZ #22563]
22318 * bits/types/__cancel_jmp_buf_tag.h: New file.
22319 * sysdeps/unix/sysv/linux/x86/bits/types/__cancel_jmp_buf_tag.h
22320 * sysdeps/unix/sysv/linux/x86/pthreaddef.h: Likewise.
22321 * sysdeps/unix/sysv/linux/x86/nptl/pthreadP.h: Likewise.
22322 * nptl/Makefile (headers): Add
22323 bits/types/__cancel_jmp_buf_tag.h.
22324 * nptl/descr.h [NEED_SAVED_MASK_IN_CANCEL_JMP_BUF]
22325 (pthread_unwind_buf): Add saved_mask to cancel_jmp_buf.
22326 * sysdeps/nptl/pthread.h: Include
22327 <bits/types/__cancel_jmp_buf_tag.h>.
22328 (__pthread_unwind_buf_t): Use struct __cancel_jmp_buf_tag with
22329 __cancel_jmp_buf.
22330 * sysdeps/unix/sysv/linux/hppa/pthread.h: Likewise.
22331
22332 2018-01-25 Rafał Lużyński <digitalfreak@lingonborough.com>
22333
22334 [BZ #10871]
22335 * localedata/locales/uk_UA (mon): Renamed to...
22336 (alt_mon): This.
22337 (alt_digits): "0" removed and then renamed to...
22338 (mon): This.
22339 (date_fmt): Definition changed not to use the alternative
22340 digits hack.
22341
22342 2018-01-25 Palmer Dabbelt <palmer@sifive.com>
22343
22344 * elf/cache.c (print_entry): Add FLAG_RISCV_FLOAT_ABI_SOFT and
22345 FLAG_RISCV_FLOAT_ABI_DOUBLE.
22346 * elf/elf.h (EF_RISCV_RVC): New define.
22347 (EF_RISCV_FLOAT_ABI): Likewise.
22348 (EF_RISCV_FLOAT_ABI_SOFT): Likewise.
22349 (EF_RISCV_FLOAT_ABI_SINGLE): Likewise.
22350 (EF_RISCV_FLOAT_ABI_DOUBLE): Likewise.
22351 (EF_RISCV_FLOAT_ABI_QUAD): Likewise.
22352 * sysdeps/generic/ldconfig.h (FLAG_RISCV_FLOAT_ABI_SOFT): New
22353 define.
22354 (FLAG_RISCV_FLOAT_ABI_DOUBLE): Likewise.
22355
22356 2018-01-25 Andreas Schwab <schwab@suse.de>
22357
22358 * aclocal.m4 (LIBC_SLIBDIR_RTLDDIR): Consistently put arguments in
22359 single quotes.
22360 * sysdeps/gnu/configure: Regenerate.
22361 * sysdeps/unix/sysv/linux/aarch64/configure: Regenerate.
22362 * sysdeps/unix/sysv/linux/mips/configure: Regenerate.
22363 * sysdeps/unix/sysv/linux/powerpc/powerpc64/configure: Regenerate.
22364 * sysdeps/unix/sysv/linux/s390/s390-64/configure: Regenerate.
22365 * sysdeps/unix/sysv/linux/sparc/sparc64/configure: Regenerate.
22366 * sysdeps/unix/sysv/linux/tile/configure: Regenerate.
22367 * sysdeps/unix/sysv/linux/x86_64/64/configure: Regenerate.
22368 * sysdeps/unix/sysv/linux/x86_64/x32/configure: Regenerate.
22369
22370 2018-01-25 Samuel Thibault <samuel.thibault@ens-lyon.org>
22371
22372 * scripts/build-many-glibcs.py (checkout_vcs): Add hurd repository
22373 URL, and run autoconf, make it the default for now.
22374
22375 2018-01-24 Joseph Myers <joseph@codesourcery.com>
22376
22377 * scripts/build-many-glibcs.py (Context.add_all_configs): Add
22378 soft-float ColdFire configuration.
22379
22380 * sysdeps/unix/sysv/linux/m68k/localplt.data: Move to ....
22381 * sysdeps/unix/sysv/linux/m68k/m680x0/localplt.data: ... here.
22382 * sysdeps/unix/sysv/linux/m68k/coldfire/localplt.data: New file.
22383
22384 * sysdeps/m68k/coldfire/nofpu/math_private.h: New file. Based on
22385 MicroBlaze file.
22386
22387 * sysdeps/unix/sysv/linux/m68k/coldfire/jmp_buf-macros.h: Move to
22388 ....
22389 * sysdeps/unix/sysv/linux/m68k/coldfire/fpu/jmp_buf-macros.h:
22390 ... here.
22391 * sysdeps/unix/sysv/linux/m68k/coldfire/nofpu/jmp_buf-macros.h:
22392 New file.
22393
22394 * sysdeps/unix/sysv/linux/m68k/jmp_buf-macros.h: Move to ....
22395 * sysdeps/unix/sysv/linux/m68k/m680x0/jmp_buf-macros.h: ... here.
22396 * sysdeps/unix/sysv/linux/m68k/coldfire/jmp_buf-macros.h: New
22397 file.
22398
22399 2018-01-24 Szabolcs Nagy <szabolcs.nagy@arm.com>
22400
22401 [BZ #22742]
22402 * sysdeps/unix/sysv/linux/aarch64/sys/ucontext.h (__glibc_reserved1):
22403 Rename to __reserved and add comment.
22404 * sysdeps/unix/sysv/linux/aarch64/ucontext_i.sym (__glibc_reserved1):
22405 Rename to __reserved.
22406
22407 2018-01-24 Joseph Myers <joseph@codesourcery.com>
22408
22409 * scripts/build-many-glibcs.py (Context.add_all_configs): Add
22410 i686-gnu configurations.
22411 (Context.run_builds): Include mig, gnumach and hurd in components
22412 considered.
22413 (Context.checkout): Add mig, gnumach and hurd to components.
22414 (Context.checkout_tar): Add URL mappings for mig, gnumach and
22415 hurd.
22416 (Context.bot_cycle): Check for changes to mig, gnumach and hurd.
22417 (Config.build): Install gnumach headers, build mig and install
22418 hurd headers for 'gnu' OS.
22419 (Config.install_gnumach_headers): New function.
22420 (Config.install_hurd_headers): Likewise.
22421 (Glibc.build_glibc): Do not use /usr for 'gnu' OS. Specifiy MIG
22422 when building for 'gnu' OS.
22423
22424 2018-01-23 Tobias Klauser <tklauser@distanz.ch>
22425
22426 * manual/tunables.texi (Hardware Capability Tunables): Fix
22427 spelling.
22428
22429 2018-01-22 Rical Jasan <ricaljasan@pacific.net>
22430
22431 * manual/locale.texi (ALTMON_1, ALTMON_2, ALTMON_3, ALTMON_4)
22432 (ALTMON_5, ALTMON_6, ALTMON_7, ALTMON_8, ALTMON_9, ALTMON_10)
22433 (ALTMON_11, ALTMON_12): Improve documentation.
22434 * manual/time.texi (strftime): Likewise.
22435
22436 2018-01-22 Rafał Lużyński <digitalfreak@lingonborough.com>
22437
22438 [BZ #10871]
22439 * localedata/locales/pl_PL: Alternative month names added,
22440 primary month names are genitive now.
22441 * time/tst-strptime.c (day_tests): Actually use a genitive case
22442 of a month name in Polish language.
22443
22444 2018-01-22 Rafał Lużyński <digitalfreak@lingonborough.com>
22445
22446 [BZ #10871]
22447 * manual/locale.texi: Document ALTMON_1..12 constants for
22448 nl_langinfo. Specify when to use ALTMON instead of MON.
22449 * manual/time.texi (strftime, strptime): Document GNU extension
22450 permitting O modifier with %B and %b. Specify when to use
22451 %OB instead of %B.
22452
22453 2018-01-22 Rafał Lużyński <digitalfreak@lingonborough.com>
22454
22455 [BZ #10871]
22456 * locale/C-time.c (_nl_C_LC_TIME): Add abbreviated alternative month
22457 names, define them as the same as abbreviated month names explicitly.
22458 * locale/categories.def (LC_TIME): Add ab_alt_mon and wide-ab_alt_mon.
22459 * locale/langinfo.h: (_NL_ABALTMON_1, _NL_ABALTMON_2, _NL_ABALTMON_3,
22460 _NL_ABALTMON_4, _NL_ABALTMON_5, _NL_ABALTMON_6, _NL_ABALTMON_7,
22461 _NL_ABALTMON_8, _NL_ABALTMON_9, _NL_ABALTMON_10, _NL_ABALTMON_11,
22462 _NL_ABALTMON_12, _NL_WABALTMON_1, _NL_WABALTMON_2, _NL_WABALTMON_3,
22463 _NL_WABALTMON_4, _NL_WABALTMON_5, _NL_WABALTMON_6, _NL_WABALTMON_7,
22464 _NL_WABALTMON_8, _NL_WABALTMON_9, _NL_WABALTMON_10, _NL_WABALTMON_11,
22465 _NL_WABALTMON_12): New enum constants.
22466 * locale/programs/ld-time.c (struct locale_time_t): Add ab_alt_mon,
22467 wab_alt_mon, and ab_alt_mon_defined members.
22468 (time_output): Output ab_alt_mon and wab_alt_mon members.
22469 (time_read): Read them, initialize them as copies of abmon and wabmon
22470 respectively if they are missing, initialize ab_alt_mon_defined.
22471 * locale/programs/locfile-kw.gperf (ab_alt_mon): Define.
22472 * locale/programs/locfile-kw.h: Regenerate.
22473 * locale/programs/locfile-token.h (tok_ab_alt_mon): New enum constant.
22474 * time/Makefile [$(run-built-tests) = yes] (LOCALES): Add es_ES.UTF-8
22475 and ru_RU.UTF-8.
22476 * time/strftime_l.c (a_altmonth, aam_len): New macros.
22477 [!COMPILE_WIDE] (ABALTMON_1): New macro.
22478 (__strftime_internal): Handle %Ob and %Oh formats.
22479 * time/strptime_l.c [_LIBC] (ab_alt_month_name): New macro.
22480 (__strptime_internal): Handle %Ob and %Oh formats.
22481 * time/tst-strptime.c (day_tests): Add more tests to parse different
22482 forms of month names including the new %Ob format specifier.
22483
22484 2018-01-22 Rafał Lużyński <digitalfreak@lingonborough.com>
22485
22486 [BZ #10871]
22487 * locale/C-time.c (_nl_C_LC_TIME): Add alternative month names,
22488 define them as the same as primary full month names explicitly.
22489 * locale/categories.def (LC_TIME): Add alt_mon and wide-alt_mon.
22490 * locale/langinfo.h (__ALTMON_1, __ALTMON_2, __ALTMON_3, __ALTMON_4,
22491 __ALTMON_5, __ALTMON_6, __ALTMON_7, __ALTMON_8, __ALTMON_9, __ALTMON_10,
22492 __ALTMON_11, __ALTMON_12, _NL_WALTMON_1, _NL_WALTMON_2, _NL_WALTMON_3,
22493 _NL_WALTMON_4, _NL_WALTMON_5, _NL_WALTMON_6, _NL_WALTMON_7,
22494 _NL_WALTMON_8, _NL_WALTMON_9, _NL_WALTMON_10, _NL_WALTMON_11,
22495 _NL_WALTMON_12): New enum constants.
22496 [__USE_GNU] (ALTMON_1, ALTMON_2, ALTMON_3, ALTMON_4, ALTMON_5, ALTMON_6,
22497 ALTMON_7, ALTMON_8, ALTMON_9, ALTMON_10, ALTMON_11, ALTMON_12): New
22498 macros.
22499 * locale/programs/ld-time.c (struct locale_time_t): Add alt_mon,
22500 walt_mon, and alt_mon_defined members.
22501 (time_output): Output alt_mon and walt_mon members.
22502 (time_read): Read them, initialize them as copies of mon and wmon
22503 respectively if they are missing, initialize alt_mon_defined.
22504 * locale/programs/locfile-kw.gperf (alt_mon): Define.
22505 * locale/programs/locfile-kw.h: Regenerate.
22506 * locale/programs/locfile-token.h (tok_alt_mon): New enum constant.
22507 * localedata/tst-langinfo.c (map): Add tests for the new constants
22508 ALTMON_1 .. ALTMON_12.
22509 * time/Makefile [$(run-built-tests) = yes] (LOCALES): Add fr_FR.UTF-8
22510 and pl_PL.UTF-8.
22511 * time/strftime_l.c (f_altmonth): New macro.
22512 (__strftime_internal): Handle %OB format.
22513 * time/strptime_l.c [_LIBC] (alt_month_name): New macro.
22514 (__strptime_internal): Handle %OB format.
22515 * time/tst-strptime.c (day_tests): Add tests to parse different forms
22516 of month names including the new %OB format specifier.
22517
22518 2018-01-19 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
22519
22520 [BZ #22685]
22521 * sysdeps/powerpc/powerpc32/sysdep.h (ABORT_TRANSACTION_IMPL): Renamed
22522 from ABORT_TRANSACTION.
22523 (ABORT_TRANSACTION): Redirect to ABORT_TRANSACTION_IMPL.
22524 * sysdeps/powerpc/powerpc64/sysdep.h (ABORT_TRANSACTION,
22525 ABORT_TRANSACTION_IMPL): Likewise.
22526 * sysdeps/unix/sysv/linux/powerpc/not-errno.h: New file. Reuse
22527 Linux code, but remove the code that aborts transactions.
22528
22529 2018-01-19 Samuel Thibault <samuel.thibault@ens-lyon.org>
22530
22531 * sysdeps/generic/netinet/if_ether.h: Include <stdint.h>.
22532
22533 2018-01-19 Rafał Lużyński <digitalfreak@lingonborough.com>
22534
22535 * localedata/locales/gu_IN (LC_IDENTIFICATION): Fix an obvious typo
22536 in date: "2004-14-09" should be "2004-09-14".
22537 * localedata/locales/lo_LA: Fix an obvious typo in date in the header:
22538 "2003-15-09" should be "2003-09-15".
22539
22540 2018-01-18 Arjun Shankar <arjun@redhat.com>
22541
22542 [BZ #22343]
22543 [BZ #22774]
22544 CVE-2018-6485
22545 CVE-2018-6551
22546 * malloc/malloc.c (checked_request2size): call REQUEST_OUT_OF_RANGE
22547 after padding.
22548 (_int_memalign): check for integer overflow before calling
22549 _int_malloc.
22550 * malloc/tst-malloc-too-large.c: New test.
22551 * malloc/Makefile: Add tst-malloc-too-large.
22552
22553 2018-01-18 Rafał Lużyński <digitalfreak@lingonborough.com>
22554
22555 * localedata/locales/bho_NP (LC_IDENTIFICATION): Fix an obvious typo
22556 in date: "2017-24-07" should be "2017-07-24".
22557 * localedata/locales/mai_IN: Likewise.
22558 * localedata/locales/mai_NP: Likewise.
22559
22560 2018-01-17 Dmitry V. Levin <ldv@altlinux.org>
22561
22562 * po/ru.po: Update translations.
22563
22564 2018-01-17 Joseph Myers <joseph@codesourcery.com>
22565
22566 [BZ #22719]
22567 * sysdeps/hppa/backtrace.c: New file.
22568
22569 2018-01-17 H.J. Lu <hongjiu.lu@intel.com>
22570
22571 [BZ #22715]
22572 * sysdeps/x86_64/dl-trampoline.h (_dl_runtime_profile): Properly
22573 align La_x86_64_retval to VEC_SIZE.
22574
22575 2018-01-16 Joseph Myers <joseph@codesourcery.com>
22576
22577 * sysdeps/x86_64/backtrace.c: Include <gnu/lib-names.h>.
22578 (init): Use LIBGCC_S_SO not hardcoded "libgcc_s.so.1".
22579
22580 2018-01-16 Florian Weimer <fweimer@redhat.com>
22581
22582 * nptl/Makefile [$(have-cxx-thread_local)] (tests-unsupported):
22583 Move tst-thread-exit-clobber ...
22584 [$(CXX)] (tests-unsupported): ... to here.
22585
22586 2018-01-16 Szabolcs Nagy <szabolcs.nagy@arm.com>
22587
22588 * sysdeps/unix/sysv/linux/aarch64/bits/hwcap.h (HWCAP_SHA3): Define.
22589 (HWCAP_SM3, HWCAP_SM4, HWCAP_ASIMDDP, HWCAP_SHA512, HWCAP_SVE): Define.
22590 * sysdeps/unix/sysv/linux/aarch64/dl-procinfo.c
22591 (_dl_aarch64_cap_flags): Update.
22592 (_DL_HWCAP_COUNT): Update.
22593
22594 2018-01-16 Szabolcs Nagy <szabolcs.nagy@arm.com>
22595
22596 * sysdeps/unix/sysv/linux/aarch64/dl-procinfo.h
22597 (_DL_HWCAP_LAST): Remove.
22598 (_DL_HWCAP_COUNT): Move to ...
22599 * sysdeps/unix/sysv/linux/aarch64/dl-procinfo.c
22600 (_DL_HWCAP_COUNT): ... here.
22601
22602 2018-01-16 Florian Weimer <fweimer@redhat.com>
22603
22604 * nptl/Makefile (CFLAGS-tst-minstack-throw.o): Compile in C++11
22605 mode with GNU extensions.
22606
22607 2018-01-15 Alan Hayward <alan.hayward@arm.com>
22608
22609 * elf/elf.h (NT_ARM_SVE): Define.
22610
22611 2018-01-15 Florian Weimer <fweimer@redhat.com>
22612
22613 [BZ #22636]
22614 * nptl/tst-minstack-throw.cc: New file.
22615 * nptl/Makefile (tests): Add tst-minstack-throw.
22616 (LDLIBS-tst-minstack-throw): Link with libstdc++.
22617 [!CXX] (tests-unsupported): Add tst-minstack-throw.
22618
22619 2018-01-15 Joseph Myers <joseph@codesourcery.com>
22620
22621 * scripts/build-many-glibcs.py (Context.checkout): Default
22622 binutils version to 2.30 branch, MPFR version to 4.0.0 and MPC
22623 version to 1.1.0.
22624
22625 2018-01-13 Carlos O'Donell <carlos@redhat.com>
22626
22627 [BZ #22707]
22628 * elf/elf.h (DF_1_STUB): Define.
22629 (DF_1_PIE): Define.
22630
22631 2018-01-12 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
22632
22633 [BZ #22697]
22634 * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S (__llround):
22635 Do not add 0.5 to integer or out-of-range arguments.
22636
22637 2018-01-12 Dmitry V. Levin <ldv@altlinux.org>
22638
22639 * po/bg.po: Update translations.
22640 * po/cs.po: Likewise.
22641 * po/de.po: Likewise.
22642 * po/ko.po: Likewise.
22643 * po/pl.po: Likewise.
22644 * po/sv.po: Likewise.
22645 * po/uk.po: Likewise.
22646 * po/vi.po: Likewise.
22647
22648 2018-01-12 Szabolcs Nagy <szabolcs.nagy@arm.com>
22649
22650 * aarch64/start.S (_start): Use __wrap_main.
22651 (__wrap_main): New local symbol.
22652
22653 2018-01-12 Dmitry V. Levin <ldv@altlinux.org>
22654
22655 [BZ #22679]
22656 CVE-2018-1000001
22657 * sysdeps/unix/sysv/linux/getcwd.c (__getcwd): Fall back to
22658 generic_getcwd if the path returned by getcwd syscall is not absolute.
22659 * io/tst-getcwd-abspath.c: New test.
22660 * io/Makefile (tests): Add tst-getcwd-abspath.
22661
22662 2018-01-12 Istvan Kurucsai <pistukem@gmail.com>
22663
22664 * malloc/malloc.c (malloc_consolidate): Add size check.
22665
22666 2018-01-12 Florian Weimer <fweimer@redhat.com>
22667
22668 * support/write_message.c (write_message): Preserve errno.
22669 * support/check.c (print_failure): Likewise.
22670 * support/support_test_verify_impl.c (support_test_verify_impl):
22671 Likewise.
22672 * support/support_test_compare_failure.c
22673 (support_test_compare_failure): Likewise.
22674
22675 2018-01-12 Florian Weimer <fweimer@redhat.com>
22676
22677 [BZ #22701]
22678 * nis/Makefile (install-lib-ldscripts, $(inst_libdir)/libnsl.so):
22679 Prevent installation of libnsl.so.
22680 (libnsl-inhibit-o): Do not build (or install) static libraries.
22681
22682 2018-01-12 Egmont Koblinger <egmont@gmail.com>
22683
22684 [BZ #22657]
22685 * localedata/locales/hu_HU (d_t_fmt): Avoid a leading space
22686 before the day number which may produce a double space.
22687 (date_fmt): Likewise.
22688
22689 2018-01-12 Joseph Myers <joseph@codesourcery.com>
22690
22691 * sysdeps/s390/fpu/feholdexcpt.c (__feholdexcept): Call __fegetenv
22692 instead of fegetenv.
22693
22694 2018-01-11 Joseph Myers <joseph@codesourcery.com>
22695
22696 [BZ #22702]
22697 * sysdeps/generic/math_private.h (libc_feresetround_noex): Update
22698 comment to say exceptions are discarded.
22699 (libc_feholdsetround_noex_ctx): Use __feholdexcept instead of
22700 __fegetenv.
22701 (SET_RESTORE_ROUND_NOEX): Update comment to say non-stop mode must
22702 be enabled.
22703
22704 2018-01-11 Florian Weimer <fweimer@redhat.com>
22705
22706 * sysdeps/gnu/unwind-resume.c (__libgcc_s_init): Update comment
22707 and error message.
22708
22709 2018-01-11 Florian Weimer <fweimer@redhat.com>
22710
22711 [BZ #22636]
22712 * nptl/Makefile (tests): Add tst-minstack-cancel, tst-minstack-exit.
22713 * nptl/tst-minstack-cancel.c, nptl/tst-minstack-exit.c: New files.
22714
22715 2018-01-10 Joseph Myers <joseph@codesourcery.com>
22716
22717 [BZ #22693]
22718 * sysdeps/ieee754/ldbl-128ibm/s_log1pl.c (__log1pl): Handle
22719 negative arguments in test for NaN or infinity argument.
22720
22721 2018-01-10 Dmitry V. Levin <ldv@altlinux.org>
22722
22723 * po/libc.pot: Regenerate.
22724
22725 2018-01-10 Florian Weimer <fweimer@redhat.com>
22726
22727 [BZ #22636]
22728 * sysdeps/nptl/unwind-forcedunwind.c (pthread_cancel_init): Open
22729 libgcc.so with RTLD_NOW, to avoid lazy binding during unwind.
22730
22731 2018-01-10 Samuel Thibault <samuel.thibault@ens-lyon.org>
22732
22733 * hurd/hurd/fd.h: Include <fcntl.h>
22734 (__hurd_at_flags): New function.
22735 * hurd/lookup-at.c (__file_name_lookup_at): Replace flag computation
22736 with call to __hurd_at_flags.
22737 * include/unistd.h (__faccessat, __faccessat_noerrno): Add declaration.
22738 * sysdeps/mach/hurd/access.c (access_common): Move implementation to
22739 __faccessat
22740 (hurd_fail_seterrno, hurd_fail_noerrno): Move to sysdeps/mach/hurd/faccessat.c.
22741 (__access_noerrno): Use __faccessat_common instead of access_common.
22742 (__access): Likewise.
22743 * sysdeps/mach/hurd/euidaccess.c (__euidaccess): Replace implementation
22744 with a call to __faccessat.
22745 * sysdeps/mach/hurd/faccessat.c (faccessat): Rename into...
22746 (__faccessat_common): ... this. Move implementation of __access into it when
22747 AT_FLAGS does not contain AT_EACCESS. Make it call __hurd_at_flags, add
22748 reauthenticate_cwdir_at helper to implement AT mechanism.
22749 (__faccessat_noerrno): New function, just calls __faccessat_common.
22750 (__faccessat): New function, just calls __faccessat_common.
22751 (faccessat): Define weak alias.
22752
22753 2018-01-10 Joseph Myers <joseph@codesourcery.com>
22754
22755 [BZ #22691]
22756 * sysdeps/powerpc/nofpu/Makefile [$(subdir) = math]
22757 (CFLAGS-s_fmaxmagl.c): New variable.
22758 [$(subdir) = math] (CFLAGS-s_fminmagl.c: Likewise.
22759
22760 [BZ #22690]
22761 * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c (__lrintl): Use unsigned
22762 long int for arguments of possibly overflowing addition or
22763 subtraction.
22764 * sysdeps/ieee754/ldbl-128ibm/s_lroundl.c (__lroundl): Likewise.
22765
22766 2018-01-09 Joseph Myers <joseph@codesourcery.com>
22767
22768 [BZ #22688]
22769 * sysdeps/powerpc/nofpu/Makefile [$(subdir) = math]
22770 (CFLAGS-e_remainderl.c): New variable.
22771
22772 [BZ #22687]
22773 * sysdeps/powerpc/nofpu/Makefile (CFLAGS-s_cacosl.c): New
22774 variable.
22775 (CFLAGS-s_cacoshl.c): Likewise.
22776 (CFLAGS-s_casinhl.c): Likewise.
22777 (CFLAGS-s_catanl.c): Likewise.
22778 (CFLAGS-s_catanhl.c): Likewise.
22779 (CFLAGS-s_cexpl.c): Likewise.
22780 (CFLAGS-s_ccoshl.c): Add -fsignaling-nans.
22781 (CFLAGS-s_csinhl.c): Likewise.
22782 (CFLAGS-s_clogl.c): Likewise.
22783 (CFLAGS-s_clog10l.c): Likewise.
22784 (CFLAGS-s_csinl.c): Likewise.
22785 (CFLAGS-s_csqrtl.c): Likewise.
22786
22787 2017-01-09 Emilio Pozuelo Monfort <pochu27@gmail.com>
22788 2017-01-09 Svante Signell <svante.signell@gmail.com>
22789
22790 * hurd/hurdexec.c (_hurd_exec): Deprecate function.
22791 (_hurd_exec_paths): New function.
22792 * hurd/hurd.h (_hurd_exec): Deprecate function.
22793 (_hurd_exec_paths): Declare function.
22794 * hurd/Versions: Export _hurd_exec_paths.
22795 * sysdeps/mach/hurd/execve.c: Include <stdlib.h> and <stdio.h>
22796 (__execve): Use __getcwd to build absolute path, and use
22797 _hurd_exec_paths instead of _hurd_exec.
22798 * sysdeps/mach/hurd/spawni.c: Likewise.
22799 * sysdeps/mach/hurd/fexecve.c: Use _hurd_exec_paths instead of
22800 _hurd_exec.
22801
22802 2018-01-08 Dmitry V. Levin <ldv@altlinux.org>
22803
22804 * sysdeps/unix/sysv/linux/tst-ttyname.c (do_in_chroot_1): Skip the
22805 test instead of failing in case of ENOENT returned by posix_openpt.
22806
22807 2018-01-08 Florian Weimer <fweimer@redhat.com>
22808
22809 resolv: Support binary labels in test framework.
22810 * support/resolv_test.c (struct to_be_freed): Remove.
22811 (struct compressed_name): New.
22812 (allocate_compressed_name, ascii_tolower)
22813 (compare_compressed_name): New functions.
22814 (struct resolv_response_builder): Update type of
22815 compression_offsets for use with tsearch. Rempve to_be_freed.
22816 (response_push_pointer_to_free): Remove function.
22817 (resolv_response_add_name): Rewrite using struct compressed_name
22818 and tsearch instead of hsearch_r.
22819 (response_builder_allocate): Remove initialization of
22820 compression_offsets.
22821 (response_builder_free): Update for removal of to_be_freed. Use
22822 tdestroy instead of hdestroy_r.
22823 * resolv/Makefile (tests): Add tst-resolv-binary.
22824 (tst-resolv-binary): Link with -lresolv -lpthread.
22825
22826 2018-01-08 Florian Weimer <fweimer@redhat.com>
22827
22828 * support/check.h (TEST_COMPARE): Allow sign mismatch at compile
22829 time. Pass positive flag instead of negative flag to
22830 support_test_compare_failure.
22831 (support_test_compare_failure): Change negative parameter to
22832 positive.
22833 * support/support_test_compare_failure.c (report)
22834 (support_test_compare_failure): Likewise.
22835 * support/tst-test_compare.c (return_ssize_t, return_int): New.
22836 (do_test): Check int/size_t, ssize_t/size_t comparisons.
22837
22838 2018-01-08 Szabolcs Nagy <szabolcs.nagy@arm.com>
22839
22840 [BZ #22637]
22841 * nptl/descr.h (stackblock, stackblock_size): Update comments.
22842 * nptl/allocatestack.c (allocate_stack): Add guardsize to stacksize.
22843 * nptl/nptl-init.c (__pthread_get_minstack): Remove guardsize from
22844 stacksize.
22845 * nptl/pthread_getattr_np.c (pthread_getattr_np): Likewise.
22846
22847 2018-01-08 H.J. Lu <hongjiu.lu@intel.com>
22848
22849 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
22850 Add s_sincosf-sse2 and s_sincosf-fma.
22851 (CFLAGS-s_sincosf-fma.c): New.
22852 * sysdeps/x86_64/fpu/multiarch/s_sincosf-fma.c: New file.
22853 * sysdeps/x86_64/fpu/multiarch/s_sincosf-sse2.S: Likewise.
22854 * sysdeps/x86_64/fpu/multiarch/s_sincosf.c: Likewise.
22855 * sysdeps/x86_64/fpu/s_sincosf.S: Don't add alias if
22856 __sincosf is defined.
22857
22858 2018-01-08 Florian Weimer <fweimer@redhat.com>
22859
22860 * nptl/tst-thread-exit-clobber.cc: New file.
22861 * nptl/Makefile (CFLAGS-tst-thread-exit-clobber.o): Compile in
22862 C++11 mode.
22863 (LDLIBS-tst-thread-exit-clobber): Link with libstdc++.
22864 (tests): Add tst-thread-exit-clobber.
22865 [!CXX] (tests-unsupported): Add tst-thread-exit-clobber.
22866
22867 2018-01-08 Florian Weimer <fweimer@redhat.com>
22868
22869 * support/check.h (support_static_assert): Define.
22870 (TEST_COMPARE): Use it.
22871
22872 2018-01-07 Aurelien Jarno <aurelien@aurel32.net>
22873
22874 * sysdeps/unix/sysv/linux/getrlimit64 (getrlimit64)
22875 [!__RLIM_T_MATCHES_RLIM64_T]
22876 [!SHLIB_COMPAT (libc, GLIBC_2_1, GLIBC_2_2)]: Define as weak alias of
22877 __getrlimit64. Add libc_hidden_weak.
22878
22879 2018-01-06 Palmer Dabbelt <palmer@sifive.com>
22880
22881 * elf/elf.h (R_RISCV_NONE): New define.
22882 (R_RISCV_32): Likewise.
22883 (R_RISCV_64): Likewise.
22884 (R_RISCV_RELATIVE): Likewise.
22885 (R_RISCV_COPY): Likewise.
22886 (R_RISCV_JUMP_SLOT): Likewise.
22887 (R_RISCV_TLS_DTPMOD32): Likewise.
22888 (R_RISCV_TLS_DTPMOD64): Likewise.
22889 (R_RISCV_TLS_DTPREL32): Likewise.
22890 (R_RISCV_TLS_DTPREL64): Likewise.
22891 (R_RISCV_TLS_TPREL32): Likewise.
22892 (R_RISCV_TLS_TPREL64): Likewise.
22893 * Makerules (make-link-multidir): Make directories before linking into
22894 them.
22895 * sysdeps/unix/sysv/linux/dl-vdso.h (VDSO_NAME_LINUX_4_15): New
22896 define.
22897 (VDSO_HASH_LINUX_4_15): Likewise.
22898 * scripts/build-many-glibcs.py (class Glibc): Strip shared objects
22899 in subdirectories of lib.
22900 * nptl/Makefile (/librt.so): Always depend on
22901 "$(shared-thread-library)".
22902
22903 2018-01-06 Samuel Thibault <samuel.thibault@ens-lyon.org>
22904
22905 * sysdeps/mach/hurd/i386/jmp_buf-macros.h: New file.
22906 * sysdeps/i386/dl-tlsdesc.S (_dl_tlsdesc_dynamic) [NO_RTLD_HIDDEN]: Call
22907 JUMPTARGET (___tls_get_addr) instead of HIDDEN_JUMPTARGET
22908 (___tls_get_addr).
22909 * sysdeps/x86_64/dl-tlsdesc.S (_dl_tlsdesc_dynamic): Likewise.
22910 * sysdeps/i386/fpu/libm-test-ulps: Regenerated for GCC 7 with
22911 "-O2 -march=i686".
22912 * posix/tst-glob_symlinks.c [!PATH_MAX]: Define PATH_MAX macro.
22913 * sysdeps/gnu/glob64.c (__glob): Define macro instead of glob macro.
22914 (__glob64): Define GLIBC_2_27 versioned symbol instead of glob64.
22915 * sysdeps/gnu/glob-lstat-compat.c: New file.
22916 * sysdeps/gnu/glob64-lstat-compat.c: New file.
22917 * sysdeps/posix/pwritev_common.c: Add PROT_READ to __mmap prot.
22918
22919 2018-01-05 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
22920
22921 * sysdeps/powerpc/powerpc64/dl-machine.c (_dl_reloc_overflow):
22922 Reserve 16 chars to reloc_addr before calling _itoa_word.
22923
22924 2018-01-05 Aurelien Jarno <aurelien@aurel32.net>
22925
22926 [BZ #22678]
22927 * sysdeps/unix/sysv/linux/prlimit.c (prlimit): Translate
22928 old_rlimit from RLIM64_INFINITY to RLIM_INFINITY.
22929
22930 * sysdeps/unix/sysv/linux/tst-rlimit-infinity.c: New file.
22931 * sysdeps/unix/sysv/linux/Makefile (tests): Add tst-rlimit-infinity.
22932
22933 * resource/tst-getrlimit.c: Add copyright header.
22934
22935 2018-01-05 Aurelien Jarno <aurelien@aurel32.net>
22936 Adhemerval Zanella <adhemerval.zanella@linaro.org>
22937
22938 * sysdeps/unix/sysv/linux/getrlimit64.c [USE_VERSIONED_RLIMIT]: Do not
22939 define getrlimit and getrlimit64 as weak aliases of __getrlimit64.
22940 Define __GI_getrlimit64 as weak alias of __getrlimit64.
22941 [__RLIM_T_MATCHES_RLIM64_T]: Do not redefine SHLIB_COMPAT, use #elif
22942 instead.
22943 * sysdeps/unix/sysv/linux/setrlimit64.c [USE_VERSIONED_RLIMIT]: Do not
22944 define setrlimit and setrlimit64 as weak aliases of __setrlimit64.
22945 * sysdeps/unix/sysv/linux/alpha/bits/resource.h (RLIM_INFINITY,
22946 RLIM64_INFINITY): Fix values to match the kernel ones.
22947 * sysdeps/unix/sysv/linux/alpha/getrlimit64.c: Define
22948 USE_VERSIONED_RLIMIT. Rename __getrlimit64 into __old_getrlimit64 and
22949 provide it as getrlimit@@GLIBC_2_0 and getrlimit64@@GLIBC_2_1. Add a
22950 __getrlimit64 function and provide it as getrlimit@@GLIBC_2_27 and
22951 getrlimit64@@GLIBC_2_27.
22952 * sysdeps/unix/sysv/linux/alpha/setrlimit64.c: Ditto with setrlimit
22953 and setrlimit64.
22954 * sysdeps/unix/sysv/linux/alpha/libc.abilist (GLIBC_2.27): Add
22955 getrlimit, setrlimit, getrlimit64 and setrlimit64.
22956 * sysdeps/unix/sysv/linux/alpha/Versions (libc): Add getrlimit,
22957 setrlimit, getrlimit64 and setrlimit64.
22958
22959 2018-01-05 Aurelien Jarno <aurelien@aurel32.net>
22960
22961 [BZ #22648]
22962 * sysdeps/unix/sysv/linux/alpha/getrlimit64.c: New file.
22963 * sysdeps/unix/sysv/linux/alpha/setrlimit64.c: Ditto.
22964
22965 2018-01-04 Joseph Myers <joseph@codesourcery.com>
22966
22967 * malloc/tst-malloc-tcache-leak.c (TIMEOUT): Define to 50.
22968 * posix/tst-glob-tilde.c (TIMEOUT): Define to 200.
22969 * resolv/tst-resolv-res_ninit.c (TIMEOUT): Define to 50.
22970
22971 2018-01-03 Adhemerval Zanella <adhemerval.zanella@linaro.org>
22972
22973 [BZ #15479]
22974 [BZ #22666]
22975 * sysdeps/alpha/fpu/s_trunc.c: Remove file.
22976 * sysdeps/alpha/fpu/s_truncf.c: Likewise.
22977
22978 [BZ #15479]
22979 [BZ #22665]
22980 * sysdeps/alpha/fpu/s_ceil.c: Remove file.
22981 * sysdeps/alpha/fpu/s_ceilf.c: Likewise.
22982 * sysdeps/alpha/fpu/s_floor.c: Likewise.
22983 * sysdeps/alpha/fpu/s_floorf.c: Likewise.
22984
22985 2018-01-04 Florian Weimer <fweimer@redhat.com>
22986
22987 [BZ #22667]
22988 * sysdeps/unix/sysv/linux/i386/makecontext.S (__makecontext):
22989 Align the stack before calling exit.
22990 * stdlib/tst-makecontext-align.c: New file.
22991 * stdlib/Makefile (tests): Add tst-makecontext-align.
22992
22993 2018-01-04 Florian Weimer <fweimer@redhat.com>
22994
22995 Add support for calling dlvsym from libc.so.
22996 * include/dlfcn.h (__libc_dlvsym): Declare.
22997 * elf/Makefile (tests-static-internal): Add
22998 tst-libc_dlvsym-static.
22999 (tests-internal): Add tst-libc_dlvsym.
23000 (modules-names): Add tst-libc_dlvsym-dso.
23001 (tst-libc_dlvsym, tst-libc_dlvsym-static): Link with libdl.
23002 (tst-libc_dlvsym-dso.so): Link with libdl, libsupport.
23003 (tst-libc_dlvsym.out, tst-libc_dlvsym-static.out): The shared
23004 object tst-libc_dlvsym-dso.so needs to be built before running
23005 these tests.
23006 (tst-libc_dlvsym-static-ENV): Set LD_LIBRARY_PATH.
23007 * elf/Versions: Export __libc_dlvsym.
23008 * elf/dl-libc.c (struct do_dlvsym_args): New.
23009 (do_dlvsym, __libc_dlvsym): New functions.
23010 (struct dl_open_hook, _dl_open_hook): Add dlvsym member.
23011 (_dl_open_hook2): New variable.
23012 (__libc_register_dl_open_hook): Set it.
23013 * elf/tst-libc_dlvsym-dso.c: New file.
23014 * elf/tst-libc_dlvsym-static.c: Likewise.
23015 * elf/tst-libc_dlvsym.c: Likewise.
23016 * elf/tst-libc_dlvsym.h: Likewise.
23017
23018 2018-01-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
23019
23020 * support/support_enter_mount_namespace.c [!CLONE_NEWNS]: Do not
23021 include <sys/mount.h>.
23022
23023 2018-01-02 Wilco Dijkstra <wdijkstr@arm.com>
23024
23025 * math/math.h (math_errhandling): Set to 0 with __FAST_MATH__.
23026 Add __NO_MATH_ERRNO__ check.
23027
23028 2018-01-02 Joseph Myers <joseph@codesourcery.com>
23029
23030 * sysdeps/mips/mips32/libm-test-ulps: Update.
23031 * sysdeps/mips/mips64/libm-test-ulps: Likewise.
23032
23033 2018-01-02 Florian Weimer <fweimer@redhat.com>
23034
23035 * misc/tst-pselect.c: Add copyright header.
23036
23037 2018-01-02 Aurelien Jarno <aurelien@aurel32.net>
23038
23039 * sysdeps/unix/sysv/linux/alpha/getrlimit64.c: Fix a typo in the
23040 comment.
23041 * sysdeps/unix/sysv/linux/alpha/setrlimit64.c: Fix a typo in the
23042 comment.
23043 (settrlimit): Rename into setrlimit.
23044 (__sttrlimit): Rename into __setrlimit.
23045
23046 * sysdeps/unix/sysv/linux/alpha/getrlimit64.c (__old_getrlimit64):
23047 Drop __RLIM_T_MATCHES_RLIM64_T conditional as __old_getrlimit64 is
23048 never defined in that case.
23049
23050 2018-01-02 Joseph Myers <joseph@codesourcery.com>
23051
23052 * sysdeps/powerpc/nofpu/libm-test-ulps: Update.
23053
23054 * sysdeps/arm/libm-test-ulps: Update.
23055
23056 * math/Makefile (run-regen-ulps): Add $(objpfx) to test name here.
23057 (regen-ulps): Use $(libm-tests) not $^ in shell loop.
23058
23059 2018-01-02 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
23060
23061 * NEWS: Add cosf and sincosf to list of optimized functions.
23062
23063 2018-01-02 Aurelien Jarno <aurelien@aurel32.net>
23064
23065 [BZ #22660]
23066 * sysdeps/alpha/fpu/s_fmax.S: Remove file.
23067 * sysdeps/alpha/fpu/s_fmaxf.S: Likewise.
23068 * sysdeps/alpha/fpu/s_fmin.S: Likewise.
23069 * sysdeps/alpha/fpu/s_fminf.S: Likewise.
23070
23071 2018-01-01 Dmitry V. Levin <ldv@altlinux.org>
23072
23073 [BZ #22433]
23074 * sysdeps/unix/sysv/linux/arm/sys/ptrace.h: New file.
23075
23076 * elf/dl-load.c (decompose_rpath): Check for rpath emptiness before
23077 making a copy of it.
23078
23079 2018-01-01 Joseph Myers <joseph@codesourcery.com>
23080
23081 * manual/texinfo.tex: Update to version 2017-12-26.21 with
23082 trailing whitespace removed.
23083 * scripts/config.guess: Update to version 2018-01-01.
23084 * scripts/config.sub: Update to version 2018-01-01.
23085 * scripts/move-if-change: Update from gnulib.
23086
23087 * NEWS: Update copyright dates.
23088 * catgets/gencat.c (print_version): Likewise.
23089 * csu/version.c (banner): Likewise.
23090 * debug/catchsegv.sh: Likewise.
23091 * debug/pcprofiledump.c (print_version): Likewise.
23092 * debug/xtrace.sh (do_version): Likewise.
23093 * elf/ldconfig.c (print_version): Likewise.
23094 * elf/ldd.bash.in: Likewise.
23095 * elf/pldd.c (print_version): Likewise.
23096 * elf/sotruss.sh: Likewise.
23097 * elf/sprof.c (print_version): Likewise.
23098 * iconv/iconv_prog.c (print_version): Likewise.
23099 * iconv/iconvconfig.c (print_version): Likewise.
23100 * locale/programs/locale.c (print_version): Likewise.
23101 * locale/programs/localedef.c (print_version): Likewise.
23102 * login/programs/pt_chown.c (print_version): Likewise.
23103 * malloc/memusage.sh (do_version): Likewise.
23104 * malloc/memusagestat.c (print_version): Likewise.
23105 * malloc/mtrace.pl: Likewise.
23106 * manual/libc.texinfo: Likewise.
23107 * nptl/version.c (banner): Likewise.
23108 * nscd/nscd.c (print_version): Likewise.
23109 * nss/getent.c (print_version): Likewise.
23110 * nss/makedb.c (print_version): Likewise.
23111 * posix/getconf.c (main): Likewise.
23112 * scripts/test-installation.pl: Likewise.
23113 * sysdeps/unix/sysv/linux/lddlibc4.c (main): Likewise.
23114
23115 * All files with FSF copyright notices: Update copyright dates
23116 using scripts/update-copyrights.
23117 * locale/programs/charmap-kw.h: Regenerated.
23118 * locale/programs/locfile-kw.h: Likewise.
23119
23120 2017-12-31 Zack Weinberg <zackw@panix.com>
23121
23122 * libio/bits/libio-ldbl.h: Correct check for improper
23123 inclusion. Add own multiple include guard.
23124
23125 2017-12-30 Aurelien Jarno <aurelien@aurel32.net>
23126 Dmitry V. Levin <ldv@altlinux.org>
23127
23128 [BZ #22625]
23129 CVE-2017-16997
23130 * elf/dl-load.c (fillin_rpath): Check for empty tokens before dynamic
23131 string token expansion. Check for NULL pointer or empty string possibly
23132 returned by expand_dynamic_string_token.
23133 (decompose_rpath): Check for empty path after dynamic string
23134 token expansion.
23135
23136 2017-12-29 Dmitry V. Levin <ldv@altlinux.org>
23137
23138 [BZ #22433]
23139 * sysdeps/unix/sysv/linux/x86/sys/ptrace.h: New file.
23140
23141 * sysdeps/unix/sysv/linux/sys/ptrace.h (__ptrace_request): Add comments
23142 about PTRACE_PEEKSIGINFO, PTRACE_GETSIGMASK, PTRACE_SETSIGMASK, and
23143 PTRACE_SECCOMP_GET_FILTER. Update comments about PTRACE_SINGLESTEP
23144 and PTRACE_SYSCALL.
23145 * sysdeps/unix/sysv/linux/aarch64/sys/ptrace.h: Likewise.
23146 * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Likewise.
23147 * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
23148 * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
23149 * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
23150 * sysdeps/unix/sysv/linux/tile/sys/ptrace.h: Likewise.
23151
23152 * sysdeps/unix/sysv/linux/sys/ptrace.h: Include <bits/ptrace-shared.h>.
23153 (__ptrace_setoptions, __ptrace_eventcodes, __ptrace_peeksiginfo_args,
23154 __ptrace_peeksiginfo_flags, ptrace): Move to ...
23155 * sysdeps/unix/sysv/linux/bits/ptrace-shared.h: ... new file.
23156 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
23157 bits/ptrace-shared.h.
23158 * sysdeps/unix/sysv/linux/aarch64/sys/ptrace.h: Include
23159 <bits/ptrace-shared.h>.
23160 (__ptrace_setoptions, __ptrace_eventcodes, __ptrace_peeksiginfo_args,
23161 __ptrace_peeksiginfo_flags, ptrace): Remove.
23162 * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Likewise.
23163 * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
23164 * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
23165 * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
23166 * sysdeps/unix/sysv/linux/tile/sys/ptrace.h: Likewise.
23167
23168 2017-12-29 Aurelien Jarno <aurelien@aurel32.net>
23169
23170 [BZ #17804]
23171 * dirent/scandir-tail.c (SCANDIR_TAIL): Move __set_errno (0) at the
23172 end of the loop. Improve comments.
23173
23174 2017-12-29 Zack Weinberg <zackw@panix.com>
23175
23176 [BZ #22615]
23177 * manual/errno.texi (Checking for Errors): Explicitly say that errno
23178 might be set on success.
23179
23180 2017-12-29 Aurelien Jarno <aurelien@aurel32.net>
23181
23182 [BZ #22611]
23183 * malloc/tst-realloc.c (do_test): Remove the test checking that errno
23184 is unchanged on success.
23185
23186 2017-12-27 Dmitry V. Levin <ldv@altlinux.org>
23187
23188 * elf/dl-dst.h (DL_DST_COUNT): Remove is_path argument, all callers
23189 updated.
23190 * elf/dl-load.c (is_dst, _dl_dst_count, _dl_dst_substitute,
23191 expand_dynamic_string_token): Likewise.
23192 * sysdeps/generic/ldsodefs.h (_dl_dst_count, _dl_dst_substitute): Remove
23193 is_path argument.
23194
23195 * elf/dl-load.c (is_dst): Remove checks that is_path is set and name
23196 contains ':'.
23197
23198 * elf/dl-load.c (_dl_dst_substitute): Remove checks that is_path
23199 is set and name contains ':', and all code depending on these checks.
23200
23201 2017-12-24 Zack Weinberg <zackw@panix.com>
23202
23203 * libio/libio.h, libio/_G_config.h: New stub headers which issue a
23204 deprecation warning and then include <bits/libio.h>, <bits/_G_config.h>
23205 respectively.
23206 * libio/libio.h: Rename the original version of this file to
23207 libio/bits/libio.h. Error out if not included by stdio.h or the
23208 stub libio.h.
23209 * include/libio.h: Move to include/bits. Forward to libio/bits/libio.h.
23210 * sysdeps/generic/_G_config.h: Move to top-level bits/. Error out
23211 if not included by bits/libio.h or the stub _G_config.h.
23212 * sysdeps/unix/sysv/linux/_G_config.h: Move to
23213 sysdeps/unix/sysv/linux/bits. Error out if not included by
23214 bits/libio.h or the stub _G_config.h.
23215 * libio/stdio.h: Include bits/libio.h, not libio.h.
23216 * libio/Makefile: Install bits/libio.h and bits/_G_config.h as
23217 well as libio.h and _G_config.h.
23218
23219 * csu/init.c, libio/fmemopen.c, libio/iolibio.h, libio/oldfmemopen.c
23220 * libio/strfile.h, stdio-common/vfscanf.c
23221 * sysdeps/pthread/flockfile.c, sysdeps/pthread/funlockfile.c
23222 Include stdio.h, not _G_config.h nor libio.h.
23223 * libio/iofgetpos.c: Also rename fgetpos64 out of the way.
23224 * libio/iofsetpos.c: Also rename fsetpos64 out of the way.
23225
23226 * scripts/check-installed-headers.sh: Skip libio.h and _G_config.h.
23227
23228 2017-12-23 Dmitry V. Levin <ldv@altlinux.org>
23229
23230 [BZ #22347]
23231 * stdlib/getrandom.c (getrandom): Fix comment.
23232 * sysdeps/unix/sysv/linux/getrandom.c (getrandom): Likewise.
23233
23234 2017-12-23 Aurelien Jarno <aurelien@aurel32.net>
23235
23236 [BZ #21161]
23237 * manual/arith.texi (strtoul): Fix a typo.
23238
23239 [BZ #22596]
23240 * manual/arith.texi (finite): Fix the description of the return
23241 value.
23242
23243 2017-12-22 Eric Blake <ebb9@byu.net>
23244
23245 Avoid gcc warnings on cygwin
23246 * posix/regex_internal.c (re_string_reconstruct) [!RE_ENABLE_I18N]:
23247 * posix/regexec.c (check_arrival_add_next_nodes) [!RE_ENABLE_I18N]:
23248 Avoid unused variable.
23249
23250 2017-12-22 Florian Weimer <fweimer@redhat.com>
23251
23252 * io/Makefile (routines): Add copy_file_range.
23253 (tests): Add tst-copy_file_range.
23254 (tests-static, tests-internal): Add tst-copy_file_range-compat.
23255 * io/Versions (GLIBC_2.27): Export copy_file_range.
23256 * io/copy_file_range-compat.c: New file.
23257 * io/copy_file_range.c: Likewise.
23258 * io/tst-copy_file_range-compat.c: Likewise.
23259 * io/tst-copy_file_range.c: Likewise.
23260 * manual/llio.texi (Copying File Data): New section.
23261 * posix/unistd.h [__USE_GNU] (copy_file_range): Declare.
23262 * support/Makefile (libsupport-routines): Add support-xfstat,
23263 xftruncate, xlseek.
23264 * support/support-xfstat.c: New file.
23265 * support/xftruncate.c: Likewise.
23266 * support/xlseek.c: Likewise.
23267 * support/xunistd.h (xfstat, xftruncate, xlseek): Declare.
23268 * sysdeps/unix/sysv/linux/**.abilist: Update.
23269 * sysdeps/unix/sysv/linux/copy_file_range.c: New file.
23270
23271 2017-12-21 Szabolcs Nagy <szabolcs.nagy@arm.com>
23272
23273 * scripts/build-many-glibcs.py (Context.add_all_configs): Add
23274 disable-multi-arch variant to aarch64-linux-gnu.
23275
23276 2017-12-20 Joseph Myers <joseph@codesourcery.com>
23277
23278 * manual/texinfo.tex: Update to version 2017-12-18.20 with
23279 trailing whitespace removed.
23280 * scripts/config.guess: Update to version 2017-12-17.
23281 * scripts/config.sub: Update to version 2017-11-23.
23282 * scripts/install-sh: Update to version 2017-09-23.17.
23283 * scripts/move-if-change: Update to version 2017-09-13 06:45.
23284
23285 2017-12-20 Adhemerval Zanella <adhemerval.zanella@linaro.org>
23286
23287 * sysdeps/tile/__longjmp.S (__longjmp): Use lowercase instructions.
23288 * sysdeps/tile/__tls_get_addr.S (__tls_get_addr): Likewise.
23289 * sysdeps/tile/_mcount.S (__mcount): Likewise.
23290 * sysdeps/tile/crti.S (_init, _fini): Likewise.
23291 * sysdeps/tile/crtn.S: Likewise.
23292 * sysdeps/tile/dl-start.S (_start): Likewise.
23293 * sysdeps/tile/dl-trampoline.S: Likewise.
23294 * sysdeps/tile/setjmp.S (__sigsetjmp): Likewise.
23295 * sysdeps/tile/start.S (_start): Likewise.
23296 * sysdeps/unix/sysv/linux/tile/clone.S (_clone): Likewise.
23297 * sysdeps/unix/sysv/linux/tile/getcontext.S (__getcontext): Likewise.
23298 * sysdeps/unix/sysv/linux/tile/ioctl.S (__ioctl): Likewise.
23299 * sysdeps/unix/sysv/linux/tile/setcontext.S (__setcontext): Likewise.
23300 * sysdeps/unix/sysv/linux/tile/swapcontext.S (__swapcontext): Likewise.
23301 * sysdeps/unix/sysv/linux/tile/syscall.S (syscall): Likewise.
23302 * sysdeps/unix/sysv/linux/tile/vfork.S (__vfork): Likewise.
23303
23304 * stdlib/bug-getcontext.c (do_test): Remove tilepro mention in
23305 comment.
23306 * sysdeps/tile/preconfigure: Remove tilegx folder.
23307 * sysdeps/tile/tilegx/Implies: Move definitions to ...
23308 * sysdeps/tile/Implies: ... here.
23309 * sysdeps/tile/tilegx/Makefile: Move rules to ...
23310 * sysdeps/tile/Makefile: ... here.
23311 * sysdeps/tile/tilegx/atomic-machine.h: Move definitions to ...
23312 * sysdeps/tile/atomic-machine.h: ... here. Add include guards.
23313 * sysdeps/tile/tilegx/bits/wordsize.h: Move to ...
23314 * sysdeps/tile/bits/wordsize.h: ... here.
23315 * sysdeps/tile/tilegx/*: Move to ...
23316 * sysdeps/tile/*: ... here.
23317 * sysdeps/tile/tilegx/tilegx32/Implies: Move to ...
23318 * sysdeps/tile/tilegx32/Implies: ... here.
23319 * sysdeps/tile/tilegx/tilegx64/Implies: Move to ...
23320 * sysdeps/tile/tilegx64/Implies: ... here.
23321 * sysdeps/unix/sysv/linux/tile/tilegx/Makefile: Move definitions
23322 to ...
23323 * sysdeps/unix/sysv/linux/tile/Makefile: ... here.
23324 * sysdeps/unix/sysv/linux/tile/tilegx/*: Move to ...
23325 * sysdeps/unix/sysv/linux/tile/*: ... here.
23326 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/*: Move to ...
23327 * sysdeps/unix/sysv/linux/tile/tilegx32/*: ... here.
23328 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/*: Move to ...
23329 * sysdeps/unix/sysv/linux/tile/tilegx64/*: ... here.
23330
23331 * README: Remove tilepro-*-linux-gnu from supported architecture.
23332 * scripts/build-many-glibcs.py: Likewise.
23333 * sysdeps/tile/__tls_get_addr.S (__tls_get_addr): Likewise.
23334 * sysdeps/tile/crti.S (PREINIT_FUNCTION): Likewise.
23335 * sysdeps/tile/dl-machine.h (ELF_MACHINE_NAME,
23336 elf_machine_matches_host, elf_machine_dynamic,
23337 elf_machine_load_address, elf_machine_runtime_setup, reloc_howto
23338 howto, elf_machine_rela): Likewise.
23339 * sysdeps/tile/dl-start.S (_start): Likewise.
23340 * sysdeps/tile/memcmp.c (DBLALIGN, REVBYTES): Likewise.
23341 * sysdeps/tile/memcopy.h (MEMCPY_OK_FOR_FWD_MEMMOVE,
23342 MEMCPY_OK_FOR_FWD_MEMMOVE, op_t): Likewise.
23343 * sysdeps/tile/nptl/pthread_spin_lock.c (TNS, CMPTNS): Likewise.
23344 * sysdeps/tile/nptl/pthread_spin_trylock.c (TNS): Likewise.
23345 * sysdeps/tile/nptl/pthread_spin_unlock.c (pthread_spin_unlock):
23346 Likewise.
23347 * sysdeps/tile/nptl/tls.h (DB_THREAD_SELF): Likewise.
23348 * sysdeps/tile/preconfigure: Likewise.
23349 * sysdeps/tile/stackguard-macros.h (STACK_CHK_GUARD,
23350 POINTER_CHK_GUARD): Likewise.
23351 * sysdeps/tile/stackinfo.h (__stackinfo_sub): Likewise.
23352 * sysdeps/tile/start.S (_start): Likewise.
23353 * sysdeps/tile/tls-macros.h (TLS_GD_OFFSET, TLS_IE_OFFSET, _TLS_LE):
23354 Likewise.
23355 * sysdeps/tile/sysdep.h (REGSIZE): Likewise.
23356 (LD, LD4U, ST, ST4, BNEZ, BEQZ, BEQZT, BGTZ, CMPEQI, CMPEQ, CMOVEQZ,
23357 CMOVNEZ): Remove.
23358 * sysdeps/unix/sysv/linux/tile/bits/environments.h
23359 (__ILP32_OFF32_CFLAGS, __ILP32_OFFBIG_CFLAGS, __ILP32_OFF32_LDFLAGS,
23360 __ILP32_OFFBIG_LDFLAGS, __LP64_OFF64_CFLAGS, __LP64_OFF64_LDFLAGS):
23361 Likewise.
23362 * sysdeps/tile/wordcopy.c (DBLALIGN): Likewise.
23363 * sysdeps/tile/tilepro/Implies: Remove file.
23364 * sysdeps/tile/tilepro/atomic-machine.h: Likewise.
23365 * sysdeps/tile/tilepro/bits/wordsize.h: Likewise.
23366 * sysdeps/tile/tilepro/memchr.c: Likewise.
23367 * sysdeps/tile/tilepro/memcpy.S: Likewise.
23368 * sysdeps/tile/tilepro/memset.c: Likewise.
23369 * sysdeps/tile/tilepro/memusage.h: Likewise.
23370 * sysdeps/tile/tilepro/rawmemchr.c: Likewise.
23371 * sysdeps/tile/tilepro/strchr.c: Likewise.
23372 * sysdeps/tile/tilepro/strchrnul.c: Likewise.
23373 * sysdeps/tile/tilepro/strlen.c: Likewise.
23374 * sysdeps/tile/tilepro/strrchr.c: Likewise.
23375 * sysdeps/unix/sysv/linux/tile/tilepro/Implies: Likewise.
23376 * sysdeps/unix/sysv/linux/tile/tilepro/c++-types.data: Likewise.
23377 * sysdeps/unix/sysv/linux/tile/tilepro/jmp_buf-macros.h: Likewise.
23378 * sysdeps/unix/sysv/linux/tile/tilepro/ld.abilist: Likewise.
23379 * sysdeps/unix/sysv/linux/tile/tilepro/ldconfig.h: Likewise.
23380 * sysdeps/unix/sysv/linux/tile/tilepro/libBrokenLocale.abilist:
23381 Likewise.
23382 * sysdeps/unix/sysv/linux/tile/tilepro/libanl.abilist: Likewise.
23383 * sysdeps/unix/sysv/linux/tile/tilepro/libc.abilist: Likewise.
23384 * sysdeps/unix/sysv/linux/tile/tilepro/libcrypt.abilist: Likewise.
23385 * sysdeps/unix/sysv/linux/tile/tilepro/libdl.abilist: Likewise.
23386 * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
23387 * sysdeps/unix/sysv/linux/tile/tilepro/libnsl.abilist: Likewise.
23388 * sysdeps/unix/sysv/linux/tile/tilepro/libpthread.abilist: Likewise.
23389 * sysdeps/unix/sysv/linux/tile/tilepro/libresolv.abilist: Likewise.
23390 * sysdeps/unix/sysv/linux/tile/tilepro/librt.abilist: Likewise.
23391 * sysdeps/unix/sysv/linux/tile/tilepro/libthread_db.abilist: Likewise.
23392 * sysdeps/unix/sysv/linux/tile/tilepro/libutil.abilist: Likewise.
23393 * sysdeps/unix/sysv/linux/tile/tilepro/register-dump.h: Likewise.
23394 * sysdeps/unix/sysv/linux/tile/sysconf.c (linux_sysconf): Remove
23395 tilepro mention in comment.
23396
23397 * nptl/Makefile (libpthread-routines): Add pthread_join_common.
23398 * nptl/pthreadP.h (__pthread_timedjoin_ex): New prototype.
23399 * nptl/pthread_join_common.c: New file: common function used on
23400 pthread_join, pthread_timedjoin_np, pthread_tryjoin_np.
23401 * nptl/pthread_join.c (pthread_join): Use __pthread_timedjoin_ex.
23402 * nptl/pthread_tryjoin.c (pthread_tryjoin): Likewise.
23403 * nptl/pthread_timedjoin.c (pthread_timedjoin_np): Likewise.
23404 (cleanup): Move definition to pthread_join_common.c.
23405 * sysdeps/unix/sysv/linux/i386/lowlevellock.h (__lll_timedwait_tid):
23406 Remove superflous checks.
23407 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h (__lll_timedwait_tid):
23408 Likewise.
23409
23410 2017-12-20 Szabolcs Nagy <szabolcs.nagy@arm.com>
23411
23412 * sysdeps/aarch64/libm-test-ulps: Update.
23413
23414 2017-12-20 Adhemerval Zanella <adhemerval.zanella@linaro.org>
23415
23416 * sysdeps/aarch64/memset.S (MEMSET): Define.
23417
23418 2017-12-20 Florian Weimer <fweimer@redhat.com>
23419
23420 [BZ #22635]
23421 nptl: Provide full implementation of pthread_self in libc.so.
23422 * nptl/Makefile (routines): Add pthread_self.
23423 (libpthread-routines): Replace pthread_self with
23424 compat-pthread_self.
23425 * nptl/forward.c (pthread_self): Remove.
23426 * nptl/nptl-init.c (pthread_functions): Do not initialize
23427 ptr_pthread_self.
23428 * nptl/pthread_self.c (pthread_self): Remove weak alias.
23429 * nptl/compat-pthread_self.c: New file.
23430 * sysdeps/nptl/pthread-functions.h (struct pthread_functions):
23431 Remove ptr_pthread_self.
23432
23433 2017-12-19 Arnold D. Robbins <arnold@skeeve.com>
23434
23435 * posix/regcomp.c: Fix spelling in comments.
23436 * posix/regex.h: Likewise.
23437 * posix/regex_internal.c: Likewise.
23438 * posix/regexec.c: Likewise.
23439
23440 2017-12-19 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
23441
23442 [BZ #22377]
23443 * math/Makefile [C++] (tests): Add test for iseqsig.
23444 * math/math.h [C++] (iseqsig): New implementation, which does
23445 not rely on __MATH_TG/__builtin_types_compatible_p.
23446 * math/test-math-iseqsig.cc: New file.
23447 * sysdeps/powerpc/powerpc64le/Makefile
23448 (CFLAGS-test-math-iseqsig.cc): New variable.
23449
23450 2017-12-19 Dmitry V. Levin <ldv@altlinux.org>
23451
23452 * elf/dl-load.c (is_trusted_path): Remove.
23453 (fillin_rpath): Remove check_trusted argument and its use,
23454 all callers changed.
23455
23456 2017-12-19 H.J. Lu <hongjiu.lu@intel.com>
23457
23458 [BZ #22630]
23459 * Makeconfig (link-pie-before-libc): Replace -pie with
23460 $(if $($(@F)-no-pie),$(no-pie-ldflag),-pie).
23461 * elf/Makefile (LDFLAGS-tst-dlopen-aout): Removed.
23462 (tst-dlopen-aout-no-pie): New.
23463 (LDFLAGS-tst-prelink): Removed.
23464 (tst-prelink-no-pie): New.
23465 (LDFLAGS-tst-main1): Removed.
23466 (tst-main1-no-pie): New.
23467 * gmon/Makefile (LDFLAGS-tst-gmon): Removed.
23468 (tst-gmon-no-pie): New.
23469
23470 2017-12-19 H.J. Lu <hongjiu.lu@intel.com>
23471
23472 * manual/install.texi: Document that --enable-static-pie
23473 implies PIE.
23474 * INSTALL: Regenerated.
23475
23476 2017-12-19 Bernd Edlinger <bernd.edlinger@hotmail.de>
23477
23478 [BZ #21309]
23479 * sysdeps/ieee754/dbl-64/e_pow.c (checkint): Make m and n
23480 unsigned.
23481
23482 2017-12-19 Joseph Myers <joseph@codesourcery.com>
23483
23484 Revert:
23485
23486 2017-12-19 Joseph Myers <joseph@codesourcery.com>
23487
23488 * sysdeps/x86_64/fpu/libm-test-ulps: Update.
23489
23490 2017-12-19 Patrick McGehearty <patrick.mcgehearty@oracle.com>
23491
23492 * sysdeps/ieee754/dbl-64/e_exp.c: Include <math-svid-compat.h> and
23493 <errno.h>. Include "eexp.tbl".
23494 (half): New constant.
23495 (one): Likewise.
23496 (__ieee754_exp): Rewrite.
23497 (__slowexp): Remove prototype.
23498 * sysdeps/ieee754/dbl-64/eexp.tbl: New file.
23499 * sysdeps/ieee754/dbl-64/slowexp.c: Remove file.
23500 * sysdeps/i386/fpu/slowexp.c: Likewise.
23501 * sysdeps/ia64/fpu/slowexp.c: Likewise.
23502 * sysdeps/m68k/m680x0/fpu/slowexp.c: Likewise.
23503 * sysdeps/x86_64/fpu/multiarch/slowexp-avx.c: Likewise.
23504 * sysdeps/x86_64/fpu/multiarch/slowexp-fma.c: Likewise.
23505 * sysdeps/x86_64/fpu/multiarch/slowexp-fma4.c: Likewise.
23506 * sysdeps/generic/math_private.h (__slowexp): Remove prototype.
23507 * sysdeps/ieee754/dbl-64/e_pow.c: Remove mention of slowexp.c in
23508 comment.
23509 * sysdeps/powerpc/power4/fpu/Makefile [$(subdir) = math]
23510 (CPPFLAGS-slowexp.c): Remove variable.
23511 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
23512 Remove slowexp-fma, slowexp-fma4 and slowexp-avx.
23513 (CFLAGS-slowexp-fma.c): Remove variable.
23514 (CFLAGS-slowexp-fma4.c): Likewise.
23515 (CFLAGS-slowexp-avx.c): Likewise.
23516 * sysdeps/x86_64/fpu/multiarch/e_exp-avx.c (__slowexp): Do not
23517 define as macro.
23518 * sysdeps/x86_64/fpu/multiarch/e_exp-fma.c (__slowexp): Likewise.
23519 * sysdeps/x86_64/fpu/multiarch/e_exp-fma4.c (__slowexp): Likewise.
23520 * math/Makefile (type-double-routines): Remove slowexp.
23521 * manual/probes.texi (slowexp_p6): Remove.
23522 (slowexp_p32): Likewise.
23523
23524 2017-12-19 Adhemerval Zanella <adhemerval.zanella@linaro.org>
23525
23526 * lib/glob.c (glob): Use a 'char *', not a 'void *', in pointer
23527 arithmetic.
23528
23529 * lib/glob.c (glob): Do not pass NULL to mempcpy.
23530
23531 2017-12-19 Joseph Myers <joseph@codesourcery.com>
23532
23533 * sysdeps/x86_64/fpu/libm-test-ulps: Update.
23534
23535 2017-12-19 Patrick McGehearty <patrick.mcgehearty@oracle.com>
23536
23537 * sysdeps/ieee754/dbl-64/e_exp.c: Include <math-svid-compat.h> and
23538 <errno.h>. Include "eexp.tbl".
23539 (half): New constant.
23540 (one): Likewise.
23541 (__ieee754_exp): Rewrite.
23542 (__slowexp): Remove prototype.
23543 * sysdeps/ieee754/dbl-64/eexp.tbl: New file.
23544 * sysdeps/ieee754/dbl-64/slowexp.c: Remove file.
23545 * sysdeps/i386/fpu/slowexp.c: Likewise.
23546 * sysdeps/ia64/fpu/slowexp.c: Likewise.
23547 * sysdeps/m68k/m680x0/fpu/slowexp.c: Likewise.
23548 * sysdeps/x86_64/fpu/multiarch/slowexp-avx.c: Likewise.
23549 * sysdeps/x86_64/fpu/multiarch/slowexp-fma.c: Likewise.
23550 * sysdeps/x86_64/fpu/multiarch/slowexp-fma4.c: Likewise.
23551 * sysdeps/generic/math_private.h (__slowexp): Remove prototype.
23552 * sysdeps/ieee754/dbl-64/e_pow.c: Remove mention of slowexp.c in
23553 comment.
23554 * sysdeps/powerpc/power4/fpu/Makefile [$(subdir) = math]
23555 (CPPFLAGS-slowexp.c): Remove variable.
23556 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
23557 Remove slowexp-fma, slowexp-fma4 and slowexp-avx.
23558 (CFLAGS-slowexp-fma.c): Remove variable.
23559 (CFLAGS-slowexp-fma4.c): Likewise.
23560 (CFLAGS-slowexp-avx.c): Likewise.
23561 * sysdeps/x86_64/fpu/multiarch/e_exp-avx.c (__slowexp): Do not
23562 define as macro.
23563 * sysdeps/x86_64/fpu/multiarch/e_exp-fma.c (__slowexp): Likewise.
23564 * sysdeps/x86_64/fpu/multiarch/e_exp-fma4.c (__slowexp): Likewise.
23565 * math/Makefile (type-double-routines): Remove slowexp.
23566 * manual/probes.texi (slowexp_p6): Remove.
23567 (slowexp_p32): Likewise.
23568
23569 2017-12-19 Adhemerval Zanella <adhemerval.zanella@linaro.org>
23570 James Clarke <jrtc27@jrtc27.com>
23571
23572 [BZ #22603]
23573 * sysdeps/ia64/memchr.S (__memchr): Avoid overflow in pointer
23574 addition.
23575
23576 2017-12-19 Adhemerval Zanella <adhemerval.zanella@linaro.org>
23577
23578 [BZ #22605]
23579 * sysdeps/unix/sysv/linux/sh/clone.S (__clone): Fix exit return
23580 code.
23581
23582 2017-12-19 H.J. Lu <hongjiu.lu@intel.com>
23583
23584 [BZ #22563]
23585 * sysdeps/i386/nptl/tcb-offsets.sym (FEATURE_1_OFFSET): New.
23586 * sysdeps/i386/nptl/tls.h (tcbhead_t): Add feature_1.
23587 * sysdeps/x86_64/nptl/tcb-offsets.sym (FEATURE_1_OFFSET): New.
23588 * sysdeps/x86_64/nptl/tls.h (tcbhead_t): Rename __glibc_unused1
23589 to feature_1.
23590
23591 2017-12-19 H.J. Lu <hongjiu.lu@intel.com>
23592
23593 [BZ #22563]
23594 * bits/types/__cancel_jmp_buf_tag.h: New file.
23595 * sysdeps/unix/sysv/linux/x86/bits/types/__cancel_jmp_buf_tag.h
23596 * sysdeps/unix/sysv/linux/x86/pthreaddef.h: Likewise.
23597 * sysdeps/unix/sysv/linux/x86/nptl/pthreadP.h: Likewise.
23598 * nptl/Makefile (headers): Add
23599 bits/types/__cancel_jmp_buf_tag.h.
23600 * nptl/descr.h [NEED_SAVED_MASK_IN_CANCEL_JMP_BUF]
23601 (pthread_unwind_buf): Add saved_mask to cancel_jmp_buf.
23602 * sysdeps/nptl/pthread.h: Include
23603 <bits/types/__cancel_jmp_buf_tag.h>.
23604 (__pthread_unwind_buf_t): Use struct __cancel_jmp_buf_tag with
23605 __cancel_jmp_buf.
23606 * sysdeps/unix/sysv/linux/hppa/pthread.h: Likewise.
23607
23608 2017-12-18 H.J. Lu <hongjiu.lu@intel.com>
23609
23610 * scripts/build-many-glibcs.py (Context.add_all_configs): Add
23611 --enable-static-pie variants to x86_64, x32 and i686.
23612
23613 2017-12-19 Joseph Myers <joseph@codesourcery.com>
23614
23615 [BZ #22631]
23616 * sysdeps/m68k/m680x0/fpu/bits/mathinline.h (__m81_defun): Add
23617 argument for attrubutes. All callers changed.
23618 (__inline_mathop1): Likewise. All callers changed.
23619 (__inline_mathop): Likewise. All callers changed.
23620 [__USE_MISC] (scalbn): Use __inline_forward instead of
23621 __inline_forward_c.
23622 [__USE_ISOC99] (scalbln): Likewise.
23623 [__USE_ISOC99] (nearbyint): Likewise.
23624 [__USE_ISOC99] (lrint): Likewise.
23625 [__USE_MISC] (scalbnf): Likewise.
23626 [__USE_ISOC99] (scalblnf): Likewise.
23627 [__USE_ISOC99] (nearbyintf): Likewise.
23628 [__USE_ISOC99] (lrintf): Likewise.
23629 [__USE_MISC] (scalbnl): Likewise.
23630 [__USE_ISOC99] (scalblnl): Likewise.
23631 [__USE_ISOC99] (nearbyintl): Likewise.
23632 [__USE_ISOC99] (lrintl): Likewise.
23633 * sysdeps/m68k/m680x0/fpu/mathimpl.h: All callers of
23634 __inline_mathop and __m81_defun changed.
23635
23636 * scripts/build-many-glibcs.py (Context.add_all_configs): Specify
23637 CPU or FPU for ARM hard-float configurations.
23638
23639 2017-12-18 Joseph Myers <joseph@codesourcery.com>
23640
23641 * nptl/tst-attr3.c: Include <libc-diag.h>.
23642 (do_test) [__GNUC_PREREQ (7, 0)]: Ignore -Wrestrict for two tests.
23643
23644 * posix/tst-glob_symlinks.c (do_test): Increase size of buf.
23645
23646 * string/tester.c (test_strncat): Also disable -Warray-bounds
23647 warnings for two tests.
23648
23649 2017-12-18 H.J. Lu <hongjiu.lu@intel.com>
23650
23651 [BZ #22614]
23652 * Makeconfig (no-pie-ldflag): Set to -no-pie only if
23653 $(cc-pie-default) == yes.
23654 * config.make.in (cc-pie-default): New.
23655 * configure.ac (libc_cv_pie_default): Renamed to ...
23656 (libc_cv_cc_pie_default): This.
23657 (libc_cv_pie_default): Set to $libc_cv_cc_pie_default.
23658 * configure: Regenerated.
23659
23660 2017-12-18 Florian Weimer <fweimer@redhat.com>
23661
23662 [BZ #20204]
23663 ld.so: Harden dl-libc/libdl hooks.
23664 * sysdeps/generic/ldsodefs.h (_dl_init_all_dirs): Update comment.
23665 (rtld_active): New function.
23666 * dlfcn/dladdr.c (__dladdr): Call it.
23667 * dlfcn/dladdr1.c (__dladdr1): Likewise.
23668 * dlfcn/dlclose.c (__dlcose): Likewise.
23669 * dlfcn/dlerror.c (__dlerror): Likewise.
23670 * dlfcn/dlinfo.c (__dlinfo): Likewise.
23671 * dlfcn/dlmopen.c (__dlmopen): Likewise.
23672 * dlfcn/dlopen.c (__dlopen): Likewise.
23673 * dlfcn/dlopenold.c (__dlopen_nocheck): Likewise.
23674 * dlfcn/dlsym.c (__dlsym): Likewise.
23675 * dlfcn/dlvsym.c (__dlvsym): Likewise.
23676 * libio/vtables.c (_IO_vtable_check): Likewise.
23677 * elf/dl-libc.c (__libc_dlopen_mode, __libc_dlsym)
23678 (__libc_dlclose): Likewise.
23679 * elf/rtld.c (dl_main): Update comment on the _dl_init_all_dirs
23680 assignment.
23681
23682 2017-12-18 Joseph Myers <joseph@codesourcery.com>
23683
23684 [BZ #22446]
23685 * nscd/connections.c (handle_request) [SO_PEERCRED]: Use separate
23686 buffers for readlink input and output.
23687
23688 2017-12-18 Sergei Trofimovich <slyfox@gentoo.org>
23689
23690 [BZ #22624]
23691 * sysdeps/mips/setjmp_aux.c (__sigsetjmp_aux): Use
23692 inhibit_stack_protector.
23693
23694 [BZ #22624]
23695 * sysdeps/mips/mips64/setjmp_aux.c (__sigsetjmp_aux): Use
23696 inhibit_stack_protector.
23697
23698 2017-12-18 Dmitry V. Levin <ldv@altlinux.org>
23699
23700 [BZ #22627]
23701 * elf/dl-load.c (_dl_init_paths): Remove _dl_dst_substitute preparatory
23702 code and invocation.
23703
23704 2017-12-18 Szabolcs Nagy <szabolcs.nagy@arm.com>
23705
23706 * sysdeps/aarch64/start.S (_start): Handle PIC && !SHARED case.
23707
23708 2017-12-16 Aurelien Jarno <aurelien@aurel32.net>
23709
23710 [BZ #22505]
23711 * elf/ldconfig.c (main): Call setlocale to force LC_COLLATE to C.
23712
23713 2017-12-16 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
23714
23715 * sysdeps/s390/fpu/libm-test-ulps: Update.
23716
23717 2017-12-16 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
23718
23719 * sysdeps/powerpc/fpu/libm-test-ulps: Update.
23720
23721 2017-12-16 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
23722
23723 * sysdeps/ieee754/flt-32/s_cosf.c: Move reduced() and
23724 constants to s_sincosf.h file.
23725 * sysdeps/ieee754/flt-32/s_sinf.c: Likewise.
23726 * sysdeps/ieee754/flt-32/s_sincosf.c: New
23727 implementation.
23728 * sysdeps/ieee754/flt-32/s_sincosf.h:
23729 New file.
23730
23731 2017-12-12 Carlos O'Donell <carlos@redhat.com>
23732
23733 [BZ #14681]
23734 * elf/tst-leaks1.c (do_test): Call one dlopen with $ORIGIN expansion
23735 before mtrace.
23736
23737 2017-12-15 H.J. Lu <hongjiu.lu@intel.com>
23738
23739 [BZ #19574]
23740 * INSTALL: Regenerated.
23741 * Makeconfig (real-static-start-installed-name): New.
23742 (pic-default): Updated for --enable-static-pie.
23743 (pie-default): New for --enable-static-pie.
23744 (default-pie-ldflag): Likewise.
23745 (+link-static-before-libc): Replace $(DEFAULT-LDFLAGS-$(@F))
23746 with $(if $($(@F)-no-pie),$(no-pie-ldflag),$(default-pie-ldflag)).
23747 Replace $(static-start-installed-name) with
23748 $(real-static-start-installed-name).
23749 (+prectorT): Updated for --enable-static-pie.
23750 (+postctorT): Likewise.
23751 (CFLAGS-.o): Add $(pie-default).
23752 (CFLAGS-.op): Likewise.
23753 * NEWS: Mention --enable-static-pie.
23754 * config.h.in (ENABLE_STATIC_PIE): New.
23755 * configure.ac (--enable-static-pie): New configure option.
23756 (have-no-dynamic-linker): New LIBC_CONFIG_VAR.
23757 (have-static-pie): Likewise.
23758 Enable static PIE if linker supports --no-dynamic-linker.
23759 (ENABLE_STATIC_PIE): New AC_DEFINE.
23760 (enable-static-pie): New LIBC_CONFIG_VAR.
23761 * configure: Regenerated.
23762 * csu/Makefile (omit-deps): Add r$(start-installed-name) and
23763 gr$(start-installed-name) for --enable-static-pie.
23764 (extra-objs): Likewise.
23765 (install-lib): Likewise.
23766 (extra-objs): Add static-reloc.o and static-reloc.os
23767 ($(objpfx)$(start-installed-name)): Also depend on
23768 $(objpfx)static-reloc.o.
23769 ($(objpfx)r$(start-installed-name)): New.
23770 ($(objpfx)g$(start-installed-name)): Also depend on
23771 $(objpfx)static-reloc.os.
23772 ($(objpfx)gr$(start-installed-name)): New.
23773 * csu/libc-start.c (LIBC_START_MAIN): Call _dl_relocate_static_pie
23774 in libc.a.
23775 * csu/libc-tls.c (__libc_setup_tls): Add main_map->l_addr to
23776 initimage.
23777 * csu/static-reloc.c: New file.
23778 * elf/Makefile (routines): Add dl-reloc-static-pie.
23779 (elide-routines.os): Likewise.
23780 (DEFAULT-LDFLAGS-tst-tls1-static-non-pie): Removed.
23781 (tst-tls1-static-non-pie-no-pie): New.
23782 * elf/dl-reloc-static-pie.c: New file.
23783 * elf/dl-support.c (_dl_get_dl_main_map): New function.
23784 * elf/dynamic-link.h (ELF_DURING_STARTUP): Also check
23785 STATIC_PIE_BOOTSTRAP.
23786 * elf/get-dynamic-info.h (elf_get_dynamic_info): Likewise.
23787 * gmon/Makefile (tests): Add tst-gmon-static-pie.
23788 (tests-static): Likewise.
23789 (DEFAULT-LDFLAGS-tst-gmon-static): Removed.
23790 (tst-gmon-static-no-pie): New.
23791 (CFLAGS-tst-gmon-static-pie.c): Likewise.
23792 (CRT-tst-gmon-static-pie): Likewise.
23793 (tst-gmon-static-pie-ENV): Likewise.
23794 (tests-special): Likewise.
23795 ($(objpfx)tst-gmon-static-pie.out): Likewise.
23796 (clean-tst-gmon-static-pie-data): Likewise.
23797 ($(objpfx)tst-gmon-static-pie-gprof.out): Likewise.
23798 * gmon/tst-gmon-static-pie.c: New file.
23799 * manual/install.texi: Document --enable-static-pie.
23800 * sysdeps/generic/ldsodefs.h (_dl_relocate_static_pie): New.
23801 (_dl_get_dl_main_map): Likewise.
23802 * sysdeps/i386/configure.ac: Check if linker supports static PIE.
23803 * sysdeps/x86_64/configure.ac: Likewise.
23804 * sysdeps/i386/configure: Regenerated.
23805 * sysdeps/x86_64/configure: Likewise.
23806 * sysdeps/mips/Makefile (ASFLAGS-.o): Add $(pie-default).
23807 (ASFLAGS-.op): Likewise.
23808
23809 2017-12-15 Joseph Myers <joseph@codesourcery.com>
23810
23811 * io/Makefile (tst-open-tmpfile-ARGS): New variable.
23812 * posix/tst-mmap-offset.c (fname): Use /tmp.
23813 * stdlib/tst-setcontext3.sh (tempfile): Use ${objpfx}.
23814
23815 2017-12-15 Steve Ellcey <sellcey@cavium.com>
23816
23817 * nscd/dbg_log.c (dbg_log): Increase msg buffer size.
23818
23819 2017-12-15 Thomas Schwinge <thomas@codesourcery.com>
23820
23821 * sysdeps/mach/hurd/dl-sysdep.c (__access_noerrno): Don't set
23822 errno.
23823
23824 2017-12-15 Joseph Myers <joseph@codesourcery.com>
23825
23826 * scripts/build-many-glibcs.py (Context.add_all_configs): Use
23827 --with-float=hard for arm-linux-gnueabihf configurations.
23828
23829 [BZ #14121]
23830 * po/Makefile (generated): Add $(ALL_LINGUAS:%=%.mo).
23831 (%.mo): Change to $(objpfx)%.mo. Use $(make-target-directory).
23832 ($(mo-installed)): Use $(objpfx)%.mo.
23833 (realclean): Remove rule.
23834
23835 * po/Makefile (linguas): Remove rule and dependencies.
23836 (linguas.mo): Likewise.
23837 (.PHONY): Do not depend on linguas and linguas.mo.
23838 (podir): Remove variable.
23839 (pofiles): Likewise.
23840 [$(pofiles)] (%.po): Remove rule.
23841
23842 * sysdeps/sparc/sparc32/Makefile
23843 ($(divrem:%=$(sysdep_dir)/sparc/sparc32/%.S)): Do not include
23844 start-of-line whitespace in argument of echo.
23845 * sysdeps/sparc/sparc32/divrem.m4: Avoid generating lines starting
23846 with whitespace. Generate __wrap_.udiv alias.
23847 * sysdeps/sparc/sparc32/rem.S: Regenerated.
23848 * sysdeps/sparc/sparc32/sdiv.S: Likewise.
23849 * sysdeps/sparc/sparc32/udiv.S: Likewise.
23850 * sysdeps/sparc/sparc32/urem.S: Likewise.
23851
23852 2017-12-15 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
23853
23854 * sysdeps/powerpc/powerpc64/power8/strcpy.S: Use vectors
23855 for aligned inputs.
23856
23857 2017-12-14 Siddhesh Poyarekar <siddhesh@sourceware.org>
23858
23859 * benchtests/bench-strcmp.c: Print output in JSON format.
23860
23861 * elf/dl-tunables.list: Remove redundant SXID_ERASE.
23862
23863 2017-12-14 Florian Weimer <fweimer@redhat.com>
23864
23865 [BZ #22607]
23866 CVE-2017-1000409
23867 * elf/dl-load.c (_dl_init_paths): Compute number of components in
23868 the expanded path string.
23869
23870 2017-12-14 Florian Weimer <fweimer@redhat.com>
23871
23872 [BZ #22606]
23873 CVE-2017-1000408
23874 * elf/dl-load.c (system_dirs): Update comment.
23875 (nsystem_dirs_len): Use array_length.
23876 (_dl_init_paths): Use nsystem_dirs_len to compute the array size.
23877
23878 2017-12-14 Florian Weimer <fweimer@redhat.com>
23879
23880 Simplify compiling most of support/ outside of glibc.
23881 * support/check_addrinfo.c: Include <string.h>.
23882 * support/check_dns_packet.c: Likewise.
23883 * support/check_hostent.c: Likewise.
23884 * support/support_can_chroot.c: Include <support/xunistd.h>.
23885 * support/support_format_addrinfo.c: Include <stdlib.h>
23886 * support/support_format_dns_packet.c: Include <stdbool.h>.
23887 * support/support_format_hostent.c: Include <stdlib.h>.
23888 * support/support_format_netent.c: Likewise.
23889 * support/support_write_string.c: Include <support/xunistd.h>.
23890 * support/xdlfcn.c: Include <stddef.h>.
23891
23892 2017-12-14 H.J. Lu <hongjiu.lu@intel.com>
23893
23894 * sysdeps/x86_64/fpu/s_cosf.S: Removed.
23895
23896 2017-12-14 Patrick McGehearty <patrick.mcgehearty@oracle.com>
23897 Adhemerval Zanella <adhemerval.zanella@linaro.org>
23898
23899 * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile
23900 (sysdeps_routines): Add memset-niagara7.
23901 * sysdeps/sparc/sparc64/multiarch/Makefile (sysdes_rotuines):
23902 Likewise.
23903 * sysdeps/sparc/sparc32/sparcv9/multiarch/memset-niagara7.S: New
23904 file.
23905 * sysdeps/sparc/sparc64/multiarch/memset-niagara7.S: Likewise.
23906 * sysdeps/sparc/sparc64/multiarch/ifunc-impl-list.c
23907 (__libc_ifunc_impl_list): Add __bzero_niagara7 and __memset_niagara7.
23908 * sysdeps/sparc/sparc64/multiarch/ifunc-memset.h (IFUNC_SELECTOR):
23909 Add niagara7 option.
23910 * NEWS: Mention sparc m7 optimized memcpy, mempcpy, memmove, and
23911 memset.
23912
23913 * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile
23914 (sysdeps_routines): Add memcpy-memmove-niagara7 and memmove-ultra1.
23915 * sysdeps/sparc/sparc64/multiarch/Makefile (sysdeps_routines):
23916 Likewise.
23917 * sysdeps/sparc/sparc32/sparcv9/multiarch/memcpy-memmove-niagara7.S:
23918 New file.
23919 * sysdeps/sparc/sparc32/sparcv9/multiarch/memmove-ultra1.S: Likewise.
23920 * sysdeps/sparc/sparc32/sparcv9/multiarch/rtld-memmove.c: Likewise.
23921 * sysdeps/sparc/sparc64/multiarch/ifunc-impl-list.c
23922 (__libc_ifunc_impl_list): Add __memcpy_niagara7, __mempcpy_niagara7,
23923 and __memmove_niagara7.
23924 * sysdeps/sparc/sparc64/multiarch/ifunc-memcpy.h (IFUNC_SELECTOR):
23925 Add niagara7 option.
23926 * sysdeps/sparc/sparc64/multiarch/memmove.c: New file.
23927 * sysdeps/sparc/sparc64/multiarch/ifunc-memmove.h: Likewise.
23928 * sysdeps/sparc/sparc64/multiarch/memcpy-memmove-niagara7.S: Likewise.
23929 * sysdeps/sparc/sparc64/multiarch/memmove-ultra1.S: Likewise.
23930 * sysdeps/sparc/sparc64/multiarch/rtld-memmove.c: Likewise.
23931
23932 2017-12-14 Jose E. Marchesi <jose.marchesi@oracle.com>
23933
23934 * sysdeps/sparc/sparc32/sparcv9/memmove.S: New file.
23935 * sysdeps/sparc/sparc32/sparcv9/rtld-memmove.c: Likewise.
23936 * sysdeps/sparc/sparc64/memmove.S: Likewise.
23937 * sysdeps/sparc/sparc64/rtld-memmove.c: Likewise.
23938
23939 * sysdeps/sparc/bits/hwcap.h (HWCAP_SPARC_ADP): Defined.
23940 * sysdeps/sparc/dl-procinfo.c: Added "adp" to the
23941 _dl_sparc_cap_flags array.
23942 * sysdeps/sparc/dl-procinfo.h (_DL_HWCAP_COUNT): Increment.
23943
23944 2017-12-13 Siddhesh Poyarekar <siddhesh@sourceware.org>
23945
23946 * sysdeps/aarch64/strcmp.S (misaligned8): Compare dword at a
23947 time whenever possible.
23948
23949 2017-12-12 Carlos O'Donell <carlos@redhat.com>
23950
23951 * elf/Makefile [$(nss-crypt)$(static-nss-crypt) == yesno]
23952 (CFLAGS-tst-linkall-static.c): Undefine USE_CRYPT first.
23953
23954 2017-12-12 Joseph Myers <joseph@codesourcery.com>
23955
23956 * soft-fp/fmadf4.c: Move to ....
23957 * sysdeps/ieee754/soft-fp/s_fma.c: ... here.
23958 * soft-fp/fmasf4.c: Move to ....
23959 * sysdeps/ieee754/soft-fp/s_fmaf.c: ... here.
23960 * soft-fp/fmatf4.c: Move to ....
23961 * sysdeps/ieee754/soft-fp/s_fmal.c: ... here.
23962 * sysdeps/ieee754/soft-fp/Makefile: New file.
23963 * sysdeps/arm/preconfigure.ac: Define with_fp_cond.
23964 * sysdeps/arm/preconfigure: Regenerated.
23965 * sysdeps/arm/nofpu/Implies: New file.
23966 * sysdeps/arm/s_fma.c: Remove file.
23967 * sysdeps/arm/s_fmaf.c: Likewise.
23968 * sysdeps/m68k/coldfire/nofpu/Implies: New file.
23969 * sysdeps/m68k/coldfire/nofpu/s_fma.c: Remove file.
23970 * sysdeps/m68k/coldfire/nofpu/s_fmaf.c: Likewise.
23971 * sysdeps/microblaze/Implies: Add ieee754/soft-fp.
23972 * sysdeps/microblaze/s_fma.c: Remove file.
23973 * sysdeps/microblaze/s_fmaf.c: Likewise.
23974 * sysdeps/mips/mips32/nofpu/Implies: New file.
23975 * sysdeps/mips/mips64/n32/fpu/s_fma.c: Likewise.
23976 * sysdeps/mips/mips64/n32/nofpu/Implies: Likewise.
23977 * sysdeps/mips/mips64/n64/fpu/s_fma.c: Likewise.
23978 * sysdeps/mips/mips64/n64/nofpu/Implies: Likewise.
23979 * sysdeps/mips/ieee754/s_fma.c: Remove file.
23980 * sysdeps/mips/ieee754/s_fmaf.c: Likewise.
23981 * sysdeps/mips/ieee754/s_fmal.c: Update include for move of fmal
23982 implementation.
23983 * sysdeps/nios2/Implies: Add ieee754/soft-fp.
23984 * sysdeps/nios2/s_fma.c: Remove file.
23985 * sysdeps/nios2/s_fmaf.c: Likewise.
23986 * sysdeps/sh/nofpu/Implies: New file.
23987 * sysdeps/sh/s_fma.c: Remove file.
23988 * sysdeps/sh/s_fmaf.c: Likewise.
23989 * sysdeps/tile/Implies: Add ieee754/soft-fp.
23990 * sysdeps/tile/s_fma.c: Remove file.
23991 * sysdeps/tile/s_fmaf.c: Likewise.
23992
23993 2017-12-12 H.J. Lu <hongjiu.lu@intel.com>
23994
23995 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
23996 Add s_cosf-sse2 and s_cosf-fma.
23997 (CFLAGS-s_cosf-fma.c): New.
23998 * sysdeps/x86_64/fpu/multiarch/s_cosf-fma.c: New file.
23999 * sysdeps/x86_64/fpu/multiarch/s_cosf-sse2.c: Likewise.
24000 * sysdeps/x86_64/fpu/multiarch/s_cosf.c: Likewise.
24001
24002 2017-12-12 Steve Ellcey <sellcey@cavium.com>
24003
24004 * nscd/nscd.h (init_traced_file): Change strncpy to memcpy.
24005
24006 2017-12-12 Adhemerval Zanella <adhemerval.zanella@linaro.org>
24007
24008 * libio/Makefile (tests): Add tst-bz22415.
24009 (tst-bz22415-ENV): New rule.
24010 (generated): Add tst-bz22415.mtrace and tst-bz22415.check.
24011 (tests-special): Add tst-bz22415-mem.out.
24012 ($(objpfx)tst-bz22415-mem.out): New rule.
24013 * libio/fileops.c (_IO_new_file_seekoff): Call _IO_free_backup_area
24014 in case of a successful seek operation.
24015 * libio/wfileops.c (_IO_wfile_seekoff): Likewise.
24016 (_IO_wfile_overflow): Call _IO_free_wbackup_area in case a write
24017 buffer is required.
24018 * libio/tst-bz22415.c: New test.
24019
24020 * sysdeps/ia64/fpu/libm-test-ulps: Update.
24021
24022 2017-12-12 James Clarke <jrtc27@jrtc27.com>
24023
24024 * sysdeps/unix/sysv/linux/ia64/ipc_priv.h: New file defining
24025 __IPC_64 to 0 to avoid IPC_64 being set.
24026
24027 2017-12-12 Szabolcs Nagy <szabolcs.nagy@arm.com>
24028
24029 [BZ #22593]
24030 * math/bits/mathcalls.h (nextafter): Remove const.
24031 (nexttoward): Likewise.
24032
24033 2017-12-12 Joseph Myers <joseph@codesourcery.com>
24034
24035 * configure.ac (--with-fp): Remove configure option.
24036 (with_fp_cond): New variable.
24037 (libc_cv_with_fp): New configure test. Use this variable instead
24038 of with_fp.
24039 * configure: Regenerated.
24040 * config.make.in (with-fp): Use @libc_cv_with_fp@.
24041 * manual/install.texi (Configuring and compiling): Remove
24042 --without-fp.
24043 * INSTALL: Regenerated.
24044 * sysdeps/m68k/preconfigure (with_fp_cond): Define for ColdFire.
24045 * sysdeps/mips/preconfigure (with_fp_cond): Define.
24046 * sysdeps/powerpc/preconfigure (with_fp_cond): Define for 32-bit.
24047 * sysdeps/sh/preconfigure (with_fp_cond): Define.
24048 * scripts/build-many-glibcs.py (Context.add_all_configs): Do not
24049 use --without-fp to configure glibc.
24050
24051 2017-12-12 Rical Jasan <ricaljasan@pacific.net>
24052
24053 * manual/locale.texi (nl_langinfo): Fix a typo.
24054
24055 2017-12-12 Aurelien Jarno <aurelien@aurel32.net>
24056
24057 [BZ #22588]
24058 * manual/conf.texi (SC_SSIZE_MAX): Rename into _SC_SSIZE_MAX.
24059
24060 2017-12-11 H.J. Lu <hongjiu.lu@intel.com>
24061
24062 * argp/Makefile (CFLAGS-argp-help.c): Replace = with +=.
24063 (CFLAGS-argp-parse.c): Likewise.
24064 (CFLAGS-argp-fmtstream.c): Likewise.
24065 * crypt/Makefile (CPPFLAGS-sha256-crypt.c): Likewise.
24066 (CPPFLAGS-sha512-crypt.c): Likewise.
24067 (CPPFLAGS-md5-crypt.c): Likewise.
24068 * debug/Makefile (CFLAGS-stack_chk_fail.c): Likewise.
24069 (CFLAGS-stack_chk_fail_local.c): Likewise.
24070 (CFLAGS-backtrace.c): Likewise.
24071 (CFLAGS-sprintf_chk.c): Likewise.
24072 (CFLAGS-snprintf_chk.c): Likewise.
24073 (CFLAGS-vsprintf_chk.c): Likewise.
24074 (CFLAGS-vsnprintf_chk.c): Likewise.
24075 (CFLAGS-asprintf_chk.c): Likewise.
24076 (CFLAGS-vasprintf_chk.c): Likewise.
24077 (CFLAGS-obprintf_chk.c): Likewise.
24078 (CFLAGS-dprintf_chk.c): Likewise.
24079 (CFLAGS-vdprintf_chk.c): Likewise.
24080 (CFLAGS-printf_chk.c): Likewise.
24081 (CFLAGS-fprintf_chk.c): Likewise.
24082 (CFLAGS-vprintf_chk.c): Likewise.
24083 (CFLAGS-vfprintf_chk.c): Likewise.
24084 (CFLAGS-gets_chk.c): Likewise.
24085 (CFLAGS-fgets_chk.c): Likewise.
24086 (CFLAGS-fgets_u_chk.c): Likewise.
24087 (CFLAGS-fread_chk.c): Likewise.
24088 (CFLAGS-fread_u_chk.c): Likewise.
24089 (CFLAGS-swprintf_chk.c): Likewise.
24090 (CFLAGS-vswprintf_chk.c): Likewise.
24091 (CFLAGS-wprintf_chk.c): Likewise.
24092 (CFLAGS-fwprintf_chk.c): Likewise.
24093 (CFLAGS-vwprintf_chk.c): Likewise.
24094 (CFLAGS-vfwprintf_chk.c): Likewise.
24095 (CFLAGS-fgetws_chk.c): Likewise.
24096 (CFLAGS-fgetws_u_chk.c): Likewise.
24097 (CFLAGS-read_chk.c): Likewise.
24098 (CFLAGS-pread_chk.c): Likewise.
24099 (CFLAGS-pread64_chk.c): Likewise.
24100 (CFLAGS-recv_chk.c): Likewise.
24101 (CFLAGS-recvfrom_chk.c): Likewise.
24102 (CFLAGS-tst-longjmp_chk.c): Likewise.
24103 (CPPFLAGS-tst-longjmp_chk.c): Likewise.
24104 (CFLAGS-tst-longjmp_chk2.c): Likewise.
24105 (CPPFLAGS-tst-longjmp_chk2.c): Likewise.
24106 (CFLAGS-tst-longjmp_chk3.c): Likewise.
24107 (CPPFLAGS-tst-longjmp_chk3.c): Likewise.
24108 (CFLAGS-tst-chk1.c): Likewise.
24109 (CFLAGS-tst-chk2.c): Likewise.
24110 (CFLAGS-tst-chk3.c): Likewise.
24111 (CFLAGS-tst-chk4.cc): Likewise.
24112 (CFLAGS-tst-chk5.cc): Likewise.
24113 (CFLAGS-tst-chk6.cc): Likewise.
24114 (CFLAGS-tst-lfschk1.c): Likewise.
24115 (CFLAGS-tst-lfschk2.c): Likewise.
24116 (CFLAGS-tst-lfschk3.c): Likewise.
24117 (CFLAGS-tst-lfschk4.cc): Likewise.
24118 (CFLAGS-tst-lfschk5.cc): Likewise.
24119 (CFLAGS-tst-lfschk6.cc): Likewise.
24120 (CFLAGS-tst-ssp-1.c): Likewise.
24121 * dirent/Makefile (CFLAGS-scandir.c): Likewise.
24122 (CFLAGS-scandir64.c): Likewise.
24123 (CFLAGS-scandir-tail.c): Likewise.
24124 (CFLAGS-scandir64-tail.c): Likewise.
24125 * elf/Makefile (CPPFLAGS-dl-tunables.c): Likewise.
24126 (CFLAGS-dl-tunables.c): Likewise.
24127 (CFLAGS-dl-runtime.c): Likewise.
24128 (CFLAGS-dl-lookup.c): Likewise.
24129 (CFLAGS-dl-iterate-phdr.c): Likewise.
24130 (CFLAGS-vismain.c): Likewise.
24131 (CFLAGS-tst-linkall-static.c): Likewise.
24132 (CFLAGS-tst-linkall-static.c): Likewise.
24133 (CPPFLAGS-dl-load.c): Likewise.
24134 (CFLAGS-ldconfig.c): Likewise.
24135 (CFLAGS-dl-cache.c): Likewise.
24136 (CFLAGS-cache.c): Likewise.
24137 (CFLAGS-rtld.c): Likewise.
24138 (CFLAGS-multiload.c): Likewise.
24139 (CFLAGS-filtmod1.c): Likewise.
24140 (CFLAGS-tst-align.c): Likewise.
24141 (CFLAGS-tst-align2.c): Likewise.
24142 (CFLAGS-tst-alignmod.c): Likewise.
24143 (CFLAGS-tst-alignmod2.c): Likewise.
24144 (CPPFLAGS-tst-execstack.c): Likewise.
24145 (CFLAGS-tst-ptrguard1-static.c): Likewise.
24146 (CFLAGS-tst-latepthreadmod.c): Likewise.
24147 * grp/Makefile (CFLAGS-getgrgid_r.c): Likewise.
24148 (CFLAGS-getgrnam_r.c): Likewise.
24149 (CFLAGS-getgrent_r.c): Likewise.
24150 (CFLAGS-getgrent.c): Likewise.
24151 (CFLAGS-fgetgrent.c): Likewise.
24152 (CFLAGS-fgetgrent_r.c): Likewise.
24153 (CFLAGS-putgrent.c): Likewise.
24154 (CFLAGS-initgroups.c): Likewise.
24155 (CFLAGS-getgrgid.c): Likewise.
24156 * gshadow/Makefile (CFLAGS-getsgent_r.c): Likewise.
24157 (CFLAGS-getsgent.c): Likewise.
24158 (CFLAGS-fgetsgent.c): Likewise.
24159 (CFLAGS-fgetsgent_r.c): Likewise.
24160 (CFLAGS-putsgent.c): Likewise.
24161 (CFLAGS-getsgnam.c): Likewise.
24162 (CFLAGS-getsgnam_r.c): Likewise.
24163 * iconv/Makefile (CFLAGS-iconv_prog.c): Likewise.
24164 (CFLAGS-iconv_charmap.c): Likewise.
24165 (CFLAGS-dummy-repertoire.c): Likewise.
24166 (CFLAGS-charmap.c): Likewise.
24167 (CFLAGS-linereader.c): Likewise.
24168 (CFLAGS-simple-hash.c): Likewise.
24169 (CFLAGS-gconv_conf.c): Likewise.
24170 (CFLAGS-iconvconfig.c): Likewise.
24171 * inet/Makefile (CFLAGS-gethstbyad_r.c): Likewise.
24172 (CFLAGS-gethstbyad.c): Likewise.
24173 (CFLAGS-gethstbynm_r.c): Likewise.
24174 (CFLAGS-gethstbynm.c): Likewise.
24175 (CFLAGS-gethstbynm2_r.c): Likewise.
24176 (CFLAGS-gethstbynm2.c): Likewise.
24177 (CFLAGS-gethstent_r.c): Likewise.
24178 (CFLAGS-gethstent.c): Likewise.
24179 (CFLAGS-rcmd.c): Likewise.
24180 (CFLAGS-getnetbynm_r.c): Likewise.
24181 (CFLAGS-getnetbynm.c): Likewise.
24182 (CFLAGS-getnetbyad_r.c): Likewise.
24183 (CFLAGS-getnetbyad.c): Likewise.
24184 (CFLAGS-getnetent_r.c): Likewise.
24185 (CFLAGS-getnetent.c): Likewise.
24186 (CFLAGS-getaliasent_r.c): Likewise.
24187 (CFLAGS-getaliasent.c): Likewise.
24188 (CFLAGS-getrpcent_r.c): Likewise.
24189 (CFLAGS-getrpcent.c): Likewise.
24190 (CFLAGS-getservent_r.c): Likewise.
24191 (CFLAGS-getservent.c): Likewise.
24192 (CFLAGS-getprtent_r.c): Likewise.
24193 (CFLAGS-getprtent.c): Likewise.
24194 (CFLAGS-either_ntoh.c): Likewise.
24195 (CFLAGS-either_hton.c): Likewise.
24196 (CFLAGS-getnetgrent.c): Likewise.
24197 (CFLAGS-getnetgrent_r.c): Likewise.
24198 (CFLAGS-tst-checks-posix.c): Likewise.
24199 (CFLAGS-tst-sockaddr.c): Likewise.
24200 * intl/Makefile (CFLAGS-tst-gettext.c): Likewise.
24201 (CFLAGS-tst-translit.c): Likewise.
24202 (CFLAGS-tst-gettext2.c): Likewise.
24203 (CFLAGS-tst-codeset.c): Likewise.
24204 (CFLAGS-tst-gettext3.c): Likewise.
24205 (CFLAGS-tst-gettext4.c): Likewise.
24206 (CFLAGS-tst-gettext5.c): Likewise.
24207 (CFLAGS-tst-gettext6.c): Likewise.
24208 * io/Makefile (CFLAGS-open.c): Likewise.
24209 (CFLAGS-open64.c): Likewise.
24210 (CFLAGS-creat.c): Likewise.
24211 (CFLAGS-creat64.c): Likewise.
24212 (CFLAGS-fcntl.c): Likewise.
24213 (CFLAGS-poll.c): Likewise.
24214 (CFLAGS-ppoll.c): Likewise.
24215 (CFLAGS-lockf.c): Likewise.
24216 (CFLAGS-statfs.c): Likewise.
24217 (CFLAGS-fstatfs.c): Likewise.
24218 (CFLAGS-statvfs.c): Likewise.
24219 (CFLAGS-fstatvfs.c): Likewise.
24220 (CFLAGS-fts.c): Likewise.
24221 (CFLAGS-fts64.c): Likewise.
24222 (CFLAGS-ftw.c): Likewise.
24223 (CFLAGS-ftw64.c): Likewise.
24224 (CFLAGS-lockf.c): Likewise.
24225 (CFLAGS-posix_fallocate.c): Likewise.
24226 (CFLAGS-posix_fallocate64.c): Likewise.
24227 (CFLAGS-fallocate.c): Likewise.
24228 (CFLAGS-fallocate64.c): Likewise.
24229 (CFLAGS-read.c): Likewise.
24230 (CFLAGS-write.c): Likewise.
24231 (CFLAGS-test-stat.c): Likewise.
24232 (CFLAGS-test-lfs.c): Likewise.
24233 * libio/Makefile (CFLAGS-fileops.c): Likewise.
24234 (CFLAGS-fputc.c): Likewise.
24235 (CFLAGS-fputwc.c): Likewise.
24236 (CFLAGS-freopen64.c): Likewise.
24237 (CFLAGS-freopen.c): Likewise.
24238 (CFLAGS-fseek.c): Likewise.
24239 (CFLAGS-fseeko64.c): Likewise.
24240 (CFLAGS-fseeko.c): Likewise.
24241 (CFLAGS-ftello64.c): Likewise.
24242 (CFLAGS-ftello.c): Likewise.
24243 (CFLAGS-fwide.c): Likewise.
24244 (CFLAGS-genops.c): Likewise.
24245 (CFLAGS-getc.c): Likewise.
24246 (CFLAGS-getchar.c): Likewise.
24247 (CFLAGS-getwc.c): Likewise.
24248 (CFLAGS-getwchar.c): Likewise.
24249 (CFLAGS-iofclose.c): Likewise.
24250 (CFLAGS-iofflush.c): Likewise.
24251 (CFLAGS-iofgetpos64.c): Likewise.
24252 (CFLAGS-iofgetpos.c): Likewise.
24253 (CFLAGS-iofgets.c): Likewise.
24254 (CFLAGS-iofgetws.c): Likewise.
24255 (CFLAGS-iofputs.c): Likewise.
24256 (CFLAGS-iofputws.c): Likewise.
24257 (CFLAGS-iofread.c): Likewise.
24258 (CFLAGS-iofsetpos64.c): Likewise.
24259 (CFLAGS-iofsetpos.c): Likewise.
24260 (CFLAGS-ioftell.c): Likewise.
24261 (CFLAGS-iofwrite.c): Likewise.
24262 (CFLAGS-iogetdelim.c): Likewise.
24263 (CFLAGS-iogetline.c): Likewise.
24264 (CFLAGS-iogets.c): Likewise.
24265 (CFLAGS-iogetwline.c): Likewise.
24266 (CFLAGS-ioputs.c): Likewise.
24267 (CFLAGS-ioseekoff.c): Likewise.
24268 (CFLAGS-ioseekpos.c): Likewise.
24269 (CFLAGS-iosetbuffer.c): Likewise.
24270 (CFLAGS-iosetvbuf.c): Likewise.
24271 (CFLAGS-ioungetc.c): Likewise.
24272 (CFLAGS-ioungetwc.c): Likewise.
24273 (CFLAGS-oldfileops.c): Likewise.
24274 (CFLAGS-oldiofclose.c): Likewise.
24275 (CFLAGS-oldiofgetpos64.c): Likewise.
24276 (CFLAGS-oldiofgetpos.c): Likewise.
24277 (CFLAGS-oldiofsetpos64.c): Likewise.
24278 (CFLAGS-oldiofsetpos.c): Likewise.
24279 (CFLAGS-peekc.c): Likewise.
24280 (CFLAGS-putc.c): Likewise.
24281 (CFLAGS-putchar.c): Likewise.
24282 (CFLAGS-putwc.c): Likewise.
24283 (CFLAGS-putwchar.c): Likewise.
24284 (CFLAGS-rewind.c): Likewise.
24285 (CFLAGS-wfileops.c): Likewise.
24286 (CFLAGS-wgenops.c): Likewise.
24287 (CFLAGS-oldiofopen.c): Likewise.
24288 (CFLAGS-iofopen.c): Likewise.
24289 (CFLAGS-iofopen64.c): Likewise.
24290 (CFLAGS-oldtmpfile.c): Likewise.
24291 (CFLAGS-tst_putwc.c): Likewise.
24292 * locale/Makefile (CFLAGS-md5.c): Likewise.
24293 (CFLAGS-charmap.c): Likewise.
24294 (CFLAGS-locfile.c): Likewise.
24295 (CFLAGS-charmap-dir.c): Likewise.
24296 * login/Makefile (CFLAGS-grantpt.c): Likewise.
24297 (CFLAGS-getpt.c): Likewise.
24298 (CFLAGS-pt_chown.c): Likewise.
24299 * malloc/Makefile (CFLAGS-mcheck-init.c): Likewise.
24300 (CFLAGS-obstack.c): Likewise.
24301 * math/Makefile (CFLAGS-test-tgmath3.c): Likewise.
24302 (CFLAGS-test-double-vlen4-wrappers.c): Likewise.
24303 (CFLAGS-test-double-vlen8-wrappers.c): Likewise.
24304 (CFLAGS-test-float-vlen8-wrappers.c): Likewise.
24305 (CFLAGS-test-float-vlen16-wrappers.c): Likewise.
24306 (CFLAGS-test-tgmath.c): Likewise.
24307 (CFLAGS-test-tgmath2.c): Likewise.
24308 (CFLAGS-test-tgmath-ret.c): Likewise.
24309 (CFLAGS-test-powl.c): Likewise.
24310 (CFLAGS-test-snan.c): Likewise.
24311 (CFLAGS-test-signgam-finite.c): Likewise.
24312 (CFLAGS-test-signgam-finite-c99.c): Likewise.
24313 (CFLAGS-test-signgam-finite-c11.c): Likewise.
24314 (CFLAGS-test-signgam-uchar.c): Likewise.
24315 (CFLAGS-test-signgam-uchar-init.c): Likewise.
24316 (CFLAGS-test-signgam-uchar-static.c): Likewise.
24317 (CFLAGS-test-signgam-uchar-init-static.c): Likewise.
24318 (CFLAGS-test-signgam-uint.c): Likewise.
24319 (CFLAGS-test-signgam-uint-init.c): Likewise.
24320 (CFLAGS-test-signgam-uint-static.c): Likewise.
24321 (CFLAGS-test-signgam-uint-init-static.c): Likewise.
24322 (CFLAGS-test-signgam-ullong.c): Likewise.
24323 (CFLAGS-test-signgam-ullong-init.c): Likewise.
24324 (CFLAGS-test-signgam-ullong-static.c): Likewise.
24325 (CFLAGS-test-signgam-ullong-init-static.c): Likewise.
24326 (CFLAGS-test-math-cxx11.cc): Likewise.
24327 (CFLAGS-test-math-isinff.cc): Likewise.
24328 (CFLAGS-test-math-iszero.cc): Likewise.
24329 (CFLAGS-test-math-issignaling.cc): Likewise.
24330 (CFLAGS-test-math-iscanonical.cc): Likewise.
24331 (CFLAGS-test-iszero-excess-precision.c): Likewise.
24332 (CFLAGS-test-iseqsig-excess-precision.c): Likewise.
24333 (CFLAGS-test-flt-eval-method.c): Likewise.
24334 (CFLAGS-test-fe-snans-always-signal.c): Likewise.
24335 (CFLAGS-test-finite-macros.c): Likewise.
24336 * misc/Makefile (CFLAGS-select.c): Likewise.
24337 (CFLAGS-tsearch.c): Likewise.
24338 (CFLAGS-lsearch.c): Likewise.
24339 (CFLAGS-pselect.c): Likewise.
24340 (CFLAGS-readv.c): Likewise.
24341 (CFLAGS-writev.c): Likewise.
24342 (CFLAGS-preadv.c): Likewise.
24343 (CFLAGS-preadv64.c): Likewise.
24344 (CFLAGS-pwritev.c): Likewise.
24345 (CFLAGS-pwritev64.c): Likewise.
24346 (CFLAGS-preadv2.c): Likewise.
24347 (CFLAGS-preadv64v2.c): Likewise.
24348 (CFLAGS-pwritev2.c): Likewise.
24349 (CFLAGS-pwritev64v2.c): Likewise.
24350 (CFLAGS-usleep.c): Likewise.
24351 (CFLAGS-syslog.c): Likewise.
24352 (CFLAGS-error.c): Likewise.
24353 (CFLAGS-getpass.c): Likewise.
24354 (CFLAGS-mkstemp.c): Likewise.
24355 (CFLAGS-mkstemp64.c): Likewise.
24356 (CFLAGS-getsysstats.c): Likewise.
24357 (CFLAGS-getusershell.c): Likewise.
24358 (CFLAGS-err.c): Likewise.
24359 (CFLAGS-tst-tsearch.c): Likewise.
24360 (CFLAGS-msync.c): Likewise.
24361 (CFLAGS-fdatasync.c): Likewise.
24362 (CFLAGS-fsync.c): Likewise.
24363 * nptl/Makefile (CFLAGS-nptl-init.c): Likewise.
24364 (CFLAGS-unwind.c): Likewise.
24365 (CFLAGS-unwind-forcedunwind.c): Likewise.
24366 (CFLAGS-pthread_cancel.c): Likewise.
24367 (CFLAGS-pthread_setcancelstate.c): Likewise.
24368 (CFLAGS-pthread_setcanceltype.c): Likewise.
24369 (CFLAGS-cancellation.c): Likewise.
24370 (CFLAGS-libc-cancellation.c): Likewise.
24371 (CFLAGS-pthread_exit.c): Likewise.
24372 (CFLAGS-forward.c): Likewise.
24373 (CFLAGS-pthread_testcancel.c): Likewise.
24374 (CFLAGS-pthread_join.c): Likewise.
24375 (CFLAGS-pthread_timedjoin.c): Likewise.
24376 (CFLAGS-pthread_once.c): Likewise.
24377 (CFLAGS-pthread_cond_wait.c): Likewise.
24378 (CFLAGS-sem_wait.c): Likewise.
24379 (CFLAGS-sem_timedwait.c): Likewise.
24380 (CFLAGS-fcntl.c): Likewise.
24381 (CFLAGS-lockf.c): Likewise.
24382 (CFLAGS-pread.c): Likewise.
24383 (CFLAGS-pread64.c): Likewise.
24384 (CFLAGS-pwrite.c): Likewise.
24385 (CFLAGS-pwrite64.c): Likewise.
24386 (CFLAGS-wait.c): Likewise.
24387 (CFLAGS-waitpid.c): Likewise.
24388 (CFLAGS-sigwait.c): Likewise.
24389 (CFLAGS-msgrcv.c): Likewise.
24390 (CFLAGS-msgsnd.c): Likewise.
24391 (CFLAGS-tcdrain.c): Likewise.
24392 (CFLAGS-open.c): Likewise.
24393 (CFLAGS-open64.c): Likewise.
24394 (CFLAGS-pause.c): Likewise.
24395 (CFLAGS-recv.c): Likewise.
24396 (CFLAGS-send.c): Likewise.
24397 (CFLAGS-accept.c): Likewise.
24398 (CFLAGS-sendto.c): Likewise.
24399 (CFLAGS-connect.c): Likewise.
24400 (CFLAGS-recvfrom.c): Likewise.
24401 (CFLAGS-recvmsg.c): Likewise.
24402 (CFLAGS-sendmsg.c): Likewise.
24403 (CFLAGS-close.c): Likewise.
24404 (CFLAGS-read.c): Likewise.
24405 (CFLAGS-write.c): Likewise.
24406 (CFLAGS-nanosleep.c): Likewise.
24407 (CFLAGS-sigsuspend.c): Likewise.
24408 (CFLAGS-msync.c): Likewise.
24409 (CFLAGS-fdatasync.c): Likewise.
24410 (CFLAGS-fsync.c): Likewise.
24411 (CFLAGS-pt-system.c): Likewise.
24412 (CFLAGS-tst-cleanup2.c): Likewise.
24413 (CFLAGS-tst-cleanupx2.c): Likewise.
24414 (CFLAGS-flockfile.c): Likewise.
24415 (CFLAGS-ftrylockfile.c): Likewise.
24416 (CFLAGS-funlockfile.c): Likewise.
24417 (CFLAGS-tst-initializers1.c): Likewise.
24418 (CFLAGS-tst-initializers1-c89.c): Likewise.
24419 (CFLAGS-tst-initializers1-c99.c): Likewise.
24420 (CFLAGS-tst-initializers1-c11.c): Likewise.
24421 (CFLAGS-tst-initializers1-gnu89.c): Likewise.
24422 (CFLAGS-tst-initializers1-gnu99.c): Likewise.
24423 (CFLAGS-tst-initializers1-gnu11.c): Likewise.
24424 * nscd/Makefile (CFLAGS-nscd_getpw_r.c): Likewise.
24425 (CFLAGS-nscd_getgr_r.c): Likewise.
24426 (CFLAGS-nscd_gethst_r.c): Likewise.
24427 (CFLAGS-nscd_getai.c): Likewise.
24428 (CFLAGS-nscd_initgroups.c): Likewise.
24429 * posix/Makefile (CFLAGS-getaddrinfo.c): Likewise.
24430 (CFLAGS-pause.c): Likewise.
24431 (CFLAGS-pread.c): Likewise.
24432 (CFLAGS-pread64.c): Likewise.
24433 (CFLAGS-pwrite.c): Likewise.
24434 (CFLAGS-pwrite64.c): Likewise.
24435 (CFLAGS-sleep.c): Likewise.
24436 (CFLAGS-wait.c): Likewise.
24437 (CFLAGS-waitid.c): Likewise.
24438 (CFLAGS-waitpid.c): Likewise.
24439 (CFLAGS-getopt.c): Likewise.
24440 (CFLAGS-wordexp.c): Likewise.
24441 (CFLAGS-sysconf.c): Likewise.
24442 (CFLAGS-pathconf.c): Likewise.
24443 (CFLAGS-fpathconf.c): Likewise.
24444 (CFLAGS-spawn.c): Likewise.
24445 (CFLAGS-spawnp.c): Likewise.
24446 (CFLAGS-spawni.c): Likewise.
24447 (CFLAGS-glob.c): Likewise.
24448 (CFLAGS-glob64.c): Likewise.
24449 (CFLAGS-getconf.c): Likewise.
24450 (CFLAGS-nanosleep.c): Likewise.
24451 * pwd/Makefile (CFLAGS-getpwent_r.c): Likewise.
24452 (CFLAGS-getpwent.c): Likewise.
24453 (CFLAGS-getpw.c): Likewise.
24454 (CFLAGS-fgetpwent_r.c): Likewise.
24455 * resolv/Makefile (CFLAGS-res_hconf.c): Likewise.
24456 * rt/Makefile (CFLAGS-aio_suspend.c): Likewise.
24457 (CFLAGS-mq_timedreceive.c): Likewise.
24458 (CFLAGS-mq_timedsend.c): Likewise.
24459 (CFLAGS-clock_nanosleep.c): Likewise.
24460 (CFLAGS-librt-cancellation.c): Likewise.
24461 * shadow/Makefile (CFLAGS-getspent_r.c): Likewise.
24462 (CFLAGS-getspent.c): Likewise.
24463 (CFLAGS-fgetspent.c): Likewise.
24464 (CFLAGS-fgetspent_r.c): Likewise.
24465 (CFLAGS-putspent.c): Likewise.
24466 (CFLAGS-getspnam.c): Likewise.
24467 (CFLAGS-getspnam_r.c): Likewise.
24468 * signal/Makefile (CFLAGS-sigpause.c): Likewise.
24469 (CFLAGS-sigsuspend.c): Likewise.
24470 (CFLAGS-sigtimedwait.c): Likewise.
24471 (CFLAGS-sigwait.c): Likewise.
24472 (CFLAGS-sigwaitinfo.c): Likewise.
24473 (CFLAGS-sigreturn.c): Likewise.
24474 * stdio-common/Makefile (CFLAGS-vfprintf.c): Likewise.
24475 (CFLAGS-vfwprintf.c): Likewise.
24476 (CFLAGS-tmpfile.c): Likewise.
24477 (CFLAGS-tmpfile64.c): Likewise.
24478 (CFLAGS-tempname.c): Likewise.
24479 (CFLAGS-psignal.c): Likewise.
24480 (CFLAGS-vprintf.c): Likewise.
24481 (CFLAGS-cuserid.c): Likewise.
24482 (CFLAGS-errlist.c): Likewise.
24483 (CFLAGS-siglist.c): Likewise.
24484 (CFLAGS-scanf15.c): Likewise.
24485 (CFLAGS-scanf17.c): Likewise.
24486 * stdlib/Makefile (CFLAGS-bsearch.c): Likewise.
24487 (CFLAGS-msort.c): Likewise.
24488 (CFLAGS-qsort.c): Likewise.
24489 (CFLAGS-system.c): Likewise.
24490 (CFLAGS-fmtmsg.c): Likewise.
24491 (CFLAGS-strfmon.c): Likewise.
24492 (CFLAGS-strfmon_l.c): Likewise.
24493 (CFLAGS-strfromd.c): Likewise.
24494 (CFLAGS-strfromf.c): Likewise.
24495 (CFLAGS-strfroml.c): Likewise.
24496 (CFLAGS-tst-bsearch.c): Likewise.
24497 (CFLAGS-tst-qsort.c): Likewise.
24498 (CFLAGS-tst-makecontext2.c): Likewise.
24499 * sunrpc/Makefile (CFLAGS-xbootparam_prot.c): Likewise.
24500 (CFLAGS-xnlm_prot.c): Likewise.
24501 (CFLAGS-xrstat.c): Likewise.
24502 (CFLAGS-xyppasswd.c): Likewise.
24503 (CFLAGS-xklm_prot.c): Likewise.
24504 (CFLAGS-xrex.c): Likewise.
24505 (CFLAGS-xsm_inter.c): Likewise.
24506 (CFLAGS-xmount.c): Likewise.
24507 (CFLAGS-xrusers.c): Likewise.
24508 (CFLAGS-xspray.c): Likewise.
24509 (CFLAGS-xnfs_prot.c): Likewise.
24510 (CFLAGS-xrquota.c): Likewise.
24511 (CFLAGS-xkey_prot.c): Likewise.
24512 (CFLAGS-auth_unix.c): Likewise.
24513 (CFLAGS-key_call.c): Likewise.
24514 (CFLAGS-pmap_rmt.c): Likewise.
24515 (CFLAGS-clnt_perr.c): Likewise.
24516 (CFLAGS-openchild.c): Likewise.
24517 * sysvipc/Makefile (CFLAGS-msgrcv.c): Likewise.
24518 (CFLAGS-msgsnd.c): Likewise.
24519 * termios/Makefile (CFLAGS-tcdrain.c): Likewise.
24520 * time/Makefile (CFLAGS-tzfile.c): Likewise.
24521 (CFLAGS-tzset.c): Likewise.
24522 (CFLAGS-getdate.c): Likewise.
24523 (CFLAGS-test_time.c): Likewise.
24524 (CPPFLAGS-tst-tzname.c): Likewise.
24525 * timezone/Makefile (CFLAGS-zdump.c): Likewise.
24526 (CFLAGS-zic.c): Likewise.
24527 * wcsmbs/Makefile (CFLAGS-wcwidth.c): Likewise.
24528 (CFLAGS-wcswidth.c): Likewise.
24529 (CFLAGS-wcstol.c): Likewise.
24530 (CFLAGS-wcstoul.c): Likewise.
24531 (CFLAGS-wcstoll.c): Likewise.
24532 (CFLAGS-wcstoull.c): Likewise.
24533 (CFLAGS-wcstod.c): Likewise.
24534 (CFLAGS-wcstold.c): Likewise.
24535 (CFLAGS-wcstof128.c): Likewise.
24536 (CFLAGS-wcstof.c): Likewise.
24537 (CFLAGS-wcstol_l.c): Likewise.
24538 (CFLAGS-wcstoul_l.c): Likewise.
24539 (CFLAGS-wcstoll_l.c): Likewise.
24540 (CFLAGS-wcstoull_l.c): Likewise.
24541 (CFLAGS-wcstod_l.c): Likewise.
24542 (CFLAGS-wcstold_l.c): Likewise.
24543 (CFLAGS-wcstof128_l.c): Likewise.
24544 (CFLAGS-wcstof_l.c): Likewise.
24545 (CPPFLAGS-tst-wchar-h.c): Likewise.
24546 (CPPFLAGS-wcstold_l.c): Likewise.
24547
24548 2017-12-11 Paul A. Clarke <pc@us.ibm.com>
24549
24550 * sysdeps/ieee754/flt-32/s_cosf.c: New implementation.
24551
24552 2017-12-11 Adhemerval Zanella <azanella@linux.vnet.ibm.com>
24553 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
24554
24555 * manual/tunables.texi (Hardware Capability Tunables): Document
24556 glibc.tune.cached_memopt.
24557 * sysdeps/powerpc/cpu-features.c: New file.
24558 * sysdeps/powerpc/cpu-features.h: New file.
24559 * sysdeps/powerpc/dl-procinfo.c [!IS_IN(ldconfig)]: Add
24560 _dl_powerpc_cpu_features.
24561 * sysdeps/powerpc/dl-tunables.list: New file.
24562 * sysdeps/powerpc/ldsodefs.h: Include cpu-features.h.
24563 * sysdeps/powerpc/powerpc32/power4/multiarch/init-arch.h
24564 (INIT_ARCH): Initialize use_aligned_memopt.
24565 * sysdeps/powerpc/powerpc64/dl-machine.h [defined(SHARED &&
24566 IS_IN(rtld))]: Restrict dl_platform_init availability and
24567 initialize CPU features used by tunables.
24568 * sysdeps/powerpc/powerpc64/multiarch/Makefile (sysdep_routines):
24569 Add memcpy-power8-cached.
24570 * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c: Add
24571 __memcpy_power8_cached.
24572 * sysdeps/powerpc/powerpc64/multiarch/memcpy.c: Likewise.
24573 * sysdeps/powerpc/powerpc64/multiarch/memcpy-power8-cached.S:
24574 New file.
24575
24576 2017-12-11 H.J. Lu <hongjiu.lu@intel.com>
24577
24578 * string/Makefile (CFLAGS-inl-tester.c): Replace = with +=.
24579 (CFLAGS-noinl-tester.c): Likewise.
24580 (CFLAGS-tst-strlen.c): Likewise.
24581 (CFLAGS-stratcliff.c): Likewise.
24582 (CFLAGS-test-ffs.c): Likewise.
24583 (CFLAGS-tst-inlcall.c): Likewise.
24584 (CFLAGS-tst-xbzero-opt.c): Likewise.
24585 (CFLAGS-memcpy.c): Likewise.
24586 (CFLAGS-wordcopy.c): Likewise.
24587
24588 2017-12-11 Stefan Liebler <stli@linux.vnet.ibm.com>
24589
24590 * sysdeps/s390/s390-64/dl-trampoline.h (_dl_runtime_resolve):
24591 Store r15 on stack and add cfi rule.
24592 * sysdeps/s390/s390-32/dl-trampoline.h (_dl_runtime_resolve):
24593 Likewise.
24594
24595 2017-12-10 Aurelien Jarno <aurelien@aurel32.net>
24596
24597 [BZ #22577]
24598 * elf/rtld.c (init_tls): Add missing new line to the _dl_fatal_printf
24599 call.
24600
24601 2017-12-07 H.J. Lu <hongjiu.lu@intel.com>
24602
24603 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
24604 Add s_sinf-sse2 and s_sinf-fma.
24605 (CFLAGS-s_sinf-fma.c): New.
24606 * sysdeps/x86_64/fpu/multiarch/s_sinf-fma.c: New file.
24607 * sysdeps/x86_64/fpu/multiarch/s_sinf-sse2.c: Likewise.
24608 * sysdeps/x86_64/fpu/multiarch/s_sinf.c: Likewise.
24609
24610 2017-12-07 H.J. Lu <hongjiu.lu@intel.com>
24611
24612 * sysdeps/x86_64/fpu/s_sinf.S: Removed.
24613
24614 2017-12-07 Joseph Myers <joseph@codesourcery.com>
24615
24616 [BZ #22568]
24617 * math/s_ctan_template.c (M_DECL_FUNC (__ctan)): Set imaginary
24618 part of result to imaginary part of argument if it is zero and the
24619 real part of the argument is not finite.
24620 * math/s_ctanh_template.c (M_DECL_FUNC (__ctanh)): Set real part
24621 of result to real part of argument if it is zero and the imaginary
24622 part of the argument is not finite.
24623
24624 2017-12-07 Mike FABIAN <mfabian@redhat.com>
24625
24626 [BZ #22524]
24627 * localedata/Makefile: Add lt_LT.UTF-8 to test-input
24628 and to the list of locales to be built for testing.
24629 * localedata/lt_LT.UTF-8.in: New file for testing the collation.
24630 * localedata/locales/lt_LT (LC_COLLATE): Use “copy "iso14651_t1"”
24631 and build the collation rules upon that.
24632
24633 2017-12-07 Joseph Myers <joseph@codesourcery.com>
24634
24635 * bits/floatn-common.h (__HAVE_FLOAT32): Define to 1.
24636 * manual/math.texi (Mathematics): Document support for _Float32.
24637 * math/Makefile (test-types): Add float32.
24638 * math/Versions (GLIBC_2.27): Add _Float32 functions.
24639 * stdlib/Versions (GLIBC_2.27): Likewise.
24640 * wcsmbs/Versions (GLIBC_2.27): Likewise.
24641 * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Update.
24642 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
24643 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
24644 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
24645 * sysdeps/unix/sysv/linux/arm/libc.abilist: Likewise.
24646 * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
24647 * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
24648 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
24649 * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
24650 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
24651 * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
24652 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
24653 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
24654 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
24655 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
24656 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
24657 * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
24658 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
24659 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
24660 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
24661 * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist:
24662 Likewise.
24663 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
24664 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
24665 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
24666 * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise.
24667 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
24668 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
24669 Likewise.
24670 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist:
24671 Likewise.
24672 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
24673 Likewise.
24674 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
24675 Likewise.
24676
24677 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist:
24678 Likewise.
24679 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist:
24680 Likewise.
24681 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist:
24682 Likewise.
24683 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist:
24684 Likewise.
24685 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
24686 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
24687 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
24688 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
24689 * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
24690 * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
24691 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
24692 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
24693 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
24694 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
24695 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libc.abilist:
24696 Likewise.
24697 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist:
24698 Likewise.
24699 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libc.abilist:
24700 Likewise.
24701 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist:
24702 Likewise.
24703 * sysdeps/unix/sysv/linux/tile/tilepro/libc.abilist: Likewise.
24704 * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
24705 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
24706 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
24707 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
24708 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
24709 * sysdeps/i386/fpu/libm-test-ulps: Likewise.
24710 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
24711
24712 2017-12-06 Joseph Myers <joseph@codesourcery.com>
24713
24714 * stdlib/strtof.c: Include <bits/floatn.h>
24715 [__HAVE_FLOAT32 && !__HAVE_DISTINCT_FLOAT32] (strtof32): Define
24716 and later undefine as macro. Define as weak alias if
24717 [!USE_WIDE_CHAR].
24718 [__HAVE_FLOAT32 && !__HAVE_DISTINCT_FLOAT32] (wcstof32): Define
24719 and later undefine as macro. Define as weak alias if
24720 [USE_WIDE_CHAR].
24721 * stdlib/strtof_l.c: Include <bits/floatn.h>
24722 [__HAVE_FLOAT32 && !__HAVE_DISTINCT_FLOAT32] (strtof32_l): Define
24723 and later undefine as macro. Define as weak alias if
24724 [!USE_WIDE_CHAR].
24725 [__HAVE_FLOAT32 && !__HAVE_DISTINCT_FLOAT32] (wcstof32_l): Define
24726 and later undefine as macro. Define as weak alias if
24727 [USE_WIDE_CHAR].
24728
24729 * stdlib/strfromf.c: Include <bits/floatn.h>.
24730 [__HAVE_FLOAT32 && !__HAVE_DISTINCT_FLOAT32] (strfromf32): Define
24731 and later undefine as macro and define as weak alias.
24732
24733 * math/test-float32.h: New file.
24734
24735 * sysdeps/generic/libm-alias-float.h: Include <bits/floatn.h>.
24736 [__HAVE_FLOAT32 && !__HAVE_DISTINCT_FLOAT32]
24737 (libm_alias_float_other_r): Create f32 alias.
24738 (libm_alias_float_r): Use semicolon before call to
24739 libm_alias_float_other_r.
24740
24741 * sysdeps/ia64/fpu/e_exp2f.S (__exp2f): Use exp2 not __exp2 as
24742 second argument to libm_alias_float_other.
24743 * sysdeps/ia64/fpu/e_log2f.S (__log2f): Use log2 not __log2 as
24744 second argument to libm_alias_float_other.
24745 * sysdeps/ia64/fpu/e_powf.S (__powf): Use pow not __pow as second
24746 argument to libm_alias_float_other.
24747
24748 [BZ #22561]
24749 * math/s_cacosh_template.c (M_DECL_FUNC (__cacosh)): Use pi/2 for
24750 real part of result for argument 0 + i * NaN.
24751 * math/libm-test-cacosh.inc (cacosh_test_data): Update expected
24752 results for tests of 0 + i * NaN.
24753
24754 2017-12-06 Adhemerval Zanella <adhemerval.zanella@linaro.org>
24755
24756 * sysdeps/alpha/fpu/libm-test-ulps: Update.
24757
24758 2017-12-06 David S. Miller <davem@davemloft.net>
24759
24760 * sysdeps/sparc/fpu/libm-test-ulps: Update
24761 exp_{downward,towardzero,upward} ulps.
24762
24763 2017-12-06 Joseph Myers <joseph@codesourcery.com>
24764
24765 * sysdeps/ieee754/ldbl-96/e_j1l.c (qone): Don't make local
24766 variables static.
24767
24768 * sysdeps/ieee754/ldbl-128/e_j0l.c (Y0_2N): Make const.
24769 (Y0_2D): Likewise.
24770 * sysdeps/ieee754/ldbl-128/e_j1l.c (Y0_2N): Likewise.
24771 (Y0_2D): Likewise.
24772 * sysdeps/ieee754/ldbl-128ibm/e_j0l.c (Y0_2N): Likewise.
24773 (Y0_2D): Likewise.
24774 * sysdeps/ieee754/ldbl-128ibm/e_j1l.c (Y0_2N): Likewise.
24775 (Y0_2D): Likewise.
24776
24777 2017-12-06 Mike FABIAN <mfabian@redhat.com>
24778
24779 [BZ #22515]
24780 * localedata/Makefile: Add hsb_DE.UTF-8 to test-input
24781 and to the list of locales to be built for testing.
24782 * localedata/hsb_DE.UTF-8.in: New file for testing the collation.
24783 * localedata/locales/hsb_DE (LC_COLLATE): Use “copy "iso14651_t1"”
24784 and build the collation rules upon that.
24785
24786 2017-12-06 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
24787
24788 * NEWS: Add sinf to list of optimized functions.
24789
24790 2017-12-06 Joseph Myers <joseph@codesourcery.com>
24791
24792 * bits/floatn-common.h (__HAVE_FLOAT64): Define to 1.
24793 (__HAVE_FLOAT32X): Likewise.
24794 * manual/math.texi (Mathematics): Document support for _Float64
24795 and _Float32x.
24796 * math/Makefile (test-types): Add float64 and float32x.
24797 * math/Versions (GLIBC_2.27): Add _Float64 and _Float32x
24798 functions.
24799 * stdlib/Versions (GLIBC_2.27): Likewise.
24800 * wcsmbs/Versions (GLIBC_2.27): Likewise.
24801 * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Update.
24802 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
24803 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
24804 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
24805 * sysdeps/unix/sysv/linux/arm/libc.abilist: Likewise.
24806 * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
24807 * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
24808 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
24809 * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
24810 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
24811 * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
24812 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
24813 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
24814 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
24815 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
24816 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
24817 * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
24818 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
24819 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
24820 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
24821 * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist:
24822 Likewise.
24823 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
24824 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
24825 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
24826 * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise.
24827 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
24828 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
24829 Likewise.
24830 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist:
24831 Likewise.
24832 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
24833 Likewise.
24834 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
24835 Likewise.
24836 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist:
24837 Likewise.
24838 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist:
24839 Likewise.
24840 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist:
24841 Likewise.
24842 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist:
24843 Likewise.
24844 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
24845 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
24846 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
24847 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
24848 * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
24849 * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
24850 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
24851 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
24852 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
24853 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
24854 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libc.abilist:
24855 Likewise.
24856 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist:
24857 Likewise.
24858 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libc.abilist:
24859 Likewise.
24860 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist:
24861 Likewise.
24862 * sysdeps/unix/sysv/linux/tile/tilepro/libc.abilist: Likewise.
24863 * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
24864 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
24865 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
24866 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
24867 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
24868 * sysdeps/i386/fpu/libm-test-ulps: Likewise.
24869 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
24870
24871 2017-12-05 Joseph Myers <joseph@codesourcery.com>
24872
24873 * bits/floatn-common.h: Include <bits/long-double.h>.
24874 [__HAVE_FLOAT64 && (!__GNUC_PREREQ (7, 0) || defined __cplusplus)
24875 && __NO_LONG_DOUBLE_MATH] (__f64): Use suffix 'l'.
24876 [__HAVE_FLOAT64 && (!__GNUC_PREREQ (7, 0) || defined __cplusplus)
24877 && __NO_LONG_DOUBLE_MATH] (__CFLOAT64): Use _Complex long double.
24878 [__HAVE_FLOAT64 && (!__GNUC_PREREQ (7, 0) || defined __cplusplus)
24879 && __NO_LONG_DOUBLE_MATH] (_Float64): Use long double.
24880 [__HAVE_FLOAT64 && !__GNUC_PREREQ (7, 0) && __NO_LONG_DOUBLE_MATH]
24881 (__builtin_huge_valf64): Use __builtin_huge_vall.
24882 [__HAVE_FLOAT64 && !__GNUC_PREREQ (7, 0) && __NO_LONG_DOUBLE_MATH]
24883 (__builtin_inff64): Use __builtin_infl.
24884 [__HAVE_FLOAT64 && !__GNUC_PREREQ (7, 0) && __NO_LONG_DOUBLE_MATH]
24885 (__builtin_nanf64): Use __builtin_nanl.
24886 [__HAVE_FLOAT64 && !__GNUC_PREREQ (7, 0) && __NO_LONG_DOUBLE_MATH]
24887 (__builtin_nansf64): Use __builtin_nansl.
24888
24889 2017-12-05 Rogerio A. Cardoso <rcardoso@linux.vnet.ibm.com>
24890 Paul E. Murphy <murphyp@linux.vnet.ibm.com>
24891 Carlos O'Donell <carlos@redhat.com>
24892
24893 * elf/dl-tunables.list: Add elision parameters.
24894 * manual/tunables.texi: Add entries about elision tunable.
24895 * sysdeps/unix/sysv/linux/powerpc/elision-conf.c:
24896 Add callback functions to dynamically enable/disable elision.
24897 Add multiple callbacks functions to set elision parameters.
24898 Deleted __libc_enable_secure check.
24899 * sysdeps/unix/sysv/linux/s390/elision-conf.c: Likewise.
24900 * sysdeps/unix/sysv/linux/x86/elision-conf.c: Likewise.
24901 * configure: Regenerated.
24902 * configure.ac: Option enable_lock_elision was deleted.
24903 * config.h.in: ENABLE_LOCK_ELISION flag was deleted.
24904 * config.make.in: Remove references to enable_lock_elision.
24905 * manual/install.texi: Elision configure option was removed.
24906 * INSTALL: Regenerated to remove enable_lock_elision.
24907 * nptl/Makefile:
24908 Disable elision so it can verify error case for destroying a mutex.
24909 * sysdeps/powerpc/nptl/elide.h:
24910 Cleanup ENABLE_LOCK_ELISION check.
24911 Deleted macros for the case when ENABLE_LOCK_ELISION was not defined.
24912 * sysdeps/s390/configure: Regenerated.
24913 * sysdeps/s390/configure.ac: Remove references to enable_lock_elision..
24914 * nptl/tst-mutex8.c:
24915 Deleted all #ifndef ENABLE_LOCK_ELISION from the test.
24916 * sysdeps/powerpc/powerpc32/sysdep.h:
24917 Deleted all ENABLE_LOCK_ELISION checks.
24918 * sysdeps/powerpc/powerpc64/sysdep.h: Likewise.
24919 * sysdeps/powerpc/sysdep.h: Likewise.
24920 * sysdeps/s390/nptl/bits/pthreadtypes-arch.h: Likewise.
24921 * sysdeps/unix/sysv/linux/powerpc/force-elision.h: Likewise.
24922 * sysdeps/unix/sysv/linux/s390/elision-conf.h: Likewise.
24923 * sysdeps/unix/sysv/linux/s390/force-elision.h: Likewise.
24924 * sysdeps/unix/sysv/linux/s390/lowlevellock.h: Likewise.
24925 * sysdeps/unix/sysv/linux/s390/Makefile: Remove references to
24926 enable-lock-elision.
24927
24928 2017-12-05 Joseph Myers <joseph@codesourcery.com>
24929
24930 * stdlib/strtod.c: Include <bits/floatn.h>.
24931 (BUILD_DOUBLE): New macro.
24932 [BUILD_DOUBLE && __HAVE_FLOAT64 && !__HAVE_DISTINCT_FLOAT64]
24933 (strtof64): Define and later undefine as macro. Define as weak
24934 alias if [!USE_WIDE_CHAR].
24935 [BUILD_DOUBLE && __HAVE_FLOAT64 && !__HAVE_DISTINCT_FLOAT64]
24936 (wcstof64): Define and later undefine as macro. Define as weak
24937 alias if [USE_WIDE_CHAR].
24938 [BUILD_DOUBLE && __HAVE_FLOAT32X && !__HAVE_DISTINCT_FLOAT32X]
24939 (strtof32x): Define and later undefine as macro. Define as weak
24940 alias if [!USE_WIDE_CHAR].
24941 [BUILD_DOUBLE && __HAVE_FLOAT32X && !__HAVE_DISTINCT_FLOAT32X]
24942 (wcstof32x): Define and later undefine as macro. Define as weak
24943 alias if [USE_WIDE_CHAR].
24944 * stdlib/strtod_l.c: Include <bits/floatn.h>.
24945 (BUILD_DOUBLE): New macro.
24946 [BUILD_DOUBLE && __HAVE_FLOAT64 && !__HAVE_DISTINCT_FLOAT64]
24947 (strtof64_l): Define and later undefine as macro. Define as weak
24948 alias if [!USE_WIDE_CHAR].
24949 [BUILD_DOUBLE && __HAVE_FLOAT64 && !__HAVE_DISTINCT_FLOAT64]
24950 (wcstof64_l): Define and later undefine as macro. Define as weak
24951 alias if [USE_WIDE_CHAR].
24952 [BUILD_DOUBLE && __HAVE_FLOAT32X && !__HAVE_DISTINCT_FLOAT32X]
24953 (strtof32x_l): Define and later undefine as macro. Define as weak
24954 alias if [!USE_WIDE_CHAR].
24955 [BUILD_DOUBLE && __HAVE_FLOAT32X && !__HAVE_DISTINCT_FLOAT32X]
24956 (wcstof32x_l): Define and later undefine as macro. Define as weak
24957 alias if [USE_WIDE_CHAR].
24958
24959 2017-12-05 Adhemerval Zanella <adhemerval.zanella@linaro.org>
24960
24961 * sysdeps/ieee754/flt-32/s_sinf.c (ones): Define as double.
24962 (reduced): Use ones as double instead of integer.
24963
24964 2017-12-05 Szabolcs Nagy <szabolcs.nagy@arm.com>
24965
24966 * sysdeps/ieee754/flt-32/s_sinf.c (sinf): Use isless.
24967
24968 2017-12-05 Joseph Myers <joseph@codesourcery.com>
24969
24970 * stdlib/strfromd.c: Include <bits/floatn.h>.
24971 [__HAVE_FLOAT64 && !__HAVE_DISTINCT_FLOAT64] (strfromf64): Define
24972 and later undefine as macro and define as weak alias.
24973 [__HAVE_FLOAT32X && !__HAVE_DISTINCT_FLOAT32X] (strfromf32x):
24974 Likewise.
24975
24976 * math/test-float32x.h: New file.
24977 * math/test-float64.h: Likewise.
24978
24979 * sysdeps/generic/libm-alias-double.h: Include <bits/floatn.h>.
24980 (libm_alias_double_other_r_f64): New macro.
24981 (libm_alias_double_other_r_f32x): Likewise.
24982 (libm_alias_double_other_r): Use libm_alias_double_other_r_f64 and
24983 libm_alias_double_other_r_f32x.
24984 (libm_alias_double_r): Use semicolon before call to
24985 libm_alias_double_other_r.
24986 * sysdeps/ieee754/ldbl-opt/libm-alias-double.h: Include
24987 <bits/floatn.h>.
24988 (libm_alias_double_other_r_f64): New macro.
24989 (libm_alias_double_other_r_f32x): Likewise.
24990 (libm_alias_double_other_r): Use libm_alias_double_other_r_f64 and
24991 libm_alias_double_other_r_f32x.
24992
24993 2017-12-05 H.J. Lu <hongjiu.lu@intel.com>
24994
24995 * sysdeps/ieee754/flt-32/s_sinf.c (reduced): Replace long with
24996 int.
24997 (SINF_FUNC): Likewise. Replace floor with simple casts.
24998
24999 2017-12-05 Mike FABIAN <mfabian@redhat.com>
25000
25001 [BZ #22517]
25002 * localedata/Makefile: Add et_EE.UTF-8 to test-input
25003 and to the list of locales to be built for testing.
25004 * localedata/et_EE.UTF-8.in: New file for testing the collation.
25005 * localedata/locales/et_EE (LC_COLLATE): Use “copy "iso14651_t1"”
25006 and build the collation rules upon that.
25007
25008 2017-12-05 Chris Metcalf <cmetcalf@mellanox.com>
25009
25010 * sysdeps/tile/tilegx/string-endian.h (VECOP): Provide working
25011 replacements for __insn_xxx builtins for v1cmpeq, v1cmpltu,
25012 v1cmpne, v1add, v1shru, v1shl (register and immediate versions).
25013 * sysdeps/tile/tilegx/memchr.c (__memchr): Use VECOP function
25014 instead of __insn__xxx.
25015 * sysdeps/tile/tilegx/rawmemchr.c (__rawmemchr): Likewise.
25016 * sysdeps/tile/tilegx/strstr.c (strcasechr): Likewise.
25017 * sysdeps/tile/tilegx/strrchr.c (strrchr): Likewise.
25018 * sysdeps/tile/tilegx/strlen.c (strlen): Likewise.
25019 * sysdeps/tile/tilegx/strchrnul.c (__strchrnul): Likewise.
25020 * sysdeps/tile/tilegx/strchr.c (strchr): Likewise.
25021
25022 2017-12-05 Florian Weimer <fweimer@redhat.com>
25023
25024 Linux: Implement interfaces for memory protection keys
25025 * support/Makefile (libsupport-routines): Add xraise, xsigaction,
25026 xsignal, xsysconf.
25027 * support/xsignal.h (xraise, xsignal, xsigaction): Declare.
25028 * support/xunistd.h (xsysconf): Declare.
25029 * support/xraise.c: New file.
25030 * support/xsigaction.c: Likewise.
25031 * support/xsignal.c: Likewise.
25032 * support/xsysconf.c: Likewise.
25033 * sysdeps/unix/sysv/linux/Makefile [misc] (routines): Add
25034 pkey_set, pkey_get, pkey_mprotect.
25035 [misc] (tests): Add tst-pkey.
25036 (tst-pkey): Link with -lpthread.
25037 * sysdeps/unix/sysv/linux/Versions (GLIBC_2.27): Add pkey_alloc,
25038 pkey_free, pkey_set, pkey_get, pkey_mprotect.
25039 * sysdeps/unix/sysv/linux/bits/mman-linux.h (PKEY_DISABLE_ACCESS)
25040 (PKEY_DISABLE_WRITE): Define.
25041 (pkey_alloc, pkey_free, pkey_set, pkey_get, pkey_mprotect):
25042 Declare.
25043 * sysdeps/unix/sysv/linux/bits/siginfo-consts.h (SEGV_BNDERR)
25044 (SEGV_PKUERR): Add.
25045 * sysdeps/unix/sysv/linux/pkey_get.c: New file.
25046 * sysdeps/unix/sysv/linux/pkey_set.c: Likewise.
25047 * sysdeps/unix/sysv/linux/pkey_mprotect.c: Likewise.
25048 * sysdeps/unix/sysv/linux/syscalls.list (pkey_alloc, pkey_free):
25049 Add.
25050 * sysdeps/unix/sysv/linux/tst-pkey.c: New file.
25051 * sysdeps/unix/sysv/linux/x86/arch-pkey.h: Likewise.
25052 * sysdeps/unix/sysv/linux/x86/pkey_get.c: Likewise.
25053 * sysdeps/unix/sysv/linux/x86/pkey_set.c: Likewise.
25054 * sysdeps/unix/sysv/linux/**.abilist: Update.
25055
25056 2017-12-05 Florian Weimer <fweimer@redhat.com>
25057
25058 * support/tst-test_compare.c (subprocess): Use long long instead
25059 of long argument for consistent type width across 32-bit and
25060 64-bit architectures.
25061 (do_test): Adjust expected output.
25062
25063 2017-12-05 Joseph Myers <joseph@codesourcery.com>
25064
25065 * sysdeps/powerpc/fpu/s_cosf.c: Include <libm-alias-float.h>.
25066 (cosf): Define using libm_alias_float.
25067 * sysdeps/powerpc/fpu/s_fabs.S: Include <libm-alias-float.h>.
25068 (fabsf): Define using libm_alias_float.
25069 * sysdeps/powerpc/fpu/s_fmaf.S: Include <libm-alias-float.h>.
25070 (fmaf): Define using libm_alias_float.
25071 * sysdeps/powerpc/fpu/s_rintf.c: Include <libm-alias-float.h>.
25072 (rintf): Define using libm_alias_float.
25073 * sysdeps/powerpc/fpu/s_sinf.c: Include <libm-alias-float.h>.
25074 (sinf): Define using libm_alias_float.
25075 * sysdeps/powerpc/power5+/fpu/s_modff.c: Include
25076 <libm-alias-float.h>.
25077 (modff): Define using libm_alias_float.
25078 * sysdeps/powerpc/power7/fpu/s_logbf.c: Include
25079 <libm-alias-float.h>.
25080 (logbf): Define using libm_alias_float.
25081 * sysdeps/powerpc/powerpc32/fpu/s_ceilf.S: Include
25082 <libm-alias-float.h>.
25083 (ceilf): Define using libm_alias_float.
25084 * sysdeps/powerpc/powerpc32/fpu/s_copysign.S: Include
25085 <libm-alias-float.h>.
25086 (copysignf): Define using libm_alias_float.
25087 * sysdeps/powerpc/powerpc32/fpu/s_floorf.S: Include
25088 <libm-alias-float.h>.
25089 (floorf): Define using libm_alias_float.
25090 * sysdeps/powerpc/powerpc32/fpu/s_llrintf.c: Include
25091 <libm-alias-float.h>.
25092 (llrintf): Define using libm_alias_float.
25093 * sysdeps/powerpc/powerpc32/fpu/s_llroundf.c: Include
25094 <libm-alias-float.h>.
25095 (llroundf): Define using libm_alias_float.
25096 * sysdeps/powerpc/powerpc32/fpu/s_lrint.S: Include
25097 <libm-alias-float.h>.
25098 (lrintf): Define using libm_alias_float.
25099 * sysdeps/powerpc/powerpc32/fpu/s_lround.S: Include
25100 <libm-alias-float.h>.
25101 (lroundf): Define using libm_alias_float.
25102 * sysdeps/powerpc/powerpc32/fpu/s_nearbyintf.S: Include
25103 <libm-alias-float.h>.
25104 (nearbyintf): Define using libm_alias_float.
25105 * sysdeps/powerpc/powerpc32/fpu/s_rintf.S: Include
25106 <libm-alias-float.h>.
25107 (rintf): Define using libm_alias_float.
25108 * sysdeps/powerpc/powerpc32/fpu/s_roundf.S: Include
25109 <libm-alias-float.h>.
25110 (roundf): Define using libm_alias_float.
25111 * sysdeps/powerpc/powerpc32/fpu/s_truncf.S: Include
25112 <libm-alias-float.h>.
25113 (truncf): Define using libm_alias_float.
25114 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceilf.c:
25115 Include <libm-alias-float.h>.
25116 (ceilf): Define using libm_alias_float.
25117 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_copysignf.c:
25118 Include <libm-alias-float.h>.
25119 (copysignf): Define using libm_alias_float.
25120 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floorf.c:
25121 Include <libm-alias-float.h>.
25122 (floorf): Define using libm_alias_float.
25123 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llrintf.c:
25124 Include <libm-alias-float.h>.
25125 (llrintf): Define using libm_alias_float.
25126 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llroundf.c:
25127 Include <libm-alias-float.h>.
25128 (llroundf): Define using libm_alias_float.
25129 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logbf.c:
25130 Include <libm-alias-float.h>.
25131 (logbf): Define using libm_alias_float.
25132 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lrintf.c:
25133 Include <libm-alias-float.h>.
25134 (lrintf): Define using libm_alias_float.
25135 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lroundf.c:
25136 Include <libm-alias-float.h>.
25137 (lroundf): Define using libm_alias_float.
25138 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_modff.c:
25139 Include <libm-alias-float.h>.
25140 (modff): Define using libm_alias_float.
25141 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_roundf.c:
25142 Include <libm-alias-float.h>.
25143 (roundf): Define using libm_alias_float.
25144 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_truncf.c:
25145 Include <libm-alias-float.h>.
25146 (truncf): Define using libm_alias_float.
25147 * sysdeps/powerpc/powerpc32/power4/fpu/s_llrintf.S: Include
25148 <libm-alias-float.h>.
25149 (llrintf): Define using libm_alias_float.
25150 * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S: Include
25151 <libm-alias-float.h>.
25152 (llroundf): Define using libm_alias_float.
25153 * sysdeps/powerpc/powerpc32/power5+/fpu/s_ceilf.S: Include
25154 <libm-alias-float.h>.
25155 (ceilf): Define using libm_alias_float.
25156 * sysdeps/powerpc/powerpc32/power5+/fpu/s_floorf.S: Include
25157 <libm-alias-float.h>.
25158 (floorf): Define using libm_alias_float.
25159 * sysdeps/powerpc/powerpc32/power5+/fpu/s_llround.S: Include
25160 <libm-alias-float.h>.
25161 (llroundf): Define using libm_alias_float.
25162 * sysdeps/powerpc/powerpc32/power5+/fpu/s_lround.S: Include
25163 <libm-alias-float.h>.
25164 (lroundf): Define using libm_alias_float.
25165 * sysdeps/powerpc/powerpc32/power5+/fpu/s_roundf.S: Include
25166 <libm-alias-float.h>.
25167 (roundf): Define using libm_alias_float.
25168 * sysdeps/powerpc/powerpc32/power5+/fpu/s_truncf.S: Include
25169 <libm-alias-float.h>.
25170 (truncf): Define using libm_alias_float.
25171 * sysdeps/powerpc/powerpc32/power6/fpu/s_copysign.S: Include
25172 <libm-alias-float.h>.
25173 (copysignf): Define using libm_alias_float.
25174 * sysdeps/powerpc/powerpc32/power6/fpu/s_llrintf.S: Include
25175 <libm-alias-float.h>.
25176 (llrintf): Define using libm_alias_float.
25177 * sysdeps/powerpc/powerpc32/power6/fpu/s_llround.S: Include
25178 <libm-alias-float.h>.
25179 (llroundf): Define using libm_alias_float.
25180 * sysdeps/powerpc/powerpc32/power6x/fpu/s_lrint.S: Include
25181 <libm-alias-float.h>.
25182 (lrintf): Define using libm_alias_float.
25183 * sysdeps/powerpc/powerpc32/power6x/fpu/s_lround.S: Include
25184 <libm-alias-float.h>.
25185 (lroundf): Define using libm_alias_float.
25186 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceilf.c: Include
25187 <libm-alias-float.h>.
25188 (ceilf): Define using libm_alias_float.
25189 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysignf.c: Include
25190 <libm-alias-float.h>.
25191 (copysignf): Define using libm_alias_float.
25192 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_cosf.c: Include
25193 <libm-alias-float.h>.
25194 (cosf): Define using libm_alias_float.
25195 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floorf.c: Include
25196 <libm-alias-float.h>.
25197 (floorf): Define using libm_alias_float.
25198 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrintf.c: Include
25199 <libm-alias-float.h>.
25200 (llrintf): Define using libm_alias_float.
25201 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llroundf.c: Include
25202 <libm-alias-float.h>.
25203 (llroundf): Define using libm_alias_float.
25204 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logbf.c: Include
25205 <libm-alias-float.h>.
25206 (logbf): Define using libm_alias_float.
25207 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modff.c: Include
25208 <libm-alias-float.h>.
25209 (modff): Define using libm_alias_float.
25210 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_roundf.c: Include
25211 <libm-alias-float.h>.
25212 (roundf): Define using libm_alias_float.
25213 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_sinf.c: Include
25214 <libm-alias-float.h>.
25215 (sinf): Define using libm_alias_float.
25216 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_truncf.c: Include
25217 <libm-alias-float.h>.
25218 (truncf): Define using libm_alias_float.
25219 * sysdeps/powerpc/powerpc64/fpu/s_ceilf.S: Include
25220 <libm-alias-float.h>.
25221 (ceilf): Define using libm_alias_float.
25222 * sysdeps/powerpc/powerpc64/fpu/s_copysign.S: Include
25223 <libm-alias-float.h>.
25224 (copysignf): Define using libm_alias_float.
25225 * sysdeps/powerpc/powerpc64/fpu/s_floorf.S: Include
25226 <libm-alias-float.h>.
25227 (floorf): Define using libm_alias_float.
25228 * sysdeps/powerpc/powerpc64/fpu/s_llrint.S: Include
25229 <libm-alias-float.h>.
25230 (llrintf): Define using libm_alias_float.
25231 * sysdeps/powerpc/powerpc64/fpu/s_llroundf.S: Include
25232 <libm-alias-float.h>.
25233 (llroundf): Define using libm_alias_float.
25234 * sysdeps/powerpc/powerpc64/fpu/s_nearbyintf.S: Include
25235 <libm-alias-float.h>.
25236 (nearbyintf): Define using libm_alias_float.
25237 * sysdeps/powerpc/powerpc64/fpu/s_rintf.S: Include
25238 <libm-alias-float.h>.
25239 (rintf): Define using libm_alias_float.
25240 * sysdeps/powerpc/powerpc64/fpu/s_roundf.S: Include
25241 <libm-alias-float.h>.
25242 (roundf): Define using libm_alias_float.
25243 * sysdeps/powerpc/powerpc64/fpu/s_truncf.S: Include
25244 <libm-alias-float.h>.
25245 (truncf): Define using libm_alias_float.
25246 * sysdeps/powerpc/powerpc64/power5+/fpu/s_ceilf.S: Include
25247 <libm-alias-float.h>.
25248 (ceilf): Define using libm_alias_float.
25249 * sysdeps/powerpc/powerpc64/power5+/fpu/s_floorf.S: Include
25250 <libm-alias-float.h>.
25251 (floorf): Define using libm_alias_float.
25252 * sysdeps/powerpc/powerpc64/power5+/fpu/s_llround.S: Include
25253 <libm-alias-float.h>.
25254 (llroundf): Define using libm_alias_float.
25255 * sysdeps/powerpc/powerpc64/power5+/fpu/s_roundf.S: Include
25256 <libm-alias-float.h>.
25257 (roundf): Define using libm_alias_float.
25258 * sysdeps/powerpc/powerpc64/power5+/fpu/s_truncf.S: Include
25259 <libm-alias-float.h>.
25260 (truncf): Define using libm_alias_float.
25261 * sysdeps/powerpc/powerpc64/power6/fpu/s_copysign.S: Include
25262 <libm-alias-float.h>.
25263 (copysignf): Define using libm_alias_float.
25264 * sysdeps/powerpc/powerpc64/power6x/fpu/s_llrint.S: Include
25265 <libm-alias-float.h>.
25266 (llrintf): Define using libm_alias_float.
25267 * sysdeps/powerpc/powerpc64/power6x/fpu/s_llround.S: Include
25268 <libm-alias-float.h>.
25269 (llroundf): Define using libm_alias_float.
25270 * sysdeps/powerpc/powerpc64/power8/fpu/s_cosf.S: Include
25271 <libm-alias-float.h>.
25272 (cosf): Define using libm_alias_float.
25273 * sysdeps/powerpc/powerpc64/power8/fpu/s_llrint.S: Include
25274 <libm-alias-float.h>.
25275 (llrintf): Define using libm_alias_float.
25276 * sysdeps/powerpc/powerpc64/power8/fpu/s_llround.S: Include
25277 <libm-alias-float.h>.
25278 (llroundf): Define using libm_alias_float.
25279 * sysdeps/powerpc/powerpc64/power8/fpu/s_sinf.S: Include
25280 <libm-alias-float.h>.
25281 (sinf): Define using libm_alias_float.
25282
25283 2017-12-04 Florian Weimer <fweimer@redhat.com>
25284
25285 * support/check.h (TEST_COMPARE): Define.
25286 (support_test_compare_failure): Declare.
25287 * support/Makefile (libsupport-routines): Add
25288 support_test_compare_failure.
25289 (tests): Add tst-test_compare.
25290 * support /support_test_compare_failure.c: New file.
25291 * support/tst-test_compare.c: Likewise.
25292
25293 2017-12-04 Mike FABIAN <mfabian@redhat.com>
25294
25295 [BZ #22527]
25296 * localedata/locales/tr_TR (LC_COLLATE): Base collation rules
25297 on iso14651_t1. A test file localedata/tr_TR.UTF-8.in is already
25298 available, this rewrite of the collation rules does reproduce
25299 the test file in the same order.
25300
25301 2017-12-04 Mike FABIAN <mfabian@redhat.com>
25302
25303 [BZ #10580]
25304 * localedata/locales/hr_HR (LC_TIME): Use two letters for the
25305 digraphs in the month and day names. Using single code points for
25306 digraphs is deprecated. While there are dedicated Unicode
25307 codepoints, for the digraphs, these are included for backwards
25308 compatibility and modern texts use a sequence of Basic Latin
25309 characters. See: https://www.unicode.org/faq/ligature_digraph.html
25310 This makes the month and day names agree exactly with CLDR now,
25311 CLDR does not use the single code points for the digraphs either.
25312
25313 2017-12-04 Chris Metcalf <cmetcalf@mellanox.com>
25314
25315 * sysdeps/tile/libm-test-ulps: Update ca{cos,sin,tan}{,h} ulps.
25316
25317 2017-12-04 Joseph Myers <joseph@codesourcery.com>
25318
25319 * sysdeps/ieee754/flt-32/s_sinf.c (SINF_FUNC): Use __floor instead
25320 of floor.
25321
25322 2017-12-04 Siddhesh Poyarekar <siddhesh@sourceware.org>
25323
25324 * sysdeps/aarch64/multiarch/memcpy_generic.S (__GI_memcpy):
25325 Define only for libc.so.
25326
25327 2017-12-04 Stefan Liebler <stli@linux.vnet.ibm.com>
25328
25329 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h
25330 (INTERNAL_VSYSCALL_CALL, CLOBBER_0, CLOBBER_1, CLOBBER_2,
25331 CLOBBER_3, CLOBBER_4, CLOBBER_5, CLOBBER_6,
25332 INTERNAL_VSYSCALL_NO_SYSCALL_FALLBACK): Remove.
25333 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h: Likewise.
25334
25335 2017-12-04 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
25336
25337 [BZ #5997]
25338 * sysdeps/ieee754/flt-32/s_sinf.c: New implementation.
25339
25340 2017-12-02 John David Anglin <danglin@gcc.gnu.org>
25341
25342 [BZ libc/19170]
25343 * sysdeps/hppa/crti.S: Declare PREINIT_FUNCTION weak_extern when
25344 PREINIT_FUNCTION_WEAK is nonzero.
25345 (gmon_initializer): New function. Put procedure label for it in
25346 .init_array section.
25347 (_init): Don't call PREINIT_FUNCTION.
25348 * sysdeps/hppa/crtn.S (__gmon_start__): Remove.
25349 * sysdeps/hppa/dl-lookupcfg.h (DL_FIXUP_MAKE_VALUE): Create null fixup
25350 value when map argument is null.
25351
25352 * sysdeps/hppa/dl-fptr.c (elf_machine_resolve): Remove unnecessary
25353 depi instruction from PIC pc-relative sequence.
25354 * sysdeps/hppa/dl-fptr.h (ELF_MACHINE_LOAD_ADDRESS): Likewise.
25355 * sysdeps/hppa/dl-machine.h (elf_machine_dynamic): Likewise.
25356 (elf_machine_load_address): Likewise.
25357 (elf_machine_runtime_setup): Likewise.
25358
25359 2017-12-02 Joseph Myers <joseph@codesourcery.com>
25360
25361 * sysdeps/powerpc/power7/fpu/s_logb.c: Include
25362 <libm-alias-double.h>.
25363 (logb): Define using libm_alias_double.
25364 * sysdeps/powerpc/powerpc32/fpu/s_copysign.S: Include
25365 <libm-alias-double.h>.
25366 (copysign): Define using libm_alias_double.
25367 * sysdeps/powerpc/powerpc32/fpu/s_llrint.c: Include
25368 <libm-alias-double.h>.
25369 (llrint): Define using libm_alias_double.
25370 * sysdeps/powerpc/powerpc32/fpu/s_llround.c: Include
25371 <libm-alias-double.h>.
25372 (llround): Define using libm_alias_double.
25373 * sysdeps/powerpc/powerpc32/fpu/s_lrint.S: Include
25374 <libm-alias-double.h>.
25375 (lrint): Define using libm_alias_double.
25376 * sysdeps/powerpc/powerpc32/fpu/s_lround.S: Include
25377 <libm-alias-double.h>.
25378 (lround): Define using libm_alias_double.
25379 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_copysign.c:
25380 Include <libm-alias-double.h>.
25381 (copysign): Define using libm_alias_double.
25382 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llrint.c:
25383 Include <libm-alias-double.h>.
25384 (llrint): Define using libm_alias_double.
25385 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llround.c:
25386 Include <libm-alias-double.h>.
25387 (llround): Define using libm_alias_double.
25388 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logb.c: Include
25389 <libm-alias-double.h>.
25390 (logb): Define using libm_alias_double.
25391 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lrint.c:
25392 Include <libm-alias-double.h>.
25393 (lrint): Define using libm_alias_double.
25394 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lround.c:
25395 Include <libm-alias-double.h>.
25396 (lround): Define using libm_alias_double.
25397 * sysdeps/powerpc/powerpc32/power4/fpu/s_llrint.S: Include
25398 <libm-alias-double.h>.
25399 (llrint): Define using libm_alias_double.
25400 * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S: Include
25401 <libm-alias-double.h>.
25402 (llround): Define using libm_alias_double.
25403 * sysdeps/powerpc/powerpc32/power5+/fpu/s_llround.S: Include
25404 <libm-alias-double.h>.
25405 (llround): Define using libm_alias_double.
25406 * sysdeps/powerpc/powerpc32/power5+/fpu/s_lround.S: Include
25407 <libm-alias-double.h>.
25408 (lround): Define using libm_alias_double.
25409 * sysdeps/powerpc/powerpc32/power6/fpu/s_copysign.S: Include
25410 <libm-alias-double.h>.
25411 (copysign): Define using libm_alias_double.
25412 * sysdeps/powerpc/powerpc32/power6/fpu/s_llrint.S: Include
25413 <libm-alias-double.h>.
25414 (llrint): Define using libm_alias_double.
25415 * sysdeps/powerpc/powerpc32/power6/fpu/s_llround.S: Include
25416 <libm-alias-double.h>.
25417 (llround): Define using libm_alias_double.
25418 * sysdeps/powerpc/powerpc32/power6x/fpu/s_lrint.S: Include
25419 <libm-alias-double.h>.
25420 (lrint): Define using libm_alias_double.
25421 * sysdeps/powerpc/powerpc32/power6x/fpu/s_lround.S: Include
25422 <libm-alias-double.h>.
25423 (lround): Define using libm_alias_double.
25424 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysign.c: Include
25425 <libm-alias-double.h>.
25426 (copysign): Define using libm_alias_double.
25427 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint.c: Include
25428 <libm-alias-double.h>.
25429 (llrint): Define using libm_alias_double.
25430 (lrint): Likewise.
25431 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround.c: Include
25432 <libm-alias-double.h>.
25433 (llround): Define using libm_alias_double.
25434 (lround): Likewise.
25435 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logb.c: Include
25436 <libm-alias-double.h>.
25437 (logb): Define using libm_alias_double.
25438 * sysdeps/powerpc/powerpc64/fpu/s_copysign.S: Include
25439 <libm-alias-double.h>.
25440 (copysign): Define using libm_alias_double.
25441 * sysdeps/powerpc/powerpc64/fpu/s_llrint.S: Include
25442 <libm-alias-double.h>.
25443 (llrint): Define using libm_alias_double.
25444 (lrint): Likewise.
25445 * sysdeps/powerpc/powerpc64/fpu/s_llround.S: Include
25446 <libm-alias-double.h>.
25447 (llround): Define using libm_alias_double.
25448 (lround): Likewise.
25449 * sysdeps/powerpc/powerpc64/power5+/fpu/s_llround.S: Include
25450 <libm-alias-double.h>.
25451 (llround): Define using libm_alias_double.
25452 (lround): Likewise.
25453 * sysdeps/powerpc/powerpc64/power6/fpu/s_copysign.S: Include
25454 <libm-alias-double.h>.
25455 (copysign): Define using libm_alias_double.
25456 * sysdeps/powerpc/powerpc64/power6x/fpu/s_llrint.S: Include
25457 <libm-alias-double.h>.
25458 (llrint): Define using libm_alias_double.
25459 (lrint): Likewise.
25460 * sysdeps/powerpc/powerpc64/power6x/fpu/s_llround.S: Include
25461 <libm-alias-double.h>.
25462 (llround): Define using libm_alias_double.
25463 (lround): Likewise.
25464 * sysdeps/powerpc/powerpc64/power8/fpu/s_llrint.S: Include
25465 <libm-alias-double.h>.
25466 (llrint): Define using libm_alias_double.
25467 (lrint): Likewise.
25468 * sysdeps/powerpc/powerpc64/power8/fpu/s_llround.S: Include
25469 <libm-alias-double.h>.
25470 (llround): Define using libm_alias_double.
25471 (lround): Likewise.
25472
25473 2017-12-01 Joseph Myers <joseph@codesourcery.com>
25474
25475 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround.c
25476 [LONG_DOUBLE_COMPAT(libm, GLIBC_2_1)] (lroundl): Do not define
25477 compat symbol based on llround.
25478
25479 * sysdeps/powerpc/power7/fpu/s_logb.c
25480 [LONG_DOUBLE_COMPAT (libm, GLIBC_2_0)] (logbl): Define as compat
25481 symbol based on __logb, not on logb.
25482 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logb.c
25483 [LONG_DOUBLE_COMPAT (libm, GLIBC_2_0)] (logbl): Likewise.
25484 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logb.c
25485 [LONG_DOUBLE_COMPAT (libm, GLIBC_2_0)] (logbl): Likewise.
25486
25487 * sysdeps/powerpc/fpu/s_rint.c: Include <libm-alias-double.h>.
25488 (rint): Define using libm_alias_double.
25489 * sysdeps/powerpc/power5+/fpu/s_modf.c: Include
25490 <libm-alias-double.h>.
25491 (modf): Define using libm_alias_double.
25492 * sysdeps/powerpc/powerpc32/fpu/s_ceil.S: Include
25493 <libm-alias-double.h>.
25494 (ceil): Define using libm_alias_double.
25495 * sysdeps/powerpc/powerpc32/fpu/s_floor.S: Include
25496 <libm-alias-double.h>.
25497 (floor): Define using libm_alias_double.
25498 * sysdeps/powerpc/powerpc32/fpu/s_nearbyint.S: Include
25499 <libm-alias-double.h>.
25500 (nearbyint): Define using libm_alias_double.
25501 * sysdeps/powerpc/powerpc32/fpu/s_rint.S: Include
25502 <libm-alias-double.h>.
25503 (rint): Define using libm_alias_double.
25504 * sysdeps/powerpc/powerpc32/fpu/s_round.S: Include
25505 <libm-alias-double.h>.
25506 (round): Define using libm_alias_double.
25507 * sysdeps/powerpc/powerpc32/fpu/s_trunc.S: Include
25508 <libm-alias-double.h>.
25509 (trunc): Define using libm_alias_double.
25510 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceil.c: Include
25511 <libm-alias-double.h>.
25512 (ceil): Define using libm_alias_double.
25513 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floor.c:
25514 Include <libm-alias-double.h>.
25515 (floor): Define using libm_alias_double.
25516 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_modf.c: Include
25517 <libm-alias-double.h>.
25518 (modf): Define using libm_alias_double.
25519 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_round.c:
25520 Include <libm-alias-double.h>.
25521 (round): Define using libm_alias_double.
25522 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_trunc.c:
25523 Include <libm-alias-double.h>.
25524 (trunc): Define using libm_alias_double.
25525 * sysdeps/powerpc/powerpc32/power5+/fpu/s_ceil.S: Include
25526 <libm-alias-double.h>.
25527 (ceil): Define using libm_alias_double.
25528 * sysdeps/powerpc/powerpc32/power5+/fpu/s_floor.S: Include
25529 <libm-alias-double.h>.
25530 (floor): Define using libm_alias_double.
25531 * sysdeps/powerpc/powerpc32/power5+/fpu/s_round.S: Include
25532 <libm-alias-double.h>.
25533 (round): Define using libm_alias_double.
25534 * sysdeps/powerpc/powerpc32/power5+/fpu/s_trunc.S: Include
25535 <libm-alias-double.h>.
25536 (trunc): Define using libm_alias_double.
25537 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceil.c: Include
25538 <libm-alias-double.h>.
25539 (ceil): Define using libm_alias_double.
25540 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floor.c: Include
25541 <libm-alias-double.h>.
25542 (floor): Define using libm_alias_double.
25543 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modf.c: Include
25544 <libm-alias-double.h>.
25545 (modf): Define using libm_alias_double.
25546 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_round.c: Include
25547 <libm-alias-double.h>.
25548 (round): Define using libm_alias_double.
25549 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_trunc.c: Include
25550 <libm-alias-double.h>.
25551 (trunc): Define using libm_alias_double.
25552 * sysdeps/powerpc/powerpc64/fpu/s_ceil.S: Include
25553 <libm-alias-double.h>.
25554 (ceil): Define using libm_alias_double.
25555 * sysdeps/powerpc/powerpc64/fpu/s_floor.S: Include
25556 <libm-alias-double.h>.
25557 (floor): Define using libm_alias_double.
25558 * sysdeps/powerpc/powerpc64/fpu/s_nearbyint.S: Include
25559 <libm-alias-double.h>.
25560 (nearbyint): Define using libm_alias_double.
25561 * sysdeps/powerpc/powerpc64/fpu/s_rint.S: Include
25562 <libm-alias-double.h>.
25563 (rint): Define using libm_alias_double.
25564 * sysdeps/powerpc/powerpc64/fpu/s_round.S: Include
25565 <libm-alias-double.h>.
25566 (round): Define using libm_alias_double.
25567 * sysdeps/powerpc/powerpc64/fpu/s_trunc.S: Include
25568 <libm-alias-double.h>.
25569 (trunc): Define using libm_alias_double.
25570 * sysdeps/powerpc/powerpc64/power5+/fpu/s_ceil.S: Include
25571 <libm-alias-double.h>.
25572 (ceil): Define using libm_alias_double.
25573 * sysdeps/powerpc/powerpc64/power5+/fpu/s_floor.S: Include
25574 <libm-alias-double.h>.
25575 (floor): Define using libm_alias_double.
25576 * sysdeps/powerpc/powerpc64/power5+/fpu/s_round.S: Include
25577 <libm-alias-double.h>.
25578 (round): Define using libm_alias_double.
25579 * sysdeps/powerpc/powerpc64/power5+/fpu/s_trunc.S: Include
25580 <libm-alias-double.h>.
25581 (trunc): Define using libm_alias_double.
25582
25583 * sysdeps/powerpc/fpu/s_fabs.S: Include <libm-alias-double.h>.
25584 (fabs): Define using libm_alias_double.
25585 * sysdeps/powerpc/fpu/s_fma.S: Include <libm-alias-double.h>.
25586 (fma): Define using libm_alias_double.
25587 * sysdeps/powerpc/powerpc32/fpu/s_fabs.S: Remove file.
25588 * sysdeps/powerpc/powerpc32/fpu/s_fma.S: Likewise.
25589 * sysdeps/powerpc/powerpc64/fpu/s_fabs.S: Likewise.
25590 * sysdeps/powerpc/powerpc64/fpu/s_fma.S: Likewise.
25591
25592 2017-12-01 Adhemerval Zanella <adhemerval.zanella@linaro.org>
25593
25594 * sysdeps/unix/sysv/linux/x86_64/x32/getcpu.c: Remove file.
25595
25596 * sysdeps/sparc/sparc-ifunc.h (SPARC_ASM_IFUNC_DFLT,
25597 SPARC_ASM_IFUNC1, SPARC_ASM_IFUNC2, SET, SPARC_ASM_VIS2_IFUNC,
25598 SPARC_ASM_VIS3_IFUNC, SPARC_ASM_VIS3_VIS2_IFUNC): Remove macros.
25599
25600 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.c: Fix build
25601 due redirect macro.
25602
25603 2017-12-01 Andreas Schwab <schwab@linux-m68k.org>
25604
25605 * intl/Makefile ($(objpfx)plural.c): Add $(make-target-directory).
25606
25607 2017-12-01 Adhemerval Zanella <adhemerval.zanella@linaro.org>
25608
25609 * sysdeps/sparc/sparc64/cpu_relax.c: New file.
25610 * sysdeps/sparc/sparc32/sparcv9/cpu_relax.c: Likewise.
25611 * sysdeps/sparc/sparc64/cpu_relax.S: Remove file.
25612 * sysdeps/sparc/sparc32/sparcv9/cpu_relax.S: Likewise.
25613
25614 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile
25615 (libm-sysdep_routines): Add s_nearbyintf-generic and
25616 s_nearbyint-generic.
25617 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyint-generic.S:
25618 New file.
25619 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyint.c: Likewise.
25620 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyintf-generic.S:
25621 Likewise.
25622 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyintf.c:
25623 Likewise.
25624 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyint.S: Remove
25625 file.
25626 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyintf.S:
25627 Likewise.
25628
25629 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile
25630 (libm-sysdep_routines): Add s_rintf-generic and s_rint-generic.
25631 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint-generic.S: New
25632 file.
25633 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.c: Likewise.
25634 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf-generic.S:
25635 Likewise.
25636 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf.c: Likewise.
25637 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: Remove file.
25638 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf.S: Likewise.
25639
25640 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile
25641 (libm-sysdep_routines): Add s_llrintf-generic and s_llrint-generic.
25642 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint-generic.S: New
25643 file.
25644 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.c: Likewise.
25645 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf-generic.S:
25646 Likewise.
25647 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.c: Likewise.
25648 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S: Remove file.
25649 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.S: Likewise.
25650
25651 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile
25652 (libm-sysdep_routines): Add s_fabsf-generic and s_fabs-generic.
25653 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs-generic.S: New
25654 file.
25655 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.c: Likewise.
25656 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf-generic.S:
25657 Likewise.
25658 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf.c: Likewise.
25659 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.S: Remove file.
25660 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf.S: Likewise.
25661
25662 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile
25663 (sysdep_calls): New rule.
25664 (sysdep_routines): Use sysdep_calls as base.
25665 (libm-sysdep_routines): Add generic rule for symbols shared with
25666 libc. Add s_copysign-generic and s_copysign-generic objects.
25667 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign-generic.S:
25668 New file.
25669 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.c: Likewise.
25670 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf-generic.S:
25671 Likewise.
25672 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf.c: Likewise.
25673 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.S: Remove file.
25674 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf.S: Likewise.
25675
25676 2017-12-01 Mike FABIAN <mfabian@redhat.com>
25677
25678 [BZ #22519]
25679 * localedata/Makefile: Add is_IS.UTF-8 to test-input and to
25680 the list of locales to be built for testing.
25681 * localedata/is_IS.UTF-8.in: New file.
25682 * localedata/locales/is_IS (LC_COLLATE): Base collation rules
25683 on iso14651_t1.
25684
25685 2017-12-01 Joseph Myers <joseph@codesourcery.com>
25686
25687 * sysdeps/powerpc/powerpc32/e500/nofpu/s_fabsf.S: Include
25688 <libm-alias-float.h>.
25689 (fabsf): Define using libm_alias_float.
25690
25691 2017-11-30 H.J. Lu <hongjiu.lu@intel.com>
25692
25693 * sysdeps/mips/dl-machine.h (elf_machine_reloc): Expand MIN.
25694
25695 2017-11-30 Joseph Myers <joseph@codesourcery.com>
25696
25697 * sysdeps/m68k/coldfire/fpu/s_fabsf.c: Include
25698 <libm-alias-float.h>.
25699 (fabsf): Define using libm_alias_float.
25700 * sysdeps/m68k/coldfire/fpu/s_lrintf.c: Include
25701 <libm-alias-float.h>.
25702 (lrintf): Define using libm_alias_float.
25703 * sysdeps/m68k/coldfire/fpu/s_rintf.c: Include
25704 <libm-alias-float.h>.
25705 (rintf): Define using libm_alias_float.
25706
25707 * sysdeps/m68k/coldfire/fpu/s_fabs.c: Include
25708 <libm-alias-double.h>.
25709 (fabs): Define using libm_alias_double.
25710 * sysdeps/m68k/coldfire/fpu/s_lrint.c: Include
25711 <libm-alias-double.h>.
25712 (lrint): Define using libm_alias_double.
25713 * sysdeps/m68k/coldfire/fpu/s_rint.c: Include
25714 <libm-alias-double.h>.
25715 (rint): Define using libm_alias_double.
25716
25717 * sysdeps/m68k/m680x0/fpu/s_atan_template.c: New file.
25718 * sysdeps/m68k/m680x0/fpu/s_ceil_template.c: Likewise.
25719 * sysdeps/m68k/m680x0/fpu/s_cos_template.c: Likewise.
25720 * sysdeps/m68k/m680x0/fpu/s_expm1_template.c: Likewise.
25721 * sysdeps/m68k/m680x0/fpu/s_fabs_template.c: Likewise.
25722 * sysdeps/m68k/m680x0/fpu/s_floor_template.c: Likewise.
25723 * sysdeps/m68k/m680x0/fpu/s_frexp_template.c: Likewise.
25724 * sysdeps/m68k/m680x0/fpu/s_lrint_template.c: Likewise.
25725 * sysdeps/m68k/m680x0/fpu/s_modf_template.c: Likewise.
25726 * sysdeps/m68k/m680x0/fpu/s_nearbyint_template.c: Likewise.
25727 * sysdeps/m68k/m680x0/fpu/s_remquo_template.c: Likewise.
25728 * sysdeps/m68k/m680x0/fpu/s_rint_template.c: Likewise.
25729 * sysdeps/m68k/m680x0/fpu/s_sin_template.c: Likewise.
25730 * sysdeps/m68k/m680x0/fpu/s_sincos_template.c: Likewise.
25731 * sysdeps/m68k/m680x0/fpu/s_tan_template.c: Likewise.
25732 * sysdeps/m68k/m680x0/fpu/s_tanh_template.c: Likewise.
25733 * sysdeps/m68k/m680x0/fpu/s_trunc_template.c: Likewise.
25734 * sysdeps/m68k/m680x0/fpu/s_atan.c: Reimplement to use
25735 s_atan_template.c.
25736 * sysdeps/m68k/m680x0/fpu/s_atanf.c: Likewise.
25737 * sysdeps/m68k/m680x0/fpu/s_atanl.c: Likewise.
25738 * sysdeps/m68k/m680x0/fpu/s_ceil.c: Reimplement to use
25739 s_ceil_template.c.
25740 * sysdeps/m68k/m680x0/fpu/s_ceilf.c: Likewise.
25741 * sysdeps/m68k/m680x0/fpu/s_ceill.c: Likewise.
25742 * sysdeps/m68k/m680x0/fpu/s_cos.c: Reimplement to use
25743 s_cos_template.c.
25744 * sysdeps/m68k/m680x0/fpu/s_cosf.c: Likewise.
25745 * sysdeps/m68k/m680x0/fpu/s_cosl.c: Likewise.
25746 * sysdeps/m68k/m680x0/fpu/s_expm1.c: Reimplement to use
25747 s_expm1_template.c.
25748 * sysdeps/m68k/m680x0/fpu/s_expm1f.c: Likewise.
25749 * sysdeps/m68k/m680x0/fpu/s_expm1l.c: Likewise.
25750 * sysdeps/m68k/m680x0/fpu/s_fabs.c: Reimplement to use
25751 s_fabs_template.c.
25752 * sysdeps/m68k/m680x0/fpu/s_fabsf.c: Likewise.
25753 * sysdeps/m68k/m680x0/fpu/s_fabsl.c: Likewise.
25754 * sysdeps/m68k/m680x0/fpu/s_floor.c: Reimplement to use
25755 s_floor_template.c.
25756 * sysdeps/m68k/m680x0/fpu/s_floorf.c: Likewise.
25757 * sysdeps/m68k/m680x0/fpu/s_floorl.c: Likewise.
25758 * sysdeps/m68k/m680x0/fpu/s_frexp.c: Reimplement to use
25759 s_frexp_template.c.
25760 * sysdeps/m68k/m680x0/fpu/s_frexpf.c: Likewise.
25761 * sysdeps/m68k/m680x0/fpu/s_lrint.c: Reimplement to use
25762 s_lrint_template.c.
25763 * sysdeps/m68k/m680x0/fpu/s_lrintf.c: Likewise.
25764 * sysdeps/m68k/m680x0/fpu/s_lrintl.c: Likewise.
25765 * sysdeps/m68k/m680x0/fpu/s_modf.c: Reimplement to use
25766 s_modf_template.c.
25767 * sysdeps/m68k/m680x0/fpu/s_modff.c: Likewise.
25768 * sysdeps/m68k/m680x0/fpu/s_modfl.c: Likewise.
25769 * sysdeps/m68k/m680x0/fpu/s_nearbyint.c: Reimplement to use
25770 s_nearbyint_template.c.
25771 * sysdeps/m68k/m680x0/fpu/s_nearbyintf.c: Likewise.
25772 * sysdeps/m68k/m680x0/fpu/s_nearbyintl.c: Likewise.
25773 * sysdeps/m68k/m680x0/fpu/s_remquo.c: Reimplement to use
25774 s_remquo_template.c.
25775 * sysdeps/m68k/m680x0/fpu/s_remquof.c: Likewise.
25776 * sysdeps/m68k/m680x0/fpu/s_remquol.c: Likewise.
25777 * sysdeps/m68k/m680x0/fpu/s_rint.c: Reimplement to use
25778 s_rint_template.c.
25779 * sysdeps/m68k/m680x0/fpu/s_rintf.c: Likewise.
25780 * sysdeps/m68k/m680x0/fpu/s_rintl.c: Likewise.
25781 * sysdeps/m68k/m680x0/fpu/s_sin.c: Reimplement to use
25782 s_sin_template.c.
25783 * sysdeps/m68k/m680x0/fpu/s_sinf.c: Likewise.
25784 * sysdeps/m68k/m680x0/fpu/s_sinl.c: Likewise.
25785 * sysdeps/m68k/m680x0/fpu/s_sincos.c: Reimplement to use
25786 s_sincos_template.c.
25787 * sysdeps/m68k/m680x0/fpu/s_sincosf.c: Likewise.
25788 * sysdeps/m68k/m680x0/fpu/s_sincosl.c: Likewise.
25789 * sysdeps/m68k/m680x0/fpu/s_tan.c: Reimplement to use
25790 s_tan_template.c.
25791 * sysdeps/m68k/m680x0/fpu/s_tanf.c: Likewise.
25792 * sysdeps/m68k/m680x0/fpu/s_tanl.c: Likewise.
25793 * sysdeps/m68k/m680x0/fpu/s_tanh.c: Reimplement to use
25794 s_tanh_template.c.
25795 * sysdeps/m68k/m680x0/fpu/s_tanhf.c: Likewise.
25796 * sysdeps/m68k/m680x0/fpu/s_tanhl.c: Likewise.
25797 * sysdeps/m68k/m680x0/fpu/s_trunc.c: Reimplement to use
25798 s_trunc_template.c.
25799 * sysdeps/m68k/m680x0/fpu/s_truncf.c: Likewise.
25800 * sysdeps/m68k/m680x0/fpu/s_truncl.c: Likewise.
25801 * sysdeps/m68k/m680x0/fpu/s_significand.c: Reimplement based on
25802 s_atan.c instead of including s_atan.c.
25803 * sysdeps/m68k/m680x0/fpu/s_significandf.c: Reimplement based on
25804 s_atanf.c instead of including s_atanf.c.
25805 * sysdeps/m68k/m680x0/fpu/s_significandl.c: Reimplement based on
25806 s_atanl.c instead of including s_atanl.c.
25807 * sysdeps/m68k/m680x0/fpu/s_log1p.c: Include s_significand.c
25808 instead of s_atan.c.
25809 * sysdeps/m68k/m680x0/fpu/s_log1pf.c: Include s_significandf.c
25810 instead of s_atanf.c.
25811 * sysdeps/m68k/m680x0/fpu/s_log1pl.c: Include s_significandl.c
25812 instead of s_atanl.c.
25813
25814 * scripts/update-copyrights: Do not handle intl/plural.c
25815 specially.
25816
25817 2017-11-30 Juro Bystricky <juro.bystricky@linux.intel.com>
25818
25819 [BZ #22432]
25820 * configure.ac (BISON): Require to be present.
25821 * configure: Regenerated.
25822 * intl/Makefile (generated): Add plural.c.
25823 [$(BISON) != no]: Make code unconditional.
25824 (plural.c): Change rule to $(objpfx)plural.c.
25825 ($(objpfx)plural.o): Depend on $(objpfx)plural.c.
25826 * intl/plural.c: Remove.
25827 * manual/install.texi (Tools for Compilation): Document bison as
25828 required.
25829 * INSTALL: Regenerated.
25830
25831 2017-11-30 Joseph Myers <joseph@codesourcery.com>
25832
25833 * sysdeps/m68k/m680x0/fpu/s_llrint.c: Include
25834 <libm-alias-double.h>.
25835 (llrint): Define using libm_alias_double.
25836 * sysdeps/m68k/m680x0/fpu/s_llrintf.c: Include
25837 <libm-alias-float.h>.
25838 (llrintf): Define using libm_alias_float.
25839 * sysdeps/m68k/m680x0/fpu/s_llrintl.c: Include
25840 <libm-alias-ldouble.h>.
25841 (llrintl): Define using libm_alias_ldouble.
25842
25843 * sysdeps/m68k/m680x0/fpu/s_ccosh_template.c (ccosh): Use
25844 declare_mgen_alias instead of weak_alias.
25845 * sysdeps/m68k/m680x0/fpu/s_cexp_template.c (cexp): Likewise.
25846 * sysdeps/m68k/m680x0/fpu/s_csin_template.c (csin): Likewise.
25847 * sysdeps/m68k/m680x0/fpu/s_csinh_template.c (csinh): Likewise.
25848
25849 2017-11-30 Adhemerval Zanella <adhemerval.zanella@linaro.org>
25850
25851 * sysdeps/sparc/sparc64/multiarch/Makefile (sysdep_routines):
25852 Add add_n-generic.
25853 * sysdeps/sparc/sparc64/multiarch/add_n-generic.S: New file.
25854 * sysdeps/sparc/sparc64/multiarch/add_n.c: Likewise.
25855 * sysdeps/sparc/sparc64/multiarch/add_n.S: Remove file.
25856
25857 * sysdeps/sparc/sparc64/multiarch/Makefile (sysdep_routines):
25858 Add submul_1-generic.
25859 * sysdeps/sparc/sparc64/multiarch/submul_1-generic.S: New file.
25860 * sysdeps/sparc/sparc64/multiarch/submul_1.c: Likewise.
25861 * sysdeps/sparc/sparc64/multiarch/submul_1.S: Remove file.
25862
25863 * sysdeps/sparc/sparc64/multiarch/Makefile (sysdep_routines):
25864 Add addmul_1-generic.
25865 * sysdeps/sparc/sparc64/multiarch/addmul_1-generic.S: New file.
25866 * sysdeps/sparc/sparc64/multiarch/addmul_1.c: Likewise.
25867 * sysdeps/sparc/sparc64/multiarch/addmul_1.S: Remove file.
25868
25869 * sysdeps/sparc/sparc64/multiarch/Makefile (sysdep_routines):
25870 Add sub_n-generic.
25871 * sysdeps/sparc/sparc64/multiarch/sub_n-generic.S: New file.
25872 * sysdeps/sparc/sparc64/multiarch/sub_n.c: Likewise.
25873 * sysdeps/sparc/sparc64/multiarch/sub_n.S: Remove file.
25874
25875 * sysdeps/sparc/sparc64/multiarch/Makefile (sysdep_routines):
25876 Add mul_1-generic.
25877 * sysdeps/sparc/sparc64/multiarch/mul_1-generic.S: New file.
25878 * sysdeps/sparc/sparc64/multiarch/mul_1.c: Likewise.
25879 * sysdeps/sparc/sparc64/multiarch/mul_1.S: Remove file.
25880
25881 2017-11-30 Mike FABIAN <mfabian@redhat.com>
25882
25883 According to CLDR, collation rules for Serbian and Bosnian
25884 should be the same as for Croatian.
25885
25886 [BZ #22534]
25887 * localedata/Makefile: Add sr_RS.UTF-8 and bs_BA.UTF-8 to test-input
25888 and to the list of locales to be built for testing.
25889 * localedata/bs_BA.UTF-8.in: New file (same as hr_HR.UTF-8.in).
25890 * localedata/sr_RS.UTF-8.in: New file (same as hr_HR.UTF-8.in).
25891 * localedata/locales/bs_BA (LC_COLLATE): Use “copy "hr_HR"”.
25892 * localedata/locales/sr_RS (LC_COLLATE): Use “copy "hr_HR"”.
25893
25894 2017-11-30 Mike FABIAN <mfabian@redhat.com>
25895
25896 * localedata/locales/hr_HR (LC_COLLATE): Fix collation
25897 to make test case pass.
25898 * localedata/hr_HR.UTF-8.in: Add more test strings.
25899
25900 2017-11-30 Mike FABIAN <mfabian@redhat.com>
25901
25902 * stdlib/tst-strfmon_l.c: Fix testcase. Needed because of [BZ #10580]
25903
25904 2017-11-30 Dragan Stanojević - Nevidljivi <invisible@hidden-city.net>
25905
25906 * localedata/Makefile: Add hr_HR.UTF-8 to test-input and to
25907 the list of locales to built for testing.
25908 * localedata/hr_HR.UTF-8.in: New file.
25909
25910 2017-11-30 Dragan Stanojević - Nevidljivi <invisible@hidden-city.net>
25911
25912 [BZ #10580]
25913 * localedata/locales/hr_HR (LC_COLLATE): Base collation rules on
25914 iso14651_t1.
25915 * localedata/locales/hr_HR (LC_TIME): Sync month and day names with
25916 CLDR (except use ligatures for the digraphs, CLDR does not use
25917 the ligatures), add first_workday, some fixes in the date and time
25918 formats.
25919 * localedata/locales/hr_HR (LC_CTYPE): Add transliteration rules
25920 for Đ and đ.
25921 * localedata/locales/hr_HR (LC_MONETARY): Change currency_symbol to
25922 lower case. p_cs_precedes and n_cs_precedes should be 0 instead of 1.
25923 Add int_p_cs_precedes and int_n_cs_precedes.
25924 * localedata/locales/hr_HR (LC_NUMERIC): Change thousands_sep to
25925 "<U202F>" (NARROW NO-BREAK SPACE) and grouping to 3;3 (Agrees with
25926 LC_MONETARY now).
25927 * localedata/locales/hr_HR (LC_TELEPHONE): Add tel_dom_fmt.
25928 * localedata/locales/hr_HR (LC_NAME): Add name_mr, name_mrs, and
25929 name_miss.
25930 * localedata/locales/hr_HR (LC_ADDRESS): Add country_post, country_isbn,
25931 and lang_lib. Change postal_fmt.
25932
25933 2017-11-30 H.J. Lu <hongjiu.lu@intel.com>
25934
25935 * debug/longjmp_chk.c: Include <setjmpP.h> instead of
25936 <setjmp.h>.
25937 * setjmp/longjmp.c: Include <setjmpP.h> instead of <setjmp.h>.
25938 (__libc_siglongjmp): Cast &env[0].__saved_mask to "sigset_t *".
25939 * setjmp/sigjmp.c: Include <setjmpP.h> instead of <setjmp.h>.
25940 (__sigjmp_save): Cast &env[0].__saved_mask to "sigset_t *".
25941 * sysdeps/generic/setjmpP.h: New file.
25942 * sysdeps/unix/sysv/linux/x86/jmp_buf-ssp.sym: Likewise.
25943 * sysdeps/unix/sysv/linux/x86/setjmpP.h: Likewise.
25944 * sysdeps/unix/sysv/linux/x86/tst-saved_mask-1.c: Likewise.
25945 * sysdeps/unix/sysv/linux/x86/Makefile (gen-as-const-headers):
25946 Add jmp_buf-ssp.sym.
25947 (tests): Add tst-saved_mask-1.
25948
25949 2017-11-30 Arjun Shankar <arjun@redhat.com>
25950
25951 [BZ #22375]
25952 CVE-2017-17426
25953 * malloc/malloc.c (__libc_malloc): Use checked_request2size
25954 instead of request2size.
25955
25956 2017-11-30 Joseph Myers <joseph@codesourcery.com>
25957
25958 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S
25959 (__lllrint): Remove alias.
25960 (lllrint): Likewise.
25961 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.S
25962 (__lllrintf): Likewise.
25963 (lllrintf): Likewise.
25964
25965 * sysdeps/sparc/sparc32/fpu/s_copysignf.S: Include
25966 <libm-alias-float.h>.
25967 (copysignf): Define using libm_alias_float.
25968 * sysdeps/sparc/sparc32/fpu/s_fabsf.S: Include
25969 <libm-alias-float.h>.
25970 (fabsf): Define using libm_alias_float.
25971 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf.S:
25972 Include <libm-alias-float.h>.
25973 (copysignf): Define using libm_alias_float.
25974 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf.S: Include
25975 <libm-alias-float.h>.
25976 (fabsf): Define using libm_alias_float.
25977 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdimf.c: Include
25978 <libm-alias-float.h>.
25979 (fdimf): Define using libm_alias_float.
25980 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaf.c: Include
25981 <libm-alias-float.h>.
25982 (fmaf): Define using libm_alias_float.
25983 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.S: Include
25984 <libm-alias-float.h>.
25985 (llrintf): Define using libm_alias_float.
25986 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyintf.S:
25987 Include <libm-alias-float.h>.
25988 (nearbyintf): Define using libm_alias_float.
25989 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf.S: Include
25990 <libm-alias-float.h>.
25991 (rintf): Define using libm_alias_float.
25992 * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrintf.S: Include
25993 <libm-alias-float.h>.
25994 (llrintf): Define using libm_alias_float.
25995 * sysdeps/sparc/sparc32/sparcv9/fpu/s_lrintf.S: Include
25996 <libm-alias-float.h>.
25997 (lrintf): Define using libm_alias_float.
25998 * sysdeps/sparc/sparc32/sparcv9/fpu/s_nearbyintf.S: Include
25999 <libm-alias-float.h>.
26000 (nearbyintf): Define using libm_alias_float.
26001 * sysdeps/sparc/sparc32/sparcv9/fpu/s_rintf.S: Include
26002 <libm-alias-float.h>.
26003 (rintf): Define using libm_alias_float.
26004 * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.c: Include
26005 <libm-alias-float.h>.
26006 (ceilf): Define using libm_alias_float.
26007 * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.c: Include
26008 <libm-alias-float.h>.
26009 (floorf): Define using libm_alias_float.
26010 * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaf.c: Include
26011 <libm-alias-float.h>.
26012 (fmaf): Define using libm_alias_float.
26013 * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf.c: Include
26014 <libm-alias-float.h>.
26015 (lrintf): Define using libm_alias_float.
26016 (llrintf): Likewise.
26017 * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyintf.c: Include
26018 <libm-alias-float.h>.
26019 (nearbyintf): Define using libm_alias_float.
26020 * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf.c: Include
26021 <libm-alias-float.h>.
26022 (rintf): Define using libm_alias_float.
26023 * sysdeps/sparc/sparc64/fpu/multiarch/s_truncf.c: Include
26024 <libm-alias-float.h>.
26025 (truncf): Define using libm_alias_float.
26026 * sysdeps/sparc/sparc64/fpu/s_copysignf.S: Include
26027 <libm-alias-float.h>.
26028 (copysignf): Define using libm_alias_float.
26029 * sysdeps/sparc/sparc64/fpu/s_fabsf.c: Include
26030 <libm-alias-float.h>.
26031 (fabsf): Define using libm_alias_float.
26032 * sysdeps/sparc/sparc64/fpu/s_lrintf.S: Include
26033 <libm-alias-float.h>.
26034 (lrintf): Define using libm_alias_float.
26035 (llrintf): Likewise.
26036 * sysdeps/sparc/sparc64/fpu/s_nearbyintf.S: Include
26037 <libm-alias-float.h>.
26038 (nearbyintf): Define using libm_alias_float.
26039 * sysdeps/sparc/sparc64/fpu/s_rintf.S: Include
26040 <libm-alias-float.h>.
26041 (rintf): Define using libm_alias_float.
26042
26043 2017-11-29 Joseph Myers <joseph@codesourcery.com>
26044
26045 * sysdeps/sparc/sparc32/fpu/s_copysign.S: Include
26046 <libm-alias-double.h>.
26047 (copysign): Define using libm_alias_double.
26048 * sysdeps/sparc/sparc32/fpu/s_fabs.S: Include
26049 <libm-alias-double.h>.
26050 (fabs): Define using libm_alias_double.
26051 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.S:
26052 Include <libm-alias-double.h>.
26053 (copysign): Define using libm_alias_double.
26054 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.S: Include
26055 <libm-alias-double.h>.
26056 (fabs): Define using libm_alias_double.
26057 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdim.c: Include
26058 <libm-alias-double.h>.
26059 (fdim): Define using libm_alias_double.
26060 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fma.c: Include
26061 <libm-alias-double.h>.
26062 (fma): Define using libm_alias_double.
26063 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S: Include
26064 <libm-alias-double.h>.
26065 (llrint): Define using libm_alias_double.
26066 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyint.S:
26067 Include <libm-alias-double.h>.
26068 (nearbyint): Define using libm_alias_double.
26069 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: Include
26070 <libm-alias-double.h>.
26071 (rint): Define using libm_alias_double.
26072 * sysdeps/sparc/sparc32/sparcv9/fpu/s_fabs.S: Include
26073 <libm-alias-double.h>.
26074 (fabs): Define using libm_alias_double.
26075 * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrint.S: Include
26076 <libm-alias-double.h>.
26077 (llrint): Define using libm_alias_double.
26078 * sysdeps/sparc/sparc32/sparcv9/fpu/s_nearbyint.S: Include
26079 <libm-alias-double.h>.
26080 (nearbyint): Define using libm_alias_double.
26081 * sysdeps/sparc/sparc32/sparcv9/fpu/s_rint.S: Include
26082 <libm-alias-double.h>.
26083 (rint): Define using libm_alias_double.
26084 * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.c: Include
26085 <libm-alias-double.h>.
26086 (ceil): Define using libm_alias_double.
26087 * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.c: Include
26088 <libm-alias-double.h>.
26089 (floor): Define using libm_alias_double.
26090 * sysdeps/sparc/sparc64/fpu/multiarch/s_fma.c: Include
26091 <libm-alias-double.h>.
26092 (fma): Define using libm_alias_double.
26093 * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint.c: Include
26094 <libm-alias-double.h>.
26095 (lrint): Define using libm_alias_double.
26096 (llrint): Likewise.
26097 * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyint.c: Include
26098 <libm-alias-double.h>.
26099 (nearbyint): Define using libm_alias_double.
26100 * sysdeps/sparc/sparc64/fpu/multiarch/s_rint.c: Include
26101 <libm-alias-double.h>.
26102 (rint): Define using libm_alias_double.
26103 * sysdeps/sparc/sparc64/fpu/multiarch/s_trunc.c: Include
26104 <libm-alias-double.h>.
26105 (trunc): Define using libm_alias_double.
26106 * sysdeps/sparc/sparc64/fpu/s_copysign.S: Include
26107 <libm-alias-double.h>.
26108 (copysign): Define using libm_alias_double.
26109 * sysdeps/sparc/sparc64/fpu/s_fabs.c: Include
26110 <libm-alias-double.h>.
26111 (fabs): Define using libm_alias_double.
26112 * sysdeps/sparc/sparc64/fpu/s_lrint.S: Include
26113 <libm-alias-double.h>.
26114 (lrint): Define using libm_alias_double.
26115 (llrint): Likewise.
26116 * sysdeps/sparc/sparc64/fpu/s_nearbyint.S: Include
26117 <libm-alias-double.h>.
26118 (nearbyint): Define using libm_alias_double.
26119 * sysdeps/sparc/sparc64/fpu/s_rint.S: Include
26120 <libm-alias-double.h>.
26121 (rint): Define using libm_alias_double.
26122
26123 [BZ #22229]
26124 * sysdeps/sparc/sparc32/sparcv9/fpu/s_fabs.S: Include
26125 <math_ldbl_opt.h>.
26126 (fabsl): Define as compat symbol at version GLIBC_2_0 for libm.
26127
26128 * scripts/build-many-glibcs.py (Context.add_all_configs): Add
26129 SPARC --disable-multi-arch glibc variants.
26130
26131 * sysdeps/x86_64/fpu/multiarch/e_exp2f.c: Include
26132 <libm-alias-float.h>.
26133 (exp2f): Define using libm_alias_float, or libm_alias_float_other
26134 if [SHARED].
26135 * sysdeps/x86_64/fpu/multiarch/e_expf.c: Include
26136 <libm-alias-float.h>.
26137 (exp2f): Define using libm_alias_float, or libm_alias_float_other
26138 if [SHARED].
26139 * sysdeps/x86_64/fpu/multiarch/e_log2f.c: Include
26140 <libm-alias-float.h>.
26141 (exp2f): Define using libm_alias_float, or libm_alias_float_other
26142 if [SHARED].
26143 * sysdeps/x86_64/fpu/multiarch/e_logf.c: Include
26144 <libm-alias-float.h>.
26145 (exp2f): Define using libm_alias_float, or libm_alias_float_other
26146 if [SHARED].
26147 * sysdeps/x86_64/fpu/multiarch/e_powf.c: Include
26148 <libm-alias-float.h>.
26149 (exp2f): Define using libm_alias_float, or libm_alias_float_other
26150 if [SHARED].
26151 * sysdeps/x86_64/fpu/multiarch/s_ceilf.c: Include
26152 <libm-alias-float.h>.
26153 (ceilf): Define using libm_alias_float.
26154 * sysdeps/x86_64/fpu/multiarch/s_floorf.c: Include
26155 <libm-alias-float.h>.
26156 (floorf): Define using libm_alias_float.
26157 * sysdeps/x86_64/fpu/multiarch/s_fmaf.c: Include
26158 <libm-alias-float.h>.
26159 (fmaf): Define using libm_alias_float.
26160 * sysdeps/x86_64/fpu/multiarch/s_nearbyintf.c: Include
26161 <libm-alias-float.h>.
26162 (nearbyintf): Define using libm_alias_float.
26163 * sysdeps/x86_64/fpu/multiarch/s_rintf.c: Include
26164 <libm-alias-float.h>.
26165 (rintf): Define using libm_alias_float.
26166 * sysdeps/x86_64/fpu/multiarch/s_truncf.c: Include
26167 <libm-alias-float.h>.
26168 (truncf): Define using libm_alias_float.
26169 * sysdeps/x86_64/fpu/s_copysignf.S: Include <libm-alias-float.h>.
26170 (copysignf): Define using libm_alias_float.
26171 * sysdeps/x86_64/fpu/s_cosf.S: Include <libm-alias-float.h>.
26172 (cosf): Define using libm_alias_float.
26173 * sysdeps/x86_64/fpu/s_fabsf.c: Include <libm-alias-float.h>.
26174 (fabsf): Define using libm_alias_float.
26175 * sysdeps/x86_64/fpu/s_fmaxf.S: Include <libm-alias-float.h>.
26176 (fmaxf): Define using libm_alias_float.
26177 * sysdeps/x86_64/fpu/s_fminf.S: Include <libm-alias-float.h>.
26178 (fminf): Define using libm_alias_float.
26179 * sysdeps/x86_64/fpu/s_llrintf.S: Include <libm-alias-float.h>.
26180 (llrintf): Define using libm_alias_float.
26181 [!__ILP32__] (lrintf): Likewise.
26182 * sysdeps/x86_64/fpu/s_sincosf.S: Include <libm-alias-float.h>.
26183 (sincosf): Define using libm_alias_float.
26184 * sysdeps/x86_64/fpu/s_sinf.S: Include <libm-alias-float.h>.
26185 (sinf): Define using libm_alias_float.
26186 * sysdeps/x86_64/x32/fpu/s_lrintf.S: Include <libm-alias-float.h>.
26187 (lrintf): Define using libm_alias_float.
26188
26189 * sysdeps/x86_64/fpu/multiarch/s_atan.c: Include
26190 <libm-alias-double.h>.
26191 (atan): Define using libm_alias_double.
26192 * sysdeps/x86_64/fpu/multiarch/s_ceil.c: Include
26193 <libm-alias-double.h>.
26194 (ceil): Define using libm_alias_double.
26195 * sysdeps/x86_64/fpu/multiarch/s_floor.c: Include
26196 <libm-alias-double.h>.
26197 (floor): Define using libm_alias_double.
26198 * sysdeps/x86_64/fpu/multiarch/s_fma.c: Include
26199 <libm-alias-double.h>.
26200 (fma): Define using libm_alias_double.
26201 * sysdeps/x86_64/fpu/multiarch/s_nearbyint.c: Include
26202 <libm-alias-double.h>.
26203 (nearbyint): Define using libm_alias_double.
26204 * sysdeps/x86_64/fpu/multiarch/s_rint.c: Include
26205 <libm-alias-double.h>.
26206 (rint): Define using libm_alias_double.
26207 * sysdeps/x86_64/fpu/multiarch/s_sin.c: Include
26208 <libm-alias-double.h>.
26209 (sin): Define using libm_alias_double.
26210 (cos): Likewise.
26211 * sysdeps/x86_64/fpu/multiarch/s_tan.c: Include
26212 <libm-alias-double.h>.
26213 (tan): Define using libm_alias_double.
26214 * sysdeps/x86_64/fpu/multiarch/s_trunc.c: Include
26215 <libm-alias-double.h>.
26216 (trunc): Define using libm_alias_double.
26217 * sysdeps/x86_64/fpu/s_copysign.S: Include <libm-alias-double.h>.
26218 (copysign): Define using libm_alias_double.
26219 * sysdeps/x86_64/fpu/s_fabs.c: Include <libm-alias-double.h>.
26220 (fabs): Define using libm_alias_double.
26221 * sysdeps/x86_64/fpu/s_fmax.S: Include <libm-alias-double.h>.
26222 (fmax): Define using libm_alias_double.
26223 * sysdeps/x86_64/fpu/s_fmin.S: Include <libm-alias-double.h>.
26224 (fmin): Define using libm_alias_double.
26225 * sysdeps/x86_64/fpu/s_llrint.S: Include <libm-alias-double.h>.
26226 (llrint): Define using libm_alias_double.
26227 [!__ILP32__] (lrint): Likewise.
26228 * sysdeps/x86_64/x32/fpu/s_lrint.S: Include <libm-alias-double.h>.
26229 (lrint): Define using libm_alias_double.
26230
26231 2017-11-29 Adhemerval Zanella <adhemerval.zanella@linaro.org>
26232
26233 * sysdeps/sparc/sparc64/fpu/multiarch/Makefile
26234 (libm-sysdep_routines): Add s_rintf-generic and s_rint-generic
26235 objects.
26236 * sysdeps/sparc/sparc64/fpu/multiarch/s_rint-generic.S: New file.
26237 * sysdeps/sparc/sparc64/fpu/multiarch/s_rint.c: Likewise.
26238 * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf-generic.S: Likewise.
26239 * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf.c: Likewise.
26240 * sysdeps/sparc/sparc64/fpu/multiarch/s_rint.S: Remove file.
26241 * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf.S: Likewise.
26242
26243 * sysdeps/sparc/sparc64/fpu/multiarch/Makefile
26244 (libm-sysdep_routines): Add s_lrint-generic and s_lrintf-generic
26245 objects.
26246 * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint-generic.S: New file.
26247 * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint.c: Likewise.
26248 * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf-generic.S: Likewise.
26249 * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf.c: Likewise.
26250 * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint.S: Remove file.
26251 * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf.S: Likewise.
26252
26253 * sysdeps/sparc/sparc64/fpu/multiarch/Makefile
26254 (libm-sysdep_routines): Add s_nearbyint-generic and
26255 s_nearbyintf-generic objects.
26256 * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyint-generic.S: New file.
26257 * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyint.c: Likewise.
26258 * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyintf-generic.S: Likewise.
26259 * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyintf.c: Likewise.
26260 * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyint.S: Remove file.
26261 * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyintf.S: Likewise.
26262
26263 * sysdeps/sparc/sparc64/fpu/multiarch/Makefile (sysdeps_calls):
26264 Add s_finitef-generic and s_finite-generic objects.
26265 * sysdeps/sparc/sparc64/fpu/multiarch/s_finite-generic.S: New file.
26266 * sysdeps/sparc/sparc64/fpu/multiarch/s_finite.c: Likewise.
26267 * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef-generic.S: Likewise.
26268 * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef.c: Likewise.
26269 * sysdeps/sparc/sparc64/fpu/multiarch/s_finite.S: Remove file.
26270 * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef.S: Remove file.
26271
26272 * sysdeps/sparc/sparc64/fpu/multiarch/Makefile (sysdeps_calls):
26273 Add s_isinff-generic and s_isinf-generic objects.
26274 * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf-generic.S: New file.
26275 * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf.c: Likewise.
26276 * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff-generic.S: Likewise.
26277 * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff.c: Likewise.
26278 * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf.S: Remove file.
26279 * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff.S: Likewise.
26280
26281 * sysdeps/sparc/sparc64/fpu/multiarch/Makefile (sysdeps_calls):
26282 Add s_isnanf-generic and s_isnan-generic objects.
26283 * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan-generic.S: New file.
26284 * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf-generic.S: Likewise.
26285 * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan.c: Likewise.
26286 * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf.c: Likewise.
26287 * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan.S: Remove file.
26288 * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf.S: Likewise.
26289
26290 * sysdeps/sparc/sparc-ifunc.h (sparc_libm_ifunc_redirected): New
26291 macro.
26292 * sysdeps/sparc/sparc64/fpu/multiarch/Makefile (sysdep_calls): New
26293 rule.
26294 (sysdep_routines): Use sysdep_calls as base.
26295 (libm-sysdep_routines): Add generic rule for symbols shared with
26296 libc. Add s_signbit-generic and s_signbitf-generic objects.
26297 * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit.c: New file.
26298 * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf.c: Likewise.
26299 * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit-generic.S: Likewise.
26300 * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf-generic.S: Likewise.
26301 * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit.S: Remove file.
26302 * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf.S: Likewise.
26303
26304 2017-11-29 Joseph Myers <joseph@codesourcery.com>
26305
26306 * sysdeps/ia64/fpu/libm-symbols.h: Include <libm-alias-float.h>.
26307 * sysdeps/ia64/fpu/e_acosf.S (acosf): Use libm_alias_float_other.
26308 * sysdeps/ia64/fpu/e_acoshf.S (acoshf): Likewise.
26309 * sysdeps/ia64/fpu/e_asinf.S (asinf): Likewise.
26310 * sysdeps/ia64/fpu/e_atan2f.S (atan2f): Likewise.
26311 * sysdeps/ia64/fpu/e_atanhf.S (atanhf): Likewise.
26312 * sysdeps/ia64/fpu/e_coshf.S (coshf): Likewise.
26313 * sysdeps/ia64/fpu/e_exp10f.S (exp10f): Likewise.
26314 * sysdeps/ia64/fpu/e_exp2f.S (exp2f): Likewise.
26315 * sysdeps/ia64/fpu/e_expf.S (expf): Likewise.
26316 * sysdeps/ia64/fpu/e_fmodf.S (fmodf): Likewise.
26317 * sysdeps/ia64/fpu/e_hypotf.S (hypotf): Likewise.
26318 * sysdeps/ia64/fpu/e_lgammaf_r.c (lgammaf_r): Define using
26319 libm_alias_float_r.
26320 * sysdeps/ia64/fpu/e_log2f.S (log2f): Use libm_alias_float_other.
26321 * sysdeps/ia64/fpu/e_logf.S (log10f): Likewise.
26322 (logf): Likewise.
26323 * sysdeps/ia64/fpu/e_powf.S (powf): Likewise.
26324 * sysdeps/ia64/fpu/e_remainderf.S (remainderf): Likewise.
26325 * sysdeps/ia64/fpu/e_sinhf.S (sinhf): Likewise.
26326 * sysdeps/ia64/fpu/e_sqrtf.S (sqrtf): Likewise.
26327 * sysdeps/ia64/fpu/libm_sincosf.S (sincosf): Likewise.
26328 * sysdeps/ia64/fpu/s_asinhf.S (asinhf): Likewise.
26329 * sysdeps/ia64/fpu/s_atanf.S (atanf): Likewise.
26330 * sysdeps/ia64/fpu/s_cbrtf.S (cbrtf): Likewise.
26331 * sysdeps/ia64/fpu/s_ceilf.S (ceilf): Likewise.
26332 * sysdeps/ia64/fpu/s_copysign.S (copysignf): Define using
26333 libm_alias_float.
26334 * sysdeps/ia64/fpu/s_cosf.S (sinf): Use libm_alias_float_other.
26335 (cosf): Likewise.
26336 * sysdeps/ia64/fpu/s_erfcf.S (erfcf): Likewise.
26337 * sysdeps/ia64/fpu/s_erff.S (erff): Likewise.
26338 * sysdeps/ia64/fpu/s_expm1f.S (expm1f): Likewise.
26339 * sysdeps/ia64/fpu/s_fabsf.S (fabsf): Likewise.
26340 * sysdeps/ia64/fpu/s_fdimf.S (fdimf): Likewise.
26341 * sysdeps/ia64/fpu/s_floorf.S (floorf): Likewise.
26342 * sysdeps/ia64/fpu/s_fmaf.S (fmaf): Likewise.
26343 * sysdeps/ia64/fpu/s_fmaxf.S (fmaxf): Likewise.
26344 * sysdeps/ia64/fpu/s_frexpf.c (frexpf): Likewise.
26345 * sysdeps/ia64/fpu/s_ldexpf.c (ldexpf): Likewise.
26346 * sysdeps/ia64/fpu/s_log1pf.S (log1pf): Likewise.
26347 * sysdeps/ia64/fpu/s_logbf.S (logbf): Likewise.
26348 * sysdeps/ia64/fpu/s_modff.S (modff): Likewise.
26349 * sysdeps/ia64/fpu/s_nearbyintf.S (nearbyintf): Likewise.
26350 * sysdeps/ia64/fpu/s_nextafterf.S (nextafterf): Likewise.
26351 * sysdeps/ia64/fpu/s_rintf.S (rintf): Likewise.
26352 * sysdeps/ia64/fpu/s_roundf.S (roundf): Likewise.
26353 * sysdeps/ia64/fpu/s_scalblnf.c (scalblnf): Likewise.
26354 * sysdeps/ia64/fpu/s_scalbnf.c (scalbnf): Define using
26355 libm_alias_float.
26356 * sysdeps/ia64/fpu/s_tanf.S (tanf): Use libm_alias_float_other.
26357 * sysdeps/ia64/fpu/s_tanhf.S (tanhf): Likewise.
26358 * sysdeps/ia64/fpu/s_truncf.S (truncf): Likewise.
26359 * sysdeps/ia64/fpu/w_lgammaf_main.c
26360 [BUILD_LGAMMA && !USE_AS_COMPAT] (lgammaf): Likewise.
26361 * sysdeps/ia64/fpu/w_tgammaf_compat.S (tgammaf): Likewise.
26362
26363 2017-11-28 Mike FABIAN <mfabian@redhat.com>
26364 Alexandre Oliva <aoliva@redhat.com>
26365
26366 [BZ #17750]
26367 * Makefile: add fr_CA.UTF-8 to test-input and LOCALES.
26368 * localedata/fr_CA.UTF-8.in: New file with test data for backward
26369 accents sorting.
26370 * localedata/fr_FR.UTF-8.in: Fix test data for forward accents
26371 sorting.
26372 * localedata/locales/cs_CZ (LC_COLLATE): Remove “define DIACRIT_FORWARD”
26373 * localedata/locales/de_DE (LC_COLLATE): Likewise.
26374 * localedata/locales/hu_HU (LC_COLLATE): Likewise.
26375 * localedata/locales/lb_LU (LC_COLLATE): Likewise.
26376 * localedata/locales/yuw_PG (LC_COLLATE): Likewise.
26377 * localedata/locales/fr_CA (LC_COLLATE): Add “define DIACRIT_BACKWARD”
26378 * localedata/locales/iso14651_t1_common: Use “ifdef DIACRIT_FORWARD”
26379 instead of “ifdef DIACRIT_BACKWARD”.
26380
26381 2017-11-29 Adhemerval Zanella <adhemerval.zanella@linaro.org>
26382
26383 * config.h.in (HAVE_AS_VIS3_SUPPORT): Remove check for VIS3 support.
26384 * sysdeps/sparc/configure.ac (HAVE_AS_VIS3_SUPPORT): Likewise.
26385 * sysdeps//sparc/sparc32/sparcv9/fpu/multiarch/s_fdim.c: Likewise.
26386 * sysdeps//sparc/sparc32/sparcv9/fpu/multiarch/s_fdimf.c: Likewise.
26387 * sysdeps//sparc/sparc32/sparcv9/fpu/multiarch/s_fma.c: Likewise.
26388 * sysdeps//sparc/sparc32/sparcv9/fpu/multiarch/s_fmaf.c: Likewise.
26389 * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.c: Likewise.
26390 * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.c: Likewise.
26391 * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.c: Likewise.
26392 * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.c: Likewise.
26393 * sysdeps/sparc/sparc64/fpu/multiarch/s_fma.c: Likewise.
26394 * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaf.c: Likewise.
26395 * sysdeps/sparc/sparc64/fpu/multiarch/s_trunc.c: Likewise.
26396 * sysdeps/sparc/sparc64/fpu/multiarch/s_truncf.c: Likewise.
26397 * sysdeps/sparc/sparc-ifunc.h [!HAVE_AS_VIS3_SUPPORT]
26398 (SPARC_ASM_VIS3_IFUNC, SPARC_ASM_VIS3_VIS2_IFUNC): Remove macros.
26399 * sysdeps/sparc/sparc32/sparcv9/Makefile [$(have-as-vis3) != yes]
26400 (ASFLAGS.o, ASFLAGS-.os, ASFLAGS-.op, ASFLAGS-.oS): Remove rules.
26401 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile
26402 ($(have-as-vis3) == yes): Remove conditional.
26403 * sysdeps/sparc/sparc64/Makefile (($(have-as-vis3) == yes)):
26404 Likewise.
26405 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdim-generic.c: New
26406 file.
26407 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdimf-generic.c: New
26408 file.
26409 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fma-generic.c: New
26410 file.
26411 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaf-generic.c: New
26412 file.
26413 * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil-generic.c: New file.
26414 * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf-generic.c: New file.
26415 * sysdeps/sparc/sparc64/fpu/multiarch/s_floor-generic.c: New file.
26416 * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf-generic.c: New file.
26417 * sysdeps/sparc/sparc64/fpu/multiarch/s_fma-generic.c: New file.
26418 * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaf-generic.c: New file.
26419 * sysdeps/sparc/sparc64/fpu/multiarch/s_trunc-generic.c: New file.
26420 * sysdeps/sparc/sparc64/fpu/multiarch/s_truncf-generic.c: New file.
26421
26422 2017-11-29 Joseph Myers <joseph@codesourcery.com>
26423
26424 * sysdeps/ia64/fpu/libm-symbols.h: Include <libm-alias-double.h>.
26425 * sysdeps/ia64/fpu/e_acos.S (acos): Use libm_alias_double_other.
26426 * sysdeps/ia64/fpu/e_acosh.S (acosh): Likewise.
26427 * sysdeps/ia64/fpu/e_asin.S (asin): Likewise.
26428 * sysdeps/ia64/fpu/e_atan2.S (atan2): Likewise.
26429 * sysdeps/ia64/fpu/e_atanh.S (atanh): Likewise.
26430 * sysdeps/ia64/fpu/e_cosh.S (cosh): Likewise.
26431 * sysdeps/ia64/fpu/e_exp.S (exp): Likewise.
26432 * sysdeps/ia64/fpu/e_exp10.S (exp10): Likewise.
26433 * sysdeps/ia64/fpu/e_exp2.S (exp2): Likewise.
26434 * sysdeps/ia64/fpu/e_fmod.S (fmod): Likewise.
26435 * sysdeps/ia64/fpu/e_hypot.S (hypot): Likewise.
26436 * sysdeps/ia64/fpu/e_lgamma_r.c (lgamma_r): Define using
26437 libm_alias_double_r.
26438 * sysdeps/ia64/fpu/e_log.S (log10): Use libm_alias_double_other.
26439 (log): Likewise.
26440 * sysdeps/ia64/fpu/e_log2.S (log2): Likewise.
26441 * sysdeps/ia64/fpu/e_pow.S (pow): Likewise.
26442 * sysdeps/ia64/fpu/e_remainder.S (remainder): Likewise.
26443 * sysdeps/ia64/fpu/e_sinh.S (sinh): Likewise.
26444 * sysdeps/ia64/fpu/e_sqrt.S (sqrt): Likewise.
26445 * sysdeps/ia64/fpu/libm_sincos.S (sincos): Likewise.
26446 * sysdeps/ia64/fpu/s_asinh.S (asinh): Likewise.
26447 * sysdeps/ia64/fpu/s_atan.S (atan): Likewise.
26448 * sysdeps/ia64/fpu/s_cbrt.S (cbrt): Likewise.
26449 * sysdeps/ia64/fpu/s_ceil.S (ceil): Likewise.
26450 * sysdeps/ia64/fpu/s_copysign.S (copysign): Define using
26451 libm_alias_double.
26452 * sysdeps/ia64/fpu/s_cos.S (sin): Use libm_alias_double_other.
26453 (cos): Likewise.
26454 * sysdeps/ia64/fpu/s_erf.S (erf): Likewise.
26455 * sysdeps/ia64/fpu/s_erfc.S (erfc): Likewise.
26456 * sysdeps/ia64/fpu/s_expm1.S (expm1): Likewise.
26457 * sysdeps/ia64/fpu/s_fabs.S (fabs): Likewise.
26458 * sysdeps/ia64/fpu/s_fdim.S (fdim): Likewise.
26459 * sysdeps/ia64/fpu/s_floor.S (floor): Likewise.
26460 * sysdeps/ia64/fpu/s_fma.S (fma): Likewise.
26461 * sysdeps/ia64/fpu/s_fmax.S (fmax): Likewise.
26462 * sysdeps/ia64/fpu/s_frexp.c (frexp): Likewise.
26463 * sysdeps/ia64/fpu/s_ldexp.c (ldexp): Likewise.
26464 * sysdeps/ia64/fpu/s_log1p.S (log1p): Likewise.
26465 * sysdeps/ia64/fpu/s_logb.S (logb): Likewise.
26466 * sysdeps/ia64/fpu/s_modf.S (modf): Likewise.
26467 * sysdeps/ia64/fpu/s_nearbyint.S (nearbyint): Likewise.
26468 * sysdeps/ia64/fpu/s_nextafter.S (nextafter): Likewise.
26469 * sysdeps/ia64/fpu/s_rint.S (rint): Likewise.
26470 * sysdeps/ia64/fpu/s_round.S (round): Likewise.
26471 * sysdeps/ia64/fpu/s_scalbn.c (scalbn): Define using
26472 libm_alias_double.
26473 * sysdeps/ia64/fpu/s_tan.S (tan): Use libm_alias_double_other.
26474 * sysdeps/ia64/fpu/s_tanh.S (tanh): Likewise.
26475 * sysdeps/ia64/fpu/s_trunc.S (trunc): Likewise.
26476 * sysdeps/ia64/fpu/w_lgamma_main.c
26477 [BUILD_LGAMMA && !USE_AS_COMPAT] (lgamma): Likewise.
26478 * sysdeps/ia64/fpu/w_tgamma_compat.S (tgamma): Likewise.
26479
26480 2017-11-28 John David Anglin <danglin@gcc.gnu.org>
26481
26482 * sysdeps/hppa/start.S (_start): Check PIC instead of SHARED. Load
26483 address of $global$ into %dp register earlier. Use pc-relative
26484 instruction sequence for PIC case.
26485
26486 2017-11-28 Joseph Myers <joseph@codesourcery.com>
26487
26488 * sysdeps/i386/fpu/s_asinhf.S: Include <libm-alias-float.h>.
26489 (asinhf): Define using libm_alias_float.
26490 * sysdeps/i386/fpu/s_atanf.S: Include <libm-alias-float.h>.
26491 (atanf): Define using libm_alias_float.
26492 * sysdeps/i386/fpu/s_cbrtf.S: Include <libm-alias-float.h>.
26493 (cbrtf): Define using libm_alias_float.
26494 * sysdeps/i386/fpu/s_ceilf.S: Include <libm-alias-float.h>.
26495 (ceilf): Define using libm_alias_float.
26496 * sysdeps/i386/fpu/s_copysignf.S: Include <libm-alias-float.h>.
26497 (copysignf): Define using libm_alias_float.
26498 * sysdeps/i386/fpu/s_expm1f.S: Include <libm-alias-float.h>.
26499 (expm1f): Define using libm_alias_float.
26500 * sysdeps/i386/fpu/s_fabsf.S: Include <libm-alias-float.h>.
26501 (fabsf): Define using libm_alias_float.
26502 * sysdeps/i386/fpu/s_floorf.S: Include <libm-alias-float.h>.
26503 (floorf): Define using libm_alias_float.
26504 * sysdeps/i386/fpu/s_fmaxf.S: Include <libm-alias-float.h>.
26505 (fmaxf): Define using libm_alias_float.
26506 * sysdeps/i386/fpu/s_fminf.S: Include <libm-alias-float.h>.
26507 (fminf): Define using libm_alias_float.
26508 * sysdeps/i386/fpu/s_frexpf.S: Include <libm-alias-float.h>.
26509 (frexpf): Define using libm_alias_float.
26510 * sysdeps/i386/fpu/s_llrintf.S: Include <libm-alias-float.h>.
26511 (llrintf): Define using libm_alias_float.
26512 * sysdeps/i386/fpu/s_logbf.S: Include <libm-alias-float.h>.
26513 (logbf): Define using libm_alias_float.
26514 * sysdeps/i386/fpu/s_lrintf.S: Include <libm-alias-float.h>.
26515 (lrintf): Define using libm_alias_float.
26516 * sysdeps/i386/fpu/s_nearbyintf.S: Include <libm-alias-float.h>.
26517 (nearbyintf): Define using libm_alias_float.
26518 * sysdeps/i386/fpu/s_remquof.S: Include <libm-alias-float.h>.
26519 (remquof): Define using libm_alias_float.
26520 * sysdeps/i386/fpu/s_rintf.S: Include <libm-alias-float.h>.
26521 (rintf): Define using libm_alias_float.
26522 * sysdeps/i386/fpu/s_truncf.S: Include <libm-alias-float.h>.
26523 (truncf): Define using libm_alias_float.
26524 * sysdeps/i386/i686/fpu/multiarch/e_exp2f.c: Include
26525 <libm-alias-float.h>.
26526 (exp2f): Define using libm_alias_float, or libm_alias_float_other
26527 if [SHARED].
26528 * sysdeps/i386/i686/fpu/multiarch/e_expf.c: Include
26529 <libm-alias-float.h>.
26530 (expf): Define using libm_alias_float, or libm_alias_float_other
26531 if [SHARED].
26532 * sysdeps/i386/i686/fpu/multiarch/e_log2f.c: Include
26533 <libm-alias-float.h>.
26534 (log2f): Define using libm_alias_float, or libm_alias_float_other
26535 if [SHARED].
26536 * sysdeps/i386/i686/fpu/multiarch/e_logf.c: Include
26537 <libm-alias-float.h>.
26538 (logf): Define using libm_alias_float, or libm_alias_float_other
26539 if [SHARED].
26540 * sysdeps/i386/i686/fpu/multiarch/e_powf.c: Include
26541 <libm-alias-float.h>.
26542 (powf): Define using libm_alias_float, or libm_alias_float_other
26543 if [SHARED].
26544 * sysdeps/i386/i686/fpu/multiarch/s_cosf.c: Include
26545 <libm-alias-float.h>.
26546 (cosf): Define using libm_alias_float.
26547 * sysdeps/i386/i686/fpu/multiarch/s_sincosf.c: Include
26548 <libm-alias-float.h>.
26549 (sincosf): Define using libm_alias_float.
26550 * sysdeps/i386/i686/fpu/multiarch/s_sinf.c: Include
26551 <libm-alias-float.h>.
26552 (sinf): Define using libm_alias_float.
26553 * sysdeps/i386/i686/fpu/s_fmaxf.S: Include <libm-alias-float.h>.
26554 (fmaxf): Define using libm_alias_float.
26555 * sysdeps/i386/i686/fpu/s_fminf.S: Include <libm-alias-float.h>.
26556 (fminf): Define using libm_alias_float.
26557 * sysdeps/i386/i686/multiarch/s_fmaf.c: Include
26558 <libm-alias-float.h>.
26559 (fmaf): Define using libm_alias_float.
26560
26561 * sysdeps/i386/fpu/s_asinh.S: Include <libm-alias-double.h>.
26562 (asinh): Define using libm_alias_double.
26563 * sysdeps/i386/fpu/s_atan.S: Include <libm-alias-double.h>.
26564 (atan): Define using libm_alias_double.
26565 * sysdeps/i386/fpu/s_cbrt.S: Include <libm-alias-double.h>.
26566 (cbrt): Define using libm_alias_double.
26567 * sysdeps/i386/fpu/s_ceil.S: Include <libm-alias-double.h>.
26568 (ceil): Define using libm_alias_double.
26569 * sysdeps/i386/fpu/s_copysign.S: Include <libm-alias-double.h>.
26570 (copysign): Define using libm_alias_double.
26571 * sysdeps/i386/fpu/s_expm1.S: Include <libm-alias-double.h>.
26572 (expm1): Define using libm_alias_double.
26573 * sysdeps/i386/fpu/s_fabs.S: Include <libm-alias-double.h>.
26574 (fabs): Define using libm_alias_double.
26575 * sysdeps/i386/fpu/s_fdim.c: Include <libm-alias-double.h>.
26576 (fdim): Define using libm_alias_double.
26577 * sysdeps/i386/fpu/s_floor.S: Include <libm-alias-double.h>.
26578 (floor): Define using libm_alias_double.
26579 * sysdeps/i386/fpu/s_fmax.S: Include <libm-alias-double.h>.
26580 (fmax): Define using libm_alias_double.
26581 * sysdeps/i386/fpu/s_fmin.S: Include <libm-alias-double.h>.
26582 (fmin): Define using libm_alias_double.
26583 * sysdeps/i386/fpu/s_frexp.S: Include <libm-alias-double.h>.
26584 (frexp): Define using libm_alias_double.
26585 * sysdeps/i386/fpu/s_llrint.S: Include <libm-alias-double.h>.
26586 (llrint): Define using libm_alias_double.
26587 * sysdeps/i386/fpu/s_logb.S: Include <libm-alias-double.h>.
26588 (logb): Define using libm_alias_double.
26589 * sysdeps/i386/fpu/s_lrint.S: Include <libm-alias-double.h>.
26590 (lrint): Define using libm_alias_double.
26591 * sysdeps/i386/fpu/s_nearbyint.S: Include <libm-alias-double.h>.
26592 (nearbyint): Define using libm_alias_double.
26593 * sysdeps/i386/fpu/s_remquo.S: Include <libm-alias-double.h>.
26594 (remquo): Define using libm_alias_double.
26595 * sysdeps/i386/fpu/s_rint.S: Include <libm-alias-double.h>.
26596 (rint): Define using libm_alias_double.
26597 * sysdeps/i386/fpu/s_trunc.S: Include <libm-alias-double.h>.
26598 (trunc): Define using libm_alias_double.
26599 * sysdeps/i386/i686/fpu/s_fmax.S: Include <libm-alias-double.h>.
26600 (fmax): Define using libm_alias_double.
26601 * sysdeps/i386/i686/fpu/s_fmin.S: Include <libm-alias-double.h>.
26602 (fmin): Define using libm_alias_double.
26603 * sysdeps/i386/i686/multiarch/s_fma.c: Include <libm-alias-double.h>.
26604 (fma): Define using libm_alias_double.
26605
26606 2017-11-28 H.J. Lu <hongjiu.lu@intel.com>
26607
26608 [BZ #22370]
26609 * elf/dl-hwcaps.c (ROUND): Removed.
26610 (_dl_important_hwcaps): Replace ROUND with ELF_NOTE_DESC_OFFSET
26611 and ELF_NOTE_NEXT_OFFSET.
26612 * elf/dl-load.c (ROUND): Removed.
26613 (open_verify): Replace ROUND with ELF_NOTE_NEXT_OFFSET.
26614 * elf/readelflib.c (ROUND): Removed.
26615 (process_elf_file): Replace ROUND with ELF_NOTE_NEXT_OFFSET.
26616 * include/elf.h [!_ISOMAC]: Include <libc-pointer-arith.h>.
26617 [!_ISOMAC] (ELF_NOTE_DESC_OFFSET): New.
26618 [!_ISOMAC] (ELF_NOTE_NEXT_OFFSET): Likewise.
26619
26620 2017-11-28 Joseph Myers <joseph@codesourcery.com>
26621
26622 * sysdeps/s390/fpu/s_fmaf.c: Include <libm-alias-float.h>.
26623 [!__fmaf] (fmaf): Define using libm_alias_float.
26624
26625 * sysdeps/s390/fpu/s_fma.c: Include <libm-alias-double.h>.
26626 [!__fma] (fma): Define using libm_alias_double.
26627 * sysdeps/unix/sysv/linux/s390/fpu/s_fma.c: Remove.
26628
26629 2017-11-28 Mike FABIAN <mfabian@redhat.com>
26630
26631 [BZ #22336]
26632 * localedata/locales/cs_CZ (LC_COLLATE): Use “copy "iso14651_t1"”
26633 and implement the collation rules for cs from CLDR on top of that.
26634 * Makefile: Add cs_CZ.UTF-8 to test-input.
26635 * cs_CZ.UTF-8.in: New file with test data to test the Czech sorting.
26636
26637 2017-11-28 Siddhesh Poyarekar <siddhesh@sourceware.org>
26638
26639 * localedata/Makefile (LOCALES): Remove duplicate cs_CZ.UTF-8.
26640
26641 2017-11-28 Victor Rodriguez <victor.rodriguez.bahena@intel.com>
26642 Icarus Sparry <icarus.w.sparry@intel.com>
26643
26644 * benchtests/Makefile:Add BENCHSET to allow subsets of
26645 benchmarks to be run.
26646 * benchtests/README: Add documentation for: Running subsets of
26647 benchmarks.
26648
26649 2017-11-28 Victor Rodriguez <victor.rodriguez.bahena@intel.com>
26650
26651 * benchtests/scripts/benchout.schema.json: Fix regex to accept a wider
26652 range of tests names.
26653
26654 * benchtests/scripts/benchout.schema.json: Add throughput as accepted
26655 result from property and remove "max", min" and "mean" from
26656 required properties based on benchtests/bench-skeleton.c.
26657
26658 2017-11-28 Florian Weimer <fweimer@redhat.com>
26659
26660 [BZ #20826]
26661 Turn posix/tst-getaddrinfo4, posix/tst-getaddrinfo5 into xtests
26662 due to Internet requirement.
26663 * posix/Makefile (tests): Remove tst-getaddrinfo4,
26664 tst-getaddrinfo5.
26665 (xtests): Add tst-getaddrinfo4, tst-getaddrinfo5.
26666
26667 2017-11-28 Adhemerval Zanella <adhemerval.zanella@linaro.org>
26668
26669 * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile
26670 [$(subdir) = string] (sysdep_routines): Add memset-ultra1.
26671 * sysdeps/sparc/sparc64/multiarch/Makefile [$(subdir) = string]
26672 (sysdep_routines): Add memset-ultra1.
26673 * sysdeps/sparc/sparc32/sparcv9/multiarch/memset-ultra1.S: New
26674 file.
26675 * sysdeps/sparc/sparc32/sparcv9/multiarch/memset.c: Likewise.
26676 * sysdeps/sparc/sparc32/sparcv9/multiarch/bzero.c: Likewise.
26677 * sysdeps/sparc/sparc64/multiarch/ifunc-memset.h: Likewise.
26678 * sysdeps/sparc/sparc64/multiarch/memset-ultra1.S: Likewise.
26679 * sysdeps/sparc/sparc64/multiarch/memset.c: Likewise.
26680 * sysdeps/sparc/sparc64/multiarch/bzero.c: Likewise.
26681 * sysdeps/sparc/sparc32/sparcv9/multiarch/memset.S: Remove file.
26682 * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
26683
26684 * sysdeps/sparc/sparc32/sparcv9/multiarch/memcpy-ultra1.S: New
26685 file.
26686 * sysdeps/sparc/sparc32/sparcv9/multiarch/memcpy.c: Likewise.
26687 * sysdeps/sparc/sparc32/sparcv9/multiarch/mempcpy.c: Likewise.
26688 * sysdeps/sparc/sparc64/multiarch/ifunc-memcpy.h: Likewise.
26689 * sysdeps/sparc/sparc64/multiarch/memcpy-ultra1.S: Likewise.
26690 * sysdeps/sparc/sparc64/multiarch/memcpy.c: Likewise.
26691 * sysdeps/sparc/sparc64/multiarch/mempcpy.c: Likewise.
26692 * sysdeps/sparc/sparc-ifunc.h (sparc_libc_ifunc_redirected): New
26693 macro.
26694 * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile
26695 [$(subdir) = string] (sysdep_routines): Add memcpy-ultra1.
26696 * sysdeps/sparc/sparc64/multiarch/Makefile [$(subdir) = string]
26697 (sysdep_routines): Add memcpy-ultra1.
26698 * sysdeps/sparc/sparc64/multiarch/memcpy.S: Remove file.
26699 * sysdeps/sparc/sparc32/sparcv9/multiarch/memcpy.S: Likewise.
26700
26701 2017-11-28 Joseph Myers <joseph@codesourcery.com>
26702
26703 * sysdeps/alpha/fpu/cfloat-compat.h: Include <libm-alias-float.h>.
26704 (cfloat_versions): Take function argument without trailing 'f'.
26705 Call libm_alias_float_other.
26706 * sysdeps/alpha/fpu/cabsf.c: Update call to cfloat_versions.
26707 * sysdeps/alpha/fpu/cargf.c: Likewise.
26708 * sysdeps/alpha/fpu/cimagf.c: Likewise.
26709 * sysdeps/alpha/fpu/conjf.c: Likewise.
26710 * sysdeps/alpha/fpu/crealf.c: Likewise.
26711 * sysdeps/alpha/fpu/s_cacosf.c: Likewise.
26712 * sysdeps/alpha/fpu/s_cacoshf.c: Likewise.
26713 * sysdeps/alpha/fpu/s_casinf.c: Likewise.
26714 * sysdeps/alpha/fpu/s_casinhf.c: Likewise.
26715 * sysdeps/alpha/fpu/s_catanf.c: Likewise.
26716 * sysdeps/alpha/fpu/s_catanhf.c: Likewise.
26717 * sysdeps/alpha/fpu/s_ccosf.c: Likewise.
26718 * sysdeps/alpha/fpu/s_ccoshf.c: Likewise.
26719 * sysdeps/alpha/fpu/s_cexpf.c: Likewise.
26720 * sysdeps/alpha/fpu/s_clogf.c: Likewise.
26721 * sysdeps/alpha/fpu/s_cpowf.c: Likewise.
26722 * sysdeps/alpha/fpu/s_cprojf.c: Likewise.
26723 * sysdeps/alpha/fpu/s_csinf.c: Likewise.
26724 * sysdeps/alpha/fpu/s_csinhf.c: Likewise.
26725 * sysdeps/alpha/fpu/s_csqrtf.c: Likewise.
26726 * sysdeps/alpha/fpu/s_ctanf.c: Likewise.
26727 * sysdeps/alpha/fpu/s_ctanhf.c: Likewise.
26728 * sysdeps/alpha/fpu/s_clog10f.c: Include <libm-alias-float.h>.
26729 (clog10f): Use libm_alias_float_other.
26730 * sysdeps/alpha/fpu/s_ceilf.c: Include <libm-alias-float.h>.
26731 (ceilf): Define using libm_alias_float.
26732 * sysdeps/alpha/fpu/s_copysignf.c: Include <libm-alias-float.h>.
26733 (copysignf): Define using libm_alias_float.
26734 * sysdeps/alpha/fpu/s_fabsf.c: Include <libm-alias-float.h>.
26735 (fabsf): Define using libm_alias_float.
26736 * sysdeps/alpha/fpu/s_floorf.c: Include <libm-alias-float.h>.
26737 (floorf): Define using libm_alias_float.
26738 * sysdeps/alpha/fpu/s_fmax.S: Include <libm-alias-float.h>.
26739 (fmaxf): Define using libm_alias_float.
26740 * sysdeps/alpha/fpu/s_fmin.S: Include <libm-alias-float.h>.
26741 (fminf): Define using libm_alias_float.
26742 * sysdeps/alpha/fpu/s_lrintf.c: Include <libm-alias-float.h>.
26743 (lrintf): Define using libm_alias_float.
26744 (llrintf): Likewise.
26745 * sysdeps/alpha/fpu/s_lroundf.c: Include <libm-alias-float.h>.
26746 (lroundf): Define using libm_alias_float.
26747 (llroundf): Likewise.
26748 * sysdeps/alpha/fpu/s_rintf.c: Include <libm-alias-float.h>.
26749 (rintf): Define using libm_alias_float.
26750 * sysdeps/alpha/fpu/s_truncf.c: Include <libm-alias-float.h>.
26751 (truncf): Define using libm_alias_float.
26752
26753 * sysdeps/aarch64/fpu/s_ceilf.c: Include <libm-alias-float.h>.
26754 (ceilf): Define using libm_alias_float.
26755 * sysdeps/aarch64/fpu/s_floorf.c: Include <libm-alias-float.h>.
26756 (floorf): Define using libm_alias_float.
26757 * sysdeps/aarch64/fpu/s_fmaf.c: Include <libm-alias-float.h>.
26758 (fmaf): Define using libm_alias_float.
26759 * sysdeps/aarch64/fpu/s_fmaxf.c: Include <libm-alias-float.h>.
26760 (fmaxf): Define using libm_alias_float.
26761 * sysdeps/aarch64/fpu/s_fminf.c: Include <libm-alias-float.h>.
26762 (fminf): Define using libm_alias_float.
26763 * sysdeps/aarch64/fpu/s_llrintf.c: Include <libm-alias-float.h>.
26764 (llrintf): Define using libm_alias_float.
26765 * sysdeps/aarch64/fpu/s_llroundf.c: Include <libm-alias-float.h>.
26766 (llroundf): Define using libm_alias_float.
26767 * sysdeps/aarch64/fpu/s_lrintf.c: Include <libm-alias-float.h>.
26768 (lrintf): Define using libm_alias_float.
26769 * sysdeps/aarch64/fpu/s_lroundf.c: Include <libm-alias-float.h>.
26770 (lroundf): Define using libm_alias_float.
26771 * sysdeps/aarch64/fpu/s_nearbyintf.c: Include
26772 <libm-alias-float.h>.
26773 (nearbyintf): Define using libm_alias_float.
26774 * sysdeps/aarch64/fpu/s_rintf.c: Include <libm-alias-float.h>.
26775 (rintf): Define using libm_alias_float.
26776 * sysdeps/aarch64/fpu/s_roundf.c: Include <libm-alias-float.h>.
26777 (roundf): Define using libm_alias_float.
26778 * sysdeps/aarch64/fpu/s_truncf.c: Include <libm-alias-float.h>.
26779 (truncf): Define using libm_alias_float.
26780
26781 * sysdeps/alpha/fpu/s_ceil.c: Include <libm-alias-double.h>.
26782 (ceil): Define using libm_alias_double.
26783 * sysdeps/alpha/fpu/s_copysign.c: Include <libm-alias-double.h>.
26784 (copysign): Define using libm_alias_double.
26785 * sysdeps/alpha/fpu/s_fabs.c: Include <libm-alias-double.h>.
26786 (fabs): Define using libm_alias_double.
26787 * sysdeps/alpha/fpu/s_floor.c: Include <libm-alias-double.h>.
26788 (floor): Define using libm_alias_double.
26789 * sysdeps/alpha/fpu/s_fmax.S: Include <libm-alias-double.h>.
26790 (fmax): Define using libm_alias_double.
26791 * sysdeps/alpha/fpu/s_fmin.S: Include <libm-alias-double.h>.
26792 (fmin): Define using libm_alias_double.
26793 * sysdeps/alpha/fpu/s_lrint.c: Include <libm-alias-double.h>.
26794 (lrint): Define using libm_alias_double.
26795 (llrint): Likewise.
26796 * sysdeps/alpha/fpu/s_lround.c: Include <libm-alias-double.h>.
26797 (lround): Define using libm_alias_double.
26798 (llround): Likewise.
26799 * sysdeps/alpha/fpu/s_rint.c: Include <libm-alias-double.h>.
26800 (rint): Define using libm_alias_double.
26801 * sysdeps/alpha/fpu/s_trunc.c: Include <libm-alias-double.h>.
26802 (trunc): Define using libm_alias_double.
26803
26804 * sysdeps/ieee754/ldbl-opt/libm-alias-double.h
26805 (libm_alias_double_r): Add semicolon after weak_alias call.
26806
26807 2017-11-27 Joseph Myers <joseph@codesourcery.com>
26808
26809 * sysdeps/aarch64/fpu/s_ceil.c: Include <libm-alias-double.h>.
26810 (ceil): Define using libm_alias_double.
26811 * sysdeps/aarch64/fpu/s_floor.c: Include <libm-alias-double.h>.
26812 (floor): Define using libm_alias_double.
26813 * sysdeps/aarch64/fpu/s_fma.c: Include <libm-alias-double.h>.
26814 (fma): Define using libm_alias_double.
26815 * sysdeps/aarch64/fpu/s_fmax.c: Include <libm-alias-double.h>.
26816 (fmax): Define using libm_alias_double.
26817 * sysdeps/aarch64/fpu/s_fmin.c: Include <libm-alias-double.h>.
26818 (fmin): Define using libm_alias_double.
26819 * sysdeps/aarch64/fpu/s_llrint.c: Include <libm-alias-double.h>.
26820 (llrint): Define using libm_alias_double.
26821 * sysdeps/aarch64/fpu/s_llround.c: Include <libm-alias-double.h>.
26822 (llround): Define using libm_alias_double.
26823 * sysdeps/aarch64/fpu/s_lrint.c: Include <libm-alias-double.h>.
26824 (lrint): Define using libm_alias_double.
26825 * sysdeps/aarch64/fpu/s_lround.c: Include <libm-alias-double.h>.
26826 (lround): Define using libm_alias_double.
26827 * sysdeps/aarch64/fpu/s_nearbyint.c: Include <libm-alias-double.h>.
26828 (nearbyint): Define using libm_alias_double.
26829 * sysdeps/aarch64/fpu/s_rint.c: Include <libm-alias-double.h>.
26830 (rint): Define using libm_alias_double.
26831 * sysdeps/aarch64/fpu/s_round.c: Include <libm-alias-double.h>.
26832 (round): Define using libm_alias_double.
26833 * sysdeps/aarch64/fpu/s_trunc.c: Include <libm-alias-double.h>.
26834 (trunc): Define using libm_alias_double.
26835
26836 2017-11-27 Florian Weimer <fweimer@redhat.com>
26837
26838 * sysdeps/unix/sysv/linux/mlock2.c: New file.
26839 * sysdeps/unix/sysv/linux/tst-mlock2.c: Likewise.
26840 * sysdeps/unix/sysv/linux/Makefile (routines): Add mlock2.
26841 (tests): Add tst-mlock2.
26842 * sysdeps/unix/sysv/linux/Versions (GLIBC_2.27): Export mlock2.
26843 * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_MLOCK2)
26844 [__LINUX_KERNEL_VERSION >= 4.4]: Define.
26845 * sysdeps/unix/sysv/linux/libc**.abilist: Update.
26846 * manual/memory.texi (Page Lock Functions): Move @end deftypefun
26847 for mlock. Document mlock2.
26848
26849 2017-11-27 Joseph Myers <joseph@codesourcery.com>
26850
26851 * sysdeps/ia64/Makeconfig (float64x-alias-fcts): New variable.
26852 * sysdeps/ieee754/float128/Makeconfig (float64x-alias-fcts):
26853 Likewise.
26854 * sysdeps/ieee754/ldbl-128/Makeconfig (float64x-alias-fcts):
26855 Likewise.
26856 * sysdeps/x86/Makeconfig: New file.
26857 * bits/floatn-common.h (__HAVE_FLOAT64X): Remove macro.
26858 (__HAVE_FLOAT64X_LONG_DOUBLE): Likewise.
26859 * bits/floatn.h (__HAVE_FLOAT64X): New macro.
26860 (__HAVE_FLOAT64X_LONG_DOUBLE): Likewise.
26861 * sysdeps/ia64/bits/floatn.h (__HAVE_FLOAT64X): Likewise.
26862 (__HAVE_FLOAT64X_LONG_DOUBLE): Likewise.
26863 * sysdeps/ieee754/ldbl-128/bits/floatn.h (__HAVE_FLOAT64X):
26864 Likewise.
26865 (__HAVE_FLOAT64X_LONG_DOUBLE): Likewise.
26866 * sysdeps/mips/ieee754/bits/floatn.h (__HAVE_FLOAT64X): Likewise.
26867 (__HAVE_FLOAT64X_LONG_DOUBLE): Likewise.
26868 * sysdeps/powerpc/bits/floatn.h (__HAVE_FLOAT64X): Likewise.
26869 (__HAVE_FLOAT64X_LONG_DOUBLE): Likewise.
26870 * sysdeps/x86/bits/floatn.h (__HAVE_FLOAT64X): Likewise.
26871 (__HAVE_FLOAT64X_LONG_DOUBLE): Likewise.
26872 * manual/math.texi (Mathematics): Document support for _Float64x.
26873 * math/Versions (GLIBC_2.27): Add _Float64x functions.
26874 * stdlib/Versions (GLIBC_2.27): Likewise.
26875 * wcsmbs/Versions (GLIBC_2.27): Likewise.
26876 * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Update.
26877 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
26878 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
26879 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
26880 * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
26881 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
26882 * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
26883 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
26884 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
26885 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
26886 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
26887 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist:
26888 Likewise.
26889 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist:
26890 Likewise.
26891 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
26892 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
26893 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
26894 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
26895 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
26896 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
26897 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
26898 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
26899 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
26900 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
26901 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
26902 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
26903 * sysdeps/i386/fpu/libm-test-ulps: Likewise.
26904 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
26905
26906 2017-11-27 Andreas Schwab <schwab@suse.de>
26907
26908 * elf/Makefile (dl-routines): Add dl-sort-maps.
26909 * elf/dl-sort-maps.c: New file.
26910 * sysdeps/generic/ldsodefs.h (_dl_sort_fini): Don't declare.
26911 (_dl_sort_maps): Declare.
26912 * elf/dl-fini.c (_dl_sort_fini): Remove.
26913 (_dl_fini): Use _dl_sort_maps instead of _dl_sort_fini.
26914 * elf/dl-close.c (_dl_close_worker): Likewise.
26915 * elf/dl-deps.c (_dl_map_object_deps): Use _dl_sort_maps instead of
26916 open-coding it.
26917 * elf/dl-open.c (dl_open_worker): Likewise.
26918
26919 2017-11-24 Joseph Myers <joseph@codesourcery.com>
26920
26921 * sysdeps/ieee754/float128/s_fromfpf128.c (fromfpf128): Define
26922 using libm_alias_float128.
26923 * sysdeps/ieee754/float128/s_fromfpxf128.c (fromfpxf128):
26924 Likewise.
26925 * sysdeps/ieee754/float128/s_setpayloadf128.c (setpayloadf128):
26926 Likewise.
26927 * sysdeps/ieee754/float128/s_setpayloadsigf128.c
26928 (setpayloadsigf128): Likewise.
26929 * sysdeps/ieee754/float128/s_ufromfpf128.c (ufromfpf128):
26930 Likewise.
26931 * sysdeps/ieee754/float128/s_ufromfpxf128.c (ufromfpxf128):
26932 Likewise.
26933
26934 * sysdeps/powerpc/powerpc64le/Makefile ($(foreach
26935 suf,$(all-object-suffixes),$(objpfx)test-float64x%$(suf))): Add
26936 -mfloat128 to CFLAGS.
26937 ($(foreach
26938 suf,$(all-object-suffixes),$(objpfx)test-ifloat64x%$(suf))):
26939 Likewise.
26940 (CFLAGS-libm-test-support-float64x.c): New variable.
26941 ($(objpfx)test-float64x% $(objpfx)test-ifloat64x%): Add
26942 $(f128-loader-link) to gnulib-tests.
26943
26944 * sysdeps/generic/libm-alias-float128.h: Include <bits/floatn.h>.
26945 (libm_alias_float128_other_r): If
26946 [__HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE], define f64x
26947 alias.
26948 (libm_alias_float128_r): Add semicolon after weak_alias call.
26949 * sysdeps/generic/libm-alias-ldouble.h
26950 (libm_alias_ldouble_other_r_f128): New macro.
26951 (libm_alias_ldouble_other_r_f64x): Likewise.
26952 (libm_alias_ldouble_other_r): Use libm_alias_ldouble_other_r_f128
26953 and libm_alias_ldouble_other_r_f64x.
26954 (libm_alias_ldouble_r): Add semicolon after weak_alias call.
26955 * sysdeps/ieee754/ldbl-opt/libm-alias-ldouble.h
26956 (libm_alias_ldouble_other_r_f128): New macro.
26957 (libm_alias_ldouble_other_r_f64x): Likewise.
26958 (libm_alias_ldouble_other_r): Use libm_alias_ldouble_other_r_f128
26959 and libm_alias_ldouble_other_r_f64x.
26960
26961 * stdlib/strfroml.c: Always include <stdlib.h>.
26962 [__HAVE_FLOAT64X_LONG_DOUBLE] (strfromf64x): Define and later
26963 undefine as macro and define as weak alias.
26964 * sysdeps/ieee754/float128/strfromf128.c: Include <bits/floatn.h>.
26965 [__HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE]: Include
26966 <stdlib.h>.
26967 [__HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE] (strfromf64x):
26968 Define and later undefine as macro and define as weak alias.
26969
26970 * stdlib/strtold.c [__HAVE_FLOAT64X_LONG_DOUBLE] (strtof64x):
26971 Define and later undefine as macro. Define as weak alias if
26972 [!USE_WIDE_CHAR].
26973 [__HAVE_FLOAT64X_LONG_DOUBLE] (wcstof64x): Define and later
26974 undefine as macro. Define as weak alias if [USE_WIDE_CHAR].
26975 * sysdeps/ieee754/float128/strtof128.c: Include <bits/floatn.h>.
26976 [__HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE] (strtof64x):
26977 Define and later undefine as macro. Define as weak alias if
26978 [!USE_WIDE_CHAR].
26979 [__HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE] (wcstof64x):
26980 Define and later undefine as macro. Define as weak alias if
26981 [USE_WIDE_CHAR].
26982 * sysdeps/ieee754/float128/strtof128_l.c
26983 [__HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE] (strtof64x_l):
26984 Define and later undefine as macro. Define as weak alias if
26985 [!USE_WIDE_CHAR].
26986 [__HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE] (wcstof64x_l):
26987 Define and later undefine as macro. Define as weak alias if
26988 [USE_WIDE_CHAR].
26989 * sysdeps/ieee754/ldbl-128/strtold_l.c
26990 [__HAVE_FLOAT64X_LONG_DOUBLE] (strtof64x_l): Define and later
26991 undefine as macro. Define as weak alias if [!USE_WIDE_CHAR].
26992 [__HAVE_FLOAT64X_LONG_DOUBLE] (wcstof64x_l): Define and later
26993 undefine as macro. Define as weak alias if [USE_WIDE_CHAR].
26994 * sysdeps/ieee754/ldbl-64-128/strtold_l.c
26995 [__HAVE_FLOAT64X_LONG_DOUBLE] (strtof64x_l): Define and later
26996 undefine as macro. Define as weak alias if [!USE_WIDE_CHAR].
26997 [__HAVE_FLOAT64X_LONG_DOUBLE] (wcstof64x_l): Define and later
26998 undefine as macro. Define as weak alias if [USE_WIDE_CHAR].
26999 * sysdeps/ieee754/ldbl-96/strtold_l.c
27000 [__HAVE_FLOAT64X_LONG_DOUBLE] (strtof64x_l): Define and later
27001 undefine as macro. Define as weak alias if [!USE_WIDE_CHAR].
27002 [__HAVE_FLOAT64X_LONG_DOUBLE] (wcstof64x_l): Define and later
27003 undefine as macro. Define as weak alias if [USE_WIDE_CHAR].
27004
27005 * math/test-float64x.h: New file.
27006 * math/Makefile (type-float64x-yes): New variable.
27007 (test-types): Add $(type-float64x-$(float64x-alias-fcts)).
27008
27009 * sysdeps/generic/math_private.h (min_of_type_f): Make into a
27010 function-like macro.
27011 (min_of_type_): Likewise.
27012 (min_of_type_l): Likewise.
27013 (min_of_type_f128): Likewise.
27014 (min_of_type): Pass () as last argument of __MATH_TG.
27015
27016 * stdlib/tst-strtod-round-skeleton.c
27017 (__STDC_WANT_IEC_60559_TYPES_EXT__): Define before including
27018 headers.
27019
27020 * math/gen-tgmath-tests.py (Type.init_types): Pass suffix argument
27021 for combinations of long double with _Float64 and _Float64x.
27022
27023 * bits/libm-simd-decl-stubs.h (__DECL_SIMD_cosf16): New macro.
27024 (__DECL_SIMD_cosf32): Likewise.
27025 (__DECL_SIMD_cosf64): Likewise.
27026 (__DECL_SIMD_cosf32x): Likewise.
27027 (__DECL_SIMD_cosf64x): Likewise.
27028 (__DECL_SIMD_cosf128x): Likewise.
27029 (__DECL_SIMD_sinf16): Likewise.
27030 (__DECL_SIMD_sinf32): Likewise.
27031 (__DECL_SIMD_sinf64): Likewise.
27032 (__DECL_SIMD_sinf32x): Likewise.
27033 (__DECL_SIMD_sinf64x): Likewise.
27034 (__DECL_SIMD_sinf128x): Likewise.
27035 (__DECL_SIMD_sincosf16): Likewise.
27036 (__DECL_SIMD_sincosf32): Likewise.
27037 (__DECL_SIMD_sincosf64): Likewise.
27038 (__DECL_SIMD_sincosf32x): Likewise.
27039 (__DECL_SIMD_sincosf64x): Likewise.
27040 (__DECL_SIMD_sincosf128x): Likewise.
27041 (__DECL_SIMD_logf16): Likewise.
27042 (__DECL_SIMD_logf32): Likewise.
27043 (__DECL_SIMD_logf64): Likewise.
27044 (__DECL_SIMD_logf32x): Likewise.
27045 (__DECL_SIMD_logf64x): Likewise.
27046 (__DECL_SIMD_logf128x): Likewise.
27047 (__DECL_SIMD_expf16): Likewise.
27048 (__DECL_SIMD_expf32): Likewise.
27049 (__DECL_SIMD_expf64): Likewise.
27050 (__DECL_SIMD_expf32x): Likewise.
27051 (__DECL_SIMD_expf64x): Likewise.
27052 (__DECL_SIMD_expf128x): Likewise.
27053 (__DECL_SIMD_powf16): Likewise.
27054 (__DECL_SIMD_powf32): Likewise.
27055 (__DECL_SIMD_powf64): Likewise.
27056 (__DECL_SIMD_powf32x): Likewise.
27057 (__DECL_SIMD_powf64x): Likewise.
27058 (__DECL_SIMD_powf128x): Likewise.
27059
27060 * stdlib/Versions (libc): Move entries for wcstof128 and
27061 wcstof128_l to ....
27062 * wcsmbs/Versions (libc): ... here.
27063 Include <float128-abi.h>.
27064
27065 2017-11-24 Florian Weimer <fweimer@redhat.com>
27066
27067 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
27068 bits/mman-shared.h.
27069 * sysdeps/unix/sysv/linux/bits/mman-linux.h: Include
27070 <bits/mman-shared.h>.
27071 (MFD_CLOEXEC, MFD_ALLOW_SEALING, MFD_HUGETLB, memfd_create): Move
27072 to ...
27073 * sysdeps/unix/sysv/linux/bits/mman-shared.h: ... this new file.
27074 Add #ifndef guard for the MFD_* constants based on MFD_CLOEXEC.
27075 * sysdeps/unix/sysv/linux/hppa/bits/mman.h: Include
27076 <bits/mman-shared.h>.
27077
27078 2017-11-24 Adhemerval Zanella <adhemerval.zanella@linaro.org>
27079
27080 [BZ #22457]
27081 * sysdeps/posix/preadv_common.c (PREADV): Use mmap/munmap instead of
27082 posix_memalign/free.
27083 * sysdeps/posix/pwritev_common.c (PWRITEV): Likewise.
27084
27085 2017-11-22 Mike FABIAN <mfabian@redhat.com>
27086
27087 [BZ #22469]
27088 * localedata/locales/pl_PL (LC_COLLATE): Use “copy "iso14651_t1"”
27089 and implement the collation rules for pl from CLDR on top of that.
27090 * Makefile: Add pl_PL.UTF-8 to test-input and to the list
27091 of locales to be built for testing.
27092 * pl_PL.UTF-8.in: New file with test data to test the Polish sorting.
27093
27094 2017-11-23 Joseph Myers <joseph@codesourcery.com>
27095
27096 * sysdeps/ia64/fpu/libm-symbols.h: Include <libm-alias-ldouble.h>.
27097 * sysdeps/ia64/fpu/e_acoshl.S (acoshl): Use
27098 libm_alias_ldouble_other.
27099 * sysdeps/ia64/fpu/e_acosl.S (acosl): Likewise.
27100 * sysdeps/ia64/fpu/e_asinl.S (asinl): Likewise.
27101 * sysdeps/ia64/fpu/e_atanhl.S (atanhl): Likewise.
27102 * sysdeps/ia64/fpu/e_coshl.S (coshl): Likewise.
27103 * sysdeps/ia64/fpu/e_exp10l.S (exp10l): Likewise.
27104 * sysdeps/ia64/fpu/e_exp2l.S (exp2l): Likewise.
27105 * sysdeps/ia64/fpu/e_fmodl.S (fmodl): Likewise.
27106 * sysdeps/ia64/fpu/e_hypotl.S (hypotl): Likewise.
27107 * sysdeps/ia64/fpu/e_lgammal_r.c (lgammal_r): Define using
27108 libm_alias_ldouble_r.
27109 * sysdeps/ia64/fpu/e_log2l.S (log2l): Use
27110 libm_alias_ldouble_other.
27111 * sysdeps/ia64/fpu/e_logl.S (logl): Likewise.
27112 (log10l): Likewise.
27113 * sysdeps/ia64/fpu/e_powl.S (powl): Likewise.
27114 * sysdeps/ia64/fpu/e_remainderl.S (remainderl): Likewise.
27115 * sysdeps/ia64/fpu/e_sinhl.S (sinhl): Likewise.
27116 * sysdeps/ia64/fpu/e_sqrtl.S (sqrtl): Likewise.
27117 * sysdeps/ia64/fpu/libm_sincosl.S (sincosl): Likewise.
27118 * sysdeps/ia64/fpu/s_asinhl.S (asinhl): Likewise.
27119 * sysdeps/ia64/fpu/s_atanl.S (atanl): Likewise.
27120 (atan2l): Likewise.
27121 * sysdeps/ia64/fpu/s_cbrtl.S (cbrtl): Likewise.
27122 * sysdeps/ia64/fpu/s_ceill.S (ceill): Likewise.
27123 * sysdeps/ia64/fpu/s_copysign.S (copysignl): Define using
27124 libm_alias_ldouble.
27125 * sysdeps/ia64/fpu/s_cosl.S (sinl): Use libm_alias_ldouble_other.
27126 (cosl): Likewise.
27127 * sysdeps/ia64/fpu/s_erfcl.S (erfcl): Likewise.
27128 * sysdeps/ia64/fpu/s_erfl.S (erfl): Likewise.
27129 * sysdeps/ia64/fpu/s_expm1l.S (expm1l): Likewise.
27130 (expl): Likewise.
27131 * sysdeps/ia64/fpu/s_fabsl.S (fabsl): Likewise.
27132 * sysdeps/ia64/fpu/s_fdiml.S (fdiml): Likewise.
27133 * sysdeps/ia64/fpu/s_floorl.S (floorl): Likewise.
27134 * sysdeps/ia64/fpu/s_fmal.S (fmal): Likewise.
27135 * sysdeps/ia64/fpu/s_fmaxl.S (fmaxl): Likewise.
27136 * sysdeps/ia64/fpu/s_frexpl.c (frexpl): Likewise.
27137 * sysdeps/ia64/fpu/s_ldexpl.c (ldexpl): Likewise.
27138 * sysdeps/ia64/fpu/s_log1pl.S (log1pl): Likewise.
27139 * sysdeps/ia64/fpu/s_logbl.S (logbl): Likewise.
27140 * sysdeps/ia64/fpu/s_modfl.S (modfl): Likewise.
27141 * sysdeps/ia64/fpu/s_nearbyintl.S (nearbyintl): Define using
27142 libm_alias_ldouble.
27143 * sysdeps/ia64/fpu/s_nextafterl.S (nextafterl): Use
27144 libm_alias_ldouble_other.
27145 * sysdeps/ia64/fpu/s_rintl.S (rintl): Likewise.
27146 * sysdeps/ia64/fpu/s_roundl.S (roundl): Likewise.
27147 * sysdeps/ia64/fpu/s_scalbnl.c (scalbnl): Define using
27148 libm_alias_ldouble.
27149 * sysdeps/ia64/fpu/s_tanhl.S (tanhl): Use
27150 libm_alias_ldouble_other.
27151 * sysdeps/ia64/fpu/s_tanl.S (tanl): Likewise.
27152 * sysdeps/ia64/fpu/s_truncl.S (truncl): Likewise.
27153 * sysdeps/ia64/fpu/w_lgammal_main.c
27154 [BUILD_LGAMMA && !USE_AS_COMPAT] (lgammal): Likewise.
27155 * sysdeps/ia64/fpu/w_tgammal_compat.S (tgammal): Likewise.
27156
27157 2017-11-23 Florian Weimer <fweimer@redhat.com>
27158
27159 * malloc/malloc.c (tcache_thread_shutdown): Rename from
27160 tcache_thread_freeres. Define for USE_TCACHE and !USE_TCACHE
27161 alike. Remove freeres marker.
27162 * malloc/arena.c (arena_thread_freeres): Call
27163 tcache_thread_shutdown.
27164
27165 2017-11-23 Florian Weimer <fweimer@redhat.com>
27166
27167 [BZ #22459]
27168 Export nscd hash function as __nss_hash.
27169 * include/nss.h (__nss_hash): Declare.
27170 * nis/nis_hash.c (__nis_hash): Call __nss_hash. Turn into compat
27171 symbol.
27172 * nscd/Makefile (aux, nscd-modules): Remove nscd_hash.
27173 * nscd/cache.c (cache_search, cache_add): Call __nss_hash instead
27174 of __nscd_hash.
27175 * nscd/nscd_helper.c (__nscd_cache_search): Likewise.
27176 * nscd/nscd_hash.h, nscd/nscd_hash.c: Remove files.
27177 * nss/Makefiles (routines): Add nss_hash.
27178 * nss/Versions (GLIBC_PRIVATE): Export __nss_hash.
27179 * nss/nss_hash.c: Rename from nis/nis_hash.c.
27180 (__nss_hash): Rename from __nis_hash. Define hidden alias.
27181 * nis/rpcsvc/nislib.h (__nis_hash): Remove declaration.
27182
27183 2017-11-23 Florian Weimer <fweimer@redhat.com>
27184
27185 [BZ #22478]
27186 * sysdeps/unix/sysv/linux/sigwait.c (__sigwait): Retry on EINTR.
27187 Return error code, not -1.
27188 * signal/tst-sigwait-eintr.c: New file.
27189 * signal/Makefile (tests): Add tst-sigwait-eintr.
27190
27191 2017-11-23 Florian Weimer <fweimer@redhat.com>
27192
27193 Linux: Add memfd_create system call wrapper
27194 * sysdeps/unix/sysv/linux/Makefile [misc] (tests): Add
27195 tst-memfd_create.
27196 * sysdeps/unix/sysv/linux/bits/mman-linux.h [__USE_GNU]
27197 (MFD_CLOEXEC, MFD_ALLOW_SEALING): Define.
27198 [__USE_GNU] (memfd_create): Declare.
27199 * sysdeps/unix/sysv/linux/Versions (GLIBC_2.27): Add memfd_create.
27200 * sysdeps/unix/sysv/linux/syscalls.list (memfd_create): Add.
27201 * sysdeps/unix/sysv/linux/tst-memfd_create.c: New file.
27202 * sysdeps/unix/sysv/linux/**.abilist: Update.
27203 * manual/llio.texi (Memory-mapped I/O): Document memfd_create.
27204
27205 2017-11-22 Joseph Myers <joseph@codesourcery.com>
27206
27207 * localedata/gen-locale.sh: Fix typo in variable name.
27208
27209 * resolv/res_debug.c (p_secstodate): Condition definition on
27210 [SHLIB_COMPAT (libresolv, GLIBC_2_0, GLIBC_2_27)]. Define
27211 directly as __p_secstodate, and as a compat symbol. Do not use
27212 libresolv_hidden_def.
27213 * resolv/resolv.h (p_secstodate): Remove macro and function
27214 declaration.
27215 * resolv/ns_print.c (ns_sprintrrf): Print times with %lu, not
27216 using p_secstodate.
27217 * include/resolv.h (__p_secstodate): Do not use
27218 libresolv_hidden_proto.
27219 * resolv/Makefile (tests): Move tst-p_secstodate to ....
27220 (tests-internal): ... here.
27221 * resolv/tst-p_secstodate.c: Include <shlib-compat.h>. Condition
27222 all contents on [TEST_COMPAT (libresolv, GLIBC_2_0, GLIBC_2_27)]
27223 and declare and use __p_secstodate and use compat_symbol_reference
27224 in that case.
27225 [!TEST_COMPAT (libresolv, GLIBC_2_0, GLIBC_2_27)] (do_test): Add
27226 implementation returning 77.
27227
27228 [BZ #22463]
27229 * resolv/res_debug.c: Include <libc-diag.h>.
27230 (p_secstodate): Assert time_t at least as wide as u_long. On
27231 overflow, use integer seconds since the epoch as output, or use
27232 "<overflow>" as output and set errno to EOVERFLOW if integer
27233 seconds since the epoch would be 14 or more characters.
27234 (p_secstodate) [__GNUC_PREREQ (7, 0)]: Disable -Wformat-overflow=
27235 for sprintf call.
27236 * resolv/tst-p_secstodate.c: New file.
27237 * resolv/Makefile (tests): Add tst-p_secstodate.
27238 ($(objpfx)tst-p_secstodate): Depend on $(objpfx)libresolv.so.
27239
27240 * sysdeps/sparc/sparc64/soft-fp/s_frexpl.c: Remove file.
27241 * sysdeps/sparc/sparc64/soft-fp/s_scalblnl.c: Likewise.
27242 * sysdeps/sparc/sparc64/soft-fp/s_scalbnl.c: Likewise.
27243
27244 2017-11-22 Paul Eggert <eggert@cs.ucla.edu>
27245
27246 * posix/regcomp.c (init_word_char): Add comments.
27247
27248 2017-11-22 Joseph Myers <joseph@codesourcery.com>
27249
27250 [BZ #22447]
27251 * sysdeps/unix/getlogin_r.c (__getlogin_r): Use __strnlen not
27252 strlen to compute length of ut_user and set trailing NUL byte of
27253 result explicitly.
27254
27255 2017-11-21 Mike FABIAN <mfabian@redhat.com>
27256
27257 [BZ #15537]
27258 * localedata/locales/lv_LV (LC_COLLATE): Fix collation by
27259 using “copy "iso14651_t1"” and then implementing the
27260 collation rules for lv from CLDR on top of that.
27261 * Makefile: Add lv_LV.UTF-8 to test-input and to the list
27262 of locales to be built for testing.
27263 * lv_LV.UTF-8.in: New file with test data to test the Latvian
27264 sorting.
27265
27266 2017-11-21 Joseph Myers <joseph@codesourcery.com>
27267
27268 * sysdeps/unix/sysv/linux/hppa/bits/mman.h
27269 [__USE_MISC] (MADV_SPACEAVAIL): Remove macro.
27270 [__USE_MISC] (MADV_VPS_PURGE): Likewise.
27271 [__USE_MISC] (MADV_VPS_INHERIT): Likewise.
27272 [__USE_MISC] (MADV_HWPOISON): New macro.
27273 [__USE_MISC] (MADV_SOFT_OFFLINE): Likewise.
27274
27275 2017-11-21 Adhemerval Zanella <adhemerval.zanella@linaro.org>
27276
27277 * nptl/pthreadP.h (ASSERT_PTHREAD_INTERNAL_SIZE): Add workarond for
27278 -Wmissing-braces on GCC 4.9.
27279
27280 2017-11-21 Stefan Liebler <stli@linux.vnet.ibm.com>
27281
27282 * sysdeps/s390/s390-64/start.S (_start): Add cfi information for r14.
27283 * sysdeps/s390/s390-32/start.S (_start): Likewise
27284 * sysdeps/unix/sysv/linux/s390/s390-64/clone.S
27285 (thread_start): Likewise.
27286 * sysdeps/unix/sysv/linux/s390/s390-32/clone.S
27287 (thread_start): Likewise.
27288 * sysdeps/unix/sysv/linux/s390/s390-64/__makecontext_ret.S
27289 (__makecontext_ret): Likewise.
27290 * sysdeps/unix/sysv/linux/s390/s390-32/__makecontext_ret.S
27291 (__makecontext_ret): Likewise.
27292
27293 2017-11-21 Stefan Liebler <stli@linux.vnet.ibm.com>
27294
27295 * include/wchar.h (__wcsnlen, __wcscat, __wcsncpy, __wcpncpy,
27296 __wcschrnul): Remove attribute_hidden.
27297
27298 2017-11-20 Paul Eggert <eggert@cs.ucla.edu>
27299
27300 regex: don't assume uint64_t or uint32_t
27301 This avoids -Werror=overflow errors for 32-bit systems in
27302 the 64-bit case. Problem reported by Joseph Myers in:
27303 https://sourceware.org/ml/libc-alpha/2017-11/msg00694.html
27304 Also, when this code is used in Gnulib it ports to platforms
27305 that lack uint64_t and uint32_t. The C standard doesn't guarantee
27306 them, and on some 32-bit compilers there is no uint64_t.
27307 Problem reported by Gianluigi Tiesi in:
27308 http://lists.gnu.org/archive/html/bug-gnulib/2012-03/msg00154.html
27309 * posix/regcomp.c (init_word_char): Don't assume that the types
27310 uint64_t and uint32_t exist. Adapted from Gnulib patch
27311 2012-05-27T06:40:00!eggert@cs.ucla.edu. See:
27312 https://git.savannah.gnu.org/cgit/gnulib.git/commit/?id=252b52457da7887667c036d18cc5169777615bb0
27313
27314 2017-11-20 Siddhesh Poyarekar <siddhesh@sourceware.org>
27315
27316 * sysdeps/aarch64/memset-reg.h: New file.
27317 * sysdeps/aarch64/memset.S: Use it.
27318 (__memset): Rename to MEMSET macro.
27319 [ZVA_MACRO]: Use zva_macro.
27320 * sysdeps/aarch64/multiarch/Makefile (sysdep_routines):
27321 Add memset_generic and memset_falkor.
27322 * sysdeps/aarch64/multiarch/ifunc-impl-list.c
27323 (__libc_ifunc_impl_list): Add memset ifuncs.
27324 * sysdeps/aarch64/multiarch/init-arch.h (INIT_ARCH): New
27325 local variable zva_size.
27326 * sysdeps/aarch64/multiarch/memset.c: New file.
27327 * sysdeps/aarch64/multiarch/memset_generic.S: New file.
27328 * sysdeps/aarch64/multiarch/memset_falkor.S: New file.
27329 * sysdeps/aarch64/multiarch/rtld-memset.S: New file.
27330 * sysdeps/unix/sysv/linux/aarch64/cpu-features.c
27331 (DCZID_DZP_MASK): New macro.
27332 (DCZID_BS_MASK): Likewise.
27333 (init_cpu_features): Read and set zva_size.
27334 * sysdeps/unix/sysv/linux/aarch64/cpu-features.h
27335 (struct cpu_features): New member zva_size.
27336
27337 * benchtests/bench-memcpy-walk.c (START_SIZE): Set to 128.
27338 * benchtests/bench-memmove-walk.c (START_SIZE): Likewise.
27339 * benchtests/bench-memset-walk.c (START_SIZE): Likewise.
27340
27341 * benchtests/bench-memcpy-walk.c (do_one_test): Copy only
27342 backwards. Fix timing computation.
27343 * benchtests/bench-memmove-walk.c (do_one_test): Likewise.
27344 * benchtests/bench-memset-walk.c (do_one_test): Walk backwards
27345 on memset by N at a time. Fix timing computation.
27346
27347 2017-11-20 Florian Weimer <fweimer@redhat.com>
27348
27349 * manual/llio.texi (Memory-mapped I/O): Document MAP_HUGETLB,
27350 MADV_HUGEPAGE, MADV_NOHUGEPAGE.
27351
27352 2017-11-19 Florian Weimer <fweimer@redhat.com>
27353
27354 manual: Document mprotect
27355 * manual/memory.texi (Memory Protection): New section.
27356 * manual/llio.texi (Memory-mapped I/O): Remove duplicate
27357 documentation of PROT_* flags and reference the Memory Protection
27358 section instead.
27359
27360 2017-11-19 Florian Weimer <fweimer@redhat.com>
27361
27362 * manual/llio.texi (I/O Primitives): Move preadv, preadv64,
27363 pwritev, pwritev64, preadv2, preadv64v2, pwritev2, pwritev64v2 ...
27364 (Scatter-Gather): ... to here. Remove misleading comment.
27365
27366 2017-11-18 Christian Brauner <christian.brauner@ubuntu.com>
27367
27368 * support/support_become_root.c (setup_uid_gid_mapping): Fix comment
27369 style.
27370
27371 * support/support_become_root.c (setup_uid_gid_mapping): Don't fail
27372 when /proc/<pid>/setgroups does not exist.
27373
27374 2017-11-18 Florian Weimer <fweimer@redhat.com>
27375
27376 * sysdeps/unix/sysv/linux/tst-ttyname.c
27377 (become_root_in_mount_ns): Remove.
27378 (do_in_chroot_1): Call support_enter_mount_namespace.
27379 (do_in_chroot_2): Likewise.
27380 (do_test): Call support_become_root early.
27381
27382 2017-11-18 Florian Weimer <fweimer@redhat.com>
27383
27384 * support/namespace.h (support_enter_mount_namespace): Declare.
27385 * support/support_enter_mount_namespace.c: New file.
27386 * support/Makefile (libsupport-routines): Add
27387 support_enter_mount_namespace.
27388
27389 2017-11-18 Florian Weimer <fweimer@redhat.com>
27390
27391 * support/temp_file.c (support_create_temp_directory): Use
27392 test_dir and do not rely on the presence of the XXXXXX suffix.
27393 * support/temp_file.h (support_create_temp_directory): Update
27394 comment.
27395 * support/tst-xreadlink.c (do_test): Adjust.
27396 * support/support_chroot.c (support_chroot_create): Likewise.
27397
27398 2017-11-17 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
27399
27400 * sysdeps/powerpc/bits/hwcap.h (PPC_FEATURE2_HTM_NO_SUSPEND): New
27401 macro.
27402 * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_cap_flags): Add
27403 htm-no-suspend.
27404
27405 2017-11-17 Joseph Myers <joseph@codesourcery.com>
27406
27407 * sysdeps/x86_64/fpu/e_expl.S: Include <libm-alias-ldouble.h>.
27408 [USE_AS_EXPM1L] (expm1l): Define using libm_alias_ldouble.
27409 * sysdeps/x86_64/fpu/s_ceill.S: Include <libm-alias-ldouble.h>.
27410 (ceill): Define using libm_alias_ldouble.
27411 * sysdeps/x86_64/fpu/s_copysignl.S: Include
27412 <libm-alias-ldouble.h>.
27413 (copysignl): Define using libm_alias_ldouble.
27414 * sysdeps/x86_64/fpu/s_fabsl.S: Include <libm-alias-ldouble.h>.
27415 (fabsl): Define using libm_alias_ldouble.
27416 * sysdeps/x86_64/fpu/s_floorl.S: Include <libm-alias-ldouble.h>.
27417 (floorl): Define using libm_alias_ldouble.
27418 * sysdeps/x86_64/fpu/s_fmaxl.S: Include <libm-alias-ldouble.h>.
27419 (fmaxl): Define using libm_alias_ldouble.
27420 * sysdeps/x86_64/fpu/s_fminl.S: Include <libm-alias-ldouble.h>.
27421 (fminl): Define using libm_alias_ldouble.
27422 * sysdeps/x86_64/fpu/s_llrintl.S: Include <libm-alias-ldouble.h>.
27423 (llrintl): Define using libm_alias_ldouble.
27424 (lrintl): Likewise.
27425 * sysdeps/x86_64/fpu/s_nearbyintl.S: Include
27426 <libm-alias-ldouble.h>.
27427 (nearbyintl): Define using libm_alias_ldouble.
27428 * sysdeps/x86_64/fpu/s_truncl.S: Include <libm-alias-ldouble.h>.
27429 (truncl): Define using libm_alias_ldouble.
27430 * sysdeps/x86_64/x32/fpu/s_lrintl.S: Include
27431 <libm-alias-ldouble.h>.
27432 (lrintl): Define using libm_alias_ldouble.
27433
27434 * sysdeps/i386/fpu/e_expl.S: Include <libm-alias-ldouble.h>.
27435 [USE_AS_EXPM1L] (expm1l): Define using libm_alias_ldouble.
27436 * sysdeps/i386/fpu/s_asinhl.S: Include <libm-alias-ldouble.h>.
27437 (asinhl): Define using libm_alias_ldouble.
27438 * sysdeps/i386/fpu/s_atanl.c: Include <libm-alias-ldouble.h>.
27439 (atanl): Define using libm_alias_ldouble.
27440 * sysdeps/i386/fpu/s_cbrtl.S: Include <libm-alias-ldouble.h>.
27441 (cbrtl): Define using libm_alias_ldouble.
27442 * sysdeps/i386/fpu/s_ceill.S: Include <libm-alias-ldouble.h>.
27443 (ceill): Define using libm_alias_ldouble.
27444 * sysdeps/i386/fpu/s_copysignl.S: Include <libm-alias-ldouble.h>.
27445 (copysignl): Define using libm_alias_ldouble.
27446 * sysdeps/i386/fpu/s_fabsl.S: Include <libm-alias-ldouble.h>.
27447 (fabsl): Define using libm_alias_ldouble.
27448 * sysdeps/i386/fpu/s_floorl.S: Include <libm-alias-ldouble.h>.
27449 (floorl): Define using libm_alias_ldouble.
27450 * sysdeps/i386/fpu/s_fmaxl.S: Include <libm-alias-ldouble.h>.
27451 (fmaxl): Define using libm_alias_ldouble.
27452 * sysdeps/i386/fpu/s_fminl.S: Include <libm-alias-ldouble.h>.
27453 (fminl): Define using libm_alias_ldouble.
27454 * sysdeps/i386/fpu/s_frexpl.S: Include <libm-alias-ldouble.h>.
27455 (frexpl): Define using libm_alias_ldouble.
27456 * sysdeps/i386/fpu/s_llrintl.S: Include <libm-alias-ldouble.h>.
27457 (llrintl): Define using libm_alias_ldouble.
27458 * sysdeps/i386/fpu/s_logbl.c: Include <libm-alias-ldouble.h>.
27459 (logbl): Define using libm_alias_ldouble.
27460 * sysdeps/i386/fpu/s_lrintl.S: Include <libm-alias-ldouble.h>.
27461 (lrintl): Define using libm_alias_ldouble.
27462 * sysdeps/i386/fpu/s_nearbyintl.S: Include <libm-alias-ldouble.h>.
27463 (nearbyintl): Define using libm_alias_ldouble.
27464 * sysdeps/i386/fpu/s_nextafterl.c: Include <libm-alias-ldouble.h>.
27465 (nextafterl): Define using libm_alias_ldouble.
27466 * sysdeps/i386/fpu/s_remquol.S: Include <libm-alias-ldouble.h>.
27467 (remquol): Define using libm_alias_ldouble.
27468 * sysdeps/i386/fpu/s_rintl.c: Include <libm-alias-ldouble.h>.
27469 (rintl): Define using libm_alias_ldouble.
27470 * sysdeps/i386/fpu/s_truncl.S: Include <libm-alias-ldouble.h>.
27471 (truncl): Define using libm_alias_ldouble.
27472 * sysdeps/i386/i686/fpu/s_fmaxl.S: Include <libm-alias-ldouble.h>.
27473 (fmaxl): Define using libm_alias_ldouble.
27474 * sysdeps/i386/i686/fpu/s_fminl.S: Include <libm-alias-ldouble.h>.
27475 (fminl): Define using libm_alias_ldouble.
27476
27477 * bits/floatn-common.h [!__ASSEMBLER]: Disable everything related
27478 to C syntax instead of availability and properties of types.
27479 * bits/floatn.h [!__ASSEMBLER]: Likewise.
27480 * sysdeps/ia64/bits/floatn.h [!__ASSEMBLER]: Likewise.
27481 * sysdeps/ieee754/ldbl-128/bits/floatn.h [!__ASSEMBLER]: Likewise.
27482 * sysdeps/mips/ieee754/bits/floatn.h [!__ASSEMBLER]: Likewise.
27483 * sysdeps/powerpc/bits/floatn.h [!__ASSEMBLER]: Likewise.
27484 * sysdeps/x86/bits/floatn.h [!__ASSEMBLER]: Likewise.
27485
27486 2017-11-17 Florian Weimer <fweimer@redhat.com>
27487
27488 support_become_root: Enable file creation in namespaces.
27489 * support/support_become_root.c (setup_mapping): New function.
27490 (support_become_root): Call it.
27491
27492 2017-11-17 Joseph Myers <joseph@codesourcery.com>
27493
27494 * sysdeps/unix/sysv/linux/aarch64/bits/hwcap.h (HWCAP_DCPOP): New
27495 macro.
27496
27497 2017-11-16 Adhemerval Zanella <adhemerval.zanella@linaro.org>
27498
27499 * sysdeps/aarch64/fpu/Makefile (CFLAGS-s_fmax.c, CFLAGS-s_fmaxf.c,
27500 CFLAGS-s_fmin.c, CFLAGS-s_fminf.c): New rule: add -ffinite-math-only.
27501
27502 2017-11-16 Joseph Myers <joseph@codesourcery.com>
27503
27504 * sysdeps/unix/sysv/linux/net/if_arp.h (ARPHRD_RAWIP): New macro.
27505
27506 * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
27507 version to 4.14.
27508
27509 2017-11-16 Siddhesh Poyarekar <siddhesh@sourceware.org>
27510
27511 * INSTALL: Fix botched up regeneration.
27512
27513 * NEWS: Update sourceare link to https.
27514 * configure.ac: Likewise.
27515 * crypt/md5test-giant.c: Likewise.
27516 * dlfcn/bug-atexit1.c: Likewise.
27517 * dlfcn/bug-atexit2.c: Likewise.
27518 * localedata/README: Likewise.
27519 * malloc/tst-mallocfork.c: Likewise.
27520 * manual/install.texi: Likewise.
27521 * nptl/tst-pthread-getattr.c: Likewise.
27522 * stdio-common/tst-fgets.c: Likewise.
27523 * stdio-common/tst-fwrite.c: Likewise.
27524 * sunrpc/Makefile: Likewise.
27525 * sysdeps/arm/armv7/multiarch/memcpy_impl.S: Likewise.
27526 * wcsmbs/tst-mbrtowc2.c: Likewise.
27527 * configure: Regenerate.
27528 * INSTALL: Regenerate.
27529
27530 2017-11-15 Martin Sebor <msebor@redhat.com>
27531
27532 * misc/sys/cdefs.h (__attribute_nonstring__): New macro.
27533 * sysdeps/gnu/bits/utmp.h (struct utmp): Use it.
27534 * sysdeps/unix/sysv/linux/s390/bits/utmp.h (struct utmp): Same.
27535
27536 2017-11-15 Luke Shumaker <lukeshu@parabola.nu>
27537
27538 [BZ #22145]
27539 * sysdeps/unix/sysv/linux/tst-ttyname.c: New file.
27540 * sysdeps/unix/sysv/linux/Makefile: Add tst-ttyname to tests.
27541
27542 [BZ #22145]
27543 * sysdeps/unix/sysv/linux/ttyname.c (ttyname):
27544 Defer is_pty check until end of the function.
27545 * sysdeps/unix/sysv/linux/ttyname_r.c (__ttyname_r): Likewise.
27546
27547 [BZ #22145]
27548 * sysdeps/unix/sysv/linux/ttyname.h (is_mytty): New function.
27549 * sysdeps/unix/sysv/linux/ttyname.c (getttyname): Call is_mytty.
27550 (ttyname): Likewise.
27551 * sysdeps/unix/sysv/linux/ttyname_r.c (getttyname_r): Likewise.
27552 (__ttyname_r): Likewise.
27553
27554 * sysdeps/unix/sysv/linux/ttyname.h (is_pty): Change return type from
27555 int to bool.
27556
27557 * sysdeps/unix/sysv/linux/ttyname.h (is_pty): Update doc reference.
27558
27559 * manual/terminal.texi (Is It a Terminal):
27560 Mention ENODEV for ttyname and ttyname_r.
27561
27562 2017-11-15 Joseph Myers <joseph@codesourcery.com>
27563
27564 * sysdeps/unix/sysv/linux/bits/socket.h (MSG_ZEROCOPY): New enum
27565 constant and macro.
27566
27567 * sysdeps/unix/sysv/linux/bits/mman-linux.h
27568 [__USE_MISC] (MADV_WIPEONFORK): New macro.
27569 [__USE_MISC] (MADV_KEEPONFORK): Likewise.
27570 * sysdeps/unix/sysv/linux/hppa/bits/mman.h
27571 [__USE_MISC] (MADV_WIPEONFORK): Likewise.
27572 [__USE_MISC] (MADV_KEEPONFORK): Likewise.
27573
27574 2017-11-15 Adhemerval Zanella <adhemerval.zanella@linaro.org>
27575
27576 * signal/sigrelse.c (sigrelse): Optimize implementation.
27577
27578 * sysdeps/posix/sigpause.c (do_sigpause): Remove.
27579 (__sigpause): Rely on __sigsuspend to implement single thread
27580 optimization. Add LIBC_CANCEL_HANDLED for cancellation marking.
27581
27582 2017-11-15 Joseph Myers <joseph@codesourcery.com>
27583
27584 * scripts/build-many-glibcs.py (Context.checkout): Default Linux
27585 kernel version to 4.14.
27586
27587 2017-11-15 Steve Ellcey <sellcey@cavium.com>
27588
27589 [BZ #22442]
27590 * sysdeps/unix/sysv/linux/if_index.c (__if_nametoindex):
27591 Check if ifname is too long.
27592
27593 2017-11-15 Luke Shumaker <lukeshu@parabola.nu>
27594
27595 * sysdeps/unix/sysv/linux/epoll_wait.c: Include <sysdep-cancel.h>.
27596
27597 2017-11-15 Mike FABIAN <mfabian@redhat.com>
27598
27599 * localedata/locales/ka_GE (LC_MESSAGES): Add “X” back to yesexpr,
27600 was accidentally lost.
27601
27602 2017-11-15 Mike FABIAN <mfabian@redhat.com>
27603
27604 * localedata/locales/az_IR: Add standard copyright header.
27605
27606 2017-11-15 Florian Weimer <fweimer@redhat.com>
27607
27608 [BZ #22439]
27609 * malloc/malloc.c (__malloc_info): Count all heaps in an arena,
27610 not just the top one. Output a new "subheaps" statistic.
27611
27612 2017-11-15 Florian Weimer <fweimer@redhat.com>
27613
27614 [BZ #22408]
27615 * malloc/malloc.c (__malloc_info): Obtain arena heap statistics
27616 under the per-arena lock.
27617 * malloc/Makefile (tests): Add tst-malloc_info.
27618 (tst-malloc_info): Link with libpthread.
27619 * malloc/tst-malloc_info.c: New file.
27620
27621 2017-11-15 Joseph Myers <joseph@codesourcery.com>
27622
27623 [BZ #21660]
27624 * math/tgmath.h (__HAVE_BUILTIN_TGMATH): New macro.
27625 [__HAVE_BUILTIN_TGMATH] (__TG_F16_ARG): Likewise.
27626 [__HAVE_BUILTIN_TGMATH] (__TG_F32_ARG): Likewise.
27627 [__HAVE_BUILTIN_TGMATH] (__TG_F64_ARG): Likewise.
27628 [__HAVE_BUILTIN_TGMATH] (__TG_F128_ARG): Likewise.
27629 [__HAVE_BUILTIN_TGMATH] (__TG_F32X_ARG): Likewise.
27630 [__HAVE_BUILTIN_TGMATH] (__TG_F64X_ARG): Likewise.
27631 [__HAVE_BUILTIN_TGMATH] (__TG_F128X_ARG): Likewise.
27632 [__HAVE_BUILTIN_TGMATH] (__TGMATH_FUNCS): Likewise.
27633 [__HAVE_BUILTIN_TGMATH] (__TGMATH_RCFUNCS): Likewise.
27634 [__HAVE_BUILTIN_TGMATH] (__TGMATH_1): Likewise.
27635 [__HAVE_BUILTIN_TGMATH] (__TGMATH_2): Likewise.
27636 [__HAVE_BUILTIN_TGMATH] (__TGMATH_2STD): Likewise.
27637 [__HAVE_BUILTIN_TGMATH] (__TGMATH_3): Likewise.
27638 [__HAVE_BUILTIN_TGMATH] (__TGMATH_1C): Likewise.
27639 [__HAVE_BUILTIN_TGMATH] (__TGMATH_2C): Likewise.
27640 (__tgml): Make conditional on [!__HAVE_BUILTIN_TGMATH].
27641 (__floating_type): Likewise.
27642 (__real_integer_type): Likewise.
27643 (__complex_integer_type): Likewise.
27644 (__expr_is_real): Likewise.
27645 (__tgmath_real_type_sub): Likewise.
27646 (__tgmath_real_type): Likewise.
27647 (__tgmath_complex_type_sub): Likewise.
27648 (__tgmath_complex_type): Likewise.
27649 (__TGMATH_F128): Likewise.
27650 (__TGMATH_CF128): Likewise.
27651 [__HAVE_BUILTIN_TGMATH] (__TGMATH_UNARY_REAL_ONLY): Define using
27652 new macros.
27653 [__HAVE_BUILTIN_TGMATH] (__TGMATH_UNARY_REAL_RET_ONLY): Likewise.
27654 [__HAVE_BUILTIN_TGMATH] (__TGMATH_BINARY_FIRST_REAL_ONLY):
27655 Likewise.
27656 [__HAVE_BUILTIN_TGMATH] (__TGMATH_BINARY_FIRST_REAL_STD_ONLY):
27657 Likewise.
27658 [__HAVE_BUILTIN_TGMATH] (__TGMATH_BINARY_REAL_ONLY): Likewise.
27659 [__HAVE_BUILTIN_TGMATH] (__TGMATH_BINARY_REAL_STD_ONLY): Likewise.
27660 [__HAVE_BUILTIN_TGMATH] (__TGMATH_BINARY_REAL_RET_ONLY): Likewise.
27661 [__HAVE_BUILTIN_TGMATH] (__TGMATH_TERNARY_FIRST_SECOND_REAL_ONLY):
27662 Likewise.
27663 [__HAVE_BUILTIN_TGMATH] (__TGMATH_TERNARY_REAL_ONLY): Likewise.
27664 [__HAVE_BUILTIN_TGMATH] (__TGMATH_TERNARY_FIRST_REAL_RET_ONLY):
27665 Likewise.
27666 [__HAVE_BUILTIN_TGMATH] (__TGMATH_UNARY_REAL_IMAG): Likewise.
27667 [__HAVE_BUILTIN_TGMATH] (__TGMATH_UNARY_IMAG): Likewise.
27668 [__HAVE_BUILTIN_TGMATH] (__TGMATH_UNARY_REAL_IMAG_RET_REAL):
27669 Likewise.
27670 [__HAVE_BUILTIN_TGMATH] (__TGMATH_BINARY_REAL_IMAG): Likewise.
27671 (__TGMATH_UNARY_REAL_IMAG_RET_REAL_SAME): New macro.
27672 (carg): Use __TGMATH_UNARY_REAL_IMAG_RET_REAL_SAME.
27673 (cimag): Likewise.
27674 (creal): Likewise.
27675
27676 2017-11-14 Joseph Myers <joseph@codesourcery.com>
27677
27678 * string/tester.c (test_stpncpy): Disable -Wstringop-truncation
27679 for stpncpy calls for GCC 8.
27680 (test_strncat): Disable -Wstringop-truncation warning for strncat
27681 calls for GCC 8. Disable -Wstringop-overflow= warning for one
27682 strncat call for GCC 7.
27683 (test_strncpy): Disable -Wstringop-truncation warning for strncpy
27684 calls for GCC 8.
27685 (test_memcmp): Use memcpy instead of strncpy for calls not copying
27686 trailing NUL.
27687
27688 * string/bug-strncat1.c: Include <libc-diag.h>.
27689 (main): Disable -Wstringop-truncation for strncat call for GCC 8.
27690
27691 2017-11-13 Claude Paroz <claude@2xlibre.net>
27692
27693 [BZ #22387]
27694 * localedata/locales/aa_DJ: Improved readibility by replacing
27695 <Uxxxx> sequences in the ASCII printable range by their ASCII
27696 character equivalents.
27697 * localedata/locales/aa_ER: Likewise.
27698 * localedata/locales/aa_ER@saaho: Likewise.
27699 * localedata/locales/aa_ET: Likewise.
27700 * localedata/locales/af_ZA: Likewise.
27701 * localedata/locales/agr_PE: Likewise.
27702 * localedata/locales/ak_GH: Likewise.
27703 * localedata/locales/am_ET: Likewise.
27704 * localedata/locales/anp_IN: Likewise.
27705 * localedata/locales/ar_AE: Likewise.
27706 * localedata/locales/ar_BH: Likewise.
27707 * localedata/locales/ar_DZ: Likewise.
27708 * localedata/locales/ar_EG: Likewise.
27709 * localedata/locales/ar_IN: Likewise.
27710 * localedata/locales/ar_IQ: Likewise.
27711 * localedata/locales/ar_JO: Likewise.
27712 * localedata/locales/ar_KW: Likewise.
27713 * localedata/locales/ar_LB: Likewise.
27714 * localedata/locales/ar_LY: Likewise.
27715 * localedata/locales/ar_MA: Likewise.
27716 * localedata/locales/ar_OM: Likewise.
27717 * localedata/locales/ar_QA: Likewise.
27718 * localedata/locales/ar_SA: Likewise.
27719 * localedata/locales/ar_SD: Likewise.
27720 * localedata/locales/ar_SS: Likewise.
27721 * localedata/locales/ar_SY: Likewise.
27722 * localedata/locales/ar_TN: Likewise.
27723 * localedata/locales/ar_YE: Likewise.
27724 * localedata/locales/as_IN: Likewise.
27725 * localedata/locales/ast_ES: Likewise.
27726 * localedata/locales/ayc_PE: Likewise.
27727 * localedata/locales/az_AZ: Likewise.
27728 * localedata/locales/az_IR: Likewise.
27729 * localedata/locales/be_BY: Likewise.
27730 * localedata/locales/be_BY@latin: Likewise.
27731 * localedata/locales/bem_ZM: Likewise.
27732 * localedata/locales/ber_DZ: Likewise.
27733 * localedata/locales/ber_MA: Likewise.
27734 * localedata/locales/bg_BG: Likewise.
27735 * localedata/locales/bhb_IN: Likewise.
27736 * localedata/locales/bho_IN: Likewise.
27737 * localedata/locales/bi_VU: Likewise.
27738 * localedata/locales/bn_BD: Likewise.
27739 * localedata/locales/bn_IN: Likewise.
27740 * localedata/locales/bo_CN: Likewise.
27741 * localedata/locales/bo_IN: Likewise.
27742 * localedata/locales/br_FR: Likewise.
27743 * localedata/locales/brx_IN: Likewise.
27744 * localedata/locales/bs_BA: Likewise.
27745 * localedata/locales/byn_ER: Likewise.
27746 * localedata/locales/ca_AD: Likewise.
27747 * localedata/locales/ca_ES: Likewise.
27748 * localedata/locales/ca_FR: Likewise.
27749 * localedata/locales/ca_IT: Likewise.
27750 * localedata/locales/ce_RU: Likewise.
27751 * localedata/locales/chr_US: Likewise.
27752 * localedata/locales/cmn_TW: Likewise.
27753 * localedata/locales/crh_UA: Likewise.
27754 * localedata/locales/cs_CZ: Likewise.
27755 * localedata/locales/csb_PL: Likewise.
27756 * localedata/locales/cv_RU: Likewise.
27757 * localedata/locales/cy_GB: Likewise.
27758 * localedata/locales/da_DK: Likewise.
27759 * localedata/locales/de_AT: Likewise.
27760 * localedata/locales/de_BE: Likewise.
27761 * localedata/locales/de_CH: Likewise.
27762 * localedata/locales/de_DE: Likewise.
27763 * localedata/locales/de_IT: Likewise.
27764 * localedata/locales/de_LI: Likewise.
27765 * localedata/locales/de_LU: Likewise.
27766 * localedata/locales/doi_IN: Likewise.
27767 * localedata/locales/dv_MV: Likewise.
27768 * localedata/locales/dz_BT: Likewise.
27769 * localedata/locales/el_CY: Likewise.
27770 * localedata/locales/el_GR: Likewise.
27771 * localedata/locales/en_AG: Likewise.
27772 * localedata/locales/en_AU: Likewise.
27773 * localedata/locales/en_BW: Likewise.
27774 * localedata/locales/en_CA: Likewise.
27775 * localedata/locales/en_DK: Likewise.
27776 * localedata/locales/en_GB: Likewise.
27777 * localedata/locales/en_HK: Likewise.
27778 * localedata/locales/en_IE: Likewise.
27779 * localedata/locales/en_IL: Likewise.
27780 * localedata/locales/en_IN: Likewise.
27781 * localedata/locales/en_NG: Likewise.
27782 * localedata/locales/en_NZ: Likewise.
27783 * localedata/locales/en_PH: Likewise.
27784 * localedata/locales/en_SG: Likewise.
27785 * localedata/locales/en_US: Likewise.
27786 * localedata/locales/en_ZA: Likewise.
27787 * localedata/locales/en_ZM: Likewise.
27788 * localedata/locales/en_ZW: Likewise.
27789 * localedata/locales/eo: Likewise.
27790 * localedata/locales/es_AR: Likewise.
27791 * localedata/locales/es_BO: Likewise.
27792 * localedata/locales/es_CL: Likewise.
27793 * localedata/locales/es_CO: Likewise.
27794 * localedata/locales/es_CR: Likewise.
27795 * localedata/locales/es_CU: Likewise.
27796 * localedata/locales/es_DO: Likewise.
27797 * localedata/locales/es_EC: Likewise.
27798 * localedata/locales/es_ES: Likewise.
27799 * localedata/locales/es_GT: Likewise.
27800 * localedata/locales/es_HN: Likewise.
27801 * localedata/locales/es_MX: Likewise.
27802 * localedata/locales/es_NI: Likewise.
27803 * localedata/locales/es_PA: Likewise.
27804 * localedata/locales/es_PE: Likewise.
27805 * localedata/locales/es_PR: Likewise.
27806 * localedata/locales/es_PY: Likewise.
27807 * localedata/locales/es_SV: Likewise.
27808 * localedata/locales/es_US: Likewise.
27809 * localedata/locales/es_UY: Likewise.
27810 * localedata/locales/es_VE: Likewise.
27811 * localedata/locales/et_EE: Likewise.
27812 * localedata/locales/eu_ES: Likewise.
27813 * localedata/locales/eu_ES@euro: Likewise.
27814 * localedata/locales/fa_IR: Likewise.
27815 * localedata/locales/ff_SN: Likewise.
27816 * localedata/locales/fi_FI: Likewise.
27817 * localedata/locales/fil_PH: Likewise.
27818 * localedata/locales/fo_FO: Likewise.
27819 * localedata/locales/fr_BE: Likewise.
27820 * localedata/locales/fr_CA: Likewise.
27821 * localedata/locales/fr_CH: Likewise.
27822 * localedata/locales/fr_FR: Likewise.
27823 * localedata/locales/fr_LU: Likewise.
27824 * localedata/locales/fur_IT: Likewise.
27825 * localedata/locales/fy_DE: Likewise.
27826 * localedata/locales/fy_NL: Likewise.
27827 * localedata/locales/ga_IE: Likewise.
27828 * localedata/locales/gd_GB: Likewise.
27829 * localedata/locales/gez_ER: Likewise.
27830 * localedata/locales/gez_ET: Likewise.
27831 * localedata/locales/gl_ES: Likewise.
27832 * localedata/locales/gu_IN: Likewise.
27833 * localedata/locales/gv_GB: Likewise.
27834 * localedata/locales/ha_NG: Likewise.
27835 * localedata/locales/hak_TW: Likewise.
27836 * localedata/locales/he_IL: Likewise.
27837 * localedata/locales/hi_IN: Likewise.
27838 * localedata/locales/hif_FJ: Likewise.
27839 * localedata/locales/hne_IN: Likewise.
27840 * localedata/locales/hr_HR: Likewise.
27841 * localedata/locales/hsb_DE: Likewise.
27842 * localedata/locales/ht_HT: Likewise.
27843 * localedata/locales/hu_HU: Likewise.
27844 * localedata/locales/hy_AM: Likewise.
27845 * localedata/locales/i18n: Likewise.
27846 * localedata/locales/ia_FR: Likewise.
27847 * localedata/locales/id_ID: Likewise.
27848 * localedata/locales/ig_NG: Likewise.
27849 * localedata/locales/ik_CA: Likewise.
27850 * localedata/locales/is_IS: Likewise.
27851 * localedata/locales/it_CH: Likewise.
27852 * localedata/locales/it_IT: Likewise.
27853 * localedata/locales/iu_CA: Likewise.
27854 * localedata/locales/ja_JP: Likewise.
27855 * localedata/locales/ka_GE: Likewise.
27856 * localedata/locales/kk_KZ: Likewise.
27857 * localedata/locales/kl_GL: Likewise.
27858 * localedata/locales/kn_IN: Likewise.
27859 * localedata/locales/ko_KR: Likewise.
27860 * localedata/locales/kok_IN: Likewise.
27861 * localedata/locales/ks_IN: Likewise.
27862 * localedata/locales/ks_IN@devanagari: Likewise.
27863 * localedata/locales/ku_TR: Likewise.
27864 * localedata/locales/kw_GB: Likewise.
27865 * localedata/locales/ky_KG: Likewise.
27866 * localedata/locales/lb_LU: Likewise.
27867 * localedata/locales/lg_UG: Likewise.
27868 * localedata/locales/li_BE: Likewise.
27869 * localedata/locales/li_NL: Likewise.
27870 * localedata/locales/lij_IT: Likewise.
27871 * localedata/locales/ln_CD: Likewise.
27872 * localedata/locales/lo_LA: Likewise.
27873 * localedata/locales/lt_LT: Likewise.
27874 * localedata/locales/lv_LV: Likewise.
27875 * localedata/locales/lzh_TW: Likewise.
27876 * localedata/locales/mag_IN: Likewise.
27877 * localedata/locales/mai_IN: Likewise.
27878 * localedata/locales/mg_MG: Likewise.
27879 * localedata/locales/mhr_RU: Likewise.
27880 * localedata/locales/mi_NZ: Likewise.
27881 * localedata/locales/mk_MK: Likewise.
27882 * localedata/locales/ml_IN: Likewise.
27883 * localedata/locales/mn_MN: Likewise.
27884 * localedata/locales/mni_IN: Likewise.
27885 * localedata/locales/mr_IN: Likewise.
27886 * localedata/locales/ms_MY: Likewise.
27887 * localedata/locales/mt_MT: Likewise.
27888 * localedata/locales/my_MM: Likewise.
27889 * localedata/locales/nan_TW: Likewise.
27890 * localedata/locales/nan_TW@latin: Likewise.
27891 * localedata/locales/nb_NO: Likewise.
27892 * localedata/locales/nds_DE: Likewise.
27893 * localedata/locales/nds_NL: Likewise.
27894 * localedata/locales/ne_NP: Likewise.
27895 * localedata/locales/nhn_MX: Likewise.
27896 * localedata/locales/niu_NU: Likewise.
27897 * localedata/locales/niu_NZ: Likewise.
27898 * localedata/locales/nl_AW: Likewise.
27899 * localedata/locales/nl_BE: Likewise.
27900 * localedata/locales/nl_NL: Likewise.
27901 * localedata/locales/nn_NO: Likewise.
27902 * localedata/locales/nr_ZA: Likewise.
27903 * localedata/locales/nso_ZA: Likewise.
27904 * localedata/locales/oc_FR: Likewise.
27905 * localedata/locales/om_ET: Likewise.
27906 * localedata/locales/om_KE: Likewise.
27907 * localedata/locales/or_IN: Likewise.
27908 * localedata/locales/os_RU: Likewise.
27909 * localedata/locales/pa_IN: Likewise.
27910 * localedata/locales/pa_PK: Likewise.
27911 * localedata/locales/pap_AW: Likewise.
27912 * localedata/locales/pap_CW: Likewise.
27913 * localedata/locales/pl_PL: Likewise.
27914 * localedata/locales/ps_AF: Likewise.
27915 * localedata/locales/pt_BR: Likewise.
27916 * localedata/locales/pt_PT: Likewise.
27917 * localedata/locales/quz_PE: Likewise.
27918 * localedata/locales/raj_IN: Likewise.
27919 * localedata/locales/ro_RO: Likewise.
27920 * localedata/locales/ru_RU: Likewise.
27921 * localedata/locales/ru_UA: Likewise.
27922 * localedata/locales/rw_RW: Likewise.
27923 * localedata/locales/sa_IN: Likewise.
27924 * localedata/locales/sat_IN: Likewise.
27925 * localedata/locales/sc_IT: Likewise.
27926 * localedata/locales/sd_IN: Likewise.
27927 * localedata/locales/sd_IN@devanagari: Likewise.
27928 * localedata/locales/se_NO: Likewise.
27929 * localedata/locales/sgs_LT: Likewise.
27930 * localedata/locales/shs_CA: Likewise.
27931 * localedata/locales/si_LK: Likewise.
27932 * localedata/locales/sid_ET: Likewise.
27933 * localedata/locales/sk_SK: Likewise.
27934 * localedata/locales/sl_SI: Likewise.
27935 * localedata/locales/sm_WS: Likewise.
27936 * localedata/locales/so_DJ: Likewise.
27937 * localedata/locales/so_ET: Likewise.
27938 * localedata/locales/so_KE: Likewise.
27939 * localedata/locales/so_SO: Likewise.
27940 * localedata/locales/sq_AL: Likewise.
27941 * localedata/locales/sq_MK: Likewise.
27942 * localedata/locales/sr_ME: Likewise.
27943 * localedata/locales/sr_RS: Likewise.
27944 * localedata/locales/sr_RS@latin: Likewise.
27945 * localedata/locales/ss_ZA: Likewise.
27946 * localedata/locales/st_ZA: Likewise.
27947 * localedata/locales/sv_FI: Likewise.
27948 * localedata/locales/sv_SE: Likewise.
27949 * localedata/locales/sw_KE: Likewise.
27950 * localedata/locales/sw_TZ: Likewise.
27951 * localedata/locales/szl_PL: Likewise.
27952 * localedata/locales/ta_IN: Likewise.
27953 * localedata/locales/ta_LK: Likewise.
27954 * localedata/locales/tcy_IN: Likewise.
27955 * localedata/locales/te_IN: Likewise.
27956 * localedata/locales/tg_TJ: Likewise.
27957 * localedata/locales/th_TH: Likewise.
27958 * localedata/locales/the_NP: Likewise.
27959 * localedata/locales/ti_ER: Likewise.
27960 * localedata/locales/ti_ET: Likewise.
27961 * localedata/locales/tig_ER: Likewise.
27962 * localedata/locales/tk_TM: Likewise.
27963 * localedata/locales/tl_PH: Likewise.
27964 * localedata/locales/tn_ZA: Likewise.
27965 * localedata/locales/to_TO: Likewise.
27966 * localedata/locales/tpi_PG: Likewise.
27967 * localedata/locales/tr_CY: Likewise.
27968 * localedata/locales/tr_TR: Likewise.
27969 * localedata/locales/ts_ZA: Likewise.
27970 * localedata/locales/tt_RU: Likewise.
27971 * localedata/locales/tt_RU@iqtelif: Likewise.
27972 * localedata/locales/ug_CN: Likewise.
27973 * localedata/locales/uk_UA: Likewise.
27974 * localedata/locales/unm_US: Likewise.
27975 * localedata/locales/ur_IN: Likewise.
27976 * localedata/locales/ur_PK: Likewise.
27977 * localedata/locales/uz_UZ: Likewise.
27978 * localedata/locales/uz_UZ@cyrillic: Likewise.
27979 * localedata/locales/ve_ZA: Likewise.
27980 * localedata/locales/vi_VN: Likewise.
27981 * localedata/locales/wa_BE: Likewise.
27982 * localedata/locales/wae_CH: Likewise.
27983 * localedata/locales/wal_ET: Likewise.
27984 * localedata/locales/wo_SN: Likewise.
27985 * localedata/locales/xh_ZA: Likewise.
27986 * localedata/locales/yi_US: Likewise.
27987 * localedata/locales/yo_NG: Likewise.
27988 * localedata/locales/yue_HK: Likewise.
27989 * localedata/locales/yuw_PG: Likewise.
27990 * localedata/locales/zh_CN: Likewise.
27991 * localedata/locales/zh_HK: Likewise.
27992 * localedata/locales/zh_SG: Likewise.
27993 * localedata/locales/zh_TW: Likewise.
27994 * localedata/locales/zu_ZA: Likewise.
27995
27996 2017-11-13 Florian Weimer <fweimer@redhat.com>
27997
27998 * support/next_to_fault.h, support/next_to_fault.c: New files.
27999 * support/Makefile (libsupport-routines): Add next_to_fault.
28000 * resolv/tst-inet_pton.c (struct next_to_fault)
28001 (next_to_fault_allocate, next_to_fault_free): Remove.
28002 (run_one_test): Switch to <support/next_to_fault.h> interfaces.
28003
28004 2017-11-13 H.J. Lu <hongjiu.lu@intel.com>
28005
28006 * elf/dl-support.c: Include <dl-procruntime.c>.
28007 * include/link.h: Include <link_map.h>.
28008 * sysdeps/generic/dl-procruntime.c: New file.
28009 * sysdeps/generic/link_map.h: Likewise.
28010 * sysdeps/generic/ldsodefs.h: Include <dl-procruntime.c> in
28011 the writable ld.so namespace.
28012
28013 2017-11-12 Paul Eggert <eggert@cs.ucla.edu>
28014
28015 timezone: pacify GCC -Wstringop-truncation
28016 Problem reported by Martin Sebor in:
28017 https://sourceware.org/ml/libc-alpha/2017-11/msg00336.html
28018 * timezone/zic.c (writezone): Use memcpy, not strncpy.
28019
28020 2017-11-12 Florian Weimer <fweimer@redhat.com>
28021
28022 * support/Makefile (libsupport-routines): Add xreadlink, xstrndup,
28023 tst-xreadlink.
28024 (tests): Add tst-xreadlink.
28025 * support/support.h (xstrndup): Declare.
28026 * support/xunistd.h (xunlink, xreadlink): Declare.
28027 * support/temp_file.h (support_create_temp_directory): Declare.
28028 * support/temp_file.c (support_create_temp_directory): New function.
28029 * support/support_chroot.c (support_chroot_create): Use it.
28030 * support/xreadlink.c: New file.
28031 * support/xstrndup.c: Likewise.
28032 * support/xunlink.c: Likewise.
28033 * support/tst-xreadlink.c: Likewise.
28034
28035 2017-11-11 John David Anglin <danglin@gcc.gnu.org>
28036
28037 * sysdeps/hppa/fpu/libm-test-ulps: Update clog10_downward ulps.
28038
28039 2017-11-11 Florian Weimer <fweimer@redhat.com>
28040
28041 [BZ #22409]
28042 [BZ #22412]
28043 * resolv/res_comp.c (printable_string, binary_hnok)
28044 (binary_leading_dash): New functions.
28045 (res_hnok): Reimplement using these functions and ns_name_pton.
28046 (res_ownok): Likewise.
28047 (res_mailok): Reimplement using printable_string, ns_name_pton and
28048 binary_hnok.
28049 (res_dnok): Reimplement using printable_string and ns_name_pton.
28050 * resolv/tst-res_hnok.c (tests): Add additional tests.
28051 (LETTERDIGITS, PRINTABLE): Define.
28052 (do_test): Adjust one_char results.
28053
28054 2017-11-11 Florian Weimer <fweimer@redhat.com>
28055
28056 [BZ #22413]
28057 * resolv/ns_name.c (ns_name_pton): Treat trailing backslash as error.
28058 * resolv/tst-ns_name_pton.c (tests): Add trailing backslash tests.
28059
28060 2017-11-11 Florian Weimer <fweimer@redhat.com>
28061
28062 * resolv/tst-ns_name_pton.c: New file.
28063 * resolv/Makefile (tests): Add tst-ns_name_pton.
28064 (tst-ns_name_pton): Link against libresolv.
28065
28066 2017-11-11 Florian Weimer <fweimer@redhat.com>
28067
28068 * resolv/tst-res_hnok.c: New file.
28069 * resolv/Makefile (tests): Add tst-res_hnok.
28070 (tst-res_hnok): Link against libresolv.
28071
28072 2017-11-11 Florian Weimer <fweimer@redhat.com>
28073
28074 * resolv/tst-resolv-network.c: Use test framework instead explicit
28075 main function.
28076
28077 2017-11-09 H.J. Lu <hongjiu.lu@intel.com>
28078
28079 * include/setjmp.h [!_ISOMAC]: Include <stddef.h> and
28080 <jmp_buf-macros.h>.
28081 [!_ISOMAC] (STR_HELPER): New.
28082 [!_ISOMAC] (STR): Likewise.
28083 [!_ISOMAC] (TEST_SIZE): Likewise.
28084 [!_ISOMAC] (TEST_ALIGN): Likewise.
28085 [!_ISOMAC] (TEST_OFFSET): Likewise.
28086 [!_ISOMAC] Add _Static_assert to check sizes, alignments and
28087 field offsets of jmp_buf as well as sigjmp_buf.
28088 * sysdeps/unix/sysv/linux/aarch64/jmp_buf-macros.h: Likewise.
28089 * sysdeps/unix/sysv/linux/alpha/jmp_buf-macros.h: Likewise.
28090 * sysdeps/unix/sysv/linux/arm/jmp_buf-macros.h: Likewise.
28091 * sysdeps/unix/sysv/linux/hppa/jmp_buf-macros.h: Likewise.
28092 * sysdeps/unix/sysv/linux/i386/jmp_buf-macros.h: Likewise.
28093 * sysdeps/unix/sysv/linux/ia64/jmp_buf-macros.h: Likewise.
28094 * sysdeps/unix/sysv/linux/m68k/jmp_buf-macros.h: Likewise.
28095 * sysdeps/unix/sysv/linux/microblaze/jmp_buf-macros.h: Likewise.
28096 * sysdeps/unix/sysv/linux/mips/mips32/jmp_buf-macros.h: Likewise.
28097 * sysdeps/unix/sysv/linux/mips/mips64/n32/jmp_buf-macros.h:
28098 Likewise.
28099 * sysdeps/unix/sysv/linux/mips/mips64/n64/jmp_buf-macros.h:
28100 Likewise.
28101 * sysdeps/unix/sysv/linux/nios2/jmp_buf-macros.h: Likewise.
28102 * sysdeps/unix/sysv/linux/powerpc/powerpc32/jmp_buf-macros.h:
28103 Likewise.
28104 * sysdeps/unix/sysv/linux/powerpc/powerpc64/jmp_buf-macros.h:
28105 Likewise.
28106 * sysdeps/unix/sysv/linux/s390/s390-32/jmp_buf-macros.h: Likewise.
28107 * sysdeps/unix/sysv/linux/s390/s390-64/jmp_buf-macros.h: Likewise.
28108 * sysdeps/unix/sysv/linux/sh/jmp_buf-macros.h: Likewise.
28109 * sysdeps/unix/sysv/linux/sparc/sparc32/jmp_buf-macros.h: Likewise.
28110 * sysdeps/unix/sysv/linux/sparc/sparc64/jmp_buf-macros.h: Likewise.
28111 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/jmp_buf-macros.h:
28112 Likewise.
28113 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/jmp_buf-macros.h:
28114 Likewise.
28115 * sysdeps/unix/sysv/linux/tile/tilepro/jmp_buf-macros.h: Likewise.
28116 * sysdeps/unix/sysv/linux/x86_64/64/jmp_buf-macros.h: Likewise.
28117 * sysdeps/unix/sysv/linux/x86_64/x32/jmp_buf-macros.h: Likewise.
28118
28119 2017-11-07 Joseph Myers <joseph@codesourcery.com>
28120
28121 * include/float.h
28122 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
28123 && __HAVE_FLOAT32] (FLT32_MANT_DIG): New macro.
28124 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
28125 && __HAVE_FLOAT32] (FLT32_DECIMAL_DIG): Likewise.
28126 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
28127 && __HAVE_FLOAT32] (FLT32_DIG): Likewise.
28128 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
28129 && __HAVE_FLOAT32] (FLT32_MIN_EXP): Likewise.
28130 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
28131 && __HAVE_FLOAT32] (FLT32_MIN_10_EXP): Likewise.
28132 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
28133 && __HAVE_FLOAT32] (FLT32_MAX_EXP): Likewise.
28134 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
28135 && __HAVE_FLOAT32] (FLT32_MAX_10_EXP): Likewise.
28136 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
28137 && __HAVE_FLOAT32] (FLT32_MAX): Likewise.
28138 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
28139 && __HAVE_FLOAT32] (FLT32_EPSILON): Likewise.
28140 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
28141 && __HAVE_FLOAT32] (FLT32_MIN): Likewise.
28142 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
28143 && __HAVE_FLOAT32] (FLT32_TRUE_MIN): Likewise.
28144 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
28145 && __HAVE_FLOAT64] (FLT64_MANT_DIG): Likewise.
28146 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
28147 && __HAVE_FLOAT64] (FLT64_DECIMAL_DIG): Likewise.
28148 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
28149 && __HAVE_FLOAT64] (FLT64_DIG): Likewise.
28150 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
28151 && __HAVE_FLOAT64] (FLT64_MIN_EXP): Likewise.
28152 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
28153 && __HAVE_FLOAT64] (FLT64_MIN_10_EXP): Likewise.
28154 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
28155 && __HAVE_FLOAT64] (FLT64_MAX_EXP): Likewise.
28156 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
28157 && __HAVE_FLOAT64] (FLT64_MAX_10_EXP): Likewise.
28158 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
28159 && __HAVE_FLOAT64] (FLT64_MAX): Likewise.
28160 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
28161 && __HAVE_FLOAT64] (FLT64_EPSILON): Likewise.
28162 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
28163 && __HAVE_FLOAT64] (FLT64_MIN): Likewise.
28164 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
28165 && __HAVE_FLOAT64] (FLT64_TRUE_MIN): Likewise.
28166 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
28167 && __HAVE_FLOAT32X] (FLT32X_MANT_DIG): Likewise.
28168 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
28169 && __HAVE_FLOAT32X] (FLT32X_DECIMAL_DIG): Likewise.
28170 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
28171 && __HAVE_FLOAT32X] (FLT32X_DIG): Likewise.
28172 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
28173 && __HAVE_FLOAT32X] (FLT32X_MIN_EXP): Likewise.
28174 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
28175 && __HAVE_FLOAT32X] (FLT32X_MIN_10_EXP): Likewise.
28176 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
28177 && __HAVE_FLOAT32X] (FLT32X_MAX_EXP): Likewise.
28178 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
28179 && __HAVE_FLOAT32X] (FLT32X_MAX_10_EXP): Likewise.
28180 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
28181 && __HAVE_FLOAT32X] (FLT32X_MAX): Likewise.
28182 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
28183 && __HAVE_FLOAT32X] (FLT32X_EPSILON): Likewise.
28184 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
28185 && __HAVE_FLOAT32X] (FLT32X_MIN): Likewise.
28186 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
28187 && __HAVE_FLOAT32X] (FLT32X_TRUE_MIN): Likewise.
28188 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
28189 && __HAVE_FLOAT64X] (FLT64X_MANT_DIG): Likewise.
28190 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
28191 && __HAVE_FLOAT64X] (FLT64X_DECIMAL_DIG): Likewise.
28192 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
28193 && __HAVE_FLOAT64X] (FLT64X_DIG): Likewise.
28194 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
28195 && __HAVE_FLOAT64X] (FLT64X_MIN_EXP): Likewise.
28196 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
28197 && __HAVE_FLOAT64X] (FLT64X_MIN_10_EXP): Likewise.
28198 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
28199 && __HAVE_FLOAT64X] (FLT64X_MAX_EXP): Likewise.
28200 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
28201 && __HAVE_FLOAT64X] (FLT64X_MAX_10_EXP): Likewise.
28202 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
28203 && __HAVE_FLOAT64X] (FLT64X_MAX): Likewise.
28204 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
28205 && __HAVE_FLOAT64X] (FLT64X_EPSILON): Likewise.
28206 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
28207 && __HAVE_FLOAT64X] (FLT64X_MIN): Likewise.
28208 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
28209 && __HAVE_FLOAT64X] (FLT64X_TRUE_MIN): Likewise.
28210
28211 * stdlib/tst-strtod.h (F16): New macro.
28212 (F32): Likewise.
28213 (F64): Likewise.
28214 (F32X): Likewise.
28215 (F64X): Likewise.
28216 (F128X): Likewise.
28217 (IF_FLOAT16): Likewise.
28218 (IF_FLOAT32): Likewise.
28219 (IF_FLOAT64): Likewise.
28220 (IF_FLOAT32X): Likewise.
28221 (IF_FLOAT64X): Likewise.
28222 (IF_FLOAT128X): Likewise.
28223 (GEN_TEST_STRTOD_FOREACH): Conditionally call macros for _Float16,
28224 _Float32, _Float64, _Float32x, _Float64x and _Float128x.
28225 (STRTOD_TEST_FOREACH): Likewise.
28226 * stdlib/tst-strtod-round-skeleton.c (CHOOSE_f32): New macro.
28227 (CHOOSE_f64): Likewise.
28228 (CHOOSE_f32x): Likewise.
28229 (CHOOSE_f64x): Likewise.
28230
28231 2017-11-07 Andreas Schwab <schwab@suse.de>
28232
28233 * nptl/Makefile (tests-internal): Remove tst-typesizes.
28234
28235 2017-11-07 Mike FABIAN <mfabian@redhat.com>
28236
28237 [BZ #22403]
28238 * localedata/locales/mfe_MU (LC_TIME): Fix wrong d_fmt, / needs
28239 to be escaped.
28240 * localedata/locales/miq_NI (LC_TIME): Fix wrong d_fmt, / needs
28241 to be escaped.
28242
28243 2017-11-07 Claude Paroz <claude@2xlibre.net>
28244
28245 [BZ #22403]
28246 * localedata/locales/an_ES (LC_TIME): Fix wrong d_fmt, / needs
28247 to be escaped.
28248 * localedata/locales/kab_DZ (LC_TIME): Fix wrong d_fmt, / needs
28249 to be escaped.
28250 * localedata/locales/om_ET (LC_TIME): Fix wrong d_fmt, / needs
28251 to be escaped.
28252
28253 2017-11-07 Adhemerval Zanella <adhemerval.zanella@linaro.org>
28254
28255 [BZ #22298]
28256 * nptl/allocatestack.c (allocate_stack): Check if
28257 __PTHREAD_MUTEX_HAVE_PREV is non-zero, instead if
28258 __PTHREAD_MUTEX_HAVE_PREV is defined.
28259 * nptl/descr.h (pthread): Likewise.
28260 * nptl/nptl-init.c (__pthread_initialize_minimal_internal):
28261 Likewise.
28262 * nptl/pthread_create.c (START_THREAD_DEFN): Likewise.
28263 * sysdeps/nptl/fork.c (__libc_fork): Likewise.
28264 * sysdeps/nptl/pthread.h (PTHREAD_MUTEX_INITIALIZER): Likewise.
28265 * sysdeps/nptl/bits/thread-shared-types.h
28266 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION): New
28267 defines.
28268 (__pthread_internal_list): Check __PTHREAD_MUTEX_USE_UNION instead
28269 of __WORDSIZE for internal layout.
28270 (__pthread_mutex_s): Check __PTHREAD_MUTEX_NUSERS_AFTER_KIND instead
28271 of __WORDSIZE for internal __nusers layout and __PTHREAD_MUTEX_USE_UNION
28272 instead of __WORDSIZE whether to use an union for __spins and __list
28273 fields.
28274 (__PTHREAD_MUTEX_HAVE_PREV): Define also for __PTHREAD_MUTEX_USE_UNION
28275 case.
28276 * sysdeps/aarch64/nptl/bits/pthreadtypes-arch.h
28277 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION): New
28278 defines.
28279 * sysdeps/alpha/nptl/bits/pthreadtypes-arch.h
28280 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
28281 Likewise.
28282 * sysdeps/arm/nptl/bits/pthreadtypes-arch.h
28283 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
28284 Likewise.
28285 * sysdeps/hppa/nptl/bits/pthreadtypes-arch.h
28286 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
28287 Likewise.
28288 * sysdeps/ia64/nptl/bits/pthreadtypes-arch.h
28289 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
28290 Likewise.
28291 * sysdeps/m68k/nptl/bits/pthreadtypes-arch.h
28292 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
28293 Likewise.
28294 * sysdeps/microblaze/nptl/bits/pthreadtypes-arch.h
28295 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
28296 Likewise.
28297 * sysdeps/mips/nptl/bits/pthreadtypes-arch.h
28298 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
28299 Likewise.
28300 * sysdeps/nios2/nptl/bits/pthreadtypes-arch.h
28301 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
28302 Likewise.
28303 * sysdeps/powerpc/nptl/bits/pthreadtypes-arch.h
28304 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
28305 Likewise.
28306 * sysdeps/s390/nptl/bits/pthreadtypes-arch.h
28307 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
28308 Likewise.
28309 * sysdeps/sh/nptl/bits/pthreadtypes-arch.h
28310 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
28311 Likewise.
28312 * sysdeps/sparc/nptl/bits/pthreadtypes-arch.h
28313 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
28314 Likewise.
28315 * sysdeps/tile/nptl/bits/pthreadtypes-arch.h
28316 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
28317 Likewise.
28318 * sysdeps/x86/nptl/bits/pthreadtypes-arch.h
28319 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
28320 Likewise.
28321
28322 * nptl/pthreadP.h (ASSERT_TYPE_SIZE, ASSERT_PTHREAD_INTERNAL_SIZE):
28323 New macros.
28324 * nptl/pthread_attr_init.c (__pthread_mutex_init): Add build time
28325 checks for expected input type size.
28326 * nptl/pthread_barrier_init.c (__pthread_barrier_init): Likewise.
28327 * nptl/pthread_barrierattr_init.c (pthread_barrierattr_init):
28328 Likewise.
28329 * nptl/pthread_cond_init.c (__pthread_cond_init): Likewise.
28330 * nptl/pthread_condattr_init.c (__pthread_condattr_init): Likewise.
28331 * nptl/pthread_mutex_init.c (__pthread_mutex_init): Likewise.
28332 * nptl/pthread_mutexattr_init.c (__pthread_mutexattr_init): Likewise.
28333 * nptl/pthread_rwlock_init.c (__pthread_rwlock_init): Likewise.
28334 * nptl/pthread_rwlockattr_init.c (pthread_rwlockattr_init): Likewise.
28335 * nptl/sem_init.c (__new_sem_init, __old_sem_init): Likewise
28336 * nptl/pthread_attr_destroy.c (__pthread_attr_destroy): Remove
28337 superflous runtime assert check.
28338 * nptl/pthread_attr_getaffinity.c (__pthread_attr_getaffinity_new):
28339 Likewise.
28340 * nptl/pthread_attr_getdetachstate.c (__pthread_attr_getdetachstate):
28341 Likewise.
28342 * nptl/pthread_attr_getguardsize.c (pthread_attr_getguardsize):
28343 Likewise.
28344 * nptl/pthread_attr_getinheritsched.c (__pthread_attr_getinheritsched):
28345 Likewise.
28346 * nptl/pthread_attr_getschedparam.c (__pthread_attr_getschedparam):
28347 Likewise.
28348 * nptl/pthread_attr_getschedpolicy.c (__pthread_attr_getschedpolicy):
28349 Likewise.
28350 * nptl/pthread_attr_getscope.c (__pthread_attr_getscope): Likewise.
28351 * nptl/pthread_attr_getstack.c (__pthread_attr_getstack): Likewise.
28352 * nptl/pthread_attr_getstackaddr.c (__pthread_attr_getstackaddr):
28353 Likewise.
28354 * nptl/pthread_attr_getstacksize.c (__pthread_attr_getstacksize):
28355 Likewise.
28356 * nptl/pthread_attr_setaffinity.c (__pthread_attr_setaffinity_new):
28357 Likewise.
28358 * nptl/pthread_attr_setdetachstate.c (__pthread_attr_setdetachstate):
28359 Likewise.
28360 * nptl/pthread_attr_setguardsize.c (pthread_attr_setguardsize):
28361 Likewise.
28362 * nptl/pthread_attr_setinheritsched.c
28363 (__pthread_attr_setinheritsched): Likewise.
28364 * nptl/pthread_attr_setschedparam.c (__pthread_attr_setschedparam):
28365 Likewise.
28366 * nptl/pthread_attr_setschedpolicy.c (__pthread_attr_setschedpolicy):
28367 Likewise.
28368 * nptl/pthread_attr_setscope.c (__pthread_attr_setscope): Likewise.
28369 * nptl/pthread_attr_setstack.c (__pthread_attr_setstack,
28370 __old_pthread_attr_setstack): Likewise.
28371 * nptl/pthread_attr_setstackaddr.c (__pthread_attr_setstackaddr):
28372 Likewise.
28373 * nptl/pthread_attr_setstacksize.c (__pthread_attr_setstacksize):
28374 Likewise.
28375 * nptl/pthread_getattr_default_np.c (pthread_getattr_default_np):
28376 Likewise.
28377 * nptl/pthread_mutex_lock.c (__pthread_mutex_lock): Likewise.
28378 * nptl/pthread_setattr_default_np.c (pthread_setattr_default_np):
28379 Likewise.
28380 * nptl/tst-typesizes.c: Remove file.
28381
28382 * nptl/pthreadP.h (ASSERT_PTHREAD_STRING,
28383 ASSERT_PTHREAD_INTERNAL_OFFSET): New macro.
28384 * nptl/pthread_mutex_init.c (__pthread_mutex_init): Add build time
28385 checks for internal pthread_mutex_t offsets.
28386 * sysdeps/aarch64/nptl/pthread-offsets.h
28387 (__PTHREAD_MUTEX_NUSERS_OFFSET, __PTHREAD_MUTEX_KIND_OFFSET,
28388 __PTHREAD_MUTEX_SPINS_OFFSET, __PTHREAD_MUTEX_ELISION_OFFSET,
28389 __PTHREAD_MUTEX_LIST_OFFSET): New macro.
28390 * sysdeps/alpha/nptl/pthread-offsets.h: Likewise.
28391 * sysdeps/arm/nptl/pthread-offsets.h: Likewise.
28392 * sysdeps/hppa/nptl/pthread-offsets.h: Likewise.
28393 * sysdeps/i386/nptl/pthread-offsets.h: Likewise.
28394 * sysdeps/ia64/nptl/pthread-offsets.h: Likewise.
28395 * sysdeps/m68k/nptl/pthread-offsets.h: Likewise.
28396 * sysdeps/microblaze/nptl/pthread-offsets.h: Likewise.
28397 * sysdeps/mips/nptl/pthread-offsets.h: Likewise.
28398 * sysdeps/nios2/nptl/pthread-offsets.h: Likewise.
28399 * sysdeps/powerpc/nptl/pthread-offsets.h: Likewise.
28400 * sysdeps/s390/nptl/pthread-offsets.h: Likewise.
28401 * sysdeps/sh/nptl/pthread-offsets.h: Likewise.
28402 * sysdeps/sparc/nptl/pthread-offsets.h: Likewise.
28403 * sysdeps/tile/nptl/pthread-offsets.h: Likewise.
28404 * sysdeps/x86_64/nptl/pthread-offsets.h: Likewise.
28405
28406 2017-11-07 Florian Weimer <fweimer@redhat.com>
28407
28408 * bits/mman-linux.h: Move ...
28409 * sysdeps/unix/sysv/linux/bits/mman-linux.h: ... here. Update
28410 comment.
28411 * sysdeps/unix/sysv/linux/bits/Makefile (sysdep_headers): Remove
28412 outdated comment.
28413
28414 2017-11-07 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
28415
28416 * sysdeps/powerpc/powerpc64/multiarch/strcasestr-power8.S (STRNLEN):
28417 Redefine STRNLEN as __strnlen_power8.
28418
28419 2017-11-06 Adhemerval Zanella <adhemerval.zanella@linaro.org>
28420
28421 * signal/sighold.c (sighold): Optimize implementation.
28422
28423 * sysdeps/unix/sysv/linux/sigqueue.c (__sigqueue): Asssume
28424 __NR_rt_sigqueueinfo.
28425
28426 * sysdeps/unix/sysv/linux/Versions (libc) [GLIBC_PRIVATE]: Add
28427 __sigtimedwait.
28428 * sysdeps/unix/sysv/linux/sigtimedwait.c: Simplify includes and
28429 assume __NR_rt_sigtimedwait.
28430 * sysdeps/unix/sysv/linux/sigwait.c (__sigwait): Call __sigtimedwait
28431 and add LIBC_CANCEL_HANDLED for cancellation marking.
28432 * sysdeps/unix/sysv/linux/sigwaitinfo.c (__sigwaitinfo): Likewise.
28433
28434 * sysdeps/arm/armv7/multiarch/Makefile [$(subdir) = string]
28435 (sysdeps_routines): Add memchr_noneon.
28436 * sysdeps/arm/armv7/multiarch/ifunc-memchr.h: New file.
28437 * sysdeps/arm/armv7/multiarch/memchr_noneon.S: Likewise.
28438 * sysdeps/arm/armv7/multiarch/rtld-memchr.S: Likewise.
28439 * sysdeps/arm/armv7/multiarch/memchr.S: Remove file.
28440 * sysdeps/arm/armv7/multiarch/memchr.c: New file.
28441 * sysdeps/arm/armv7/multiarch/memchr_impl.S: Move to ...
28442 * sysdeps/arm/armv7/multiarch/memchr_neon.S: ... here.
28443
28444 * sysdeps/arm/arm-ifunc.h: New file.
28445 * sysdeps/arm/armv7/multiarch/ifunc-memcpy.h: Likewise.
28446 * sysdeps/arm/armv7/multiarch/memcpy.c: Likewise.
28447 * sysdeps/arm/armv7/multiarch/memcpy_arm.S: Likewise.
28448 * sysdeps/arm/armv7/multiarch/rtld-memcpy.S: Likewise.
28449 * sysdeps/arm/armv7/multiarch/memcpy_neon.S [!__ARM_NEON__]
28450 (__memcpy_neon): Avoid create hidden alias.
28451 * sysdeps/arm/armv7/multiarch/memcpy_vfp.S [!__ARM_NEON_]
28452 (__memcpy_vfp): Likewise.
28453 * sysdeps/arm/armv7/multiarch/Makefile [$(subdir) = string]
28454 (sysdep_routines): Add memcpy_arm.
28455 * sysdeps/arm/armv7/multiarch/memcpy.S: Remove file.
28456
28457 2017-11-06 H.J. Lu <hongjiu.lu@intel.com>
28458
28459 [BZ #22362]
28460 * Makerules (make-link-multidir): New.
28461 * config.make.in (multidir): New.
28462 * configure.ac (libc_cv_multidir): New. AC_SUBST.
28463 * configure: Regenerated.
28464 * csu/Makefile [$(multidir) != .](multilib-extra-objs): New.
28465 [$(multidir) != .](extra-objs): Add $(multilib-extra-objs).
28466 [$(multidir) != .]($(addprefix $(objpfx)$(multidir)/, $(install-lib))):
28467 New target.
28468
28469 2017-11-06 Joseph Myers <joseph@codesourcery.com>
28470
28471 [BZ #22402]
28472 * sysdeps/powerpc/bits/floatn.h: Include <bits/long-double.h>.
28473 [__NO_LONG_DOUBLE_MATH] (__HAVE_FLOAT128): Define to 0.
28474
28475 2017-11-04 Mike FABIAN <mfabian@redhat.com>
28476
28477 * localedata/locales/tpi_PG (LC_TIME): Fix wrong d_fmt, / needs
28478 to be escaped.
28479
28480 2017-11-04 Florian Weimer <fweimer@redhat.com>
28481
28482 * manual/llio.texi (Open-time Flags): Document O_TMPFILE.
28483
28484 2017-11-03 Joseph Myers <joseph@codesourcery.com>
28485
28486 * math/math.h [__HAVE_DISTINCT_FLOAT16
28487 || __HAVE_DISTINCT_FLOAT32 || __HAVE_DISTINCT_FLOAT64
28488 || __HAVE_DISTINCT_FLOAT32X || __HAVE_DISTINCT_FLOAT64X
28489 || __HAVE_DISTINCT_FLOAT128X]: Use #error.
28490 [__NO_LONG_DOUBLE_MATH && __HAVE_DISTINCT_FLOAT128]: Likewise.
28491 [__HAVE_DISTINCT_FLOAT128 && !__HAVE_GENERIC_SELECTION
28492 && __HAVE_FLOATN_NOT_TYPEDEF]: Likewise.
28493 [__HAVE_DISTINCT_FLOAT128 && __HAVE_GENERIC_SELECTION]
28494 (__MATH_TG_F32): New macro.
28495 [__HAVE_DISTINCT_FLOAT128 && __HAVE_GENERIC_SELECTION]
28496 (__MATH_TG_F64X): Likewise.
28497 [__HAVE_DISTINCT_FLOAT128 && __HAVE_GENERIC_SELECTION]
28498 (__MATH_TG): Use __MATH_TG_F32 and __MATH_TG_F64X.
28499
28500 2017-11-03 Dmitry V. Levin <ldv@altlinux.org>
28501
28502 * po/de.po: Update translations.
28503 * po/ru.po: Likewise.
28504
28505 2017-11-03 Florian Weimer <fweimer@redhat.com>
28506
28507 * manual/filesys.texi (Hard Links): Document linkat.
28508
28509 2017-11-03 Joseph Myers <joseph@codesourcery.com>
28510
28511 * math/tgmath.h [__HAVE_DISTINCT_FLOAT16
28512 || __HAVE_DISTINCT_FLOAT32 || __HAVE_DISTINCT_FLOAT64
28513 || __HAVE_DISTINCT_FLOAT32X || __HAVE_DISTINCT_FLOAT64X
28514 || __HAVE_DISTINCT_FLOAT128X]: Use #error.
28515 [__HAVE_DISTINCT_FLOAT128 && __GLIBC_USE (IEC_60559_TYPES_EXT)
28516 && __HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE
28517 && __HAVE_FLOATN_NOT_TYPEDEF] (__TGMATH_F128): Handle _Float64x
28518 the same as _Float128.
28519 [__HAVE_DISTINCT_FLOAT128 && __GLIBC_USE (IEC_60559_TYPES_EXT)
28520 && __HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE
28521 && __HAVE_FLOATN_NOT_TYPEDEF] (__TGMATH_CF128): Likewise.
28522
28523 * stdlib/stdlib.h
28524 [__HAVE_FLOAT16 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (strtof16):
28525 Declare.
28526 [__HAVE_FLOAT32 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (strtof32):
28527 Likewise.
28528 [__HAVE_FLOAT64 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (strtof64):
28529 Likewise.
28530 [__HAVE_FLOAT32X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
28531 (strtof32x): Likewise.
28532 [__HAVE_FLOAT64X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
28533 (strtof64x): Likewise.
28534 [__HAVE_FLOAT128X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
28535 (strtof128x): Likewise.
28536 [__HAVE_FLOAT16 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
28537 (strfromf16): Likewise.
28538 [__HAVE_FLOAT32 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
28539 (strfromf32): Likewise.
28540 [__HAVE_FLOAT64 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
28541 (strfromf64): Likewise.
28542 [__HAVE_FLOAT32X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
28543 (strfromf32x): Likewise.
28544 [__HAVE_FLOAT64X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
28545 (strfromf64x): Likewise.
28546 [__HAVE_FLOAT128X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
28547 (strfromf128x): Likewise.
28548 [__USE_GNU && __HAVE_FLOAT16] (strtof16_l): Likewise.
28549 [__USE_GNU && __HAVE_FLOAT32] (strtof32_l): Likewise.
28550 [__USE_GNU && __HAVE_FLOAT64] (strtof64_l): Likewise.
28551 [__USE_GNU && __HAVE_FLOAT32X] (strtof32x_l): Likewise.
28552 [__USE_GNU && __HAVE_FLOAT64X] (strtof64x_l): Likewise.
28553 [__USE_GNU && __HAVE_FLOAT128X] (strtof128x_l): Likewise.
28554
28555 2017-11-03 Richard Henderson <rth@twiddle.net>
28556
28557 * sysdeps/unix/sysv/linux/aarch64/sysconf.c: New file.
28558
28559 2017-11-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
28560
28561 * sysdeps/aarch64/dl-tlsdesc.S (_dl_tlsdesc_dynamic): Optimize.
28562
28563 2017-11-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
28564
28565 * sysdeps/arm/dl-machine.h (elf_machine_runtime_setup): Remove
28566 DT_TLSDESC_GOT initialization.
28567 * sysdeps/arm/dl-tlsdesc.S (_dl_tlsdesc_lazy_resolver): Remove.
28568 (_dl_tlsdesc_resolve_hold): Likewise.
28569 * sysdeps/aarch64/dl-tlsdesc.h (_dl_tlsdesc_lazy_resolver): Remove.
28570 (_dl_tlsdesc_resolve_hold): Likewise.
28571 * sysdeps/aarch64/tlsdesc.c (_dl_tlsdesc_lazy_resolver_fixup): Remove.
28572 (_dl_tlsdesc_resolve_hold_fixup): Likewise.
28573
28574 2017-11-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
28575
28576 * sysdeps/arm/dl-machine.h (elf_machine_rel): Remove volatile.
28577
28578 2017-11-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
28579
28580 [BZ #18572]
28581 * sysdeps/arm/dl-machine.h (elf_machine_lazy_rel): Do symbol binding
28582 non-lazily for R_ARM_TLS_DESC.
28583
28584 2017-11-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
28585
28586 [BZ #17078]
28587 * sysdeps/arm/dl-machine.h (elf_machine_rela): Remove the
28588 R_ARM_TLS_DESC case.
28589 (elf_machine_lazy_rel): Remove the prelink check.
28590
28591 2017-11-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
28592
28593 * sysdeps/aarch64/dl-machine.h (elf_machine_runtime_setup): Remove
28594 DT_TLSDESC_GOT initialization.
28595 * sysdeps/aarch64/dl-tlsdesc.S (_dl_tlsdesc_return_lazy): Remove.
28596 (_dl_tlsdesc_resolve_rela): Likewise.
28597 (_dl_tlsdesc_resolve_hold): Likewise.
28598 (_dl_tlsdesc_undefweak): Remove ldar.
28599 (_dl_tlsdesc_dynamic): Likewise.
28600 * sysdeps/aarch64/dl-tlsdesc.h (_dl_tlsdesc_return_lazy): Remove.
28601 (_dl_tlsdesc_resolve_rela): Likewise.
28602 (_dl_tlsdesc_resolve_hold): Likewise.
28603 * sysdeps/aarch64/tlsdesc.c (_dl_tlsdesc_resolve_rela_fixup): Remove.
28604 (_dl_tlsdesc_resolve_hold_fixup): Likewise.
28605 (_dl_tlsdesc_resolve_rela): Likewise.
28606 (_dl_tlsdesc_resolve_hold): Likewise.
28607
28608 2017-11-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
28609
28610 * sysdeps/aarch64/dl-machine.h (elf_machine_lazy_rel): Do symbol
28611 binding and initialization non-lazily for R_AARCH64_TLSDESC.
28612
28613 2017-11-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
28614
28615 * elf/tlsdeschtab.h (_dl_tls_resolve_early_return_p): Mark unused.
28616 (_dl_tlsdesc_wake_up_held_fixups): Likewise.
28617
28618 2017-11-02 Joseph Myers <joseph@codesourcery.com>
28619
28620 * wcsmbs/wchar.h [__HAVE_FLOAT16 && __USE_GNU] (wcstof16):
28621 Declare.
28622 [__HAVE_FLOAT32 && __USE_GNU] (wcstof32): Likewise.
28623 [__HAVE_FLOAT64 && __USE_GNU] (wcstof64): Likewise.
28624 [__HAVE_FLOAT32X && __USE_GNU] (wcstof32x): Likewise.
28625 [__HAVE_FLOAT64X && __USE_GNU] (wcstof64x): Likewise.
28626 [__HAVE_FLOAT128X && __USE_GNU] (wcstof128x): Likewise.
28627 [__HAVE_FLOAT16 && __USE_GNU] (wcstof16_l): Likewise.
28628 [__HAVE_FLOAT32 && __USE_GNU] (wcstof32_l): Likewise.
28629 [__HAVE_FLOAT64 && __USE_GNU] (wcstof64_l): Likewise.
28630 [__HAVE_FLOAT32X && __USE_GNU] (wcstof32x_l): Likewise.
28631 [__HAVE_FLOAT64X && __USE_GNU] (wcstof64x_l): Likewise.
28632 [__HAVE_FLOAT128X && __USE_GNU] (wcstof128x_l): Likewise.
28633
28634 2017-11-02 Mike FABIAN <mfabian@redhat.com>
28635
28636 [BZ #22382]
28637 * localedata/locales/tpi_PG (LC_TIME): Fix syntax error.
28638 * localedata/locales/tpi_PG: Add standard header.
28639
28640 2017-11-02 Florian Weimer <fweimer@redhat.com>
28641
28642 test-errno-linux: quotactl can fail with EPERM in containers.
28643 * sysdeps/unix/sysv/linux/test-errno-linux.c
28644 (LIST, LIST_FORWARD): New macros.
28645 (check_error_in_list): New function.
28646 (test_wrp_rv): Accept list of permitted error codes.
28647 (test_wrp_rv2): Remove.
28648 (test_wrp): Call test_wrp_rv with list of error codes.
28649 (test_wrp2): Accept list of error codes.
28650 (do_test): Adjust. Allow EPERM for quotactl.
28651
28652 2017-11-02 Florian Weimer <fweimer@redhat.com>
28653
28654 * stdio-common/bug16.c (do_test): Use array_length.
28655 * stdio-common/errlist.c (_sys_nerr): Likewise.
28656 * stdio-common/printf_fp.c (PRINTF_FP_FETCH): Likewise.
28657 * stdio-common/printf_fphex.c (__printf_fphex): Use array_end.
28658 * stdio-common/psiginfo.c (psiginfo): Use array_length.
28659 * stdio-common/test-vfprintf.c (nlocs): Remove definition.
28660 (do_test): Use array_length.
28661 * stdio-common/tst-fphex.c (do_test): Use array_end, array_length.
28662 * stdio-common/tst-long-dbl-fphex.c (do_test): Use array_length.
28663 * stdio-common/tst-printf-round.c (do_test): Likewise.
28664 * stdio-common/tst-swprintf.c (nbuf): Remove definition.
28665 (CHECK): Use array_length.
28666 * stdio-common/tstdiomisc.c (t3, F): Likewise.
28667 * stdio-common/tstscanf.c (main): Likewise.
28668 * stdio-common/vfprintf.c (process_string_arg): Likewise.
28669
28670 2017-11-02 Florian Weimer <fweimer@redhat.com>
28671
28672 Add array_length and array_end macros.
28673 * include/array_length.h: New file.
28674
28675 2017-11-02 Florian Weimer <fweimer@redhat.com>
28676
28677 [BZ #22332]
28678 * posix/tst-glob-tilde.c (do_noescape): New variable.
28679 (one_test): Process it.
28680 (do_test): Set do_noescape. Add unescaping test case.
28681
28682 2017-11-01 Joseph Myers <joseph@codesourcery.com>
28683
28684 * math/complex.h
28685 [(__HAVE_DISTINCT_FLOAT16 || (__HAVE_FLOAT16 && !_LIBC))
28686 && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Include <bits/cmathcalls.h>
28687 with appropriate macros defined and undefined.
28688 [(__HAVE_DISTINCT_FLOAT32 || (__HAVE_FLOAT32 && !_LIBC))
28689 && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Likewise.
28690 [(__HAVE_DISTINCT_FLOAT64 || (__HAVE_FLOAT64 && !_LIBC))
28691 && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Likewise.
28692 [(__HAVE_DISTINCT_FLOAT32X || (__HAVE_FLOAT32X && !_LIBC))
28693 && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Likewise.
28694 [(__HAVE_DISTINCT_FLOAT64X || (__HAVE_FLOAT64X && !_LIBC))
28695 && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Likewise.
28696 [(__HAVE_DISTINCT_FLOAT128X || (__HAVE_FLOAT128X && !_LIBC))
28697 && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Likewise.
28698
28699 * math/complex.h
28700 [(__HAVE_DISTINCT_FLOAT128 || (__HAVE_FLOAT128 && !LIBC))
28701 && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Move conditional code after
28702 that for long double. Do not condition define and undefine of
28703 _Mdouble_complex_ on [__CFLOAT128].
28704
28705 2017-11-01 H.J. Lu <hongjiu.lu@intel.com>
28706
28707 * sysdeps/i386/sysdep.h: Include <sysdeps/x86/sysdep.h> instead
28708 of <sysdeps/generic/sysdep.h>.
28709 (ALIGNARG): Removed.
28710 (ASM_SIZE_DIRECTIVE): Likewise.
28711 (ENTRY): Likewise.
28712 (END): Likewise.
28713 (ENTRY_CHK): Likewise.
28714 (END_CHK): Likewise.
28715 (syscall_error): Likewise.
28716 (mcount): Likewise.
28717 (PSEUDO_END): Likewise.
28718 (L): Likewise.
28719 (atom_text_section): Likewise.
28720 * sysdeps/x86/sysdep.h: New file.
28721 * sysdeps/x86_64/sysdep.h: Include <sysdeps/x86/sysdep.h> instead
28722 of <sysdeps/generic/sysdep.h>.
28723 (ALIGNARG): Removed.
28724 (ASM_SIZE_DIRECTIVE): Likewise.
28725 (ENTRY): Likewise.
28726 (END): Likewise.
28727 (ENTRY_CHK): Likewise.
28728 (END_CHK): Likewise.
28729 (syscall_error): Likewise.
28730 (mcount): Likewise.
28731 (PSEUDO_END): Likewise.
28732 (L): Likewise.
28733 (atom_text_section): Likewise.
28734
28735 2017-10-31 Rafał Lużyński <digitalfreak@lingonborough.com>
28736
28737 * localedata/unicode-gen/gen_unicode_ctype.py (output_head):
28738 category of LC_CTYPE set to "i18n:2012".
28739 * localedata/locales/i18n_ctype: Regenerate.
28740
28741 2017-10-31 Yury Norov <ynorov@caviumnetworks.com>
28742
28743 * sysdeps/unix/sysv/linux/sigprocmask.c: Remove useless #ifdefs.
28744 * sysdeps/unix/sysv/linux/sigtimedwait.c: Likewise.
28745 * sysdeps/unix/sysv/linux/sigwait.c: Likewise.
28746 * sysdeps/unix/sysv/linux/sigwaitinfo.c: Likewise.
28747
28748 * sysdeps/unix/sysv/linux/ia64/sigpending.c: Remove file.
28749 * sysdeps/unix/sysv/linux/s390/s390-64/sigpending.c: Likewise.
28750 * sysdeps/unix/sysv/linux/sparc/sparc64/sigpending.c: Likewise.
28751 * sysdeps/unix/sysv/linux/x86_64/sigpending.c: Likewise.
28752
28753 2017-10-31 Joseph Myers <joseph@codesourcery.com>
28754
28755 * math/complex.h
28756 [__HAVE_FLOAT16 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (CMPLXF16):
28757 New macro.
28758 [__HAVE_FLOAT32 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (CMPLXF32):
28759 Likewise.
28760 [__HAVE_FLOAT64 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (CMPLXF64):
28761 Likewise.
28762 [__HAVE_FLOAT32X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
28763 (CMPLXF32X): Likewise.
28764 [__HAVE_FLOAT64X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
28765 (CMPLXF64X): Likewise.
28766 [__HAVE_FLOAT128X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
28767 (CMPLXF128X): Likewise.
28768
28769 * math/math.h
28770 [__FLT_EVAL_METHOD__ == 0 || __FLT_EVAL_METHOD__ == 32]
28771 (__MATH_EVAL_FMT2): Define to add 0.0f.
28772
28773 2017-10-31 Alan Modra <amodra@gmail.com>
28774
28775 * sysdeps/powerpc/powerpc64/fpu/multiarch/e_expf-power8.S: Don't
28776 include sysdep.h.
28777 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceilf-power5+.S: Likewise.
28778 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceilf-ppc64.S: Likewise.
28779 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_cosf-power8.S: Likewise.
28780 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_cosf-ppc64.c: Likewise.
28781 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finite-power7.S: Likewise.
28782 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finite-power8.S: Likewise.
28783 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floor-power5+.S: Likewise.
28784 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floor-ppc64.S: Likewise.
28785 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_roundf-power5+.S: Likewise.
28786 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_roundf-ppc64.S: Likewise.
28787 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_sinf-power8.S: Likewise.
28788 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_sinf-ppc64.c: Likewise.
28789 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_truncf-power5+.S: Likewise.
28790 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_truncf-ppc64.S: Likewise.
28791 * sysdeps/powerpc/powerpc64/multiarch/memchr-power7.S: Likewise.
28792 * sysdeps/powerpc/powerpc64/multiarch/memchr-power8.S: Likewise.
28793 * sysdeps/powerpc/powerpc64/multiarch/memcmp-power4.S: Likewise.
28794 * sysdeps/powerpc/powerpc64/multiarch/memcmp-power7.S: Likewise.
28795 * sysdeps/powerpc/powerpc64/multiarch/memcmp-power8.S: Likewise.
28796 * sysdeps/powerpc/powerpc64/multiarch/memcpy-a2.S: Likewise.
28797 * sysdeps/powerpc/powerpc64/multiarch/memcpy-cell.S: Likewise.
28798 * sysdeps/powerpc/powerpc64/multiarch/memcpy-power4.S: Likewise.
28799 * sysdeps/powerpc/powerpc64/multiarch/memcpy-power6.S: Likewise.
28800 * sysdeps/powerpc/powerpc64/multiarch/memcpy-power7.S: Likewise.
28801 * sysdeps/powerpc/powerpc64/multiarch/memcpy-ppc64.S: Likewise.
28802 * sysdeps/powerpc/powerpc64/multiarch/memmove-power7.S: Likewise.
28803 * sysdeps/powerpc/powerpc64/multiarch/mempcpy-power7.S: Likewise.
28804 * sysdeps/powerpc/powerpc64/multiarch/memrchr-power7.S: Likewise.
28805 * sysdeps/powerpc/powerpc64/multiarch/memrchr-power8.S: Likewise.
28806 * sysdeps/powerpc/powerpc64/multiarch/memset-power4.S: Likewise.
28807 * sysdeps/powerpc/powerpc64/multiarch/memset-power6.S: Likewise.
28808 * sysdeps/powerpc/powerpc64/multiarch/memset-power7.S: Likewise.
28809 * sysdeps/powerpc/powerpc64/multiarch/memset-power8.S: Likewise.
28810 * sysdeps/powerpc/powerpc64/multiarch/rawmemchr-power7.S: Likewise.
28811 * sysdeps/powerpc/powerpc64/multiarch/stpcpy-power8.S: Likewise.
28812 * sysdeps/powerpc/powerpc64/multiarch/stpncpy-power7.S: Likewise.
28813 * sysdeps/powerpc/powerpc64/multiarch/stpncpy-power8.S: Likewise.
28814 * sysdeps/powerpc/powerpc64/multiarch/strcasecmp-power7.S: Likewise.
28815 * sysdeps/powerpc/powerpc64/multiarch/strcasecmp-power8.S: Likewise.
28816 * sysdeps/powerpc/powerpc64/multiarch/strcasecmp_l-power7.S: Likewise.
28817 * sysdeps/powerpc/powerpc64/multiarch/strcasestr-power8.S: Likewise.
28818 * sysdeps/powerpc/powerpc64/multiarch/strchr-power7.S: Likewise.
28819 * sysdeps/powerpc/powerpc64/multiarch/strchr-power8.S: Likewise.
28820 * sysdeps/powerpc/powerpc64/multiarch/strchr-ppc64.S: Likewise.
28821 * sysdeps/powerpc/powerpc64/multiarch/strchrnul-power7.S: Likewise.
28822 * sysdeps/powerpc/powerpc64/multiarch/strchrnul-power8.S: Likewise.
28823 * sysdeps/powerpc/powerpc64/multiarch/strcmp-power7.S: Likewise.
28824 * sysdeps/powerpc/powerpc64/multiarch/strcmp-power8.S: Likewise.
28825 * sysdeps/powerpc/powerpc64/multiarch/strcmp-power9.S: Likewise.
28826 * sysdeps/powerpc/powerpc64/multiarch/strcmp-ppc64.S: Likewise.
28827 * sysdeps/powerpc/powerpc64/multiarch/strcpy-power8.S: Likewise.
28828 * sysdeps/powerpc/powerpc64/multiarch/strcspn-power8.S: Likewise.
28829 * sysdeps/powerpc/powerpc64/multiarch/strlen-power7.S: Likewise.
28830 * sysdeps/powerpc/powerpc64/multiarch/strlen-power8.S: Likewise.
28831 * sysdeps/powerpc/powerpc64/multiarch/strlen-ppc64.S: Likewise.
28832 * sysdeps/powerpc/powerpc64/multiarch/strncase-power8.S: Likewise.
28833 * sysdeps/powerpc/powerpc64/multiarch/strncmp-power4.S: Likewise.
28834 * sysdeps/powerpc/powerpc64/multiarch/strncmp-power7.S: Likewise.
28835 * sysdeps/powerpc/powerpc64/multiarch/strncmp-power8.S: Likewise.
28836 * sysdeps/powerpc/powerpc64/multiarch/strncmp-power9.S: Likewise.
28837 * sysdeps/powerpc/powerpc64/multiarch/strncmp-ppc64.S: Likewise.
28838 * sysdeps/powerpc/powerpc64/multiarch/strncpy-power7.S: Likewise.
28839 * sysdeps/powerpc/powerpc64/multiarch/strncpy-power8.S: Likewise.
28840 * sysdeps/powerpc/powerpc64/multiarch/strnlen-power7.S: Likewise.
28841 * sysdeps/powerpc/powerpc64/multiarch/strnlen-power8.S: Likewise.
28842 * sysdeps/powerpc/powerpc64/multiarch/strrchr-power7.S: Likewise.
28843 * sysdeps/powerpc/powerpc64/multiarch/strrchr-power8.S: Likewise.
28844 * sysdeps/powerpc/powerpc64/multiarch/strspn-power8.S: Likewise.
28845 * sysdeps/powerpc/powerpc64/multiarch/strstr-power7.S: Likewise.
28846
28847 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floorf-ppc64.S: Don't
28848 include sysdep.h and math_ldbl_opt.h.
28849
28850 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceil-power5+.S: Don't
28851 include sysdep.h and math_ldbl_opt.h. Include shlib-compat.h.
28852 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceil-ppc64.S: Likewise.
28853 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysign-power6.S: Likewise.
28854 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysign-ppc64.S: Likewise.
28855 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floorf-power5+.S: Likewise.
28856 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinf-power7.S: Likewise.
28857 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinf-power8.S: Likewise.
28858 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power5.S: Likewise.
28859 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power6.S: Likewise.
28860 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power6x.S: Likewise.
28861 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power7.S: Likewise.
28862 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power8.S: Likewise.
28863 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-ppc64.S: Likewise.
28864 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint-power6x.S: Likewise.
28865 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint-power8.S: Likewise.
28866 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint-ppc64.S: Likewise.
28867 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround-power5+.S: Likewise.
28868 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround-power6x.S: Likewise.
28869 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround-power8.S: Likewise.
28870 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround-ppc64.S: Likewise.
28871 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llroundf-ppc64.S: Likewise.
28872 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_round-power5+.S: Likewise.
28873 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_round-ppc64.S: Likewise.
28874 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_trunc-power5+.S: Likewise.
28875 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_trunc-ppc64.S: Likewise.
28876
28877 2017-10-31 Alan Modra <amodra@gmail.com>
28878
28879 * sysdeps/powerpc/powerpc64/multiarch/strncase_l-power7.c: Include
28880 string/strncase_l.c, not string/strncase.c.
28881 (USE_IN_EXTENDED_LOCALE_MODEL): Don't define.
28882 (libc_hidden_def): Redefine.
28883
28884 2017-10-31 Alan Modra <amodra@gmail.com>
28885
28886 * sysdeps/powerpc/powerpc64/multiarch/strcasecmp_l-power7.S:
28887 (__STRCMP, STRCMP, __strcasecmp_l): Define.
28888 (__strcasecmp): Don't define.
28889
28890 2017-10-31 Alan Modra <amodra@gmail.com>
28891
28892 * sysdeps/powerpc/powerpc64/multiarch/strcmp-power8.S: Wrap in
28893 IS_IN (libc).
28894 * sysdeps/powerpc/powerpc64/multiarch/strcmp-power9.S: Likewise.
28895 * sysdeps/powerpc/powerpc64/multiarch/strncmp-power8.S: Likewise.
28896 * sysdeps/powerpc/powerpc64/multiarch/strncmp-power9.S: Likewise.
28897
28898 2017-10-31 Alan Modra <amodra@gmail.com>
28899
28900 * sysdeps/powerpc/powerpc64/multiarch/stpncpy-power8.S: Don't define
28901 USE_AS_STPNCPY.
28902
28903 2017-10-31 Alan Modra <amodra@gmail.com>
28904
28905 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-ppc64.S (hidden_def):
28906 Redefine only when SHARED.
28907
28908 2017-10-30 Joseph Myers <joseph@codesourcery.com>
28909
28910 * math/math.h [__HAVE_DISTINCT_FLOAT16 || (__HAVE_FLOAT16 && !_LIBC)]:
28911 Include <bits/math-finite.h> with appropriate macros defined and
28912 undefined.
28913 [__HAVE_DISTINCT_FLOAT32 || (__HAVE_FLOAT32 && !_LIBC)]: Likewise.
28914 [__HAVE_DISTINCT_FLOAT64 || (__HAVE_FLOAT64 && !_LIBC)]: Likewise.
28915 [__HAVE_DISTINCT_FLOAT32X || (__HAVE_FLOAT32X && !_LIBC)]: Likewise.
28916 [__HAVE_DISTINCT_FLOAT64X || (__HAVE_FLOAT64X && !_LIBC)]: Likewise.
28917 [__HAVE_DISTINCT_FLOAT128X || (__HAVE_FLOAT128X && !_LIBC)]: Likewise.
28918
28919 * math/math.h [!_Mfloat_] (_Mfloat_): Do not define.
28920 [!_Mlong_double_] (_Mlong_double_): Likewise.
28921 [!_Mfloat16_] (_Mfloat16_): Likewise.
28922 [!_Mfloat32_] (_Mfloat32_): Likewise.
28923 [!_Mfloat64_] (_Mfloat64_): Likewise.
28924 [!_Mfloat128_] (_Mfloat128_): Likewise.
28925 [!_Mfloat32x_] (_Mfloat32x_): Likewise.
28926 [!_Mfloat64x_] (_Mfloat64x_): Likewise.
28927 [!_Mfloat128x_] (_Mfloat128x_): Likewise.
28928 (_Mdouble_): Define without indirection through those macros.
28929 * math/complex.h [!_Mfloat_] (_Mfloat_): Do not define.
28930 [!_Mfloat128_] (_Mfloat128_): Likewise.
28931 [_Mlong_double_] (_Mlong_double_): Likewise.
28932 (_Mdouble_): Define without indirection through those macros.
28933 * math/Makefile [$(long-double-fcts) != yes] (math-CPPFLAGS): Do
28934 not add -D_Mlong_double_=double.
28935 * include/math.h [_ISOMAC] (_Mlong_double_): Do not undefine.
28936 * math/test-signgam-finite-c99.c (_Mlong_double_): Likewise.
28937
28938 2017-10-30 H.J. Lu <hongjiu.lu@intel.com>
28939
28940 * sysdeps/x86/libc-start.c: Add /* !SHARED */.
28941
28942 2017-10-30 H.J. Lu <hongjiu.lu@intel.com>
28943
28944 * sysdeps/x86/libc-start.c: Reformat.
28945
28946 2017-10-30 H.J. Lu <hongjiu.lu@intel.com>
28947
28948 [BZ #22353]
28949 * sysdeps/i386/i586/strcpy.S (STRCPY): Use conditional branches.
28950 (1): Renamed to ...
28951 (L(Src0)): This.
28952 (L(Src1)): New.
28953 (L(Src2)): Likewise.
28954 (L(1)): Renamed to ...
28955 (L(Src3)): This.
28956
28957 2017-10-30 Joseph Myers <joseph@codesourcery.com>
28958
28959 * math/math.h [__HAVE_FLOAT16 && __USE_GNU] (M_Ef16): New macro.
28960 [__HAVE_FLOAT16 && __USE_GNU] (M_LOG2Ef16): Likewise.
28961 [__HAVE_FLOAT16 && __USE_GNU] (M_LOG10Ef16): Likewise.
28962 [__HAVE_FLOAT16 && __USE_GNU] (M_LN2f16): Likewise.
28963 [__HAVE_FLOAT16 && __USE_GNU] (M_LN10f16): Likewise.
28964 [__HAVE_FLOAT16 && __USE_GNU] (M_PIf16): Likewise.
28965 [__HAVE_FLOAT16 && __USE_GNU] (M_PI_2f16): Likewise.
28966 [__HAVE_FLOAT16 && __USE_GNU] (M_PI_4f16): Likewise.
28967 [__HAVE_FLOAT16 && __USE_GNU] (M_1_PIf16): Likewise.
28968 [__HAVE_FLOAT16 && __USE_GNU] (M_2_PIf16): Likewise.
28969 [__HAVE_FLOAT16 && __USE_GNU] (M_2_SQRTPIf16): Likewise.
28970 [__HAVE_FLOAT16 && __USE_GNU] (M_SQRT2f16): Likewise.
28971 [__HAVE_FLOAT16 && __USE_GNU] (M_SQRT1_2f16): Likewise.
28972 [__HAVE_FLOAT32 && __USE_GNU] (M_Ef32): Likewise.
28973 [__HAVE_FLOAT32 && __USE_GNU] (M_LOG2Ef32): Likewise.
28974 [__HAVE_FLOAT32 && __USE_GNU] (M_LOG10Ef32): Likewise.
28975 [__HAVE_FLOAT32 && __USE_GNU] (M_LN2f32): Likewise.
28976 [__HAVE_FLOAT32 && __USE_GNU] (M_LN10f32): Likewise.
28977 [__HAVE_FLOAT32 && __USE_GNU] (M_PIf32): Likewise.
28978 [__HAVE_FLOAT32 && __USE_GNU] (M_PI_2f32): Likewise.
28979 [__HAVE_FLOAT32 && __USE_GNU] (M_PI_4f32): Likewise.
28980 [__HAVE_FLOAT32 && __USE_GNU] (M_1_PIf32): Likewise.
28981 [__HAVE_FLOAT32 && __USE_GNU] (M_2_PIf32): Likewise.
28982 [__HAVE_FLOAT32 && __USE_GNU] (M_2_SQRTPIf32): Likewise.
28983 [__HAVE_FLOAT32 && __USE_GNU] (M_SQRT2f32): Likewise.
28984 [__HAVE_FLOAT32 && __USE_GNU] (M_SQRT1_2f32): Likewise.
28985 [__HAVE_FLOAT64 && __USE_GNU] (M_Ef64): Likewise.
28986 [__HAVE_FLOAT64 && __USE_GNU] (M_LOG2Ef64): Likewise.
28987 [__HAVE_FLOAT64 && __USE_GNU] (M_LOG10Ef64): Likewise.
28988 [__HAVE_FLOAT64 && __USE_GNU] (M_LN2f64): Likewise.
28989 [__HAVE_FLOAT64 && __USE_GNU] (M_LN10f64): Likewise.
28990 [__HAVE_FLOAT64 && __USE_GNU] (M_PIf64): Likewise.
28991 [__HAVE_FLOAT64 && __USE_GNU] (M_PI_2f64): Likewise.
28992 [__HAVE_FLOAT64 && __USE_GNU] (M_PI_4f64): Likewise.
28993 [__HAVE_FLOAT64 && __USE_GNU] (M_1_PIf64): Likewise.
28994 [__HAVE_FLOAT64 && __USE_GNU] (M_2_PIf64): Likewise.
28995 [__HAVE_FLOAT64 && __USE_GNU] (M_2_SQRTPIf64): Likewise.
28996 [__HAVE_FLOAT64 && __USE_GNU] (M_SQRT2f64): Likewise.
28997 [__HAVE_FLOAT64 && __USE_GNU] (M_SQRT1_2f64): Likewise.
28998 [__HAVE_FLOAT32X && __USE_GNU] (M_Ef32x): Likewise.
28999 [__HAVE_FLOAT32X && __USE_GNU] (M_LOG2Ef32x): Likewise.
29000 [__HAVE_FLOAT32X && __USE_GNU] (M_LOG10Ef32x): Likewise.
29001 [__HAVE_FLOAT32X && __USE_GNU] (M_LN2f32x): Likewise.
29002 [__HAVE_FLOAT32X && __USE_GNU] (M_LN10f32x): Likewise.
29003 [__HAVE_FLOAT32X && __USE_GNU] (M_PIf32x): Likewise.
29004 [__HAVE_FLOAT32X && __USE_GNU] (M_PI_2f32x): Likewise.
29005 [__HAVE_FLOAT32X && __USE_GNU] (M_PI_4f32x): Likewise.
29006 [__HAVE_FLOAT32X && __USE_GNU] (M_1_PIf32x): Likewise.
29007 [__HAVE_FLOAT32X && __USE_GNU] (M_2_PIf32x): Likewise.
29008 [__HAVE_FLOAT32X && __USE_GNU] (M_2_SQRTPIf32x): Likewise.
29009 [__HAVE_FLOAT32X && __USE_GNU] (M_SQRT2f32x): Likewise.
29010 [__HAVE_FLOAT32X && __USE_GNU] (M_SQRT1_2f32x): Likewise.
29011 [__HAVE_FLOAT64X && __USE_GNU] (M_Ef64x): Likewise.
29012 [__HAVE_FLOAT64X && __USE_GNU] (M_LOG2Ef64x): Likewise.
29013 [__HAVE_FLOAT64X && __USE_GNU] (M_LOG10Ef64x): Likewise.
29014 [__HAVE_FLOAT64X && __USE_GNU] (M_LN2f64x): Likewise.
29015 [__HAVE_FLOAT64X && __USE_GNU] (M_LN10f64x): Likewise.
29016 [__HAVE_FLOAT64X && __USE_GNU] (M_PIf64x): Likewise.
29017 [__HAVE_FLOAT64X && __USE_GNU] (M_PI_2f64x): Likewise.
29018 [__HAVE_FLOAT64X && __USE_GNU] (M_PI_4f64x): Likewise.
29019 [__HAVE_FLOAT64X && __USE_GNU] (M_1_PIf64x): Likewise.
29020 [__HAVE_FLOAT64X && __USE_GNU] (M_2_PIf64x): Likewise.
29021 [__HAVE_FLOAT64X && __USE_GNU] (M_2_SQRTPIf64x): Likewise.
29022 [__HAVE_FLOAT64X && __USE_GNU] (M_SQRT2f64x): Likewise.
29023 [__HAVE_FLOAT64X && __USE_GNU] (M_SQRT1_2f64x): Likewise.
29024 [__HAVE_FLOAT128X && __USE_GNU]: Use #error.
29025
29026 2017-10-30 Florian Weimer <fweimer@redhat.com>
29027
29028 * elf/ldconfig.c (search_dir): Assume that _DIRENT_HAVE_D_TYPE is
29029 always defined.
29030 * io/tst-mkdirat.c (do_test): Likewise.
29031 * io/tst-mkfifoat.c (do_test): Likewise.
29032 * io/tst-mknodat.c (do_test): Likewise.
29033 * locale/programs/charmap-dir.c (charmap_readdir): Likewise.
29034 * locale/programs/locale.c (select_dirs): Likewise.
29035 * locale/programs/locarchive.c (add_locales_to_archive): Likewise.
29036 * posix/bug-glob2.c (my_readdir): Likewise.
29037 * posix/tst-dir.c (main): Likewise.
29038 * posix/tst-glob_lstat_compat.c (my_readdir): Likewise.
29039 * posix/tst-gnuglob-skeleton.c (my_readdir): Likewise.
29040
29041 2017-10-30 Florian Weimer <fweimer@redhat.com>
29042
29043 * string/strings.h (ffsl, ffsll): Declare under __USE_MISC, not
29044 just __USE_GNU.
29045
29046 2017-10-30 Florian Weimer <fweimer@redhat.com>
29047
29048 * posix/tst-gnuglob-skeleton.c: Renamed from tst-gnuglob.c.
29049 Convert to support/test-driver.c.
29050 (GLOB_FUNC, GLOB_TYPE, GLOBFREE_FUNC, DIRENT_STRUCT, STAT_STRUCT):
29051 New macro parameters.
29052 (PRINTF): Remove macro. Use test_verbose conditionals instead.
29053 * posix/tst-gnuglob.c: New file.
29054 * posix/tst-gnuglob64.c: Likewise.
29055 * posix/Makefile (tests): Add tst-gnuglob64.
29056
29057 2017-10-30 Michal Ostrowski <ostrowski.michal@gmail.com>
29058
29059 [BZ #19485]
29060 * localedata/locales/csb_PL (LC_TIME): Fix “abmon” for March
29061 and use a better translation for March in “mon”.
29062 * localedata/locales/csb_PL: Use more ASCII to improve the
29063 readability of the source.
29064
29065 2017-10-30 Mike FABIAN <mfabian@redhat.com>
29066
29067 [BZ #13953]
29068 * localedata/locales/km_KH: Use ASCII as much
29069 as possible for better readability of the source and
29070 remove useless comments.
29071 * localedata/locales/km_KH (LC_TIME): Remove era stuff, it
29072 was commented out and apparently wrong anyway because it was
29073 using Lao characters. If Buddhist era should be used
29074 for km_KH, a native speaker should write the correct formaat
29075 for Khmer.
29076 * localedata/locales/km_KH (LC_TIME): Add first_weekday 1
29077 (According to CLDR, the first weekday for Cambodia is Sunday).
29078 * localedata/locales/km_KH (LC_NAME): Remove name_mr and name_mrs
29079 (These were using Lao characters which must be wrong. If we get
29080 the correct data from a native speaker, we could add it back, until
29081 then it is better not to have name_mr and name_mrs at all than
29082 having it wrong).
29083
29084 2017-10-27 Rafał Lużyński <digitalfreak@lingonborough.com>
29085
29086 * locale/loadlocale.c: Correct size of
29087 _nl_value_type_LC_<category> arrays.
29088
29089 2017-10-27 Joseph Myers <joseph@codesourcery.com>
29090
29091 * math/math.h [__HAVE_DISTINCT_FLOAT16 || (__HAVE_FLOAT16 && !_LIBC)]:
29092 Include <bits/mathcalls-helper-functions.h> and <bits/mathcalls.h>
29093 with appropriate macros defined and undefined.
29094 [__HAVE_DISTINCT_FLOAT32 || (__HAVE_FLOAT32 && !_LIBC)]: Likewise.
29095 [__HAVE_DISTINCT_FLOAT64 || (__HAVE_FLOAT64 && !_LIBC)]: Likewise.
29096 [__HAVE_DISTINCT_FLOAT32X || (__HAVE_FLOAT32X && !_LIBC)]: Likewise.
29097 [__HAVE_DISTINCT_FLOAT64X || (__HAVE_FLOAT64X && !_LIBC)]: Likewise.
29098 [__HAVE_DISTINCT_FLOAT128X || (__HAVE_FLOAT128X && !_LIBC)]: Likewise.
29099
29100 2017-10-27 H.J. Lu <hongjiu.lu@intel.com>
29101
29102 * sysdeps/i386/fpu/libm-test-ulps: Regenerated for GCC 7 with
29103 "-O2 -march=i586".
29104
29105 2017-10-27 Mike FABIAN <mfabian@redhat.com>
29106
29107 * localedata/locales/tt_RU (LC_MESSAGES): Start yesstr and nostr
29108 with lowercase letters to make it agree with CLDR.
29109
29110 2017-10-27 Mike FABIAN <mfabian@redhat.com>
29111
29112 [BZ #15260]
29113 * localedata/locales/doi_IN (LC_MESSAGES): Match only for the
29114 first letters of yesstr and nostr in yesexpr and noexpr,
29115 not for the full words.
29116 * localedata/locales/hne_IN (LC_MESSAGES): Likewise.
29117 * localedata/locales/kok_IN (LC_MESSAGES): Likewise.
29118 * localedata/locales/mr_IN (LC_MESSAGES): Likewise.
29119 * localedata/locales/sat_IN (LC_MESSAGES): Likewise.
29120 * localedata/locales/km_KH (LC_MESSAGES): Match also for the
29121 first letters of yesstr and nostr in yesexpr and noexpr,
29122 until now only English was matched in yesexpr and noexpr.
29123 * localedata/locales/tl_PH (LC_MESSAGES): Use “copy "fil_PH"”
29124 instead of “copy "en_US"”. CLDR has yesstr and nostr data for
29125 fil but not for tl. As tl and fil are very similar, using fil
29126 is probably better than using English.
29127
29128 2017-10-27 Thierry Vignaud <thierry.vignaud@gmail.com>
29129
29130 [BZ #21706]
29131 * localedata/locales/br_FR (LC_MESSAGES): Use all lowercase
29132 in yesstr and nostr.
29133
29134 2017-10-26 Joseph Myers <joseph@codesourcery.com>
29135
29136 * math/math.h [__HAVE_FLOAT16 && __GLIBC_USE
29137 (IEC_60559_TYPES_EXT)] (SNANF16): New macro.
29138 [__HAVE_FLOAT32 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (SNANF32):
29139 Likewise.
29140 [__HAVE_FLOAT64 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (SNANF64):
29141 Likewise.
29142 [__HAVE_FLOAT32X && __GLIBC_USE (IEC_60559_TYPES_EXT)] (SNANF32X):
29143 Likewise.
29144 [__HAVE_FLOAT64X && __GLIBC_USE (IEC_60559_TYPES_EXT)] (SNANF64X):
29145 Likewise.
29146 [__HAVE_FLOAT128X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
29147 (SNANF128X): Likewise.
29148
29149 * math/math.h [__HAVE_FLOAT16 && __GLIBC_USE
29150 (IEC_60559_TYPES_EXT)] (HUGE_VAL_F16): New macro.
29151 [__HAVE_FLOAT32 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
29152 (HUGE_VAL_F32): Likewise.
29153 [__HAVE_FLOAT64 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
29154 (HUGE_VAL_F64): Likewise.
29155 [__HAVE_FLOAT32X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
29156 (HUGE_VAL_F32X): Likewise.
29157 [__HAVE_FLOAT64X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
29158 (HUGE_VAL_F64X): Likewise.
29159 [__HAVE_FLOAT128X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
29160 (HUGE_VAL_F128X): Likewise.
29161
29162 2017-10-26 Thierry Vignaud <thierry.vignaud@gmail.com>
29163
29164 * localedata/locales/br_FR (LC_IDENTIFICATON): Add
29165 Thierry Vignaud <thierry.vignaud@gmail.com> as the contact
29166 for the br_FR locale.
29167
29168 2017-10-26 Thierry Vignaud <thierry.vignaud@gmail.com>
29169
29170 [BZ #21706]
29171 * localedata/locales/br_FR (LC_MESSAGES): Fix nostr.
29172
29173 2017-10-25 Carlos O'Donell <carlos@redhat.com>
29174
29175 * locale/programs/record-status.h: Define globals, and function
29176 prototypes. Move function bodies...
29177 * locale/programs/record-status.c: ... to here. New file.
29178 * iconv/Makefile (iconv_prog-modules): Add record-status.
29179 * locale/Makefile (lib-modules): Likewise.
29180 * iconv/iconv_prog.c: Remove verbose.
29181 * iconv/iconv_prog.h: Include record-status.h (defines verbose).
29182 * locale/programs/charmap.c (charmap_read): If warn_ascii is true then
29183 record a warning about ASCII compatibility.
29184 * locale/programs/ld-monetary.c (monetary_finish): If
29185 warn_int_curr_symbol is true then record a warning about the symbol
29186 not being in our ISO 4217 list.
29187 * locale/programs/locale.c: Include record-status.h. Remove verbose.
29188 * locale/programs/localedef.c: Include ctype.h. Remove delcaration of
29189 verbose, recorded_warning_count, recorded_error_count, and be_quiet.
29190 (OPT_NO_WARN): Define.
29191 (OPT_WARN): Define.
29192 (options): Add entry for --no-warnings, and --warnings.
29193 (set_warnings): New function to enable/disable warnings.
29194 (parse_opt): Call set_warnings for OPT_NO_WARN and OPT_WARN.
29195 * locale/programs/localedef.h: Remove warn_int_curr_symbol.
29196 * localedata/gen-locale.sh: Default flags to `--quiet -c'.
29197 Add `--no-warnings=ascii' to locales using SHIFT_JIS or SHIFT_JIXX0213.
29198 Pass flags to generate_locale.
29199 (generate_locale): Accept new flag argument and pass it to localedef
29200 invocation.
29201 * localedata/Makefile (INSTALL-SUPPORTED-LOCALES): Use
29202 --no-warnings=ascii for SHIFT_JIS and SHIFT_JISX0213 charmaps.
29203
29204 * localedata/Makefile (test-input-data): Use full file name.
29205 * localedata/da_DK.in: Rename to...
29206 * localedata/da_DK.ISO-8859-1.in: ...this.
29207 * localedata/de_DE.in: Rename to...
29208 * localedata/de_DE.ISO-8859-1.in: ...this.
29209 * localedata/en_US.in: Rename to...
29210 * localedata/en_US.ISO-8859-1.in: ...this.
29211 * localedata/fr_FR.in: Rename to...
29212 * localedata/fr_FR.UTF-8.in: ... this.
29213 * localedata/hr_HR.in: Rename to...
29214 * localedata/hr_HR.ISO-8859-2.in: ...this.
29215 * localedata/hu_HU.in: Rename to...
29216 * localedata/hu_HU.UTF-8.in: ...this.
29217 * localedata/si_LK.in: Rename to...
29218 * localedata/si_LK.UTF-8.in: ...this.
29219 * localedata/sv_SE.in: Rename to...
29220 * localedata/sv_SE.ISO-8859-1.in: ...this.
29221 * localedata/tr_TR.in: Rename to...
29222 * localedata/tr_TR.UTF-8.in: ...this.
29223 * localedata/uk_UA.in: Rename to...
29224 * localedata/uk_UA.UTF-8.in: ...this.
29225 * localedata/sort-test.sh: Test file is locale name with the
29226 suffix.
29227
29228 * localedata/unicode-gen/Makefile (check_i18n): Rename to
29229 check_i18n_ctype. Depend on i18n_ctype-report. Check i18n_ctype-report
29230 file.
29231 * localedata/locales/i18n_ctype: Regenerate.
29232 * localedata/locales/tr_TR: Likewise.
29233 * localedata/locales/translit_circle: Likewise.
29234 * localedata/locales/translit_cjk_compat: Likewise.
29235 * localedata/locales/translit_combining: Likewise.
29236 * localedata/locales/translit_compat: Likewise.
29237 * localedata/locales/translit_font: Likewise.
29238 * localedata/locales/translit_fraction: Likewise.
29239
29240 2017-10-25 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
29241
29242 * sysdeps/powerpc/powerpc64/power7/memcpy.S: Replace
29243 lxvd2x/stxvd2x with lvx/stvx.
29244 * sysdeps/powerpc/powerpc64/power7/memmove.S: Likewise.
29245
29246 2017-10-25 H.J. Lu <hongjiu.lu@intel.com>
29247
29248 * include/alloc_buffer.h: Replace "if if " with "if " in
29249 comments.
29250 * sysdeps/mips/memcpy.S: Likkewise.
29251 * sysdeps/mips/memset.S: Likewise.
29252 * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf16_core_avx512.S:
29253 Likewise.
29254 * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf4_core_sse4.S:
29255 Likewise.
29256 * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf8_core_avx2.S:
29257 Likewise.
29258
29259 2017-10-25 Mike FABIAN <mfabian@redhat.com>
29260
29261 [BZ #15261]
29262 * localedata/locales/cmn_TW (LC_MESSAGES): Add fullwidth yYnN to
29263 yesexpr and noexpr.
29264 * localedata/locales/hak_TW (LC_MESSAGES): Likewise.
29265 * localedata/locales/ko_KR (LC_MESSAGES): Likewise.
29266 * localedata/locales/lzh_TW (LC_MESSAGES): Likewise.
29267 * localedata/locales/nan_TW (LC_MESSAGES): Likewise.
29268 * localedata/locales/zh_CN (LC_MESSAGES): Likewise.
29269 * localedata/locales/zh_HK (LC_MESSAGES): Likewise.
29270 * localedata/locales/zh_TW (LC_MESSAGES): Likewise.
29271
29272 2017-10-25 Mike FABIAN <mfabian@redhat.com>
29273
29274 * localedata/locales/am_ET (LC_MESSAGES): Sync with CLDR.
29275 * localedata/locales/az_AZ (LC_MESSAGES): Likewise.
29276 * localedata/locales/el_GR (LC_MESSAGES): Likewise.
29277 * localedata/locales/ha_NG (LC_MESSAGES): Likewise.
29278 * localedata/locales/ln_CD (LC_MESSAGES): Likewise.
29279 * localedata/locales/mfe_MU (LC_MESSAGES): Likewise.
29280 * localedata/locales/ml_IN (LC_MESSAGES): Likewise.
29281 * localedata/locales/mt_MT (LC_MESSAGES): Likewise.
29282 * localedata/locales/os_RU (LC_MESSAGES): Likewise.
29283 * localedata/locales/tg_TJ (LC_MESSAGES): Likewise.
29284 * localedata/locales/tt_RU (LC_MESSAGES): Likewise.
29285 * localedata/locales/wo_SN (LC_MESSAGES): Likewise.
29286
29287 2017-10-25 Mike FABIAN <mfabian@redhat.com>
29288
29289 * localedata/locales/aa_ET (LC_MESSAGES): Use ASCII as much
29290 as possible for better readability of the source.
29291 * localedata/locales/af_ZA (LC_MESSAGES): Likewise.
29292 * localedata/locales/ak_GH (LC_MESSAGES): Likewise.
29293 * localedata/locales/am_ET (LC_MESSAGES): Likewise.
29294 * localedata/locales/anp_IN (LC_MESSAGES): Likewise.
29295 * localedata/locales/ar_EG (LC_MESSAGES): Likewise.
29296 * localedata/locales/as_IN (LC_MESSAGES): Likewise.
29297 * localedata/locales/ast_ES (LC_MESSAGES): Likewise.
29298 * localedata/locales/ayc_PE (LC_MESSAGES): Likewise.
29299 * localedata/locales/az_AZ (LC_MESSAGES): Likewise.
29300 * localedata/locales/az_IR (LC_MESSAGES): Likewise.
29301 * localedata/locales/be_BY (LC_MESSAGES): Likewise.
29302 * localedata/locales/be_BY@latin (LC_MESSAGES): Likewise.
29303 * localedata/locales/bem_ZM (LC_MESSAGES): Likewise.
29304 * localedata/locales/ber_MA (LC_MESSAGES): Likewise.
29305 * localedata/locales/bg_BG (LC_MESSAGES): Likewise.
29306 * localedata/locales/bhb_IN (LC_MESSAGES): Likewise.
29307 * localedata/locales/bi_VU (LC_MESSAGES): Likewise.
29308 * localedata/locales/bo_CN (LC_MESSAGES): Likewise.
29309 * localedata/locales/br_FR (LC_MESSAGES): Likewise.
29310 * localedata/locales/bs_BA (LC_MESSAGES): Likewise.
29311 * localedata/locales/ca_ES (LC_MESSAGES): Likewise.
29312 * localedata/locales/ce_RU (LC_MESSAGES): Likewise.
29313 * localedata/locales/crh_UA (LC_MESSAGES): Likewise.
29314 * localedata/locales/cs_CZ (LC_MESSAGES): Likewise.
29315 * localedata/locales/csb_PL (LC_MESSAGES): Likewise.
29316 * localedata/locales/cv_RU (LC_MESSAGES): Likewise.
29317 * localedata/locales/cy_GB (LC_MESSAGES): Likewise.
29318 * localedata/locales/da_DK (LC_MESSAGES): Likewise.
29319 * localedata/locales/de_DE (LC_MESSAGES): Likewise.
29320 * localedata/locales/dv_MV (LC_MESSAGES): Likewise.
29321 * localedata/locales/dz_BT (LC_MESSAGES): Likewise.
29322 * localedata/locales/el_GR (LC_MESSAGES): Likewise.
29323 * localedata/locales/en_CA (LC_MESSAGES): Likewise.
29324 * localedata/locales/en_US (LC_MESSAGES): Likewise.
29325 * localedata/locales/es_ES (LC_MESSAGES): Likewise.
29326 * localedata/locales/et_EE (LC_MESSAGES): Likewise.
29327 * localedata/locales/eu_ES (LC_MESSAGES): Likewise.
29328 * localedata/locales/fa_IR (LC_MESSAGES): Likewise.
29329 * localedata/locales/ff_SN (LC_MESSAGES): Likewise.
29330 * localedata/locales/fi_FI (LC_MESSAGES): Likewise.
29331 * localedata/locales/fil_PH (LC_MESSAGES): Likewise.
29332 * localedata/locales/fo_FO (LC_MESSAGES): Likewise.
29333 * localedata/locales/fr_BE (LC_MESSAGES): Likewise.
29334 * localedata/locales/fr_CH (LC_MESSAGES): Likewise.
29335 * localedata/locales/fr_FR (LC_MESSAGES): Likewise.
29336 * localedata/locales/fr_LU (LC_MESSAGES): Likewise.
29337 * localedata/locales/fur_IT (LC_MESSAGES): Likewise.
29338 * localedata/locales/fy_DE (LC_MESSAGES): Likewise.
29339 * localedata/locales/ga_IE (LC_MESSAGES): Likewise.
29340 * localedata/locales/gd_GB (LC_MESSAGES): Likewise.
29341 * localedata/locales/gl_ES (LC_MESSAGES): Likewise.
29342 * localedata/locales/gu_IN (LC_MESSAGES): Likewise.
29343 * localedata/locales/gv_GB (LC_MESSAGES): Likewise.
29344 * localedata/locales/ha_NG (LC_MESSAGES): Likewise.
29345 * localedata/locales/hak_TW (LC_MESSAGES): Likewise.
29346 * localedata/locales/he_IL (LC_MESSAGES): Likewise.
29347 * localedata/locales/hif_FJ (LC_MESSAGES): Likewise.
29348 * localedata/locales/hne_IN (LC_MESSAGES): Likewise.
29349 * localedata/locales/hr_HR (LC_MESSAGES): Likewise.
29350 * localedata/locales/hsb_DE (LC_MESSAGES): Likewise.
29351 * localedata/locales/ht_HT (LC_MESSAGES): Likewise.
29352 * localedata/locales/hu_HU (LC_MESSAGES): Likewise.
29353 * localedata/locales/hy_AM (LC_MESSAGES): Likewise.
29354 * localedata/locales/ia_FR (LC_MESSAGES): Likewise.
29355 * localedata/locales/id_ID (LC_MESSAGES): Likewise.
29356 * localedata/locales/ig_NG (LC_MESSAGES): Likewise.
29357 * localedata/locales/ik_CA (LC_MESSAGES): Likewise.
29358 * localedata/locales/is_IS (LC_MESSAGES): Likewise.
29359 * localedata/locales/it_CH (LC_MESSAGES): Likewise.
29360 * localedata/locales/it_IT (LC_MESSAGES): Likewise.
29361 * localedata/locales/iu_CA (LC_MESSAGES): Likewise.
29362 * localedata/locales/ja_JP (LC_MESSAGES): Likewise.
29363 * localedata/locales/kk_KZ (LC_MESSAGES): Likewise.
29364 * localedata/locales/kl_GL (LC_MESSAGES): Likewise.
29365 * localedata/locales/ko_KR (LC_MESSAGES): Likewise.
29366 * localedata/locales/ks_IN (LC_MESSAGES): Likewise.
29367 * localedata/locales/ku_TR (LC_MESSAGES): Likewise.
29368 * localedata/locales/kw_GB (LC_MESSAGES): Likewise.
29369 * localedata/locales/ky_KG (LC_MESSAGES): Likewise.
29370 * localedata/locales/lb_LU (LC_MESSAGES): Likewise.
29371 * localedata/locales/lg_UG (LC_MESSAGES): Likewise.
29372 * localedata/locales/li_NL (LC_MESSAGES): Likewise.
29373 * localedata/locales/lij_IT (LC_MESSAGES): Likewise.
29374 * localedata/locales/ln_CD (LC_MESSAGES): Likewise.
29375 * localedata/locales/lo_LA (LC_MESSAGES): Likewise.
29376 * localedata/locales/lt_LT (LC_MESSAGES): Likewise.
29377 * localedata/locales/lv_LV (LC_MESSAGES): Likewise.
29378 * localedata/locales/lzh_TW (LC_MESSAGES): Likewise.
29379 * localedata/locales/mg_MG (LC_MESSAGES): Likewise.
29380 * localedata/locales/mhr_RU (LC_MESSAGES): Likewise.
29381 * localedata/locales/mi_NZ (LC_MESSAGES): Likewise.
29382 * localedata/locales/mk_MK (LC_MESSAGES): Likewise.
29383 * localedata/locales/ml_IN (LC_MESSAGES): Likewise.
29384 * localedata/locales/mn_MN (LC_MESSAGES): Likewise.
29385 * localedata/locales/ms_MY (LC_MESSAGES): Likewise.
29386 * localedata/locales/mt_MT (LC_MESSAGES): Likewise.
29387 * localedata/locales/my_MM (LC_MESSAGES): Likewise.
29388 * localedata/locales/nan_TW (LC_MESSAGES): Likewise.
29389 * localedata/locales/nan_TW@latin (LC_MESSAGES): Likewise.
29390 * localedata/locales/nb_NO (LC_MESSAGES): Likewise.
29391 * localedata/locales/nds_DE (LC_MESSAGES): Likewise.
29392 * localedata/locales/nds_NL (LC_MESSAGES): Likewise.
29393 * localedata/locales/ne_NP (LC_MESSAGES): Likewise.
29394 * localedata/locales/nhn_MX (LC_MESSAGES): Likewise.
29395 * localedata/locales/niu_NU (LC_MESSAGES): Likewise.
29396 * localedata/locales/nl_NL (LC_MESSAGES): Likewise.
29397 * localedata/locales/nn_NO (LC_MESSAGES): Likewise.
29398 * localedata/locales/nr_ZA (LC_MESSAGES): Likewise.
29399 * localedata/locales/nso_ZA (LC_MESSAGES): Likewise.
29400 * localedata/locales/oc_FR (LC_MESSAGES): Likewise.
29401 * localedata/locales/om_ET (LC_MESSAGES): Likewise.
29402 * localedata/locales/or_IN (LC_MESSAGES): Likewise.
29403 * localedata/locales/os_RU (LC_MESSAGES): Likewise.
29404 * localedata/locales/pa_IN (LC_MESSAGES): Likewise.
29405 * localedata/locales/pa_PK (LC_MESSAGES): Likewise.
29406 * localedata/locales/pap_AW (LC_MESSAGES): Likewise.
29407 * localedata/locales/pap_CW (LC_MESSAGES): Likewise.
29408 * localedata/locales/pl_PL (LC_MESSAGES): Likewise.
29409 * localedata/locales/ps_AF (LC_MESSAGES): Likewise.
29410 * localedata/locales/pt_BR (LC_MESSAGES): Likewise.
29411 * localedata/locales/quz_PE (LC_MESSAGES): Likewise.
29412 * localedata/locales/raj_IN (LC_MESSAGES): Likewise.
29413 * localedata/locales/ro_RO (LC_MESSAGES): Likewise.
29414 * localedata/locales/ru_RU (LC_MESSAGES): Likewise.
29415 * localedata/locales/ru_UA (LC_MESSAGES): Likewise.
29416 * localedata/locales/rw_RW (LC_MESSAGES): Likewise.
29417 * localedata/locales/sa_IN (LC_MESSAGES): Likewise.
29418 * localedata/locales/sc_IT (LC_MESSAGES): Likewise.
29419 * localedata/locales/sd_IN@devanagari (LC_MESSAGES): Likewise.
29420 * localedata/locales/se_NO (LC_MESSAGES): Likewise.
29421 * localedata/locales/sgs_LT (LC_MESSAGES): Likewise.
29422 * localedata/locales/si_LK (LC_MESSAGES): Likewise.
29423 * localedata/locales/sk_SK (LC_MESSAGES): Likewise.
29424 * localedata/locales/sl_SI (LC_MESSAGES): Likewise.
29425 * localedata/locales/sm_WS (LC_MESSAGES): Likewise.
29426 * localedata/locales/so_DJ (LC_MESSAGES): Likewise.
29427 * localedata/locales/sq_AL (LC_MESSAGES): Likewise.
29428 * localedata/locales/sr_RS (LC_MESSAGES): Likewise.
29429 * localedata/locales/sr_RS@latin (LC_MESSAGES): Likewise.
29430 * localedata/locales/ss_ZA (LC_MESSAGES): Likewise.
29431 * localedata/locales/st_ZA (LC_MESSAGES): Likewise.
29432 * localedata/locales/sv_SE (LC_MESSAGES): Likewise.
29433 * localedata/locales/sw_KE (LC_MESSAGES): Likewise.
29434 * localedata/locales/szl_PL (LC_MESSAGES): Likewise.
29435 * localedata/locales/tcy_IN (LC_MESSAGES): Likewise.
29436 * localedata/locales/tg_TJ (LC_MESSAGES): Likewise.
29437 * localedata/locales/th_TH (LC_MESSAGES): Likewise.
29438 * localedata/locales/the_NP (LC_MESSAGES): Likewise.
29439 * localedata/locales/ti_ER (LC_MESSAGES): Likewise.
29440 * localedata/locales/tk_TM (LC_MESSAGES): Likewise.
29441 * localedata/locales/tn_ZA (LC_MESSAGES): Likewise.
29442 * localedata/locales/to_TO (LC_MESSAGES): Likewise.
29443 * localedata/locales/tr_TR (LC_MESSAGES): Likewise.
29444 * localedata/locales/ts_ZA (LC_MESSAGES): Likewise.
29445 * localedata/locales/tt_RU (LC_MESSAGES): Likewise.
29446 * localedata/locales/tt_RU@iqtelif (LC_MESSAGES): Likewise.
29447 * localedata/locales/uk_UA (LC_MESSAGES): Likewise.
29448 * localedata/locales/unm_US (LC_MESSAGES): Likewise.
29449 * localedata/locales/ur_IN (LC_MESSAGES): Likewise.
29450 * localedata/locales/ur_PK (LC_MESSAGES): Likewise.
29451 * localedata/locales/uz_UZ (LC_MESSAGES): Likewise.
29452 * localedata/locales/uz_UZ@cyrillic (LC_MESSAGES): Likewise.
29453 * localedata/locales/ve_ZA (LC_MESSAGES): Likewise.
29454 * localedata/locales/vi_VN (LC_MESSAGES): Likewise.
29455 * localedata/locales/wa_BE (LC_MESSAGES): Likewise.
29456 * localedata/locales/wo_SN (LC_MESSAGES): Likewise.
29457 * localedata/locales/xh_ZA (LC_MESSAGES): Likewise.
29458 * localedata/locales/yi_US (LC_MESSAGES): Likewise.
29459 * localedata/locales/yo_NG (LC_MESSAGES): Likewise.
29460 * localedata/locales/yue_HK (LC_MESSAGES): Likewise.
29461 * localedata/locales/zh_CN (LC_MESSAGES): Likewise.
29462 * localedata/locales/zh_HK (LC_MESSAGES): Likewise.
29463 * localedata/locales/zh_TW (LC_MESSAGES): Likewise.
29464 * localedata/locales/zu_ZA (LC_MESSAGES): Likewise.
29465
29466 2017-10-25 Mike FABIAN <mfabian@redhat.com>
29467
29468 * localedata/locales/brx_IN (LC_MESSAGES): Fix yesexpr and noexpr
29469 (Use first letters of yesstr and nostr correctly instead of using
29470 full words).
29471
29472 2017-10-25 Mike FABIAN <mfabian@redhat.com>
29473
29474 * localedata/locales/ta_IN (LC_MESSAGES): Fix yesexpr and noexpr
29475 (Use first letters of yesstr and nostr correctly).
29476
29477 2017-10-25 Mike FABIAN <mfabian@redhat.com>
29478
29479 * localedata/locales/hi_IN (LC_MESSAGES): In yesexpr and noexpr,
29480 also check for the first characters of yesstr and nostr.
29481 * localedata/locales/kn_IN (LC_MESSAGES): Likewise.
29482 * localedata/locales/ks_IN@devanagari (LC_MESSAGES): Likewise.
29483
29484 2017-10-25 Mike FABIAN <mfabian@redhat.com>
29485
29486 * localedata/locales/cmn_TW (LC_MESSAGES): In yesexpr and noexpr,
29487 also check for Chinese characters.
29488
29489 2017-10-25 Mike FABIAN <mfabian@redhat.com>
29490
29491 * localedata/locales/chr_US (LC_MESSAGES): In yesexpr and noexpr,
29492 match also for the contents of yesstr and nostr. As the first letter
29493 of yesstr and nostr is equal, checking only for the first letter
29494 is not enough.
29495
29496 2017-10-25 Mike FABIAN <mfabian@redhat.com>
29497
29498 * localedata/locales/ber_DZ (LC_MESSAGES): Use copy "kab_DZ",
29499 it is the same according to Belkacem Mohammed <belkacem77@gmail.com>.
29500
29501 2017-10-25 Mike FABIAN <mfabian@redhat.com>
29502
29503 * localedata/locales/kab_DZ (LC_IDENTIFICATION): Add e-mail
29504 of main contributor.
29505
29506 2017-10-25 Mike FABIAN <mfabian@redhat.com>
29507
29508 * localedata/locales/zh_SG (LC_MESSAGES): Use copy "zh_CN"
29509 instead of using English.
29510
29511 2017-10-25 Mike FABIAN <mfabian@redhat.com>
29512
29513 * localedata/locales/ug_CN (LC_MESSAGES): Fix noexpr and yesexpr
29514 by including the first letters of nostr and yesexpr in the regexp.
29515 Also make it more readable by using ASCII where possible.
29516
29517 2017-10-25 Mike FABIAN <mfabian@redhat.com>
29518
29519 * localedata/locales/te_IN (LC_MESSAGES): Fix noexpr by including
29520 the first letter of nostr in the regexp. It agrees with CLDR now.
29521 Also make it more readable by using ASCII where possible.
29522
29523 2017-10-24 Mike FABIAN <mfabian@redhat.com>
29524
29525 * localedata/locales/km_KH (LC_MESSAGES): Fix yestr and nostr.
29526 The yesstr and nostr apparently came from CLDR. And CLDR has a bug there:
29527 these strings contain a U+17D6 (which somewhat looks like a colon)
29528 instead of a real colon to separate the full words for “yes”
29529 and “no” from the single letter responses.
29530
29531 2017-10-24 Mike FABIAN <mfabian@redhat.com>
29532
29533 * localedata/locales/ka_GE (LC_MESSAGES): Fix yesexp to make
29534 it agree with CLDR (include the first letter of yesstr).
29535 Also make it more readable by using ASCII where possible.
29536
29537 2017-10-24 Mike FABIAN <mfabian@redhat.com>
29538
29539 * localedata/locales/mr_IN (LC_MESSAGES): Fix yesstr and nostr
29540 and improve yesexpr and noexpr. The yesstr and nostr apparently
29541 came from CLDR. And CLDR has a bug there: these strings contain
29542 a U+0903 (which looks like a colon) instead of a real colon
29543 to separate the full words for “yes” and “no” from the single
29544 letter responses.
29545
29546 2017-10-24 Mike FABIAN <mfabian@redhat.com>
29547
29548 * localedata/locales/bn_BD (LC_MESSAGES): Use only the first
29549 letters of the full yesstr and nostr in yesexpr and noexpr.
29550
29551 2017-10-24 Mike FABIAN <mfabian@redhat.com>
29552
29553 * localedata/locales/an_ES (LC_MESSAGES): Add yesstr and nostr.
29554 * localedata/locales/an_ES (LC_ADDRESS): Add lang_term and lang_lib.
29555 * localedata/locales/an_ES: Make source more readable by using ASCII
29556 where possible.
29557
29558 2017-10-24 Mike FABIAN <mfabian@redhat.com>
29559
29560 [BZ #20952]
29561 * localedata/locales/yuw_PG: New file.
29562 * localedata/SUPPORTED: Add yuw_PG/UTF-8.
29563 * locale/iso-639.def: Add Yau (Uruwa).
29564
29565 2017-10-23 Wilco Dijkstra <wdijkstr@arm.com>
29566
29567 * malloc/malloc.c (_int_malloc): Add SINGLE_THREAD_P path.
29568
29569 2017-10-23 Wilco Dijkstra <wdijkstr@arm.com>
29570
29571 * malloc/malloc.c (__libc_malloc): Add SINGLE_THREAD_P path.
29572 (__libc_realloc): Likewise.
29573 (_mid_memalign): Likewise.
29574 (__libc_calloc): Likewise.
29575
29576 2017-10-23 Mike FABIAN <mfabian@redhat.com>
29577
29578 * localedata/locales/tpi_PG (LC_MESSAGES): Fix yesexpr and noexpr
29579 by adding the generic +1 and -0 as in all other locales.
29580 * localedata/locales/tpi_PG (LC_TIME): Fix some typos in the month and
29581 day names and make it more readable by using ASCII where possible.
29582
29583 2017-10-24 Joseph Myers <joseph@codesourcery.com>
29584
29585 * sysdeps/x86/fpu/fix-fp-int-compare-invalid.h
29586 (FIX_COMPARE_INVALID): Define to 0 if [__GNUC_PREREQ (8, 0)].
29587
29588 2017-10-23 Adhemerval Zanella <adhemerval.zanella@linaro.org>
29589
29590 * sysdeps/unix/sysv/linux/spawni.c (__spawnix): Use 0 instead of
29591 WNOHANG in waitpid call.
29592
29593 2017-10-23 Siddhesh Poyarekar <siddhesh@sourceware.org>
29594
29595 * manual/conf.texi (_SC_LEVEL1_DCACHE_LINESIZE,
29596 _SC_LEVEL1_ICACHE_LINESIZE): Document aarch64 caveat.
29597
29598 * manual/conf.texi (_SC_LEVEL1_ICACHE_SIZE,
29599 _SC_LEVEL1_ICACHE_ASSOC, _SC_LEVEL1_ICACHE_LINESIZE,
29600 _SC_LEVEL1_DCACHE_SIZE, _SC_LEVEL1_DCACHE_ASSOC,
29601 _SC_LEVEL1_DCACHE_LINESIZE, _SC_LEVEL2_CACHE_SIZE,
29602 _SC_LEVEL2_CACHE_ASSOC, _SC_LEVEL2_CACHE_LINESIZE,
29603 _SC_LEVEL3_CACHE_SIZE, _SC_LEVEL3_CACHE_ASSOC,
29604 _SC_LEVEL3_CACHE_LINESIZE, _SC_LEVEL4_CACHE_SIZE,
29605 _SC_LEVEL4_CACHE_ASSOC, _SC_LEVEL4_CACHE_LINESIZE): New
29606 variables.
29607
29608 2017-10-23 Michael Collison <michael.collison@arm.com>
29609
29610 * sysdeps/aarch64/fpu/e_sqrt.c (ieee754_sqrt): Replace asm statements
29611 with __builtin_sqrt.
29612 * sysdeps/aarch64/fpu/e_sqrtf.c (ieee754_sqrtf): Replace asm statements
29613 with __builtin_sqrtf.
29614 * sysdeps/aarch64/fpu/s_ceil.c (__ceil): Replace asm statements
29615 with __builtin_ceil.
29616 * sysdeps/aarch64/fpu/s_ceilf.c (__ceilf): Replace asm statements
29617 with __builtin_ceilf.
29618 * sysdeps/aarch64/fpu/s_floor.c (__floor): Replace asm statements
29619 with __builtin_floor.
29620 * sysdeps/aarch64/fpu/s_floorf.c (__floorf): Replace asm statements
29621 with __builtin_floorf.
29622 * sysdeps/aarch64/fpu/s_fma.c (__fma): Replace asm statements
29623 with __builtin_fma.
29624 * sysdeps/aarch64/fpu/s_fmaf.c (__fmaf): Replace asm statements
29625 with __builtin_fmaf.
29626 * sysdeps/aarch64/fpu/s_fmax.c (__fmax): Replace asm statements
29627 with __builtin_fmax.
29628 * sysdeps/aarch64/fpu/s_fmaxf.c (__fmaxf): Replace asm statements
29629 with __builtin_fmaxf.
29630 * sysdeps/aarch64/fpu/s_fmin.c (__fmin): Replace asm statements
29631 with __builtin_fmin.
29632 * sysdeps/aarch64/fpu/s_fminf.c (__fminf): Replace asm statements
29633 with __builtin_fminf.
29634 * sysdeps/aarch64/fpu/s_frint.c: Delete file.
29635 * sysdeps/aarch64/fpu/s_frintf.c: Delete file.
29636 * sysdeps/aarch64/fpu/s_llrint.c (__llrint): Replace asm statements
29637 with builtin_rint and conversion to int.
29638 * sysdeps/aarch64/fpu/s_llrintf.c (__llrintf): Likewise.
29639 * sysdeps/aarch64/fpu/s_llround.c (__llround): Replace asm statements
29640 with builtin_llround.
29641 * sysdeps/aarch64/fpu/s_llroundf.c (__llroundf): Likewise.
29642 * sysdeps/aarch64/fpu/s_lrint.c (__lrint): Replace asm statements
29643 with builtin_rint and conversion to long int.
29644 * sysdeps/aarch64/fpu/s_lrintf.c (__lrintf): Likewise.
29645 * sysdeps/aarch64/fpu/s_lround.c (__lround): Replace asm statements
29646 with builtin_lround.
29647 * sysdeps/aarch64/fpu/s_lroundf.c (__lroundf): Replace asm statements
29648 with builtin_lroundf.
29649 * sysdeps/aarch64/fpu/s_nearbyint.c (__nearbyint): Replace asm
29650 statements with __builtin_nearbyint.
29651 * sysdeps/aarch64/fpu/s_nearbyintf.c (__nearbyintf): Replace asm
29652 statements with __builtin_nearbyintf.
29653 * sysdeps/aarch64/fpu/s_rint.c (__rint): Replace asm statements
29654 with __builtin_rint.
29655 * sysdeps/aarch64/fpu/s_rintf.c (__rintf): Replace asm statements
29656 with __builtin_rintf.
29657 * sysdeps/aarch64/fpu/s_round.c (__round): Replace asm statements
29658 with __builtin_round.
29659 * sysdeps/aarch64/fpu/s_roundf.c (__roundf): Replace asm statements
29660 with __builtin_roundf.
29661 * sysdeps/aarch64/fpu/s_trunc.c (__trunc): Replace asm statements
29662 with __builtin_trunc.
29663 * sysdeps/aarch64/fpu/s_truncf.c (__truncf): Replace asm statements
29664 with __builtin_truncf.
29665 * sysdeps/aarch64/fpu/Makefile: Build e_sqrt[f].c with -fno-math-errno,
29666 and s_l[l]round[f].c too.
29667
29668 2017-10-23 Alan Modra <amodra@gmail.com>
29669
29670 * sysdeps/powerpc/powerpc64/power8/strncpy.S: Move LR cfi.
29671 Adjust stack after restoring regs. Add missing LR cfi_restore.
29672
29673 2017-10-23 Alan Modra <amodra@gmail.com>
29674
29675 * sysdeps/powerpc/powerpc64/power7/strncpy.S: Decrease FRAMESIZE.
29676 Move LR save and frame setup/teardown and LR restore to
29677 immediately around memset call. Provide cfi.
29678
29679 2017-10-22 H.J. Lu <hongjiu.lu@intel.com>
29680
29681 * sysdeps/i386/fpu/e_powf.S: Removed.
29682 * sysdeps/i386/fpu/e_powf_log2_data.c: Likewise.
29683 * sysdeps/i386/fpu/w_powf.c: Likewise.
29684 * sysdeps/i386/fpu/libm-test-ulps: Updated for generic e_powf.c.
29685 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
29686 * sysdeps/i386/i686/fpu/multiarch/Makefile (libm-sysdep_routines):
29687 Add e_powf-sse2.
29688 (CFLAGS-e_powf-sse2.c): New.
29689 * sysdeps/i386/i686/fpu/multiarch/e_powf-sse2.c: New file.
29690 * sysdeps/i386/i686/fpu/multiarch/e_powf.c: Likewise.
29691
29692 2017-10-22 H.J. Lu <hongjiu.lu@intel.com>
29693
29694 * sysdeps/i386/fpu/e_log2f.S: Removed.
29695 * sysdeps/i386/fpu/e_log2f_data.c: Likewise.
29696 * sysdeps/i386/fpu/w_log2f.c: Likewise.
29697 * sysdeps/i386/fpu/libm-test-ulps: Updated for generic e_log2f.c.
29698 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
29699 * sysdeps/i386/i686/fpu/multiarch/Makefile (libm-sysdep_routines):
29700 Add e_log2f-sse2.
29701 (CFLAGS-e_log2f-sse2.c): New.
29702 * sysdeps/i386/i686/fpu/multiarch/e_log2f-sse2.c: New file.
29703 * sysdeps/i386/i686/fpu/multiarch/e_log2f.c: Likewise.
29704
29705 2017-10-22 H.J. Lu <hongjiu.lu@intel.com>
29706
29707 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
29708 Add e_powf-fma.
29709 (CFLAGS-e_powf-fma.c): New.
29710 * sysdeps/x86_64/fpu/multiarch/e_powf-fma.c: New file.
29711 * sysdeps/x86_64/fpu/multiarch/e_powf.c: Likewise.
29712
29713 2017-10-22 H.J. Lu <hongjiu.lu@intel.com>
29714
29715 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
29716 Add e_log2f-fma.
29717 (CFLAGS-e_log2f-fma.c): New.
29718 * sysdeps/x86_64/fpu/multiarch/e_log2f-fma.c: New file.
29719 * sysdeps/x86_64/fpu/multiarch/e_log2f.c: Likewise.
29720
29721 2017-10-22 H.J. Lu <hongjiu.lu@intel.com>
29722
29723 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
29724 Add e_logf-fma.
29725 (CFLAGS-e_logf-fma.c): New.
29726 * sysdeps/x86_64/fpu/multiarch/e_logf-fma.c: New file.
29727 * sysdeps/x86_64/fpu/multiarch/e_logf.c: Likewise.
29728
29729 2017-10-22 H.J. Lu <hongjiu.lu@intel.com>
29730
29731 * sysdeps/i386/fpu/e_logf.S: Removed.
29732 * sysdeps/i386/fpu/e_logf_data.c: Likewise.
29733 * sysdeps/i386/fpu/w_logf.c: Likewise.
29734 * sysdeps/i386/i686/fpu/e_logf.S: Likewise.
29735 * sysdeps/i386/fpu/libm-test-ulps: Updated for generic e_logf.c.
29736 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
29737 * sysdeps/i386/i686/fpu/multiarch/Makefile (libm-sysdep_routines):
29738 Add e_logf-sse2.
29739 (CFLAGS-e_logf-sse2.c): New.
29740 * sysdeps/i386/i686/fpu/multiarch/e_logf-sse2.c: New file.
29741 * sysdeps/i386/i686/fpu/multiarch/e_logf.c: Likewise.
29742
29743 2017-10-22 H.J. Lu <hongjiu.lu@intel.com>
29744
29745 * sysdeps/i386/fpu/e_exp2f.S: Removed.
29746 * sysdeps/i386/fpu/w_exp2f.c: Likewise.
29747 * sysdeps/i386/fpu/libm-test-ulps: Updated for generic e_exp2f.c.
29748 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
29749 * sysdeps/i386/i686/fpu/multiarch/Makefile (libm-sysdep_routines):
29750 Add e_exp2f-sse2.
29751 (CFLAGS-e_exp2f-sse2.c): New.
29752 * sysdeps/i386/i686/fpu/multiarch/e_exp2f-sse2.c: New file.
29753 * sysdeps/i386/i686/fpu/multiarch/e_exp2f.c: Likewise.
29754
29755 2017-10-22 H.J. Lu <hongjiu.lu@intel.com>
29756
29757 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
29758 Add e_exp2f-fma.
29759 (CFLAGS-e_exp2f-fma.c): New.
29760 * sysdeps/x86_64/fpu/multiarch/e_exp2f-fma.c: New file.
29761 * sysdeps/x86_64/fpu/multiarch/e_exp2f.c: Likewise.
29762
29763 2017-10-22 H.J. Lu <hongjiu.lu@intel.com>
29764
29765 * sysdeps/i386/fpu/e_exp2f_data.c: Removed.
29766 * sysdeps/i386/fpu/e_expf.S: Likewise.
29767 * sysdeps/i386/fpu/math_errf.c: Likewise.
29768 * sysdeps/i386/fpu/w_expf.c: Likewise.
29769 * sysdeps/i386/i686/fpu/multiarch/e_expf-ia32.S: Likewise.
29770 * sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.S: Likewise.
29771 * sysdeps/i386/i686/fpu/multiarch/w_expf.c: Likewise.
29772 * sysdeps/i386/fpu/libm-test-ulps: Updated for generic e_expf.c.
29773 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
29774 * sysdeps/i386/i686/fpu/multiarch/Makefile (libm-sysdep_routines):
29775 Remove e_expf-ia32.
29776 (CFLAGS-e_expf-sse2.c): New.
29777 * sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.c: New file.
29778 * sysdeps/i386/i686/fpu/multiarch/e_expf.c: Rewritten.
29779
29780 2017-10-22 H.J. Lu <hongjiu.lu@intel.com>
29781
29782 * sysdeps/x86_64/fpu/e_expf.S: Removed.
29783 * sysdeps/x86_64/fpu/multiarch/e_expf-fma.S: Likewise.
29784 * sysdeps/x86_64/fpu/w_expf.c: Likewise.
29785 * sysdeps/x86_64/fpu/libm-test-ulps: Updated for generic
29786 e_expf.c.
29787 * sysdeps/x86_64/fpu/multiarch/Makefile (CFLAGS-e_expf-fma.c):
29788 New.
29789 * sysdeps/x86_64/fpu/multiarch/e_expf-fma.c: New file.
29790 * sysdeps/x86_64/fpu/multiarch/e_expf.c (__redirect_ieee754_expf):
29791 Renamed to ...
29792 (__redirect_expf): This.
29793 (SYMBOL_NAME): Changed to expf.
29794 (__ieee754_expf): Renamed to ...
29795 (__expf): This.
29796 (__GI___expf): This.
29797 (__ieee754_expf): Add strong_alias.
29798 (__expf_finite): Likewise.
29799 (__expf): New.
29800 Include <sysdeps/ieee754/flt-32/e_expf.c>.
29801
29802 2017-10-22 Paul Eggert <eggert@cs.ucla.edu>
29803
29804 [BZ #22332]
29805 * posix/glob.c (__glob): Fix buffer overflow during GLOB_TILDE
29806 unescaping.
29807
29808 2017-10-21 Florian Weimer <fweimer@redhat.com>
29809
29810 * posix/Makefile (tests): Add tst-glob-tilde.
29811 (tests-special): Add tst-glob-tilde-mem.out
29812 (tst-glob-tilde-ENV): Set MALLOC_TRACE.
29813 (tst-glob-tilde-mem.out): Add mtrace check.
29814 * posix/tst-glob-tilde.c: New file.
29815
29816 2017-10-20 Joseph Myers <joseph@codesourcery.com>
29817
29818 * bits/floatn-common.h: New file.
29819 * math/Makefile (headers): Add bits/floatn-common.h.
29820 * bits/floatn.h: Include <bits/floatn-common.h>.
29821 * sysdeps/ia64/bits/floatn.h: Likewise.
29822 * sysdeps/ieee754/ldbl-128/bits/floatn.h: Likewise.
29823 * sysdeps/mips/ieee754/bits/floatn.h: Likewise.
29824 * sysdeps/powerpc/bits/floatn.h: Likewise.
29825 * sysdeps/x86/bits/floatn.h: Likewise.
29826
29827 2017-10-20 Adhemerval Zanella <adhemerval.zanella@linaro.org>
29828
29829 * configure.ac (libc_cv_gcc_incompatbile_alias): New define:
29830 indicates whether compiler emits an warning for alias for
29831 functions with incompatible types.
29832
29833 [BZ #22273]
29834 * sysdeps/unix/sysv/linux/spawni.c (__spawnix): Handle the case where
29835 the auxiliary process is terminated by a signal before calling _exit
29836 or execve.
29837
29838 2017-10-20 H.J. Lu <hongjiu.lu@intel.com>
29839
29840 [BZ #21265]
29841 * sysdeps/x86/cpu-features-offsets.sym (XSAVE_STATE_SIZE_OFFSET):
29842 New.
29843 * sysdeps/x86/cpu-features.c: Include <libc-pointer-arith.h>.
29844 (get_common_indeces): Set xsave_state_size, xsave_state_full_size
29845 and bit_arch_XSAVEC_Usable if needed.
29846 (init_cpu_features): Remove bit_arch_Use_dl_runtime_resolve_slow
29847 and bit_arch_Use_dl_runtime_resolve_opt.
29848 * sysdeps/x86/cpu-features.h (bit_arch_Use_dl_runtime_resolve_opt):
29849 Removed.
29850 (bit_arch_Use_dl_runtime_resolve_slow): Likewise.
29851 (bit_arch_Prefer_No_AVX512): Updated.
29852 (bit_arch_MathVec_Prefer_No_AVX512): Likewise.
29853 (bit_arch_XSAVEC_Usable): New.
29854 (STATE_SAVE_OFFSET): Likewise.
29855 (STATE_SAVE_MASK): Likewise.
29856 [__ASSEMBLER__]: Include <cpu-features-offsets.h>.
29857 (cpu_features): Add xsave_state_size and xsave_state_full_size.
29858 (index_arch_Use_dl_runtime_resolve_opt): Removed.
29859 (index_arch_Use_dl_runtime_resolve_slow): Likewise.
29860 (index_arch_XSAVEC_Usable): New.
29861 * sysdeps/x86/cpu-tunables.c (TUNABLE_CALLBACK (set_hwcaps)):
29862 Support XSAVEC_Usable. Remove Use_dl_runtime_resolve_slow.
29863 * sysdeps/x86_64/Makefile (tst-x86_64-1-ENV): New if tunables
29864 is enabled.
29865 * sysdeps/x86_64/dl-machine.h (elf_machine_runtime_setup):
29866 Replace _dl_runtime_resolve_sse, _dl_runtime_resolve_avx,
29867 _dl_runtime_resolve_avx_slow, _dl_runtime_resolve_avx_opt,
29868 _dl_runtime_resolve_avx512 and _dl_runtime_resolve_avx512_opt
29869 with _dl_runtime_resolve_fxsave, _dl_runtime_resolve_xsave and
29870 _dl_runtime_resolve_xsavec.
29871 * sysdeps/x86_64/dl-trampoline.S (DL_RUNTIME_UNALIGNED_VEC_SIZE):
29872 Removed.
29873 (DL_RUNTIME_RESOLVE_REALIGN_STACK): Check STATE_SAVE_ALIGNMENT
29874 instead of VEC_SIZE.
29875 (REGISTER_SAVE_BND0): Removed.
29876 (REGISTER_SAVE_BND1): Likewise.
29877 (REGISTER_SAVE_BND3): Likewise.
29878 (REGISTER_SAVE_RAX): Always defined to 0.
29879 (VMOV): Removed.
29880 (_dl_runtime_resolve_avx): Likewise.
29881 (_dl_runtime_resolve_avx_slow): Likewise.
29882 (_dl_runtime_resolve_avx_opt): Likewise.
29883 (_dl_runtime_resolve_avx512): Likewise.
29884 (_dl_runtime_resolve_avx512_opt): Likewise.
29885 (_dl_runtime_resolve_sse): Likewise.
29886 (_dl_runtime_resolve_sse_vex): Likewise.
29887 (USE_FXSAVE): New.
29888 (_dl_runtime_resolve_fxsave): Likewise.
29889 (USE_XSAVE): Likewise.
29890 (_dl_runtime_resolve_xsave): Likewise.
29891 (USE_XSAVEC): Likewise.
29892 (_dl_runtime_resolve_xsavec): Likewise.
29893 * sysdeps/x86_64/dl-trampoline.h (_dl_runtime_resolve_avx512):
29894 Removed.
29895 (_dl_runtime_resolve_avx512_opt): Likewise.
29896 (_dl_runtime_resolve_avx): Likewise.
29897 (_dl_runtime_resolve_avx_opt): Likewise.
29898 (_dl_runtime_resolve_sse): Likewise.
29899 (_dl_runtime_resolve_sse_vex): Likewise.
29900 (_dl_runtime_resolve_fxsave): New.
29901 (_dl_runtime_resolve_xsave): Likewise.
29902 (_dl_runtime_resolve_xsavec): Likewise.
29903
29904 2017-10-20 Paul Eggert <eggert@cs.ucla.edu>
29905
29906 [BZ #22320]
29907 CVE-2017-15670
29908 * posix/glob.c (__glob): Fix one-byte overflow.
29909
29910 2017-10-20 Wilco Dijkstra <wdijkstr@arm.com>
29911
29912 * malloc/malloc.c (sysdep-cancel.h): Add include.
29913
29914 2017-10-20 Wilco Dijkstra <wdijkstr@arm.com>
29915
29916 * malloc/malloc.c (_int_free): Add SINGLE_THREAD_P fast paths.
29917
29918 2017-10-20 Will Hawkins <hawkinsw@borlaugic.com>
29919
29920 * resolv/Makefile [$(build-shared)$(have-thread-library) == yesyes]
29921 (tests): Remove $(objpfx)ga_test depdendency.
29922 * resolv/ga_test.c: Remove file.
29923
29924 2017-10-20 Mike FABIAN <mfabian@redhat.com>
29925
29926 [BZ #18812]
29927 * localedata/SUPPORTED: Add kab_DZ/UTF-8.
29928 * localedata/locales/kab_DZ: New file.
29929
29930 2017-10-20 H.J. Lu <hongjiu.lu@intel.com>
29931
29932 * sysdeps/m68k/dl-machine.h (elf_machine_load_address): Use
29933 _dl_relocate_static_pie instead of _dl_start to compute load
29934 address in static PIE.
29935
29936 2017-10-20 H.J. Lu <hongjiu.lu@intel.com>
29937
29938 * sysdeps/m68k/start.S (_start): Check PIC instead of SHARED.
29939
29940 2017-10-20 Mike FABIAN <mfabian@redhat.com>
29941
29942 [BZ #13605]
29943 * localedata/SUPPORTED: Add shn_MM/UTF-8.
29944 * localedata/locales/shn_MM: New file.
29945
29946 2017-10-20 Florian Weimer <fweimer@redhat.com>
29947
29948 [BZ #22321]
29949 sysconf: Fix missing definition of UIO_MAXIOV on Linux.
29950 * sysdeps/posix/sysconf.c: Include <sys/uio.h>.
29951 * sysdeps/unix/sysv/linux/Makefile (tests): Add tst-sysconf-iov_max.
29952 (tst-sysconf-iov_max): Link with tst-sysconf-iov_max-uapi.o.
29953 * sysdeps/unix/sysv/linux/tst-sysconf-iov_max.c: New file.
29954 * sysdeps/unix/sysv/linux/tst-sysconf-iov_max-uapi.c: Likewise.
29955
29956 2017-10-19 H.J. Lu <hongjiu.lu@intel.com>
29957
29958 * sysdeps/i386/fpu/libm-test-ulps: Regenerated.
29959
29960 2017-10-19 Joseph Myers <joseph@codesourcery.com>
29961
29962 * sysdeps/mips/ieee754/bits/floatn.h: New file.
29963
29964 [BZ #22322]
29965 * sysdeps/mips/bits/long-double.h: Move to ....
29966 * sysdeps/mips/ieee754/bits/long-double.h: ... here.
29967
29968 2017-10-19 Wilco Dijkstra <wdijkstr@arm.com>
29969
29970 * malloc/malloc.c (_int_free): Fix deadlock bug in consistency check.
29971
29972 2017-10-19 Valery Reznic <valery_reznic@yahoo.com>
29973 H.J. Lu <hongjiu.lu@intel.com>
29974
29975 [BZ #22299]
29976 * sysdeps/x86/cpu-features.c (init_cpu_features): Don't set
29977 GLRO(dl_platform) to NULL.
29978 * sysdeps/x86_64/Makefile (tests): Add tst-platform-1.
29979 (modules-names): Add tst-platformmod-1 and
29980 x86_64/tst-platformmod-2.
29981 (CFLAGS-tst-platform-1.c): New.
29982 (CFLAGS-tst-platformmod-1.c): Likewise.
29983 (CFLAGS-tst-platformmod-2.c): Likewise.
29984 (LDFLAGS-tst-platformmod-2.so): Likewise.
29985 ($(objpfx)tst-platform-1): Likewise.
29986 ($(objpfx)tst-platform-1.out): Likewise.
29987 (tst-platform-1-ENV): Likewise.
29988 ($(objpfx)x86_64/tst-platformmod-2.os): Likewise.
29989 * sysdeps/x86_64/tst-platform-1.c: New file.
29990 * sysdeps/x86_64/tst-platformmod-1.c: Likewise.
29991 * sysdeps/x86_64/tst-platformmod-2.c: Likewise.
29992
29993 2017-10-19 Mike FABIAN <mfabian@redhat.com>
29994
29995 [BZ #13994]
29996 * locale/iso-639.def: Add Karbi.
29997 * localedata/SUPPORTED: Add mjw_IN/UTF-8.
29998 * localedata/locales/mjw_IN: New file.
29999
30000 2017-10-18 Joseph Myers <joseph@codesourcery.com>
30001
30002 * sysdeps/ieee754/ldbl-128/Makeconfig: New file.
30003 * sysdeps/ieee754/ldbl-128/bits/floatn.h: Likewise.
30004 * sysdeps/ieee754/ldbl-128/float128-abi.h: Likewise.
30005 * sysdeps/generic/libm-alias-ldouble.h: Include <bits/floatn.h>.
30006 [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128]
30007 (libm_alias_ldouble_other_r): Also create _Float128 alias.
30008 * sysdeps/ieee754/ldbl-opt/libm-alias-ldouble.h: Include
30009 <bits/floatn.h>.
30010 [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128]
30011 (libm_alias_ldouble_other_r): Also create _Float128 alias.
30012 * manual/math.texi (Mathematics): Document additional architecture
30013 support for _Float128.
30014 * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Update.
30015 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
30016 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
30017 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
30018 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
30019 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
30020 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
30021 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
30022 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
30023 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
30024 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
30025 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
30026 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
30027 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
30028 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
30029
30030 2017-10-18 Renlin Li <renlin.li@arm.com>
30031
30032 * sysdeps/aarch64/dl-machine.h (elf_machine_load_address): Use
30033 _DYNAMIC symbol to calculate load address.
30034
30035 2017-10-18 Paul A. Clarke <pc@us.ibm.com>
30036
30037 * sysdeps/powerpc/fpu/fenv_private.h (_FPU_MASK_TRAPS_RN):
30038 (_FPU_MASK_FRAC_INEX_RET_CC): Fix masks to more properly handle
30039 summary bits.
30040 (_FPU_MASK_RN): Expand _FPU_MASK_RN to 64bit hex.
30041 (_FPU_MASK_NOT_RN_NI): Treat bit 52 (left-to-right) as reserved.
30042
30043 2017-10-18 Mike FABIAN <mfabian@redhat.com>
30044
30045 [BZ #16777]
30046 * localedata/locales/pl_PL (LC_MONETARY): Use U+202F as mon_thousands_sep
30047 and improve readability by using more ASCII.
30048 * localedata/locales/pl_PL (LC_NUMERIC): Use U+202F as thousands_sep
30049 and improve readability by using more ASCII.
30050
30051 2017-10-18 Wilco Dijkstra <wdijkstr@arm.com>
30052
30053 * malloc/malloc.c (malloc_state): Use int for have_fastchunks since
30054 not all targets support atomics on bool.
30055
30056 2017-10-17 Joseph Myers <joseph@codesourcery.com>
30057
30058 * include/float.h [!__GNUC_PREREQ (7, 0) && __HAVE_FLOAT128 &&
30059 __GLIBC_USE (IEC_60559_TYPES_EXT)] (FLT128_MAX): Define using
30060 __f128.
30061 [!__GNUC_PREREQ (7, 0) && __HAVE_FLOAT128 && __GLIBC_USE
30062 (IEC_60559_TYPES_EXT)] (FLT128_EPSILON): Likewise.
30063 [!__GNUC_PREREQ (7, 0) && __HAVE_FLOAT128 && __GLIBC_USE
30064 (IEC_60559_TYPES_EXT)] (FLT128_MIN): Likewise.
30065 [!__GNUC_PREREQ (7, 0) && __HAVE_FLOAT128 && __GLIBC_USE
30066 (IEC_60559_TYPES_EXT)] (FLT128_TRUE_MIN): Likewise.
30067
30068 2017-10-17 Adhemerval Zanella <adhemerval.zanella@linaro.org>
30069
30070 * bits/uio-ext.h (RWF_HIPRI, RWF_DSYNC, RWF_SYNC, RWF_NOWAIT): New
30071 defines.
30072
30073 2017-10-17 Wilco Dijkstra <wdijkstr@arm.com>
30074
30075 [BZ #22159]
30076 * malloc/arena.c (ptmalloc_init): Call malloc_init_state.
30077 * malloc/malloc.c (do_check_free_chunk): Fix build bug.
30078 (do_check_remalloced_chunk): Fix build bug.
30079 (do_check_malloc_state): Add assert that checks arena->top.
30080 (malloc_consolidate): Remove initialization.
30081 (int_mallinfo): Remove call to malloc_consolidate.
30082 (__libc_mallopt): Clarify why malloc_consolidate is needed.
30083
30084 2017-10-17 Wilco Dijkstra <wdijkstr@arm.com>
30085
30086 * malloc/malloc.c (FASTCHUNKS_BIT): Remove.
30087 (have_fastchunks): Remove.
30088 (clear_fastchunks): Remove.
30089 (set_fastchunks): Remove.
30090 (malloc_state): Add have_fastchunks.
30091 (malloc_init_state): Use have_fastchunks.
30092 (do_check_malloc_state): Remove incorrect invariant checks.
30093 (_int_malloc): Use have_fastchunks.
30094 (_int_free): Likewise.
30095 (malloc_consolidate): Likewise.
30096
30097 2017-10-17 Wilco Dijkstra <wdijkstr@arm.com>
30098
30099 * malloc/malloc.c (tcache_put): Inline.
30100 (tcache_get): Inline.
30101
30102 2017-10-17 Jordi Mallach <jordi@gnu.org>
30103
30104 Aurelien Jarno <aurelien@aurel32.net>
30105 [BZ #2522]
30106 * localedata/locales/ca_ES@valencia: New file.
30107 * localedata/SUPPORTED: Add ca_ES@valencia/UTF-8.
30108
30109 2017-10-17 Romain Naour <romain.naour@gmail.com> (tiny change)
30110
30111 [BZ #22296]
30112 * math/math.h: Let signbit use the builtin in C++ mode with gcc
30113 < 6.x
30114
30115 2017-10-17 Adhemerval Zanella <adhemerval.zanella@linaro.org>
30116
30117 * scripts/build-many-glibcs.py (Context.add_all_configs):
30118 Add arm-linux-gnueabihf multiarch extra_glibcs.
30119
30120 * sysdeps/generic/ifunc-init.h: New file.
30121 * sysdeps/x86/init-arch.h: Use generic ifunc-init.h.
30122
30123 2017-10-17 Mike FABIAN <mfabian@redhat.com>
30124
30125 [BZ #22019]
30126 * localedata/locales/el_GR: Set n_cs_precedes to 0.
30127 * localedata/locales/el_CY: copy "el_GR" because it is identical.
30128 * stdlib/tst-strfmon_l.c: adapt test case.
30129
30130 2017-10-16 Joseph Myers <joseph@codesourcery.com>
30131
30132 * sysdeps/generic/float128-abi.h: New file.
30133 * sysdeps/ieee754/float128/Versions (FLOAT128_VERSION): Move
30134 non-__prefixed symbols to ....
30135 * math/Versions: ... here. Include <float128-abi.h>.
30136 * stdlib/Versions ... and here. Include <float128-abi.h>
30137
30138 2017-10-16 Florian Weimer <fweimer@redhat.com>
30139
30140 * version.h (VERSION): Switch to ".9000" as the development
30141 version suffix.
30142
30143 2017-10-16 Florian Weimer <fweimer@redhat.com>
30144
30145 [BZ #22050]
30146 * malloc/mcheck-init.c (__malloc_initialize_hook): Use
30147 compat_symbol_reference to access non-default version.
30148
30149 2017-10-16 Florian Weimer <fweimer@redhat.com>
30150
30151 * malloc/Makefile (others-extras): Set to mcheck-init.o.
30152
30153 2017-10-16 Carlos O'Donell <carlos@redhat.com>
30154
30155 * include/shlib-compat.h (compat_symbol_reference): Update
30156 comment.
30157
30158 2017-10-16 Joseph Myers <joseph@codesourcery.com>
30159
30160 * math/Makefile (test-types): Add
30161 $(type-float128-$(float128-alias-fcts)).
30162 * math/test-float128.h (TYPE_STR): Define conditional on
30163 [FLT128_MANT_DIG == LDBL_MANT_DIG].
30164 (ULP_IDX): Likewise.
30165 (ULP_I_IDX): Likewise.
30166
30167 * stdlib/strtold.c: Include <bits/floatn.h>
30168 [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128] (strtof128): Define
30169 and later undefine as macro. Define as weak alias if
30170 [!USE_WIDE_CHAR].
30171 [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128] (wcstof128): Define
30172 and later undefine as macro. Define as weak alias if
30173 [USE_WIDE_CHAR].
30174 * sysdeps/ieee754/ldbl-128/strtold_l.c [__HAVE_FLOAT128 &&
30175 !__HAVE_DISTINCT_FLOAT128] (strtof128_l): Define and later
30176 undefine as macro. Define as weak alias if [!USE_WIDE_CHAR].
30177 [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128] (wcstof128_l):
30178 Define and later undefine as macro. Define as weak alias if
30179 [USE_WIDE_CHAR].
30180 * sysdeps/ieee754/ldbl-64-128/strtold_l.c: Include
30181 <bits/floatn.h>.
30182 [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128] (strtof128_l):
30183 Define and later undefine as macro. Define as weak alias if
30184 [!USE_WIDE_CHAR].
30185 [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128] (wcstof128_l):
30186 Define and later undefine as macro. Define as weak alias if
30187 [USE_WIDE_CHAR].
30188
30189 2017-10-15 Carlos O'Donell <carlos@redhat.com>
30190
30191 * localedata/collate-test.c (allocate_arrays): Don't use \n in
30192 record_verbose messages.
30193
30194 2017-10-15 H.J. Lu <hongjiu.lu@intel.com>
30195
30196 [BZ #22052]
30197 * malloc/hooks.c (realloc_check): Use DIAG_IGNORE_NEEDS_COMMENT
30198 to silence -O3 -Wall warning with GCC 7.
30199
30200 2017-10-14 H.J. Lu <hongjiu.lu@intel.com>
30201
30202 * Makeconfig (+link-static-before-libc): Use the first of
30203 $(CRT-$(@F)) and $(csu-objpfx)$(static-start-installed-name).
30204 * gmon/Makefile (tests): Add tst-gmon-static.
30205 (tests-static): Likewise.
30206 (CFLAGS-tst-gmon-static.c): New.
30207 (CRT-tst-gmon-static): Likewise.
30208 (DEFAULT-LDFLAGS-tst-gmon-static): Likewise.
30209 (tst-gmon-static-ENV): Likewise.
30210 (tests-special): Likewise.
30211 ($(objpfx)tst-gmon-static.out): Likewise.
30212 (clean-tst-gmon-static-data): Likewise.
30213 ($(objpfx)tst-gmon-static-gprof.out): Likewise.
30214 * gmon/tst-gmon-static-gprof.sh: New file.
30215 * gmon/tst-gmon-static.c: Likewise.
30216
30217 2017-10-13 Carlos O'Donell <carlos@redhat.com>
30218
30219 [BZ #22295]
30220 * locale/programs/linereader.c (get_string): Don't warn on
30221 non-symbolic character.
30222
30223 [BZ #22294]
30224 * locale/programs/ld-monetary.c (monetary_finish): Allow ""
30225 int_curr_symbol.
30226
30227 [BZ #22292]
30228 * locale/programs/record-status.h: New file
30229 * locale/programs/locale.c: Add comment.
30230 * locale/programs/charmap-dir.c: Don't include error.h.
30231 (charmap_opendir): Use record_error.
30232 * locale/programs/charmap.c: Don't include error.h.
30233 (charmap_read): Use record_error, and record_warning.
30234 (parse_charmap): Likewise.
30235 * locale/programs/ld-address.c: Don't include error.h.
30236 (address_finish): Use record_error, and record_warning.
30237 * locale/programs/ld-collate.c: Don't include error.h.
30238 (collate_finish): Use record_error, and record_error_at_line.
30239 * locale/programs/ld-ctype.c (ctype_finish): Use record_error.
30240 (ctype_class_new): Likewise.
30241 (ctype_map_new): Likewise.
30242 (set_one_default): Likewise.
30243 (set_class_defaults): Likewise.
30244 (translit_flatten): Likewise.
30245 (allocate_arrays): Use record_error, and record_verbose.
30246 * locale/programs/ld-identification.c: Don't include error.h.
30247 (indentation_finish): Use record_error and record_warning.
30248 * locale/programs/ld-measurement.c: Don't include error.h.
30249 (measurement_finish): Use record_error.
30250 * locale/programs/ld-messages.c
30251 (message_finish): Likewise.
30252 * locale/programs/ld-monetary.c
30253 (monetary_finish): Likewise.
30254 * locale/programs/ld-name.c (name_finish): Use record_error
30255 and record_warning.
30256 * locale/programs/ld-numeric.c
30257 (numeric_finish): Use record_error.
30258 * locale/programs/ld-paper.c: Don't include error.h.
30259 (paper_finish): Use record_error.
30260 * locale/programs/ld-telephone.c: Don't include error.h.
30261 (telephone_finish): Use record_error.
30262 * locale/programs/ld-time.c (time_finish): Likewise.
30263 * locale/programs/linereader.h (lr_error): Make inline func.
30264 * locale/programs/localedef.c: Define recorded_warning_count,
30265 and recorded_error_count.
30266 (main): Use record_error. Use recorded_error_count and
30267 recorded_warning_count to issue correct error returns.
30268 (add_to_readlist): Use record_error.
30269 (find_locale): Likewise.
30270 (load_locale): Likewise.
30271 * locale/programs/localedef.h: Remove be_quiet
30272 and WITH_CUR_LOCALE.
30273 * locale/programs/locarchive.c (compare_from_file): Use
30274 record_error.
30275 * locale/programs/locfile.c (write_locale_data): Use
30276 record_error.
30277 * locale/programs/repertoire.c: Dont include error.h.
30278 (repertoire_complain): Use record_error.
30279 * localedata/tst-fmon.sh: Expect failures from localedef.
30280 * localedata/tst-locale.sh: Likewise.
30281 * localedata/gen-locale.sh: Expect failures from SHIFT_JIS.
30282
30283 * localedata/unicode-gen/Makefile (GENERATED): Use i18n_ctype.
30284 (REPORTS): Likewise.
30285 (check): Likewise.
30286 (i18n): Rename to...
30287 (i18n_ctype): ...this.
30288 (i18n-report): Rename to...
30289 (i18n_ctype-report): ...this.
30290 * localedata/locales/i18n_ctype: Regenerate.
30291 * localedata/locales/i18n: copy i18n_ctype.
30292
30293 2017-10-13 Joseph Myers <joseph@codesourcery.com>
30294
30295 * stdlib/strfroml.c: Include <bits/floatn.h>.
30296 [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128] (strfromf128):
30297 Define before include of <stdlib.h> and undefine afterwards, then
30298 define as weak alias.
30299
30300 * sysdeps/ieee754/ldbl-64-128/s_nextafterl.c (weak_alias):
30301 Undefine and restore default definition. Use
30302 libm_alias_ldouble_other.
30303
30304 2017-10-13 Peter Zelezny <peter.zelezny@dektech.com.au>
30305
30306 [BZ #22153]
30307 * nptl/allocatestack.c (__nptl_setxid_error): Preserve error code
30308 in coredumps.
30309
30310 2017-10-13 James Clarke <jrtc27@jrtc27.com>
30311
30312 * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela):
30313 Assign sym_map to be map for local symbols, as TLS relocations
30314 use sym_map to determine whether the symbol is defined and to
30315 extract the TLS information.
30316 * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Likewise.
30317 * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Likewise.
30318
30319 2017-10-13 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
30320
30321 [BZ #22189]
30322 * sysdeps/powerpc/fpu/math_private.h (math_opt_barrier):
30323 (math_force_eval): Add powerpc version.
30324
30325 [BZ #22142]
30326 * stdio-common/tst-printf.c (fp_test): Add tests for DBL_MAX and
30327 -DBL_MAX.
30328 (do_test): Likewise.
30329 * stdio-common/tst-printf.sh: Likewise.
30330 * sysdeps/powerpc/powerpc64/power7/add_n.S: Invert the initial
30331 ifdef clause in order to set the carry bit right. Replace r0 by
30332 0 without changing the behavior.
30333
30334 2017-10-13 Joseph Myers <joseph@codesourcery.com>
30335
30336 * sysdeps/sparc/sparc32/fpu/s_fabsl.c: Include
30337 <libm-alias-ldouble.h>.
30338 (fabsl): Define using libm_alias_ldouble.
30339 * sysdeps/sparc/sparc64/fpu/s_fabsl.c: Include
30340 <libm-alias-ldouble.h>.
30341 (fabsl): Define using libm_alias_ldouble.
30342
30343 * sysdeps/ieee754/ldbl-opt/w_lgamma_compatl.c [BUILD_LGAMMA]:
30344 Remove conditional code.
30345
30346 * sysdeps/ieee754/ldbl-opt/s_clog10l.c (__clog10l__internal):
30347 Rename to __clog10_internal_l.
30348 (__clog10_internal_l): Define aliases using
30349 libm_alias_ldouble_other instead of using libm_alias_ldouble_other
30350 with __clog10.
30351
30352 2017-10-13 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
30353
30354 * benchtests/Makefile (bench-math): Add sinf, cosf and sincosf.
30355 * benchtests/sincosf-inputs: New file.
30356 * benchtests/cosf-inputs: New file.
30357 * benchtests/sinf-inputs: New file.
30358
30359 2017-10-12 Szabolcs Nagy <szabolcs.nagy@arm.com>
30360
30361 * posix/tst-spawn.c (do_test): Wait for both children.
30362
30363 2017-10-12 H.J. Lu <hongjiu.lu@intel.com>
30364
30365 [BZ #22284]
30366 * gmon/Makefile [$(have-fpie)$(build-shared) == yesyes] (tests,
30367 tests-pie): Add tst-gmon-pie.
30368 (CFLAGS-tst-gmon-pie.c): New.
30369 (CRT-tst-gmon-pie): Likewise.
30370 (tst-gmon-pie-ENV): Likewise.
30371 [$(have-fpie)$(build-shared) == yesyes] (tests-special): Likewise.
30372 ($(objpfx)tst-gmon-pie.out): Likewise.
30373 (clean-tst-gmon-pie-data): Likewise.
30374 ($(objpfx)tst-gmon-pie-gprof.out): Likewise.
30375 * gmon/gmon.c [PIC]: Include <link.h>.
30376 [PIC] (callback): New function.
30377 (write_hist): Add an argument for load address. Subtract load
30378 address from PCs.
30379 (write_call_graph): Likewise.
30380 (write_gmon): Call __dl_iterate_phdr to get load address, pass
30381 it to write_hist and write_call_graph.
30382 * gmon/tst-gmon-pie.c: New file.
30383
30384 2017-10-11 Joseph Myers <joseph@codesourcery.com>
30385
30386 * math/Makefile (test-types-basic): New variable.
30387 (test-types): Likewise.
30388 (libm-test-support): Use $(test-types) instead of $(types).
30389 (libm-tests-base-normal): Likewise.
30390 (libm-tests-base-finite): Likewise.
30391 (libm-tests-base-inline): Likewise.
30392 (generated): Likewise.
30393 ($(objpfx)libm-test-support-$(t).c): Likewise.
30394 (libm-tests-for-type iterator): Likewise.
30395 (libm-test-support iterator): Likewise.
30396 * math/libm-test-support.c (ulp_i_idx): Use ULP_I_IDX.
30397 (ulp_idx): Use ULP_IDX.
30398 * math/test-ldouble.h: Include <float.h>.
30399 (TYPE_STR): Define conditional on [LDBL_MANT_DIG == DBL_MANT_DIG].
30400 (ULP_IDX): New macro.
30401 (ULP_I_IDX): Likewise.
30402 * math/test-double.h (ULP_IDX): Likewise.
30403 (ULP_I_IDX): Likewise.
30404 * math/test-float.h (ULP_IDX): Likewise.
30405 (ULP_I_IDX): Likewise.
30406 * math/test-float128.h (ULP_IDX): Likewise.
30407 (ULP_I_IDX): Likewise.
30408
30409 2017-10-11 Adhemerval Zanella <adhemerval.zanella@linaro.org>
30410
30411 * sysdeps/unix/sysv/linux/aarch64/sysdep-cancel.h: Remove file.
30412 * sysdeps/unix/sysv/linux/alpha/sysdep-cancel.h: Likewise.
30413 * sysdeps/unix/sysv/linux/arm/sysdep-cancel.h: Likewise.
30414 * sysdeps/unix/sysv/linux/hppa/sysdep-cancel.h: Likewise.
30415 * sysdeps/unix/sysv/linux/mips/sysdep-cancel.h: Likewise.
30416 * sysdeps/unix/sysv/linux/nios2/sysdep-cancel.h: Likewise.
30417 * sysdeps/unix/sysv/linux/powerpc/sysdep-cancel.h: Likewise.
30418 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep-cancel.h: Likewise.
30419 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep-cancel.h: Likewise.
30420 * sysdeps/unix/sysv/linux/sh/sysdep-cancel.h: Likewise.
30421 * sysdeps/unix/sysv/linux/sparc/sysdep-cancel.h: Likewise.
30422 * sysdeps/unix/sysv/linux/tile/sysdep-cancel.h: Likewise.
30423 * sysdeps/unix/sysv/linux/x86_64/sysdep-cancel.h: Likewise.
30424 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h
30425 (SINGLE_THREAD_BY_GLOBAL): Define.
30426 * sysdeps/unix/sysv/linux/aarch64/sysdep.h (SINGLE_THREAD_BY_GLOBAL):
30427 Likewise.
30428 * sysdeps/unix/sysv/linux/alpha/sysdep.h (SINGLE_THREAD_BY_GLOBAL):
30429 Likewise.
30430 * sysdeps/unix/sysv/linux/arm/sysdep.h (SINGLE_THREAD_BY_GLOBAL):
30431 Likewise.
30432 * sysdeps/unix/sysv/linux/hppa/sysdep.h (SINGLE_THREAD_BY_GLOBAL):
30433 Likewise.
30434 * sysdeps/unix/sysv/linux/microblaze/sysdep.h
30435 (SINGLE_THREAD_BY_GLOBAL): Likewise.
30436 * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SINGLE_THREAD_BY_GLOBAL):
30437 Likewise.
30438
30439 2017-10-11 Andreas Schwab <schwab@suse.de>
30440
30441 * nis/Makefile (aux): Remove.
30442 * nscd/Makefile (aux): Add nscd_hash.
30443 (nscd-modules): Likewise.
30444 ($(objpfx)nscd): Don't depend on libnsl.
30445 * nscd/nscd_hash.c: New file.
30446 * nscd/nscd_hash.h: Likewise.
30447 * nscd/cache.c: Include "nscd_hash.h" instead of <rpcsvc/nis.h>.
30448 (cache_search, cache_add): Use __nscd_hash instead of __nis_hash.
30449 * nscd/nscd_helper.c: Include <sys/param.h> and "nscd_hash.h"
30450 instead of <nis/rpcsvc/nis.h>.
30451 (__nscd_cache_search): Use __nscd_hash instead of __nis_hash.
30452
30453 2017-10-11 Florian Weimer <fweimer@redhat.com>
30454
30455 [BZ #22078]
30456 Avoid large NSS buffers with many addresses, aliases.
30457 * nss/nss_files/files-hosts.c (gethostbyname3_multi): Rewrite
30458 using dynarrays and struct alloc_buffer.
30459 * nss/Makefile (tests): Add tst-nss-files-hosts-multi.
30460 (tst-nss-files-hosts-multi): Link with -ldl.
30461 * nss/tst-nss-files-hosts-multi.c: New file.
30462
30463 2017-10-11 Florian Weimer <fweimer@redhat.com>
30464
30465 [BZ #18023]
30466 * nss/nss_files/files-hosts.c (gethostbyname3_multi): Use struct
30467 scratch_buffer. Eliminate gotos.
30468
30469 2017-10-11 Joseph Myers <joseph@codesourcery.com>
30470
30471 * sysdeps/ieee754/ldbl-opt/s_clog10l.c: Use
30472 libm_alias_ldouble_other.
30473 * sysdeps/ieee754/ldbl-opt/w_exp10l_compat.c (weak_alias): Do not
30474 undefine and redefine.
30475 [LIBM_SVID_COMPAT && !LONG_DOUBLE_COMPAT (libm, GLIBC_2_1)]
30476 (exp10l): Do not define here.
30477 * sysdeps/ieee754/ldbl-opt/w_lgamma_compatl.c [BUILD_LGAMMA]
30478 (weak_alias): Undefine and redefine.
30479 [BUILD_LGAMMA]: Use libm_alias_ldouble_other.
30480 * sysdeps/ieee754/ldbl-opt/w_remainderl_compat.c
30481 [LIBM_SVID_COMPAT] (weak_alias): Undefine and redefine here.
30482 [LIBM_SVID_COMPAT]: Use libm_alias_ldouble_other.
30483
30484 * soft-fp/fmadf4.c: Include <libm-alias-double.h>.
30485 [!__fma] (fma): Define using libm_alias_double.
30486 * soft-fp/fmasf4.c: Include <libm-alias-float.h>.
30487 [!__fmaf] (fmaf): Define using libm_alias_float.
30488 * soft-fp/fmatf4.c: Include <libm-alias-ldouble.h>.
30489 (fmal): Define using libm_alias_ldouble.
30490
30491 2017-10-10 Joseph Myers <joseph@codesourcery.com>
30492
30493 * sysdeps/generic/libm-alias-double.h (libm_alias_double_other_r):
30494 New macro.
30495 (libm_alias_double_other): Likewise.
30496 (libm_alias_double_r): Use libm_alias_double_other_r.
30497 * sysdeps/generic/libm-alias-float.h (libm_alias_float_other_r):
30498 New macro.
30499 (libm_alias_float_other): Likewise.
30500 (libm_alias_float_r): Use libm_alias_float_other_r.
30501 * sysdeps/generic/libm-alias-float128.h
30502 (libm_alias_float128_other_r): New macro.
30503 (libm_alias_float128_other): Likewise.
30504 (libm_alias_float128_r): Use libm_alias_float128_other_r.
30505 * sysdeps/generic/libm-alias-ldouble.h
30506 (libm_alias_ldouble_other_r): New macro.
30507 (libm_alias_ldouble_other): Likewise.
30508 (libm_alias_ldouble_r): Use libm_alias_ldouble_other_r.
30509 * sysdeps/ieee754/ldbl-opt/libm-alias-double.h
30510 (libm_alias_double_other_r): New macro.
30511 (libm_alias_double_other): Likewise.
30512 (libm_alias_double_r): Use libm_alias_double_other_r.
30513 * sysdeps/ieee754/ldbl-opt/libm-alias-ldouble.h
30514 (libm_alias_ldouble_other_r): New macro.
30515 (libm_alias_ldouble_other): Likewise.
30516 (libm_alias_ldouble_r): Use libm_alias_ldouble_other_r.
30517 * math/w_lgamma_main.c: Include <libm-alias-double.h>.
30518 [!USE_AS_COMPAT]: Use libm_alias_double_other.
30519 * math/w_lgammaf_main.c: Include <libm-alias-float.h>.
30520 [!USE_AS_COMPAT]: Use libm_alias_float_other.
30521 * math/w_lgammal_main.c: Include <libm-alias-ldouble.h>.
30522 [!USE_AS_COMPAT]: Use libm_alias_ldouble_other.
30523 * math/w_exp2f.c: Use libm_alias_float_other.
30524 * math/w_expf.c: Likewise.
30525 * math/w_log2f.c: Likewise.
30526 * math/w_logf.c: Likewise.
30527 * math/w_powf.c: Likewise.
30528 * sysdeps/ieee754/flt-32/e_exp2f.c: Include <libm-alias-float.h>.
30529 [!__exp2f]: Use libm_alias_float_other.
30530 * sysdeps/ieee754/flt-32/e_expf.c: Include <libm-alias-float.h>.
30531 [!__expf]: Use libm_alias_float_other.
30532 * sysdeps/ieee754/flt-32/e_log2f.c: Include <libm-alias-float.h>.
30533 [!__log2f]: Use libm_alias_float_other.
30534 * sysdeps/ieee754/flt-32/e_logf.c: Include <libm-alias-float.h>.
30535 [!__logf]: Use libm_alias_float_other.
30536 * sysdeps/ieee754/flt-32/e_powf.c: Include <libm-alias-float.h>.
30537 [!__powf]: Use libm_alias_float_other.
30538
30539 2017-10-10 Florian Weimer <fweimer@redhat.com>
30540
30541 * nss/nss_files/files-hosts.c (gethostbyname3_multi): New
30542 function.
30543 (_nss_files_gethostbyname3_r): Call it.
30544
30545 2017-10-09 Joseph Myers <joseph@codesourcery.com>
30546
30547 * sysdeps/generic/math-type-macros.h [!declare_mgen_alias]: Give
30548 error. Remove default definition of declare_mgen_alias.
30549 [!declare_mgen_alias_r]: Likewise.
30550 * sysdeps/generic/math-type-macros-double.h
30551 [!declare_mgen_alias_r] (declare_mgen_alias_r): New macro.
30552 * sysdeps/generic/math-type-macros-float.h [!declare_mgen_alias_r]
30553 (declare_mgen_alias_r): Likewise.
30554 * sysdeps/generic/math-type-macros-float128.h
30555 [!declare_mgen_alias_r] (declare_mgen_alias_r): Likewise.
30556 * sysdeps/generic/math-type-macros-ldouble.h
30557 [!declare_mgen_alias_r] (declare_mgen_alias_r): Likewise.
30558 * math/w_lgamma_r_template.c (declare_mgen_alias_r_x): Remove
30559 macro.
30560 (declare_mgen_alias_r_s): Likewise.
30561 (declare_mgen_alias_r): Likewise.
30562 * math/w_lgamma_r_compat.c: Include <libm-alias-double.h>.
30563 (lgamma_r): Define using libm_alias_double_r.
30564 * math/w_lgammaf_r_compat.c: Include <libm-alias-float.h>.
30565 (lgammaf_r): Define using libm_alias_float_r.
30566 * math/w_lgammal_r_compat.c: Include <libm-alias-ldouble.h>.
30567 (lgammal_r): Define using libm_alias_ldouble_r.
30568 * sysdeps/ieee754/ldbl-opt/w_lgamma_r_compat.c: Remove file.
30569 * sysdeps/ieee754/ldbl-opt/w_lgammal_r_compat.c: Likewise.
30570
30571 2017-10-09 Adhemerval Zanella <adhemerval.zanella@linaro.org>
30572
30573 * lib/glob.c (__glob_pattern_type): Remove now-spurious
30574 extern declaration.
30575
30576 2017-10-09 Joseph Myers <joseph@codesourcery.com>
30577
30578 * sysdeps/ieee754/ldbl-opt/w_scalbln.c: Remove file.
30579
30580 2017-10-09 Jonathan Wakely <jwakely@redhat.com>
30581
30582 [BZ #21326]
30583 * include/features.h [__cplusplus >= 201703] (__USE_ISOC11): Define.
30584 [__cplusplus >= 201103] (__USE_ISOC99): Define.
30585 * math/Makefile (test-math-cxx11): New test.
30586 * math/test-math-cxx11.cc: New file.
30587
30588 2017-10-08 Christian Brauner <christian.brauner@ubuntu.com>
30589
30590 * login/openpty.c (openpty): Close slave pty file descriptor on error.
30591
30592 * login/openpty.c (openpty): If defined, use the TIOCGPTPEER ioctl()
30593 call to allocate the slave pty file descriptor.
30594
30595 2017-10-06 Joseph Myers <joseph@codesourcery.com>
30596
30597 * sysdeps/ieee754/ldbl-128/s_fma.c: Include <libm-alias-double.h>.
30598 [!__fma] (fma): Define using libm_alias_double.
30599 * sysdeps/ieee754/ldbl-96/s_fma.c: Include <libm-alias-double.h>.
30600 [!__fma] (fma): Define using libm_alias_double.
30601
30602 * sysdeps/ieee754/float128/float128_private.h: Include
30603 <libm-alias-ldouble.h> and <libm-alias-float128.h>.
30604 (libm_alias_ldouble_r): Undefine and redefine.
30605 * sysdeps/ieee754/ldbl-128/s_asinhl.c: Include
30606 <libm-alias-ldouble.h>.
30607 (asinhl): Define using libm_alias_ldouble.
30608 * sysdeps/ieee754/ldbl-128/s_atanl.c: Include
30609 <libm-alias-ldouble.h>.
30610 (atanl): Define using libm_alias_ldouble.
30611 * sysdeps/ieee754/ldbl-128/s_cbrtl.c: Include
30612 <libm-alias-ldouble.h>.
30613 (cbrtl): Define using libm_alias_ldouble.
30614 * sysdeps/ieee754/ldbl-128/s_ceill.c: Include
30615 <libm-alias-ldouble.h>.
30616 (ceill): Define using libm_alias_ldouble.
30617 * sysdeps/ieee754/ldbl-128/s_copysignl.c: Include
30618 <libm-alias-ldouble.h>.
30619 (copysignl): Define using libm_alias_ldouble.
30620 * sysdeps/ieee754/ldbl-128/s_cosl.c: Include
30621 <libm-alias-ldouble.h>.
30622 (cosl): Define using libm_alias_ldouble.
30623 * sysdeps/ieee754/ldbl-128/s_erfl.c: Include
30624 <libm-alias-ldouble.h>.
30625 (erfl): Define using libm_alias_ldouble.
30626 (erfcl): Likewise.
30627 * sysdeps/ieee754/ldbl-128/s_expm1l.c: Include
30628 <libm-alias-ldouble.h>.
30629 (expm1l): Define using libm_alias_ldouble.
30630 * sysdeps/ieee754/ldbl-128/s_fabsl.c: Include
30631 <libm-alias-ldouble.h>.
30632 (fabsl): Define using libm_alias_ldouble.
30633 * sysdeps/ieee754/ldbl-128/s_floorl.c: Include
30634 <libm-alias-ldouble.h>.
30635 (floorl): Define using libm_alias_ldouble.
30636 * sysdeps/ieee754/ldbl-128/s_fmal.c: Include
30637 <libm-alias-ldouble.h>.
30638 (fmal): Define using libm_alias_ldouble.
30639 * sysdeps/ieee754/ldbl-128/s_frexpl.c: Include
30640 <libm-alias-ldouble.h>.
30641 (frexpl): Define using libm_alias_ldouble.
30642 * sysdeps/ieee754/ldbl-128/s_fromfpl.c (fromfpl): Define using
30643 libm_alias_ldouble.
30644 * sysdeps/ieee754/ldbl-128/s_fromfpl_main.c: Include
30645 <libm-alias-ldouble.h>.
30646 * sysdeps/ieee754/ldbl-128/s_fromfpxl.c (fromfpxl): Define using
30647 libm_alias_ldouble.
30648 * sysdeps/ieee754/ldbl-128/s_getpayloadl.c: Include
30649 <libm-alias-ldouble.h>.
30650 (getpayloadl): Define using libm_alias_ldouble.
30651 * sysdeps/ieee754/ldbl-128/s_llrintl.c: Include
30652 <libm-alias-ldouble.h>.
30653 (llrintl): Define using libm_alias_ldouble.
30654 * sysdeps/ieee754/ldbl-128/s_llroundl.c: Include
30655 <libm-alias-ldouble.h>.
30656 (llroundl): Define using libm_alias_ldouble.
30657 * sysdeps/ieee754/ldbl-128/s_logbl.c: Include
30658 <libm-alias-ldouble.h>.
30659 (logbl): Define using libm_alias_ldouble.
30660 * sysdeps/ieee754/ldbl-128/s_lrintl.c: Include
30661 <libm-alias-ldouble.h>.
30662 (lrintl): Define using libm_alias_ldouble.
30663 * sysdeps/ieee754/ldbl-128/s_lroundl.c: Include
30664 <libm-alias-ldouble.h>.
30665 (lroundl): Define using libm_alias_ldouble.
30666 * sysdeps/ieee754/ldbl-128/s_modfl.c: Include
30667 <libm-alias-ldouble.h>.
30668 (modfl): Define using libm_alias_ldouble.
30669 * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Include
30670 <libm-alias-ldouble.h>.
30671 (nearbyintl): Define using libm_alias_ldouble.
30672 * sysdeps/ieee754/ldbl-128/s_nextafterl.c: Include
30673 <libm-alias-ldouble.h>.
30674 (nextafterl): Define using libm_alias_ldouble.
30675 * sysdeps/ieee754/ldbl-128/s_nextupl.c: Include
30676 <libm-alias-ldouble.h>.
30677 (nextupl): Define using libm_alias_ldouble.
30678 * sysdeps/ieee754/ldbl-128/s_remquol.c: Include
30679 <libm-alias-ldouble.h>.
30680 (remquol): Define using libm_alias_ldouble.
30681 * sysdeps/ieee754/ldbl-128/s_rintl.c: Include
30682 <libm-alias-ldouble.h>.
30683 (rintl): Define using libm_alias_ldouble.
30684 * sysdeps/ieee754/ldbl-128/s_roundevenl.c: Include
30685 <libm-alias-ldouble.h>.
30686 (roundevenl): Define using libm_alias_ldouble.
30687 * sysdeps/ieee754/ldbl-128/s_roundl.c: Include
30688 <libm-alias-ldouble.h>.
30689 (roundl): Define using libm_alias_ldouble.
30690 * sysdeps/ieee754/ldbl-128/s_setpayloadl.c (setpayloadl): Define
30691 using libm_alias_ldouble.
30692 * sysdeps/ieee754/ldbl-128/s_setpayloadl_main.c: Include
30693 <libm-alias-ldouble.h>.
30694 * sysdeps/ieee754/ldbl-128/s_setpayloadsigl.c (setpayloadsigl):
30695 Define using libm_alias_ldouble.
30696 * sysdeps/ieee754/ldbl-128/s_sincosl.c: Include
30697 <libm-alias-ldouble.h>.
30698 (sincosl): Define using libm_alias_ldouble.
30699 * sysdeps/ieee754/ldbl-128/s_sinl.c: Include
30700 <libm-alias-ldouble.h>.
30701 (sinl): Define using libm_alias_ldouble.
30702 * sysdeps/ieee754/ldbl-128/s_tanhl.c: Include
30703 <libm-alias-ldouble.h>.
30704 (tanhl): Define using libm_alias_ldouble.
30705 * sysdeps/ieee754/ldbl-128/s_tanl.c: Include
30706 <libm-alias-ldouble.h>.
30707 (tanl): Define using libm_alias_ldouble.
30708 * sysdeps/ieee754/ldbl-128/s_totalorderl.c: Include
30709 <libm-alias-ldouble.h>.
30710 (totalorderl): Define using libm_alias_ldouble.
30711 * sysdeps/ieee754/ldbl-128/s_totalordermagl.c: Include
30712 <libm-alias-ldouble.h>.
30713 (totalordermagl): Define using libm_alias_ldouble.
30714 * sysdeps/ieee754/ldbl-128/s_truncl.c: Include
30715 <libm-alias-ldouble.h>.
30716 (truncl): Define using libm_alias_ldouble.
30717 * sysdeps/ieee754/ldbl-128/s_ufromfpl.c (ufromfpl): Define using
30718 libm_alias_ldouble.
30719 * sysdeps/ieee754/ldbl-128/s_ufromfpxl.c (ufromfpxl): Define using
30720 libm_alias_ldouble.
30721 * sysdeps/ieee754/ldbl-64-128/s_copysignl.c: Include
30722 <libm-alias-ldouble.h>.
30723 (weak_alias): Do not undefine and redefine.
30724 [IS_IN (libc)] (libm_alias_ldouble): Undefine and redefine.
30725 (copysignl): Define with long_double_symbol only if [IS_IN
30726 (libc)].
30727 * sysdeps/ieee754/ldbl-64-128/s_frexpl.c: Include
30728 <libm-alias-ldouble.h>.
30729 (weak_alias): Do not undefine and redefine.
30730 [IS_IN (libc)] (libm_alias_ldouble): Undefine and redefine.
30731 (frexpl): Define with long_double_symbol only if [IS_IN (libc)].
30732 * sysdeps/ieee754/ldbl-64-128/s_modfl.c: Include
30733 <libm-alias-ldouble.h>.
30734 (weak_alias): Do not undefine and redefine.
30735 [IS_IN (libc)] (libm_alias_ldouble): Undefine and redefine.
30736 (modfl): Define with long_double_symbol only if [IS_IN (libc)].
30737 * sysdeps/ieee754/ldbl-64-128/s_asinhl.c: Remove file.
30738 * sysdeps/ieee754/ldbl-64-128/s_atanl.c: Likewise.
30739 * sysdeps/ieee754/ldbl-64-128/s_cbrtl.c: Likewise.
30740 * sysdeps/ieee754/ldbl-64-128/s_ceill.c: Likewise.
30741 * sysdeps/ieee754/ldbl-64-128/s_cosl.c: Likewise.
30742 * sysdeps/ieee754/ldbl-64-128/s_erfl.c: Likewise.
30743 * sysdeps/ieee754/ldbl-64-128/s_expm1l.c: Likewise.
30744 * sysdeps/ieee754/ldbl-64-128/s_fabsl.c: Likewise.
30745 * sysdeps/ieee754/ldbl-64-128/s_floorl.c: Likewise.
30746 * sysdeps/ieee754/ldbl-64-128/s_fmal.c: Likewise.
30747 * sysdeps/ieee754/ldbl-64-128/s_llrintl.c: Likewise.
30748 * sysdeps/ieee754/ldbl-64-128/s_llroundl.c: Likewise.
30749 * sysdeps/ieee754/ldbl-64-128/s_logbl.c: Likewise.
30750 * sysdeps/ieee754/ldbl-64-128/s_lrintl.c: Likewise.
30751 * sysdeps/ieee754/ldbl-64-128/s_lroundl.c: Likewise.
30752 * sysdeps/ieee754/ldbl-64-128/s_nearbyintl.c: Likewise.
30753 * sysdeps/ieee754/ldbl-64-128/s_remquol.c: Likewise.
30754 * sysdeps/ieee754/ldbl-64-128/s_rintl.c: Likewise.
30755 * sysdeps/ieee754/ldbl-64-128/s_roundl.c: Likewise.
30756 * sysdeps/ieee754/ldbl-64-128/s_sincosl.c: Likewise.
30757 * sysdeps/ieee754/ldbl-64-128/s_sinl.c: Likewise.
30758 * sysdeps/ieee754/ldbl-64-128/s_tanhl.c: Likewise.
30759 * sysdeps/ieee754/ldbl-64-128/s_tanl.c: Likewise.
30760 * sysdeps/ieee754/ldbl-64-128/s_truncl.c: Likewise.
30761
30762 2017-10-06 Carlos O'Donell <carlos@redhat.com>
30763
30764 [BZ #22111]
30765 * malloc/malloc.c (tcache_shutting_down): Use bool type.
30766 (tcache_thread_freeres): Set tcache_shutting_down before
30767 freeing the tcache.
30768 * malloc/Makefile (tests): Add tst-malloc-tcache-leak.
30769 * malloc/tst-malloc-tcache-leak.c: New file.
30770
30771 2017-10-06 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
30772
30773 * sysdeps/powerpc/powerpc64/multiarch/memrchr-ppc64.c: Revert
30774 back to powerpc32 file.
30775 * sysdeps/powerpc/powerpc64/multiarch/memrchr.c
30776 (memrchr): Add __memrchr_power8 to ifunc list.
30777 * sysdeps/powerpc/powerpc64/power8/memrchr.S: Mask
30778 extra bytes for unaligned inputs.
30779
30780 2017-10-06 Joseph Myers <joseph@codesourcery.com>
30781
30782 * sysdeps/ieee754/ldbl-64-128/e_ilogbl.c: Remove file.
30783 * sysdeps/ieee754/ldbl-64-128/s_log1pl.c: Likewise.
30784 * sysdeps/ieee754/ldbl-64-128/s_scalblnl.c: Likewise.
30785 * sysdeps/ieee754/ldbl-64-128/s_scalbnl.c: Likewise.
30786 * sysdeps/ieee754/ldbl-64-128/w_scalblnl.c: Likewise.
30787
30788 2017-10-05 Joseph Myers <joseph@codesourcery.com>
30789
30790 * sysdeps/arm/libm-test-ulps: Update.
30791
30792 * sysdeps/ieee754/ldbl-96/s_asinhl.c: Include
30793 <libm-alias-ldouble.h>.
30794 (asinhl): Define using libm_alias_ldouble.
30795 * sysdeps/ieee754/ldbl-96/s_cbrtl.c: Include
30796 <libm-alias-ldouble.h>.
30797 (cbrtl): Define using libm_alias_ldouble.
30798 * sysdeps/ieee754/ldbl-96/s_copysignl.c: Include
30799 <libm-alias-ldouble.h>.
30800 (copysignl): Define using libm_alias_ldouble.
30801 * sysdeps/ieee754/ldbl-96/s_cosl.c: Include
30802 <libm-alias-ldouble.h>.
30803 (cosl): Define using libm_alias_ldouble.
30804 * sysdeps/ieee754/ldbl-96/s_erfl.c: Include
30805 <libm-alias-ldouble.h>.
30806 (erfl): Define using libm_alias_ldouble.
30807 (erfcl): Likewise.
30808 * sysdeps/ieee754/ldbl-96/s_fmal.c: Include
30809 <libm-alias-ldouble.h>.
30810 (fmal): Define using libm_alias_ldouble.
30811 * sysdeps/ieee754/ldbl-96/s_frexpl.c: Include
30812 <libm-alias-ldouble.h>.
30813 (frexpl): Define using libm_alias_ldouble.
30814 * sysdeps/ieee754/ldbl-96/s_fromfpl.c (fromfpl): Define using
30815 libm_alias_ldouble.
30816 * sysdeps/ieee754/ldbl-96/s_fromfpl_main.c: Include
30817 <libm-alias-ldouble.h>.
30818 * sysdeps/ieee754/ldbl-96/s_fromfpxl.c (fromfpxl): Define using
30819 libm_alias_ldouble.
30820 * sysdeps/ieee754/ldbl-96/s_getpayloadl.c: Include
30821 <libm-alias-ldouble.h>.
30822 (getpayloadl): Define using libm_alias_ldouble.
30823 * sysdeps/ieee754/ldbl-96/s_llrintl.c: Include
30824 <libm-alias-ldouble.h>.
30825 (llrintl): Define using libm_alias_ldouble.
30826 * sysdeps/ieee754/ldbl-96/s_llroundl.c: Include
30827 <libm-alias-ldouble.h>.
30828 (llroundl): Define using libm_alias_ldouble.
30829 * sysdeps/ieee754/ldbl-96/s_lrintl.c: Include
30830 <libm-alias-ldouble.h>.
30831 (lrintl): Define using libm_alias_ldouble.
30832 * sysdeps/ieee754/ldbl-96/s_lroundl.c: Include
30833 <libm-alias-ldouble.h>.
30834 (lroundl): Define using libm_alias_ldouble.
30835 * sysdeps/ieee754/ldbl-96/s_modfl.c: Include
30836 <libm-alias-ldouble.h>.
30837 (modfl): Define using libm_alias_ldouble.
30838 * sysdeps/ieee754/ldbl-96/s_nextupl.c: Include
30839 <libm-alias-ldouble.h>.
30840 (nextupl): Define using libm_alias_ldouble.
30841 * sysdeps/ieee754/ldbl-96/s_remquol.c: Include
30842 <libm-alias-ldouble.h>.
30843 (remquol): Define using libm_alias_ldouble.
30844 * sysdeps/ieee754/ldbl-96/s_roundevenl.c: Include
30845 <libm-alias-ldouble.h>.
30846 (roundevenl): Define using libm_alias_ldouble.
30847 * sysdeps/ieee754/ldbl-96/s_roundl.c: Include
30848 <libm-alias-ldouble.h>.
30849 (roundl): Define using libm_alias_ldouble.
30850 * sysdeps/ieee754/ldbl-96/s_setpayloadl.c (setpayloadl): Define
30851 using libm_alias_ldouble.
30852 * sysdeps/ieee754/ldbl-96/s_setpayloadl_main.c: Include
30853 <libm-alias-ldouble.h>.
30854 * sysdeps/ieee754/ldbl-96/s_setpayloadsigl.c: Include
30855 <libm-alias-ldouble.h>.
30856 (setpayloadsigl): Define using libm_alias_ldouble.
30857 * sysdeps/ieee754/ldbl-96/s_sincosl.c: Include
30858 <libm-alias-ldouble.h>.
30859 (sincosl): Define using libm_alias_ldouble.
30860 * sysdeps/ieee754/ldbl-96/s_sinl.c: Include
30861 <libm-alias-ldouble.h>.
30862 (sinl): Define using libm_alias_ldouble.
30863 * sysdeps/ieee754/ldbl-96/s_tanhl.c: Include
30864 <libm-alias-ldouble.h>.
30865 (tanhl): Define using libm_alias_ldouble.
30866 * sysdeps/ieee754/ldbl-96/s_tanl.c: Include
30867 <libm-alias-ldouble.h>.
30868 (tanl): Define using libm_alias_ldouble.
30869 * sysdeps/ieee754/ldbl-96/s_totalorderl.c: Include
30870 <libm-alias-ldouble.h>.
30871 (totalorderl): Define using libm_alias_ldouble.
30872 * sysdeps/ieee754/ldbl-96/s_totalordermagl.c: Include
30873 <libm-alias-ldouble.h>.
30874 (totalordermagl): Define using libm_alias_ldouble.
30875 * sysdeps/ieee754/ldbl-96/s_ufromfpl.c (ufromfpl): Define using
30876 libm_alias_ldouble.
30877 * sysdeps/ieee754/ldbl-96/s_ufromfpxl.c (ufromfpxl): Define using
30878 libm_alias_ldouble.
30879
30880 2017-10-05 Siddhesh Poyarekar <siddhesh@sourceware.org>
30881
30882 * sysdeps/aarch64/multiarch/Makefile (sysdep_routines): Add
30883 memmove_falkor.
30884 * sysdeps/aarch64/multiarch/ifunc-impl-list.c
30885 (__libc_ifunc_impl_list): Likewise.
30886 * sysdeps/aarch64/multiarch/memmove.c: Likewise.
30887 * sysdeps/aarch64/multiarch/memmove_falkor.S: New file.
30888
30889 * benchtests/bench-memmove-walk.c: New file.
30890 * benchtests/Makefile (string-benchset): Add it.
30891
30892 * benchtests/bench-memset-walk.c: New file.
30893 * benchtests/Makefile (string-benchset): Add it.
30894
30895 * benchtests/bench-memcpy-walk.c: New file.
30896 * benchtests/Makefile (string-benchset): Add it.
30897
30898 2017-10-05 Florian Weimer <fweimer@redhat.com>
30899
30900 nscd: Eliminate compilation time dependency in the build output.
30901 * nscd/nscd_stat.c (STATDATA_VERSION)
30902 (STATDATA_VERSION_SELINUX_FLAG, STATDATA_VERSION_FLAGS)
30903 (STATDATA_VERSION_FULL): New macro definitions.
30904 (compilation): Remove.
30905 (struct statdata): Adjust version member.
30906 (send_stats): Set version from STATDATA_VERSION_FULL.
30907 (receive_print_stats): Verify version against STATDATA_VERSION_FULL.
30908
30909 2017-10-05 Joseph Myers <joseph@codesourcery.com>
30910
30911 * configure.ac (--enable-add-ons): Remove option.
30912 (machine): Do not mention add-ons in comment.
30913 (LIBC_PRECONFIGURE): Likewise.
30914 (add_ons): Remove variable and sanity checks and logic to locate
30915 add-ons.
30916 (add_ons_automatic): Remove variable.
30917 (configured_add_ons): Likewise.
30918 (add_ons_sfx): Likewise.
30919 (add_ons_pfx): Likewise.
30920 (add_on_subdirs): Likewise.
30921 (sysnames_add_ons): Likewise. Remove loop over add-ons and
30922 consideration of add-ons in Implies handling.
30923 (sysdeps_add_ons): Likewise.
30924 * configure: Regenerated.
30925 * libidn/configure.ac: Remove.
30926 * libidn/configure: Likewise.
30927 * sysdeps/unix/inet/configure.ac: New file.
30928 * sysdeps/unix/inet/configure: New generated file.
30929 * sysdeps/unix/inet/Subdirs: Add libidn.
30930 * Makeconfig (sysdeps-srcdirs): Remove variable.
30931 (+sysdep_dirs): Do not include $(sysdeps-srcdirs).
30932 ($(common-objpfx)config.status): Do not depend on add-on files.
30933 ($(common-objpfx)shlib-versions.v.i): Do not mention add-ons in
30934 comment.
30935 (all-subdirs): Do not include $(add-on-subdirs).
30936 * Makefile (dist-prepare): Do not use $(sysdeps-add-ons).
30937 * config.make.in (add-ons): Remove variable.
30938 (add-on-subdirs): Likewise.
30939 (sysdeps-add-ons): Likewise.
30940 * manual/Makefile (add-chapters): Remove.
30941 ($(objpfx)texis): Do not depend on $(add-chapters).
30942 (nonexamples): Do not handle $(add-chapters).
30943 (examples): Do not handle $(add-ons).
30944 (chapters.% top-menu.%): Do not pass '$(add-chapters)' to
30945 libc-texinfo.sh.
30946 * manual/install.texi (Installation): Do not mention add-ons.
30947 (--enable-add-ons): Do not document configure option.
30948 * INSTALL: Regenerated.
30949 * manual/libc-texinfo.sh: Do not handle $2 add-ons argument.
30950 * manual/maint.texi (Hierarchy Conventions): Do not mention
30951 add-ons.
30952 * scripts/build-many-glibcs.py (Glibc.build_glibc): Do not use
30953 --enable-add-ons.
30954 * scripts/gen-sorted.awk: Do not handle Subdirs files from
30955 add-ons.
30956 * scripts/test-installation.pl: Do not handle glibc-compat add-on.
30957 * sysdeps/nptl/Makeconfig: Do not mention add-ons in comment.
30958
30959 2017-10-05 Andreas Schwab <schwab@suse.de>
30960
30961 [BZ #15142]
30962 * libio/genops.c (_IO_list_all_stamp): Delete. All uses removed.
30963 (_IO_flush_all_lockp): Always lock list_all_lock.
30964 (_IO_flush_all_linebuffered): Likewise.
30965 (_IO_unbuffer_all): Likewise.
30966
30967 2017-10-05 Florian Weimer <fweimer@redhat.com>
30968
30969 [BZ #15436]
30970 Do not flush stdio streams on abort.
30971 * stdlib/abort.c (fflush): Remove macro definition.
30972 (abort): Remove stages related to stdio flushing.
30973
30974 2017-10-05 Florian Weimer <fweimer@redhat.com>
30975
30976 * gmon/Makefile (CFLAGS-tst-gmon.c): Add -fno-omit-frame-pointer.
30977
30978 2017-10-05 Stefan Liebler <stli@linux.vnet.ibm.com>
30979
30980 * sysdeps/s390/fpu/libm-test-ulps: Regenerated.
30981
30982 2017-10-05 Florian Weimer <fweimer@redhat.com>
30983
30984 * support/support_format_hostent.c (support_format_hostent): Add
30985 more error information for NETDB_INTERNAL.
30986
30987 2017-10-04 H.J. Lu <hongjiu.lu@intel.com>
30988
30989 * config.h.in (NO_HIDDEN_EXTERN_FUNC_IN_PIE): New.
30990 * include/libc-symbols.h (__hidden_proto_hiddenattr): Add check
30991 for PIC and NO_HIDDEN_EXTERN_FUNC_IN_PIE.
30992 * sysdeps/i386/configure.ac (NO_HIDDEN_EXTERN_FUNC_IN_PIE): New
30993 AC_DEFINE if multi-arch is enabled.
30994 * sysdeps/i386/configure: Regenerated.
30995
30996 2017-10-04 H.J. Lu <hongjiu.lu@intel.com>
30997
30998 * Makeconfig (+link-static-before-libc): Use
30999 $(DEFAULT-LDFLAGS-$(@F)).
31000 * elf/Makefile (CRT-tst-tls1-static-non-pie): New.
31001 (LDFLAGS-tst-tls1-static-non-pie): Renamed to ...
31002 (DEFAULT-LDFLAGS-tst-tls1-static-non-pie): This.
31003
31004 2017-10-04 H.J. Lu <hongjiu.lu@intel.com>
31005
31006 * elf/Makefile (tests): Add tst-main1.
31007 (modules-names): Add tst-main1mod.
31008 ($(objpfx)tst-main1): New.
31009 (CRT-tst-main1): Likewise.
31010 (LDFLAGS-tst-main1): Likewise.
31011 (LDLIBS-tst-main1): Likewise.
31012 (tst-main1mod.so-no-z-defs): Likewise.
31013 * elf/tst-main1.c: New file.
31014 * elf/tst-main1mod.c: Likewise.
31015
31016 2017-10-04 H.J. Lu <hongjiu.lu@intel.com>
31017
31018 * math/test-math-iscanonical.cc (do_test): Return errors != 0.
31019
31020 2017-10-04 Joseph Myers <joseph@codesourcery.com>
31021
31022 * sysdeps/ieee754/dbl-64/s_fma.c: Include <libm-alias-double.h>.
31023 (fma): Define using libm_alias_double.
31024 * sysdeps/ieee754/ldbl-opt/s_fma.c: Remove file.
31025 * sysdeps/sparc/sparc32/fpu/s_fma.c: Do not include
31026 <math_ldbl_opt.h>.
31027 (fmal): Do not define as compat symbol here.
31028 * sysdeps/alpha/fpu/s_fma.c: New file.
31029
31030 2017-10-04 Szabolcs Nagy <szabolcs.nagy@arm.com>
31031
31032 * sysdeps/aarch64/dl-machine.h (elf_machine_rela): Expand MIN.
31033
31034 2017-10-04 Joseph Myers <joseph@codesourcery.com>
31035
31036 [BZ #22229]
31037 * sysdeps/sparc/sparc32/fpu/s_copysign.S: Include
31038 <math_ldbl_opt.h>
31039 (copysignl): Define as compat symbol at version GLIBC_2_0 for libm
31040 and libc.
31041 * sysdeps/sparc/sparc32/fpu/s_fabs.S: Include <math_ldbl_opt.h>.
31042 (fabsl): Define as compat symbol at version GLIBC_2_0 for libm.
31043 * sysdeps/sparc/sparc32/fpu/s_fma.c: Include <math_ldbl_opt.h>.
31044 (fmal): Define as compat symbol at version GLIBC_2_1 for libm.
31045 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.S:
31046 Include <math_ldbl_opt.h>
31047 (copysignl): Define as compat symbol at version GLIBC_2_0 for libm
31048 and libc.
31049 (compat_symbol): Undefine and redefine.
31050 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.S: Include
31051 <math_ldbl_opt.h>
31052 (fabsl): Define as compat symbol at version GLIBC_2_0 for libm.
31053 (compat_symbol): Undefine and redefine.
31054 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fma.c
31055 [HAVE_AS_VIS3_SUPPORT]: Include <math_ldbl_opt.h>.
31056 [HAVE_AS_VIS3_SUPPORT] (fmal): Define as compat symbol at version
31057 GLIBC_2_1 for libm.
31058 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Add
31059 GLIBC_2.0 copysignl symbol.
31060 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Add
31061 GLIBC_2.0 copysignl and fabsl and GLIBC_2.1 fmal symbols.
31062
31063 * sysdeps/alpha/fpu/s_nearbyint.c: Remove file.
31064
31065 2017-10-04 Florian Weimer <fweimer@redhat.com>
31066
31067 * scripts/check-local-headers.sh: Ignore nspr4 header file
31068 directory in addition to nspr.
31069
31070 2017-10-04 Guido Trentalancia <guido@trentalancia.net>
31071
31072 [BZ #17956]
31073 * configure.ac (--enable-nss-crypt): Use NSPR include directory.
31074 * configure: Regenerate.
31075 * crypt/Makefile (nss-cpp-flags): New variable.
31076 (CPPFLAGS-sha256-crypt.c, CPPFLAGS-sha512-crypt.c)
31077 (CPPFLAGS-md5-crypt.c): Use it.
31078 * scripts/check-local-headers.sh: Ignore nspr header file
31079 directory.
31080
31081 2017-10-04 Andreas Schwab <schwab@suse.de>
31082
31083 * nis/Makefile (services): Remove compat.
31084 (libnss_compat-routines, libnss_compat-inhibit-o): Don't define.
31085 ($(objpfx)libnss_compat.so): Remove rule.
31086 * nis/Versions (libnss_compat): Remove.
31087 * nss/Makefile (services): Add compat.
31088 (libnss_compat-routines, libnss_compat-inhibit-o): Define.
31089 * nss/Versions (libnss_compat): Define.
31090 * nss/nss_compat/compat-grp.c: Moved here from nis/nss_compat.
31091 Don't include <rpc/types.h>. Replace bool_t by bool.
31092 * nss/nss_compat/compat-initgroups.c: Likewise.
31093 * nss/nss_compat/compat-pwd.c: Likewise. Include "nisdomain.h"
31094 instead of <rpcsrv/ypclnt.h>.
31095 (getpwent_next_nss_netgr): Use __nss_get_default_domain instead of
31096 yp_get_default_domain.
31097 * nss/nss_compat/compat-pwd.c: Likewise.
31098 (getspent_next_nss_netgr): Use __nss_get_default_domain instead of
31099 yp_get_default_domain.
31100 * nss/nss_compat/nisdomain.c: New file.
31101 * nss/nss_compat/nisdomain.h: Likewise.
31102
31103 2017-10-04 Szabolcs Nagy <szabolcs.nagy@arm.com>
31104
31105 [BZ #22244]
31106 * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_yn): Fix x == 0 case.
31107 * sysdeps/ieee754/flt-32/e_jnf.c (__ieee754_ynf): Likewise.
31108
31109 2017-10-04 Szabolcs Nagy <szabolcs.nagy@arm.com>
31110
31111 [BZ #22243]
31112 * sysdeps/ieee754/dbl-64/wordsize-64/e_log10.c (__ieee754_log10): Use fabs.
31113 * sysdeps/ieee754/dbl-64/wordsize-64/e_log2.c (__ieee754_log2): Likewise.
31114
31115 2017-10-03 H.J. Lu <hongjiu.lu@intel.com>
31116
31117 * sysdeps/i386/start.S: Replace "leal main@GOT(%ebx), %eax" with
31118 "movl main@GOTOFF(%ebx), %eax".
31119
31120 2017-10-03 H.J. Lu <hongjiu.lu@intel.com>
31121
31122 * sysdeps/i386/dl-machine.h (elf_machine_load_address): Don't
31123 allow undefined _DYNAMIC in PIE libc.a.
31124 * sysdeps/x86_64/dl-machine.h (elf_machine_load_address):
31125 Likewse.
31126
31127 2017-10-03 H.J. Lu <hongjiu.lu@intel.com>
31128
31129 * sysdeps/mips/dl-machine.h (elf_machine_load_address): Don't
31130 check _DYNAMIC.
31131
31132 2017-10-03 H.J. Lu <hongjiu.lu@intel.com>
31133
31134 * sysdeps/arm/dl-machine.h (elf_machine_load_address): Don't
31135 check _DYNAMIC.
31136
31137 2017-10-03 H.J. Lu <hongjiu.lu@intel.com>
31138
31139 * math/test-math-iscanonical.cc (error): Replace bool with int.
31140
31141 2017-10-03 Joseph Myers <joseph@codesourcery.com>
31142
31143 * sysdeps/ieee754/dbl-64/s_modf.c: Include <libm-alias-double.h>.
31144 (modf): Define using libm_alias_double, only if [!__modf].
31145 * sysdeps/ieee754/dbl-64/wordsize-64/s_modf.c: Include
31146 <libm-alias-double.h>.
31147 (modf): Define using libm_alias_double, only if [!__modf].
31148 * sysdeps/ieee754/ldbl-opt/s_modf.c (modfl): Only define libc
31149 compat symbol here.
31150 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_modf-ppc32.c
31151 (weak_alias): Do not undefine and redefine.
31152 (strong_alias): Likewise.
31153 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modf-ppc64.c
31154 (weak_alias): Likewise.
31155 (strong_alias): Likewise.
31156
31157 * sysdeps/ieee754/dbl-64/s_logb.c: Include <libm-alias-double.h>.
31158 (logb): Define using libm_alias_double, only if [!__logb].
31159 * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c: Include
31160 <libm-alias-double.h>.
31161 (logb): Define using libm_alias_double, only if [!__logb].
31162 * sysdeps/ieee754/ldbl-opt/s_logb.c: Remove file.
31163 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logb-ppc32.c
31164 (weak_alias): Do not undefine and redefine.
31165 (strong_alias): Likewise.
31166 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logb-ppc64.c
31167 (weak_alias): Likewise.
31168 (strong_alias): Likewise.
31169
31170 2017-10-03 H.J. Lu <hongjiu.lu@intel.com>
31171
31172 * sysdeps/unix/sysv/linux/tile/sysdep.h (SYSCALL_ERROR_NAME):
31173 Check SHARED instead PIC.
31174
31175 2017-10-03 Joseph Myers <joseph@codesourcery.com>
31176
31177 * sysdeps/ieee754/dbl-64/s_fmaf.c: Include <libm-alias-float.h>.
31178 [!__fmaf] (fmaf): Define using libm_alias_float.
31179
31180 * sysdeps/ieee754/dbl-64/s_frexp.c: Include <libm-alias-double.h>.
31181 (frexp): Define using libm_alias_double.
31182 * sysdeps/ieee754/dbl-64/wordsize-64/s_frexp.c: Include
31183 <libm-alias-double.h>.
31184 (frexp): Define using libm_alias_double.
31185 * sysdeps/ieee754/ldbl-opt/s_frexp.c (frexpl): Only define libc
31186 compat symbol here.
31187
31188 2017-10-03 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
31189
31190 [BZ #22235]
31191 * math/math.h: Trivial fix for unbalanced parentheses in comment.
31192 * math/Makefile [CXX] (tests): Add test-math-iscanonical.cc.
31193 (CFLAGS-test-math-iscanonical.cc): New variable.
31194 * math/test-math-iscanonical.cc: New file.
31195 * sysdeps/ieee754/ldbl-96/bits/iscanonical.h (iscanonical):
31196 Provide a C++ implementation based on function overloading,
31197 rather than using __MATH_TG, which uses C-only builtins.
31198 * sysdeps/ieee754/ldbl-128ibm/bits/iscanonical.h (iscanonical):
31199 Likewise.
31200 * sysdeps/powerpc/powerpc64le/Makefile
31201 (CFLAGS-test-math-iscanonical.cc): New variable.
31202
31203 2017-10-03 Joseph Myers <joseph@codesourcery.com>
31204
31205 * sysdeps/ieee754/dbl-64/s_ceil.c: Include <libm-alias-double.h>.
31206 (ceil): Define using libm_alias_double.
31207 * sysdeps/ieee754/dbl-64/s_floor.c: Include <libm-alias-double.h>.
31208 (floor): Define using libm_alias_double.
31209 * sysdeps/ieee754/dbl-64/s_llround.c: Include
31210 <libm-alias-double.h>.
31211 (llround): Define using libm_alias_double.
31212 * sysdeps/ieee754/dbl-64/s_lround.c: Include
31213 <libm-alias-double.h>.
31214 (lround): Define using libm_alias_double.
31215 * sysdeps/ieee754/dbl-64/s_nearbyint.c: Include
31216 <libm-alias-double.h>.
31217 (nearbyint): Define using libm_alias_double.
31218 * sysdeps/ieee754/dbl-64/s_remquo.c: Include
31219 <libm-alias-double.h>.
31220 (remquo): Define using libm_alias_double.
31221 * sysdeps/ieee754/dbl-64/s_rint.c: Include <libm-alias-double.h>.
31222 (rint): Define using libm_alias_double.
31223 * sysdeps/ieee754/dbl-64/s_round.c: Include <libm-alias-double.h>.
31224 (round): Define using libm_alias_double.
31225 * sysdeps/ieee754/dbl-64/s_trunc.c: Include <libm-alias-double.h>.
31226 (trunc): Define using libm_alias_double.
31227 * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Include
31228 <libm-alias-double.h>.
31229 (ceil): Define using libm_alias_double.
31230 * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Include
31231 <libm-alias-double.h>.
31232 (floor): Define using libm_alias_double.
31233 * sysdeps/ieee754/dbl-64/wordsize-64/s_llround.c: Include
31234 <libm-alias-double.h>.
31235 (llround): Define using libm_alias_double.
31236 [_LP64] (lround): Likewise.
31237 * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Include
31238 <libm-alias-double.h>.
31239 [!_LP64] (lround): Define using libm_alias_double.
31240 * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c: Include
31241 <libm-alias-double.h>.
31242 (nearbyint): Define using libm_alias_double.
31243 * sysdeps/ieee754/dbl-64/wordsize-64/s_remquo.c: Include
31244 <libm-alias-double.h>.
31245 (remquo): Define using libm_alias_double.
31246 * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c: Include
31247 <libm-alias-double.h>.
31248 (rint): Define using libm_alias_double.
31249 * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c: Include
31250 <libm-alias-double.h>.
31251 (round): Define using libm_alias_double.
31252 * sysdeps/ieee754/dbl-64/wordsize-64/s_trunc.c: Include
31253 <libm-alias-double.h>.
31254 (trunc): Define using libm_alias_double.
31255 * sysdeps/ieee754/ldbl-opt/s_ceil.c: Remove file.
31256 * sysdeps/ieee754/ldbl-opt/s_floor.c: Likewise.
31257 * sysdeps/ieee754/ldbl-opt/s_llround.c: Likewise.
31258 * sysdeps/ieee754/ldbl-opt/s_lround.c: Likewise.
31259 * sysdeps/ieee754/ldbl-opt/s_nearbyint.c: Likewise.
31260 * sysdeps/ieee754/ldbl-opt/s_remquo.c: Likewise.
31261 * sysdeps/ieee754/ldbl-opt/s_rint.c: Likewise.
31262 * sysdeps/ieee754/ldbl-opt/s_round.c: Likewise.
31263 * sysdeps/ieee754/ldbl-opt/s_trunc.c: Likewise.
31264
31265 2017-10-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
31266
31267 * math/w_remainder.c: New file.
31268 * math/w_remainderf.c: New file.
31269 * math/w_remainderl.c: New file.
31270
31271 2017-10-03 H.J. Lu <hongjiu.lu@intel.com>
31272
31273 * elf/rtld.c (BOOTSTRAP_MAP): New.
31274 (RESOLVE_MAP): Replace (&bootstrap_map) with BOOTSTRAP_MAP.
31275 * sysdeps/hppa/dl-machine.h (ELF_MACHINE_BEFORE_RTLD_RELOC):
31276 Likewise.
31277 * sysdeps/ia64/dl-machine.h (ELF_MACHINE_BEFORE_RTLD_RELOC):
31278 Likewise.
31279 * sysdeps/mips/dl-machine.h (ELF_MACHINE_BEFORE_RTLD_RELOC):
31280 Likewise.
31281
31282 2017-10-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
31283
31284 * include/libc-symbols.h [NO_RTLD_HIDDEN] (rtld_hidden_proto,
31285 rtld_hidden_tls_proto, rtld_hidden_def, rtld_hidden_weak,
31286 rtld_hidden_rtld_hidden_ver, data_def, rtld_hidden_data_weak,
31287 rtld_hidden_data_ver): Define to empty.
31288 * include/assert.h [IS_IN(rtld) && NO_RTLD_HIDDEN] (__assert_fail,
31289 __assert_perror_fail): Likewise.
31290 * include/dirent.h [IS_IN(rtld) && NO_RTLD_HIDDEN]
31291 (__rewinddir): Likewise.
31292 * include/libc-internal.h [IS_IN(rtld) && NO_RTLD_HIDDEN]
31293 (__profile_frequency): Likewise.
31294 * include/setjmp.h (__sigsetjmp): Likewise.
31295 * include/signal.h [IS_IN(rtld) && NO_RTLD_HIDDEN] (__sigaction,
31296 __libc_sigaction): Likewise.
31297 * include/stdlib.h [NO_RTLD_HIDDEN] (unsetenv, __strtoul_internal): Do
31298 not set hidden attribute.
31299 * include/string.h [IS_IN(rtld) && NO_RTLD_HIDDEN] (__stpcpy, __strdup,
31300 __strerror_t, __strsep_g, memchr, memcmp, memcpy, memmove, memset,
31301 rawmemchr, stpcpy, strchr, strcmp, strlen, strnlen, strsep): Likewise.
31302 * include/sys/stat.h [IS_IN(rtld) && NO_RTLD_HIDDEN] (__fxstat,
31303 __fxstat64, __lxstat, __lxstat64, __xstat, __xstat64,
31304 __fxstatat64): Likewise.
31305 * include/sys/utsname.h [IS_IN(rtld) && NO_RTLD_HIDDEN]
31306 (__uname): Likewise.
31307 * include/sysdeps/generic/_itoa.h [IS_IN(rtld) && NO_RTLD_HIDDEN]
31308 (_itoa_upper_digits, _itoa_lower_digits): Likewise.
31309 * sysdeps/mach/hurd/configure.ac (NO_HIDDEN): Do not set.
31310 (NO_RTLD_HIDDEN): Set.
31311 * sysdeps/mach/hurd/configure: Refresh.
31312 * config.h.in: Refresh.
31313
31314 2017-10-02 Joseph Myers <joseph@codesourcery.com>
31315
31316 * sysdeps/ieee754/dbl-64/s_atan.c: Include <libm-alias-double.h>.
31317 (atan): Define using libm_alias_double.
31318 * sysdeps/ieee754/dbl-64/s_tan.c: Include <libm-alias-double.h>.
31319 (tan): Define using libm_alias_double.
31320 * sysdeps/ieee754/ldbl-opt/s_atan.c: Remove file.
31321 * sysdeps/ieee754/ldbl-opt/s_tan.c: Likewise.
31322
31323 * sysdeps/ieee754/dbl-64/s_atan.c (atan): Rename to __atan and
31324 define as weak alias of __atan. Do not define any aliases if
31325 [__atan].
31326 [NO_LONG_DOUBLE] (__atanl): Define as strong alias of __atan.
31327 [NO_LONG_DOUBLE] (atanl): Define as weak alias of __atanl.
31328 * sysdeps/ieee754/dbl-64/s_tan.c (tan): Rename to __tan and define
31329 as weak alias of __tan. Do not define any aliases if [__tan].
31330 [NO_LONG_DOUBLE] (__tanl): Define as strong alias of __tan.
31331 [NO_LONG_DOUBLE] (tanl): Define as weak alias of __tanl.
31332 * sysdeps/x86_64/fpu/multiarch/s_atan-avx.c (atan): Rename to
31333 __atan.
31334 * sysdeps/x86_64/fpu/multiarch/s_atan-fma.c (atan): Likewise.
31335 * sysdeps/x86_64/fpu/multiarch/s_atan-fma4.c (atan): Likewise.
31336 * sysdeps/x86_64/fpu/multiarch/s_atan.c (atan): Rename to __atan
31337 and define as weak alias of __atan.
31338 * sysdeps/x86_64/fpu/multiarch/s_tan-avx.c (tan): Rename to
31339 __atan.
31340 * sysdeps/x86_64/fpu/multiarch/s_tan-fma.c (tan): Likewise.
31341 * sysdeps/x86_64/fpu/multiarch/s_tan-fma4.c (tan): Likewise.
31342 * sysdeps/x86_64/fpu/multiarch/s_tan.c (tan): Rename to __tan and
31343 define as weak alias of __tan.
31344
31345 2017-10-02 Szabolcs Nagy <szabolcs.nagy@arm.com>
31346
31347 * math/w_lgamma.c: New file.
31348 * math/w_lgammaf.c: New file.
31349 * math/w_lgammal.c: New file.
31350
31351 2017-10-02 Szabolcs Nagy <szabolcs.nagy@arm.com>
31352
31353 * sysdeps/ieee754/flt-32/e_log2f.c (__log2f): Define without wrapper.
31354 * sysdeps/ieee754/flt-32/e_logf.c (__logf): Likewise
31355 * sysdeps/ieee754/flt-32/e_powf.c (__powf): Likewise
31356 * sysdeps/ieee754/flt-32/w_log2f.c: New file.
31357 * sysdeps/ieee754/flt-32/w_logf.c: New file.
31358 * sysdeps/ieee754/flt-32/w_powf.c: New file.
31359 * sysdeps/i386/fpu/w_log2f.c: New file.
31360 * sysdeps/i386/fpu/w_logf.c: New file.
31361 * sysdeps/i386/fpu/w_powf.c: New file.
31362 * sysdeps/m68k/m680x0/fpu/w_log2f.c: New file.
31363 * sysdeps/m68k/m680x0/fpu/w_logf.c: New file.
31364 * sysdeps/m68k/m680x0/fpu/w_powf.c: New file.
31365
31366 2017-10-02 Szabolcs Nagy <szabolcs.nagy@arm.com>
31367 H.J. Lu <hongjiu.lu@intel.com>
31368
31369 * sysdeps/ieee754/flt-32/e_exp2f.c (__exp2f): Define without wrapper.
31370 * sysdeps/ieee754/flt-32/e_expf.c (__expf): Likewise
31371 * sysdeps/ieee754/flt-32/w_exp2f.c: New file.
31372 * sysdeps/ieee754/flt-32/w_expf.c: New file.
31373 * sysdeps/powerpc/powerpc64/fpu/multiarch/e_expf-ppc64.c: Update for
31374 the new expf code.
31375 * sysdeps/powerpc/powerpc64/fpu/multiarch/w_expf.c: New file.
31376 * sysdeps/powerpc/powerpc64/power8/fpu/w_expf.c: New file.
31377 * sysdeps/m68k/m680x0/fpu/w_exp2f.c: New file.
31378 * sysdeps/m68k/m680x0/fpu/w_expf.c: New file.
31379 * sysdeps/i386/fpu/w_exp2f.c: New file.
31380 * sysdeps/i386/fpu/w_expf.c: New file.
31381 * sysdeps/i386/i686/fpu/multiarch/w_expf.c: New file.
31382 * sysdeps/x86_64/fpu/w_expf.c: New file.
31383
31384 2017-10-02 Szabolcs Nagy <szabolcs.nagy@arm.com>
31385
31386 * math/Versions (logf): New libm symbol at GLIBC_2.27.
31387 (log2f): Likewise.
31388 (powf): Likewise.
31389 * math/w_log2f.c: New file.
31390 * math/w_logf.c: New file.
31391 * math/w_powf.c: New file.
31392 * math/w_log2f_compat.c (__log2f_compat): For compat symbol only.
31393 * math/w_logf_compat.c (__logf_compat): Likewise.
31394 * math/w_powf_compat.c (__powf_compat): Likewise.
31395 * sysdeps/ia64/fpu/e_log2f.S: Add versioned symbols.
31396 * sysdeps/ia64/fpu/e_logf.S: Likewise.
31397 * sysdeps/ia64/fpu/e_powf.S: Likewise.
31398 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Update.
31399 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
31400 * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
31401 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
31402 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
31403 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
31404 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
31405 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
31406 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
31407 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
31408 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
31409 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
31410 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist:
31411 Likewise.
31412 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
31413 Likewise.
31414 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist:
31415 Likewise.
31416 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist:
31417 Likewise.
31418 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
31419 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
31420 * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
31421 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
31422 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
31423 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist:
31424 Likewise.
31425 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist:
31426 Likewise.
31427 * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
31428 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
31429 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
31430
31431 2017-10-02 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
31432
31433 * sysdeps/powerpc/powerpc64/multiarch/Makefile
31434 (sysdep_routines): Add memrchr_power8.
31435 * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
31436 (memrchr): Add __memrchr_power8 to list of memrchr functions.
31437 * sysdeps/powerpc/powerpc64/multiarch/memrchr-power8.S:
31438 New file.
31439 * sysdeps/powerpc/powerpc64/multiarch/memrchr.c
31440 (memrchr): Add __memrchr_power8 to ifunc list.
31441 * sysdeps/powerpc/powerpc64/power8/memrchr.S: New file.
31442
31443 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
31444
31445 [BZ #18822]
31446 * sysdeps/unix/sysv/linux/posix_fadvise64.c
31447 (__posix_fadvise64_l64): Add Add libc_hidden_proto and
31448 libc_hidden_def.
31449 * sysdeps/unix/sysv/linux/posix_fallocate64.c
31450 (__posix_fallocate64_l64): Likewise.
31451
31452 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
31453
31454 [BZ #18822]
31455 * sysdeps/unix/sysv/linux/sched_setaffinity.c
31456 (__sched_setaffinity_new): Add libc_hidden_proto and
31457 libc_hidden_def.
31458
31459 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
31460
31461 [BZ #18822]
31462 * include/glob.h (__glob64): Add libc_hidden_proto.
31463 * sysdeps/unix/sysv/linux/glob64.c (__glob64): Add
31464 libc_hidden_def.
31465
31466 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
31467
31468 [BZ #18822]
31469 * sysdeps/unix/sysv/linux/getrlimit64.c (__new_getrlimit): Add
31470 attribute_hidden.
31471
31472 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
31473
31474 [BZ #18822]
31475 * stdlib/exit.h (__new_exitfn): Add attribute_hidden.
31476
31477 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
31478
31479 [BZ #18822]
31480 * mon/gmon.c (__moncontrol): Add libc_hidden_proto and
31481 libc_hidden_def.
31482
31483 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
31484
31485 [BZ #18822]
31486 * csu/version.c (__libc_print_version): Add attribute_hidden.
31487
31488 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
31489
31490 [BZ #18822]
31491 * include/libc-internal.h (__init_misc): Add attribute_hidden.
31492
31493 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
31494
31495 [BZ #18822]
31496 * include/fpu_control.h (__setfpucw): Add attribute_hidden.
31497
31498 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
31499
31500 [BZ #18822]
31501 * nscd/nscd_helper.c (__nis_hash): New prototype.
31502
31503 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
31504
31505 [BZ #18822]
31506 * include/termios.h (__tcgetattr): Add libc_hidden_proto.
31507 * sysdeps/unix/bsd/tcgetattr.c (__tcgetattr): Add
31508 libc_hidden_def.
31509 * sysdeps/unix/sysv/linux/tcgetattr.c (__tcgetattr): Likewise.
31510 * termios/tcgetattr.c (__tcgetattr): Likewise.
31511
31512 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
31513
31514 [BZ #18822]
31515 * include/sys/resource.h (__setrlimit): Add libc_hidden_proto.
31516 * resource/setrlimit.c (__setrlimit): Add libc_hidden_def.
31517 * sysdeps/mach/hurd/setrlimit.c (__setrlimit): Likewise.
31518 * sysdeps/unix/sysv/linux/setrlimit.c (__setrlimit): Likewise.
31519 * sysdeps/unix/sysv/linux/setrlimit64.c (__GI___setrlimit): New.
31520
31521 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
31522
31523 [BZ #18822]
31524 * include/monetary.h (__vstrfmon_l): Add attribute_hidden.
31525
31526 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
31527
31528 [BZ #18822]
31529 * include/sched.h (__sched_setparam): Add libc_hidden_proto.
31530 * posix/sched_setp.c (__sched_setparam): Add libc_hidden_def.
31531
31532 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
31533
31534 [BZ #18822]
31535 * intl/hash-string.h (__hash_string): Add attribute_hidden.
31536
31537 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
31538
31539 [BZ #18822]
31540 * include/mntent.h (__hasmntopt): Add libc_hidden_proto.
31541 * misc/mntent_r.c (__hasmntopt): Add libc_hidden_def.
31542
31543 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
31544
31545 [BZ #18822]
31546 * include/ifreq.h: New file.
31547 * sysdeps/generic/ifreq.h (__if_nextreq): Removed.
31548 (__ifreq): Likewise.
31549 * sysdeps/mach/hurd/ifreq.h (__if_nextreq): Removed.
31550 (__ifreq): Likewise.
31551
31552 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
31553
31554 [BZ #18822]
31555 * include/idna.h: New file.
31556 * inet/getnameinfo.c: Include <idna.h> instead of
31557 <libidn/idna.h>.
31558 (__idna_to_unicode_lzlz): Removed.
31559 * sysdeps/posix/getaddrinfo.c: Include <idna.h> instead of
31560 <libidn/idna.h>.
31561 (__idna_to_ascii_lz): Removed.
31562 (__idna_to_unicode_lzlz): Likewise.
31563
31564 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
31565
31566 [BZ #18822]
31567 * include/plural-exp.h: New file.
31568 * intl/plural-exp.c: Include <plural-exp.h> instead of
31569 "plural-exp.h".
31570
31571 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
31572
31573 [BZ #18822]
31574 * sysdeps/unix/sysv/linux/getsourcefilter.c: Include
31575 "getsourcefilter.h".
31576 * sysdeps/unix/sysv/linux/getsourcefilter.h: New file.
31577 * sysdeps/unix/sysv/linux/setsourcefilter.c: Include
31578 "getsourcefilter.h".
31579 (__get_sol): Removed.
31580
31581 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
31582
31583 [BZ #18822]
31584 * elf/dl-iteratephdr.c (hidden_proto (__dl_iterate_phdr)): Moved
31585 to ...
31586 * include/link.h (hidden_proto (__dl_iterate_phdr)): Here.
31587
31588 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
31589
31590 [BZ #18822]
31591 * sysdeps/unix/sysv/linux/getpt.c (__bsd_getpt): Add
31592 attribute_hidden.
31593
31594 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
31595
31596 [BZ #18822]
31597 * libio/iolibio.h (__fopen_maybe_mmap): Add attribute_hidden.
31598
31599 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
31600
31601 [BZ #18822]
31602 * include/search.h (__tdestroy): Add libc_hidden_proto.
31603 * misc/tsearch.c (__tdestroy): Add libc_hidden_def.
31604
31605 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
31606
31607 [BZ #18822]
31608 * include/assert.h (__assert_fail_base): Add attribute_hidden.
31609
31610 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
31611
31612 [BZ #18822]
31613 * sysdeps/unix/sysv/linux/include/sys/sysinfo.h (__sysinfo): Add
31614 attribute_hidden.
31615
31616 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
31617
31618 [BZ #18822]
31619 * include/signal.h (__kill): Add libc_hidden_proto.
31620 (__sigblock): Likewise.
31621 (__sigprocmask): Likewise.
31622 (__sigaltstack): Likewise.
31623 * signal/kill.c (__kill): Add libc_hidden_def.
31624 * signal/sigblock.c (__sigblock): Likewise.
31625 * signal/sigprocmask.c (__sigprocmask): Likewise.
31626 * sysdeps/mach/hurd/kill.c (__kill): Likewise.
31627 * sysdeps/mach/hurd/sigaltstack.c (__sigaltstack): Likewise.
31628 * sysdeps/mach/hurd/sigprocmask.c (__sigprocmask): Likewise.
31629 * sysdeps/posix/sigblock.c (__sigblock): Likewise.
31630 * sysdeps/unix/sysv/linux/alpha/sigprocmask.c (__sigprocmask):
31631 Likewise.
31632 * sysdeps/unix/sysv/linux/ia64/sigprocmask.c (__sigprocmask):
31633 Likewise.
31634 * sysdeps/unix/sysv/linux/s390/s390-64/sigprocmask.c
31635 (__sigprocmask): Likewise.
31636 * sysdeps/unix/sysv/linux/sigprocmask.c (__sigprocmask):
31637 Likewise.
31638 * /sysdeps/unix/sysv/linux/sparc/sparc64/sigprocmask.c
31639 (__sigprocmask): Likewise.
31640 * sysdeps/unix/sysv/linux/x86_64/sigprocmask.c (__sigprocmask):
31641 Likewise.
31642
31643 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
31644
31645 [BZ #18822]
31646 * include/string.h (__strsep): Add libc_hidden_proto.
31647 * string/strsep.c (__strsep): Add libc_hidden_def.
31648
31649 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
31650
31651 [BZ #18822]
31652 * posix/spawn_int.h (__posix_spawn_file_actions_realloc): Add
31653 attribute_hidden.
31654 (__spawni): Likewise.
31655
31656 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
31657
31658 [BZ #18822]
31659 * include/sys/mman.h (__mremap): Add libc_hidden_proto.
31660 * sysdeps/unix/sysv/linux/m68k/mremap.S (__mremap): Add
31661 libc_hidden_def.
31662
31663 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
31664
31665 [BZ #18822]
31666 * include/malloc.h (__malloc_check_init): Add attribute_hidden.
31667
31668 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
31669
31670 [BZ #18822]
31671 * include/sys/ioctl.h (__ioctl): Add libc_hidden_proto.
31672 * misc/ioctl.c (__ioctl): Add libc_hidden_def.
31673 * sysdeps/mach/hurd/ioctl.c (__ioctl): Likewise.
31674 * sysdeps/unix/sysv/linux/aarch64/ioctl.S (__ioctl): Likewise.
31675 * sysdeps/unix/sysv/linux/mips/mips64/n64/ioctl.S (__ioctl):
31676 Likewise.
31677 * sysdeps/unix/sysv/linux/powerpc/ioctl.c (__ioctl): Likewise.
31678 * sysdeps/unix/sysv/linux/tile/tilegx/ioctl.S (__ioctl): Likewise.
31679
31680 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
31681
31682 [BZ #18822]
31683 * intl/gettextP.h (__dcngettext): Add attribute_hidden.
31684 (__dcigettext): Likewise.
31685
31686 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
31687
31688 [BZ #18822]
31689 * include/sys/sysinfo.h (__get_nprocs_conf): Add
31690 libc_hidden_proto.
31691 (__get_nprocs): Likewise.
31692 (__get_phys_pages): Likewise.
31693 (__get_avphys_pages): Likewise.
31694 (__get_child_max): Add attribute_hidden.
31695 * misc/getsysstats.c (__get_nprocs_conf): Add libc_hidden_def.
31696 (__get_nprocs): Likewise.
31697 (__get_phys_pages): Likewise.
31698 (__get_avphys_pages): Likewise.
31699 * sysdeps/mach/getsysstats.c (__get_nprocs_conf): Add
31700 libc_hidden_def.
31701 (__get_nprocs): Likewise.
31702 (__get_phys_pages): Likewise.
31703 (__get_avphys_pages): Likewise.
31704 * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Add
31705 libc_hidden_def.
31706 (__get_nprocs_conf): Likewise.
31707 (__get_phys_pages): Likewise.
31708 (__get_avphys_pages): Likewise.
31709
31710 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
31711
31712 [BZ #18822]
31713 * sysdeps/unix/sysv/linux/netlinkaccess.h (__netlink_open): Add
31714 attribute_hidden.
31715 (__netlink_close): Likewise.
31716 (__netlink_free_handle): Likewise.
31717 (__netlink_request): Likewise.
31718
31719 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
31720
31721 [BZ #18822]
31722 * include/rpc/rpc.h (__rpc_thread_variables): Add
31723 attribute_hidden.
31724 (__rpc_thread_svc_cleanup): Likewise.
31725 (__rpc_thread_clnt_cleanup): Likewise.
31726 (__rpc_thread_key_cleanup): Likewise.
31727
31728 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
31729
31730 [BZ #18822]
31731 * include/sys/uio.h (__readv): Add libc_hidden_proto.
31732 (__writev): Likewise.
31733 * misc/readv.c (__readv): Add libc_hidden_def.
31734 * misc/writev.c (__writev): Likewise.
31735 * sysdeps/posix/readv.c (__readv): Likewise.
31736 * sysdeps/posix/writev.c (__writev): Likewise.
31737 * sysdeps/unix/sysv/linux/readv.c: Include <sys/uio.h>.
31738 (__readv): Likewise.
31739 * sysdeps/unix/sysv/linux/writev.c: Include <sys/uio.h>.
31740 (__writev): Likewise.
31741
31742 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
31743
31744 [BZ #18822]
31745 * include/regex.h (__re_compile_fastmap): Add attribute_hidden.
31746 (__regcomp): Add libc_hidden_proto.
31747 (__regexec): Likewise.
31748 (__regfree): Likewise.
31749 * posix/regcomp.c (__regcomp): Add libc_hidden_def.
31750 (__regfree): Likewise.
31751 * posix/regexec.c (__regexec): Likewise.
31752
31753 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
31754
31755 [BZ #18822]
31756 * include/utmp.h (__updwtmp): Add libc_hidden_proto.
31757 (__getutent): Likewise.
31758 (__getutid): Likewise.
31759 (__getutline): Likewise.
31760 (__pututline): Likewise.
31761 (__getutent_r): Likewise.
31762 (__getutid_r): Likewise.
31763 (__getutline_r): Likewise.
31764 (__utmpname): Add attribute_hidden.
31765 (__setutent): Likewise.
31766 (__endutent): Likewise.
31767 * login/getutent.c (__getutent): Add libc_hidden_def.
31768 * login/getutent_r.c (__getutent_r): Likewise.
31769 (__pututline): Likewise.
31770 * login/getutid.c (__getutid): Likewise.
31771 * login/getutid_r.c (__getutid_r): Likewise.
31772 * login/getutline.c (__getutline): Likewise.
31773 * login/getutline_r.c (__getutline_r): Likewise.
31774 * login/updwtmp.c (__updwtmp): Likewise.
31775
31776 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
31777
31778 [BZ #18822]
31779 * include/dirent.h (__opendir): Always add attribute_hidden.
31780 (__fdopendir): Likewise.
31781 (__closedir): Likewise.
31782 (__readdir): Likewise.
31783 (__readdir64): Add libc_hidden_proto.
31784 * sysdeps/mach/hurd/readdir64.c (__readdir64): Add libc_hidden_def.
31785 * sysdeps/unix/sysv/linux/i386/readdir64.c (__readdir64): Likewise.
31786 * sysdeps/unix/sysv/linux/readdir64.c (__readdir64): Likewise.
31787 * sysdeps/unix/sysv/linux/wordsize-64/readdir.c (__GI___readdir64):
31788 New alias.
31789
31790 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
31791
31792 [BZ #18822]
31793 * include/aliases.h (__getaliasbyname_r): Add attribute_hidden.
31794 * include/netdb.h (__gethostbyaddr_r): Likewise.
31795 (__gethostbyname_r): Likewise.
31796 (__gethostbyname2_r): Likewise.
31797 (__getnetbyaddr_r): Likewise.
31798 (__getnetbyname_r): Likewise.
31799 (__getservbyname_r): Likewise.
31800 (__getservbyport_r): Likewise.
31801 (__getprotobyname_r): Likewise.
31802 (__getprotobynumber_r): Likewise.
31803 (__getnetgrent_r): Likewise.
31804 * include/rpc/netdb.h (__getrpcbyname_r): Likewise.
31805 (__getrpcbynumber_r): Likewise.
31806 * nss/getXXbyYY.c (INTERNAL (REENTRANT_NAME)): Likewise.
31807
31808 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
31809
31810 [BZ #18822]
31811 * include/stdio.h (__fcloseall): Add attribute_hidden.
31812 (__getline): Likewise.
31813 (__path_search): Likewise.
31814 (__gen_tempname): Likewise.
31815 (__libc_message): Likewise.
31816 (__flockfile): Likewise.
31817 (__funlockfile): Likewise.
31818 (__fxprintf): Likewise.
31819 (__fxprintf_nocancel): Likewise.
31820
31821 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
31822
31823 [BZ #18822]
31824 * include/gshadow.h (__fgetsgent_r): Add attribute_hidden.
31825 (__sgetsgent_r): Likewise.
31826
31827 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
31828
31829 [BZ #18822]
31830 * include/sys/statfs.h (__fstatfs): Add attribute_hidden.
31831 (__statfs64): Likewise.
31832 (__fstatfs64): Likewise.
31833 * include/sys/statvfs.h (__statvfs64): Likewise.
31834 (__fstatvfs64): Likewise.
31835 * sysdeps/unix/sysv/linux/pathconf.h (__statfs_link_max): Likewise.
31836 (__statfs_filesize_max): Likewise.
31837 (__statfs_symlinks): Likewise.
31838 (__statfs_chown_restricted): Likewise.
31839
31840 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
31841
31842 [BZ #18822]
31843 * include/time.h (__tzstring): Add attribute_hidden.
31844 (__tzfile_read): Likewise.
31845 (__tzfile_compute): Likewise.
31846 (__tzfile_default): Likewise.
31847 (__tzset_parse_tz): Likewise.
31848 (__offtime): Likewise.
31849 (__asctime_r): Likewise.
31850 (__tzset): Likewise.
31851 (__tz_convert): Likewise.
31852 (__getdate_r): Likewise.
31853 (__getclktck): Likewise.
31854
31855 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
31856
31857 [BZ #18822]
31858 * nscd/nscd-client.h (__nscd_get_map_ref): Add attribute_hidden.
31859 (__nscd_unmap): Likewise.
31860 (__nscd_cache_search): Likewise.
31861 (__nscd_get_nl_timestamp): Likewise.
31862 (__nscd_getpwnam_r): Likewise.
31863 (__nscd_getpwuid_r): Likewise.
31864 (__nscd_getgrnam_r): Likewise.
31865 (__nscd_getgrgid_r): Likewise.
31866 (__nscd_gethostbyname_r): Likewise.
31867 (__nscd_gethostbyname2_r): Likewise.
31868 (__nscd_gethostbyaddr_r): Likewise.
31869 (__nscd_getai): Likewise.
31870 (__nscd_getgrouplist): Likewise.
31871 (__nscd_getservbyname_r): Likewise.
31872 (__nscd_getservbyport_r): Likewise.
31873 (__nscd_innetgr): Likewise.
31874 (__nscd_setnetgrent): Likewise.
31875
31876 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
31877
31878 [BZ #18822]
31879 * include/gmp.h: Declare internal functions only if _ISOMAC is
31880 undefined.
31881 (__mpn_extract_double): Add attribute_hidden.
31882 (__mpn_extract_long_double): Likewise.
31883 (__mpn_extract_float128): Likewise.
31884 (__mpn_construct_float): Likewise.
31885 (__mpn_construct_double): Likewise.
31886 (__mpn_construct_long_double): Likewise.
31887 (__mpn_construct_float128): Likewise.
31888 (mpn_add_1): Likewise.
31889 (mpn_addmul_1): Likewise.
31890 (mpn_add_n): Likewise.
31891 (mpn_cmp): Likewise.
31892 (mpn_divrem): Likewise.
31893 (mpn_lshift): Likewise.
31894 (mpn_mul): Likewise.
31895 (mpn_mul_1): Likewise.
31896 (mpn_rshift): Likewise.
31897 (mpn_sub_1): Likewise.
31898 (mpn_submul_1): Likewise.
31899 (mpn_sub_n): Likewise.
31900
31901 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
31902
31903 [BZ #18822]
31904 * include/wchar.h (__wcsnlen): Add attribute_hidden.
31905 (__wcscat): Likewise.
31906 (__btowc): Likewise.
31907 (__wcrtomb): Likewise.
31908 (__mbsrtowcs): Likewise.
31909 (__wcsrtombs): Likewise.
31910 (__mbsnrtowcs): Likewise.
31911 (__wcsnrtombs): Likewise.
31912 (__wcsncpy): Likewise.
31913 (__wcpncpy): Likewise.
31914 (__wmemcpy): Likewise.
31915 (__wmempcpy): Likewise.
31916 (__wmemmove): Likewise.
31917 (__wcschrnul): Likewise.
31918 (__vfwscanf): Likewise.
31919 (__vswprintf): Likewise.
31920 (__fwprintf): Likewise.
31921 (__vfwprintf): Likewise.
31922
31923 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
31924
31925 [BZ #18822]
31926 * include/grp.h (__fgetgrent_r): Add attribute_hidden.
31927 (__getgrgid_r): Likewise.
31928 (__getgrnam_r): Likewise.
31929 * include/pwd.h (__getpwuid_r): Likewise.
31930 (__getpwnam_r): Likewise.
31931 (__fgetpwent_r): Likewise.
31932 * include/shadow.h (__getspnam_r): Likewise.
31933 (__sgetspent_r): Likewise.
31934 (__fgetspent_r): Likewise.
31935
31936 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
31937
31938 [BZ #18822]
31939 * include/unistd.h (__access): Add attribute_hidden.
31940 (__lseek64): Likewise.
31941 (__libc_pread64): Likewise.
31942 (__pipe2): Likewise.
31943 (__sleep): Likewise.
31944 (__chdir): Likewise.
31945 (__fchdir): Likewise.
31946 (__getcwd): Likewise.
31947 (__rmdir): Likewise.
31948 (__execvpe): Likewise.
31949 (__execve): Likewise.
31950 (__setsid): Likewise.
31951 (__getuid): Likewise.
31952 (__geteuid): Likewise.
31953 (__getgid): Likewise.
31954 (__getegid): Likewise.
31955 (__getgroups): Likewise.
31956 (__group_member): Likewise.
31957 (__ttyname_r): Likewise.
31958 (__isatty): Likewise.
31959 (__readlink): Likewise.
31960 (__unlink): Likewise.
31961 (__gethostname): Likewise.
31962 (__profil): Likewise.
31963 (__getdtablesize): Likewise.
31964 (__brk): Likewise.
31965 (__ftruncate): Likewise.
31966 (__ftruncate64): Likewise.
31967
31968 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
31969
31970 [BZ #18822]
31971 * argp/argp-fmtstream.c: Include <argp-fmtstream.h>.
31972 * argp/argp-fs-xinl.c: Likewise.
31973 * argp/argp-help.c: Include <argp.h> and <argp-fmtstream.h>.
31974 * argp/argp-parse.c: Include <argp.h>.
31975 * argp/argp-xinl.c: Likewise.
31976 * include/argp-fmtstream.h: New file.
31977 * include/argp.h (__argp_error): Add attribute_hidden.
31978 (__argp_failure): Likewise.
31979 (__argp_input): Likewise.
31980 (__argp_state_help): Likewise.
31981
31982 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
31983
31984 [BZ #18822]
31985 * include/wchar.h (____wcstof_l_internal): New prototype.
31986 (____wcstod_l_internal): Likewise.
31987 (____wcstold_l_internal): Likewise.
31988 (____wcstol_l_internal): Likewise.
31989 (____wcstoul_l_internal): Likewise.
31990 (____wcstoll_l_internal): Likewise.
31991 (____wcstoull_l_internal): Likewise.
31992 (____wcstof128_l_internal): Likewise.
31993 * sysdeps/ieee754/float128/wcstof128.c
31994 (____wcstof128_l_internal): Removed.
31995 * sysdeps/ieee754/float128/wcstof128_l.c
31996 (____wcstof128_l_internal): Likewise.
31997 * wcsmbs/wcstod.c (____wcstod_l_internal): Likewise.
31998 * wcsmbs/wcstod_l.c (____wcstod_l_internal): Likewise.
31999 * wcsmbs/wcstof.c (____wcstof_l_internal): Likewise.
32000 * wcsmbs/wcstof_l.c (____wcstof_l_internal): Likewise.
32001 * wcsmbs/wcstol_l.c (____wcstol_l_internal): Likewise.
32002 * wcsmbs/wcstold.c (____wcstold_l_internal): Likewise.
32003 * wcsmbs/wcstold_l.c (____wcstold_l_internal): Likewise.
32004 * wcsmbs/wcstoll_l.c (____wcstoll_l_internal): Likewise.
32005 * wcsmbs/wcstoul_l.c (____wcstoul_l_internal): Likewise.
32006 * wcsmbs/wcstoull_l.c (____wcstoull_l_internal): Likewise.
32007
32008 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
32009
32010 [BZ #18822]
32011 * sysdeps/unix/sysv/linux/fstatvfs.c: Include "internal_statvfs.h"
32012 instead of <sys/statvfs.h>.
32013 (__internal_statvfs): Removed.
32014 * sysdeps/unix/sysv/linux/fstatvfs64.c Include "internal_statvfs.h"
32015 instead of <sys/statvfs.h>.
32016 (__internal_statvfs64): Removed.
32017 * sysdeps/unix/sysv/linux/internal_statvfs.c: Include
32018 "internal_statvfs.h" instead of <sys/statvfs.h>.
32019 * sysdeps/unix/sysv/linux/internal_statvfs.h: New file.
32020 * sysdeps/unix/sysv/linux/statvfs.c Include "internal_statvfs.h"
32021 instead of <sys/statvfs.h>.
32022 (__internal_statvfs): Removed.
32023 * sysdeps/unix/sysv/linux/statvfs64.c Include "internal_statvfs.h"
32024 instead of <sys/statvfs.h>.
32025 (__internal_statvfs64): Removed.
32026
32027 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
32028
32029 [BZ #18822]
32030 * iconv/gconv_int.h (__gconv_open): Add attribute_hidden.
32031 (__gconv_close): Likewise.
32032 (__gconv): Likewise.
32033 (__gconv_find_transform): Likewise.
32034 (__gconv_lookup_cache): Likewise.
32035 (__gconv_compare_alias_cache): Likewise.
32036 (__gconv_load_cache): Likewise.
32037 (__gconv_get_path): Likewise.
32038 (__gconv_close_transform): Likewise.
32039 (__gconv_release_cache): Likewise.
32040 (__gconv_find_shlib): Likewise.
32041 (__gconv_release_shlib): Likewise.
32042 (__gconv_get_builtin_trans): Likewise.
32043 (__gconv_compare_alias): Likewise.
32044 * include/dlfcn.h (_dlerror_run): Likewise.
32045 * include/stdio.h (__fortify_fail_abort): Likewise.
32046 * include/time.h (__tz_compute): Likewise.
32047 (__strptime_internal): Likewise.
32048 * intl/gettextP.h (_nl_find_domain): Likewise.
32049 (_nl_load_domain): Likewise.
32050 (_nl_find_msg): Likewise.
32051 * intl/plural-exp.h (FREE_EXPRESSION): Likewise.
32052 (EXTRACT_PLURAL_EXPRESSION): Likewise.
32053 * locale/coll-lookup.h (__collidx_table_lookup): Likewise.
32054 * resolv/gai_misc.h (__gai_enqueue_request): Likewise.
32055 (__gai_find_request): Likewise.
32056 (__gai_remove_request): Likewise.
32057 (__gai_notify): Likewise.
32058 (__gai_notify_only): Likewise.
32059 * sysdeps/generic/aio_misc.h (__aio_sigqueue): Likewise.
32060 * sysdeps/generic/ldsodefs.h (_dl_fini): Likewise.
32061 (_dl_non_dynamic_init): Likewise.
32062 (_dl_aux_init): Likewise.
32063 * sysdeps/i386/machine-gmon.h (mcount_internal): Likewise.
32064 * sysdeps/unix/sysv/linux/i386/olddirent.h (__old_getdents64):
32065 Likewise.
32066 * wcsmbs/wcsmbsload.h (__wcsmbs_load_conv): Likewise.
32067 (__wcsmbs_clone_conv): Likewise.
32068 (__wcsmbs_named_conv): Likewise.
32069
32070 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
32071
32072 [BZ #18822]
32073 * include/stdlib.h (__random): Add attribute_hidden.
32074 (__random_r): Likewise.
32075 (__srandom_r): Likewise.
32076 (__initstate_r): Likewise.
32077 (__setstate_r): Likewise.
32078 (__erand48_r): Likewise.
32079 (__nrand48_r): Likewise.
32080 (__jrand48_r): Likewise.
32081 (__srand48_r): Likewise.
32082 (__seed48_r): Likewise.
32083 (__lcong48_r): Likewise.
32084 (__drand48_iterate): Likewise.
32085 (__setenv): Likewise.
32086 (__unsetenv): Likewise.
32087 (__clearenv): Likewise.
32088 (__ptsname_r): Likewise.
32089 (__posix_openpt): Likewise.
32090 (__add_to_environ): Likewise.
32091 (__realpath): Add libc_hidden_proto.
32092 (__ecvt_r): Likewise.
32093 (__fcvt_r): Likewise.
32094 (__qecvt_r): Likewise.
32095 (__qfcvt_r): Likewise.
32096 * misc/efgcvt_r.c (cvt_symbol_1): Add libc_hidden_def (local).
32097 * stdlib/canonicalize.c (__realpath): Add libc_hidden_def.
32098
32099 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
32100
32101 [BZ #18822]
32102 * include/stdlib.h (__ptsname_internal): Add attribute_hidden.
32103 * include/time.h (__mktime_internal): Likewise.
32104 * libio/iolibio.h (__fopen_internal): Likewise.
32105
32106 2017-10-01 John David Anglin <danglin@gcc.gnu.org>
32107
32108 * sysdeps/unix/sysv/linux/hppa/getcontext.S (__getcontext): Save return
32109 pointer in frame.
32110 * sysdeps/unix/sysv/linux/hppa/setcontext.S (__setcontext): Likewise.
32111 Correct offset used to restore PIC register.
32112
32113 2017-09-30 John David Anglin <danglin@gcc.gnu.org>
32114
32115 [BZ libc/22165]
32116 * sysdeps/unix/sysv/linux/hppa/getcontext.S (__getcontext): Use PIC
32117 code to load address of __getcontext_ret when generating PIC code.
32118
32119 2017-09-30 H.J. Lu <hongjiu.lu@intel.com>
32120
32121 * elf/Makefile (tests-static-internal): Add
32122 tst-tls1-static-non-pie.
32123 (LDFLAGS-tst-tls1-static-non-pie): New.
32124 * elf/tst-tls1-static-non-pie.c: New file.
32125
32126 2017-09-29 Joseph Myers <joseph@codesourcery.com>
32127
32128 * sysdeps/ieee754/dbl-64/s_asinh.c: Include <libm-alias-double.h>.
32129 (asinh): Define using libm_alias_double.
32130 * sysdeps/ieee754/dbl-64/s_cbrt.c: Include <libm-alias-double.h>.
32131 (cbrt): Define using libm_alias_double.
32132 * sysdeps/ieee754/dbl-64/s_copysign.c: Include
32133 <libm-alias-double.h>.
32134 (copysign): Define using libm_alias_double.
32135 * sysdeps/ieee754/dbl-64/s_erf.c: Include <libm-alias-double.h>.
32136 (erf): Define using libm_alias_double.
32137 (erfc): Likewise.
32138 * sysdeps/ieee754/dbl-64/s_expm1.c: Include <libm-alias-double.h>.
32139 (expm1): Define using libm_alias_double.
32140 * sysdeps/ieee754/dbl-64/s_fabs.c: Include <libm-alias-double.h>.
32141 (fabs): Define using libm_alias_double.
32142 * sysdeps/ieee754/dbl-64/s_fromfp.c (fromfp): Define using
32143 libm_alias_double.
32144 * sysdeps/ieee754/dbl-64/s_fromfp_main.c: Include
32145 <libm-alias-double.h>.
32146 * sysdeps/ieee754/dbl-64/s_fromfpx.c (fromfpx): Define using
32147 libm_alias_double.
32148 * sysdeps/ieee754/dbl-64/s_getpayload.c: Include
32149 <libm-alias-double.h>.
32150 (getpayload): Define using libm_alias_double.
32151 * sysdeps/ieee754/dbl-64/s_llrint.c: Include
32152 <libm-alias-double.h>.
32153 (llrint): Define using libm_alias_double.
32154 * sysdeps/ieee754/dbl-64/s_lrint.c: Include <libm-alias-double.h>.
32155 (lrint): Define using libm_alias_double.
32156 * sysdeps/ieee754/dbl-64/s_nextup.c: Include
32157 <libm-alias-double.h>.
32158 (nextup): Define using libm_alias_double.
32159 * sysdeps/ieee754/dbl-64/s_roundeven.c: Include
32160 <libm-alias-double.h>.
32161 (roundeven): Define using libm_alias_double.
32162 * sysdeps/ieee754/dbl-64/s_setpayload.c (setpayload): Define using
32163 libm_alias_double.
32164 * sysdeps/ieee754/dbl-64/s_setpayload_main.c: Include
32165 <libm-alias-double.h>.
32166 * sysdeps/ieee754/dbl-64/s_setpayloadsig.c (setpayloadsig): Define
32167 using libm_alias_double.
32168 * sysdeps/ieee754/dbl-64/s_sin.c: Include <libm-alias-double.h>.
32169 (cos): Define using libm_alias_double.
32170 (sin): Likewise.
32171 * sysdeps/ieee754/dbl-64/s_sincos.c: Include
32172 <libm-alias-double.h>.
32173 (sincos): Define using libm_alias_double.
32174 * sysdeps/ieee754/dbl-64/s_tanh.c: Include <libm-alias-double.h>.
32175 (tanh): Define using libm_alias_double.
32176 * sysdeps/ieee754/dbl-64/s_totalorder.c: Include
32177 <libm-alias-double.h>.
32178 (totalorder): Define using libm_alias_double.
32179 * sysdeps/ieee754/dbl-64/s_totalordermag.c: Include
32180 <libm-alias-double.h>.
32181 (totalordermag): Define using libm_alias_double.
32182 * sysdeps/ieee754/dbl-64/s_ufromfp.c (ufromfp): Define using
32183 libm_alias_double.
32184 * sysdeps/ieee754/dbl-64/s_ufromfpx.c (ufromfpx): Define using
32185 libm_alias_double.
32186 * sysdeps/ieee754/dbl-64/wordsize-64/s_getpayload.c: Include
32187 <libm-alias-double.h>.
32188 (getpayload): Define using libm_alias_double.
32189 * sysdeps/ieee754/dbl-64/wordsize-64/s_roundeven.c: Include
32190 <libm-alias-double.h>.
32191 (roundeven): Define using libm_alias_double.
32192 * sysdeps/ieee754/dbl-64/wordsize-64/s_setpayload_main.c: Include
32193 <libm-alias-double.h>.
32194 * sysdeps/ieee754/dbl-64/wordsize-64/s_totalorder.c: Include
32195 <libm-alias-double.h>.
32196 (totalorder): Define using libm_alias_double.
32197 * sysdeps/ieee754/dbl-64/wordsize-64/s_totalordermag.c: Include
32198 <libm-alias-double.h>.
32199 (totalordermag): Define using libm_alias_double.
32200 * sysdeps/ieee754/ldbl-opt/s_copysign.c (copysignl): Only define
32201 libc compat symbol here.
32202 * sysdeps/ieee754/ldbl-opt/s_asinh.c: Remove file.
32203 * sysdeps/ieee754/ldbl-opt/s_cbrt.c: Likewise.
32204 * sysdeps/ieee754/ldbl-opt/s_erf.c: Likewise.
32205 * sysdeps/ieee754/ldbl-opt/s_expm1.c: Likewise.
32206 * sysdeps/ieee754/ldbl-opt/s_fabs.c: Likewise.
32207 * sysdeps/ieee754/ldbl-opt/s_llrint.c: Likewise.
32208 * sysdeps/ieee754/ldbl-opt/s_lrint.c: Likewise.
32209 * sysdeps/ieee754/ldbl-opt/s_sin.c: Likewise.
32210 * sysdeps/ieee754/ldbl-opt/s_sincos.c: Likewise.
32211 * sysdeps/ieee754/ldbl-opt/s_tanh.c: Likewise.
32212
32213 2017-09-29 H.J. Lu <hongjiu.lu@intel.com>
32214
32215 * sysdeps/arm/dl-machine.h (elf_machine_load_address): Use
32216 _dl_relocate_static_pie instead of _dl_start to compute load
32217 address in static PIE. Return 0 if _DYNAMIC is undefined for
32218 static executable.
32219
32220 2017-09-29 H.J. Lu <hongjiu.lu@intel.com>
32221
32222 * sysdeps/mips/dl-machine.h (elf_machine_dynamic): Return 0 if
32223 _DYNAMIC is undefined for static executable.
32224
32225 2017-09-29 H.J. Lu <hongjiu.lu@intel.com>
32226
32227 * sysdeps/arm/start.S (_start): Check PIC instead of SHARED.
32228
32229 2017-09-29 Joseph Myers <joseph@codesourcery.com>
32230
32231 * sysdeps/x86_64/fpu/libm-test-ulps: Update.
32232
32233 2017-09-29 Wilco Dijkstra <wdijkstr@arm.com>
32234
32235 * sysdeps/ieee754/dbl-64/e_lgamma_r.c
32236 (__ieee754_lgamma_r): Use fabs rather than __fabs.
32237 * sysdeps/ieee754/dbl-64/e_log10.c (__ieee754_log10): Likewise.
32238 * sysdeps/ieee754/dbl-64/e_log2.c (__ieee754_log2): Likewise.
32239 * sysdeps/ieee754/flt-32/e_lgammaf_r.c
32240 (__ieee754_lgammaf_r): Use fabsf rather than __fabsf.
32241 * sysdeps/ieee754/flt-32/e_log10f.c (__ieee754_log10f): Likewise.
32242 * sysdeps/ieee754/flt-32/e_log2f.c (__ieee754_log2f): Likewise.
32243 * sysdeps/ieee754/ldbl-128/e_lgammal_r.c
32244 (__ieee754_lgammal_r): Use fabsl rather than __fabsl.
32245 * sysdeps/ieee754/ldbl-128/e_log10l.c (__ieee754_log10l): Likewise.
32246 * sysdeps/ieee754/ldbl-128/e_log2l.c (__ieee754_log2l): Likewise.
32247 * sysdeps/ieee754/ldbl-128ibm/e_lgammal_r.c
32248 (__ieee754_lgammal_r): Use fabsl rather than __fabsl.
32249 * sysdeps/ieee754/ldbl-128ibm/e_log10l.c (__ieee754_log10l): Likewise.
32250 * sysdeps/ieee754/ldbl-128ibm/e_log2l.c (__ieee754_log2l): Likewise.
32251 * sysdeps/powerpc/nofpu/Makefile: Add -fno-builtin-fabsl for BZ #29253.
32252
32253 2017-09-29 Wilco Dijkstra <wdijkstr@arm.com>
32254
32255 * math/bits/cmathcalls.h (cimag): Remove inline.
32256 (creal): Remove inline.
32257 (conj): Remove inline.
32258
32259 2017-09-29 Szabolcs Nagy <szabolcs.nagy@arm.com>
32260
32261 * math/Makefile (type-float-routines): Add e_powf_log2_data.
32262 * sysdeps/ieee754/flt-32/e_powf.c: New implementation.
32263 * sysdeps/ieee754/flt-32/e_powf_log2_data.c: New file.
32264 * sysdeps/ieee754/flt-32/math_config.h (__powf_log2_data): Define.
32265 (issignalingf_inline): Likewise.
32266 (POWF_LOG2_TABLE_BITS): Likewise.
32267 (POWF_LOG2_POLY_ORDER): Likewise.
32268 (POWF_SCALE_BITS): Likewise.
32269 (POWF_SCALE): Likewise.
32270 * sysdeps/i386/fpu/e_powf_log2_data.c: New file.
32271 * sysdeps/ia64/fpu/e_powf_log2_data.c: New file.
32272 * sysdeps/m68k/m680x0/fpu/e_powf_log2_data.c: New file.
32273
32274 2017-09-29 Szabolcs Nagy <szabolcs.nagy@arm.com>
32275
32276 * math/Makefile (type-float-routines): Add e_log2f_data.
32277 * sysdeps/ieee754/flt-32/e_log2f.c: New implementation.
32278 * sysdeps/ieee754/flt-32/e_log2f_data.c: New file.
32279 * sysdeps/ieee754/flt-32/math_config.h (__log2f_data): Define.
32280 (LOG2F_TABLE_BITS, LOG2F_POLY_ORDER): Define.
32281 * sysdeps/i386/fpu/e_log2f_data.c: New file.
32282 * sysdeps/ia64/fpu/e_log2f_data.c: New file.
32283 * sysdeps/m68k/m680x0/fpu/e_log2f_data.c: New file.
32284
32285 2017-09-29 Szabolcs Nagy <szabolcs.nagy@arm.com>
32286
32287 * math/Makefile (type-float-routines): Add e_logf_data.
32288 * sysdeps/ieee754/flt-32/e_logf.c: New implementation.
32289 * sysdeps/ieee754/flt-32/e_logf_data.c: New file.
32290 * sysdeps/ieee754/flt-32/math_config.h (__logf_data): Define.
32291 (LOGF_TABLE_BITS, LOGF_POLY_ORDER): Define.
32292 * sysdeps/i386/fpu/e_logf_data.c: New file.
32293 * sysdeps/ia64/fpu/e_logf_data.c: New file.
32294 * sysdeps/m68k/m680x0/fpu/e_logf_data.c: New file.
32295
32296 2017-09-28 H.J. Lu <hongjiu.lu@intel.com>
32297
32298 * sysdeps/i386/dl-machine.h (elf_machine_load_address): Allow
32299 undefined _DYNAMIC in PIE libc.a.
32300 * sysdeps/x86_64/dl-machine.h (elf_machine_load_address):
32301 Likewse.
32302
32303 2017-09-28 Wilco Dijkstra <wdijkstr@arm.com>
32304
32305 * sysdeps/alpha/fpu/bits/mathinline.h: Delete file.
32306 * sysdeps/ia64/fpu/bits/mathinline.h: Delete file.
32307 * sysdeps/m68k/coldfire/fpu/bits/mathinline.h: Delete file.
32308 * sysdeps/m68k/m680x0/fpu/bits/mathinline.h: (__signbitf): Remove.
32309 (__signbit): Remove.
32310 (__signbitl): Remove.
32311 * sysdeps/powerpc/bits/mathinline.h (__signbitf): Remove.
32312 (__signbit): Remove.
32313 (__signbitl): Remove.
32314 * sysdeps/s390/fpu/bits/mathinline.h: (__signbitf): Remove.
32315 (__signbit): Remove.
32316 (__signbitl): Remove.
32317 * sysdeps/sparc/fpu/bits/mathinline.h (__signbitf): Remove.
32318 (__signbit): Remove.
32319 (__signbitl): Remove.
32320 * sysdeps/tile/bits/mathinline.h: Delete file.
32321 * sysdeps/x86/fpu/bits/mathinline.h (__signbitf): Remove.
32322 (__signbit): Remove.
32323 (__signbitl): Remove.
32324
32325 2017-09-28 Wilco Dijkstra <wdijkstr@arm.com>
32326
32327 * math/math.h: Improve handling of C99 isgreater macros.
32328 * sysdeps/alpha/fpu/bits/mathinline.h: Remove isgreater macros.
32329 * sysdeps/m68k/m680x0/fpu/bits/mathinline.h: Likewise.
32330 * sysdeps/powerpc/bits/mathinline.h: Likewise.
32331 * sysdeps/sparc/fpu/bits/mathinline.h: Likewise.
32332 * sysdeps/x86/fpu/bits/mathinline.h: Likewise.
32333
32334 2017-09-28 Szabolcs Nagy <szabolcs.nagy@arm.com>
32335
32336 * sysdeps/aarch64/libm-test-ulps: Update.
32337
32338 2017-09-28 Joseph Myers <joseph@codesourcery.com>
32339
32340 [BZ #22225]
32341 * sysdeps/ieee754/dbl-64/s_nearbyint.c (__nearbyint): Use
32342 math_opt_barrier on argument when doing arithmetic on it.
32343 * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c (__nearbyint):
32344 Likewise. Use math_force_eval not math_opt_barrier after
32345 arithmetic.
32346 * sysdeps/ieee754/flt-32/s_nearbyintf.c (__nearbyintf): Use
32347 math_opt_barrier on argument when doing arithmetic on it.
32348 * sysdeps/ieee754/ldbl-128/s_nearbyintl.c (__nearbyintl):
32349 Likewise.
32350
32351 2017-09-27 H.J. Lu <hongjiu.lu@intel.com>
32352
32353 * sysdeps/unix/sysv/linux/ifaddrs.c (__getifaddrs): Add
32354 libc_hidden_def.
32355 (__freeifaddrs): Likewise.
32356
32357 2017-09-27 Samuel Thibault <samuel.thibault@ens-lyon.org>
32358
32359 * include/dirent.h (__dirfd): New declaration.
32360 * dirent/dirfd.c (dirfd): Rename to __dirfd, and redefine as weak
32361 alias.
32362 * sysdeps/posix/dirfd/dirfd.c (dirfd): Likewise.
32363 * sysdeps/mach/hurd/dirfd.c (dirfd): Likewise.
32364 * io/ftw.c (open_dir_stream, ftw_dir): Use __dirfd instead of dirfd.
32365 * include/unistd.h (__revoke): New declaration.
32366 * misc/revoke.c (revoke): Rename to __revoke, and redefine as weak
32367 alias.
32368 * sysdeps/mach/hurd/revoke.c (revoke): Likewise.
32369 * sysdeps/unix/bsd/unlockpt.c (unlockpt): Use __revoke instead of
32370 revoke.
32371 * include/dirent.h (__seekdir): New declaration.
32372 * sysdeps/mach/hurd/seekdir.c (seekdir): Rename to __seekdir and
32373 redefine as weak alias.
32374 * sysdeps/mach/hurd/rewinddir.c (__rewinddir): Use __seekdir instead
32375 of seekdir.
32376 * include/ifaddrs.h (__getifaddrs, __freeifaddrs): New declarations,
32377 and use libc_hidden_def on them.
32378 * inet/ifaddrs.c (__getifaddrs, __freeifaddrs): Use libc_hidden_def on
32379 them.
32380 * sysdeps/gnu/ifaddrs.c (__getifaddrs, __freeifaddrs): Likewise.
32381 * inet/check_pf.c (__check_pf): Use __getifaddrs and __freeifaddrs
32382 instead of getifaddrs and freeifaddrs.
32383
32384 2017-09-26 H.J. Lu <hongjiu.lu@intel.com>
32385
32386 [BZ #18822]
32387 * dlfcn/modatexit.c (foo): Remove __dso_handle check.
32388 * dlfcn/modcxaatexit.c: Include <dso_handle.h>.
32389 (__dso_handle): Remove declaration.
32390 * dlfcn/tstatexit.c (__dso_handle): Removed.
32391 (main): Don't check __dso_handle.
32392 * dlfcn/tstcxaatexit.c (__dso_handle): Removed.
32393 (main): Don't check __dso_handle.
32394 * include/dso_handle.h: New file.
32395 * malloc/mtrace.c: Include <dso_handle.h>.
32396 (mtrace): Pass __dso_handle directly.
32397 * nptl/pthread_atfork.c: Include <dso_handle.h>.
32398 (__dso_handle): Remove declaration.
32399 (__pthread_atfork): Pass __dso_handle directly.
32400 * nptl/tst-atfork2mod.c: Include <dso_handle.h>.
32401 (__dso_handle): Removed.
32402 * posix/wordexp-test.c: Include <dso_handle.h>.
32403 (__dso_handle): Remove declaration.
32404 (__app_register_atfork): Pass __dso_handle directly.
32405 * stdlib/at_quick_exit.c: Include <dso_handle.h>.
32406 (__dso_handle): Remove declaration.
32407 (at_quick_exit): Pass __dso_handle directly.
32408 * stdlib/atexit.c: Include <dso_handle.h>.
32409 (__dso_handle): Remove declaration.
32410 (atexit): Pass __dso_handle directly.
32411 * stdlib/tst-tls-atexit-lib.c: Include <dso_handle.h>.
32412 (__dso_handle): Removed.
32413
32414 2017-09-26 Joseph Myers <joseph@codesourcery.com>
32415
32416 * sysdeps/unix/make-syscalls.sh: Use __ifunc to define symbols
32417 using VDSO.
32418
32419 2017-09-26 Alexey Makhalov <amakhalov@vmware.com>
32420
32421 * elf/dl-tunables.c (do_tunable_update_val): Range checking fix.
32422 * scripts/gen-tunables.awk: Set unspecified minval and/or maxval
32423 values to correct default value for given type.
32424
32425 2017-09-26 H.J. Lu <hongjiu.lu@intel.com>
32426
32427 [BZ #22101]
32428 * elf/Makefile (tests): Add tst-debug1.
32429 ($(objpfx)tst-debug1): New.
32430 ($(objpfx)tst-debug1.out): Likewise.
32431 ($(objpfx)tst-debug1mod1.so): Likewise.
32432 * elf/dl-load.c (_dl_map_object_from_fd): Skip PT_DYNAMIC segment
32433 with p_filesz == 0.
32434 * elf/tst-debug1.c: New file.
32435
32436 2017-09-26 Joseph Myers <joseph@codesourcery.com>
32437
32438 * sysdeps/sparc/sparc-ifunc.h [!__ASSEMBLER__] (sparc_libm_ifunc):
32439 Define using __ifunc.
32440
32441 2017-09-26 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
32442
32443 * sysdeps/powerpc/fpu/libm-test-ulps: Regenerate expf() and
32444 exp2f() values.
32445
32446 2017-09-26 Joseph Myers <joseph@codesourcery.com>
32447
32448 [BZ #22156]
32449 * sysdeps/ia64/stackinfo.h (DEFAULT_STACK_PERMS): Likewise.
32450
32451 2017-09-26 Florian Weimer <fweimer@redhat.com>
32452
32453 * resolv/Makefile (tests-internal): Fix typo in comment.
32454
32455 2017-09-26 Florian Weimer <fweimer@redhat.com>
32456
32457 * resolv/nss_dns/dns-host.c: Fix typo in comment.
32458
32459 2017-09-25 Adhemerval Zanella <adhemerval.zanella@linaro.org>
32460
32461 * lib/malloc/scratch_buffer.h (struct scratch_buffer):
32462 Use an union instead of a max_align_t array for __space,
32463 so that __space is the same size on all platforms.
32464 * malloc/scratch_buffer_grow_preserve.c
32465 (__libc_scratch_buffer_grow_preserve): Likewise.
32466
32467 [BZ #22183]
32468 * include/gnu-versions.h (_GNU_GLOB_INTERFACE_VERSION): Increase
32469 version to 2.
32470 * posix/Makefile (routines): Add glob-lstat-compat and
32471 glob64-lstat-compat.
32472 * posix/Versions (GLIBC_2.27, glob, glob64): Add symbol version.
32473 * posix/glob-lstat-compat.c: New file.
32474 * posix/glob64-lstat-compat.c: Likewise.
32475 * posix/tst-glob_lstat_compat.c: Likewise.
32476 * sysdeps/unix/sysv/linux/glob-lstat-compat.c: Likewise.
32477 * sysdeps/unix/sysv/linux/alpha/glob-lstat-compat.c: Likewise.
32478 * sysdeps/unix/sysv/linux/glob64-lstat-compat.c: Likewise.
32479 * sysdeps/unix/sysv/linux/s390/s390-32/glob64-lstat-compat.c:
32480 Likewise.
32481 * sysdeps/unix/sysv/linux/alpha/glob.c: Remove file.
32482 * sysdeps/unix/sysv/linux/s390/s390-32/glob64.c: Likewise.
32483 * posix/glob.c (glob_lstat): New function.
32484 (glob): Rename to __glob and add versioned symbol to 2.27.
32485 (glob_in_dir): Use glob_lstat.
32486 * posix/glob64.c (glob64): Add GLOB_ATTRIBUTE.
32487 * sysdeps/unix/sysv/linux/arm/libc.abilist: Likewise.
32488 * sysdeps/unix/sysv/linux/glob.c (glob): Add versioned symbol for
32489 2.27.
32490 * sysdeps/unix/sysv/linux/glob64.c (glob64): Likewise.
32491 * sysdeps/unix/sysv/linux/oldglob.c (GLOB_NO_LSTAT): Define.
32492 * sysdeps/unix/sysv/linux/alpha/oldglob.c (__old_glob): Do not use
32493 gl_lstat on glob call.
32494 * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Add GLIBC_2.27 glob
32495 and glob64 symbols.
32496 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
32497 * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
32498 * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
32499 * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
32500 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
32501 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
32502 * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
32503 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
32504 * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist: Likewise.
32505 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
32506 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
32507 * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise.
32508 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
32509 Likewise.
32510 * sysdeps/unix/linux/powerpc/powerpc32/nofpu/libc.abilist: Likewise.
32511 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist: Likewise.
32512 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
32513 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
32514 * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
32515 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
32516 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
32517 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libc.abilist: Likewise.
32518 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libc.abilist: Likewise.
32519 * sysdeps/unix/sysv/linux/tile/tilepro/libc.abilist: Likewise.
32520 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
32521 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
32522
32523 2017-09-25 H.J. Lu <hongjiu.lu@intel.com>
32524
32525 * configure.ac (AS): Require binutils 2.25 or later.
32526 * configure: Regenerated.
32527
32528 2017-09-25 Paul Pluzhnikov <ppluzhnikov@google.com>
32529
32530 [BZ #22207]
32531 * stdlib/test-atexit-race-common.c (do_test): Minimize required
32532 VM size.
32533
32534 2017-09-25 DJ Delorie <dj@redhat.com>
32535
32536 [BZ #22161]
32537 * nscd/netgroupcache.c (addinnetgrX): Release read lock after
32538 resetting timeout.
32539
32540 2017-09-25 Stefan Liebler <stli@linux.vnet.ibm.com>
32541
32542 * sysdeps/ieee754/dbl-64/sincos32.h
32543 [SINCCOS32_H]: Remove define.
32544 [SINCOS32_H]: Define.
32545
32546 2017-09-25 Szabolcs Nagy <szabolcs.nagy@arm.com>
32547
32548 * math/Versions (expf): New libm symbol at GLIBC_2.27.
32549 (exp2f): Likewise.
32550 * math/w_exp2f.c: New file.
32551 * math/w_expf.c: New file.
32552 * math/w_exp2f_compat.c (__exp2f_compat): For compat symbol only.
32553 * math/w_expf_compat.c (__expf_compat): Likewise.
32554 * sysdeps/ia64/fpu/e_exp2f.S: Add versioned symbols.
32555 * sysdeps/ia64/fpu/e_expf.S: Likewise.
32556 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Update.
32557 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
32558 * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
32559 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
32560 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
32561 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
32562 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
32563 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
32564 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
32565 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
32566 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
32567 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
32568 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist:
32569 Likewise.
32570 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
32571 Likewise.
32572 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist:
32573 Likewise.
32574 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist:
32575 Likewise.
32576 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
32577 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
32578 * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
32579 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
32580 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
32581 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist:
32582 Likewise.
32583 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist:
32584 Likewise.
32585 * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
32586 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
32587 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
32588
32589 2017-09-25 Szabolcs Nagy <szabolcs.nagy@arm.com>
32590
32591 * math/Makefile (type-float-routines): Add math_errf and e_exp2f_data.
32592 * sysdeps/aarch64/fpu/math_private.h (TOINT_INTRINSICS): Define.
32593 (roundtoint, converttoint): Likewise.
32594 * sysdeps/ieee754/flt-32/e_expf.c: New implementation.
32595 * sysdeps/ieee754/flt-32/e_exp2f.c: New implementation.
32596 * sysdeps/ieee754/flt-32/e_exp2f_data.c: New file.
32597 * sysdeps/ieee754/flt-32/math_config.h: New file.
32598 * sysdeps/ieee754/flt-32/math_errf.c: New file.
32599 * sysdeps/ieee754/flt-32/t_exp2f.h: Remove.
32600 * sysdeps/i386/fpu/e_exp2f_data.c: New file.
32601 * sysdeps/i386/fpu/math_errf.c: New file.
32602 * sysdeps/ia64/fpu/e_exp2f_data.c: New file.
32603 * sysdeps/ia64/fpu/math_errf.c: New file.
32604 * sysdeps/m68k/m680x0/fpu/e_exp2f_data.c: New file.
32605 * sysdeps/m68k/m680x0/fpu/math_errf.c: New file.
32606
32607 2017-09-24 Samuel Thibault <samuel.thibault@ens-lyon.org>
32608
32609 * sysdeps/mach/hurd/dl-sysdep.c (check_no_hidden): New macro.
32610 (__open, __close, __libc_read, __libc_write, __writev, __libc_lseek64,
32611 __mmap, __fxstat64, __xstat64, __access, __access_noerrno, __getpid,
32612 __getcwd, __sbrk, __strtoul_internal, _exit, abort): Use check_no_hidden
32613 to make sure that these symbols are defined.
32614 * sysdeps/mach/hurd/bits/socket.h: Include <bits/wordsize.h> instead
32615 of <limits.h>
32616 (__need_NULL): Do not define.
32617 (__ss_aligntype): Use __WORDSIZE instead of ULONG_MAX to determine
32618 alignment.
32619 [!__USE_MISC] (pseudo_AF_XTP, pseudo_AF_RTIP, pseudo_AF_PIP,
32620 CMGROUP_MAX, cmsgcred): Do not define.
32621 (CMSG_FIRSTHDR, __cmsg_nxthdr): Use (struct cmsghdr *) 0 instead of
32622 NULL.
32623 * bits/socket.h: Likewise.
32624 * sysdeps/unix/clock_gettime.c (realtime_gettime, __clock_gettime): Use
32625 __gettimeofday instead of gettimeofday.
32626 * sysdeps/unix/clock_settime.c (__clock_settime): Use __settimeofday
32627 instead of settimeofday.
32628
32629 2017-09-22 Joseph Myers <joseph@codesourcery.com>
32630
32631 * sysdeps/ieee754/flt-32/s_asinhf.c: Include <libm-alias-float.h>.
32632 (asinhf): Define using libm_alias_float.
32633 * sysdeps/ieee754/flt-32/s_atanf.c: Include <libm-alias-float.h>.
32634 (atanf): Define using libm_alias_float.
32635 * sysdeps/ieee754/flt-32/s_cbrtf.c: Include <libm-alias-float.h>.
32636 (cbrtf): Define using libm_alias_float.
32637 * sysdeps/ieee754/flt-32/s_ceilf.c: Include <libm-alias-float.h>.
32638 (ceilf): Define using libm_alias_float.
32639 * sysdeps/ieee754/flt-32/s_copysignf.c: Include
32640 <libm-alias-float.h>.
32641 (copysignf): Define using libm_alias_float.
32642 * sysdeps/ieee754/flt-32/s_cosf.c: Include <libm-alias-float.h>.
32643 (cosf): Define using libm_alias_float.
32644 * sysdeps/ieee754/flt-32/s_erff.c: Include <libm-alias-float.h>.
32645 (erff): Define using libm_alias_float.
32646 (erfcf): Likewise.
32647 * sysdeps/ieee754/flt-32/s_expm1f.c: Include <libm-alias-float.h>.
32648 (expm1f): Define using libm_alias_float.
32649 * sysdeps/ieee754/flt-32/s_fabsf.c: Include <libm-alias-float.h>.
32650 (fabsf): Define using libm_alias_float.
32651 * sysdeps/ieee754/flt-32/s_floorf.c: Include <libm-alias-float.h>.
32652 (floorf): Define using libm_alias_float.
32653 * sysdeps/ieee754/flt-32/s_frexpf.c: Include <libm-alias-float.h>.
32654 (frexpf): Define using libm_alias_float.
32655 * sysdeps/ieee754/flt-32/s_fromfpf.c (fromfpf): Define using
32656 libm_alias_float.
32657 * sysdeps/ieee754/flt-32/s_fromfpf_main.c: Include
32658 <libm-alias-float.h>.
32659 * sysdeps/ieee754/flt-32/s_fromfpxf.c (fromfpxf): Define using
32660 libm_alias_float.
32661 * sysdeps/ieee754/flt-32/s_getpayloadf.c: Include
32662 <libm-alias-float.h>.
32663 (getpayloadf): Define using libm_alias_float.
32664 * sysdeps/ieee754/flt-32/s_llrintf.c: Include
32665 <libm-alias-float.h>.
32666 (llrintf): Define using libm_alias_float.
32667 * sysdeps/ieee754/flt-32/s_llroundf.c: Include
32668 <libm-alias-float.h>.
32669 (llroundf): Define using libm_alias_float.
32670 * sysdeps/ieee754/flt-32/s_logbf.c: Include <libm-alias-float.h>.
32671 (logbf): Define using libm_alias_float.
32672 * sysdeps/ieee754/flt-32/s_lrintf.c: Include <libm-alias-float.h>.
32673 (lrintf): Define using libm_alias_float.
32674 * sysdeps/ieee754/flt-32/s_lroundf.c: Include <libm-alias-float.h>.
32675 (lroundf): Define using libm_alias_float.
32676 * sysdeps/ieee754/flt-32/s_modff.c: Include <libm-alias-float.h>.
32677 (modff): Define using libm_alias_float.
32678 * sysdeps/ieee754/flt-32/s_nearbyintf.c: Include
32679 <libm-alias-float.h>.
32680 (nearbyintf): Define using libm_alias_float.
32681 * sysdeps/ieee754/flt-32/s_nextafterf.c: Include
32682 <libm-alias-float.h>.
32683 (nextafterf): Define using libm_alias_float.
32684 * sysdeps/ieee754/flt-32/s_nextupf.c: Include
32685 <libm-alias-float.h>.
32686 (nextupf): Define using libm_alias_float.
32687 * sysdeps/ieee754/flt-32/s_remquof.c: Include
32688 <libm-alias-float.h>.
32689 (remquof): Define using libm_alias_float.
32690 * sysdeps/ieee754/flt-32/s_rintf.c: Include <libm-alias-float.h>.
32691 (rintf): Define using libm_alias_float.
32692 * sysdeps/ieee754/flt-32/s_roundevenf.c: Include
32693 <libm-alias-float.h>.
32694 (roundevenf): Define using libm_alias_float.
32695 * sysdeps/ieee754/flt-32/s_roundf.c: Include <libm-alias-float.h>.
32696 (roundf): Define using libm_alias_float.
32697 * sysdeps/ieee754/flt-32/s_setpayloadf.c (setpayloadf): Define
32698 using libm_alias_float.
32699 * sysdeps/ieee754/flt-32/s_setpayloadf_main.c: Include
32700 <libm-alias-float.h>.
32701 * sysdeps/ieee754/flt-32/s_setpayloadsigf.c (setpayloadsigf):
32702 Define using libm_alias_float.
32703 * sysdeps/ieee754/flt-32/s_sincosf.c: Include
32704 <libm-alias-float.h>.
32705 (sincosf): Define using libm_alias_float.
32706 * sysdeps/ieee754/flt-32/s_sinf.c: Include <libm-alias-float.h>.
32707 (sinf): Define using libm_alias_float.
32708 * sysdeps/ieee754/flt-32/s_tanf.c: Include <libm-alias-float.h>.
32709 (tanf): Define using libm_alias_float.
32710 * sysdeps/ieee754/flt-32/s_tanhf.c: Include <libm-alias-float.h>.
32711 (tanhf): Define using libm_alias_float.
32712 * sysdeps/ieee754/flt-32/s_totalorderf.c: Include
32713 <libm-alias-float.h>.
32714 (totalorderf): Define using libm_alias_float.
32715 * sysdeps/ieee754/flt-32/s_totalordermagf.c: Include
32716 <libm-alias-float.h>.
32717 (totalordermagf): Define using libm_alias_float.
32718 * sysdeps/ieee754/flt-32/s_truncf.c: Include <libm-alias-float.h>.
32719 (truncf): Define using libm_alias_float.
32720 * sysdeps/ieee754/flt-32/s_ufromfpf.c (ufromfpf): Define using
32721 libm_alias_float.
32722 * sysdeps/ieee754/flt-32/s_ufromfpxf.c (ufromfpxf): Define using
32723 libm_alias_float.
32724
32725 2017-09-22 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
32726
32727 [BZ #22146]
32728 math/math.h: Let fpclassify use the builtin in C++ mode, even
32729 when optimazing for size.
32730
32731 2017-09-22 Joseph Myers <joseph@codesourcery.com>
32732
32733 * csu/Makefile (generated): Do not add version-info.h.
32734 (before-compile): Likewise.
32735 (all-Banner-files): Remove variable.
32736 ($(objpfx)version-info.h): Remove rule.
32737 * csu/version.c (banner): Do not include "version-info.h".
32738 * libidn/Banner: Remove.
32739 * manual/contrib.texi (Simon Josefsson): New entry.
32740
32741 2017-09-21 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
32742
32743 * sysdeps/ieee754/ldbl-128/e_lgammal_r.c (__ieee754_lgammal_r):
32744 Remove conditionals on LDBL_MANT_DIG.
32745 * sysdeps/ieee754/ldbl-128ibm/e_lgammal_r.c
32746 (__ieee754_lgammal_r): Likewise.
32747
32748 2017-09-21 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
32749
32750 * sysdeps/ieee754/ldbl-128ibm/e_expl.c: Remove definitions of
32751 _Float128 and L().
32752 * sysdeps/ieee754/ldbl-128ibm/e_j0l.c: Remove definitions of
32753 _Float128 and L(). Replace _Float128 with long double and L(x)
32754 with xL, throughout the file.
32755 * sysdeps/ieee754/ldbl-128ibm/e_j1l.c: Likewise.
32756 * sysdeps/ieee754/ldbl-128ibm/e_lgammal_r.c: Likewise.
32757 * sysdeps/ieee754/ldbl-128ibm/s_cbrtl.c: Likewise.
32758 * sysdeps/ieee754/ldbl-128ibm/t_expl.h: Likewise.
32759
32760 2017-09-21 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
32761
32762 * sysdeps/ieee754/ldbl-128ibm/e_expl.c: Include tables from
32763 sysdeps/ieee754/ldbl-128ibm.
32764 * sysdeps/ieee754/ldbl-128ibm/e_j0l.c: Copy contents from the
32765 equivalent implementation in sysdeps/ieee754/ldbl-128/ instead
32766 of including it. Keep _Float128 and L() intact. These will be
32767 reviewed by a separate patch.
32768 * sysdeps/ieee754/ldbl-128ibm/e_j1l.c: Likewise.
32769 * sysdeps/ieee754/ldbl-128ibm/e_lgammal_r.c: Likewise.
32770 * sysdeps/ieee754/ldbl-128ibm/s_cbrtl.c: Likewise.
32771 * sysdeps/ieee754/ldbl-128ibm/t_expl.h: Likewise.
32772
32773 2017-09-21 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
32774
32775 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finite.c
32776 (__finitef128): Define to __redirect___finitef128.
32777 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinf.c
32778 (__isinff128): Define to __redirect___isinff128.
32779 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan.c
32780 (__isnanf128): Define to __redirect___isnanf128.
32781
32782 2017-09-21 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
32783
32784 * sysdeps/powerpc/powerpc64le/Makefile
32785 (CFLAGS-tst-strtod-nan-locale.c): New variable.
32786 (CFLAGS-tst-wcstod-nan-locale.c): New variable.
32787
32788 2017-09-21 Paul Pluzhnikov <ppluzhnikov@google.com>
32789 Carlos O'Donell <carlos@redhat.com>
32790
32791 [BZ #22180]
32792 * stdlib/Makefile (tests): Add test-dlclose-exit-race.
32793 * stdlib/test-dlclose-exit-race.c: New file.
32794 * stdlib/test-dlclose-exit-race-helper.c: New file.
32795 * stdlib/exit.c (__run_exit_handlers): Mark slot as free.
32796
32797 2017-09-21 Joseph Myers <joseph@codesourcery.com>
32798
32799 * crypt/Banner: Remove file.
32800 * nptl/Banner: Likewise.
32801 * resolv/Banner: Likewise.
32802 * soft-fp/Banner: Likewise.
32803 * nptl/Makefile ($(objpfx)banner.h): Remove rule.
32804 ($(objpfx)version.d): Remove dependency on banner.h.
32805 ($(objpfx)version.os): Likewise.
32806 * nptl/version.c (banner): Do not include banner.h.
32807 * manual/contrib.texi: Update entries for Richard Henderson, Jakub
32808 Jelinek and BIND code.
32809
32810 2017-09-20 Paul Pluzhnikov <ppluzhnikov@google.com>
32811 Carlos O'Donell <carlos@redhat.com>
32812
32813 * support/xdlfcn.h: New file.
32814 * support/xdlfcn.c: New file.
32815 * support/Makefile (libsupport-routines): Add xdlfcn.
32816 * stdlib/tst-tls-atexit.c: Use xdlopen, xdlsym, xdlclose.
32817
32818 2017-09-20 Joseph Myers <joseph@codesourcery.com>
32819
32820 [BZ #20142]
32821 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
32822 Add s_trunc-c, s_truncf-c, s_trunc-sse4_1 and s_truncf-sse4_1.
32823 * sysdeps/x86_64/fpu/multiarch/s_trunc-c.c: New file.
32824 * sysdeps/x86_64/fpu/multiarch/s_trunc-sse4_1.S: Likewise.
32825 * sysdeps/x86_64/fpu/multiarch/s_trunc.c: Likewise.
32826 * sysdeps/x86_64/fpu/multiarch/s_truncf-c.c: Likewise.
32827 * sysdeps/x86_64/fpu/multiarch/s_truncf-sse4_1.S: Likewise.
32828 * sysdeps/x86_64/fpu/multiarch/s_truncf.c: Likewise.
32829
32830 2017-09-20 Paul Pluzhnikov <ppluzhnikov@google.com>
32831 Ricky Zhou <rickyz@google.com>
32832 Anoop V Chakkalakkal <anoop.vijayan@in.ibm.com>
32833
32834 [BZ #14333]
32835 * stdlib/cxa_atexit.c (__internal_atexit): Use __exit_funcs_lock.
32836 Remove atomics.
32837 (__new_exitfn): Fail registration when we finished at_exit processing.
32838 * stdlib/cxa_finalize.c (__cxa_finalize): Likewise.
32839 * stdlib/on_exit.c (__on_exit): Likewise.
32840 * stdlib/exit.c (__exit_funcs_done): New variable.
32841 (__run_exit_handlers): Use __exit_funcs_lock.
32842 * stdlib/exit.h (__exit_funcs_lock, __exit_funcs_done): New
32843 declarations.
32844 * stdlib/Makefile (test-atexit-race, test-quick_at_exit-race)
32845 (test-cxa_atexit-race, test-on_exit-race): New tests.
32846 * stdlib/test-atexit-race-common.c: New file.
32847 * stdlib/test-atexit-race.c: New file.
32848 * stdlib/test-at_quick_exit-race.c: New file.
32849 * stdlib/test-cxa_atexit-race.c: New file.
32850 * stdlib/test-on_exit-race.c: New file.
32851
32852 2017-09-20 Szabolcs Nagy <szabolcs.nagy@arm.com>
32853
32854 * benchtests/Makefile: Add exp2f and log2f benchmarks.
32855 * benchtests/exp2f-inputs: Copy of expf-inputs.
32856 * benchtests/log2f-inputs: Copy of logf-inputs.
32857
32858 2017-09-19 Joseph Myers <joseph@codesourcery.com>
32859
32860 * sysdeps/unix/sysv/linux/fexecve.c (fexecve) [__NR_execveat]:
32861 Explicitly take address of first element of array arguments in
32862 call to INLINE_SYSCALL.
32863
32864 2017-09-19 Andreas Schwab <schwab@suse.de>
32865
32866 [BZ #22134]
32867 * sysdeps/unix/sysv/linux/fexecve.c (fexecve) [__NR_execveat]: Try
32868 execveat first.
32869 [!__ASSUME_EXECVEAT]: Fall back to /proc if execveat is
32870 unimplemented.
32871 * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_EXECVEAT)
32872 [__LINUX_KERNEL_VERSION >= 0x031300]: Define.
32873 * sysdeps/unix/sysv/linux/alpha/kernel-features.h
32874 (__ASSUME_EXECVEAT) [__LINUX_KERNEL_VERSION < 0x040200]: Undef.
32875 * sysdeps/unix/sysv/linux/hppa/kernel-features.h
32876 (__ASSUME_EXECVEAT) [__LINUX_KERNEL_VERSION < 0x040000]: Undef.
32877 * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
32878 (__ASSUME_EXECVEAT) [__LINUX_KERNEL_VERSION < 0x040000]: Undef.
32879 * posix/Makefile (tests): Add tst-fexecve.
32880 * posix/tst-fexecve.c: New file.
32881
32882 2017-09-19 Wilco Dijkstra <wdijkstr@arm.com>
32883
32884 * benchtests/Makefile: Add logf benchmark.
32885 * benchtests/logf-inputs: Add reduced trace from wrf_r.
32886
32887 2017-09-19 Wilco Dijkstra <wdijkstr@arm.com>
32888
32889 * benchtests/Makefile: Add expf benchmark.
32890 * benchtests/expf-inputs: Add reduced trace from wrf_r.
32891
32892 2017-09-19 Wilco Dijkstra <wdijkstr@arm.com>
32893
32894 * csu/Makefile: Add -funwind-tables to libc-start.c.
32895 * debug/Makefile: Add -funwind-tables to backtrace.c.
32896 * sysdeps/aarch64/Makefile: Remove CFLAGS-backtrace.c.
32897 * sysdeps/arm/Makefile: Likewise.
32898 * sysdeps/i386/Makefile: Likewise.
32899 * sysdeps/m68k/Makefile: Likewise.
32900 * sysdeps/mips/Makefile: Likewise.
32901 * sysdeps/nios2/Makefile: Likewise.
32902 * sysdeps/sh/Makefile: Likewise.
32903 * sysdeps/sparc/Makefile: Likewise.
32904
32905 2017-09-19 Joseph Myers <joseph@codesourcery.com>
32906
32907 * benchtests/Makefile (bench-math): Add trunc and truncf.
32908 (CFLAGS-bench-trunc.c): New variable.
32909 (CFLAGS-bench-truncf.c): Likewise.
32910 * benchtests/trunc-inputs: New file.
32911 * benchtests/truncf-inputs: Likewise.
32912
32913 2017-09-19 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
32914
32915 * sysdeps/powerpc/powerpc64/power8/memset.S: Avoid misaligned stores.
32916
32917 2017-09-18 Joseph Myers <joseph@codesourcery.com>
32918
32919 * sysdeps/ieee754/ldbl-opt/w_exp10l_compat.c [LIBM_SVID_COMPAT &&
32920 !LONG_DOUBLE_COMPAT (libm, GLIBC_2_1)] (weak_alias): Undefine and
32921 redefine.
32922 [LIBM_SVID_COMPAT && !LONG_DOUBLE_COMPAT (libm, GLIBC_2_1)]
32923 (exp10l): Define as weak alias.
32924 * sysdeps/ieee754/ldbl-opt/w_remainderl_compat.c [LIBM_SVID_COMPAT
32925 && !LONG_DOUBLE_COMPAT (libm, GLIBC_2_0)] (weak_alias): Undefine
32926 and redefine.
32927 [LIBM_SVID_COMPAT && !LONG_DOUBLE_COMPAT (libm, GLIBC_2_0)]
32928 (remainderl): Define as weak alias.
32929
32930 * math/s_fmal.c: Include <libm-alias-ldouble.h>.
32931 (fmal): Define using libm_alias_ldouble.
32932 * math/w_acoshl_compat.c: Include <libm-alias-ldouble.h>.
32933 (acoshl): Define using libm_alias_ldouble.
32934 * math/w_acosl_compat.c: Include <libm-alias-ldouble.h>.
32935 (acosl): Define using libm_alias_ldouble.
32936 * math/w_asinl_compat.c: Include <libm-alias-ldouble.h>.
32937 (asinl): Define using libm_alias_ldouble.
32938 * math/w_atan2l_compat.c: Include <libm-alias-ldouble.h>.
32939 (atan2l): Define using libm_alias_ldouble.
32940 * math/w_atanhl_compat.c: Include <libm-alias-ldouble.h>.
32941 (atanhl): Define using libm_alias_ldouble.
32942 * math/w_coshl_compat.c: Include <libm-alias-ldouble.h>.
32943 (coshl): Define using libm_alias_ldouble.
32944 * math/w_exp10l_compat.c: Include <libm-alias-ldouble.h>.
32945 (exp10l): Define using libm_alias_ldouble.
32946 * math/w_exp2l_compat.c: Include <libm-alias-ldouble.h>.
32947 (exp2l): Define using libm_alias_ldouble.
32948 * math/w_expl_compat.c: Include <libm-alias-ldouble.h>.
32949 (expl): Define using libm_alias_ldouble.
32950 * math/w_fmodl_compat.c: Include <libm-alias-ldouble.h>.
32951 (fmodl): Define using libm_alias_ldouble.
32952 * math/w_hypotl_compat.c: Include <libm-alias-ldouble.h>.
32953 (hypotl): Define using libm_alias_ldouble.
32954 * math/w_j0l_compat.c: Include <libm-alias-ldouble.h>.
32955 (j0l): Define using libm_alias_ldouble.
32956 (y0l): Likewise.
32957 * math/w_j1l_compat.c: Include <libm-alias-ldouble.h>.
32958 (j1l): Define using libm_alias_ldouble.
32959 (y1l): Likewise.
32960 * math/w_jnl_compat.c: Include <libm-alias-ldouble.h>.
32961 (jnl): Define using libm_alias_ldouble.
32962 (ynl): Likewise.
32963 * math/w_log10l_compat.c: Include <libm-alias-ldouble.h>.
32964 (log10l): Define using libm_alias_ldouble.
32965 * math/w_log2l_compat.c: Include <libm-alias-ldouble.h>.
32966 (log2l): Define using libm_alias_ldouble.
32967 * math/w_logl_compat.c: Include <libm-alias-ldouble.h>.
32968 (logl): Define using libm_alias_ldouble.
32969 * math/w_powl_compat.c: Include <libm-alias-ldouble.h>.
32970 (powl): Define using libm_alias_ldouble.
32971 * math/w_remainderl_compat.c: Include <libm-alias-ldouble.h>.
32972 (remainderl): Define using libm_alias_ldouble.
32973 * math/w_sinhl_compat.c: Include <libm-alias-ldouble.h>.
32974 (sinhl): Define using libm_alias_ldouble.
32975 * math/w_sqrtl_compat.c: Include <libm-alias-ldouble.h>.
32976 (sqrtl): Define using libm_alias_ldouble.
32977 * math/w_tgammal_compat.c: Include <libm-alias-ldouble.h>.
32978 (tgammal): Define using libm_alias_ldouble.
32979 * sysdeps/ieee754/ldbl-opt/w_exp10l_compat.c [LIBM_SVID_COMPAT]
32980 (exp10l): Do not use long_double_symbol here.
32981 * sysdeps/ieee754/ldbl-opt/w_remainderl_compat.c
32982 [LIBM_SVID_COMPAT] (remainderl): Likewise.
32983 * sysdeps/ieee754/ldbl-opt/s_fmal.c: Remove.
32984 * sysdeps/ieee754/ldbl-opt/w_acoshl_compat.c: Likewise.
32985 * sysdeps/ieee754/ldbl-opt/w_acosl_compat.c: Likewise.
32986 * sysdeps/ieee754/ldbl-opt/w_asinl_compat.c: Likewise.
32987 * sysdeps/ieee754/ldbl-opt/w_atan2l_compat.c: Likewise.
32988 * sysdeps/ieee754/ldbl-opt/w_atanhl_compat.c: Likewise.
32989 * sysdeps/ieee754/ldbl-opt/w_coshl_compat.c: Likewise.
32990 * sysdeps/ieee754/ldbl-opt/w_expl_compat.c: Likewise.
32991 * sysdeps/ieee754/ldbl-opt/w_fmodl_compat.c: Likewise.
32992 * sysdeps/ieee754/ldbl-opt/w_hypotl_compat.c: Likewise.
32993 * sysdeps/ieee754/ldbl-opt/w_j0l_compat.c: Likewise.
32994 * sysdeps/ieee754/ldbl-opt/w_j1l_compat.c: Likewise.
32995 * sysdeps/ieee754/ldbl-opt/w_jnl_compat.c: Likewise.
32996 * sysdeps/ieee754/ldbl-opt/w_log10l_compat.c: Likewise.
32997 * sysdeps/ieee754/ldbl-opt/w_log2l_compat.c: Likewise.
32998 * sysdeps/ieee754/ldbl-opt/w_logl_compat.c: Likewise.
32999 * sysdeps/ieee754/ldbl-opt/w_powl_compat.c: Likewise.
33000 * sysdeps/ieee754/ldbl-opt/w_sinhl_compat.c: Likewise.
33001 * sysdeps/ieee754/ldbl-opt/w_sqrtl_compat.c: Likewise.
33002 * sysdeps/ieee754/ldbl-opt/w_tgammal_compat.c: Likewise.
33003
33004 2017-09-18 Wang Boshi <wangboshi@huawei.com> (tiny change)
33005
33006 * sysdeps/aarch64/start.S: Use MOVL instead of literal pools.
33007 * sysdeps/aarch64/sysdep.h (MOVL): Add MOVL macro.
33008
33009 2017-09-17 Samuel Thibault <samuel.thibault@ens-lyon.org>
33010
33011 * io/read.c (read): Add libc_hidden_weak.
33012 * sysdeps/mach/hurd/read.c (read): Likewise.
33013 * io/write.c (write): Likewise.
33014 * sysdeps/mach/hurd/write.c (write): Likewise.
33015 * io/pread64.c (__pread64): Likewise.
33016 * sysdeps/mach/hurd/pread64.c (__pread64): Likewise.
33017 * posix/pread64.c (__pread64): Add libc_hidden_def.
33018
33019 2017-09-16 Siddhesh Poyarekar <siddhesh@sourceware.org>
33020
33021 * benchtests/scripts/compare_strings.py: New option -g.
33022 (draw_graph): Print a message that a graph is being generated.
33023 (process_results): Generate graph only if -g is passed.
33024 (main): Process option -g.
33025
33026 * benchtests/scripts/compare_strings.py (process_results):
33027 Better spacing for output.
33028
33029 * benchtests/scripts/compare_strings.py: Use argparse.
33030 * benchtests/README: Document existence of compare_strings.py.
33031
33032 2017-09-15 Joseph Myers <joseph@codesourcery.com>
33033
33034 * math/s_fma.c: Include <libm-alias-double.h>.
33035 (fma): Define using libm_alias_double.
33036 * math/s_nextafter.c: Include <libm-alias-double.h>.
33037 (nextafter): Define using libm_alias_double.
33038 * math/w_acos_compat.c: Include <libm-alias-double.h>.
33039 (acos): Define using libm_alias_double.
33040 * math/w_acosh_compat.c: Include <libm-alias-double.h>.
33041 (aocsh): Define using libm_alias_double.
33042 * math/w_asin_compat.c: Include <libm-alias-double.h>.
33043 (asin): Define using libm_alias_double.
33044 * math/w_atan2_compat.c: Include <libm-alias-double.h>.
33045 (atan2): Define using libm_alias_double.
33046 * math/w_atanh_compat.c: Include <libm-alias-double.h>.
33047 (atanh): Define using libm_alias_double.
33048 * math/w_cosh_compat.c: Include <libm-alias-double.h>.
33049 (cosh): Define using libm_alias_double.
33050 * math/w_exp10_compat.c: Include <libm-alias-double.h>.
33051 (exp10): Define using libm_alias_double.
33052 * math/w_exp2_compat.c: Include <libm-alias-double.h>.
33053 (exp2): Define using libm_alias_double.
33054 * math/w_exp_compat.c: Include <libm-alias-double.h>.
33055 (exp): Define using libm_alias_double.
33056 * math/w_fmod_compat.c: Include <libm-alias-double.h>.
33057 (fmod): Define using libm_alias_double.
33058 * math/w_hypot_compat.c: Include <libm-alias-double.h>.
33059 (hypot): Define using libm_alias_double.
33060 * math/w_j0_compat.c: Include <libm-alias-double.h>.
33061 (j0): Define using libm_alias_double.
33062 (y0): Likewise.
33063 * math/w_j1_compat.c: Include <libm-alias-double.h>.
33064 (j1): Define using libm_alias_double.
33065 (y1): Likewise.
33066 * math/w_jn_compat.c: Include <libm-alias-double.h>.
33067 (jn): Define using libm_alias_double.
33068 (yn): Likewise.
33069 * math/w_log10_compat.c: Include <libm-alias-double.h>.
33070 (log10): Define using libm_alias_double.
33071 * math/w_log2_compat.c: Include <libm-alias-double.h>.
33072 (log2): Define using libm_alias_double.
33073 * math/w_log_compat.c: Include <libm-alias-double.h>.
33074 (log): Define using libm_alias_double.
33075 * math/w_pow_compat.c: Include <libm-alias-double.h>.
33076 (pow): Define using libm_alias_double.
33077 * math/w_remainder_compat.c: Include <libm-alias-double.h>.
33078 (remainder): Define using libm_alias_double.
33079 * math/w_sinh_compat.c: Include <libm-alias-double.h>.
33080 (sinh): Define using libm_alias_double.
33081 * math/w_sqrt_compat.c: Include <libm-alias-double.h>.
33082 (sqrt): Define using libm_alias_double.
33083 * math/w_tgamma_compat.c: Include <libm-alias-double.h>.
33084 (tgamma): Define using libm_alias_double.
33085 * sysdeps/ieee754/ldbl-opt/s_nextafter.c [LONG_DOUBLE_COMPAT(libm,
33086 GLIBC_2_0)] (nextafterl): Do not define compat symbol here.
33087 * sysdeps/ieee754/ldbl-opt/w_exp10_compat.c
33088 [LONG_DOUBLE_COMPAT(libm, GLIBC_2_1)] (exp10l): Likewise.
33089 * sysdeps/ieee754/ldbl-opt/w_remainder_compat.c
33090 [LONG_DOUBLE_COMPAT(libm, GLIBC_2_0)] (remainderl): Likewise.
33091 * sysdeps/ieee754/ldbl-opt/w_acos_compat.c: Remove.
33092 * sysdeps/ieee754/ldbl-opt/w_acosh_compat.c: Likewise.
33093 * sysdeps/ieee754/ldbl-opt/w_asin_compat.c: Likewise.
33094 * sysdeps/ieee754/ldbl-opt/w_atan2_compat.c: Likewise.
33095 * sysdeps/ieee754/ldbl-opt/w_atanh_compat.c: Likewise.
33096 * sysdeps/ieee754/ldbl-opt/w_cosh_compat.c: Likewise.
33097 * sysdeps/ieee754/ldbl-opt/w_exp_compat.c: Likewise.
33098 * sysdeps/ieee754/ldbl-opt/w_fmod_compat.c: Likewise.
33099 * sysdeps/ieee754/ldbl-opt/w_hypot_compat.c: Likewise.
33100 * sysdeps/ieee754/ldbl-opt/w_j0_compat.c: Likewise.
33101 * sysdeps/ieee754/ldbl-opt/w_j1_compat.c: Likewise.
33102 * sysdeps/ieee754/ldbl-opt/w_jn_compat.c: Likewise.
33103 * sysdeps/ieee754/ldbl-opt/w_log10_compat.c: Likewise.
33104 * sysdeps/ieee754/ldbl-opt/w_log2_compat.c: Likewise.
33105 * sysdeps/ieee754/ldbl-opt/w_log_compat.c: Likewise.
33106 * sysdeps/ieee754/ldbl-opt/w_pow_compat.c: Likewise.
33107 * sysdeps/ieee754/ldbl-opt/w_sinh_compat.c: Likewise.
33108 * sysdeps/ieee754/ldbl-opt/w_sqrt_compat.c: Likewise.
33109 * sysdeps/ieee754/ldbl-opt/w_tgamma_compat.c: Likewise.
33110
33111 * math/e_acoshl.c: Remove.
33112 * math/e_acosl.c: Likewise.
33113 * math/e_asinl.c: Likewise.
33114 * math/e_atan2l.c: Likewise.
33115 * math/e_atanhl.c: Likewise.
33116 * math/e_coshl.c: Likewise.
33117 * math/e_expl.c: Likewise.
33118 * math/e_fmodl.c: Likewise.
33119 * math/e_gammal_r.c: Likewise.
33120 * math/e_hypotl.c: Likewise.
33121 * math/e_j0l.c: Likewise.
33122 * math/e_j1l.c: Likewise.
33123 * math/e_jnl.c: Likewise.
33124 * math/e_lgammal_r.c: Likewise.
33125 * math/e_log10l.c: Likewise.
33126 * math/e_log2l.c: Likewise.
33127 * math/e_logl.c: Likewise.
33128 * math/e_powl.c: Likewise.
33129 * math/e_rem_pio2l.c: Likewise.
33130 * math/e_sinhl.c: Likewise.
33131 * math/e_sqrtf128.c: Likewise.
33132 * math/e_sqrtl.c: Likewise.
33133 * math/k_cosl.c: Likewise.
33134 * math/k_sinl.c: Likewise.
33135 * math/k_tanl.c: Likewise.
33136 * math/s_asinhl.c: Likewise.
33137 * math/s_atanl.c: Likewise.
33138 * math/s_cbrtl.c: Likewise.
33139 * math/s_erfl.c: Likewise.
33140 * math/s_expm1l.c: Likewise.
33141 * math/s_log1pl.c: Likewise.
33142 * math/s_tanhl.c: Likewise.
33143
33144 2017-09-15 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
33145
33146 [BZ #21745]
33147 * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile:
33148 [$(subdir) = math] (sysdep_calls): New variable. Has the
33149 previous contents of sysdep_routines, but re-sorted..
33150 [$(subdir) = math] (sysdep_routines): Re-use the contents from
33151 sysdep_calls.
33152 [$(subdir) = math] (libm-sysdep_routines): Remove the functions
33153 defined in sysdep_calls and replace by the respective m_* names.
33154 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-ppc64.S:
33155 (compat_symbol): Undefine to avoid duplicated compat symbols in
33156 libc.
33157
33158 2017-09-15 Joseph Myers <joseph@codesourcery.com>
33159
33160 * math/s_fmaf.c: Include <libm-alias-float.h>.
33161 (fmaf): Define using libm_alias_float.
33162 * math/w_acosf_compat.c: Include <libm-alias-float.h>.
33163 (acosf): Define using libm_alias_float.
33164 * math/w_acoshf_compat.c: Include <libm-alias-float.h>.
33165 (acoshf): Define using libm_alias_float.
33166 * math/w_asinf_compat.c: Include <libm-alias-float.h>.
33167 (asinf): Define using libm_alias_float.
33168 * math/w_atan2f_compat.c: Include <libm-alias-float.h>.
33169 (atan2f): Define using libm_alias_float.
33170 * math/w_atanhf_compat.c: Include <libm-alias-float.h>.
33171 (atanhf): Define using libm_alias_float.
33172 * math/w_coshf_compat.c: Include <libm-alias-float.h>.
33173 (coshf): Define using libm_alias_float.
33174 * math/w_exp10f_compat.c: Include <libm-alias-float.h>.
33175 (exp10f): Define using libm_alias_float.
33176 * math/w_fmodf_compat.c: Include <libm-alias-float.h>.
33177 (fmodf): Define using libm_alias_float.
33178 * math/w_hypotf_compat.c: Include <libm-alias-float.h>.
33179 (hypotf): Define using libm_alias_float.
33180 * math/w_j0f_compat.c: Include <libm-alias-float.h>.
33181 (j0f): Define using libm_alias_float.
33182 (y0f): Likewise.
33183 * math/w_j1f_compat.c: Include <libm-alias-float.h>.
33184 (j1f): Define using libm_alias_float.
33185 (y1f): Likewise.
33186 * math/w_jnf_compat.c: Include <libm-alias-float.h>.
33187 (jnf): Define using libm_alias_float.
33188 (ynf): Likewise.
33189 * math/w_log10f_compat.c: Include <libm-alias-float.h>.
33190 (log10f): Define using libm_alias_float.
33191 * math/w_log2f_compat.c: Include <libm-alias-float.h>.
33192 (log2f): Define using libm_alias_float.
33193 * math/w_logf_compat.c: Include <libm-alias-float.h>.
33194 (logf): Define using libm_alias_float.
33195 * math/w_powf_compat.c: Include <libm-alias-float.h>.
33196 (powf): Define using libm_alias_float.
33197 * math/w_remainderf_compat.c: Include <libm-alias-float.h>.
33198 (remainderf): Define using libm_alias_float.
33199 * math/w_sinhf_compat.c: Include <libm-alias-float.h>.
33200 (sinhf): Define using libm_alias_float.
33201 * math/w_sqrtf_compat.c: Include <libm-alias-float.h>.
33202 (sqrtf): Define using libm_alias_float.
33203 * math/w_tgammaf_compat.c: Include <libm-alias-float.h>.
33204 (tgammaf): Define using libm_alias_float.
33205
33206 2017-09-14 Joseph Myers <joseph@codesourcery.com>
33207
33208 * include/math.h (roundeven): Change hidden_proto call to
33209 __roundeven.
33210 * math/w_j0_compat.c (j0): Rename to __j0 and define as weak
33211 alias.
33212 [NO_LONG_DOUBLE] (__j0l): New strong alias.
33213 (y0): Rename to __y0 and define as weak alias.
33214 [NO_LONG_DOUBLE] (__y0l): New strong alias.
33215 * math/w_j0f_compat.c (j0f): Rename to __j0f and define as weak
33216 alias.
33217 (y0f): Rename to __y0f and define as weak alias.
33218 * math/w_j1_compat.c (j1): Rename to __j1 and define as weak
33219 alias.
33220 [NO_LONG_DOUBLE] (__j1l): New strong alias.
33221 (y1): Rename to __y1 and define as weak alias.
33222 [NO_LONG_DOUBLE] (__y1l): New strong alias.
33223 * math/w_j1f_compat.c (j1f): Rename to __j1f and define as weak
33224 alias.
33225 (y1f): Rename to __y1f and define as weak alias.
33226 * math/w_jn_compat.c (jn): Rename to __jn and define as weak
33227 alias.
33228 [NO_LONG_DOUBLE] (__jnl): New strong alias.
33229 (yn): Rename to __yn and define as weak alias.
33230 [NO_LONG_DOUBLE] (__ynl): New strong alias.
33231 * math/w_jnf_compat.c (jnf): Rename to __jnf and define as weak
33232 alias.
33233 (ynf): Rename to __ynf and define as weak alias.
33234 * sysdeps/ieee754/dbl-64/s_fromfp.c (FUNC): Define to __fromfp.
33235 (fromfp): Define as weak alias.
33236 [NO_LONG_DOUBLE] (__fromfpl): New strong alias.
33237 * sysdeps/ieee754/dbl-64/s_fromfpx.c (FUNC): Define to __fromfpx.
33238 (fromfpx): Define as weak alias.
33239 [NO_LONG_DOUBLE] (__fromfpxl): New strong alias.
33240 * sysdeps/ieee754/dbl-64/s_getpayload.c (getpayload): Rename to
33241 __getpayload and define as weak alias.
33242 [NO_LONG_DOUBLE] (__getpayloadl): New strong alias.
33243 * sysdeps/ieee754/dbl-64/s_roundeven.c (roundeven): Rename to
33244 __roundeven and define as weak alias.
33245 [NO_LONG_DOUBLE] (__roundevenl): New strong alias.
33246 * sysdeps/ieee754/dbl-64/s_setpayload.c (FUNC): Define to
33247 __setpayload.
33248 (setpayload): Define as weak alias.
33249 [NO_LONG_DOUBLE] (__setpayloadl): New strong alias.
33250 * sysdeps/ieee754/dbl-64/s_setpayloadsig.c (FUNC): Define to
33251 __setpayloadsig.
33252 (setpayloadsig): Define as weak alias.
33253 [NO_LONG_DOUBLE] (__setpayloadsigl): New strong alias.
33254 * sysdeps/ieee754/dbl-64/s_totalorder.c (totalorder): Rename to
33255 __totalorder and define as weak alias.
33256 [NO_LONG_DOUBLE] (__totalorderl): New strong alias.
33257 * sysdeps/ieee754/dbl-64/s_totalordermag.c (totalordermag): Rename
33258 to __totalordermag and define as weak alias.
33259 [NO_LONG_DOUBLE] (__totalordermagl): New strong alias.
33260 * sysdeps/ieee754/dbl-64/s_ufromfp.c (FUNC): Define to __ufromfp.
33261 (ufromfp): Define as weak alias.
33262 [NO_LONG_DOUBLE] (__ufromfpl): New strong alias.
33263 * sysdeps/ieee754/dbl-64/s_ufromfpx.c (FUNC): Define to
33264 __ufromfpx.
33265 (ufromfpx): Define as weak alias.
33266 [NO_LONG_DOUBLE] (__ufromfpxl): New strong alias.
33267 * sysdeps/ieee754/dbl-64/wordsize-64/s_getpayload.c (getpayload):
33268 Rename to __getpayload and define as weak alias.
33269 [NO_LONG_DOUBLE] (__getpayloadl): New strong alias.
33270 * sysdeps/ieee754/dbl-64/wordsize-64/s_roundeven.c (roundeven):
33271 Rename to __roundeven and define as weak alias.
33272 [NO_LONG_DOUBLE] (__roundevenl): New strong alias.
33273 * sysdeps/ieee754/dbl-64/wordsize-64/s_totalorder.c (totalorder):
33274 Rename to __totalorder and define as weak alias.
33275 [NO_LONG_DOUBLE] (__totalorderl): New strong alias.
33276 * sysdeps/ieee754/dbl-64/wordsize-64/s_totalordermag.c
33277 (totalordermag): Rename to __totalordermag and define as weak
33278 alias.
33279 [NO_LONG_DOUBLE] (__totalordermagl): New strong alias.
33280 * sysdeps/ieee754/float128/float128_private.h (__getpayloadl): New
33281 macro.
33282 (__roundevenl): Likewise.
33283 (__totalorderl): Likewise.
33284 (__totalordermagl): Likewise
33285 * sysdeps/ieee754/float128/s_fromfpf128.c (FUNC): Define to
33286 __fromfpf128.
33287 (fromfpf128): Define as weak alias.
33288 * sysdeps/ieee754/float128/s_fromfpxf128.c (FUNC): Define to
33289 __fromfpxf128.
33290 (fromfpxf128): Define as weak alias.
33291 * sysdeps/ieee754/float128/s_setpayloadf128.c (FUNC): Define to
33292 __setpayloadf128.
33293 (setpayloadf128): Define as weak alias.
33294 * sysdeps/ieee754/float128/s_setpayloadsigf128.c (FUNC): Define to
33295 __setpayloadsigf128.
33296 (setpayloadsigf128): Define as weak alias.
33297 * sysdeps/ieee754/float128/s_ufromfpf128.c (FUNC): Define to
33298 __ufromfpf128.
33299 (ufromfpf128): Define as weak alias.
33300 * sysdeps/ieee754/float128/s_ufromfpxf128.c (FUNC): Define to
33301 __ufromfpxf128.
33302 (ufromfpxf128): Define as weak alias.
33303 * sysdeps/ieee754/flt-32/s_fromfpf.c (FUNC): Define to __fromfpf.
33304 (fromfpf): Define as weak alias.
33305 * sysdeps/ieee754/flt-32/s_fromfpxf.c (FUNC): Define to
33306 __fromfpxf.
33307 (fromfpxf): Define as weak alias.
33308 * sysdeps/ieee754/flt-32/s_getpayloadf.c (getpayloadf): Rename to
33309 __getpayloadf and define as weak alias.
33310 * sysdeps/ieee754/flt-32/s_roundevenf.c (roundevenf): Rename to
33311 __roundevenf and define as weak alias.
33312 * sysdeps/ieee754/flt-32/s_setpayloadf.c (FUNC): Define to
33313 __setpayloadf.
33314 (setpayloadf): Define as weak alias.
33315 * sysdeps/ieee754/flt-32/s_setpayloadsigf.c (FUNC): Define to
33316 __setpayloadsigf.
33317 (setpayloadsigf): Define as weak alias.
33318 * sysdeps/ieee754/flt-32/s_totalorderf.c (totalorderf): Rename to
33319 __totalorderf and define as weak alias.
33320 * sysdeps/ieee754/flt-32/s_totalordermagf.c (totalordermagf):
33321 Rename to __totalordermagf and define as weak alias.
33322 * sysdeps/ieee754/flt-32/s_ufromfpf.c (FUNC): Define to
33323 __ufromfpf.
33324 (ufromfpf): Define as weak alias.
33325 * sysdeps/ieee754/flt-32/s_ufromfpxf.c (FUNC): Define to
33326 __ufromfpxf.
33327 (ufromfpxf): Define as weak alias.
33328 * sysdeps/ieee754/ldbl-128/s_fromfpl.c (FUNC): Define to
33329 __fromfpl.
33330 (fromfpl): Define as weak alias.
33331 * sysdeps/ieee754/ldbl-128/s_fromfpxl.c (FUNC): Define to
33332 __fromfpxl.
33333 (fromfpxl): Define as weak alias.
33334 * sysdeps/ieee754/ldbl-128/s_getpayloadl.c (getpayloadl): Rename
33335 to __getpayloadl and define as weak alias.
33336 * sysdeps/ieee754/ldbl-128/s_roundevenl.c (roundevenl): Rename to
33337 __roundevenl and define as weak alias.
33338 * sysdeps/ieee754/ldbl-128/s_setpayloadl.c (FUNC): Define to
33339 __setpayloadl.
33340 (setpayloadl): Define as weak alias.
33341 * sysdeps/ieee754/ldbl-128/s_setpayloadsigl.c (FUNC): Define to
33342 __setpayloadsigl.
33343 (setpayloadsigl): Define as weak alias.
33344 * sysdeps/ieee754/ldbl-128/s_totalorderl.c (totalorderl): Rename
33345 to __totalorderl and define as weak alias.
33346 * sysdeps/ieee754/ldbl-128/s_totalordermagl.c (totalordermagl):
33347 Rename to __totalordermagl and define as weak alias.
33348 * sysdeps/ieee754/ldbl-128/s_ufromfpl.c (FUNC): Define to
33349 __ufromfpl.
33350 (ufromfpl): Define as weak alias.
33351 * sysdeps/ieee754/ldbl-128/s_ufromfpxl.c (FUNC): Define to
33352 __ufromfpxl.
33353 (ufromfpxl): Define as weak alias.
33354 * sysdeps/ieee754/ldbl-128ibm/s_fromfpl.c (FUNC): Define to
33355 __fromfpl.
33356 (fromfpl): Define as weak alias.
33357 * sysdeps/ieee754/ldbl-128ibm/s_fromfpxl.c (FUNC): Define to
33358 __fromfpxl.
33359 (fromfpxl): Define as weak alias.
33360 * sysdeps/ieee754/ldbl-128ibm/s_getpayloadl.c (getpayloadl):
33361 Rename to __getpayloadl and define as weak alias.
33362 * sysdeps/ieee754/ldbl-128ibm/s_roundevenl.c (roundevenl): Rename
33363 to __roundevenl and define as weak alias. Call __roundeven
33364 instead of roundeven.
33365 * sysdeps/ieee754/ldbl-128ibm/s_setpayloadl.c (FUNC): Define to
33366 __setpayloadl.
33367 (setpayloadl): Define as weak alias.
33368 * sysdeps/ieee754/ldbl-128ibm/s_setpayloadsigl.c (FUNC): Define to
33369 __setpayloadsigl.
33370 (setpayloadsigl): Define as weak alias.
33371 * sysdeps/ieee754/ldbl-128ibm/s_totalorderl.c (totalorderl):
33372 Rename to __totalorderl and define as weak alias.
33373 * sysdeps/ieee754/ldbl-128ibm/s_totalordermagl.c (totalordermagl):
33374 Rename to __totalordermagl and define as weak alias.
33375 * sysdeps/ieee754/ldbl-128ibm/s_ufromfpl.c (FUNC): Define to
33376 __ufromfpl.
33377 (ufromfpl): Define as weak alias.
33378 * sysdeps/ieee754/ldbl-128ibm/s_ufromfpxl.c (FUNC): Define to
33379 __ufromfpxl.
33380 (ufromfpxl): Define as weak alias.
33381 * sysdeps/ieee754/ldbl-96/s_fromfpl.c (FUNC): Define to
33382 __fromfpl.
33383 (fromfpl): Define as weak alias.
33384 * sysdeps/ieee754/ldbl-96/s_fromfpxl.c (FUNC): Define to
33385 __fromfpxl.
33386 (fromfpxl): Define as weak alias.
33387 * sysdeps/ieee754/ldbl-96/s_getpayloadl.c (getpayloadl): Rename to
33388 __getpayloadl and define as weak alias.
33389 * sysdeps/ieee754/ldbl-96/s_roundevenl.c (roundevenl): Rename to
33390 __roundevenl and define as weak alias.
33391 * sysdeps/ieee754/ldbl-96/s_setpayloadl.c (FUNC): Define to
33392 __setpayloadl.
33393 (setpayloadl): Define as weak alias.
33394 * sysdeps/ieee754/ldbl-96/s_setpayloadsigl.c (FUNC): Define to
33395 __setpayloadsigl.
33396 (setpayloadsigl): Define as weak alias.
33397 * sysdeps/ieee754/ldbl-96/s_totalorderl.c (totalorderl): Rename to
33398 __totalorderl and define as weak alias.
33399 * sysdeps/ieee754/ldbl-96/s_totalordermagl.c (totalordermagl):
33400 Rename to __totalordermagl and define as weak alias.
33401 * sysdeps/ieee754/ldbl-96/s_ufromfpl.c (FUNC): Define to
33402 __ufromfpl.
33403 (ufromfpl): Define as weak alias.
33404 * sysdeps/ieee754/ldbl-96/s_ufromfpxl.c (FUNC): Define to
33405 __ufromfpxl.
33406 (ufromfpxl): Define as weak alias.
33407
33408 2017-09-14 Siddhesh Poyarekar <siddhesh@sourceware.org>
33409
33410 * benchtests/bench-string.h (realloc_bufs): New function.
33411 (test_init): Call it.
33412 * benchtests/bench-memset-large.c (do_test): Likewise.
33413 * benchtests/bench-memset.c (do_test): Likewise.
33414
33415 * benchtests/bench-memset-large.c: Print output in JSON
33416 format.
33417 * benchtests/bench-memset.c: Likewise.
33418
33419 2017-09-14 Mike FABIAN <mfabian@redhat.com>
33420
33421 [BZ #21084]
33422 * benchtests/strcoll-inputs/filelist#en_US.UTF-8: Add IBM858 and ibm858.c.
33423 * iconvdata/Makefile: Add IBM858.
33424 * iconvdata/gconv-modules: Likewise.
33425 * iconvdata/tst-tables.sh: Likewise.
33426 * iconvdata/ibm858.c: New file.
33427 * localedata/charmaps/IBM858: Likewise.
33428
33429 2017-09-14 Akhilesh Kumar <akhilesh.k@samsung.com>
33430
33431 [BZ #22023]
33432 * locales/niu_NZ (LC_TIME): copy "niu_NU".
33433 * locales/niu_NZ (LC_MESSAGES): copy "niu_NU".
33434
33435 2017-09-14 Mike FABIAN <mfabian@redhat.com>
33436
33437 [BZ #22112]
33438 * localedata/locales/az_AZ(LC_TELEPHONE): Fix int_select
33439 and add tel_int_fmt.
33440
33441 2017-09-14 Joseph Myers <joseph@codesourcery.com>
33442
33443 * sysdeps/generic/libm-alias-float128.h: New file.
33444 * sysdeps/generic/math-type-macros-float128.h: Include
33445 <libm-alias-float128.h>.
33446 [!declare_mgen_alias] (declare_mgen_alias): Define macro.
33447
33448 2017-09-13 Joseph Myers <joseph@codesourcery.com>
33449
33450 * sysdeps/generic/libm-alias-ldouble.h: New file.
33451 * sysdeps/ieee754/ldbl-opt/libm-alias-ldouble.h: Likewise.
33452 * sysdeps/ieee754/ldbl-opt/math-type-macros-ldouble.h: Remove.
33453 * sysdeps/generic/math-type-macros-ldouble.h: Include
33454 <libm-alias-ldouble.h>.
33455 [!declare_mgen_alias] (declare_mgen_alias): Define to use
33456 libm_alias_ldouble.
33457
33458 2017-09-13 Szabolcs Nagy <szabolcs.nagy@arm.com>
33459
33460 * sysdeps/ieee754/dbl-64/w_exp_compat.c: Move to...
33461 * math/w_exp_compat.c: ... here.
33462 * sysdeps/ieee754/flt-32/w_expf_compat.c: Move to...
33463 * math/w_expf_compat.c: ... here.
33464 * sysdeps/ieee754/ldbl-128/w_expl_compat.c: Move to...
33465 * math/w_expl_compat.c: ... here.
33466 * sysdeps/ieee754/ldbl-128ibm/w_expl_compat.c: Remove.
33467 * sysdeps/ieee754/ldbl-96/w_expl_compat.c: Remove.
33468 * sysdeps/ieee754/ldbl-opt/w_exp_compat.c: Use the new path.
33469 * sysdeps/ieee754/ldbl-opt/w_expl_compat.c: Likewise.
33470
33471 2017-09-13 Joseph Myers <joseph@codesourcery.com>
33472
33473 * math/w_scalbln_template.c (strong_alias): Do not undefine and
33474 redefine.
33475 * sysdeps/ieee754/ldbl-opt/s_ldexp.c (declare_mgen_alias): Remove
33476 macro.
33477 (ldexpl): Only define as compat symbol for libc, not libm.
33478 (scalbnl): Define as compat symbol for libc here.
33479 * sysdeps/ieee754/ldbl-opt/s_ldexpl.c (declare_mgen_alias): Only
33480 define for [IS_IN (libc)].
33481 (__ldexpl_2): Remove alias.
33482 (ldexpl): Only define with long_double_symbol if [IS_IN (libc)].
33483 (scalbnl): Likewise. Use __wrap_scalbnl not __ldexpl_2 as base
33484 name in long_double_symbol call.
33485 * sysdeps/ieee754/ldbl-opt/s_log1p.c: Remove file.
33486 * sysdeps/ieee754/ldbl-opt/s_scalbln.c: Likewise.
33487 * sysdeps/ieee754/ldbl-opt/s_scalbn.c: Likewise.
33488 * sysdeps/ieee754/ldbl-opt/w_log1p.c: Likewise.
33489 * sysdeps/ieee754/ldbl-opt/w_scalbln.c (declare_mgen_alias):
33490 Remove macro.
33491 [IS_IN (libc) && LONG_DOUBLE_COMPAT (libc, GLIBC_2_1)] (scalblnl):
33492 Define as compat symbol.
33493
33494 2017-09-13 Adhemerval Zanella <adhemerval.zanella@linaro.org>
33495
33496 * sysdeps/unix/sysv/linux/s390/s390-32/oldglob.c: New file.
33497 * sysdeps/unix/sysv/linux/alpha/Makefile
33498 [$(subdir) = csu] (sysdep_routines): Remove rule.
33499
33500 2017-09-13 Joseph Myers <joseph@codesourcery.com>
33501
33502 * sysdeps/generic/libm-alias-double.h: New file.
33503 * sysdeps/ieee754/ldbl-opt/libm-alias-double.h: Likewise.
33504 * sysdeps/generic/math-type-macros-double.h: Include
33505 <libm-alias-double.h>.
33506 [declare_mgen_alias] (declare_mgen_alias): Define to use
33507 libm_alias_double.
33508 * sysdeps/generic/math-type-macros.h [!M_LIBM_NEED_COMPAT]
33509 (M_LIBM_NEED_COMPAT): Remove macro.
33510 [!M_LIBM_NEED_COMPAT] (declare_mgen_libm_compat): Likewise.
33511 * sysdeps/ieee754/ldbl-opt/math-type-macros-double.h: Remove.
33512 * math/cabs_template.c [M_LIBM_NEED_COMPAT]: Remove conditional
33513 code.
33514 * math/carg_template.c [M_LIBM_NEED_COMPAT]: Likewise.
33515 * math/cimag_template.c [M_LIBM_NEED_COMPAT]: Likewise.
33516 * math/conj_template.c [M_LIBM_NEED_COMPAT]: Likewise.
33517 * math/creal_template.c [M_LIBM_NEED_COMPAT]: Likewise.
33518 * math/s_cacos_template.c [M_LIBM_NEED_COMPAT]: Likewise.
33519 * math/s_cacosh_template.c [M_LIBM_NEED_COMPAT]: Likewise.
33520 * math/s_casin_template.c [M_LIBM_NEED_COMPAT]: Likewise.
33521 * math/s_casinh_template.c [M_LIBM_NEED_COMPAT]: Likewise.
33522 * math/s_catan_template.c [M_LIBM_NEED_COMPAT]: Likewise.
33523 * math/s_catanh_template.c [M_LIBM_NEED_COMPAT]: Likewise.
33524 * math/s_ccos_template.c [M_LIBM_NEED_COMPAT]: Likewise.
33525 * math/s_ccosh_template.c [M_LIBM_NEED_COMPAT]: Likewise.
33526 * math/s_cexp_template.c [M_LIBM_NEED_COMPAT]: Likewise.
33527 * math/s_clog10_template.c [M_LIBM_NEED_COMPAT]: Likewise.
33528 * math/s_clog_template.c [M_LIBM_NEED_COMPAT]: Likewise.
33529 * math/s_cpow_template.c [M_LIBM_NEED_COMPAT]: Likewise.
33530 * math/s_cproj_template.c [M_LIBM_NEED_COMPAT]: Likewise.
33531 * math/s_csin_template.c [M_LIBM_NEED_COMPAT]: Likewise.
33532 * math/s_csinh_template.c [M_LIBM_NEED_COMPAT]: Likewise.
33533 * math/s_csqrt_template.c [M_LIBM_NEED_COMPAT]: Likewise.
33534 * math/s_ctan_template.c [M_LIBM_NEED_COMPAT]: Likewise.
33535 * math/s_ctanh_template.c [M_LIBM_NEED_COMPAT]: Likewise.
33536 * math/s_fdim_template.c [M_LIBM_NEED_COMPAT]: Likewise.
33537 * math/s_fmax_template.c [M_LIBM_NEED_COMPAT]: Likewise.
33538 * math/s_fmin_template.c [M_LIBM_NEED_COMPAT]: Likewise.
33539 * math/s_nan_template.c [M_LIBM_NEED_COMPAT]: Likewise.
33540 * math/w_ilogb_template.c [M_LIBM_NEED_COMPAT]: Likewise.
33541 * sysdeps/ieee754/ldbl-opt/s_clog10.c: New file.
33542 * sysdeps/ieee754/ldbl-opt/s_ldexp.c (M_LIBM_NEED_COMPAT): Remove
33543 macro.
33544 (declare_mgen_alias): New macro.
33545 * sysdeps/ieee754/ldbl-opt/w_log1p.c: New file.
33546 * sysdeps/ieee754/ldbl-opt/w_scalbln.c: Likewise.
33547 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdim-vis3.c
33548 (M_LIBM_NEED_COMPAT): Remove macro.
33549 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdim.c
33550 [HAVE_AS_VIS3_SUPPORT]: Include <math_ldbl_opt.h> and
33551 <first-versions.h>.
33552 [HAVE_AS_VIS3_SUPPORT && LONG_DOUBLE_COMPAT (libm,
33553 FIRST_VERSION_libm_fdiml)]: Define fdiml as compat symbol.
33554
33555 2017-09-12 Joseph Myers <joseph@codesourcery.com>
33556
33557 * sysdeps/generic/math-type-macros.h [!declare_mgen_alias_2]
33558 (declare_mgen_alias_2): Remove.
33559 * sysdeps/generic/math-type-macros-double.h
33560 [NO_LONG_DOUBLE && !declare_mgen_alias_2] (declare_mgen_alias_2):
33561 Likewise.
33562 * math/s_ldexp_template.c (M_SUF (__wrap_scalbn)): Define strong
33563 alias.
33564 (ldexp): Define with declare_mgen_alias.
33565 (scalbn): Likewise.
33566
33567 2017-09-12 Steve Ellcey <sellcey@cavium.com>
33568
33569 * grp/initgroups.c: Include config.h.
33570 (DEFAULT_CONFIG): New macro.
33571 (internal_getgrouplist): Use DEFAULT_CONFIG.
33572 * nscd/initgrcache.c (addinitgroupsX): Likewise.
33573 * nss/nsswitch.c (__nss_disable_nscd): Likewise.
33574 (DEFAULT_DEFCONFIG): New macro.
33575 (__nss_database_lookup): Use DEFAULT_DEFCONFIG.
33576 * nss/grp-lookup.c: Include config.h
33577 (DEFAULT_CONFIG): Set definition based on LINK_OBSOLETE_NSL.
33578 * nss/pwd-lookup.c (DEFAULT_CONFIG): Likewise.
33579 * nss/spwd-lookup.c (DEFAULT_CONFIG): Likewise.
33580 * manual/nss.texi: Update default values section.
33581
33582 2017-09-12 H.J. Lu <hongjiu.lu@intel.com>
33583
33584 [BZ #21967]
33585 * sysdeps/x86/cpu-features.h (bit_arch_MathVec_Prefer_No_AVX512):
33586 New.
33587 (index_arch_MathVec_Prefer_No_AVX512): Likewise.
33588 * sysdeps/x86/cpu-tunables.c (TUNABLE_CALLBACK (set_hwcaps)):
33589 Handle MathVec_Prefer_No_AVX512.
33590 * sysdeps/x86_64/fpu/multiarch/ifunc-mathvec-avx512.h
33591 (IFUNC_SELECTOR): Return AVX2 version if MathVec_Prefer_No_AVX512
33592 is set.
33593
33594 2017-09-12 Samuel Thibault <samuel.thibault@ens-lyon.org>
33595
33596 * posix/sched_primax.c (__sched_get_priority_max): Add
33597 libc_hidden_def.
33598 * posix/sched_primin.c (__sched_get_priority_min): Likewise.
33599 * sysdeps/mach/hurd/mmap.c (__mmap): Likewise.
33600 * sysdeps/mach/hurd/mmap64.c (__mmap64): Likewise.
33601 * sysdeps/mach/hurd/mprotect.c (__mprotect): Likewise.
33602 * sysdeps/mach/hurd/munmap.c (__munmap): Likewise.
33603 * sysdeps/mach/hurd/dl-sysdep.c (__GI___getpid,
33604 __GI___strtoul_internal, __GI_____strtoul_internal, __GI___chk_fail,
33605 __GI___fortify_fail, __GI___assert_fail, __GI___assert_perror_fail):
33606 Add aliases.
33607
33608 2017-09-11 Joseph Myers <joseph@codesourcery.com>
33609
33610 * sysdeps/generic/libm-alias-float.h: New file.
33611 * sysdeps/generic/math-type-macros-float.h: Include
33612 <libm-alias-float.h>.
33613 [!declare_mgen_alias] (declare_mgen_alias): Define macro.
33614
33615 2017-09-11 H.J. Lu <hongjiu.lu@intel.com>
33616
33617 [BZ #22093]
33618 * sysdeps/x86/cpu-features.c (init_cpu_features): Initialize
33619 GLRO(dl_hwcap) to HWCAP_X86_64 for x86-64.
33620 * sysdeps/x86/dl-hwcap.h (HWCAP_COUNT): Updated.
33621 (HWCAP_IMPORTANT): Likewise.
33622 (HWCAP_X86_64): New enum.
33623 (HWCAP_X86_AVX512_1): Updated.
33624 * sysdeps/x86/dl-procinfo.c (_dl_x86_hwcap_flags): Add "x86_64".
33625 * sysdeps/x86_64/Makefile (tests): Add tst-x86_64-1.
33626 (modules-names): Add x86_64/tst-x86_64mod-1.
33627 (LDFLAGS-tst-x86_64mod-1.so): New.
33628 ($(objpfx)tst-x86_64-1): Likewise.
33629 ($(objpfx)x86_64/tst-x86_64mod-1.os): Likewise.
33630 (tst-x86_64-1-clean): Likewise.
33631 * sysdeps/x86_64/tst-x86_64-1.c: New file.
33632 * sysdeps/x86_64/tst-x86_64mod-1.c: Likewise.
33633
33634 2017-09-11 Siddhesh Poyarekar <siddhesh@sourceware.org>
33635
33636 * po/sv.po: Update translations.
33637 * po/fr.po: Likewise.
33638
33639 2017-09-10 Samuel Thibault <samuel.thibault@ens-lyon.org>
33640
33641 * sunrpc/tst-udp-timeout.c (test_udp_server): Increase timeout to 2.5
33642 seconds.
33643 * sunrpc/tst-udp-nonblocking.c (do_test): Increase timeout to 0.75
33644 seconds.
33645 * elf/rtld-Rules: Fix $(error) use.
33646
33647 2017-09-09 Mike FABIAN <mfabian@redhat.com>
33648
33649 [BZ #14925]
33650 * libio/tst-widetext.input: Change “Bengali” to “Bangla”.
33651 * locale/iso-639.def: Change “Bengali” to “Bangla”.
33652 * localedata/locales/bn_BD: “Bengali” was still used in some
33653 comments. Change it to “Bangla”.
33654
33655 2017-09-08 Markus Trippelsdorf <markus@trippelsdorf.de>
33656
33657 * sysdeps/x86_64/fpu/libm-test-ulps: Update for AMD Ryzen.
33658
33659 2017-09-08 Steve Ellcey <sellcey@cavium.com>
33660
33661 * manual/tunables.texi (glibc.tune.cpu): Add thunderx2t99 and
33662 thunderx2t99p1 to list of cpu names.
33663 * sysdeps/unix/sysv/linux/aarch64/cpu-features.c (cpu_list):
33664 Add thunderx2t99 and thunderx2t99p1 entries to cpu_list.
33665
33666 2017-09-08 Steve Ellcey <sellcey@cavium.com>
33667
33668 * sysdeps/unix/sysv/linux/aarch64/cpu-features.c (get_midr_from_mcpu):
33669 Use strcmp instead of tunable_is_name.
33670
33671 2017-09-08 Joseph Myers <joseph@codesourcery.com>
33672
33673 * sysdeps/unix/sysv/linux/bits/fcntl-linux.h [__USE_GNU]
33674 (F_GET_RW_HINT): New macro.
33675 [__USE_GNU] (F_SET_RW_HINT): Likewise.
33676 [__USE_GNU] (F_GET_FILE_RW_HINT): Likewise.
33677 [__USE_GNU] (F_SET_FILE_RW_HINT): Likewise.
33678 [__USE_GNU] (RWF_WRITE_LIFE_NOT_SET): Likewise.
33679 [__USE_GNU] (RWH_WRITE_LIFE_NONE): Likewise.
33680 [__USE_GNU] (RWH_WRITE_LIFE_SHORT): Likewise.
33681 [__USE_GNU] (RWH_WRITE_LIFE_MEDIUM): Likewise.
33682 [__USE_GNU] (RWH_WRITE_LIFE_LONG): Likewise.
33683 [__USE_GNU] (RWH_WRITE_LIFE_EXTREME): Likewise.
33684
33685 * sysdeps/unix/sysv/linux/bits/fcntl-linux.h [__USE_GNU]
33686 (F_ADD_SEALS): New macro.
33687 [__USE_GNU] (F_GET_SEALS): Likewise.
33688 [__USE_GNU] (F_SEAL_SEAL): Likewise.
33689 [__USE_GNU] (F_SEAL_SHRINK): Likewise.
33690 [__USE_GNU] (F_SEAL_GROW): Likewise.
33691 [__USE_GNU] (F_SEAL_WRITE): Likewise.
33692
33693 2017-09-08 Adhemerval Zanella <adhemerval.zanella@linaro.org>
33694
33695 * posix/glob_internal.h (GLOBPAT_NONE, GLOBPAT_SPECIAL)
33696 (GLOBPAT_BACKSLASH, GLOBPAT_BRACKET): New constants.
33697 * posix/glob_internal.h (__glob_pattern_type):
33698 * posix/glob.c (glob):
33699 * posix/glob_pattern_p.c (__glob_pattern_p):
33700 Use them.
33701
33702 * sysdeps/unix/sysv/linux/arm/glob64.c: Remove file.
33703 * sysdeps/unix/sysv/linux/i386/glob64.c: Likewise.
33704 * sysdeps/unix/sysv/linux/m68k/glob64.c: Likewise.
33705 * sysdeps/unix/sysv/linux/mips/mips64/n64/glob64.c: Likewise.
33706 * sysdeps/unix/sysv/linux/mips/mips64/n64/globfree64.c: Likewise.
33707 * sysdeps/unix/sysv/linux/powerpc/powerpc32/glob64.c: Likewise.
33708 * sysdeps/unix/sysv/linux/sparc/sparc32/glob64.c: Likewise.
33709 * sysdeps/unix/sysv/linux/wordsize-64/glob64.c: Likewise.
33710 * sysdeps/unix/sysv/linux/wordsize-64/globfree64.c: Likewise.
33711 * sysdeps/unix/sysv/linux/x86_64/x32/glob.c: Likewise.
33712 * sysdeps/unix/sysv/linux/x86_64/x32/globfree.c: Likewise.
33713 * sysdeps/wordsize-64/glob.c: Likewise.
33714 * sysdeps/wordsize-64/glob64.c: Likewise.
33715 * sysdeps/wordsize-64/globfree.c: Likewise.
33716 * sysdeps/wordsize-64/globfree64.c: Likewise.
33717 * sysdeps/unix/sysv/linux/glob.c: New file.
33718 * sysdeps/unix/sysv/linux/glob64.c: Likewise.
33719 * sysdeps/unix/sysv/linux/globfree.c: Likewise.
33720 * sysdeps/unix/sysv/linux/globfree64.c: Likewise.
33721 * sysdeps/unix/sysv/linux/s390/s390-32/glob64.c: Likewise.
33722 * sysdeps/unix/sysv/linux/oldglob.c [SHLIB_COMPAT]: Also
33723 adds !GLOB_NO_OLD_VERSION as an extra condition.
33724 * sysdeps/unix/sysv/linux/i386/alphasort64.c: Include olddirent.h
33725 using relative path instead of absolute one.
33726 * sysdeps/unix/sysv/linux/i386/getdents64.c: Likewise.
33727 * sysdeps/unix/sysv/linux/i386/readdir64.c: Likewise.
33728 * sysdeps/unix/sysv/linux/i386/readdir64_r.c: Likewise.
33729 * sysdeps/unix/sysv/linux/i386/versionsort64.c: Likewise.
33730 * sysdeps/unix/sysv/linux/i386/olddirent.h: Move to ...
33731 * sysdeps/unix/sysv/linux//olddirent.h: ... here.
33732
33733 [BZ #1062]
33734 * posix/glob.c (GET_LOGIN_NAME_MAX): Remove.
33735 (glob): Use the same scratch buffer for both getlogin_r and
33736 getpwnam_r. Don’t require preallocation of the login name. This
33737 simplifies storage allocation, and corrects the handling of
33738 long login names.
33739
33740 [BZ #1062]
33741 * posix/glob.c (glob): Port recent patches to platforms
33742 lacking getpwnam_r.
33743 (glob): Fix longstanding misuse of errno after getpwnam_r, which
33744 returns an error number rather than setting errno.
33745
33746 * include/scratch_buffer.h (scratch_buffer): Use a C99 align method
33747 instead of GCC extension.
33748 * malloc/scratch_buffer_grow.c [!_LIBC]: Include libc-config.h.
33749 * malloc/scratch_buffer_grow_preserve.c [!_LIBC]: Likewise.
33750 * malloc/scratch_buffer_set_array_size.c [!_LIBC]: Likewise.
33751
33752 [BZ #866]
33753 [BZ #1062]
33754 * posix/Makefile (tests): Remove bug-glob1 and tst-glob_symlinks.
33755 * posix/bug-glob1.c: Remove file.
33756 * posix/tst-glob_symlinks.c: New file.
33757 * posix/glob.c (__lstat64): New macro.
33758 (is_dir): New function.
33759 (glob, glob_in_dir): Match symlinks even if they are dangling.
33760 (link_stat, link_exists_p): Remove. All uses removed.
33761
33762 [BZ #1062]
33763 [BZ #19971]
33764 * posix/glob.c (struct readdir_result): Remove skip_entry member.
33765 (readdir_result_skip_entry, D_INO_TO_RESULT): Remove.
33766 All uses removed.
33767
33768 [BZ #1062]
33769 CVE-2017-15671
33770 * posix/Makefile (routines): Add globfree, globfree64, and
33771 glob_pattern_p.
33772 * posix/flexmember.h: New file.
33773 * posix/glob_internal.h: Likewise.
33774 * posix/glob_pattern_p.c: Likewise.
33775 * posix/globfree.c: Likewise.
33776 * posix/globfree64.c: Likewise.
33777 * sysdeps/gnu/globfree64.c: Likewise.
33778 * sysdeps/unix/sysv/linux/alpha/globfree.c: Likewise.
33779 * sysdeps/unix/sysv/linux/mips/mips64/n64/globfree64.c: Likewise.
33780 * sysdeps/unix/sysv/linux/oldglob.c: Likewise.
33781 * sysdeps/unix/sysv/linux/wordsize-64/globfree64.c: Likewise.
33782 * sysdeps/unix/sysv/linux/x86_64/x32/globfree.c: Likewise.
33783 * sysdeps/wordsize-64/globfree.c: Likewise.
33784 * sysdeps/wordsize-64/globfree64.c: Likewise.
33785 * posix/glob.c (HAVE_CONFIG_H): Use !_LIBC instead.
33786 [NDEBUG): Remove comments.
33787 (GLOB_ONLY_P, _AMIGA, VMS): Remove define.
33788 (dirent_type): New type. Use uint_fast8_t not
33789 uint8_t, as C99 does not require uint8_t.
33790 (DT_UNKNOWN, DT_DIR, DT_LNK): New macros.
33791 (struct readdir_result): Use dirent_type. Do not define skip_entry
33792 unless it is needed; this saves a byte on platforms lacking d_ino.
33793 (readdir_result_type, readdir_result_skip_entry):
33794 New functions, replacing ...
33795 (readdir_result_might_be_symlink, readdir_result_might_be_dir):
33796 these functions, which were removed. This makes the callers
33797 easier to read. All callers changed.
33798 (D_INO_TO_RESULT): Now empty if there is no d_ino.
33799 (size_add_wrapv, glob_use_alloca): New static functions.
33800 (glob, glob_in_dir): Check for size_t overflow in several places,
33801 and fix some size_t checks that were not quite right.
33802 Remove old code using SHELL since Bash no longer
33803 uses this.
33804 (glob, prefix_array): Separate MS code better.
33805 (glob_in_dir): Remove old Amiga and VMS code.
33806 (globfree, __glob_pattern_type, __glob_pattern_p): Move to
33807 separate files.
33808 (glob_in_dir): Do not rely on undefined behavior in accessing
33809 struct members beyond their bounds. Use a flexible array member
33810 instead
33811 (link_stat): Rename from link_exists2_p and return -1/0 instead of
33812 0/1. Caller changed.
33813 (glob): Fix memory leaks.
33814 * posix/glob64 (globfree64): Move to separate file.
33815 * sysdeps/gnu/glob64.c (NO_GLOB_PATTERN_P): Remove define.
33816 (globfree64): Remove hidden alias.
33817 * sysdeps/unix/sysv/linux/Makefile (sysdeps_routines): Add
33818 oldglob.
33819 * sysdeps/unix/sysv/linux/alpha/glob.c (__new_globfree): Move to
33820 separate file.
33821 * sysdeps/unix/sysv/linux/i386/glob64.c (NO_GLOB_PATTERN_P): Remove
33822 define.
33823 Move compat code to separate file.
33824 * sysdeps/wordsize-64/glob.c (globfree): Move definitions to
33825 separate file.
33826
33827 2017-09-07 H.J. Lu <hongjiu.lu@intel.com>
33828
33829 * resolv/tst-resolv-qtypes.c (domain): Changed to
33830 "const char domain[] =".
33831
33832 2017-09-07 Joseph Myers <joseph@codesourcery.com>
33833
33834 * scripts/build-many-glibcs.py (Context.checkout): Default MPFR
33835 version to 3.1.6.
33836
33837 * sysdeps/gnu/netinet/tcp.h (TCP_ULP): New macro.
33838 (TCP_MD5SIG_EXT): Likewise.
33839 (TCP_MD5SIG_FLAG_PREFIX): Likewise.
33840 (struct tcp_md5sig): Replace __tcpm_pad1 by tcpm_flags and
33841 tcpm_prefixlen. Rename __tcpm_pad2 to __tcpm_pad.
33842
33843 * sysdeps/unix/sysv/linux/bits/socket.h (SOL_TLS): New macro.
33844
33845 2017-09-07 Mike FABIAN <mfabian@redhat.com>
33846
33847 * localedata/locales/om_ET (LC_TIME): use ASCII for better readability.
33848
33849 2017-09-07 Akhilesh Kumar <akhilesh.k@samsung.com>
33850
33851 [BZ #22100]
33852 * localedata/locales/om_KE (LC_TIME): copy "om_ET".
33853
33854 2017-09-07 Samuel Thibault <samuel.thibault@ens-lyon.org>
33855
33856 * hurd/get-host.c (_hurd_get_host_config): Also check that more == 0
33857 before assuming that the file is empty. Avoid testing buffer content
33858 when nread == 0.
33859
33860 2017-09-06 Adhemerval Zanella <adhemerval.zanella@linaro.org>
33861
33862 [BZ #18858]
33863 * sysdeps/i386/i686/multiarch/strncpy.c (_HAVE_STRING_ARCH_strncpy):
33864 Remove define.
33865 * sysdeps/x86_64/multiarch/stpcpy.c (_HAVE_STRING_ARCH_stpcpy):
33866 Likewise.
33867 * sysdeps/x86_64/multiarch/strcspn.c (_HAVE_STRING_ARCH_strcspn):
33868 Likewise.
33869 * sysdeps/x86_64/multiarch/strncat.c (_HAVE_STRING_ARCH_strncat):
33870 Likewise.
33871 * sysdeps/x86_64/multiarch/strncpy.c (_HAVE_STRING_ARCH_strncpy):
33872 Likewise.
33873 * sysdeps/x86_64/multiarch/strpbrk.c (_HAVE_STRING_ARCH_strpbrk):
33874 Likewise.
33875 * sysdeps/x86_64/multiarch/strspn.c (_HAVE_STRING_ARCH_strspn):
33876 Likewise.
33877
33878 2017-09-06 Florian Weimer <fweimer@redhat.com>
33879
33880 * malloc/dynarray_emplace_enlarge.c
33881 (__libc_dynarray_emplace_enlarge): Add missing else.
33882
33883 2017-09-06 Florian Weimer <fweimer@redhat.com>
33884
33885 [BZ #22096]
33886 * resolv/resolv_conf.c (__resolv_conf_attach): Do not free conf in
33887 case of failure to obtain the global conf object.
33888
33889 2017-09-06 Florian Weimer <fweimer@redhat.com>
33890
33891 [BZ #22095]
33892 * resolv/res_init.c (res_vinit_1): Avoid memory leak in case of
33893 dynarray allocation failure.
33894
33895 2017-09-06 Florian Weimer <fweimer@redhat.com>
33896
33897 Remove dead PTR IPv4-to-IPv6 mapping code from nss_dns.
33898 * resolv/nss_dns/dns-host.c (getanswer_r): Remove dead code.
33899 * resolv/tst-res_use_inet6.c (response_ptr_v4, response_ptr_v6):
33900 New functions.
33901 (response): Call them. Add 'p', '6' flag processing.
33902 (test_reverse): New function.
33903 (test_get2_any): Call it.
33904 (test_no_inet6): Add 'p' test.
33905 (test_inet6): Likewise.
33906
33907 2017-09-06 Florian Weimer <fweimer@redhat.com>
33908
33909 Enhance tst-res_use_inet6 to test IPv4-to-IPv6 address mapping.
33910 * resolv/tst-res_use_inet6.c (response): Process flags embedded in
33911 the QNAME.
33912 (test_gai): Adjust query names. Add additional tests.
33913 (test_get2_any, test_get2_no_inet6, test_get2_inet6): Split from
33914 test_get2. Adjust query names. Add additional tests.
33915 (test_no_inet6): New function, extracted from threadfunc.
33916 (threadfunc): Call test_get2_any, test_get2_inet6, test_no_inet6.
33917 Add additional tests.
33918
33919 2017-09-06 Mike FABIAN <mfabian@redhat.com>
33920
33921 [BZ #22070]
33922 * localedata/unicode-gen/utf8_gen.py: Set the width for
33923 characters with Prepended_Concatenation_Mark property to 1
33924 * localedata/charmaps/UTF-8: Updated using the improved script.
33925
33926 2017-09-06 Mike FABIAN <mfabian@redhat.com>
33927
33928 [BZ #21750]
33929 * localedata/unicode-gen/utf8_gen.py: Improve the script to
33930 use the range notation for all ranges of neighbouring characters
33931 with the same width.
33932
33933 2017-09-05 Joseph Myers <joseph@codesourcery.com>
33934
33935 * sysdeps/generic/math-type-macros-double.h: Include
33936 <math-svid-compat.h>.
33937 (__USE_WRAPPER_TEMPLATE): Define to !LIBM_SVID_COMPAT.
33938 * sysdeps/generic/math-type-macros-float.h: Include
33939 <math-svid-compat.h>.
33940 (__USE_WRAPPER_TEMPLATE): Define to !LIBM_SVID_COMPAT.
33941 * sysdeps/generic/math-type-macros-ldouble.h: Include
33942 <math-svid-compat.h>.
33943 (__USE_WRAPPER_TEMPLATE): Define to !LIBM_SVID_COMPAT.
33944 * math/lgamma-compat.h (BUILD_LGAMMA): Include LIBM_SVID_COMPAT
33945 condition.
33946 * math/w_acos_compat.c: Condition contents on [LIBM_SVID_COMPAT].
33947 * math/w_acosf_compat.c: Likewise.
33948 * math/w_acosh_compat.c: Likewise.
33949 * math/w_acoshf_compat.c: Likewise.
33950 * math/w_acoshl_compat.c: Likewise.
33951 * math/w_acosl_compat.c: Likewise.
33952 * math/w_asin_compat.c: Likewise.
33953 * math/w_asinf_compat.c: Likewise.
33954 * math/w_asinl_compat.c: Likewise.
33955 * math/w_atan2_compat.c: Likewise.
33956 * math/w_atan2f_compat.c: Likewise.
33957 * math/w_atan2l_compat.c: Likewise.
33958 * math/w_atanh_compat.c: Likewise.
33959 * math/w_atanhf_compat.c: Likewise.
33960 * math/w_atanhl_compat.c: Likewise.
33961 * math/w_cosh_compat.c: Likewise.
33962 * math/w_coshf_compat.c: Likewise.
33963 * math/w_coshl_compat.c: Likewise.
33964 * math/w_exp10_compat.c: Likewise.
33965 * math/w_exp10f_compat.c: Likewise.
33966 * math/w_exp10l_compat.c: Likewise.
33967 * math/w_exp2_compat.c: Likewise.
33968 * math/w_exp2f_compat.c: Likewise.
33969 * math/w_exp2l_compat.c: Likewise.
33970 * math/w_fmod_compat.c: Likewise.
33971 * math/w_fmodf_compat.c: Likewise.
33972 * math/w_fmodl_compat.c: Likewise.
33973 * math/w_hypot_compat.c: Likewise.
33974 * math/w_hypotf_compat.c: Likewise.
33975 * math/w_hypotl_compat.c: Likewise.
33976 * math/w_j0_compat.c: Likewise.
33977 * math/w_j0f_compat.c: Likewise.
33978 * math/w_j0l_compat.c: Likewise.
33979 * math/w_j1_compat.c: Likewise.
33980 * math/w_j1f_compat.c: Likewise.
33981 * math/w_j1l_compat.c: Likewise.
33982 * math/w_jn_compat.c: Likewise.
33983 * math/w_jnf_compat.c: Likewise.
33984 * math/w_jnl_compat.c: Likewise.
33985 * math/w_lgamma_r_compat.c: Likewise.
33986 * math/w_lgammaf_r_compat.c: Likewise.
33987 * math/w_lgammal_r_compat.c: Likewise.
33988 * math/w_log10_compat.c: Likewise.
33989 * math/w_log10f_compat.c: Likewise.
33990 * math/w_log10l_compat.c: Likewise.
33991 * math/w_log2_compat.c: Likewise.
33992 * math/w_log2f_compat.c: Likewise.
33993 * math/w_log2l_compat.c: Likewise.
33994 * math/w_log_compat.c: Likewise.
33995 * math/w_logf_compat.c: Likewise.
33996 * math/w_logl_compat.c: Likewise.
33997 * math/w_pow_compat.c: Likewise.
33998 * math/w_powf_compat.c: Likewise.
33999 * math/w_powl_compat.c: Likewise.
34000 * math/w_remainder_compat.c: Likewise.
34001 * math/w_remainderf_compat.c: Likewise.
34002 * math/w_remainderl_compat.c: Likewise.
34003 * math/w_sinh_compat.c: Likewise.
34004 * math/w_sinhf_compat.c: Likewise.
34005 * math/w_sinhl_compat.c: Likewise.
34006 * math/w_sqrt_compat.c: Likewise.
34007 * math/w_sqrtf_compat.c: Likewise.
34008 * math/w_sqrtl_compat.c: Likewise.
34009 * math/w_tgamma_compat.c: Likewise.
34010 * math/w_tgammaf_compat.c: Likewise.
34011 * math/w_tgammal_compat.c: Likewise.
34012 * math/w_scalb_compat.c (sysv_scalb): Condition definition on
34013 [LIBM_SVID_COMPAT].
34014 (__scalb): Condition call to sysv_scalb on [LIBM_SVID_COMPAT].
34015 * math/w_scalbf_compat.c (sysv_scalbf): Condition definition on
34016 [LIBM_SVID_COMPAT].
34017 (__scalbf): Condition call to sysv_scalbf on [LIBM_SVID_COMPAT].
34018 * math/w_scalbl_compat.c (sysv_scalbl): Condition definition on
34019 [LIBM_SVID_COMPAT].
34020 (__scalbl): Condition call to sysv_scalbl on [LIBM_SVID_COMPAT].
34021 * sysdeps/i386/fpu/w_sqrt.c: New file.
34022 * sysdeps/ia64/fpu/w_acos.c: Likewise.
34023 * sysdeps/ia64/fpu/w_acosf.c: Likewise.
34024 * sysdeps/ia64/fpu/w_acosh.c: Likewise.
34025 * sysdeps/ia64/fpu/w_acoshf.c: Likewise.
34026 * sysdeps/ia64/fpu/w_acoshl.c: Likewise.
34027 * sysdeps/ia64/fpu/w_acosl.c: Likewise.
34028 * sysdeps/ia64/fpu/w_asin.c: Likewise.
34029 * sysdeps/ia64/fpu/w_asinf.c: Likewise.
34030 * sysdeps/ia64/fpu/w_asinl.c: Likewise.
34031 * sysdeps/ia64/fpu/w_atan2.c: Likewise.
34032 * sysdeps/ia64/fpu/w_atan2f.c: Likewise.
34033 * sysdeps/ia64/fpu/w_atan2l.c: Likewise.
34034 * sysdeps/ia64/fpu/w_atanh.c: Likewise.
34035 * sysdeps/ia64/fpu/w_atanhf.c: Likewise.
34036 * sysdeps/ia64/fpu/w_atanhl.c: Likewise.
34037 * sysdeps/ia64/fpu/w_cosh.c: Likewise.
34038 * sysdeps/ia64/fpu/w_coshf.c: Likewise.
34039 * sysdeps/ia64/fpu/w_coshl.c: Likewise.
34040 * sysdeps/ia64/fpu/w_exp.c: Likewise.
34041 * sysdeps/ia64/fpu/w_exp10.c: Likewise.
34042 * sysdeps/ia64/fpu/w_exp10f.c: Likewise.
34043 * sysdeps/ia64/fpu/w_exp10l.c: Likewise.
34044 * sysdeps/ia64/fpu/w_exp2.c: Likewise.
34045 * sysdeps/ia64/fpu/w_exp2f.c: Likewise.
34046 * sysdeps/ia64/fpu/w_exp2l.c: Likewise.
34047 * sysdeps/ia64/fpu/w_expf.c: Likewise.
34048 * sysdeps/ia64/fpu/w_expl.c: Likewise.
34049 * sysdeps/ia64/fpu/w_fmod.c: Likewise.
34050 * sysdeps/ia64/fpu/w_fmodf.c: Likewise.
34051 * sysdeps/ia64/fpu/w_fmodl.c: Likewise.
34052 * sysdeps/ia64/fpu/w_hypot.c: Likewise.
34053 * sysdeps/ia64/fpu/w_hypotf.c: Likewise.
34054 * sysdeps/ia64/fpu/w_hypotl.c: Likewise.
34055 * sysdeps/ia64/fpu/w_lgamma_r.c: Likewise.
34056 * sysdeps/ia64/fpu/w_lgammaf_r.c: Likewise.
34057 * sysdeps/ia64/fpu/w_lgammal_r.c: Likewise.
34058 * sysdeps/ia64/fpu/w_log.c: Likewise.
34059 * sysdeps/ia64/fpu/w_log10.c: Likewise.
34060 * sysdeps/ia64/fpu/w_log10f.c: Likewise.
34061 * sysdeps/ia64/fpu/w_log10l.c: Likewise.
34062 * sysdeps/ia64/fpu/w_log2.c: Likewise.
34063 * sysdeps/ia64/fpu/w_log2f.c: Likewise.
34064 * sysdeps/ia64/fpu/w_log2l.c: Likewise.
34065 * sysdeps/ia64/fpu/w_logf.c: Likewise.
34066 * sysdeps/ia64/fpu/w_logl.c: Likewise.
34067 * sysdeps/ia64/fpu/w_pow.c: Likewise.
34068 * sysdeps/ia64/fpu/w_powf.c: Likewise.
34069 * sysdeps/ia64/fpu/w_powl.c: Likewise.
34070 * sysdeps/ia64/fpu/w_remainder.c: Likewise.
34071 * sysdeps/ia64/fpu/w_remainderf.c: Likewise.
34072 * sysdeps/ia64/fpu/w_remainderl.c: Likewise.
34073 * sysdeps/ia64/fpu/w_sinh.c: Likewise.
34074 * sysdeps/ia64/fpu/w_sinhf.c: Likewise.
34075 * sysdeps/ia64/fpu/w_sinhl.c: Likewise.
34076 * sysdeps/ia64/fpu/w_sqrt.c: Likewise.
34077 * sysdeps/ia64/fpu/w_sqrtf.c: Likewise.
34078 * sysdeps/ia64/fpu/w_sqrtl.c: Likewise.
34079 * sysdeps/ia64/fpu/w_tgamma.c: Likewise.
34080 * sysdeps/ia64/fpu/w_tgammaf.c: Likewise.
34081 * sysdeps/ia64/fpu/w_tgammal.c: Likewise.
34082 * sysdeps/ieee754/dbl-64/w_exp_compat.c: Condition contents on
34083 [LIBM_SVID_COMPAT].
34084 * sysdeps/ieee754/flt-32/w_expf_compat.c: Likewise.
34085 * sysdeps/ieee754/k_standard.c: Likewise.
34086 * sysdeps/ieee754/k_standardf.c: Likewise.
34087 * sysdeps/ieee754/k_standardl.c: Likewise.
34088 * sysdeps/ieee754/ldbl-128/w_expl_compat.c: Likewise.
34089 * sysdeps/ieee754/ldbl-128ibm/w_expl_compat.c: Likewise.
34090 * sysdeps/ieee754/ldbl-96/w_expl_compat.c: Likewise.
34091 * sysdeps/ieee754/ldbl-64-128/w_expl_compat.c: Condition
34092 long_double_symbol call on [LIBM_SVID_COMPAT].
34093 * sysdeps/ieee754/ldbl-opt/w_acoshl_compat.c: Likewise.
34094 * sysdeps/ieee754/ldbl-opt/w_acosl_compat.c: Likewise.
34095 * sysdeps/ieee754/ldbl-opt/w_asinl_compat.c: Likewise.
34096 * sysdeps/ieee754/ldbl-opt/w_atan2l_compat.c: Likewise.
34097 * sysdeps/ieee754/ldbl-opt/w_atanhl_compat.c: Likewise.
34098 * sysdeps/ieee754/ldbl-opt/w_coshl_compat.c: Likewise.
34099 * sysdeps/ieee754/ldbl-opt/w_fmodl_compat.c: Likewise.
34100 * sysdeps/ieee754/ldbl-opt/w_hypotl_compat.c: Likewise.
34101 * sysdeps/ieee754/ldbl-opt/w_j0l_compat.c: Likewise.
34102 * sysdeps/ieee754/ldbl-opt/w_j1l_compat.c: Likewise.
34103 * sysdeps/ieee754/ldbl-opt/w_jnl_compat.c: Likewise.
34104 * sysdeps/ieee754/ldbl-opt/w_lgammal_r_compat.c: Likewise.
34105 * sysdeps/ieee754/ldbl-opt/w_log10l_compat.c: Likewise.
34106 * sysdeps/ieee754/ldbl-opt/w_log2l_compat.c: Likewise.
34107 * sysdeps/ieee754/ldbl-opt/w_logl_compat.c: Likewise.
34108 * sysdeps/ieee754/ldbl-opt/w_powl_compat.c: Likewise.
34109 * sysdeps/ieee754/ldbl-opt/w_remainderl_compat.c: Likewise.
34110 * sysdeps/ieee754/ldbl-opt/w_sinhl_compat.c: Likewise.
34111 * sysdeps/ieee754/ldbl-opt/w_sqrtl_compat.c: Likewise.
34112 * sysdeps/ieee754/ldbl-opt/w_tgammal_compat.c: Likewise.
34113 * sysdeps/ieee754/ldbl-opt/w_exp10l_compat.c: Condition
34114 long_double_symbol and compat_symbol calls on [LIBM_SVID_COMPAT].
34115
34116 2017-09-05 Steve Ellcey <sellcey@cavium.com>
34117
34118 * include/shlib-compat.h (TEST_COMPAT): New Macro.
34119 * malloc/tst-mallocstate.c: Convert from test-skeleton
34120 to test-driver. Ifdef code using TEST_COMPAT macro.
34121 * math/test-matherr-2.c: Ifdef test using TEST_COMPAT macro.
34122 * math/test-matherr.c: Likewise.
34123
34124 2017-09-05 Joseph Myers <joseph@codesourcery.com>
34125
34126 [BZ #22086]
34127 * debug/pcprofiledump.c (main): Use byte-swapped mask when
34128 comparing word with byte-swapped constant.
34129
34130 2017-09-05 Chris Leonard <cjlhomeaddress@gmail.com>
34131
34132 [BZ #20498]
34133 * locale/iso-639.def: add Miskito.
34134 * localedata/SUPPORTED: Add miq_NI/UTF-8.
34135 * localedata/locales/miq_NI: New file.
34136
34137 2017-09-04 H.J. Lu <hongjiu.lu@intel.com>
34138
34139 [BZ #18822]
34140 * include/sys/stat.h (__chmod): Add libc_hidden_proto.
34141 (__mkdir): Likewise.
34142 * io/chmod.c (__chmod): Add libc_hidden_def.
34143 * io/mkdir.c (__mkdir): Likewise.
34144 * sysdeps/mach/hurd/chmod.c (__chmod): Likewise.
34145 * sysdeps/mach/hurd/mkdir.c (__mkdir): Likewise.
34146 * sysdeps/unix/sysv/linux/generic/chmod.c (__chmod): Likewise.
34147 * sysdeps/unix/sysv/linux/generic/mkdir.c (__mkdir): Likewise.
34148
34149 2017-09-04 Joseph Myers <joseph@codesourcery.com>
34150
34151 * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
34152 version to 4.13.
34153
34154 [BZ #22082]
34155 * math/bits/math-finite.h (exp10): Redirect if [__GLIBC_USE
34156 (IEC_60559_FUNCS_EXT)], not [__USE_GNU].
34157
34158 2017-09-04 Florian Weimer <fweimer@redhat.com>
34159
34160 * math/math.h: Issue warning if log is defined.
34161
34162 2017-09-04 Joseph Myers <joseph@codesourcery.com>
34163
34164 * scripts/build-many-glibcs.py (Context.checkout): Default Linux
34165 kernel version to 4.13.
34166
34167 2017-09-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
34168
34169 * sysdeps/generic/sigsetops.h: Remove spurious #endif.
34170 (__sigismember, __sigaddset, __sigdelset): Fix referencing set
34171 parameter.
34172 * sysdeps/mach/hurd/bits/socket.h: Include <sys/types.h> instead of
34173 just <bits/types.h>.
34174 * sysdeps/posix/preadv2.c: Use off_t instead of OFF_T.
34175 * sysdeps/posix/preadv64v2.c: Use off64_t instead of OFF_T.
34176 * sysdeps/posix/pwritev2.c: Use off_t instead of OFF_T.
34177 * sysdeps/posix/pwritev64v2.c: Use off64_t instead of OFF_T.
34178 * misc/preadv2.c: Include <errno.h>.
34179 * misc/preadv64v2.c: Include <errno.h>.
34180 * misc/pwritev2.c: Include <errno.h>.
34181 * misc/pwritev64v2.c: Include <errno.h>.
34182 * sysdeps/posix/preadv2.c: Include <errno.h>.
34183 * sysdeps/posix/preadv64v2.c: Include <errno.h>.
34184 Fix <unistd.h> inclusion.
34185 * sysdeps/posix/pwritev2.c: Include <errno.h>.
34186 * sysdeps/posix/pwritev64v2.c: Include <errno.h>.
34187 * sysdeps/mach/hurd/dl-sysdep.c (__access_noerrno, __sbrk,
34188 __strtoul_internal): New functions.
34189 * sysdeps/posix/pause.c: Include <sigsetops.h>.
34190 * sysdeps/posix/system.c: Include <sigsetops.h>.
34191 * sysdeps/mach/hurd/i386/Makefile
34192 [$(subdir) = csu] (sysdep_routines): New rule: divdi3 object.
34193 [$(subdir) = csu] (sysdep-only-routines): Likewise.
34194 [$(subdir) = csu] (CFLAGS-divdi3.c): Likewise.
34195 * sysdeps/x86/fpu/include/bits/fenv.h [NO_HIDDEN]: Redirect
34196 __feraiseexcept_renamed to feraiseexcept instead of
34197 __GI_feraiseexcept.
34198 * sysdeps/mach/hurd/i386/Implies: Add mach/hurd/x86.
34199 * sysdeps/mach/hurd/x86/dl-sysdep.c: New file.
34200 * misc/tst-preadvwritev2-common.c (RWF_HIPRI, RWF_DSYNC, RWF_SYNC,
34201 RWF_NOWAIT): Define to 0 if undefined already.
34202 (do_test_with_invalid_flags): Set invalid_flag to 2 if RWF_SUPPORTED
34203 boils down to 0.
34204 * resolv/tst-resolv-res_init-skeleton.c (run_res_init)
34205 [!CLONE_NEWUTS]: Fail as unsupported if hostname is not NULL.
34206
34207 2017-09-01 Joseph Myers <joseph@codesourcery.com>
34208
34209 * manual/math.texi (pow10): Do not document.
34210 (pow10f): Likewise.
34211 (pow10l): Likewise.
34212 * math/bits/mathcalls.h [__USE_GNU] (pow10): Do not declare.
34213 * math/bits/math-finite.h [__USE_GNU] (pow10): Likewise.
34214 * math/libm-test-exp10.inc (pow10_test): Remove.
34215 (do_test): Do not call pow10.
34216 * math/w_exp10_compat.c (pow10): Make into compat symbol.
34217 [NO_LONG_DOUBLE] (pow10l): Likewise.
34218 * math/w_exp10f_compat.c (pow10f): Likewise.
34219 * math/w_exp10l_compat.c (pow10l): Likewise.
34220 * sysdeps/ia64/fpu/e_exp10.S: Include <shlib-compat.h>.
34221 (pow10): Make into compat symbol.
34222 * sysdeps/ia64/fpu/e_exp10f.S: Include <shlib-compat.h>.
34223 (pow10f): Make into compat symbol.
34224 * sysdeps/ia64/fpu/e_exp10l.S: Include <shlib-compat.h>.
34225 (pow10l): Make into compat symbol.
34226 * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Remove
34227 pow10.
34228 (CFLAGS-nldbl-pow10.c): Remove variable..
34229 * sysdeps/ieee754/ldbl-opt/nldbl-pow10.c: Remove file.
34230 * sysdeps/ieee754/ldbl-opt/w_exp10_compat.c (pow10l): Condition on
34231 [SHLIB_COMPAT (libm, GLIBC_2_1, GLIBC_2_27)].
34232 * sysdeps/ieee754/ldbl-opt/w_exp10l_compat.c (compat_symbol):
34233 Undefine and redefine.
34234 (pow10l): Make into compat symbol.
34235 * sysdeps/aarch64/libm-test-ulps: Remove pow10 ulps.
34236 * sysdeps/alpha/fpu/libm-test-ulps: Likewise.
34237 * sysdeps/arm/libm-test-ulps: Likewise.
34238 * sysdeps/hppa/fpu/libm-test-ulps: Likewise.
34239 * sysdeps/i386/fpu/libm-test-ulps: Likewise.
34240 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
34241 * sysdeps/microblaze/libm-test-ulps: Likewise.
34242 * sysdeps/mips/mips32/libm-test-ulps: Likewise.
34243 * sysdeps/mips/mips64/libm-test-ulps: Likewise.
34244 * sysdeps/nios2/libm-test-ulps: Likewise.
34245 * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
34246 * sysdeps/powerpc/nofpu/libm-test-ulps: Likewise.
34247 * sysdeps/s390/fpu/libm-test-ulps: Likewise.
34248 * sysdeps/sh/libm-test-ulps: Likewise.
34249 * sysdeps/sparc/fpu/libm-test-ulps: Likewise.
34250 * sysdeps/tile/libm-test-ulps: Likewise.
34251 * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
34252
34253 2017-09-01 Paul Pluzhnikov <ppluzhnikov@google.com>
34254
34255 * stdlib/tst-atexit-common.c (crumbs): Ensure correct size.
34256
34257 2017-09-01 H.J. Lu <hongjiu.lu@intel.com>
34258
34259 * posix/tst-regex.c (do_test): Replace "../ChangeLog.8" with
34260 "../ChangeLog.old/ChangeLog.8".
34261 * posix/tst-regex2.c (do_test): Replace "../ChangeLog.14" with
34262 "../ChangeLog.old/ChangeLog.14".
34263
34264 2017-09-01 H.J. Lu <hongjiu.lu@intel.com>
34265
34266 * manual/contrib.texi: Credit Ulrich Drepper for the POSIX
34267 Threads Library.
34268
34269 2017-09-01 Joseph Myers <joseph@codesourcery.com>
34270
34271 * sysdeps/unix/sysv/linux/gentempfd.c: Include <string.h>.
34272
34273 2017-09-01 H.J. Lu <hongjiu.lu@intel.com>
34274
34275 * csu/version.c (banner): Remove "by Roland McGrath et al.".
34276 * nptl/Banner: Remove "by Ulrich Drepper et al.".
34277
34278 2017-09-01 Paul Pluzhnikov <ppluzhnikov@google.com>
34279
34280 * stdlib/tst-atexit-common.c (do_test): Test support for at least
34281 32 atexit handlers.
34282
34283 2017-09-01 Zack Weinberg <zackw@panix.com>
34284
34285 * math/math.h (HUGE_VAL): Improve commentary.
34286
34287 2017-09-01 Adhemerval Zanella <adhemerval.zanella@linaro.org>
34288 Andreas Schwab <schwab@suse.de>
34289
34290 [BZ #21530]
34291 * include/stdio.h (__gen_tempfd): New function.
34292 * stdio-common/Makefile (routines): Add gentempfd.
34293 * stdio-common/gentempfd.c: New file.
34294 * sysdeps/unix/sysv/linux/gentempfd.c: Likewise.
34295 * stdio-common/tmpfile.c (tmpfile): First try to use a system specific
34296 unnamed file first.
34297
34298 2017-09-01 Florian Weimer <fweimer@redhat.com>
34299
34300 [BZ #21915]
34301 [BZ #21922]
34302 * sysdeps/posix/getaddrinfo.c (gethosts): Look at NSS function
34303 result to determine success or failure, not the errno value.
34304 * nss/Makefile (tests): Add tst-nss-files-hosts-erange.
34305 (tst-nss-files-hosts-erange): Link with -ldl.
34306 * nss/tst-nss-files-hosts-erange.c: New file.
34307 * nss/tst-resolv-basic.c (response): Handle nodata.example.
34308 (do_test): Add NO_DATA tests.
34309 * resolv/tst-resolv-basic.c (test_nodata_nxdomain): New function.
34310 (do_test): Call it.
34311
34312 2017-09-01 Florian Weimer <fweimer@redhat.com>
34313
34314 [BZ #21922]
34315 * sysdeps/posix/getaddrinfo.c (gaih_inet): Report EAI_NODATA error
34316 coming from gethostbyname2_r.
34317
34318 2017-09-01 Florian Weimer <fweimer@redhat.com>
34319
34320 * support/namespace.h (struct support_chroot_configuration): Add
34321 hosts, host_conf.
34322 (struct support_chroot): Add path_hosts, path_host_conf.
34323 * support/support_chroot.c (write_file): New function.
34324 (support_chroot_create): Call it to process /etc/resolv.conf,
34325 /etc/hosts, /etc/host.conf.
34326 (support_chroot_free): Update.
34327
34328 2017-09-01 Florian Weimer <fweimer@redhat.com>
34329
34330 * sysdeps/posix/getaddrinfo.c (gaih_inet): Only use h_errno if
34331 status indicates it is set.
34332
34333 2017-09-01 Florian Weimer <fweimer@redhat.com>
34334
34335 [BZ #20532]
34336 * sysdeps/posix/getaddrinfo.c (gaih_inet): Make reporting of NSS
34337 function lookup failures more reliable.
34338
34339 2017-09-01 Florian Weimer <fweimer@redhat.com>
34340
34341 * sysdeps/posix/getaddrinfo.c (gethosts): Use h_errno directly.
34342 (getcanonname): Likewise.
34343 (gaih_inet): Likewise.
34344
34345 2017-09-01 Florian Weimer <fweimer@redhat.com>
34346
34347 * sysdeps/posix/getaddrinfo.c (gethosts): Use errno directly.
34348 (getcanonname): Likewise.
34349 (gaih_inet): Likewise.
34350
34351 2017-08-31 Steve Ellcey <sellcey@cavium.com>
34352 Richard Henderson <rth@twiddle.net>
34353
34354 * sysdeps/aarch64/fpu/s_llrint.c (OREG_SIZE): New macro.
34355 * sysdeps/aarch64/fpu/s_llround.c (OREG_SIZE): Likewise.
34356 * sysdeps/aarch64/fpu/s_llrintf.c (OREGS, IREGS): Remove.
34357 (IREG_SIZE, OREG_SIZE): New macros.
34358 * sysdeps/aarch64/fpu/s_llroundf.c: (OREGS, IREGS): Remove.
34359 (IREG_SIZE, OREG_SIZE): New macros.
34360 * sysdeps/aarch64/fpu/s_lrintf.c (IREGS): Remove.
34361 (IREG_SIZE): New macro.
34362 * sysdeps/aarch64/fpu/s_lroundf.c (IREGS): Remove.
34363 (IREG_SIZE): New macro.
34364 * sysdeps/aarch64/fpu/s_lrint.c (get-rounding-mode.h, stdint.h):
34365 New includes.
34366 (IREG_SIZE, OREG_SIZE): Initialize if not already set.
34367 (OREGS, IREGS): Set based on IREG_SIZE and OREG_SIZE.
34368 (__CONCATX): Handle exceptions correctly on large values that may
34369 set FE_INVALID.
34370 * sysdeps/aarch64/fpu/s_lround.c (IREG_SIZE, OREG_SIZE):
34371 Initialize if not already set.
34372 (OREGS, IREGS): Set based on IREG_SIZE and OREG_SIZE.
34373
34374 2017-08-31 Adhemerval Zanella <adhemerval.zanella@linaro.org>
34375
34376 * sysdeps/generic/not-cancel.h (NO_CANCELLATION): Remove macro.
34377 * sysdeps/unix/sysv/linux/aarch64/sysdep-cancel.h (NO_CANCELLATION):
34378 Likewise.
34379 * sysdeps/unix/sysv/linux/alpha/sysdep-cancel.h (NO_CANCELLATION):
34380 Likewise.
34381 * sysdeps/unix/sysv/linux/arm/sysdep-cancel.h (NO_CANCELLATION):
34382 Likewise.
34383 * sysdeps/unix/sysv/linux/hppa/sysdep-cancel.h (NO_CANCELLATION):
34384 Likewise.
34385 * sysdeps/unix/sysv/linux/i386/sysdep-cancel.h (NO_CANCELLATION):
34386 Likewise.
34387 * sysdeps/unix/sysv/linux/ia64/sysdep-cancel.h (NO_CANCELLATION):
34388 Likewise.
34389 * sysdeps/unix/sysv/linux/m68k/sysdep-cancel.h (NO_CANCELLATION):
34390 Likewise.
34391 * sysdeps/unix/sysv/linux/microblaze/sysdep-cancel.h
34392 (NO_CANCELLATION): Likewise.
34393 * sysdeps/unix/sysv/linux/mips/sysdep-cancel.h (NO_CANCELLATION):
34394 Likewise.
34395 * sysdeps/unix/sysv/linux/nios2/sysdep-cancel.h (NO_CANCELLATION):
34396 Likewise.
34397 * sysdeps/unix/sysv/linux/powerpc/sysdep-cancel.h (NO_CANCELLATION):
34398 Likewise.
34399 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep-cancel.h
34400 (NO_CANCELLATION): Likewise.
34401 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep-cancel.h
34402 (NO_CANCELLATION): Likewise.
34403 * sysdeps/unix/sysv/linux/sh/sysdep-cancel.h (NO_CANCELLATION):
34404 Likewise
34405 * sysdeps/unix/sysv/linux/sparc/sysdep-cancel.h (NO_CANCELLATION):
34406 Likewise.
34407 * sysdeps/unix/sysv/linux/tile/sysdep-cancel.h (NO_CANCELLATION):
34408 Likewise.
34409 * sysdeps/unix/sysv/linux/x86_64/sysdep-cancel.h (NO_CANCELLATION):
34410 Likewise.
34411 * sysdeps/unix/sysv/linux/not-cancel.h (__fcntl_nocancel): Add
34412 hidden prototype.
34413 * sysdeps/unix/sysv/linux/fcntl.c (__fcntl_nocancel): Define only
34414 for !IS_IN (rtld) and remove NO_CANCELLATION usage.
34415
34416 2017-08-31 Steve Ellcey <sellcey@cavium.com>
34417
34418 * sysdeps/aarch64/dl-irel.h: (elf_ifunc_invoke): Change argument type
34419 in resolver call.
34420
34421 2017-08-31 Florian Weimer <fweimer@redhat.com>
34422
34423 * include/libc-symbols.h (internal_function): Remove.
34424
34425 2017-08-31 Florian Weimer <fweimer@redhat.com>
34426
34427 * stdlib/fmtmsg.c (internal_addseverity): Remove
34428 internal_function.
34429
34430 2017-08-31 Florian Weimer <fweimer@redhat.com>
34431
34432 * stdio-common/printf_fp.c (group_number): Remove
34433 internal_function.
34434 * stdio-common/vfprintf.c (buffered_vfprintf): Likewise.
34435
34436 2017-08-31 Florian Weimer <fweimer@redhat.com>
34437
34438 * posix/fnmatch.c (internal_function): Remove definition.
34439 * posix/fnmatch_loop.c (FCT, EXT, END): Remove internal_function.
34440 * posix/regcomp.c (peek_token, init_word_char)
34441 (duplicate_node_closure, fetch_token, peek_token)
34442 (peek_token_bracket, build_range_exp, build_collating_symbol):
34443 Likewise.
34444 * posix/regex_internal.c (re_string_construct_common)
34445 (create_ci_newstate, create_cd_newstate, re_string_allocate)
34446 (re_string_construct, re_string_realloc_buffers, build_wcs_buffer)
34447 (build_wcs_upper_buffer, re_string_skip_chars, build_upper_buffer)
34448 (re_string_translate_buffer, re_string_reconstruct)
34449 (re_string_peek_byte_case, re_string_fetch_byte_case)
34450 (re_string_destruct, re_string_context_at, re_node_set_alloc)
34451 (re_node_set_init_1, re_node_set_init_2, re_node_set_init_copy)
34452 (re_node_set_add_intersect, re_node_set_init_union)
34453 (re_node_set_merge, re_node_set_insert, re_node_set_insert_last)
34454 (re_node_set_compare, re_node_set_contains, re_node_set_remove_at)
34455 (re_dfa_add_node, calc_state_hash, re_acquire_state)
34456 (re_acquire_state_context): Likewise.
34457 * posix/regex_internal.h (internal_function): Remove definition.
34458 (re_string_realloc_buffers, build_wcs_buffer)
34459 (build_wcs_upper_buffer, build_upper_buffer)
34460 (re_string_translate_buffer, re_string_context_at)
34461 (re_string_char_size_at, re_string_wchar_at)
34462 (re_string_elem_size_at): Likewise.
34463 * posix/regexec.c (match_ctx_init, match_ctx_clean)
34464 (match_ctx_free, match_ctx_add_entry, search_cur_bkref_entry)
34465 (match_ctx_add_subtop, match_ctx_add_sublast, sift_ctx_init)
34466 (re_search_internal, re_search_2_stub, re_search_stub)
34467 (re_copy_regs, prune_impossible_nodes, check_matching)
34468 (check_halt_state_context, update_regs, push_fail_stack, set_regs)
34469 (free_fail_stack_return, sift_states_iter_mb)
34470 (sift_states_backward, build_sifted_states)
34471 (update_cur_sifted_state, add_epsilon_src_nodes, check_dst_limits)
34472 (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos)
34473 (check_subexp_limits, sift_states_bkref, merge_state_array)
34474 (find_recover_state, transit_state, merge_state_with_log)
34475 (check_subexp_matching_top, transit_state_sb, transit_state_sb)
34476 (transit_state_mb, transit_state_bkref, get_subexp)
34477 (get_subexp_sub, find_subexp_node, check_arrival)
34478 (check_arrival_add_next_nodes, check_arrival_expand_ecl)
34479 (check_arrival_expand_ecl_sub, expand_bkref_cache, build_trtable)
34480 (check_node_accept_bytes, find_collation_sequence_value)
34481 (group_nodes_into_DFAstates, check_node_accept, extend_buffers)
34482 (acquire_init_state_context, check_halt_node_context)
34483 (proceed_next_node, pop_fail_stack, clean_state_log_if_needed)
34484 (sub_epsilon_src_nodes): Likewise.
34485 * posix/spawn_int.h (__spawn_valid_fd): Likewise.
34486 * posix/spawn_valid_fd (__spawn_valid_fd): Likewise.
34487 * posix/wordexp.c (parse_dollars, parse_backtick, parse_dquote)
34488 (eval_expr, w_addmem, w_addstr, w_addword, parse_backslash)
34489 (parse_qtd_backslash, parse_tilde, do_parse_glob, parse_glob)
34490 (parse_squote, eval_expr_val, eval_expr_multdiv, parse_arith)
34491 (exec_comm_child, exec_comm, parse_comm, parse_param): Likewise.
34492 * sysdeps/posix/ttyname.c (getttyname): Likewise.
34493 * sysdeps/posix/ttyname_r.c (getttyname_r): Likewise.
34494 * sysdeps/unix/sysv/linux/preadv.c (__atomic_preadv_replacement)
34495 (PREADV): Likewise.
34496 * sysdeps/unix/sysv/linux/preadv64.c (__atomic_preadv64_replacement)
34497 (PREADV): Likewise.
34498 * sysdeps/unix/sysv/linux/pwritev.c (__atomic_pwritev_replacement)
34499 (PWRITEV): Likewise.
34500 * sysdeps/unix/sysv/linux/pwritev64.c (__atomic_pwritev64_replacement)
34501 (PWRITEV): Likewise.
34502 * sysdeps/unix/sysv/linux/ttyname.c (getttyname): Likewise.
34503 * sysdeps/unix/sysv/linux/ttyname_r.c (getttyname_r): Likewise.
34504
34505 2017-08-31 Florian Weimer <fweimer@redhat.com>
34506
34507 * nptl/allocatestack.c (change_stack_perm, __deallocate_stack)
34508 (setxid_mark_thread, setxid_unmark_thread, setxid_signal_thread):
34509 Remove internal_function.
34510 * nptl/cancellation.c (__pthread_disable_asynccancel): Likewise.
34511 * nptl/libc_pthread_init.c (__libc_pthread_init): Likewise.
34512 * nptl/pthreadP.h (__find_in_stack_list, __free_tcb)
34513 (__deallocate_stack, __libc_pthread_init)
34514 (__pthread_mutex_cond_lock, __pthread_mutex_cond_lock_adjust)
34515 (__pthread_mutex_unlock_usercnt, __pthread_disable_asynccancel)
34516 (__libc_disable_asynccancel, __librt_disable_asynccancel):
34517 Likewise.
34518 * nptl/pthread_create.c (__find_in_stack_list, __free_tcb): Likewise.
34519 * nptl/pthread_mutex_cond_lock.c (__pthread_mutex_lock): Likewise.
34520 * nptl/pthread_mutex_lock.c (__pthread_mutex_cond_lock_adjust):
34521 Likewise.
34522 * nptl/pthread_mutex_unlock.c (__pthread_mutex_unlock_full)
34523 (__pthread_mutex_unlock_usercnt): Likewise.
34524
34525 2017-08-31 Florian Weimer <fweimer@redhat.com>
34526
34527 * io/fts.c (fts_alloc, fts_build, fts_lfree, fts_load)
34528 (fts_maxarglen, fts_padjust, fts_palloc, fts_sort, fts_stat)
34529 (fts_safe_changedir): Remove internal_function.
34530 * io/ftw.c (internal_function): Remove definition.
34531 (ftw_dir, process_entry, ftw_startup): Remove internal_function.
34532
34533 2017-08-31 Florian Weimer <fweimer@redhat.com>
34534
34535 * inet/deadline.c (__deadline_current_time)
34536 (__deadline_from_timeval, __deadline_to_ms): Remove
34537 internal_function.
34538 * inet/getnameinfo.c (nrl_domainname): Likewise.
34539 * inet/getnetgrent_r.c (__internal_setnetgrent_reuse): Likewise.
34540 * inet/inet6_option.c (add_pad): Likewise.
34541 * inet/net-internal.h (__deadline_current_time)
34542 (__deadline_from_timeval, __deadline_to_ms): Likewise.
34543 * inet/rcmd.c (__checkhost_sa, __icheckuser): Likewise.
34544 * sysdeps/mach/hurd/if_index.c (__protocol_available): Likewise.
34545 * sysdeps/unix/sysv/linux/ifaddrs.c (map_newlink): Likewise.
34546
34547 2017-08-31 Joseph Myers <joseph@codesourcery.com>
34548
34549 * math/math.h [__USE_ISOC99] (NAN): Define directly here. Do not
34550 include <bits/nan.h>.
34551 * math/Makefile (headers): Remove bits/nan.h.
34552 * bits/nan.h: Remove.
34553 * sysdeps/ieee754/bits/nan.h: Likewise.
34554 * sysdeps/mips/bits/nan.h: Likewise.
34555
34556 * math/math.h [__USE_ISOC99] (INFINITY): Define directly here. Do
34557 not include <bits/inf.h>.
34558 * math/Makefile (headers): Remove bits/inf.h.
34559 * bits/inf.h: Remove.
34560 * sysdeps/ieee754/bits/inf.h: Likewise.
34561
34562 * math/math.h: Do not include bits/huge_val.h, bits/huge_valf.h,
34563 bits/huge_vall.h or bits/huge_val_flt128.h.
34564 (HUGE_VAL): Define directly here.
34565 [__USE_ISOC99] (HUGE_VALF): Likewise.
34566 [__USE_ISOC99] (HUGE_VALL): Likewise.
34567 [__HAVE_FLOAT128 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
34568 (HUGE_VAL_F128): Likewise.
34569 * math/Makefile (headers): Remove bits/huge_val.h,
34570 bits/huge_valf.h, bits/huge_vall.h and bits/huge_val_flt128.h.
34571 * bits/huge_val.h: Remove.
34572 * bits/huge_val_flt128.h: Likewise.
34573 * bits/huge_valf.h: Likewise.
34574 * bits/huge_vall.h: Likewise.
34575 * sysdeps/ia64/bits/huge_vall.h: Likewise.
34576 * sysdeps/ieee754/bits/huge_val.h: Likewise.
34577 * sysdeps/ieee754/bits/huge_valf.h: Likewise.
34578 * sysdeps/m68k/m680x0/bits/huge_vall.h: Likewise.
34579 * sysdeps/sh/bits/huge_val.h: Likewise.
34580 * sysdeps/sparc/bits/huge_vall.h: Likewise.
34581 * sysdeps/x86/bits/huge_vall.h: Likewise.
34582
34583 2017-08-31 Florian Weimer <fweimer@redhat.com>
34584
34585 * elf/dl-addr-obj.c (_dl_addr_inside_object): Remove
34586 internal_function.
34587 * elf/dl-cache.c (_dl_cache_libcmp, _dl_load_cache_lookup):
34588 Likewise.
34589 * elf/dl-debug.c (_dl_debug_initialize): Likewise.
34590 * elf/dl-deps.c (_dl_build_local_scope, _dl_map_object_deps): Likewise.
34591 * elf/dl-environ.c (_dl_next_ld_env_entry): Likewise.
34592 * elf/dl-execstack.c (_dl_make_stack_executable): Likewise.
34593 * elf/dl-fini.c (_dl_sort_fini): Likewise.
34594 * elf/dl-hwcaps.c (_dl_important_hwcaps): Likewise.
34595 * elf/dl-libc.c (dlerror_run): Likewise.
34596 * elf/dl-load.c (add_name_to_object, decompose_rpath)
34597 (_dl_init_paths, _dl_map_object, _dl_rtld_di_serinfo): Likewise.
34598 * elf/dl-lookup.c (add_dependency, _dl_debug_bindings)
34599 (_dl_lookup_symbol_x, _dl_setup_hash, _dl_debug_bindings):
34600 Likewise.
34601 * elf/dl-misc.c (_dl_sysdep_read_whole_file, _dl_name_match_p)
34602 (_dl_higher_prime_number, _dl_strtoul): Likewise.
34603 * elf/dl-object.c (_dl_add_to_namespace_list, _dl_new_object): Likewise.
34604 * elf/dl-profile.c (_dl_start_profile): Likewise.
34605 * elf/dl-reloc.c (_dl_try_allocate_static_tls)
34606 (_dl_allocate_static_tls, _dl_protect_relro, _dl_reloc_bad_type):
34607 Likewise.
34608 * elf/dl-support.c (_dl_aux_init, _dl_non_dynamic_init): Likewise.
34609 * elf/dl-sym.c (_dl_tls_symaddr, do_sym): Likewise.
34610 * elf/dl-sysdep.c (_dl_sysdep_start_cleanup, _dl_show_auxv): Likewise.
34611 * elf/dl-tls.c (_dl_next_tls_modid, _dl_count_modids)
34612 (_dl_determine_tlsoffset, allocate_dtv, _dl_get_tls_static_info)
34613 (_dl_allocate_tls_storage): Likewise.
34614 * elf/dl-version.c (match_symbol, _dl_check_map_versions)
34615 (_dl_check_all_versions): Likewise.
34616 * elf/dynamic-link.h (_dl_try_allocate_static_tls): Likewise.
34617 * elf/tlsdeschtab.h (_dl_make_tlsdesc_dynamic): Likewise.
34618 * elf/tst-_dl_addr_inside_object.c (_dl_addr_inside_object): Likewise.
34619 * sysdeps/aarch64/dl-tlsdesc.h (_dl_make_tlsdesc_dynamic): Likewise.
34620 * sysdeps/aarch64/tlsdesc.c (_dl_unmap): Likewise.
34621 * sysdeps/arm/dl-lookupcfg.h (_dl_unmap): Likewise.
34622 * sysdeps/arm/dl-machine.h (elf_machine_load_address): Remove
34623 internal_function from __dl_start.
34624 * sysdeps/arm/dl-tlsdesc.h (_dl_unmap): Remove internal_function.
34625 * sysdeps/generic/dl-cache.h (_dl_cache_libcmp): Likewise.
34626 * sysdeps/generic/ldsodefs.h (_dl_name_match_p)
34627 (_dl_higher_prime_number, _dl_strtoul, _dl_map_object)
34628 (_dl_map_object_deps, _dl_setup_hash, _dl_rtld_di_serinfo)
34629 (_dl_lookup_symbol_x, _dl_add_to_namespace_list, _dl_new_object)
34630 (_dl_protect_relro, _dl_reloc_bad_type, _dl_check_all_versions)
34631 (_dl_check_map_versions, _dl_sort_fini, _dl_debug_initialize)
34632 (_dl_init_paths, _dl_start_profile, _dl_show_auxv)
34633 (_dl_next_ld_env_entry, _dl_important_hwcaps)
34634 (_dl_load_cache_lookup, _dl_sysdep_read_whole_file)
34635 (_dl_sysdep_start_cleanup, _dl_next_tls_modid, _dl_count_modids)
34636 (_dl_determine_tlsoffset, _dl_get_tls_static_info)
34637 (_dl_allocate_static_tls, _dl_allocate_tls_storage)
34638 (_dl_addr_inside_object, _dl_non_dynamic_init, _dl_aux_init):
34639 Likewise.
34640 (struct rtld_global_ro): Remove internal_function from the
34641 _dl_lookup_symbol_x member.
34642 (_dl_symbol_value): Remove. No longer defined anywhere.
34643 * sysdeps/i386/dl-lookupcfg.h (_dl_unmap): Remove
34644 internal_function.
34645 * sysdeps/i386/dl-tlsdesc.h (_dl_make_tlsdesc_dynamic): Likewise.
34646 * sysdeps/i386/tlsdesc.c (_dl_unmap): Likewise.
34647 * sysdeps/mach/hurd/dl-sysdep.c (_dl_show_auxv): Likewise.
34648 * sysdeps/nios2/dl-init.c (_dl_nios2_get_gp_value): Likewise.
34649 * sysdeps/tile/dl-lookupcfg.h (_dl_unmap): Likewise.
34650 * sysdeps/tile/dl-machine.h (_dl_after_load): Likewise.
34651 * sysdeps/tile/dl-runtime.c (_dl_after_load, _dl_unmap): Likewise.
34652 * sysdeps/unix/sysv/linux/dl-vdso.c (_dl_vdso_vsym): Likewise.
34653 * sysdeps/unix/sysv/linux/dl-vdso.h (_dl_vdso_vsym): Likewise.
34654 * sysdeps/x86_64/dl-lookupcfg.h (_dl_unmap): Likewise.
34655 * sysdeps/x86_64/dl-tlsdesc.h (_dl_make_tlsdesc_dynamic): Likewise.
34656 * sysdeps/x86_64/tlsdesc.c (_dl_unmap): Likewise.
34657
34658 2017-08-31 Florian Weimer <fweimer@redhat.com>
34659
34660 * gmon/gmon.c (write_hist, write_call_graph, write_bb_counts):
34661 Remove internal_function.
34662 * sysdeps/arm/machine-gmon.h (mcount_internal, _MCOUNT_DECL):
34663 Likewise.
34664 * sysdeps/sparc/machine-gmon.h (mcount_internal, _MCOUNT_DECL):
34665 Likewise.
34666
34667 2017-08-31 Florian Weimer <fweimer@redhat.com>
34668
34669 * dlfcn/dlerror.c (_dlerror_run): Remove internal_function.
34670 * elf/dl-sym.c (_dl_vsym, _dl_sym): Likewise.
34671 * include/dlfcn.h (_dl_sym, _dl_vsym, _dlerror_run): Likewise.
34672
34673 2017-08-31 Florian Weimer <fweimer@redhat.com>
34674
34675 * resolv/gai_misc.c (__gai_find_request, __gai_remove_request)
34676 (__gai_enqueue_request): Remove internal_function.
34677 * resolv/gai_misc.h (__gai_enqueue_request, __gai_find_request)
34678 (__gai_remove_request, __gai_notify, __gai_notify_only)
34679 (__gai_sigqueue): Likewise.
34680 * resolv/gai_notify.c (__gai_notify_only, __gai_notify): Likewise.
34681 * resolv/gai_sigqueue.c (__gai_sigqueue): Likewise.
34682 * resolv/inet_ntop.c (inet_ntop4, inet_ntop6): Likewise.
34683 * sysdeps/unix/sysv/linux/gai_sigqueue.c (__gai_sigqueue):
34684 Likewise.
34685
34686 2017-08-31 Florian Weimer <fweimer@redhat.com>
34687
34688 * dirent/scandir-tail.c (SCANDIR_TAIL): Remove internal_function.
34689 * include/dirent.h (__opendirat, __getdents, __getdents64)
34690 (__alloc_dir, __scandir_tail, __scandir64_tail): Likewise.
34691 * sysdeps/posix/opendir.c (__opendirat, __alloc_dir): Likewise.
34692 * sysdeps/mach/hurd/opendir.c (__opendirat): Likewise.
34693 * sysdeps/unix/sysv/linux/i386/olddirent.h (__old_getdents64):
34694 Likewise.
34695 * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS): Likewise.
34696
34697 2017-08-31 Florian Weimer <fweimer@redhat.com>
34698
34699 * sysdeps/unix/sysv/linux/getcwd.c (generic_getcwd): Remove
34700 internal_function.
34701 (GETCWD_RETURN_TYPE): Likewise.
34702
34703 2017-08-31 Florian Weimer <fweimer@redhat.com>
34704
34705 * include/time.h (__tz_compute, __strptime_internal): Remove
34706 internal_function.
34707 * time/strptime_l.c (__strptime_internal): Likewise.
34708 * time/tzset.c (compute_change, update_vars, __tz_compute): Likewise.
34709
34710 2017-08-31 Florian Weimer <fweimer@redhat.com>
34711
34712 * iconv/gconv.c (__gconv): Remove internal_function.
34713 * iconv/gconv_builtin.c (__gconv_get_builtin_trans): Likewise.
34714 * iconv/gconv_cache.c (__gconv_load_cache, find_module_idx)
34715 (find_module, __gconv_compare_alias_cache, __gconv_lookup_cache)
34716 (__gconv_release_cache): Likewise.
34717 * iconv/gconv_close.c (__gconv_close): Likewise.
34718 * iconv/gconv_conf.c (detect_conflict, insert_module, add_module)
34719 (read_conf_file, __gconv_get_path): Likewise.
34720 * iconv/gconv_db.c (derivation_lookup, add_derivation)
34721 (__gconv_release_step, gen_steps, increment_counter)
34722 (find_derivation, __gconv_compare_alias, __gconv_find_transform)
34723 (__gconv_close_transform, free_modules_db): Likewise.
34724 * iconv/gconv_dl.c (__gconv_find_shlib, __gconv_release_shlib):
34725 Likewise.
34726 * iconv/gconv_int.h (__gconv_open, __gconv_close, __gconv)
34727 (__gconv_find_transform, __gconv_lookup_cache)
34728 (__gconv_release_step, __gconv_load_cache, __gconv_get_path)
34729 (__gconv_close_transform, __gconv_release_cache)
34730 (__gconv_loaded_object, __gconv_release_shlib)
34731 (__gconv_compare_alias): Likewise.
34732 * iconv/gconv_open.c (__gconv_open): Likewise.
34733 * iconv/iconv_prog.c (print_known_names, add_known_names): Likewise.
34734 * iconv/iconvconfig.c (add_module): Likewise.
34735 * intl/dcigettext.c (plural_lookup, guess_category_value)
34736 (category_to_name, get_output_charset, _nl_find_msg): Likewise.
34737 * intl/eval-plural.h (plural_eval): Likewise.
34738 * intl/finddomain.c (_nl_find_domain): Likewise.
34739 * intl/gettextP.h (_nl_unload_domain, _nl_find_domain)
34740 (_nl_load_domain, _nl_find_msg): Likewise.
34741 (internal_function): Remove definition.
34742 * intl/loadinfo.h (internal_function): Likewise.
34743 * intl/loadmsgcat.c (_nl_load_domain, _nl_unload_domain): Remove
34744 internal_function.
34745 * intl/localealias.c (internal_function): Remove definition.
34746 (read_alias_file): Remove internal_function.
34747 * intl/plural-exp.c (EXTRACT_PLURAL_EXPRESSION): Likewise.
34748 * intl/plural-exp.h (internal_function): Remove definition.
34749 (FREE_EXPRESSION, EXTRACT_PLURAL_EXPRESSION): Remove
34750 internal_function.
34751 * intl/plural.c: Regenerate.
34752 * intl/plural.y (FREE_EXPRESSION): Remove internal_function.
34753 * locale/coll-lookup.c (__collidx_table_lookup)
34754 (__collseq_table_lookup): Likewise.
34755 * locale/coll-lookup.h (__collidx_table_lookup)
34756 (__collseq_table_lookup): Likewise.
34757 * locale/findlocale.c (_nl_find_locale, _nl_remove_locale): Likewise.
34758 * locale/loadarchive.c (_nl_load_locale_from_archive): Likewise.
34759 * locale/loadlocale.c (_nl_intern_locale_data, _nl_load_locale)
34760 (_nl_unload_locale): Likewise.
34761 * locale/localeinfo.h (struct __locale_data): Remove
34762 internal_function from cleanup member.
34763 (_nl_find_locale, _nl_load_locale, _nl_unload_locale)
34764 (_nl_remove_locale, _nl_load_locale_from_archive)
34765 (_nl_intern_locale_data, _nl_get_era_entry, _nl_select_era_entry)
34766 (_nl_get_alt_digit, _nl_get_walt_digit, _nl_parse_alt_digit)
34767 (_nl_cleanup_time): Remove internal_function.
34768 * time/alt_digit.c (_nl_get_alt_digit, _nl_get_walt_digit)
34769 (_nl_parse_alt_digit): Likewise.
34770 * time/era.c (_nl_init_era_entries, _nl_get_era_entry)
34771 (_nl_select_era_entry): Likewise.
34772 * time/lc-time-cleanup.c (_nl_cleanup_time): Likewise.
34773 * wcsmbs/wcsmbsload.c (__wcsmbs_load_conv, __wcsmbs_clone_conv)
34774 (__wcsmbs_named_conv, _nl_cleanup_ctype): Likewise.
34775 * wcsmbs/wcsmbsload.h (__wcsmbs_load_conv, __wcsmbs_clone_conv)
34776 (__wcsmbs_named_conv, _nl_cleanup_ctype): Likewise.
34777
34778 2017-08-31 Florian Weimer <fweimer@redhat.com>
34779
34780 * rt/aio_sigqueue.c (__aio_sigqueue): Remove internal_function.
34781 * sysdeps/generic/aio_misc.h (__aio_sigqueue): Likewise.
34782 * sysdeps/pthread/aio_misc.c (__aio_free_request, __aio_find_req)
34783 (__aio_find_req_fd, __aio_remove_request, __aio_enqueue_request):
34784 Likewise.
34785 * sysdeps/pthread/aio_misc.h (__aio_enqueue_request)
34786 (__aio_find_req, __aio_find_req_fd, __aio_free_request)
34787 (__aio_notify, __aio_notify_only, __aio_sigqueue): Likewise.
34788 * sysdeps/pthread/aio_notify.c (__aio_notify_only, __aio_notify):
34789 Likewise.
34790 * sysdeps/unix/sysv/linux/aio_sigqueue.c (__aio_sigqueue): Likewise.
34791
34792 2017-08-31 Florian Weimer <fweimer@redhat.com>
34793
34794 * misc/getttyent.c (skip, value): Remove internal_function.
34795 * misc/syslog.c (openlog_internal): Likewise.
34796 * misc/tsearch.c (trecurse, tdestroy_recurse): Likewise.
34797
34798 2017-08-31 Florian Weimer <fweimer@redhat.com>
34799
34800 * include/nss.h (__nss_valid_field, __nss_valid_list_field)
34801 (__nss_rewrite_field): Remove internal_function.
34802 * nscd/nscd_getgr_r.c (nscd_getgr_r): Likewise.
34803 * nscd/nscd_gethst_r.c (nscd_gethst_r): Likewise.
34804 * nscd/nscd_getpw_r.c (nscd_getpw_r): Likewise.
34805 * nss/nsswitch.c (nss_parse_file, nss_getline)
34806 (nss_parse_service_list, nss_new_service): Likewise.
34807 * nss/rewrite_field.c (__nss_rewrite_field): Likewise.
34808 * nss/valid_field.c (__nss_valid_field): Likewise.
34809 * nss/valid_list_field.c (__nss_valid_list_field): Likewise.
34810
34811 2017-08-31 Florian Weimer <fweimer@redhat.com>
34812
34813 * malloc/arena.c (__malloc_fork_lock_parent)
34814 (__malloc_fork_unlock_parent, __malloc_fork_unlock_child)
34815 (next_env_entry, new_heap, heap_trim, arena_get2): Remove
34816 internal_function from defintions.
34817 * malloc/hooks.c (mem2mem_check, mem2chunk_check): Likewise.
34818 * malloc/malloc-internal.h (__malloc_fork_lock_parent)
34819 (__malloc_fork_unlock_parent, __malloc_fork_unlock_child): Remove
34820 internal_function from declarations.
34821 * malloc/malloc.c (internal_function): Do not define.
34822 (mem2mem_check): Remove internal_function from declaration.
34823 (munmap_chunk, mremap_chunk): Remove internal_function.
34824 * malloc/mtrace.c (tr_where): Likewise.
34825
34826 2017-08-31 Florian Weimer <fweimer@redhat.com>
34827
34828 * include/rpc/pmap_clnt.h (__get_socket): Remove
34829 internal_function.
34830 * sunrpc/auth_des.c (synchronize): Likewise.
34831 * sunrpc/auth_unix.c (marshal_new_auth): Likewise.
34832 * sunrpc/clnt_perr.c (auth_errmsg): Likewise.
34833 * sunrpc/des_impl.c (des_encrypt, des_set_key): Likewise.
34834 * sunrpc/key_call.c (key_call_keyenvoy, key_call_socket)
34835 (key_call): Likewise.
34836 * sunrpc/pm_getport.c (__get_socket): Likewise.
34837 * sunrpc/pmap_rmt.c (getbroadcastnets): Likewise.
34838 * sunrpc/svc_unix.c (makefd_xprt): Likewise.
34839 * sunrpc/svc_tcp.c (makefd_xprt): Likewise.
34840 * sunrpc/svcauth_des.c (cache_init, cache_spot, cache_ref)
34841 (invalidate): Likewise.
34842 * sunrpc/xcrypt.c (hexval, hex2bin, bin2hex): Likewise.
34843 * sunrpc/xdr_rec.c (fix_buf_size, skip_input_bytes, flush_out)
34844 (set_input_fragment, get_input_bytes): Likewise.
34845
34846 2017-08-31 Florian Weimer <fweimer@redhat.com>
34847
34848 * malloc/malloc.c (_int_free): Remove locked variable and related
34849 asserts.
34850
34851 2017-08-31 H.J. Lu <hongjiu.lu@intel.com>
34852
34853 [BZ #22051]
34854 * Makerules (build-module-helper-objlist): Filter out
34855 $(elf-objpfx)sofini.os.
34856 (build-shlib-objlist): Append $(elf-objpfx)sofini.os if it is
34857 needed.
34858
34859 2017-08-31 Florian Weimer <fweimer@redhat.com>
34860
34861 * libio/fcloseall.c: Assume weak_alias is defined.
34862 * libio/feof.c: Likewise.
34863 * libio/fileno.c: Likewise.
34864 * libio/fileops.c: Assume _LIBC, errno, __set_errno are defined.
34865 (_POSIX_SOURCE, open, lseek, read, write): Remove macro
34866 definitions.
34867 (_IO_file_open): Call __open directly.
34868 (_IO_new_file_sync): Assume ESPIPE is defined.
34869 (_IO_file_seekoff_maybe_mmap): Call __read directly.
34870 (_IO_new_file_write): Call __write directly.
34871 * libio/ftello.c (__ftello): Assume EIO, EOVERFLOW are defined.
34872 * libio/ftello64.c (__ftello64): Assume EIO is defined.
34873 * libio/genops.c: Assume _LIBC is defined.
34874 (save_for_backup): Remove internal_function.
34875 * libio/getc.c: Assume weak_alias is defined.
34876 * libio/getwc.c: Likewise.
34877 * libio/iofclose.c: Assume _LIBC is defined.
34878 * libio/iofdopen.c: Likewise.
34879 (_IO_fcntl): Remove macro definition.
34880 (_IO_new_fdopen): Assume F_GETFL, F_SETFL, O_ACCMODE are defined.
34881 Call __fcntl directly.
34882 * libio/iofflush.c: Assume weak_alias is defined.
34883 * libio/iofgetpos.c (_IO_new_fgetpos): Assume EIO, EOVERFLOW are
34884 defined.
34885 * libio/iofgetpos64.c (_IO_new_fgetpos64): Assume EIO is defined.
34886 * libio/iofgets.c: Likewise.
34887 * libio/iofopen.c: Assume _LIBC is defined.
34888 * libio/iofopen64.c: Assume _LIBC, weak_alias are defined.
34889 * libio/iofputs.c: Assume weak_alias is defined.
34890 * libio/iofread.c: Likewise.
34891 * libio/iofsetpos.c (_IO_new_fsetpos): Assume EIO is defined.
34892 * libio/iofsetpos64.c (_IO_new_fsetpos64): Likewise.
34893 * libio/ioftell.c: Assume weak_alias is defined.
34894 (_IO_ftell): Assume EIO, EOVERFLOW are defined.
34895 * libio/iofwide.c: Assume _LIBC is defined.
34896 (_IO_fwide): Drop SHARED conditional because it is implied by
34897 SHLIB_COMPAT.
34898 * libio/iofwrite.c: Assume weak_alias is defined.
34899 * libio/iogetdelim.c: Likewise.
34900 * libio/iogets.c: Assume _LIBC, weak_alias are defined.
34901 * libio/iogetwline.c (wmemcpy): Remove macro definition.
34902 (_IO_getwline): Call __wmemcpy directly.
34903 * libio/iopopen.c: Assume _LIBC is defined.
34904 (_POSIX_SOURCE, _IO_fork, _IO_dup2, _IO_waitpid, _IO_execl)
34905 (_IO_close): Remove macro definitions.
34906 (_IO_new_proc_open): Call __fork, __dup2, __close_nocancel, execl,
34907 _exit directly.
34908 (_IO_new_proc_close): Call __close_nocancel, __waitpid_nocancel
34909 directly.
34910 * libio/ioputs.c: Assume weak_alias is defined.
34911 * libio/ioseekoff.c: Assume errno, __set_errno are defined.
34912 * libio/iosetbuffer.c: Assume weak_alias is defined.
34913 * libio/iosetvbuf.c: Likewise.
34914 * libio/ioungetc.c: Likewise.
34915 * libio/libioP.h: Assume _LIBC, __GLIBC__, libc_hidden_proto,
34916 libc_hidden_def, libc_hidden_weak, NULL are defined.
34917 (mmap, munmap, ftruncate, OS_FSTAT): Remove macro definitions.
34918 * libio/oldfilepos.c: Assume _LIBC, errno, __set_errno are
34919 defined.
34920 (_POSIX_SOURCE, open, lseek, read, write): Remove macro
34921 definitions.
34922 (_IO_old_file_init_internal): Drop SHARED conditional because it
34923 is implied by SHLIB_COMPAT.
34924 (_IO_old_file_fopen): Call __open directly.
34925 (_IO_old_file_sync): Assume ESPIPE is defined.
34926 (_IO_old_file_write): Call __write directly.
34927 * libio/oldfdopen.c (_IO_fcntl): Remove macro definition.
34928 (_IO_old_fdopen): Assume F_GETFL, O_ACCMODE, F_SETFL are defined.
34929 Call __fcntl directly.
34930 * libio/oldiofgetpos.c: Assume weak_alias is defined.
34931 (_IO_old_fgetpos): Assume EIO is defined.
34932 * libio/oldiofgetpos64.c: Assume weak_alias is defined.
34933 (_IO_old_fgetpos64): Assume EIO is defined.
34934 * libio/oldiofsetpos.c: Assume weak_alias is defined.
34935 (_IO_old_fsetpos): Assume EIO is defined.
34936 * libio/oldiofsetpos64.c: Assume weak_alias is defined.
34937 (_IO_old_fsetpos64): Assume EIO is defined.
34938 * libio/oldiopopen.c: Assume _LIBC is defined.
34939 (_POSIX_SOURCE, _IO_fork, _IO_dup2, _IO_waitpid, _IO_execl)
34940 (_IO_close): Remove macro definitions.
34941 (_IO_old_proc_open): Call __pipe, __close, __dup2, execl, _exit
34942 directly.
34943 (_IO_old_proc_close): Call __close, __waitpid directly.
34944 * libio/put.c: Assume weak_alias is defined.
34945 * libio/stdfiles.c: Assume _LIBC is defined.
34946 * libio/stdio.c: Likewise.
34947 * libio/wfileops.c: Likewise.
34948 (_IO_wfile_sync): Assume ESPIPE is defined.
34949 * libio/wgenops.c: Assume _LIBC is defined.
34950 (save_for_wbackup): Remove internal_function.
34951
34952 2017-08-31 Florian Weimer <fweimer@redhat.com>
34953
34954 * malloc/malloc.c (top_check): Change return type to void. Remove
34955 internal_function.
34956 * malloc/hooks.c (top_check): Likewise.
34957 (malloc_check, realloc_check, memalign_check): Adjust.
34958
34959 2017-08-30 Joseph Myers <joseph@codesourcery.com>
34960
34961 [BZ #21457]
34962 * sysdeps/arm/sys/ucontext.h: Do not include <bits/sigcontext.h>.
34963 * sysdeps/generic/sys/ucontext.h: Add comment about use of struct
34964 sigcontext and namespace requirements.
34965 * sysdeps/i386/sys/ucontext.h: Do not include <bits/sigcontext.h>.
34966 * sysdeps/m68k/sys/ucontext.h: Likewise.
34967 * sysdeps/mips/sys/ucontext.h: Likewise. Include <bits/types.h>.
34968 * sysdeps/unix/sysv/linux/aarch64/sys/ucontext.h: Do not include
34969 <bits/sigcontext.h>.
34970 (__ctx): Define earlier.
34971 (mcontext_t): Define structure contents rather than using struct
34972 sigcontext.
34973 * sysdeps/unix/sysv/linux/aarch64/ucontext_i.sym (oEXTENSION): Use
34974 __glibc_reserved1 instead of __reserved.
34975 * sysdeps/unix/sysv/linux/alpha/sys/ucontext.h: Do not include
34976 <bits/sigcontext.h>.
34977 (__ctx): Define earlier.
34978 (mcontext_t): Define structure contents rather than using struct
34979 sigcontext.
34980 * sysdeps/unix/sysv/linux/alpha/ucontext-offsets.sym: Use
34981 mcontext_t instead of struct sigcontext.
34982 * sysdeps/unix/sysv/linux/arm/sys/ucontext.h: Do not include
34983 <bits/sigcontext.h>.
34984 (__ctx): Define earlier.
34985 (mcontext_t): Define structure contents rather than using struct
34986 sigcontext.
34987 * sysdeps/unix/sysv/linux/hppa/sys/ucontext.h: Do not include
34988 <bits/sigcontext.h>.
34989 (__ctx): Define earlier.
34990 (mcontext_t): Define structure contents rather than using struct
34991 sigcontext.
34992 * sysdeps/unix/sysv/linux/ia64/makecontext.c (__makecontext): Use
34993 mcontext_t instead of struct sigcontext.
34994 * sysdeps/unix/sysv/linux/ia64/sigcontext-offsets.sym: Use
34995 mcontext_t instead of struct sigcontext.
34996 * sysdeps/unix/sysv/linux/ia64/sys/ucontext.h: Do not include
34997 <bits/sigcontext.h>.
34998 (__ctx): New macro.
34999 (struct __ia64_fpreg_mcontext): New type.
35000 (mcontext_t): Define structure contents rather than using struct
35001 sigcontext.
35002 (_SC_GR0_OFFSET): Use mcontext_t instead of struct sigcontext.
35003 (uc_sigmask): Define using __ctx.
35004 (uc_stack): Likewise.
35005 * sysdeps/unix/sysv/linux/ia64/sys/procfs.h: Include
35006 <bits/sigcontext.h>.
35007 * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Likewise.
35008 * sysdeps/unix/sysv/linux/m68k/sys/ucontext.h: Do not include
35009 <bits/sigcontext.h>.
35010 * sysdeps/unix/sysv/linux/microblaze/sys/ucontext.h: New file.
35011 * sysdeps/unix/sysv/linux/mips/sys/ucontext.h: Do not include
35012 <bits/sigcontext.h>.
35013 * sysdeps/unix/sysv/linux/nios2/sys/ucontext.h: Do not include
35014 <bits/sigcontext.h>.
35015 * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h: Do not include
35016 <bits/sigcontext.h>.
35017 * sysdeps/unix/sysv/linux/s390/sys/ucontext.h: Do not include
35018 <bits/sigcontext.h>.
35019 * sysdeps/unix/sysv/linux/sh/sys/ucontext.h: Do not include
35020 <bits/sigcontext.h>.
35021 * sysdeps/unix/sysv/linux/sparc/sys/ucontext.h: Do not include
35022 <bits/sigcontext.h>.
35023 * sysdeps/unix/sysv/linux/tile/sys/ucontext.h: Do not include
35024 <bits/sigcontext.h>.
35025 (__ctx): Define earlier.
35026 (mcontext_t): Define structure contents rather than using struct
35027 sigcontext.
35028 * sysdeps/unix/sysv/linux/x86/sys/ucontext.h: Do not include
35029 <bits/sigcontext.h>. Include <bits/types.h>.
35030 * conform/Makefile (test-xfail-XPG42/signal.h/conform): Remove.
35031 (test-xfail-XPG42/sys/wait.h/conform): Likewise.
35032 (test-xfail-XPG42/ucontext.h/conform): Likewise.
35033 (test-xfail-UNIX98/signal.h/conform): Likewise.
35034 (test-xfail-UNIX98/sys/wait.h/conform): Likewise.
35035 (test-xfail-UNIX98/ucontext.h/conform): Likewise.
35036 (test-xfail-XOPEN2K/signal.h/conform): Likewise.
35037 (test-xfail-XOPEN2K/sys/wait.h/conform): Likewise.
35038 (test-xfail-XOPEN2K/ucontext.h/conform): Likewise.
35039 (test-xfail-POSIX2008/signal.h/conform): Likewise.
35040 (test-xfail-POSIX2008/sys/wait.h/conform): Likewise.
35041 (test-xfail-XOPEN2K8/signal.h/conform): Likewise.
35042 (test-xfail-XOPEN2K8/sys/wait.h/conform): Likewise.
35043
35044 2017-08-30 Florian Weimer <fweimer@redhat.com>
35045
35046 * malloc/dynarray_emplace_enlarge.c
35047 (__libc_dynarray_emplace_enlarge): Set errno on overflow.
35048 * malloc/dynarray_resize.c (__libc_dynarray_resize): Likewise.
35049 * malloc/tst-dynarray.c (test_long_overflow): New function.
35050 (do_test): Call it.
35051
35052 2017-08-30 Florian Weimer <fweimer@redhat.com>
35053
35054 * malloc/malloc.c (ARENA_CORRUPTION_BIT, arena_is_corrupt)
35055 (set_arena_corrupt): Remove definitions.
35056 (mtrim): Do not check for corrupt arena.
35057 * malloc/arena.c (arena_lock, reused_arena, arena_get_retry):
35058 Likewise.
35059
35060 2017-08-30 Florian Weimer <fweimer@redhat.com>
35061
35062 [BZ #21754]
35063 * malloc/arena.c (TUNABLE_CALLBACK set_mallopt_check): Do not set
35064 check_action.
35065 (ptmalloc_init): Do not set or use check_action.
35066 * malloc/hooks.c (malloc_check_get_size, realloc_check): Adjust
35067 call to malloc_printerr. Remove return statement.
35068 (free_check): Likewise. Remove arena unlock.
35069 (top_check): Update comment. Adjust call to malloc_printerr.
35070 Remove heap repair code.
35071 * malloc/malloc.c (unlink): Adjust calls to malloc_printerr.
35072 (DEFAULT_CHECK_ACTION, check_action): Remove definitions.
35073 (sysmalloc): Adjust call to malloc_printerr.
35074 (munmap_chunk, __libc_realloc): Likewise. Remove return
35075 statement.
35076 (_int_malloc, int_realloc): Likewise. Remove errstr variable.
35077 Remove errout label and corresponding gotos.
35078 (_int_free): Likewise. Remove arena unlock.
35079 (do_set_mallopt_check): Do not set check_action.
35080 (malloc_printerr): Adjust parameter list. Do not mark arena as
35081 corrupt.
35082 * manual/memory.texi (Malloc Tunable Parameters): Remove TODO
35083 comment.
35084 * manual/probes.texi (Memory Allocation Probes): Remove
35085 memory_mallopt_check_action.
35086
35087 2017-08-30 Steve Ellcey <sellcey@cavium.com>
35088
35089 * sysdeps/unix/sysv/linux/aarch64/makecontext.c (__makecontext):
35090 Use pointer to uint64_t instead of long int for sp.
35091
35092 2017-08-30 Florian Weimer <fweimer@redhat.com>
35093
35094 [BZ #21754]
35095 * malloc/malloc.c (malloc_printerr): Always terminate the process,
35096 without printing a backtrace. Do not leak any information in the
35097 error message.
35098 * manual/memory.texi (Heap Consistency Checking): Update.
35099 * manual/tunables.texi (Memory Allocation Tunables): Likewise.
35100
35101 2017-08-30 Florian Weimer <fweimer@redhat.com>
35102
35103 Do not scale NPTL tests with available number of CPUs.
35104 * nptl/tst-cond16.c (count): Set to constant value of 8.
35105 * nptl/tst-cond18.c (count): Likewise.
35106
35107 2017-08-29 Joseph Myers <joseph@codesourcery.com>
35108
35109 [BZ #22035]
35110 * sysdeps/m68k/m680x0/fpu/bits/mathinline.h (__inline_functions):
35111 Define to take a second argument that is a macro that
35112 concatentates a suffix, not the suffix itself.
35113 (__CONCAT_d): New macro.
35114 (__CONCAT_f): Likewise.
35115 (__CONCAT_l): Likewise.
35116
35117 2017-08-29 Paul Pluzhnikov <ppluzhnikov@google.com>
35118
35119 * stdlib/tst-atexit-common.c (do_test): Test handler inheritance
35120 by child.
35121
35122 2017-08-29 Adhemerval Zanella <adhemerval.zanella@linaro.org>
35123 Aurelien Jarno <aurelien@aurel32.net>
35124 Maciej W. Rozycki <macro@imgtec.com>
35125
35126 [BZ #21956]
35127 * sysdeps/unix/sysv/linux/mips/mips32/mips16/Makefile
35128 [subdir = misc] (sysdep_routines): Remove `mips16-syscall5',
35129 `mips16-syscall6' and `mips16-syscall7'.
35130 (CFLAGS-mips16-syscall5.c, CFLAGS-mips16-syscall6.c)
35131 (CFLAGS-mips16-syscall7.c): Remove.
35132 * sysdeps/unix/sysv/linux/mips/mips32/mips16/Versions (libc):
35133 Remove `__mips16_syscall5', `__mips16_syscall6' and
35134 `__mips16_syscall7'.
35135 * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall0.c
35136 (__mips16_syscall0): Rename `__mips16_syscall_return' to
35137 `__mips_syscall_return'.
35138 * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall1.c
35139 (__mips16_syscall1): Likewise.
35140 * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall2.c
35141 (__mips16_syscall2): Likewise.
35142 * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall3.c
35143 (__mips16_syscall3): Likewise.
35144 * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall4.c
35145 (__mips16_syscall4): Likewise.
35146 * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall5.c:
35147 Remove.
35148 * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall6.c:
35149 Remove.
35150 * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall7.c:
35151 Remove.
35152 * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall.h
35153 (__mips16_syscall5): Expand to `__mips_syscall5' rather than
35154 `__mips16_syscall5'. Remove prototype.
35155 (__mips16_syscall6): Expand to `__mips_syscall6' rather than
35156 `__mips16_syscall6'. Remove prototype.
35157 (__mips16_syscall7): Expand to `__mips_syscall7' rather than
35158 `__mips16_syscall7'. Remove prototype.
35159 (__nomips16, __mips16_syscall_return): Move to...
35160 * sysdeps/unix/sysv/linux/mips/mips32/sysdep.h
35161 (__nomips16, __mips_syscall_return): ... here.
35162 [__mips16] (INTERNAL_SYSCALL_NCS): Rename
35163 `__mips16_syscall_return' to `__mips_syscall_return'.
35164 [__mips16] (INTERNAL_SYSCALL_MIPS16): Pass `number' to
35165 `internal_syscall##nr'.
35166 [!__mips16] (INTERNAL_SYSCALL): Pass `SYS_ify (name)' to
35167 `internal_syscall##nr'.
35168 (FORCE_FRAME_POINTER): Remove.
35169 (__mips_syscall5): New prototype.
35170 (internal_syscall5): Rewrite to call `__mips_syscall5'.
35171 (__mips_syscall6): New prototype.
35172 (internal_syscall6): Rewrite to call `__mips_syscall6'.
35173 (__mips_syscall7): New prototype.
35174 (internal_syscall7): Rewrite to call `__mips_syscall7'.
35175 * sysdeps/unix/sysv/linux/mips/mips32/mips-syscall5.S: New file.
35176 * sysdeps/unix/sysv/linux/mips/mips32/mips-syscall6.S: New file.
35177 * sysdeps/unix/sysv/linux/mips/mips32/mips-syscall7.S: New file.
35178 * sysdeps/unix/sysv/linux/mips/mips32/Makefile [subdir = misc]
35179 (sysdep_routines): Add libc-do-syscall.
35180 * sysdeps/unix/sysv/linux/mips/mips32/Versions (libc): Add
35181 `__mips_syscall5', `__mips_syscall6' and `__mips_syscall7'.
35182
35183 2017-08-29 Adhemerval Zanella <adhemerval.zanella@linaro.org>
35184
35185 [BZ #21672]
35186 * nptl/allocatestack.c [_STACK_GROWS_DOWN] (setup_stack_prot):
35187 Set to use !NEED_SEPARATE_REGISTER_STACK as well.
35188 (advise_stack_range): New function.
35189 * nptl/pthread_create.c (START_THREAD_DEFN): Move logic to mark
35190 stack non required to advise_stack_range at allocatestack.c
35191
35192 2017-08-29 Szabolcs Nagy <szabolcs.nagy@arm.com>
35193
35194 * sysdeps/unix/sysv/linux/aarch64/sys/procfs.h: Use __uint64_t.
35195
35196 2017-08-29 Florian Weimer <fweimer@redhat.com>
35197
35198 [BZ #22026]
35199 * iconv/gconv_db.c (gen_steps): Decrement step_cnt after resetting
35200 __end_fct. Mangle __end_fct after setting it to NULL.
35201 * iconv/Makefile (tests): Add tst-gconv-init-failure.
35202 (modules-names, modules-names-tests): Add
35203 tst-gconv-init-failure-mod.
35204 (gconv-modules): New target.
35205 (tst-gconv-init-failure-mod.so): Link against libsupport.
35206 (tst-gconv-init-failure): Depend on gconv-modules,
35207 tst-gconv-init-failure-mod.so.
35208 * iconv/tst-gconv-init-failure-mod.c: New file.
35209 * iconv/tst-gconv-init-failure.c: Likewise.
35210 * iconv/test-gconv-modules: Likewise.
35211
35212 2017-08-29 Florian Weimer <fweimer@redhat.com>
35213
35214 [BZ #22025]
35215 * iconv/gconv_db.c (free_derivation): Remove redundant
35216 parentheses.
35217 (gen_steps): Unconditionally mangle __btowc_fct after
35218 initialization.
35219 (increment_counter): Likewise. Do not call init_fct for internal
35220 modules.
35221
35222 2017-08-29 Joseph Myers <joseph@codesourcery.com>
35223
35224 [BZ #22028]
35225 * math/math.h [__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0]
35226 (_MSUF_): Remove macro.
35227 [__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0] (_MSUFTO_):
35228 Likewise.
35229 [__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0]
35230 (__REDIRFROM_X): New macro.
35231 [__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0] (__REDIRTO_X):
35232 Likewise.
35233 * math/bits/math-finite.h (__REDIRFROM_X): Remove macro.
35234 (__REDIRTO_X): Likewise.
35235 (__MATH_REDIRCALL): Do not pass _MSUF_ or _MSUFTO_ macro
35236 arguments.
35237 (__MATH_REDIRCALL_2): Likewise.
35238 (__MATH_REDIRCALL_INTERNAL): Likewise.
35239 (__REDIRFROM (lgamma, , _MSUF_)): Likewise.
35240 (__REDIRFROM (gamma, , _MSUF_)): Likweise.
35241 (__REDIRFROM (__gamma, _r_finite, _MSUF_)): Likewise.
35242 (__REDIRFROM (tgamma, , _MSUF_)): Likewise.
35243 * math/test-finite-macros.c: New file.
35244 * math/Makefile (tests): Add test-finite-macros.
35245 (CFLAGS-test-finite-macros.c): New variable.
35246
35247 2017-08-29 Patsy Franklin <pfrankli@redhat.com>
35248 Jeff Law <law@redhat.com>
35249
35250 [BZ #22025]
35251 Mangle NULL pointers in iconv/gconv.
35252 * iconv/gconv_cache.c (find_module): Demangle init_fct before
35253 checking for NULL. Mangle __btowc_fct if init_fct is non-NULL.
35254 * iconv/gconv_db.c (free_derivation): Check that __shlib_handle
35255 is non-NULL before demangling the end_fct. Check for NULL
35256 end_fct after demangling.
35257 (__gconv_release_step): Demangle the end_fct before checking
35258 it for NULL. Remove assert on __shlibc_handle != NULL.
35259 (gen_steps): Don't check btowc_fct for NULL before mangling.
35260 Demangle init_fct before checking for NULL.
35261 (increment_counter): Likewise.
35262 * gconv_dl.c (__gconv_find_shlib): Don't check init_fct or
35263 end_fct for NULL before mangling.
35264 * wcsmbs/btowc.c (__btowc): Demangle btowc_fct before checking
35265 for NULL.
35266
35267 2017-08-29 Akhilesh Kumar <akhilesh.k@samsung.com>
35268
35269 [BZ #21971]
35270 * locale/iso-639.def: add Morisyen.
35271
35272 2017-08-28 Gabriel F. T. Gomes <gftg@linux.vnet.ibm.com>
35273
35274 [BZ #21930]
35275 * math/math.h [defined __cplusplus && defined __SUPPORT_SNAN__]
35276 (iszero): New C++ implementation that does not use
35277 fpclassify/__MATH_TG/__builtin_types_compatible_p, when
35278 signaling nans are enabled, since __builtin_types_compatible_p
35279 is a C-only feature.
35280 * math/test-math-iszero.cc: When __HAVE_DISTINCT_FLOAT128 is
35281 defined, include ieee754_float128.h for access to the union and
35282 member ieee854_float128.ieee.
35283 [__HAVE_DISTINCT_FLOAT128] (do_test): Call check_float128.
35284 [__HAVE_DISTINCT_FLOAT128] (check_float128): New function.
35285 * sysdeps/powerpc/powerpc64le/Makefile [subdir == math]
35286 (CXXFLAGS-test-math-iszero.cc): Add -mfloat128 to the build
35287 options of test-math-zero on powerpc64le.
35288
35289 2017-08-28 H.J. Lu <hongjiu.lu@intel.com>
35290
35291 * sysdeps/x86_64/fpu/multiarch/e_expf.c (__redirect_ieee754_expf):
35292 Change double to float.
35293
35294 2017-08-28 Joseph Myers <joseph@codesourcery.com>
35295
35296 * math/math-svid-compat.h [!__ASSEMBLER__]: Make code
35297 unconditional.
35298 * sysdeps/ieee754/s_lib_version.c [!defined SHARED]: Remove
35299 conditional code; define contents only for [LIBM_SVID_COMPAT].
35300
35301 2017-08-28 Florian Weimer <fweimer@redhat.com>
35302
35303 * sysdeps/unix/sysv/linux/aarch64/Makefile (abi-lp64-options)
35304 (abi-lp64_be-options): Remove.
35305 * sysdeps/unix/sysv/linux/arm/Makefile (abi-soft-options)
35306 (abi-hard-options): Likewise.
35307 * sysdeps/unix/sysv/linux/mips/Makefile(abi-o32_soft-options)
35308 (abi-o32_hard-options, abi-o32_soft_2008-options)
35309 (abi-o32_hard_2008-options, abi-n32_soft-options)
35310 (abi-n32_hard-options, abi-n32_soft_2008-options)
35311 (abi-n32_hard_2008-options, abi-n64_soft-options)
35312 (abi-n64_hard-options, abi-n64_soft_2008-options)
35313 (abi-n64_hard_2008-options): Likewise.
35314 * sysdeps/unix/sysv/linux/powerpc/Makefile (abi-32-options)
35315 (abi-64-v1-options, abi-64-v2-options): Likewise.
35316 * sysdeps/unix/sysv/linux/s390/Makefile (abi-32-options)
35317 (abi-64-options): Likewise.
35318 * sysdeps/unix/sysv/linux/sparc/Makefile (abi-32-options)
35319 (abi-64-options): Likewise.
35320 * sysdeps/unix/sysv/linux/tile/tilegx/Makefile (abi-32-options)
35321 (abi-64-options): Likewise.
35322 * sysdeps/unix/sysv/linux/x86/Makefile (abi-32-options)
35323 (abi-64-options, abi-x32-options): Likewise.
35324
35325 2017-08-28 Florian Weimer <fweimer@redhat.com>
35326
35327 Store supported list of SYS_* system calls in the source tree.
35328 * sysdeps/unix/sysv/linux/Makefile [$(subdir) = misc]
35329 (bits/syscall.h): Generate from list file.
35330 [$(subdir) = misc] (before-compile): Add bits/syscall.h.
35331 [$(subdir) = misc] (tests): Add tst-syscall-list.
35332 [$(subdir) = misc] (tests-special): Add tst-syscall-list.out
35333 [$(subdir) = misc] (tst-syscall-list-macros.list)
35334 [$(subdir) = misc] (tst-syscall-list-nr.list)
35335 (tst-syscall-list-sys.list): Helper targets for new
35336 tst-syscall-list test.
35337 [$(subdir) = misc] (tst-syscall-list.out): Run test script
35338 tst-syscall-list.sh.
35339 [$(subdir) = misc] (bits/syscall%h, bits/syscall%d): Remove
35340 target. Do not include bits/syscall.d.
35341 [$(subdir) = misc] (generated): Do not update.
35342 * sysdeps/unix/sysv/linux/syscall-names.list: New file.
35343 * sysdeps/unix/sysv/linux/gen-syscall-h.awk: Likewise.
35344 * sysdeps/unix/sysv/linux/filter-nr-syscalls.awk: Likewise.
35345 * sysdeps/unix/sysv/linux/tst-syscall-list.sh: Likewise.
35346
35347 2017-08-27 Paul Pluzhnikov <ppluzhnikov@google.com>
35348
35349 * stdlib/Makefile (tst-atexit, tst-at_quick_exit): New tests.
35350 (tst-cxa_atexit, tst-on_exit): Likewise.
35351 * stdlib/Makefile (tests): Add tst-atexit, tst-at_quick_exit,
35352 tst-cxa_atexit, and tst-on_exit.
35353 * stdlib/tst-atexit-common.c: New file.
35354 * stdlib/tst-atexit.c: New file.
35355 * stdlib/tst-at_quick_exit.c: New file.
35356 * stdlib/tst-cxa_atexit.c: New file.
35357 * stdlib/tst-on_exit.c: New file.
35358
35359 2017-08-27 Samuel Thibault <samuel.thibault@ens-lyon.org>
35360
35361 * sysdeps/mach/hurd/bits/sysmacros.h: New file.
35362 * mach/stack_chk_fail_local.c: New file.
35363 * hurd/stack_chk_fail_local.c: New file.
35364 * mach/Machrules ($(interface-library)-routines): Add
35365 stack_chk_fail_local.
35366 * mach/Makefile (CFLAGS-mach_init.o, CFLAGS-RPC_vm_statistics.o,
35367 CFLAGS-RPC_vm_map.o, CFLAGS-RPC_vm_protect.o,
35368 CFLAGS-RPC_i386_set_gdt.o, CFLAGS-RPC_i386_set_ldt.o,
35369 CFLAGS-RPC_task_get_special_port.o): Add $(no-stack-protector).
35370 * hurd/Makefile (CFLAGS-hurdstartup.o,
35371 CFLAGS-RPC_exec_startup_get_info.o): Add $(no-stack-protector).
35372
35373 2017-08-25 H.J. Lu <hongjiu.lu@intel.com>
35374
35375 * sysdeps/x86/cpu-features.h [__ASSEMBLER__]
35376 (index_cpu_*, index_arch_*): Removed.
35377
35378 2017-08-25 Szabolcs Nagy <szabolcs.nagy@arm.com>
35379
35380 * sysdeps/unix/sysv/linux/aarch64/sys/procfs.h (elf_greg_t):
35381 Use uint64_t instead of unsigned long.
35382
35383 2017-08-25 Joseph Myers <joseph@codesourcery.com>
35384
35385 * math/tgmath.h [__HAVE_FLOAT128]: Change conditional to
35386 [__HAVE_DISTINCT_FLOAT128].
35387
35388 * math/math.h (_MSUFTO_): Define and undefine for each inclusion
35389 of <bits/math-finite.h>.
35390 (__MATH_DECLARING_LDOUBLE): Do not define and undefine for each
35391 inclusion of <bits/math-finite.h>.
35392 * math/bits/math-finite.h (__REDIRTO_X): Do not define
35393 conditionally on [__MATH_DECLARING_LDOUBLE && defined
35394 __NO_LONG_DOUBLE_MATH].
35395 (__MATH_REDIRCALL): Use _MSUFTO_ in __REDIRTO call.
35396 (__MATH_REDIRCALL_2): Likewise.
35397 (__MATH_REDIRCALL_INTERNAL): Likewise.
35398 (__REDIRFROM (lgamma, , _MSUF_)): Likewise.
35399 (__REDIRFROM (gamma, , _MSUF_)): Likewise.
35400 (__REDIRFROM (tgamma, , _MSUF_)): Likewise.
35401
35402 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrt_compat-power5.S:
35403 Remove file.
35404 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrt_compat-ppc32.S:
35405 Likewise.
35406 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrt_compat.c:
35407 Likewise.
35408 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrtf_compat-power5.S:
35409 Likewise.
35410 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrtf_compat-ppc32.S:
35411 Likewise.
35412 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrtf_compat.c:
35413 Likewise.
35414 * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt_compat.S: Likewise.
35415 * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrtf_compat.S: Likewise.
35416 * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrt_compat.S: Likewise.
35417 * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrtf_compat.S: Likewise.
35418 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile
35419 (libm-sysdep-routines): Remove w_sqrt_compat-power5,
35420 w_sqrt_compat-ppc32, w_sqrtf_compat-power5 and
35421 w_sqrtf_compat-ppc32.
35422
35423 2017-08-24 Gabriel F. T. Gomes <gftg@linux.vnet.ibm.com>
35424
35425 * math/math.h [defined __cplusplus] (issignaling): In the long
35426 double case, call __issignalingl only if __NO_LONG_DOUBLE_MATH
35427 is not defined. Call __issignaling, otherwise.
35428
35429 2017-08-24 Adhemerval Zanella <adhemerval.zanella@linaro.org>
35430
35431 * sysdeps/unix/make-syscalls.sh: Remove cancellable tagging for
35432 syscall definitions and replace __builtin_expect with __glibc_likely.
35433 * sysdeps/unix/syscall-template.S: Update comment about cancellable
35434 syscall.
35435 (SYSCALL_CANCELLABLE): Removedefinition
35436 * sysdeps/unix/sysv/linux/aarch64/sysdep-cancel.h (PSEUDO): Remove
35437 definition.
35438 (PSEUDO_END): Likewise.
35439 [IS_IN (libpthread)] (CENABLE): Likewise.
35440 [IS_IN (libpthread)] (CDISABLE): Likewise.
35441 [IS_IN (libc)] (CENABLE): Likewise.
35442 [IS_IN (libc)] (CENABLE): Likewise.
35443 [IS_IN (librt)] (CDISABLE): Likewise.
35444 [IS_IN (librt)] (CDISABLE): Likewise.
35445 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
35446 * sysdeps/unix/sysv/linux/alpha/sysdep-cancel.h (PSEUDO): Remove
35447 definition.
35448 (PSEUDO_END): Likewise.
35449 [IS_IN (libpthread)] (__local_enable_asynccancel): Likewise.
35450 [IS_IN (libpthread)] (__local_disable_asynccancel): Likewise.
35451 [IS_IN (libc)] (__local_enable_asynccancel): Likewise.
35452 [IS_IN (libc)] (__local_enable_asynccancel): Likewise.
35453 [IS_IN (librt)] (__local_disable_asynccancel): Likewise.
35454 [IS_IN (librt)] (__local_disable_asynccancel): Likewise.
35455 (CENABLE): Likewise.
35456 (CDISABLE): Likewise.
35457 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
35458 * sysdeps/unix/sysv/linux/arm/sysdep-cancel.h (PSEUDO): Remove
35459 defintion.
35460 (PSEUDO_END): Likewise.
35461 [IS_IN (libpthread)] (CENABLE): Likewise.
35462 [IS_IN (libpthread)] (CDISABLE): Likewise.
35463 [IS_IN (libc)] (CENABLE): Likewise.
35464 [IS_IN (libc)] (CENABLE): Likewise.
35465 [IS_IN (librt)] (CDISABLE): Likewise.
35466 [IS_IN (librt)] (CDISABLE): Likewise.
35467 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
35468 * sysdeps/unix/sysv/linux/hppa/sysdep-cancel.h (PSEUDO): Remove
35469 definition.
35470 (PSEUDO_END): Likewise.
35471 [IS_IN (libpthread)] (CENABLE): Likewise.
35472 [IS_IN (libpthread)] (CDISABLE): Likewise.
35473 [IS_IN (libc)] (CENABLE): Likewise.
35474 [IS_IN (libc)] (CENABLE): Likewise.
35475 [IS_IN (librt)] (CDISABLE): Likewise.
35476 [IS_IN (librt)] (CDISABLE): Likewise.
35477 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
35478 * sysdeps/unix/sysv/linux/i386/sysdep-cancel.h (PSEUDO): Remove
35479 definition.
35480 (PSEUDO_END): Likewise.
35481 [IS_IN (libpthread)] (CENABLE): Likewise.
35482 [IS_IN (libpthread)] (CDISABLE): Likewise.
35483 [IS_IN (libc)] (CENABLE): Likewise.
35484 [IS_IN (libc)] (CENABLE): Likewise.
35485 [IS_IN (librt)] (CDISABLE): Likewise.
35486 [IS_IN (librt)] (CDISABLE): Likewise.
35487 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
35488 * sysdeps/unix/sysv/linux/ia64/sysdep-cancel.h (PSEUDO): Remove
35489 definition.
35490 (PSEUDO_END): Likewise.
35491 [IS_IN (libpthread)] (CENABLE): Likewise.
35492 [IS_IN (libpthread)] (CDISABLE): Likewise.
35493 [IS_IN (libc)] (CENABLE): Likewise.
35494 [IS_IN (libc)] (CENABLE): Likewise.
35495 [IS_IN (librt)] (CDISABLE): Likewise.
35496 [IS_IN (librt)] (CDISABLE): Likewise.
35497 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
35498 * sysdeps/unix/sysv/linux/m68k/sysdep-cancel.h (PSEUDO): Remove
35499 definition.
35500 (PSEUDO_END): Likewise.
35501 [IS_IN (libpthread)] (CENABLE): Likewise.
35502 [IS_IN (libpthread)] (CDISABLE): Likewise.
35503 [IS_IN (libc)] (CENABLE): Likewise.
35504 [IS_IN (libc)] (CENABLE): Likewise.
35505 [IS_IN (librt)] (CDISABLE): Likewise.
35506 [IS_IN (librt)] (CDISABLE): Likewise.
35507 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
35508 * sysdeps/unix/sysv/linux/microblaze/sysdep-cancel.h (PSEUDO): Remove
35509 definition.
35510 (PSEUDO_END): Likewise.
35511 [IS_IN (libpthread)] (CENABLE): Likewise.
35512 [IS_IN (libpthread)] (CDISABLE): Likewise.
35513 [IS_IN (libc)] (CENABLE): Likewise.
35514 [IS_IN (libc)] (CENABLE): Likewise.
35515 [IS_IN (librt)] (CDISABLE): Likewise.
35516 [IS_IN (librt)] (CDISABLE): Likewise.
35517 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
35518 * sysdeps/unix/sysv/linux/mips/mips64/sysdep-cancel.h (PSEUDO):
35519 Remove definition.
35520 (PSEUDO_END): Likewise.
35521 [IS_IN (libpthread)] (CENABLE): Likewise.
35522 [IS_IN (libpthread)] (CDISABLE): Likewise.
35523 [IS_IN (libc)] (CENABLE): Likewise.
35524 [IS_IN (libc)] (CENABLE): Likewise.
35525 [IS_IN (librt)] (CDISABLE): Likewise.
35526 [IS_IN (librt)] (CDISABLE): Likewise.
35527 (SINGLE_THREAD_P): Likewise.
35528 * sysdeps/unix/sysv/linux/mips/sysdep-cancel.h (PSEUDO): Remove
35529 definition.
35530 (PSEUDO_END): Likewise.
35531 [IS_IN (libpthread)] (CENABLE): Likewise.
35532 [IS_IN (libpthread)] (CDISABLE): Likewise.
35533 [IS_IN (libc)] (CENABLE): Likewise.
35534 [IS_IN (libc)] (CENABLE): Likewise.
35535 [IS_IN (librt)] (CDISABLE): Likewise.
35536 [IS_IN (librt)] (CDISABLE): Likewise.
35537 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
35538 * sysdeps/unix/sysv/linux/nios2/sysdep-cancel.h (PSEUDO): Remove
35539 definition.
35540 (PSEUDO_END): Likewise.
35541 [IS_IN (libpthread)] (CENABLE): Likewise.
35542 [IS_IN (libpthread)] (CDISABLE): Likewise.
35543 [IS_IN (libc)] (CENABLE): Likewise.
35544 [IS_IN (libc)] (CENABLE): Likewise.
35545 [IS_IN (librt)] (CDISABLE): Likewise.
35546 [IS_IN (librt)] (CDISABLE): Likewise.
35547 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
35548 * sysdeps/sysv/linux/powerpc/powerpc32/sysdep-cancel.h: Remove file.
35549 * sysdeps/sysv/linux/powerpc/powerpc64/sysdep-cancel.h: Likewise.
35550 * sysdeps/unix/sysv/linux/powerpc/sysdep-cancel.h: New file.
35551 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep-cancel.h (PSEUDO): Remove
35552 definition.
35553 (PSEUDO_END): Likewise.
35554 [IS_IN (libpthread)] (CENABLE): Likewise.
35555 [IS_IN (libpthread)] (CDISABLE): Likewise.
35556 [IS_IN (libc)] (CENABLE): Likewise.
35557 [IS_IN (libc)] (CENABLE): Likewise.
35558 [IS_IN (librt)] (CDISABLE): Likewise.
35559 [IS_IN (librt)] (CDISABLE): Likewise.
35560 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
35561 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep-cancel.h (PSEUDO): Remove
35562 definition.
35563 (PSEUDO_END): Likewise.
35564 [IS_IN (libpthread)] (CENABLE): Likewise.
35565 [IS_IN (libpthread)] (CDISABLE): Likewise.
35566 [IS_IN (libc)] (CENABLE): Likewise.
35567 [IS_IN (libc)] (CENABLE): Likewise.
35568 [IS_IN (librt)] (CDISABLE): Likewise.
35569 [IS_IN (librt)] (CDISABLE): Likewise.
35570 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
35571 * sysdeps/unix/sysv/linux/sh/sysdep-cancel.h (PSEUDO): Remove
35572 definition.
35573 (PSEUDO_END): Likewise.
35574 [IS_IN (libpthread)] (CENABLE): Likewise.
35575 [IS_IN (libpthread)] (CDISABLE): Likewise.
35576 [IS_IN (libc)] (CENABLE): Likewise.
35577 [IS_IN (libc)] (CENABLE): Likewise.
35578 [IS_IN (librt)] (CDISABLE): Likewise.
35579 [IS_IN (librt)] (CDISABLE): Likewise.
35580 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
35581 * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep-cancel.h: Remove file.
35582 * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep-cancel.h: Likewise.
35583 * sysdeps/unix/sysv/linux/sparc/sysdep-cancel.h: New file.
35584 * sysdeps/unix/sysv/linux/tile/sysdep-cancel.h (PSEUDO): Remove
35585 definition.
35586 (PSEUDO_END): Likewise.
35587 [IS_IN (libpthread)] (CENABLE): Likewise.
35588 [IS_IN (libpthread)] (CDISABLE): Likewise.
35589 [IS_IN (libc)] (CENABLE): Likewise.
35590 [IS_IN (libc)] (CENABLE): Likewise.
35591 [IS_IN (librt)] (CDISABLE): Likewise.
35592 [IS_IN (librt)] (CDISABLE): Likewise.
35593 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
35594 * sysdeps/unix/sysv/linux/x86_64/sysdep-cancel.h (PSEUDO): Remove
35595 definition.
35596 (PSEUDO_END): Likewise.
35597 [IS_IN (libpthread)] (CENABLE): Likewise.
35598 [IS_IN (libpthread)] (CDISABLE): Likewise.
35599 [IS_IN (libc)] (CENABLE): Likewise.
35600 [IS_IN (libc)] (CENABLE): Likewise.
35601 [IS_IN (librt)] (CDISABLE): Likewise.
35602 [IS_IN (librt)] (CDISABLE): Likewise.
35603 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
35604
35605 2017-08-24 Szabolcs Nagy <szabolcs.nagy@arm.com>
35606
35607 * sysdeps/ieee754/dbl-64/Makefile: Don't override CFLAGS.
35608
35609 2017-08-23 H.J. Lu <hongjiu.lu@intel.com>
35610
35611 * sysdeps/x86_64/fpu/libm-test-ulps: Regenerated.
35612
35613 2017-08-23 H.J. Lu <hongjiu.lu@intel.com>
35614
35615 [BZ #21982]
35616 * string/stratcliff.c (do_test): Declare size, nchars, inner,
35617 middle and outer with size_t instead of int. Repleace %d and
35618 %Zd with %zu in printf. Update "MAX (0, nchars - 128)" and
35619 "MAX (outer, nchars - 64)" to support unsigned outer and
35620 nchars. Also exit loop when outer == 0.
35621
35622 2017-08-23 Adhemerval Zanella <adhemerval.zanella@linaro.org>
35623
35624 * include/fcntl.h (__fcntl_nocancel): Remove definition.
35625 * include/signal.h (__sigsuspend_nocancel): Likewise.
35626 * include/time.h (__nanosleep_nocancel): Likewise.
35627 * sysdeps/generic/not-cancel.h (__fcntl_nocancel): New macro.
35628 * login/utmp_file.c: Include non cancellable syscall header.
35629 * sysdeps/unix/sysv/linux/not-cancel.h (__fcntl_nocancel): New
35630 prototype.
35631
35632 2017-08-23 H.J. Lu <hongjiu.lu@intel.com>
35633
35634 * sysdeps/x86_64/fpu/svml_d_sincos8_core.S: Replace AVX512F
35635 .byte sequences with AVX512F instructions.
35636 * sysdeps/x86_64/fpu/svml_d_wrapper_impl.h: Likewise.
35637 * sysdeps/x86_64/fpu/svml_s_sincosf16_core.S: Likewise.
35638 * sysdeps/x86_64/fpu/svml_s_wrapper_impl.h: Likewise.
35639 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos8_core_avx512.S:
35640 Likewise.
35641 * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf16_core_avx512.S:
35642 Likewise.
35643
35644 2017-08-22 Szabolcs Nagy <szabolcs.nagy@arm.com>
35645 Steve Ellcey <sellcey@cavium.com>
35646
35647 * sysdeps/aarch64/dl-tlsdesc.S (_dl_tlsdesc_dynamic):
35648 Use PTR_REG macro in cmp instruction.
35649
35650 2017-08-22 Gabriel F. T. Gomes <gftg@linux.vnet.ibm.com>
35651
35652 * include/libc-symbols.h: [!defined HAVE_GCC_IFUNC] (__ifunc):
35653 Change the return type of the ifunc resolver to match the return
35654 type of the target function.
35655
35656 2017-08-22 Adhemerval Zanella <adhemerval.zanella@linaro.org>
35657
35658 * sysdeps/unix/sysv/linux/x86_64/syscalls.list (pread64): Remove.
35659 (preadv64): Likewise.
35660 (pwrite64(: Likewise.
35661 (pwritev64): Likewise.
35662
35663 * sysdeps/unix/sysv/linux/x86_64/sysdep.h
35664 (INTERNAL_SYSCALL_NCS_TYPES): Remove define.
35665 (LOAD_ARGS_0): Likewise.
35666 (LOAD_ARGS_1): Likewise.
35667 (LOAD_ARGS_2): Likewise.
35668 (LOAD_ARGS_3): Likewise.
35669 (LOAD_ARGS_4): Likewise.
35670 (LOAD_ARGS_5): Likewise.
35671 (LOAD_ARGS_6): Likewise.
35672 (LOAD_REGS_0): Likewise.
35673 (LOAD_REGS_1): Likewise.
35674 (LOAD_REGS_2): Likewise.
35675 (LOAD_REGS_3): Likewise.
35676 (LOAD_REGS_4): Likewise.
35677 (LOAD_REGS_5): Likewise.
35678 (LOAD_REGS_6): Likewise.
35679 (ASM_ARGS_0): Likewise.
35680 (ASM_ARGS_1): Likewise.
35681 (ASM_ARGS_2): Likewise.
35682 (ASM_ARGS_3): Likewise.
35683 (ASM_ARGS_4): Likewise.
35684 (ASM_ARGS_5): Likewise.
35685 (ASM_ARGS_6): Likewise.
35686 (LOAD_ARGS_TYPES_1): Likewise.
35687 (LOAD_ARGS_TYPES_2): Likewise.
35688 (LOAD_ARGS_TYPES_3): Likewise.
35689 (LOAD_ARGS_TYPES_4): Likewise.
35690 (LOAD_ARGS_TYPES_5): Likewise.
35691 (LOAD_ARGS_TYPES_6): Likewise.
35692 (LOAD_REGS_TYPES_1): Likewise.
35693 (LOAD_REGS_TYPES_2): Likewise.
35694 (LOAD_REGS_TYPES_3): Likewise.
35695 (LOAD_REGS_TYPES_4): Likewise.
35696 (LOAD_REGS_TYPES_5): Likewise.
35697 (LOAD_REGS_TYPES_6): Likewise.
35698 (TYPEFY): New define.
35699 (ARGIFY): Likewise.
35700 (internal_syscall0): Likewise.
35701 (internal_syscall1): Likewise.
35702 (internal_syscall2): Likewise.
35703 (internal_syscall3): Likewise.
35704 (internal_syscall4): Likewise.
35705 (internal_syscall5): Likewise.
35706 (internal_syscall6): Likewise.
35707 * sysdeps/unix/sysv/linux/x86_64/x32/times.c
35708 (INTERNAL_SYSCALL_NCS): Remove define.
35709 (internal_syscall1): Add define.
35710
35711 2017-08-22 Gabriel F. T. Gomes <gftg@linux.vnet.ibm.com>
35712
35713 * math/w_remainder_compat.c: Remove duplicate inclusion of
35714 math-svid-compat.h.
35715 * math/w_remainderf_compat.c: Likewise.
35716 * math/w_remainderl_compat.c: Likewise.
35717
35718 2017-08-22 Gabriel F. T. Gomes <gftg@linux.vnet.ibm.com>
35719
35720 * sysdeps/powerpc/fpu/libm-test-ulps: Update.
35721
35722 2017-08-22 Joseph Myers <joseph@codesourcery.com>
35723
35724 [BZ #21684]
35725 * math/tgmath.h (__floating_type): Simplify definitions.
35726 (__real_integer_type): New macro.
35727 (__complex_integer_type): Likewise.
35728 (__expr_is_real): Likewise.
35729 (__tgmath_real_type_sub): Update comment to describe handling of
35730 complex types.
35731 (__tgmath_complex_type_sub): New macro.
35732 (__tgmath_complex_type): Likewise.
35733 [__HAVE_FLOAT128 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
35734 (__TGMATH_CF128): Use __expr_is_real.
35735 (__TGMATH_UNARY_REAL_IMAG): Use __tgmath_complex_type and
35736 __expr_is_real.
35737 (__TGMATH_BINARY_REAL_IMAG): Likewise.
35738 (__TGMATH_UNARY_REAL_IMAG_RET_REAL): Use __expr_is_real.
35739 * math/gen-tgmath-tests.py (Type.create_type): Create complex
35740 integer types.
35741
35742 2017-08-22 Adhemerval Zanella <adhemerval.zanella@linaro.org>
35743
35744 * sysdeps/generic/not-cancel.h (sigsuspend_not_cancel): Remove
35745 macro.
35746 * sysdeps/mach/hurd/sigsuspend.c (sigsuspend_not_cancel): Remove
35747 alias.
35748 * sysdeps/unix/sysv/linux/not-cancel.h (sigsuspend_not_cancel):
35749 Likewise.
35750
35751 * nptl/pthread_mutex_timedlock.c (__pthread_mutex_timedlock): Replace
35752 nanosleep_not_cancel with __nanosleep_nocancel.
35753 * sysdeps/generic/not-cancel.h (nanosleep_not_cancel): Remove macro.
35754 (__nanosleep_nocancel): New macro.
35755 * sysdeps/unix/sysv/linux/nanosleep.c (__nanosleep_nocancel): New
35756 function.
35757 * sysdeps/unix/sysv/linux/not-cancel.h (nanosleep_not_cancel): Remove
35758 macro.
35759 (__nanosleep_nocancel): New prototype.
35760
35761 * nptl/pthread_mutex_lock.c (__pthread_mutex_lock_full): Replace
35762 pause_not_cancel with __pause_nocancel.
35763 * sysdeps/generic/not-cancel.h (pause_not_cancel): Remove macro.
35764 (__pause_nocancel): New macro.
35765 * sysdeps/unix/sysv/linux/not-cancel.h (pause_not_cancel): Remove
35766 macro.
35767 (__pause_nocancel): New prototype.
35768 * sysdeps/unix/sysv/linux/pause.c (__pause_nocancel): New function.
35769
35770 2017-08-22 Martin Sebor <msebor@redhat.com>
35771
35772 * include/libc-symbols.h (__ifunc_resolver): Declare resolver
35773 to return a pointer to the same type as the target function.
35774
35775 2017-08-22 H.J. Lu <hongjiu.lu@intel.com>
35776
35777 [BZ #18822]
35778 [BZ #21986]
35779 * include/printf.h (__printf_fphex): Add attribute_hidden.
35780 (__guess_grouping): New prototype.
35781 * stdio-common/printf_fp.c (__guess_grouping): Removed.
35782 * stdio-common/reg-printf.c (__register_printf_specifier): Add
35783 libc_hidden_proto and libc_hidden_def.
35784 * stdlib/strfmon_l.c (__guess_grouping): Removed.
35785 (__vstrfmon_l): Remove the third argument passed to
35786 __guess_grouping.
35787
35788 2017-08-22 Gabriel F. T. Gomes <gftg@linux.vnet.ibm.com>
35789
35790 * math/math.h [defined __cplusplus] (issignaling): Provide a C++
35791 definition for issignaling that does not rely on __MATH_TG,
35792 since __MATH_TG uses __builtin_types_compatible_p, which is only
35793 available in C mode.
35794 (CFLAGS-test-math-issignaling.cc): New variable.
35795 * math/Makefile [CXX] (tests): Add test-math-issignaling.
35796 * math/test-math-issignaling.cc: New test for C++ implementation
35797 of type-generic issignaling.
35798 * sysdeps/powerpc/powerpc64le/Makefile [subdir == math]
35799 (CXXFLAGS-test-math-issignaling.cc): Add -mfloat128 to the build
35800 options of test-math-issignaling on powerpc64le.
35801
35802 2017-08-22 H.J. Lu <hongjiu.lu@intel.com>
35803
35804 * include/libc-symbols.h (__hidden_proto_hiddenattr): New for
35805 building libc.a.
35806 (hidden_proto): Likewise.
35807 (hidden_tls_proto): Likewise.
35808 (__hidden_proto): Likewise.
35809
35810 2017-08-22 Florian Weimer <fweimer@redhat.com>
35811
35812 math: Statically link tests of internal functionality.
35813 * math/Makefile (tests): Remove atest-exp, atest-sincos,
35814 atest-exp2.
35815 (tests-static): Add atest-exp, atest-sincos, atest-exp2.
35816 (gmp-objs): Remove assignment.
35817 (atest-exp, atest-sincos, atest-exp2): Remove targets.
35818
35819 2017-08-22 Joseph Myers <joseph@codesourcery.com>
35820
35821 [BZ #21987]
35822 * sysdeps/unix/sysv/linux/sparc/bits/long-double.h: Remove file
35823 and copy to ...
35824 * sysdeps/unix/sysv/linux/sparc/sparc32/bits/long-double.h:
35825 ... here.
35826 * sysdeps/unix/sysv/linux/sparc/sparc64/bits/long-double.h:
35827 ... and here.
35828
35829 * assert/Makefile [$(have-cxx-thread_local)]: Move conditional
35830 variable definitions above inclusion of ../Rules.
35831
35832 2017-08-21 Joseph Myers <joseph@codesourcery.com>
35833
35834 * sysdeps/ieee754/k_standard.c (__kernel_standard): Add default
35835 case calling __builtin_unreachable.
35836
35837 2017-08-21 Adhemerval Zanella <adhemerval.zanella@linaro.org>
35838
35839 * libio/ioopen.c (_IO_waitpid): Replace waitpid_not_cancel with
35840 __waitpid_nocancel.
35841 * sysdeps/generic/not-cancel.h (waitpid_not_cancel): Remove macro.
35842 (__waitpid_nocancel): New macro.
35843 * sysdeps/unix/sysv/linux/not-cancel.h (waitpid_not_cancel): Remove
35844 macro.
35845 (__waitpid_nocancel): Replace macro with a function.
35846 * sysdeps/unix/sysv/linux/waitpid.c (__waitpid_nocancel): New
35847 function.
35848
35849 * login/utmp_file.c (timeout_handler): Replace fcntl_not_cancel with
35850 __fcntl_nocancel.
35851 * sysdeps/generic/not-cancel.h (fcntl_not_cancel): Remove macro.
35852 * sysdeps/unix/sysv/linux/not-cancel.h (fcntl_not_cancel): Likewise.
35853
35854 * gmon/gmon.c (write_hist): Replace writev_not_cancel_no_status with
35855 __writev_nocancel_nostatus.
35856 (write_call_graph): Likewise.
35857 (write_bb_counts): Likewise.
35858 * resolv/herror.c (herror): Likewise.
35859 * sysdeps/generic/not-cancel.h (writev_not_cancel_no_status): Remove
35860 macro.
35861 (__writev_nocancel_nostatus): New macro.
35862 * sysdeps/unix/sysv/linux/not-cancel.h (writev_not_cancel_no_status):
35863 Remove macro.
35864 (__writev_nocancel_nostatus): New function.
35865
35866 2017-08-21 Joseph Myers <joseph@codesourcery.com>
35867
35868 Revert:
35869 2017-08-21 H.J. Lu <hongjiu.lu@intel.com>
35870
35871 * include/libc-symbols.h (__hidden_proto_hiddenattr): New for
35872 building libc.a.
35873 (hidden_proto): Likewise.
35874 (hidden_tls_proto): Likewise.
35875 (__hidden_proto): Likewise.
35876
35877 [BZ #21973]
35878 * sysdeps/sparc/sparc32/fpu/w_sqrt_compat.S: Remove file.
35879 * sysdeps/sparc/sparc32/fpu/w_sqrtf_compat.S: Likewise.
35880 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt_compat-vis3.S:
35881 Likewise.
35882 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt_compat.S:
35883 Likewise.
35884 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf_compat-vis3.S:
35885 Likewise.
35886 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf_compat.S:
35887 Likewise.
35888 * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrt_compat.S : Likewise.
35889 * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrtf_compat.S: Likewise.
35890 * sysdeps/sparc/sparc64/fpu/w_sqrt_compat.S: Likewise.
35891 * sysdeps/sparc/sparc64/fpu/w_sqrtf_compat.S: Likewise.
35892 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Add
35893 GLIBC_2.0 sqrtl symbol.
35894
35895 * math/math.h [__USE_MISC] (_LIB_VERSION_TYPE): Remove.
35896 [__USE_MISC] (_LIB_VERSION): Likewise.
35897 [__USE_MISC] (struct exception): Likewise.
35898 [__USE_MISC] (matherr): Likewise.
35899 [__USE_MISC] (DOMAIN): Likewise.
35900 [__USE_MISC] (SING): Likewise.
35901 [__USE_MISC] (OVERFLOW): Likewise.
35902 [__USE_MISC] (UNDERFLOW): Likewise.
35903 [__USE_MISC] (TLOSS): Likewise.
35904 [__USE_MISC] (PLOSS): Likewise.
35905 [__USE_MISC] (HUGE): Likewise.
35906 [__USE_XOPEN] (MAXFLOAT): Define even if [__USE_MISC].
35907 * math/math-svid-compat.h: New file.
35908 * conform/linknamespace.pl (@whitelist): Remove matherr, matherrf
35909 and matherrl.
35910 * include/math.h [!_ISOMAC] (__matherr): Remove.
35911 * manual/arith.texi (FP Exceptions): Do not document matherr.
35912 * math/Makefile (tests): Change test-matherr to test-matherr-3.
35913 (tests-internal): New variable.
35914 (install-lib): Do not add libieee.a.
35915 (non-lib.a): Likewise.
35916 (extra-objs): Do not add libieee.a and ieee-math.o.
35917 (CPPFLAGS-s_lib_version.c): Remove variable.
35918 ($(objpfx)libieee.a): Remove rule.
35919 ($(addprefix $(objpfx), $(tests-internal)): Depend on $(libm).
35920 * math/ieee-math.c: Remove.
35921 * math/libm-test-support.c (matherr): Remove.
35922 * math/test-matherr.c: Use <support/test-driver.c>. Add copyright
35923 and license notices. Include <math-svid-compat.h> and
35924 <shlib-compat.h>.
35925 (matherr): Undefine as macro. Use compat_symbol_reference.
35926 (_LIB_VERSION): Likewise.
35927 * math/test-matherr-2.c: New file.
35928 * math/test-matherr-3.c: Likewise.
35929 * sysdeps/generic/math_private.h (__kernel_standard): Remove
35930 declaration.
35931 (__kernel_standard_f): Likewise.
35932 (__kernel_standard_l): Likewise.
35933 * sysdeps/ieee754/s_lib_version.c: Do not include <math.h> or
35934 <math_private.h>. Include <math-svid-compat.h>.
35935 (_LIB_VERSION): Undefine as macro.
35936 (_LIB_VERSION_INTERNAL): Always initialize to _POSIX_. Define
35937 only if [LIBM_SVID_COMPAT || !defined SHARED]. If
35938 [LIBM_SVID_COMPAT], use compat_symbol.
35939 * sysdeps/ieee754/s_matherr.c: Do not include <math.h> or
35940 <math_private.h>. Include <math-svid-compat.h>.
35941 (matherr): Undefine as macro.
35942 (__matherr): Define only if [LIBM_SVID_COMPAT]. Use
35943 compat_symbol.
35944 * sysdeps/ia64/fpu/libm_error.c: Include <math-svid-compat.h>.
35945 [_LIBC && LIBM_SVID_COMPAT] (matherrf): Use
35946 compat_symbol_reference.
35947 [_LIBC && LIBM_SVID_COMPAT] (matherrl): Likewise.
35948 [_LIBC && !LIBM_SVID_COMPAT] (matherrf): Define as macro.
35949 [_LIBC && !LIBM_SVID_COMPAT] (matherrl): Likewise.
35950 * sysdeps/ia64/fpu/libm_support.h: Include <math-svid-compat.h>.
35951 (MATHERR_D): Remove declaration.
35952 [!_LIBC] (_LIB_VERSION_TYPE): Likewise
35953 [!LIBM_BUILD] (_LIB_VERSIONIMF): Likewise.
35954 [LIBM_BUILD] (pmatherrf): Likewise.
35955 [LIBM_BUILD] (pmatherr): Likewise.
35956 [LIBM_BUILD] (pmatherrl): Likewise.
35957 (DOMAIN): Likewise.
35958 (SING): Likewise.
35959 (OVERFLOW): Likewise.
35960 (UNDERFLOW): Likewise.
35961 (TLOSS): Likewise.
35962 (PLOSS): Likewise.
35963 * sysdeps/ia64/fpu/s_matherrf.c: Include <math-svid-compat.h>.
35964 (__matherrf): Define only if [LIBM_SVID_COMPAT]. Use
35965 compat_symbol.
35966 * sysdeps/ia64/fpu/s_matherrl.c: Include <math-svid-compat.h>.
35967 (__matherrl): Define only if [LIBM_SVID_COMPAT]. Use
35968 compat_symbol.
35969 * math/lgamma-compat.h: Include <math-svid-compat.h>.
35970 * math/w_acos_compat.c: Likewise.
35971 * math/w_acosf_compat.c: Likewise.
35972 * math/w_acosh_compat.c: Likewise.
35973 * math/w_acoshf_compat.c: Likewise.
35974 * math/w_acoshl_compat.c: Likewise.
35975 * math/w_acosl_compat.c: Likewise.
35976 * math/w_asin_compat.c: Likewise.
35977 * math/w_asinf_compat.c: Likewise.
35978 * math/w_asinl_compat.c: Likewise.
35979 * math/w_atan2_compat.c: Likewise.
35980 * math/w_atan2f_compat.c: Likewise.
35981 * math/w_atan2l_compat.c: Likewise.
35982 * math/w_atanh_compat.c: Likewise.
35983 * math/w_atanhf_compat.c: Likewise.
35984 * math/w_atanhl_compat.c: Likewise.
35985 * math/w_cosh_compat.c: Likewise.
35986 * math/w_coshf_compat.c: Likewise.
35987 * math/w_coshl_compat.c: Likewise.
35988 * math/w_exp10_compat.c: Likewise.
35989 * math/w_exp10f_compat.c: Likewise.
35990 * math/w_exp10l_compat.c: Likewise.
35991 * math/w_exp2_compat.c: Likewise.
35992 * math/w_exp2f_compat.c: Likewise.
35993 * math/w_exp2l_compat.c: Likewise.
35994 * math/w_fmod_compat.c: Likewise.
35995 * math/w_fmodf_compat.c: Likewise.
35996 * math/w_fmodl_compat.c: Likewise.
35997 * math/w_hypot_compat.c: Likewise.
35998 * math/w_hypotf_compat.c: Likewise.
35999 * math/w_hypotl_compat.c: Likewise.
36000 * math/w_j0_compat.c: Likewise.
36001 * math/w_j0f_compat.c: Likewise.
36002 * math/w_j0l_compat.c: Likewise.
36003 * math/w_j1_compat.c: Likewise.
36004 * math/w_j1f_compat.c: Likewise.
36005 * math/w_j1l_compat.c: Likewise.
36006 * math/w_jn_compat.c: Likewise.
36007 * math/w_jnf_compat.c: Likewise.
36008 * math/w_jnl_compat.c: Likewise.
36009 * math/w_lgamma_main.c: Likewise.
36010 * math/w_lgamma_r_compat.c: Likewise.
36011 * math/w_lgammaf_main.c: Likewise.
36012 * math/w_lgammaf_r_compat.c: Likewise.
36013 * math/w_lgammal_main.c: Likewise.
36014 * math/w_lgammal_r_compat.c: Likewise.
36015 * math/w_log10_compat.c: Likewise.
36016 * math/w_log10f_compat.c: Likewise.
36017 * math/w_log10l_compat.c: Likewise.
36018 * math/w_log2_compat.c: Likewise.
36019 * math/w_log2f_compat.c: Likewise.
36020 * math/w_log2l_compat.c: Likewise.
36021 * math/w_log_compat.c: Likewise.
36022 * math/w_logf_compat.c: Likewise.
36023 * math/w_logl_compat.c: Likewise.
36024 * math/w_pow_compat.c: Likewise.
36025 * math/w_powf_compat.c: Likewise.
36026 * math/w_powl_compat.c: Likewise.
36027 * math/w_remainder_compat.c: Likewise.
36028 * math/w_remainderf_compat.c: Likewise.
36029 * math/w_remainderl_compat.c: Likewise.
36030 * math/w_scalb_compat.c: Likewise.
36031 * math/w_scalbf_compat.c: Likewise.
36032 * math/w_scalbl_compat.c: Likewise.
36033 * math/w_sinh_compat.c: Likewise.
36034 * math/w_sinhf_compat.c: Likewise.
36035 * math/w_sinhl_compat.c: Likewise.
36036 * math/w_sqrt_compat.c: Likewise.
36037 * math/w_sqrtf_compat.c: Likewise.
36038 * math/w_sqrtl_compat.c: Likewise.
36039 * math/w_tgamma_compat.c: Likewise.
36040 * math/w_tgammaf_compat.c: Likewise.
36041 * math/w_tgammal_compat.c: Likewise.
36042 * sysdeps/ieee754/dbl-64/w_exp_compat.c: Likewise.
36043 * sysdeps/ieee754/flt-32/w_expf_compat.c: Likewise.
36044 * sysdeps/ieee754/k_standard.c: Likewise.
36045 * sysdeps/ieee754/k_standardf.c: Likewise.
36046 * sysdeps/ieee754/k_standardl.c: Likewise.
36047 * sysdeps/ieee754/ldbl-128/w_expl_compat.c: Likewise.
36048 * sysdeps/ieee754/ldbl-128ibm/w_expl_compat.c: Likewise.
36049 * sysdeps/ieee754/ldbl-96/w_expl_compat.c: Likewise.
36050 * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt_compat.S: Likewise.
36051 * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrtf_compat.S: Likewise.
36052 * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrt_compat.S: Likewise.
36053 * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrtf_compat.S: Likewise.
36054 * sysdeps/sparc/sparc32/fpu/w_sqrt_compat.S: Likewise.
36055 * sysdeps/sparc/sparc32/fpu/w_sqrtf_compat.S: Likewise.
36056 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt_compat-vis3.S:
36057 Likewise.
36058 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf_compat-vis3.S:
36059 Likewise.
36060 * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrt_compat.S: Likewise.
36061 * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrtf_compat.S: Likewise.
36062 * sysdeps/sparc/sparc64/fpu/w_sqrt_compat.S: Likewise.
36063 * sysdeps/sparc/sparc64/fpu/w_sqrtf_compat.S: Likewise.
36064
36065 2017-08-21 Florian Weimer <fweimer@redhat.com>
36066
36067 [BZ #21864]
36068 Do not compile benchmark helper objects with -DMODULE_NAME=libc.
36069 * benchtests/Makefile (others-extras): Set to $(bench-extra-objs).
36070 Move before inclusion of ../Rules.
36071
36072 2017-08-21 Florian Weimer <fweimer@redhat.com>
36073
36074 [BZ #21972]
36075 * assert/assert.h (assert): Use static_cast (bool) for C++.
36076 Use the ternary operator in the warning branch for GNU C.
36077 * assert/Makefile (tests): Add tst-assert-c++, tst-assert-g++.
36078 (CFLAGS-tst-assert-c++.o): Compile in C++11 mode.
36079 (CFLAGS-tst-assert-g++.o): Compile in GnU C++11 mode.
36080 (LDLIBS-tst-assert-c++, LDLIBS-tst-assert-g++): Link with libstdc++.
36081 * assert/tst-assert-c++.cc, assert/tst-assert-g++.cc: New files.
36082
36083 2017-08-21 H.J. Lu <hongjiu.lu@intel.com>
36084
36085 [BZ #18822]
36086 * sysdeps/unix/sysv/linux/x86_64/init-first.c
36087 (__syscall_clock_gettime): Add attribute_hidden.
36088 * sysdeps/unix/sysv/linux/x86_64/makecontext.c
36089 (__start_context): Likewise.
36090
36091 2017-08-21 H.J. Lu <hongjiu.lu@intel.com>
36092
36093 * include/libc-symbols.h (__hidden_proto_hiddenattr): New for
36094 building libc.a.
36095 (hidden_proto): Likewise.
36096 (hidden_tls_proto): Likewise.
36097 (__hidden_proto): Likewise.
36098
36099 2017-08-21 H.J. Lu <hongjiu.lu@intel.com>
36100
36101 * include/libc-symbols.h (attribute_hidden): Enable hidden
36102 visibility in libc.a compiled with PIE.
36103
36104 2017-08-21 H.J. Lu <hongjiu.lu@intel.com>
36105
36106 [BZ #18822]
36107 * sysdeps/unix/sysv/linux/x86/libc-vdso.h (VDSO_SYMBOL(getcpu)):
36108 Add attribute_hidden.
36109
36110 2017-08-21 H.J. Lu <hongjiu.lu@intel.com>
36111
36112 [BZ #21864]
36113 * Makerules (all-nonlib): Add $(others-extras).
36114 * catgets/Makefile (others-extras): New.
36115 * elf/Makefile (others-extras): Likewise.
36116 * nss/Makefile (others-extras): Likewise.
36117
36118 2017-08-21 H.J. Lu <hongjiu.lu@intel.com>
36119
36120 [BZ #18822]
36121 * csu/libc-start.c (__libc_multiple_libcs): Removed.
36122 * elf/dl-open.c: Include <libc-internal.h>.
36123 (__libc_multiple_libcs): Removed.
36124 * elf/dl-sysdep.c: Include <libc-internal.h> instead of
36125 <hp-timing.h>.
36126 * include/libc-internal.h (__libc_multiple_libcs): New.
36127 * misc/sbrk.c: Include <libc-internal.h>.
36128 (__libc_multiple_libcs): Removed.
36129
36130 2017-08-21 H.J. Lu <hongjiu.lu@intel.com>
36131
36132 [BZ #18822]
36133 * grp/initgroups.c (__nss_group_database): Removed.
36134 (__nss_initgroups_database): Likewise.
36135 * nscd/gai.c (__nss_hosts_database): Likewise.
36136 * nss/XXX-lookup.c (DATABASE_NAME_SYMBOL): Likewise.
36137 * posix/tst-rfc3484-2.c (__nss_hosts_database): Likewise.
36138 * posix/tst-rfc3484-3.c (__nss_hosts_database): Likewise.
36139 * posix/tst-rfc3484.c (__nss_hosts_database): Likewise.
36140 * sysdeps/posix/getaddrinfo.c (__nss_hosts_database): Likewise.
36141 * nss/getXXent.c (INTERNAL (REENTRANT_GETNAME)): Add
36142 attribute_hidden.
36143 * nss/nsswitch.c (__nss_database_custom): Define only if
36144 USE_NSCD is defined.
36145 (__nss_configure_lookup): Use __nss_database_custom only if
36146 USE_NSCD is defined.
36147 * nss/nsswitch.h (__nss_database_custom): Declare only if
36148 USE_NSCD is defined. Add attribute_hidden.
36149 (__nss_setent): Add attribute_hidden.
36150 (__nss_endent): Likewise.
36151 (__nss_getent_r): Likewise.
36152 (__nss_getent): Likewise.
36153 (DEFINE_DATABASE): Declare __nss_##arg##_database.
36154
36155 2017-08-20 H.J. Lu <hongjiu.lu@intel.com>
36156
36157 [BZ #18822]
36158 * sysdeps/unix/sysv/linux/i386/glob64.c (__old_glob64): Add
36159 libc_hidden_proto and libc_hidden_def.
36160
36161 2017-08-20 H.J. Lu <hongjiu.lu@intel.com>
36162
36163 [BZ #18822]
36164 * sysdeps/unix/sysv/linux/i386/olddirent.h (__old_readdir64):
36165 Add libc_hidden_proto.
36166 * sysdeps/unix/sysv/linux/i386/readdir64.c (__old_readdir64):
36167 Add libc_hidden_def.
36168
36169 2017-08-20 H.J. Lu <hongjiu.lu@intel.com>
36170
36171 [BZ #21974]
36172 * gmon/Makefile (routines): Remove bb_init_func and
36173 bb_exit_func.
36174 (elide-routines.os): Removed.
36175 * gmon/bb_exit_func.c: Likewise.
36176 * gmon/bb_init_func.c: Likewise.
36177 * include/sys/gmon.h (__bb): Likewise.
36178 (__bb_init_func): Likewise.
36179 (__bb_exit_func): Likewise.
36180 * sysdeps/alpha/bb_init_func.S: Likewise.
36181
36182 2017-08-20 H.J. Lu <hongjiu.lu@intel.com>
36183
36184 * debug/longjmp_chk.c (____longjmp_chk): Moved to ...
36185 * include/setjmp.h (____longjmp_chk): Here. Add
36186 attribute_hidden.
36187
36188 2017-08-19 H.J. Lu <hongjiu.lu@intel.com>
36189
36190 [BZ #18822]
36191 * sysdeps/x86_64/multiarch/strcspn-c.c (STRCSPN_SSE2): Add
36192 attribute_hidden.
36193 (__strspn_sse2): Likewise.
36194
36195 2017-08-18 Adhemerval Zanella <adhemerval.zanella@linaro.org>
36196
36197 * sysdeps/generic/not-cancel.h (close_not_cancel): Remove macro.
36198 (close_not_cancel_no_status): Likewise.
36199 (__close_nocancel): New macro.
36200 (__close_nocancel_nostatus): Likewise.
36201 * sysdeps/unix/sysv/linux/not-cancel.h (__close_nocancel): Remove
36202 macro.
36203 (close_not_cancel): Likewise.
36204 (close_not_cancel_no_status): Likewise.
36205 (__close_nocancel): New prototype.
36206 (__close_nocancel_nostatus): New function.
36207 * sysdeps/unix/sysv/linux/close.c (__close_nocancel): New function.
36208 * catgets/open_catalog.c (__open_catalog): Replace
36209 close_not_cancel{_no_status) with __close_nocancel{_nostatus}.
36210 * gmon/gmon.c (write_gmon): Likewise.
36211 * iconv/gconv_cache.c (__gconv_load_cache): Likewise.
36212 * intl/loadmsgcat.c (close): Likewise.
36213 * io/ftw.c (open_dir_stream): Likewise.
36214 (ftw_startup): Likewise.
36215 * libio/fileops.c (_IO_file_open): Likewise.
36216 (_IO_file_close_mmap): Likewise.
36217 (_IO_file_close): Likewise.
36218 * libio/iopopen.c (_IO_dup2): Likewise.
36219 * locale/loadarchive.c (_nl_load_locale_from_archive): Likewise.
36220 * locale/loadlocale.c (_nl_load_locale): Likewise.
36221 * login/utmp_file.c (pututline_file): Likewise.
36222 (endutent_file): Likewise.
36223 * misc/daemon.c (daemon): Likewise.
36224 * nscd/nscd_getai.c (__nscd_getai): Likewise.
36225 * nscd/nscd_getgr_r.c (nscd_getgr_r): Likewise.
36226 * nscd/nscd_gethst_r.c (nscd_gethst_r): Likewise.
36227 * nscd/nscd_getpw_r.c (nscd_getpw_r): Likewise.
36228 * nscd/nscd_getserv_r.c (nscd_getserv_r): Likewise.
36229 * nscd/nscd_helper.c (open_socket): Likewise.
36230 (__nscd_open_socket): Likewise.
36231 * nscd/nscd_initgroups.c (__nscd_getgrouplist): Likewise.
36232 * nscd/nscd_netgroup.c (__nscd_setnetgrent): Likewise.
36233 (__nscd_innetgr): Likewise.
36234 * nss/nss_db/db-open.c (internal_setent): Likewise.
36235 * resolv/res-close.c (__res_iclose): Likewise.
36236 * sunrpc/pm_getmaps.c (pmap_getmaps): Likewise.
36237 * sysdeps/posix/closedir.c (__closedir): Likewise.
36238 * sysdeps/posix/getaddrinfo.c (getaddrinfo): Likewise.
36239 * sysdeps/posix/getcwd.c (__getcwd): Likewise.
36240 * sysdeps/posix/opendir.c (tryopen_o_directory): Likewise.
36241 (opendir_tail): Likewise.
36242 * sysdeps/posix/spawni.c (__spawni_child): Likewise.
36243 * sysdeps/unix/sysv/linux/check_native.c (__check_native): Likewise.
36244 * sysdeps/unix/sysv/linux/check_pf.c (__check_pf): Likewise.
36245 * sysdeps/unix/sysv/linux/fips-private.h (fips_enabled_p): Likewise.
36246 * sysdeps/unix/sysv/linux/gethostid.c (sethostid): Likewise.
36247 (gethostid): Likewise.
36248 * sysdeps/unix/sysv/linux/getloadavg.c (getloadavg): Likewise.
36249 * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
36250 Likewise.
36251 * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Likewise.
36252 * sysdeps/unix/sysv/linux/grantpt.c (close_all_fds): Likewise.
36253 * sysdeps/unix/sysv/linux/i386/smp.h (is_smp_system): Likewise.
36254 * sysdeps/unix/sysv/linux/ia64/has_cpuclock.c (has_cpuclock):
36255 Likewise.
36256 * sysdeps/unix/sysv/linux/if_index.c (__if_nametoindex): Likewise.
36257 * sysdeps/unix/sysv/linux/libc_fatal.c (backtrace_and_maps): Likewise.
36258 * sysdeps/unix/sysv/linux/malloc-sysdep.h (check_may_shrink_heap):
36259 Likewise.
36260 * sysdeps/unix/sysv/linux/mq_notify.c (init_mq_netlink): Likewise.
36261 * sysdeps/unix/sysv/linux/pthread_getname.c (pthread_getname_np):
36262 Likewise.
36263 * sysdeps/unix/sysv/linux/pthread_setname.c (pthread_setname_np):
36264 Likewise.
36265 * sysdeps/unix/sysv/linux/spawni.c (__spawni_child): Likewise.
36266 * sysdeps/unix/sysv/linux/sysconf.c (__sysconf): Likewise.
36267 * sysdeps/unix/sysv/linux/Versions (libc) [GLIBC_PRIVATE]: Add
36268 __close_nocancel.
36269
36270 * sysdeps/generic/not-cancel.h (openat_not_cancel): Remove macro.
36271 (openat_not_cancel_3): Likewise.
36272 (openat64_not_cancel_3): Likewise).
36273 (openat_not_cancel_3): Likewise).
36274 * sysdeps/unix/sysv/linux/not-cancel.h (openat_not_cancel): Remove
36275 macro.
36276 (openat_not_cancel_3): Likewise.
36277 (openat64_not_cancel): Likewise.
36278 (openat64_not_cancel_3): Likewise.
36279 * sysdeps/unix/sysv/linux/openat.c (__openat_nocancel): New function.
36280 * sysdeps/unix/sysv/linux/openat64.c (__openat64_nocancel): Likewise.
36281 * io/ftw.c (open_dir_stream): Replace openat{64}_not_cancel{_3} with
36282 __open{64}_nocancel.
36283 * sysdeps/mach/hurd/opendir.c (__opendirat): Likewise.
36284 * sysdeps/posix/getcwd.c (__getcwd): Likewise.
36285 * sysdeps/posix/opendir.c (__opendirat): Likewise.
36286
36287 2017-08-18 H.J. Lu <hongjiu.lu@intel.com>
36288
36289 [BZ #18822]
36290 * include/argz.h (__argz_create_sep): New function prototype.
36291 (__argz_append): Likewise.
36292 (__argz_add): Likewise.
36293 (__argz_add_sep): Likewise.
36294 (__argz_delete): Likewise.
36295 (__argz_insert): Likewise.
36296 (__argz_replace): Likewise.
36297 * string/argz.h (__argz_create_sep): Removed.
36298 (__argz_append): Likewise.
36299 (__argz_add): Likewise.
36300 (__argz_add_sep): Likewise.
36301 (__argz_delete): Likewise.
36302 (__argz_insert): Likewise.
36303 (__argz_replace): Likewise.
36304
36305 2017-08-18 H.J. Lu <hongjiu.lu@intel.com>
36306
36307 * elf/elf.h (NT_GNU_PROPERTY_TYPE_0): New.
36308 (NOTE_GNU_PROPERTY_SECTION_NAME): Likewise.
36309 (GNU_PROPERTY_STACK_SIZE): Likewie.
36310 (GNU_PROPERTY_NO_COPY_ON_PROTECTED): Likewie.
36311 (GNU_PROPERTY_LOPROC): Likewise.
36312 (GNU_PROPERTY_HIPROC): Likewise.
36313 (GNU_PROPERTY_LOUSER): Likewise.
36314 (GNU_PROPERTY_HIUSER): Likewise.
36315 (GNU_PROPERTY_X86_ISA_1_USED): Likwise.
36316 (GNU_PROPERTY_X86_ISA_1_NEEDED): Likwise.
36317 (GNU_PROPERTY_X86_FEATURE_1_AND): Likwise.
36318 (GNU_PROPERTY_X86_ISA_1_486): Likwise.
36319 (GNU_PROPERTY_X86_ISA_1_586): Likwise.
36320 (GNU_PROPERTY_X86_ISA_1_686): Likwise.
36321 (GNU_PROPERTY_X86_ISA_1_SSE): Likwise.
36322 (GNU_PROPERTY_X86_ISA_1_SSE2): Likwise.
36323 (GNU_PROPERTY_X86_ISA_1_SSE3): Likwise.
36324 (GNU_PROPERTY_X86_ISA_1_SSSE3): Likwise.
36325 (GNU_PROPERTY_X86_ISA_1_SSE4_1): Likwise.
36326 (GNU_PROPERTY_X86_ISA_1_SSE4_2): Likwise.
36327 (GNU_PROPERTY_X86_ISA_1_AVX): Likwise.
36328 (GNU_PROPERTY_X86_ISA_1_AVX2): Likwise.
36329 (GNU_PROPERTY_X86_ISA_1_AVX512F): Likwise.
36330 (GNU_PROPERTY_X86_ISA_1_AVX512CD): Likwise.
36331 (GNU_PROPERTY_X86_ISA_1_AVX512ER): Likwise.
36332 (GNU_PROPERTY_X86_ISA_1_AVX512PF): Likwise.
36333 (GNU_PROPERTY_X86_ISA_1_AVX512VL): Likwise.
36334 (GNU_PROPERTY_X86_ISA_1_AVX512DQ): Likwise.
36335 (GNU_PROPERTY_X86_ISA_1_AVX512BW): Likwise.
36336 (GNU_PROPERTY_X86_FEATURE_1_IBT): Likwise.
36337 (GNU_PROPERTY_X86_FEATURE_1_SHSTK): Likwise.
36338
36339 2017-08-18 Gabriel F. T. Gomes <gftg@linux.vnet.ibm.com>
36340
36341 * misc/sys/cdefs.h (__HAVE_GENERIC_SELECTION): Define to 0, if
36342 in C++ mode.
36343
36344 2017-08-18 Gabriel F. T. Gomes <gftg@linux.vnet.ibm.com>
36345
36346 [BZ #21930]
36347 * math/math.h (isinf): Check if in C or C++ mode before using
36348 __builtin_types_compatible_p, since this is a C mode feature.
36349
36350 2017-08-18 Adhemerval Zanella <adhemerval.zanella@linaro.org>
36351
36352 * sysdeps/generic/not-cancel.h (write_not_cancel): Remove macro.
36353 (__write_nocancel): New macro.
36354 * sysdeps/unix/sysv/linux/not-cancel.h (__write_nocancel):
36355 Rewrite as a function prototype.
36356 (write_not_cancel): Remove macro.
36357 * sysdeps/unix/sysv/linux/write.c (__write_nocancel): New function.
36358 * gmon/gmon.c (ERR): Replace write_not_cancel with __write_nocancel.
36359 (write_gmon): Likewise.
36360 * libio/fileops.c (_IO_new_file_write): Likewise.
36361 * login/utmp_file.c (pututline_file): Likewise.
36362 (updwtmp_file): Likewise.
36363 * stdio-common/psiginfo.c (psiginfo): Likewise.
36364 * sysdeps/posix/spawni.c (__spawni_child): Likewise.
36365 * sysdeps/unix/sysv/linux/gethostid.c (sethostid): Likewise.
36366 * sysdeps/unix/sysv/linux/libc_fatal.c (backtrace_and_maps):
36367 Likewise.
36368 * sysdeps/unix/sysv/linux/pthread_setname.c (pthread_setname_np):
36369 Likewise.
36370
36371 * sysdeps/generic/not-cancel.h (read_not_cancel): Remove macro.
36372 (__read_nocancel): New macro.
36373 * sysdeps/unix/sysv/linux/Versions (libc) [GLIBC_PRIVATE]: Add
36374 __read_nocancel.
36375 * sysdeps/unix/sysv/linux/not-cancel.h (__read_nocancel): Remove
36376 macro.
36377 (__read_nocancel): New prototype.
36378 * sysdeps/unix/sysv/linux/read.c (__read_nocancel): New function.
36379 * catgets/open_catalog.c (__open_catalog): Replace read_not_cancel
36380 with __read_nocancel.
36381 * intl/loadmsgcat.c (read): Likewise.
36382 * libio/fileops.c (_IO_file_read): Likewise.
36383 * locale/loadlocale.c (_nl_load_locale): Likewise.
36384 * login/utmp_file.c (getutent_r_file): Likewise.
36385 (internal_getut_r): Likewise.
36386 (getutline_r_file): Likewise.
36387 * sysdeps/unix/sysv/linux/fips-private.h (fips_enable_p): Likewise.
36388 * sysdeps/unix/sysv/linux/gethostid.c (gethostid): Likewise.
36389 * sysdeps/unix/sysv/linux/getloadavg.c (getloadavg): Likewise.
36390 * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
36391 Likewise.
36392 * sysdeps/unix/sysv/linux/getsysstats.c (next_line): Likewise.
36393 * sysdeps/unix/sysv/linux/i386/smp.h (is_smp_system): Likewise.
36394 * sysdeps/unix/sysv/linux/ia64/has_cpuclock.c (has_cpuclock):
36395 Likewise.
36396 * sysdeps/unix/sysv/linux/libc_fatal.c (backtrace_and_maps):
36397 Likewise.
36398 * sysdeps/unix/sysv/linux/malloc-sysdep.h (check_may_shrink_heap):
36399 Likewise.
36400 * sysdeps/unix/sysv/linux/pthread_getname.c (pthread_getname_np):
36401 Likewise.
36402 * sysdeps/unix/sysv/linux/sysconf.c (__sysconf): Likewise.
36403
36404 2017-08-18 H.J. Lu <hongjiu.lu@intel.com>
36405
36406 [BZ #21966]
36407 * sysdeps/x86_64/fpu/multiarch/ifunc-mathvec-avx2.h
36408 (IFUNC_SELECTOR): Don't use the AVX2 version if FMA isn't
36409 usable.
36410
36411 2017-08-17 DJ Delorie <dj@redhat.com>
36412
36413 * bug17079.c: Update to new test harness.
36414 * test-digits-dots.c: Likewise.
36415 * test-netdb.c: Likewise.
36416 * tst-field.c: Likewise.
36417 * tst-nss-getpwent.c: Likewise.
36418 * tst-nss-static.c: Likewise.
36419 * tst-nss-test1.c: Likewise.
36420 * tst-nss-test2.c: Likewise.
36421 * tst-nss-test3.c: Likewise.
36422 * tst-nss-test4.c: Likewise.
36423 * tst-nss-test5.c: Likewise.
36424
36425 2017-08-17 Adhemerval Zanella <adhemerval.zanella@linaro.org>
36426
36427 * sysdeps/generic/not-cancel.h (open_not_cancel): Remove macro.
36428 (open_not_cancel_2): Likewise.
36429 (open_nocancel): New macro.
36430 (open64_nocancel): Likewise.
36431 * sysdeps/unix/sysv/linux/not-cancel.h (open_not_cancel): Remove macro.
36432 (open_not_cancel_2): Likewise.
36433 (__open_nocancel): New prototype.
36434 (__open64_nocancel): Likewise.
36435 * sysdeps/unix/sysv/linux/Versions (libc) [GLIBC_PRIVATE]: Add
36436 __open_nocancel.
36437 * sysdeps/unix/sysv/linux/open.c (__open_nocancel): New function.
36438 * sysdeps/unix/sysv/linux/open64.c (__open64_nocancel): Likewise.
36439 * catgets/open_catalog.c (__open_catalog): Replace open_not_cancel{_2}
36440 with __open_nocancel.
36441 * csu/check_fds.c (check_one_fd): Likewise.
36442 * gmon/gmon.c (write_gmon): Likewise.
36443 * iconv/gconv_cache.c (__gconv_load_cached): Likewise.
36444 * intl/loadmsgcat.c (open): Likewise.
36445 * libio/fileops.c (_IO_file_open): Likewise.
36446 * locale/loadarchive.c (_nl_load_locale_from_archive): Likewise.
36447 * locale/loadlocale.c (_nl_load_locale): Likewise.
36448 * login/utmp_file.c (setutent_file): Likewise.
36449 * misc/daemon.c (daemon): Likewise.
36450 * nss/nss_db/db-open.c (internal_setent): Likewise.
36451 * sysdeps/mach/hurd/opendir.c (__opendirat): Likewise.
36452 * sysdeps/posix/libc_fatal.c (__libc_message): Likewise.
36453 * sysdeps/posix/opendir.c (tryopen_o_directory): Likewise.
36454 (__opendir): Likewise.
36455 * sysdeps/posix/spawni.c (__spawni_child): Likewise.
36456 * sysdeps/unix/sysv/linux/fips-private.h (fips_enable_p): Likewise.
36457 * sysdeps/unix/sysv/linux/gethostid.c (sethostid): Likewise.
36458 (gethostid): Likewise.
36459 * sysdeps/unix/sysv/linux/getloadavg.c (getloadavg): Likewise.
36460 * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
36461 Likewise.
36462 * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Likewise.
36463 * sysdeps/unix/sysv/linux/grantpt.c (__close_all_fds): Likewise.
36464 * sysdeps/unix/sysv/linux/i386/smp.h (is_smp_system): Likewise.
36465 * sysdeps/unix/sysv/linux/ia64/has_cpuclock.c (has_cpuclock):
36466 Likewise.
36467 * sysdeps/unix/sysv/linux/libc_fatal.c (backtrace_and_maps):
36468 Likewise.
36469 * sysdeps/unix/sysv/linux/malloc-sysdep.h (check_may_shrink_heap):
36470 Likewise.
36471 * sysdeps/unix/sysv/linux/powerpc/get_clockfreq.c (__get_clockfreq):
36472 Likewise.
36473 * sysdeps/unix/sysv/linux/pthread_getname.c (pthread_getname_np):
36474 Likewise.
36475 * sysdeps/unix/sysv/linux/pthread_setname.c (pthread_setname_np):
36476 Likewise.
36477 * sysdeps/unix/sysv/linux/spawni.c (__spawni_child): Likewise.
36478 * sysdeps/unix/sysv/linux/sysconf.c (__sysconf): Likewise.
36479
36480 2017-08-17 Wilco Dijkstra <wdijkstr@arm.com>
36481
36482 * benchtests/bench-skeleton.c (main): Add support for
36483 latency benchmarking.
36484 * benchtests/scripts/bench.py: Add support for latency benchmarking.
36485
36486 2017-08-17 H.J. Lu <hongjiu.lu@intel.com>
36487
36488 * Makeconfig (+link-pie-before-libc): Add CRT-* hook to override
36489 the startup object.
36490
36491 2017-08-17 Florian Weimer <fweimer@redhat.com>
36492
36493 * include/sys/socket.h (__opensock): Remove internal_function.
36494 * socket/opensock.c (__opensock): Likewise.
36495 * sysdeps/unix/sysv/linux/opensock.c (__opensock): Likewise.
36496
36497 2017-08-16 Joseph Myers <joseph@codesourcery.com>
36498
36499 [BZ #21944]
36500 * signal/bits/types/__sigval_t.h: New file.
36501 * signal/Makefile (headers): Add bits/types/__sigval_t.h.
36502 * signal/bits/types/sigval_t.h: Include <bits/types/__sigval_t.h>
36503 and define sigval_t using __sigval_t.
36504 * include/bits/types/__sigval_t.h: New file.
36505 * bits/types/sigevent_t.h: Include <bits/types/__sigval_t.h>
36506 instead of <bits/types/__sigval_t.h>.
36507 (struct sigevent): Use __sigval_t instead of sigval_t.
36508 * bits/types/siginfo_t.h: Include <bits/types/__sigval_t.h>
36509 instead of <bits/types/__sigval_t.h>.
36510 (siginfo_t): Use __sigval_t instead of sigval_t.
36511 * sysdeps/unix/sysv/linux/bits/types/sigevent_t.h: Include
36512 <bits/types/__sigval_t.h> instead of <bits/types/__sigval_t.h>.
36513 (struct sigevent): Use __sigval_t instead of sigval_t.
36514 * sysdeps/unix/sysv/linux/bits/types/siginfo_t.h: Include
36515 <bits/types/__sigval_t.h> instead of <bits/types/__sigval_t.h>.
36516 (siginfo_t): Use __sigval_t instead of sigval_t.
36517 * signal/signal.h [__USE_MISC]: Include <bits/types/sigval_t.h>.
36518
36519 2017-08-16 H.J. Lu <hongjiu.lu@intel.com>
36520
36521 * NEWS: Remove "[Add new features here]" for 2.27.
36522
36523 2017-08-16 Joseph Myers <joseph@codesourcery.com>
36524
36525 * sysdeps/unix/sysv/linux/sh/localplt.data: Allow abort in
36526 libc.so.
36527
36528 2017-08-16 H.J. Lu <hongjiu.lu@intel.com>
36529
36530 * NEWS: Mention x86-64 FMA optimization.
36531
36532 2017-08-16 H.J. Lu <hongjiu.lu@intel.com>
36533
36534 [BZ #21912]
36535 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
36536 Add e_expf-fma.
36537 * sysdeps/x86_64/fpu/multiarch/e_expf-fma.S: New file.
36538 * sysdeps/x86_64/fpu/multiarch/e_expf.c: Likewise.
36539 * sysdeps/x86_64/fpu/multiarch/ifunc-fma.h: Likewise.
36540
36541 2017-08-16 Andreas Schwab <schwab@suse.de>
36542
36543 [BZ #16750]
36544 CVE-2009-5064
36545 * elf/ldd.bash.in: Never run file directly.
36546
36547 2017-08-15 H.J. Lu <hongjiu.lu@intel.com>
36548
36549 [BZ #21955]
36550 * sysdeps/x86_64/fpu/e_expf.S (L(SP_RANGE)): Aligned to 8 bytes.
36551 (L(SP_INF_0)): Likewise.
36552
36553 2017-08-15 Florian Weimer <fweimer@redhat.com>
36554
36555 * gmon/Makefile (tests-special): Add tst-gmon-prof only if
36556 run-built-tests.
36557
36558 2017-08-15 Florian Weimer <fweimer@redhat.com>
36559
36560 Remove BROKEN_THREAD_SIGNALS support for LinuxThreads.
36561 * sysdeps/pthread/aio_misc.c (__aio_enqueue_request): Remove
36562 BROKEN_THREAD_SIGNALS code.
36563 * sysdeps/ppthread/aio_misc.h (struct waitlist, struct
36564 request_list): Remove caller_pid member used for
36565 BROKEN_THREAD_SIGNALS.
36566 [BROKEN_THREAD_SIGNALS] (__aio_notify_only): Remove declaration.
36567 * sysdeps/pthread/aio_notify.c (__aio_notify_only, __aio_notify):
36568 Remove BROKEN_THREAD_SIGNALS support.
36569 * sysdeps/pthread/aio_suspend.c (aio_suspend): Likewise.
36570 * sysdeps/pthread/lio_listio.c (lio_listio_internal): Likewise.
36571
36572 2017-08-15 Florian Weimer <fweimer@redhat.com>
36573
36574 * gmon/Makefile (tests): Add tst-gmon.
36575 (CFLAGS-tst-gmon.c, LDFLAGS-tst-gmon, CRT-tst-gmon, tst-gmon-ENV):
36576 Set.
36577 (tests-special): Add tst-gmon-prof.out.
36578 (tst-gmon.out): Depend on clean-tst-gmon-data.
36579 (clean-tst-gmon-data, tst-gmon-gprof.out): New targets.
36580 * gmon/tst-gmon.c, gmon/tst-gmon-gprof.sh: New files.
36581 * Makeconfig (+link-before-libc): Add CRT-* hook to override the
36582 startup object.
36583 * aclocal.m4 (GPROF): Set and substitute.
36584 * config.amke.in (GPROF): Set.
36585 * configure: Regenerate.
36586
36587 2017-08-15 Gustavo Romero <gromero@linux.vnet.ibm.com>
36588
36589 * elf/elf.h A (NT_PPC_TAR): New macro.
36590 (NT_PPC_PPR): Likewise.
36591 (NT_PPC_DSCR): Likewise.
36592 (NT_PPC_EBB): Likewise.
36593 (NT_PPC_PMU): Likewise.
36594 (NT_PPC_TM_CGPR): Likewise.
36595 (NT_PPC_TM_CFPR): Likewise.
36596 (NT_PPC_TM_CVMX): Likewise.
36597 (NT_PPC_TM_CVSX): Likewise.
36598 (NT_PPC_TM_SPR): Likewise.
36599 (NT_PPC_TM_CTAR): Likewise.
36600 (NT_PPC_TM_CPPR): Likewise.
36601 (NT_PPC_TM_CDSCR): Likewise.
36602
36603 2017-08-15 Florian Weimer <fweimer@redhat.com>
36604
36605 * sysdeps/i386/machine-gmon.h (mcount_internal): Declare with
36606 regparm (2) instead of internal_function.
36607 (_MCOUNT_DECL): Adjust.
36608
36609 2017-08-15 Stefan Liebler <stli@linux.vnet.ibm.com>
36610
36611 * sysdeps/s390/dl-procinfo.c (_dl_s390_cap_flags): Add z14.
36612 * sysdeps/s390/dl-procinfo.h (_DL_PLATFORMS_COUNT): Increased.
36613
36614 2017-08-14 Joseph Myers <joseph@codesourcery.com>
36615
36616 * conform/data/sys/wait.h-data (si_value): Do not expect for
36617 XPG42.
36618
36619 2017-08-14 Florian Weimer <fweimer@redhat.com>
36620
36621 [BZ #21962]
36622 NSS: Create stubs for accidentally exported lookup functions.
36623 * grp/initgroups.c (__nss_group_lookup, __nss_lookup_function):
36624 Remove declaration.
36625 * inet/ether_hton.c (__nss_ethers_lookup): Likewise.
36626 (ether_hostton): Call __nss_ethers_lookup2 instead.
36627 * inet/ether_ntoh.c (__nss_ethers_lookup): Remove declaration.
36628 (ether_ntohost): Call __nss_ethers_lookup2 instead.
36629 * inet/getnetgrent_r.c (__nss_netgroup_lookup): Remove declaration.
36630 (setup): Call __nss_netgroup_lookup2 instead.
36631 * nss/Makefile (routines): Add compat-lookup.
36632 * nss/Versions (GLIBC_2.27): Add symbol version.
36633 * nss/XXX-lookup (DB_LOOKUP_FCT): Remove declaration. Now provided by <nsswitch.h>.
36634 (DB_COMPAT_FCT): Remove.
36635 * nss/compat-lookup.c: New file.
36636 * nss/nsswitch.h: Generate __nss_*_lookup2 function prototypes
36637 from databases.def.
36638 * nss/service-lookup.c (NO_COMPAT): Remove definition.
36639 * sunrpc/netname.c (__nss_publickey_lookup): Remove declaration.
36640 (netname2user): Call __nss_publickey_lookup2 instead.
36641 * sunrpc/publickey.c (__nss_publickey_lookup): Remove declaration.
36642 (getpublickey, getsecretkey): Call __nss_publickey_lookup2
36643 instead.
36644
36645 2017-08-14 Adhemerval Zanella <adhemerval.zanella@linaro.org>
36646 Sergei Trofimovich <slyfox@inbox.ru>
36647
36648 [BZ #21908]
36649 * sysdeps/unix/sysv/linux/m68k/mmap_internal.h (MMAP2_PAGE_SHIFT):
36650 Rename to MMAP2_PAGE_UNIT.
36651 * sysdeps/unix/sysv/linux/mmap.c: Include mmap_internal iff
36652 __OFF_T_MATCHES_OFF64_T is not defined.
36653 * sysdeps/unix/sysv/linux/mmap_internal.h (page_unit): Declare as
36654 uint64_t.
36655 (MMAP2_PAGE_UNIT) [MMAP2_PAGE_UNIT == -1]: Redefine to page_unit.
36656 (page_unit) [MMAP2_PAGE_UNIT != -1]: Remove definition.
36657
36658 2017-08-14 Florian Weimer <fweimer@redhat.com>
36659
36660 i386: Do not set internal_function.
36661 * config.h.in (USE_REGPARMS, internal_function): Remove.
36662 * sysdeps/i386/configure.ac (USE_REGPARMS): Likewise.
36663 * sysdeps/i386/configure (USE_REGPARMS): Likewise.
36664
36665 2017-08-14 Florian Weimer <fweimer@redhat.com>
36666
36667 * elf/dl-init.c (_dl_init): Remove internal_function.
36668 * sysdeps/generic/ldsodefs.h (_dl_init): Likewise.
36669 * sysdeps/i386/dl-machine.h (RTLD_START): Adjust call to _dl_init.
36670
36671 2017-08-14 Florian Weimer <fweimer@redhat.com>
36672
36673 * elf/rtld.c (_dl_start): Remove internal_function.
36674 * sysdeps/i386/dl-machine.h (RTLD_START): Adjust call to
36675 _dl_start.
36676
36677 2017-08-14 Florian Weimer <fweimer@redhat.com>
36678
36679 * elf/dl-fini.c (_dl_fini): Remove internal_function
36680 * sysdeps/generic/ldsodefs.h (_dl_fini): Likewise.
36681
36682 2017-08-14 H.J. Lu <hongjiu.lu@intel.com>
36683
36684 * sysdeps/x86/cpu-features.h (bit_cpu_IBT): New.
36685 (bit_cpu_SHSTK): Likewise.
36686 (index_cpu_IBT): Likewise.
36687 (index_cpu_SHSTK): Likewise.
36688 (reg_IBT): Likewise.
36689 (reg_SHSTK): Likewise.
36690 * sysdeps/x86/cpu-tunables.c (TUNABLE_CALLBACK (set_hwcaps)):
36691 Handle index_cpu_IBT and index_cpu_SHSTK.
36692
36693 2017-08-14 Mike FABIAN <mfabian@redhat.com>
36694
36695 [BZ #19982]
36696 * po/fr.po: Fix spelling mistake.
36697
36698 2017-08-13 Florian Weimer <fweimer@redhat.com>
36699
36700 * elf/dl-addr.c (_dl_addr): Remove internal_function.
36701 * elf/dl-error-skeleton.c (_dl_signal_error, _dl_signal_cerror)
36702 (_dl_catch_error, _dl_receive_error): Likewise.
36703 * elf/dl-open.c (_dl_find_dso_for_object): Likewise.
36704 * elf/dl-tls.c (_dl_allocate_tls_init, _dl_allocate_tls)
36705 (_dl_deallocate_tls): Likewise.
36706 * include/dlfcn.h (_dl_addr): Likewise.
36707 * sysdeps/generic/ldsodefs.h (_dl_signal_error, _dl_signal_cerror)
36708 (_dl_catch_error, _dl_receive_error, _dl_find_dso_for_object)
36709 (_dl_allocate_tls_init, _dl_allocate_tls, _dl_deallocate_tls):
36710 Likewise.
36711
36712 2017-08-13 Florian Weimer <fweimer@redhat.com>
36713
36714 * include/stdlib.h: (__strtof_nan, __strtod_nan, __strtold_nan)
36715 (__wcstof_nan, __wcstod_nan, __wcstold_nan): Remove
36716 internal_function.
36717 * stdlib/sttod_nan_main.c (STRTOD_NAN): Likewise.
36718
36719 2017-08-13 Florian Weimer <fweimer@redhat.com>
36720
36721 * elf/dl-support.c (_dl_make_stack_executable_hook): Remove
36722 internal_function.
36723 * nptl/allocatestack.c (__make_stacks_executable): Likewise.
36724 * nptl/pthreadP.h (__make_stacks_executable): Likewise.
36725 * sysdeps/generic/ldsodefs.h (_rtld_global): Remove
36726 internal_function from _dl_make_stack_executable_hook member.
36727 (_dl_make_stack_executable): Remove internal_function.
36728 * sysdeps/mach/hurd/dl-execstack.c (_dl_make_stack_executable):
36729 Likewise.
36730 * sysdeps/unix/sysv/linux/dl-execstack.c
36731 (_dl_make_stack_executable): Likewise.
36732
36733 2017-08-13 Florian Weimer <fweimer@redhat.com>
36734
36735 * sysdeps/unix/sysv/linux/netlinkaccess.h
36736 (__netlink_assert_response): Remove internal_function.
36737 * sysdeps/unix/sysv/linux/netlink_assert_response.c
36738 (__netlink_assert_response): Likewise.
36739
36740 2017-08-13 Florian Weimer <fweimer@redhat.com>
36741
36742 * include/rpc/pmap_clnt.h (__libc_rpc_getport): Remove
36743 internal_function.
36744 * sunrpoc/pm_getport.c (__libc_rpc_getport): Likewise.
36745
36746 2017-08-13 Florian Weimer <fweimer@redhat.com>
36747
36748 * grp/grp-merge.h (__copy_grp, __merge_grp): Remove
36749 internal_function.
36750 * grp/grp-merge.c (__copy_grp, __merge_grp): Likewise.
36751 * inet/netgroup.h (__internal_setnetgrent)
36752 (__internal_endnetgrent,__internal_getnetgrent_r): Likewise.
36753 * inet/getnetgrent_r.c (__internal_setnetgrent)
36754 (__internal_endnetgrent,__internal_getnetgrent_r): Likewise.
36755 * nss/XXX-lookup.c (DB_LOOKUP_FCT, DB_COMPAT_FCT): Likewise.
36756 * nss/getXXbyYY_r.c (DB_LOOKUP_FCT): Likewise.
36757 * nss/getXXent_r.c (DB_LOOKUP_FCT): Likewise.
36758 * nss/nsswitch.h (db_lookup_function): Likewise.
36759
36760 2017-08-13 Florian Weimer <fweimer@redhat.com>
36761
36762 * debug/fortify_fail.c (__fortify_fail, __fortify_fail_abort):
36763 Remove internal_function.
36764 * include/stdio.h (__fortify_fail, __fortify_fail_abort): Likewise.
36765 * sysdeps/mach/hurd/i386/____longjmp_chk.S (CALL_FAIL): Pass
36766 message argument on the stack.
36767 * sysdeps/unix/sysv/linux/i386/____longjmp_chk.S (CALL_FAIL):
36768 Likeweise.
36769
36770 2017-08-12 Mike FABIAN <mfabian@redhat.com>
36771
36772 Adapt test case data to the changes in the thousands
36773 separators.
36774
36775 [BZ #20756]
36776 * localedata/tst-langinfo.sh: Adapt test case data.
36777 * stdlib/tst-strfmon_l.c: Likewise.
36778 * stdlib/tst-strtod4.c: Likewise.
36779 * stdlib/tst-strtod5i.c: Likewise.
36780
36781 2017-08-11 Florian Weimer <fweimer@redhat.com>
36782
36783 [BZ #21242]
36784 * assert/assert.h [__GNUC__ && !__STRICT_ANSI__] (assert):
36785 Suppress pedantic warning resulting from statement expression.
36786 (__ASSERT_FUNCTION): Add missing __extension__.
36787
36788 2017-08-11 Siddhesh Poyarekar <siddhesh@sourceware.org>
36789
36790 * benchtests/bench-memmove-large.c: Print output in JSON
36791 format.
36792 * benchtests/bench-memmove.c: Likewise.
36793
36794 * benchtests/bench-memccpy.c (do_one_test): Remove checks.
36795 * benchtests/bench-memchr.c (do_one_test): Likewise.
36796 * benchtests/bench-memcpy-large.c (do_one_test): Likewise.
36797 * benchtests/bench-memcpy.c (do_one_test): Likewise.
36798 * benchtests/bench-memmove-large.c (do_one_test): Likewise.
36799 * benchtests/bench-memmove.c (do_one_test): Likewise.
36800 * benchtests/bench-memset-large.c (do_one_test): Likewise.
36801 * benchtests/bench-memset.c (do_one_test): Likewise.
36802 * benchtests/bench-string.h (test_init): Remove memsets.
36803
36804 2017-08-10 Rical Jasan <ricaljasan@pacific.net>
36805
36806 * manual/lang.texi
36807 (Computing the Width of an Integer Data Type): Rename section to
36808 "Width of an Integer Type". Remove inaccurate statement regarding
36809 lack of C language facilities for determining width of integer
36810 types, and reorder content to improve flow and context of
36811 discussion.
36812
36813 2017-08-10 Rical Jasan <ricaljasan@pacific.net>
36814
36815 * lang.texi (va_copy): Change standard from ISO to C99.
36816 (__va_copy): Add standard and header annotation.
36817 Update description for clarity of origins and current use.
36818
36819 2017-08-10 Gabriel F. T. Gomes <gftg@linux.vnet.ibm.com>
36820
36821 [BZ #21941]
36822 * sysdeps/powerpc/fpu/math_private.h (__ieee754_sqrtf128): Since
36823 xssqrtqp requires operands to be in Vector Registers
36824 (Altivec/VMX), replace the register constraint 'wq' with 'v'.
36825 * sysdeps/powerpc/powerpc64le/power9/fpu/e_sqrtf128.c
36826 (__ieee754_sqrtf128): Likewise.
36827
36828 2017-08-10 Wilco Dijkstra <wdijkstr@arm.com>
36829
36830 * sysdeps/aarch64/memcmp.S (memcmp):
36831 Rewrite of optimized memcmp.
36832
36833 2017-08-10 Florian Weimer <fweimer@redhat.com>
36834
36835 Introduce ld.so exceptions.
36836 * sysdeps/generic/ldsodefs.h (struct dl_exception): Define.
36837 (_dl_exception_create, _dl_exception_create_format)
36838 (_dl_exception_free, _dl_signal_exception, _dl_signal_cexception)
36839 (_dl_catch_exception): Declare.
36840 (_dl_catch_error): Update comment.
36841 * elf/dl-error-skeleton.c (struct catch): Replace objname,
36842 errstring, malloced members with exception member.
36843 (_dl_out_of_memory): Remove.
36844 (fatal_error): New function, extracted from _dl_signal_error.
36845 (_dl_signal_exception, _dl_signal_cexception): New functions.
36846 (_dl_signal_error): Call _dl_exception_create to allocate an
36847 exception object.
36848 (_dl_catch_exception): New function, based on _dl_catch_error.
36849 (_dl_catch_error): Implement using _dl_catch_exception.
36850 * elf/dl-exception.c: New file.
36851 * elf/Makefile (dl-routines): Add dl-exception.
36852 (elide-routines.os): Likewise.
36853 * elf/Version (ld/GLIBC_PRIVATE): Add _dl_exception_create,
36854 _dl_exception_create_format, _dl_exception_free.
36855 * elf/dl-deps.c (_dl_map_object_deps): Use _dl_catch_exception and
36856 _dl_signal_exception.
36857 * elf/dl-lookup.c (make_string): Remove.
36858 (_dl_lookup_symbol_x): Use _dl_exception_create_format,
36859 _dl_signal_cexception, _dl_exception_free.
36860 * elf/dl-open.c (_dl_open): Use _dl_catch_exception and
36861 _dl_signal_exception.
36862 * elf/dl-sym.c (do_sym): Likewise.
36863 * elf/dl-version.c (make_string): Remove.
36864 (match_symbol): Use _dl_exception_create_format,
36865 _dl_signal_cexception, _dl_exception_free.
36866 (_dl_check_map_versions): Likewise.
36867 * sysdeps/generic/localplt.data (ld.so): Add _dl_signal_exception,
36868 _dl_catch_exception.
36869 * sysdeps/unix/sysv/linux/aarch64/localplt.data (ld.so): Likewise.
36870 * sysdeps/unix/sysv/linux/alpha/localplt.data (ld.so): Likewise.
36871 * sysdeps/unix/sysv/linux/arm/localplt.data (ld.so): Likewise.
36872 * sysdeps/unix/sysv/linux/hppa/localplt.data (ld.so): Likewise.
36873 * sysdeps/unix/sysv/linux/i386/localplt.data (ld.so): Likewise.
36874 * sysdeps/unix/sysv/linux/ia64/localplt.data (ld.so): Likewise.
36875 * sysdeps/unix/sysv/linux/m68k/localplt.data (ld.so): Likewise.
36876 * sysdeps/unix/sysv/linux/microblaze/localplt.data (ld.so):
36877 Likewise.
36878 * sysdeps/unix/sysv/linux/nios2/localplt.data (ld.so): Likewise.
36879 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/localplt.data
36880 (ld.so): Likewise.
36881 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/localplt.data
36882 (ld.so): Likewise.
36883 * sysdeps/unix/sysv/linux/powerpc/powerpc64/localplt.data (ld.so):
36884 Likewise.
36885 * sysdeps/unix/sysv/linux/s390/localplt.data (ld.so): Likewise.
36886 * sysdeps/unix/sysv/linux/sh/localplt.data (ld.so): Likewise.
36887 * sysdeps/unix/sysv/linux/sparc/sparc32/localplt.data (ld.so):
36888 Likewise.
36889 * sysdeps/unix/sysv/linux/sparc/sparc64/localplt.data (ld.so):
36890 Likewise.
36891 * sysdeps/x86_64/localplt.data (ld.so): Likewise.
36892
36893 2017-08-10 Florian Weimer <fweimer@redhat.com>
36894
36895 * inet/net-internal.h (__inet6_scopeid_pton): Remove
36896 attribute_hidden, internal_function.
36897 * inet/inet6_scopeid_pton.c (__inet6_scopeid_pton): Remove
36898 internal_function.
36899
36900 2017-08-10 Florian Weimer <fweimer@redhat.com>
36901
36902 * malloc/malloc.c (get_max_fast): Reimplement as an inline
36903 function which calls __builtin_unreachable.
36904
36905 2017-08-10 Mike FABIAN <mfabian@redhat.com>
36906
36907 * stdlib/tst-strfmon_l.c: Fix test cases to agree with the changes in
36908 Indian monetary formatting
36909 * stdlib/Makefile: Adapt list of locales needed for the tst-strfmon_l.c
36910 test cases.
36911
36912 2017-08-09 Dmitry V. Levin <ldv@altlinux.org>
36913
36914 * sysdeps/unix/sysv/linux/aarch64/sys/ptrace.h (enum __ptrace_request):
36915 Fix typo in comment.
36916
36917 [BZ #21928]
36918 * sysdeps/unix/sysv/linux/sys/ptrace.h (enum __ptrace_flags,
36919 PTRACE_SEIZE_DEVEL): Remove.
36920 * sysdeps/unix/sysv/linux/aarch64/sys/ptrace.h: Likewise.
36921 * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Likewise.
36922 * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
36923 * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
36924 * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
36925
36926 2017-08-09 Joseph Myers <joseph@codesourcery.com>
36927
36928 * posix/bits/types.h (__qaddr_t): Remove.
36929
36930 [BZ #21457]
36931 * sysdeps/arm/sys/ucontext.h (__ctx): Move undefine further down.
36932 (ucontext_t): Use __ctx with uc_flags. Rename uc_filler to
36933 __glibc_reserved1.
36934 * sysdeps/generic/sys/ucontext.h (__ctx): New macro.
36935 (ucontext_t): Use __ctx with uc_flags.
36936 * sysdeps/i386/sys/ucontext.h (__ctx): Move undefine further down.
36937 (__ctxt): Likewise.
36938 (ucontext_t): Use __ctx with uc_flags. Rename uc_filler to
36939 __glibc_reserved1.
36940 * sysdeps/m68k/sys/ucontext.h (__ctx): Move undefine further down.
36941 (ucontext_t): Use __ctx with uc_flags. Rename uc_filler to
36942 __glibc_reserved1.
36943 * sysdeps/mips/sys/ucontext.h (__ctx): Move undefine further down.
36944 (ucontext_t): Use __ctx with uc_flags. Rename uc_filler to
36945 __glibc_reserved1.
36946 * sysdeps/unix/sysv/linux/aarch64/sys/ucontext.h (__ctx): New
36947 macro.
36948 (ucontext_t): Use __ctx with uc_flags.
36949 * sysdeps/unix/sysv/linux/alpha/sys/ucontext.h (__ctx): New macro.
36950 (ucontext_t): Use __ctx with uc_flags.
36951 * sysdeps/unix/sysv/linux/arm/sys/ucontext.h (__ctx): New macro.
36952 (ucontext_t): Use __ctx with uc_flags and uc_regspace.
36953 * sysdeps/unix/sysv/linux/hppa/sys/ucontext.h (__ctx): New macro.
36954 (ucontext_t): Use __ctx with uc_flags.
36955 * sysdeps/unix/sysv/linux/m68k/sys/ucontext.h (__ctx): Move
36956 undefine further down.
36957 (ucontext_t): Use __ctx with uc_flags. Rename uc_filler to
36958 __glibc_reserved1.
36959 * sysdeps/unix/sysv/linux/mips/sys/ucontext.h (__ctx): Move
36960 undefine further down.
36961 (ucontext_t): Use __ctx with uc_flags.
36962 * sysdeps/unix/sysv/linux/nios2/sys/ucontext.h (__ctx): Move
36963 undefine further down.
36964 (ucontext_t): Use __ctx with uc_flags.
36965 * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h (ucontext_t): Use
36966 __ctx with uc_flags, uc_regs_ptr, uc_regs and uc_reg_space.
36967 Rename uc_pad to __glibc_reserved1.
36968 * sysdeps/unix/sysv/linux/s390/sys/ucontext.h (__ctx): Move
36969 undefine further down.
36970 (ucontext_t): Use __ctx with uc_flags.
36971 * sysdeps/unix/sysv/linux/sh/sys/ucontext.h (__ctx): Move undefine
36972 further down.
36973 (ucontext_t): Use __ctx with uc_flags.
36974 * sysdeps/unix/sysv/linux/sparc/sys/ucontext.h (ucontext_t): Use
36975 __ctx with uc_flags.
36976 * sysdeps/unix/sysv/linux/tile/sys/ucontext.h (__ctx): New macro.
36977 (ucontext_t): Use __ctx with uc_flags.
36978 * sysdeps/unix/sysv/linux/x86/sys/ucontext.h (ucontext_t): Use
36979 __ctx with uc_flags.
36980
36981 2017-08-09 Florian Weimer <fweimer@redhat.com>
36982
36983 [BZ #21932]
36984 * nss/getXXbyYY_r.c (REENTRANT_NAME): Call __resolv_context_put
36985 before early return.
36986
36987 2017-08-09 Andreas Schwab <schwab@suse.de>
36988
36989 [BZ #21041]
36990 * sysdeps/unix/sysv/linux/s390/pt-longjmp.c: Update reference to
36991 renamed alias.
36992
36993 [BZ #21041]
36994 * nptl/Makefile (tests) [$(build-shared) = yes]: Add
36995 tst-compat-forwarder.
36996 (modules-names): Add tst-compat-forwarder-mod.
36997 ($(objpfx)tst-compat-forwarder): Depend on
36998 $(objpfx)tst-compat-forwarder-mod.so.
36999 * nptl/tst-compat-forwarder.c: New file.
37000 * nptl/tst-compat-forwarder-mod.c: New file.
37001
37002 2017-08-09 Siddhesh Poyarekar <siddhesh@sourceware.org>
37003
37004 * sysdeps/aarch64/multiarch/memcpy_falkor.S: Fix code style in
37005 comments.
37006
37007 * manual/tunables.texi (Tunable glibc.tune.cpu): Add falkor.
37008 * sysdeps/aarch64/multiarch/Makefile (sysdep_routines): Add
37009 memcpy_falkor.
37010 * sysdeps/aarch64/multiarch/ifunc-impl-list.c (MAX_IFUNC):
37011 Bump.
37012 (__libc_ifunc_impl_list): Add __memcpy_falkor.
37013 * sysdeps/aarch64/multiarch/memcpy.c: Likewise.
37014 * sysdeps/aarch64/multiarch/memcpy_falkor.S: New file.
37015 * sysdeps/unix/sysv/linux/aarch64/cpu-features.c (cpu_list):
37016 Add falkor.
37017 * sysdeps/unix/sysv/linux/aarch64/cpu-features.h (IS_FALKOR):
37018 New macro.
37019
37020 2017-08-08 Adhemerval Zanella <adhemerval.zanella@linaro.org>
37021
37022 [BZ #759]
37023 * manual/setjmp.texi (getcontex): Document uc_stack value
37024 compatibility differences.
37025
37026 2017-08-08 Joseph Myers <joseph@codesourcery.com>
37027
37028 * malloc/mcheck.c (old_free_hook): Use void * instead of __ptr_t.
37029 (old_malloc_hook): Likewise.
37030 (old_memalign_hook): Likewise.
37031 (old_realloc_hook): Likewise.
37032 (struct hdr): Likewise.
37033 (flood): Likewise.
37034 (freehook): Likewise.
37035 (mallochook): Likewise.
37036 (memalignhook): Likewise.
37037 (reallochook): Likewise.
37038 (mprobe): Likewise.
37039 * malloc/mtrace.c (mallwatch): Likewise.
37040 (tr_old_free_hook): Likewise.
37041 (tr_old_malloc_hook): Likewise.
37042 (tr_old_realloc_hook): Likewise.
37043 (tr_old_memalign_hook): Likewise.
37044 (tr_where): Likewise.
37045 (lock_and_info): Likewise.
37046 (tr_freehook): Likewise.
37047 (tr_mallochook): Likewise.
37048 (tr_reallochook): Likewise.
37049 (tr_memalignhook): Likewise.
37050 * misc/err.h [!__GNUC_VA_LIST] (__gnuc_va_list): Likewise.
37051 * misc/mmap.c (__mmap): Likewise.
37052 * misc/mmap64.c (__mmap64): Likewise.
37053 * misc/mprotect.c (__mprotect): Likewise.
37054 * misc/msync.c (msync): Likewise.
37055 * misc/munmap.c (__munmap): Likewise.
37056 * posix/posix_madvise.c (posix_madvise): Likewise.
37057 * socket/send.c (__send): Likewise.
37058 * socket/sendto.c (__sendto): Likewise.
37059 * socket/setsockopt.c (__setsockopt): Likewise.
37060 * string/memcmp.c (__ptr_t): Remove macro.
37061 (MEMCMP): Use void * instead of ptr_t.
37062 * string/memrchr.c (__ptr_t): Remove macro.
37063 (__memrchr): Use void * instead of ptr_t.
37064 * sysdeps/mach/hurd/dl-sysdep.c (__mmap): Likewise.
37065 * sysdeps/mach/hurd/mmap.c (__mmap): Likewise.
37066 * sysdeps/mach/hurd/mmap64.c (__mmap64): Likewise.
37067 * sysdeps/mach/mprotect.c (__mprotect): Likewise.
37068 * sysdeps/mach/msync.c (msync): Likewise.
37069 * sysdeps/mach/munmap.c (__munmap): Likewise.
37070 * sysdeps/mips/bits/setjmp.h (struct __jmp_buf_internal_tag):
37071 Likewise.
37072 * sysdeps/posix/getcwd.c (__getcwd): Likewise.
37073 * sysdeps/powerpc/powerpc32/memset.S (memset): Likewise.
37074 * sysdeps/powerpc/powerpc32/power4/memcpy.S (memcpy): Likewise.
37075 * sysdeps/powerpc/powerpc32/power4/memset.S (memset): Likewise.
37076 * sysdeps/powerpc/powerpc32/power6/memcpy.S (memcpy): Likewise.
37077 * sysdeps/powerpc/powerpc32/power6/memset.S (memset): Likewise.
37078 * sysdeps/powerpc/powerpc32/power7/memcpy.S (memcpy): Likewise.
37079 * sysdeps/powerpc/powerpc32/power7/mempcpy.S (__mempcpy):
37080 Likewise.
37081 * sysdeps/powerpc/powerpc32/power7/memset.S (memset): Likewise.
37082 * sysdeps/powerpc/powerpc64/memcpy.S (memcpy): Likewise.
37083 * sysdeps/powerpc/powerpc64/memset.S (memset): Likewise.
37084 * sysdeps/powerpc/powerpc64/power4/memcpy.S (memcpy): Likewise.
37085 * sysdeps/powerpc/powerpc64/power4/memset.S (memset): Likewise.
37086 * sysdeps/powerpc/powerpc64/power6/memcpy.S (memcpy): Likewise.
37087 * sysdeps/powerpc/powerpc64/power6/memset.S (memset): Likewise.
37088 * sysdeps/powerpc/powerpc64/power7/memcpy.S (memcpy): Likewise.
37089 * sysdeps/powerpc/powerpc64/power7/mempcpy.S (__mempcpy):
37090 Likewise.
37091 * sysdeps/powerpc/powerpc64/power7/memset.S (memset): Likewise.
37092 * sysdeps/powerpc/powerpc64/power8/memset.S (memset): Likewise.
37093 * sysdeps/tile/memcmp.c (__ptr_t): Remove macro.
37094 (MEMCMP): Use void * instead of ptr_t.
37095 * sysdeps/unix/sysv/linux/alpha/oldglob.c (old_glob_t): Likewise.
37096 * sysdeps/unix/sysv/linux/mmap.c (__mmap): Likewise.
37097
37098 2017-08-08 Florian Weimer <fweimer@redhat.com>
37099
37100 * sysdeps/posix/getaddrinfo.c (gaih_inet): Remove unreachable
37101 return statement.
37102
37103 2017-08-08 H.J. Lu <hongjiu.lu@intel.com>
37104
37105 [BZ #21913]
37106 * csu/libc-tls.c: Include <startup.h> first.
37107 (__libc_setup_tls): Call _startup_fatal instead of __libc_fatal.
37108 * elf/dl-tunables.c: Include <startup.h> first.
37109 * include/libc-symbols.h (BUILD_PIE_DEFAULT): New.
37110 * sysdeps/generic/startup.h: New file.
37111 * sysdeps/unix/sysv/linux/i386/startup.h: Likewise.
37112 * sysdeps/unix/sysv/linux/i386/brk.c [BUILD_PIE_DEFAULT != 0]
37113 (I386_USE_SYSENTER): New. Defined to 0.
37114
37115 2017-08-08 Andreas Schwab <schwab@suse.de>
37116
37117 [BZ #21041]
37118 * nptl/pt-longjmp.c (longjmp, siglongjmp): Don't use IFUNC resolver.
37119 * nptl/pt-system.c (system): Likewise.
37120
37121 2017-08-07 Adhemerval Zanella <adhemerval.zanella@linaro.org>
37122
37123 [BZ #21780]
37124 * sysdeps/posix/preadv2.c (preadv2): Use ENOTSUP instead of
37125 EOPNOTSUPP.
37126 * sysdeps/posix/preadv64v2.c (preadv64v2): Likewise.
37127 * sysdeps/posix/pwritev2.c (pwritev2): Likewise.
37128 * sysdeps/posix/pwritev64v2.c (pwritev64v2): Likewise.
37129 * sysdeps/unix/sysv/linux/preadv2.c (preadv2): Likewise.
37130 * sysdeps/unix/sysv/linux/preadv64v2.c (preadv64v2): Likewise.
37131 * sysdeps/unix/sysv/linux/pwritev2.c (pwritev2): Likewise.
37132 * sysdeps/unix/sysv/linux/pwritev64v2.c (pwritev64v2): Likewise.
37133
37134 2017-08-07 Joseph Myers <joseph@codesourcery.com>
37135
37136 [BZ #21899]
37137 * bits/sigaction.h (struct sigaction): Define sa_handler and
37138 sa_sigaction using union also for [__USE_XOPEN_EXTENDED].
37139 (SA_ONSTACK): Change [__USE_UNIX98] condition to
37140 [__USE_XOPEN_EXTENDED].
37141 (SA_RESTART): Likewise.
37142 (SA_NODEFER): Likewise.
37143 (SA_RESETHAND): Likewise.
37144 * sysdeps/unix/sysv/linux/alpha/bits/sigaction.h
37145 (struct sigaction): Define sa_handler and sa_sigaction using union
37146 also for [__USE_XOPEN_EXTENDED].
37147 (SA_ONSTACK): Change [__USE_UNIX98] condition to
37148 [__USE_XOPEN_EXTENDED].
37149 (SA_RESTART): Likewise.
37150 (SA_NODEFER): Likewise.
37151 (SA_RESETHAND): Likewise.
37152 * sysdeps/unix/sysv/linux/bits/sigaction.h
37153 (struct sigaction): Define sa_handler and sa_sigaction using union
37154 also for [__USE_XOPEN_EXTENDED].
37155 (SA_ONSTACK): Change [__USE_UNIX98] condition to
37156 [__USE_XOPEN_EXTENDED].
37157 (SA_RESTART): Likewise.
37158 (SA_NODEFER): Likewise.
37159 (SA_RESETHAND): Likewise.
37160 * sysdeps/unix/sysv/linux/hppa/bits/sigaction.h
37161 (struct sigaction): Define sa_handler and sa_sigaction using union
37162 also for [__USE_XOPEN_EXTENDED].
37163 (SA_ONSTACK): Change [__USE_UNIX98] condition to
37164 [__USE_XOPEN_EXTENDED].
37165 (SA_RESTART): Likewise.
37166 (SA_NODEFER): Likewise.
37167 (SA_RESETHAND): Likewise.
37168 * sysdeps/unix/sysv/linux/ia64/bits/sigaction.h
37169 (struct sigaction): Define sa_handler and sa_sigaction using union
37170 also for [__USE_XOPEN_EXTENDED].
37171 (SA_ONSTACK): Change [__USE_UNIX98] condition to
37172 [__USE_XOPEN_EXTENDED].
37173 (SA_RESTART): Likewise.
37174 (SA_NODEFER): Likewise.
37175 (SA_RESETHAND): Likewise.
37176 * sysdeps/unix/sysv/linux/mips/bits/sigaction.h
37177 (struct sigaction): Define sa_handler and sa_sigaction using union
37178 also for [__USE_XOPEN_EXTENDED].
37179 (SA_ONSTACK): Change [__USE_UNIX98] condition to
37180 [__USE_XOPEN_EXTENDED].
37181 (SA_RESTART): Likewise.
37182 (SA_NODEFER): Likewise.
37183 (SA_RESETHAND): Likewise.
37184 * sysdeps/unix/sysv/linux/s390/bits/sigaction.h
37185 (struct sigaction): Define sa_handler and sa_sigaction using union
37186 also for [__USE_XOPEN_EXTENDED].
37187 (SA_ONSTACK): Change [__USE_UNIX98] condition to
37188 [__USE_XOPEN_EXTENDED].
37189 (SA_RESTART): Likewise.
37190 (SA_NODEFER): Likewise.
37191 (SA_RESETHAND): Likewise.
37192 * sysdeps/unix/sysv/linux/sparc/bits/sigaction.h
37193 (struct sigaction): Define sa_handler and sa_sigaction using union
37194 also for [__USE_XOPEN_EXTENDED].
37195 (SA_ONSTACK): Change [__USE_UNIX98] condition to
37196 [__USE_XOPEN_EXTENDED].
37197 (SA_RESTART): Likewise.
37198 (SA_NODEFER): Likewise. Define directly rather than as alias.
37199 (SA_RESETHAND): Likewise.
37200 (SA_INTERRUPT): Define only for [__USE_MISC].
37201 (SA_NOMASK): Define as alias of SA_NODEFER, only for [__USE_MISC].
37202 (SA_ONESHOT): Define as alias of SA_RESETHAND, only for
37203 [__USE_MISC].
37204 (SA_STACK): Define only for [__USE_MISC].
37205 * sysdeps/unix/sysv/linux/tile/bits/sigaction.h
37206 (struct sigaction): Define sa_handler and sa_sigaction using union
37207 also for [__USE_XOPEN_EXTENDED].
37208 (SA_ONSTACK): Change [__USE_UNIX98] condition to
37209 [__USE_XOPEN_EXTENDED].
37210 (SA_RESTART): Likewise.
37211 (SA_NODEFER): Likewise.
37212 (SA_RESETHAND): Likewise.
37213 (SA_NOPTRACE): Define only for [__USE_MISC].
37214
37215 * catgets/catgets.c (catgets): Use uintN_t instead of u_intN_t.
37216 * catgets/catgetsinfo.h (struct catalog_obj): Likewise.
37217 (struct catalog_info): Likewise.
37218 * inet/htontest.c (lo): Likewise.
37219 (foo): Likewise.
37220 * inet/inet_lnaof.c (inet_lnaof): Likewise.
37221 * inet/inet_net.c (inet_network): Likewise.
37222 * inet/inet_netof.c (inet_netof): Likewise.
37223 * inet/rcmd.c (__ivaliduser): Likewise.
37224 (iruserok): Likewise.
37225 * locale/loadlocale.c (_nl_intern_locale_data): Likewise.
37226 * locale/programs/locale-spec.c (locale_special): Likewise.
37227 * nis/nis_findserv.c (struct findserv_req): Likewise.
37228 (__nis_findfastest_with_timeout): Likewise.
37229 * nss/test-netdb.c (test_network): Likewise.
37230 * resolv/inet_neta.c (inet_neta): Likewise.
37231 * resolv/ns_date.c (ns_datetosecs): Likewise.
37232 (SECS_PER_DAY): Likewise.
37233 * resolv/nss_dns/dns-network.c (_nss_dns_getnetbyaddr_r):
37234 Likewise.
37235 * resolv/res_comp.c (__putlong): Likewise.
37236 (__putshort): Likewise.
37237 (_getlong): Likewise.
37238 (_getshort): Likewise.
37239 * resolv/res_debug.c (p_time): Likewise.
37240 (precsize_ntoa): Likewise.
37241 (precsize_aton): Likewise.
37242 (latlon2ul): Likewise.
37243 (loc_aton): Likewise.
37244 (loc_ntoa): Likewise.
37245 * resolv/res_hconf.c (struct netaddr): Likewise.
37246 (_res_hconf_reorder_addrs): Likewise.
37247 * sunrpc/clnt_tcp.c (clnttcp_call): Likewise.
37248 (clnttcp_control): Likewise.
37249 * sunrpc/clnt_udp.c (clntudp_call): Likewise.
37250 (clntudp_control): Likewise.
37251 * sunrpc/clnt_unix.c (clntunix_call): Likewise.
37252 (clntunix_control): Likewise.
37253 * sunrpc/pmap_rmt.c (clnt_broadcast): Likewise.
37254 * sunrpc/rpc/auth.h (union des_block): Likewise.
37255 * sunrpc/tst-udp-nonblocking.c (do_test): Likewise.
37256 * sunrpc/xdr_rec.c (struct rec_strm): Likewise.
37257 (xdrrec_create): Likewise.
37258 (xdrrec_endofrecord): Likewise.
37259 (flush_out): Likewise.
37260 * sunrpc/xdr_stdio.c (xdrstdio_getlong): Likewise.
37261 (xdrstdio_putlong): Likewise.
37262 * sysdeps/unix/sysv/linux/errqueue.h (struct sock_extended_err):
37263 Likewise.
37264
37265 * misc/sys/cdefs.h (__long_double_t): Remove.
37266 * stdio-common/printf_fp.c (__printf_fp_l): Use long double
37267 instead of __long_double_t,
37268 * stdlib/strfmon_l.c (__vstrfmon_l): Likewise.
37269
37270 2017-08-07 Siddhesh Poyarekar <siddhesh@sourceware.org>
37271
37272 * benchtests/scripts/compare_strings.py: Avoid display error when
37273 running on a text terminal.
37274
37275 * benchtests/scripts/compare_strings.py (main): Add an
37276 optional -base option.
37277 (process_results): New argument base_func.
37278
37279 * benchtests/bench-memcpy.c (test_main): Use TEST_NAME instead of
37280 hardcoding memcpy.
37281 * benchtests/bench-memcpy-large.c (test_name): Likewise.
37282 * benchtests/bench-memcpy-random.c (test_name): Likewise.
37283
37284 2017-08-07 Andreas Schwab <schwab@suse.de>
37285
37286 * elf/Makefile ($(objpfx)tst-pathopt.out): Redirect output to target.
37287 * grp/Makefile ($(objpfx)tst_fgetgrent.out): Likewise.
37288 * intl/Makefile ($(objpfx)tst-gettext.out)
37289 ($(objpfx)tst-translit.out, $(objpfx)tst-gettext2.out)
37290 ($(objpfx)tst-gettext4.out, $(objpfx)tst-gettext6.out): Likewise.
37291 * libio/Makefile ($(objpfx)test-freopen.out): Likewise.
37292 * malloc/Makefile ($(objpfx)tst-mtrace.out): Likewise.
37293 * nptl/Makefile ($(objpfx)tst-tls6.out): Likewise.
37294 * posix/Makefile ($(objpfx)globtest.out)
37295 ($(objpfx)wordexp-tst.out, $(objpfx)tst-getconf.out): Likewise.
37296 * stdio-common/Makefile ($(objpfx)tst-unbputc.out)
37297 ($(objpfx)tst-printf.out): Likewise.
37298 * stdlib/Makefile ($(objpfx)tst-fmtmsg.out)
37299 ($(objpfx)tst-setcontext3.out): Likewise.
37300
37301 2017-08-07 H.J. Lu <hongjiu.lu@intel.com>
37302
37303 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
37304 Add e_exp-fma, e_log-fma, e_pow-fma, s_atan-fma, e_asin-fma,
37305 e_atan2-fma, s_sin-fma, s_tan-fma, mplog-fma, mpa-fma,
37306 slowexp-fma, slowpow-fma, sincos32-fma, doasin-fma, dosincos-fma,
37307 halfulp-fma, mpexp-fma, mpatan2-fma, mpatan-fma, mpsqrt-fma,
37308 and mptan-fma.
37309 (CFLAGS-doasin-fma.c): New.
37310 (CFLAGS-dosincos-fma.c): Likewise.
37311 (CFLAGS-e_asin-fma.c): Likewise.
37312 (CFLAGS-e_atan2-fma.c): Likewise.
37313 (CFLAGS-e_exp-fma.c): Likewise.
37314 (CFLAGS-e_log-fma.c): Likewise.
37315 (CFLAGS-e_pow-fma.c): Likewise.
37316 (CFLAGS-halfulp-fma.c): Likewise.
37317 (CFLAGS-mpa-fma.c): Likewise.
37318 (CFLAGS-mpatan-fma.c): Likewise.
37319 (CFLAGS-mpatan2-fma.c): Likewise.
37320 (CFLAGS-mpexp-fma.c): Likewise.
37321 (CFLAGS-mplog-fma.c): Likewise.
37322 (CFLAGS-mpsqrt-fma.c): Likewise.
37323 (CFLAGS-mptan-fma.c): Likewise.
37324 (CFLAGS-s_atan-fma.c): Likewise.
37325 (CFLAGS-sincos32-fma.c): Likewise.
37326 (CFLAGS-slowexp-fma.c): Likewise.
37327 (CFLAGS-slowpow-fma.c): Likewise.
37328 (CFLAGS-s_sin-fma.c): Likewise.
37329 (CFLAGS-s_tan-fma.c): Likewise.
37330 * sysdeps/x86_64/fpu/multiarch/doasin-fma.c: New file.
37331 * sysdeps/x86_64/fpu/multiarch/dosincos-fma.c: Likewise.
37332 * sysdeps/x86_64/fpu/multiarch/e_asin-fma.c: Likewise.
37333 * sysdeps/x86_64/fpu/multiarch/e_atan2-fma.c: Likewise.
37334 * sysdeps/x86_64/fpu/multiarch/e_exp-fma.c: Likewise.
37335 * sysdeps/x86_64/fpu/multiarch/e_log-fma.c: Likewise.
37336 * sysdeps/x86_64/fpu/multiarch/e_pow-fma.c: Likewise.
37337 * sysdeps/x86_64/fpu/multiarch/halfulp-fma.c: Likewise.
37338 * sysdeps/x86_64/fpu/multiarch/ifunc-avx-fma4.h: Likewise.
37339 * sysdeps/x86_64/fpu/multiarch/ifunc-fma4.h: Likewise.
37340 * sysdeps/x86_64/fpu/multiarch/mpa-fma.c: Likewise.
37341 * sysdeps/x86_64/fpu/multiarch/mpatan-fma.c: Likewise.
37342 * sysdeps/x86_64/fpu/multiarch/mpatan2-fma.c: Likewise.
37343 * sysdeps/x86_64/fpu/multiarch/mpexp-fma.c: Likewise.
37344 * sysdeps/x86_64/fpu/multiarch/mplog-fma.c: Likewise.
37345 * sysdeps/x86_64/fpu/multiarch/mpsqrt-fma.c: Likewise.
37346 * sysdeps/x86_64/fpu/multiarch/mptan-fma.c: Likewise.
37347 * sysdeps/x86_64/fpu/multiarch/s_atan-fma.c: Likewise.
37348 * sysdeps/x86_64/fpu/multiarch/s_sin-fma.c: Likewise.
37349 * sysdeps/x86_64/fpu/multiarch/s_tan-fma.c: Likewise.
37350 * sysdeps/x86_64/fpu/multiarch/sincos32-fma.c: Likewise.
37351 * sysdeps/x86_64/fpu/multiarch/slowexp-fma.c: Likewise.
37352 * sysdeps/x86_64/fpu/multiarch/slowpow-fma.c: Likewise.
37353 * sysdeps/x86_64/fpu/multiarch/e_asin.c: Rewrite.
37354 * sysdeps/x86_64/fpu/multiarch/e_atan2.c: Likewise.
37355 * sysdeps/x86_64/fpu/multiarch/e_exp.c: Likewise.
37356 * sysdeps/x86_64/fpu/multiarch/e_log.c: Likewise.
37357 * sysdeps/x86_64/fpu/multiarch/e_pow.c: Likewise.
37358 * sysdeps/x86_64/fpu/multiarch/s_atan.c: Likewise.
37359 * sysdeps/x86_64/fpu/multiarch/s_sin.c: Likewise.
37360 * sysdeps/x86_64/fpu/multiarch/s_tan.c: Likewise.
37361
37362 2017-08-04 Joseph Myers <joseph@codesourcery.com>
37363
37364 * sysdeps/generic/math_private.h (__EXPR_FLT128): Remove macro.
37365 (min_of_type_f): New macro.
37366 (min_of_type_): Likewise.
37367 (min_of_type_l): Likewise.
37368 (min_of_type_f128): Likewise.
37369 (min_of_type): Define using __MATH_TG and taking an expression
37370 argument.
37371 (math_check_force_underflow): Pass expression instead of type to
37372 min_of_type.
37373 (math_check_force_underflow_nonneg): Likewise.
37374
37375 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
37376
37377 * sysdeps/x86/cpu-features.h [__ASSEMBLER__]
37378 (LOAD_RTLD_GLOBAL_RO_RDX, HAS_FEATURE, LOAD_FUNC_GOT_EAX,
37379 HAS_CPU_FEATURE, HAS_ARCH_FEATURE): Removed.
37380
37381 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
37382
37383 * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
37384 bcopy-ia32, bzero-ia32, rawmemchr-ia32 memchr-ia32,
37385 memcmp-ia32, memcpy-ia32, memmove-ia32, mempcpy-ia32,
37386 memset-ia32, strcat-ia32, strchr-ia32, strrchr-ia32,
37387 strcpy-ia32, strcmp-ia32, strcspn-ia32, strpbrk-ia32,
37388 strspn-ia32, strlen-ia32, stpcpy-ia32, stpncpy-ia32,
37389 memcpy_chk-nonshared, mempcpy_chk-nonshared,
37390 memmove_chk-nonshared and memset_chk-nonshared
37391 * sysdeps/i386/i686/multiarch/bcopy-ia32.S: New file.
37392 * sysdeps/i386/i686/multiarch/bcopy.c: Likewise.
37393 * sysdeps/i386/i686/multiarch/bzero-ia32.S: Likewise.
37394 * sysdeps/i386/i686/multiarch/bzero.c: Likewise.
37395 * sysdeps/i386/i686/multiarch/ifunc-memmove.h: Likewise.
37396 * sysdeps/i386/i686/multiarch/ifunc-memset.h: Likewise.
37397 * sysdeps/i386/i686/multiarch/ifunc-sse2-bsf.h: Likewise.
37398 * sysdeps/i386/i686/multiarch/ifunc-sse2-ssse3.h: Likewise.
37399 * sysdeps/i386/i686/multiarch/ifunc-sse2.h: Likewise.
37400 * sysdeps/i386/i686/multiarch/ifunc-sse4_2.h: Likewise.
37401 * sysdeps/i386/i686/multiarch/ifunc-ssse3-sse4_2.h: Likewise.
37402 * sysdeps/i386/i686/multiarch/memchr-ia32.S: Likewise.
37403 * sysdeps/i386/i686/multiarch/memchr.c: Likewise.
37404 * sysdeps/i386/i686/multiarch/memcmp-ia32.S: Likewise.
37405 * sysdeps/i386/i686/multiarch/memcmp.c: Likewise.
37406 * sysdeps/i386/i686/multiarch/memcpy-ia32.S: Likewise.
37407 * sysdeps/i386/i686/multiarch/memcpy.c: Likewise.
37408 * sysdeps/i386/i686/multiarch/memcpy_chk-nonshared.S: Likewise.
37409 * sysdeps/i386/i686/multiarch/memcpy_chk.c: Likewise.
37410 * sysdeps/i386/i686/multiarch/memmove-ia32.S: Likewise.
37411 * sysdeps/i386/i686/multiarch/memmove.c: Likewise.
37412 * sysdeps/i386/i686/multiarch/memmove_chk-nonshared.S: Likewise.
37413 * sysdeps/i386/i686/multiarch/memmove_chk.c: Likewise.
37414 * sysdeps/i386/i686/multiarch/mempcpy-ia32.S: Likewise.
37415 * sysdeps/i386/i686/multiarch/mempcpy.c: Likewise.
37416 * sysdeps/i386/i686/multiarch/mempcpy_chk-nonshared.S: Likewise.
37417 * sysdeps/i386/i686/multiarch/mempcpy_chk.c: Likewise.
37418 * sysdeps/i386/i686/multiarch/memrchr.c: Likewise.
37419 * sysdeps/i386/i686/multiarch/memset-ia32.S: Likewise.
37420 * sysdeps/i386/i686/multiarch/memset.c: Likewise.
37421 * sysdeps/i386/i686/multiarch/memset_chk-nonshared.S: Likewise.
37422 * sysdeps/i386/i686/multiarch/rawmemchr-ia32.S: Likewise.
37423 * sysdeps/i386/i686/multiarch/rawmemchr.c: Likewise.
37424 * sysdeps/i386/i686/multiarch/stpcpy-ia32.S: Likewise.
37425 * sysdeps/i386/i686/multiarch/stpcpy-ia32.S: Likewise.
37426 * sysdeps/i386/i686/multiarch/stpcpy.c: Likewise.
37427 * sysdeps/i386/i686/multiarch/stpncpy-ia32.S: Likewise.
37428 * sysdeps/i386/i686/multiarch/stpncpy.c: Likewise.
37429 * sysdeps/i386/i686/multiarch/strcasecmp.c: Likewise.
37430 * sysdeps/i386/i686/multiarch/strcasecmp_l.c: Likewise.
37431 * sysdeps/i386/i686/multiarch/strcat-ia32.S: Likewise.
37432 * sysdeps/i386/i686/multiarch/strcat.c: Likewise.
37433 * sysdeps/i386/i686/multiarch/strchr-ia32.S: Likewise.
37434 * sysdeps/i386/i686/multiarch/strchr.c: Likewise.
37435 * sysdeps/i386/i686/multiarch/strcmp-ia32.S: Likewise.
37436 * sysdeps/i386/i686/multiarch/strcmp.c: Likewise.
37437 * sysdeps/i386/i686/multiarch/strcpy-ia32.S: Likewise.
37438 * sysdeps/i386/i686/multiarch/strcpy.c: Likewise.
37439 * sysdeps/i386/i686/multiarch/strcspn-ia32.S: Likewise.
37440 * sysdeps/i386/i686/multiarch/strcspn.c: Likewise.
37441 * sysdeps/i386/i686/multiarch/strlen-ia32.S: Likewise.
37442 * sysdeps/i386/i686/multiarch/strlen.c: Likewise.
37443 * sysdeps/i386/i686/multiarch/strncase.c: Likewise.
37444 * sysdeps/i386/i686/multiarch/strncase_l.c: Likewise.
37445 * sysdeps/i386/i686/multiarch/strncat.c: Likewise.
37446 * sysdeps/i386/i686/multiarch/strncmp.c: Likewise.
37447 * sysdeps/i386/i686/multiarch/strncpy.c: Likewise.
37448 * sysdeps/i386/i686/multiarch/strnlen.c: Likewise.
37449 * sysdeps/i386/i686/multiarch/strpbrk-ia32.S: Likewise.
37450 * sysdeps/i386/i686/multiarch/strpbrk.c: Likewise.
37451 * sysdeps/i386/i686/multiarch/strrchr-ia32.S: Likewise.
37452 * sysdeps/i386/i686/multiarch/strrchr.c: Likewise.
37453 * sysdeps/i386/i686/multiarch/strspn-ia32.S: Likewise.
37454 * sysdeps/i386/i686/multiarch/strspn.c: Likewise.
37455 * sysdeps/i386/i686/multiarch/wcschr.c: Likewise.
37456 * sysdeps/i386/i686/multiarch/wcscmp.c: Likewise.
37457 * sysdeps/i386/i686/multiarch/wcscpy.c: Likewise.
37458 * sysdeps/i386/i686/multiarch/wcslen.c: Likewise.
37459 * sysdeps/i386/i686/multiarch/wcsrchr.c: Likewise.
37460 * sysdeps/i386/i686/multiarch/wmemcmp.c: Likewise.
37461 * sysdeps/i386/i686/multiarch/bcopy.S: Removed.
37462 * sysdeps/i386/i686/multiarch/bzero.S: Likewise.
37463 * sysdeps/i386/i686/multiarch/memchr.S: Likewise.
37464 * sysdeps/i386/i686/multiarch/memcmp.S: Likewise.
37465 * sysdeps/i386/i686/multiarch/memcpy.S: Likewise.
37466 * sysdeps/i386/i686/multiarch/memcpy_chk.S: Likewise.
37467 * sysdeps/i386/i686/multiarch/memmove.S: Likewise.
37468 * sysdeps/i386/i686/multiarch/memmove_chk.S: Likewise.
37469 * sysdeps/i386/i686/multiarch/mempcpy.S: Likewise.
37470 * sysdeps/i386/i686/multiarch/mempcpy_chk.S: Likewise.
37471 * sysdeps/i386/i686/multiarch/memrchr.S: Likewise.
37472 * sysdeps/i386/i686/multiarch/memset.S: Likewise.
37473 * sysdeps/i386/i686/multiarch/memset_chk.S: Likewise.
37474 * sysdeps/i386/i686/multiarch/rawmemchr.S: Likewise.
37475 * sysdeps/i386/i686/multiarch/stpcpy.S: Likewise.
37476 * sysdeps/i386/i686/multiarch/stpncpy.S: Likewise.
37477 * sysdeps/i386/i686/multiarch/strcasecmp.S: Likewise.
37478 * sysdeps/i386/i686/multiarch/strcasecmp_l.S: Likewise.
37479 * sysdeps/i386/i686/multiarch/strcat.S: Likewise.
37480 * sysdeps/i386/i686/multiarch/strcmp.S: Likewise.
37481 * sysdeps/i386/i686/multiarch/strcpy.S: Likewise.
37482 * sysdeps/i386/i686/multiarch/strcspn.S: Likewise.
37483 * sysdeps/i386/i686/multiarch/strlen.S: Likewise.
37484 * sysdeps/i386/i686/multiarch/strncase.S: Likewise.
37485 * sysdeps/i386/i686/multiarch/strncase_l.S: Likewise.
37486 * sysdeps/i386/i686/multiarch/strncat.S: Likewise.
37487 * sysdeps/i386/i686/multiarch/strncmp.S: Likewise.
37488 * sysdeps/i386/i686/multiarch/strncpy.S: Likewise.
37489 * sysdeps/i386/i686/multiarch/strnlen.S: Likewise.
37490 * sysdeps/i386/i686/multiarch/strpbrk.S: Likewise.
37491 * sysdeps/i386/i686/multiarch/strrchr.S: Likewise.
37492 * sysdeps/i386/i686/multiarch/strspn.S: Likewise.
37493 * sysdeps/i386/i686/multiarch/wcschr.S: Likewise.
37494 * sysdeps/i386/i686/multiarch/wcscmp.S: Likewise.
37495 * sysdeps/i386/i686/multiarch/wcscpy.S: Likewise.
37496 * sysdeps/i386/i686/multiarch/wcslen.S: Likewise.
37497 * sysdeps/i386/i686/multiarch/wcsrchr.S: Likewise.
37498 * sysdeps/i386/i686/multiarch/wmemcmp.S: Likewise.
37499
37500 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
37501
37502 * sysdeps/x86_64/fpu/multiarch/Makefile (libmvec-sysdep_routines)
37503 Add svml_d_cos2_core-sse2, svml_d_cos4_core-sse,
37504 svml_d_cos8_core-avx2, svml_d_exp2_core-sse2,
37505 svml_d_exp4_core-sse, svml_d_exp8_core-avx2,
37506 svml_d_log2_core-sse2, svml_d_log4_core-sse,
37507 svml_d_log8_core-avx2, svml_d_pow2_core-sse2,
37508 svml_d_pow4_core-sse, svml_d_pow8_core-avx2
37509 svml_d_sin2_core-sse2, svml_d_sin4_core-sse,
37510 svml_d_sin8_core-avx2, svml_d_sincos2_core-sse2,
37511 svml_d_sincos4_core-sse, svml_d_sincos8_core-avx2,
37512 svml_s_cosf16_core-avx2, svml_s_cosf4_core-sse2,
37513 svml_s_cosf8_core-sse, svml_s_expf16_core-avx2,
37514 svml_s_expf4_core-sse2, svml_s_expf8_core-sse,
37515 svml_s_logf16_core-avx2, svml_s_logf4_core-sse2,
37516 svml_s_logf8_core-sse, svml_s_powf16_core-avx2,
37517 svml_s_powf4_core-sse2, svml_s_powf8_core-sse,
37518 svml_s_sincosf16_core-avx2, svml_s_sincosf4_core-sse2,
37519 svml_s_sincosf8_core-sse, svml_s_sinf16_core-avx2,
37520 svml_s_sinf4_core-sse2 and svml_s_sinf8_core-sse.
37521 * sysdeps/x86_64/fpu/multiarch/ifunc-mathvec-avx2.h: New file.
37522 * sysdeps/x86_64/fpu/multiarch/ifunc-mathvec-avx512.h: Likewise.
37523 * sysdeps/x86_64/fpu/multiarch/ifunc-mathvec-sse4_1.h: Likewise.
37524 * sysdeps/x86_64/fpu/multiarch/svml_d_cos2_core.c: Likewise.
37525 * sysdeps/x86_64/fpu/multiarch/svml_d_cos4_core.c: Likewise.
37526 * sysdeps/x86_64/fpu/multiarch/svml_d_cos8_core.c: Likewise.
37527 * sysdeps/x86_64/fpu/multiarch/svml_d_exp2_core.c: Likewise.
37528 * sysdeps/x86_64/fpu/multiarch/svml_d_exp4_core.c: Likewise.
37529 * sysdeps/x86_64/fpu/multiarch/svml_d_exp8_core.c: Likewise.
37530 * sysdeps/x86_64/fpu/multiarch/svml_d_log2_core.c: Likewise.
37531 * sysdeps/x86_64/fpu/multiarch/svml_d_log4_core.c: Likewise.
37532 * sysdeps/x86_64/fpu/multiarch/svml_d_log8_core.c: Likewise.
37533 * sysdeps/x86_64/fpu/multiarch/svml_d_pow2_core.c: Likewise.
37534 * sysdeps/x86_64/fpu/multiarch/svml_d_pow4_core.c: Likewise.
37535 * sysdeps/x86_64/fpu/multiarch/svml_d_pow8_core.c: Likewise.
37536 * sysdeps/x86_64/fpu/multiarch/svml_d_sin2_core.c: Likewise.
37537 * sysdeps/x86_64/fpu/multiarch/svml_d_sin4_core.c: Likewise.
37538 * sysdeps/x86_64/fpu/multiarch/svml_d_sin8_core.c: Likewise.
37539 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos2_core.c: Likewise.
37540 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos4_core.c: Likewise.
37541 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos8_core.c: Likewise.
37542 * sysdeps/x86_64/fpu/multiarch/svml_d_cosf16_core.c: Likewise.
37543 * sysdeps/x86_64/fpu/multiarch/svml_d_cosf4_core.c: Likewise.
37544 * sysdeps/x86_64/fpu/multiarch/svml_d_cosf8_core.c: Likewise.
37545 * sysdeps/x86_64/fpu/multiarch/svml_d_expf16_core.c: Likewise.
37546 * sysdeps/x86_64/fpu/multiarch/svml_d_expf4_core.c: Likewise.
37547 * sysdeps/x86_64/fpu/multiarch/svml_d_expf8_core.c: Likewise.
37548 * sysdeps/x86_64/fpu/multiarch/svml_d_logf16_core.c: Likewise.
37549 * sysdeps/x86_64/fpu/multiarch/svml_d_logf4_core.c: Likewise.
37550 * sysdeps/x86_64/fpu/multiarch/svml_d_logf8_core.c: Likewise.
37551 * sysdeps/x86_64/fpu/multiarch/svml_d_powf16_core.c: Likewise.
37552 * sysdeps/x86_64/fpu/multiarch/svml_d_powf4_core.c: Likewise.
37553 * sysdeps/x86_64/fpu/multiarch/svml_d_powf8_core.c: Likewise.
37554 * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf16_core.c: Likewise.
37555 * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf4_core.c: Likewise.
37556 * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf8_core.c: Likewise.
37557 * sysdeps/x86_64/fpu/multiarch/svml_d_sinf16_core.c: Likewise.
37558 * sysdeps/x86_64/fpu/multiarch/svml_d_sinf4_core.c: Likewise.
37559 * sysdeps/x86_64/fpu/multiarch/svml_d_sinf8_core.c: Likewise.
37560 * sysdeps/x86_64/fpu/multiarch/svml_d_cos2_core.S: Renamed to
37561 ...
37562 * sysdeps/x86_64/fpu/multiarch/svml_d_cos2_core-sse2.S: This.
37563 Don't include <sysdep.h> nor <init-arch.h>.
37564 (_ZGVbN2v_cos): Removed.
37565 * sysdeps/x86_64/fpu/multiarch/svml_d_cos4_core.S: Renamed to
37566 ...
37567 * sysdeps/x86_64/fpu/multiarch/svml_d_cos4_core-sse.S: This.
37568 Don't include <sysdep.h> nor <init-arch.h>.
37569 (_ZGVdN4v_cos): Removed.
37570 * sysdeps/x86_64/fpu/multiarch/svml_d_cos8_core.S: Renamed to
37571 ...
37572 * sysdeps/x86_64/fpu/multiarch/svml_d_cos8_core-avx2.S: This.
37573 Don't include <sysdep.h> nor <init-arch.h>.
37574 (_ZGVeN8v_cos): Removed.
37575 * sysdeps/x86_64/fpu/multiarch/svml_d_exp2_core.S: Renamed to
37576 ...
37577 * sysdeps/x86_64/fpu/multiarch/svml_d_exp2_core-sse2.S: This.
37578 Don't include <sysdep.h> nor <init-arch.h>.
37579 (_ZGVbN2v_exp): Removed.
37580 * sysdeps/x86_64/fpu/multiarch/svml_d_exp4_core.S: Renamed to
37581 ...
37582 * sysdeps/x86_64/fpu/multiarch/svml_d_exp4_core-sse.S: This.
37583 Don't include <sysdep.h> nor <init-arch.h>.
37584 (_ZGVdN4v_exp): Removed.
37585 * sysdeps/x86_64/fpu/multiarch/svml_d_exp8_core.S: Renamed to
37586 ...
37587 * sysdeps/x86_64/fpu/multiarch/svml_d_exp8_core-avx2.S: This.
37588 Don't include <sysdep.h> nor <init-arch.h>.
37589 (_ZGVeN8v_exp): Removed.
37590 * sysdeps/x86_64/fpu/multiarch/svml_d_log2_core.S: Renamed to
37591 ...
37592 * sysdeps/x86_64/fpu/multiarch/svml_d_log2_core-sse2.S: This.
37593 Don't include <sysdep.h> nor <init-arch.h>.
37594 (_ZGVbN2v_log): Removed.
37595 * sysdeps/x86_64/fpu/multiarch/svml_d_log4_core.S: Renamed to
37596 ...
37597 * sysdeps/x86_64/fpu/multiarch/svml_d_log4_core-sse.S: This.
37598 Don't include <sysdep.h> nor <init-arch.h>.
37599 (_ZGVdN4v_log): Removed.
37600 * sysdeps/x86_64/fpu/multiarch/svml_d_log8_core.S: Renamed to
37601 ...
37602 * sysdeps/x86_64/fpu/multiarch/svml_d_log8_core-avx2.S: This.
37603 Don't include <sysdep.h> nor <init-arch.h>.
37604 (_ZGVeN8v_log): Removed.
37605 * sysdeps/x86_64/fpu/multiarch/svml_d_pow2_core.S: Renamed to
37606 ...
37607 * sysdeps/x86_64/fpu/multiarch/svml_d_pow2_core-sse2.S: This.
37608 Don't include <sysdep.h> nor <init-arch.h>.
37609 (_ZGVbN2vv_pow): Removed.
37610 * sysdeps/x86_64/fpu/multiarch/svml_d_pow4_core.S: Renamed to
37611 ...
37612 * sysdeps/x86_64/fpu/multiarch/svml_d_pow4_core-sse.S: This.
37613 Don't include <sysdep.h> nor <init-arch.h>.
37614 (_ZGVdN4vv_pow): Removed.
37615 * sysdeps/x86_64/fpu/multiarch/svml_d_pow8_core.S: Renamed to
37616 ...
37617 * sysdeps/x86_64/fpu/multiarch/svml_d_pow8_core-avx2.S: This.
37618 Don't include <sysdep.h> nor <init-arch.h>.
37619 (_ZGVeN8vv_pow): Removed.
37620 * sysdeps/x86_64/fpu/multiarch/svml_d_sin2_core.S: Renamed to
37621 ...
37622 * sysdeps/x86_64/fpu/multiarch/svml_d_sin2_core-sse2.S: This.
37623 Don't include <sysdep.h> nor <init-arch.h>.
37624 (_ZGVbN2v_sin): Removed.
37625 * sysdeps/x86_64/fpu/multiarch/svml_d_sin4_core.S: Renamed to
37626 ...
37627 * sysdeps/x86_64/fpu/multiarch/svml_d_sin4_core-sse.S: This.
37628 Don't include <sysdep.h> nor <init-arch.h>.
37629 (_ZGVbN4v_sin): Removed.
37630 * sysdeps/x86_64/fpu/multiarch/svml_d_sin8_core.S: Renamed to
37631 ...
37632 * sysdeps/x86_64/fpu/multiarch/svml_d_sin8_core-avx2.S: This.
37633 Don't include <sysdep.h> nor <init-arch.h>.
37634 (_ZGVbN8v_sin): Removed.
37635 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos2_core.S: Renamed to
37636 ...
37637 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos2_core-sse2.S: This.
37638 Don't include <sysdep.h> nor <init-arch.h>.
37639 (_ZGVbN2vvv_sincos): Removed.
37640 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos4_core.S: Renamed to
37641 ...
37642 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos4_core-sse.S: This.
37643 Don't include <sysdep.h> nor <init-arch.h>.
37644 (_ZGVdN4vvv_sincos): Removed.
37645 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos8_core.S: Renamed to
37646 ...
37647 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos8_core-avx2.S: This.
37648 Don't include <sysdep.h> nor <init-arch.h>.
37649 (_ZGVeN8vvv_sincos): Removed.
37650 * sysdeps/x86_64/fpu/multiarch/svml_d_cosf16_core.S: Renamed to
37651 ...
37652 * sysdeps/x86_64/fpu/multiarch/svml_d_cosf16_core-avx2.S: This.
37653 Don't include <sysdep.h> nor <init-arch.h>.
37654 (_ZGVeN16v_cosf): Removed.
37655 * sysdeps/x86_64/fpu/multiarch/svml_d_cosf4_core.S: Renamed to
37656 ...
37657 * sysdeps/x86_64/fpu/multiarch/svml_d_cosf4_core-sse2.S: This.
37658 Don't include <sysdep.h> nor <init-arch.h>.
37659 (_ZGVbN4v_cosf): Removed.
37660 * sysdeps/x86_64/fpu/multiarch/svml_d_cosf8_core.S: Renamed to
37661 ...
37662 * sysdeps/x86_64/fpu/multiarch/svml_d_cosf8_core-sse.S: This.
37663 Don't include <sysdep.h> nor <init-arch.h>.
37664 (_ZGVdN8v_cosf): Removed.
37665 * sysdeps/x86_64/fpu/multiarch/svml_d_expf16_core.S: Renamed to
37666 ...
37667 * sysdeps/x86_64/fpu/multiarch/svml_d_expf16_core-avx2.S: This.
37668 Don't include <sysdep.h> nor <init-arch.h>.
37669 (_ZGVeN16v_expf): Removed.
37670 * sysdeps/x86_64/fpu/multiarch/svml_d_expf4_core.S: Renamed to
37671 ...
37672 * sysdeps/x86_64/fpu/multiarch/svml_d_expf4_core-sse2.S: This.
37673 Don't include <sysdep.h> nor <init-arch.h>.
37674 (_ZGVbN4v_expf): Removed.
37675 * sysdeps/x86_64/fpu/multiarch/svml_d_expf8_core.S: Renamed to
37676 ...
37677 * sysdeps/x86_64/fpu/multiarch/svml_d_expf8_core-sse.S: This.
37678 Don't include <sysdep.h> nor <init-arch.h>.
37679 (_ZGVdN8v_expf): Removed.
37680 * sysdeps/x86_64/fpu/multiarch/svml_d_logf16_core.S: Renamed to
37681 ...
37682 * sysdeps/x86_64/fpu/multiarch/svml_d_logf16_core-avx2.S: This.
37683 Don't include <sysdep.h> nor <init-arch.h>.
37684 (_ZGVeN16v_logf): Removed.
37685 * sysdeps/x86_64/fpu/multiarch/svml_d_logf4_core.S: Renamed to
37686 ...
37687 * sysdeps/x86_64/fpu/multiarch/svml_d_logf4_core-sse2.S: This.
37688 Don't include <sysdep.h> nor <init-arch.h>.
37689 (_ZGVbN4v_logf): Removed.
37690 * sysdeps/x86_64/fpu/multiarch/svml_d_logf8_core.S: Renamed to
37691 ...
37692 * sysdeps/x86_64/fpu/multiarch/svml_d_logf8_core-sse.S: This.
37693 Don't include <sysdep.h> nor <init-arch.h>.
37694 (_ZGVdN8v_logf): Removed.
37695 * sysdeps/x86_64/fpu/multiarch/svml_d_powf16_core.S: Renamed to
37696 ...
37697 * sysdeps/x86_64/fpu/multiarch/svml_d_powf16_core-avx2.S: This.
37698 Don't include <sysdep.h> nor <init-arch.h>.
37699 (_ZGVeN16vv_powf): Removed.
37700 * sysdeps/x86_64/fpu/multiarch/svml_d_powf4_core.S: Renamed to
37701 ...
37702 * sysdeps/x86_64/fpu/multiarch/svml_d_powf4_core-sse2.S: This.
37703 Don't include <sysdep.h> nor <init-arch.h>.
37704 (_ZGVbN4vv_powf): Removed.
37705 * sysdeps/x86_64/fpu/multiarch/svml_d_powf8_core.S: Renamed to
37706 ...
37707 * sysdeps/x86_64/fpu/multiarch/svml_d_powf8_core-sse.S: This.
37708 Don't include <sysdep.h> nor <init-arch.h>.
37709 (_ZGVdN8vv_powf): Removed.
37710 * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf16_core.S: Renamed to
37711 ...
37712 * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf16_core-avx2.S: This.
37713 Don't include <sysdep.h> nor <init-arch.h>.
37714 (_ZGVeN16vvv_sincosf): Removed.
37715 * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf4_core.S: Renamed to
37716 ...
37717 * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf4_core-sse2.S: This.
37718 Don't include <sysdep.h> nor <init-arch.h>.
37719 (_ZGVbN4vvv_sincosf): Removed.
37720 * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf8_core.S: Renamed to
37721 ...
37722 * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf8_core-sse.S: This.
37723 Don't include <sysdep.h> nor <init-arch.h>.
37724 (_ZGVdN8vvv_sincosf): Removed.
37725 * sysdeps/x86_64/fpu/multiarch/svml_d_sinf16_core.S: Renamed to
37726 ...
37727 * sysdeps/x86_64/fpu/multiarch/svml_d_sinf16_core-avx2.S: This.
37728 Don't include <sysdep.h> nor <init-arch.h>.
37729 (_ZGVeN16v_sinf): Removed.
37730 * sysdeps/x86_64/fpu/multiarch/svml_d_sinf4_core.S: Renamed to
37731 ...
37732 * sysdeps/x86_64/fpu/multiarch/svml_d_sinf4_core-sse2.S: This.
37733 Don't include <sysdep.h> nor <init-arch.h>.
37734 (_ZGVbN4v_sinf): Removed.
37735 * sysdeps/x86_64/fpu/multiarch/svml_d_sinf8_core.S: Renamed to
37736 ...
37737 * sysdeps/x86_64/fpu/multiarch/svml_d_sinf8_core-sse.S: This.
37738 Don't include <sysdep.h> nor <init-arch.h>.
37739 (_ZGVdN8v_sinf): Removed.
37740
37741 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
37742
37743 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
37744 Add s_ceil-sse4_1, s_ceilf-sse4_1, s_floor-sse4_1,
37745 s_floorf-sse4_1, s_nearbyint-sse4_1, s_nearbyintf-sse4_1,
37746 s_rint-sse4_1 and s_rintf-sse4_1.
37747 * sysdeps/x86_64/fpu/multiarch/ifunc-sse4_1.h: New file.
37748 * sysdeps/x86_64/fpu/multiarch/s_ceil.c: Likewise.
37749 * sysdeps/x86_64/fpu/multiarch/s_ceilf.c: Likewise.
37750 * sysdeps/x86_64/fpu/multiarch/s_floor.c: Likewise.
37751 * sysdeps/x86_64/fpu/multiarch/s_floorf.c: Likewise.
37752 * sysdeps/x86_64/fpu/multiarch/s_nearbyint.c: Likewise.
37753 * sysdeps/x86_64/fpu/multiarch/s_nearbyintf.c: Likewise.
37754 * sysdeps/x86_64/fpu/multiarch/s_rint.c: Likewise.
37755 * sysdeps/x86_64/fpu/multiarch/s_rintf.c: Likewise.
37756 * sysdeps/x86_64/fpu/multiarch/s_ceil.S: Renamed to ...
37757 * sysdeps/x86_64/fpu/multiarch/s_ceil-sse4_1.S: This. Don't
37758 include <machine/asm.h> nor <init-arch.h>. Include <sysdep.h>.
37759 (__ceil): Removed.
37760 * sysdeps/x86_64/fpu/multiarch/s_ceilf.S: Renamed to ...
37761 * sysdeps/x86_64/fpu/multiarch/s_ceilf-sse4_1.S: This. Don't
37762 include <machine/asm.h> nor <init-arch.h>. Include <sysdep.h>.
37763 (__ceilf): Removed.
37764 * sysdeps/x86_64/fpu/multiarch/s_floor.S: Renamed to ...
37765 * sysdeps/x86_64/fpu/multiarch/s_floor-sse4_1.S: This. Don't
37766 include <machine/asm.h> nor <init-arch.h>. Include <sysdep.h>.
37767 (__floor): Removed.
37768 * sysdeps/x86_64/fpu/multiarch/s_floorf.S: Renamed to ...
37769 * sysdeps/x86_64/fpu/multiarch/s_floorf-sse4_1.S: This. Don't
37770 include <machine/asm.h> nor <init-arch.h>. Include <sysdep.h>.
37771 (__floorf): Removed.
37772 * sysdeps/x86_64/fpu/multiarch/s_nearbyint.S: Renamed to ...
37773 * sysdeps/x86_64/fpu/multiarch/s_nearbyint-sse4_1.S: This. Don't
37774 include <machine/asm.h> nor <init-arch.h>. Include <sysdep.h>.
37775 (__nearbyint): Removed.
37776 * sysdeps/x86_64/fpu/multiarch/s_nearbyintf.S: Renamed to ...
37777 * sysdeps/x86_64/fpu/multiarch/s_nearbyintf-sse4_1.S: This. Don't
37778 include <machine/asm.h> nor <init-arch.h>. Include <sysdep.h>.
37779 (__nearbyintf): Removed.
37780 * sysdeps/x86_64/fpu/multiarch/s_rint.S: Renamed to ...
37781 * sysdeps/x86_64/fpu/multiarch/s_rint-sse4_1.S: This. Don't
37782 include <machine/asm.h> nor <init-arch.h>. Include <sysdep.h>.
37783 (__rint): Removed.
37784 * sysdeps/x86_64/fpu/multiarch/s_rintf.S: Renamed to ...
37785 * sysdeps/x86_64/fpu/multiarch/s_rintf-sse4_1.S: This. Don't
37786 include <machine/asm.h> nor <init-arch.h>. Include <sysdep.h>.
37787 (__rintf): Removed.
37788
37789 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
37790
37791 * sysdeps/i386/start.S (_start): Check Check PIC instead of
37792 SHARED. Avoid dynamic relocation against main in static PIE.
37793
37794 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
37795
37796 [BZ #21815]
37797 * elf/Makefile (CFLAGS-tst-prelink.c): New.
37798 (LDFLAGS-tst-prelink): Likewise.
37799
37800 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
37801
37802 * sysdeps/unix/sysv/linux/i386/sysdep.h (I386_USE_SYSENTER):
37803 Define to I386_USE_SYSENTER to 0 or 1 if not defined.
37804 (ENTER_KERNEL): Check if I386_USE_SYSENTER is 1 and check PIC.
37805 (INTERNAL_SYSCALL_MAIN_INLINE): Likewise.
37806 (INTERNAL_SYSCALL_NCS): Likewise.
37807 (LOADARGS_1): Likewise.
37808 (LOADARGS_5): Likewise.
37809 (RESTOREARGS_1): Likewise.
37810 (RESTOREARGS_5): Likewise.
37811
37812 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
37813
37814 * sysdeps/x86_64/memmove.S (MEMCPY_SYMBOL): Don't check SHARED.
37815 (MEMPCPY_SYMBOL): Likewise.
37816 * sysdeps/x86_64/multiarch/ifunc-impl-list.c
37817 (__libc_ifunc_impl_list): Test memcpy and mempcpy in libc.a.
37818 * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Also include
37819 in libc.a.
37820 * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Likewise.
37821 * sysdeps/x86_64/multiarch/memmove-avx512-no-vzeroupper.S:
37822 Likewise.
37823 * sysdeps/x86_64/multiarch/memcpy.c: Also include in libc.a.
37824 (__hidden_ver1): Don't use in libc.a.
37825 * sysdeps/x86_64/multiarch/memmove-sse2-unaligned-erms.S
37826 (__mempcpy): Don't create a weak alias in libc.a.
37827 * sysdeps/x86_64/multiarch/memmove-vec-unaligned-erms.S: Support
37828 libc.a.
37829 * sysdeps/x86_64/multiarch/mempcpy.c: Also include in libc.a.
37830 (__hidden_ver1): Don't use in libc.a.
37831
37832 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
37833
37834 * config.make.in (have-insert): New.
37835 * configure.ac (libc_cv_insert): New. Set to yes if linker
37836 supports INSERT in linker script.
37837 (AC_SUBST(libc_cv_insert): New.
37838 * configure: Regenerated.
37839 * sysdeps/x86_64/Makefile (tests): Add tst-split-dynreloc only
37840 if $(have-insert) == yes.
37841
37842 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
37843
37844 * elf/Makefile (tests): Add vismain only if
37845 $(have-protected-data) == yes.
37846 (tests-pie): Likewise.
37847
37848 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
37849
37850 [BZ #21871]
37851 * sysdeps/x86/cpu-features.c (init_cpu_features): Set
37852 bit_arch_Use_dl_runtime_resolve_opt only with AVX512F.
37853
37854 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
37855
37856 [BZ #21790]
37857 * sysdeps/i386/i586/memset.S
37858 (__memset_zero_constant_len_parameter): Removed.
37859 * sysdeps/i386/i686/memset.S
37860 (__memset_zero_constant_len_parameter): Likewise.
37861 * sysdeps/i386/i686/multiarch/memset_chk.S
37862 (__memset_zero_constant_len_parameter): Likewise.
37863 * sysdeps/x86_64/memset.S (__memset_zero_constant_len_parameter):
37864 Likewise.
37865
37866 2017-08-03 Aurelien Jarno <aurelien@aurel32.net>
37867
37868 * stdlib/getentropy.c (getentropy): Change return type to int.
37869
37870 2017-08-03 Aurelien Jarno <aurelien@aurel32.net>
37871
37872 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Regenerated.
37873
37874 2017-08-03 Joseph Myers <joseph@codesourcery.com>
37875
37876 * math/s_nextafter.c (__nextafter): Use uintN_t instead of
37877 u_intN_t.
37878 * math/s_nexttowardf.c (__nexttowardf): Likewise.
37879 * sysdeps/generic/math_private.h (ieee_double_shape_type):
37880 Likewise.
37881 (ieee_float_shape_type): Likewise.
37882 * sysdeps/i386/fpu/s_fpclassifyl.c (__fpclassifyl): Likewise.
37883 * sysdeps/i386/fpu/s_isnanl.c (__isnanl): Likewise.
37884 * sysdeps/i386/fpu/s_nextafterl.c (__nextafterl): Likewise.
37885 * sysdeps/i386/fpu/s_nexttoward.c (__nexttoward): Likewise.
37886 * sysdeps/i386/fpu/s_nexttowardf.c (__nexttowardf): Likewise.
37887 * sysdeps/ieee754/dbl-64/e_acosh.c (__ieee754_acosh): Likewise.
37888 * sysdeps/ieee754/dbl-64/e_cosh.c (__ieee754_cosh): Likewise.
37889 * sysdeps/ieee754/dbl-64/e_fmod.c (__ieee754_fmod): Likewise.
37890 * sysdeps/ieee754/dbl-64/e_gamma_r.c (__ieee754_gamma_r):
37891 Likewise.
37892 * sysdeps/ieee754/dbl-64/e_hypot.c (__ieee754_hypot): Likewise.
37893 * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_jn): Likewise.
37894 (__ieee754_yn): Likewise.
37895 * sysdeps/ieee754/dbl-64/e_log10.c (__ieee754_log10): Likewise.
37896 * sysdeps/ieee754/dbl-64/e_log2.c (__ieee754_log2): Likewise.
37897 * sysdeps/ieee754/dbl-64/e_rem_pio2.c (__ieee754_rem_pio2):
37898 Likewise.
37899 * sysdeps/ieee754/dbl-64/e_sinh.c (__ieee754_sinh): Likewise.
37900 * sysdeps/ieee754/dbl-64/s_ceil.c (__ceil): Likewise.
37901 * sysdeps/ieee754/dbl-64/s_copysign.c (__copysign): Likewise.
37902 * sysdeps/ieee754/dbl-64/s_erf.c (__erf): Likewise.
37903 (__erfc): Likewise.
37904 * sysdeps/ieee754/dbl-64/s_expm1.c (__expm1): Likewise.
37905 * sysdeps/ieee754/dbl-64/s_finite.c (FINITE): Likewise.
37906 * sysdeps/ieee754/dbl-64/s_floor.c (__floor): Likewise.
37907 * sysdeps/ieee754/dbl-64/s_fpclassify.c (__fpclassify): Likewise.
37908 * sysdeps/ieee754/dbl-64/s_isnan.c (__isnan): Likewise.
37909 * sysdeps/ieee754/dbl-64/s_issignaling.c (__issignaling):
37910 Likewise.
37911 * sysdeps/ieee754/dbl-64/s_llrint.c (__llrint): Likewise.
37912 * sysdeps/ieee754/dbl-64/s_llround.c (__llround): Likewise.
37913 * sysdeps/ieee754/dbl-64/s_lrint.c (__lrint): Likewise.
37914 * sysdeps/ieee754/dbl-64/s_lround.c (__lround): Likewise.
37915 * sysdeps/ieee754/dbl-64/s_modf.c (__modf): Likewise.
37916 * sysdeps/ieee754/dbl-64/s_nextup.c (__nextup): Likewise.
37917 * sysdeps/ieee754/dbl-64/s_remquo.c (__remquo): Likewise.
37918 * sysdeps/ieee754/dbl-64/s_round.c (__round): Likewise.
37919 * sysdeps/ieee754/dbl-64/s_trunc.c (__trunc): Likewise.
37920 * sysdeps/ieee754/dbl-64/wordsize-64/s_issignaling.c
37921 (__issignaling): Likewise.
37922 * sysdeps/ieee754/flt-32/e_atan2f.c (__ieee754_atan2f): Likewise.
37923 * sysdeps/ieee754/flt-32/e_fmodf.c (__ieee754_fmodf): Likewise.
37924 * sysdeps/ieee754/flt-32/e_gammaf_r.c (__ieee754_gammaf_r):
37925 Likewise.
37926 * sysdeps/ieee754/flt-32/e_jnf.c (__ieee754_ynf): Likewise.
37927 * sysdeps/ieee754/flt-32/e_log10f.c (__ieee754_log10f): Likewise.
37928 * sysdeps/ieee754/flt-32/e_powf.c (__ieee754_powf): Likewise.
37929 * sysdeps/ieee754/flt-32/e_rem_pio2f.c (__ieee754_rem_pio2f):
37930 Likewise.
37931 * sysdeps/ieee754/flt-32/e_remainderf.c (__ieee754_remainderf):
37932 Likewise.
37933 * sysdeps/ieee754/flt-32/e_sqrtf.c (__ieee754_sqrtf): Likewise.
37934 * sysdeps/ieee754/flt-32/s_ceilf.c (__ceilf): Likewise.
37935 * sysdeps/ieee754/flt-32/s_copysignf.c (__copysignf): Likewise.
37936 * sysdeps/ieee754/flt-32/s_erff.c (__erff): Likewise.
37937 (__erfcf): Likewise.
37938 * sysdeps/ieee754/flt-32/s_expm1f.c (__expm1f): Likewise.
37939 * sysdeps/ieee754/flt-32/s_finitef.c (FINITEF): Likewise.
37940 * sysdeps/ieee754/flt-32/s_floorf.c (__floorf): Likewise.
37941 * sysdeps/ieee754/flt-32/s_fpclassifyf.c (__fpclassifyf):
37942 Likewise.
37943 * sysdeps/ieee754/flt-32/s_isnanf.c (__isnanf): Likewise.
37944 * sysdeps/ieee754/flt-32/s_issignalingf.c (__issignalingf):
37945 Likewise.
37946 * sysdeps/ieee754/flt-32/s_llrintf.c (__llrintf): Likewise.
37947 * sysdeps/ieee754/flt-32/s_llroundf.c (__llroundf): Likewise.
37948 * sysdeps/ieee754/flt-32/s_lrintf.c (__lrintf): Likewise.
37949 * sysdeps/ieee754/flt-32/s_lroundf.c (__lroundf): Likewise.
37950 * sysdeps/ieee754/flt-32/s_modff.c (__modff): Likewise.
37951 * sysdeps/ieee754/flt-32/s_remquof.c (__remquof): Likewise.
37952 * sysdeps/ieee754/flt-32/s_roundf.c (__roundf): Likewise.
37953 * sysdeps/ieee754/ldbl-128/e_acoshl.c (__ieee754_acoshl):
37954 Likewise.
37955 * sysdeps/ieee754/ldbl-128/e_atan2l.c (__ieee754_atan2l):
37956 Likewise.
37957 * sysdeps/ieee754/ldbl-128/e_atanhl.c (__ieee754_atanhl):
37958 Likewise.
37959 * sysdeps/ieee754/ldbl-128/e_fmodl.c (__ieee754_fmodl): Likewise.
37960 * sysdeps/ieee754/ldbl-128/e_gammal_r.c (__ieee754_gammal_r):
37961 Likewise.
37962 * sysdeps/ieee754/ldbl-128/e_hypotl.c (__ieee754_hypotl):
37963 Likewise.
37964 * sysdeps/ieee754/ldbl-128/e_jnl.c (__ieee754_jnl): Likewise.
37965 (__ieee754_ynl): Likewise.
37966 * sysdeps/ieee754/ldbl-128/e_powl.c (__ieee754_powl): Likewise.
37967 * sysdeps/ieee754/ldbl-128/e_rem_pio2l.c (__ieee754_rem_pio2l):
37968 Likewise.
37969 * sysdeps/ieee754/ldbl-128/e_remainderl.c (__ieee754_remainderl):
37970 Likewise.
37971 * sysdeps/ieee754/ldbl-128/e_sinhl.c (__ieee754_sinhl): Likewise.
37972 * sysdeps/ieee754/ldbl-128/k_cosl.c (__kernel_cosl): Likewise.
37973 * sysdeps/ieee754/ldbl-128/k_sincosl.c (__kernel_sincosl):
37974 Likewise.
37975 * sysdeps/ieee754/ldbl-128/k_sinl.c (__kernel_sinl): Likewise.
37976 * sysdeps/ieee754/ldbl-128/s_ceill.c (__ceill): Likewise.
37977 * sysdeps/ieee754/ldbl-128/s_copysignl.c (__copysignl): Likewise.
37978 * sysdeps/ieee754/ldbl-128/s_erfl.c (__erfcl): Likewise.
37979 * sysdeps/ieee754/ldbl-128/s_fabsl.c (__fabsl): Likewise.
37980 * sysdeps/ieee754/ldbl-128/s_finitel.c (__finitel): Likewise.
37981 * sysdeps/ieee754/ldbl-128/s_floorl.c (__floorl): Likewise.
37982 * sysdeps/ieee754/ldbl-128/s_fpclassifyl.c (__fpclassifyl):
37983 Likewise.
37984 * sysdeps/ieee754/ldbl-128/s_frexpl.c (__frexpl): Likewise.
37985 * sysdeps/ieee754/ldbl-128/s_isnanl.c (__isnanl): Likewise.
37986 * sysdeps/ieee754/ldbl-128/s_issignalingl.c (__issignalingl):
37987 Likewise.
37988 * sysdeps/ieee754/ldbl-128/s_llrintl.c (__llrintl): Likewise.
37989 * sysdeps/ieee754/ldbl-128/s_llroundl.c (__llroundl): Likewise.
37990 * sysdeps/ieee754/ldbl-128/s_lrintl.c (__lrintl): Likewise.
37991 * sysdeps/ieee754/ldbl-128/s_lroundl.c (__lroundl): Likewise.
37992 * sysdeps/ieee754/ldbl-128/s_modfl.c (__modfl): Likewise.
37993 * sysdeps/ieee754/ldbl-128/s_nearbyintl.c (__nearbyintl):
37994 Likewise.
37995 * sysdeps/ieee754/ldbl-128/s_nextafterl.c (__nextafterl):
37996 Likewise.
37997 * sysdeps/ieee754/ldbl-128/s_nexttoward.c (__nexttoward):
37998 Likewise.
37999 * sysdeps/ieee754/ldbl-128/s_nexttowardf.c (__nexttowardf):
38000 Likewise.
38001 * sysdeps/ieee754/ldbl-128/s_nextupl.c (__nextupl): Likewise.
38002 * sysdeps/ieee754/ldbl-128/s_remquol.c (__remquol): Likewise.
38003 * sysdeps/ieee754/ldbl-128/s_rintl.c (__rintl): Likewise.
38004 * sysdeps/ieee754/ldbl-128/s_roundl.c (__roundl): Likewise.
38005 * sysdeps/ieee754/ldbl-128/s_tanhl.c (__tanhl): Likewise.
38006 * sysdeps/ieee754/ldbl-128/s_truncl.c (__truncl): Likewise.
38007 * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c (__ieee754_fmodl):
38008 Likewise.
38009 * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (__ieee754_gammal_r):
38010 Likewise.
38011 * sysdeps/ieee754/ldbl-128ibm/e_powl.c (__ieee754_powl): Likewise.
38012 * sysdeps/ieee754/ldbl-128ibm/e_rem_pio2l.c (__ieee754_rem_pio2l):
38013 Likewise.
38014 * sysdeps/ieee754/ldbl-128ibm/e_remainderl.c
38015 (__ieee754_remainderl): Likewise.
38016 * sysdeps/ieee754/ldbl-128ibm/k_cosl.c (__kernel_cosl): Likewise.
38017 * sysdeps/ieee754/ldbl-128ibm/k_sinl.c (__kernel_sinl): Likewise.
38018 * sysdeps/ieee754/ldbl-128ibm/s_fabsl.c (__fabsl): Likewise.
38019 * sysdeps/ieee754/ldbl-128ibm/s_fpclassifyl.c (___fpclassifyl):
38020 Likewise.
38021 * sysdeps/ieee754/ldbl-128ibm/s_modfl.c (__modfl): Likewise.
38022 * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c (__nexttowardf):
38023 Likewise.
38024 * sysdeps/ieee754/ldbl-128ibm/s_remquol.c (__remquol): Likewise.
38025 * sysdeps/ieee754/ldbl-96/e_acoshl.c (__ieee754_acoshl): Likewise.
38026 * sysdeps/ieee754/ldbl-96/e_asinl.c (__ieee754_asinl): Likewise.
38027 * sysdeps/ieee754/ldbl-96/e_atanhl.c (__ieee754_atanhl): Likewise.
38028 * sysdeps/ieee754/ldbl-96/e_coshl.c (__ieee754_coshl): Likewise.
38029 * sysdeps/ieee754/ldbl-96/e_gammal_r.c (__ieee754_gammal_r):
38030 Likewise.
38031 * sysdeps/ieee754/ldbl-96/e_hypotl.c (__ieee754_hypotl): Likewise.
38032 * sysdeps/ieee754/ldbl-96/e_j0l.c (__ieee754_j0l): Likewise.
38033 (__ieee754_y0l): Likewise.
38034 (pzero): Likewise.
38035 (qzero): Likewise.
38036 * sysdeps/ieee754/ldbl-96/e_j1l.c (__ieee754_j1l): Likewise.
38037 (__ieee754_y1l): Likewise.
38038 (pone): Likewise.
38039 (qone): Likewise.
38040 * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_jnl): Likewise.
38041 (__ieee754_ynl): Likewise.
38042 * sysdeps/ieee754/ldbl-96/e_lgammal_r.c (sin_pi): Likewise.
38043 (__ieee754_lgammal_r): Likewise.
38044 * sysdeps/ieee754/ldbl-96/e_rem_pio2l.c (__ieee754_rem_pio2l):
38045 Likewise.
38046 * sysdeps/ieee754/ldbl-96/e_sinhl.c (__ieee754_sinhl): Likewise.
38047 * sysdeps/ieee754/ldbl-96/s_copysignl.c (__copysignl): Likewise.
38048 * sysdeps/ieee754/ldbl-96/s_erfl.c (__erfl): Likewise.
38049 (__erfcl): Likewise.
38050 * sysdeps/ieee754/ldbl-96/s_frexpl.c (__frexpl): Likewise.
38051 * sysdeps/ieee754/ldbl-96/s_issignalingl.c (__issignalingl):
38052 Likewise.
38053 * sysdeps/ieee754/ldbl-96/s_llrintl.c (__llrintl): Likewise.
38054 * sysdeps/ieee754/ldbl-96/s_llroundl.c (__llroundl): Likewise.
38055 * sysdeps/ieee754/ldbl-96/s_lrintl.c (__lrintl): Likewise.
38056 * sysdeps/ieee754/ldbl-96/s_lroundl.c (__lroundl): Likewise.
38057 * sysdeps/ieee754/ldbl-96/s_modfl.c (__modfl): Likewise.
38058 * sysdeps/ieee754/ldbl-96/s_nexttoward.c (__nexttoward): Likewise.
38059 * sysdeps/ieee754/ldbl-96/s_nexttowardf.c (__nexttowardf):
38060 Likewise.
38061 * sysdeps/ieee754/ldbl-96/s_nextupl.c (__nextupl): Likewise.
38062 * sysdeps/ieee754/ldbl-96/s_remquol.c (__remquol): Likewise.
38063 * sysdeps/ieee754/ldbl-96/s_roundl.c (__roundl): Likewise.
38064 * sysdeps/ieee754/ldbl-96/s_tanhl.c (__tanhl): Likewise.
38065 * sysdeps/ieee754/ldbl-opt/s_nexttowardfd.c (__nldbl_nexttowardf):
38066 Likewise.
38067 * sysdeps/m68k/m680x0/fpu/e_pow.c (s(__ieee754_pow)): Likewise.
38068 * sysdeps/m68k/m680x0/fpu/s_fpclassifyl.c (__fpclassifyl):
38069 Likewise.
38070 * sysdeps/m68k/m680x0/fpu/s_llrint.c (__llrint): Likewise.
38071 * sysdeps/m68k/m680x0/fpu/s_llrintf.c (__llrintf): Likewise.
38072 * sysdeps/m68k/m680x0/fpu/s_llrintl.c (__llrintl): Likewise.
38073 * sysdeps/m68k/m680x0/fpu/s_nextafterl.c (__nextafterl): Likewise.
38074 * sysdeps/x86/fpu/powl_helper.c (__powl_helper): Likewise.
38075
38076 2017-08-03 Florian Weimer <fweimer@redhat.com>
38077
38078 [BZ #21885]
38079 * sysdeps/posix/getaddrinfo.c (gethosts): Release resolver context
38080 on memory allocation failure.
38081
38082 2017-08-03 Alan Modra <amodra@gmail.com>
38083
38084 * sysdeps/powerpc/mod-tlsopt-powerpc.c: Extract from
38085 tst-tlsopt-powerpc.c with function name change and no test harness.
38086 * sysdeps/powerpc/tst-tlsopt-powerpc.c: Remove body of test.
38087 Call tls_get_addr_opt_test.
38088 * sysdeps/powerpc/Makefile (LDFLAGS-tst-tlsopt-powerpc): Don't define.
38089 (modules-names): Add mod-tlsopt-powerpc.
38090 (mod-tlsopt-powerpc.so-no-z-defs): Define.
38091 (tst-tlsopt-powerpc): Depend on .so.
38092 * sysdeps/powerpc/powerpc64/tls-macros.h (__TLS_GET_ADDR): Don't
38093 define. Expand use in TLS_GD and TLS_LD.
38094
38095 2017-08-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
38096
38097 * sysdeps/mach/hurd/enbl-secure.c (__libc_init_secure): Define
38098 function.
38099 * sysdeps/posix/shm_open.c: Include <pthread.h>.
38100
38101 2017-08-02 Joseph Myers <joseph@codesourcery.com>
38102
38103 [BZ #21686]
38104 * math/tgmath.h (__TGMATH_BINARY_REAL_ONLY): Add arguments before
38105 comparing size with that of double.
38106 (__TGMATH_BINARY_REAL_STD_ONLY): Likewise.
38107 (__TGMATH_BINARY_REAL_RET_ONLY): Likewise.
38108 (__TGMATH_TERNARY_FIRST_SECOND_REAL_ONLY): Likewise.
38109 (__TGMATH_TERNARY_REAL_ONLY): Likewise.
38110 (__TGMATH_BINARY_REAL_IMAG): Likewise.
38111 * math/gen-tgmath-tests.py (Type.init_types): Create __int128 and
38112 unsigned __int128 types.
38113
38114 2017-08-02 Steve Ellcey <sellcey@cavium.com>
38115
38116 * localedata/Makefile (CFLAGS-tst_iswalnum.c, CFLAGS-tst_iswalpha.c
38117 CFLAGS-tst_iswcntrl.c, CFLAGS-tst_iswdigit.c, CFLAGS-tst_iswgraph.c,
38118 CFLAGS-tst_iswlower.c, CFLAGS-tst_iswprint.c, CFLAGS-tst_iswpunct.c,
38119 CFLAGS-tst_iswspace.c, CFLAGS-tst_iswupper.c, CFLAGS-tst_iswxdigit.c,
38120 CFLAGS-tst_towlower.c, CFLAGS-tst_towupper.c): Remove.
38121
38122 2017-08-02 H.J. Lu <hongjiu.lu@intel.com>
38123
38124 * sysdeps/x86_64/start.S (_start): Check PIC instead of SHARED.
38125
38126 2017-08-02 H.J. Lu <hongjiu.lu@intel.com>
38127
38128 * sysdeps/i386/i686/multiarch/memcmp-sse4.S: Check PIC instead
38129 of SHARED.
38130 * sysdeps/i386/i686/multiarch/memcpy-sse2-unaligned.S: Likewise.
38131 * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S: Likewise.
38132 * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Likewise.
38133 * sysdeps/i386/i686/multiarch/memset-sse2-rep.S: Likewise.
38134 * sysdeps/i386/i686/multiarch/memset-sse2.S: Likewise.
38135 * sysdeps/i386/i686/multiarch/strcat-sse2.S: Likewise.
38136 * sysdeps/i386/i686/multiarch/strcpy-sse2.S: Likewise.
38137
38138 2017-08-02 Joseph Myers <joseph@codesourcery.com>
38139
38140 [BZ #21685]
38141 * math/tgmath.h (__tgmath_real_type): Use unary + on potentially
38142 bit-field expressions passed to sizeof or typeof.
38143 [__HAVE_FLOAT128 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
38144 (__TGMATH_F128): Likewise.
38145 [__HAVE_FLOAT128 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
38146 (__TGMATH_CF128): Likewise.
38147 (__TGMATH_UNARY_REAL_ONLY): Likewise.
38148 (__TGMATH_UNARY_REAL_RET_ONLY): Likewise.
38149 (__TGMATH_BINARY_FIRST_REAL_ONLY): Likewise.
38150 (__TGMATH_BINARY_FIRST_REAL_STD_ONLY): Likewise.
38151 (__TGMATH_BINARY_REAL_ONLY): Likewise.
38152 (__TGMATH_BINARY_REAL_STD_ONLY): Likewise.
38153 (__TGMATH_BINARY_REAL_RET_ONLY): Likewise.
38154 (__TGMATH_TERNARY_FIRST_SECOND_REAL_ONLY): Likewise.
38155 (__TGMATH_TERNARY_REAL_ONLY): Likewise.
38156 (__TGMATH_TERNARY_FIRST_REAL_RET_ONLY): Likewise.
38157 (__TGMATH_UNARY_REAL_IMAG): Likewise.
38158 (__TGMATH_UNARY_IMAG): Likewise.
38159 (__TGMATH_UNARY_REAL_IMAG_RET_REAL): Likewise.
38160 (__TGMATH_BINARY_REAL_IMAG): Likewise.
38161 * math/gen-tgmath-tests.py (Type.init_types): Create bit_field
38162 type.
38163 (define_vars_for_type): Handle bit_field type specially.
38164 (Tests.__init__): Declare structure with bit-field element.
38165
38166 2017-08-02 H.J. Lu <hongjiu.lu@intel.com>
38167
38168 [BZ #21791]
38169 * sysdeps/i386/i686/multiarch/memcpy-sse2-unaligned.S
38170 (MEMCPY_CHK): Define only if SHARED is defined.
38171 * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S (MEMCPY_CHK):
38172 Likewise.
38173 * sysdeps/i386/i686/multiarch/memcpy-ssse3.S (MEMCPY_CHK):
38174 Likewise.
38175
38176 See ChangeLog.18 for earlier changes.